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

 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 yu,pt6,sgc,qa,Ec,tjj,n8,Pt,Zt,Vu,E6R,JRt,gm,e5g,h5u,rm,R5u,$am,jgo,E$,Gl8,P_R,Z8t,g6j,Qga,mP,GM,KU,wr,rRR,iN,Sc8,rr,Fi,TM,LL6,fU,vU,Nm8,Bmu,ftt,p7,Xtj,da8,O85,z56,v6L,l9,Ita,lVc,JZm,ZA,cZL,ert,hr6,CN_,uiu,jd,sv6,mi,tBm,ExR,bUj,GM8,PNj,i9,ZUm,MBc,VBu,gx8,KPc,wU5,S$o,FPt,Nro,HUR,xOR,dOu,oxo,OUo,BR,zro,lA8,quu,tdu,eVj,Jm_,hVg,cml,Xw,QvR,d6,Ou,oT,C9_,zd,Wit,uw5,RVL,ya,aAc,mL6,$Lg,b7a,jTL,n1t,Gdt,P9j,IT,Z7j,Vd8,hE,QTo,rm5,uf,Lij,DLl,Kiu,H7u,xL8,B6o,zVa,XRL,IAo,yE6,llm,sXc,tZ5,hfg,al_,nXg,ZOt,w68,ru,
rEL,Fwj,Lwt,H6,TB,B6,fO,YX,pC,ye,vXu,OO8,oXo,Ilu,lhm,a9,q8g,U8,$q,j_,b6,t_o,Eqo,Jwa,cwt,e_c,C6j,uD_,R_5,Wb5,mNm,MN,Zh,UNo,$Nu,j9g,nq5,bCa,Gwj,P6L,Awj,S_,FD,LC,kq,Dh,M_c,Tw,gqt,rwg,BH,S8a,Fbl,Lbc,vH,kwc,NRt,DNt,XD,xN8,O8,vq8,XHc,zw,OC5,dNo,oqt,z_8,Y86,IhL,p0,pJl,yQt,yE,l7m,q6_,lz,qQ,tQ,E6,sl6,EIc,tOt,JQ,cQo,e$_,h$L,eO,C0,uz,al,mJ,U6,Czt,uq8,R$g,WJL,a78,mQL,UQa,$Q_,jl8,b0_,nIj,Gsj,jO,PzL,AQR,Gs,Z0c,AQ,Z7,MOa,Qlc,KJ_,wJ_,rQj,S6j,FJc,DQ5,H0R,TVo,xQc,BVj,f7_,vIl,oI_,K0,z$L,Y66,I76,p9_,yqt,lzl,sYj,mFm,
UFo,$F6,nPj,GH8,kI,P45,Mra,QY5,K2j,w9u,iSR,rqt,SEc,F2t,L25,Ngc,DF_,VrL,HSg,TgR,xF_,Bgm,fzg,vPu,X9j,dFu,OSc,pQu,YEu,qrc,yUl,lHo,EJ5,JU5,cUl,set,hmL,th5,uIo,pS,Rmu,l4,sE,Wut,mAL,UAo,br5,Kuu,GP5,nJR,AU6,Mhg,Pbj,Lut,rU_,kPm,Nqg,DAt,Hru,Tqt,Bqm,xAR,vJg,XQ_,dAo,Or_,zmm,IHR,puu,yML,qYL,lk6,akm,c9,mVL,$V5,j4t,b6t,nZo,Gi5,AM_,Z6u,Mcg,aY,m2,Vct,rMt,b4,nS,kic,DVa,oZo,Zz,pCl,yJL,tMo,qCm,sKR,wg,Eh5,JJt,MMm,VM_,ght,QK_,KIt,wCR,ihg,SCj,FIt,kom,LIg,Hhc,H9,B9,xMj,Bs8,f3c,vhl,XCL,dM8,ohl,YCc,zst,lb,sr,tU,hU,RJg,Wjt,
Cr,mUc,aKj,ZKt,M0t,V0j,Q76,rku,Fju,Ljj,kRL,Nyt,HKR,xUu,ByR,ae,vQg,OK8,oQ6,zJl,Y1j,psm,dUm,fKa,IK6,Ur,lp6,En6,sdR,bb,cp8,hKm,CGl,u$m,RKc,AU,WHL,m$L,ap_,U$j,jd_,Vc,MF_,gnt,KHL,iT_,wq,SLu,FI,kJ,Lr,NJR,rp8,D$m,xJ,BJ8,vQ,XI,Xsa,onm,YLu,Ipg,pKm,dq,yKg,Or,leL,spj,tWc,EHo,JKu,eI8,zP,hI_,CXo,Ie,lB,Wl8,aeo,mt_,sY,jpR,btL,Ge6,hM,Qpj,KlR,MWc,it_,rKm,SML,mq,$Z,jc,NFj,Dtg,n6,Htj,TFm,xt5,BF8,vHl,XK6,dtt,Ota,fel,oHt,AM,YM_,p2u,Zk,Iec,yhR,zIa,l_t,Vi,sGR,tYR,Ec5,Jhm,eot,chR,hol,RoL,CLa,a_u,ncu,PLm,Ahu,MY5,QGt,gc8,
VY_,KXt,ixm,Snu,rh5,LXm,Nal,DfL,Hxm,Ta_,df6,X2m,Oxl,ocj,Bu,f6,zoj,I_c,yOt,sJo,Ewl,tNu,Ch,JOc,pW5,WO5,abL,mno,mI,Uno,jJt,Gfj,ZyL,AO5,QJc,KOt,wWu,iya,Sbt,Dn5,FO8,kfc,N$c,Hyj,T$l,B$_,xnu,vw5,fbc,gs,XWu,Oyt,owu,pV5,Lh,kh,yeR,lFu,NM,Ey6,xh,BC,fh,h3u,vC,R3l,OC,WNj,aFl,mst,UsL,Yh,$sg,bWt,nyc,Pa_,ZWL,gyt,KN8,c7,wVt,iWL,reL,St5,FN_,LNg,kUR,NNc,CK,TNg,xso,BNl,fFa,vy5,XVt,dsu,OW8,oyo,z38,Ytm,IFc,pI6,$Q,uCL,RAL,j0,bM,nK,W3t,aa_,mEc,UEc,$E8,jUj,b48,Z4_,Mia,Vil,g9R,QUt,MU,gy,Qx,KK,ry,S0,FL,wIt,kQ,rBm,NU,SKg,F3l,
DK,L3_,k5t,NC8,dE6,o9u,yxo,tRl,sM6,O4g,E8l,ebm,PtL,aLL,g8j,UH5,VRu,QMj,v7,wmm,dy,rx6,Sst,Lrt,k9R,NdL,Hvt,YQ,xH5,Bd8,fL5,v8t,Xm8,dHu,Ovu,Tdu,Ys5,ILa,pLu,y6,Egl,Jlg,tm5,eUj,hUa,uH5,RUR,Cyt,blt,Gpl,Alt,Mmg,CT,ilR,wLj,kpa,Del,Hlg,TW6,xem,BWu,fSt,bG,p$j,lRg,YUu,zUo,ybc,XLL,sxm,aRL,Jb_,cbt,ex_,ZYg,Vw5,AbL,rba,Ppt,vgc,iYt,ESu,WR_,Mwo,q5t,Ol5,de_,og6,IS6,GTL,Dp,dW5,oSo,zxL,Y5t,IRt,csm,WmL,a6c,od,Urc,bX8,Asj,Pjj,Mo5,VoL,QW5,wN6,Kmt,iXL,EM,rsc,SZc,Lm5,FmL,JK,xr8,Ti6,HX6,XNR,Bim,dr5,vou,OX6,eW,oo_,pn_,YZt,I6t,
ly6,tq8,Rp,cyt,EFl,eQu,RQj,WVm,UGg,jko,UM,$H,PIg,Ayt,jW,bX,ZF8,nt,AK,Mq5,Ze,Vq5,Mt,gFt,Qkl,gF,KVu,wn6,iFj,ryg,Swo,LVo,FVj,NP6,TPj,HFt,xGu,BPL,kYu,fyj,dG8,Xng,DGL,OFg,oFt,rF,zQL,Iyc,Ywa,p35,y2l,qPa,lQo,sAt,Fz,EzR,J2c,tPj,eEa,hEL,CWR,aQL,$RR,PWt,VPj,Lt,K8c,w3a,kH,ipm,Te,xH,NUj,De,vK,DRt,HpR,xRL,BUm,vz_,dRu,Opa,oz5,zEl,p0l,t6g,qaj,IQt,Etu,Jj6,op,sNt,cj_,Ip,e7l,h76,C8l,ucg,mYc,R7j,aY_,bqj,nt6,M6j,ZqL,QNg,Fnt,Lna,Nlo,Hqo,TlR,Blt,fYo,vtg,dY5,Oq_,ot8,IYR,qfL,sCo,pZc,EC_,cLa,JLc,tz8,eu6,Ck_,udt,Ru8,WCt,aIt,
Cx,uL,aG,Un,$Z5,bjm,Gka,Zjo,$c,jY,MzR,bL,QCa,KCt,wZg,Gc,LCc,HjR,xZu,BHo,fI8,vCL,XZ_,oC6,Ah,zu_,pfg,Z_,y7R,sZ_,tJL,Evg,qVt,unj,aOt,RBl,mit,jZu,nv6,P08,VJa,MJa,wf6,wa,iul,r7o,iL,SVt,ra,F6o,L65,ktj,Di_,N5g,Hul,T5u,xi5,B5L,zB8,IOc,yHm,pPu,dij,vvR,q0l,t2o,hN8,CRR,Wtm,b2R,GC6,kc,PRl,Z2c,M2L,gD_,i2o,Fto,NY6,DDt,H2m,TYR,XPR,xDt,zNl,Y0j,pEg,H2,y6t,qA8,sLl,txu,Efc,J6m,c6t,ek8,CKj,uaj,fx,Rkt,W4j,my5,XK,amm,$yL,Gvj,oG,PK6,A6u,Zg5,gft,QLR,MxL,wE5,F4l,L4t,kv5,sb,NIu,xyg,BIu,cW,XEl,fm_,vf8,Og6,zkj,YAt,Ima,qTL,EdR,
tCo,saR,Jcl,ev8,hvm,aZ_,Cma,m6c,$6o,U6g,Act,VC6,Qa_,wzm,Fgl,x6c,fZl,vdl,odt,YTj,Tf,Yw,s$6,cgo,Jgc,hdt,CoR,Rdl,uPm,WGR,ar_,IJ,lLo,t1j,edL,E0o,oJ,$lu,j$_,bn6,n0_,GbR,Poo,Agg,Zna,ua,M1l,Rr,V1j,g0o,Q$6,KG8,mN,wGt,S4g,LGt,kb8,frg,XGj,dlt,On8,zdj,Y4g,ZF,pYt,yT6,l9a,qxo,s5j,tV5,JT_,eFj,Cco,uRm,$vt,mvu,j5a,GAL,Pcm,ia,ATt,Z5g,MVo,Q5m,wYt,K1j,rTu,F1c,LW,kAm,Ne6,L1l,DvR,H5_,xvj,f9R,BeL,vB6,Tel,XYo,dva,O58,oBm,zFR,Yxm,I96,p4R,yi8,sB_,q_6,ty6,Jit,E7g,ky,cij,CVt,aU5,e2_,$bt,jBR,bwg,n7L,w4m,iwL,S_t,Fdt,zU,Dbu,BzR,
X4t,Yy,z25,o7o,Y_m,yq,IUc,pFR,ySo,qXL,sug,t45,Ea8,cS6,eOm,juL,a1j,UBl,nau,bIj,G7j,P28,ZIt,V4a,Quu,wFt,TB_,n5u,PQm,AGo,Zoo,Msg,Vsg,Qi6,K$u,rG6,Sdm,F$_,L$6,kSu,NZR,DCo,HoL,BZo,dCg,aU,m3,UK,$9,Oog,n4,zHR,Em_,u08,h85,gm6,QPL,Ksl,Iug,tkt,lJ6,iPL,rCL,Sg6,cCL,Lso,N3g,HPl,B3_,fJj,rC,L4,k9,Ygu,z86,lou,qWj,u78,WSg,mIl,UIt,b96,Gut,nGL,Z9L,VE6,SWo,i9_,Qwa,rF8,KSt,FS6,DIt,IU,O9u,vGj,zc5,YWg,p5c,yV8,yU,lq8,tK5,JVc,cVm,hRu,eRt,ss,m05,hx,$0l,jb6,ut,bdu,n$5,GOl,PxL,AVl,Zdm,MKu,VKm,g$L,Qbc,KAa,w5L,id8,rVc,SIt,aM,FAc,
LAt,kOa,N7L,D0m,Hd_,T7l,x0g,B7l,fqc,v$o,X5o,Us,Odt,zR6,Iqu,lXm,tI8,Ek8,JIl,ejc,CYR,u2t,Rjj,ZL,$wu,mwm,jzt,bHR,nkm,AI5,ZHl,MI_,gk5,Hm,KTa,NH,iHR,rIt,T9,SQ5,FT8,LTl,k3m,Bm,T1t,B16,OHc,dw8,zjt,YQu,Y8,IXt,poa,lgl,sf6,tlt,JP5,cPl,qo6,hZm,CDm,mog,bZc,n_u,IM,G2t,PDa,g_o,AP6,Mlo,Vlj,SoL,KB5,FBj,k2c,Do6,HZo,ThR,xoL,Bho,fgt,Xol,dol,OZu,o_o,zZu,Igt,y$u,sqj,c$8,CFt,RlR,m3c,EU,U38,$3_,jqt,bEt,n2c,PFo,A$a,ZEt,Mac,Va_,g2u,Qq5,Kxj,wT_,iEg,r$_,Fxt,SN_,Nvt,HEu,em,Tv_,fnu,Bv8,d3u,OEm,o2u,zlm,ppL,qi_,lD_,Ing,E4l,t9o,
CPc,Jtu,mc,eeg,$uo,WEa,aDj,mug,Uuo,jOR,n48,bs8,UU,$g,g4u,PPt,V9R,M9l,At5,Zsm,wpt,rtj,FEt,Sio,Duo,NS5,xua,BSt,v4_,Xpo,fDc,du_,o4L,OsR,Yiu,y46,Me,ldl,qGj,EeR,Cna,Upt,gW,jHR,Pnt,Vta,Mtt,A4_,Zmo,rW,wk8,geo,QHo,imm,SGt,r46,kI8,Nwu,HmL,Twa,xpc,Bwg,fdl,Xkl,dpu,XH,oe8,OU,zhR,y_m,l5j,IF,qhL,t7L,Wvm,s5,ezc,Rzc,hzu,Cil,$_5,jcR,U__,bf_,nlt,Zfc,Gjt,M78,V7L,E5,Qcl,Kv_,wML,glo,ew,ifg,Jb,Lv5,B0u,f5_,vlm,XMR,d_5,Of8,I56,zzR,Yha,olc,y58,sVt,J5l,c5t,hC_,RCj,Cuc,uul,W9t,mko,Ukm,$kl,jVt,bkR,nut,Pug,U5,Zkl,gug,Vga,K9m,
QVo,wwL,ikt,r5_,$S,L9_,dk8,vu5,zCc,YeR,st_,t3g,Eb6,Jzg,cz_,ei8,ubR,Rij,WKc,aPR,$z6,jta,bQa,nb_,Gy8,PJ5,AzL,ZQ8,M3_,V3u,Qtl,KK8,wvo,rzc,FKg,Dzt,NL8,kyj,LKj,BLt,TLc,vbR,dzR,OQg,ob_,LY,zig,Ylc,IP6,qBR,py8,sym,y98,tet,H$,ERL,J9l,c95,lTu,eaj,Wk8,m7g,bGg,B$,nR8,P5_,GDl,A9L,ZGt,Mej,Vec,gRl,KkR,wyo,iGu,r9L,Lkg,Fku,TKc,SB6,v$,x78,kDa,HG8,vRc,d7_,IT8,zaR,YBa,oR8,OG_,lj,l88,sQ5,tG8,Eit,Jot,cot,R0a,h0t,e0g,Cej,Ao8,G8o,uQo,ni8,wrL,iM_,rom,Sym,FDl,LDt,k8a,N8t,T8o,B8a,vim,d98,OMu,oi_,pOa,I8u,yau,qJ6,G4,ErR,JaR,
ca8,ept,As,Z6,u1m,axu,nrg,Z$R,MQc,VQt,grg,Qo5,KUg,i$L,SJt,raj,FUu,kNu,N2L,DT6,H$o,T2m,xTm,KX,B2u,zpR,YJl,dT_,XOl,orm,O$a,Ep5,qOa,ri,JXL,cXg,eMm,hMa,CTc,uS8,WMt,mXl,$Xt,bVa,Gaj,MvL,Vv8,gpc,wq_,KMc,Q0L,iV6,rXg,FMc,LMc,kaR,Npu,HN,HV_,Tpl,xXg,fCc,Bp8,vpu,dX5,zM6,YO_,ICo,pdc,yvL,s1m,tS6,lBm,qpg,uMt,RDu,aBL,m5u,U5t,$5m,j1R,bAg,PO8,Avu,MS5,gK8,VSo,Q1c,oW,KFm,wdt,iAc,rvo,kQc,LFa,HA8,Tkc,fBj,Xd6,d5c,OAu,oKa,zDt,Ypc,IBa,pB_,yuR,lcm,sjL,q9t,tUo,ELo,Ju_,cu_,e4c,h4u,Cdu,R4a,WWm,u58,qG,m2a,U2a,$2R,jj_,nLR,Pdt,
AuL,Zcm,MUa,VUL,gLt,KWj,wB_,rua,FWt,knm,TE6,D2t,NEm,Hc8,x2c,BEl,fc8,d2o,Ocl,oLg,z4c,Y9L,IcR,pA8,lwt,yf8,qvg,sDR,tHo,EYt,cfg,eqt,hqo,CZo,uY_,Rq6,W_g,awL,Ug6,$gg,jD6,baL,GE6,PZo,AfL,VH_,gYt,Zam,MHt,wAa,iam,rf_,L_a,kER,$F,xgt,BOm,vYu,Oa8,dgc,oY5,zqc,jq,nF,Iw_,pb5,Ay,Zy,sSc,yNj,l4u,JN_,cNl,ew8,hwc,Wet,mxu,Uxu,$xo,jSt,bbt,Gg5,PC6,ANg,Zbo,Mug,Vul,g3j,gP,QS_,Keg,KF,wbL,ibj,rN_,SR8,Fe_,Lej,rP,Sq,kgl,Nj8,Fr,DxL,HbL,Tjg,xxu,f46,v3R,dxa,I4L,YRc,zw5,pDu,yro,Jrc,sRj,t8o,qFa,EWt,kF,hYt,C75,uBR,RYc,Wzl,m88,$8_,
nW6,Zec,P7c,NG,Gmu,Kzg,iea,rrt,SFt,Fzm,Lza,Nog,D86,Hej,ToR,Bo8,f2u,vWt,d8R,Oea,zYR,YFj,qzo,tL_,s38,J3R,uJm,RPR,WfL,af8,$c_,nA_,fF,Gq5,Ps5,A3u,Z3R,VL5,gAa,Q3t,Kf5,i3t,Sz5,Ffg,Lf_,vn,kq5,Nt5,TtR,xcl,Xr,dP,vAu,Bta,O35,XaL,oA8,Yza,YF,Ifj,p1a,qDL,tfa,Ik,JDj,cDc,et6,htR,CHo,uv5,Rto,mj8,b1l,nN6,ADg,Gx8,PHu,Z1u,Qhc,Mfa,gNm,KQ6,w1L,i1R,FQl,LQ6,kxo,Dj6,H1g,X1a,vN8,INL,lMj,c3,qqt,UVg,s_6,tAg,Jdl,hXc,Crl,$qj,j_j,bNj,nMc,GVa,PrR,ZNj,MA5,gM_,Koj,VAL,Q_t,iN_,wg5,LoL,Sq5,kVo,NQR,Dqg,HNt,TQ5,BQc,xqR,dq8,zXo,ONj,Yqu,
IM6,pXm,UP,yAt,lit,jP,sEt,qmu,tD5,ETu,cAj,e1g,CU6,usL,R1t,W7j,ai5,$JR,nTc,AAL,PUR,Z_g,MDu,QEc,DJc,rAl,Tba,xJl,fi_,vTt,oTu,z18,Iil,pjt,y1o,q7l,s8m,tXj,Est,J1t,c1g,e98,Cg8,W0t,a$a,mSa,USo,$Sg,j86,bDg,Pg_,G$u,VX6,gsL,Q8_,K0m,wj5,r1m,iDL,F05,HDo,Xj_,f$m,dS8,OD_,osR,Y7a,TK,ph8,v3,l0o,sng,tpl,hgL,ulg,mhc,$ho,jnm,nO5,Gha,P$g,ZLm,Vpg,gOg,Ka6,r88,iL_,whj,zK,Fa5,SSo,La_,khL,Nx_,Dh_,HLc,Tx8,xhl,f05,vO6,XhL,dht,OL8,oO_,zg6,YSl,I0j,yYt,lEl,hTL,Cwj,uEc,W5t,aEc,mK5,jst,sa,ZBu,Mno,Vna,gEc,QsL,tj,Ea,qA,Jj,e6,kZu,
HBc,xKt,TMg,Cq,BMt,fEL,vEo;_.p8=function(p,y){if(Error.captureStackTrace)Error.captureStackTrace(this,_.p8);else{var l=Error().stack;l&&(this.stack=l)}p&&(this.message=String(p));y!==void 0&&(this.cause=y)};
yu=function(){throw Error("E");};
pt6=function(p,y){y=String.fromCharCode.apply(null,y);return p==null?y:p+y};
sgc=function(p){var y=!1;y=y===void 0?!1:y;if(yRt){if(y&&(ltl?!p.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(p)))throw Error("F");p=(qcj||(qcj=new TextEncoder)).encode(p)}else{for(var l=0,q=new Uint8Array(3*p.length),t=0;t<p.length;t++){var E=p.charCodeAt(t);if(E<128)q[l++]=E;else{if(E<2048)q[l++]=E>>6|192;else{if(E>=55296&&E<=57343){if(E<=56319&&t<p.length){var e=p.charCodeAt(++t);if(e>=56320&&e<=57343){E=(E-55296)*1024+e-56320+65536;q[l++]=E>>18|
240;q[l++]=E>>12&63|128;q[l++]=E>>6&63|128;q[l++]=E&63|128;continue}else t--}if(y)throw Error("F");E=65533}q[l++]=E>>12|224;q[l++]=E>>6&63|128}q[l++]=E&63|128}}p=l===q.length?q:q.subarray(0,l)}return p};
qa=function(p){_.l_.setTimeout(function(){throw p;},0)};
_.tR=function(p,y){return p.lastIndexOf(y,0)==0};
Ec=function(p,y){var l=p.length-y.length;return l>=0&&p.indexOf(y,l)==l};
_.ej=function(p){return/^[\s\xa0]*$/.test(p)};
_.C8=function(p,y){return p.indexOf(y)!=-1};
_.u_=function(p,y){return _.C8(p.toLowerCase(),y.toLowerCase())};
_.ag=function(p,y){var l=0;p=Rg(String(p)).split(".");y=Rg(String(y)).split(".");for(var q=Math.max(p.length,y.length),t=0;l==0&&t<q;t++){var E=p[t]||"",e=y[t]||"";do{E=/(\d*)(\D*)(.*)/.exec(E)||["","","",""];e=/(\d*)(\D*)(.*)/.exec(e)||["","","",""];if(E[0].length==0&&e[0].length==0)break;l=tjj(E[1].length==0?0:parseInt(E[1],10),e[1].length==0?0:parseInt(e[1],10))||tjj(E[2].length==0,e[2].length==0)||tjj(E[2],e[2]);E=E[3];e=e[3]}while(l==0)}return l};
tjj=function(p,y){return p<y?-1:p>y?1:0};
_.mL=function(){var p=_.l_.navigator;return p&&(p=p.userAgent)?p:""};
n8=function(p){if(!$6||!b_)return!1;for(var y=0;y<b_.brands.length;y++){var l=b_.brands[y].brand;if(l&&_.C8(l,p))return!0}return!1};
Pt=function(p){return _.C8(_.mL(),p)};
Zt=function(){return $6?!!b_&&b_.brands.length>0:!1};
Vu=function(){return Zt()?!1:Pt("Opera")};
E6R=function(){return Zt()?!1:Pt("Trident")||Pt("MSIE")};
JRt=function(){return Zt()?n8("Microsoft Edge"):Pt("Edg/")};
gm=function(){return Pt("Firefox")||Pt("FxiOS")};
_.wm=function(){return Pt("Safari")&&!(_.K8()||(Zt()?0:Pt("Coast"))||Vu()||(Zt()?0:Pt("Edge"))||JRt()||(Zt()?n8("Opera"):Pt("OPR"))||gm()||Pt("Silk")||Pt("Android"))};
_.K8=function(){return Zt()?n8("Chromium"):(Pt("Chrome")||Pt("CriOS"))&&!(Zt()?0:Pt("Edge"))||Pt("Silk")};
_.cRl=function(){return Pt("Android")&&!(_.K8()||gm()||Vu()||Pt("Silk"))};
e5g=function(p){var y={};p.forEach(function(l){y[l[0]]=l[1]});
return function(l){return y[l.find(function(q){return q in y})]||""}};
h5u=function(p){var y=_.mL();if(p==="Internet Explorer"){if(E6R())if((p=/rv: *([\d\.]*)/.exec(y))&&p[1])y=p[1];else{p="";var l=/MSIE +([\d\.]+)/.exec(y);if(l&&l[1])if(y=/Trident\/(\d.\d)/.exec(y),l[1]=="7.0")if(y&&y[1])switch(y[1]){case "4.0":p="8.0";break;case "5.0":p="9.0";break;case "6.0":p="10.0";break;case "7.0":p="11.0"}else p="7.0";else p=l[1];y=p}else y="";return y}var q=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");l=[];for(var t;t=q.exec(y);)l.push([t[1],t[2],t[3]||void 0]);
y=e5g(l);switch(p){case "Opera":if(Vu())return y(["Version","Opera"]);if(Zt()?n8("Opera"):Pt("OPR"))return y(["OPR"]);break;case "Microsoft Edge":if(Zt()?0:Pt("Edge"))return y(["Edge"]);if(JRt())return y(["Edg"]);break;case "Chromium":if(_.K8())return y(["Chrome","CriOS","HeadlessChrome"])}return p==="Firefox"&&gm()||p==="Safari"&&_.wm()||p==="Android Browser"&&_.cRl()||p==="Silk"&&Pt("Silk")?(y=l[2])&&y[1]||"":""};
_.C_t=function(p){if(Zt()&&p!=="Silk"){var y=b_.brands.find(function(l){return l.brand===p});
if(!y||!y.version)return NaN;y=y.version.split(".")}else{y=h5u(p);if(y==="")return NaN;y=y.split(".")}return y.length===0?NaN:Number(y[0])};
rm=function(){return $6?!!b_&&!!b_.platform:!1};
_.uot=function(){return rm()?b_.platform==="Android":Pt("Android")};
R5u=function(){return Pt("iPhone")&&!Pt("iPod")&&!Pt("iPad")};
_.Sj=function(){return R5u()||Pt("iPad")||Pt("iPod")};
_.WLm=function(){return rm()?b_.platform==="macOS":Pt("Macintosh")};
_.at8=function(){return rm()?b_.platform==="Windows":Pt("Windows")};
_.maj=function(){return rm()?b_.platform==="Chrome OS":Pt("CrOS")};
_.Fo=function(p){return p[p.length-1]};
_.Na=function(p,y,l){y=_.Uao(p,y,l);return y<0?null:typeof p==="string"?p.charAt(y):p[y]};
_.Uao=function(p,y,l){for(var q=p.length,t=typeof p==="string"?p.split(""):p,E=0;E<q;E++)if(E in t&&y.call(l,t[E],E,p))return E;return-1};
$am=function(p){for(var y=_.Dt,l=typeof p==="string"?p.split(""):p,q=p.length-1;q>=0;q--)if(q in l&&y.call(void 0,l[q],q,p))return q;return-1};
_.Tl=function(p,y){return _.Ht(p,y)>=0};
_.f8=function(p,y){_.Tl(p,y)||p.push(y)};
_.Oc=function(p,y){y=_.Ht(p,y);var l;(l=y>=0)&&_.dm(p,y);return l};
_.dm=function(p,y){Array.prototype.splice.call(p,y,1)};
_.og=function(p){var y=p.length;if(y>0){for(var l=Array(y),q=0;q<y;q++)l[q]=p[q];return l}return[]};
_.pU=function(p,y){for(var l=1;l<arguments.length;l++){var q=arguments[l];if(_.zl(q)){var t=p.length||0,E=q.length||0;p.length=t+E;for(var e=0;e<E;e++)p[t+e]=q[e]}else p.push(q)}};
_.b8l=function(p,y,l,q){Array.prototype.splice.apply(p,jgo(arguments,1))};
jgo=function(p,y,l){return arguments.length<=2?Array.prototype.slice.call(p,y):Array.prototype.slice.call(p,y,l)};
E$=function(p,y){y=y||p;for(var l=0,q=0,t={};q<p.length;){var E=p[q++],e=_.yQ(E)?"o"+_.qO(E):(typeof E).charAt(0)+E;Object.prototype.hasOwnProperty.call(t,e)||(t[e]=!0,y[l++]=E)}y.length=l};
_.n6o=function(p,y,l){l=l||_.JZ;for(var q=0,t=p.length,E;q<t;){var e=q+(t-q>>>1);var C=l(y,p[e]);C>0?q=e+1:(t=e,E=!C)}return E?q:-q-1};
_.eB=function(p,y,l){if(!_.zl(p)||!_.zl(y)||p.length!=y.length)return!1;var q=p.length;l=l||Gl8;for(var t=0;t<q;t++)if(!l(p[t],y[t]))return!1;return!0};
_.JZ=function(p,y){return p>y?1:p<y?-1:0};
Gl8=function(p,y){return p===y};
P_R=function(p,y,l){y=Array.prototype.splice.call(p,y,1);Array.prototype.splice.call(p,l,0,y[0])};
Z8t=function(p){return AR5[p]||""};
g6j=function(p){if(!Mjt)return _.hZ(p);p=Vj8.test(p)?p.replace(Vj8,Z8t):p;p=atob(p);for(var y=new Uint8Array(p.length),l=0;l<p.length;l++)y[l]=p.charCodeAt(l);return y};
Qga=function(p,y){p.__closure__error__context__984382||(p.__closure__error__context__984382={});p.__closure__error__context__984382.severity=y};
_.Rv=function(p){p=Error(p);Qga(p,"warning");return p};
mP=function(p,y){if(p!=null){var l;var q=(l=KLt)!=null?l:KLt={};l=q[p]||0;l>=y||(q[p]=l+1,p=Error(),Qga(p,"incident"),qa(p))}};
GM=function(p,y,l){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(l===void 0?0:l)&&Symbol.for&&p?Symbol.for(p):p!=null?Symbol(p):Symbol():y};
KU=function(p,y){MO||_.gr in p||wtl(p,i8j);p[_.gr]|=y};
wr=function(p,y){MO||_.gr in p||wtl(p,i8j);p[_.gr]=y};
rRR=function(p){if(4&p)return 512&p?512:1024&p?1024:0};
iN=function(p){KU(p,34);return p};
Sc8=function(p){KU(p,32);return p};
rr=function(){return typeof BigInt==="function"};
Fi=function(p,y){return y===void 0?p.copyOnWrite!==SB&&!!(2&(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.gr]|0)):!!(2&y)&&p.copyOnWrite!==SB};
_.HU=function(p,y){if(p!=null)if(typeof p==="string")p=p?new LU(p,NO):_.DV();else if(p.constructor!==LU)if(FLj&&p!=null&&p instanceof Uint8Array)p=p.length?new LU(new Uint8Array(p),NO):_.DV();else{if(!y)throw Error();p=void 0}return p};
TM=function(p,y){if(typeof y!=="number"||y<0||y>=p.length)throw Error();};
LL6=function(p,y,l){var q=y&128?0:-1,t=p.length,E;if(E=!!t)E=p[t-1],E=E!=null&&typeof E==="object"&&E.constructor===Object;var e=t+(E?-1:0);for(y=y&128?1:0;y<e;y++)l(y-q,p[y]);if(E){p=p[t-1];for(var C in p)!isNaN(C)&&l(+C,p[C])}};
fU=function(p){return p&128?BU:void 0};
vU=function(p){p.isGuard_doNotManuallySetPrettyPlease=!0;return p};
Nm8=function(){var p=kll;return vU(function(y){for(var l in p)if(y===p[l]&&!/^[0-9]+$/.test(l))return!0;return!1})};
_.Xi=function(p){var y=p;if(Dam(y)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(y))throw Error(String(y));}else if(H8m(y)&&!Number.isSafeInteger(y))throw Error(String(y));return Tmm?BigInt(p):p=xaR(p)?p?"1":"0":Dam(p)?p.trim()||"0":String(p)};
Bmu=function(p,y){if(p.length>y.length)return!1;if(p.length<y.length||p===y)return!0;for(var l=0;l<p.length;l++){var q=p[l],t=y[l];if(q>t)return!1;if(q<t)return!0}};
ftt=function(p){var y=p>>>0;O$=y;Yx=(p-y)/4294967296>>>0};
p7=function(p){if(p<0){ftt(-p);var y=_.c(v6L(O$,Yx));p=y.next().value;y=y.next().value;O$=p>>>0;Yx=y>>>0}else ftt(p)};
Xtj=function(p,y){var l=y*4294967296+(p>>>0);return Number.isSafeInteger(l)?l:_.yO(p,y)};
da8=function(p,y){var l=y&2147483648;l&&(p=~p+1>>>0,y=~y>>>0,p==0&&(y=y+1>>>0));p=Xtj(p,y);return typeof p==="number"?l?-p:p:l?"-"+p:p};
_.yO=function(p,y){y>>>=0;p>>>=0;if(y<=2097151)var l=""+(4294967296*y+p);else rr()?l=""+(BigInt(y)<<BigInt(32)|BigInt(p)):(l=(p>>>24|y<<8)&16777215,y=y>>16&65535,p=(p&16777215)+l*6777216+y*6710656,l+=y*8147497,y*=2,p>=1E7&&(l+=p/1E7>>>0,p%=1E7),l>=1E7&&(y+=l/1E7>>>0,l%=1E7),l=y+O85(l)+O85(p));return l};
O85=function(p){p=String(p);return"0000000".slice(p.length)+p};
_.o6c=function(p,y){y&2147483648?rr()?p=""+(BigInt(y|0)<<BigInt(32)|BigInt(p>>>0)):(y=_.c(v6L(p,y)),p=y.next().value,y=y.next().value,p="-"+_.yO(p,y)):p=_.yO(p,y);return p};
z56=function(p){if(p.length<16)p7(Number(p));else if(rr())p=BigInt(p),O$=Number(p&BigInt(4294967295))>>>0,Yx=Number(p>>BigInt(32)&BigInt(4294967295));else{var y=+(p[0]==="-");Yx=O$=0;for(var l=p.length,q=y,t=(l-y)%6+y;t<=l;q=t,t+=6)q=Number(p.slice(q,t)),Yx*=1E6,O$=O$*1E6+q,O$>=4294967296&&(Yx+=Math.trunc(O$/4294967296),Yx>>>=0,O$>>>=0);y&&(y=_.c(v6L(O$,Yx)),p=y.next().value,y=y.next().value,O$=p,Yx=y)}};
v6L=function(p,y){y=~y;p?p=~p+1:y+=1;return[p,y]};
l9=function(p){return Array.prototype.slice.call(p)};
_.qL=function(p,y){throw Error(y===void 0?"unexpected value "+p+"!":y);};
_.su=function(p){if(p!=null&&typeof p!=="number")throw Error("L`"+typeof p+"`"+p);return p};
_.Yct=function(p){if(p==null||typeof p==="number")return p;if(p==="NaN"||p==="Infinity"||p==="-Infinity")return Number(p)};
Ita=function(p){if(p!=null&&typeof p!=="boolean")throw Error("M`"+_.tm(p)+"`"+p);return p};
_.pUu=function(p){if(p==null||typeof p==="boolean")return p;if(typeof p==="number")return!!p};
_.Jm=function(p){switch(typeof p){case "bigint":return!0;case "number":return Eu(p);case "string":return yZo.test(p);default:return!1}};
_.hm=function(p){if(!Eu(p))throw _.Rv("enum");return p|0};
_.C7=function(p){return p==null?p:Eu(p)?p|0:void 0};
lVc=function(p){if(typeof p!=="number")throw _.Rv("int32");if(!Eu(p))throw _.Rv("int32");return p|0};
_.WR=function(p){return p==null?p:lVc(p)};
_.aT=function(p){if(p==null)return p;if(typeof p==="string"&&p)p=+p;else if(typeof p!=="number")return;return Eu(p)?p|0:void 0};
_.q$6=function(p){if(p==null)return p;if(typeof p==="string"&&p)p=+p;else if(typeof p!=="number")return;return Eu(p)?p>>>0:void 0};
JZm=function(p){var y=0;y=y===void 0?0:y;if(!_.Jm(p))throw _.Rv("int64");var l=typeof p;switch(y){case 512:switch(l){case "string":return mi(p);case "bigint":return String($1(64,p));default:return sv6(p)}case 1024:switch(l){case "string":return tBm(p);case "bigint":return _.Xi($1(64,p));default:return ExR(p)}case 0:switch(l){case "string":return mi(p);case "bigint":return _.Xi($1(64,p));default:return jd(p)}default:return _.qL(y,"Unknown format requested type for int64")}};
ZA=function(p){return p==null?p:JZm(p)};
cZL=function(p){if(p[0]==="-")return!1;var y=p.length;return y<20?!0:y===20&&Number(p.substring(0,6))<184467};
ert=function(p){var y=p.length;return p[0]==="-"?y<20?!0:y===20&&Number(p.substring(0,7))>-922337:y<19?!0:y===19&&Number(p.substring(0,6))<922337};
hr6=function(p){if(p<0){p7(p);var y=_.yO(O$,Yx);p=Number(y);return ML(p)?p:y}y=String(p);if(cZL(y))return y;p7(p);return Xtj(O$,Yx)};
CN_=function(p){if(ert(p))return p;z56(p);return _.o6c(O$,Yx)};
uiu=function(p){if(cZL(p))return p;z56(p);return _.yO(O$,Yx)};
jd=function(p){p=g6(p);ML(p)||(p7(p),p=da8(O$,Yx));return p};
_.RrR=function(p){p=g6(p);return p>=0&&ML(p)?p:hr6(p)};
sv6=function(p){p=g6(p);if(ML(p))p=String(p);else{var y=String(p);ert(y)?p=y:(p7(p),p=_.o6c(O$,Yx))}return p};
_.WPg=function(p){p=g6(p);if(p>=0&&ML(p))p=String(p);else{var y=String(p);cZL(y)?p=y:(p7(p),p=_.yO(O$,Yx))}return p};
mi=function(p){var y=g6(Number(p));if(ML(y))return String(y);y=p.indexOf(".");y!==-1&&(p=p.substring(0,y));return CN_(p)};
tBm=function(p){var y=g6(Number(p));if(ML(y))return _.Xi(y);y=p.indexOf(".");y!==-1&&(p=p.substring(0,y));return rr()?_.Xi($1(64,BigInt(p))):_.Xi(CN_(p))};
ExR=function(p){return ML(p)?_.Xi(jd(p)):_.Xi(sv6(p))};
_.aV5=function(p){return ML(p)?_.Xi(_.RrR(p)):_.Xi(_.WPg(p))};
_.mO8=function(p){var y=g6(Number(p));if(ML(y)&&y>=0)return String(y);y=p.indexOf(".");y!==-1&&(p=p.substring(0,y));return uiu(p)};
_.UOR=function(p){var y=g6(Number(p));if(ML(y)&&y>=0)return _.Xi(y);y=p.indexOf(".");y!==-1&&(p=p.substring(0,y));return rr()?_.Xi((0,_.QO)(64,BigInt(p))):_.Xi(uiu(p))};
_.jv5=function(p){if(p==null)return p;if(typeof p==="bigint")return $Ot(p)?p=Number(p):(p=$1(64,p),p=$Ot(p)?Number(p):String(p)),p;if(_.Jm(p))return typeof p==="number"?jd(p):mi(p)};
bUj=function(p,y){y=y===void 0?!1:y;var l=typeof p;if(p==null)return p;if(l==="bigint")return String($1(64,p));if(_.Jm(p))return l==="string"?mi(p):y?sv6(p):jd(p)};
_.nxa=function(p){var y=typeof p;if(p==null)return p;if(y==="bigint")return _.Xi($1(64,p));if(_.Jm(p))return y==="string"?tBm(p):ExR(p)};
GM8=function(p){if(p==null)return p;var y=typeof p;if(y==="bigint")return String($1(64,p));if(_.Jm(p)){if(y==="string")return mi(p);if(y==="number")return jd(p)}};
PNj=function(p){if(p==null)return p;var y=typeof p;if(y==="bigint")return String((0,_.QO)(64,p));if(_.Jm(p)){if(y==="string")return _.mO8(p);if(y==="number")return _.RrR(p)}};
_.w6=function(p){if(typeof p!=="string")throw Error();return p};
i9=function(p){if(p!=null&&typeof p!=="string")throw Error();return p};
_.r6=function(p){return p==null||typeof p==="string"?p:void 0};
ZUm=function(p,y,l,q){if(p!=null&&p[Sd]===Fw)return p;if(!Array.isArray(p))return l?q&2?((p=y[AZt])||(p=new y,iN(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),p=y[AZt]=p),y=p):y=new y:y=void 0,y;l=p[_.gr]|0;q=l|q&32|q&2;q!==l&&wr(p,q);return new y(p)};
MBc=function(p,y,l){p=y?lVc(p):_.aT(p);return p==null?l?0:void 0:p|0};
VBu=function(p){return p};
gx8=function(p){return p};
KPc=function(p,y,l,q,t,E){p=ZUm(p,q,l,E);t&&(p=QvR(p));return p};
wU5=function(p){return[p,this.get(p)]};
S$o=function(){return iU8||(iU8=new k1(iN([]),void 0,void 0,void 0,rZo))};
FPt=function(p){var y=NL(DA);return y?p[y]:void 0};
Nro=function(p,y){var l=l===void 0?!1:l;if(NL(LPt)&&NL(DA)&&void 0===LPt){var q=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=q[DA];if(!t)return;if(t=t.reviveUnknownFields)try{t(q,y,kM5);return}catch(E){qa(E)}}l&&(p=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(l=NL(DA))&&l in p&&(p=p[l])&&delete p[y])};
HUR=function(p,y){var l=NL(DA),q;MO&&l&&((q=p[l])==null?void 0:q[y])!=null&&mP(DOa,3)};
xOR=function(p,y){y<100||mP(Trc,1)};
dOu=function(p,y,l,q){var t=q!==void 0;q=!!q;var E=NL(DA),e;!t&&MO&&E&&(e=p[E])&&Bro(e,xOR);E=[];var C=p.length;e=4294967295;var u=!1,a=!!(y&64),m=a?y&128?0:-1:void 0;if(!(y&1)){var U=C&&p[C-1];U!=null&&typeof U==="object"&&U.constructor===Object?(C--,e=C):U=void 0;if(a&&!(y&128)&&!t){u=!0;var b;e=((b=fV5)!=null?b:VBu)(e-m,m,p,U,void 0)+m}}y=void 0;for(b=0;b<C;b++){var P=p[b];if(P!=null&&(P=l(P,q))!=null)if(a&&b>=e){var Z=b-m,K=void 0;((K=y)!=null?K:y={})[Z]=P}else E[b]=P}if(U)for(var F in U)C=U[F],
C!=null&&(C=l(C,q))!=null&&(b=+F,P=void 0,a&&!Number.isNaN(b)&&(P=b+m)<e?E[P]=C:(b=void 0,((b=y)!=null?b:y={})[F]=C));y&&(u?E.push(y):E[e]=y);t&&NL(DA)&&(p=FPt(p))&&p instanceof vx_&&(E[DA]=XUL(p));return E};
oxo=function(p){p[0]=OUo(p[0]);p[1]=OUo(p[1]);return p};
OUo=function(p){switch(typeof p){case "number":return Number.isFinite(p)?p:""+p;case "bigint":return $Ot(p)?Number(p):""+p;case "boolean":return p?1:0;case "object":if(Array.isArray(p)){var y=p[_.gr]|0;return p.length===0&&y&1?void 0:dOu(p,y,OUo)}if(p!=null&&p[Sd]===Fw)return zro(p);if(p instanceof LU){y=p.JSC$8753_value_;if(y==null)p="";else if(typeof y==="string")p=y;else{if(Mjt){for(var l="",q=0,t=y.length-10240;q<t;)l+=String.fromCharCode.apply(null,y.subarray(q,q+=10240));l+=String.fromCharCode.apply(null,
q?y.subarray(q):y);y=btoa(l)}else y=_.HR(y);p=p.JSC$8753_value_=y}return p}if(p instanceof k1)return p=p.size!==0?Array.from(Td.prototype.entries.call(p),oxo):void 0,p;return}return p};
BR=function(p,y){if(y){fV5=y==null||y===VBu||y[Y$g]!==IVc?VBu:y;try{return zro(p)}finally{fV5=void 0}}return zro(p)};
zro=function(p){p=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return dOu(p,p[_.gr]|0,OUo)};
lA8=function(p){switch(typeof p){case "boolean":return pR8||(pR8=[0,void 0,!0]);case "number":return p>0?void 0:p===0?yma||(yma=[0,void 0]):[-p,void 0];case "string":return[0,p];case "object":return p}};
quu=function(p,y,l){return p=_.vR(p,y[0],y[1],l?1:2)};
_.vR=function(p,y,l,q){q=q===void 0?0:q;if(p==null){var t=32;l?(p=[l],t|=128):p=[];y&&(t=t&-8380417|(y&1023)<<13)}else{if(!Array.isArray(p))throw Error("O");t=p[_.gr]|0;if(sTl&&1&t)throw Error("P");2048&t&&!(2&t)&&tdu();if(t&256)throw Error("Q");if(t&64)return q!==0||t&2048||wr(p,t|2048),p;if(l&&(t|=128,l!==p[0]))throw Error("R");a:{l=p;t|=64;var E=l.length;if(E){var e=E-1,C=l[e];if(C!=null&&typeof C==="object"&&C.constructor===Object){y=t&128?0:-1;e-=y;if(e>=1024)throw Error("T");for(var u in C)E=
+u,E<e&&(l[E+y]=C[u],delete C[u]);t=t&-8380417|(e&1023)<<13;break a}}if(y){u=Math.max(y,E-(t&128?0:-1));if(u>1024)throw Error("U");t=t&-8380417|(u&1023)<<13}}}t|=64;q===0&&(t|=2048);wr(p,t);return p};
tdu=function(){if(sTl)throw Error("S");mP(E1u,5)};
eVj=function(p,y){if(typeof p!=="object")return p;if(Array.isArray(p)){var l=p[_.gr]|0;return p.length===0&&l&1?void 0:Jm_(p,l,y)}if(p!=null&&p[Sd]===Fw)return cml(p);if(p instanceof k1){y=p.arrayState;if(y&2)return p;if(!p.size)return;l=iN(Array.from(Td.prototype.entries.call(p)));if(p.valueCtor)for(p=0;p<l.length;p++){var q=l[p],t=q[1];t==null||typeof t!=="object"?t=void 0:t!=null&&t[Sd]===Fw?t=cml(t):Array.isArray(t)?t=Jm_(t,t[_.gr]|0,!!(y&32)):t=void 0;q[1]=t}return l}if(p instanceof LU)return p};
Jm_=function(p,y,l){if(y&2)return p;!l||4096&y||16&y?p=Xw(p,y,!1,l&&!(y&16)):(KU(p,34),y&4&&Object.freeze(p));return p};
hVg=function(p,y,l){p=new p.constructor(y);l&&(p.copyOnWrite=SB);p.noLegacyNull=SB;return p};
cml=function(p){var y=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=y[_.gr]|0;return Fi(p,l)?p:C9_(p,y,l)?hVg(p,y):Xw(y,l)};
Xw=function(p,y,l,q){q!=null||(q=!!(34&y));p=dOu(p,y,eVj,q);q=32;l&&(q|=2);y=y&8380609|q;wr(p,y);return p};
QvR=function(p){var y=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=y[_.gr]|0;return Fi(p,l)?C9_(p,y,l)?hVg(p,y,!0):new p.constructor(Xw(y,l,!1)):p};
d6=function(p){if(p.copyOnWrite!==SB)return!1;var y=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;y=Xw(y,y[_.gr]|0);KU(y,2048);p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=y;p.copyOnWrite=void 0;p.noLegacyNull=void 0;return!0};
Ou=function(p){if(!d6(p)&&Fi(p,p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.gr]|0))throw Error();};
oT=function(p,y){y===void 0&&(y=p[_.gr]|0);y&32&&!(y&4096)&&wr(p,y|4096)};
C9_=function(p,y,l){return l&2?!0:l&32&&!(l&4096)?(wr(y,l|2),p.copyOnWrite=SB,!0):!1};
zd=function(p,y,l,q,t){var E=l+(t?0:-1),e=p.length-1;if(e>=1+(t?0:-1)&&E>=e){var C=p[e];if(C!=null&&typeof C==="object"&&C.constructor===Object)return C[l]=q,y}if(E<=e)return p[E]=q,y;if(q!==void 0){var u;e=((u=y)!=null?u:y=p[_.gr]|0)>>13&1023||536870912;l>=e?q!=null&&(E={},p[e+(t?0:-1)]=(E[l]=q,E)):p[E]=q}return y};
_.pO=function(p,y,l,q,t){var E=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=E[_.gr]|0;q=Fi(p,e)?1:q;t=!!t||q===3;q===2&&d6(p)&&(E=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=E[_.gr]|0);p=uw5(E,y);var C=p===Y1?7:p[_.gr]|0,u=RVL(C,e);var a=4&u?!1:!0;if(a){4&u&&(p=l9(p),C=0,u=IT(u,e),e=zd(E,e,y,p));for(var m=0,U=0;m<p.length;m++){var b=l(p[m]);b!=null&&(p[U++]=b)}U<m&&(p.length=U);l=(u|4)&-513;u=l&=-1025;u&=-4097}u!==C&&(wr(p,u),2&u&&Object.freeze(p));return p=Wit(p,u,E,
e,y,q,a,t)};
Wit=function(p,y,l,q,t,E,e,C){var u=y;E===1||(E!==4?0:2&y||!(16&y)&&32&q)?ya(y)||(y|=!p.length||e&&!(4096&y)||32&q&&!(4096&y||16&y)?2:256,y!==u&&wr(p,y),Object.freeze(p)):(E===2&&ya(y)&&(p=l9(p),u=0,y=IT(y,q),q=zd(l,q,t,p)),ya(y)||(C||(y|=16),y!==u&&wr(p,y)));2&y||!(4096&y||16&y)||oT(l,q);return p};
uw5=function(p,y,l){p=s3(p,y,l);return Array.isArray(p)?p:Y1};
RVL=function(p,y){2&y&&(p|=2);return p|1};
ya=function(p){return!!(2&p)&&!!(4&p)||!!(256&p)};
aAc=function(p){return _.HU(p,!0)};
mL6=function(p,y){var l=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=l[_.gr]|0;a:{var t=q;q=Fi(p,q);!q&&d6(p)&&(l=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=l[_.gr]|0);var E=s3(l,y);p=!1;if(E==null){if(q){y=S$o();break a}E=[]}else if(E.constructor===k1)if(E.arrayState&2&&!q)E=Array.from(Td.prototype.entries.call(E));else{y=E;break a}else Array.isArray(E)?p=!!((E[_.gr]|0)&2):E=[];if(q){if(!E.length){y=S$o();break a}p||(p=!0,iN(E))}else if(p){p=!1;q=E;q=l9(q);for(E=0;E<
q.length;E++){var e=q[E]=l9(q[E]);Array.isArray(e[1])&&(e[1]=iN(e[1]))}E=q}!p&&t&32&&Sc8(E);q=new k1(E,void 0,MBc,MBc);t=zd(l,t,y,q);p||oT(l,t);y=q}return y};
_.tE=function(p,y,l,q){Ou(p);var t=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=t[_.gr]|0;if(l==null)return zd(t,E,y),p;var e=l===Y1?7:l[_.gr]|0,C=e,u=ya(e),a=u||Object.isFrozen(l);u||(e=0);a||(l=l9(l),C=0,e=IT(e,E),a=!1);e|=5;var m;u=(m=rRR(e))!=null?m:0;for(m=0;m<l.length;m++){var U=l[m],b=q(U,u);Object.is(U,b)||(a&&(l=l9(l),C=0,e=IT(e,E),a=!1),l[m]=b)}e!==C&&(a&&(l=l9(l),e=IT(e,E)),wr(l,e));zd(t,E,y,l);return p};
_.E3=function(p,y,l,q,t){Ou(p);var E=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;zd(E,E[_.gr]|0,y,(q==="0"?Number(l)===0:l===q)?void 0:l,t);return p};
_.UL6=function(p,y,l){if(y&2)throw Error();var q=fU(y),t=uw5(p,l,q),E=t===Y1?7:t[_.gr]|0,e=RVL(E,y);if(2&e||ya(e)||16&e)t=l9(t),E=0,e=IT(e,y),zd(p,y,l,t,q);e&=-13;e!==E&&wr(t,e);return t};
$Lg=function(p){if(MO){var y;return(y=p[c6])!=null?y:p[c6]=new Map}if(c6 in p)return p[c6];y=new Map;Object.defineProperty(p,c6,{value:y});return y};
b7a=function(p,y,l,q,t){var E=$Lg(p),e=jTL(E,p,y,l,t);e!==q&&(e&&(y=zd(p,y,e,void 0,t)),E.set(l,q));return y};
jTL=function(p,y,l,q,t){var E=p.get(q);if(E!=null)return E;for(var e=E=0;e<q.length;e++){var C=q[e];s3(y,C,t)!=null&&(E!==0&&(l=zd(y,l,E,void 0,t)),E=C)}p.set(q,E);return E};
n1t=function(p,y,l,q,t){var E=!1;q=s3(p,q,t,function(e){var C=ZUm(e,l,!1,y);E=C!==e&&C!=null;return C});
if(q!=null)return E&&!Fi(q)&&oT(p,y),q};
Gdt=function(p,y,l,q,t,E,e,C){var u=Fi(p,l);E=u?1:E;e=!!e||E===3;u=C&&!u;(E===2||u)&&d6(p)&&(y=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=y[_.gr]|0);p=uw5(y,t);var a=p===Y1?7:p[_.gr]|0,m=RVL(a,l);if(C=!(4&m)){var U=p,b=l,P=!!(2&m);P&&(b|=2);for(var Z=!P,K=!0,F=0,L=0;F<U.length;F++){var T=ZUm(U[F],q,!1,b);if(T instanceof q){if(!P){var O=Fi(T);Z&&(Z=!O);K&&(K=O)}U[L++]=T}}L<F&&(U.length=L);m|=4;m=K?m&-4097:m|4096;m=Z?m|8:m&-9}m!==a&&(wr(p,m),2&m&&Object.freeze(p));if(u&&!(8&m||!p.length&&
(E===1||(E!==4?0:2&m||!(16&m)&&32&l)))){ya(m)&&(p=l9(p),m=IT(m,l),l=zd(y,l,t,p));q=p;u=m;for(a=0;a<q.length;a++)U=q[a],m=QvR(U),U!==m&&(q[a]=m);u|=8;m=u=q.length?u|4096:u&-4097;wr(p,m)}return p=Wit(p,m,y,l,t,E,C,e)};
P9j=function(p){p==null&&(p=void 0);return p};
IT=function(p,y){return p=(2&y?p|2:p&-3)&-273};
_.Am8=function(p,y,l,q,t){Ou(p);y=_.pO(p,y,t,2,!0);var E;t=(E=rRR(y===Y1?7:y[_.gr]|0))!=null?E:0;y.push(l(q,t));return p};
Z7j=function(p,y,l,q,t,E,e){Ou(p);var C=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;p=Gdt(p,C,C[_.gr]|0,l,y,2,!0);if(E&&e)t!=null||(t=p.length-1),TM(p,t),p.splice(t,E),p.length||(p[_.gr]&=-4097);else{if(E){if(typeof t!=="number"||t<0||t>p.length)throw Error();}else q=q!=null?q:new l;t!=void 0?p.splice(t,E,q):p.push(q);t=l=p===Y1?7:p[_.gr]|0;(q=Fi(q))?(l&=-9,p.length===1&&(l&=-4097)):l|=4096;l!==t&&wr(p,l);q||oT(C)}};
Vd8=function(p,y){if(typeof p==="string")return new eZ(g6j(p),y);if(Array.isArray(p))return new eZ(new Uint8Array(p),y);if(p.constructor===Uint8Array)return new eZ(p,!1);if(p.constructor===ArrayBuffer)return p=new Uint8Array(p),new eZ(p,!1);if(p.constructor===LU)return y=Mdu(p)||new Uint8Array(0),new eZ(y,!0,p);if(p instanceof Uint8Array)return p=p.constructor===Uint8Array?p:new Uint8Array(p.buffer,p.byteOffset,p.byteLength),new eZ(p,!1);throw Error();};
hE=function(){var p=function(){throw Error();};
Object.setPrototypeOf(p,p.prototype);return p};
QTo=function(p,y){var l=l===void 0?g1t:l;return new CO(p,y,l)};
rm5=function(p,y,l,q,t){y=Kiu(y,q);y!=null&&(l=_.wR5(p,l),t(y,p),_.i7g(p,l))};
uf=function(p,y,l,q){var t=q[p];if(t)return t;t={};t.binaryFields=q;t.messageMetadata=lA8(q[0]);var E=q[1],e=1;E&&E.constructor===Object&&(t.extensions=E,E=q[++e],typeof E==="function"&&(t.isMessageSet=!0,Su_!=null||(Su_=E),Fiu!=null||(Fiu=q[e+1]),E=q[e+=2]));for(var C={};E&&Lij(E);){for(var u=0;u<E.length;u++)C[E[u]]=E;E=q[++e]}for(u=1;E!==void 0;){typeof E==="number"&&(u+=E,E=q[++e]);var a=void 0;if(E instanceof CO)var m=E;else m=kdj,e--;E=void 0;if((E=m)==null?0:E.$$isMsg){E=q[++e];a=q;var U=e;
typeof E==="function"&&(E=E(),a[U]=E);a=E}E=q[++e];U=u+1;typeof E==="number"&&E<0&&(U-=E,E=q[++e]);for(;u<U;u++){var b=C[u];a?l(t,u,m,a,b):y(t,u,m,b)}}return q[p]=t};
Lij=function(p){return Array.isArray(p)&&!!p.length&&typeof p[0]==="number"&&p[0]>0};
DLl=function(p){return Array.isArray(p)?p[0]instanceof CO?p:[N6c,p]:[p,void 0]};
Kiu=function(p,y){if(p instanceof _.RX)return p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(p))return quu(p,y,!1)};
H7u=function(p,y,l,q){var t=l.$$binaryReaderFn;p[y]=q?function(E,e,C){return t(E,e,C,q)}:t};
xL8=function(p,y,l,q,t){var E=l.$$binaryReaderFn,e,C;p[y]=function(u,a,m){return E(u,a,m,C||(C=uf(T6t,H7u,xL8,q).messageMetadata),e||(e=B6o(q)),t)}};
B6o=function(p){var y=p[fA8];if(y!=null)return y;var l=uf(T6t,H7u,xL8,p);y=l.isMessageSet?function(q,t){return Su_(q,t,l)}:function(q,t){for(;v1L(t)&&t.nextWireType_!=4;){var E=t.nextField_,e=l[E];
if(e==null){var C=l.extensions;C&&(C=C[E])&&(C=XRL(C),C!=null&&(e=l[E]=C))}if(e==null||!e(t,q,E)){C=t;e=C.fieldCursor_;dLR(C);if(C.discardUnknownFields)var u=void 0;else{var a=C.decoder_.cursor_-e;C.decoder_.cursor_=e;u=O7t(C.decoder_,a)}a=C=e=void 0;var m=q;u&&((e=(C=(a=m[DA])!=null?a:m[DA]=new vx_)[E])!=null?e:C[E]=[]).push(u)}}if(q=FPt(q))q.reviveUnknownFields=l.binaryFields[o1u];return!0};
p[fA8]=y;p[o1u]=zVa.bind(p);return y};
zVa=function(p,y,l,q){var t=this[T6t],E=this[fA8],e=quu(void 0,t.messageMetadata,!1),C=FPt(p);if(C){var u=!1,a=t.extensions;if(a){t=function(Z,K,F){if(F.length!==0)if(a[K])for(Z=_.c(F),K=Z.next();!K.done;K=Z.next()){K=Yuo(K.value);try{u=!0,E(e,K)}finally{K.free()}}else q==null||q(p,K,F)};
if(y==null)Bro(C,t);else if(C!=null){var m=C[y];m&&t(C,y,m)}if(u){var U=p[_.gr]|0;if(U&2&&U&2048&&(l==null||!l.reviveIntoImmutable))throw Error();var b=fU(U),P=function(Z,K){if(s3(p,Z,b)!=null)switch(l==null?void 0:l.resolutionBehavior){case 1:return;default:throw Error();}K!=null&&(U=zd(p,U,Z,K,b));delete C[Z]};
y==null?LL6(e,e[_.gr]|0,function(Z,K){P(Z,K)}):P(y,s3(e,y,b))}}}};
XRL=function(p){p=DLl(p);var y=p[0].$$binaryReaderFn;if(p=p[1]){var l=B6o(p),q=uf(T6t,H7u,xL8,p).messageMetadata;return function(t,E,e){return y(t,E,e,q,l)}}return y};
IAo=function(p,y,l){p[y]=l.$$binaryWriterFn};
yE6=function(p,y,l,q){var t,E,e=l.$$binaryWriterFn;p[y]=function(C,u,a){return e(C,u,a,E||(E=uf(p65,IAo,yE6,q).messageMetadata),t||(t=llm(q)))}};
llm=function(p){var y=p[q3t];if(!y){var l=uf(p65,IAo,yE6,p);y=function(q,t){return sXc(q,t,l)};
p[q3t]=y}return y};
sXc=function(p,y,l){LL6(p,p[_.gr]|0,function(q,t){if(t!=null){var E=tZ5(l,q);E?E(y,t,q):q<500||mP(EXo,3)}});
(p=FPt(p))&&Bro(p,function(q,t,E){W6(y,y.encoder_.end());for(q=0;q<E.length;q++)W6(y,Mdu(E[q])||new Uint8Array(0))})};
tZ5=function(p,y){var l=p[y];if(l)return l;if(l=p.extensions)if(l=l[y]){l=DLl(l);var q=l[0].$$binaryWriterFn;if(l=l[1]){var t=llm(l),E=uf(p65,IAo,yE6,l).messageMetadata;l=p.isMessageSet?Fiu(E,t):function(e,C,u){return q(e,C,u,E,t)}}else l=q;
return p[y]=l}};
_.JEl=function(p,y,l){if(Array.isArray(y)){var q=y[_.gr]|0;if(q&4)return y;for(var t=0,E=0;t<y.length;t++){var e=p(y[t]);e!=null&&(y[E++]=e)}E<t&&(y.length=E);l&&(wr(y,(q|5)&-1537),q&2&&Object.freeze(y));return y}};
_.aX=function(p,y,l){return new CO(p,y,l)};
_.cEm=function(p,y,l){return new CO(p,y,l)};
_.U3=function(p,y,l){zd(p,p[_.gr]|0,y,l,fU(p[_.gr]|0))};
hfg=function(p,y,l){y=_.Yct(y);y!=null&&(_.bf(p,l,1),p=p.encoder_,l=efR||(efR=new DataView(new ArrayBuffer(8))),l.setFloat64(0,+y,!0),O$=l.getUint32(0,!0),Yx=l.getUint32(4,!0),_.GB(p,O$),_.GB(p,Yx))};
_.P6=function(p,y,l){y=GM8(y);if(y!=null){switch(typeof y){case "string":Cft(y)}if(y!=null)switch(_.bf(p,l,0),typeof y){case "number":p=p.encoder_;p7(y);uXl(p,O$,Yx);break;case "bigint":l=BigInt.asUintN(64,y);l=new Rfg(Number(l&BigInt(4294967295)),Number(l>>BigInt(32)));uXl(p.encoder_,l.JSC$8797_lo,l.JSC$8797_hi);break;default:l=Cft(y),uXl(p.encoder_,l.JSC$8797_lo,l.JSC$8797_hi)}}};
al_=function(p,y,l){y=_.aT(y);y!=null&&y!=null&&(_.bf(p,l,0),_.Wwt(p.encoder_,y))};
_.Um_=function(p,y,l){mmj(p,l,PNj(y))};
_.$mt=function(p,y,l){y=_.pUu(y);y!=null&&(_.bf(p,l,0),p.encoder_.JSC$8799_buffer_.push(y?1:0))};
_.bOg=function(p,y,l){y=_.r6(y);y!=null&&jXg(p,l,sgc(y))};
nXg=function(p,y,l,q,t){y=Kiu(y,q);y!=null&&(l=_.wR5(p,l),t(y,p),_.i7g(p,l))};
_.GBl=function(p,y,l){y=y==null||typeof y=="string"||y instanceof LU?y:void 0;y!=null&&jXg(p,l,Vd8(y,!0).buffer)};
_.Pf6=function(p,y,l){y=_.aT(y);y!=null&&(y=parseInt(y,10),_.bf(p,l,0),_.Wwt(p.encoder_,y))};
_.AE=function(p,y){return function(l,q){var t={treatNewDataAsImmutable:!0};q&&Object.assign(t,q);l=Yuo(l,void 0,void 0,t);try{var E=new p,e=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;B6o(y)(e,l);var C=E}finally{l.free()}return C}};
_.Zl=function(p){return function(y){return AEa(y,p)}};
ZOt=function(p){return function(){return AEa(this,p)}};
_.MZt=function(p){return vU(function(y){return y instanceof p&&!Fi(y)})};
_.Mm=function(p){return function(y){return VZR(p,y)}};
w68=function(p,y){return gXj({child:p,origin:y||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:QXL,getPayloadCase:function(l){return l.getPayloadCase()},
createInitMessage:function(l){var q=new Va,t=new Kwc;l=_.gu(t,1,l);return _.Qa(q,5,KO,l)}})};
ru=function(p){return{valueOf:p}.valueOf()};
rEL=function(){var p=null;if(!iOt)return p;try{var y=function(l){return l};
p=iOt.createPolicy("goog#html",{createHTML:y,createScript:y,createScriptURL:y})}catch(l){}return p};
Fwj=function(){S3t===void 0&&(S3t=rEL());return S3t};
_.FX=function(p){var y=Fwj();p=y?y.createScriptURL(p):p;return new SZ(p)};
_.LO=function(p){if(p instanceof SZ)return p.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.Nm=function(p){return Object.isFrozen(p)&&Object.isFrozen(p.raw)};
Lwt=function(p){return p.toString().indexOf("`")===-1};
H6=function(p){return new _.Dl(kBo,p)};
TB=function(p){return p instanceof _.Dl};
_.xX=function(p){if(TB(p))return p.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
B6=function(p){return new Dmg(function(y){return y.substr(0,p.length+1).toLowerCase()===p+":"})};
fO=function(p,y){y=y===void 0?HOm:y;if(TB(p))return p;for(var l=0;l<y.length;++l){var q=y[l];if(q instanceof Dmg&&q.isValid(p))return H6(p)}};
_.XX=function(p,y){y=y===void 0?HOm:y;return fO(p,y)||v6};
_.du=function(p){var y=window;if(typeof MediaSource!=="undefined"&&p instanceof MediaSource||typeof y.ManagedMediaSource!=="undefined"&&p instanceof y.ManagedMediaSource)return H6(URL.createObjectURL(p));y=p.type;y.toLowerCase()==="application/octet-stream"?y=!0:(y=y.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),y=(y==null?void 0:y.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(y[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(y[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(y[1])||/^font\/[\w-]+$/i.test(y[1])));if(!y)throw Error("Z");return H6(URL.createObjectURL(p))};
_.Tut=function(p){for(var y=_.oX.apply(1,arguments),l=[p[0]],q=0;q<y.length;q++)l.push(String(y[q])),l.push(p[q+1]);return H6(l.join(""))};
_.Buu=function(p){if(!xm6){a:{var y=document.createElement("a");try{y.href=p}catch(l){p=void 0;break a}p=y.protocol;p=p===":"||p===""?"https:":p}return p}try{y=new URL(p)}catch(l){return"https:"}return y.protocol};
_.zB=function(p){p instanceof _.Dl?p=_.xX(p):p=flu.test(p)?p:void 0;return p};
YX=function(p,y){y=_.zB(y);y!==void 0&&(p.href=y)};
pC=function(p){var y=Fwj();p=y?y.createHTML(p):p;return new IX(p)};
ye=function(p){if(p instanceof IX)return p.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.l6=function(p,y){p.src=_.LO(y).toString()};
vXu=function(p,y){p.setAttribute("sandbox","");for(var l=0;l<y.length;l++)p.sandbox.supports&&!p.sandbox.supports(y[l])||p.sandbox.add(y[l])};
_.dmo=function(p,y,l){p.removeAttribute("srcdoc");switch(y){case 0:if(l instanceof SZ)throw new X65("TrustedResourceUrl",0);vXu(p,[]);y=_.zB(l);y!==void 0&&(p.src=y);break;case 1:if(!(l instanceof SZ))throw new X65(typeof l,1);vXu(p,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.l6(p,l);break;case 2:if(l instanceof SZ)throw new X65("TrustedResourceUrl",2);vXu(p,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
y=_.zB(l);y!==void 0&&(p.src=y);break;default:_.qL(y)}};
_.s8=function(p,y,l,q){y=_.zB(y);return y!==void 0?p.open(y,l,q):null};
_.tw=function(p){p=p===void 0?document:p;var y,l;p=(l=(y=p).querySelector)==null?void 0:l.call(y,"script[nonce]");return p==null?"":p.nonce||p.getAttribute("nonce")||""};
_.Jw=function(p){var y=Fwj();p=y?y.createScript(p):p;return new _.E8(p)};
OO8=function(p){if(p instanceof _.E8)return p.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
oXo=function(p){var y=_.tw(p.ownerDocument);y&&p.setAttribute("nonce",y)};
_.cH=function(p,y){p.textContent=OO8(y);oXo(p)};
_.e_=function(p,y){p.src=_.LO(y);oXo(p)};
_.hw=function(p,y){if(p.nodeType===1&&/^(script|style)$/i.test(p.tagName))throw Error("Z");p.innerHTML=ye(y)};
_.CC=function(p,y,l,q){if(p.length===0)throw Error("Z");p=p.map(function(E){if(E instanceof zfR)E=E.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return E});
var t=l.toLowerCase();if(p.every(function(E){return t.indexOf(E)!==0}))throw Error("aa`"+l);
y.setAttribute(l,q)};
_.R9=function(p,y,l){if(y instanceof SZ)p.href=_.LO(y).toString(),p.rel=l;else{if(Y3g.indexOf(l)===-1)throw Error("ba`"+l);y=_.zB(y);y!==void 0&&(p.href=y,p.rel=l)}};
Ilu=function(p){return"function"==typeof _.WH&&p instanceof _.WH};
_.pHm=function(p){if(Ilu(p))return p.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.ywL=function(p,y){y=_.zB(y);y!==void 0&&(p.href=y)};
lhm=function(p,y){p&&(y=p.indexOf(y),0<=y&&p.splice(y,1))};
a9=function(p){return typeof p==="function"};
q8g=function(p){return p instanceof mb||p&&"closed"in p&&a9(p.remove)&&a9(p.add)&&a9(p.unsubscribe)};
U8=function(){};
$q=function(p){s9g(function(){throw p;})};
j_=function(p){return p};
b6=function(){return t_o(_.oX.apply(0,arguments))};
t_o=function(p){return p.length===0?j_:p.length===1?p[0]:function(y){return p.reduce(function(l,q){return q(l)},y)}};
Eqo=function(p){var y;return(y=p!=null?p:void 0)!=null?y:Promise};
Jwa=function(p,y){return new nC(function(l){var q=0;return y.schedule(function(){q===p.length?l.complete():(l.next(p[q++]),l.closed||this.schedule())})})};
cwt=function(p,y){if(!p)throw Error("ca");return new nC(function(l){var q=new mb;q.add(y.schedule(function(){var t=p[Symbol.asyncIterator]();q.add(y.schedule(function(){var E=this;t.next().then(function(e){e.done?l.complete():(l.next(e.value),E.schedule())})}))}));
return q})};
e_c=function(p,y,l){y=y.schedule(function(){try{l.call(this)}catch(q){p.error(q)}},0);
p.add(y)};
C6j=function(p,y){return new nC(function(l){var q;l.add(y.schedule(function(){q=p[h__]();e_c(l,y,function(){var t=q.next(),E=t.value;t.done?l.complete():(l.next(E),this.schedule())})}));
return function(){var t;return a9((t=q)==null?void 0:t.return)&&q.return()}})};
uD_=function(p,y){return new nC(function(l){var q=new mb;q.add(y.schedule(function(){var t=p[Gw]();q.add(t.subscribe({next:function(E){q.add(y.schedule(function(){return l.next(E)}))},
error:function(E){q.add(y.schedule(function(){return l.error(E)}))},
complete:function(){q.add(y.schedule(function(){return l.complete()}))}}))}));
return q})};
R_5=function(p,y){return new nC(function(l){return y.schedule(function(){return p.then(function(q){l.add(y.schedule(function(){l.next(q);l.add(y.schedule(function(){return l.complete()}))}))},function(q){l.add(y.schedule(function(){return l.error(q)}))})})})};
Wb5=function(p){return new TypeError("da`"+(p!==null&&typeof p==="object"?"an invalid object":"'"+p+"'"))};
mNm=function(p,y){if(p!=null){if(a9(p[Gw]))return uD_(p,y);if(ah6(p))return Jwa(p,y);if(a9(p==null?void 0:p.then))return R_5(p,y);if(Symbol.asyncIterator&&a9(p==null?void 0:p[Symbol.asyncIterator]))return cwt(p,y);if(a9(p==null?void 0:p[h__]))return C6j(p,y)}throw Wb5(p);};
MN=function(p,y){return y?mNm(p,y):Zh(p)};
Zh=function(p){if(p instanceof nC)return p;if(p!=null){if(a9(p[Gw]))return UNo(p);if(ah6(p))return $Nu(p);if(a9(p==null?void 0:p.then))return j9g(p);if(Symbol.asyncIterator&&a9(p==null?void 0:p[Symbol.asyncIterator]))return bCa(p);if(a9(p==null?void 0:p[h__]))return nq5(p)}throw Wb5(p);};
UNo=function(p){return new nC(function(y){var l=p[Gw]();if(a9(l.subscribe))return l.subscribe(y);throw new TypeError("ea");})};
$Nu=function(p){return new nC(function(y){for(var l=0;l<p.length&&!y.closed;l++)y.next(p[l]);y.complete()})};
j9g=function(p){return new nC(function(y){p.then(function(l){y.closed||(y.next(l),y.complete())},function(l){return y.error(l)}).then(null,$q)})};
nq5=function(p){return new nC(function(y){for(var l=p[h__]();!y.closed;){var q=l.next(),t=q.value;q.done?y.complete():y.next(t)}return function(){return a9(l==null?void 0:l.return)&&l.return()}})};
bCa=function(p){return new nC(function(y){Gwj(p,y).catch(function(l){return y.error(l)})})};
Gwj=function(p,y){var l,q,t,E,e,C;return _.h(function(u){switch(u.nextAddress){case 1:_.Ve(u,2,3),E=_.gR(p);case 5:return u.yield(E.next(),8);case 8:q=u.yieldResult;if(q.done){u.jumpTo(3);break}e=q.value;y.next(e);u.jumpTo(5);break;case 3:_.Qe(u);_.KC(u,9);if(!q||q.done||!(t=E.return)){u.jumpTo(9);break}return u.yield(t.call(E),9);case 9:_.Qe(u,0,0,1);if(l)throw l.error;_.wR(u,10,1);break;case 10:_.wR(u,4);break;case 2:C=_.i6(u);l={error:C};u.jumpTo(3);break;case 4:y.complete(),_.rR(u)}})};
P6L=function(p,y){return y?Jwa(p,y):$Nu(p)};
Awj=function(p){return a9(p[p.length-1])?p.pop():void 0};
S_=function(p){var y=p[p.length-1];return y&&a9(y.schedule)?p.pop():void 0};
FD=function(){var p=_.oX.apply(0,arguments),y=S_(p);return y?Jwa(p,y):P6L(p)};
LC=function(p){var y=a9(p)?p:function(){return p};
return new nC(function(l){return l.error(y())})};
kq=function(p){return function(y){if(a9(y==null?void 0:y.lift))return y.lift(function(l){try{return p(l,this)}catch(q){this.error(q)}});
throw new TypeError("fa");}};
Dh=function(){return kq(function(p,y){var l=null;p._refCount++;var q=new NN(y,void 0,void 0,void 0,function(){if(!p||p._refCount<=0||0<--p._refCount)l=null;else{var t=p._connection,E=l;l=null;!t||E&&t!==E||t.unsubscribe();y.unsubscribe()}});
p.subscribe(q);q.closed||(l=p.connect())})};
M_c=function(){var p=ZCc;var y=y===void 0?0:y;return kq(function(l,q){q.add(p.schedule(function(){return l.subscribe(q)},y))})};
Tw=function(p){return kq(function(y,l){var q=0;y.subscribe(new NN(l,function(t){l.next(p.call(void 0,t,q++))}))})};
gqt=function(p){return Tw(function(y){return V_6(y)?p.apply(null,_.xq(y)):p(y)})};
rwg=function(p){if(p.length===1){var y=p[0];if(Q9l(y))return{args:y,keys:null};if(y&&typeof y==="object"&&Kbc(y)===wHg)return p=iCm(y),{args:p.map(function(l){return y[l]}),
keys:p}}return{args:p,keys:null}};
BH=function(){var p=_.oX.apply(0,arguments),y=S_(p),l=Awj(p);p=rwg(p);var q=p.args,t=p.keys;if(q.length===0)return MN([],y);y=new nC(S8a(q,y,t?function(E){for(var e={},C=0;C<E.length;C++)e[t[C]]=E[C];return e}:j_));
return l?y.pipe(gqt(l)):y};
S8a=function(p,y,l){l=l===void 0?j_:l;return function(q){Fbl(y,function(){for(var t=p.length,E=Array(t),e=t,C=p.map(function(){return!1}),u=!0,a={i$jscomp$216:0};a.i$jscomp$216<t;a={i$jscomp$216:a.i$jscomp$216},a.i$jscomp$216++)Fbl(y,function(m){return function(){MN(p[m.i$jscomp$216],y).subscribe(new fC(q,function(U){E[m.i$jscomp$216]=U;
u&&(C[m.i$jscomp$216]=!0,u=!C.every(j_));u||q.next(l(E.slice()))},function(){return--e===0}))}}(a),q)},q)}};
Fbl=function(p,y,l){p?l.add(p.schedule(y)):y()};
Lbc=function(p,y,l,q){var t=[],E=0,e=0,C=!1,u=function(a){E++;Zh(l(a,e++)).subscribe(new NN(y,function(m){y.next(m)},void 0,function(){E--;
for(var m={};t.length&&E<q;m={bufferedValue:void 0})m.bufferedValue=t.shift(),u(m.bufferedValue);!C||t.length||E||y.complete()}))};
p.subscribe(new NN(y,function(a){return E<q?u(a):t.push(a)},void 0,function(){C=!0;
!C||t.length||E||y.complete()}));
return function(){t=null}};
vH=function(p,y){var l=l===void 0?Infinity:l;if(a9(y))return vH(function(q,t){return Tw(function(E,e){return y(q,E,t,e)})(Zh(p(q,t)))},l);
typeof y==="number"&&(l=y);return kq(function(q,t){return Lbc(q,t,p,l)})};
kwc=function(p){p=p===void 0?Infinity:p;return vH(j_,p)};
NRt=function(){var p=_.oX.apply(0,arguments);return kwc(1)(P6L(p,S_(p)))};
DNt=function(p){return new nC(function(y){Zh(p()).subscribe(y)})};
XD=function(p,y,l){if(a9(l)){var q=l;l=void 0}if(q)return XD(p,y,l).pipe(gqt(q));q=_.c(a9(p.addEventListener)&&a9(p.removeEventListener)?HC6.map(function(e){return function(C){return p[e](y,C,l)}}):a9(p.addListener)&&a9(p.removeListener)?TR8.map(xN8(p,y)):a9(p.on)&&a9(p.off)?BRa.map(xN8(p,y)):[]);
var t=q.next().value,E=q.next().value;return!t&&ah6(p)?vH(function(e){return XD(e,y,l)})(P6L(p)):new nC(function(e){if(!t)throw new TypeError("ga");
var C=function(){var u=_.oX.apply(0,arguments);return e.next(1<u.length?u:u[0])};
t(C);return function(){return E(C)}})};
xN8=function(p,y){return function(l){return function(q){return p[l](y,q)}}};
O8=function(){var p=_.oX.apply(0,arguments),y=S_(p);var l=typeof p[p.length-1]==="number"?p.pop():Infinity;return p.length?p.length===1?Zh(p[0]):kwc(l)(P6L(p,y)):dR};
vq8=function(p){return p.length===1&&fht(p[0])?p[0]:p};
XHc=function(){var p=vq8(_.oX.apply(0,arguments));return kq(function(y,l){var q=[y].concat(_.xq(p)),t=function(){if(!l.closed)if(q.length>0){try{var E=Zh(q.shift())}catch(C){t();return}var e=new NN(l,void 0,U8,U8);l.add(E.subscribe(e));e.add(t)}else l.complete()};
t()})};
zw=function(p){return kq(function(y,l){var q=0;y.subscribe(new NN(l,function(t){return p.call(void 0,t,q++)&&l.next(t)}))})};
OC5=function(){var p=_.oX.apply(0,arguments);p=vq8(p);return p.length===1?Zh(p[0]):new nC(dNo(p))};
dNo=function(p){return function(y){for(var l=[],q={i$jscomp$219:0};l&&!y.closed&&q.i$jscomp$219<p.length;q={i$jscomp$219:q.i$jscomp$219},q.i$jscomp$219++)l.push(Zh(p[q.i$jscomp$219]).subscribe(new NN(y,function(t){return function(E){if(l){for(var e=0;e<l.length;e++)e!==t.i$jscomp$219&&l[e].unsubscribe();l=null}y.next(E)}}(q))))}};
oqt=function(){var p=_.oX.apply(0,arguments),y=Awj(p),l=vq8(p);return l.length?new nC(function(q){var t=l.map(function(){return[]}),E=l.map(function(){return!1});
q.add(function(){t=E=null});
for(var e={sourceIndex$jscomp$1:0};!q.closed&&e.sourceIndex$jscomp$1<l.length;e={sourceIndex$jscomp$1:e.sourceIndex$jscomp$1},e.sourceIndex$jscomp$1++)Zh(l[e.sourceIndex$jscomp$1]).subscribe(new NN(q,function(C){return function(u){t[C.sourceIndex$jscomp$1].push(u);t.every(function(a){return a.length})&&(u=t.map(function(a){return a.shift()}),q.next(y?y.apply(null,_.xq(u)):u),t.some(function(a,m){return!a.length&&E[m]})&&q.complete())}}(e),void 0,function(C){return function(){E[C.sourceIndex$jscomp$1]=
!0;
!t[C.sourceIndex$jscomp$1].length&&q.complete()}}(e)));
return function(){t=E=null}}):dR};
z_8=function(p){var y,l,q;return!!p&&typeof p.active==="boolean"&&typeof((y=p.clock)==null?void 0:y.now)==="function"&&((l=p.clock)==null?void 0:l.timeline)!==void 0&&!((q=p.lastMeasurement)==null||!q.timestamp)&&typeof p.equivalentTo==="function"&&typeof p.extrapolateToNow==="function"&&typeof p.extrapolateToTime==="function"&&typeof p.map==="function"&&typeof p.joinWith==="function"};
Y86=function(p){function y(l){return typeof l==="boolean"||typeof l==="string"||typeof l==="number"||l===void 0||l===null}
return y(p)?!0:Array.isArray(p)?p.every(y):typeof p==="object"?Object.keys(p).every(function(l){return typeof l==="string"})&&Object.values(p).every(function(l){return Array.isArray(l)?l.every(y):y(l)}):!1};
IhL=function(p){if(Y86(p))return p;if(z_8(p))return{lastMeasurement:{value:IhL(p.lastMeasurement.value),timestamp:Yq(p.lastMeasurement.timestamp,new I9(0,p.lastMeasurement.timestamp.timeline))},active:p.active};try{return JSON.parse(JSON.stringify(p))}catch(y){}return String(p)};
p0=function(p,y){return function(l){return new nC(function(q){return l.subscribe(function(t){p.timeExecution(y,function(){q.next(t)})()},function(t){p.timeExecution(y,function(){q.error(t)})()},function(){p.timeExecution(y,function(){q.complete()})()})})}};
pJl=function(p,y){var l=!1;return new nC(function(q){var t=p.setTimeout(function(){l=!0;q.next(!0);q.complete()},y);
return function(){l||p.clearTimeout(t)}})};
yQt=function(p){p=p.global;if(p.fetchLater)return p.fetchLater.bind(p)};
yE=function(p){return kq(function(y,l){var q=null,t=!1,E;q=y.subscribe(new NN(l,void 0,function(e){E=Zh(p(e,yE(p)(y)));q?(q.unsubscribe(),q=null,E.subscribe(l)):t=!0}));
t&&(q.unsubscribe(),q=null,E.subscribe(l))})};
l7m=function(p,y,l){return function(q,t){var E=l,e=y,C=0;q.subscribe(new NN(t,function(u){var a=C++;e=E?p(e,u,a):(E=!0,u);t.next(e)},void 0,void 0))}};
q6_=function(p){p=p===void 0?null:p;return kq(function(y,l){var q=!1;y.subscribe(new NN(l,function(t){q=!0;l.next(t)},void 0,function(){q||l.next(p);
l.complete()}))})};
lz=function(){return kq(function(p,y){p.subscribe(new NN(y,U8))})};
qQ=function(p){return kq(function(y,l){y.subscribe(new NN(l,function(){return l.next(p)}))})};
tQ=function(p){return p<=0?function(){return dR}:kq(function(y,l){var q=0;
y.subscribe(new NN(l,function(t){++q<=p&&(l.next(t),p<=q&&l.complete())}))})};
E6=function(p){var y=y===void 0?j_:y;var l;p=(l=p)!=null?l:sl6;return kq(function(q,t){var E,e=!0;q.subscribe(new NN(t,function(C){var u=y(C);if(e||!p(E,u))e=!1,E=u,t.next(C)}))})};
sl6=function(p,y){return p===y};
EIc=function(p){p=p===void 0?tOt:p;return kq(function(y,l){var q=!1;y.subscribe(new NN(l,function(t){q=!0;l.next(t)},void 0,function(){return q?l.complete():l.error(p())}))})};
tOt=function(){return new JQt};
JQ=function(){var p=_.oX.apply(0,arguments);return function(y){return NRt(y,FD.apply(null,_.xq(p)))}};
cQo=function(p){return kq(function(y,l){var q=0;y.subscribe(new NN(l,function(t){p.call(void 0,t,q++,y)||(l.next(!1),l.complete())},void 0,function(){l.next(!0);
l.complete()}))})};
e$_=function(){return kq(function(p,y){var l=[];p.subscribe(new NN(y,function(q){l.push(q);1<l.length&&l.shift()},void 0,function(){for(var q=_.c(l),t=q.next();!t.done;t=q.next())y.next(t.value);
y.complete()},function(){l=null}))})};
h$L=function(p,y){var l=arguments.length>=2;return function(q){return q.pipe(p?zw(function(t,E){return p(t,E,q)}):j_,e$_(),l?q6_(y):EIc(function(){return new JQt}))}};
eO=function(p){var y=a9(p)?p:function(){return p};
return a9()?kq(function(l,q){var t=y();(void 0)(t).subscribe(q).add(l.subscribe(t))}):function(l){var q=new cJ(l,y);
a9(l==null?void 0:l.lift)&&(q.lift=l.lift);q.source=l;q.subjectFactory=y;return q}};
C0=function(p){var y=new hQ(p,void 0,void 0);return function(l){return eO(function(){return y})(l)}};
uz=function(p,y){return kq(l7m(p,y,arguments.length>=2))};
al=function(){var p=_.oX.apply(0,arguments),y=S_(p);return kq(function(l,q){(y?NRt(p,l,y):NRt(p,l)).subscribe(q)})};
mJ=function(p){return kq(function(y,l){var q=null,t=0,E=!1;y.subscribe(new NN(l,function(e){var C;(C=q)==null||C.unsubscribe();C=t++;Zh(p(e,C)).subscribe(q=new NN(l,function(u){return l.next(u)},void 0,function(){q=null;
E&&!q&&l.complete()}))},void 0,function(){(E=!0,!q)&&l.complete()}))})};
U6=function(p,y){y=y===void 0?!1:y;return kq(function(l,q){var t=0;l.subscribe(new NN(q,function(E){var e=p(E,t++);(e||y)&&q.next(E);!e&&q.complete()}))})};
Czt=function(p,y,l){var q=a9(p)||y||l?{next:p,error:y,complete:l}:p;return q?kq(function(t,E){t.subscribe(new NN(E,function(e){var C;(C=q.next)==null||C.call(q,e);E.next(e)},function(e){var C;
(C=q.error)==null||C.call(q,e);E.error(e)},function(){var e;
(e=q.complete)==null||e.call(q);E.complete()}))}):j_};
uq8=function(){var p=_.oX.apply(0,arguments),y=Awj(p);return kq(function(l,q){for(var t=p.length,E=Array(t),e=p.map(function(){return!1}),C=!1,u={i$jscomp$229:0};u.i$jscomp$229<t;u={i$jscomp$229:u.i$jscomp$229},u.i$jscomp$229++)Zh(p[u.i$jscomp$229]).subscribe(new NN(q,function(a){return function(m){E[a.i$jscomp$229]=m;
C||e[a.i$jscomp$229]||(e[a.i$jscomp$229]=!0,(C=e.every(j_))&&(e=null))}}(u),void 0,U8));
l.subscribe(new NN(q,function(a){C&&(a=[a].concat(_.xq(E)),q.next(y?y.apply(null,_.xq(a)):a))}))})};
R$g=function(p){var y=[],l=0,q;for(q in p)y[l++]=q;return y};
WJL=function(p,y){for(var l in p)if(p[l]==y)return!0;return!1};
a78=function(p,y,l){for(var q in p)if(y.call(l,p[q],q,p))return q};
mQL=function(p){if(!p||typeof p!=="object")return p;if(typeof p.clone==="function")return p.clone();if(typeof Map!=="undefined"&&p instanceof Map)return new Map(p);if(typeof Set!=="undefined"&&p instanceof Set)return new Set(p);if(p instanceof Date)return new Date(p.getTime());var y=Array.isArray(p)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(p)||p instanceof DataView?{}:new p.constructor(p.length),l;for(l in p)y[l]=mQL(p[l]);return y};
UQa=function(p){var y=arguments.length;if(y==1&&Array.isArray(arguments[0]))return UQa.apply(null,arguments[0]);if(y%2)throw Error("ka");for(var l={},q=0;q<y;q+=2)l[arguments[q]]=arguments[q+1];return l};
$Q_=function(p){var y=arguments.length;if(y==1&&Array.isArray(arguments[0]))return $Q_.apply(null,arguments[0]);for(var l={},q=0;q<y;q++)l[arguments[q]]=!0;return l};
_.$I=function(p){return new zfR(p[0].toLowerCase())};
jl8=function(p){try{return new URL(p,window.document.baseURI)}catch(y){return new URL("about:invalid")}};
b0_=function(p,y){var l=y.createRange();l.selectNode(y.body);p=pC(p);return l.createContextualFragment(ye(p))};
nIj=function(p){p=p.nodeName;return typeof p==="string"?p:"FORM"};
Gsj=function(p){p=p.nodeType;return p===1||typeof p!=="number"};
jO=function(p,y,l){p.setAttribute(y,l)};
PzL=function(p){return p.parts.map(function(y){var l=y.descriptor;return""+y.url+(l?" "+l:"")}).join(" , ")};
_.bz=function(p){var y=_.oX.apply(1,arguments);if(y.length===0)return _.FX(p[0]);for(var l=p[0],q=0;q<y.length;q++)l+=encodeURIComponent(y[q])+p[q+1];return _.FX(l)};
_.n0=function(p,y){p=_.LO(p).toString();var l=p.split(/[?#]/),q=/[?]/.test(p)?"?"+l[1]:"";return AQR(l[0],q,/[#]/.test(p)?"#"+(q?l[2]:l[1]):"",y)};
AQR=function(p,y,l,q){function t(e,C){e!=null&&(Array.isArray(e)?e.forEach(function(u){return t(u,C)}):(y+=E+encodeURIComponent(C)+"="+encodeURIComponent(e),E="&"))}
var E=y.length?"&":"?";q.constructor===Object&&(q=Object.entries(q));Array.isArray(q)?q.forEach(function(e){return t(e[1],e[0])}):q.forEach(t);
return _.FX(p+y+l)};
Gs=function(p,y,l,q){this.top=p;this.right=y;this.bottom=l;this.left=q};
Z0c=function(p){p=p.global;if(p.PendingGetBeacon)return p.PendingGetBeacon};
AQ=function(p){return function(y){return y.pipe(MOa(p,eO(new PJ)))}};
Z7=function(p){return function(y){return y.pipe(MOa(p,C0(1)))}};
MOa=function(p,y){function l(q){return new nC(function(t){return q.subscribe(function(E){gV(p,function(){return void t.next(E)},3)},function(E){gV(p,function(){return void t.error(E)},3)},function(){gV(p,function(){return void t.complete()},3)})})}
return b6(l,M_c(),y,Dh(),l)};
Qlc=function(p){var y=VOm(p);return y===null?new QE(null):y.pipe(Tw(function(l){l=l.serialize();if(gI6)l=_.l_.btoa(l);else{for(var q=[],t=0,E=0;E<l.length;E++){var e=l.charCodeAt(E);e>255&&(q[t++]=e&255,e>>=8);q[t++]=e}l=_.HR(q)}return l}),tQ(1),Z7(p.queue))};
KJ_=function(p){var y=y===void 0?{}:y;if(typeof Event==="function")return new Event(p,y);if(typeof document!=="undefined"){var l=document.createEvent("CustomEvent");l.initCustomEvent(p,y.bubbles||!1,y.cancelable||!1,y.detail);return l}throw Error();};
wJ_=function(p){return typeof p==="string"?document.getElementById(p):p};
rQj=function(p){var y=!1;y=y===void 0?!1:y;if(p.tagName==="IMG"){if(p.complete&&(!p.naturalWidth||!p.naturalHeight))return!0;var l;if(y&&((l=p.style)==null?void 0:l.display)==="none")return!0}var q,t;return i0l.test((q=p.getAttribute("width"))!=null?q:"")&&i0l.test((t=p.getAttribute("height"))!=null?t:"")};
S6j=function(p,y){if(p.tagName==="IMG")return p.naturalWidth&&p.naturalHeight?!0:!1;try{if(p.readyState)var l=p.readyState;else{var q,t;l=(q=p.contentWindow)==null?void 0:(t=q.document)==null?void 0:t.readyState}return l==="complete"}catch(E){return y===void 0?!1:y}};
FJc=function(p){p||(p=function(y,l,q){y.addEventListener(l,q)});
return p};
DQ5=function(p,y){var l=LJ5();l=l===void 0?new ksa:l;if(p=wJ_(p)){var q=FJc(q);for(var t=!1,E=function(F){t||(t=!0,y(F))},e,C=2,u=0;u<NVt.length;++u)if(NVt[u]===p.tagName){C=3;
e=[p];break}e||(e=p.querySelectorAll(NVt.join(",")));var a=0,m=0,U=!0,b=p=!1;u={};for(var P=0;P<e.length;u={isImg:void 0},P++){var Z=e[P];if(!rQj(Z))if(u.isImg=Z.tagName==="IMG",S6j(Z,l.crossDomainLoadedDefault))p=!0,u.isImg&&(U=!0);else{a++;var K=function(F){return function(L){a--;!a&&U&&E(C);F.isImg&&(L=L&&L.type==="error",m--,L||(U=!0),!m&&b&&U&&E(C))}}(u);
q(Z,"load",K);u.isImg&&(m++,q(Z,"error",K))}}m===0&&(U=!0);e=null;e=_.l_.document.readyState==="complete";if(a===0&&!p&&e)C=5;else if(a||!p){q(_.l_,"load",function(){!l.pendingImagesBlockLoad||!m&&U?E(4):b=!0});
return}E(C)}};
H0R=function(p,y,l){if(p)for(var q=0;p!=null&&q<500&&!l(p);++q)p=y(p)};
TVo=function(p,y){H0R(p,function(l){try{return l===l.parent?null:l.parent}catch(q){}return null},y)};
xQc=function(p,y){if(p.tagName=="IFRAME")y(p);else{p=p.querySelectorAll("IFRAME");for(var l=0;l<p.length&&!y(p[l]);++l);}};
BVj=function(p){return(p=p.ownerDocument)&&(p.parentWindow||p.defaultView)||null};
f7_=function(p,y,l){try{var q=JSON.parse(l.data)}catch(e){}if(typeof q==="object"&&q&&q.type==="creativeLoad"){var t=BVj(p);if(l.source&&t){var E;TVo(l.source,function(e){try{if(e.parent===t)return E=e,!0}catch(C){}});
E&&xQc(p,function(e){if(e.contentWindow===E)return y(q),!0})}}};
vIl=function(p){return typeof p==="string"?document.getElementById(p):p};
oI_=function(){var p={};return p[0]=_.bz(XJR,"current"),p[1]=_.bz(dQt),p[2]=_.bz(O0R),p};
K0=function(p,y){return p.left===y.left&&p.top===y.top&&p.width===y.width&&p.height===y.height};
z$L=function(p,y){return{left:Math.max(p.left,y.left),top:Math.max(p.top,y.top),width:Math.max(0,Math.min(p.left+p.width,y.left+y.width)-Math.max(p.left,y.left)),height:Math.max(0,Math.min(p.top+p.height,y.top+y.height)-Math.max(p.top,y.top))}};
Y66=function(p,y){return{left:Math.round(p.left+y.x),top:Math.round(p.top+y.y),width:p.width,height:p.height}};
I76=function(p,y,l){if(p&&y!==null&&y!=y.top){if(!y.top)return new _.wV(-12245933,-12245933);y=y.top}try{return(l===void 0?0:l)?(new _.wV(y.innerWidth,y.innerHeight)).round():_.iz(y).round()}catch(q){return new _.wV(-12245933,-12245933)}};
p9_=function(p,y,l){try{if(p){if(!y.top)return new Gs(-12245933,-12245933,-12245933,-12245933);y=y.top}var q=I76(p,y,l),t=q.height,E=q.width;if(E===-12245933)return new Gs(E,E,E,E);var e=rV(SO(y.document)),C=e.x,u=e.y;return new Gs(u,C+E,u+t,C)}catch(a){return new Gs(-12245933,-12245933,-12245933,-12245933)}};
yqt=function(p){var y;return(y=p.google_tag_data)!=null?y:p.google_tag_data={}};
lzl=function(p){var y,l;return typeof((y=p.navigator)==null?void 0:(l=y.userAgentData)==null?void 0:l.getHighEntropyValues)==="function"};
sYj=function(p){if(!lzl(p))return null;var y=yqt(p);if(y.uach_promise)return y.uach_promise;p=p.navigator.userAgentData.getHighEntropyValues(qE_).then(function(l){y.uach!=null||(y.uach=l);return l});
return y.uach_promise=p};
mFm=function(p){var y;return trg(EPg(Jqt(cq_(eyu(hyR(C4c(uZl(RyR(new W2c,p.architecture||""),p.bitness||""),p.mobile||!1),p.model||""),p.platform||""),p.platformVersion||""),p.uaFullVersion||""),((y=p.fullVersionList)==null?void 0:y.map(function(l){var q=new azg;q=_.Fq(q,1,l.brand);return _.Fq(q,2,l.version)}))||[]),p.wow64||!1)};
UFo=function(p){var y,l;return(l=(y=sYj(p))==null?void 0:y.then(function(q){return mFm(q)}))!=null?l:null};
$F6=function(p,y){return new nC(function(l){var q=!1,t=Array(y.length);t.fill(void 0);var E=new Set,e=new Set,C=function(U,b){p.running?(t[b]=U,E.add(b),q||(q=!0,gV(p,function(){q=!1;l.next(_.og(t))},1))):l.error(new L0(b))},u=function(U,b){e.add(b);
E.add(b);gV(p,function(){l.error(U)},1)},a=function(U){e.add(U);
gV(p,function(){e.size===y.length&&l.complete()},1)},m=y.map(function(U,b){return U.subscribe(function(P){return void C(P,b)},function(P){return void u(P,b)},function(){return void a(b)})});
return function(){m.forEach(function(U){return void U.unsubscribe()})}})};
nPj=function(p,y,l){function q(){if(y.debugChannel){var F=y.debugChannel,L=F.next;var T={creativeId:y.debugNames.getName(l),requiredSignals:t,signals:Object.assign({},E),hasPrematurelyCompleted:e,errorMessage:C,erroredSignalKey:u};T={specMajor:2,specMinor:0,specPatch:0,timestamp:Yq(y.timeProvider.now(),new I9(0,y.timeProvider.timeline)),instanceId:y.debugNames.getName(y.symbol),creativeState:T};L.call(F,T)}}
for(var t=Object.keys(p),E={},e=!1,C=null,u=null,a={},m=new Set,U=[],b=[],P=_.c(t),Z=P.next(),K={};!Z.done;K={key$jscomp$396:void 0},Z=P.next())K.key$jscomp$396=Z.value,Z=p[K.key$jscomp$396],Z instanceof QE?(a[K.key$jscomp$396]=Z.value,m.add(K.key$jscomp$396),y.debugChannel&&(E[String(K.key$jscomp$396)]=IhL(Z.value))):(Z=Z.pipe(E6(function(F,L){return z_8(F)||z_8(L)?!1:F===L}),Tw(function(F){return function(L){y.debugChannel&&(E[String(F.key$jscomp$396)]=IhL(L),q());
var T={};return T[F.key$jscomp$396]=L,T}}(K)),yE(function(F){return function(L){if(L instanceof L0)throw new jYt(String(F.key$jscomp$396));
throw L;}}(K)),Czt(function(F){return function(){m.add(F.key$jscomp$396)}}(K),function(F){return function(L){u=String(F.key$jscomp$396);
C=String(L);q()}}(K),function(F){return function(){m.has(F.key$jscomp$396)||(e=!0,q())}}(K))),b.push(K.key$jscomp$396),U.push(Z));
(p=Object.keys(E).length>0)&&q();P=$F6(y.queue,U).pipe(yE(function(F){if(F instanceof L0)throw new bSL(String(b[F.inputObservableIndex]));throw F;}),Tw(function(F){return Object.freeze(Object.assign.apply(Object,[{},
a].concat(_.xq(F))))}));
return(U=U.length>0)&&p?O8(FD(Object.freeze(a)),P):U?P:FD(Object.freeze(a))};
GH8=function(p,y,l,q,t){return p.performanceMonitor.timeExecution.bind(p.performanceMonitor)(733,function(){var E={};try{return y.pipe(yE(function(e){q(Object.assign({},E,{error:e}));return dR}),vH(function(e){try{var C=l(p,e)}catch(a){return q(Object.assign({},E,{error:a instanceof Error?a:String(a)})),dR}var u={};
return nPj(C,p,e.symbol).pipe(Czt(function(a){u=a}),C0(1),Dh()).pipe(t,yE(function(a){q(Object.assign({},u,{error:a}));
return dR}),JQ(void 0),Tw(function(){return!0}))})).pipe(uz(function(e){return e+1},0),yE(function(e){q(Object.assign({},E,{error:e}));
return dR}))}catch(e){return q(Object.assign({},E,{error:e})),dR}})()};
kI=function(p){var y=new Map;if(typeof p!=="object"||p===null)return y;Object.values(p).forEach(function(l){l&&typeof l.extrapolateToNow==="function"&&(y.has(l.clock.timeline)||y.set(l.clock.timeline,l.clock.now()))});
return y};
P45=function(p,y){return typeof p==="string"?encodeURIComponent(p):typeof p==="number"?String(p):Array.isArray(p)?p.map(function(l){return P45(l,y)}).join(","):p instanceof I9?p.toString():p&&typeof p.extrapolateToNow==="function"?P45(p.extrapolateUsingTimestampMap(y).value,y):p===!0?"1":p===!1?"0":p===void 0||p===null?null:p instanceof Aqt?ZSl(p):[p.top,
p.left,p.top+p.height,p.left+p.width].join()};
Mra=function(p,y){p=Object.entries(p).map(function(l){var q=_.c(l);l=q.next().value;q=q.next().value;q=P45(q,y);return q===null?"":l+"="+q}).filter(function(l){return l!==""});
return p.length?p.join("&"):""};
QY5=function(p,y){var l=VrL,q=gP_;y=y===void 0?.01:y;return function(t){y>0&&Math.random()<=y&&(p.global.HTMLFencedFrameElement&&p.global.fence&&typeof p.global.fence.reportEvent==="function"&&p.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),t=Object.assign({},t,{errorMessage:t.error instanceof Error&&t.error.message?t.error.message:String(t.error),errorStack:t.error instanceof Error&&t.error.stack?String(t.error.stack):null,errorName:t.error instanceof
Error&&t.error.name?String(t.error.name):null,errorContext:String(p.performanceMonitor.timedFunctionContext),errorEscapedQueryId:t.escapedQueryId}),l(Object.assign({},t,{payloadMapper:function(){return function(E){try{return q(Object.assign({},E))}catch(e){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),kI(t)).forEach(function(E){p.beaconFactory.makeBeacon(E).sendNow()}))}};
K2j=function(){var p=_.oX.apply(0,arguments);return function(y){var l=y.pipe(C0(1),Dh());y=p.map(function(q){return l.pipe(q,JQ(!0))});
return BH(y).pipe(tQ(1),lz())}};
w9u=function(){var p=_.oX.apply(0,arguments);return function(y){var l=y.pipe(C0(1),Dh());y=p.map(function(q){return l.pipe(q,JQ(!0))});
return O8.apply(null,_.xq(y)).pipe(tQ(1),lz())}};
iSR=function(p,y){return function(l){var q=l.pipe(C0(1),Dh());l=q.pipe(p,JQ(!0));q=q.pipe(b6(y,C0(),Dh()),JQ(!0));l=BH([l,q]);return OC5(l,q).pipe(tQ(1),lz())}};
rqt=function(p,y,l){l(!0)};
SEc=function(p,y){return b6(mJ(function(l){var q=p(l),t=y(l),E={};return q&&t&&E?new nC(function(e){t(q,E,function(C){e.next(Object.assign({},l,{canEmit:C}));e.complete()});
return function(){}}):NQ}),zw(function(l){return l.canEmit}))};
F2t=function(p){var y={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(l){return l.pipe(mJ(function(q){return new nC(function(t){function E(){C.disconnect();u.unsubscribe()}
var e=p.MutationObserver;if(e&&q.ref!==void 0){var C=new e(function(a){t.next(a)});
C.observe(q.ref,y);var u=q.JSC$9294_released.subscribe(E);return E}})}))}};
L25=function(p){if(p.measurementDeferralState===3)return null;if(p.timeOnScreenReason!==void 0){var y=p.creativeFound===!1?"n":null;if(y!==null)return y}return p.geometricMeasurementErrors instanceof D7?"msf":p.contextValidationErrors instanceof HJ?"c":p.contextVisibilityKnown===!1?"pv":p.geometricMeasurementErrors||p.contextValidationErrors?"x":null};
Ngc=function(p,y){return p.replace(kHm,function(l,q){try{var t=_.Ts.get(y,q);if(t==null||t.toString()==null)return l;t=t.toString();if(t==""||!_.ej(t==null?"":String(t)))return encodeURIComponent(t).replace(/%2C/g,",")}catch(E){}return l})};
DF_=function(p,y){var l=Object.assign({},p),q=p.userAgentClientHints;l=(delete l.userAgentClientHints,l);l=p.payloadMapper(l);var t=Mra(l,y);return _.xI(p.urlPrefixes,function(E){var e="";typeof q==="string"&&(e="&"+Mra({uach:q},y));var C={};return Ngc(E,(C.VIEWABILITY=t,C))+e})};
VrL=function(p,y){var l=p.payloadMapper(p),q=Mra(l,y);return q?_.xI(p.urlPrefixes,function(t){t=t.indexOf("?")>=0?t:t+"?";t="?&".indexOf(t.slice(-1))>=0?t:t+"&";return t+q}):p.urlPrefixes};
HSg=function(){return b6(zw(function(p){return p!==void 0}),Tw(function(p){return p}))};
TgR=function(p){return b6(Tw(function(){return!0}),al(!1),Z7(p))};
xF_=function(p){return p.length<=0?dR:BH(p.map(function(y){var l=0;return y.pipe(Tw(function(q){return{index:l++,value:q}}))})).pipe(zw(function(y){return y.every(function(l){return l.index===y[0].index})}),Tw(function(y){return y.map(function(l){return l.value})}))};
Bgm=function(p,y){p.currentState&&(p.previousState=p.currentState);p.currentState=y;p.previousState&&p.previousState.value?(y=Math.max(0,Yq(y.timestamp,p.previousState.timestamp)),p.totalTime+=y,p.consecutiveTime+=y):p.consecutiveTime=0;return p};
fzg=function(){return b6(uz(Bgm,{totalTime:0,consecutiveTime:0}),Tw(function(p){return p.totalTime}))};
vPu=function(){return b6(uz(Bgm,{totalTime:0,consecutiveTime:0}),Tw(function(p){return p.consecutiveTime}))};
X9j=function(p,y){return function(l){return xF_(y.map(function(q){return l.pipe(p(q))}))}};
dFu=function(){var p;return b6(Czt(function(y){return void(p=y.timestamp)}),vPu(),Tw(function(y){return{timestamp:p,
value:Math.round(y)}}))};
OSc=function(p,y){return K0(p.topWindowViewportExternalGeometry,y.topWindowViewportExternalGeometry)&&K0(p.elementGeometry,y.elementGeometry)&&K0(p.exposedViewportLocalGeometry,y.exposedViewportLocalGeometry)&&K0(p.intersectionGeometry,y.intersectionGeometry)&&p.elementGeometrySourceName===y.elementGeometrySourceName&&p.measurementRequests===y.measurementRequests&&p.viewportGeometrySourceName===y.viewportGeometrySourceName&&p.viewportLocalAppOffset.x===y.viewportLocalAppOffset.x&&p.viewportLocalAppOffset.y===
y.viewportLocalAppOffset.y};
pQu=function(p,y){return function(l){return function(q){var t=q.pipe(eO(new PJ),Dh());q=l.element.pipe(E6());t=t.pipe(Tw(function(E){return E.value}));
return BH([q,t,y]).pipe(Tw(function(E){var e=_.c(E);E=e.next().value;var C=e.next().value;e=e.next().value;if(E.ref===void 0)var u={top:0,left:0,width:0,height:0};else{u=E.ref.getBoundingClientRect();var a=E.ref,m=p.global,U=new _.BJ(0,0),b=f0(_.vJ(a));if(oPu(b,"parent")){do{if(b==m)var P=_.Xq(a);else P=zyt(a),P=new _.BJ(P.left,P.top);U.x+=P.x;U.y+=P.y}while(b&&b!=m&&b!=b.parent&&(a=b.frameElement)&&(b=b.parent))}u={top:U.y,left:U.x,width:u.width,height:u.height}}u=Y66(u,C.viewportLocalAppOffset);
m=z$L(u,C.exposedViewportLocalGeometry);U=p.timeProvider.now();b=Object;a=b.assign;if(e!==2||p.inCrossDomainIframe||m.width<=0||m.height<=0)var Z=!1;else try{var K=p.document.elementFromPoint(m.left+m.width/2,m.top+m.height/2);Z=K?!YEu(K,E):!1}catch(F){Z=!1}return{timestamp:U,value:a.call(b,{},C,{elementGeometrySourceName:"geo",intersectionGeometry:Z?Izl.intersectionGeometry:m,elementGeometry:u})}}),AQ(p.queue))}}};
YEu=function(p,y,l){l=l===void 0?0:l;return p.ref===void 0||y.ref===void 0?!1:p.ref===y.ref||_.dV(y.ref,function(q){return q===p.ref})?!0:y.ref.ownerDocument&&y.ref.ownerDocument.defaultView&&y.ref.ownerDocument.defaultView===y.ref.ownerDocument.defaultView.top?!1:l<10&&y.ref.ownerDocument&&y.ref.ownerDocument.defaultView&&y.ref.ownerDocument.defaultView.frameElement?YEu(p,new O6(y.ref.ownerDocument.defaultView.frameElement),l+1):!0};
qrc=function(p){return function(y){return y.pipe(p.ResizeObserver?yUl(p):lHo(p),C0(1),Dh())}};
yUl=function(p){return function(y){return y.pipe(mJ(function(l){var q=p.ResizeObserver;if(!q||l.ref===void 0)return FD(Izl.elementGeometry);var t=(new nC(function(E){function e(){l.ref!==void 0&&C.unobserve(l.ref);C.disconnect();u.unsubscribe()}
if(l.ref===void 0)return E.complete(),function(){};
var C=new q(function(a){a.forEach(function(m){E.next(m)})});
C.observe(l.ref);var u=l.JSC$9294_released.subscribe(e);return e})).pipe(p0(p.performanceMonitor,736),Tw(function(E){return E.contentRect}));
return O8(FD(l.ref.getBoundingClientRect()),t)}),E6(K0))}};
lHo=function(p){return function(y){var l=y.pipe(F2t(p)),q=p.onResize;l=O8(y.pipe(Tw(function(){return KJ_("resize")})),l,q);
return BH(y,l).pipe(p0(p.performanceMonitor,737),Tw(function(t){t=_.c(t).next().value;return t.ref===void 0?void 0:t.ref.getBoundingClientRect()}),HSg(),E6(K0))}};
EJ5=function(p,y){var l=set(p,y).pipe(C0(1),Dh());return function(q){return function(t){t=t.pipe(mJ(function(E){return E.element}),E6());
return BH([l,t]).pipe(mJ(function(E){var e=_.c(E);E=e.next().value;e=e.next().value;return th5(p,E.intersectionObserver,qrc(p),E.observations,q,E.flushRecords,e)}),AQ(p.queue))}}};
JU5=function(p){return Tw(function(y){return y.value.viewportGeometrySourceName!=="nio"?y:Object.assign({},y,{value:Object.assign({},y.value,{exposedViewportLocalGeometry:ol(p,!0),topWindowViewportExternalGeometry:ol(p,!0)})})})};
cUl=function(p,y){return FD(y).pipe(p,Tw(function(){return y}))};
set=function(p,y){return p.timeProvider.timeline!==emL?LC(new D7(2)):p.MutationObserver?typeof IntersectionObserver==="undefined"?LC(new D7(0)):(new nC(function(l){var q=new PJ,t=new zs(q.next.bind(q),{threshold:[].concat(_.xq(y))});l.next({observations:q.pipe(p0(p.performanceMonitor,735)),intersectionObserver:t,flushRecords:function(E){E=t.takeRecords(E);E.length>0&&q.next(E)}})})).pipe(tQ(1),C0(1),Dh()):LC(new D7(1))};
hmL=function(p){return mNm(p.sort(function(y,l){return y.time-l.time}),ZCc)};
th5=function(p,y,l,q,t,E,e){return new nC(function(C){function u(){Z||(Z=!0,e.ref!==void 0&&y.unobserve(t,e.ref),m.unsubscribe(),P.unsubscribe(),b.unsubscribe(),K.unsubscribe())}
if(e.ref!==void 0){Cb8(y,t);y.observe(t,e.ref);var a=new YI({timestamp:p.timeProvider.now(),value:Object.assign({},Izl,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),m=q.pipe(vH(function(F){return hmL(F)}),zw(function(F){return F.target===e.ref}),Tw(function(F){return{timestamp:new I9(F.time,emL),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:F.rootBounds||Il,topWindowViewportExternalGeometry:F.rootBounds||ol(p,!0),measurementRequests:U,elementGeometrySourceName:"nio",intersectionGeometry:F.intersectionRect,elementGeometry:F.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:F.isIntersecting,isV2Visible:F.isVisible}}}),eO(a),Dh()).subscribe(C),U=new PJ,b=U.subscribe(function(){E(t);
C.next({timestamp:p.timeProvider.now(),value:a.value.value});e.ref!==void 0&&(y.unobserve(t,e.ref),y.observe(t,e.ref))}),P=cUl(l,e).subscribe(function(){U.next()}),Z=!1,K=e.JSC$9294_released.subscribe(function(){return u()});
return u}})};
uIo=function(p,y){var l=p.getOnBackgrounded().pipe(Tw(function(){return"b"}));
return OC5(y,l).pipe(tQ(1),Z7(p.queue))};
pS=function(p){return function(y){var l;return y.pipe(Czt(function(q){return void(l=q.timestamp)}),Tw(function(q){return q.value}),p,Tw(function(q){return{timestamp:l,
value:q}}))}};
Rmu=function(p){return p.intersectionGeometry.width*p.intersectionGeometry.height/(p.elementGeometry.width*p.elementGeometry.height)};
l4=function(p,y,l){l=l===void 0?function(q,t){return q===t}:l;
return p.timestamp.equals(y.timestamp)&&l(p.value,y.value)};
sE=function(p,y){return y.pipe(Tw(function(l){return new qF(p.timeProvider,{timestamp:p.timeProvider.now(),value:l})}))};
Wut=function(p){return function(y){return y.pipe(uq8(p),Tw(function(l){var q=_.c(l);l=q.next().value;q=q.next().value;var t=l.value;return{timestamp:l.timestamp,value:t>=1?!0:t<=0?!1:t>=q}}))}};
mAL=function(){return b6(zw(function(p,y){return y>0}),aHj,al(-1),E6())};
UAo=function(p,y,l){return p?BH([y,l]).pipe(zw(function(q){var t=_.c(q);q=t.next().value;t=t.next().value;return q.timestamp.equals(t.timestamp)}),Tw(function(q){var t=_.c(q);
q=t.next().value;t=t.next().value;return q.value>t.value?q:t})):y};
br5=function(p){return function(y){var l=y.pipe($A8),q=y.pipe(je_);return p instanceof nC?p.pipe(mJ(function(t){return UAo(t,l,q)})):UAo(p.value,l,q)}};
Kuu=function(p,y,l,q){var t=q.geometryIsOccluded,E=q.exposureThreshold,e=q.wasLargeAdAtRender,C=q.allowLargeAdThreshold,u=q.largeAdExposureThreshold,a=q.mayUseViewportShareExposure,m=q.hasMeasurementStarted;q=q.useIntersectionObserverV2;y=nJR(p,l,y);l=GP5(p,l);q=Pbj(y,q);var U=AU6(p,t,a,y),b=U.pipe(Tw(function(v){return v.value}),E6(),Z7(p),uz(function(v,z){return Math.max(v,z)},0)),P=U.pipe(Tw(function(v){return v.value}),mAL(),Z7(p)),Z=y.pipe(ZrL,Tw(function(v){return v.value}),tQ(2),E6(),Z7(p));
e=Mhg(p,y,e,C);var K=e.pipe(al(!1),E6(),Tw(function(v){return v?u:E}));
C=U.pipe(Wut(K),E6(),Z7(p));var F=BH([C,y]).pipe(zw(function(v){var z=_.c(v);v=z.next().value;z=z.next().value;return v.timestamp.equals(z.timestamp)}),Tw(function(v){var z=_.c(v);
v=z.next().value;z=z.next().value;return{visible:v.value,geometry:z.value.elementGeometry}}),uz(function(v,z){return!z.visible&&v.visible?v:z},{visible:!1,
geometry:Il}),Tw(function(v){return v.geometry}),al(Il),Z7(p),E6(K0));
a=a instanceof nC?a.pipe(E6(),qQ()):NQ;K=BH([a,K]).pipe(qQ());var L=y.pipe(zw(function(v){return v.value.viewportGeometrySourceName!=="ns"&&v.value.elementGeometrySourceName!=="ns"}),uz(function(v){return v+1},0),al(0),Z7(p)),T=l.pipe(qQ(!0),al(!1),Z7(p));
T=BH([m,T]).pipe(Tw(function(v){var z=_.c(v);v=z.next().value;z=z.next().value;return v&&!z}),Z7(p));
var O=y.pipe(Vhj,E6()),f=O.pipe(Tw(function(v){return v.value}),uz(function(v,z){return Math.max(v,z)},0),E6(),Z7(p));
p=O.pipe(Tw(function(v){return v.value}),mAL(),Z7(p));
return{shouldResetExposureSignals:a,shouldResetViewabilitySignals:K,geometrySignals:{readyGeometryWithDefault:y,measurementStrategy:y.pipe(gJt),creativePosition:F.pipe(E6(K0)),visible:C.pipe(E6(l4)),timestampedExposure:U.pipe(E6(l4)),maximumExposure:b,minimumExposure:P,browserSize:y.pipe(Qea,E6(_.eB)),timestampedScreenShare:O,maxScreenShare:f,minScreenShare:p,geometricMeasurementErrors:l,measurementRequests:y.pipe(Tw(function(v){return v.value.measurementRequests})),
isLargeAd:e,geometryIsOccluded:t,hasMeasurementStarted:m,geometryMeasurable:T,validMeasurementCount:L,loadTimeExposure:Z,v2VisibilityBitVector:q}}};
GP5=function(p,y){return y.pipe(zw(function(){return!1}),Tw(function(l){return l}),yE(function(l){return tq(new QE(l),p)}))};
nJR=function(p,y,l){return y.pipe(XHc(NQ),Z7(p)).pipe(E6(function(q,t){return l4(q,t,OSc)}),al({timestamp:l.now(),
value:Izl}),Z7(p))};
AU6=function(p,y,l,q){l=q.pipe(br5(l),pS(Tw(function(t){return Math.round(t*100)/100})),Z7(p));
return y instanceof QE?l:BH([l,y]).pipe(Tw(function(t){var E=_.c(t);t=E.next().value;E=E.next().value;return{timestamp:E.timestamp.maximum(t.timestamp),value:E.value?0:t.value}}),E6(l4),Z7(p))};
Mhg=function(p,y,l,q){y=[y.pipe(Tw(function(t){return t.value.elementGeometry.width*t.value.elementGeometry.height>=242500}))];
l instanceof nC&&y.push(l.pipe(Tw(function(t){return!!t})));
l=BH(y);return q?l.pipe(Tw(function(t){return t.some(function(E){return E})}),al(!1),E6(),Z7(p)):tq(new QE(!1),p)};
Pbj=function(p,y){p=BH([p,y]).pipe(Tw(function(t){var E=_.c(t);t=E.next().value;if(E.next().value&&t.value.isIntersecting)return t.value.isV2Visible}),E6());
var l=p.pipe(Tw(function(t){return t===void 0?!0:t}),uz(function(t,E){return t||!E},!1)),q=p.pipe(uz(function(t,E){return E===void 0?t:E?!1:t!=null?t:!0},void 0),Tw(function(t){return!!t}));
return BH([y,oqt(p,l,q)]).pipe(Tw(function(t){var E=_.c(t);t=E.next().value;var e=_.c(E.next().value);E=e.next().value;var C=e.next().value;e=e.next().value;var u=0;if(!t)return 0;if(E===void 0)return 16;E&&(u|=1);E||(u|=2);C&&(u|=4);e&&(u|=8);return u}))};
Lut=function(p,y,l,q,t){var E=wQm.timeThresholdMs;var e=e===void 0?new irj(y,q):e;return(new nC(function(C){var u=l.pipe(al(void 0),mJ(function(){return rU_(t)})).pipe(Tw(function(a){var m=a.value;
a=a.timestamp;var U=m.visible;m=m.consecutiveViewTime;var b=m>=E;b||!U?SrL(e):(a=Math.max(0,Yq(y.now(),a)),Fu5(e,Math.max(0,E-m-a)));return b}),uz(function(a,m){return m||a},!1),E6()).subscribe(C);
return function(){e.dispose();u.unsubscribe()}})).pipe(U6(function(C){return!C},!0),Z7(p))};
rU_=function(p){return xF_([p,p.pipe(dFu())]).pipe(Tw(function(y){var l=_.c(y);y=l.next().value;l=l.next().value;return{timestamp:y.timestamp,value:{visible:y.value,consecutiveViewTime:l.value}}}),E6(function(y,l){return l4(y,l,function(q,t){return q.consecutiveViewTime===t.consecutiveViewTime&&q.visible===t.visible})}))};
kPm=function(){return b6(vPu(),uz(function(p,y){return Math.max(p,y)},0),Tw(function(p){return Math.round(p)}))};
Nqg=function(p){return b6(Wut(FD(p)),kPm())};
DAt=function(p,y){return y instanceof nC?y.pipe(mJ(function(l){return(l=l?15:null)?LC(new D7(l)):p})):(y=y.value?15:null)?LC(new D7(y)):p};
Hru=function(p){var y=new D7(13);if(p.length<1)return{chain:dR,capturedErrors:dR};var l=new PJ,q=p[0];return{chain:p.slice(1).reduce(function(t,E){return t.pipe(yE(function(e){l.next(e);return E}))},q).pipe(yE(function(t){l.next(t);
return LC(y)}),eO(new PJ),Dh()),
capturedErrors:l}};
Tqt=function(p,y){var l=p.pipe(eO(new PJ),Dh());return mJ(function(q){return l.pipe(y(q))})};
Bqm=function(p,y){if(p.inCrossDomainIframe)return LC(new D7(6));var l=new PJ;return O8(FD({}),y,l).pipe(Tw(function(){return{timestamp:p.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:xAR(p),topWindowViewportExternalGeometry:ol(p,!0),measurementRequests:l,viewportLocalAppOffset:{x:0,y:0}}}}),AQ(p.queue))};
xAR=function(p){var y=ol(p,!1);if(!p.inIframe||!fHl(p.global.parent)||p.global.parent===p.global)return y;var l=new EE(p.global.parent,p.debugChannel);l.beaconFactory=p.beaconFactory;l=xAR(l);p=p.global.frameElement.getBoundingClientRect();return z$L(Y66(z$L(l,p),{x:y.left-p.left,y:y.top-p.top}),y)};
vJg=function(p){if(p.prerendering)return 3;var y;return(y={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[p.visibilityState||p.webkitVisibilityState||p.mozVisibilityState||""])!=null?y:0};
XQ_=function(p){return p.document.JSC$9305_onVisibilityChange.pipe(Tw(function(y){return y==="visible"}),E6(),Z7(p.queue))};
dAo=function(p,y,l){var q;return y.pipe(E6(),mJ(function(t){return l.pipe(Tw(function(){if(!q){q=!0;try{t.next()}finally{q=!1}}return!0}))}),al(!1),Z7(p.queue))};
Or_=function(p){return b6(pS(Tw(function(y){return y>=1?!0:y<=0?!1:y>=p})),fzg(),Tw(function(y){return Math.round(y)}))};
zmm=function(p,y,l,q,t){var E=oJj;if(E.length>1)for(var e=0;e<E.length-1;e++)if(E[e]<E[e+1])throw Error();e=t.pipe(al(void 0),mJ(function(){return l.pipe(dFu())}),E6(),Z7(p));
t=t.pipe(al(void 0),mJ(function(){return l.pipe(kPm())}),E6(),Z7(p));
return{totalMeasurementTime:q.pipe(al(void 0),mJ(function(){return y.pipe(Tw(function(C){return{timestamp:C.timestamp,value:!0}}),fzg())}),E6(),Z7(p)),
totalUnviewedTime:q.pipe(al(void 0),mJ(function(){return y.pipe(Tw(function(C){return{timestamp:C.timestamp,value:C.value===0}}),fzg())}),E6(),Z7(p)),
maxTimeOnScreen:q.pipe(al(void 0),mJ(function(){return y.pipe(X9j(Nqg,E))}),E6(_.eB),Z7(p)),
timeOnScreen:q.pipe(al(void 0),mJ(function(){return y.pipe(X9j(Or_,E),Tw(function(C){return C.map(function(u,a){return a>0?u-C[a-1]:u})}))}),E6(_.eB),Z7(p)),
maxConsecutiveViewTime:t,consecutiveViewTime:e.pipe(E6(l4),Z7(p))}};
IHR=function(p){var y=!0;y=y===void 0?!1:y;return b6(mJ(function(l){return Yrm(p.document,l,y)}),Z7(p.queue))};
puu=function(p,y,l){var q=l.pipe(Tw(function(t){return{value:t,timestamp:p.timeProvider.now()}}),E6(l4));
return y instanceof nC?y.pipe(E6(),mJ(function(t){return t?tq(new QE({value:!1,timestamp:p.timeProvider.now()}),p.queue):q})):y.value===!1?q:new QE(!1)};
yML=function(p,y,l,q,t,E,e){var C=wQm;y=y instanceof nC?y.pipe(al(!1),E6()):y;var u=!p.isMobile();l=puu(p,l,q);p=e.measurableCreative.pipe(TgR(p.queue));return Object.assign({},C,{geometryIsOccluded:l,wasLargeAdAtRender:t,allowLargeAdThreshold:u,mayUseViewportShareExposure:y,hasMeasurementStarted:p,useIntersectionObserverV2:E})};
qYL=function(p,y,l,q,t,E){var e=1;E=E===void 0?!0:E;e=e===void 0?.01:e;var C=C===void 0?p.timeProvider.intervalObservable(100).pipe(Z7(p.queue)):C;return p.performanceMonitor.timeExecution(916,function(){return lk6(p,y.pipe(AQ(p.queue)),l.pipe(AQ(p.queue)),q,t,E,e,C)})()};
lk6=function(p,y,l,q,t,E,e,C){var u=XQ_(p).pipe(Tw(function(m){return!m})),a=new s48(p,[new tcR(p,oJj),
new EZu(p,C)]);C=K2j(JM6,cMt);return GH8(p,y,function(m,U){var b=tq(new QE(U.element),m.queue).pipe(IHR(m),Z7(m.queue)),P={loadedElement:b,shouldMeasure:b.pipe(qQ(!0)),measurableCreative:b.pipe(Tw(function(v){var z=z===void 0?Symbol():z;return Object.freeze({symbol:z,element:tq(new QE(v),m.queue)})})),
creativeSearchResult:tq(new QE("mue"),m.queue)},Z=new QE(!1),K=new QE(!1),F=new QE(17),L=new QE(!1),T=new QE(!1),O=tq(Jq,m.queue);Z=a.buildGeometrySource(P,{inApp:Z,useV2:!1,requestSource:tq(F,m.queue)}).geometrySource;P=yML(m,L,K,u,T,O,P);K=Kuu(m.queue,m.timeProvider,Z,P);P=K.geometrySignals;L=K.shouldResetViewabilitySignals;K=zmm(m.queue,P.timestampedExposure,P.visible,K.shouldResetExposureSignals,L);L=Lut(m.queue,m.timeProvider,L,P.measurementRequests,P.visible);T=l.pipe(zw(function(v){return v===
U.element.ref}),Tw(function(){return"ur"}));
O=pJl(m.timeProvider,t).pipe(qQ("t"));T=uIo(m,O8(T,O));O=dAo(m,P.measurementRequests,T.pipe(zw(function(v){return v!==null})));
Z=T.pipe(zw(function(v){return v!==null}),Tw(function(){return vJg(m.global.document)===1}));
var f=enR(m.document);return Object.assign({},{beaconFactory:new QE(m.beaconFactory),context:new QE(m),inferredPingId:new QE("lidar2"),timeOnScreenPingId:new QE("lidartos"),binaryContext:new QE(17),binaryVersion:new QE(q),requestSource:F,contextValidationErrors:new QE(m.validate()?null:new HJ),contextVisibilityKnown:new QE(f),payloadMapper:new QE(gP_),endOfSessionReason:T,timeOnScreenReason:T,requestMeasurementOnEndOfSession:O,hasImpressionFired:hnj,crossDomainIframeState:new QE(m.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:Jq,inFetchLaterBeaconExperiment:Jq,isTurtlex:Jq,turtlexReportEventData:new QE(""),reportFencedFrameEvent:NQ,isViewableAttributionEnabled:Jq,inViewableAttributionExperiment:new QE(0),fetchBeaconFactory:NQ,supportsPendingBeacon:Jq,supportsFetchLater:Jq,emit:new QE(rqt),beginToRenderEvent:new QE(Symbol()),activeViewUnmeasurableEvent:new QE(Symbol()),activeViewViewableEvent:new QE(Symbol()),creativeFound:hnj,immediateUrlPrefixes:new QE(U.immediateUrls),timeOnScreenUrlPrefixes:new QE(U.timeOnScreenUrls),
cpmavUrls:NQ,viewableRelayUrls:NQ,measurementDeferralState:new QE(2),urlSerializer:new QE(DF_),viewUrlSerializer:new QE(CBL),isCreativeLoaded:b.pipe(TgR(m.queue)),pageVisible:u.pipe(Tw(function(v){return!v})),
eosPageVisible:Z,timestampedExposureHistory:P.timestampedExposure.pipe(uz(function(v,z){v.push(z);return v},[]))},P,{viewable:sE(m,L),
maxTimeOnScreen:sE(m,K.maxTimeOnScreen),timeOnScreen:sE(m,K.timeOnScreen),maxConsecutiveViewTime:sE(m,K.maxConsecutiveViewTime),consecutiveViewTime:K.consecutiveViewTime.pipe(Tw(function(v){return new qF(m.timeProvider,v)})),
totalMeasurementTime:sE(m,K.totalMeasurementTime),totalUnviewedTime:sE(m,K.totalUnviewedTime),userAgentClientHints:Qlc(m),clientOrderPingCounter:new QE(new Aqt)})},QY5(p,e),w9u(E?iSR(C,uF6):iSR(C,RnR),Wq_))};
akm=function(p){var y=_.oX.apply(1,arguments).filter(Boolean).join("&");if(!y)return p;var l=p.match(/[?&]adurl=/);return l?p.slice(0,l.index+1)+y+"&"+p.slice(l.index+1):p+(p.indexOf("?")<0?"?":"&")+y};
c9=function(p,y){return y?"&"+p+"="+encodeURIComponent(y):""};
mVL=function(){try{var p,y;return!!((p=window)==null?0:(y=p.top)==null?0:y.location.href)&&!1}catch(l){return!0}};
_.er=function(p){p&&typeof p.dispose=="function"&&p.dispose()};
_.hq=function(p){for(var y=0,l=arguments.length;y<l;++y){var q=arguments[y];_.zl(q)?_.hq.apply(null,q):_.er(q)}};
$V5=function(){var p=UVg();p=p===void 0?"bevasrsg":p;return new Promise(function(y){var l=window===window.top?window:mVL()?window:window.top,q=l[p],t;((t=q)==null?0:t.bevasrs)?y(new CS(q.bevasrs)):(q||(q={},q=(q.nqfbel=[],q),l[p]=q),q.nqfbel.push(function(E){y(new CS(E))}))})};
j4t=function(p){var y={c:p.m3,e:p.xvh,mc:p.gD3,me:p.nDG};p.bX&&(y.co={c:p.bX.f8Z,a:p.bX.ako,s:p.bX.i5G});return y};
b6t=function(p){var y,l,q={m3:p.c,xvh:p.e,gD3:(y=p.mc)!=null?y:!1,nDG:(l=p.me)!=null?l:!1};p.co&&(q.bX={f8Z:p.co.c,ako:p.co.a,i5G:p.co.s});return q};
nZo=function(p){return function(){var y;return _.h(function(l){if(l.nextAddress==1)return l.yield(p(),2);y=l.yieldResult;return l.return({f:function(){return y.w30()},
c:function(q){return y.coc(q)},
m:function(q){return y.eo(b6t(q))},
mws:function(q){return y.jZZ(b6t(q))}})})}};
Gi5=function(p,y){var l=UVg();l=l===void 0?"bevasrsg":l;y={s:function(E){var e;return p.snapshot(Object.assign({},E.c&&{m3:E.c},E.s&&{dGX:E.s},{nxl:(e=E.p)!=null?e:!0}))},
e:function(E){var e;return void((e=p.dzV)==null?void 0:e.call(p,E))},
c:function(E,e){return p.a3k(E,e)},
p:p.f1g,l:function(){return p.qBV()},
wpc:y?nZo(y):void 0};var q=window===window.top?window:mVL()?window:window.top,t=q[l];if(t){t.bevasrs=y;if(t.nqfbel!==void 0)for(l=_.c(t.nqfbel),q=l.next();!q.done;q=l.next())q=q.value,q(y);t.nqfbel=void 0}else t={},t=(t.bevasrs=y,t.nqfbel=void 0,t),q[l]=t};
AM_=function(p){var y=y===void 0?50:y;var l=[];_.u4(p,PBL,6,_.RY()).forEach(function(q){_.W9(q,2)<=y&&l.push(_.W9(q,1))});
return l};
Z6u=function(p){var y=y===void 0?50:y;var l=[];_.u4(p,PBL,6,_.RY()).forEach(function(q){_.W9(q,2)>y&&l.push(_.W9(q,1))});
return l};
Mcg=function(p){p.then(function(){},function(){})};
aY=function(p){return{fieldType:1,fieldName:p}};
m2=function(p){return{fieldType:2,fieldName:p}};
_.UE=function(p){return{fieldType:3,fieldName:p}};
Vct=function(){function p(){t[0]=1732584193;t[1]=4023233417;t[2]=2562383102;t[3]=271733878;t[4]=3285377520;m=a=0}
function y(U){for(var b=e,P=0;P<64;P+=4)b[P/4]=U[P]<<24|U[P+1]<<16|U[P+2]<<8|U[P+3];for(P=16;P<80;P++)U=b[P-3]^b[P-8]^b[P-14]^b[P-16],b[P]=(U<<1|U>>>31)&4294967295;U=t[0];var Z=t[1],K=t[2],F=t[3],L=t[4];for(P=0;P<80;P++){if(P<40)if(P<20){var T=F^Z&(K^F);var O=1518500249}else T=Z^K^F,O=1859775393;else P<60?(T=Z&K|F&(Z|K),O=2400959708):(T=Z^K^F,O=3395469782);T=((U<<5|U>>>27)&4294967295)+T+L+O+b[P]&4294967295;L=F;F=K;K=(Z<<30|Z>>>2)&4294967295;Z=U;U=T}t[0]=t[0]+U&4294967295;t[1]=t[1]+Z&4294967295;t[2]=
t[2]+K&4294967295;t[3]=t[3]+F&4294967295;t[4]=t[4]+L&4294967295}
function l(U,b){if(typeof U==="string"){U=unescape(encodeURIComponent(U));for(var P=[],Z=0,K=U.length;Z<K;++Z)P.push(U.charCodeAt(Z));U=P}b||(b=U.length);P=0;if(a==0)for(;P+64<b;)y(U.slice(P,P+64)),P+=64,m+=64;for(;P<b;)if(E[a++]=U[P++],m++,a==64)for(a=0,y(E);P+64<b;)y(U.slice(P,P+64)),P+=64,m+=64}
function q(){var U=[],b=m*8;a<56?l(C,56-a):l(C,64-(a-56));for(var P=63;P>=56;P--)E[P]=b&255,b>>>=8;y(E);for(P=b=0;P<5;P++)for(var Z=24;Z>=0;Z-=8)U[b++]=t[P]>>Z&255;return U}
for(var t=[],E=[],e=[],C=[128],u=1;u<64;++u)C[u]=0;var a,m;p();return{reset:p,update:l,digest:q,digestString:function(){for(var U=q(),b="",P=0;P<U.length;P++)b+="0123456789ABCDEF".charAt(Math.floor(U[P]/16))+"0123456789ABCDEF".charAt(U[P]%16);return b}}};
rMt=function(p,y){y=y===void 0?gZm:y;if(!Q4m){var l;p=(l=p.navigator)==null?void 0:l.userAgentData;if(!p||typeof p.getHighEntropyValues!=="function"||p.brands&&typeof p.brands.map!=="function")return Promise.reject(Error("ua"));Kqm((p.brands||[]).map(function(t){var E=new wu_;E=_.Fq(E,1,t.brand);return _.Fq(E,2,t.version)}));
typeof p.mobile==="boolean"&&_.jr(i6o,2,p.mobile);Q4m=p.getHighEntropyValues(y)}var q=new Set(y);return Q4m.then(function(t){var E=i6o.clone();q.has("platform")&&_.Fq(E,3,t.platform);q.has("platformVersion")&&_.Fq(E,4,t.platformVersion);q.has("architecture")&&_.Fq(E,5,t.architecture);q.has("model")&&_.Fq(E,6,t.model);q.has("uaFullVersion")&&_.Fq(E,7,t.uaFullVersion);return E.serialize()}).catch(function(){return i6o.serialize()})};
b4=function(p,y,l,q){this.initialValue_=p;this.maxValue_=y;this.currBaseValue_=this.currValue_=p;this.randomFactor_=l||0;this.backoffFactor_=q||2};
nS=function(p){this.src=p;this.listeners={};this.typeCount_=0};
kic=function(){for(var p;p=SYc.remove();){try{p.fn.call(p.scope)}catch(y){qa(y)}Fq5.put(p)}Lqg=!1};
_.NT8=function(p){switch(p){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
DVa=function(p){switch(p){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
default:return""}};
_.H68=function(){};
oZo=function(p,y,l,q,t){p=TTm(xVR(BT8(new _.GH(1828,"0"),p),new fkc));y.length&&vZ5(p,Xuu(new dVL,y));q!==void 0&&(p.destinationUrl=q);t&&p.disableWithCredentials();var E=new O6_(1828,"","",!1,"",p.build());_.P9(E,p);var e=new Aq({flush:function(C){try{E.flush(C)}catch(u){l(u)}}});
e.addOnDisposeCallback(function(){setTimeout(function(){try{e.snapshotAndFlush()}finally{E.dispose()}})});
e.invocationLimit=1E5;e.flushInterval=3E4;e.JSC$9722_flushTimer.setInterval(3E4);return e};
Zz=function(){var p,y,l;return(l=(p=globalThis.performance)==null?void 0:(y=p.now)==null?void 0:y.call(p))!=null?l:Date.now()};
pCl=function(p,y){if(p.disable)return new zn8;var l=y?AM_(y):[],q=p.ak,t=p.vAA,E=p.hHx,e=p.destinationUrl,C=p.tlr;p=p.l1y;y=y==null?void 0:_.MF(y,YYm,11);var u=u===void 0?50:u;y=(y==null?void 0:_.W9(y,1))||0;q={ak:q,cZg:t,mev:E,destinationUrl:e,tlr:C,l1y:p,disableClearcutCredentialBinding:y>0&&u>=y};l=l===void 0?[]:l;return new Ik6(q,l)};
yJL=function(p){if(!p)return null;p=_.Vy(p,2);return p===null||p===void 0?null:pC(p)};
_.l36=function(p){if(!p)return null;p=_.Vy(p,4);return p===null||p===void 0?null:_.FX(p)};
tMo=function(p,y){return y?qCm(y):p?sKR(p):Promise.resolve()};
qCm=function(p){return new Promise(function(y,l){var q=_.gg("SCRIPT"),t=_.l36(p);_.e_(q,t);q.onload=function(){_.Qy(q);y()};
q.onerror=function(){_.Qy(q);l(Error("Fa"))};
(KS("HEAD")[0]||document.documentElement).appendChild(q)})};
sKR=function(p){return new Promise(function(y){var l=_.gg("SCRIPT");if(p){var q=_.Vy(p,6);q=q===null||q===void 0?null:_.Jw(q)}else q=null;_.cH(l,q);(KS("HEAD")[0]||document.documentElement).appendChild(l);_.Qy(l);y()})};
wg=function(p,y,l){var q,t=new Promise(function(E){q=setTimeout(E,y)});
return Promise.race([p.finally(function(){return void clearTimeout(q)}),
t.then(l)])};
Eh5=function(p,y){try{return globalThis.sessionStorage.setItem(p,y),!0}catch(l){return!1}};
JJt=function(p,y,l,q){y=y===void 0?0:y;l=l===void 0?p.length:l;var t=0;for(q&&(t=JJt(q));y<l;y++)q=typeof p==="string"?p.charCodeAt(y):p[y],t=cJt(31,t)+q|0;return t};
MMm=function(p,y){return[JJt(p,0,p.length>>1,y),JJt(p,p.length>>1)]};
VM_=function(p){var y=_.c(MMm(p,i4));p=y.next().value;y=y.next().value;return p.toString(16)+y.toString(16)};
ght=function(p,y){var l=MMm(y);p=new Uint32Array(p.buffer);y=p[0];var q=_.c(l);l=q.next().value;q=q.next().value;for(var t=1;t<p.length;t+=2){for(var E=y,e=t,C=l,u=q,a=0;a<22;a++)e=e>>>8|e<<24,e+=E|0,e^=C+38293,E=E<<3|E>>>29,E^=e,u=u>>>8|u<<24,u+=C|0,u^=a+38293,C=C<<3|C>>>29,C^=u;E=[E,e];p[t]^=E[0];t+1<p.length&&(p[t+1]^=E[1])}};
QK_=function(p,y,l,q,t){var E=(4-(i4.length+l.length)%4)%4,e=new Uint8Array(4+E+i4.length+4+l.length),C=new DataView(e.buffer),u=0;C.setUint32(u,Math.random()*4294967295);u=u+4+E;e.set(i4,u);u+=i4.length;C.setUint32(u,t);e.set(l,u+4);ght(e,q);return p.insert(y,function(a){return void globalThis.sessionStorage.removeItem(a)})?Eh5(y,_.HR(e))?"s":"t":"i"};
KIt=function(p,y){var l=globalThis.sessionStorage.getItem(p);if(!l)return["m"];try{var q=_.hZ(l);ght(q,y)}catch(t){return globalThis.sessionStorage.removeItem(p),["c"]}for(y=4;y<7&&q[y]===0;)y++;for(l=0;l<i4.length;l++)if(q[y++]!==i4[l])return globalThis.sessionStorage.removeItem(p),["d"];l=(new DataView(q.buffer)).getUint32(y);return Math.floor(Date.now()/1E3)>=l?(globalThis.sessionStorage.removeItem(p),["e"]):["a",new Uint8Array(q.buffer,y+4)]};
wCR=function(p){return globalThis.TextEncoder?(new TextEncoder).encode(p):_.rg(p)};
ihg=function(p){var y=p,l;return function(){if(y){var q=y;y=void 0;l=q.apply(this,arguments)}return l}};
SCj=function(p){return vU(function(y){if(y instanceof p)return!0;var l,q,t=y==null?void 0:(l=y.ownerDocument)==null?void 0:(q=l.defaultView)==null?void 0:q[p.name];return rJl(t)&&y instanceof t})};
_.LS=function(p,y,l){_.Sr.call(this);this.JSC$9937_listener_=p;this.JSC$9937_interval_=y||0;this.handler_=l;this.callback_=(0,_.FZ)(this.JSC$9939_doAction_,this)};
_.kP=function(p){p=FIt(p);return _.FX(p)};
FIt=function(p){return p===null?"null":p===void 0?"undefined":p};
kom=function(p){if(p&&p.focus)if(p!==document.activeElement)p.focus();else return LIg(function(){return _.h(function(y){document.activeElement&&document.activeElement.blur();return y.return(LIg(function(){p.focus()}))})})};
_.Nsl=function(p){var y=y===void 0?5:y;setTimeout(function(){var l;return _.h(function(q){q.nextAddress==1&&(l=document.activeElement);if(q.nextAddress!=5)return(document.activeElement===l||document.activeElement===document.body)&&y>=0&&p?q.yield(kom(p),5):q.jumpTo(0);if(document.activeElement===p)return q.return();p=p.parentElement;--y;return q.jumpTo(2)})},15)};
LIg=function(p){return new Promise(function(y){requestAnimationFrame(function(){y(p())})})};
Hhc=function(p){if(_.NF)p(_.NF);else{var y;((y=DMm)!=null?y:DMm=[]).push(p)}};
H9=function(){!_.NF&&_.Dz&&_.Ts8(_.Dz());return _.NF};
_.Ts8=function(p){_.NF=p;var y;(y=DMm)==null||y.forEach(Hhc);DMm=void 0};
_.TH=function(p){_.NF&&_.NF.beforeLoadModuleCode(p)};
_.xP=function(){_.NF&&_.NF.JSC$10926_setLoaded()};
B9=function(p){return $Ot(p)?Number(p):String(p)};
xMj=function(p){this.action=p;this.wfv=!1};
Bs8=function(p,y){xMj.call(this,"set-drive-options");this.appId=p;this.appOrigin=y};
f3c=function(p){xMj.call(this,"visibility");this.visible=p};
vhl=function(p,y,l){fS.call(this,p,y,l)};
XCL=function(p){v9.call(this,p)};
dM8=function(p){p=p&&p.getWindow()||window;return p.gadgets&&p.gadgets.rpc};
ohl=function(p,y){var l=y&&y.getWindow()||window;if(dM8(y))p();else if(Ohm)Ohm.push(p);else var q=Ohm=[p],t=l.setInterval(function(){if(dM8(y)){l.clearInterval(t);for(var E=0;E<q.length;E++)q[E]();Ohm=null}},100)};
YCc=function(p,y){var l=new XZ(p);_.P9(y,l);var q={passive:!1};y.listen(l,"mousewheel",function(t){return void zst(p,t)},q).listen(p,"scroll",function(t){return void zst(p,t)},q)};
zst=function(p,y){var l;a:{for(l=y.target;l;){if(l.nodeType==1){var q=_.dg(l,"overflowY");if(q=="auto"||q=="scroll")break a}l=l.parentNode}l=null}if(!l||!_.OE(p,l)||l.scrollHeight==l.clientHeight||y.deltaY>0&&Math.abs(l.scrollTop-(l.scrollHeight-l.clientHeight))<=1||y.deltaY<0&&l.scrollTop==0)y.preventDefault(),y.stopPropagation()};
lb=function(p,y,l,q,t,E,e,C,u){C=C===void 0?!1:C;u=u===void 0?!1:u;fS.call(this,void 0,void 0,void 0);fS.call(this,E?E+" picker modal-dialog":"picker modal-dialog",!0,l);_.oY(p,"protocol");this.iframeManager_=new I3m;this.targetId_=zH();this.rpcToken_=zH();p=_.YP(p);_.IY(p,"hostId");l=_.IY(p,"parent");this.useGapi_=!u&&!0||(l==null?void 0:l.includes("onepick.corp.google.com"));C&&_.pr(p,"fv2","true");this.setUrl(p.toString());this.preferredDialogWidth_=q;this.preferredDialogHeight_=t;q!==void 0||
t!==void 0?q=!0:(q=_.IY(_.YP(p.toString()),"hostId"),p76||(p76=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),q=!p76.has(q));this.autoSizeDialog_=q;this.JSC$10127_gadgetsDomHelper_=e||this.JSC$10078_dom_;y&&(e=this.JSC$10127_gadgetsDomHelper_,y=_.IY(_.YP(this.JSC$10129_url_),"grugl")=="true"?ykm:lKm,dM8(e)||(e=e||SO(document),q=e.createElement("SCRIPT"),_.e_(q,y),q.type="text/javascript",e.JSC$9260_document_.body.appendChild(q)));
p=p.toString();y=null;e=p.indexOf("/picker?");e>-1?y=p.substring(0,e+8-1):Ec(p,"/picker")&&(y=p);y&&this.setRelayUrl(y+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(p=this.buttons_,p.JSC$10112_element_=this.buttonEl_,p.render()):_.hw(this.buttonEl_,q1j),_.yc(this.buttonEl_,!!this.buttons_))};
_.Jkg=function(p){var y=y===void 0?s7m:y;var l=_.qO(p),q=function(E){E=_.c(E);E.next();E=qA(E);return y(l,E)},t=function(E){var e=_.c(E);
E=e.next().value;e=qA(e);return p.apply(E,e)};
return function(){var E=_.oX.apply(0,arguments),e=this||_.l_,C=t0L.get(e);C||(C={},t0L.set(e,C));return EQ5(C,[this].concat(_.xq(E)),t,q)}};
sr=function(p){var y={};p=p.replace(/\r/g,"").split("\n");for(var l=0;l<p.length;l++){var q=p[l],t=q.indexOf(":");t<0||(y[q.substring(0,t)]=q.substring(t+2,q.length))}return y};
tU=function(p,y,l){l=l===void 0?function(){}:l;
return p?y():l()};
_.eJo=function(p){var y;return((y=cku.documentOverride)!=null?y:p).__wizdispatcher};
_.JU=function(p){var y=Er;Er=p;return y};
_.CM_=function(p){return p===hJ8||(p==null?void 0:p.name)==="\u0275NotFound"};
_.cQ=function(p,y){var l;if((l=p)==null?0:l.isDisposed)throw Error("jb`"+String(p.debugName));for(;p!==void 0;){l=p;if(l.retrieve)return l.retrieve(y,{optional:!0});p=p.parent}return hJ8};
hU=function(p){return{"\u0275prov":{providedIn:"root",token:Symbol(p),factory:void 0,value:void 0}}};
_.uL6=function(p){var y=Er;if(!y){switch(p===void 0?3:p){case 0:p=Error("ib");break;case 1:p=Error("kb");break;case 2:p=Error("lb");break;default:p=Error("mb")}throw p;}return y};
RJg=function(p){var y=_.JU(p);p={};return p[Symbol.dispose]=function(){_.JU(y)},p};
Wjt=function(p,y){p.disposables||(p.disposables=[]);p.disposables.push(y)};
Cr=function(p){var y=Er;y&&!y.isDisposed&&(Wjt(y,p),p.parent=y)};
mUc=function(p){if(p.disposables){for(var y=_.c(p.disposables),l=y.next();!l.done;l=y.next())l=l.value,typeof l==="function"?l():aKj(l);p.disposables.length=0}};
aKj=function(p){if(!p.isDisposed){p.isDisposed=!0;var y;(y=p[Symbol.dispose])==null||y.call(p);delete p.parent;mUc(p)}};
ZKt=function(p){var y={retrieve:function(l){switch(l.\u0275prov.token){case UUl.\u0275prov.token:var q=p.asyncDeps;break;case _.$U5.\u0275prov.token:q=p.rootElement;break;case j7u.\u0275prov.token:q=p.modelRootElement;break;case bKt.\u0275prov.token:q=p.appContext;break;case nQc.\u0275prov.token:q=p.rendererData;break;case GRg.\u0275prov.token:q=p.injectingConstructor;break;case PMu.\u0275prov.token:q=p.dispatcher}if(q)l=q;else a:{for(q=y.parent;q;){var t=q;if(t.retrieve){l=t.retrieve(l);break a}q=
q.parent}q=l.\u0275prov.token;t=Ak5[q];t!==void 0?l=t:(t=l.\u0275prov.providedIn,l.\u0275prov.factory?(l=l.\u0275prov.factory(),q&&t==="root"&&(Ak5[q]=l)):l=hJ8)}return l}};
Cr(y);return y};
M0t=function(){var p=_.uL6(1),y=_.cQ(p,bKt);_.CM_(y)&&(p=_.cQ(p,PMu),_.CM_(p)||p.getOptionalAppContext())};
V0j=function(p){if(typeof document!=="undefined"&&document&&document.getElementById&&(p=document.getElementById(p))){var y=p.tagName.toUpperCase();if(y=="SCRIPT"||y=="LINK")return p}return null};
Q76=function(p,y){if((p=p===void 0?"":p)&&y)throw Error("sb");var l="";var q=_.l_._F_jsUrl;(p=y||V0j(p))&&(l=p.src?p.src:p.getAttribute("href"));if(q&&l){if(q!=l)throw Error("tb`"+q+"`"+l);l=q}else l=q||l;if(!gQc(l))throw Error("ub");return l};
rku=function(){if(!Kja){Kja=!0;try{var p=Q76(_.l_._F_jsUrl?"":"base-js")}catch(q){return}var y=w7m(iKj(p)),l=Object.keys(y);l.length!==0&&Hhc(function(q){for(var t=_.c(l),E=t.next();!E.done;E=t.next()){E=E.value;for(var e=_.c(Object.keys(y[E])),C=e.next();!C.done;C=e.next())q.addExtraEdge(E,C.value)}})}};
Fju=function(){var p=Object.assign({},S15);Object.getOwnPropertyNames(S15).forEach(function(y){ub[y]!==void 0&&(p[y]=ub[y])});
return p};
Ljj=function(p,y){if(ub.enablePerformanceTiming){var l,q;(q=(l=performance).mark)==null||q.call(l,p+"Start__"+y)}};
kRL=function(p,y){if(ub.enablePerformanceTiming){var l,q;(q=(l=performance).measure)==null||q.call(l,p+"__"+y,p+"Start__"+y)}};
Nyt=function(p,y,l){var q;return p&&y?p+"__"+y:(q=p!=null?p:y)!=null?q:l};
HKR=function(p,y){var l=Object.create(DUR);l.debugName=y;!Er||Cr(l);y=_.JU(l);try{p(l)}finally{_.JU(y)}return function(){return void aKj(l)}};
xUu=function(p){return Re(p)&&Tyc in p};
ByR=function(p,y){return Object.is(p,y)};
ae=function(p){var y=WQ;WQ=p;return y};
vQg=function(p){if(mu)throw Error("Z");if(WQ!==null){var y=WQ.producersTail;if(y===void 0||y.producer!==p){var l=void 0,q=WQ.recomputing;if(q&&(l=y!==void 0?y.nextProducer:WQ.producers,l!==void 0&&l.producer===p)){WQ.producersTail=l;l.lastReadVersion=p.version;return}var t=p.consumersTail,E;if(!(E=t===void 0||t.consumer!==WQ)){if(q){a:{E=WQ;q=E.producersTail;if(q!==void 0){E=E.producers;do{if(E===t){q=!0;break a}if(E===q)break;E=E.nextProducer}while(E!==void 0)}q=!1}q=!q}E=q}E&&(q=Ur(WQ),l={producer:p,
consumer:WQ,nextProducer:l,prevConsumer:t,lastReadVersion:p.version,nextConsumer:void 0},WQ.producersTail=l,y!==void 0?y.nextProducer=l:WQ.producers=l,q&&fKa(p,l))}}};
OK8=function(p){if(!Ur(p)||p.dirty)if(p.dirty||p.lastCleanEpoch!==X7L)(p.producerMustRecompute(p)||dUm(p))&&p.producerRecomputeValue(p),p.dirty=!1,p.lastCleanEpoch=X7L};
oQ6=function(p){if(p.consumers!==void 0){var y=mu;mu=!0;try{for(var l=p.consumers;l!==void 0;l=l.nextConsumer){var q=l.consumer;q.dirty||(p=void 0,q.dirty=!0,oQ6(q),(p=q.consumerMarkedDirty)==null||p.call(q,q))}}finally{mu=y}}};
zJl=function(){var p;return((p=WQ)==null?void 0:p.consumerAllowSignalWrites)!==!1};
Y1j=function(p){p&&(p.producersTail=void 0,p.recomputing=!0);return ae(p)};
psm=function(p,y){ae(y);if(p){p.recomputing=!1;y=p.producersTail;var l=y!==void 0?y.nextProducer:p.producers;if(l!==void 0){if(Ur(p)){do l=IK6(l);while(l!==void 0)}y!==void 0?y.nextProducer=void 0:p.producers=void 0}}};
dUm=function(p){for(p=p.producers;p!==void 0;p=p.nextProducer){var y=p.producer,l=p.lastReadVersion;if(l!==y.version)return!0;OK8(y);if(l!==y.version)return!0}return!1};
fKa=function(p,y){var l=p.consumersTail,q=Ur(p);l!==void 0?(y.nextConsumer=l.nextConsumer,l.nextConsumer=y):(y.nextConsumer=void 0,p.consumers=y);y.prevConsumer=l;p.consumersTail=y;if(!q)for(p=p.producers;p!==void 0;p=p.nextProducer)fKa(p.producer,p)};
IK6=function(p){var y=p.producer,l=p.nextProducer,q=p.nextConsumer,t=p.prevConsumer;p.nextConsumer=void 0;p.prevConsumer=void 0;q!==void 0?q.prevConsumer=t:y.consumersTail=t;if(t!==void 0)t.nextConsumer=q;else if(y.consumers=q,!Ur(y))for(p=y.producers;p!==void 0;)p=IK6(p);return l};
Ur=function(p){return p.consumerIsAlwaysLive||p.consumers!==void 0};
lp6=function(p){var y=Object.create(ypl);y.computation=p;p=function(){OK8(y);vQg(y);if(y.value===$J)throw y.error;return y.value};
p[jh]=y;return p};
En6=function(p,y){var l=Object.create(qLc);l.value=p;y!==void 0&&(l.equal=y);p=function(){vQg(l);return l.value};
p[jh]=l;return[p,function(q){return sdR(l,q)},
function(q){zJl()||tF_(l);sdR(l,q(l.value))}]};
sdR=function(p,y){zJl()||tF_(p);if(!p.equal(p.value,y)){p.value=y;p.version++;X7L++;oQ6(p);var l;(l=Jpj)==null||l(p)}};
bb=function(p){var y=ae(null);try{return p()}finally{ae(y)}};
_.nr=function(p,y,l){l=l===void 0?"":l;p=En6(p,y==null?void 0:y.equals);var q=p[0],t=q[jh];t.debugName=Nyt(y==null?void 0:y.debugName,l,"[signal]");if(!ub.enablePerformanceTiming)return p;var E=p[1],e=p[2];return[q,function(C){cp8(function(){return void E(C)},t)},
function(C){cp8(function(){return void e(C)},t)}]};
cp8=function(p,y){Ljj("signalSet",y.debugName);try{p()}finally{kRL("signalSet",y.debugName)}};
hKm=function(p,y){var l=_.c(_.nr(p,void 0,"cPpJzc"));p=l.next().value;l=l.next().value;p[eK5]=l;p[GP]=y;return p};
CGl=function(p){return!!p&&typeof p==="object"&&Object.getPrototypeOf(p)===Object.prototype};
u$m=function(p){return typeof p==="function"&&eK5 in p&&typeof p[eK5]==="function"};
RKc=function(p,y){Object.defineProperty(p,GP,{get:function(){return y}})};
AU=function(p,y){if(PQ(p)){var l=p.map(function(E){return AU(E,y)});
RKc(l,y);return l}if(CGl(p)){l={};p=_.c(Object.entries(p));for(var q=p.next();!q.done;q=p.next()){var t=_.c(q.value);q=t.next().value;t=t.next().value;l[q]=AU(t,y)}RKc(l,y);return l}return hKm(p,y)};
WHL=function(p){if(PQ(p))return p.map(function(t){return WHL(t)});
if(CGl(p)){var y={};p=_.c(Object.entries(p));for(var l=p.next();!l.done;l=p.next()){var q=_.c(l.value);l=q.next().value;q=q.next().value;y[l]=WHL(q)}return y}return u$m(p)?p():p};
m$L=function(){var p={height:0,width:0};if(!CGl(p))throw Error("Gb");var y=Symbol("Hb");return[AU(p,y),function(l,q){if(l[GP]===y)if(typeof q==="function"){var t=[].concat(_.xq(WHL(l)));q=q(t)||t;ap_(l,[].concat(_.xq(q)))}else ap_(l,q);else throw Error("Ib");}]};
ap_=function(p,y){if(u$m(p))p[eK5](y);else if(PQ(p)&&PQ(y))y=AU(y,p[GP]),p.length=0,p.push.apply(p,_.xq(y));else if((CGl(p)||PQ(p))&&(PQ(y)||typeof y==="object"&&y!==null)){y=_.c(Object.entries(y));for(var l=y.next();!l.done;l=y.next()){var q=_.c(l.value);l=q.next().value;q=q.next().value;var t=p,E=t[l];Object.hasOwn(p,l)?ap_(E,q):t[l]=AU(q,p[GP])}}else throw Error("Jb");};
U$j=function(p){return Object.create(Object.assign({},ZH,p))};
jd_=function(){var p;return(p=$$6)!=null?p:$$6=U$j({consumerAllowSignalWrites:!0})};
_.MA=function(p,y,l){l=l===void 0?"":l;p=lp6(p);var q=p[jh];q.debugName=Nyt(y==null?void 0:y.debugName,l,"[computed]");(y==null?void 0:y.equals)!=null&&(q.equal=y.equals);return p};
Vc=function(p){var y=ae(bTc);try{p()}finally{ae(y)}};
MF_=function(p){if(!p.isDisposed)switch(p.effectType){case gq:nnt.schedule(p);break;case GXj:PG_.schedule(p);break;case Apu:ZTj.schedule(p);break;default:_.qL(p.effectType)}};
gnt=function(p){VFL.push(p);return function(){var y=VFL.indexOf(p);y!==-1&&VFL.splice(y,1)}};
KHL=function(){if(Qc>0)ub.flushRenderEffectsDuringRender&&nnt.flush();else for(var p=_.c(QdL),y=p.next();!y.done;y=p.next())y.value.flush()};
iT_=function(p){Kr=!0;try{for(var y=_.c(p),l=y.next();!l.done;l=y.next()){for(var q=l.value,t=[q],E=q;E.parent!==void 0;)E=E.parent,wsR(E)&&p.has(E)&&t.push(E);for(;t.length>0;){var e=t.pop();p.delete(e);e.run()}}}finally{Kr=!1}};
wq=function(p){Qc--;if(p){p=_.c(QdL);for(var y=p.next();!y.done;y=p.next())y.value.clear()}else Qc>0||Kr&&!ub.flushRenderEffectsDuringRender||KHL()};
SLu=function(p,y,l){var q=rp8(p);ib={name:l?q+" ("+l+")":q,isReactive:p.componentType!==rq,parent:ib};p=y();ib=ib.parent;return p};
FI=function(){var p=ib;return p?p.isReactive:!1};
kJ=function(p,y,l){var q=ib;y&&(ib=y);try{return l==null?p():p.call(l)}catch(E){p=E;Lr(p,ib);if(p!==FHc){LHm=ib;y=[];for(l=Er;l;){var t=void 0;y.push((t=l.debugName)!=null?t:"[context]");t=void 0;l=(t=l.parent)!=null?t:null}kXt=y.reverse()}FHc=p;throw p;}finally{ib=q}};
Lr=function(p,y){try{var l=NJR(y);if(l&&!p.componentStack&&(p.componentStack=l,ub.enableComponentStacksInErrorMessages)){var q=p.message+"\n\nComponent stack: "+l;p.stack&&(p.stack=p.stack.replace(p.message,q));p.message=q}}catch(t){}};
NJR=function(p){if(Re(p)&&p.name!==void 0&&p.isReactive!==void 0&&p.parent!==void 0||p===null){for(var y=0,l="";y<20&&p;)l+=p.name+" > ",p=p.parent,y++;p=l.slice(0,-3)}else if(ub.enableContextBasedComponentStacks){a:{for(p=p===void 0?Er:p;p;){if(xUu(p))break a;y=void 0;p=(y=p.parent)!=null?y:null}p=null}p=p.getComponentStack().slice(0,20).join(" > ")}else p="";return p};
rp8=function(p){return p.debugName||p.name||"[component]"};
D$m=function(p,y,l){y=Object.create(y);p&&(y.effectFn=p);l&&(y.debugName=l);Cr(y);y.componentStack=ib;return y};
_.NA=function(p,y){p=D$m(p,HTt,y);MF_(p)};
_.TP=function(p){var y=Er;if(y){var l=ib;Wjt(y,function(){var q=ae(jd_());try{kJ(function(){return void p()},l)}catch(t){throw ub.enableContextBasedComponentStacks&&Lr(t),t;
}finally{ae(q)}})}};
xJ=function(p,y){var l={};(y===void 0||y)&&Cr(l);y=_.JU(l);try{p(l)}finally{_.JU(y)}return function(){return void aKj(l)}};
_.BQ=function(p){return typeof p==="function"?p():(p==null?0:p[TJl])?p.get():p};
_.fr=function(p,y){p=D$m(p,x$t,y);MF_(p)};
BJ8=function(p){if(Er)throw Error("nb");xJ(p,!1)};
vQ=function(p,y){p=_.JU(p);try{return bb(y)}finally{_.JU(p)}};
XI=function(p,y){var l=NJR(LHm),q,t;var E=(t=(q=kXt)==null?void 0:q.slice())!=null?t:[];y={componentStack:l,contextTrace:E,errorSeverity:3,featureFlags:Fju(),tagName:y};return[p,y]};
Xsa=function(p,y,l){if(Object.hasOwnProperty.call(fpR,p)&&(p=fpR[p],Object.hasOwnProperty.call(p,y)&&(p=p[y],p instanceof Array))){for(var q=null,t=!1,E=0,e=p.length;E<e;++E){var C=p[E],u=C.contingentAttribute;if(!u)return C.contract;q===null&&(q={});u=Object.hasOwnProperty.call(q,u)?q[u]:q[u]=l(u);if(u===C.requiredValue)return C.contract;u==null&&(t=!0)}if(t)return null}y=vn5[y];return typeof y==="number"?y:null};
onm=function(p,y,l){var q=null;(p=d$L[p])&&(q=p[y]);return typeof q!=="number"&&((p=d$L["*"])&&(q=p[y]),typeof q!=="number")?!1:!0===OTl[q][String(l).toLowerCase()]};
YLu=function(p,y){y=Xsa(p.toLowerCase(),y,function(){var q;(q=ub.handleError)==null||q.call.apply(q,[ub].concat(_.xq(XI(Error("Ob"),p.toLowerCase()))))});
if(y===null)return null;var l;return(l=zKl[y])!=null?l:null};
Ipg=function(p,y,l){if(l===null||l===void 0)return l;y=y.toLowerCase();p=YLu(p,y);return p===null?l:p(y,l)};
pKm=function(){};
dq=function(p,y){for(;p.length>y;)p.pop()};
yKg=function(p){p=Array(p);dq(p,0);return p};
Or=function(p,y,l){if(l==null)p.removeAttribute(y);else{var q;(q=y.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":y.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?p.setAttributeNS(q,y,l):p.setAttribute(y,l)}};
leL=function(p,y,l){p[y]=l};
spj=function(p,y,l){p=p.style;if(typeof l==="string")p.cssText=l;else{p.cssText="";for(var q in l)if(qM5.call(l,q)){y=p;var t=q,E=l[q];t.indexOf("-")>=0?y.setProperty(t,E):y[t]=E}}};
tWc=function(p,y,l){var q=typeof l;q==="object"||q==="function"?p[y]=l:Or(p,y,l)};
EHo=function(){var p=new pKm;p[oe.default]=tWc;p.style=spj;return p};
JKu=function(p,y,l,q){(q[y]||q[oe.default])(p,y,l)};
eI8=function(p,y,l){y=new cK5(y,l);return p.__incrementalDOMData=y};
zP=function(p,y){if(p.__incrementalDOMData)return p.__incrementalDOMData;var l=p.nodeType===1?p.localName:p.nodeName,q=p.nodeType===1?p.getAttribute("key"):null;y=eI8(p,l,p.nodeType===1?q||y:null);if(p.nodeType===1&&(p=p.attributes,l=p.length)){q=y._attrsArr||(y._attrsArr=yKg(l*2));for(var t=0,E=0;t<l;t+=1,E+=2){var e=p[t],C=e.value;q[E]=e.name;q[E+1]=C}}return y};
hI_=function(p,y,l,q,t){return y==l&&q==t};
CXo=function(p){for(var y=YJ,l=Ie();l!==p;){var q=l.nextSibling;y.removeChild(l);p6.deleted.push(l);l=q}};
Ie=function(){return yi?yi.nextSibling:YJ.firstChild};
lB=function(){yi=Ie()};
Wl8=function(p,y,l){lB();var q;a:{if(q=yi){do{var t=q,E=p,e=y,C=zP(t,e);if(uz_(t,E,C.nameOrCtor,e,C.key))break a}while(y&&(q=q.nextSibling))}q=null}q||(p==="#text"?(l=qV.createTextNode(""),eI8(l,"#text",null),p=l):(q=qV,t=YJ,typeof p==="function"?q=new p:q=(t=p==="svg"?"http://www.w3.org/2000/svg":p==="math"?"http://www.w3.org/1998/Math/MathML":t==null||zP(t).nameOrCtor==="foreignObject"?null:t.namespaceURI)?q.createElementNS(t,p):q.createElement(p),eI8(q,p,y),p=q,l&&p.setAttribute("nonce",l)),p6.created.push(p),
q=p);l=q;if(l!==yi){if(RI5.indexOf(l)>=0)for(p=YJ,y=l.nextSibling,q=yi;q!==null&&q!==l;)t=q.nextSibling,p.insertBefore(q,y),q=t;else YJ.insertBefore(l,yi);yi=l}};
aeo=function(p,y,l){Wl8(p,y,l);YJ=yi;yi=null;return YJ};
mt_=function(){CXo(null);yi=YJ;YJ=YJ.parentNode};
sY=function(){yi=YJ.lastChild};
jpR=function(p,y){y=y===void 0?{}:y;var l=y.matches===void 0?hI_:y.matches;return function(q,t,E){var e=p6,C=qV,u=RI5,a=tM,m=EY,U=yi,b=YJ,P=uz_;qV=q.ownerDocument;p6=new Ut5(q);uz_=l;tM=[];EY=[];yi=null;var Z=YJ=q.parentNode,K,F=$t5.call(q);if((K=F.nodeType===11||F.nodeType===9?F.activeElement:null)&&q.contains(K)){for(F=[];K!==Z;)F.push(K),K=K.parentNode||(Z?K.host:null);Z=F}else Z=[];RI5=Z;try{return p(q,t,E)}finally{q=p6,JM&&q.deleted.length>0&&JM(q.deleted),qV=C,p6=e,uz_=P,tM=a,EY=m,yi=U,YJ=b,
RI5=u}}};
btL=function(p,y,l,q){cu.push(JKu);cu.push(p);cu.push(y);cu.push(l);cu.push(q)};
Ge6=function(p,y,l){var q=EY;y=y._attrsArr||(y._attrsArr=yKg(q.length));for(var t=!y.length||!1,E=0;E<q.length;E+=2){var e=q[E];if(t)y[E]=e;else if(y[E]!==e)break;var C=q[E+1];if(t||y[E+1]!==C)y[E+1]=C,btL(p,e,C,l)}if(E<q.length||E<y.length){for(E=t=E;E<y.length;E+=2)ec[y[E]]=y[E+1];for(E=t;E<q.length;E+=2)t=q[E],e=q[E+1],ec[t]!==e&&btL(p,t,e,l),y[E]=t,y[E+1]=e,delete ec[t];dq(y,q.length);for(var u in ec)btL(p,u,void 0,l),delete ec[u]}p=nH_;nH_=l=cu.length;for(u=p;u<l;u+=5)(0,cu[u])(cu[u+1],cu[u+
2],cu[u+3],cu[u+4]);nH_=p;dq(cu,p);dq(q,0)};
hM=function(p){Wl8("#text",null);var y=yi;var l=zP(y);if(l.text!==p){l=l.text=p;for(var q=1;q<arguments.length;q+=1)l=(0,arguments[q])(l);y.data!==l&&(y.data=l)}};
Qpj=function(p,y,l){if(l===!1&&PXc.has(y))Or(p,y,null);else if(y!=="idomKey"&&y!=="skip"&&y!=="skipchildren"&&y!=="children"&&y!=="el")if(y.startsWith("on")){if(y[2]!==":")throw Error("Nb`"+y);if(l===void 0||l===null){var q;(q=ub.handleError)==null||q.call.apply(q,[ub].concat(_.xq(XI(Error("Sb`"+y),p.tagName))));p[y]=void 0}else{var t=y.slice(3);q=FI();if(t==="jsaction"){l=Array.isArray(l)?l:[l];l=_.c(l);for(var E=l.next();!E.done;E=l.next()){E=E.value;if(typeof E!=="object"||E===null||typeof E.selfReg!==
"function")throw Error("Vb`"+y);E.selfReg(0,p,q?_.TP:function(){})}}else{if(typeof l!=="object"||l===null)throw Error("Tb`"+y+"`"+typeof l);
if(typeof l.getFn!=="function")throw Error("Ub`"+y+"`"+Object.keys(l));if(l.selfReg)l.selfReg(0,p,t,q?_.TP:function(){});
else if(q&&p["on"+t]===void 0){var e=l.getFn(0);p.addEventListener(t,e);_.TP(function(){return void p.removeEventListener(t,e)})}else if(q||!AKm.includes(t))p["on"+t]=l.getFn(0)}}}else{if(y.startsWith("data-")&&typeof l==="string")try{l=Ztt(l)}catch(C){l="zSoyz"}typeof l!=="function"||p._disposeEffects!=null?((q=y.startsWith("prop:"))&&(y=y.slice(5)),ub.enableAttributeSanitization&&(q&&MWc(p.tagName)||(l=Ipg(p.tagName,y,l))),y==="style"?("function"==typeof _.C6&&l instanceof _.C6&&(l=l.toString()),
VW_(p,y,l)):q?p[y]=l:gH8(p,y,l)):(p._signalProps||(p._signalProps=[]),p._signalValues||(p._signalValues=[]),p._signalProps.push(y))}};
KlR=function(p,y,l){l=(l===void 0?{}:l).isReactive;if(y==null?0:y.el){var q=y.el;if(typeof q==="function")q(p);else{var t;(t=q.onRender)==null||t.call(q,p);p._disposeRef||(p._disposeRef=function(){var E;(E=q.onUnmount)==null||E.call(q);delete p._disposeRef},l&&_.TP(function(){var E;
(E=p._disposeRef)==null||E.call(p)}))}}};
MWc=function(p){return p.length>0&&p.includes("-")&&!wKu.includes(p.toLowerCase())};
it_=function(p){return Re(p)&&uB in p};
rKm=function(p){return it_(p)?p[uB].flattened:p};
SML=function(p,y){var l=_.oX.apply(2,arguments),q;y=(q=y)!=null?q:{};q={};return q.type=p,q.props=y,q.children=l,q[Wu]=!0,q};
_.a4=function(p){return p.children};
mq=function(p){var y=Fl_!==SML;Fl_=p?Ll6:SML;return y};
_.UY=function(p){return _.yQ(p)?"nodeType"in p:!1};
$Z=function(){return document.createTextNode("")};
jc=function(p){p=document.createTextNode(String(p));p._isSignalTextNode=!0;return p};
NFj=function(p){return p!=null&&p.contentKind===bB||p instanceof IX||ke_(p)};
Dtg=function(p){var y=document.createElement("div");if(ke_(p)&&yJL(p))_.hw(y,yJL(p));else if(p instanceof IX)_.hw(y,p);else if(p!=null&&p.contentKind===bB){if(p.contentKind!==bB)throw Error("Rb");p=pC(p.toString());_.hw(y,p)}p=_.c(y.childNodes);for(var l=p.next();!l.done;l=p.next())l.value._isSafeOrSanitizedHtmlNode=!0;return y};
n6=function(p){p=typeof p;return p==="string"||p==="number"||p==="boolean"};
Htj=function(p){return p instanceof SZ||TB(p)||"function"==typeof _.WH&&p instanceof _.WH||"function"==typeof _.C6&&p instanceof _.C6};
TFm=function(p,y){var l=p.parentElement;if(!l)return y;l.replaceChild(y,p);return y};
xt5=function(p,y){var l=p[0].parentElement;if(l)if(p[0].previousSibling||p[p.length-1].nextSibling){l.insertBefore(y,p[0]);for(var q=p.length-1;q>=0;q--)l.removeChild(p[q])}else l.textContent="",l.appendChild(y);return y};
BF8=function(p,y){if(p[0].parentElement)for(var l=p[0].parentElement,q=y.length,t=p.length,E=q,e=0,C=0,u=p[t-1].nextSibling,a=null;e<t||C<E;)if(p[e]===y[C])e++,C++;else{for(;p[t-1]===y[E-1];)t--,E--;if(t===e)for(var m=E<q?C?y[C-1].nextSibling:y[E-C]:u;C<E;){var U=y[C++];l.insertBefore(U,m)}else if(E===C)for(;e<t;)m=p[e],a&&a.has(m)||l.removeChild(m),e++;else if(p[e]===y[E-1]&&y[C]===p[t-1])m=p[--t].nextSibling,l.insertBefore(y[C++],p[e++].nextSibling),l.insertBefore(y[--E],m),p[t]=y[E];else{if(!a)for(a=
new Map,m=C;m<E;)a.set(y[m],m++);m=a.get(p[e]);if(m==null)l.removeChild(p[e]),e++;else if(C<m&&m<E){U=e;for(var b=1,P=void 0;++U<t&&U<E&&(P=a.get(p[U]))!=null&&P===m+b;)b++;if(b>m-C)for(U=p[e];C<m;)l.insertBefore(y[C++],U);else l.replaceChild(y[C++],p[e++])}else e++}}return y};
vHl=function(p){if(Array.isArray(p)){if(p.length>1)throw Error("dc`"+p.length+"`"+p.map(fel).join(", "));p=p[0]}if(p==null)return null;if(!(p instanceof _.E8)){var y,l;if((y=window)==null?0:(l=y.trustedTypes)==null?0:l.isScript(p))throw Error("cc");if(String(p).trim().length===0)return null;throw Error("ec`"+fel(p));}return p};
XK6=function(p,y){y=vHl(y);y!==null&&_.cH(p,y)};
dtt=function(p){if(Array.isArray(p)){if(p.length>1)throw Error("fc`"+p.length+"`"+p.map(fel).join(", "));p=p[0]}if(p==null)return null;if(!Ilu(p)){if(String(p).trim().length===0)return null;throw Error("gc`"+fel(p));}return p};
Ota=function(p,y){y=dtt(y);y!==null&&(p.textContent=_.pHm(y))};
fel=function(p){return"("+typeof p+") "+(p!=null&&typeof p==="object"?p.constructor.name:typeof p)+" "+p};
oHt=function(){};
AM=function(p,y){y=y===void 0?{}:y;var l=zIa();ub.legacyTriggerSoyRendererEvents&&M0t();_.fr(function(){Gi.setUp();y.isControlFlowComponent&&Qc++;var q=l[0],t=l[uB].flattened,E=mq(!0);try{var e=p(),C=YM_(q,e,l);Array.isArray(C)||(l[uB].flattened=[C]);var u=l[uB].flattened;if(t&&(!Array.isArray(t)||t.length!==0)){var a=Array.isArray(t)?t[0]:t,m=a[Pu],U=a._disposeEffects;a._disposeEffects=void 0;a=Array.isArray(u)?u[0]:u;a[Pu]=m;a[Pu]&&(a[Pu].numNodes=a===u?1:u.length);a._disposeEffects=U}l[0]=C;y.isControlFlowComponent&&
wq(!1)}catch(b){throw y.isControlFlowComponent&&wq(!0),b;}finally{mq(E),Gi.tearDown()}},y.debugName);
return l};
YM_=function(p,y,l){for(;typeof y==="function";)y=y();if(y!=null&&y[Wu]){var q,t,E;(E=ub.handleError)==null||E.call.apply(E,[ub].concat(_.xq(XI(Error("hc`"+((q=y.type)==null?void 0:q.TAG_NAME)),(t=y.type)==null?void 0:t.TAG_NAME))))}if(p==null)return y==null?$Z():n6(y)?jc(y):Htj(y)?jc(y.toString()):_.UY(y)?y:y.length===0?$Z():Iec(y,l);if(_.UY(p)){if(y==null)return TFm(p,$Z());if(n6(y))return p2u(p,y);if(Htj(y))return p2u(p,y.toString());if(_.UY(y))return TFm(p,y);if(y.length===0)return TFm(p,$Z());
y=Iec(y,l);BF8([p],l[uB].flattened);return y}p=Zk(p);if(y==null)return xt5(p,$Z());if(n6(y))return xt5(p,jc(y));if(Htj(y))return xt5(p,jc(y.toString()));if(_.UY(y))return BF8(p,[y])[0];if(y.length===0)return xt5(p,$Z());y=Iec(y,l);BF8(p,l[uB].flattened);return y};
p2u=function(p,y){p.nodeType===Node.TEXT_NODE?p.textContent!==String(y)&&(p.textContent=String(y)):p=TFm(p,jc(y));return p};
Zk=function(p,y,l){return yhR(p,y!=null?y:[],l===void 0?!1:l)};
Iec=function(p,y){var l=Zk(p,void 0,!0);if(l.length===0)return $Z();y[uB].flattened=l;return p};
yhR=function(p,y,l,q,t){y=y===void 0?[]:y;l=l===void 0?!1:l;t=t===void 0?-1:t;if(p==null)return y;if(p instanceof MV){var E=p.render();return yhR(E,y,l,q,t)}if(_.UY(y)&&y.nodeType===Node.ELEMENT_NODE)switch(y.tagName){case "SCRIPT":XK6(y,p);return;case "STYLE":Ota(y,p);return}n6(p)&&(p=jc(p),q&&l&&(q[t]=p));if(NFj(p)){l=Dtg(p);l=Array.from(l.childNodes);l=_.c(l);for(E=l.next();!E.done;E=l.next())l_t(y,E.value);return y}Htj(p)&&(p=jc(p.toString()),q&&l&&(q[t]=p));if(_.UY(p))return l_t(y,p);if(Array.isArray(p)){for(E=
0;E<p.length;E++)yhR(p[E],y,l,p,E);return y}if(typeof p==="function"){E=AM(function(){var C=p();return C!=null&&!n6(C)&&NFj(C)?(C=Dtg(C),Array.from(C.childNodes)):C},{debugName:"qmF2ne",
debugFn:p})[0];if(Array.isArray(E)){l=_.c(E);for(E=l.next();!E.done;E=l.next())l_t(y,E.value);return y}q&&l&&(q[t]=E);return l_t(y,E)}if(p!=null&&p[Wu]){q=p;t=mq(!0);var e=Fl_;try{E=e.apply(null,[q.type,q.props].concat(_.xq(q.children)))}finally{mq(t)}return yhR(E,y,l)}(e=ub.handleError)==null||e.call.apply(e,[ub].concat(_.xq(XI(Error("ic")))));return y};
zIa=function(p){var y={};y=Object.assign([],(y[uB]={flattened:[]},y));if(!p)return y;y[0]=Iec(p,y);return y};
l_t=function(p,y){Array.isArray(p)?p.push(y):p.appendChild(y);return p};
Vi=function(p){if(!ub.enableLazyTsx)return p;if(Array.isArray(p)){for(var y=0;y<p.length;y++)p[y]=Vi(p[y]);return p}return p instanceof MV?(p=p.render(),Vi(p)):p};
sGR=function(p,y){var l,q,t=rp8(p),E=function(P){q=P;P=mq(!0);var Z=ae(gT);Ljj("render",t);try{l=Vi(p(y))}finally{kRL("render",t),ae(Z),mq(P)}};
E=ub.enableContextPerComponent?HKR(E,t):xJ(E,ub.alwaysTrackContexts||!!Er);xUu(q);if(!y.renderedFromIdom){var e=_.JU(q);try{return qnR(p,y,l),l}finally{_.JU(e)}}!it_(l)&&Array.isArray(l)&&(l=zIa(l));var C=rKm(l);e=Array.isArray(C)?C[0]:C;var u=!1;if(e){var a,m=(a=y==null?void 0:y.idomKey)!=null?a:p;a=C!==e;e._disposeEffects=E;var U=e[Pu]||{},b=it_(l)?l:U.sourceDynamicRange;Object.assign(U,{key:m,numNodes:a?C.length:1,context:q,higherOrder:!!e[Pu],sourceDynamicRange:b});e[Pu]=U}else u=!0;(function(){var P=
_.JU(q);try{qnR(p,y,C)}finally{_.JU(P)}})();
u&&E();return l};
tYR=function(p){var y={},l;for(l in p)y={prev$jscomp$23:void 0,next$jscomp$33:void 0},y.prev$jscomp$23=Qi[l],y.next$jscomp$33=p[l],Qi[l]=function(q){return function(){var t=_.oX.apply(0,arguments);q.prev$jscomp$23.apply(null,_.xq(t));q.next$jscomp$33.apply(null,_.xq(t))}}(y)};
Ec5=function(){if(FI())throw Error("jc");return K6};
Jhm=function(p,y){if(!p.__unmounted&&y){p.__unmounted=!0;try{p.didUnmount()}catch(t){var l,q;(q=ub.handleError)==null||q.call.apply(q,[ub].concat(_.xq(XI(t,(l=p.JSC$10153___type)==null?void 0:l.TAG_NAME))))}Qi.didUnmount(p);p.el=null;y.__instance&&delete y.__instance}};
eot=function(p,y,l){p._signalProps!=null&&p._disposeEffects==null&&((l===void 0?0:l)?p._disposeEffects=xJ(function(){return void chR(p,y)},ub.alwaysTrackContexts||!!Er):chR(p,y))};
chR=function(p,y){_.fr(function(){for(var l=p._signalProps,q=p._signalValues,t=0;t<l.length;t++){var E=l[t],e=y[E]();q[t]!==e&&(q[t]=e,Qpj(p,E,e))}},"e3YVbb")};
hol=function(p,y,l){var q,t=[];p._disposeEffects=xJ(function(){_.fr(function(){var E=l();if(E===null||E===void 0)E="";if(n6(E)||E===null)q!=null||(q=document.createTextNode("")),q.parentNode!==p&&(q._isSignalTextNode=!0,p.insertBefore(q,y)),q.textContent=String(E);else if(NFj(E)){for(var e=t.length>0?t[t.length-1].nextSibling:y,C=_.c(t),u=C.next();!u.done;u=C.next())p.removeChild(u.value);E=Dtg(E);t=Array.from(E.childNodes);E=_.c(t);for(C=E.next();!C.done;C=E.next())p.insertBefore(C.value,e)}else throw u=
(C=(e=ib)==null?void 0:e.name)!=null?C:"unknown",Error("Zb`"+u+"`"+typeof E);},"VvDgC")},ub.alwaysTrackContexts||!!Er)};
RoL=function(p,y){var l=_.oX.apply(2,arguments);y!=null||(y={});return!ub.enableLazyTsx||ib!=null&&!FI()?CLa(p,y,l):new uKR(p,y,l)};
CLa=function(p,y,l){if(p===_.a4)return l;if(typeof p==="function")return ib&&!FI()&&(y.renderedFromIdom=!0),SLu(p,function(){var E=WXo(p,y,l);if(E)return E;l.length>0&&(y.children=l.length===1?l[0]:l);if(p.componentType===rq){var e;HKR(function(){var C=y;if(p.componentType!==rq)e=!1;else{C||(C={});var u=new wT(C,p),a=ae(gT);try{var m=u.render(C)}finally{ae(a)}m instanceof HTMLElement?(m.__instance=u,u.el=m,u.JSC$10153___type=p,p.TAG_NAME=m.tagName.toLowerCase(),Qi.didPatch(u),e=m):e=m}},p.name);
if(e)return e}return sGR(p,y)},y.debugInstance);
var q=a_u(p,y),t;for(t in y)Qpj(q,t,y[t]);eot(q,y);Zk(l,q);KlR(q,y,{isReactive:!0});mfL(q,y);return q};
a_u=function(p,y){p=(Uft.has(p.toLowerCase())?0:$fR.has(p.startsWith("svg:")?p.replace("svg:",""):p))?document.createElementNS("http://www.w3.org/2000/svg",p.startsWith("svg:")?p.replace("svg:",""):p):jGt(p,y)||document.createElement(p);p[bxL]=!0;return p};
ncu=function(p){if(p){var y;(y=p._disposeRef)==null||y.call(p);var l;(l=p._disposeEffects)==null||l.call(p);p.__instance&&p.__instance instanceof iB&&(y=p.__instance,Jhm(y,p),y instanceof wT&&y.disposeEffects());for(y=0;y<p.childNodes.length;y++)ncu(p.childNodes[y])}};
PLm=function(p){Gcg.push(p)===1&&requestAnimationFrame(function(){setTimeout(function(){var y=[].concat(_.xq(Gcg));Gcg=[];y=_.c(y);for(var l=y.next();!l.done;l=y.next()){l=l.value;try{for(var q=0;q<l.length;q++)ncu(l[q])}catch(t){q=l=void 0,(q=(l=ub).handleError)==null||q.call.apply(q,[l].concat(_.xq(XI(t))))}}})})};
_.R=function(p,y){return Fl_.apply(null,[p,y].concat(_.xq(_.oX.apply(2,arguments))))};
Ahu=function(p,y){y=y===void 0?new Map:y;p=_.c(p);for(var l=p.next();!l.done;l=p.next())if(l=l.value,!y.has(l)){for(var q=[],t=l.producers;t!==void 0;t=t.nextProducer)q.push(t.producer);y.set(l,q);Ahu(q,y)}return y};
_.W=function(p){var y=p.cond;if(y===void 0)return p.else&&p.else();var l=_.MA(function(){return!!y()},void 0,"JHVi8"),q=function(){var t=y();
if(!t){var E;(E=ub.handleError)==null||E.call.apply(E,[ub].concat(_.xq(XI(Zxu.nonNullableCondIsNull()))))}return t};
return AM(function(){var t=l(),E;xJ(function(){var e=ae(gT);try{E=Vi(t?p.then(q):p.else&&p.else())}finally{ae(e)}},!0);
return E},{debugName:p.debugInstance,
debugFn:p.then,isControlFlowComponent:!0})};
MY5=function(p){return _.W(p)};
_.rT=function(p){return p.keyBy==="INDEX"?VY_(p):gc8(p)};
QGt=function(p){p=_.c(p);for(var y=p.next();!y.done;y=p.next()){var l=void 0;(l=y.value)==null||l()}};
gc8=function(p){var y=p.keyBy===void 0||p.keyBy==="REFERENCE",l=y?function(m){return m}:p.keyBy,q=[],t=[],E=[],e=[],C=[],u=[],a=!0;
_.TP(function(){QGt(e)});
return AM(function(){var m=p.each(),U=m.length;if(U===0){if(q.length===0&&!a)return E;QGt(e);q=m;t=[];for(m=0;m<q.length;m++)t.push(l(q[m]));E=[];e=[];C=[];u=[];p.fallback&&(e[0]=KXt(function(){E[0]=Vi(p.fallback())}));
a=!1;return E}for(var b=new w26,P=q.length-1;P>=0;P--)b.push(t[P],P);P=Array(U);for(var Z=Array(U),K=Array(U),F=Array(U),L=Array(y?0:U),T={i$jscomp$446:0};T.i$jscomp$446<U;T={i$jscomp$446:T.i$jscomp$446,item$jscomp$103:void 0,key$jscomp$550:void 0},T.i$jscomp$446++){T.item$jscomp$103=m[T.i$jscomp$446];T.key$jscomp$550=l(T.item$jscomp$103);var O=b.pop(T.key$jscomp$550);O!=null?(K[T.i$jscomp$446]=E[O],Z[T.i$jscomp$446]=t[O],P[T.i$jscomp$446]=e[O],F[T.i$jscomp$446]=C[O],y||(L[T.i$jscomp$446]=u[O]),Vc(function(f){return function(){F[f.i$jscomp$446](f.i$jscomp$446);
if(!y)L[f.i$jscomp$446](f.item$jscomp$103)}}(T)),delete e[O]):P[T.i$jscomp$446]=KXt(function(f){return function(){var v=_.c(_.nr(f.i$jscomp$446,void 0,"Fqk1zd")),z=v.next().value;
v=v.next().value;F[f.i$jscomp$446]=v;Z[f.i$jscomp$446]=f.key$jscomp$550;if(y)K[f.i$jscomp$446]=Vi(p.children(f.item$jscomp$103,z));else{var sc=_.c(_.nr(f.item$jscomp$103,void 0,"GBj5de"));v=sc.next().value;sc=sc.next().value;L[f.i$jscomp$446]=sc;K[f.i$jscomp$446]=Vi(p.children(v,z))}}}(T))}QGt(e);
q=m;t=Z;E=K;e=P;C=F;u=L;a=!1;return K},{debugName:p.debugInstance,
debugFn:p.each,isControlFlowComponent:!0})};
VY_=function(p){var y=[],l=[],q=[],t=[],E=!1;_.TP(function(){for(var e=_.c(t),C=e.next();!C.done;C=e.next())C=C.value,C()});
return AM(function(){var e=p.each();E&&e.length>0&&(t.pop()(),y.pop(),E=!1);for(var C=Array(e.length),u={i$jscomp$447:0};u.i$jscomp$447<e.length;u={i$jscomp$447:u.i$jscomp$447},u.i$jscomp$447++)if(u.i$jscomp$447<y.length)y[u.i$jscomp$447]!==e[u.i$jscomp$447]&&(Vc(function(m){return function(){return void l[m.i$jscomp$447](e[m.i$jscomp$447])}}(u)),y[u.i$jscomp$447]=e[u.i$jscomp$447]),C[u.i$jscomp$447]=q[u.i$jscomp$447];
else{var a=KXt(function(m){return function(){y[m.i$jscomp$447]=e[m.i$jscomp$447];var U=_.c(_.nr(e[m.i$jscomp$447],void 0,"JMMLmd")),b=U.next().value;U=U.next().value;l[m.i$jscomp$447]=U;C[m.i$jscomp$447]=Vi(p.children(b,m.i$jscomp$447))}}(u));
t[u.i$jscomp$447]=a}for(;y.length>e.length;)y.pop(),t.pop()(),l.pop();e.length===0&&!E&&p.fallback&&(u=KXt(function(){C[0]=Vi(p.fallback())}),t[0]=u,E=!0);
return q=C},{debugName:p.debugInstance,
isControlFlowComponent:!0})};
KXt=function(p){var y=Er;return xJ(function(l){var q=ae(gT);try{l.parent=y,p(l)}finally{ae(q)}},!1)};
_.Sc=function(p){return p};
_.FF=function(p){return{isDefault:!0,children:p.children}};
_.L6=function(p){var y=ixm(p),l=_.MA(function(){return rh5(y)},void 0,"F1PF4");
return AM(function(){var q=l(),t;xJ(function(){var E=ae(gT);try{t=Vi(q())}finally{ae(E)}});
return t},{debugName:p.debugInstance,
isControlFlowComponent:!0})};
ixm=function(p){p=p.children;return Array.isArray(p)?p:[p]};
Snu=function(p){var y=p.props;p=p.getChildren()[0];return y.when?{when:y.when,children:p}:{isDefault:!0,children:p}};
rh5=function(p){var y=function(){return null};
p=_.c(p);for(var l=p.next();!l.done;l=p.next())if(l=l.value,l!=null&&l[Wu]&&(l=l.type===_.FF?{isDefault:!0,children:l.children[0]}:{when:l.props.when,children:l.children[0]}),l instanceof MV&&(l=Snu(l)),l.isDefault)y=l.children;else if(l.when())return l.children;return y};
LXm=function(p){var y=null,l,q={get value(){var E,e;(e=(E=t).validateGetValue)==null||e.call(E);return t.__value},set value(E){var e,C;(C=(e=t).validateSetValue)==null||C.call(e,E);t.__value=E;t.__hasBeenSet=!0}},t=(q.__value=null,q.__hasBeenSet=!1,q.__hasErrored=!1,q.onRender=function(E){if(l&&E!==l){l._disposeRef=void 0;var e;(e=y)==null||e()}l=E;y=p(E)||null},q.onUnmount=function(){var E;
(E=y)==null||E();y=t.value=null},q[_.FX6]=!0,q);
return t};
Nal=function(p){var y=Ec5();if(y==null)throw _.kco.PRIMITIVE_INVALID_HOOK_CALL();var l=y.hookCounter++;y.hooks||(y.hooks=[]);var q=y.hooks;q[l]||(q[l]={key:p,host:y});if(p!==q[l].key){if(y.JSC$10153___type){var t;p=(t=y.JSC$10153___type)==null?void 0:t.name}else p=y instanceof wT?rp8(y.functionComponent):"<"+y.el.tagName.toLowerCase()+">";throw _.kco.OUT_OF_ORDER_HOOK_CALL(p);}return q[l]};
DfL=function(p,y){return!p||p.length!==(y==null?void 0:y.length)||p.some(function(l,q){return l!==y[q]})};
Hxm=function(p,y){var l=Nal("onChange"),q=Ec5();DfL(l.deps,y)&&(l.deps=y,l.pendingEffect=p,q.__syncEffects||(q.__syncEffects=[]),q.__syncEffects.push(l))};
_.kZ=function(p,y){var l=l===void 0?{}:l;l=l.appContext;var q=!!ub.legacyTriggerSoyRendererEvents;Gi.setUp();try{var t=Ta_(p,y,l);q&&(y=l,y==null&&(y=_.eJo(document).getAppContext()),y.get(xfL).JSC$28742_getEventTarget().dispatchEvent(new Baa(f__,p,bB)));Gi.log(p);return t}finally{Gi.tearDown()}};
Ta_=function(p,y,l){var q=kJ(function(){var t=ae(gT);try{return xJ(function(){var E=_.eJo(_.vJ(p)),e;var C=ZKt({rootElement:{value:p},appContext:l||(E==null?void 0:(e=E.getOptionalAppContext)==null?void 0:e.call(E)),dispatcher:E});E=_.JU(C);C=mq(!0);Qc++;try{Zk(y(),p),wq(!1)}catch(u){throw wq(!0),u;}finally{mq(C),_.JU(E)}},!1)}catch(E){throw ub.enableContextBasedComponentStacks&&Lr(E),E;
}finally{ae(t)}});
p[vcL]=!0;return function(){p.textContent="";q();p[vcL]=!1}};
_.Hu=function(p){if(wsR(WQ)){var y;(y=ub.handleError)==null||y.call.apply(y,[ub].concat(_.xq(XI(Error("Yb")))))}var l=Er,q=ib;Promise.resolve().then(function(){if(l&&!l.isDisposed){var t=_.JU(l);try{kJ(function(){return void p()},q)}catch(E){throw ub.enableContextBasedComponentStacks&&Lr(E),E;
}finally{_.JU(t)}}})};
_.Ti=function(p,y){Hxm(function(){return bb(p)},y)};
_.xZ=function(p){FI()?_.Hu(function(){bb(p)}):Hxm(function(){return bb(p)},[])};
df6=function(p){var y=[].concat(_.xq(p));p.length=0;p=_.c(y);for(y=p.next();!y.done;y=p.next()){y=y.value;X2m(y);var l=y.pendingEffect;y.pendingEffect=null;if(l=l==null?void 0:l())y.pendingCleanup=l}};
X2m=function(p){var y=p.pendingCleanup;p.pendingCleanup=null;y==null||y()};
Oxl=function(p,y){if(FI())return p();var l=Nal("useMemoInternal");DfL(l.deps,y)&&(l.deps=y,l.value=p());return l.value};
ocj=function(p,y){return Oxl(p,y)};
Bu=function(p){return Oxl(p,[])};
f6=function(p){return Bu(function(){return{value:p}})};
_.vu=function(p,y){if(!p)return null;p=Object.keys(p);p=_.c(p);for(var l=p.next();!l.done;l=p.next()){l=l.value;var q=l.toLowerCase();if(q.indexOf(y,q.length-y.length)>-1)return l}return null};
_.dT=function(){var p=arguments,y=_.XF;p.length>1?y[p[0]]=p[1]:p.length===1&&Object.assign(y,p[0])};
_.OY=function(p,y){return p in _.XF?_.XF[p]:y};
_.o4=function(p,y){return!!_.OY(p,y)};
zoj=function(p){var y=_.XF.EXPERIMENT_FLAGS;return y?y[p]:void 0};
I_c=function(p){Yn5.forEach(function(y){return y(p)})};
_.YZ=function(p){return p&&window.yterr?function(){try{return p.apply(this,arguments)}catch(y){_.zi(y)}}:p};
_.zi=function(p){var y=_.I4("yt.logging.errors.log");y?y(p,"ERROR",void 0,void 0,void 0,void 0,void 0):(y=_.OY("ERRORS",[]),y.push([p,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.dT("ERRORS",y));I_c(p)};
_.ph=function(p,y,l,q,t){var E=_.I4("yt.logging.errors.log");E?E(p,"WARNING",y,l,q,void 0,t):(E=_.OY("ERRORS",[]),E.push([p,"WARNING",y,l,q,void 0,t]),_.dT("ERRORS",E))};
yOt=function(p,y){y=p.split(y);for(var l={},q=0,t=y.length;q<t;q++){var E=y[q].split("=");if(E.length===1&&E[0]||E.length===2)try{var e=pW5(E[0]||""),C=pW5(E[1]||"");if(e in l){var u=l[e];Array.isArray(u)?_.pU(u,C):l[e]=[u,C]}else l[e]=C}catch(b){var a=b,m=E[0],U=String(yOt);a.args=[{key:m,value:E[1],query:p,method:lbL===U?"unchanged":U}];qbg.hasOwnProperty(m)||_.ph(a)}}return l};
sJo=function(p){var y=[];_.Ts.forEach(p,function(l,q){var t=_.y$(q);l=Array.isArray(l)?l:[l];_.lv(l,function(E){E==""?y.push(t):y.push(t+"="+_.y$(E))})});
return y.join("&")};
_.qM=function(p){p.charAt(0)==="?"&&(p=p.substring(1));return yOt(p,"&")};
_.tJ=function(p){return p.indexOf("?")!==-1?(p=(p||"").split("#")[0],p=p.split("?",2),_.qM(p.length>1?p[1]:p[0])):{}};
_.EC=function(p,y){return tNu(p,y||{},!0)};
Ewl=function(p,y){return tNu(p,y||{},!1)};
tNu=function(p,y,l){var q=p.split("#",2);p=q[0];q=q.length>1?"#"+q[1]:"";var t=p.split("?",2);p=t[0];t=_.qM(t[1]||"");for(var E in y)if(l||!_.Ts.containsKey(t,E))t[E]=y[E];return _.JJ(p,t)+q};
Ch=function(p){if(!y)var y=window.location.href;var l=_.cC(p)[1]||null,q=_.eM(p);return l&&q?hJ(p,y):q?_.eM(y)===q&&(Number(_.cC(y)[4]||null)||null)===(Number(_.cC(p)[4]||null)||null):!0};
_.cOc=function(p){p=JOc(p);return p===null?!1:p[0]==="com"&&p[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
JOc=function(p){p=_.eM(p);return p!==null?p.split(".").reverse():null};
pW5=function(p){return p&&p.match(eSu)?p:uv(p)};
_.RK=function(p){return new hSt(p)};
_.WC=function(){Clt||(Clt=new u_8);return Clt};
WO5=function(p){var y=_.aK,l,q;_.h(function(t){l=_.WC();return(q=l.resolve(_.RK(y)))?(p(q),t.return(Promise.resolve(q))):t.return(l.resolve(new RSg(y)).then(function(E){p(E);return E}))})};
_.n=function(p){p=mI(p);return typeof p==="string"&&p==="false"?!1:!!p};
_.UC=function(p,y){p=mI(p);return p===void 0&&y!==void 0?y:Number(p||0)};
abL=function(p){p=mI(p);return Array.isArray(p)?_.xI(p,function(y){return Number(y||0)}):[Number(p||0)]};
_.$h=function(p){p=mI(p);return p!==void 0?String(p):""};
_.jM=function(p){p=mI(p);return Array.isArray(p)?_.xI(p,function(y){return String(y||"")}):[String(p||"")]};
mno=function(){return _.OY("EXPERIMENTS_TOKEN","")};
mI=function(p){return _.OY("EXPERIMENT_FLAGS",{})[p]};
Uno=function(){for(var p=[],y=_.OY("EXPERIMENTS_FORCED_FLAGS",{}),l=_.c(Object.keys(y)),q=l.next();!q.done;q=l.next())q=q.value,p.push({key:q,value:String(y[q])});l=_.OY("EXPERIMENT_FLAGS",{});q=_.c(Object.keys(l));for(var t=q.next();!t.done;t=q.next())t=t.value,t.startsWith("force_")&&y[t]===void 0&&p.push({key:t,value:String(l[t])});return p};
jJt=function(){if(!$nl)return null;var p=$nl();return"open"in p?p:null};
_.byt=function(p){switch(_.bv(p)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.bv=function(p){return p&&"status"in p?p.status:-1};
_.nh=function(p,y){typeof p==="function"&&(p=_.YZ(p));return window.setTimeout(p,y)};
_.Go=function(p,y){typeof p==="function"&&(p=_.YZ(p));return window.setInterval(p,y)};
_.PC=function(p){window.clearTimeout(p)};
Gfj=function(p){p=_.tJ(p);for(var y=_.c(nwm),l=y.next();!l.done;l=y.next())if(p[l.value]!==void 0)return!0;return!1};
ZyL=function(p,y,l,q,t,E,e,C,u){l=l===void 0?"GET":l;q=q===void 0?"":q;C=C===void 0?!1:C;var a=jJt();if(!a)return null;var m=function(){(a&&"readyState"in a?a.readyState:0)===4&&y&&_.YZ(y)(a)};
"onloadend"in a?a.addEventListener("loadend",m,!1):a.onreadystatechange=m;_.n("debug_forward_web_query_parameters")&&(p=Pll(p,window.location.search));a.open(l,p,!0);E&&(a.responseType=E);e&&(a.withCredentials=!0);l=l==="POST"&&(window.FormData===void 0||!(q instanceof FormData));if(t=AO5(p,t))for(var U in t)a.setRequestHeader(U,t[U]),"content-type"===U.toLowerCase()&&(l=!1);l&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded");u&&"onprogress"in a&&(a.onprogress=function(){u(a.responseText)});
if(C&&"setAttributionReporting"in XMLHttpRequest.prototype){p={eventSourceEligible:!0,triggerEligible:!1};try{a.setAttributionReporting(p)}catch(b){_.ph(b)}}a.send(q);return a};
AO5=function(p,y){y=y===void 0?{}:y;var l=Ch(p),q=_.OY("INNERTUBE_CLIENT_NAME"),t=_.n("web_ajax_ignore_global_headers_if_set"),E;for(E in MNa){var e=_.OY(MNa[E]),C=E==="X-Goog-AuthUser"||E==="X-Goog-PageId";E!=="X-Goog-Visitor-Id"||e||(e=_.OY("VISITOR_DATA"));var u;if(!(u=!e)){if(!(u=l||(_.eM(p)?!1:!0))){u=p;var a;if(a=_.n("add_auth_headers_to_remarketing_google_dot_com_ping")&&E==="Authorization"&&(q==="TVHTML5"||q==="TVHTML5_UNPLUGGED"||q==="TVHTML5_SIMPLY"))a=JOc(u),a=a===null?!1:a[1]==="google"?
!0:a[2]==="google"?a[0]==="au"&&a[1]==="com"?!0:a[0]==="uk"&&a[1]==="co"?!0:!1:!1;a&&(u=_.AJ(u)||"",u=u.split("/"),u="/"+(u.length>1?u[1]:""),a=u==="/pagead");u=a?!0:!1}u=!u}u||t&&y[E]!==void 0||q==="TVHTML5_UNPLUGGED"&&C||(y[E]=e)}"X-Goog-EOM-Visitor-Id"in y&&"X-Goog-Visitor-Id"in y&&delete y["X-Goog-Visitor-Id"];if(l||!_.eM(p))y["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(l||!_.eM(p)){try{var m=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(U){}m&&(y["X-YouTube-Time-Zone"]=
m)}document.location.hostname.endsWith("youtubeeducation.com")||!l&&_.eM(p)||(y["X-YouTube-Ad-Signals"]=sJo(VNt()));return y};
_.gwj=function(p,y){var l=_.eM(p);_.n("debug_handle_relative_url_for_query_forward_killswitch")||!l&&Ch(p)&&(l=document.location.hostname);var q=_.AJ(p);q=(l=l&&(l.endsWith("youtube.com")||l.endsWith("youtube-nocookie.com")))&&q&&q.startsWith("/api/");if(!l||q)return p;var t=_.qM(y),E={};_.lv(nwm,function(e){t[e]&&(E[e]=t[e])});
return Ewl(p,E)};
QJc=function(p,y){y.method="POST";y.postParams||(y.postParams={});return _.Z3(p,y)};
KOt=function(p,y){var l=_.OY("XSRF_FIELD_NAME"),q;y.headers&&(q=y.headers["Content-Type"]);return!y.excludeXsrf&&(!_.eM(p)||y.withCredentials||_.eM(p)===document.location.hostname)&&y.method==="POST"&&(!q||q==="application/x-www-form-urlencoded")&&!(y.postParams&&y.postParams[l])};
_.Z3=function(p,y){var l=y.format||"JSON";p=wWu(p,y);var q=iya(p,y),t=!1,E=rOo(p,function(u){if(!t){t=!0;C&&_.PC(C);var a=_.byt(u),m=null,U=400<=u.status&&u.status<500,b=500<=u.status&&u.status<600;if(a||U||b)m=Sbt(p,l,u,y.convertToSafeHtml);a&&(a=FO8(l,u,m));m=m||{};U=y.context||_.l_;a?y.onSuccess&&y.onSuccess.call(U,u,m):y.onError&&y.onError.call(U,u,m);y.onFinish&&y.onFinish.call(U,u,m)}},y.method,q,y.headers,y.responseType,y.withCredentials,!1,y.onProgress);
q=y.timeout||0;if(y.onTimeout&&q>0){var e=y.onTimeout;var C=_.nh(function(){t||(t=!0,E.abort(),_.PC(C),e.call(y.context||_.l_,E))},q)}return E};
wWu=function(p,y){y.includeDomain&&(p=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+p);var l=_.OY("XSRF_FIELD_NAME");if(y=y.urlParams)y[l]&&delete y[l],p=_.EC(p,y);return p};
iya=function(p,y){var l=_.OY("XSRF_FIELD_NAME"),q=_.OY("XSRF_TOKEN"),t=y.postBody||"",E=y.postParams;KOt(p,y)&&(E||(E={}),E[l]=q);(_.n("ajax_parse_query_data_only_when_filled")&&E&&Object.keys(E).length>0||E)&&typeof t==="string"&&(t=_.qM(t),_.Ts.extend(t,E),t=y.postBodyFormat&&y.postBodyFormat==="JSON"?JSON.stringify(t):_.MM(t));E=t||E&&!_.Ts.isEmpty(E);!LOj&&E&&y.method!=="POST"&&(LOj=!0,_.zi(Error("Gc")));return t};
Sbt=function(p,y,l,q){var t=null;switch(y){case "JSON":try{var E=l.responseText}catch(e){throw q=Error("Hc"),q.params=p,_.ph(q),e;}p=l.getResponseHeader("Content-Type")||"";E&&p.indexOf("json")>=0&&(E.substring(0,5)===")]}'\n"&&(E=E.substring(5)),t=JSON.parse(E));break;case "XML":if(p=(p=l.responseXML)?kfc(p):null)t={},_.lv(p.getElementsByTagName("*"),function(e){t[e.tagName]=N$c(e)})}q&&Dn5(t);
return t};
Dn5=function(p){if(_.yQ(p))for(var y in p)y==="html_content"||Ec(y,"_html")?p[y]=pC(p[y]):Dn5(p[y])};
FO8=function(p,y,l){if(y&&y.status===204)return!0;switch(p){case "JSON":return!!l;case "XML":return Number(l&&l.return_code)===0;case "RAW":return!0;default:return!!l}};
kfc=function(p){return p?(p=("responseXML"in p?p.responseXML:p).getElementsByTagName("root"))&&p.length>0?p[0]:null:null};
N$c=function(p){var y="";_.lv(p.childNodes,function(l){y+=l.nodeValue});
return y};
Hyj=function(p){if(p.name==="JavaException")return!0;p=p.stack;return p.includes("chrome://")||p.includes("-extension://")||p.includes("webkit-masked-url://")};
T$l=function(p){if(!p.stack)return!0;var y=!p.stack.includes("\n");return y&&p.stack.includes("ErrorType: ")||y&&p.stack.includes("Anonymous function (Unknown script")||p.stack.toLowerCase()==="not available"||p.fileName==="user-script"||p.fileName.startsWith("user-script:")?!0:!1};
_.V$=function(p){_.Sr.call(this);this.JSC$10419_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!p};
B$_=function(p,y){var l=p.length,q=0,t=function(){return p.charCodeAt(q++)};
do{var E=xnu(t);if(E===Infinity)break;var e=E>>3;switch(E&7){case 0:E=xnu(t);if(e===y)return E;break;case 1:if(e===y)return;q+=8;break;case 2:E=xnu(t);if(e===y)return p.substr(q,E);q+=E;break;case 5:if(e===y)return;q+=4;break;default:return}}while(q<l)};
xnu=function(p){var y=p(),l=y&127;if(y<128)return l;y=p();l|=(y&127)<<7;if(y<128)return l;y=p();l|=(y&127)<<14;if(y<128)return l;y=p();return y<128?l|(y&127)<<21:Infinity};
vw5=function(p,y,l,q){if(p)if(Array.isArray(p)){var t=q;for(q=0;q<p.length&&!(p[q]&&(t+=fbc(q,p[q],y,l),t>500));q++);q=t}else if(typeof p==="object")for(t in p){if(p[t]){var E=t;var e=p[t],C=y,u=l;E=typeof e!=="string"||E!=="clickTrackingParams"&&E!=="trackingParams"?0:(e=B$_(atob(e.replace(/-/g,"+").replace(/_/g,"/")),2))?fbc(E+".ve",e,C,u):0;q+=E;q+=fbc(t,p[t],y,l);if(q>500)break}}else l[y]=gs(p),q+=l[y].length;else l[y]=gs(p),q+=l[y].length;return q};
fbc=function(p,y,l,q){l+="."+p;p=gs(y);q[l]=p;return l.length+p.length};
gs=function(p){try{return(typeof p==="string"?p:String(JSON.stringify(p))).substr(0,500)}catch(y){return"unable to serialize "+typeof p+" ("+y.message+")"}};
XWu=function(p){switch(p){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
_.Kh=function(p,y,l,q,t){_.Q$.set(p,y,{maxAge:l,path:"/",domain:q===void 0?"youtube.com":q,secure:t===void 0?!1:t})};
_.dnL=function(p,y,l){_.Q$.remove(p,y===void 0?"/":y,l===void 0?"youtube.com":l)};
_.ws=function(){if(_.n("embeds_web_enable_cookie_detection_fix")){if(!_.l_.navigator.cookieEnabled)return!1}else if(!_.Q$.isEnabled())return!1;if(!_.Q$.isEmpty())return!0;_.n("embeds_web_enable_cookie_detection_fix")?_.Q$.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.Q$.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.Q$.get("TESTCOOKIESENABLED")!=="1")return!1;_.Q$.remove("TESTCOOKIESENABLED");return!0};
Oyt=function(){var p=_.l_.navigator;return p?p.connection:void 0};
owu=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(p){}};
_.Yb6=function(){var p=Oyt();if(p){var y=zS6[p.type||"unknown"]||"CONN_UNKNOWN";p=zS6[p.effectiveType||"unknown"]||"CONN_UNKNOWN";y==="CONN_CELLULAR_UNKNOWN"&&p!=="CONN_UNKNOWN"&&(y=p);if(y!=="CONN_UNKNOWN")return y;if(p!=="CONN_UNKNOWN")return p}};
pV5=function(){var p=Oyt();if(p!=null&&p.effectiveType)return Ib8.hasOwnProperty(p.effectiveType)?Ib8[p.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.rs=function(){try{return _.iv(),!0}catch(p){return!1}};
_.iv=function(p){if(_.OY("DATASYNC_ID")!==void 0)return _.OY("DATASYNC_ID");throw new _.SM("Datasync ID not set",p===void 0?"unknown":p);};
_.F3=function(p){this.mechanism=p};
Lh=function(p){this.mechanism=p};
kh=function(p){this.storage_=p;this.cachedIsStorageAvailable_=null};
yeR=function(){var p=null;try{p=_.l_.localStorage||null}catch(y){}kh.call(this,p)};
lFu=function(){var p=null;try{p=_.l_.sessionStorage||null}catch(y){}kh.call(this,p)};
NM=function(p,y){this.mechanism_=p;this.JSC$10521_prefix_=y+"::"};
_.qtl=function(p){var y=new yeR;return y.isAvailable()?p?new NM(y,p):y:null};
_.sr6=function(p){var y=new lFu;return y.isAvailable()?p?new NM(y,p):y:null};
Ey6=function(){var p;return(p=t$l())==null?void 0:p.get("LAST_RESULT_ENTRY_KEY",!0)};
_.To=function(p){Jet||(_.D3?_.D3.logError(p):(_.HC.push({type:"ERROR",payload:p}),_.HC.length>10&&_.HC.shift()))};
xh=function(p,y){Jet||(_.D3?_.D3.logEvent(p,y):(_.HC.push({type:"EVENT",eventType:p,payload:y}),_.HC.length>10&&_.HC.shift()))};
BC=function(p){if(p.indexOf(":")>=0)throw Error("Oc");};
fh=function(p){return p.substr(0,p.indexOf(":"))||p};
h3u=function(){return(cel||e3m)&&vC("applewebkit")&&!vC("version")&&(!vC("safari")||vC("gsa/"))};
vC=function(p){var y=_.mL();return y?y.toLowerCase().indexOf(p)>=0:!1};
R3l=function(p,y,l,q){y=fh(y);var t=p instanceof Error?p:Error("Pc`"+p);if(t instanceof X3)return t;p={objectStoreNames:l,dbName:y,dbVersion:q};if(t.name==="QuotaExceededError")return new X3("QUOTA_EXCEEDED",p);if(_.ds&&t.name==="UnknownError")return new X3("QUOTA_MAYBE_EXCEEDED",p);if(t instanceof Caj)return new X3("MISSING_INDEX",Object.assign({},p,{objectStore:t.objectStore,index:t.index}));if(t.name==="InvalidStateError"&&uTR.some(function(E){return t.message.includes(E)}))return new X3("EXECUTE_TRANSACTION_ON_CLOSED_DB",
p);
if(t.name==="AbortError")return new X3("UNKNOWN_ABORT",p,t.message);t.args=[Object.assign({},p,{name:"IdbError",originalName:t.name})];t.level="WARNING";return t};
OC=function(p,y,l){var q=Ey6();return new X3("IDB_NOT_SUPPORTED",{context:{caller:p,publicName:y,version:l,hasSucceededOnce:q==null?void 0:q.hasSucceededOnce}})};
WNj=function(p){if(!p)throw Error();throw p;};
aFl=function(p){return p};
mst=function(p,y,l){var q=function(){try{p.removeEventListener("success",t),p.removeEventListener("error",E)}catch(e){}},t=function(){y(p.result);
q()},E=function(){l(p.error);
q()};
p.addEventListener("success",t);p.addEventListener("error",E)};
UsL=function(p){return new Promise(function(y,l){mst(p,y,l)})};
Yh=function(p){return new oK(new zo(function(y,l){mst(p,y,l)}))};
$sg=function(p,y){return new oK(new zo(function(l,q){var t=function(){var E=p?y(p):null;E?E.then(function(e){p=e;t()},q):l()};
t()}))};
bWt=function(p,y,l){return new Promise(function(q,t){var E=y!==void 0?self.indexedDB.open(p,y):self.indexedDB.open(p);var e=l.blocked,C=l.blocking,u=l.terminated,a=l.upgrade,m=l.closed,U,b=function(){U||(U=new IK(E.result,{closed:m}));return U};
E.addEventListener("upgradeneeded",function(P){try{if(P.newVersion===null)throw Error("Uc");if(E.transaction===null)throw Error("Vc");P.dataLoss&&P.dataLoss!=="none"&&xh("IDB_DATA_CORRUPTED",{reason:P.dataLossMessage||"unknown reason",dbName:fh(p)});var Z=b(),K=new jr6(E.transaction);a&&a(Z,function(F){return P.oldVersion<F&&P.newVersion>=F},K);
K.done.catch(function(F){t(F)})}catch(F){t(F)}});
E.addEventListener("success",function(){var P=E.result;C&&P.addEventListener("versionchange",function(){C(b())});
P.addEventListener("close",function(){xh("IDB_UNEXPECTEDLY_CLOSED",{dbName:fh(p),dbVersion:P.version});u&&u()});
q(b())});
E.addEventListener("error",function(){t(E.error)});
e&&E.addEventListener("blocked",function(){e()})})};
nyc=function(p,y,l){l=l===void 0?{}:l;return bWt(p,y,l)};
_.yx=function(p,y){y=y===void 0?{}:y;var l,q,t,E;return _.h(function(e){if(e.nextAddress==1)return _.Ve(e,2),l=self.indexedDB.deleteDatabase(p),q=y,(t=q.blocked)&&l.addEventListener("blocked",function(){t()}),e.yield(UsL(l),4);
if(e.nextAddress!=2)return _.pK(e,0);E=_.i6(e);throw R3l(E,p,"",-1);})};
Pa_=function(p,y){var l;return _.h(function(q){if(q.nextAddress==1)return q.yield(_.lM(GUt,y),2);l=q.yieldResult;return q.return(_.s1(l,["databases"],{enableRetries:!0,mode:"readwrite"},function(t){var E=t.objectStore("databases");return E.get(p.actualName).then(function(e){if(e?p.actualName!==e.actualName||p.publicName!==e.publicName||p.userIdentifier!==e.userIdentifier:1)return E.put(p).then(function(){})})}))})};
_.tk=function(p,y){var l;return _.h(function(q){if(q.nextAddress==1)return p?q.yield(_.lM(GUt,y),2):q.return();l=q.yieldResult;return q.return(l.delete("databases",p))})};
_.Ae8=function(p,y){var l,q;return _.h(function(t){return t.nextAddress==1?(l=[],t.yield(_.lM(GUt,y),2)):t.nextAddress!=3?(q=t.yieldResult,t.yield(_.s1(q,["databases"],{enableRetries:!0,mode:"readonly"},function(E){l.length=0;return E1(E.objectStore("databases"),{},function(e){p(e.getValue())&&l.push(e.getValue());return e.continue()})}),3)):t.return(l)})};
ZWL=function(p,y){return _.Ae8(function(l){return l.publicName===p&&l.userIdentifier!==void 0},y)};
gyt=function(){var p,y,l,q;return _.h(function(t){switch(t.nextAddress){case 1:p=Ey6();if((y=p)==null?0:y.hasSucceededOnce)return t.return(!0);var E;if(E=M$t)E=/WebKit\/([0-9]+)/.exec(_.mL()),E=!!(E&&parseInt(E[1],10)>=600);E&&(E=/WebKit\/([0-9]+)/.exec(_.mL()),E=!(E&&parseInt(E[1],10)>=602));if(E||Jk)return t.return(!1);try{if(l=self,!(l.indexedDB&&l.IDBIndex&&l.IDBKeyRange&&l.IDBObjectStore))return t.return(!1)}catch(e){return t.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return t.return(!1);
_.Ve(t,2);q={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return t.yield(Pa_(q,V$u),4);case 4:return t.yield(_.tk("yt-idb-test-do-not-use",V$u),5);case 5:return t.return(!0);case 2:return _.i6(t),t.return(!1)}})};
KN8=function(){if(Qro!==void 0)return Qro;Jet=!0;return Qro=gyt().then(function(p){Jet=!1;var y;if((y=t$l())!=null&&y.expiringStorage_){var l;y={hasSucceededOnce:((l=Ey6())==null?void 0:l.hasSucceededOnce)||p};var q;(q=t$l())==null||q.set("LAST_RESULT_ENTRY_KEY",y,2592E3,!0)}return p})};
c7=function(){return _.I4("ytglobal.idbToken_")||void 0};
_.hk=function(){var p=c7();return p?Promise.resolve(p):KN8().then(function(y){(y=y?V$u:void 0)&&_.e0("ytglobal.idbToken_",y);return y})};
wVt=function(p){if(!_.rs())throw p=new X3("AUTH_INVALID",{dbName:p}),_.To(p),p;var y=_.iv();return{actualName:p+":"+y,publicName:p,userIdentifier:y}};
iWL=function(p,y,l,q){var t,E,e,C,u,a;return _.h(function(m){switch(m.nextAddress){case 1:return E=(t=Error().stack)!=null?t:"",m.yield(_.hk(),2);case 2:e=m.yieldResult;if(!e)throw C=OC("openDbImpl",p,y),_.n("ytidb_async_stack_killswitch")||(C.stack=C.stack+"\n"+E.substring(E.indexOf("\n")+1)),_.To(C),C;BC(p);u=l?{actualName:p,publicName:p,userIdentifier:void 0}:wVt(p);_.Ve(m,3);return m.yield(Pa_(u,e),5);case 5:return m.yield(nyc(u.actualName,y,q),6);case 6:return m.return(m.yieldResult);case 3:return a=
_.i6(m),_.Ve(m,7),m.yield(_.tk(u.actualName,e),9);case 9:_.pK(m,8);break;case 7:_.i6(m);case 8:throw a;}})};
reL=function(p,y,l){l=l===void 0?{}:l;return iWL(p,y,!1,l)};
St5=function(p,y,l){l=l===void 0?{}:l;return iWL(p,y,!0,l)};
FN_=function(p,y){y=y===void 0?{}:y;var l,q;return _.h(function(t){if(t.nextAddress==1)return t.yield(_.hk(),2);if(t.nextAddress!=3){l=t.yieldResult;if(!l)return t.return();BC(p);q=wVt(p);return t.yield(_.yx(q.actualName,y),3)}return t.yield(_.tk(q.actualName,l),0)})};
LNg=function(p,y,l){p=p.map(function(q){return _.h(function(t){return t.nextAddress==1?t.yield(_.yx(q.actualName,y),2):t.yield(_.tk(q.actualName,l),0)})});
return Promise.all(p).then(function(){})};
kUR=function(p){var y=y===void 0?{}:y;var l,q;return _.h(function(t){if(t.nextAddress==1)return t.yield(_.hk(),2);if(t.nextAddress!=3){l=t.yieldResult;if(!l)return t.return();BC(p);return t.yield(ZWL(p,l),3)}q=t.yieldResult;return t.yield(LNg(q,y,l),0)})};
NNc=function(p,y){y=y===void 0?{}:y;var l;return _.h(function(q){if(q.nextAddress==1)return q.yield(_.hk(),2);if(q.nextAddress!=3){l=q.yieldResult;if(!l)return q.return();BC(p);return q.yield(_.yx(p,y),3)}return q.yield(_.tk(p,l),0)})};
CK=function(p,y){return Dsu(p,y)};
TNg=function(p){return _.lM(HW8(),p)};
xso=function(p,y,l,q){var t,E,e;return _.h(function(C){switch(C.nextAddress){case 1:return t={config:p,hashData:y,timestamp:q!==void 0?q:(0,_.uM)()},C.yield(TNg(l),2);case 2:return E=C.yieldResult,C.yield(E.clear("hotConfigStore"),3);case 3:return C.yield(E.put("hotConfigStore",t),4);case 4:return e=C.yieldResult,C.return(e)}})};
BNl=function(p,y,l,q,t){var E,e,C;return _.h(function(u){switch(u.nextAddress){case 1:return E={config:p,hashData:y,configData:l,timestamp:t!==void 0?t:(0,_.uM)()},u.yield(TNg(q),2);case 2:return e=u.yieldResult,u.yield(e.clear("coldConfigStore"),3);case 3:return u.yield(e.put("coldConfigStore",E),4);case 4:return C=u.yieldResult,u.return(C)}})};
fFa=function(p){var y,l;return _.h(function(q){return q.nextAddress==1?q.yield(TNg(p),2):q.nextAddress!=3?(y=q.yieldResult,l=void 0,q.yield(_.s1(y,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(t){return _.R7(t.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(E){l=E.getValue()})}),3)):q.return(l)})};
vy5=function(p){var y,l;return _.h(function(q){return q.nextAddress==1?q.yield(TNg(p),2):q.nextAddress!=3?(y=q.yieldResult,l=void 0,q.yield(_.s1(y,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(t){return _.R7(t.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(E){l=E.getValue()})}),3)):q.return(l)})};
XVt=function(){return _.h(function(p){return p.yield(kUR("ytGcfConfig"),0)})};
dsu=function(){return"INNERTUBE_API_KEY"in _.XF&&"INNERTUBE_API_VERSION"in _.XF};
_.W7=function(){return{innertubeApiKey:_.OY("INNERTUBE_API_KEY"),innertubeApiVersion:_.OY("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.OY("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.OY("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.OY("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.OY("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.OY("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.OY("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.OY("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.o4("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.o4("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.OY("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.yBu=function(p){var y={client:{hl:p.innertubeContextHostLanguage,gl:p.innertubeContextGeoLocation,clientName:p.innertubeContextClientName,clientVersion:p.innertubeContextClientVersion,configInfo:p.innertubeContextClientConfigInfo}};navigator.userAgent&&(y.client.userAgent=String(navigator.userAgent));var l=_.l_.devicePixelRatio;l&&l!=1&&(y.client.screenDensityFloat=String(l));l=mno();l!==""&&(y.client.experimentsToken=l);l=Uno();l.length>0&&(y.request={internalExperimentFlags:l});OW8(p,void 0,y);
oyo(void 0,y);z38(void 0,y);Ytm(p,void 0,y);IFc(void 0,y);_.n("start_client_gcf")&&pI6(void 0,y);_.OY("DELEGATED_SESSION_ID")&&!_.n("pageid_as_header_web")&&(y.user={onBehalfOfUser:_.OY("DELEGATED_SESSION_ID")});!_.n("fill_delegate_context_in_gel_killswitch")&&(p=_.OY("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(y.user=Object.assign({},y.user,{serializedDelegationContext:p}));p=_.OY("INNERTUBE_CONTEXT");var q;if(_.n("enable_persistent_device_token")&&(p==null?0:(q=p.client)==null?0:q.rolloutToken)){var t;
y.client.rolloutToken=p==null?void 0:(t=p.client)==null?void 0:t.rolloutToken}q=Object;t=q.assign;p=y.client;l={};for(var E=_.c(Object.entries(_.qM(_.OY("DEVICE","")))),e=E.next();!e.done;e=E.next()){var C=_.c(e.value);e=C.next().value;C=C.next().value;e==="cbrand"?l.deviceMake=C:e==="cmodel"?l.deviceModel=C:e==="cbr"?l.browserName=C:e==="cbrver"?l.browserVersion=C:e==="cos"?l.osName=C:e==="cosver"?l.osVersion=C:e==="cplatform"&&(l.platform=C)}y.client=t.call(q,p,l);return y};
OW8=function(p,y,l){p=p.innertubeContextClientName;if(p==="WEB"||p==="MWEB"||p===1||p===2)if(y){l=_.MF(y,laL,96)||new laL;var q=qKc();q=Object.keys(sUL).indexOf(q);q=q===-1?null:q;q!==null&&_.a7(l,3,q);_.gu(y,96,l)}else l&&(l.client.mainAppWebInfo=(q=l.client.mainAppWebInfo)!=null?q:{},l.client.mainAppWebInfo.webDisplayMode=qKc())};
oyo=function(p,y){var l=_.I4("yt.embedded_player.embed_url");l&&(p?(y=_.MF(p,tiL,7)||new tiL,_.Fq(y,4,l),_.gu(p,7,y)):y&&(y.thirdParty={embedUrl:l}))};
z38=function(p,y){var l;if(_.n("web_log_memory_total_kbytes")&&((l=_.l_.navigator)==null?0:l.deviceMemory)){var q;l=(q=_.l_.navigator)==null?void 0:q.deviceMemory;p?_.mj(p,95,ZA(l*1E6)):y&&(y.client.memoryTotalKbytes=""+l*1E6)}};
Ytm=function(p,y,l){if(p.appInstallData)if(y){var q;l=(q=_.MF(y,U1,62))!=null?q:new U1;_.Fq(l,6,p.appInstallData);_.gu(y,62,l)}else l&&(l.client.configInfo=l.client.configInfo||{},l.client.configInfo.appInstallData=p.appInstallData)};
IFc=function(p,y){var l=_.Yb6();l&&(p?_.a7(p,61,E9l[l]):y&&(y.client.connectionType=l));_.n("web_log_effective_connection_type")&&(l=pV5())&&(p?_.a7(p,94,JB8[l]):y&&(y.client.effectiveConnectionType=l))};
_.hAa=function(p,y,l){l=l===void 0?{}:l;var q={};_.OY("EOM_VISITOR_DATA")?q={"X-Goog-EOM-Visitor-Id":_.OY("EOM_VISITOR_DATA")}:q={"X-Goog-Visitor-Id":l.visitorData||_.OY("VISITOR_DATA","")};if(y&&y.includes("www.youtube-nocookie.com"))return q;y=l.authorization||_.OY("AUTHORIZATION");y||(p?y="Bearer "+_.I4("gapi.auth.getToken")().access_token:(cBa.instance||(cBa.instance=new cBa),p=eAt(),_.n("pageid_as_header_web")||delete p["X-Goog-PageId"],q=Object.assign({},q,p)));y&&(q.Authorization=y);return q};
pI6=function(p,y){var l=CSu();if(l){var q=l.coldConfigData,t=l.coldHashData;l=l.hotHashData;if(p){var E;y=(E=_.MF(p,U1,62))!=null?E:new U1;q=_.Fq(y,1,q);_.Fq(q,3,t).setHotHashData(l);_.gu(p,62,y)}else y&&(y.client.configInfo=y.client.configInfo||{},q&&(y.client.configInfo.coldConfigData=q),t&&(y.client.configInfo.coldHashData=t),l&&(y.client.configInfo.hotHashData=l))}};
$Q=function(p){for(var y=p.length;--y>=0;)p[y]=0};
uCL=function(p,y,l,q,t){this.static_tree=p;this.extra_bits=y;this.extra_base=l;this.elems=q;this.max_length=t;this.has_stree=p&&p.length};
RAL=function(p,y){this.dyn_tree=p;this.max_code=0;this.stat_desc=y};
j0=function(p,y){p.pending_buf[p.pending++]=y&255;p.pending_buf[p.pending++]=y>>>8&255};
bM=function(p,y,l){p.bi_valid>16-l?(p.bi_buf|=y<<p.bi_valid&65535,j0(p,p.bi_buf),p.bi_buf=y>>16-p.bi_valid,p.bi_valid+=l-16):(p.bi_buf|=y<<p.bi_valid&65535,p.bi_valid+=l)};
nK=function(p,y,l){bM(p,l[y*2],l[y*2+1])};
W3t=function(p,y){var l=0;do l|=p&1,p>>>=1,l<<=1;while(--y>0);return l>>>1};
aa_=function(p,y,l){var q=Array(16),t=0,E;for(E=1;E<=15;E++)q[E]=t=t+l[E-1]<<1;for(l=0;l<=y;l++)t=p[l*2+1],t!==0&&(p[l*2]=W3t(q[t]++,t))};
mEc=function(p){var y;for(y=0;y<286;y++)p.dyn_ltree[y*2]=0;for(y=0;y<30;y++)p.dyn_dtree[y*2]=0;for(y=0;y<19;y++)p.bl_tree[y*2]=0;p.dyn_ltree[512]=1;p.opt_len=p.static_len=0;p.last_lit=p.matches=0};
UEc=function(p){p.bi_valid>8?j0(p,p.bi_buf):p.bi_valid>0&&(p.pending_buf[p.pending++]=p.bi_buf);p.bi_buf=0;p.bi_valid=0};
$E8=function(p,y,l){UEc(p);j0(p,l);j0(p,~l);GR.arraySet(p.pending_buf,p.window,y,l,p.pending);p.pending+=l};
jUj=function(p,y,l,q){var t=y*2,E=l*2;return p[t]<p[E]||p[t]===p[E]&&q[y]<=q[l]};
b48=function(p,y,l){for(var q=p.heap[l],t=l<<1;t<=p.heap_len;){t<p.heap_len&&jUj(y,p.heap[t+1],p.heap[t],p.depth)&&t++;if(jUj(y,q,p.heap[t],p.depth))break;p.heap[l]=p.heap[t];l=t;t<<=1}p.heap[l]=q};
Z4_=function(p,y,l){var q=0;if(p.last_lit!==0){do{var t=p.pending_buf[p.d_buf+q*2]<<8|p.pending_buf[p.d_buf+q*2+1];var E=p.pending_buf[p.l_buf+q];q++;if(t===0)nK(p,E,y);else{var e=Ak[E];nK(p,e+256+1,y);var C=n9c[e];C!==0&&(E-=G5o[e],bM(p,E,C));t--;e=t<256?ZK[t]:ZK[256+(t>>>7)];nK(p,e,l);C=PS6[e];C!==0&&(t-=ABl[e],bM(p,t,C))}}while(q<p.last_lit)}nK(p,256,y)};
Mia=function(p,y){var l=y.dyn_tree,q=y.stat_desc.static_tree,t=y.stat_desc.has_stree,E=y.stat_desc.elems,e,C=-1;p.heap_len=0;p.heap_max=573;for(e=0;e<E;e++)l[e*2]!==0?(p.heap[++p.heap_len]=C=e,p.depth[e]=0):l[e*2+1]=0;for(;p.heap_len<2;){var u=p.heap[++p.heap_len]=C<2?++C:0;l[u*2]=1;p.depth[u]=0;p.opt_len--;t&&(p.static_len-=q[u*2+1])}y.max_code=C;for(e=p.heap_len>>1;e>=1;e--)b48(p,l,e);u=E;do e=p.heap[1],p.heap[1]=p.heap[p.heap_len--],b48(p,l,1),q=p.heap[1],p.heap[--p.heap_max]=e,p.heap[--p.heap_max]=
q,l[u*2]=l[e*2]+l[q*2],p.depth[u]=(p.depth[e]>=p.depth[q]?p.depth[e]:p.depth[q])+1,l[e*2+1]=l[q*2+1]=u,p.heap[1]=u++,b48(p,l,1);while(p.heap_len>=2);p.heap[--p.heap_max]=p.heap[1];e=y.dyn_tree;u=y.max_code;q=y.stat_desc.static_tree;t=y.stat_desc.has_stree;E=y.stat_desc.extra_bits;var a=y.stat_desc.extra_base,m=y.stat_desc.max_length,U,b=0;for(U=0;U<=15;U++)p.bl_count[U]=0;e[p.heap[p.heap_max]*2+1]=0;for(y=p.heap_max+1;y<573;y++){var P=p.heap[y];U=e[e[P*2+1]*2+1]+1;U>m&&(U=m,b++);e[P*2+1]=U;if(!(P>
u)){p.bl_count[U]++;var Z=0;P>=a&&(Z=E[P-a]);var K=e[P*2];p.opt_len+=K*(U+Z);t&&(p.static_len+=K*(q[P*2+1]+Z))}}if(b!==0){do{for(U=m-1;p.bl_count[U]===0;)U--;p.bl_count[U]--;p.bl_count[U+1]+=2;p.bl_count[m]--;b-=2}while(b>0);for(U=m;U!==0;U--)for(P=p.bl_count[U];P!==0;)q=p.heap[--y],q>u||(e[q*2+1]!==U&&(p.opt_len+=(U-e[q*2+1])*e[q*2],e[q*2+1]=U),P--)}aa_(l,C,p.bl_count)};
Vil=function(p,y,l){var q,t=-1,E=y[1],e=0,C=7,u=4;E===0&&(C=138,u=3);y[(l+1)*2+1]=65535;for(q=0;q<=l;q++){var a=E;E=y[(q+1)*2+1];++e<C&&a===E||(e<u?p.bl_tree[a*2]+=e:a!==0?(a!==t&&p.bl_tree[a*2]++,p.bl_tree[32]++):e<=10?p.bl_tree[34]++:p.bl_tree[36]++,e=0,t=a,E===0?(C=138,u=3):a===E?(C=6,u=3):(C=7,u=4))}};
g9R=function(p,y,l){var q,t=-1,E=y[1],e=0,C=7,u=4;E===0&&(C=138,u=3);for(q=0;q<=l;q++){var a=E;E=y[(q+1)*2+1];if(!(++e<C&&a===E)){if(e<u){do nK(p,a,p.bl_tree);while(--e!==0)}else a!==0?(a!==t&&(nK(p,a,p.bl_tree),e--),nK(p,16,p.bl_tree),bM(p,e-3,2)):e<=10?(nK(p,17,p.bl_tree),bM(p,e-3,3)):(nK(p,18,p.bl_tree),bM(p,e-11,7));e=0;t=a;E===0?(C=138,u=3):a===E?(C=6,u=3):(C=7,u=4)}}};
QUt=function(p){var y=4093624447,l;for(l=0;l<=31;l++,y>>>=1)if(y&1&&p.dyn_ltree[l*2]!==0)return 0;if(p.dyn_ltree[18]!==0||p.dyn_ltree[20]!==0||p.dyn_ltree[26]!==0)return 1;for(l=32;l<256;l++)if(p.dyn_ltree[l*2]!==0)return 1;return 0};
MU=function(p,y,l){p.pending_buf[p.d_buf+p.last_lit*2]=y>>>8&255;p.pending_buf[p.d_buf+p.last_lit*2+1]=y&255;p.pending_buf[p.l_buf+p.last_lit]=l&255;p.last_lit++;y===0?p.dyn_ltree[l*2]++:(p.matches++,y--,p.dyn_ltree[(Ak[l]+256+1)*2]++,p.dyn_dtree[(y<256?ZK[y]:ZK[256+(y>>>7)])*2]++);return p.last_lit===p.lit_bufsize-1};
gy=function(p,y){p.msg=Vx[y];return y};
Qx=function(p){for(var y=p.length;--y>=0;)p[y]=0};
KK=function(p){var y=p.state,l=y.pending;l>p.avail_out&&(l=p.avail_out);l!==0&&(GR.arraySet(p.output,y.pending_buf,y.pending_out,l,p.next_out),p.next_out+=l,y.pending_out+=l,p.total_out+=l,p.avail_out-=l,y.pending-=l,y.pending===0&&(y.pending_out=0))};
ry=function(p,y){var l=p.block_start>=0?p.block_start:-1,q=p.strstart-p.block_start,t=0;if(p.level>0){p.strm.data_type===2&&(p.strm.data_type=QUt(p));Mia(p,p.l_desc);Mia(p,p.d_desc);Vil(p,p.dyn_ltree,p.l_desc.max_code);Vil(p,p.dyn_dtree,p.d_desc.max_code);Mia(p,p.bl_desc);for(t=18;t>=3&&p.bl_tree[K3j[t]*2+1]===0;t--);p.opt_len+=3*(t+1)+5+5+4;var E=p.opt_len+3+7>>>3;var e=p.static_len+3+7>>>3;e<=E&&(E=e)}else E=e=q+5;if(q+4<=E&&l!==-1)bM(p,y?1:0,3),$E8(p,l,q);else if(p.strategy===4||e===E)bM(p,2+(y?
1:0),3),Z4_(p,wy,iM);else{bM(p,4+(y?1:0),3);l=p.l_desc.max_code+1;q=p.d_desc.max_code+1;t+=1;bM(p,l-257,5);bM(p,q-1,5);bM(p,t-4,4);for(E=0;E<t;E++)bM(p,p.bl_tree[K3j[E]*2+1],3);g9R(p,p.dyn_ltree,l-1);g9R(p,p.dyn_dtree,q-1);Z4_(p,p.dyn_ltree,p.dyn_dtree)}mEc(p);y&&UEc(p);p.block_start=p.strstart;KK(p.strm)};
S0=function(p,y){p.pending_buf[p.pending++]=y};
FL=function(p,y){p.pending_buf[p.pending++]=y>>>8&255;p.pending_buf[p.pending++]=y&255};
wIt=function(p,y){var l=p.max_chain_length,q=p.strstart,t=p.prev_length,E=p.nice_match,e=p.strstart>p.w_size-262?p.strstart-(p.w_size-262):0,C=p.window,u=p.w_mask,a=p.prev,m=p.strstart+258,U=C[q+t-1],b=C[q+t];p.prev_length>=p.good_match&&(l>>=2);E>p.lookahead&&(E=p.lookahead);do{var P=y;if(C[P+t]===b&&C[P+t-1]===U&&C[P]===C[q]&&C[++P]===C[q+1]){q+=2;for(P++;C[++q]===C[++P]&&C[++q]===C[++P]&&C[++q]===C[++P]&&C[++q]===C[++P]&&C[++q]===C[++P]&&C[++q]===C[++P]&&C[++q]===C[++P]&&C[++q]===C[++P]&&q<m;);
P=258-(m-q);q=m-258;if(P>t){p.match_start=y;t=P;if(P>=E)break;U=C[q+t-1];b=C[q+t]}}}while((y=a[y&u])>e&&--l!==0);return t<=p.lookahead?t:p.lookahead};
kQ=function(p){var y=p.w_size,l;do{var q=p.window_size-p.lookahead-p.strstart;if(p.strstart>=y+(y-262)){GR.arraySet(p.window,p.window,y,y,0);p.match_start-=y;p.strstart-=y;p.block_start-=y;var t=l=p.hash_size;do{var E=p.head[--t];p.head[t]=E>=y?E-y:0}while(--l);t=l=y;do E=p.prev[--t],p.prev[t]=E>=y?E-y:0;while(--l);q+=y}if(p.strm.avail_in===0)break;t=p.strm;l=p.window;E=p.strstart+p.lookahead;var e=t.avail_in;e>q&&(e=q);e===0?l=0:(t.avail_in-=e,GR.arraySet(l,t.input,t.next_in,e,E),t.state.wrap===
1?t.adler=i4j(t.adler,l,e,E):t.state.wrap===2&&(t.adler=LK(t.adler,l,e,E)),t.next_in+=e,t.total_in+=e,l=e);p.lookahead+=l;if(p.lookahead+p.insert>=3)for(q=p.strstart-p.insert,p.ins_h=p.window[q],p.ins_h=(p.ins_h<<p.hash_shift^p.window[q+1])&p.hash_mask;p.insert&&!(p.ins_h=(p.ins_h<<p.hash_shift^p.window[q+3-1])&p.hash_mask,p.prev[q&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=q,q++,p.insert--,p.lookahead+p.insert<3););}while(p.lookahead<262&&p.strm.avail_in!==0)};
rBm=function(p,y){for(var l;;){if(p.lookahead<262){kQ(p);if(p.lookahead<262&&y===0)return 1;if(p.lookahead===0)break}l=0;p.lookahead>=3&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+3-1])&p.hash_mask,l=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);l!==0&&p.strstart-l<=p.w_size-262&&(p.match_length=wIt(p,l));if(p.match_length>=3)if(l=MU(p,p.strstart-p.match_start,p.match_length-3),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=3){p.match_length--;
do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+3-1])&p.hash_mask,p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else l=MU(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(l&&(ry(p,!1),p.strm.avail_out===0))return 1}p.insert=p.strstart<2?p.strstart:2;return y===4?(ry(p,
!0),p.strm.avail_out===0?3:4):p.last_lit&&(ry(p,!1),p.strm.avail_out===0)?1:2};
NU=function(p,y){for(var l,q;;){if(p.lookahead<262){kQ(p);if(p.lookahead<262&&y===0)return 1;if(p.lookahead===0)break}l=0;p.lookahead>=3&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+3-1])&p.hash_mask,l=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);p.prev_length=p.match_length;p.prev_match=p.match_start;p.match_length=2;l!==0&&p.prev_length<p.max_lazy_match&&p.strstart-l<=p.w_size-262&&(p.match_length=wIt(p,l),p.match_length<=5&&(p.strategy===1||p.match_length===3&&
p.strstart-p.match_start>4096)&&(p.match_length=2));if(p.prev_length>=3&&p.match_length<=p.prev_length){q=p.strstart+p.lookahead-3;l=MU(p,p.strstart-1-p.prev_match,p.prev_length-3);p.lookahead-=p.prev_length-1;p.prev_length-=2;do++p.strstart<=q&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+3-1])&p.hash_mask,p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);while(--p.prev_length!==0);p.match_available=0;p.match_length=2;p.strstart++;if(l&&(ry(p,!1),p.strm.avail_out===0))return 1}else if(p.match_available){if((l=
MU(p,0,p.window[p.strstart-1]))&&ry(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return 1}else p.match_available=1,p.strstart++,p.lookahead--}p.match_available&&(MU(p,0,p.window[p.strstart-1]),p.match_available=0);p.insert=p.strstart<2?p.strstart:2;return y===4?(ry(p,!0),p.strm.avail_out===0?3:4):p.last_lit&&(ry(p,!1),p.strm.avail_out===0)?1:2};
SKg=function(p,y){for(var l,q,t,E=p.window;;){if(p.lookahead<=258){kQ(p);if(p.lookahead<=258&&y===0)return 1;if(p.lookahead===0)break}p.match_length=0;if(p.lookahead>=3&&p.strstart>0&&(q=p.strstart-1,l=E[q],l===E[++q]&&l===E[++q]&&l===E[++q])){for(t=p.strstart+258;l===E[++q]&&l===E[++q]&&l===E[++q]&&l===E[++q]&&l===E[++q]&&l===E[++q]&&l===E[++q]&&l===E[++q]&&q<t;);p.match_length=258-(t-q);p.match_length>p.lookahead&&(p.match_length=p.lookahead)}p.match_length>=3?(l=MU(p,1,p.match_length-3),p.lookahead-=
p.match_length,p.strstart+=p.match_length,p.match_length=0):(l=MU(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++);if(l&&(ry(p,!1),p.strm.avail_out===0))return 1}p.insert=0;return y===4?(ry(p,!0),p.strm.avail_out===0?3:4):p.last_lit&&(ry(p,!1),p.strm.avail_out===0)?1:2};
F3l=function(p,y){for(var l;;){if(p.lookahead===0&&(kQ(p),p.lookahead===0)){if(y===0)return 1;break}p.match_length=0;l=MU(p,0,p.window[p.strstart]);p.lookahead--;p.strstart++;if(l&&(ry(p,!1),p.strm.avail_out===0))return 1}p.insert=0;return y===4?(ry(p,!0),p.strm.avail_out===0?3:4):p.last_lit&&(ry(p,!1),p.strm.avail_out===0)?1:2};
DK=function(p,y,l,q,t){this.good_length=p;this.max_lazy=y;this.nice_length=l;this.max_chain=q;this.func=t};
L3_=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 GR.Buf16(1146);this.dyn_dtree=new GR.Buf16(122);this.bl_tree=new GR.Buf16(78);Qx(this.dyn_ltree);Qx(this.dyn_dtree);Qx(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new GR.Buf16(16);this.heap=new GR.Buf16(573);Qx(this.heap);this.heap_max=this.heap_len=0;this.depth=new GR.Buf16(573);Qx(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};
k5t=function(p,y){if(!p||!p.state||y>5||y<0)return p?gy(p,-2):-2;var l=p.state;if(!p.output||!p.input&&p.avail_in!==0||l.status===666&&y!==4)return gy(p,p.avail_out===0?-5:-2);l.strm=p;var q=l.last_flush;l.last_flush=y;if(l.status===42)if(l.wrap===2)p.adler=0,S0(l,31),S0(l,139),S0(l,8),l.gzhead?(S0(l,(l.gzhead.text?1:0)+(l.gzhead.hcrc?2:0)+(l.gzhead.extra?4:0)+(l.gzhead.name?8:0)+(l.gzhead.comment?16:0)),S0(l,l.gzhead.time&255),S0(l,l.gzhead.time>>8&255),S0(l,l.gzhead.time>>16&255),S0(l,l.gzhead.time>>
24&255),S0(l,l.level===9?2:l.strategy>=2||l.level<2?4:0),S0(l,l.gzhead.os&255),l.gzhead.extra&&l.gzhead.extra.length&&(S0(l,l.gzhead.extra.length&255),S0(l,l.gzhead.extra.length>>8&255)),l.gzhead.hcrc&&(p.adler=LK(p.adler,l.pending_buf,l.pending,0)),l.gzindex=0,l.status=69):(S0(l,0),S0(l,0),S0(l,0),S0(l,0),S0(l,0),S0(l,l.level===9?2:l.strategy>=2||l.level<2?4:0),S0(l,3),l.status=113);else{var t=8+(l.w_bits-8<<4)<<8;t|=(l.strategy>=2||l.level<2?0:l.level<6?1:l.level===6?2:3)<<6;l.strstart!==0&&(t|=
32);l.status=113;FL(l,t+(31-t%31));l.strstart!==0&&(FL(l,p.adler>>>16),FL(l,p.adler&65535));p.adler=1}if(l.status===69)if(l.gzhead.extra){for(t=l.pending;l.gzindex<(l.gzhead.extra.length&65535)&&(l.pending!==l.pending_buf_size||(l.gzhead.hcrc&&l.pending>t&&(p.adler=LK(p.adler,l.pending_buf,l.pending-t,t)),KK(p),t=l.pending,l.pending!==l.pending_buf_size));)S0(l,l.gzhead.extra[l.gzindex]&255),l.gzindex++;l.gzhead.hcrc&&l.pending>t&&(p.adler=LK(p.adler,l.pending_buf,l.pending-t,t));l.gzindex===l.gzhead.extra.length&&
(l.gzindex=0,l.status=73)}else l.status=73;if(l.status===73)if(l.gzhead.name){t=l.pending;do{if(l.pending===l.pending_buf_size&&(l.gzhead.hcrc&&l.pending>t&&(p.adler=LK(p.adler,l.pending_buf,l.pending-t,t)),KK(p),t=l.pending,l.pending===l.pending_buf_size)){var E=1;break}E=l.gzindex<l.gzhead.name.length?l.gzhead.name.charCodeAt(l.gzindex++)&255:0;S0(l,E)}while(E!==0);l.gzhead.hcrc&&l.pending>t&&(p.adler=LK(p.adler,l.pending_buf,l.pending-t,t));E===0&&(l.gzindex=0,l.status=91)}else l.status=91;if(l.status===
91)if(l.gzhead.comment){t=l.pending;do{if(l.pending===l.pending_buf_size&&(l.gzhead.hcrc&&l.pending>t&&(p.adler=LK(p.adler,l.pending_buf,l.pending-t,t)),KK(p),t=l.pending,l.pending===l.pending_buf_size)){E=1;break}E=l.gzindex<l.gzhead.comment.length?l.gzhead.comment.charCodeAt(l.gzindex++)&255:0;S0(l,E)}while(E!==0);l.gzhead.hcrc&&l.pending>t&&(p.adler=LK(p.adler,l.pending_buf,l.pending-t,t));E===0&&(l.status=103)}else l.status=103;l.status===103&&(l.gzhead.hcrc?(l.pending+2>l.pending_buf_size&&KK(p),
l.pending+2<=l.pending_buf_size&&(S0(l,p.adler&255),S0(l,p.adler>>8&255),p.adler=0,l.status=113)):l.status=113);if(l.pending!==0){if(KK(p),p.avail_out===0)return l.last_flush=-1,0}else if(p.avail_in===0&&(y<<1)-(y>4?9:0)<=(q<<1)-(q>4?9:0)&&y!==4)return gy(p,-5);if(l.status===666&&p.avail_in!==0)return gy(p,-5);if(p.avail_in!==0||l.lookahead!==0||y!==0&&l.status!==666){q=l.strategy===2?F3l(l,y):l.strategy===3?SKg(l,y):H7[l.level].func(l,y);if(q===3||q===4)l.status=666;if(q===1||q===3)return p.avail_out===
0&&(l.last_flush=-1),0;if(q===2&&(y===1?(bM(l,2,3),nK(l,256,wy),l.bi_valid===16?(j0(l,l.bi_buf),l.bi_buf=0,l.bi_valid=0):l.bi_valid>=8&&(l.pending_buf[l.pending++]=l.bi_buf&255,l.bi_buf>>=8,l.bi_valid-=8)):y!==5&&(bM(l,0,3),$E8(l,0,0),y===3&&(Qx(l.head),l.lookahead===0&&(l.strstart=0,l.block_start=0,l.insert=0))),KK(p),p.avail_out===0))return l.last_flush=-1,0}if(y!==4)return 0;if(l.wrap<=0)return 1;l.wrap===2?(S0(l,p.adler&255),S0(l,p.adler>>8&255),S0(l,p.adler>>16&255),S0(l,p.adler>>24&255),S0(l,
p.total_in&255),S0(l,p.total_in>>8&255),S0(l,p.total_in>>16&255),S0(l,p.total_in>>24&255)):(FL(l,p.adler>>>16),FL(l,p.adler&65535));KK(p);l.wrap>0&&(l.wrap=-l.wrap);return l.pending!==0?0:1};
NC8=function(p){if(!(this instanceof NC8))return new NC8(p);p=this.options=GR.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},p||{});p.raw&&p.windowBits>0?p.windowBits=-p.windowBits:p.gzip&&p.windowBits>0&&p.windowBits<16&&(p.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new DE_;this.strm.avail_out=0;var y=this.strm;var l=p.level,q=p.method,t=p.windowBits,E=p.memLevel,e=p.strategy;if(y){var C=1;l===-1&&(l=6);t<0?(C=0,t=-t):t>15&&
(C=2,t-=16);if(E<1||E>9||q!==8||t<8||t>15||l<0||l>9||e<0||e>4)y=gy(y,-2);else{t===8&&(t=9);var u=new L3_;y.state=u;u.strm=y;u.wrap=C;u.gzhead=null;u.w_bits=t;u.w_size=1<<u.w_bits;u.w_mask=u.w_size-1;u.hash_bits=E+7;u.hash_size=1<<u.hash_bits;u.hash_mask=u.hash_size-1;u.hash_shift=~~((u.hash_bits+3-1)/3);u.window=new GR.Buf8(u.w_size*2);u.head=new GR.Buf16(u.hash_size);u.prev=new GR.Buf16(u.w_size);u.lit_bufsize=1<<E+6;u.pending_buf_size=u.lit_bufsize*4;u.pending_buf=new GR.Buf8(u.pending_buf_size);
u.d_buf=u.lit_bufsize;u.l_buf=3*u.lit_bufsize;u.level=l;u.strategy=e;u.method=q;if(y&&y.state){y.total_in=y.total_out=0;y.data_type=2;l=y.state;l.pending=0;l.pending_out=0;l.wrap<0&&(l.wrap=-l.wrap);l.status=l.wrap?42:113;y.adler=l.wrap===2?0:1;l.last_flush=0;if(!H48){q=Array(16);for(E=e=0;E<28;E++)for(G5o[E]=e,t=0;t<1<<n9c[E];t++)Ak[e++]=E;Ak[e-1]=E;for(E=e=0;E<16;E++)for(ABl[E]=e,t=0;t<1<<PS6[E];t++)ZK[e++]=E;for(e>>=7;E<30;E++)for(ABl[E]=e<<7,t=0;t<1<<PS6[E]-7;t++)ZK[256+e++]=E;for(t=0;t<=15;t++)q[t]=
0;for(t=0;t<=143;)wy[t*2+1]=8,t++,q[8]++;for(;t<=255;)wy[t*2+1]=9,t++,q[9]++;for(;t<=279;)wy[t*2+1]=7,t++,q[7]++;for(;t<=287;)wy[t*2+1]=8,t++,q[8]++;aa_(wy,287,q);for(t=0;t<30;t++)iM[t*2+1]=5,iM[t*2]=W3t(t,5);TCm=new uCL(wy,n9c,257,286,15);xEc=new uCL(iM,PS6,0,30,15);BCt=new uCL([],faR,0,19,7);H48=!0}l.l_desc=new RAL(l.dyn_ltree,TCm);l.d_desc=new RAL(l.dyn_dtree,xEc);l.bl_desc=new RAL(l.bl_tree,BCt);l.bi_buf=0;l.bi_valid=0;mEc(l);l=0}else l=gy(y,-2);l===0&&(y=y.state,y.window_size=2*y.w_size,Qx(y.head),
y.max_lazy_match=H7[y.level].max_lazy,y.good_match=H7[y.level].good_length,y.nice_match=H7[y.level].nice_length,y.max_chain_length=H7[y.level].max_chain,y.strstart=0,y.block_start=0,y.lookahead=0,y.insert=0,y.match_length=y.prev_length=2,y.match_available=0,y.ins_h=0);y=l}}else y=-2;if(y!==0)throw Error(Vx[y]);p.header&&(y=this.strm)&&y.state&&y.state.wrap===2&&(y.state.gzhead=p.header);if(p.dictionary){var a;typeof p.dictionary==="string"?a=v96(p.dictionary):XIt.call(p.dictionary)==="[object ArrayBuffer]"?
a=new Uint8Array(p.dictionary):a=p.dictionary;p=this.strm;E=a;e=E.length;if(p&&p.state)if(a=p.state,y=a.wrap,y===2||y===1&&a.status!==42||a.lookahead)y=-2;else{y===1&&(p.adler=i4j(p.adler,E,e,0));a.wrap=0;e>=a.w_size&&(y===0&&(Qx(a.head),a.strstart=0,a.block_start=0,a.insert=0),l=new GR.Buf8(a.w_size),GR.arraySet(l,E,e-a.w_size,a.w_size,0),E=l,e=a.w_size);l=p.avail_in;q=p.next_in;t=p.input;p.avail_in=e;p.next_in=0;p.input=E;for(kQ(a);a.lookahead>=3;){E=a.strstart;e=a.lookahead-2;do a.ins_h=(a.ins_h<<
a.hash_shift^a.window[E+3-1])&a.hash_mask,a.prev[E&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=E,E++;while(--e);a.strstart=E;a.lookahead=2;kQ(a)}a.strstart+=a.lookahead;a.block_start=a.strstart;a.insert=a.lookahead;a.lookahead=0;a.match_length=a.prev_length=2;a.match_available=0;p.next_in=q;p.input=t;p.avail_in=l;a.wrap=y;y=0}else y=-2;if(y!==0)throw Error(Vx[y]);this._dict_set=!0}};
dE6=function(p,y){y=y||{};y.gzip=!0;y=new NC8(y);y.push(p,!0);if(y.err)throw y.msg||Vx[y.err];return y.result};
o9u=function(p,y){var l=O4g();l&&l.publish.call(l,p.toString(),p,y)};
yxo=function(p,y,l){var q=O4g();if(!q)return 0;var t=q.subscribe(p.toString(),function(E,e){var C=_.I4("ytPubsub2Pubsub2SkipSubKey");C&&C==t||(C=function(){if(zA6[t])try{if(e&&p instanceof YKu&&p!=E)try{var u=p.dataClass,a=e;if(!a.args||!a.version)throw Error("Xc");try{if(!u.version_){var m=new u;u.version_=m.version}var U=u.version_}catch(b){}if(!U||a.version!=U)throw Error("Yc");try{e=Reflect.construct(u,_.og(a.args))}catch(b){throw b.message="yt.pubsub2.Data.deserialize(): "+b.message,b;}}catch(b){throw b.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+p.toString()+": "+b.message,b;}y.call(l||window,e)}catch(b){_.zi(b)}},Ia6[p.toString()]?_.I4("yt.scheduler.instance")?_.TR.addLowPriorityJob(C):_.nh(C,0):C())});
zA6[t]=!0;pmo[p.toString()]||(pmo[p.toString()]=[]);pmo[p.toString()].push(t);return t};
tRl=function(){var p=lLo,y=yxo(qsj,function(l){p.apply(void 0,arguments);sM6(y)});
return y};
sM6=function(p){var y=O4g();y&&(typeof p==="number"&&(p=[p]),_.lv(p,function(l){y.unsubscribeByKey(l);delete zA6[l]}))};
O4g=function(){return _.I4("ytPubsub2Pubsub2Instance")};
E8l=function(p,y,l){l=l===void 0?{sampleRate:.1}:l;Math.random()<Math.min(.02,l.sampleRate/100)&&o9u("meta_logging_csi_event",{timerName:p,timelineData:y})};
_.Jxl=function(p){return p?(p=p.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Jw(p):null:null};
_.xQ=function(p){return p?(p=p.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.FX(p):null:null};
ebm=function(){cx5||(cx5=_.xQ(_.OY("WORKER_SERIALIZATION_URL")));return cx5||void 0};
_.Ctu=function(){var p=ebm();hbu||p===void 0||(hbu=new Worker(_.LO(p),void 0));return hbu};
_.uA8=function(){return typeof Worker==="function"&&ebm()?!0:!1};
_.mHt=function(){if(_.uA8()&&!Rb_){var p=function(l){l=l.data;if(l.op==="gzippedGelBatch"){var q=Wro.get(l.key);q&&(aLL(l.gzippedBatch,q.latencyPayload,q.url,q.options,q.sendFn),Wro.delete(l.key))}},y=_.Ctu();
y&&(y.addEventListener("message",p),y.onerror=function(){Wro.clear()},Rb_=!0)}};
PtL=function(p,y,l,q,t){t=t===void 0?!1:t;var E={startTime:(0,_.uM)(),ticks:{},infos:{}};if(B7)try{var e=UH5(y);if(e!=null&&(e>$H8||e<jMo))q(p,l);else{if(_.n("gzip_gel_with_worker")&&(_.n("initial_gzip_use_main_thread")&&!bvu||!_.n("initial_gzip_use_main_thread"))){Rb_||_.mHt();var C=_.Ctu();if(C&&!t){Wro.set(n86,{latencyPayload:E,url:p,options:l,sendFn:q});C.postMessage({op:"gelBatchToGzip",serializedBatch:y,key:n86});n86++;return}}var u=dE6(G9c(y));aLL(u,E,p,l,q)}}catch(a){_.ph(a),q(p,l)}else q(p,
l)};
aLL=function(p,y,l,q,t){bvu=!1;var E=(0,_.uM)();y.ticks.gelc=E;fK++;_.n("disable_compression_due_to_performance_degredation")&&E-y.startTime>=Axj&&(Zvo++,_.n("abandon_compression_after_N_slow_zips")?fK===_.UC("compression_disable_point")&&Zvo>MR8&&(B7=!1):B7=!1);VRu(y);q.headers||(q.headers={});q.headers["Content-Encoding"]="gzip";q.postBody=p;q.postParams=void 0;t(l,q)};
g8j=function(p){var y=y===void 0?!1:y;var l=l===void 0?!1:l;var q=(0,_.uM)(),t={startTime:q,ticks:{},infos:{}},E=y?_.I4("yt.logging.gzipForFetch",!1):!0;if(B7&&E){if(!p.body)return p;try{var e=l?p.body:typeof p.body==="string"?p.body:JSON.stringify(p.body);E=e;if(!l&&typeof e==="string"){var C=UH5(e);if(C!=null&&(C>$H8||C<jMo))return p;l=y?{level:1}:void 0;E=dE6(G9c(e),l);var u=(0,_.uM)();t.ticks.gelc=u;if(y){fK++;if((_.n("disable_compression_due_to_performance_degredation")||_.n("disable_compression_due_to_performance_degradation_lr"))&&
u-q>=Axj)if(Zvo++,_.n("abandon_compression_after_N_slow_zips")||_.n("abandon_compression_after_N_slow_zips_lr")){y=Zvo/fK;var a=MR8/_.UC("compression_disable_point");fK>0&&fK%_.UC("compression_disable_point")===0&&y>=a&&(B7=!1)}else B7=!1;VRu(t)}}p.headers=Object.assign({},{"Content-Encoding":"gzip"},p.headers||{});p.body=E;return p}catch(m){return _.ph(m),p}}else return p};
UH5=function(p){try{return(new Blob(p.split(""))).size}catch(y){return _.ph(y),null}};
VRu=function(p){_.n("gel_compression_csi_killswitch")||!_.n("log_gel_compression_latency")&&!_.n("log_gel_compression_latency_lr")||E8l("gel_compression",p,{sampleRate:.1})};
QMj=function(){this.blockSize=-1};
v7=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var p=1;p<this.blockSize;++p)this.pad_[p]=0;this.total_=this.inbuf_=0;this.reset()};
wmm=function(p){p=Object.assign({},p);delete p.Authorization;var y=_.Krl();if(y){var l=new v7;l.update(_.OY("INNERTUBE_API_KEY"));l.update(y);p.hash=_.HR(l.digest(),3)}return p};
dy=function(){ivt||(ivt=new _.XL("yt.innertube"));return ivt};
rx6=function(p,y,l,q){if(q)return null;q=dy().get("nextId",!0)||1;var t=dy().get("requests",!0)||{};t[q]={method:p,request:y,authState:wmm(l),requestTime:Math.round((0,_.uM)())};dy().set("nextId",q+1,86400,!0);dy().set("requests",t,86400,!0);return q};
Sst=function(p){var y=dy().get("requests",!0)||{};delete y[p];dy().set("requests",y,86400,!0)};
Lrt=function(p){var y=dy().get("requests",!0);if(y){for(var l in y){var q=y[l];if(!(Math.round((0,_.uM)())-q.requestTime<6E4)){var t=q.authState,E=wmm(_.hAa(!1));_.Ts.equals(t,E)&&(t=q.request,"requestTimeMs"in t&&(t.requestTimeMs=Math.round((0,_.uM)())),Fr5(p,q.method,t,{}));delete y[l]}}dy().set("requests",y,86400,!0)}};
k9R=function(p){var y;return(p=p==null?void 0:(y=p.error)==null?void 0:y.code)&&p>=400&&p<=599?!1:!0};
NdL=function(p){var y;p=p==null?void 0:(y=p.error)==null?void 0:y.code;return!(p!==400&&p!==415)};
Hvt=function(){if(DH8)return DH8();var p={};DH8=CK("LogsDatabaseV2",{objectStores:(p.LogsRequestsStore={addedAtVersion:2},p),shared:!1,upgrade:function(y,l,q){l(2)&&O1(y,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});l(3);l(5)&&(q=q.objectStore("LogsRequestsStore"),q.JSC$10579_wrapped.indexNames.contains("newRequest")&&q.JSC$10579_wrapped.deleteIndex("newRequest"),o7(q,"newRequestV2",["status","interface","timestamp"]));l(7)&&y.JSC$10565_wrapped.objectStoreNames.contains("sapisid")&&y.JSC$10565_wrapped.deleteObjectStore("sapisid");
l(9)&&y.JSC$10565_wrapped.objectStoreNames.contains("SWHealthLog")&&y.JSC$10565_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return DH8()};
YQ=function(p){return _.lM(Hvt(),p)};
xH5=function(p,y){var l,q,t,E;return _.h(function(e){if(e.nextAddress==1)return l={startTime:(0,_.uM)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},e.yield(YQ(y),2);if(e.nextAddress!=3)return q=e.yieldResult,t=Object.assign({},p,{options:JSON.parse(JSON.stringify(p.options)),interface:_.OY("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),e.yield(q.put("LogsRequestsStore",t),3);E=e.yieldResult;l.ticks.tc=(0,_.uM)();Tdu(l);return e.return(E)})};
Bd8=function(p,y){var l,q,t,E,e,C,u,a,m;return _.h(function(U){if(U.nextAddress==1)return l={startTime:(0,_.uM)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},U.yield(YQ(y),2);if(U.nextAddress!=3)return q=U.yieldResult,t=_.OY("INNERTUBE_CONTEXT_CLIENT_NAME",0),E=[p,t,0],e=[p,t,(0,_.uM)()],C=IDBKeyRange.bound(E,e),u="prev",_.n("use_fifo_for_networkless")&&(u="next"),a=void 0,m=p==="NEW"?"readwrite":"readonly",_.n("use_readonly_for_get_most_recent_by_status_killswitch")&&(m="readwrite"),
U.yield(_.s1(q,["LogsRequestsStore"],{mode:m,enableRetries:!0},function(b){return _.R7(b.objectStore("LogsRequestsStore").index("newRequestV2"),{query:C,direction:u},function(P){P.getValue()&&(a=P.getValue(),p==="NEW"&&(a.status="QUEUED",P.update(a)))})}),3);
l.ticks.tc=(0,_.uM)();Tdu(l);return U.return(a)})};
fL5=function(p,y){var l;return _.h(function(q){if(q.nextAddress==1)return q.yield(YQ(y),2);l=q.yieldResult;return q.return(_.s1(l,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(t){var E=t.objectStore("LogsRequestsStore");return E.get(p).then(function(e){if(e)return e.status="QUEUED",E.put(e).then(function(){return e})})}))})};
v8t=function(p,y,l,q){l=l===void 0?!0:l;var t;return _.h(function(E){if(E.nextAddress==1)return E.yield(YQ(y),2);t=E.yieldResult;return E.return(_.s1(t,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(e){var C=e.objectStore("LogsRequestsStore");return C.get(p).then(function(u){return u?(u.status="NEW",l&&(u.sendCount+=1),q!==void 0&&(u.options.compress=q),C.put(u).then(function(){return u})):oK.resolve(void 0)})}))})};
Xm8=function(p,y){var l;return _.h(function(q){if(q.nextAddress==1)return q.yield(YQ(y),2);l=q.yieldResult;return q.return(l.delete("LogsRequestsStore",p))})};
dHu=function(p){var y,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(YQ(p),2);y=q.yieldResult;l=(0,_.uM)()-2592E6;return q.yield(_.s1(y,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(t){return E1(t.objectStore("LogsRequestsStore"),{},function(E){if(E.getValue().timestamp<=l)return E.delete().then(function(){return E.continue()})})}),0)})};
Ovu=function(){_.h(function(p){return p.yield(kUR("LogsDatabaseV2"),0)})};
Tdu=function(p){_.n("nwl_csi_killswitch")||E8l("networkless_performance",p,{sampleRate:1})};
_.zbm=function(p){return _.lM(o8_(),p)};
Ys5=function(p){var y,l;_.h(function(q){if(q.nextAddress==1)return q.yield(_.zbm(p),2);y=q.yieldResult;l=(0,_.uM)()-2592E6;return q.yield(_.s1(y,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(t){return E1(t.objectStore("SWHealthLog"),{},function(E){if(E.getValue().timestamp<=l)return E.delete().then(function(){return E.continue()})})}),0)})};
ILa=function(p){var y;return _.h(function(l){if(l.nextAddress==1)return l.yield(_.zbm(p),2);y=l.yieldResult;return l.yield(y.clear("SWHealthLog"),0)})};
_.pT=function(p,y,l,q,t,E,e){t=t===void 0?"":t;E=E===void 0?!1:E;e=e===void 0?!1:e;if(p)if(l&&!vC("cobalt"))_.ph(new _.SM("Legacy referrer-scrubbed ping detected")),p&&pLu(p,void 0,{scrubReferrer:!0});else if(t)ZyL(p,y,"POST",t,q);else if(_.OY("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||q||e)ZyL(p,y,"GET","",q,void 0,E,e);else{b:{try{c:{var C=new ylR({url:p});if(C.urlParamValues_.dsh==="1")var u=null;else{var a=C.urlParamValues_.ae;if(a==="1"){var m=C.urlParamValues_.adurl;if(m)try{u={version:3,directUrl:decodeURIComponent(m),
asyncUrl:akm(C.JSC$9410_url_,"act=1","ri=1",lSR(C))};break c}catch(Z){}}u=a==="2"?{version:4,directUrl:akm(C.JSC$9410_url_,"dct=1","suid="+C.suid_,""),asyncUrl:akm(C.JSC$9410_url_,"act=1","ri=1","suid="+C.suid_)}:null}}if(u){var U=_.AJ(p);var b=!(!U||!U.endsWith("/aclk")||_.oY(p,"ri")!=="1");break b}}catch(Z){}b=!1}if(b){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(p,"")){var P=!0;break b}}catch(Z){}P=!1}P?(y&&y(),l=!0):l=!1}else l=!1;l||pLu(p,y)}};
pLu=function(p,y,l){l=l===void 0?{}:l;var q=new Image,t=""+qU_++;sF5[t]=q;q.onload=q.onerror=function(){y&&sF5[t]&&y();delete sF5[t]};
l.scrubReferrer&&(q.referrerPolicy="no-referrer");q.src=p};
y6=function(p,y){tm5(p,y==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
Egl=function(p){var y;return((y=document.featurePolicy)==null?0:y.allowedFeatures().includes("attribution-reporting"))?p+"&nis=6":p+"&nis=5"};
Jlg=function(p){if(!p)return!1;try{var y;if(((y=_.qM(p))==null?void 0:y.asm)==="4")return!0}catch(l){_.zi(l)}return!1};
tm5=function(p,y){y?(p=Egl(p),_.pT(p,void 0,void 0,void 0,"",!0,!0)):_.pT(p)};
eUj=function(){clu||(clu=new _.XL("yt.offline"));return clu};
hUa=function(p){if(_.n("offline_error_handling")){var y=eUj().get("errors",!0)||{};y[p.message]={name:p.name,stack:p.stack};p.level&&(y[p.message].level=p.level);eUj().set("errors",y,2592E3,!0)}};
uH5=function(p,y,l,q){q=q===void 0?!1:q;y=_.n("web_fp_via_jspb")?Object.assign({},y):y;_.n("use_cfr_monitor")&&Cyt(p,y);if(_.n("use_request_time_ms_header"))y.headers&&Ch(p)&&(y.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.uM)())));else{var t;if((t=y.postParams)==null?0:t.requestTimeMs)y.postParams.requestTimeMs=Math.round((0,_.uM)())}l&&Object.keys(y).length===0?_.pT(p):y.compress?y.postBody?(typeof y.postBody!=="string"&&(y.postBody=JSON.stringify(y.postBody)),PtL(p,y.postBody,
y,_.Z3,q)):PtL(p,JSON.stringify(y.postParams),y,QJc,q):_.Z3(p,y)};
RUR=function(p,y){_.n("use_event_time_ms_header")&&Ch(p)&&(y.headers||(y.headers={}),y.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.uM)())));return y};
_.aS5=function(){Wcm||(Wcm=new _.lG({logOfflineErrors:!0,enablePolling:!0}));return Wcm};
Cyt=function(p,y){var l=y.onError?y.onError:function(){};
y.onError=function(t,E){q$().requestComplete(p,!1);l(t,E)};
var q=y.onSuccess?y.onSuccess:function(){};
y.onSuccess=function(t,E){q$().requestComplete(p,!0);q(t,E)}};
_.mej=function(){return _.eM(document.location.toString())!=="www.youtube-nocookie.com"};
_.jF5=function(){return _.I4("ytNetworklessLoggingInitializationOptions")?_.Ueu.isNwlInitialized:_.$ej};
blt=function(p,y){if(_.n("polymer_on_demand_shady_dom")){var l;var q=(l=p.__shady_native_firstElementChild)!=null?l:p.firstElementChild}else q=p.firstElementChild;for(;q;){if(p=y(q)?q:blt(q,y))return p;q=q.nextElementSibling}return null};
Gpl=function(){var p=document;if("visibilityState"in p)return p.visibilityState;var y=ngo+"VisibilityState";if(y in p)return p[y]};
_.Pyg=function(p,y){var l;sL(p,function(q){l=y[q];return!!l});
return l};
_.EL=function(p){var y=Alt(p);y?y.focus(void 0):_.tp(p)};
Alt=function(p){return(p=blt(p,function(y){return _.Jp(y)?ZlR(y)&&!!y.offsetParent:!1}))?p:null};
_.tp=function(p,y){p.hasAttribute("tabindex")||p.setAttribute("tabindex","-1");p.focus(y)};
Mmg=function(p,y,l,q){q=q===void 0?{}:q;p.addEventListener&&(y!="mouseenter"||"onmouseenter"in document?y!="mouseleave"||"onmouseenter"in document?y=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(y="MozMousePixelScroll"):y="mouseout":y="mouseover");return _.Ts.findKey(cs,function(t){var E=typeof t[4]==="boolean"&&t[4]==!!q,e=_.yQ(t[4])&&_.yQ(q)&&_.Ts.equals(t[4],q);return!!t.length&&t[0]==p&&t[1]==y&&t[2]==l&&(E||e)})};
_.hp=function(p,y,l,q){q=q===void 0?{}:q;if(!p||!p.addEventListener&&!p.attachEvent)return"";var t=Mmg(p,y,l,q);if(t)return t;t=++Vm8.count+"";var E=!(y!="mouseenter"&&y!="mouseleave"||!p.addEventListener||"onmouseenter"in document);var e=E?function(C){C=new eF(C);if(!_.dV(C.relatedTarget,function(u){return u==p},!0))return C.currentTarget=p,C.type=y,l.call(p,C)}:function(C){C=new eF(C);
C.currentTarget=p;return l.call(p,C)};
e=_.YZ(e);p.addEventListener?(y=="mouseenter"&&E?y="mouseover":y=="mouseleave"&&E?y="mouseout":y=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(y="MozMousePixelScroll"),ggt()||typeof q==="boolean"?p.addEventListener(y,e,q):p.addEventListener(y,e,!!q.capture)):p.attachEvent("on"+y,e);cs[t]=[p,y,l,e,q];return t};
_.Kco=function(p,y,l){var q=q===void 0?{}:q;var t=_.hp(p,y,function(){_.QFc(t);l.apply(p,arguments)},q)};
_.QFc=function(p){p&&(typeof p=="string"&&(p=[p]),_.lv(p,function(y){if(y in cs){var l=cs[y],q=l[0],t=l[1],E=l[3];l=l[4];q.removeEventListener?ggt()||typeof l==="boolean"?q.removeEventListener(t,E,l):q.removeEventListener(t,E,!!l.capture):q.detachEvent&&q.detachEvent("on"+t,E);delete cs[y]}}))};
CT=function(p){this.callback_=p;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(p=0;p<4;p++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.hp(window,"mousemove",(0,_.FZ)(this.onMouseMove_,this));this.timerId_=_.Go((0,_.FZ)(this.checkPosition_,this),25)};
ilR=function(){var p={};var y=p.preferMobileEvents===void 0?!1:p.preferMobileEvents;p=p.enableScrollEventListener===void 0?!0:p.enableScrollEventListener;if(_.I4("_lact",window)==null){var l=parseInt(_.OY("LACT"),10);l=isFinite(l)?Date.now()-Math.max(l,0):-1;_.e0("_lact",l,window);_.e0("_fact",l,window);l==-1&&_.uG();_.hp(document,"keydown",_.uG);_.hp(document,"keyup",_.uG);_.hp(document,"mousedown",_.uG);_.hp(document,"mouseup",_.uG);y?_.hp(window,"touchmove",function(){wLj("touchmove",200)},{passive:!0}):
(_.hp(window,"resize",function(){wLj("resize",200)}),p&&_.hp(window,"scroll",function(){wLj("scroll",200)}));
new CT(function(){wLj("mouse",100)});
_.hp(document,"touchstart",_.uG,{passive:!0});_.hp(document,"touchend",_.uG,{passive:!0})}};
wLj=function(p,y){rl6[p]||(rl6[p]=!0,_.TR.addLowPriorityJob(function(){_.uG();rl6[p]=!1},y))};
_.uG=function(){_.I4("_lact",window)==null&&ilR();var p=Date.now();_.e0("_lact",p,window);_.I4("_fact",window)==-1&&_.e0("_fact",p,window);(p=_.I4("ytglobal.ytUtilActivityCallback_"))&&p()};
_.Rd=function(){var p=_.I4("_lact",window);return p==null?-1:Math.max(Date.now()-p,0)};
_.UL=function(p,y,l){var q=_.Ws();if(q&&y){var t=q.subscribe(p,function(){var E=arguments,e=function(){ad[t]&&y.apply&&typeof y.apply=="function"&&y.apply(l||window,E)};
try{_.SUg[p]?e():_.nh(e,0)}catch(C){_.zi(C)}},l);
ad[t]=!0;mH[p]||(mH[p]=[]);mH[p].push(t);return t}return 0};
_.Fcl=function(p){var y=_.Ws();y&&(typeof p==="number"?p=[p]:typeof p==="string"&&(p=[parseInt(p,10)]),_.lv(p,function(l){y.unsubscribeByKey(l);delete ad[l]}))};
_.Lc8=function(p,y){var l=_.Ws();l&&l.publish.apply(l,arguments)};
_.NWo=function(p){var y=_.Ws();if(y)if(y.clear(p),p)kpa(p);else for(var l in mH)kpa(l)};
_.Ws=function(){return _.l_.ytPubsubPubsubInstance};
kpa=function(p){mH[p]&&(p=mH[p],_.lv(p,function(y){ad[y]&&delete ad[y]}),p.length=0)};
Del=function(){var p,y;return"h5vcc"in $n&&((p=$n.h5vcc.traceEvent)==null?0:p.traceBegin)&&((y=$n.h5vcc.traceEvent)==null?0:y.traceEnd)?1:"performance"in $n&&$n.performance.mark&&$n.performance.measure?2:0};
Hlg=function(p){var y=Del();switch(y){case 1:$n.h5vcc.traceEvent.traceBegin("YTLR",p);break;case 2:$n.performance.mark(p+"-start");break;case 0:break;default:_.qL(y,"unknown trace type")}};
TW6=function(p){var y=Del();switch(y){case 1:$n.h5vcc.traceEvent.traceEnd("YTLR",p);break;case 2:y=p+"-start";var l=p+"-end";$n.performance.mark(l);$n.performance.measure(p,y,l);break;case 0:break;default:_.qL(y,"unknown trace type")}};
xem=function(p){var y,l;(l=(y=window).onerror)==null||l.call(y,p.message,"",0,0,p)};
BWu=function(p){if(_.n("web_lifecycle_error_handling_killswitch"))return p();try{return p()}catch(y){xem(y)}};
fSt=function(p){return[p.auth===void 0?"undefined":p.auth,p.isJspb===void 0?"undefined":p.isJspb,p.cttAuthInfo===void 0?"undefined":p.cttAuthInfo,p.tier===void 0?"undefined":p.tier].join("/")};
_.G=function(p,y){if(p)return p[y.name]};
bG=function(){var p=_.I4("yt.logging.ims");p||(p=new jF,_.e0("yt.logging.ims",p));return p};
p$j=function(p,y){if(p.endpoint==="log_event"){vgc(p);var l=XLL(p),q=de_(p.payload)||"",t=Ol5(q),E=200;if(t){if(t.enabled===!1&&!_.n("web_payload_policy_disabled_killswitch"))return;E=og6(t.tier);if(E===400){zUo(p,y);return}}nT[l]=!0;l={cttAuthInfo:l,isJspb:!1,tier:E};bG().storePayload(l,p.payload);YUu(y,!1,l,IS6(q))}};
lRg=function(p,y,l){if(y.endpoint==="log_event"){vgc(void 0,y);var q=XLL(y,!0),t=Ol5(p),E=200;if(t){if(t.enabled===!1&&!_.n("web_payload_policy_disabled_killswitch"))return;E=og6(t.tier);if(E===400){ybc(p,y,l);return}}nT[q]=!0;q={cttAuthInfo:q,isJspb:!0,tier:E};bG().storePayload(q,BR(y.payload));YUu(l,!0,q,IS6(p))}};
YUu=function(p,y,l,q){y=y===void 0?!1:y;q=q===void 0?!1:q;p&&(GX=new p);p=_.UC("tvhtml5_logging_max_batch_ads_fork")||_.UC("tvhtml5_logging_max_batch")||_.UC("web_logging_max_batch")||100;var t=(0,_.uM)(),E=q5t(y,l.tier),e=E.lastDebounceQueueFromLogTimeMs;q&&(E.useVideoStatsEndPoint=!0);q=0;l&&(q=bG().getSequenceCount(l));var C=function(){sxm({writeThenSend:!0},y,l.tier)};
q>=1E3?C():q>=p?tw5||(tw5=ESu(function(){C();tw5=void 0},0)):t-e>=10&&(Jb_(y,l.tier),E.lastDebounceQueueFromLogTimeMs=t)};
zUo=function(p,y){if(p.endpoint==="log_event"){_.n("more_accurate_gel_parser")&&bG().storePayload({isJspb:!1},p.payload);vgc(p);var l=XLL(p),q=new Map;q.set(l,[p.payload]);var t=de_(p.payload)||"";y&&(GX=new y);return new _.Ps(function(E,e){GX&&GX.isReady()?cbt(q,GX,E,e,{bypassNetworkless:!0},!0,IS6(t)):E()})}};
ybc=function(p,y,l){if(y.endpoint==="log_event"){vgc(void 0,y);var q=XLL(y,!0),t=new Map;t.set(q,[BR(y.payload)]);l&&(GX=new l);return new _.Ps(function(E){GX&&GX.isReady()?ex_(t,GX,E,{bypassNetworkless:!0},!0,IS6(p)):E()})}};
XLL=function(p,y){var l="";if(p.dangerousLogToVisitorSession)l="visitorOnlyApprovedKey";else if(p.cttAuthInfo){if(y===void 0?0:y){y=p.cttAuthInfo.token;l=p.cttAuthInfo;var q=new hxc;l.videoId?q.setVideoId(l.videoId):l.playlistId&&Ap(q,2,Cp5,i9(l.playlistId));uf5[y]=q}else y=p.cttAuthInfo,l={},y.videoId?l.videoId=y.videoId:y.playlistId&&(l.playlistId=y.playlistId),Rxu[p.cttAuthInfo.token]=l;l=p.cttAuthInfo.token}return l};
sxm=function(p,y,l){p=p===void 0?{}:p;y=y===void 0?!1:y;new _.Ps(function(q,t){var E=q5t(y,l),e=E.useVideoStatsEndPoint;E.useVideoStatsEndPoint=!1;WR_(E.queueTimer);WR_(E.queueMaxTimer);E.queueMaxTimer=0;GX&&GX.isReady()?l===void 0&&_.n("enable_web_tiered_gel")?aRL(q,t,p,y,300,e):aRL(q,t,p,y,l,e):(Jb_(y,l),q())})};
aRL=function(p,y,l,q,t,E){var e=GX;l=l===void 0?{}:l;q=q===void 0?!1:q;t=t===void 0?200:t;E=E===void 0?!1:E;var C=new Map,u=new Map,a={isJspb:q,cttAuthInfo:void 0,tier:t},m={isJspb:q,cttAuthInfo:void 0};if(q){y=_.c(Object.keys(nT));for(t=y.next();!t.done;t=y.next())t=t.value,u=_.n("enable_web_tiered_gel")?bG().smartExtractMatchingEntries({keys:[a,m],sizeLimit:1E3}):bG().extractMatchingEntries({isJspb:!0,cttAuthInfo:t}),u.length>0&&C.set(t,u),(_.n("web_fp_via_jspb_and_json")&&l.writeThenSend||!_.n("web_fp_via_jspb_and_json"))&&
delete nT[t];ex_(C,e,p,l,!1,E)}else{C=_.c(Object.keys(nT));for(a=C.next();!a.done;a=C.next())a=a.value,m=_.n("enable_web_tiered_gel")?bG().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:a,tier:t},{isJspb:!1,cttAuthInfo:a}],sizeLimit:1E3}):bG().extractMatchingEntries({isJspb:!1,cttAuthInfo:a}),m.length>0&&u.set(a,m),(_.n("web_fp_via_jspb_and_json")&&l.writeThenSend||!_.n("web_fp_via_jspb_and_json"))&&delete nT[a];cbt(u,e,p,y,l,!1,E)}};
Jb_=function(p,y){p=p===void 0?!1:p;y=y===void 0?200:y;var l=function(){sxm({writeThenSend:!0},p,y)},q=q5t(p,y),t=q===mWu||q===UWo?5E3:$Wt;
_.n("web_gel_timeout_cap")&&!q.queueMaxTimer&&(t=ESu(function(){l()},t),q.queueMaxTimer=t);
WR_(q.queueTimer);t=_.OY("LOGGING_BATCH_TIMEOUT",_.UC("web_gel_debounce_ms",1E4));_.n("shorten_initial_gel_batch_timeout")&&jxL&&(t=bYm);t=ESu(function(){_.UC("gel_min_batch_size")>0?bG().getSequenceCount({cttAuthInfo:void 0,isJspb:p,tier:y})>=nSm&&l():l()},t);
q.queueTimer=t};
cbt=function(p,y,l,q,t,E,e){t=t===void 0?{}:t;var C=Math.round((0,_.uM)()),u=p.size,a=GTL(e);p=_.c(p);var m=p.next();for(e={};!m.done;e={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},m=p.next()){var U=_.c(m.value);m=U.next().value;U=U.next().value;e.batchRequest=_.Ts.unsafeClone({context:_.yBu(y.config_||_.W7())});if(!_.zl(U)&&!_.n("throw_err_when_logevent_malformed_killswitch")){q();break}e.batchRequest.events=U;
(U=Rxu[m])&&Ppt(e.batchRequest,m,U);delete Rxu[m];e.dangerousLogToVisitorSession=m==="visitorOnlyApprovedKey";AbL(e.batchRequest,C,e.dangerousLogToVisitorSession);ZYg(t);e.onSuccess$jscomp$3=function(b){_.n("start_client_gcf")&&_.TR.addLowPriorityJob(function(){return _.h(function(P){return P.yield(Mwo(b),0)})});
u--;u||l()};
e.networkFailures=0;e.onError$jscomp$5=function(b){return function(){b.networkFailures++;if(t.bypassNetworkless&&b.networkFailures===1)try{Fr5(y,a,b.batchRequest,Vw5({writeThenSend:!0},b.dangerousLogToVisitorSession,b.onSuccess$jscomp$3,b.onError$jscomp$5,E)),jxL=!1}catch(P){_.zi(P),q()}u--;u||l()}}(e);
try{Fr5(y,a,e.batchRequest,Vw5(t,e.dangerousLogToVisitorSession,e.onSuccess$jscomp$3,e.onError$jscomp$5,E)),jxL=!1}catch(b){_.zi(b),q()}}};
ex_=function(p,y,l,q,t,E){q=q===void 0?{}:q;var e=Math.round((0,_.uM)()),C={value:p.size},u=new Map([].concat(_.xq(p)));u=_.c(u);for(var a=u.next();!a.done;a=u.next()){var m=_.c(a.value).next().value,U=p.get(m);a=new gSc;var b=y.config_||_.W7(),P=new Zp,Z=new Qx5;_.Fq(Z,1,b.innertubeContextHostLanguage);_.Fq(Z,2,b.innertubeContextGeoLocation);_.a7(Z,16,b.innertubeContextClientNameFieldNumber);_.Fq(Z,17,b.innertubeContextClientVersion);if(b.innertubeContextClientConfigInfo){var K=b.innertubeContextClientConfigInfo,
F=new U1;K.coldConfigData&&_.Fq(F,1,K.coldConfigData);K.appInstallData&&_.Fq(F,6,K.appInstallData);K.coldHashData&&_.Fq(F,3,K.coldHashData);K.hotHashData&&F.setHotHashData(K.hotHashData);_.gu(Z,62,F)}(K=_.l_.devicePixelRatio)&&K!=1&&_.mj(Z,65,_.su(K));K=mno();K!==""&&_.Fq(Z,54,K);K=Uno();if(K.length>0){F=new KRg;for(var L=0;L<K.length;L++){var T=new M$;T.setKey(K[L].key);Ap(T,2,w$l,i9(K[L].value));V6(F,15,M$,T)}_.gu(P,5,F)}OW8(b,Z);oyo(P);z38(Z);Ytm(b,Z);IFc(Z);_.n("start_client_gcf")&&pI6(Z);_.OY("DELEGATED_SESSION_ID")&&
!_.n("pageid_as_header_web")&&(b=new gJ,_.Fq(b,3,_.OY("DELEGATED_SESSION_ID")));!_.n("fill_delegate_context_in_gel_killswitch")&&(K=_.OY("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(F=_.MF(P,gJ,3)||new gJ,b=P,K=_.Fq(F,18,K),_.gu(b,3,K));b=Z;K=_.c(Object.entries(_.qM(_.OY("DEVICE",""))));for(F=K.next();!F.done;F=K.next())L=_.c(F.value),F=L.next().value,L=L.next().value,F==="cbrand"?_.Fq(b,12,L):F==="cmodel"?_.Fq(b,13,L):F==="cbr"?_.Fq(b,87,L):F==="cbrver"?_.Fq(b,88,L):F==="cos"?_.Fq(b,18,
L):F==="cosver"?_.Fq(b,19,L):F==="cplatform"&&_.a7(b,42,XWu(L));P.setClient(Z);_.gu(a,1,P);if(Z=uf5[m])a:{if(_.Vy(Z,Q6(Z,Cp5,1)))P=1;else if(Z.getPlaylistId())P=2;else break a;_.gu(a,4,Z);Z=a.getContext()||new Zp;b=_.MF(Z,gJ,3)||new gJ;K=new KT;K.setToken(m);_.a7(K,1,P);V6(b,12,KT,K);_.gu(Z,3,b)}delete uf5[m];m=m==="visitorOnlyApprovedKey";iYt()||_.wJ(a,2,e);!m&&(P=_.OY("EVENT_ID"))&&(Z=rba(),b=new S56,_.Fq(b,1,P),_.wJ(b,2,Z),_.gu(a,5,b));ZYg(q);if(_.n("jspb_serialize_with_worker")&&(P=_.Ctu())&&
q.writeThenSend){_.FRa.set(LR6,{client:y,resolve:l,networklessOptions:q,isIsolated:t,useVSSEndpoint:E,dangerousLogToVisitorSession:m,requestsOutstanding:C});P.postMessage({op:"gelBatchToSerialize",batchRequest:BR(a),clientEvents:U,key:LR6});LR6++;break}if(U){P=[];for(Z=0;Z<U.length;Z++)try{P.push(new iG(U[Z]))}catch(O){_.zi(new _.SM("Transport failed to deserialize "+String(U[Z])))}U=P}else U=[];U=_.c(U);for(P=U.next();!P.done;P=U.next())V6(a,3,iG,P.value);U={startTime:(0,_.uM)(),ticks:{},infos:{}};
a=a.serialize();U.ticks.geljspc=(0,_.uM)();_.n("log_jspb_serialize_latency")&&E8l("gel_jspb_serialize",U,{sampleRate:.1});_.kTl(a,y,l,q,t,E,m,C)}};
_.kTl=function(p,y,l,q,t,E,e,C){q=q===void 0?{}:q;C=C===void 0?{value:0}:C;E=GTL(E);q=Vw5(q,e,function(u){_.n("start_client_gcf")&&_.TR.addLowPriorityJob(function(){return _.h(function(a){return a.yield(Mwo(u),0)})});
C.value--;C.value||l()},function(){C.value--;
C.value||l()},t);
q.headers["Content-Type"]="application/json+protobuf";q.postBodyFormat="JSPB";q.postBody=p;Fr5(y,E,"",q);jxL=!1};
ZYg=function(p){_.n("always_send_and_write")&&(p.writeThenSend=!1)};
Vw5=function(p,y,l,q,t){p={retry:!0,onSuccess:l,onError:q,networklessOptions:p,dangerousLogToVisitorSession:y,bypassMonitoring:!!t,headers:{},postBodyFormat:"",postBody:"",compress:_.n("compress_gel")||_.n("compress_gel_lr")};iYt()&&(p.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.uM)())));return p};
AbL=function(p,y,l){iYt()||(p.requestTimeMs=String(y));_.n("unsplit_gel_payloads_in_logs")&&(p.unsplitGelPayloadsInLogs=!0);!l&&(y=_.OY("EVENT_ID"))&&(l=rba(),p.serializedClientEventId={serializedEventId:y,clientCounter:String(l)})};
rba=function(){var p=_.OY("BATCH_CLIENT_COUNTER")||0;p||(p=Math.floor(Math.random()*65535/2));p++;p>65535&&(p=1);_.dT("BATCH_CLIENT_COUNTER",p);return p};
Ppt=function(p,y,l){if(l.videoId)var q="VIDEO";else if(l.playlistId)q="PLAYLIST";else return;p.credentialTransferTokenTargetId=l;p.context=p.context||{};p.context.user=p.context.user||{};p.context.user.credentialTransferTokens=[{token:y,scope:q}]};
vgc=function(p,y){var l=_.$h("il_payload_scraping")==="enable_il_payload_scraping";if(!_.I4("yt.logging.transport.enableScrapingForTest"))if(l)NDL=[],_.e0("yt.logging.transport.enableScrapingForTest",!0),_.e0("yt.logging.transport.scrapedPayloadsForTesting",NDL),_.e0("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.e0("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.e0("yt.logging.transport.scrapeClientEvent",!0);else return;l=_.I4("yt.logging.transport.scrapedPayloadsForTesting");var q=_.I4("yt.logging.transport.payloadToScrape");y&&(y=_.I4("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(y.payload)())&&l.push(y);y=_.I4("yt.logging.transport.scrapeClientEvent");if(q&&q.length>=1)for(var t=0;t<q.length;t++)if(p&&p.payload[q[t]])if(y)l.push(p.payload);else{var E=void 0;l.push(((E=p)==null?void 0:E.payload)[q[t]])}_.e0("yt.logging.transport.scrapedPayloadsForTesting",
l)};
iYt=function(){return _.n("use_request_time_ms_header")||_.n("lr_use_request_time_ms_header")};
ESu=function(p,y){return _.n("transport_use_scheduler")===!1?_.nh(p,y):_.n("logging_avoid_blocking_during_navigation")||_.n("lr_logging_avoid_blocking_during_navigation")?_.rJ(_.TR,function(){if(_.DWl().currentState==="none")p();else{var l={};_.DWl().install((l.none={callback:p},l))}},y):_.rJ(_.TR,p,y)};
WR_=function(p){_.n("transport_use_scheduler")?_.TR.cancelJob(p):_.PC(p)};
Mwo=function(p){var y,l,q,t,E,e,C,u,a,m;return _.h(function(U){return U.nextAddress==1?(q=(y=p)==null?void 0:(l=y.responseContext)==null?void 0:l.globalConfigGroup,t=_.G(q,HY_),e=(E=q)==null?void 0:E.hotHashData,C=_.G(q,TDt),a=(u=q)==null?void 0:u.coldHashData,(m=_.WC().resolve(_.RK(SF)))?e?t?U.yield(xWa(m,e,t),2):U.yield(xWa(m,e),2):U.jumpTo(2):U.return()):a?C?U.yield(BDu(m,a,C),0):U.yield(BDu(m,a),0):U.jumpTo(0)})};
q5t=function(p,y){y=y===void 0?200:y;return p?y===300?mWu:fR6:y===300?UWo:vS8};
Ol5=function(p){if(_.n("enable_web_tiered_gel")){p=X$6[p||""];var y,l,q,t=_.WC().resolve(_.RK(SF))==null?void 0:(y=kn())==null?void 0:(l=y.loggingHotConfig)==null?void 0:(q=l.eventLoggingConfig)==null?void 0:q.payloadPolicies;if(t)for(y=0;y<t.length;y++)if(t[y].payloadNumber===p)return t[y]}};
de_=function(p){p=Object.keys(p);p=_.c(p);for(var y=p.next();!y.done;y=p.next())if(y=y.value,X$6[y])return y};
og6=function(p){switch(p){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
IS6=function(p){return p==="gelDebuggingEvent"};
GTL=function(p){return(p===void 0?0:p)&&_.n("vss_through_gel_video_stats")?"video_stats":"log_event"};
Dp=function(p,y,l,q){q=q===void 0?{}:q;var t={},E=Math.round(q.timestamp||(0,_.uM)());t.eventTimeMs=E<Number.MAX_SAFE_INTEGER?E:0;t[p]=y;p=_.Rd();t.context={lastActivityMs:String(q.timestamp||!isFinite(p)?-1:p)};q.sequenceGroup&&!_.n("web_gel_sequence_info_killswitch")&&(p=t.context,y=q.sequenceGroup,y={index:dW5(y),groupKey:y},p.sequence=y,q.endOfSequence&&delete N$[q.sequenceGroup]);_.n("web_tag_automated_log_events")&&(t.context.automatedLogEventSource=q.automatedLogEventSource);(q.sendIsolatedPayload?
zUo:p$j)({endpoint:"log_event",payload:t,cttAuthInfo:q.cttAuthInfo,dangerousLogToVisitorSession:q.dangerousLogToVisitorSession},l)};
dW5=function(p){N$[p]=p in N$?N$[p]+1:0;return N$[p]};
_.TX=function(p,y,l){l=l===void 0?{}:l;var q=Hs;_.o4("ytLoggingEventsDefaultDisabled",!1)&&Hs===Hs&&(q=null);Dp(p,y,q,l)};
_.xn=function(){if(_.n("web_fp_via_jspb")){var p=!0;p=p===void 0?!1:p;var y=OYu;OYu=[];if(y){y=_.c(y);for(var l=y.next();!l.done;l=y.next())l=l.value,p?Dp(l.payloadName,l.payload,Hs,l.options):_.TX(l.payloadName,l.payload,l.options)}sxm(void 0,!0);if(!_.n("web_fp_via_jspb_and_json"))return}sxm(void 0,!1)};
oSo=function(p,y){var l;if((l=y)==null?0:l.componentStack)return y;if(p=p.componentStack)y||(y={}),y.componentStack=p;return y};
zxL=function(){_.lv(_.OY("ERRORS")||[],function(p){_.Bs.apply(null,p)});
_.dT("ERRORS",[])};
_.fT=function(p){_.Bs(p)};
_.vs=function(p){_.Bs(p,"WARNING")};
Y5t=function(p){p instanceof Error?_.Bs(p):(p=_.yQ(p)?JSON.stringify(p):String(p),p=new _.SM(p),p.name="RejectedPromiseError",_.vs(p))};
IRt=function(p,y,l,q,t,E){y=y===void 0?"Unknown file":y;l=l===void 0?0:l;var e=!1,C=zoj("log_window_onerror_fraction");if(C&&Math.random()<C)e=!0;else{C=document.getElementsByTagName("script");for(var u=0,a=C.length;u<a;u++)if(C[u].src.indexOf("/debug-")>0){e=!0;break}}e&&(e=!1,t?e=!0:(typeof p==="string"?C=p:ErrorEvent&&p instanceof ErrorEvent?(e=!0,C=p.message,y=p.filename,l=p.lineno,q=p.colno):(C="Unknown error",y="Unknown file",l=0),t=new _.SM(C),t.name="UnhandledWindowError",t.message=C,t.fileName=
y,t.lineNumber=l,isNaN(q)?delete t.columnNumber:t.columnNumber=q),_.n("wiz_enable_component_stack_propagation_killswitch")||(E=oSo(t,E)),E&&_.X$(t,E),e?_.Bs(t):_.vs(t))};
_.Bs=function(p,y,l,q,t,E,e,C){E=E===void 0?{}:E;E.name=l||_.OY("INNERTUBE_CONTEXT_CLIENT_NAME",1);E.version=q||_.OY("INNERTUBE_CONTEXT_CLIENT_VERSION");l=E;y=y===void 0?"ERROR":y;e=e===void 0?!1:e;y=y===void 0?"ERROR":y;e=e===void 0?!1:e;if(p&&(p.hasOwnProperty("level")&&p.level&&(y=p.level),_.n("console_log_js_exceptions")&&(q=[],q.push("Name: "+p.name),q.push("Message: "+p.message),p.hasOwnProperty("params")&&q.push("Error Params: "+JSON.stringify(p.params)),p.hasOwnProperty("args")&&q.push("Error args: "+
JSON.stringify(p.args)),q.push("File name: "+p.fileName),q.push("Stacktrace: "+p.stack),q=q.join("\n"),window.console.log(q,p)),!(pN8>=5))){q=[];t=_.c(ys_);for(E=t.next();!E.done;E=t.next()){E=E.value;try{E()&&q.push(E())}catch(F){}}q=[].concat(_.xq(l6g),_.xq(q));var u=qZ8(p);t=u.message||"Unknown Error";E=u.name||"UnknownError";var a=u.stack||p.stacktrace||"Not available";if(a.startsWith(E+": "+t)){var m=a.split("\n");m.shift();a=m.join("\n")}m=u.lineNumber||"Not available";u=u.fileName||"Not available";
var U=0;if(p.hasOwnProperty("args")&&p.args&&p.args.length)for(var b=0;b<p.args.length&&!(U=vw5(p.args[b],"params."+b,l,U),U>=500);b++);else if(p.hasOwnProperty("params")&&p.params){var P=p.params;if(typeof p.params==="object")for(b in P){if(P[b]){var Z="params."+b,K=gs(P[b]);l[Z]=K;U+=Z.length+K.length;if(U>500)break}}else l.params=gs(P)}if(q.length)for(b=0;b<q.length&&!(U=vw5(q[b],"params.context."+b,l,U),U>=500);b++);navigator.vendor&&!l.hasOwnProperty("vendor")&&(l["device.vendor"]=navigator.vendor);
b={message:t,name:E,lineNumber:m,fileName:u,stack:a,params:l,sampleWeight:1};l=Number(p.columnNumber);isNaN(l)||(b.lineNumber=b.lineNumber+":"+l);if(p.level==="IGNORED")p=0;else a:{p=sWl();l=_.c(p.messageWeights);for(q=l.next();!q.done;q=l.next())if(q=q.value,b.message&&b.message.match(q.messageRegExp)){p=q.weight;break a}p=_.c(p.callbackWeights);for(l=p.next();!l.done;l=p.next())if(l=l.value,l.callback(b)){p=l.weight;break a}p=1}b.sampleWeight=p;p=_.c(tot);for(l=p.next();!l.done;l=p.next())if(l=
l.value,l.patternsForType[b.name])for(t=_.c(l.patternsForType[b.name]),q=t.next();!q.done;q=t.next())if(E=q.value,q=b.message.match(E.regexp)){b.params["params.error.original"]=q[0];t=E.groups;E={};for(m=0;m<t.length;m++)E[t[m]]=q[m+1],b.params["params.error."+t[m]]=q[m+1];b.message=l.messageFn(E);break}b.params||(b.params={});p=sWl();b.params["params.errorServiceSignature"]="msg="+p.messageWeights.length+"&cb="+p.callbackWeights.length;b.params["params.serviceWorker"]="false";_.l_.document&&_.l_.document.querySelectorAll&&
(b.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new dJ(Eoa,"sample")).constructor!==dJ&&(b.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(b);if(b.sampleWeight!==0&&!Jsu.has(b.message)){if(e&&_.n("web_enable_error_204"))csm(y===void 0?"ERROR":y,b);else{y=y===void 0?"ERROR":y;y==="ERROR"?(eWc.publish("handleError",b),_.n("record_app_crashed_web")&&hWl===0&&b.sampleWeight===1&&(hWl++,e={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.n("report_client_error_with_app_crash_ks")||(e.systemHealth={crashData:{clientError:{logMessage:{message:b.message}}}}),_.TX("appCrashed",e)),Cj6++):y==="WARNING"&&eWc.publish("handleWarning",b);if(_.n("kevlar_gel_error_routing")){e=y;C=C===void 0?{}:C;b:{p=_.c(up6);for(l=p.next();!l.done;l=p.next())if(vC(l.value.toLowerCase())){p=!0;break b}p=!1}if(p)C=void 0;else{l={stackTrace:b.stack};b.fileName&&(l.filename=b.fileName);p=b.lineNumber&&b.lineNumber.split?b.lineNumber.split(":"):[];p.length!==
0&&(p.length!==1||isNaN(Number(p[0]))?p.length!==2||isNaN(Number(p[0]))||isNaN(Number(p[1]))||(l.lineNumber=Number(p[0]),l.columnNumber=Number(p[1])):l.lineNumber=Number(p[0]));p={level:"ERROR_LEVEL_UNKNOWN",message:b.message,errorClassName:b.name,sampleWeight:b.sampleWeight};e==="ERROR"?p.level="ERROR_LEVEL_ERROR":e==="WARNING"&&(p.level="ERROR_LEVEL_WARNNING");l={isObfuscated:!0,browserStackInfo:l};C.pageUrl=window.location.href;C.kvPairs=[];_.OY("FEXP_EXPERIMENTS")&&(C.experimentIds=_.OY("FEXP_EXPERIMENTS"));
q=_.OY("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!zoj("web_disable_gel_stp_ecatcher_killswitch")&&q)for(t=_.c(Object.keys(q)),E=t.next();!E.done;E=t.next())E=E.value,C.kvPairs.push({key:E,value:String(q[E])});if(q=b.params)for(t=_.c(Object.keys(q)),E=t.next();!E.done;E=t.next())E=E.value,C.kvPairs.push({key:"client."+E,value:String(q[E])});q=_.OY("SERVER_NAME");t=_.OY("SERVER_VERSION");q&&t&&(C.kvPairs.push({key:"server.name",value:q}),C.kvPairs.push({key:"server.version",value:t}));C={errorMetadata:C,
stackTrace:l,logMessage:p}}C&&(_.TX("clientError",C),(e==="ERROR"||_.n("errors_flush_gel_always_killswitch"))&&_.xn())}_.n("suppress_error_204_logging")||csm(y,b)}try{Jsu.add(b.message)}catch(F){}pN8++}}};
csm=function(p,y){var l=y.params||{};p={urlParams:{a:"logerror",t:"jserror",type:y.name,msg:y.message.substr(0,250),line:y.lineNumber,level:p,"client.name":l.name},postParams:{url:_.OY("PAGE_NAME",window.location.href),file:y.fileName},method:"POST"};l.version&&(p["client.version"]=l.version);if(p.postParams){y.stack&&(p.postParams.stack=y.stack);y=_.c(Object.keys(l));for(var q=y.next();!q.done;q=y.next())q=q.value,p.postParams["client."+q]=l[q];if(l=_.OY("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(y=
_.c(Object.keys(l)),q=y.next();!q.done;q=y.next())q=q.value,p.postParams[q]=l[q];(l=_.OY("LAVA_VERSION"))&&(p.postParams["lava.version"]=l);l=_.OY("SERVER_NAME");y=_.OY("SERVER_VERSION");l&&y&&(p.postParams["server.name"]=l,p.postParams["server.version"]=y)}_.Z3(_.OY("ECATCHER_REPORT_HOST","")+"/error_204",p)};
_.RWm=function(p,y){y=y===void 0?"ERROR":y;var l=l===void 0?{}:l;var q=_.I4("ytbin.polymer.shared.lib.tampering.info");q&&(q=q())&&(l["params.tamperingInfo"]=q.sort().join(","));_.Bs(p,y,void 0,void 0,!0,l)};
_.X$=function(p){var y=_.oX.apply(1,arguments);p.args||(p.args=[]);Array.isArray(p.args)&&p.args.push.apply(p.args,_.xq(y))};
WmL=function(p){p.level="IGNORED"};
a6c=function(p,y){l6g.push(p);y();l6g.pop()};
od=function(p,y){for(var l in y)y.hasOwnProperty(l)&&(p=_.OL(p,l,y[l]));return p};
_.mru=function(p,y,l){l=l===void 0?!1:l;if(!p)return null;if(p.adInfoDialogEndpoint||p.backstageImageUploadEndpoint||p.confirmDialogEndpoint||p.clientActionEndpoint||p.createBackstagePostDialogEndpoint||p.createCommentReplyDialogEndpoint||p.flowEndpoint||p.guideBuilderEndpoint||p.liveChatDialogEndpoint||p.modalEndpoint||p.openPopupAction||p.shareEndpoint||p.shareEntityEndpoint||p.showLiveChatItemEndpoint||p.subscriptionManagerEndpoint||p.unlimitedCreateFamilyEndpoint||p.unlimitedFamilyFlowEndpoint||
p.updateCommentDialogEndpoint||p.updateCommentReplyDialogEndpoint||p.userFeedbackEndpoint||p.videoEditorEndpoint||p.ypcCancelSurveyEndpoint)return y=_.UC("polymer_report_client_url_requested_rate"),!l&&Math.random()<y&&_.vs(new _.SM("urlForEndpoint used on client endpoint",p)),null;var q=_.UC("polymer_report_missing_web_navigation_endpoint_rate");if(p.liveChatEndpoint||p.liveChatReplayEndpoint)q=0;if(!p.commandMetadata&&!p.clickTrackingParams&&Math.random()<q){var t={},E;for(E in p)t[E]="1";_.vs(new _.SM("Missing navigation data",
t))}t="";if(p.commandMetadata&&p.commandMetadata.webCommandMetadata&&p.commandMetadata.webCommandMetadata.url)t=p.commandMetadata.webCommandMetadata.url;else if(p.searchEndpoint)Math.random()<q&&_.vs(new _.SM("Should not manually handle search",p)),t="/results?search_query="+encodeURIComponent(p.searchEndpoint.query).replace(/%20/g,"+"),p.searchEndpoint.params&&(t+="&sp="+p.searchEndpoint.params);else if(p.watchEndpoint)Math.random()<q&&_.vs(new _.SM("Should not manually handle watch",p)),t="/watch?v="+
p.watchEndpoint.videoId,p.watchEndpoint.playlistId&&(t+="&list="+p.watchEndpoint.playlistId),p.watchEndpoint.index&&(t+="&index="+p.watchEndpoint.index),p.watchEndpoint.startTimeSeconds&&(t+="&t="+p.watchEndpoint.startTimeSeconds);else if(p.browseEndpoint)q=p.browseEndpoint.browseId,(E=p.browseEndpoint.canonicalBaseUrl)?t=E:q&&(t=q.substr(0,2),t=t==="FE"?q==="FEwhat_to_watch"?"/":q==="FEmy_videos"?"/my_videos":"/feed/"+q.substr(2):t==="VL"?"/playlist?list="+q.substr(2):"/channel/"+q),t&&p.browseEndpoint.query&&
(t=od(t+"/search",{query:p.browseEndpoint.query})),t&&p.browseEndpoint.params&&(t=od(t,{params:p.browseEndpoint.params}));else{if(p.urlEndpoint)return p.urlEndpoint.url;p.signInEndpoint?(t="https://accounts.google.com/ServiceLogin",q={},_.Ts.extend(q,y||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),y=q):p.uploadEndpoint?t="//www.youtube.com/upload":p.liveChatEndpoint?(t=p.liveChatEndpoint,q=_.Ts.clone(t),_.yQ(t.continuation)&&(E=Object.keys(t.continuation)[0],
q.continuation=t.continuation[E].continuation),t=od("/youtubei/v1/live_chat/get_live_chat",q)):p.liveChatReplayEndpoint?(t=_.Ts.clone(p.liveChatReplayEndpoint),t.currentPlayerState&&(_.Ts.extend(t,t.currentPlayerState),delete t.currentPlayerState),t=od("/youtubei/v1/live_chat/get_live_chat_replay",t)):p.liveChatItemContextMenuEndpoint?t=od("/youtubei/v1/live_chat/get_item_context_menu",p.liveChatItemContextMenuEndpoint):p.liveChatPurchaseMessageEndpoint?t=od("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
p.liveChatPurchaseMessageEndpoint):p.openSuperStickerBuyFlowCommand?t=od("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",p.openSuperStickerBuyFlowCommand):p.videoEditEndpoint?t=od("/edit",{video_id:p.videoEditEndpoint.videoId}):p.liveDashboardEndpoint?t=p.liveDashboardEndpoint.videoId?od("/live_dashboard",{v:p.liveDashboardEndpoint.videoId}):"/live_dashboard":p.signalNavigationEndpoint&&p.signalNavigationEndpoint.signal&&p.signalNavigationEndpoint.signal==="WEBCAM"?t="/webcam":p.getPdgBuyFlowCommand&&
(t=od(p.getPdgBuyFlowCommand.buyflowApiPath,{params:p.getPdgBuyFlowCommand.params}))}return t||l?od(t,y||{}):(_.vs(new _.SM("Error: Can't construct url for endpoint","keys:"+Object.keys(p).sort().join(","),p)),null)};
Urc=function(p){if(p){if(p.browseEndpoint)return!!p.browseEndpoint.nofollow;if(p.watchEndpoint)return!!p.watchEndpoint.nofollow;if(p.urlEndpoint)return!!p.urlEndpoint.nofollow}return!1};
_.jWL=function(p,y){var l=y+p,q=$r5.get(l);if(q)return q;p=y+"-"+p.replace(/([A-Z])/g,"-$1").toLowerCase();$r5.set(l,p);return p};
bX8=function(p){var y=_.vu(p,"action")||_.vu(p,"command")||_.vu(p,"endpoint");if(!y)return null;y=_.jWL(y,"yt");_.G(p,_.zX)&&(y+="-"+_.G(p,_.zX).signal.toLowerCase().replace(/_/g,"-"));return y};
Asj=function(p){try{var y=Object.keys(p)}catch(t){return[]}for(var l=0;l<y.length;l++){var q=y[l];if(nom.test(q)||G4L.test(q))return Pjj(p[q])}return[]};
Pjj=function(p){return p.command?[p.command]:p.onExecutionAction?[p.onExecutionAction]:p.onResponseReceivedCommand?[p.onResponseReceivedCommand]:p.updateFlowCommand?[p.updateFlowCommand]:p.clientActions?p.clientActions:p.action?[p.action]:p.actions||p.commands||p.onResponseReceivedActions||p.onResponseReceivedCommands||p.onResponseReceivedEndpoints||[]};
Mo5=function(p,y){y=y===void 0?!1:y;var l=_.WC().resolve(_.RK(Yn));l||(l=new ZXo,_.WC().addProvider({provide:Yn,useValue:l}));return l&&p&&!_.Ts.isEmpty(p)?l.getUrl(p,y):""};
VoL=function(p,y,l){l=l===void 0?"":l;if(y){p.data=y;var q=Mo5(y);q?(YX(p,q),Urc(y)||!Ch(q)?p.rel="nofollow":p.removeAttribute("rel"),_.G(y,_.Id)&&_.G(y,_.Id).target==="TARGET_NEW_WINDOW"?p.target="_blank":l?p.target=l:p.removeAttribute("target")):(p.removeAttribute("href"),p.removeAttribute("rel"),p.removeAttribute("target"))}};
_.qt=function(p,y){var l=Er;if(FI())goo(p,function(){var E=_.oX.apply(0,arguments);vQ(l,function(){y.apply(null,_.xq(E))})});
else{var q=_.pt.getInstance(),t=f6(y);Hxm(function(){t.value=y});
_.xZ(function(){var E={},e=_.y2(q,(E[p]=function(){var C=_.oX.apply(0,arguments);vQ(l,function(){t.value.apply(t,_.xq(C))})},E));
return function(){var C={};_.lX(q,(C[p]="",C),e)}})}};
_.sM=function(p,y){return QW5(p,!1,y)};
_.tK=function(p,y){return QW5(p,!0,y)};
QW5=function(p,y,l){return FI()?Kmt(p,y,l):wN6(p,y,l)};
wN6=function(p,y,l){return Bu(function(){return Kmt(p,y,l)})};
Kmt=function(p,y,l){var q=LXm(function(t){q.value=t;var E=function(){var e=ae(null);try{return l==null?void 0:l(t)}finally{ae(e)}}();
return function(){E==null||E()}});
q.__expectedTagName=p;q.__optional=y;q.isIdom=!FI();return q};
iXL=function(p){var y=Er,l=ib;return{getFn:function(){return function(q){y.isDisposed||kJ(function(){return bb(function(){return p(q)})},l)!==!0&&q.stopPropagation()}}}};
EM=function(p){if(typeof p.children==="function")return p.children(),null;p=_.c(p.children);for(var y=p.next();!y.done;y=p.next())y=y.value,y();return null};
rsc=function(p){var y;return((y=p.prototype)==null?void 0:y.render)===void 0};
SZc=function(p){return p.items.map(p.children)};
Lm5=function(p,y,l){l=l===void 0?!1:l;kJ(function(){return FmL(p,y,l)})};
FmL=function(p,y,l){var q=null;Qc++;l=(l===void 0?0:l)?k46:NiL;try{q=l(p,function(){JK(y)}),wq(!1)}catch(t){throw wq(!0),t;
}return q===null?p:q};
JK=function(p){if(p!==void 0&&p!==null)if(p instanceof MV)for(var y=YJ;Ie()!=null&&bxL in Ie()&&y.contains(Ie());)lB();else if(Array.isArray(p))for(y=_.c(p),p=y.next();!p.done;p=y.next())JK(p.value);else if(p instanceof SZ||"function"==typeof _.WH&&p instanceof _.WH||"function"==typeof _.C6&&p instanceof _.C6)hM(p.toString());else if(_.UY(p)){if(Ie()!==p){var l,q;y=(q=(l=ib)==null?void 0:l.name)!=null?q:"unknown";throw Error("bc`"+p.tagName+"`"+y);}lB()}else if(p!=null&&p.contentKind===bB||p instanceof
IX||ke_(p))for(y=Dtg(p),y=Array.from(y.childNodes),y=_.c(y),p=y.next();!p.done;p=y.next())YJ.appendChild(p.value),lB();else if(TB(p)&&(p=p.toString()),l=typeof p,l==="boolean"||l==="number"||l==="string")hM(p);else if(typeof p==="function"){y=YJ;var t=Ie();t&&(t._isSignalTextNode||t._isSafeOrSanitizedHtmlNode)||hol(y,t,p);lB()}else if(p.type===SZc)JK(p.type(Object.assign({},p.props,{children:p.children[0]})));else{Qi.beforeVisit(p);if(typeof p.type==="string"){a:{p.__open||aeo(p.type,p.props.idomKey);
t=YJ;for(y in p.props)if(p.props[y]!==Drt){var E=p.props[y];l=EY;l.push(y);l.push(E)}y=ub.attributes;y=y===void 0?cK:y;E=YJ;l=zP(E);Ge6(E,l,y);eot(t,p.props,!0);if((p.props.skip||p.props.skipchildren)&&YJ.hasChildNodes())sY();else{if(p.type==="style"&&dtt(p.children)===null){sY();y=void 0;break a}JK(p.children)}mt_();p.__open&&(p.__open=!1);KlR(t,p.props);y=t}return y}if(p.type===_.a4)JK(p.children);else if(!HX6(p)){y=p;try{Ti6(y)}catch(e){p=e,(E=ub.handleError)==null||E.call.apply(E,[ub].concat(_.xq(XI(p,
(t=y.type)==null?void 0:t.TAG_NAME))))}y.__open&&(mt_(),y.__open=!1)}}};
xr8=function(p,y){var l;rsc(p)?l=new wT(y,p):l=new p(y);l.JSC$10153___type=p;l.__updateContext={nextState:l.state,isForced:!1};return l};
Ti6=function(p){var y=p.type,l=y.TAG_NAME;if(y===EM)p.props.children=p.children,y(p.props);else{p.children.length>0&&(p.props.children=p.children);var q;(q=p.props).idomKey||(q.idomKey=y);if(l){var t=aeo(l,p.props.idomKey);p.__open=!0;var E=t.__instance}E||(E=xr8(y,p.props),E.props=null,t&&(t.__instance=E,E.el=t));var e;l=((e=E.__updateContext)!=null?e:{nextState:E.state,isForced:!1}).nextState;E.__updateContext=void 0;y.getDerivedStateFromProps&&(l=y.getDerivedStateFromProps(p.props,l));E.props=
p.props;E.state=l;e=function(){var C=E;Qi.beforeRender(C);var u=C.render(C.props);Qi.afterRender(C,u);u?(C.props.idomKey&&(u.props.idomKey=C.props.idomKey),C=u):C=void 0;if(u=C)if(u.__open=p.__open,C=JK(u),p.__open=u.__open,!y.TAG_NAME)if(C)y.TAG_NAME=C.tagName.toLowerCase(),C.__instance=E,E.el=C;else{var a;if((a=E.hooks)==null?0:a.length){var m;(m=ub.handleError)==null||m.call.apply(m,[ub].concat(_.xq(XI(Error("kd")))))}}E.didPatch();Qi.didPatch(E)};
(l=E.functionComponent)?SLu(l,e,E.props.debugInstance):e()}};
HX6=function(p){var y=p.type;if(!rsc(y)||y===EM||y.componentType===rq)return!1;p.props.children=p.children.length>1?p.children:p.children[0];var l,q=(l=p.props.idomKey)!=null?l:p.type,t;if(Ie()&&((t=Ie()[Pu])==null?void 0:t.key)===q){var E=Ie(),e=E[Pu];if(!e)throw Error("ac`"+E.tagName);var C;(C=e.updateSignalsFromIdomProps)==null||C.call(e,p.props);Bim(e);return!0}if(f6o.has(y.name))throw C=y.name,y=(e=(E=ib)==null?void 0:E.name)!=null?e:"unknown",Error("$b`"+C+"`"+y);WXo(p.type,p.props,p.children);
p.props.renderedFromIdom=!0;(C=SLu(p.type,function(){return sGR(p.type,p.props)},p.props.debugInstance))&&vou(C);
return!0};
XNR=function(p){for(var y=0;y<Zk(p).length;y++)lB()};
Bim=function(p){var y=dr5();if(y)XNR(y);else for(var l=0;l<p.numNodes;l++)(y=dr5())?XNR(y):lB()};
dr5=function(){var p;return(p=Ie()[Pu])==null?void 0:p.sourceDynamicRange};
vou=function(p){p=rKm(p);p=Array.isArray(p)?p:[p];p=_.c(p);for(var y=p.next();!y.done;y=p.next())YJ.insertBefore(y.value,Ie()),lB()};
OX6=function(p){var y=Ec5(),l=Bu(function(){return{value:typeof p==="function"?p():p}});
return[l.value,function(q){if(K6!==null){var t;(t=ub.handleError)==null||t.call.apply(t,[ub].concat(_.xq(XI(Error("ld")))))}l.value=typeof q==="function"?q(l.value):q;y.__updateContext={nextState:y.state,isForced:!0};q=_.JU(y.effectContext);t=mq(!1);try{if(y.el){var E,e={},C=(e.props=y.props,e.type=y.JSC$10153___type,e.children=(E=y.props.children)!=null?E:[],e[Wu]=!0,e);try{Lm5(y.el,C,!0)}catch(m){var u,a;(a=ub.handleError)==null||a.call.apply(a,[ub].concat(_.xq(XI(m,(u=y.JSC$10153___type)==null?
void 0:u.TAG_NAME))))}}}finally{mq(t),_.JU(q)}}]};
eW=function(p,y){var l=Er,q=function(t){vQ(l,function(){y(t)})};
window.addEventListener(p,q,void 0);_.TP(function(){window.removeEventListener(p,q,void 0)})};
_.Ct=function(p){var y=Er;return function(l){var q,t=(q=p.observer)!=null?q:_.WC().resolve(hK);q=oo_(l);var E=[];p.showOption&&E.push(t.observe(l,function(){vQ(y,function(){p.visibilityCallback(!0,l)})},p.showOption));
p.hideOption&&E.push(t.observe(l,function(){vQ(y,function(){p.visibilityCallback(!1,l)})},p.hideOption));
p.prescanOption&&p.prescanCallback&&E.push(t.observe(l,function(){vQ(y,function(){p.prescanCallback()})},p.prescanOption));
var e;q.visibilityMonitorKeys=((e=q.visibilityMonitorKeys)!=null?e:[]).concat(E)}};
oo_=function(p){var y;return(y=p.polymerController)!=null?y:p};
_.uX=function(p){p.componentType=rq};
pn_=function(p,y){var l=zWt;return _.R(_.a4,null,tU(ub.enableLazyTsx,function(){return _.R(YZt,{id:l,value:p,children:y})},function(){var q=I6t(l,p);
Cr(q);q=_.JU(q);try{return y()}finally{_.JU(q)}}))};
YZt=function(p){var y=p.children;p=I6t(p.id,p.value);Cr(p);p=_.JU(p);try{return _.R(_.a4,null,Vi(y()))}finally{_.JU(p)}};
I6t=function(p,y){return Object.assign(Object.create(yy_),{id:p,contextValue:y})};
ly6=function(p){var y,l=Er;_.fr(function(){var q=_.JU(l),t=mq(!y);try{if(y)Lm5(y,p.children(),!0);else if(y=Vi(p.children()),!(y instanceof Element))throw Error("md");}finally{mq(t),_.JU(q)}});
return y};
_.qw8=function(p,y){var l;y=xJ(function(){var q=mq(!0);try{l=Zk(p())}finally{mq(q)}},y===void 0?!1:y);
return[l,y]};
tq8=function(p){p=p.buf.charCodeAt(p.pos++);return skc[p]};
Rp=function(p){var y=0,l=0;do{var q=tq8(p);y|=(q&31)<<l;l+=5}while(q&32);return y<0?y+4294967296:y};
cyt=function(p,y,l){EFl(p,y);p[y][Jya].unshift(l)};
EFl=function(p,y){if(!p[y]||!p[y][Jya]){var l=p[y],q=l?[l]:[];p[y]=function(){for(var t=_.c(q),E=t.next();!E.done;E=t.next())E.value.apply(this,arguments)};
p[y][Jya]=q}};
eQu=function(p){if(!p)return[];var y=[];p=_.c(p);for(var l=p.next();!l.done;l=p.next())l=l.value,Array.isArray(l)?y.push.apply(y,_.xq(eQu(l))):y.push(l);return y};
_.ap=function(p,y){if(p&&hQ_.test(p)||p==="//")return p;if(CIt===void 0){CIt=!1;try{var l=new URL("b","http://a");l.pathname="c%20d";CIt=l.href==="http://a/c%20d"}catch(q){}}y||(y=document.baseURI||window.location.href);if(CIt)try{return(new URL(p,y)).href}catch(q){return p}WK||(WK=document.implementation.createHTMLDocument("temp"),WK.base=WK.createElement("base"),WK.head.appendChild(WK.base),WK.anchor=WK.createElement("a"),WK.body.appendChild(WK.anchor));WK.base.href=y;WK.anchor.href=p;return WK.anchor.href||
p};
RQj=function(p,y){return p.replace(uru,function(l,q,t,E){return q+"'"+_.ap(t.replace(/["']/g,""),y)+"'"+E})};
WVm=function(p){return p.substring(0,p.lastIndexOf("/")+1)};
UGg=function(){ayt=!1;for(var p=ml.length,y=0;y<p;y++){var l=ml[y];if(l)try{l()}catch(q){setTimeout(function(){throw q;})}}ml.splice(0,p);
mGt+=p};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(p){console.log("["+p.is+"]: registered")};
jko=function(p){$Gt.push(p)};
UM=function(p){return bFu[p]||(bFu[p]=p.indexOf("-")<0?p:p.replace(nFL,function(y){return y[1].toUpperCase()}))};
$H=function(p){return bFu[p]||(bFu[p]=p.replace(GYt,"-$1").toLowerCase())};
PIg=function(p,y){var l=y.parentInfo&&PIg(p,y.parentInfo);if(l)for(p=l.firstChild,l=0;p;p=p.nextSibling){if(y.parentIndex===l++)return p}else return p};
Ayt=function(p,y){p=p._methodHost||p;return function(l){if(p[y])p[y](l,l.detail);else console.warn("listener method `"+y+"` not defined")}};
jW=function(p){return p.indexOf(".")>=0};
bX=function(p){var y=p.indexOf(".");return y===-1?p:p.slice(0,y)};
ZF8=function(p,y){return p.indexOf(y+".")===0};
nt=function(p,y){return y.indexOf(p+".")===0};
AK=function(p,y,l){return y+l.slice(p.length)};
Mq5=function(p,y){return p===y||ZF8(p,y)||nt(p,y)};
Ze=function(p){if(Array.isArray(p)){for(var y=[],l=0;l<p.length;l++)for(var q=p[l].toString().split("."),t=0;t<q.length;t++)y.push(q[t]);return y.join(".")}return p};
Vq5=function(p){return Array.isArray(p)?Ze(p).split("."):p.toString().split(".")};
Mt=function(p,y,l){y=Vq5(y);for(var q=0;q<y.length;q++){if(!p)return;p=p[y[q]]}l&&(l.path=y.join("."));return p};
gFt=function(p,y,l){var q=Vq5(y),t=q[q.length-1];if(q.length>1){for(y=0;y<q.length-1;y++)if(p=p[q[y]],!p)return;p[t]=l}else p[y]=l;return q.join(".")};
Qkl=function(p,y,l){var q=p[y];if(!q)q=p[y]={};else if(!p.hasOwnProperty(y)&&(q=p[y]=Object.create(p[y]),l))for(var t in q)for(p=q[t],y=q[t]=Array(p.length),l=0;l<p.length;l++)y[l]=p[l];return q};
gF=function(p,y,l,q,t,E){if(y){var e=!1,C=V2++,u;for(u in l){var a=t?bX(u):u;if(a=y[a])for(var m=0,U=a.length,b=void 0;m<U&&(b=a[m]);m++)b.info&&b.info.lastRun===C||t&&!KVu(u,b.trigger)||(b.info&&(b.info.lastRun=C),b.fn(p,u,l,q,b.info,t,E),e=!0)}return e}return!1};
KVu=function(p,y){if(y){var l=y.name;return l==p||!(!y.structured||!ZF8(l,p))||!(!y.wildcard||!nt(l,p))}return!0};
wn6=function(p,y,l,q,t){y=typeof t.method==="string"?p[t.method]:t.method;l=t.property;y?y.call(p,p.__data[l],q[l]):t.dynamicFn||console.warn("observer method `"+t.method+"` not defined")};
iFj=function(p,y,l,q){l={value:l,queueProperty:!0};q&&(l.path=q);(0,_.Q2)(p).dispatchEvent(new CustomEvent(y,{detail:l}))};
ryg=function(p,y,l,q,t,E){E=(q=(E?bX(y):y)!=y?y:null)?Mt(p,q):p.__data[y];q&&E===void 0&&(E=l[y]);iFj(p,t.eventName,E,q)};
Swo=function(p,y,l,q,t){l=p.__data[y];Kt&&(l=Kt(l,t.attrName,"attribute",p));p._propertyToAttribute(y,t.attrName,l)};
LVo=function(p){var y=p.constructor.__orderedComputedDeps;if(!y){y=new Map;for(var l=p.__computeEffects,q=FVj(p),t=q.counts,E=q.ready,e=q.total;q=E.shift();)y.set(q,y.size),(q=l[q])&&q.forEach(function(C){C=C.info.methodInfo;--e;--t[C]===0&&E.push(C)});
e!==0&&console.warn("Computed graph for "+p.localName+" incomplete; circular?");p.constructor.__orderedComputedDeps=y}return y};
FVj=function(p){var y=p.__computeInfo,l={};p=p.__computeEffects;var q=[],t=0,E;for(E in y){var e=y[E];t+=l[E]=e.args.filter(function(u){return!u.literal}).length+(e.dynamicFn?1:0)}for(var C in p)y[C]||q.push(C);
return{counts:l,ready:q,total:t}};
NP6=function(p,y,l,q,t){y=kYu(p,y,l,q,t);if(y===wF)return!1;t=t.methodInfo;if(p.__dataHasAccessor&&p.__dataHasAccessor[t])return p._setPendingProperty(t,y,!0);p[t]=y;return!1};
TPj=function(p,y,l,q,t,E,e){l.bindings=l.bindings||[];q={kind:q,target:t,parts:E,literal:e,isCompound:E.length!==1};l.bindings.push(q);q.target&&q.kind!="attribute"&&q.kind!="text"&&!q.isCompound&&q.parts[0].mode==="{"&&(l=q.parts[0],E=l.negate,q.listenerEvent=l.event||$H(t)+"-changed",q.listenerNegate=E);t=y.nodeInfoList.length;for(l=0;l<q.parts.length;l++){var C=q.parts[l];C.compoundIndex=l;E=p;e=y;var u=q,a=C,m=t;if(!a.literal)if(u.kind==="attribute"&&u.target[0]==="-")console.warn("Cannot set attribute "+
u.target+' because "-" is not a valid attribute starting character');else for(C=a.dependencies,u={index:m,binding:u,part:a,evaluator:E},a=0;a<C.length;a++)m=C[a],typeof m=="string"&&(m=DGL(m),m.wildcard=!0),E._addTemplatePropertyEffect(e,m.rootProperty,{fn:HFt,info:u,trigger:m})}};
HFt=function(p,y,l,q,t,E,e){e=e[t.index];var C=t.binding,u=t.part;E&&u.source&&y.length>u.source.length&&C.kind=="property"&&!C.isCompound&&e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[C.target]?(l=l[y],y=AK(u.source,C.target,y),e._setPendingPropertyOrPath(y,l,!1,!0)&&p._enqueueClient(e)):(y=t.evaluator._evaluateBinding(p,u,y,l,q,E),y!==wF&&(C.isCompound&&(l=e.__dataCompoundStorage[C.target],l[u.compoundIndex]=y,y=l.join("")),C.kind==="attribute"||C.target!=="textContent"&&
(C.target!=="value"||e.localName!=="input"&&e.localName!=="textarea")||(y=y==void 0?"":y),u=y,Kt&&(u=Kt(u,C.target,C.kind,e)),C.kind=="attribute"?p._valueToNodeAttribute(e,u,C.target):(C=C.target,e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[C]?e.__readOnly&&e.__readOnly[C]||e._setPendingProperty(C,u)&&p._enqueueClient(e):p._setUnmanagedPropertyToNode(e,C,u))))};
xGu=function(p,y,l){if(l.listenerEvent){var q=l.parts[0];p.addEventListener(l.listenerEvent,function(t){var E=l.target,e=q.source,C=q.negate,u=t.detail,a=u&&u.path;a?(e=AK(E,e,a),t=u&&u.value):t=t.currentTarget[E];y.__readOnly&&y.__readOnly[e]||!y._setPendingPropertyOrPath(e,C?!t:t,!0,!!a)||u&&u.queueProperty||y._invalidateProperties()})}};
BPL=function(p,y,l,q,t,E){E=y.static||E&&(typeof E!=="object"||E[y.methodName]);t={methodName:y.methodName,args:y.args,methodInfo:t,dynamicFn:E};for(var e=0,C=void 0;e<y.args.length&&(C=y.args[e]);e++)C.literal||p._addPropertyEffect(C.rootProperty,l,{fn:q,info:t,trigger:C});E&&p._addPropertyEffect(y.methodName,l,{fn:q,info:t});return t};
kYu=function(p,y,l,q,t){q=p._methodHost||p;var E=q[t.methodName];if(E)return p=p._marshalArgs(t.args,y,l),p===wF?wF:E.apply(q,p);t.dynamicFn||console.warn("method `"+t.methodName+"` not defined")};
fyj=function(p){for(var y="",l=0;l<p.length;l++)y+=p[l].literal||"";return y};
dG8=function(p){if(p=p.match(/([^\s]+?)\(([\s\S]*)\)/)){var y={methodName:p[1],static:!0,args:vF5};return p[2].trim()?Xng(p[2].replace(/\\,/g,"&comma;").split(","),y):y}return null};
Xng=function(p,y){y.args=p.map(function(l){l=DGL(l);l.literal||(y.static=!1);return l},this);
return y};
DGL=function(p){p=p.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var y={name:p,value:"",literal:!1},l=p[0];l==="-"&&(l=p[1]);l>="0"&&l<="9"&&(l="#");switch(l){case "'":case '"':y.value=p.slice(1,-1);y.literal=!0;break;case "#":y.value=Number(p),y.literal=!0}y.literal||(y.rootProperty=bX(p),y.structured=jW(p),y.structured&&(y.wildcard=p.slice(-2)==".*",y.wildcard&&(y.name=p.slice(0,-2))));return y};
OFg=function(p,y,l){p=Mt(p,l);p===void 0&&(p=y[l]);return p};
oFt=function(p,y,l,q){q={indexSplices:q};iX&&!p._overrideLegacyUndefined&&(y.splices=q);p.notifyPath(l+".splices",q);p.notifyPath(l+".length",y.length);iX&&!p._overrideLegacyUndefined&&(q.indexSplices=[])};
rF=function(p,y,l,q,t,E){oFt(p,y,l,[{index:q,addedCount:t,removed:E,object:y,type:"splice"}])};
zQL=function(p){p=RQj((p.body?p.body:p).textContent,p.baseURI);var y=document.createElement("style");y.textContent=p;return y};
Iyc=function(p){p=p.trim().split(/\s+/);for(var y=[],l=0;l<p.length;l++)y.push.apply(y,_.xq(Ywa(p[l])));return y};
Ywa=function(p){var y=SW.import(p);if(!y)return console.warn("Could not find style data in module named",p),[];if(y._styles===void 0){p=[];p.push.apply(p,_.xq(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(y)));var l=y.querySelector("template");l&&p.push.apply(p,_.xq(p35(l,y.assetpath)));y._styles=p}return y._styles};
p35=function(p,y){if(!p._styles){for(var l=[],q=p.content.querySelectorAll("style"),t=0;t<q.length;t++){var E=q[t],e=E.getAttribute("include");e&&l.push.apply(l,_.xq(Iyc(e).filter(function(C,u,a){return a.indexOf(C)===u})));
y&&(E.textContent=RQj(E.textContent,y));l.push(E)}p._styles=l}return p._styles};
y2l=function(p){return(p=SW.import(p))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(p):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(p){var y=[];p=p.querySelectorAll("link[rel=import][type~=css]");for(var l=0;l<p.length;l++){var q=p[l];if(q.import){var t=q.import;if((q=q.hasAttribute("shady-unscoped"))&&!t._unscopedStyle){var E=zQL(t);E.setAttribute("shady-unscoped","");t._unscopedStyle=E}else t._style||(t._style=zQL(t));y.push(q?t._unscopedStyle:t._style)}}return y};
qPa=function(p){p=p.trim().split(/\s+/);for(var y="",l=0;l<p.length;l++)y+=lQo(p[l]);return y};
lQo=function(p){var y=SW.import(p);if(y&&y._cssText===void 0){var l=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(y),q=y.querySelector("template");q&&(l+=sAt(q,y.assetpath));y._cssText=l||null}y||console.warn("Could not find style data in module named",p);return y&&y._cssText||""};
sAt=function(p,y){var l="";p=p35(p,y);for(y=0;y<p.length;y++){var q=p[y];q.parentNode&&q.parentNode.removeChild(q);l+=q.textContent}return l};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(p){var y="";p=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(p);for(var l=0;l<p.length;l++)y+=p[l].textContent;return y};
Fz=function(p,y){return{index:p,removed:[],addedCount:y}};
EzR=function(p,y,l,q){var t=0,E=0,e=0,C=0,u=Math.min(y-t,q-E);if(t==0&&E==0)a:{for(e=0;e<u;e++)if(p[e]!==l[e])break a;e=u}if(y==p.length&&q==l.length){C=p.length;for(var a=l.length,m=0;m<u-e&&tPj(p[--C],l[--a]);)m++;C=m}t+=e;E+=e;y-=C;q-=C;if(y-t==0&&q-E==0)return[];if(t==y){for(y=Fz(t,0);E<q;)y.removed.push(l[E++]);return[y]}if(E==q)return[Fz(t,y-t)];u=t;e=E;q=q-e+1;C=y-u+1;y=Array(q);for(a=0;a<q;a++)y[a]=Array(C),y[a][0]=a;for(a=0;a<C;a++)y[0][a]=a;for(a=1;a<q;a++)for(m=1;m<C;m++)if(p[u+m-1]===
l[e+a-1])y[a][m]=y[a-1][m-1];else{var U=y[a-1][m]+1,b=y[a][m-1]+1;y[a][m]=U<b?U:b}u=y.length-1;e=y[0].length-1;q=y[u][e];for(p=[];u>0||e>0;)u==0?(p.push(2),e--):e==0?(p.push(3),u--):(C=y[u-1][e-1],a=y[u-1][e],m=y[u][e-1],U=a<m?a<C?a:C:m<C?m:C,U==C?(C==q?p.push(0):(p.push(1),q=C),u--,e--):U==a?(p.push(3),u--,q=a):(p.push(2),e--,q=m));p.reverse();y=void 0;u=[];for(e=0;e<p.length;e++)switch(p[e]){case 0:y&&(u.push(y),y=void 0);t++;E++;break;case 1:y||(y=Fz(t,0));y.addedCount++;t++;y.removed.push(l[E]);
E++;break;case 2:y||(y=Fz(t,0));y.addedCount++;t++;break;case 3:y||(y=Fz(t,0)),y.removed.push(l[E]),E++}y&&u.push(y);return u};
J2c=function(p,y){return EzR(p,p.length,y,y.length)};
tPj=function(p,y){return p===y};
eEa=function(p){if(p instanceof c2j)return p.value;throw Error("Dd`"+p);};
hEL=function(p,y){for(var l in y)l===null?p.style.removeProperty(l):p.style.setProperty(l,y[l])};
CWR=function(p,y){return(p=window.getComputedStyle(p).getPropertyValue(y))?p.trim():""};
aQL=function(p){requestAnimationFrame(function(){uya?uya(p):(RER||(RER=new Promise(function(y){W8m=y}),document.readyState==="complete"?W8m():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&W8m()})),RER.then(function(){p&&p()}))})};
$RR=function(p){mRm=p&&p.shimcssproperties?!1:URt||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
PWt=function(p){if(!(jAL.indexOf(p)>-1)&&p!=="touchend"&&bp5&&nzl&&GK8)return{passive:!0}};
VPj=function(p){for(var y=A2m?["click"]:jAL,l=0,q;l<y.length;l++)q=y[l],p?(Zp8.length=0,document.addEventListener(q,MPc,!0)):document.removeEventListener(q,MPc,!0)};
Lt=function(p){var y=p.type;return jAL.indexOf(y)>-1?y==="mousemove"?(y=p.buttons===void 0?1:p.buttons,p instanceof window.MouseEvent&&!gz5&&(y=QAj[p.which]||0),!!(y&1)):(p.button===void 0?0:p.button)===0:!1};
K8c=function(p){if(p.type==="click"){if(p.detail===0)return!0;var y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p);if(!y.nodeType||y.nodeType!==Node.ELEMENT_NODE)return!0;y=y.getBoundingClientRect();var l=p.pageX;p=p.pageY;return!(l>=y.left&&l<=y.right&&p>=y.top&&p<=y.bottom)}return!1};
w3a=function(p,y,l){p.movefn=y;p.upfn=l;document.addEventListener("mousemove",y);document.addEventListener("mouseup",l)};
kH=function(p){document.removeEventListener("mousemove",p.movefn);document.removeEventListener("mouseup",p.upfn);p.movefn=null;p.upfn=null};
ipm=function(p,y){for(var l=document.elementFromPoint(p,y),q=l;q&&q.shadowRoot&&!window.ShadyDOM;){var t=q;q=q.shadowRoot.elementFromPoint(p,y);if(t===q)break;q&&(l=q)}return l};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p){var y=r2_(p);return y.length>0?y[0]:p.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p){var y=p.type,l=p.currentTarget.__polymerGestures;if(l&&(l=l[y])){if(!p.__polymerGesturesHandled&&(p.__polymerGesturesHandled={},y.slice(0,5)==="touch")){var q=p.changedTouches[0];y==="touchstart"&&p.touches.length===1&&(SP5=q.identifier);if(SP5!==q.identifier)return;bp5||(y==="touchstart"||y==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p)}q=
p.__polymerGesturesHandled;if(!q.skip){for(var t=0,E;t<Nt.length;t++)E=Nt[t],l[E.name]&&!q[E.name]&&E.flow&&E.flow.start.indexOf(p.type)>-1&&E.reset&&E.reset();for(t=0;t<Nt.length;t++)E=Nt[t],l[E.name]&&!q[E.name]&&(q[E.name]=!0,E[y](p))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p){var y=p.changedTouches[0],l=p.type;if(l==="touchstart")F8j=y.clientX,L86=y.clientY,kK_=!1;else if(l==="touchmove"&&!kK_){kK_=!0;l="auto";for(var q=r2_(p),t=0,E;t<q.length;t++)if(E=q[t],E.__polymerGesturesTouchAction){l=E.__polymerGesturesTouchAction;break}q=!1;t=Math.abs(F8j-y.clientX);y=Math.abs(L86-y.clientY);p.cancelable&&(l==="none"?q=!0:l==="pan-x"?q=y>t:l==="pan-y"&&(q=t>y));q?p.preventDefault():
De("track")}};
Te=function(p,y,l){return HK[y]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p,y,l),!0):!1};
xH=function(p,y,l){return HK[y]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p,y,l),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p,y,l){var q=HK[y],t=q.deps,E=q.name,e=p.__polymerGestures;e||(p.__polymerGestures=e={});for(var C=0,u,a;C<t.length;C++)u=t[C],A2m&&jAL.indexOf(u)>-1&&u!=="click"||((a=e[u])||(e[u]=a={_count:0}),a._count===0&&p.addEventListener(u,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,PWt(u)),a[E]=(a[E]||0)+1,a._count=(a._count||0)+1);p.addEventListener(y,l);q.touchAction&&_.BK(p,q.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p,y,l){var q=HK[y],t=q.deps;q=q.name;var E=p.__polymerGestures;if(E)for(var e=0,C,u;e<t.length;e++)C=t[e],(u=E[C])&&u[q]&&(u[q]=(u[q]||1)-1,u._count=(u._count||1)-1,u._count===0&&p.removeEventListener(C,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,PWt(C)));p.removeEventListener(y,l)};
NUj=function(p){Nt.push(p);for(var y=0;y<p.emits.length;y++)HK[p.emits[y]]=p};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p){for(var y=0,l;y<Nt.length;y++){l=Nt[y];for(var q=0,t;q<l.emits.length;q++)if(t=l.emits[q],t===p)return l}return null};
_.BK=function(p,y){bp5&&p instanceof HTMLElement&&ft.run(function(){p.style.touchAction=y});
p.__polymerGesturesTouchAction=y};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p,y,l){y=new Event(y,{bubbles:!0,cancelable:!0,composed:!0});y.detail=l;(0,_.Q2)(p).dispatchEvent(y);y.defaultPrevented&&(p=l.preventer||l.sourceEvent)&&p.preventDefault&&p.preventDefault()};
De=function(p){p=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p);p.info&&(p.info.prevent=!0)};
vK=function(p,y,l,q){y&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y,p,{x:l.clientX,y:l.clientY,sourceEvent:l,preventer:q,prevent:function(t){return De(t)}})};
DRt=function(p,y,l){if(p.prevent)return!1;if(p.started)return!0;l=Math.abs(p.y-l);return Math.abs(p.x-y)>=5||l>=5};
HpR=function(p,y,l){if(y){var q=p.moves[p.moves.length-2],t=p.moves[p.moves.length-1],E=t.x-p.x,e=t.y-p.y,C=0;if(q){var u=t.x-q.x;C=t.y-q.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y,"track",{state:p.state,x:l.clientX,y:l.clientY,dx:E,dy:e,ddx:u,ddy:C,sourceEvent:l,hover:function(){return ipm(l.clientX,l.clientY)}})}};
xRL=function(p,y,l){var q=Math.abs(y.clientX-p.x),t=Math.abs(y.clientY-p.y),E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l||y);!E||TUj[E.localName]&&E.hasAttribute("disabled")||!(isNaN(q)||isNaN(t)||q<=25&&t<=25||K8c(y))||p.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E,"tap",{x:y.clientX,y:y.clientY,sourceEvent:y,preventer:l})};
BUm=function(p,y,l,q,t){var E;t&&(E=typeof l==="object"&&l!==null)&&(q=p.__dataTemp[y]);q=q!==l&&(q===q||l===l);E&&q&&(p.__dataTemp[y]=l);return q};
vz_=function(){if(Xz&&!dF){if(!fQo){fQo=!0;var p=document.createElement("style");p.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(p)}return!0}return!1};
dRu=function(){return X3L};
Opa=function(p,y){X3L=p;Object.setPrototypeOf(p,y.prototype);new y;X3L=null};
oz5=function(p,y){for(var l=0;l<y.length;l++){var q=y[l];if(!!p!=!!q.__hideTemplateChildren__)if(q.nodeType===Node.TEXT_NODE)p?(q.__polymerTextContent__=q.textContent,q.textContent=""):q.textContent=q.__polymerTextContent__;else if(q.localName==="slot")if(p)q.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Q2)((0,_.Q2)(q).parentNode).replaceChild(q.__polymerReplaced__,q);else{var t=q.__polymerReplaced__;t&&(0,_.Q2)((0,_.Q2)(t).parentNode).replaceChild(q,t)}else q.style&&(p?(q.__polymerDisplay__=
q.style.display,q.style.display="none"):q.style.display=q.__polymerDisplay__);q.__hideTemplateChildren__=p;q._showHideChildren&&q._showHideChildren(p)}};
zEl=function(p){return(p=p.__dataHost)&&p._methodHost||p};
p0l=function(p,y,l){var q=l.mutableData?YP5:OM;op.mixin&&(q=op.mixin(q));var t=function(){return q.apply(this,arguments)||this};
_.A(t,q);t.prototype.__templatizeOptions=l;t.prototype._bindTemplate(p);IQt(t,p,y,l);return t};
t6g=function(p,y,l,q){var t=l.forwardHostProp;if(t&&y.hasHostProps){var E=p.localName=="template",e=y.templatizeTemplateClass;if(!e){if(E){var C=l.mutableData?yju:lYo;e=function(){return C.apply(this,arguments)||this};
_.A(e,C);e=y.templatizeTemplateClass=e}else{var u=p.constructor;e=function(){return u.apply(this,arguments)||this};
_.A(e,u);e=y.templatizeTemplateClass=e}var a=y.hostProps,m;for(m in a)e.prototype._addPropertyEffect("_host_"+m,e.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:qaj(t)}),e.prototype._createNotifyingProperty("_host_"+m);ze&&q&&sNt(y,l,q)}p.__dataProto&&Object.assign(p.__data,p.__dataProto);if(E)Opa(p,e),p.__dataTemp={},p.__dataPending=null,p.__dataOld=null,p._enableProperties();else{Object.setPrototypeOf(p,e.prototype);y=y.hostProps;for(var U in y)U="_host_"+U,U in p&&(y=p[U],delete p[U],p.__data[U]=
y)}}};
qaj=function(p){return function(y,l,q){p.call(y.__templatizeOwner,l.substring(6),q[l])}};
IQt=function(p,y,l,q){var t=l.hostProps||{},E;for(E in q.instanceProps){delete t[E];var e=q.notifyInstanceProp;e&&p.prototype._addPropertyEffect(E,p.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Etu(e)})}if(q.forwardHostProp&&y.__dataHost)for(var C in t)l.hasHostProps||(l.hasHostProps=!0),p.prototype._addPropertyEffect(C,p.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Jj6()})};
Etu=function(p){return function(y,l,q){p.call(y.__templatizeOwner,y,l,q[l])}};
Jj6=function(){return function(p,y,l){p.__dataHost._setPendingPropertyOrPath("_host_"+y,l[y],!0,!0)}};
op=function(p,y,l){if(YH&&!zEl(p))throw Error("Jd");l=l||{};if(p.__templatizeOwner)throw Error("Kd");p.__templatizeOwner=y;var q=(y?y.constructor:OM)._parseTemplate(p),t=q.templatizeInstanceClass;t||(t=p0l(p,q,l),q.templatizeInstanceClass=t);var E=zEl(p);t6g(p,q,l,E);l=function(){return t.apply(this,arguments)||this};
_.A(l,t);l.prototype._methodHost=E;l.prototype.__dataHost=p;l.prototype.__templatizeOwner=y;l.prototype.__hostProps=q.hostProps;return l};
sNt=function(p,y,l){l=l.constructor._properties;p=p.propertyEffects;y=y.instanceProps;for(var q in p)if(!(l[q]||y&&y[q]))for(var t=p[q],E=0;E<t.length;E++){var e=t[E].info.part;if(!e.signature||!e.signature.static){console.warn("Property '"+q+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
cj_=function(p,y){for(var l;y;)if(l=y.__dataHost?y:y.__templatizeInstance)if(l.__dataHost!=p)y=l.__dataHost;else return l;else y=(0,_.Q2)(y).parentNode;return null};
Ip=function(p){return p.localName==="slot"};
e7l=function(){for(var p=px.prototype,y="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),l={},q=0;q<y.length;l={method$jscomp$33:void 0},q++)l.method$jscomp$33=y[q],p[l.method$jscomp$33]=function(t){return function(){return this.node[t.method$jscomp$33].apply(this.node,arguments)}}(l)};
h76=function(p,y){for(var l={},q=0;q<y.length;l={name$jscomp$421:void 0},q++)l.name$jscomp$421=y[q],Object.defineProperty(p,l.name$jscomp$421,{get:function(t){return function(){return this.node[t.name$jscomp$421]}}(l),
configurable:!0})};
C8l=function(){for(var p=px.prototype,y=["textContent","innerHTML","className"],l={},q=0;q<y.length;l={name$jscomp$422:void 0},q++)l.name$jscomp$422=y[q],Object.defineProperty(p,l.name$jscomp$422,{get:function(t){return function(){return this.node[t.name$jscomp$422]}}(l),
set:function(t){return function(E){this.node[t.name$jscomp$422]=E}}(l),
configurable:!0})};
ucg=function(){yl=document.documentElement.getAttribute("dir");yl=document.documentElement.getAttribute("dir");for(var p=0;p<lL.length;p++){var y=lL[p];y.__autoDirOptOut||y.setAttribute("dir",yl)}};
mYc=function(){qf=!0;requestAnimationFrame(function(){qf=!1;R7j(Wnc);setTimeout(function(){for(var p=0,y=sn.length;p<y;p++)aY_(sn.shift())})})};
R7j=function(p){for(;p.length;)aY_(p.shift())};
aY_=function(p){var y=p[0],l=p[1];p=p[2];try{l.apply(y,p)}catch(q){setTimeout(function(){throw q;})}};
_.UYo=function(p,y,l){qf||mYc();Wnc.push([p,y,l])};
_.th=function(p,y,l){qf||mYc();sn.push([p,y,l])};
bqj=function(p,y){y=y===void 0?!1:y;if(!$Yu||!jNu||!$Yu.handlesDynamicScoping)return null;var l=jNu.ScopingShim;if(!l)return null;var q=l.scopeForNode(p),t=(0,_.Q2)(p).getRootNode(),E=function(e){if((0,_.Q2)(e).getRootNode()===t){var C=Array.from($Yu.nativeMethods.querySelectorAll.call(e,"*"));C.push(e);for(e=0;e<C.length;e++){var u=C[e];if((0,_.Q2)(u).getRootNode()===t){var a=l.currentScopeForNode(u);a!==q&&(a!==""&&l.unscopeNode(u,a),l.scopeNode(u,q))}}}};
E(p);return y?(y=new MutationObserver(function(e){for(var C=0;C<e.length;C++)for(var u=e[C],a=0;a<u.addedNodes.length;a++){var m=u.addedNodes[a];m.nodeType===Node.ELEMENT_NODE&&E(m)}}),y.observe(p,{childList:!0,
subtree:!0}),y):null};
nt6=function(){document.body.removeAttribute("unresolved")};
M6j=function(p){var y=p=p.replace(G66,"").replace(P8c,""),l=new Aj5;l.start=0;l.end=y.length;for(var q=l,t=0,E=y.length;t<E;t++)if(y[t]==="{"){q.rules||(q.rules=[]);var e=q,C=e.rules[e.rules.length-1]||null;q=new Aj5;q.start=t+1;q.parent=e;q.previous=C;e.rules.push(q)}else y[t]==="}"&&(q.end=t+1,q=q.parent||l);return ZqL(l,p)};
ZqL=function(p,y){var l=y.substring(p.start,p.end-1);p.parsedCssText=p.cssText=l.trim();p.parent&&(l=y.substring(p.previous?p.previous.end:p.parent.start,p.start-1),l=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(l),l=l.replace(V6m," "),l=l.substring(l.lastIndexOf(";")+1),l=p.parsedSelector=p.selector=l.trim(),p.atRule=l.indexOf("@")===0,p.atRule?l.indexOf("@media")===0?p.type=4:l.match(gtu)&&(p.type=7,p.keyframesName=p.selector.split(V6m).pop()):l.indexOf("--")===
0?p.type=1E3:p.type=1);if(l=p.rules)for(var q=0,t=l.length,E=void 0;q<t&&(E=l[q]);q++)ZqL(E,y);return p};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(p){return p.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var y=arguments[1],l=6-y.length;l--;)y="0"+y;return"\\"+y})};
QNg=function(p,y,l){l=l===void 0?"":l;var q="";if(p.cssText||p.rules){var t=p.rules;if(t&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(t))for(var E=0,e=t.length,C=void 0;E<e&&(C=t[E]);E++)q=QNg(C,y,q);else y?y=p.cssText:(y=p.cssText,y=y.replace(Kn8,"").replace(w0l,""),y=y.replace(iq8,"").replace(rju,"")),(q=y.trim())&&(q="  "+q+"\n")}q&&(p.selector&&(l+=p.selector+" {\n"),l+=q,p.selector&&(l+="}\n\n"));return l};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(p){p=p[0];return!!p&&!!p.selector&&p.selector.indexOf("--")===0};
Fnt=function(p){if(p=Sa5[p])p._applyShimCurrentVersion=p._applyShimCurrentVersion||0,p._applyShimValidatingVersion=p._applyShimValidatingVersion||0,p._applyShimNextVersion=(p._applyShimNextVersion||0)+1};
Lna=function(p){return p._applyShimCurrentVersion===p._applyShimNextVersion};
Nlo=function(p){p._applyShimValidatingVersion=p._applyShimNextVersion;p._validating||(p._validating=!0,k6c.then(function(){p._applyShimCurrentVersion=p._applyShimNextVersion;p._validating=!1}))};
Hqo=function(p){if(!p)return"";typeof p==="string"&&(p=M6j(p));return QNg(p,DYm)};
TlR=function(p){!p.__cssRules&&p.textContent&&(p.__cssRules=M6j(p.textContent));return p.__cssRules||null};
Blt=function(p,y,l,q){if(p){var t=!1,E=p.type;if(q&&E===4){var e=p.selector.match(xYl);e&&(window.matchMedia(e[1]).matches||(t=!0))}E===1?y(p):l&&E===7?l(p):E===1E3&&(t=!0);if((p=p.rules)&&!t)for(t=0,E=p.length,e=void 0;t<E&&(e=p[t]);t++)Blt(e,y,l,q)}};
fYo=function(p,y){var l=p.indexOf("var(");if(l===-1)return y(p,"","","");a:{var q=0;var t=l+3;for(var E=p.length;t<E;t++)if(p[t]==="(")q++;else if(p[t]===")"&&--q===0)break a;t=-1}q=p.substring(l+4,t);l=p.substring(0,l);p=fYo(p.substring(t+1),y);E=q.indexOf(",");if(E===-1)return y(l,q.trim(),"",p);t=q.substring(0,E).trim();q=q.substring(E+1).trim();return y(l,t,q,p)};
vtg=function(p){if(En!==void 0)return En;if(p.__cssBuild===void 0){var y=p.getAttribute("css-build");if(y)p.__cssBuild=y;else{a:{y=p.localName==="template"?p.content.firstChild:p.firstChild;if(y instanceof Comment&&(y=y.textContent.trim().split(":"),y[0]==="css-build")){y=y[1];break a}y=""}if(y!==""){var l=p.localName==="template"?p.content.firstChild:p.firstChild;l.parentNode.removeChild(l)}p.__cssBuild=y}}return p.__cssBuild||""};
dY5=function(p,y,l,q){for(var t=y._noAccessors,E=Object.getOwnPropertyNames(y),e=0;e<E.length;e++){var C=E[e];if(!(C in q))if(t)p[C]=y[C];else{var u=Object.getOwnPropertyDescriptor(y,C);u&&(u.configurable=!0,Object.defineProperty(p,C,u))}}for(var a in X08)y[a]&&(l[a]=l[a]||[],l[a].push(y[a]))};
Oq_=function(p,y,l){y=y||[];for(var q=p.length-1;q>=0;q--){var t=p[q];t?Array.isArray(t)?Oq_(t,y):y.indexOf(t)<0&&(!l||l.indexOf(t)<0)&&y.unshift(t):console.warn("behavior is null, check for missing or 404 import")}return y};
ot8=function(p,y){for(var l in y){var q=p[l],t=y[l];p[l]=!("value"in t)&&q&&"value"in q?Object.assign({value:q.value},t):t}};
IYR=function(p,y,l){var q={},t=function(){return y.apply(this,arguments)||this};
_.A(t,y);t._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(e)for(var u=0,a;u<e.length;u++)a=e[u],a.properties&&this.createProperties(a.properties),a.observers&&this.createObservers(a.observers,a.properties);p.properties&&this.createProperties(p.properties);p.observers&&this.createObservers(p.observers,p.properties);this._prepareTemplate()}else y._finalizeClass.call(this)};
t.prototype.created=function(){y.prototype.created.call(this);var u=q.created;if(u)for(var a=0;a<u.length;a++)u[a].call(this)};
t.prototype._registered=function(){var u=t.prototype;if(!u.hasOwnProperty("__hasRegisterFinished")){u.__hasRegisterFinished=!0;y.prototype._registered.call(this);Xz&&C(u);u=Object.getPrototypeOf(this);var a=q.beforeRegister;if(a)for(var m=0;m<a.length;m++)a[m].call(u);if(a=q.registered)for(m=0;m<a.length;m++)a[m].call(u)}};
t.prototype._applyListeners=function(){y.prototype._applyListeners.call(this);var u=q.listeners;if(u)for(var a=0;a<u.length;a++){var m=u[a];if(m)for(var U in m)this._addMethodEventListenerToNode(this,U,m[U])}};
t.prototype._ensureAttributes=function(){var u=q.hostAttributes;if(u)for(var a=u.length-1;a>=0;a--){var m=u[a],U;for(U in m)this._ensureAttribute(U,m[U])}y.prototype._ensureAttributes.call(this)};
t.prototype.ready=function(){y.prototype.ready.call(this);var u=q.ready;if(u)for(var a=0;a<u.length;a++)u[a].call(this)};
t.prototype.attached=function(){y.prototype.attached.call(this);var u=q.attached;if(u)for(var a=0;a<u.length;a++)u[a].call(this)};
t.prototype.detached=function(){y.prototype.detached.call(this);var u=q.detached;if(u)for(var a=0;a<u.length;a++)u[a].call(this)};
t.prototype.attributeChanged=function(u,a,m){y.prototype.attributeChanged.call(this);var U=q.attributeChanged;if(U)for(var b=0;b<U.length;b++)U[b].call(this,u,a,m)};
_.Jh.Object.defineProperties(t,{properties:{configurable:!0,enumerable:!0,get:function(){var u={};if(e)for(var a=0;a<e.length;a++)ot8(u,e[a].properties);ot8(u,p.properties);return u}},
observers:{configurable:!0,enumerable:!0,get:function(){var u=[];if(e)for(var a=0,m;a<e.length;a++)m=e[a],m.observers&&(u=u.concat(m.observers));p.observers&&(u=u.concat(p.observers));return u}}});
if(l){Array.isArray(l)||(l=[l]);var E=y.prototype.behaviors;var e=Oq_(l,null,E);t.prototype.behaviors=E?E.concat(l):e}var C=function(u){if(e)for(var a=e,m=0;m<a.length;m++)dY5(u,a[m],q,z7j);dY5(u,p,q,Yaj)};
Xz||C(t.prototype);t.generatedFrom=p;return t};
qfL=function(p){var y=typeof p!=="string"?p:{is:p,notifyObserversOnUndefined:!0};y.fastInit===void 0&&(y.fastInit=!0);return function(l){if(!y.disableInheritanceCheck&&Object.getPrototypeOf(l.prototype).constructor!==_.c2)throw Error("Od");var q=l.prototype;q.is=y.is;cyt(q,"created",function(){this.hostElement=this;this.polymerController=this});
pZc(q,l,y.fastInit);y.notifyObserversOnUndefined&&(q._overrideLegacyUndefined=!0);if(yLt)for(var t=_.c(Object.getOwnPropertyNames(q)),E=t.next();!E.done;E=t.next()){E=E.value;var e=Object.getOwnPropertyDescriptor(q,E);e.enumerable===!1&&(e.enumerable=!0,Object.defineProperty(q,E,e))}if("template"in l)var C=function(){return l.template};
else y.template!==void 0&&(C=y.template);if(C!==void 0){var u;Object.defineProperty(q,"_template",{get:function(){u===void 0&&(u=C());return u},
set:function(a){u=a},
configurable:!0,enumerable:!0})}Polymer(q);l[lIl]=q}};
sCo=function(p){p=p===void 0?{}:p;p.fastInit===void 0&&(p.fastInit=!0);return function(y){if(!p.disableInheritanceCheck&&Object.getPrototypeOf(y.prototype).constructor!==eY)throw Error("Pd");pZc(y.prototype,y,p.fastInit)}};
pZc=function(p,y,l){l=l===void 0?!1:l;tz8(y);l?cyt(p,"created",function(){this.disableEnforceFastDefaultValuesCheck||EC_(y,this)}):cyt(p,"ready",function(){for(var q={},t=_.c(eQu(this.behaviors)),E=t.next();!E.done;E=t.next())E=E.value,E.properties&&Object.assign(q,JLc(this,E.properties));
Object.assign(q,JLc(this,this.properties));EC_(y,this);t=_.c(Object.keys(q));for(E=t.next();!E.done;E=t.next())E=E.value,this[E]=q[E]})};
EC_=function(p,y){if(yLt){p=new p;for(var l=_.c(Object.getOwnPropertyNames(p)),q=l.next();!q.done;q=l.next())q=q.value,y[q]=p[q];for(l=y;l&&l!==Object.prototype;l=Object.getPrototypeOf(l)){q=_.c(Object.getOwnPropertyNames(l));for(var t=q.next();!t.done;t=q.next())t=t.value,p.hasOwnProperty(t)||Object.defineProperty(p,t,cLa(y,t))}}else p.apply(y)};
cLa=function(p,y){return{get:function(){var l=p[y];return l instanceof Function?l.bind(p):l},
set:function(l){p[y]=l}}};
JLc=function(p,y){if(!y)return{};for(var l={},q=_.c(Object.keys(y)),t=q.next();!t.done;t=q.next())if(t=t.value,!y[t].readOnly){var E=p[t];E!==void 0&&(l[t]=E)}return l};
tz8=function(p){var y=new p;p=p.prototype.properties||{};for(var l=_.c(Object.keys(p)),q=l.next();!q.done;q=l.next())if(q=q.value,y.hasOwnProperty(q)){var t=p[q];typeof t==="function"&&(p[q]=t={type:t});y[q]!=null&&t.type===Object&&(t.type=eu6(y[q].constructor))}};
eu6=function(p){for(var y=_.c(huc),l=y.next();!l.done;l=y.next())if(l=l.value,p===l)return l;return Object};
Ck_=function(p){return function(y,l){y.behaviors=y.behaviors||[];y.behaviors.push(p||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",y,l).prototype:void 0));Object.defineProperty(y,l,{get:function(){return this},
enumerable:!0,configurable:!0})}};
udt=function(p){p=p===void 0?{}:p;return function(y,l){y.properties=y.properties||{};p.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?p.type=eu6(Reflect.getMetadata("design:type",y,l)):p.type=String);var q=p,t=y.properties[l];y.properties[l]=t?Object.assign({},t,q):q}};
Ru8=function(p){return function(y,l){y.listeners=y.listeners||{};y.listeners[p]=l}};
WCt=function(){var p=_.oX.apply(0,arguments);if(p.length===0)throw Error("Qd");return function(y,l){y.observers=y.observers||[];y.observers.push(l+"("+p.join(",")+")")}};
aIt=function(){var p=_.oX.apply(0,arguments);return function(y,l,q){var t=Object.getOwnPropertyDescriptor(y,l).get,E="__compute__"+l;Object.defineProperty(y,E,{value:t,enumerable:!0});y.properties=y.properties||{};t=y.properties[l];t||(t={},y.properties[l]=t);t.computed=E+"("+p.join(",")+")";q.get=void 0}};
_.hh=function(p,y,l){_.Sr.call(this);this.JSC$11197_id_=null;this.usingListeners_=!1;this.JSC$11197_listener_=p;this.handler_=l;this.JSC$11197_win_=y||window;this.callback_=(0,_.FZ)(this.JSC$11199_doAction_,this)};
Cx=function(p){this.range_=p};
uL=function(p){this.range_=p};
aG=function(p,y,l){_.Sr.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=p;this.scrollTimer_=new _.RG(50);this.JSC$11276_eventHandler_=new _.W2(this);this.scrollDelta_=new _.BJ;this.containerIsActuallyContent_=p.tagName==="BODY"||p.tagName==="HTML";this.containerBounds_=mZl(p);this.containerIsActuallyContent_&&(p=_.iz(),this.containerBounds_.height=p.height,this.containerBounds_.width=p.width);this.margin_=y||0;if(y){if(y=this.containerBounds_.clone(),p=this.margin_){var q=
Math.min(p,y.height*.25);y.top+=q;y.height-=2*q;p=Math.min(p,y.width*.25);y.left+=p;y.width-=2*p}}else y=this.containerBounds_;this.scrollBounds_=y;l||this.JSC$11276_eventHandler_.listen(_.vJ(this.containerNode_),"mousemove",this.JSC$11278_onMouseMove);this.JSC$11276_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11278_onTick_)};
_.mX=function(p){this.mechanism=p};
Un=function(p,y){this.JSC$11374_key_=p;this.JSC$11374_value_=y};
$Z5=function(p){if(p>=55296&&p<=57343||p>1114111)return"\ufffd";p in UZg&&(p=UZg[p]);var y="";p>65535&&(p-=65536,y+=String.fromCharCode(p>>>10&1023|55296),p=56320|p&1023);return y+=String.fromCharCode(p)};
bjm=function(p,y){return p<y?1:-1};
Gka=function(){return function(p){return p.charAt(1)==="#"?p.charAt(2)==="X"||p.charAt(2)==="x"?$Z5(parseInt(p.substr(3),16)):$Z5(parseInt(p.substr(2),10)):nCc[p.slice(1,-1)]}};
Zjo=function(p){return p.slice(1,p.length-1).trim().replace(Pkg,function(y){return ALg[y]||" "})};
$c=function(p){return p===32||p===9};
jY=function(p,y){return y<p.length?p.charCodeAt(y):-1};
MzR=function(p){for(;p;){if(p._lastLineBlank)return!0;var y=p.type;if(y==="list"||y==="item")p=p._lastChild;else break}return!1};
bL=function(p){if(VzL.test(p)){var y=1,l=0,q=0;for(p[l]=="|"&&l++;l<p.length;){switch(p[l]){case "|":q=1;break;case " ":break;case "\t":break;default:q&&(q=0,y++)}l++}return gCR.test(p)?-y:y}return 0};
QCa=function(p){return p=="table"||p=="row"||p=="cell"};
KCt=function(){return new nx("document",[[1,1],[0,0]])};
wZg=function(){};
Gc=function(){var p={safe:!1};p=p||{};p.softbreak=p.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=p};
LCc=function(p,y){var l="";if(p)if(p=p.toLowerCase(),p===" "||ijg.test(p))l="space";else if(rLc.test(p))l="esc";else if(p.length==1){if(!y||Sfu.test(p))l=p}else l=FCa.test(p)?p.replace("arrow",""):p=="multiply"?"*":p;return l};
HjR=function(p,y){var l=p.hasModifiers;if(y.key)l=LCc(y.key,l);else if(y.detail&&y.detail.key)l=LCc(y.detail.key,l);else{l=y.keyIdentifier;var q="";l&&(l in kkc?q=kkc[l]:NHg.test(l)?(l=parseInt(l.replace("U+","0x"),16),q=String.fromCharCode(l).toLowerCase()):q=l.toLowerCase());(l=q)||(l=y.keyCode,q="",Number(l)&&(l>=65&&l<=90?q=String.fromCharCode(32+l):l>=112&&l<=123?q="f"+(l-112+1):l>=48&&l<=57?q=String(l-48):l>=96&&l<=105?q=String(l-96):q=DZg[l]),l=q);l=l||""}return l===p.key&&(!p.hasModifiers||
!!y.shiftKey===!!p.shiftKey&&!!y.ctrlKey===!!p.ctrlKey&&!!y.altKey===!!p.altKey&&!!y.metaKey===!!p.metaKey)};
xZu=function(p){return p.length===1?{combo:p,key:p,event:"keydown"}:p.split("+").reduce(function(y,l){var q=l.split(":");l=q[0];q=q[1];l in THt?(y[THt[l]]=!0,y.hasModifiers=!0):(y.key=l,y.event=q||"keydown");return y},{combo:p.split(":").shift()})};
BHo=function(p){return p.trim().split(" ").map(function(y){return xZu(y)})};
fI8=function(p,y){if(p&&p.fn){var l=p.fn;p.fn=function(){try{l.apply(this,arguments)}catch(q){if(q instanceof P2)console.warn("Argument '"+q.arg+"'"+(y?" for method '"+y+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw q;}}}return p};
vCL=function(){var p=_.oX.apply(0,arguments);return p.length===0?function(y){return y}:p.length===1?p[0]:p.reduce(function(y,l){return function(){return y(l.apply(null,_.xq(_.oX.apply(0,arguments))))}})};
XZ_=function(){var p=_.oX.apply(0,arguments);return function(y){return function(l,q){l=y(l,q);var t=function(){throw Error("Ae");},E={getState:l.getState,
dispatch:function(e){return t.apply(null,[e].concat(_.xq(_.oX.apply(1,arguments))))}};
q=p.map(function(e){return e(E)});
t=vCL.apply(null,_.xq(q))(l.dispatch);return Object.assign({},l,{dispatch:t})}}};
oC6=function(p){Object.keys(p).forEach(function(y){var l=p[y];if(typeof l(void 0,{type:dZt})==="undefined")throw Error("Be`"+y);if(typeof l(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+OjR()})==="undefined")throw Error("Ce`"+y+"`"+dZt);})};
Ah=function(p){for(var y=Object.keys(p),l={},q=0;q<y.length;q++){var t=y[q];typeof p[t]==="function"&&(l[t]=p[t])}var E=Object.keys(l);try{oC6(l)}catch(C){var e=C}return function(C,u){C=C===void 0?{}:C;if(e)throw e;for(var a=!1,m={},U=0;U<E.length;U++){var b=E[U],P=C[b],Z=(0,l[b])(P,u);if(typeof Z==="undefined")throw C=u&&u.type,Error("De`"+(C?'"'+String(C)+'"':"(unknown type)")+"`"+b);m[b]=Z;a=a||Z!==P}return(a=a||E.length!==Object.keys(C).length)?m:C}};
zu_=function(p,y,l){function q(){if(m)throw Error("Ee");return C}
function t(P){if(typeof P!=="function")throw Error("Fe`"+typeof P);if(m)throw Error("Ge");var Z=!0;a===u&&(a=u.slice());a.push(P);return function(){if(Z){if(m)throw Error("He");Z=!1;a===u&&(a=u.slice());var K=a.indexOf(P);a.splice(K,1);u=null}}}
function E(P){if(typeof P!=="object"||P===null)var Z=!1;else{for(Z=P;Object.getPrototypeOf(Z)!==null;)Z=Object.getPrototypeOf(Z);Z=Object.getPrototypeOf(P)===Z}if(!Z)throw Error("Ie`"+typeof P);if(typeof P.type==="undefined")throw Error("Je");if(m)throw Error("Ke");try{m=!0,C=e(C,P)}finally{m=!1}Z=u=a;for(var K=0;K<Z.length;K++)(0,Z[K])();return P}
if(typeof y==="function"&&typeof l==="function"||typeof l==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof y==="function"&&typeof l==="undefined"&&(l=y,y=void 0);if(typeof l!=="undefined"){if(typeof l!=="function")throw Error("Me`"+typeof l);return l(zu_)(p,y)}if(typeof p!=="function")throw Error("Ne`"+typeof p);var e=p,C=y,u=[],a=u,m=!1;E({type:dZt});var U={},b=(U.dispatch=E,U.subscribe=t,U.getState=q,U.replaceReducer=function(P){if(typeof P!=="function")throw Error("Oe`"+
typeof P);e=P;E({type:YfR});return b},U[IIl]=function(){var P={};
return P.subscribe=function(Z){function K(){Z.next&&Z.next(q())}
if(typeof Z!=="object"||Z===null)throw new TypeError("Pe`"+typeof Z);K();return{unsubscribe:t(K)}},P[IIl]=function(){return this},P},U);
return b};
pfg=function(p){function y(){t&&(t=!1,p());E&&q()}
function l(){requestAnimationFrame(y)}
function q(){var C=Date.now();if(t){if(C-e<2)return;E=!0}else t=!0,E=!1,setTimeout(l,20);e=C}
var t=!1,E=!1,e=0;return q};
Z_=function(p){return typeof p==="number"?p:parseFloat(p)||0};
y7R=function(p){return _.oX.apply(1,arguments).reduce(function(y,l){return y+Z_(p["border-"+l+"-width"])},0)};
_.M=function(p,y){y=ye(pC(y));p.innerHTML=y};
sZ_=function(p){var y=lO5;y||(y=qVt(),y=lO5=_.Ts.transpose(y));y=y[p];return typeof y==="string"?y:_.Mf(p)};
tJL=function(p){p=String(p).toLowerCase();var y=qVt()[p];return typeof y==="string"?y:_.Vl(p)};
Evg=function(p){p=p.toLowerCase();p=qVt()[p];return typeof p==="string"?p:null};
qVt=function(){if(!J7a){for(var p=Object.assign({},c7m),y=_.c(eB8),l=y.next();!l.done;l=y.next())l=l.value,p[l.toLowerCase()]=l;J7a=p}return J7a};
unj=function(p,y){var l=window.customElements;return l&&l.get(p)||hBL[p]===!0?2:y.name==="HTMLUnknownElement"?1:y.name==="HTMLElement"&&C0_.test(p)?3:0};
aOt=function(p,y){switch(y){case "innerHTML":return RBl(p)===1?2:null;case "textContent":return p=RBl(p),p===1||p===6?1:null;default:var l,q;return(q=(l=W68[p.localName])==null?void 0:l[y])!=null?q:null}};
RBl=function(p){var y=p.localName,l=unj(y,p.constructor);switch(l){case 0:case 1:return mit(y,p);case 3:case 2:return 1;default:_.qL(l,"got an unknown element classification")}};
mit=function(p,y){var l=Object.hasOwnProperty.call(Uic,p)?Uic[p]:null;return l!==null?l:Object.hasOwnProperty.call($i_,p)&&y instanceof SVGElement?$i_[p]:null};
jZu=function(p,y){return y};
nv6=function(p){return(p=p.split(buu,2))?{url:p[0],metadata:p[1]}:null};
P08=function(p){var y=String(p.url).replace(Gta,encodeURIComponent);if(p=p.metadata){Gta.lastIndex=0;if(Gta.test(p))return null;y+=" "+p}return y};
VJa=function(p){function y(a){var m=a.localName;if(!a.getAttribute("is")&&unj(m,a.constructor)===2){var U;return(U=u)!=null?U:u=document.createElement("polyresinuncustomized")}(a=C[m])||(a=C[m]=document.createElement(m));return a}
var l=p.reportHandler||void 0,q=p.safeTypesBridge||A7_,t=/^$/;if(p=p.allowedIdentifierPrefixes){p=_.c(p);for(var E=p.next();!E.done;E=p.next())t=new RegExp(t.source+"|^"+_.Zu8(E.value))}l&&l(!1,"initResin",null);var e=MJa(t,q,l),C={},u=null;return function(a,m,U){var b=a.nodeType;if(b!==Node.ELEMENT_NODE){if(b===Node.TEXT_NODE){m=a.parentElement;U=!m;if(m&&m.nodeType===Node.ELEMENT_NODE){b=m.localName;var P=unj(b,m.constructor);switch(P){case 0:case 1:m=mit(b,m);U=m===1||m===6;break;case 3:case 2:U=
!0;break;default:_.qL(P,"got an unknown element classification")}}if(U)return function(L){return""+q(L,"STRING",L)}}return function(L){if(!L&&L!==document.all)return L;
l&&l(!0,"Failed to sanitize "+(a.parentElement&&a.parentElement.nodeName)+" #text node to value "+L,a.parentElement);return Ql}}var Z=a.localName;
b=y(a);var K=null;switch(U){case "attribute":if(tJL(m)in b)break;return function(L){return L};
case "property":if(m in b){K=aOt(b,m);break}if((P=Evg(m))&&P in b)break;return function(L){return L};
default:_.qL(U,"got an unknown resin type, expected either 'property' or 'attribute'")}var F=U==="attribute"?m.toLowerCase():sZ_(m);K||(K=Xsa(Z,F,function(L){var T=a.getAttribute(L);return!T||/[\[\{]/.test(L)?null:T}));
return function(L){var T=Kx,O=null;if(!L&&L!==document.all)return L;if(K!=null){var f=e[K],v=f.safeType;O=f.safeReplacement;v&&(T=q(L,v,Kx));T===Kx&&(f.filterString?(T=String(q(L,"STRING",L)),T=f.filterString(Z,F,T)):f.filterRaw&&(T=f.filterRaw(Z,F,L,a)),T===O&&(T=Kx))}T===Kx&&(T=O||Ql,l&&l(!0,"Failed to sanitize attribute of <"+Z+">: <"+Z+" "+F+'="'+L+'">',a));return T}}};
MJa=function(p,y,l){return[,{filterRaw:function(q,t,E){return E},
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:gvc,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:gvc,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Ql,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:QZo,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(q,t,E){E=
String(E).toLowerCase();return onm(q,t,E)?E:Ql},
safeReplacement:Ql,safeType:void 0},,{filterRaw:void 0,filterString:function(q,t,E){return p.test(E)?E:Ql},
safeReplacement:Ql,safeType:"CONSTANT"},{filterRaw:function(q,t,E,e){if(typeof E==="string")var C=(C=E.match(K6o))?C.map(nv6).filter(Boolean):[];else if(Array.isArray(E))C=E;else return gvc;var u=C;C=[];var a=[],m={};if(Array.isArray(u))for(var U=0,b=u.length;U<b;++U){var P=u[U],Z=P&&P.url;if(Z){var K=y(Z,"URL",m);if(K){var F=K!==m;(F?C:a).push({url:F?K:Z,metadata:P.metadata})}}}else a.push(u);u=a.length?JSON.stringify(a):null;a=Kx;if(C.length){if(!Array.isArray(C))throw Error();a=C.map(P08).filter(Boolean).join(" , ")||
Kx}u&&l&&l(!0,"Failed to sanitize attribute value of <"+q+">: <"+q+" "+t+'="'+E+'">: '+u,e);return a===Kx?gvc:a},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
wf6=function(p){var y=VJa(p);return function(l,q,t,E){return E||E===document.all?y(l,q,t)(E):E}};
wa=function(p,y){function l(){function t(C,u,a){for(u=Reflect.getMetadata("parameters",C)||[];u.length<=a;)u.push(null);u[a]=u[a]||[];u[a].push(e);Reflect.defineMetadata(u,C);return C}
var E=_.oX.apply(0,arguments);if(this instanceof l)return q.apply(this,E),this;var e=new (Function.prototype.bind.apply(l,[null].concat(_.xq(E))));t.annotation=e;return t}
var q=iul(y);l.prototype.toString=function(){return"@"+p};
return l.annotationCls=l};
iul=function(p){return function(){var y=_.oX.apply(0,arguments),l=this;p.forEach(function(q,t){t=y[t];if(Array.isArray(q))l[q[0]]=t&&t!==void 0?t:q[1];else for(var E in q)l[E]=t&&t[E]!==void 0?t[E]:q[E]})}};
r7o=function(p){return p!==void 0&&p!==null};
iL=function(p){if(typeof p==="string")return p;if(p===void 0||p===null)return""+p;if(p.overriddenName)return p.overriddenName;if(p.name)return p.name;p=p.toString();var y=p.indexOf("\n");return y===-1?p:p.substring(0,y)};
SVt=function(p){p.__forward_ref__=SVt;p.toString=function(){return iL(this())};
return p};
ra=function(p){return typeof p==="function"&&p.hasOwnProperty("__forward_ref__")&&p.__forward_ref__===SVt?p():p};
F6o=function(p){return p?p.map(function(y){return new (Function.prototype.bind.apply(y.type.annotationCls,[null].concat(_.xq(y.args?y.args:[]))))}):[]};
L65=function(p){for(var y=[],l=0;l<p.length;++l){if(y.indexOf(p[l])>-1){y.push(p[l]);break}y.push(p[l])}return y};
ktj=function(p){return p.length>1?" ("+L65(p.slice().reverse()).map(function(y){return iL(y.token)}).join(" -> ")+")":""};
Di_=function(p,y,l,q){if(q){var t=Error("We``"+(q instanceof Error?q.message:q));t.ngOriginalError=q}else t=Error();t.addKey=N5g;t.keys=[y];t.injectors=[p];t.constructResolvingMessage=l;t.message=t.constructResolvingMessage();t.ngOriginalError=q;return t};
N5g=function(p,y){this.injectors.push(p);this.keys.push(y);this.message=this.constructResolvingMessage()};
Hul=function(p,y){return Di_(p,y,function(){return"No provider for "+iL(this.keys[0].token)+"!"+ktj(this.keys)})};
T5u=function(p,y){return Di_(p,y,function(){return"Cannot instantiate cyclic dependency!"+ktj(this.keys)})};
xi5=function(p,y,l){return Di_(p,l,function(){var q=iL(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+q+"!"+ktj(this.keys)+"."},y)};
B5L=function(p,y){for(var l=[],q=0,t=y.length;q<t;q++){var E=y[q];E&&E.length!=0?l.push(E.map(iL).join(" ")):l.push("?")}return Error("$e`"+iL(p)+"`"+l.join(", ")+"`"+iL(p))};
zB8=function(p){var y=void 0,l=void 0;if(p&&p.useClass!==void 0){y=p.useClass;var q=ra(p.useClass);var t=fO6.factory(q);q=vvR(q)}else p&&p.useExisting!==void 0?(t=function(E){return E},q=[XfL(SY.get(ra(p.useExisting)))]):p&&p.useFactory!==void 0?(t=p.useFactory,q=dij(p.useFactory,p.deps)):(l=p.useValue,t=function(){return p.useValue},q=Oum);
return new ov8(t,q,y,l)};
IOc=function(p){return new YVL(SY.get(ra(p.provide)),[zB8(p)],p.multi)};
yHm=function(p){p=pPu(p,[]).map(IOc);for(var y=new Map,l=0;l<p.length;l++){var q=p[l],t=y.get(q.key.id);if(t){if(q.multiProvider!==t.multiProvider)throw Error("bf`"+t+"`"+q);if(q.multiProvider)for(var E=0;E<q.resolvedFactories.length;E++)t.resolvedFactories.push(q.resolvedFactories[E]);else y.set(q.key.id,q)}else t=void 0,q.multiProvider?t=new YVL(q.key,q.resolvedFactories.slice(),q.multiProvider):t=q,y.set(q.key.id,t)}return Array.from(y.values())};
pPu=function(p,y){p.forEach(function(l){if(l instanceof lvc)y.push({provide:l,useClass:l});else if(l&&typeof l=="object"&&l.provide!==void 0)y.push(l);else if(l instanceof Array)pPu(l,y);else throw Error("Ze`"+l);});
return y};
dij=function(p,y){if(y){var l=y.map(function(q){return[q]});
return y.map(function(q){return q0l(p,q,l)})}return vvR(p)};
vvR=function(p){var y=fO6.parameters(p);if(!y)return[];if(y.some(function(l){return l==null}))throw B5L(p,y);
return y.map(function(l){return q0l(p,l,y)})};
q0l=function(p,y,l){var q=null,t=!1;if(!Array.isArray(y))return y instanceof s2c?t2o(y.token,t,null):t2o(y,t,null);for(var E=null,e=0;e<y.length;++e){var C=y[e];if(C instanceof lvc)q=C;else if(C instanceof s2c)q=C.token;else if(C instanceof EDu)t=!0;else if(C instanceof JHm||C instanceof cHu)E=C}q=ra(q);if(q!=null)return t2o(q,t,E);throw B5L(p,l);};
t2o=function(p,y,l){return new eN8(SY.get(ra(p)),y,l)};
hN8=function(p,y){for(var l=Array(p.providers.length),q=0;q<p.providers.length;++q){var t=q;if(q<0||q>=p.providers.length)throw Error("af`"+q);l[t]=y(p.providers[q])}return l};
CRR=function(p){return typeof p==="function"&&fO6.parameters(p).every(function(y){return!!y})};
Wtm=function(p){var y=ueg;RNl.get(p)||RNl.set(p,new y);return RNl.get(p)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(p){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(p)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(p){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(p)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(p,y){var l,q;if(p.contains(y))return!0;p=_.FK(p).querySelectorAll("content,slot");for(l=0;l<p.length;++l){var t=_.FK(p[l]).getDistributedNodes();for(q=0;q<t.length;++q)if(t[q].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(t[q],y))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(p){p.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(p)&&p.preventDefault();p.targetTouches&&(p=p.targetTouches[0],avt=p.pageX,mDo=p.pageY)};
_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager||_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.bind(void 0);
for(var p=0,y=Lx.length;p<y;p++)document.addEventListener(Lx[p],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){for(var p=0,y=Lx.length;p<y;p++)document.removeEventListener(Lx[p],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(p){var y=_.FK(p).rootTarget;p.type!=="touchmove"&&UD6!==y&&(UD6=y,$Dt=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.FK(p).path));if(!$Dt.length)return!0;if(p.type==="touchstart")return!1;p=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(p);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager($Dt,p.deltaX,p.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(p){for(var y=[],l=p.indexOf(j2t),q=0;q<=l;q++)if(p[q].nodeType===Node.ELEMENT_NODE){var t=p[q],E=t.style;E.overflow!=="scroll"&&E.overflow!=="auto"&&(E=window.getComputedStyle(t));E.overflow!=="scroll"&&E.overflow!=="auto"||y.push(t)}return y};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(p,y,l){if(y||l)for(var q=Math.abs(l)>=Math.abs(y),t=0;t<p.length;t++){var E=p[t];if(q?l<0?E.scrollTop>0:E.scrollTop<E.scrollHeight-E.clientHeight:y<0?E.scrollLeft>0:E.scrollLeft<E.scrollWidth-E.clientWidth)return E}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(p){var y={deltaX:p.deltaX,deltaY:p.deltaY};"deltaX"in p||("wheelDeltaX"in p&&"wheelDeltaY"in p?(y.deltaX=-p.wheelDeltaX,y.deltaY=-p.wheelDeltaY):"wheelDelta"in p?(y.deltaX=0,y.deltaY=-p.wheelDelta):"axis"in p?(y.deltaX=p.axis===1?p.detail:0,y.deltaY=p.axis===2?p.detail:0):p.targetTouches&&(p=p.targetTouches[0],y.deltaX=avt-p.pageX,y.deltaY=mDo-p.pageY));return y};
b2R=function(p){this.element=p;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
GC6=function(p){this.element=p;this.color=window.getComputedStyle(p).color;this.wave=document.createElement("div");this.waveContainer=document.createElement("div");this.wave.style.backgroundColor=this.color;this.wave.classList.add("wave");this.waveContainer.classList.add("wave-container");_.FK(this.waveContainer).appendChild(this.wave);nDu(this)};
kc=function(p,y){for(var l in p)if(l.toLowerCase()===y.toLowerCase())return p[l]};
PRl=function(p,y){for(var l in p)if(l.toLowerCase()===y.toLowerCase()){delete p[l];break}};
Z2c=function(p){p=_.Ts.clone(p);for(var y=0;y<AHL.length;++y){var l=AHL[y],q=kc(p,l);q&&(p["X-Goog-Upload-Header-"+l]=q,PRl(p,l))}return p};
M2L=function(p){p=_.Ts.clone(p);PRl(p,"X-Goog-Upload-Status")};
gD_=function(p){return V2_.some(function(y){return y.test(p)})};
i2o=function(p,y){var l;var q=(l=p.formContent)==null?void 0:l.locale;l=q==null?void 0:q.split("-")[0];q=q&&Q2R.includes(q)?q:l&&Q2R.includes(l)?l:void 0;q=(q!=null?q:"en").replaceAll("-","_").toLowerCase();var t;p=((t=p.initializationData)==null?0:t.useNightlyRelease)?"nightly":"live";var E;return(y==null?0:(E=y.getEnableAlohaBinarySplit)==null?0:E.call(y))?_.bz(Kt_,p):_.bz(wPt,p,q)};
Fto=function(p,y,l,q){if(rHR&&S0c===y)return rHR;S0c=y;var t=i2o(p,q);return rHR=y.feedbackV2GlobalObject?Promise.resolve(y.feedbackV2GlobalObject):new Promise(function(E,e){var C=_.gg("SCRIPT");_.e_(C,t);C.onload=function(){y.feedbackV2GlobalObject?E(y.feedbackV2GlobalObject):e(Error("ef"))};
C.onerror=function(){e(Error("ff`"+t.toString()))};
l.body.appendChild(C)})};
NY6=function(p,y,l,q){if(Ltc&&kC_===y)return Ltc;kC_=y;var t=i2o(p,q);return Ltc=y.feedbackV2GlobalObject?Promise.resolve(y.feedbackV2GlobalObject):new Promise(function(E,e){var C=_.gg("SCRIPT");_.e_(C,t);C.onload=function(){y.feedbackV2GlobalObject?E(y.feedbackV2GlobalObject):e(Error("ef"))};
C.onerror=function(){e(Error("ff`"+t.toString()))};
l.body.appendChild(C)})};
DDt=function(p,y,l,q,t){t=t===void 0?!0:t;var E,e,C,u,a;return _.h(function(m){switch(m.nextAddress){case 1:return E=Date.now(),m.yield(Fto(p,l,q,y),2);case 2:e=m.yieldResult;if(!(t||((u=p.initializationData)==null?0:u.useNightlyRelease)||((a=p.initializationData)==null?0:a.isLocalServer))){C=e.initializeFeedbackClient(p,E,y);m.jumpTo(3);break}return m.yield(e.initializeFeedbackClientAsync(p,E,y),4);case 4:C=m.yieldResult;case 3:return C.initiateAloha(),m.return(C)}})};
H2m=function(p,y,l,q){var t,E,e;return _.h(function(C){if(C.nextAddress==1)return t=Date.now(),C.yield(NY6(p,l,q.document,y),2);if(C.nextAddress!=3)return E=C.yieldResult,C.yield(E.initializeFeedbackClientAsync(p,t,y,q),3);e=C.yieldResult;e.initiateAloha();return C.return(e)})};
TYR=function(p,y,l){var q=!0;q=q===void 0?!0:q;var t,E,e,C,u,a,m,U,b,P;return _.h(function(Z){t=l||_.l_;if((E=y)==null?0:(C=(e=E).getEnableAlohaBinarySplit)==null?0:C.call(e)){u=t;if(u.isFormOpened)throw a=Error("gf"),a.name="DuplicateFormError",a;u.isFormOpened=!0;p.callbacks=p.callbacks||{};m=p.callbacks.onClose||function(){};
p.callbacks.onClose=function(K){u.isFormOpened=!1;m(K)};
try{return Z.return(H2m(p,y,u,t))}catch(K){throw u.isFormOpened=!1,K;}}else{U=t;if(U.isFormOpened)throw b=Error("gf"),b.name="DuplicateFormError",b;U.isFormOpened=!0;p.callbacks=p.callbacks||{};P=p.callbacks.onClose||function(){};
p.callbacks.onClose=function(K){U.isFormOpened=!1;P(K)};
try{return Z.return(DDt(p,y,U,t.document,q))}catch(K){throw U.isFormOpened=!1,K;}}_.rR(Z)})};
XPR=function(p,y){return _.h(function(l){return l.return(new Promise(function(q){var t=xDt(y!=null?y:"")+"/aloha_form_properties?productId="+p;BYa(t,function(E){E=E.target;var e=null;try{var C=JSON,u=C.stringify;if(E.JSC$9731_xhr_){var a=E.JSC$9731_xhr_.responseText;a.indexOf(")]}'\n")==0&&(a=a.substring(5));var m=(0,_.Nf)(a)}else m=void 0;e=VZR(fvR,u.call(C,m))}catch(U){u=new fvR,m=vDt(),m=_.D_(m,13,!1),m=_.D_(m,14,!0),m=_.D_(m,15,!0),m=_.D_(m,20,!1),e=_.gu(u,1,m)}q(e)},"GET","",{},2E3,!0)}))})};
xDt=function(p){return gD_(p)?p:"https://www.google.com/tools/feedback"};
zNl=function(p){p=p.match(new RegExp(dDl,"gi"))||[];p=_.c(p);for(var y=p.next();!y.done;y=p.next()){y=y.value;a:{var l=_.c(O28);for(var q=l.next();!q.done;q=l.next())if(q.value.test(y)){l=!1;break a}l=!0}if(!l)a:{l=_.c(oDl);for(q=l.next();!q.done;q=l.next())if(q.value.test(y)){l=!0;break a}l=!1}if(l)return!0}return!1};
Y0j=function(p){switch(p){case "canary":return"CLIENT_CANARY_STATE_CANARY";case "control":return"CLIENT_CANARY_STATE_CONTROL";case "none":return"CLIENT_CANARY_STATE_NONE";default:return"CLIENT_CANARY_STATE_UNKNOWN"}};
pEg=function(p){if(window.crypto&&window.crypto.getRandomValues)try{var y=Array(p),l=new Uint8Array(p);window.crypto.getRandomValues(l);for(var q=0;q<y.length;q++)y[q]=l[q];return y}catch(E){}y=Array(p);for(l=0;l<p;l++){q=Date.now();for(var t=0;t<q%23;t++)y[l]=Math.random();y[l]=Math.floor(Math.random()*256)}if(Ivo)for(l=1,q=0;q<Ivo.length;q++)y[l%p]^=y[(l-1)%p]/4^Ivo.charCodeAt(q),l++;return y};
H2=function(p){p=pEg(p);for(var y=[],l=0;l<p.length;l++)y.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(p[l]&63));return y.join("")};
y6t=function(){var p=_.l_.ytLoggingDocDocumentNonce_;p||(p=H2(16),_.e0("ytLoggingDocDocumentNonce_",p));return p};
qA8=function(p){p&&_.TX("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:lmj,clientScreenNonce:p})};
sLl=function(p){return _.OY("client-screen-nonce-store",{})[p===void 0?0:p]};
txu=function(p,y){y=y===void 0?0:y;var l=_.OY("client-screen-nonce-store");l||(l={},_.dT("client-screen-nonce-store",l));l[y]=p};
Efc=function(p){p=p===void 0?0:p;return p===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+p};
J6m=function(p){return _.OY(Efc(p===void 0?0:p))};
_.xc=function(p){return(p=J6m(p===void 0?0:p))?new _.Tc({veType:p,youtubeData:void 0,jspbYoutubeData:void 0}):null};
c6t=function(){var p=_.OY("csn-to-ctt-auth-info");p||(p={},_.dT("csn-to-ctt-auth-info",p));return p};
ek8=function(){return Object.values(_.OY("client-screen-nonce-store",{})).filter(function(p){return p!==void 0})};
_.B2=function(p){p=sLl(p===void 0?0:p);if(!p&&!_.o4("USE_CSN_FALLBACK",!0))return null;p||(p="UNDEFINED_CSN");return p?p:null};
CKj=function(p){for(var y=_.c(Object.values(hk6)),l=y.next();!l.done;l=y.next())if(_.B2(l.value)===p)return!0;return!1};
uaj=function(p,y,l){var q=c6t();(l=_.B2(l))&&delete q[l];y&&(q[p]=y)};
fx=function(p){return c6t()[p]};
_.v2=function(p,y,l,q){l=l===void 0?0:l;if(p!==sLl(l)||y!==_.OY(Efc(l)))if(uaj(p,q,l),txu(p,l),_.dT(Efc(l),y),y=function(){setTimeout(function(){qA8(p)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(y)}catch(t){y()}else y()};
Rkt=function(p,y){y=y===void 0?"":y;var l=[],q;for(q in p)if(p.hasOwnProperty(q)){var t=y!==""?y+"."+q:q;typeof p[q]==="object"?l.push.apply(l,_.xq(Rkt(p[q],t))):l.push([t,p[q]])}l.sort();return l};
_.da=function(p){var y=_.oX.apply(1,arguments);if(!XK(p)||y.some(function(q){return!XK(q)}))throw Error("hf");
y=_.c(y);for(var l=y.next();!l.done;l=y.next())W4j(p,l.value)};
W4j=function(p,y){for(var l in y)if(XK(y[l])){if(l in p&&!XK(p[l]))throw Error("jf");l in p||(p[l]={});W4j(p[l],y[l])}else if(amm(y[l])){if(l in p&&!amm(p[l]))throw Error("kf");l in p||(p[l]=[]);my5(p[l],y[l])}else p[l]=y[l];return p};
my5=function(p,y){y=_.c(y);for(var l=y.next();!l.done;l=y.next())l=l.value,XK(l)?p.push(W4j({},l)):amm(l)?p.push(my5([],l)):p.push(l);return p};
XK=function(p){return typeof p==="object"&&!Array.isArray(p)};
amm=function(p){return typeof p==="object"&&Array.isArray(p)};
$yL=function(p){for(var y=_.c(Object.entries(Uyl)),l=y.next();!l.done;l=y.next())if(l=_.c(l.value),l.next(),l=l.next().value,l==="SLI_STATUS_"+p)return l;return"SLI_STATUS_UNKNOWN"};
_.On=function(p,y,l,q){return jLu(p,y,function(){return new _.bga(p,y,l,q)})};
_.nf_=function(){return _.On("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
Gvj=function(){return _.On("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
oG=function(){return _.On("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
PK6=function(){return _.On("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
A6u=function(){return _.On("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
Zg5=function(){return _.On("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
gft=function(p){p&&(p.dataset?p.dataset[MxL()]="true":_.CC([_.$I(Vxl)],p,"data-loaded","true".toString()))};
QLR=function(p){return p?p.dataset?p.dataset[MxL()]:p.getAttribute("data-loaded"):null};
MxL=function(){return K4R.loaded||(K4R.loaded="loaded".replace(/\-([a-z])/g,function(p,y){return y.toUpperCase()}))};
_.zc=function(p,y,l){wE5(p,y,l===void 0?null:l)};
_.r6c=function(p,y){p&&y&&(p=""+_.qO(y),(p=ig8[p])&&_.Fcl(p))};
wE5=function(p,y,l){l=l===void 0?null:l;var q=_.SAt(typeof p==="string"?p:p.toString()),t=document.getElementById(q),E=t&&QLR(t),e=t&&!E;E?y&&y():(y&&(E=_.UL(q,y),y=""+_.qO(y),ig8[y]=E),e||(t=F4l(p,q,function(){QLR(t)||(gft(t),_.Lc8(q),_.nh(function(){_.NWo(q)},0))},l)))};
F4l=function(p,y,l,q){q=q===void 0?null:q;var t=_.gg("SCRIPT");t.id=y;t.onload=function(){l&&setTimeout(l,0)};
t.onreadystatechange=function(){switch(t.readyState){case "loaded":case "complete":t.onload()}};
q&&t.setAttribute("nonce",q);_.e_(t,typeof p==="string"?_.kP(p):p);p=document.getElementsByTagName("head")[0]||document.body;p.insertBefore(t,p.firstChild);return t};
_.SAt=function(p){var y=document.createElement("a");YX(y,p);return"js-"+Yc(y.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
L4t=function(p){var y=_.OY("INNERTUBE_HOST_OVERRIDE");y&&(p=String(y)+String(_.IG(p)));return p};
kv5=function(p){var y={};_.n("json_condensed_response")&&(y.prettyPrint="false");return p=Ewl(p,y)};
_.py=function(p){return Ch(p)?"same-origin":"include"};
_.ll=function(p){return Ch(p)?"same-origin":"cors"};
sb=function(p,y,l){l=l===void 0?{}:l;p={method:y===void 0?"POST":y,mode:_.ll(p),credentials:_.py(p)};y={};for(var q=_.c(Object.keys(l)),t=q.next();!t.done;t=q.next())t=t.value,l[t]&&(y[t]=l[t]);Object.keys(y).length>0&&(p.headers=y);return p};
_.tO=function(p,y){y=y===void 0?{}:y;return"service:"+p+"/"+Object.keys(y).sort().map(function(l){return l+":"+y[l]}).join("/")};
NIu=function(p){var y,l,q,t;p=(y=_.G(p,_.Eb))==null?void 0:(l=y.watchEndpointSupportedOnesieConfig)==null?void 0:(q=l.html5PlaybackOnesieConfig)==null?void 0:(t=q.commonConfig)==null?void 0:t.url;if(!p)return[];y=new _.JO(p);return y.JSC$9968_domain_?["https://"+y.JSC$9968_domain_+"/generate_204"]:[]};
_.TIo=function(){return DyR()||h3u()||Hgt&&vC("version/")?!0:_.OY("EOM_VISITOR_DATA")?!1:!0};
xyg=function(p){var y=p.docid||p.video_id||p.videoId||p.id;if(y)return y;y=p.raw_player_response;y||(p=p.player_response)&&(y=JSON.parse(p));return y&&y.videoDetails&&y.videoDetails.videoId||null};
BIu=function(p){return p.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
cW=function(p){return!isNaN(Number(p))&&!_.ej(p)};
_.hO=function(p,y,l,q){q=q===void 0?!0:q;var t=_.OY("VALID_SESSION_TEMPDATA_DOMAINS",[]),E=_.eM(window.location.href);E&&t.push(E);E=_.eM(p);if(_.Tl(t,E)||!E&&_.tR(p,"/"))if(t=document.createElement("a"),YX(t,p),p=t.href)if(p=_.IG(p),p=_.eN(p))q&&!y.csn&&(y.itct||y.ved)&&(y=Object.assign({csn:_.B2()},y)),l?(l=parseInt(l,10),isFinite(l)&&l>0&&fm_(p,y,l)):fm_(p,y)};
XEl=function(p){var y=_.OY("VALID_SESSION_TEMPDATA_DOMAINS",[]),l=_.eM(window.location.href);l&&y.push(l);l=_.eM(p);if(!(_.Tl(y,l)||!l&&_.tR(p,"/")))return null;p=_.IG(p);(p=_.eN(p))?(p=vf8(p),p=(p=_.Q$.get(p,void 0)||null)?_.qM(p):{}):p=null;return p};
fm_=function(p,y,l){p=vf8(p);y=y?_.MM(y):"";l=l||5;_.TIo()&&_.Kh(p,y,l)};
vf8=function(p){for(var y=_.c(dya),l=y.next();!l.done;l=y.next())p=_.Cy(p,l.value);return"ST-"+Yc(p).toString(36)};
Og6=function(p,y){p.commandMetadata&&_.G(p.commandMetadata,_.ul)&&_.G(p.commandMetadata,_.ul).url&&(p=_.tJ(_.G(p.commandMetadata,_.ul).url).adurl)&&_.cOc(p)&&_.hO(_.IG(p),{encoded_ad_playback_context:y})};
_.ofL=function(p){if(p.requestFullscreen)p=p.requestFullscreen(void 0);else if(p.webkitRequestFullscreen)p=p.webkitRequestFullscreen();else if(p.mozRequestFullScreen)p=p.mozRequestFullScreen();else if(p.msRequestFullscreen)p=p.msRequestFullscreen();else if(p.webkitEnterFullscreen)p=p.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return p instanceof Promise?p:Promise.resolve()};
_.WW=function(p){var y;_.Pyg(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.RJ()==p&&(y=document):y=p;if(y&&(p=_.Pyg(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],y))){p.call(y)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.RJ=function(){var p=p===void 0?!1:p;var y=_.Pyg(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(p)for(;y&&y.shadowRoot;)y=y.shadowRoot.fullscreenElement;return y?y:null};
_.aJ=function(p,y){y=y===void 0?!0:y;p.addEventListener("wheel",zkj);p.overscrollConfig={cooldown:y}};
_.mO=function(p){p.overscrollConfig=void 0;p.removeEventListener("wheel",zkj)};
zkj=function(p){var y=p.deltaY,l=p.target,q=null;if(window.Polymer&&window.Polymer.Element){if(l=p.path||p.composedPath&&p.composedPath()){l=_.c(l);for(var t=l.next();!t.done&&(t=t.value,!YAt(t,y));t=l.next())if(t.overscrollConfig){q=t;break}}}else for(;l&&!YAt(l,y);){if(l.overscrollConfig){q=l;break}l=l.parentElement}q&&(y=q.overscrollConfig,y.cooldown?(q=p.deltaY,l=y.lastDeltaY||0,y.lastDeltaY=q,t=y.lastStopped||0,l&&t&&l>0==q>0?Math.abs(l)>=Math.abs(q)?(q=t+1200,l=!1):(q=t+600,l=!0):(q=Date.now()+
600,l=!0),q>Date.now()&&(p.preventDefault(),l&&(y.lastStopped=Date.now()))):p.preventDefault())};
YAt=function(p,y){return y<0&&p.scrollTop>0||y>0&&p.scrollTop<p.scrollHeight-p.clientHeight-1?(p=getComputedStyle(p).overflowY,p=="auto"||p=="scroll"):!1};
_.Ub=function(p,y,l,q){q||(q={bubbles:!0,cancelable:!1,composed:!0});l!==null&&l!==void 0&&(q.detail=l);var t=new CustomEvent(y,q);_.n("untrack_fire_custom_event_killswitch")?p.dispatchEvent(t):bb(function(){return void p.dispatchEvent(t)});
return t};
Ima=function(p){var y=window,l=function(q){y.removeEventListener("yt-navigate-start",l);return p.call(y,q)};
y.addEventListener("yt-navigate-start",l,void 0)};
_.$w=function(p,y,l,q){y=new pzo(y,!(q===void 0||!q),l);_.Ub(p,"yt-action",y);return y.returnValue};
_.jN=function(p,y,l){return _.$w(p,y,l,!0)};
_.bl=function(p,y,l){return _.$w(p,y,l)[0]};
_.Gf=function(p,y,l,q){y&&y.length&&y.forEach(function(t){var E=bX8(t);E&&(_.n("handle_service_request_actions")&&t.commandMetadata&&t.commandMetadata.webCommandMetadata&&t.commandMetadata.webCommandMetadata.sendPost?_.ny(l?l:p,[t]):_.jN(p,E,[t,l,q]))})};
_.ny=function(p,y){var l=[p];y&&l.push.apply(l,y);y=_.$w(p,"yt-service-request",l);return y.length>0&&(y=y[0],_.Ub(p,"yt-service-request-sent",y),y&&y.ajaxPromise)?(y.ajaxPromise.then(function(q){_.Ub(p,"yt-service-request-completed",q)},function(q){_.Ub(p,"yt-service-request-error",{error:q,
params:l})},p),y.ajaxPromise):_.PW()};
_.Zb=function(p,y){if(_.n("handle_service_request_actions"))_.Gf(y,p,y);else{p=_.c(p);for(var l=p.next();!l.done;l=p.next()){l=l.value;var q=void 0;((q=_.G(l,_.AO))==null?0:q.commands)?_.Zb(_.G(l,_.AO).commands,y):(q=void 0,((q=_.G(l,_.Mn))==null?0:q.actions)?_.Zb(_.G(l,_.Mn).actions,y):(q=void 0,((q=_.G(l.commandMetadata,_.ul))==null?0:q.sendPost)?_.ny(y,[l]):_.Gf(y,[l],y)))}}};
_.lZR=function(p,y,l){y=y===void 0?{}:y;typeof y==="function"&&(y={callback:y});l||y._c&&y._c.jsl&&y._c.jsl.h||_.Ts.extend(y,{_c:{jsl:{h:_.OY("GAPI_HINT_PARAMS")}}});(y.gapiHintOverride||_.OY("GAPI_HINT_OVERRIDE"))&&(l=_.tJ(document.location.href).gapi_jsh)&&_.Ts.extend(y,{_c:{jsl:{h:l}}});yc6(p,y)};
_.g$=function(p,y,l){y=y===void 0?{}:y;p=(p=p in Vt?Vt[p]:l)||"";l={};for(var q in y){l={key$jscomp$815:l.key$jscomp$815};l.key$jscomp$815=q;var t=function(E){return function(){return String(y[E.key$jscomp$815])}}(l);
p=p.replace(new RegExp("\\$\\{"+l.key$jscomp$815+"\\}","gi"),t);p=p.replace(new RegExp("\\$"+l.key$jscomp$815,"gi"),t)}return p};
_.Qt=function(p,y){return qTL(p in Vt?Vt[p]:{},y)};
qTL=function(p,y){var l=_.OY("I18N_PLURAL_RULES");l||(l=function(q){return q==1?"one":"other"});
return(p=p["case"+y]||p[l(y)])?p.replace("#",y.toString()):y+""};
EdR=function(p){var y=saR(p),l=document.getElementById(y),q=l&&QLR(l);q||l&&!q||(l=tCo(p,y,function(){if(!QLR(l)){gft(l);_.Lc8(y);var t=_.Ky(_.NWo,y);_.nh(t,0)}}))};
tCo=function(p,y,l){var q=document.createElement("link");q.id=y;q.onload=function(){l&&setTimeout(l,0)};
p=_.kP(p);_.R9(q,p,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(q);return q};
saR=function(p){var y=_.gg("A");YX(y,H6(p));return"css-"+Yc(y.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.cct=function(p){var y=Jcl();p!==y&&(y=_.w$(),!_.n("web_autonav_allow_off_by_default")&&p||_.il(0,141,!0),_.il(0,140,!p),y.save())};
Jcl=function(){var p=_.w$();return _.n("web_autonav_allow_off_by_default")&&!p.getFlag(141)&&_.OY("AUTONAV_OFF_BY_DEFAULT")?!1:!p.getFlag(140)};
ev8=function(p,y){var l,q;p=((l=p.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(q=l.videoAuthorizationToken)==null?void 0:q.credentialTransferTokens)||[];for(l=0;l<p.length;++l)if(p[l].scope===y)return p[l].token||void 0};
hvm=function(p){for(var y=0,l=0;l<p.length;l++)y=y*31+p.charCodeAt(l),l<p.length-1&&(y%=0x800000000000);return y%1E5};
_.r$=function(p){return _.I4("ytcsi."+(p||"")+"data_")||Cma(p)};
_.u6L=function(p){p=_.r$(p);p.metadata||(p.metadata={});return p.metadata};
_.Rvt=function(p){p=_.r$(p);p.tick||(p.tick={});return p.tick};
_.SN=function(p){p=_.r$(p);if(p.gel){var y=p.gel;y.gelInfos||(y.gelInfos={});y.gelTicks||(y.gelTicks={})}else p.gel={gelTicks:{},gelInfos:{}};return p.gel};
_.Wg6=function(p){p=_.SN(p);p.gelInfos||(p.gelInfos={});return p.gelInfos};
aZ_=function(p){var y=_.r$(p).nonce;y||(y=H2(16),_.r$(p).nonce=y);return y};
Cma=function(p){var y={tick:{},info:{}};_.e0("ytcsi."+(p||"")+"data_",y);return y};
m6c=function(){var p=_.I4("ytcsi.debug");p||(p=[],_.e0("ytcsi.debug",p),_.e0("ytcsi.reference",{}));return p};
_.F_=function(p){p=p||"";var y=U6g();if(y[p])return y[p];var l=m6c(),q={timerName:p,info:{},tick:{},span:{},jspbInfo:[]};l.push(q);return y[p]=q};
$6o=function(p){p=p||"";var y=U6g();y[p]&&delete y[p];var l=m6c(),q={timerName:p,info:{},tick:{},span:{},jspbInfo:[]};l.push(q);y[p]=q};
U6g=function(){var p=_.I4("ytcsi.reference");if(p)return p;m6c();return _.I4("ytcsi.reference")};
_.bz8=function(p){return jat[p]||"LATENCY_ACTION_UNKNOWN"};
Act=function(p,y,l){l=l===void 0?{}:l;var q=!1;_.o4("ytLoggingEventsDefaultDisabled",!1)&&(q=!0);q=q?null:Hs;l=l===void 0?{}:l;var t=Math.round(l.timestamp||(0,_.uM)());_.wJ(y,1,t<Number.MAX_SAFE_INTEGER?t:0);t=new nd5;if(l.lact)_.wJ(t,1,isFinite(l.lact)?l.lact:-1);else if(l.timestamp)_.wJ(t,1,-1);else{var E=_.Rd();_.wJ(t,1,isFinite(E)?E:-1)}if(l.sequenceGroup&&!_.n("web_gel_sequence_info_killswitch")){E=l.sequenceGroup;var e=dW5(E),C=new Grt;_.wJ(C,2,e);_.Fq(C,1,E);_.gu(t,3,C);l.endOfSequence&&delete Pmj[l.sequenceGroup]}_.gu(y,
33,t);(l.sendIsolatedPayload?ybc:lRg)(p,{endpoint:"log_event",payload:y,cttAuthInfo:l.cttAuthInfo,dangerousLogToVisitorSession:l.dangerousLogToVisitorSession},q)};
_.kw=function(){return(_.n("csi_use_time_origin")||_.n("csi_use_time_origin_tvhtml5"))&&_.Ly.timeOrigin?Math.floor(_.Ly.timeOrigin):_.Ly.timing.navigationStart};
_.Zza=function(p,y){_.Nn("_start",p,y)};
_.Db=function(p,y){if(!_.n("web_csi_action_sampling_enabled")||!_.r$(y).actionDisabled){var l=_.F_(y||"");_.da(l.info,p);p.loadType&&(l=p.loadType,_.u6L(y).loadType=l);_.da(_.Wg6(y),p);l=aZ_(y);y=_.r$(y).cttAuthInfo;MCl().info(p,l,y)}};
VC6=function(){var p,y,l,q;return((q=_.WC().resolve(_.RK(SF))==null?void 0:(p=kn())==null?void 0:(y=p.loggingHotConfig)==null?void 0:(l=y.csiConfig)==null?void 0:l.debugTicks)!=null?q:[]).map(function(t){return Object.values(t)[0]})};
_.Nn=function(p,y,l){if(!_.n("web_csi_action_sampling_enabled")||!_.r$(l).actionDisabled){var q=aZ_(l),t;if(t=_.n("web_csi_debug_sample_enabled")&&q){(_.WC().resolve(_.RK(SF))==null?0:kn())&&!gd8&&(gd8=!0,_.Nn("gcfl",(0,_.uM)(),l));var E,e,C;t=(_.WC().resolve(_.RK(SF))==null?void 0:(E=kn())==null?void 0:(e=E.loggingHotConfig)==null?void 0:(C=e.csiConfig)==null?void 0:C.debugSampleWeight)||0;if(E=t!==0)b:{E=VC6();if(E.length>0)for(e=0;e<E.length;e++)if(p===E[e]){E=!0;break b}E=!1}E?(t=hvm(q)%t!==0,
_.r$(l).debugTicksExcludedLogged||(E={},E.debugTicksExcluded=t,_.Db(E,l)),_.r$(l).debugTicksExcludedLogged=!0):t=!1}if(!t){p[0]!=="_"&&Qa_(p,l,y);t=_.F_(l||"");t.tick[p]=y||(0,_.uM)();if(t.callback&&t.callback[p])for(t=_.c(t.callback[p]),E=t.next();!E.done;E=t.next())E=E.value,E();t=_.SN(l);t.gelTicks&&(t.gelTicks[p]=!0);E=_.Rvt(l);t=y||(0,_.uM)();_.n("log_repeated_ytcsi_ticks")?p in E||(E[p]=t):E[p]=t;E=_.r$(l).cttAuthInfo;p==="_start"?MCl().baseline(q,y,E):MCl().tick(p,q,y,E);_.Kg_(l);return t}}};
Qa_=function(p,y,l){if(_.Ly.mark)if(p.startsWith("mark_")||(p="mark_"+p),y&&(p+=" ("+y+")"),l===void 0||_.n("web_csi_disable_alt_time_performance_mark"))_.Ly.mark(p);else{l=_.n("csi_use_performance_navigation_timing")?l-_.Ly.timeOrigin:l-(_.Ly.timeOrigin||_.Ly.timing.navigationStart);try{_.Ly.mark(p,{startTime:l})}catch(q){}}};
wzm=function(){var p,y=(p=_.Ly.getEntriesByType)==null?void 0:p.call(_.Ly,"mark");y&&y.forEach(function(l){if(l.name.startsWith("mark_")){var q;(q=_.Ly.clearMarks)==null||q.call(_.Ly,l.name)}})};
_.izL=function(){switch(Gpl()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.rc6=function(p){var y={},l=function(E,e,C){e=e.match("_rid")?e.split("_rid")[0]:e;typeof C==="number"&&(C=JSON.stringify(C));E.requestIds?E.requestIds.push({endpoint:e,id:C}):E.requestIds=[{endpoint:e,id:C}]};
p=_.c(Object.entries(p));for(var q=p.next();!q.done;q=p.next()){var t=_.c(q.value);q=t.next().value;t=t.next().value;switch(q){case "GetBrowse_rid":l(y,q,t);break;case "GetGuide_rid":l(y,q,t);break;case "GetHome_rid":l(y,q,t);break;case "GetPlayer_rid":l(y,q,t);break;case "GetSearch_rid":l(y,q,t);break;case "GetSettings_rid":l(y,q,t);break;case "GetTrending_rid":l(y,q,t);break;case "GetWatchNext_rid":l(y,q,t);break;case "yt_red":y.isRedSubscriber=!!t;break;case "yt_ad":y.isMonetized=!!t}}return y};
Fgl=function(p,y,l,q,t,E){if(!_.n("web_csi_action_sampling_enabled")||!_.r$(E).actionDisabled){var e=_.SN(E);if(e.gelSpans)e.gelSpans[p]=!0;else{var C={};e.gelSpans=(C[p]=!0,C)}STm++;p={spanName:p,spanLengthUsec:String(Math.round(y*1E3)),spanNonce:STm};q&&(p.spanInfo=q);t&&(p.parentSpanNonce=t);l&&(p.spanStartTimeUsec=String(Math.round(l*1E3)));_.F_(E||"").span[String(p.spanName)]=p;l=_.SN(E);l.gelSpans||(l.gelSpans={});_.da(l.gelSpans,p);l=aZ_(E);E=_.r$(E).cttAuthInfo;MCl().span(p,l,E);return p.spanNonce}};
_.Lgc=function(p){var y=_.HW("aft",p);if(y)return y;y=_.OY((p||"")+"TIMING_AFT_KEYS",["ol"]);for(var l=y.length,q=0;q<l;q++){var t=_.HW(y[q],p);if(t)return t}return NaN};
_.krt=function(p,y){_.e0("ytglobal.timing"+(y||"")+"ready_",p)};
_.HW=function(p,y){if(p=_.Rvt(y)[p])return typeof p==="number"?p:p[p.length-1]};
_.Kg_=function(p){var y=_.HW("_start",p),l=_.Lgc(p),q=!Nc5;y&&l&&q&&(o9u(D6_,new HzR(Math.round(l-y),p)),Nc5=!0)};
x6c=function(p){Cma(p);TcR();wzm();p||(_.OY("TIMING_ACTION")&&_.dT("PREVIOUS_ACTION",_.OY("TIMING_ACTION")),_.dT("TIMING_ACTION",""))};
_.Bct=function(p){p=p===void 0?{}:p;_.YZ(function(){Tf();$6o();x6c();_.krt(!1);p.cttAuthInfo&&(_.r$().cttAuthInfo=p.cttAuthInfo);_.dT("TIMING_AFT_KEYS",[]);p.isHot?_.xw({loadType:"hot"}):_.xw({loadType:"warm"});_.dT("TIMING_ACTION","");delete _.OY("TIMING_INFO",{}).yt_lt;_.YZ(_.Zza)(p.startTime,void 0)})()};
_.BW=function(p,y,l,q){y=y===void 0?{}:y;_.YZ(function(){var t=l?l:p;fZl(t);var E=y.sampleRate;if(!_.n("web_csi_action_sampling_enabled")||E===void 0||E<=1)E=!1;else{var e=aZ_(t);E=hvm(e)%E!==0}E&&(_.r$(t).actionDisabled=!0);_.F_(t||"").info.actionType=p;y.cttAuthInfo&&(_.r$(t).cttAuthInfo=y.cttAuthInfo);_.dT(t+"TIMING_ACTION",p);_.YZ(_.Zza)(y.startTime,t);E={actionType:q||_.bz8(p)};y.logPreviousAction&&(E.previousAction=_.bz8(_.OY("TIMING_ACTION")));(e=_.B2())&&e!=="UNDEFINED_CSN"&&(E.clientScreenNonce=
e);_.xw(E,t);_.krt(!0,t)})()};
fZl=function(p){_.YZ(function(){Tf(p);$6o(p);x6c(p)})()};
vdl=function(){_.YZ(function(){var p=[],y;for(y in _.I4("ytcsi.".slice(0,-1)))y.endsWith("data_")&&p.push(y.slice(0,-5));p=_.c(p);for(y=p.next();!y.done;y=p.next())fZl(y.value);Tf()})()};
_.d6m=function(p){return _.YZ(function(){return _.Xzo("_start",p)})()};
_.xw=function(p,y,l){_.YZ(_.Db)(p,y,l===void 0?!1:l)};
_.fy=function(p,y,l){return _.YZ(_.Nn)(p,y,l)};
_.Xzo=function(p,y){return _.YZ(function(){var l=_.Rvt(y);return p in l})()};
odt=function(p){if(!_.n("universal_csi_network_ticks"))return"";p=_.AJ(p)||"";for(var y=Object.keys(OzR),l=0;l<y.length;l++){var q=y[l];if(p.includes(q))return q}return""};
YTj=function(p){if(!_.n("universal_csi_network_ticks"))return function(){};
var y=OzR[p];return y?(_.vW(y),function(){var l=_.n("universal_csi_network_ticks")?(l=zv6[p])?_.vW(l):!1:!1;return l}):function(){}};
_.vW=function(p,y,l){return _.YZ(function(){if(_.Xzo(p,l))return!1;_.fy(p,y,l);return!0})()};
_.X_=function(p,y,l){_.YZ(function(){if(!_.d6m(l)||_.Xzo(p,l))return!1;_.fy(p,y,l);return!0})()};
_.d$=function(p){return _.YZ(_.HW)(p,void 0)};
Tf=function(p){_.d6m(p)&&_.fy("aa",void 0,p)};
_.q4m=function(p,y,l,q,t,E,e,C,u){var a=IZl();C=new _.Tc({veType:y,youtubeData:E,jspbYoutubeData:C});E=oJ({},a);t&&(E.cttAuthInfo=t);t={csn:a,pageVe:C.getAsJson()};_.n("expectation_logging")&&u&&u.screenCreatedLoggingExpectations&&(t.screenCreatedLoggingExpectations=u.screenCreatedLoggingExpectations);l&&l.visualElement?(t.implicitGesture={parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()},e&&(t.implicitGesture.gestureType=e)):l&&_.vs(new _.SM("newScreen() parent element does not have a VE - rootVe",
y));q&&(t.cloneCsn=q);p?Dp("screenCreated",t,p,E):_.TX("screenCreated",t,E);o9u(qsj,new pGt(a));zf.clear();ygc.clear();lr6.clear();return a};
Yw=function(p,y,l,q,t,E){E=E===void 0?{}:E;s$6(p,y,l,[q],t===void 0?!1:t,E)};
s$6=function(p,y,l,q,t,E){t=t===void 0?!1:t;E=E===void 0?{}:E;Object.assign(E,oJ({cttAuthInfo:fx(y)||void 0},y));for(var e=_.c(q),C=e.next();!C.done;C=e.next()){C=C.value;var u=C.getAsJson();(_.Ts.isEmpty(u)||!u.trackingParams&&!u.veType)&&_.vs(Error("uf"));if(_.n("no_client_ve_attach_unless_shown")){var a=t1j(C,y);if(u.veType&&!ygc.has(a)&&!lr6.has(a)&&!t){if(!_.n("il_attach_cache_limit")||zf.size<1E3){zf.set(a,[p,y,l,C]);return}_.n("il_attach_cache_limit")&&zf.size>1E3&&_.vs(new _.SM("IL Attach cache exceeded limit"))}C=
t1j(l,y);zf.has(C)?E0o(l,y):lr6.set(C,!0)}}q=q.filter(function(m){m.csn!==y?(m.csn=y,m=!0):m=!1;return m});
l={csn:y,parentVe:l.getAsJson(),childVes:_.xI(q,function(m){return m.getAsJson()})};
y==="UNDEFINED_CSN"?IJ("visualElementAttached",E,l):p?Dp("visualElementAttached",l,p,E):_.TX("visualElementAttached",l,E)};
cgo=function(p,y,l,q,t){Jgc(p,y,l,t)};
Jgc=function(p,y,l,q){edL(l,y);var t=oJ({cttAuthInfo:fx(y)||void 0},y);l={csn:y,ve:l.getAsJson(),eventType:1};q&&(l.clientData=q);y==="UNDEFINED_CSN"?IJ("visualElementShown",t,l):p?Dp("visualElementShown",l,p,t):_.TX("visualElementShown",l,t)};
hdt=function(p,y,l,q){edL(l,y);var t=oJ({cttAuthInfo:fx(y)||void 0},y);l={csn:y,ve:l.getAsJson(),eventType:4};q&&(l.clientData=q);y==="UNDEFINED_CSN"?IJ("visualElementShown",t,l):p?Dp("visualElementShown",l,p,t):_.TX("visualElementShown",l,t)};
CoR=function(p,y,l,q,t){var E=(q=q===void 0?!1:q)?16:8;q=oJ({cttAuthInfo:fx(y)||void 0,endOfSequence:q},y);l={csn:y,ve:l.getAsJson(),eventType:E};t&&(l.clientData=t);y==="UNDEFINED_CSN"?IJ("visualElementHidden",q,l):p?Dp("visualElementHidden",l,p,q):_.TX("visualElementHidden",l,q)};
Rdl=function(p,y,l,q,t){uPm(p,y,l,void 0,q,t)};
uPm=function(p,y,l,q,t){edL(l,y);q=q||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var E=oJ({cttAuthInfo:fx(y)||void 0},y);l={csn:y,ve:l.getAsJson(),gestureType:q};t&&(l.clientData=t);y==="UNDEFINED_CSN"?IJ("visualElementGestured",E,l):p?Dp("visualElementGestured",l,p,E):_.TX("visualElementGestured",l,E)};
WGR=function(p,y,l,q){var t=oJ({cttAuthInfo:fx(y)||void 0},y);l={csn:y,ve:l.getAsJson(),clientData:q};y==="UNDEFINED_CSN"?IJ("visualElementStateChanged",t,l):p?Dp("visualElementStateChanged",l,p,t):_.TX("visualElementStateChanged",l,t)};
ar_=function(){var p=pEg(16);for(var y=[],l=0;l<p.length;l++)y.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(p[l]&63));return y.join("")};
IJ=function(p,y,l){mla.push({payloadName:p,payload:l,jspbPayload:void 0,options:y});Ulg||(Ulg=tRl())};
lLo=function(p){if(mla){for(var y=_.c(mla),l=y.next();!l.done;l=y.next())l=l.value,l.payload&&(l.payload.csn=p.csn,_.TX(l.payloadName,l.payload,l.options));mla.length=0}Ulg=0};
t1j=function(p,y){return""+p.getAsJson().veType+p.getAsJson().veCounter+y};
edL=function(p,y){if(_.n("no_client_ve_attach_unless_shown")){var l=t1j(p,y);ygc.set(l,!0);E0o(p,y)}};
E0o=function(p,y){p=t1j(p,y);zf.has(p)&&(y=zf.get(p)||[],Yw(y[0],y[1],y[2],y[3],!0),zf.delete(p))};
oJ=function(p,y){_.n("log_sequence_info_on_gel_web")&&(p.sequenceGroup=y);return p};
_.pW=function(p,y,l){_.YZ(Yw)(void 0,p,y,l)};
_.yj=function(p,y,l){_.YZ(s$6)(void 0,p,y,l)};
_.la=function(p,y){_.YZ(cgo)(void 0,p,y,void 0,void 0,void 0)};
_.qs=function(p,y,l){_.YZ(function(){_.lv(y,function(q){hdt(void 0,p,q,l)})})()};
_.st=function(p,y,l,q){_.YZ(function(){_.lv(y,function(t){CoR(void 0,p,t,l,q)})})()};
_.te=function(p,y,l){_.YZ(Rdl)(void 0,p,y,l,void 0)};
_.Et=function(p,y,l,q){_.YZ(uPm)(void 0,p,y,l,q,void 0)};
_.Je=function(p,y,l){_.YZ(WGR)(void 0,p,y,l,void 0)};
$lu=function(p,y){he.set(p,y)};
j$_=function(p){return CW?CW.enabledSpans?!!CW.enabledSpans[p]:!0:!1};
bn6=function(p){if(!CW)throw Error("xf");CW.processors.push(p)};
n0_=function(p,y){if(p){y=y===void 0?1:y;if(p&&(p.endTime=performance.now(),y&&(p.status=y),y=CW)){y=_.c(y.processors);for(var l=y.next();!l.done;l=y.next()){var q=void 0,t=void 0;(t=(q=l.value).onSpanEnd)==null||t.call(q,p)}}if(y=CW){if(p!==y.activeSpan)throw Error("yf");var E;y.activeSpan=(E=y.activeSpan)==null?void 0:E.parent}}};
GbR=function(p,y,l){var q;if((q=CW)&&j$_(p)){var t=q.nextSpanId++,E=q.activeSpan;p={id:t,parent:E,name:p,attributes:y,traceId:E?E.traceId:t,sessionId:q.sessionId,startTime:performance.now(),status:0};if(q.activeSpan){var e;(e=q.activeSpan).children||(e.children=[]);q.activeSpan.children.push(p)}q=_.c(q.processors);for(e=q.next();!e.done;e=q.next())t=y=void 0,(t=(y=e.value).onSpanStart)==null||t.call(y,p);q=p}else q=void 0;p=CW;q=q&&p?p.activeSpan=q:void 0;if(!q)return l();try{var C=l(q);n0_(q);return C}catch(u){throw n0_(q,
2),u;}};
Poo=function(p,y){var l=Object.keys(p);p=new _.SM("[Command Handler] "+y,{filteredCommandNames:l,originalCommand:p});_.Bs(p)};
Agg=function(p,y){Poo(p,y+" was called but not set")};
Zna=function(p){return function(){return new p}};
ua=function(p){return function(){return _.WC().resolve(p)}};
M1l=function(p,y){var l=_.G(p,_.zX);if(l&&(l=y[l.signal]))return l();p=_.c(Object.keys(p));for(l=p.next();!l.done;l=p.next())if(l=l.value,y[l]&&(l=y[l]))return l()};
Rr=function(p,y,l,q){return{browseEndpoint:{browseId:p},commandMetadata:{webCommandMetadata:{url:y,rootVe:l,webPageType:q===void 0?"WEB_PAGE_TYPE_BROWSE":q}}}};
V1j=function(p,y,l){var q=y=y===void 0?0:y;l=l===void 0?0:l;var t=l-q;return _.WV(p,"PPSV",void 0,void 0,(t>600?0:t<60||l<=0||q/l>.9)?0:y)};
_.WV=function(p,y,l,q,t){var E="/watch?v="+p;p={videoId:p};y&&(p.playlistId=y,E+="&list="+y);q&&(E+="&pp="+q);t&&(p.startTimeSeconds=t,E+="&t="+t+"s");y={watchEndpoint:p,commandMetadata:{webCommandMetadata:{url:E,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};l&&(y.clickTrackingParams=l);q&&(_.G(y,_.Eb).playerParams=q);return y};
g0o=function(p){return{browseEndpoint:{browseId:"VL"+p},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+p,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
Q$6=function(p){if(p){var y;if(p){var l=(y=_.G(p.commandMetadata,_.ul))==null?void 0:y.url;y=!(!l||l==="/service_ajax")}else y=!1;if(y)return p;var q;if(p=(q=_.G(p,_.AO))==null?void 0:q.commands)for(q=_.c(p),p=q.next();!p.done;p=q.next())if(p=Q$6(p.value))return p}};
_.ar=function(p){return{runs:[{text:p}]}};
KG8=function(p,y){return p&&y?{runs:[{text:p,navigationEndpoint:y}]}:void 0};
mN=function(p){return p?_.ar(p):void 0};
_.Ut=function(p){return p?{simpleText:p}:void 0};
_.$y=function(p){var y=p.type;p=p.payload;y={type:y};p!==void 0&&(y.payload=p);return y};
wGt=function(p,y,l){for(var q=Object.assign({},p),t=_.c(Object.keys(y)),E=t.next();!E.done;E=t.next()){E=E.value;var e=p[E],C=y[E];if(C===void 0)delete q[E];else if(e===void 0)q[E]=C;else if(Array.isArray(C)&&Array.isArray(e))q[E]=l?[].concat(_.xq(e),_.xq(C)):C;else if(!Array.isArray(C)&&_.yQ(C)&&!Array.isArray(e)&&_.yQ(e))q[E]=wGt(e,C,l);else if(typeof C===typeof e)q[E]=C;else return y=new _.SM("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:E,originalValue:e,updateValue:C}),
_.Bs(y),p}return q};
S4g=function(p){if(!p.length)return"";try{if(inc)return inc.decode(p);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(p)}catch(e){}for(var y=0,l=[],q=p.length;y<q;){for(var t=0;t<1024&&y<q;){var E=p[y++];if(E<128)rgj[t++]=E;else{if(E<224)E=(E&31)<<6|p[y++]&63;else if(E<240)E=(E&15)<<12|(p[y++]&63)<<6|p[y++]&63;else{if(t+1===1024){--y;break}E=(E&7)<<18|(p[y++]&63)<<12|(p[y++]&63)<<6|p[y++]&63;E-=65536;rgj[t++]=55296|E>>10;E=56320|E&1023}rgj[t++]=E}}E=String.fromCharCode.apply(String,
rgj);t<1024&&(E=E.substring(0,t));l.push(E)}return l.join("")};
LGt=function(p,y){var l;if((l=FG_)==null?0:l.encodeInto)return y=FG_.encodeInto(p,y),y.read<p.length?p.length*4:y.written;for(var q=l=0;q<p.length;q++){var t=p.charCodeAt(q);t<128?y[l++]=t:(t<2048?y[l++]=t>>6|192:((t&64512)===55296&&q+1<p.length&&(p.charCodeAt(q+1)&64512)===56320?(t=65536+((t&1023)<<10)+(p.charCodeAt(++q)&1023),y[l++]=t>>18|240,y[l++]=t>>12&63|128):y[l++]=t>>12|224,y[l++]=t>>6&63|128),y[l++]=t&63|128)}return l};
kb8=function(p,y,l){if(y&&l&&l.buffer===y.exports.memory.buffer){var q=y.realloc(l.byteOffset,p);if(q)return new Uint8Array(y.exports.memory.buffer,q,p)}p=y?new Uint8Array(y.exports.memory.buffer,y.malloc(p),p):new Uint8Array(p);l&&p.set(l);return p};
_.ba=function(p){p=new NnR(new Dlj([_.hZ(decodeURIComponent(p))]));if(Hnm(p,2)){var y=j$(p);var l=p.pos;var q=p.arrayView;l=l===void 0?0:l;var t=y===void 0?-1:y;l=l===void 0?0:l;t=t===void 0?-1:t;if(q.totalLength&&t){t<0&&(t=q.totalLength-l);q.focus(l);if(!(l-q.arrayPos+t<=q.arrays[q.arrayIdx].length)){var E=q.arrayIdx,e=q.arrayPos;q.focus(l+t-1);e=new Uint8Array(q.arrayPos+q.arrays[q.arrayIdx].length-e);for(var C=0,u=E;u<=q.arrayIdx;u++)e.set(q.arrays[u],C),C+=q.arrays[u].length;q.arrays.splice(E,
q.arrayIdx-E+1,e);q.arrayIdx=0;q.arrayPos=0;q.focus(l)}E=q.arrays[q.arrayIdx];q=new DataView(E.buffer,E.byteOffset+l-q.arrayPos,t)}else q=new DataView(new ArrayBuffer(0));q=new Uint8Array(q.buffer,q.byteOffset,q.byteLength);p.pos+=y;y=q}else y=void 0;y=y?S4g(y):void 0;p=Hnm(p,4)?j$(p):void 0;q=Tna[p];if(typeof q==="undefined")throw p=new _.SM("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:p}),_.Bs(p),p;return{entityTypeFieldNumber:p,entityType:q,entityId:y}};
_.PV=function(p,y,l){l=l===void 0?0:l;var q=new xl5;if(FG_)p=FG_.encode(p);else{var t=new Uint8Array(Math.ceil(p.length*1.2)),E=LGt(p,t);t.length<E&&(t=new Uint8Array(E),E=LGt(p,t));t.length>E&&(t=t.subarray(0,E));p=t}p!==void 0&&(nW(q,18),t=p.length,nW(q,t),GU(q,t),q.buf.set(p,q.pos),q.pos+=t);p=Bn6[y];if(typeof p==="undefined")throw l=new _.SM("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:y}),_.Bs(l),l;p!==void 0&&(nW(q,32),nW(q,p));nW(q,40);nW(q,1);y=new Uint8Array(q.buf.buffer,
q.buf.byteOffset,q.pos);return encodeURIComponent(_.HR(y,l))};
frg=function(p){p=p.key||p.id;if(!p)throw Error("zf");return p};
XGj=function(p,y){p=p===void 0?{}:p;return v0t(p,y)};
dlt=function(p,y,l,q){if(q===void 0)return q=Object.assign({},p[y]||{}),l=(delete q[l],q),q={},Object.assign({},p,(q[y]=l,q));var t={},E={};return Object.assign({},p,(E[y]=Object.assign({},p[y],(t[l]=q,t)),E))};
On8=function(p,y,l,q,t){var E=p[y];if(E==null||!E[l])return p;q=wGt(E[l],q,t==="REPEATED_FIELDS_MERGE_OPTION_APPEND");t={};E={};return Object.assign({},p,(E[y]=Object.assign({},p[y],(t[l]=q,t)),E))};
_.Ae=function(p,y,l){return p[y]?p[y][l]||null:null};
zdj=function(){if(o0R)return o0R();var p={};o0R=CK("PersistentEntityStoreDb",{objectStores:(p.EntityStore={addedAtVersion:1},p.EntityAssociationStore={addedAtVersion:2},p),shared:!1,upgrade:function(y,l){l(1)&&o7(O1(y,"EntityStore",{keyPath:"key"}),"entityType","entityType");l(2)&&(y=O1(y,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),o7(y,"byParentEntityKey","parentEntityKey"),o7(y,"byChildEntityKey","childEntityKey"))},
version:3});return o0R()};
Y4g=function(p){return _.lM(zdj(),p)};
ZF=function(p){return window.Int32Array?new Int32Array(p):Array(p)};
pYt=function(p){return _.lM(Irl(),p)};
yT6=function(p){return new Ms("WRONG_DATA_TYPE",{encoderVersion:p})};
l9a=function(p){return p instanceof Error?new Ms("UNKNOWN_ENCODE_ERROR",{originalMessage:p.message}):new Ms("UNKNOWN_ENCODE_ERROR")};
qxo=function(p){return p instanceof Error?new Ms("UNKNOWN_DECODE_ERROR",{originalMessage:p.message}):new Ms("UNKNOWN_DECODE_ERROR")};
s5j=function(p,y){p=p instanceof Ms?p:y(p);_.Bs(p);throw p;};
tV5=function(p){p=(new TextEncoder).encode(p).subarray(0,16);var y=new Uint8Array(16);y.set(p);return y};
JT_=function(p){var y=EBg[p];if(y)return y;_.vs(new _.SM("Entity model not found.",{entityType:p}))};
_.Vj=function(){cT6||(cT6=eFj());return cT6};
eFj=function(){var p,y,l;return _.h(function(q){if(q.nextAddress==1)return _.Ve(q,2),q.yield(_.hk(),4);if(q.nextAddress!=2){p=q.yieldResult;if(!p||!_.rs()||typeof _.l_.BroadcastChannel==="undefined")return q.return();y=new hFu;return q.return(new gN(p,y))}l=_.i6(q);l instanceof Error&&_.Bs(l);return q.return()})};
_.Qj=function(p,y){var l;return _.h(function(q){if(q.nextAddress==1){l=p.mutations;if(!l||l.length<=0)return q.return();y&&y.dispatch(_.$y({type:"ENTITY_LOADED",payload:l}));return q.yield(Cco(l),2)}l.length=0;_.rR(q)})};
Cco=function(p){var y;return _.h(function(l){return l.nextAddress==1?l.yield(_.Vj(),2):(y=l.yieldResult)?l.yield(_.KW(y,"readwrite",function(q){for(var t={},E=_.c(p),e=E.next(),C={};!e.done;C={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},e=E.next())C.mutation$jscomp$4=e.value,C.mutation$jscomp$4.entityKey&&uRm(C.mutation$jscomp$4)&&(C.mutationEntityType$jscomp$3=(0,_.Ts.getAnyKey)(C.mutation$jscomp$4.payload),e=void 0,C.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(e=function(u){return function(){return _.RF5(q,
u.mutation$jscomp$4.payload[u.mutationEntityType$jscomp$3],u.mutationEntityType$jscomp$3)}}(C)),C.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(e=function(u){return function(){return W1R(q,u.mutation$jscomp$4.entityKey)}}(C)),C.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(e=function(u){return function(){return a9m(q,u.mutation$jscomp$4.entityKey,u.mutation$jscomp$4.payload[u.mutationEntityType$jscomp$3],u.mutationEntityType$jscomp$3)}}(C)),e&&(t[C.mutation$jscomp$4.entityKey]=
t[C.mutation$jscomp$4.entityKey]?t[C.mutation$jscomp$4.entityKey].then(e):e()));
return oK.all(Object.values(t))}),0):l.return()})};
uRm=function(p){var y;p=(y=p.options)==null?void 0:y.persistenceOption;return p==="ENTITY_PERSISTENCE_OPTION_PERSIST"||p==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
$vt=function(p,y){var l,q;_.h(function(t){if(t.nextAddress==1)return t.yield(_.Vj(),2);if(t.nextAddress!=3)return(l=t.yieldResult)?t.yield(_.KW(l,"readonly",function(E){var e={},C=Object.keys(y).map(function(u){var a=y[u]?[].concat(_.xq(y[u])):[];return mvu(E,u,a,e)});
return oK.all(C).then(function(){return e})}),3):t.return();
q=t.yieldResult;Object.keys(q).length>0&&p.dispatch(Uv6(q));_.rR(t)})};
mvu=function(p,y,l,q){return wN(p,y,l).then(function(t){q[y]=j5a(l,t)})};
j5a=function(p,y){if(y.length!==p.length)throw Error("Cf");return y.reduce(function(l,q,t){l[p[t]]=q;return l},{})};
GAL=function(p){var y=p.filter(function(t){var E;return(t==null?void 0:(E=t.transferEntity)==null?void 0:E.transferState)==="TRANSFER_STATE_COMPLETE"}).length,l=p.filter(function(t){var E;
return(t==null?void 0:(E=t.transferEntity)==null?void 0:E.transferState)==="TRANSFER_STATE_FAILED"}).length,q=p.filter(function(t){var E;
return(t==null?void 0:(E=t.transferEntity)==null?void 0:E.transferState)&&b58.includes(t.transferEntity.transferState)});
if(!(y||q!=null&&q.length))return 0;y=_.nBg(q)+y;p=p.length-l;return p===0?0:Math.round(y*100/p)/100};
_.nBg=function(p){var y=[];y=y.concat.apply(y,_.xq(p.filter(function(E){return E.streamEntity}).map(function(E){var e=Object.assign({},E.streamEntity),C,u=(C=E.transferEntity)==null?void 0:C.transferState;
e.streamsProgress=e.streamsProgress||[];e.streamsProgress=e.streamsProgress.map(function(a){var m=Object.assign({},a);m.numBytesDownloaded=u==="TRANSFER_STATE_COMPLETE"?a.numTotalBytes:a.numBytesDownloaded;return m});
return e}).map(function(E){return E.streamsProgress})));
var l=p=0;y=_.c(y);for(var q=y.next();!q.done;q=y.next()){var t=q.value;q=Number(t.numBytesDownloaded);t=Number(t.numTotalBytes);l+=isNaN(q)?0:q;p+=isNaN(t)?0:t}return p===0?0:Math.round(l*100/p)/100};
Pcm=function(p){if(!p||!p.expirationTimestamp||!p.action)return!1;var y=(0,_.uM)()/1E3;return Number(p.expirationTimestamp)>=y};
ia=function(p){return p&&p.expirationTimestamp&&p.action?Pcm(p)&&p.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.rN=function(p){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(p||"TRANSFER_STATE_UNKNOWN")};
ATt=function(p){var y=new xl5;if(p!==void 0){var l=Math.ceil(Math.log2(p.length*4+2)/7);l=l===void 0?2:l;nW(y,10);y.submessagePosStack.push(y.pos);y.submessagePosStack.push(l);y.pos+=l;GU(y,p.length*1.2);l=LGt(p,y.buf.subarray(y.pos));y.pos+l>y.buf.length&&(GU(y,l),l=LGt(p,y.buf.subarray(y.pos)));y.pos+=l;p=y.submessagePosStack.pop();l=y.submessagePosStack.pop();for(var q=y.pos-l-p;p--;){var t=p?128:0;y.view.setUint8(l++,q&127|t);q>>=7}}y=new Uint8Array(y.buf.buffer,y.buf.byteOffset,y.pos);return(new TextDecoder("utf-8")).decode(y)};
_.S$=function(p){var y=0;p=_.c(p);for(var l=p.next(),q={};!l.done;q={transferState$jscomp$3:void 0},l=p.next()){var t=l.value,E=void 0;l=(E=t.streamEntity)!=null?E:{};E=void 0;q.transferState$jscomp$3=(E=t.transferEntity)==null?void 0:E.transferState;E=t=void 0;((t=l)==null?0:(E=t.streamsProgress)==null?0:E.length)&&l.streamsProgress.forEach(function(e){return function(C){C=Number(e.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?C.numTotalBytes:C.numBytesDownloaded);isFinite(C)&&(y+=C)}}(q))}return y};
Z5g=function(p){return p.some(function(y){var l;if(!(y==null?0:(l=y.transferEntity)==null?0:l.transferState)){var q;return!(y==null?0:(q=y.policyEntity)==null?0:q.action)||y.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return b58.includes(y.transferEntity.transferState)})};
MVo=function(p,y){if(!y)return!1;if(_.n("of_pb_en_po_ks"))return!0;var l;p=(l=_.Ae(p,"offlineVideoPolicy",_.PV(y,"offlineVideoPolicy")))!=null?l:void 0;return!!p&&ia(p)};
_.gBm=function(p){var y=["TRANSFER_STATE_COMPLETE"];y=y===void 0?VVo:y;return p.filter(function(l){var q,t;return y.includes((t=(q=l.transferEntity)==null?void 0:q.transferState)!=null?t:"TRANSFER_STATE_UNKNOWN")})};
Q5m=function(p,y){if(y){var l,q=(l=_.Ae(p,"playbackData",_.PV(y,"playbackData")))!=null?l:null,t;l=(t=_.Ae(p,"transfer",_.PV(y,"transfer")))!=null?t:null;var E;t=(E=_.Ae(p,"offlineVideoStreams",_.PV(y,"offlineVideoStreams")))!=null?E:null;var e;p=(e=_.Ae(p,"offlineVideoPolicy",_.PV(y,"offlineVideoPolicy")))!=null?e:null;if(q||l||t||p)return{playbackDataEntity:q,transferEntity:l,streamEntity:t,policyEntity:p}}};
_.FT=function(p){var y=p.playbackData;if(!y)return[];var l=[];y=_.c(Object.keys(y));for(var q=y.next();!q.done;q=y.next()){var t=q.value;if(!K1j(p,_.ba(t).entityId)&&(q=Q5m(p,_.ba(t).entityId))){var E=void 0,e=void 0;t=(e=Number((E=_.Ae(p,"playbackData",t))==null?void 0:E.streamDownloadTimestampSeconds))!=null?e:(0,_.uM)();l.push({entity:q,streamDownloadTimestamp:t})}}return l.sort(function(C,u){var a=C.streamDownloadTimestamp,m=u.streamDownloadTimestamp;return m===a?C.entity.streamEntity&&!u.entity.streamEntity?
1:-1:m-a}).map(function(C){return C.entity})};
wYt=function(p){return _.gBm(_.FT(p))};
_.i5o=function(p){return _.FT(p).filter(function(y){var l;if(((l=y.policyEntity)==null?0:l.action)&&y.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var q;if((q=y.transferEntity)==null?0:q.transferState){var t;return b58.includes((t=y.transferEntity)==null?void 0:t.transferState)}return!0})};
K1j=function(p,y){var l;return((l=_.Ae(p,"downloadStatusEntity",_.PV(y,"downloadStatusEntity")))==null?void 0:l.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
rTu=function(p){var y;if(p==null?0:(y=p.playbackDataEntity)==null?0:y.key)return _.ba(p.playbackDataEntity.key).entityId;var l;if(p==null?0:(l=p.transferEntity)==null?0:l.key)return _.ba(p.transferEntity.key).entityId;var q;if(p==null?0:(q=p.streamEntity)==null?0:q.key)return _.ba(p.streamEntity.key).entityId;var t;if(p==null?0:(t=p.policyEntity)==null?0:t.key)return _.ba(p.policyEntity.key).entityId};
F1c=function(p){var y=new Set,l;p=(l=p.mainDownloadsListEntity)==null?void 0:l[Sxa];var q;if(!(p==null?0:(q=p.downloads)==null?0:q.length))return y;var t;p==null||(t=p.downloads)==null||t.forEach(function(E){(E==null?0:E.videoItem)&&y.add(E.videoItem)});
return y};
LW=function(p,y){if(y){var l=_.Ae(p,"mainVideoEntity",_.PV(y,"mainVideoEntity")),q=_.Ae(p,"downloadStatusEntity",_.PV(y,"downloadStatusEntity")),t=_.Ae(p,"ytMainChannelEntity",_.PV(y,"ytMainChannelEntity")),E={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};p=Q5m(p,y);q=(q==null?void 0:q.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.n("woffle_render_failed_download_state_ks")&&(q==null?void 0:q.downloadState)==="DOWNLOAD_STATE_FAILED";!p&&q&&(p=E);if(p&&l&&
t)return Object.assign({},{videoEntity:l,channelEntity:t},p)}};
kAm=function(p,y){return L1l(p,y)==="TRANSFER_STATE_COMPLETE"&&MVo(p,y)};
Ne6=function(p,y){if(!y)return!1;var l;p=(l=_.Ae(p,"playbackData",_.PV(y,"playbackData")))!=null?l:void 0;return!!p&&!!p.playerResponseJson};
L1l=function(p,y){if(!y)return"TRANSFER_STATE_UNKNOWN";var l=_.Ae(p,"transfer",_.PV(y,"transfer"));if(l){var q;return(q=l.transferState)!=null?q:"TRANSFER_STATE_UNKNOWN"}l=_.Ae(p,"offlineOrchestrationActionWrapperEntity",_.PV(y,"offlineOrchestrationActionWrapperEntity"));p=_.Ae(p,"mainVideoEntity",_.PV(y,"mainVideoEntity"));return l||p?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
DvR=function(p,y){if(!y)return"TRANSFER_STATE_UNKNOWN";if(p=_.Ae(p,"transfer",_.PV(y,"transfer"))){var l;return(l=p.transferState)!=null?l:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
H5_=function(p,y){return y&&(p=_.Ae(p,"videoPlaybackPositionEntity",_.PV(y,"videoPlaybackPositionEntity")),p==null?0:p.lastPlaybackPositionSeconds)?Number(p.lastPlaybackPositionSeconds):0};
xvj=function(p,y){return Tel(p).some(function(l){var q;return(l==null?void 0:(q=l.mainPlaylistEntity)==null?void 0:q.playlistId)===y})};
f9R=function(p,y,l){var q=BeL(p,y);if(!q.length)return[];y=[];q=_.c(q);for(var t=q.next();!t.done;t=q.next()){t=t.value;var E=LW(p,t);l&&L1l(p,t)!=="TRANSFER_STATE_COMPLETE"||E&&y.push(E)}return y};
BeL=function(p,y){if(!y)return[];var l=_.PV(y,"mainPlaylistEntity"),q;y=(q=p.mainPlaylistEntity)==null?void 0:q[l];q=[];if(y==null||!y.videos)return q;y=_.c(y.videos);for(l=y.next();!l.done;l=y.next()){l=l.value;var t=void 0,E=void 0,e=void 0,C=(t=p)==null?void 0:(E=t.mainPlaylistVideoEntity)==null?void 0:(e=E[l])==null?void 0:e.video;C&&(l=_.ba(C).entityId)&&q.push(l)}return q};
vB6=function(p,y){if(y){var l=_.Ae(p,"mainPlaylistEntity",_.PV(y,"mainPlaylistEntity")),q=_.Ae(p,"mainPlaylistDownloadStateEntity",_.PV(y,"mainPlaylistDownloadStateEntity"));p=_.Ae(p,"ytMainChannelEntity",_.PV(y,"ytMainChannelEntity"));if(q&&l)return Object.assign({},{mainPlaylistEntity:l,mainPlaylistDownloadStateEntity:q},!!p&&{channelEntity:p})}};
Tel=function(p){return XYo(p).sort(function(y,l){return l.addedTimestampMillis-y.addedTimestampMillis}).map(function(y){return y.downloadedPlaylistEntities})};
XYo=function(p){var y=p.mainPlaylistDownloadStateEntity,l=[];if(!y)return l;for(var q=_.c(Object.keys(y)),t=q.next();!t.done;t=q.next()){var E=t.value;t=vB6(p,_.ba(E).entityId);var e=void 0;E=Number((e=y[E])==null?void 0:e.addedTimestampMillis);e=isNaN(E)?(0,_.uM)():E;t!==void 0&&l.push({downloadedPlaylistEntities:t,addedTimestampMillis:e})}return l};
dva=function(p){var y,l=(y=p.mainPlaylistVideoEntity)!=null?y:{};return new Set(Tel(p).reduce(function(q,t){q=q===void 0?[]:q;var E,e;t==null||(E=t.mainPlaylistEntity)==null||(e=E.videos)==null||e.forEach(function(C){var u;(C=(u=l[C])==null?void 0:u.video)&&q.push(C)});
return q},[]))};
O58=function(p){return"downloadedMusicPlaylistEntities"in p};
oBm=function(p){return"mainPlaylistEntity"in p&&"mainPlaylistDownloadStateEntity"in p};
zFR=function(p){return"videoEntity"in p&&"channelEntity"in p};
Yxm=function(p){var y=p.musicPlaylistDownloadMetadataEntity,l=[];if(!y)return l;for(var q=_.c(Object.keys(y)),t=q.next();!t.done;t=q.next()){t=t.value;a:{var E=p,e=_.ba(t).entityId;if(e){var C=_.Ae(E,"musicPlaylist",_.PV(e,"musicPlaylist"));E=_.Ae(E,"musicPlaylistDownloadMetadataEntity",_.PV(e,"musicPlaylistDownloadMetadataEntity"));if(C&&E){C={musicPlaylistEntity:C,musicPlaylistDownloadStateEntity:E};break a}}C=void 0}E=void 0;t=Number((E=y[t])==null?void 0:E.addedTimestampMillis);t=isNaN(t)?(0,_.uM)():
t;C!==void 0&&l.push({downloadedMusicPlaylistEntities:C,addedTimestampMillis:t})}return l};
I96=function(p){var y=new Set;p=_.c(p);for(var l=p.next();!l.done;l=p.next())if(l=l.value,"musicPlaylistEntity"in l&&"musicPlaylistDownloadStateEntity"in l){l=_.c(l.musicPlaylistEntity.tracks);for(var q=l.next();!q.done;q=l.next())y.add(q.value)}return y};
p4R=function(p,y){if(y){var l=_.Ae(p,"musicTrack",_.PV(y,"musicTrack")),q=_.Ae(p,"musicArtist",_.PV(y,"musicArtist"))||{};if((p=Q5m(p,y))&&l&&q)return Object.assign({},{musicTrackEntity:l,musicArtistEntity:q},p)}};
yi8=function(p){var y=p.musicTrackDownloadMetadataEntity,l=[];if(!y)return[];y=_.c(Object.keys(y));for(var q=y.next();!q.done;q=y.next()){var t=q.value;q=p4R(p,_.ba(t).entityId);var E=void 0;t=Number((E=_.Ae(p,"musicTrackDownloadMetadataEntity",t))==null?void 0:E.addedTimestampMillis);E=isNaN(t)?(0,_.uM)():t;q!==void 0&&l.push({downloadedMusicEntities:q,addedTimestampMillis:E})}return l};
sB_=function(p,y){if(!y)return[];if(Object.values(lUm).includes(y))return q_6(p,y);y=_.PV(y,"musicPlaylist");var l;p=(l=p.musicPlaylist)==null?void 0:l[y];l=[];if(p==null||!p.tracks)return l;p=_.c(p.tracks);for(y=p.next();!y.done;y=p.next())(y=_.ba(y.value).entityId)&&l.push(y);return l};
q_6=function(p,y){var l=new Set,q=Yxm(p).map(function(E){return E.downloadedMusicPlaylistEntities});
q=I96(q);q=_.c(q);for(var t=q.next();!t.done;t=q.next())(t=_.ba(t.value).entityId)&&l.add(t);return ty6(p).downloadedMusicEntities.filter(function(E){var e;if((e=E.musicTrackEntity)!=null&&e.videoId){E=E.musicTrackEntity;if(e=y==="PPOM"?!0:!l.has(E.videoId))b:switch(E=E.musicVideoType,y){case "PPSE":e=E==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:e=E!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}E=e}else E=!1;return E}).map(function(E){var e;
return(e=E.musicTrackEntity)==null?void 0:e.videoId})};
ty6=function(p){var y=yi8(p).sort(function(l,q){return q.addedTimestampMillis-l.addedTimestampMillis}).map(function(l){return"downloadedMusicEntities"in l?l.downloadedMusicEntities:O58(l)?l.downloadedMusicPlaylistEntities:{}});
p=Yxm(p).sort(function(l,q){return q.addedTimestampMillis-l.addedTimestampMillis}).map(function(l){return"downloadedMusicEntities"in l?l.downloadedMusicEntities:O58(l)?l.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:y,downloadedMusicPlaylistEntities:p}};
Jit=function(p,y){y=_.OY("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?sB_(p,y):BeL(p,y);if(!y.length)return"TRANSFER_STATE_UNKNOWN";y=y.map(function(l){return DvR(p,l)});
return E7g(y)};
E7g=function(p){var y=new Set(p);if(y.has("TRANSFER_STATE_FAILED")&&y.size===1)return"TRANSFER_STATE_FAILED";y.delete("TRANSFER_STATE_FAILED");if(y.has("TRANSFER_STATE_UNKNOWN")&&y.size===1)return"TRANSFER_STATE_PRE_TRANSFER";y.delete("TRANSFER_STATE_UNKNOWN");if(y.has("TRANSFER_STATE_PRE_TRANSFER")&&y.size===1||y.size===0)return"TRANSFER_STATE_PRE_TRANSFER";p=y.has("TRANSFER_STATE_TRANSFERRING");y=y.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return p||y?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
ky=function(p){var y=p.mainVideoDownloadStateEntity,l=[];if(!y)return[];y=_.c(Object.keys(y));for(var q=y.next();!q.done;q=y.next()){var t=q.value;if(!K1j(p,_.ba(t).entityId)){q=LW(p,_.ba(t).entityId);var E=void 0,e=void 0;t=(e=Number((E=_.Ae(p,"mainVideoDownloadStateEntity",t))==null?void 0:E.addedTimestampMillis))!=null?e:(0,_.uM)();q!==void 0&&l.push({downloadedVideoEntities:q,addedTimestampMillis:t})}}return l};
cij=function(p){return ky(p).sort(function(y,l){return l.addedTimestampMillis-y.addedTimestampMillis}).map(function(y){return y.downloadedVideoEntities})};
_.h2L=function(p){var y=dva(p),l=_.Ns(p),q=F1c(p),t=ky(p).filter(function(e){var C,u;if((e==null?void 0:(C=e.downloadedVideoEntities)==null?void 0:(u=C.transferEntity)==null?void 0:u.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var a,m;e=e==null?void 0:(a=e.downloadedVideoEntities)==null?void 0:(m=a.videoEntity)==null?void 0:m.key;return _.n("kevlar_use_library_entity")?e&&(q.has(e)||l[e]):e&&!y.has(e)}),E=XYo(p).filter(function(e){return Jit(p,e.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.xq(t),_.xq(E)).sort(function(e,C){return C.addedTimestampMillis-e.addedTimestampMillis}).map(function(e){return e2_(e)})};
CVt=function(p,y){if(y&&MVo(p,y)){var l,q,t=(q=(l=_.Ae(p,"playbackData",_.PV(y,"playbackData")))!=null?l:void 0)==null?void 0:q.playerResponseJson;if(t){try{var E=JSON.parse(t);var e=_.Ae(p,"transfer",_.PV(y,"transfer")),C=H5_(p,y);C&&(E=Object.assign({},E,{playerConfig:Object.assign({},E.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+C*1E3}}})}));E.cotn=e==null?void 0:e.cotn}catch(u){}return E}}};
_.R2c=function(p){var y,l,q;p=(q=(l=((y=p.downloadsPageViewConfigurationEntity)!=null?y:{})[_.DF])==null?void 0:l.smartDownloadsOptInBannerVisibility)!=null?q:{};var t;return(t=_.G(p,uxg))!=null?t:{}};
_.Ns=function(p){var y,l,q;p=(q=(l=((y=p.mainDownloadsListEntity)!=null?y:{})[_.WdR])==null?void 0:l.downloads)!=null?q:[];y={};l=_.c(p);for(q=l.next();!q.done;q=l.next())p=void 0,y[(p=q.value.videoItem)!=null?p:""]=!0;return y};
aU5=function(p){var y=_.Ns(p);if(Object.keys(y).length===0)return!1;var l=p.mainVideoEntity;if(!l)return!0;l=_.c(Object.keys(l));for(var q=l.next();!q.done;q=l.next()){q=q.value;var t=_.ba(q).entityId;if(y[q]&&!K1j(p,t))return!1}return!0};
_.HV=function(p){var y=_.Ns(p);return ky(p).sort(function(l,q){return l.addedTimestampMillis-q.addedTimestampMillis}).map(function(l){return l.downloadedVideoEntities}).filter(function(l){var q;
return(l=l==null?void 0:(q=l.videoEntity)==null?void 0:q.key)&&!!y[l]})};
_.UbL=function(p){var y,l,q;p=(q=(l=((y=p.downloadsPageViewConfigurationEntity)!=null?y:{})[_.DF])==null?void 0:l.downloadsUpsellBannerVisibility)!=null?q:{};var t;return(t=_.G(p,mb5))!=null?t:{}};
e2_=function(p){return"downloadedVideoEntities"in p?p.downloadedVideoEntities:"downloadedPlaylistEntities"in p?p.downloadedPlaylistEntities:{}};
$bt=function(p){var y=_.Ns(p),l=dva(p),q=ky(p).filter(function(t){var E,e;return(t=t==null?void 0:(E=t.downloadedVideoEntities)==null?void 0:(e=E.videoEntity)==null?void 0:e.key)&&!y[t]&&!l.has(t)});
p=XYo(p);return[].concat(_.xq(q),_.xq(p)).sort(function(t,E){return E.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return e2_(t)})};
_.TU=function(p){if(!_.n("kevlar_use_library_entity"))return $bt(p);var y=ky(p).filter(function(q){var t,E;if(t=q=q==null?void 0:(t=q.downloadedVideoEntities)==null?void 0:(E=t.videoEntity)==null?void 0:E.key){var e,C,u;t=((C=(e=p.mainDownloadsListEntity)==null?void 0:e[Sxa])==null?0:(u=C.downloads)==null?0:u.length)?F1c(p).has(q):!1}return t}),l=XYo(p);
return[].concat(_.xq(y),_.xq(l)).sort(function(q,t){return t.addedTimestampMillis-q.addedTimestampMillis}).map(function(q){return e2_(q)})};
jBR=function(p){var y=_.Ns(p),l=dva(p);return cij(p).filter(function(q){var t;return(q=q==null?void 0:(t=q.videoEntity)==null?void 0:t.key)&&!y[q]&&!l.has(q)})};
bwg=function(p){if(!_.n("kevlar_use_library_entity"))return jBR(p);var y=_.Ns(p),l=F1c(p);return cij(p).filter(function(q){var t;return(q=q==null?void 0:(t=q.videoEntity)==null?void 0:t.key)&&!y[q]&&l.has(q)})};
n7L=function(p,y){y=_.PV(y,"settingEntity");var l,q,t;return!!((t=(q=((l=p.settingEntity)!=null?l:{})[y])==null?void 0:q.settingOptionValue)!=null?t:{}).boolValue};
_.xy=function(p){var y=_.HV(p);if(Z5g(y))return 0;var l=[];y=_.c(y);for(var q=y.next();!q.done;q=y.next()){q=q.value;var t=void 0,E=void 0;if((t=q)==null?0:(E=t.videoEntity)==null?0:E.key)t=_.ba(q.videoEntity.key).entityId,q=p,t=_.PV(t,"mainVideoDownloadStateEntity"),q=_.Ae(q,"mainVideoDownloadStateEntity",t),(q=Number(q==null?void 0:q.addedTimestampMillis))&&l.push(q)}return Math.max.apply(Math,_.xq(l))};
_.BV=function(p){return p.ui.richGridMiniMode};
_.fW=function(p){return p.ui.richGridItemsPerRow};
_.G_m=function(p){return p.ui.richGridSlimItemsPerRow};
_.PVc=function(p){return p.ui.guideIsExpanded};
_.vV=function(p){return p.ui.miniplayerIsActive};
_.Aim=function(p){return p.ui.singleOptionSurveyIsActive};
_.Zwl=function(p){var y;return((y=p.ui)==null?void 0:y.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.XT=function(p){return _.Zwl(p)==="WEB_PAGE_TYPE_WATCH"};
_.My_=function(p){return _.Zwl(p)==="WEB_PAGE_TYPE_SHORTS"};
_.Vyj=function(p){return p.ui.inlinePreviewIsActive};
_.g7_=function(p){return p.ui.inlinePreviewIsEnabled};
_.QBm=function(p){return p.ui.miniplayerPlaybackState};
_.dN=function(p){return p.ui.isOnline};
_.Kd6=function(p){return p.ui.frostedGlassMode};
_.Ot=function(p,y){return L1l(p.entities,y)};
_.or=function(p,y){return Jit(p.entities,y)};
w4m=function(p,y){var l;if(y){var q;p=(q=_.Ae(p.entities,"offlineVideoPolicy",_.PV(y,"offlineVideoPolicy")))==null?void 0:q.action}else p=void 0;return(l=p)!=null?l:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
iwL=function(p,y){var l;y?(p=_.Ae(p.entities,"offlineVideoPolicy",_.PV(y,"offlineVideoPolicy")),p=Number(p==null?void 0:p.expirationTimestamp)):p=void 0;return(l=p)!=null?l:0};
_.ril=function(p){return _.FT(p.entities).length};
S_t=function(p,y){return LW(p.entities,y)};
Fdt=function(p,y){return vB6(p.entities,y)};
zU=function(p,y){return(p=LW(p.entities,y))?_.nBg([p]):0};
_.Ld_=function(p,y){var l=_.OY("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(l){var q=p.entities;var t=sB_(q,y);if(t.length){var E=[];t=_.c(t);for(var e=t.next();!e.done;e=t.next())(e=p4R(q,e.value))&&E.push(e);q=E}else q=[]}else q=f9R(p.entities,y);var C;if(l){var u=p.entities;y?(y=_.PV(y,"musicPlaylist"),u=(C=u.musicPlaylist)==null?void 0:C[y],C=u!=null&&u.tracks?u.tracks.length:0):C=0}else C=p.entities,y?(y=_.PV(y,"mainPlaylistEntity"),C=(u=C.mainPlaylistEntity)==null?void 0:u[y],C=C!=null&&C.videos?
C.videos.length:0):C=0;return q.length!==C?0:q?GAL(q):0};
_.k_R=function(p){return p.download.isLeaderTab};
_.Nzm=function(p,y,l){if(!y&&l){var q=p.entities;if(l){var t=ATt(l),E,e;y=(e=(E=_.Ae(q,"offlineabilityEntity",_.PV(t,"offlineabilityEntity")))==null?void 0:E.addToOfflineButtonState)!=null?e:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else y="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else E=p.entities,y?(e=ATt(y),y=(t=(q=_.Ae(E,"offlineabilityEntity",_.PV(e,"offlineabilityEntity")))==null?void 0:q.addToOfflineButtonState)!=null?t:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):y="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return y};
Dbu=function(p,y){p=p.entities;if(y){y=ATt(y);var l,q;y=(q=(l=_.Ae(p,"offlineabilityEntity",_.PV(y,"offlineabilityEntity")))==null?void 0:l.addToOfflineButtonState)!=null?q:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else y="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return y};
_.Hwl=function(p){var y=p.entities;p=_.dN(p);var l=n7L(y,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.n("kevlar_modern_downloads_page")&&l)var q=!1;else{var t,E;y=(E=(t=((q=y.downloadsPageViewConfigurationEntity)!=null?q:{})[_.DF])==null?void 0:t.smartDownloadsOptInBannerVisibility)!=null?E:{};q=p?!!y.visibleWithConnection:!!y.visibleWithoutConnection}return q};
_.Tzm=function(p){return n7L(p.entities,"SMART_DOWNLOADS_ENABLED")};
_.xbu=function(p){return aU5(p.entities)};
BzR=function(p){return _.HV(p.entities).every(function(y){var l;return(y==null?void 0:(l=y.transferEntity)==null?void 0:l.transferState)&&!b58.includes(y.transferEntity.transferState)})};
_.fUl=function(p){var y,l,q,t=(q=(l=((y=p.entities.downloadsPageViewConfigurationEntity)!=null?y:{})[_.DF])==null?void 0:l.downloadsUpsellBannerVisibility)!=null?q:{};return _.dN(p)?!!t.visibleWithConnection:!!t.visibleWithoutConnection};
_.v7j=function(p,y){return K1j(p.entities,y)};
X4t=function(p,y){if(y){var l,q;p=(q=(l=_.Ae(p.entities,"downloadStatusEntity",_.PV(y,"downloadStatusEntity")))==null?void 0:l.downloadState)!=null?q:"DOWNLOAD_STATE_UNKNOWN"}else p="DOWNLOAD_STATE_UNKNOWN";return p};
Yy=function(p,y){return H5_(p.entities,y)};
z25=function(p){p=_.dbL(p);var y=p.hours===void 0?0:p.hours,l=p.minutes===void 0?0:p.minutes,q=p.seconds===void 0?0:p.seconds,t=y>0;p=[];t&&(y=_.Owm(y),p.push(y));y=t;y=y===void 0?!1:y;l=(["af","be","lt"].includes(_.Ir)||y)&&l<10?o7o().format(l):(new Intl.NumberFormat("en-u-nu-latn")).format(l);p.push(l);l=o7o().format(q);p.push(l);l=":";"da fi id si sr sr-Latn".split(" ").includes(_.Ir)&&(l=".");return p.join(l)};
_.dbL=function(p){var y=p.hours||0,l=p.minutes||0,q=p.seconds||0;y=q+l*60+y*3600+(p.days||0)*86400+(p.weeks||0)*604800+(p.months||0)*2629800+(p.years||0)*31557600;if(y<=0)return{hours:0,minutes:0,seconds:0};p=y;y=Math.floor(p/3600);p%=3600;l=Math.floor(p/60);q=Math.floor(p%60);return{hours:y,minutes:l,seconds:q}};
_.Owm=function(p){p=(new Intl.NumberFormat("en-u-nu-latn")).format(p);var y=["fr"],l="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(_.Ir)?p.replace(",","\u00a0"):y.includes(_.Ir)?p.replace(",","\u202f"):l.includes(_.Ir)?p.replace(",","."):p};
o7o=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
Y_m=function(p){try{return(new _.p4(5)).format(p)}catch(y){}};
yq=function(p){return{thumbnailOverlayDownloadingRenderer:{state:p}}};
IUc=function(p){if(p=Y_m(p))return{thumbnailOverlaySidePanelRenderer:{text:_.ar(p),icon:{iconType:"PLAYLISTS"}}}};
pFR=function(){var p=_.g$("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.ar(p),icon:{iconType:"PLAY_ALL"}}}};
ySo=function(p){p=_.lS(p,2);return _.Ir!=="ru"&&_.Ir!=="es_419"&&_.Ir!=="es-419"&&_.Ir!=="es"&&_.Ir!=="es_US"&&_.Ir!=="es-US"&&_.Ir!=="fr"&&_.Ir!=="pl"&&_.Ir!=="it"&&_.Ir!=="nl"&&_.Ir!=="uk"&&_.Ir!=="fr_CA"&&_.Ir!=="fr-CA"||p===""?p:p[0].toLocaleUpperCase()+p.substring(1)};
qXL=function(p){return function(y){var l=p(),q=_.lS(y,l.dateFormat);y=_.lS(y,l.timeFormat);var t=l16.DATETIMEFORMATS[l.joinerStyle];t=t.replace(/'(?!')/g,"");t=t.replace("{0}",y);t=t.replace("{1}",q);return l.capitalize(t)}};
sug=function(p){return p?typeof p.seconds==="string"&&(p.nanos===void 0||typeof p.nanos==="number"):!1};
t45=function(p){return new Date(Number(p.seconds)*1E3+(p.nanos||0)*1E-6)};
_.lS=function(p,y){if(typeof p.getTime==="function")p={date:p};else if(sug(p))p={date:t45(p)};else if(typeof sug(p.timestamp)&&typeof p.i18nInternalSecondsEastOfUtc==="number")p={date:t45(p.timestamp),timeZone:qE(-p.i18nInternalSecondsEastOfUtc/60)};else throw Error("Df`"+JSON.stringify(p));var l=p;p=l.date;l=l.timeZone;y=Ea8(y).format(p,l);_.Ir==="zh-TW"&&(p=l?Number(Ea8("H").format(p,l)):p.getHours(),y=p<5?y.replace("\u4e0a\u5348","\u51cc\u6668"):p<8?y.replace("\u4e0a\u5348","\u65e9\u4e0a"):p<12?
y.replace("\u4e0a\u5348","\u4e0a\u5348"):p<13?y.replace("\u4e0b\u5348","\u4e2d\u5348"):p<19?y.replace("\u4e0b\u5348","\u4e0b\u5348"):y.replace("\u4e0b\u5348","\u665a\u4e0a"));return y};
Ea8=function(p){if(JSm.has(p))return JSm.get(p);var y=cS6(p);y=eOm(y);hO8!==!0&&(hO8=!0);C2t=!0;C2t=!1;y=new sK(y,l16);JSm.set(p,y);return y};
cS6=function(p){return(new sK(p,l16)).patternParts_.map(function(y){return y.type===0?"'"+y.text+"'":y.text}).join("")};
eOm=function(p){return _.Ir==="en"||_.Ir==="es_US"||_.Ir==="es-US"?p:p.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(y,l,q){return"H".repeat(l.length)+q})};
juL=function(p,y){ut6||(_.tB=_.ROt,ut6=new WZ5);var l=ut6;a:if(p=a1j(p),y=a1j(y||new Date),p>y)l=p.getTime()-y.getTime()>6048E5?_.lS(p,1):mBl(p);else{for(var q=0;UBl(p,12*(q+1))<y;)++q;if(q>0)l=l.format(-q,0);else{for(q=0;UBl(p,q+1)<y;)++q;if(q>0)l=l.format(-q,2);else{p=y.getTime()-p.getTime();y=_.c($BR);for(q=y.next();!q.done;q=y.next()){q=q.value;var t=q.unit,E=Math.floor(p/q.unitDuration);if(E>=(q.threshold===void 0?1:q.threshold)){l=l.format(-E,t);break a}}l=l.format(-0,7)}}}return l};
a1j=function(p){if(typeof p.getTime==="function")return p;if(sug(p))return t45(p);throw Error("Ef`"+JSON.stringify(p));};
UBl=function(p,y){for(var l=0,q;;++l)if(q=new Date(p.getFullYear(),p.getMonth()+y,p.getDate()-l,p.getHours(),p.getMinutes(),p.getSeconds()),q.getMonth()===(p.getMonth()+y)%12)return q};
_.EK=function(p){return{runs:[{text:p}]}};
_.JB=function(p){if(p&&p.simpleText)return p.simpleText;var y="";if(p&&p.runs)for(var l=0;l<p.runs.length;l++)p.runs[l].text&&(y+=p.runs[l].text);return y};
nau=function(p,y,l,q){return p.videoEntity&&!p.policyEntity&&l!=="DOWNLOAD_STATE_FAILED"?[yq("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:ia(p.policyEntity)&&y!=="TRANSFER_STATE_FAILED"&&y!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?y==="TRANSFER_STATE_PAUSED_BY_USER"?[yq("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.rN(y)?[yq("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:p.videoEntity.lengthSeconds?bIj(p.videoEntity.lengthSeconds,q):[]:
[yq("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
bIj=function(p,y){var l=[{thumbnailOverlayTimeStatusRenderer:{text:_.ar(z25({seconds:p})),style:"DEFAULT"}}];y&&(p=y<=0||p<=0?0:y>=p?100:Math.ceil(y*100/p),p>0&&l.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:p}}));return l};
G7j=function(p,y,l,q,t){if(y==="TRANSFER_STATE_UNKNOWN"||!p)return{};if(_.rN(y)||y==="TRANSFER_STATE_PRE_TRANSFER")var E=[yq("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var e,C;if(y==="TRANSFER_STATE_COMPLETE"&&((e=p.mainPlaylistEntity)==null?0:(C=e.videos)==null?0:C.length)){if(_.n("web_modern_collections_v2")){var u;var a=(E=p.mainPlaylistEntity)==null?void 0:(u=E.videos)==null?void 0:u.length;E=(E=Y_m(a))?{thumbnailOverlayBottomPanelRenderer:{text:_.ar(E),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var m;E=IUc((a=p.mainPlaylistEntity)==null?void 0:(m=a.videos)==null?void 0:m.length)}var U;E=[pFR(),Object.assign({},(U=E)!=null?U:{})]}else E=[]}U=E;a:if(y==="TRANSFER_STATE_PRE_TRANSFER")l=mN(_.g$("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(y==="TRANSFER_STATE_TRANSFER_IN_QUEUE")l=mN(_.g$("WAITING_TO_DOWNLOAD"));else if(_.rN(y))l=Math.floor(l*100).toString(),l=mN(_.g$("DOWNLOADING_PERCENT",{percent:l},"Downloading... "+l+"%"));else{if(q&&(_.n("playlist_is_offline_selector_killswitch")&&
(t=_.WC().resolve(_.lG).isNetworkAvailable()),t)){l=KG8(_.g$("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),g0o(q));break a}l=void 0}y=y==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.g$("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},U.length?{thumbnailOverlays:U}:{},l?{viewPlaylistText:l}:{viewPlaylistText:_.EK("")},y.length?{badges:y}:{})};
P28=function(p,y,l,q,t,E){if(y==="TRANSFER_STATE_UNKNOWN"||!p)return{};if(q==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var e=nau(p,y,q);if(p.videoEntity&&!p.policyEntity&&q!=="DOWNLOAD_STATE_FAILED"){var C=_.g$("WAITING_TO_DOWNLOAD");if(C)return{shortViewCountText:_.EK(C),publishedTimeText:void 0,thumbnailOverlays:e}}if(!ia(p.policyEntity)){E=p.policyEntity&&!Pcm(p.policyEntity)?_.g$("DOWNLOAD_EXPIRED",{},"Download expired"):
_.g$("TRANSFER_FAILED",{},"Download failed");var u;if((u=p.policyEntity)==null?0:u.shortMessageForDisabledAction)E=p.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:mN(E),publishedTimeText:void 0,thumbnailOverlays:e}}if(y==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.EK(_.g$("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:e};if(y==="TRANSFER_STATE_FAILED"||y==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.EK(_.g$("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:e};if(y==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(u=_.g$("WAITING_TO_DOWNLOAD"),q==="DOWNLOAD_STATE_PAUSED"&&(u=_.g$("DOWNLOAD_PAUSED",{},"Download paused")),u))return{shortViewCountText:_.EK(u),publishedTimeText:void 0,thumbnailOverlays:e};if(_.rN(y))return p=Math.floor(l*100).toString(),{shortViewCountText:_.EK(_.g$("DOWNLOADING_PERCENT",{percent:p},"Downloading... "+p+"%")),publishedTimeText:void 0,thumbnailOverlays:e};y=void 0;p.videoEntity.publishedTimestampMillis&&
(y=new Date,t&&(y=new Date(t)),y=mN(juL(new Date(Number(p.videoEntity.publishedTimestampMillis)),y)));t=[];_.n("kevlar_woffle_badge_killswitch")||(t=[{metadataBadgeRenderer:{label:_.g$("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var a;p=mN((a=p.videoEntity.localizedStrings)==null?void 0:a.viewCount);return Object.assign({},E?{shortViewCountText:void 0}:{shortViewCountText:p},E?{}:{publishedTimeText:y},{badges:t,thumbnailOverlays:e})};
ZIt=function(p,y){p=p===void 0?AS_:p;switch(y.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:y.payload.playlistId,inviteLinkURL:y.payload.inviteLinkUrl};default:return p}};
V4a=function(p,y){p=p===void 0?M4L:p;switch(y.type){case "SET_CURRENT_FORM_ID":return y=y.payload.formId,p.currentFormId===y?p:{currentFormId:y,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var l=y.payload;y=l.groupId;l=l.command;if(p.currentFormId){var q=Object.assign({},p.commandsMap);q[y]=l;p=Object.assign({},p,{commandsMap:q})}return p;case "RESET_COMMAND_MAP":return Object.assign({},p,{commandsMap:{}});default:return p}};
Quu=function(p,y){p=p===void 0?ga6:p;switch(y.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},p,{guideIsExpanded:y.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},p,{scrollAtTop:y.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},p,{guideIsVisibleButNotPersistent:y.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},p,{miniplayerIsActive:y.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},p,{singleOptionSurveyIsActive:y.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},p,{slimlineSurveyRatingSelectedIndex:y.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},p,{richGridMiniMode:y.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},p,{richGridItemsPerRow:y.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},p,{richGridSlimItemsPerRow:y.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},p,{richGridContainerWidth:y.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},p,{richGridStyle:y.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},p,{currentPageType:y.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},p,{inlinePreviewIsActive:y.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},p,{inlinePreviewIsEnabled:y.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},p,{darkModeIsEnabled:y.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
p,{miniplayerPlaybackState:y.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},p,{tabGesturesIsActive:y.payload});case "SET_ONLINE_STATUS":return Object.assign({},p,{isOnline:y.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},p,{chipBarIsSticky:y.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},p,{frostedGlassMode:y.payload});default:return p}};
wFt=function(p,y){p=p===void 0?KZc:p;switch(y.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},p,{transcription:y.payload});case "SET_OVERLAY_STATE":return Object.assign({},p,{overlay:y.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return p}};
TB_=function(){return Ah(Object.assign({},{continuation:iI8,entities:XGj,download:rSo,reportChannelAbuse:SXc,share:FZt,talkToRecs:LZl,ui:Quu,voiceSearch:wFt,watch:k7m,ypc:NBo,shorts:DBa,radioButtonGroup:V4a,collabInviteLink:ZIt},HIL))};
n5u=function(){return _.n("web_player_entities_middleware")?new cI(TB_(),[jij,boo]):new cI(TB_(),[jij])};
_.ei=function(){GSc||(GSc=n5u());return GSc};
PQm=function(p,y,l){if(p.length)return{titleText:_.ar(y!=null?y:_.g$("DOWNLOADS",void 0,"Downloads")),contents:p.map(function(q){var t=q.videoEntity;q={videoId:t.videoId,title:mN(t.title),shortBylineText:mN(q.channelEntity.title),thumbnail:t.thumbnail};var E=t.videoId?Yy(_.ei().getState(),t.videoId):0;t.videoId&&l?q.navigationEndpoint=_.WV(t.videoId,l,void 0,void 0,E):t.videoId&&(q.navigationEndpoint=V1j(t.videoId,E,t.lengthSeconds));t.lengthSeconds&&(q.thumbnailOverlays=bIj(t.lengthSeconds,E));return{playlistPanelVideoRenderer:q}}),
totalVideos:p.length}};
AGo=function(p){return(p=(0,_.Ts.getValueByKeys)(p,"playlistId"))?{playlistId:p}:null};
Zoo=function(){return{}};
Msg=function(p,y){return new _.Ps(function(l,q){p.then(function(t){if(t){if(t=y(t))return l(t);q()}},q)})};
Vsg=function(p){var y,l,q,t=(y=p.contents)==null?void 0:(l=y.twoColumnWatchNextResults)==null?void 0:(q=l.autoplay)==null?void 0:q.autoplay,E,e,C;y=(E=p.contents)==null?void 0:(e=E.twoColumnWatchNextResults)==null?void 0:(C=e.playlist)==null?void 0:C.playlist;return t&&y&&y.playlistId?{rawResponse:p,autoplayRenderer:t,playlistPanelRenderer:y,playlistId:y.playlistId}:null};
Qi6=function(p){var y=y===void 0?"UNKNOWN_INTERFACE":y;if(p.length===1)return p[0];var l=g5o[y];if(l){l=new RegExp(l);for(var q=_.c(p),t=q.next();!t.done;t=q.next())if(t=t.value,l.exec(t))return t}var E=[];Object.entries(g5o).forEach(function(e){var C=_.c(e);e=C.next().value;C=C.next().value;y!==e&&E.push(C)});
l=new RegExp(E.join("|"));p.sort(function(e,C){return e.length-C.length});
q=_.c(p);for(t=q.next();!t.done;t=q.next())if(t=t.value,!l.exec(t))return t;return p[0]};
_.hB=function(p){return"/youtubei/v1/"+Qi6(p)};
_.C4=function(p){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:p}}}}};
_.uS=function(p){return _.C4(_.EK(p))};
K$u=function(p,y){var l={mode:"NORMAL"};p&&(l.autoplayVideo=p.navigationEndpoint,l.nextButtonVideo=p.navigationEndpoint);y&&(l.previousButtonVideo=y.navigationEndpoint);return l};
rG6=function(p,y,l){if(!l||!l.sets)return{sets:[K$u(p,y)]};var q=l.sets.find(function(e){return e.mode==="NORMAL"}),t=(0,_.Ts.unsafeClone)(l);
if(!q)return t.sets.push(K$u(p,y)),t;if(!p)return l;q=_.Ts.getValueByKeys.apply(null,[q].concat(_.xq(w_5)));var E=_.Ts.getValueByKeys.apply(null,[p].concat(_.xq(io5)));if(q===E)return l;t.sets=t.sets.filter(function(e){return e.mode!=="NORMAL"});
t.sets.push(K$u(p,y));return t};
Sdm=function(p){return!!p.playlistPanelVideoRenderer&&!p.playlistPanelVideoRenderer.unplayableText};
F$_=function(p){return!!p.playlistPanelVideoRenderer&&!!p.playlistPanelVideoRenderer.title};
L$6=function(p,y){if(y.contents&&!(p>=y.contents.length)&&(p=y.contents.slice(p).find(Sdm)))return p.playlistPanelVideoRenderer};
kSu=function(p,y){if(y.contents)return(y=y.contents.find(function(l){return!!l.playlistPanelVideoRenderer&&l.playlistPanelVideoRenderer.videoId===p}))?y.playlistPanelVideoRenderer:void 0};
NZR=function(p,y){return y.contents?y.contents.findIndex(function(l){return!!l.playlistPanelVideoRenderer&&l.playlistPanelVideoRenderer.videoId===p}):-1};
DCo=function(p,y){return y.contents?y.contents.findIndex(function(l){return!!l.playlistPanelVideoRenderer&&l.playlistPanelVideoRenderer.playlistSetVideoId===p}):-1};
HoL=function(p,y){p.contents&&y!==-1&&p.contents.splice(y,1).length===1&&p.totalVideos!==void 0&&(--p.totalVideos,delete p.videoCountText)};
_.TZu=function(p){var y=[];if(!p||!p.contents)return y;p=_.c(p.contents);for(var l=p.next();!l.done;l=p.next())l=l.value,l.playlistPanelVideoRenderer&&l.playlistPanelVideoRenderer.videoId&&y.push(l.playlistPanelVideoRenderer.videoId);return y};
_.xC_=function(p){if(p&&p.contents)return(p=p.contents.find(function(y){return!!y.playlistPanelVideoRenderer&&!!y.playlistPanelVideoRenderer.selected})||p.contents[p.currentIndex])?p.playlistPanelVideoRenderer:void 0};
BZo=function(p,y,l,q,t,E,e){t=t===void 0?!1:t;E=E===void 0?!1:E;e=e===void 0?!1:e;if(p.contents&&p.contents.length!==0){q&&(p.contents=p.contents.filter(q));q=p.contents.length;for(var C=0;C<q;C++){var u=p.contents[C].playlistPanelVideoRenderer;u&&(C===y?(E&&delete u.menu,u.indexText=_.EK("\u25b6")):t||p.isInfinite||u.indexText===void 0?delete u.indexText:u.indexText=_.EK((C+1+l).toString()))}p.currentIndex=y+l;e&&(delete p.videoCountText,p.totalVideos=q)}};
_.RU=function(p){p=fu6(p);if(p){var y=p.length;var l=-46%y;l<0&&(l=y+l);p=p.slice(y-l)+p.slice(0,y-l)}else p="";l="";for(y=0;y<p.length&&p[y]!==v5a;y++)l+=p[y];return l};
_.X_L=function(p,y){var l=document.body;y=y===void 0?function(C){return C}:y;
var q,t=null;p=_.c(p);for(q=p.next();!q.done;q=p.next()){var E=q.value;q="div";E[2]&&(q=y(E[2]));q=document.createElement(q);t||(t=q);var e=E[0];E=E[1];e&&(q.id=y(e));if(E)for(E=_.c(E),e=E.next();!e.done;e=E.next())q.classList.add(y(e.value));l.appendChild(q);l=q}return[t,l]};
dCg=function(p,y){for(var l="",q=0;q<y;q++)l+=p.charAt(Math.floor(Math.random()*p.length));return l};
aU=function(p){return dCg("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",p)};
m3=function(p){return dCg("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",p)};
UK=function(p){return dCg("0123456789",p)};
$9=function(){var p=performance.now(),y=new Date;var l="2."+y.getFullYear()+String(y.getMonth()+1).padStart(2,"0")+String(y.getDate()).padStart(2,"0");for(var q,t=Math.floor(Math.random()*11)+15,E=[],e=0;e<t;e++)E.push(Math.floor(Math.random()*26476865)+24547720);q=E.join(",");var C=aU(10),u=aU(100),a=aU(102),m=aU(106),U=aU(108),b=aU(11),P=aU(1140),Z=aU(123),K=aU(14),F=aU(16),L=aU(1900),T=aU(23),O=aU(26),f=aU(34),v=aU(397),z=aU(44),sc=aU(5),hR=aU(72),Wt=aU(74),AR=aU(75),Qu=aU(88),jj=aU(91),x6="rr2---sn-5hnekn7z rr2---sn-ntq7yner rr3---sn-q4flrnl6 rr4---sn-ntqe6nee rr5---sn-q4flrne7 rr3---sn-5hne6nzd rr2---sn-q4flrnsk rr3---sn-q4fl6nz7 rr5---sn-q4flrnsl rr5---sn-q4fzen7l rr2---sn-hgn7yn7l rr3---sn-q4fl6nzy rr4---sn-5hneknee rr2---sn-q4fl6nz7 rr3---sn-hgn7yn7e rr3---sn-ntqe6nes rr2---sn-5hne6nzs rr2---sn-4g5lznez rr4---sn-q4flrnle rr1---sn-q4fl6nd6".split(" ");
var L8=x6[Math.floor(Math.random()*x6.length)];var Y6=(new Date("2010-01-01")).getTime();var AZ=(new Date(Y6+Math.random()*((new Date).getTime()-Y6))).toISOString().split("T")[0];for(var cU,Xo=[],U$=0;U$<4;U$++)Xo.push(Math.floor(Math.random()*100));cU=Xo.join(".");var WU=Number(UK(5)),VQ=Number(UK(6)),b9=Number(UK(7)),kx=Number(UK(9)),JR=UK(1),s$=UK(10),PU=UK(16),Uu=UK(19),jB=UK(2),xx=UK(20),qN=UK(21),Iv=UK(3),CU=UK(4),ov=UK(5),u9=UK(6),ZV=UK(7),QQ=UK(8),n7=UK(9);var u6=dCg("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var ed=[m3(5),m3(5),m3(5)].join("%2C"),MQ=[UK(3),UK(5),UK(5)].join("%2C"),Ob=m3(0),dr=m3(1),Am=m3(10),lf=m3(108),qm=m3(11),Sh=m3(12),yy=m3(13),P7=m3(14),qU=m3(15),o9=m3(16),RM=m3(17),Ma=m3(18),k6=m3(19),Bt=m3(2),bN=m3(20),cR=m3(22),wu=m3(23),Gd=m3(24),nU=m3(266),$x=m3(3),K7=m3(30),$X=m3(34),uN=m3(35),PH=m3(36),eh=m3(4),kX=m3(40),VE=m3(43),zR=m3(47),h2=m3(5),vt=m3(6),RT=m3(7),x1=m3(75),f7=m3(8),Rl=m3(80),s6=m3(9),jZ="https://www."+m3(12)+".com",Wm={},Xc={},lY={},Nug={},qw={},yf={},ls={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:q}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:l},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+m3(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:l},{key:"client.name",value:"WEB"},{key:"client.fexp",value:q}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:qN+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+m3(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:kX,ypcGetOfflineUpsellEndpoint:{params:Rl}},trackingParams:uN+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+MQ+"&mn="+ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fmp4&ns="+Gd+"&cnr="+jB+"&ratebypass=yes&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&c=WEB&txp="+ZV+"&n="+F+"&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:VQ,width:640,height:360,lastModified:PU,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:ZV,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+MQ+"&mn="+
ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fmp4&ns="+Gd+"&cnr="+jB+"&ratebypass=yes&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&c=WEB&txp="+ZV+"&n="+F+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+lf+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:VQ,width:1280,
height:720,lastModified:PU,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:ZV,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&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="+MQ+"&mn="+ed+"&ms="+
ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fmp4&ns="+Gd+"&gir="+$x+"&clen="+n7+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&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.640028"',bitrate:b9,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:n7,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:b9,approxDurationMs:ZV},{itag:248,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&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="+MQ+"&mn="+ed+"&ms="+ed+"&mv="+
dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fwebm&ns="+Gd+"&gir="+$x+"&clen="+n7+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/webm; codecs="vp9"',bitrate:b9,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:n7,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:b9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZV},{itag:399,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&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="+
MQ+"&mn="+ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fmp4&ns="+Gd+"&gir="+$x+"&clen="+n7+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&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.08M.08"',bitrate:b9,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:n7,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:b9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZV},{itag:136,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&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="+
MQ+"&mn="+ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fmp4&ns="+Gd+"&gir="+$x+"&clen="+n7+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&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:b9,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:n7,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:VQ,approxDurationMs:ZV},{itag:247,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&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="+MQ+"&mn="+
ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fwebm&ns="+Gd+"&gir="+$x+"&clen="+n7+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&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:b9,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:n7,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:VQ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZV},{itag:398,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&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="+
MQ+"&mn="+ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fmp4&ns="+Gd+"&gir="+$x+"&clen="+n7+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&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:b9,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:n7,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:VQ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZV},{itag:135,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&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="+
MQ+"&mn="+ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fmp4&ns="+Gd+"&gir="+$x+"&clen="+QQ+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&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:VQ,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:QQ,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:VQ,approxDurationMs:ZV},{itag:244,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&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="+MQ+"&mn="+
ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fwebm&ns="+Gd+"&gir="+$x+"&clen="+QQ+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+lf+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/webm; codecs="vp9"',bitrate:VQ,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:QQ,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:VQ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZV},{itag:397,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&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="+
MQ+"&mn="+ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fmp4&ns="+Gd+"&gir="+$x+"&clen="+QQ+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&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.04M.08"',bitrate:VQ,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:QQ,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:VQ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZV},{itag:134,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&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="+
MQ+"&mn="+ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fmp4&ns="+Gd+"&gir="+$x+"&clen="+QQ+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&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:VQ,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:QQ,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:VQ,highReplication:!0,approxDurationMs:ZV},{itag:243,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&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="+
MQ+"&mn="+ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fwebm&ns="+Gd+"&gir="+$x+"&clen="+QQ+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/webm; codecs="vp9"',bitrate:VQ,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:QQ,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:VQ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZV},{itag:396,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&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="+
MQ+"&mn="+ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fmp4&ns="+Gd+"&gir="+$x+"&clen="+QQ+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&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:VQ,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:QQ,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:VQ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZV},{itag:133,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&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="+
MQ+"&mn="+ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fmp4&ns="+Gd+"&gir="+$x+"&clen="+QQ+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&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:VQ,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:QQ,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:VQ,approxDurationMs:ZV},{itag:242,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&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="+MQ+"&mn="+
ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fwebm&ns="+Gd+"&gir="+$x+"&clen="+QQ+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&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:VQ,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:QQ,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:VQ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZV},{itag:395,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&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="+
MQ+"&mn="+ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fmp4&ns="+Gd+"&gir="+$x+"&clen="+QQ+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&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:VQ,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:QQ,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:VQ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZV},{itag:160,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&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="+
MQ+"&mn="+ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fmp4&ns="+Gd+"&gir="+$x+"&clen="+QQ+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:VQ,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:QQ,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:WU,approxDurationMs:ZV},{itag:278,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&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="+MQ+"&mn="+
ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fwebm&ns="+Gd+"&gir="+$x+"&clen="+QQ+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&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:VQ,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:QQ,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:WU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZV},{itag:394,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&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="+
MQ+"&mn="+ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=video%2Fmp4&ns="+Gd+"&gir="+$x+"&clen="+QQ+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&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:WU,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:QQ,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:WU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ZV},{itag:140,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
MQ+"&mn="+ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=audio%2Fmp4&ns="+Gd+"&gir="+$x+"&clen="+QQ+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:VQ,
initRange:{start:"0",end:"631"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:QQ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:VQ,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:ZV,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+MQ+"&mn="+ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+
jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=audio%2Fwebm&ns="+Gd+"&gir="+$x+"&clen="+ZV+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'audio/webm; codecs="opus"',bitrate:WU,initRange:{start:"0",end:"265"},indexRange:{start:Iv,
end:CU},lastModified:PU,contentLength:ZV,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:WU,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:ZV,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+MQ+"&mn="+ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=audio%2Fwebm&ns="+
Gd+"&gir="+$x+"&clen="+ZV+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+ZV+"&n="+o9+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+U,mimeType:'audio/webm; codecs="opus"',bitrate:WU,initRange:{start:"0",end:"265"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:ZV,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:WU,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:ZV,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+L8+".googlevideo.com/videoplayback?expire="+s$+"&ei="+T+"&ip="+cU+"&id=o-AF"+VE+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+MQ+"&mn="+ed+"&ms="+ed+"&mv="+dr+"&mvi="+JR+"&pl="+jB+"&initcwndbps="+ZV+"&siu="+JR+"&spc="+z+"&vprv="+JR+"&svpuc="+JR+"&mime=audio%2Fwebm&ns="+Gd+"&gir="+$x+"&clen="+QQ+"&dur="+QQ+"&lmt="+PU+"&mt="+s$+"&fvip=3&keepalive="+$x+"&c=WEB&txp="+
ZV+"&n="+o9+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%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:'audio/webm; codecs="opus"',bitrate:VQ,initRange:{start:"0",end:"265"},indexRange:{start:Iv,end:CU},lastModified:PU,contentLength:QQ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:VQ,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:ZV,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="+n7+"&docid="+b+"&ei="+T+"&feature="+C+"&fexp="+Ob+"&ns="+Bt+"&plid="+F+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+dr+"&el="+Am+"&len="+CU+"&of="+cR+
"&uga="+jB+"&vm="+nU},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+n7+"&docid="+b+"&ei="+T+"&feature="+C+"&fexp="+Ob+"&ns="+Bt+"&plid="+F+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+dr+"&el="+Am+"&len="+CU+"&of="+cR+"&uga="+jB+"&vm="+nU},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+n7+"&docid="+b+"&ei="+T+"&feature="+C+"&fexp="+Ob+"&ns="+Bt+"&plid="+F+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
dr+"&el="+Am+"&len="+CU+"&of="+cR+"&uga="+jB+"&vm="+nU},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+T+"&m="+Qu+"&oid="+cR+"&plid="+F+"&pltype="+RT+"&ptchn="+cR+"&ptk="+K+"&video_id="+b},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+n7+"&docid="+b+"&ei="+T+"&event="+P7+"&feature="+C+"&fexp="+Ob+"&ns="+Bt+"&plid="+F+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+dr},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+b+"&ei="+T+"&feature="+
C+"&len="+CU+"&ns="+Bt+"&plid="+F+"&ver="+JR,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+b+"&caps="+$x+"&opi="+n7+"&xoaf="+JR+"&hl="+Bt+"&ip="+cU+"&ipbits="+JR+"&expire="+s$+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+cU+"&key="+$x+"&lang="+sc,name:{simpleText:k6},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+b+"&caps="+$x+"&opi="+n7+"&xoaf="+JR+"&hl="+Bt+"&ip="+cU+"&ipbits="+JR+"&expire="+s$+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+cU+"&key="+$x+"&kind="+$x+"&lang="+Bt,name:{simpleText:h2},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:qm,title:f7,lengthSeconds:"1155",keywords:[qm,yy,o9,eh],
channelId:Gd,isOwnerViewing:!1,shortDescription:Sh,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+b+"/hqdefault.jpg?sqp=-oaymwE"+PH+"G&rs="+$X,width:168,height:94},{url:"https://i.ytimg.com/vi/"+b+"/hqdefault.jpg?sqp=-oaymwE"+PH+"G&rs="+$X,width:196,height:110},{url:"https://i.ytimg.com/vi/"+b+"/hqdefault.jpg?sqp=-oaymwE"+PH+"G&rs="+f,width:246,height:138},{url:"https://i.ytimg.com/vi/"+b+"/hqdefault.jpg?sqp=-oaymwE"+PH+"G&rs="+f,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
b+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:ZV,author:yy,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:ZV,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+cR+"/featured_channel.jpg?v="+f7,width:40,height:40}]},trackingParams:uN+"=",navigationEndpoint:{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{url:"/channel/"+Gd,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Gd}},channelName:yy,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Ma}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Gd,showPreferences:!1,subscribedButtonText:{runs:[{text:P7}]},unsubscribedButtonText:{runs:[{text:qU}]},trackingParams:uN+"=",unsubscribeButtonText:{runs:[{text:eh}]},serviceEndpoints:[{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[Gd],params:f7}},{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:kX,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:uN+"=",dialogMessages:[{runs:[{text:qm},{text:Am},{text:bN}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:s6}]},serviceEndpoint:{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Gd],params:f7}},accessibility:{label:qm},trackingParams:uN+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Ma}]},accessibility:{label:RT},trackingParams:uN+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:f7}},unsubscribeAccessibility:{accessibilityData:{label:qU}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:QQ},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Gd],params:f7}},unsubscribeCommand:{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Gd],params:f7}},addToWatchLaterCommand:{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:qm,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:qm}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+b+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+PH+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
b+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+qm,width:1280,height:720},title:{simpleText:Am},description:{simpleText:k6},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+s6,externalChannelId:Gd,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:ZV,category:"Travel & Events",publishDate:AZ,ownerChannelName:yy,uploadDate:AZ}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:vt},trackingParams:uN+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:kX,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:uN+"="}}],headerText:{simpleText:o9},icon:{infoCardIconRenderer:{trackingParams:uN+"="}},closeButton:{infoCardIconRenderer:{trackingParams:uN+"="}},trackingParams:uN+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:uN+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+qm+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:u6,interpreterSafeUrl:(Wm.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+K7+".js",Wm),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:eh},{text:o9,bold:!0}]},endpoint:{clickTrackingParams:kX,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:uN+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:o9}]},actionButton:{buttonRenderer:{text:{runs:[{text:f7}]},navigationEndpoint:{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+b,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
b,target:"TARGET_NEW_WINDOW"}},trackingParams:uN+"="}},trackingParams:uN+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+hR+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+hR+"=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:ZV,endMs:ZV,title:{accessibility:{accessibilityData:{label:P7}},simpleText:RT},metadata:{simpleText:RM},callToAction:{simpleText:f7},dismiss:{simpleText:RT},endpoint:{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{url:"/channel/"+Gd,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Gd}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:P7}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Gd,showPreferences:!1,
subscribedButtonText:{runs:[{text:eh}]},unsubscribedButtonText:{runs:[{text:qU}]},trackingParams:uN+"=",unsubscribeButtonText:{runs:[{text:RM}]},serviceEndpoints:[{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Gd],params:f7}},{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:kX,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:uN+
"=",dialogMessages:[{runs:[{text:qU},{text:Ma},{text:Am}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Am}]},serviceEndpoint:{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Gd],params:f7}},accessibility:{label:Ma},trackingParams:uN+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Am}]},
accessibility:{label:yy},trackingParams:uN+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Am}},unsubscribeAccessibility:{accessibilityData:{label:Sh}}}},trackingParams:uN+"=",isSubscribe:!0,id:xx}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+b+"/hqdefault.jpg?sqp=-oaymwE"+PH+"G&rs="+f,width:168,height:94},{url:"https://i.ytimg.com/vi/"+b+"/hqdefault.jpg?sqp=-oaymwE"+PH+"G&rs="+$X,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+b+"/hqdefault.jpg?sqp=-oaymwE"+PH+"G&rs="+f,width:246,height:138},{url:"https://i.ytimg.com/vi/"+b+"/hqdefault.jpg?sqp=-oaymwE"+PH+"G&rs="+f,width:336,height:188},{url:"https://i.ytimg.com/vi/"+b+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:ZV,endMs:ZV,title:{accessibility:{accessibilityData:{label:RT}},simpleText:P7},metadata:{simpleText:Ma},endpoint:{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
qm,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:qm,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+L8+".googlevideo.com/videoplayback?source=youtube&oeis="+JR+"&c=WEB&oad="+CU+"&ovd="+CU+"&oaad="+ov+"&oavd="+ov+"&ocs="+Iv+"&oewis="+JR+"&oputc="+JR+"&ofpcc="+JR+"&siu="+JR+"&msp="+JR+"&odepv="+JR+
"&id=o-AF"+VE+"&ip="+cU+"&initcwndbps="+ZV+"&mt="+s$+"&oweuc="+Ob}}}}},trackingParams:uN+"=",id:xx,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:Sh}},simpleText:qU},style:"DEFAULT"}}]}}],startMs:ZV,trackingParams:uN+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:JR,offsetEndMilliseconds:ov},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+n7+";dc_trk_cid="+n7+";dc_dbm_token="+U+";ord="+s$+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+JR+";dc_rui="+JR+";dc_exteid="+xx+";dc_av="+Iv+";dc_sk="+JR+";dc_ctype="+jB+";dc_ref=http://www.youtube.com/video/"+qm+";dc_pubid="+JR+";dc_btype=23?gclid="+jj+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+O+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+JR+"&ns="+JR+"&event="+JR+"&device="+JR+"&content_v="+b+"&el="+Am+"&ei="+T+"&devicever="+l+"&bti="+ZV+"&format="+u9+"&break_type="+JR+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+JR+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+cU+"&slot_pos="+JR+"&slot_len="+JR+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+MQ+"&ad_len="+ov+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
qm+"&aqi="+T+"&ad_rmp="+JR+"&sli="+JR}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+b+"&cid="+O+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+b+"&cid="+O+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+
";etm1="+JR+";eid1="+jB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+b+"&cid="+O+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+u9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
P+"____________"+Z+"AxAA&sigh="+b+"&cid="+O+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+jB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+b+"&cid="+O+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+b+"&cid="+O+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+jB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+b+"&cid="+O+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+ZV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+b+"&cid="+O+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
P+"____________"+Z+"AxAA&sigh="+b+"&cid="+O+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&ctype="+Iv+"&ms=[CLICK_MS]&label=video_10s_engaged_view&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=",offsetMilliseconds:1E4,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_engaged_view&ctype="+Iv+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+u9+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
n7+";dc_trk_cid="+n7+";dc_dbm_token="+U+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+JR+";ord="+n7+";dc_rui="+JR+";dc_exteid="+Uu+";dc_av="+JR+";dc_sk="+JR+";dc_ctype="+jB+";dc_pubid="+JR+";dc_btype=3?gclid="+jj+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+b+"&cid="+O+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+jB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+"&sig="+wu+"&ad_cpn=[AD_CPN]&id="+vt+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vt+"&dc_pubid="+JR+"&dc_exteid="+xx+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+b+"&cid="+O+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+"&sig="+wu+"&ad_cpn=[AD_CPN]&id="+vt+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+JR},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vt+"&avm="+JR+"&dc_pubid="+JR+"&dc_exteid="+
xx+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+b+"&cid="+O+"&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="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+jB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
a+"&sig="+wu+"&ad_cpn=[AD_CPN]&id="+vt+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+JR},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vt+"&dc_pubid="+JR+"&dc_exteid="+xx+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+jB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+u9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+jB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+u9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+b+"&cid="+O+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+jB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:kX,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+
Iv+"&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/"+b+"/mqdefault.jpg",width:320,height:180}]},trackingParams:uN+"="},trackingParams:uN+
"=",templatedCountdown:{templatedAdText:{text:vt,isTemplated:!0,trackingParams:uN+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:s6,isTemplated:!1,trackingParams:uN+"="},trackingParams:uN+"="}},trackingParams:uN+"=",skipOffsetMilliseconds:5E3}},trackingParams:uN+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:o9},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:uN+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:h2,isTemplated:!1,trackingParams:uN+"="},trackingParams:uN+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:vt,isTemplated:!0,trackingParams:uN+"="}},trackingParams:uN+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:kX,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Xc.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+L+"&hl="+Bt+"&origin=www.youtube.com&ata_theme="+eh,Xc),trackingParams:uN+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:uN+"="}},hoverText:{runs:[{text:bN}]},trackingParams:uN+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zR+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:uN+"="},headline:{text:s6,isTemplated:!1,trackingParams:uN+"="},description:{text:vt,
trackingParams:uN+"="},actionButton:{buttonRenderer:{text:{simpleText:k6},navigationEndpoint:{clickTrackingParams:kX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+n7+";dc_trk_cid="+n7+";dc_dbm_token="+U+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+JR+";ord="+n7+";dc_rui="+JR+";dc_exteid="+xx+";dc_av="+JR+";dc_sk="+JR+";dc_ctype="+jB+";dc_pubid="+JR+";dc_btype=3?gclid="+jj+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:uN+"="}},startMs:JR,trackingParams:uN+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:eh},elementId:h2}},elementId:eh,trackingParams:uN+"=",legacyInfoCardVastExtension:Am,sodarExtensionData:{siub:Am,bgub:bN,scs:s6,bgp:Sh},externalVideoId:qm,adLayoutLoggingData:{serializedAdServingDataEntry:bN},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zR+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:uN+"="},
headline:{text:f7,isTemplated:!1,trackingParams:uN+"="},description:{text:f7,isTemplated:!1,trackingParams:uN+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:vt},navigationEndpoint:{clickTrackingParams:kX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+n7+";dc_trk_cid="+n7+";dc_dbm_token="+U+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+JR+";ord="+n7+";dc_rui="+JR+";dc_exteid="+
xx+";dc_av="+JR+";dc_sk="+JR+";dc_ctype="+jB+";dc_pubid="+JR+";dc_btype=3?gclid="+jj+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+
JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:uN+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:uN+"="}},navigationEndpoint:{clickTrackingParams:kX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+n7+";dc_trk_cid="+
n7+";dc_dbm_token="+U+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+JR+";ord="+n7+";dc_rui="+JR+";dc_exteid="+xx+";dc_av="+JR+";dc_sk="+JR+";dc_ctype="+jB+";dc_pubid="+JR+";dc_btype=3?gclid="+jj+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+b+"&cid="+O+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+
Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:uN+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:uN+"="},abandonCommands:{commands:[{clickTrackingParams:kX,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+b+"&cid="+O+"&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="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+
JR+"="+JR+";etm1="+JR+";eid1="+jB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:kX,commandExecutorCommand:{commands:[{clickTrackingParams:kX,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+b+"&cid="+O+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:h2,isTemplated:!1,trackingParams:uN+
"="},trackingParams:uN+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:qU},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+b+"&cid="+O+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+ZV+";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="+n7+";dc_trk_cid="+n7+";ord="+s$+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+JR+";dc_rui="+JR+";dc_exteid="+xx+";dc_av="+Iv+";dc_sk="+JR+";dc_ctype="+jB+";dc_ref=http://www.youtube.com/video/"+qm+";dc_pubid="+JR+";dc_btype=23?gclid="+jj+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+O+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+JR+"&ns="+JR+"&event="+JR+"&device="+JR+"&content_v="+b+"&el="+Am+"&ei="+T+"&devicever="+l+"&bti="+ZV+"&format="+u9+"&break_type="+JR+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+JR+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+cU+"&slot_pos="+JR+"&slot_len="+JR+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
MQ+"&ad_len="+ov+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+qm+"&aqi="+T+"&ad_rmp="+JR+"&sli="+JR}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+O+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+O+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+jB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+O+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+u9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+O+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+jB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+
O+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+O+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+jB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+O+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+ZV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+O+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+O+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&ctype="+Iv+"&ms=[CLICK_MS]&label=video_10s_engaged_view&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=",offsetMilliseconds:1E4,
attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_engaged_view&ctype="+Iv+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+u9+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+O+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+jB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+"&sig="+wu+"&ad_cpn=[AD_CPN]&id="+
vt+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vt+"&dc_pubid="+JR+"&dc_exteid="+xx+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+O+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+
"&sig="+wu+"&ad_cpn=[AD_CPN]&id="+vt+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+JR},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vt+"&avm="+JR+"&dc_pubid="+JR+"&dc_exteid="+xx+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+O+"&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="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+jB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+"&sig="+wu+"&ad_cpn=[AD_CPN]&id="+vt+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+JR},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vt+"&dc_pubid="+JR+"&dc_exteid="+xx+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+jB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+u9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+jB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+u9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+O+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+jB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+
Iv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&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/"+b+"/mqdefault.jpg",width:320,height:180}]},trackingParams:uN+"="},trackingParams:uN+"=",templatedCountdown:{templatedAdText:{text:qm,isTemplated:!0,trackingParams:uN+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Sh,isTemplated:!1,trackingParams:uN+"="},trackingParams:uN+"="}},
trackingParams:uN+"=",skipOffsetMilliseconds:5E3}},trackingParams:uN+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Am},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:uN+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:RM,isTemplated:!1,trackingParams:uN+"="},trackingParams:uN+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:RT,
isTemplated:!0,trackingParams:uN+"="}},trackingParams:uN+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:kX,openPopupAction:{popup:{aboutThisAdRenderer:{url:(lY.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+L+"&hl="+Bt+"&origin=www.youtube.com&ata_theme="+eh,lY),trackingParams:uN+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:uN+"="}},hoverText:{runs:[{text:qm}]},trackingParams:uN+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Wt+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:uN+"="},headline:{text:qm,isTemplated:!1,trackingParams:uN+"="},description:{text:o9,trackingParams:uN+"="},actionButton:{buttonRenderer:{text:{simpleText:f7},navigationEndpoint:{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:uN+"="}},startMs:JR,trackingParams:uN+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:vt},elementId:eh}},elementId:yy,trackingParams:uN+"=",legacyInfoCardVastExtension:RM,sodarExtensionData:{siub:Am,bgub:yy,scs:eh,bgp:s6},externalVideoId:qm,adLayoutLoggingData:{serializedAdServingDataEntry:vt},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Wt+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:uN+"="},headline:{text:Sh,
isTemplated:!1,trackingParams:uN+"="},description:{text:Sh,isTemplated:!1,trackingParams:uN+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:s6},navigationEndpoint:{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:uN+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:uN+"="}},navigationEndpoint:{clickTrackingParams:kX,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+O+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+
JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:uN+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:uN+"="},abandonCommands:{commands:[{clickTrackingParams:kX,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+O+"&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="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+jB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:kX,commandExecutorCommand:{commands:[{clickTrackingParams:kX,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+O+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:k6,isTemplated:!1,trackingParams:uN+"="},trackingParams:uN+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:h2},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+O+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+JR+";dc_exteid="+xx+";met="+JR+";ecn"+JR+"="+JR+";etm1="+JR+";eid1="+
ZV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:P7}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:o9}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:ov,offsetEndMilliseconds:u9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+T+"&m_pos="+jB+"&token=ALHj"+v+"&index="+JR+"&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="+l+"&m_pos_ms="+ov}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Am}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:u9,offsetEndMilliseconds:u9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+T+"&m_pos="+Iv+"&token=ALHj"+v+"&index="+JR+"&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="+
l+"&m_pos_ms="+u9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:yy}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:u9,offsetEndMilliseconds:u9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+T+"&m_pos="+Iv+"&token=ALHj"+v+"&index="+JR+"&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="+
l+"&m_pos_ms="+u9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:h2}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:u9,offsetEndMilliseconds:u9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+T+"&m_pos="+Iv+"&token=ALHj"+v+"&index="+JR+"&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="+
l+"&m_pos_ms="+u9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:bN}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:u9,offsetEndMilliseconds:jB},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+T+"&m_pos="+Iv+"&token=ALHj"+v+"&index="+JR+"&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="+
l+"&m_pos_ms="+u9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:k6}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:jB,offsetEndMilliseconds:jB},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+T+"&m_pos="+jB+"&token=ALHj"+v+"&index="+JR+"&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="+
l+"&m_pos_ms="+jB}},adSlotLoggingData:{serializedSlotAdServingDataEntry:eh}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:yy,isTemplated:!1,trackingParams:uN+"="},description:{text:Am,isTemplated:!1,trackingParams:uN+"="},actionButton:{buttonRenderer:{text:{simpleText:eh},navigationEndpoint:{clickTrackingParams:kX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
n7+";dc_trk_cid="+n7+";dc_dbm_token="+U+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+JR+";ord="+n7+";dc_rui="+JR+";dc_exteid="+xx+";dc_av="+JR+";dc_sk="+JR+";dc_ctype="+jB+";dc_pubid="+JR+";dc_btype=3?gclid="+jj+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:uN+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zR+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:uN+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+AR+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:uN+"="},navigationEndpoint:{clickTrackingParams:kX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+n7+";dc_trk_cid="+n7+";dc_dbm_token="+U+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+JR+";ord="+n7+
";dc_rui="+JR+";dc_exteid="+xx+";dc_av="+JR+";dc_sk="+JR+";dc_ctype="+jB+";dc_pubid="+JR+";dc_btype=3?gclid="+jj+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:uN+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:kX,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Nug.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+L+"&hl="+Bt+"&origin=www.youtube.com&ata_theme="+eh,Nug),trackingParams:uN+"="}},popupType:"DIALOG"}},trackingParams:uN+"="}},hoverText:{runs:[{text:Sh}]},trackingParams:uN+"="}},adVideoId:qm,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+b+"&cid="+O+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:f7},associatedCompositePlayerBytesLayoutId:o9}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:Am}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:s6,isTemplated:!1,trackingParams:uN+"="},description:{text:Sh,isTemplated:!1,trackingParams:uN+"="},actionButton:{buttonRenderer:{text:{simpleText:P7},navigationEndpoint:{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+
Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:uN+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Wt+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:uN+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+x1+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:uN+"="},navigationEndpoint:{clickTrackingParams:kX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+
JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:uN+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:kX,openPopupAction:{popup:{aboutThisAdRenderer:{url:(qw.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+L+"&hl="+Bt+"&origin=www.youtube.com&ata_theme="+eh,qw),trackingParams:uN+"="}},popupType:"DIALOG"}},trackingParams:uN+"="}},
hoverText:{runs:[{text:s6}]},trackingParams:uN+"="}},adVideoId:qm,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+qm+"&cid="+O+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:o9},associatedCompositePlayerBytesLayoutId:o9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:vt}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Sh,
isTemplated:!1,trackingParams:uN+"="},description:{text:qm,isTemplated:!1,trackingParams:uN+"="},actionButton:{buttonRenderer:{text:{simpleText:qm},navigationEndpoint:{clickTrackingParams:kX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+n7+";dc_trk_cid="+n7+";dc_dbm_token="+U+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+JR+";ord="+n7+";dc_rui="+JR+";dc_exteid="+xx+";dc_av="+JR+";dc_sk="+JR+";dc_ctype="+
jB+";dc_pubid="+JR+";dc_btype=3?gclid="+jj+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+
f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:uN+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zR+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:uN+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+AR+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:uN+
"="},navigationEndpoint:{clickTrackingParams:kX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+n7+";dc_trk_cid="+n7+";dc_dbm_token="+U+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+JR+";ord="+n7+";dc_rui="+JR+";dc_exteid="+xx+";dc_av="+JR+";dc_sk="+JR+";dc_ctype="+jB+";dc_pubid="+JR+";dc_btype=3?gclid="+jj+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+P+"____________"+Z+"AxAA&ase=2&num="+JR+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+jZ+"&label=video_click_to_advertiser_site&ctype="+Iv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:uN+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:kX,openPopupAction:{popup:{aboutThisAdRenderer:{url:(yf.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+L+"&hl="+Bt+"&origin=www.youtube.com&ata_theme="+eh,yf),trackingParams:uN+"="}},popupType:"DIALOG"}},trackingParams:uN+
"="}},hoverText:{runs:[{text:k6}]},trackingParams:uN+"="}},adVideoId:qm,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+P+"____________"+Z+"AxAA&sigh="+b+"&cid="+O+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:qm},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:o9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:f7}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:K7,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:K7,command:{innertubeCommand:{clickTrackingParams:kX,ypcGetOfflineUpsellEndpoint:{params:Rl}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:uN+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:s$,nanos:kx}}}},jCo=JSON.stringify(ls),qc=performance.now()-p;return{objectRepresentation:ls,jsonRepresentation:jCo,generationTime:qc}};
Oog=function(p,y){if(p===y)return!0;if(!p||!y||typeof p!==typeof y)return!1;if(p instanceof Array&&y instanceof Array){if(p.length!==y.length)return!1;for(var l=0;l<p.length;l++)if(!Oog(p[l],y[l]))return!1;return!0}if(typeof p==="object"&&typeof y==="object"&&p&&y){for(l in p)if(!(l in y&&Oog(p[l],y[l])))return!1;for(var q in y)if(!(q in p))return!1;return!0}return!1};
_.bS=function(){if(!ji){ji=new Aq(new o5c);var p=_.UC("client_streamz_web_flush_count",-1);p!==-1&&(ji.invocationLimit=p)}return ji};
n4=function(p,y,l,q){if(p===y)return!0;if(Array.isArray(p)&&Array.isArray(y)){if(p.length!==y.length)return!1;for(var t=0;t<p.length;t++)if(!n4(p[t],y[t],l,q))return!1;return!0}if(p instanceof Set||y instanceof Set){if(p instanceof Set&&y instanceof Set){if(p.size!==y.size)return!1;q=_.c(p.values());for(t=q.next();!t.done;t=q.next())if(!y.has(t.value))return!1;return!0}return!1}if(p instanceof Function){if(q)return!0;p.name===""&&_.Bs(Error("If"),"ERROR");return!1}if(p instanceof Date&&y instanceof
Date)return p.getTime()===y.getTime();if(p instanceof Object&&y instanceof Object){if(zHR(p)&&zHR(y))try{return p.equals(y)}catch(e){_.Bs(Error("Jf`"+e),"ERROR")}t=Object.getOwnPropertyNames(p).filter(function(e){return l?p[e]!==void 0:!0});
var E=Object.getOwnPropertyNames(y).filter(function(e){return l?y[e]!==void 0:!0});
if(t.length!==E.length)return!1;t=_.c(t);for(E=t.next();!E.done;E=t.next())if(E=E.value,!n4(p[E],y[E],l,q))return!1;return!0}return!1};
zHR=function(p){p=Object.getPrototypeOf(p).equals;return p instanceof Function&&p.length===1};
_.pSL=function(){return _.h(function(p){if(p.nextAddress==1)return Ydc!==2?p.jumpTo(2):p.yield(Iug(),3);p.nextAddress!=2&&(Ydc=p.yieldResult);return p.return(Ydc)})};
_.qgc=function(){return _.h(function(p){if(p.nextAddress==1)return _.n("ab_pl_man")?yCo!==2?p.jumpTo(2):p.yield(lJ6(),3):p.return(1);p.nextAddress!=2&&(yCo=p.yieldResult);return p.return(yCo)})};
Em_=function(){return _.h(function(p){if(p.nextAddress==1)return _.n("ab_fk_sk_cl")?sP6!==2?p.jumpTo(2):p.yield(tkt(),3):p.return(1);p.nextAddress!=2&&(sP6=p.yieldResult);return p.return(sP6)})};
_.e8c=function(){return _.h(function(p){if(p.nextAddress==1)return _.n("ab_det_apb_b")?JCo!==2?p.jumpTo(2):p.yield(cCL(),3):p.return(1);p.nextAddress!=2&&(JCo=p.yieldResult);return p.return(JCo)})};
u08=function(){var p;return _.h(function(y){if(y.nextAddress==1)return y.yield(Promise.all([_.pSL(),_.e8c(),_.qgc(),Em_()]),2);if(y.nextAddress!=3)return h85()?y.return(!0):y.yield(_.CAl(),3);p=y.yieldResult;return y.return(p===0)})};
h85=function(){var p=!1,y=function(l,q){R8g.increment(q,l);l===0&&(p=!0)};
y(_.WsL(),"j.s_");y(Ydc,"f.i_");y(JCo,"a.b_");y(yCo,"p.m_");y(sP6,"i.f_");aJc===2&&(aJc=_.m4t(U4_));y(aJc,"e.h_");_.n("ks_det_gpbl")||y(_.$4a(),"p.i_");_.n("ks_get_o_pp")||y(_.jPg(),"g.o_");_.n("ab_deg_unex_thr")||y(_.bPL(),"a.o_");y(nmo,"s.t_");_.n("ab_det_sc_inj_enf")&&y(_.GL8(),"s.i_");y(PA5,"d.p_");y(_.ACj(_.G5),"o.p_");y(_.ZPu()===0?0:_.Mk5(),"o.a_");return _.n("debug_sk_em_precheck")?!0:p};
gm6=function(){var p=[].concat(_.xq(Vkc));try{var y=$9();p.push({jsonRepresentation:y.jsonRepresentation,objectRepresentation:y.objectRepresentation})}catch(l){p=[].concat(_.xq(Vkc))}return p};
QPL=function(){var p=["adPlacements","adSlots"];try{return p.filter(function(){return!0}).length!==p.length?0:1}catch(y){return 0}};
_.jPg=function(){if(QPL()===0)return 0;var p=$9(),y=p.objectRepresentation,l=(0,_.Ts.unsafeClone)(y),q=[];if(y&&typeof y==="object")for(var t in y)q.push(t);else return 4;p=p.objectRepresentation.adPlacements;if(!(p&&p.length>0))return 4;try{if(!Oog(q,Object.getOwnPropertyNames(y)))return 0}catch(E){return 0}return Oog(l,y)?1:0};
_.ACj=function(p){if(!p||!p.length||typeof p==="string")return 0;for(var y=Object.getOwnPropertyNames(Object.prototype),l=0;l<p.length;l++)for(var q=_.RU(p[l]),t=_.c(y),E=t.next();!E.done;E=t.next())if(q===E.value)return 0;return 1};
Ksl=function(p){var y=_.RU(p[1]);if(p[0]===null)return y;p=p[0];for(var l={},q=0;q<p.length;q++){var t=_.RU(p[q]);if(q===0)l[t]=y;else{var E={};E[t]=l;l=E}}return l};
_.ZPu=function(){for(var p=_.PI,y=0;y<p.length;y++){var l=Ksl(p[y]),q=[];q.push(l);if(q.length===0)return 0}return 1};
_.Mk5=function(){for(var p=_.PI,y={},l=0;l<p.length;y={fxb:void 0},l++){var q=[Ksl(p[l])];y.fxb=[];q.forEach(function(t){return function(E){t.fxb[t.fxb.length]=E}}(y));
if(y.fxb.length===0)return 0}return 1};
_.WsL=function(){for(var p=_.c(gm6()),y=p.next();!y.done;y=p.next()){var l=y.value;y=l.jsonRepresentation;l=l.objectRepresentation;try{var q=JSON.parse(y);if(!n4(q,l,!1,!1))return 0}catch(t){return 0}}return 1};
_.GL8=function(){try{var p=_.jM("ab_det_sc_inj_val");p.length===1&&p[0]===""&&(p=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var y=document.querySelectorAll("script"),l=_.c(y),q=l.next();!q.done;q=l.next())for(var t=q.value,E=_.c(p),e=E.next();!e.done;e=E.next()){var C=e.value;y=void 0;if((y=t.textContent)==null?0:y.includes(C))return 0}}catch(u){return 4}return 1};
_.CAl=function(){var p,y,l,q,t,E,e;return _.h(function(C){switch(C.nextAddress){case 1:_.Ve(C,2),p=_.c(Vkc),y=p.next();case 4:if(y.done)return C.return(1);q=l=y.value;t=q.jsonRepresentation;E=q.objectRepresentation;return C.yield((new Response(t,{status:200})).json(),7);case 7:e=C.yieldResult;if(!n4(e,E,!1,!1))return C.return(0);y=p.next();C.jumpTo(4);break;case 2:return _.i6(C),C.return(4)}})};
_.bPL=function(){try{btoa("abc")}catch(p){return 0}return 1};
Iug=function(){var p,y,l,q,t,E,e,C,u,a,m;return _.h(function(U){switch(U.nextAddress){case 1:_.Ve(U,2),p=_.c(gm6()),y=p.next();case 4:if(y.done)return U.return(1);q=l=y.value;t=q.jsonRepresentation;E=q.objectRepresentation;e=btoa(t);C="data:application/json;base64,"+e;u=new Request(C);Object.defineProperty(u,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(u,"method",{get:function(){return"POST"}});
Object.defineProperty(u,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(u,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(u,"body",{get:function(){return new ReadableStream}});
return U.yield(fetch(u),7);case 7:return a=U.yieldResult,U.yield(a.json(),8);case 8:m=U.yieldResult;if(!n4(m,E,!1,!1))return U.return(0);y=p.next();U.jumpTo(4);break;case 2:return _.i6(U),U.return(4)}})};
_.m4t=function(p){if(!p||!p.length||typeof p==="string")return 0;for(var y=function(t){return _.RU(t)},l=2,q=0;q<p.length&&(l=_.wSj(_.X_L(p[q],y)),l!==0);q++);
return l};
_.wSj=function(p){var y=_.c(p);p=y.next().value;y=y.next().value;try{var l=document.createElement("div");document.body.appendChild(l);var q=getComputedStyle(l).display;document.body.removeChild(l);if(q==="none")return 4;var t=getComputedStyle(y).display==="none"?0:1;document.body.removeChild(p);return t}catch(E){return 4}};
tkt=function(){var p,y,l;return _.h(function(q){p=new _.AB;y=document.createElement("button");y.classList.add("ytp-ad-skip-button");y.style.opacity="0";y.style.height="0px";y.style.width="0px";y.style.padding="0px";y.style.border="none";l=function(){y.parentElement&&y.parentElement.removeChild(y)};
y.onclick=function(){p.resolve(0);l()};
document.body.appendChild(y);setTimeout(function(){l();p.resolve(1)},50);
return q.return(p.promise)})};
lJ6=function(){var p,y,l,q,t,E,e;return _.h(function(C){p=new _.AB;y=document.createElement("ytd-player");try{document.body.prepend(y)}catch(u){return C.return(4)}l=function(){y.parentElement&&y.parentElement.removeChild(y)};
y.getElementsByTagName("div").length>0?q=y.getElementsByTagName("div")[0]:(q=document.createElement("div"),y.appendChild(q));t=document.createElement("div");q.appendChild(t);E=document.createElement("video");e=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"});E.src=_.xX(_.du(e));E.ontimeupdate=function(){l();p.resolve(0)};
t.appendChild(E);E.classList.add("html5-main-video");setTimeout(function(){t.classList.add("ad-interrupting")},200);
setTimeout(function(){l();p.resolve(1)},5E3);
return C.return(p.promise)})};
iPL=function(p,y){var l,q;return _.h(function(t){switch(t.nextAddress){case 1:l=[],q=0;case 2:if(!(q<3)){t.jumpTo(4);break}return t.yield(fetch(p,{cache:"no-store",method:y}).then(function(E){l.push(E.status)}).catch(function(){l.push(-1)}),3);
case 3:q++;t.jumpTo(2);break;case 4:return t.return(l)}})};
rCL=function(p){return p.domainLookupStart===0&&p.domainLookupEnd===0&&p.connectStart===0&&p.connectEnd===0};
Sg6=function(p,y,l){l=l===void 0?"GET":l;var q,t,E,e,C,u,a,m,U,b;return _.h(function(P){if(P.nextAddress==1)return P.yield(Promise.all([iPL(p,l),iPL(y,l)]),2);q=P.yieldResult;t=_.c(q);E=t.next().value;e=t.next().value;C=E;u=e;if(Math.min.apply(Math,_.xq(u))!==Math.max.apply(Math,_.xq(u))||Math.min.apply(Math,_.xq(C))!==Math.max.apply(Math,_.xq(C)))return P.return(2);if(Math.min.apply(Math,_.xq(u))===Math.min.apply(Math,_.xq(C)))return P.return(1);m=(a=performance.getEntriesByName(p))==null?void 0:
a[0];b=(U=performance.getEntriesByName(y))==null?void 0:U[0];return m&&b?rCL(b)?P.return(1):rCL(m)?P.return(0):P.return(1):P.return(2)})};
cCL=function(){var p;return _.h(function(y){var l=[];var q;var t,E,e;(t=q=(t=$9().objectRepresentation.streamingData)==null?void 0:(E=t.formats)==null?void 0:(e=E[0])==null?void 0:e.url)&&t&&!q.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(t=t.replace("initcwndbps","ctier=L&initcwndbps"),t=t.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),q={testUrl:t,baseUrl:q,method:"GET"}):q=void 0;q&&l.push(q);_.n("ab_net_tp_e")&&l.push({testUrl:_.l_.location.origin+"/ad_companion",baseUrl:_.l_.location.origin+
"/generate_204",method:"OPTIONS"});if(_.n("ad_net_pb_ab")){var C;b:{q=/api\/stats\/ads/;var u,a,m,U;t=(C=$9().objectRepresentation.adPlacements)==null?void 0:(u=C[0])==null?void 0:(a=u.adPlacementRenderer)==null?void 0:(m=a.renderer)==null?void 0:(U=m.linearAdSequenceRenderer)==null?void 0:U.linearAds;if(t!=null&&t.length&&(C=_.G(t[0],Fso))&&(C=C.pings,C!=null&&C.impressionPings))for(u=[].concat(_.xq(C.impressionPings)),C.progressPings&&(u=[].concat(_.xq(u),_.xq(C.progressPings))),C=_.c(u),u=C.next();!u.done;u=
C.next())if(u=u.value,u.baseUrl&&q.test(u.baseUrl)){C=u.baseUrl.replace("https://www.youtube.com","");break b}C=void 0}C&&l.push({testUrl:_.l_.location.origin+C,baseUrl:_.l_.location.origin+"/feed/download",method:"GET"})}if(_.n("ad_net_pb_pbp")){var b;b:{C=/api\/stats\/qoe/;if(u=$9().objectRepresentation.playbackTracking){a=[];a.push(u==null?void 0:(b=u.videostatsPlaybackUrl)==null?void 0:b.baseUrl);var P;a.push(u==null?void 0:(P=u.videostatsDelayplayUrl)==null?void 0:P.baseUrl);var Z;a.push(u==
null?void 0:(Z=u.videostatsWatchtimeUrl)==null?void 0:Z.baseUrl);var K;a.push(u==null?void 0:(K=u.ptrackingUrl)==null?void 0:K.baseUrl);var F;a.push(u==null?void 0:(F=u.qoeUrl)==null?void 0:F.baseUrl);var L;a.push(u==null?void 0:(L=u.atrUrl)==null?void 0:L.baseUrl);b=_.c(a);for(P=b.next();!P.done;P=b.next())if((P=P.value)&&C.test(P)){b=P.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}b=void 0}b&&l.push({testUrl:_.l_.location.origin+b,baseUrl:_.l_.location.origin+
"/feed/download",method:"GET"})}l=l.length!==0?l[Math.floor(Math.random()*l.length)]:void 0;return(p=l)?y.return(Sg6(p.testUrl,p.baseUrl,p.method)):y.return(4)})};
_.$4a=function(){if(_.l_.r6e===void 0||_.l_.r6e===null||typeof _.l_.r6e!=="function")return 2;try{return _.l_.r6e()===!0?0:1}catch(p){return 0}};
Lso=function(p){switch(p){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.qL(p,"unknown result type")}};
_.kLg=function(p,y){var l=Number(_.OY("CATSTAT",0));if(y.kKu===void 0)return l;y=y.kKu;p=Lso(p);return l&~(3<<y)|p<<y};
N3g=function(p){var y,l;if((p=(y=p.auxiliaryUi)==null?void 0:(l=y.messageRenderers)==null?void 0:l.bkaEnforcementMessageViewModel)&&p.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return p};
HPl=function(){for(var p=_.c(Object.values(_.D4R)),y=p.next();!y.done;y=p.next())y=y.value,y.isAsync&&y.kKu&&_.dT("CATSTAT",_.kLg(2,y))};
_.gC=function(p,y){p=_.Za("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",p);(y===void 0?0:y)?_.T3o(p,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.ME(_.Vq(),p,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
B3_=function(){if(!x4u){if(Polymer.Base){var p=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{p.apply(this,arguments)}catch(U){_.zi(U)}};
var y=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{y.apply(this,arguments)}catch(U){_.zi(U)}};
var l=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{l.apply(this,arguments)}catch(U){_.zi(U)}};
var q=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{q.apply(this,arguments)}catch(U){_.zi(U)}};
var t=Polymer.Base._listen,E=new WeakMap;Polymer.Base._listen=function(U,b,P){var Z=function(){try{P.apply(this,arguments)}catch(K){_.zi(K)}};
E.set(P,Z);t.call(this,U,b,Z)};
var e=Polymer.Base._unlisten;Polymer.Base._unlisten=function(U,b,P){e.call(this,U,b,E.get(P))}}if(Polymer.Async){var C=Polymer.Async,u=C._atEndOfMicrotask;
C._atEndOfMicrotask=function(){try{u.apply(C,arguments)}catch(U){_.zi(U)}}}if(Polymer.RenderStatus){var a=Polymer.RenderStatus,m=a.afterNextRender;
a.afterNextRender=function(U,b,P){m.call(a,U,function(){try{b.apply(this,arguments)}catch(Z){_.zi(Z)}},P)}}x4u=!0}};
_.Qq=function(p){var y=p?_.AJ(p):"";if(y){if(y.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(y.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(y.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(y.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(y.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.n("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(y.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";y=y.toLowerCase();if(y==="/")return"home";if(y==="/channel_memberships")return"channel-memberships-shopfront";if(y.indexOf("/feed/trending")===0)return"trending";if(y.indexOf("/feed/explore")===0)return"explore";if(y.indexOf("/live")===0)return"live";if(y.indexOf("/results")===0)return"search";if(y.indexOf("/sports")===0)return"sports";if(y.indexOf("/fashion")===0||y.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(y))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(y))return _.n("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(y.indexOf("/channel/")===0||y.indexOf("/user/")===0||y.indexOf("/gaming")===0||y.indexOf("/post/")===0)return"channel";if(fJj(p))return"show";if(y==="/playlist"||y.indexOf("/playlist/")===0||y==="/view_play_list"||y.indexOf("/view_play_list/")===0||y.indexOf("/show/")===0)return"playlist";if(y==="/feed/history"||y.indexOf("/feed/history/")===0)return"history";if(y===
"/new")return"labs";if(y==="/feed/subscriptions")return"subscriptions";if(y.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(y==="/history_controls")return"standalone";if(y.indexOf("/account")===0||y==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(y.indexOf("/paid_memberships")===0||y.indexOf("/refund")===0||y.indexOf("/purchases")===0||y.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(y.indexOf("/product")===0)return"yts-products";if(y.indexOf("/premium")===
0||y.indexOf("/musicpremium")===0)return y.indexOf("/premium/offers")===0||y.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(y==="/cart/checkout"||y==="/cart")return"ypc-checkout";if(y.indexOf("/feed/downloads")===0||y.indexOf("/redeem")===0||y.indexOf("/reporthistory")===0)return"browse";if(y.indexOf("/hashtag")===0)return"hashtag-landing-page";if(y.indexOf("/handle")===0)return"handle";if(y.indexOf("/source")===0)return"audio-pivot";if(y.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(y.indexOf("/playables")===0)return"playables";if(y.indexOf("/create/live/join")===0)return"open-in-app";if(y.indexOf("/shorts")===0)return"shorts";if(y.indexOf("/feed/channels")===0)return"subscriptions-channels";(y=p?_.AJ(p):"")&&y.indexOf("/watch")===0&&_.n("web_watch_enable_learning_journey")?(p=_.tJ(p),p=!!p.list&&p.list.indexOf("LJPP")===0):p=!1;if(p)return"learning_journey_watch"}};
_.K4=function(p){var y,l;(p=(l=_.G(p==null?void 0:p.commandMetadata,_.ul))==null?void 0:l.url)&&(y=_.Qq(p));return y};
fJj=function(p){var y=p?_.AJ(p):"";if(!y)return!1;y=y.toLowerCase();return y.indexOf("/show/")===0||y.indexOf("/playlist")===0&&(p=_.tJ(p),p.list&&p.list.indexOf("EL")===0)?!0:!1};
rC=function(p){var y="unknown",l;var q=((l=_.G(p==null?void 0:p.commandMetadata,_.ul))==null?void 0:l.webPageType)||"";q?(l=q.toLowerCase(),l.startsWith("web_page_type_")&&(l=l.slice(14))):l=q;l&&vmR[l.toUpperCase()]?y=vmR[l.toUpperCase()]:_.G(p,_.wC)||_.G(p,XSo)?y="browse":_.G(p,_.iS)?y="search":_.G(p,_.Eb)&&(y="watch");y==="watch"&&_.K4(p||null)==="learning_journey_watch"&&(y="learning_journey_watch");y==="unknown"&&_.vs(Error("Lf`"+JSON.stringify({clickTrackingParams:p==null?void 0:p.clickTrackingParams,
commandMetadata:p==null?void 0:p.commandMetadata,allEndpointKeys:Object.keys(p||[])})));return y};
_.Si=function(p){if(!_.d4o||p)_.d4o=_.iz();return _.d4o};
_.OP6=function(p){return!!_.G(p,_.Eb)||!!_.G(p,_.FC)&&_.n("kevlar_enable_shorts_prefetch")};
_.om5=function(p,y){p=_.G(p,_.Eb)||_.G(p,_.FC);return"v"+p.videoId+(p.playlistId?"-pl"+p.playlistId:"")+(y?"-an1":"")+(p.params?"-pr"+p.params:"")};
L4=function(p){return function(){return new p}};
k9=function(p){var y=_.WC();return function(){return y.resolve(p)}};
Ygu=function(p){var y=_.UC("web_pbj_log_warning_rate",0);y=y>0&&Math.random()<y;if(!_.G(p,_.FC))return y&&_.vs(Error("Of")),!1;var l;return _.n("shorts_controller_retrieve_seedless_sequence_v2")&&((l=_.G(p,_.FC))==null?void 0:l.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:z86(p)?!0:(y&&_.vs(Error("Pf")),!1)};
z86=function(p){var y=(_.G(p,_.Eb)||_.G(p,_.FC)).videoId;if(!y||!IJj.test(y))return!1;var l;return(p=(l=_.G(p.commandMetadata,_.ul))==null?void 0:l.url)&&(p.includes(y)||p.startsWith("/clip"))?!0:!1};
_.yFt=function(){var p=_.w$();return p.getFlag(192)?p.getFlag(190):!(_.n("web_watch_cinematics_disabled_by_default")||_.n("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&p8c())};
_.NE=function(p,y,l){var q={};q.currentUrl=y;q.vis=p.vis!==void 0?p.vis:0;q.splay=!1;y=_.w$();q.autoCaptionsDefaultOn=y.getFlag(66);y.getFlag(141)?y.getFlag(140)?q.autonavState="STATE_OFF":q.autonavState="STATE_ON":q.autonavState="STATE_NONE";q.html5Preference="HTML5_PREF_WANTS";isNaN(_.OY("STS"))||(q.signatureTimestamp=_.OY("STS"));p.autonav&&(q.autoplay=!0,q.autonav=!0);p.mutedAutoplay&&(q.autoplay=!0,q.mutedAutoplay=!0);p.inlinePlayback&&(q.autoplay=!0,q.autonav=!1,q.isInlineUnmutedPlayback=!!p.inlineUnmuted);
q.referer=l;q.lactMilliseconds=p.lact!==void 0?p.lact.toString():"-1";_.n("enable_unknown_lact_fix_on_html5")&&q.lactMilliseconds==="-1"&&_.vs(new _.SM("Unknown LACT is set in playbackContext.",{"lact in tempData":p.lact||"undefined",autonav:p.autonav||"undefined"}));p={};y.getFlag(194)&&(p.hasShownAmbientMode=!0);y.getFlag(192)&&(p.hasToggledOffAmbientMode=!0);_.yFt()&&(p.watchAmbientModeEnabled=!0);q.watchAmbientModeContext=p;return q};
lou=function(p){var y={},l=p.pbis||0;l&&(y.playbackBeginsInSeconds=l);p.prefetch_reason&&p.prefetch_reason==="hc_pbis"&&(y.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return y};
_.HI=function(p){p=p===void 0?!1:p;var y=_.w$(),l="USER_INTERFACE_THEME_LIGHT";y.getFlag(165)?l="USER_INTERFACE_THEME_DARK":y.getFlag(174)?l="USER_INTERFACE_THEME_LIGHT":_.Da()&&(l="USER_INTERFACE_THEME_DARK");return p?l:qWj()||l};
_.swa=function(){return!_.n("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Da=function(){return _.swa()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.T5=function(){var p=_.w$();return _.swa()&&!p.getFlag(165)&&!p.getFlag(174)};
qWj=function(){var p=p===void 0?window.location.href:p;if(_.n("kevlar_disable_theme_param"))return null;var y=_.AJ(p);if(_.tE_(y))return"USER_INTERFACE_THEME_DARK";try{var l=_.tJ(p).theme;return EGg.get(l)||null}catch(q){}return null};
_.tE_=function(p){return _.n("enable_dark_theme_only_on_shorts")?!(p==null||!p.startsWith("/shorts/")):!1};
_.ecu=function(p,y,l,q,t){y=y===void 0?!1:y;l=l===void 0?!1:l;var E=_.OY("INNERTUBE_CONTEXT");if(!E)return _.Bs(Error("Sf")),{};E=(0,_.Ts.unsafeClone)(E);_.n("web_no_tracking_params_in_shell_killswitch")||delete E.clickTracking;E.client||(E.client={});var e=E.client;e.clientName==="MWEB"&&e.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(e.clientFormFactor=_.OY("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints=window.innerHeight;e.screenPixelDensity=
Math.round(window.devicePixelRatio||1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());e.userInterfaceTheme=_.HI();if(!y){var C=_.Yb6();C&&(e.connectionType=C);_.n("web_log_effective_connection_type")&&(C=pV5())&&(E.client.effectiveConnectionType=C)}var u;if(_.n("web_log_memory_total_kbytes")&&((u=_.l_.navigator)==null?0:u.deviceMemory)){var a;u=(a=_.l_.navigator)==null?void 0:a.deviceMemory;E.client.memoryTotalKbytes=""+u*1E6}y&&q&&!_.n("web_it_context_set_original_url_ks")&&
(e.originalUrl=JFt(_.l_.location.href,q).toString());_.n("web_gcf_hashes_innertube")&&(C=CSu())&&(a=C.coldConfigData,u=C.coldHashData,C=C.hotHashData,E.client.configInfo=E.client.configInfo||{},a&&(E.client.configInfo.coldConfigData=a),u&&(E.client.configInfo.coldHashData=u),C&&(E.client.configInfo.hotHashData=C));a=_.tJ(_.l_.location.href);!_.n("web_populate_internal_geo_killswitch")&&a.internalcountrycode&&(e.internalGeo=a.internalcountrycode);!_.n("web_populate_client_screen_killswitch")&&t&&(e.clientScreen=
t);e.clientName==="MWEB"||e.clientName==="WEB"?(e.mainAppWebInfo||(e.mainAppWebInfo={}),e.mainAppWebInfo.graftUrl=q||_.l_.location.href,_.n("kevlar_woffle")&&_.x9.instance&&(q=_.x9.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!q.appInstalledEventFired&&q.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=qKc(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):e.clientName==="TVHTML5"&&
(!_.n("web_lr_app_quality_killswitch")&&(q=_.OY("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:q})),q=_.OY("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:q}));!_.n("web_populate_time_zone_itc_killswitch")&&(q=owu())&&(e.timeZone=q);(q=mno())?e.experimentsToken=q:delete e.experimentsToken;e=Uno();q=_.cFt();q=(0,_.Ts.getValues)(q.tokenJars);E.request=Object.assign({},E.request,{internalExperimentFlags:e,consistencyTokenJars:q});
!_.n("web_prequest_context_killswitch")&&(e=_.OY("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(E.request.externalPrequestContext=e);q=_.w$();e=q.getFlag(58);q=q.get("gsml","");E.user=Object.assign({},E.user);e&&(E.user.enableSafetyMode=e);q&&(E.user.lockedSafetyMode=!0);_.n("warm_op_csn_cleanup")?l&&(y=_.B2())&&(E.clientScreenNonce=y):!y&&(y=_.B2())&&(E.clientScreenNonce=y);p&&(E.clickTracking={clickTrackingParams:p});if(p=_.I4("yt.mdx.remote.remoteClient_"))E.remoteClient=p;_.BI.getInstance().setLocationOnInnerTubeContext(E);
try{var m=VNt(),U=m.bid;delete m.bid;E.adSignalsInfo={params:[],bid:U};for(var b=_.c(Object.entries(m)),P=b.next();!P.done;P=b.next()){var Z=_.c(P.value),K=Z.next().value,F=Z.next().value;m=K;U=F;p=void 0;(p=E.adSignalsInfo.params)==null||p.push({key:m,value:""+U})}var L,T;if(((L=E.client)==null?void 0:L.clientName)==="TVHTML5"||((T=E.client)==null?void 0:T.clientName)==="TVHTML5_UNPLUGGED"){var O=_.OY("INNERTUBE_CONTEXT");O.adSignalsInfo&&(E.adSignalsInfo.advertisingId=O.adSignalsInfo.advertisingId,
E.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",E.adSignalsInfo.limitAdTracking=O.adSignalsInfo.limitAdTracking)}}catch(f){_.Bs(f)}return E};
_.hcl=function(p){var y=new f4(_.OY("ONE_PICK_URL",""));y.urlParamMap_.set("hostId",p);(p=_.OY("GAPI_LOCALE"))&&y.urlParamMap_.set("hl",p);(p=_.OY("SESSION_INDEX"))&&y.urlParamMap_.set("authuser",p);(p=_.OY("DELEGATED_SESSION_ID"))&&y.urlParamMap_.set("groupId",p);return y};
u78=function(){var p=_.WC(),y=p.resolve(_.vI);p=p.resolve(_.XC);return new C1t(y,p)};
WSg=function(p){if(window.IntersectionObserver)return new RcR(p,400);throw new TypeError("Zf");};
mIl=function(){var p=Hammer.TouchAction,y=p.prototype.preventDefaults;p.prototype.preventDefaults=function(l){var q=this.actions.indexOf("pan-down")>-1;if(!q)return y.call(this,l);if(!aoj){var t=l.srcEvent;l=l.direction;var E;if((E=this.manager)==null?0:E.session.prevented)t.preventDefault();else if(q&&l&Hammer.DIRECTION_DOWN)return this.preventSrc(t)}}};
UIt=function(p){if(!p||p.size===0)return Hammer.DIRECTION_ALL;if(p.size===2){if(p.has("up")&&p.has("down"))return Hammer.DIRECTION_VERTICAL;if(p.has("right")&&p.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(p.size===1){if(p.has("up"))return Hammer.DIRECTION_UP;if(p.has("down"))return Hammer.DIRECTION_DOWN;if(p.has("right"))return Hammer.DIRECTION_RIGHT;if(p.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.jwu=function(){return $I5?Promise.resolve($I5):new Promise(function(p,y){var l=self.indexedDB.open("swpushnotificationsdb");l.onerror=y;l.onsuccess=function(){var q=l.result;if(q.objectStoreNames.contains("swpushnotificationsstore"))$I5=q,p($I5);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.jwu()};
l.onupgradeneeded=b96})};
b96=function(p){p=p.target.result;p.objectStoreNames.contains("swpushnotificationsstore")&&p.deleteObjectStore("swpushnotificationsstore");p.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
Gut=function(p){var y=nGL(),l;return _.h(function(q){switch(q.nextAddress){case 1:return _.Ve(q,2),q.yield(p.match(y,{cacheName:"yt-appshell-assets"}),4);case 4:l=q.yieldResult;_.pK(q,3);break;case 2:_.i6(q);case 3:return q.return(l)}})};
nGL=function(){var p=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?P1_.registration.scope:AFt;p.endsWith("/")&&(p=p.slice(0,-1));return p+"/app_shell_home"};
Z9L=function(p){p.map(function(y){return y.source}).join("|")};
_.MEc=function(p){return _.h(function(y){return y.return(Gut(p))})};
VE6=function(){var p=window.caches,y;return _.h(function(l){if(l.nextAddress==1)return l.yield(_.MEc(p),2);y=l.yieldResult;return l.return(!!y)})};
SWo=function(){_.h(function(p){if(p.nextAddress==1){if(gGm)return p.jumpTo(0);gGm=!0;if(_.n("enable_system_health_primes_monitoring"))return _.Go(Qwa,3E4),KSt(),p.return();if(!(Math.random()<_.UC("web_system_health_fraction")))return p.jumpTo(0);w8g={heightPixels:screen.height,widthPixels:screen.width};dC&&!isNaN(dC.jsHeapSizeLimit)&&(w8g.memoryTotalKbytes=String(Math.round(dC.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(w8g.devicePixelRatio=window.devicePixelRatio);return p.yield(i9_(),4)}_.Go(Qwa,
3E4);return p.yield(rF8(),0)})};
i9_=function(){return _.h(function(p){if(p.nextAddress==1)return OK.intersectionObserverPresent="IntersectionObserver"in window,OK.serviceWorkerPresent="serviceWorker"in navigator,OK.webSharePresent="share"in navigator,OK.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,OK.cacheStoragePresent="caches"in window,OK.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,OK.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
OK.webkitTemporaryStoragePresent="webkitTemporaryStorage"in oU&&oU.webkitTemporaryStorage&&"queryUsageAndQuota"in oU.webkitTemporaryStorage,OK.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",p.yield(KN8(),2);OK.indexedDbPresent=p.yieldResult;OK.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;OK.broadcastChannelPresent="BroadcastChannel"in window;OK.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(OK.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,OK.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.rR(p)})};
Qwa=function(){var p=9E4+Math.random()*2E3;_.Rd()>p||(_.n("enable_system_health_primes_monitoring")?KSt():rF8())};
rF8=function(){var p;return _.h(function(y){if(y.nextAddress==1)return y.yield(FS6(),2);p=y.yieldResult;_.TX("systemHealthCaptured",p);_.rR(y)})};
KSt=function(){var p={metric:{}},y=LSt();y.networkEvents.length&&(p.metric.networkEvents=ku_(y));_.TX("systemHealthCaptured",p)};
FS6=function(){var p,y,l,q,t,E,e,C,u,a;return _.h(function(m){switch(m.nextAddress){case 1:p={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};y=window.screen;_.n("enable_is_extended_monitoring")&&y&&"isExtended"in y&&(p.isExtended=!!y.isExtended);l={metric:{staticContext:w8g,dynamicContext:p,webMetric:N4o,webApiSupport:OK}};
if(q=_.B2())l.csn=q;dC&&(l.metric.webMetric.currentHeapKbytes=Math.round(dC.usedJSHeapSize/1E3));window.matchMedia&&(l.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,l.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,l.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in oU&&typeof oU.getBattery==="function")){m.jumpTo(2);break}return m.yield(oU.getBattery(),3);case 3:if(t=
m.yieldResult)l.metric.dynamicContext.chargingStatus=t.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(l.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(OK.storageEstimatePresent)return m.yield(navigator.storage.estimate(),8);if(!OK.webkitTemporaryStoragePresent){m.jumpTo(5);break}return m.yield(DIt(),7);case 7:E=m.yieldResult;m.jumpTo(5);break;case 8:E=m.yieldResult;case 5:return l.metric.dynamicContext.deviceStorageQuotaMbytes=((e=E)==null?0:e.quota)?String(Math.round(E.quota/
1048576/10)*10):"-1",l.metric.dynamicContext.deviceStorageUsageMbytes=((C=E)==null?0:C.usage)?String(Math.round(E.usage/1048576/10)*10):"-1",u=l.metric.dynamicContext,m.yield(VE6(),9);case 9:return u.hasAppShell=m.yieldResult,a=LSt(),a.networkEvents.length&&(l.metric.networkEvents=ku_(a)),m.return(l)}})};
DIt=function(){return new Promise(function(p){var y;OK.webkitTemporaryStoragePresent&&(y=oU.webkitTemporaryStorage)!=null&&y.queryUsageAndQuota?oU.webkitTemporaryStorage.queryUsageAndQuota(function(l,q){p({usage:l,quota:q})}):p(void 0)})};
_.z5=function(p){p&=16777215;p=[(p&16711680)>>16,(p&65280)>>8,p&255];return H9g(p[0],p[1],p[2])};
_.Y9=function(p){p=[(p&16711680)>>>16,(p&65280)>>>8,p&255,(p&4278190080)>>>24];var y=_.T46(p,function(l){return l==(l&255)});
p[3]=(p[3]/255).toFixed(3);if(!y)throw Error("$f`"+p.join(","));return"rgba("+p.join(",")+")"};
_.xIt=function(p){return[(p&16711680)>>>16,(p&65280)>>>8,p&255]};
_.B4j=function(p){p=p.map(function(y){y/=255;return y<=.03928?y/12.92:Math.pow((y+.05)/1.05,2.4)});
return p[0]*.2126+p[1]*.7152+p[2]*.0722};
IU=function(p,y){p=_.xIt(p);return"rgba("+p[0]+", "+p[1]+", "+p[2]+", "+y+")"};
_.foR=function(){try{return!!self.localStorage}catch(p){return!1}};
O9u=function(){if(vGj())_.vs(Error("ag"));else{var p=document.createElement("iframe");p.style.display="none";var y=y===void 0?window.location.href:y;var l=_.xQ(_.OY("PERSIST_IDENTITY_IFRAME_URL"));y=l?l:(new URL(y)).host.indexOf("studio")===0?_.bz(X86,"persist_identity"):_.bz(dI_,"persist_identity");_.dmo(p,1,y);p.id="persist_identity";var q;(q=document.body)==null||q.appendChild(p)}};
vGj=function(){var p=oGc;p||(p=document.querySelector("#persist_identity"));return p};
zc5=function(){var p=!1;try{p=!!window.sessionStorage.getItem("session_logininfo")}catch(y){p=!0}return(_.OY("INNERTUBE_CLIENT_NAME")==="WEB"||_.OY("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&p};
YWg=function(p,y){if(!zc5())return!1;y||(y=_.OY("LOGIN_INFO"));return y?(p.session_logininfo=y,!0):!1};
p5c=function(p,y){p=p===void 0?!1:p;if((y===void 0||!y)&&Iol!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.o4("LOG_STICKINESS",!1)){y=_.B2();var l=_.xc(),q={identityStickinessData:{initialState:Iol}};y&&l&&_.Je(y,l,q)}if(y=vGj())if(l=y.src?(new URL(y.src)).origin:"*",p){var t;(t=y.contentWindow)==null||t.postMessage({action:"clear"},l)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(p=window.sessionStorage.getItem("session_logininfo"))){var E;(E=y.contentWindow)==null||E.postMessage({loginInfo:p},l)}};
_.pv=function(p){p=p===void 0?!0:p;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.dT("LOGIN_INFO",""),p&&window.sessionStorage.setItem("from_switch_account","1"),p5c(!0,p)}catch(y){}};
yV8=function(p){p&&(p.startsWith("https://accounts.google.com/AddSession")?_.pv():p.startsWith("https://accounts.google.com/ServiceLogin")?_.pv():p.startsWith("https://myaccount.google.com")&&_.YP(p).getPath().endsWith("/youtubeoptions")&&_.pv())};
yU=function(p,y){yV8(p);if(_.o4("LOGGED_IN",!0)&&zc5()){var l=XEl(p);l==null&&(l={});YWg(l,y)&&_.hO(p,l)}};
lq8=function(){function p(y){for(y=y.target;y&&y.nodeName!=="A";)if(y=y.parentNode,!(y&&y instanceof HTMLElement))return;if(y&&!y.hasAttribute("download")&&y.getAttribute("rel")!=="external"&&y.href)return y.href}
document.addEventListener("mousedown",function(y){y.button!==0&&(y=p(y))&&yU(y)});
document.addEventListener("click",function(y){(y=p(y))&&yU(y)})};
tK5=function(){var p=new qIc;try{if(_.o4("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(C){p.increment(5,!1);return}if(_.OY("LOGIN_INFO")){var y=sbm?sbm:window.location;_.OY("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&O9u();var l=XEl(y.href);l==null&&(l={});var q=l.session_logininfo,t=Number(window.sessionStorage.getItem("stickiness_reload")),E=q===_.OY("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
t>=2||E)t>=2?p.increment(2,E):E?p.increment(7,E):window.sessionStorage.getItem("session_logininfo")||(p.increment(3,E),Iol="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.OY("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.OY("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))p.increment(4,E),window.sessionStorage.removeItem("stickiness_reload");
else if(t<2){window.sessionStorage.setItem("stickiness_reload",String(t+1));var e=y.href;e=_.Cy(e,"sttick");yU(e,window.sessionStorage.getItem("session_logininfo"));e=_.EC(e,{sttick:t});p.increment(t,E);_.ywL(y,e)}}else p.increment(6,!1)}else _.pv(!1)}catch(C){}};
_.lt=function(p,y,l,q,t){y=y===void 0?{}:y;l=l===void 0?"":l;q=q===void 0?window:q;p=_.JJ(p,y);yU(p);l=_.XX(p+l,t);_.ywL(q.location,l)};
_.E$5=function(p,y,l,q,t){t=t===void 0?!1:t;l&&_.hO(p,l);l=_.XX(p);var E=_.xX(l);p!=E&&_.ph(Error("bg`"+p));p=E;y=y||Yc(p).toString(36);try{if(t)return t=p,t=Egl(t),yU(t),_.s8(window,t,y,"attributionsrc")}catch(e){_.zi(e)}yU(p);return _.s8(window,l,y,q)};
JVc=function(p){if(p.urlEndpoint){if(p=_.tJ(p.urlEndpoint.url),p.adurl)return uv(p.adurl)}else if(p.watchEndpoint)return"//www.youtube.com/watch?v="+p.watchEndpoint.videoId;return null};
cVm=function(p){if(!p||!p.reportingPings)return null;var y={};p.reportingPings.forEach(function(l){l.pingType in y?y[l.pingType].push(l.url):y[l.pingType]=[l.url]});
return{adpings:sJo(y)}};
_.qH=function(){return{isShellLoad:_.o4("IS_SHELL_LOAD",!1)}};
hRu=function(){navigator.serviceWorker.getRegistrations().then(function(p){p.forEach(eRt)})};
eRt=function(p){p&&_.Cx5(u9j,p.scope)};
_.Cx5=function(p,y){y={scope:y||_.$h("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.LO(p),y)};
ss=function(p,y,l,q){if(y&&y.serializedYpcCujLoggingParams){if(l){var t={};t.transactionErrorType=l;q&&(t.errorMessage=q);y.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:t}}}l={};l.ypcCujContext=y;p=_.Za("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",p,l);_.ME(_.Vq(),p,"FLOW_TYPE_YPC_ACQUISITION")}};
_.RRm=function(p,y,l,q){var t={};t.serializedTransactionFlowLoggingParams=y;l&&(t.errorType=l);q&&(t.errorMessage=q);_.TX(p,t);_.xn()};
_.WAl=function(p){p&&_.RRm("transactionFlowStarted",p)};
_.aq6=function(p){p&&_.RRm("transactionFlowCancelled",p)};
_.tx=function(p,y,l){y&&_.RRm("transactionFlowFailed",y,p,l)};
m05=function(p){var y=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");y&&(y.inert=p)};
_.Es=function(){this.megabloxUrl_=null};
_.Jx=function(p){try{var y=U0t==null?void 0:U0t.composedPath(p)}catch(l){y=p.composedPath?p.composedPath():[]}return y&&y.length>0?y:p.composedPath?p.composedPath():[]};
_.cm=function(p){return _.Jx(p)[0]};
_.eR=function(p){if(!(p instanceof Element))return null;p=p.classList?Array.from(p.classList):void 0;if(!p)return null;var y=p.indexOf("style-scope");return y>-1&&y+1<p.length?p[y+1]:null};
hx=function(p){if(!(p instanceof HTMLElement))return null;var y=p&&(p.$$||p.polymerController)?p.tagName.toLowerCase():null;return y?y:_.eR(p)};
$0l=function(p,y){return p.replace(/[^a-z]*[^\s]+/g,function(l){return l+".style-scope."+y})};
jb6=function(p,y){return y?p.split(",").map(function(l){return $0l(l.trim(),y)}).join(", "):p};
_.Cv=function(p){var y,l,q,t;return(t=(q=(l=(y=p.root)!=null?y:p.shadowRoot)!=null?l:p.__shady_native_shadowRoot)!=null?q:p.__shady_shadowRoot)!=null?t:p};
ut=function(p){return p instanceof ShadowRoot?ShadowRoot:p instanceof DocumentFragment?DocumentFragment:p instanceof Document?Document:HTMLElement};
bdu=function(p){var y,l,q;return(q=(l=(y=p.parentElement)!=null?y:p.__shady_native_parentElement)!=null?l:p.__shady_parentElement)!=null?q:null};
n$5=function(p){var y,l,q;return(q=(l=(y=p.parentNode)!=null?y:p.__shady_native_parentNode)!=null?l:p.__shady_parentNode)!=null?q:null};
GOl=function(p){var y,l,q;return(q=(l=(y=p.__shady_parentNode)!=null?y:p.__shady_native_parentNode)!=null?l:p.parentNode)!=null?q:null};
PxL=function(p){var y,l;return(l=(y=n$5(p))!=null?y:p.host)!=null?l:null};
AVl=function(p){var y,l,q;return(q=(l=(y=p.nextSibling)!=null?y:p.__shady_native_nextSibling)!=null?l:p.__shady_nextSibling)!=null?q:null};
Zdm=function(p){var y,l,q;return(q=(l=(y=p.previousSibling)!=null?y:p.__shady_native_previousSibling)!=null?l:p.__shady_previousSibling)!=null?q:null};
MKu=function(p){var y,l,q;return(q=(l=(y=p.nextElementSibling)!=null?y:p.__shady_native_nextElementSibling)!=null?l:p.__shady_nextElementSibling)!=null?q:null};
VKm=function(p){var y,l,q;return(q=(l=(y=p.previousElementSibling)!=null?y:p.__shady_native_previousElementSibling)!=null?l:p.__shady_previousElementSibling)!=null?q:null};
g$L=function(p){var y,l,q;return new Set([].concat(_.xq((y=p.children)!=null?y:[]),_.xq((l=p.__shady_native_children)!=null?l:[]),_.xq((q=p.__shady_children)!=null?q:[])))};
Qbc=function(p){var y,l,q;return new Set([].concat(_.xq((y=p.childNodes)!=null?y:[]),_.xq((l=p.__shady_native_childNodes)!=null?l:[]),_.xq((q=p.__shady_childNodes)!=null?q:[])))};
KAa=function(p){if(!p)return null;var y=_.eR(p);if(!y){var l;return(l=Node.prototype.getRootNode)==null?void 0:l.call(p)}y=y.toUpperCase();for(p=bdu(p);p&&p.tagName!==y;)p=bdu(p);return p?_.Cv(p):null};
w5L=function(p){for(;p&&!(p instanceof HTMLElement);)p=PxL(p);return p};
id8=function(p){var y=w5L(p);return p===y?_.eR(p):y?hx(y):null};
rVc=function(p){return(p=w5L(p))?hx(p):null};
SIt=function(p){if(p instanceof Comment)return!1;if(p instanceof Text){var y,l;if(((l=(y=p.textContent)==null?void 0:y.trim())!=null?l:"")==="")return!1}return!0};
aM=function(p,y,l){var q=y(p);for(l=l===void 0?rVc(p):l;q&&(id8(q)!==l||!SIt(q));)p=q,q=y(p);return q};
FAc=function(p,y,l){if(!y)return null;p=rVc(p);return id8(y)===p&&SIt(y)?y:aM(y,l,p)};
LAt=function(p){return aM(p,GOl,_.eR(p))};
kOa=function(p){return aM(p,MKu)};
N7L=function(p){return aM(p,AVl)};
D0m=function(p){return aM(p,VKm)};
Hd_=function(p){return aM(p,Zdm)};
T7l=function(p){return FAc(p,p.firstChild||p.__shady_native_firstChild||p.__shady_firstChild||null,AVl)};
x0g=function(p){var y,l,q;var t=(q=(l=(y=p.firstElementChild)!=null?y:p.__shady_native_firstElementChild)!=null?l:p.__shady_firstElementChild)!=null?q:null;return FAc(p,t,MKu)};
B7l=function(p){var y,l,q;var t=(q=(l=(y=p.lastChild)!=null?y:p.__shady_native_lastChild)!=null?l:p.__shady_lastChild)!=null?q:null;return FAc(p,t,Zdm)};
fqc=function(p){var y,l,q;var t=(q=(l=(y=p.lastElementChild)!=null?y:p.__shady_native_lastElementChild)!=null?l:p.__shady_lastElementChild)!=null?q:null;return FAc(p,t,VKm)};
v$o=function(p){var y=rVc(p);return Array.from(Qbc(p)).filter(function(l){return id8(l)===y})};
X5o=function(p){var y=hx(p);return Array.from(g$L(p)).filter(function(l){return _.eR(l)===y})};
_.mr=function(p,y,l){if(p instanceof HTMLElement&&_.eR(p)===l){var q=Array.from(p.classList).indexOf("style-scope");if(q===-1)p.classList.add("style-scope"),p.classList.add(y);else if(!(q+1>=p.classList.length)){q=p.classList[q+1];var t,E;p==null||(t=p.classList)==null||(E=t.replace)==null||E.call(t,q,y)}}if(p instanceof HTMLElement||p instanceof DocumentFragment)for(t=_.c(g$L(p)),E=t.next();!E.done;E=t.next())_.mr(E.value,y,l);return p};
Us=function(p,y){if(p instanceof HTMLElement&&_.eR(p)===y){var l=Array.from(p.classList).indexOf("style-scope");l===-1||l+1>=p.classList.length||p.classList.remove("style-scope",p.classList[l+1])}if(p instanceof HTMLElement||p instanceof DocumentFragment){l=_.c(p.children);for(var q=l.next();!q.done;q=l.next())Us(q.value,y)}return p};
_.d0l=function(p,y){return ut(p).prototype.appendChild.call(p,y)};
Odt=function(p,y){if(p===y)return!0;p=Qbc(p);return Array.from(p).some(function(l){return Odt(l,y)})};
_.jR=function(p,y){if(p instanceof $8)return p;(y==null?0:y.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(p,"ownerDocument")&&Object.defineProperty(p,"ownerDocument",{get:function(){return window.document}});
return new $8(p)};
zR6=function(){var p=$8.prototype,y=[].concat(_.xq(o$j?[]:["getRootNode"]),["setAttribute","removeAttribute"]);y=_.c(y);for(var l=y.next(),q={};!l.done;q={method$jscomp$51:void 0},l=y.next())q.method$jscomp$51=l.value,p[q.method$jscomp$51]=function(t){return function(){return this.host[t.method$jscomp$51].apply(this.host,arguments)}}(q)};
Iqu=function(){var p=$8.prototype,y=[].concat(_.xq(o$j?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.xq(YIt?[]:["querySelector","querySelectorAll"]));y=_.c(y);for(var l=y.next(),q={};!l.done;q={method$jscomp$52:void 0},l=y.next())q.method$jscomp$52=l.value,p[q.method$jscomp$52]=function(t){return function(){return this.root[t.method$jscomp$52].apply(this.root,arguments)}}(q)};
lXm=function(){var p=$8.prototype,y=[].concat(_.xq(pxa?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.xq(yIm?[]:["parentNode"]));y=_.c(y);for(var l=y.next(),q={};!l.done;q={prop$jscomp$62:void 0},l=y.next())q.prop$jscomp$62=l.value,Object.defineProperty(p,q.prop$jscomp$62,{get:function(t){return function(){return this.host[t.prop$jscomp$62]}}(q),
configurable:!0})};
tI8=function(){var p=$8.prototype,y=["activeElement"].concat(_.xq(pxa?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.xq(qQu?[]:["children"]),_.xq(szL?[]:["lastChild"]));y=_.c(y);for(var l=y.next(),q={};!l.done;q={prop$jscomp$63:void 0},l=y.next())q.prop$jscomp$63=l.value,Object.defineProperty(p,q.prop$jscomp$63,{get:function(t){return function(){return this.root[t.prop$jscomp$63]}}(q),
configurable:!0})};
Ek8=function(){for(var p=$8.prototype,y=_.c(["innerHTML","textContent"]),l=y.next(),q={};!l.done;q={prop$jscomp$64:void 0},l=y.next())q.prop$jscomp$64=l.value,Object.defineProperty(p,q.prop$jscomp$64,{get:function(t){return function(){return this.root[t.prop$jscomp$64]}}(q),
set:function(t){return function(E){this.root[t.prop$jscomp$64]=E}}(q),
configurable:!0})};
JIl=function(p){var y=$8.prototype;p=_.c(Object.entries(p));for(var l=p.next(),q={};!l.done;q={fn$jscomp$387:void 0},l=p.next()){var t=_.c(l.value);l=t.next().value;t=t.next().value;q.fn$jscomp$387=t;y[l]=function(E){return function(){return E.fn$jscomp$387.apply(null,[this.host.node||this.host].concat(_.xq(arguments)))}}(q)}};
ejc=function(){for(var p=$8.prototype,y=_.c(Object.entries(cIu)),l=y.next(),q={};!l.done;q={fn$jscomp$388:void 0},l=y.next()){var t=_.c(l.value);l=t.next().value;t=t.next().value;q.fn$jscomp$388=t;Object.defineProperty(p,l,{get:function(E){return function(){return E.fn$jscomp$388.apply(null,[this.host.node||this.host].concat(_.xq(arguments)))}}(q),
configurable:!0})}};
_.bt=function(p){return p instanceof hj8||p instanceof Document?p:new hj8(p)};
CYR=function(){for(var p=hj8.prototype,y=_.c("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),l=y.next(),q={};!l.done;q={method$jscomp$53:void 0},l=y.next())q.method$jscomp$53=l.value,p[q.method$jscomp$53]=function(t){return function(){return HTMLElement.prototype[t.method$jscomp$53].call.apply(HTMLElement.prototype[t.method$jscomp$53],[this.node].concat(_.xq(arguments)))}}(q)};
u2t=function(){for(var p=hj8.prototype,y=_.c("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),l=y.next(),q={};!l.done;q={prop$jscomp$65:void 0},l=y.next())q.prop$jscomp$65=l.value,Object.defineProperty(p,q.prop$jscomp$65,{get:function(t){return function(){var E;return(E=this.node["__shady_native_"+t.prop$jscomp$65])!=null?E:this.node[t.prop$jscomp$65]}}(q),
configurable:!0})};
_.nv=function(p,y,l){l===void 0&&(l=!p.classList.contains(y));l?p.classList.add(y):p.classList.remove(y)};
_.G9=function(p,y,l){l===void 0&&(l=!p.hasAttribute(y));if(y==="class")throw Error("fg");l?_.bt(p).setAttribute(y,""):_.bt(p).removeAttribute(y)};
Rjj=function(p){return(p.localName!=="slot"?[]:(0,_.Pm)(p).assignedNodes({flatten:!0})).filter(function(y){return y.nodeType===Node.ELEMENT_NODE})};
_.WTo=function(p){return(p=_.jR(p).querySelector("slot"))&&p.localName==="slot"?Rjj(p):[]};
_.Ax=function(p,y){window.ShadyCSS&&window.ShadyCSS.styleSubtree(p,y)};
ZL=function(p,y){var l=y.bind(p);return function(q){l(q,q.detail)}};
_.MH=function(p,y){var l=aXg.get(p);l||(l=new WeakMap,aXg.set(p,l));if(l.has(y))return l.get(y);if(_.n("web_fi_listen_disable_bound_fn_helper")){var q=y.bind(p);p=function(t){q(t,t==null?void 0:t.detail)}}else p=ZL(p,y);
l.set(y,p);return p};
$wu=function(p,y){mwm(p);p.created[Uwl].push(y)};
mwm=function(p){if(!p.created||!p.created[Uwl]){var y=p.created,l=y?[y]:[];p.created=function(){for(var q=_.c(l),t=q.next();!t.done;t=q.next())t.value.apply(this)};
p.created[Uwl]=l}};
jzt=function(p){return function(){var y=_.oX.apply(0,arguments);return function(l,q,t){p.apply(null,_.xq(y))(l,q,t)}}};
bHR=function(){return function(){var p=_.oX.apply(0,arguments);return function(y,l,q){Ck_.apply(null,_.xq(p))(y,l,q)}}};
_.V=function(p){return bHR()(p)};
_.g=function(){return jzt(aIt).apply(null,_.xq(_.oX.apply(0,arguments)))};
_.VU=function(p){return _.n("pbcm_fi_listen_decorators")?nkm(p):jzt(Ru8)(p)};
nkm=function(p){return function(y,l){$wu(y,function(){var q=this[l],t=_.n("web_fi_listen_disable_bound_fn_helper")?function(E){q(E,E.detail)}.bind(this):ZL(this,q);
G3g.has(p)?Te(this.hostElement,p,t):this.hostElement.addEventListener(p,t)})}};
_.gd=function(){return jzt(WCt).apply(null,_.xq(_.oX.apply(0,arguments)))};
_.Q=function(p){p=p===void 0?{}:p;return jzt(udt)(p)};
_.wd=function(p){if(p.hostElement&&p!==p.hostElement){var y=_.FK(p.hostElement);y=p.renderIdom?y:y.shadowRoot}y||(p=p.root,y=p instanceof Node?_.FK(p):null);return y};
_.rd=function(p){return PYj?AI5(p):function(y,l){Object.defineProperty(y,l,{get:function(){var q;return(q=_.wd(this))==null?void 0:q.querySelector(p)},
enumerable:!0,configurable:!0})}};
AI5=function(p){return function(y,l){Object.defineProperty(y,l,{get:function(){var q,t=(q=_.jR(this.hostElement))==null?void 0:q.querySelector(p);if(t)return t;var E;return(E=_.wd(this))==null?void 0:E.querySelector(p)},
enumerable:!0,configurable:!0})}};
_.SR=function(p){return PYj?ZHl(p):function(y,l){Object.defineProperty(y,l,{get:function(){var q;return(q=_.wd(this))==null?void 0:q.querySelectorAll(p)},
enumerable:!0,configurable:!0})}};
ZHl=function(p){return function(y,l){Object.defineProperty(y,l,{get:function(){var q,t=(q=_.jR(this.hostElement))==null?void 0:q.querySelectorAll(p);if(t==null?0:t.length)return t;var E;return(E=_.wd(this))==null?void 0:E.querySelectorAll(p)},
enumerable:!0,configurable:!0})}};
MI_=function(p){return function(y){if(![_.c2,_.w].includes(Object.getPrototypeOf(y.prototype).constructor))throw Error("gg");qfL(Object.assign({},typeof p!=="string"?p:{is:p,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(y)}};
_.Lv=function(){var p=p===void 0?{}:p;return function(y){if(![eY,_.FA].includes(Object.getPrototypeOf(y.prototype).constructor))throw Error("hg");sCo(Object.assign({},p,{disableInheritanceCheck:!0}))(y)}};
gk5=function(p,y){VIu[p]!=null||(VIu[p]=new Set);VIu[p].add(y)};
_.k8=function(){var p=_.gd.apply(null,_.xq(_.oX.apply(0,arguments)));return function(y,l){gk5(y.is,l);p(y,l)}};
Hm=function(p,y,l){if(NH(p)&&!Qzt.has(y)){y=y.replace(/^JSC\$[\d]+_/,"");y=y.replace(/\.\d+(\.|$)/g,function(E,e){return".#"+e});
DL[p]!=null||(DL[p]={});var q,t;(q=DL[p])[t=y]!=null||(q[t]=new Set);DL[p][y].has(l)||(DL[p][y].add(l),_.TX("polymerPropertyAccessEvent",{componentName:p,propertyName:y,accessType:l}))}};
KTa=function(){return _.n("polymer_property_access_logging_debug")||_.n("polymer_enable_property_access_logging")};
NH=function(p){if(_.n("polymer_property_access_logging_debug"))return!0;if(!_.n("polymer_enable_property_access_logging"))return!1;wxt||(wxt=Date.now());return(Yc(p)+wxt)%100<_.UC("polymer_property_access_logging_percent")};
iHR=function(p,y){return NH(y)&&p.hostElement.loggingStatus?new Proxy(p,{get:function(l,q,t){if(l.hostElement.loggingStatus.bypassProxyController)return l[q];l.hostElement.loggingStatus.isExternalGet=!0;var E=l[q];l.hostElement.loggingStatus.isExternalGet=!1;if(E instanceof Function)return function(){var e=_.oX.apply(0,arguments);try{return l.hostElement.loggingStatus.currentExternalCall=q,Hm(y,q,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),E.apply(this===t?l:this,e)}finally{l.hostElement.loggingStatus.currentExternalCall=
void 0}};
Hm(y,q,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return E},
set:function(l,q,t){if(l.hostElement.loggingStatus.bypassProxyController)return l[q]=t,!0;l.hostElement.loggingStatus.isRendererStamper?Hm(y,q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):l.hostElement.loggingStatus.isDeclarativeExternal||Hm(y,q,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{l.hostElement.loggingStatus.currentExternalSet=q,l[q]=t}finally{l.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):p};
rIt=function(p,y){p&&p.loggingStatus&&!p.loggingStatus.isDeclarativeExternal&&!p.loggingStatus.isExternalGet&&p.loggingStatus.currentExternalSet!==y&&Hm(p.tagName.toLowerCase(),y,"PROPERTY_ACCESS_GET_INTERNAL")};
T9=function(p,y,l){p&&(l||p.loggingStatus&&!p.loggingStatus.isInitializing&&!p.loggingStatus.isDefiningPropertyAccessor&&p.loggingStatus.currentExternalSet!==y)&&Hm(p.tagName.toLowerCase(),y,"PROPERTY_ACCESS_SET_INTERNAL")};
SQ5=function(){return{_definePropertyAccessor:function(p,y){var l=this,q=l.hostElement.loggingStatus;q&&(q.isDefiningPropertyAccessor=!0);var t=l[p];t!==void 0&&(l.__data?l._setPendingProperty(p,t):(l.__dataProto!=null||(l.__dataProto={}),l.__dataProto[p]=t));q&&(q.isDefiningPropertyAccessor=!1);Object.defineProperty(this,p,{get:function(){rIt(l.hostElement,p);return this.__data[p]},
set:function(E){y||this._setPendingProperty(p,E,!0)&&this._invalidateProperties()}})},
created:function(){var p=this._setPendingProperty.bind(this);this._setPendingProperty=function(y,l,q){T9(this.hostElement,y);return p.apply(this,[y,l,q])}}}};
FT8=function(p){KTa()&&_.V(x8.prototype)(p.prototype,"__templateBindingLoggingBehavior")};
LTl=function(p,y){if(y.resolvedFactories.length!==p.resolvedFactories.length)return!0;y=_.c(y.resolvedFactories.entries());for(var l=y.next();!l.done;l=y.next()){var q=_.c(l.value);l=q.next().value;q=q.next().value;if(q.providerClass){if(q.providerClass!==p.resolvedFactories[l].providerClass)return!0}else if(q.providerValue){if(q.providerValue!==p.resolvedFactories[l].providerValue)return!0}else if(q.factory!==p.resolvedFactories[l].factory)return!0}return!1};
k3m=function(p,y){p=_.c(p);for(var l=p.next();!l.done;l=p.next())if(l=l.value,l.constructor===Array)k3m(l,y);else{var q=y;q.has(l)||(l.inject&&q.add(l),l.behaviors&&k3m(l.behaviors,q))}};
Bm=function(p,y){var l=p[y];p[y]=function(){var q=_.oX.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(l)return l.apply(this,q)}};
T1t=function(){_.fv.Class=function(l,q){l=N1l(l,q);Bm(l.prototype,"created");return l};
Bm(XA.prototype,"_initializeProperties");Bm(_.dd.prototype,"_initializeProperties");if(Dwj)Bm(HHl,"created");else{var p=function(){Bm(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))p();else{var y=customElements.define;customElements.define=function(l,q,t){y.call(customElements,l,q,t);l==="tp-yt-iron-list"&&(p(),customElements.define=y)}}}};
B16=function(p,y){p.prototype.behaviors=p.prototype.behaviors||[];p.prototype.behaviors.unshift(xw6.InjectBehavior);p.prototype.provide=y};
_.z9=function(p){return function(y){if(!p.disableElementRegistration){p.noInjection||B16(y,p.providers);var l=y.prototype;l.__templateHelpers||Ck_(Os.prototype)(l,"__templateHelpers");l=p.is;fX6||(fX6=Date.now());(Yc(l)+fX6)%100<_.UC("polymer_log_prop_change_observer_percent")&&Ck_(oM.prototype)(y.prototype,"__propertyObserverObserver");y.prototype.behaviors=y.prototype.behaviors||[];y.prototype.behaviors.unshift(_.vkc.YtHostElementBehavior);FT8(y);MI_({is:p.is,notifyObserversOnUndefined:p.notifyObserversOnUndefined!==
!1,fastInit:p.fastInit,template:p.template,disableEnforceFastDefaultValuesCheck:!0})(y)}}};
_.k=function(p){return _.z9({is:p.is,template:p.template,disableElementRegistration:p.disableElementRegistration,cssBuildOptOut:p.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
OHc=function(p,y){if(Xx8){p=new p;for(var l=_.c(Object.getOwnPropertyNames(p)),q=l.next();!q.done;q=l.next())q=q.value,y[q]=p[q];for(l=y;l&&l!==Object.prototype;l=Object.getPrototypeOf(l)){q=_.c(Object.getOwnPropertyNames(l));for(var t=q.next();!t.done;t=q.next())t=t.value,p.hasOwnProperty(t)||Object.defineProperty(p,t,dw8(y,t))}}else p.apply(y)};
dw8=function(p,y){return{get:function(){var l=p[y];return l instanceof Function?l.bind(p):l},
set:function(l){p[y]=l}}};
zjt=function(p,y){for(var l=p._noAccessors,q=_.c(Object.getOwnPropertyNames(p)),t=q.next();!t.done;t=q.next())if(t=t.value,!ok6.has(t))if(l)y[t]=p[t];else{var E=Object.getOwnPropertyDescriptor(p,t);E&&(E.configurable=!0,Object.defineProperty(y,t,E))}};
YQu=function(p,y,l){return function(q){if(l){var t=l();q.model=t}if(p[y])p[y](q,q.detail)}};
Y8=function(p){var y=[];if(typeof p==="string")p.length>0&&y.push.apply(y,_.xq(p.split(".")));else{p=_.c(p);for(var l=p.next();!l.done;l=p.next())l=l.value,typeof l==="string"?y.push.apply(y,_.xq(l.split("."))):y.push(l)}return y};
IXt=function(p,y){if(y[y.length-1]!=="*"&&y[y.length-1]!=="splices"){for(var l=0;l<y.length;l++){if(!p)return;p=p[y[l]]}return p}};
poa=function(p,y){if(p.length>y.length)return!1;for(var l=0;l<p.length;l++)if(p[l]!==y[l])return!1;return!0};
lgl=function(p,y,l){if(y.type==="compute"){var q=y.getter.bind(l);var t=y.args}else q=function(){return l[y.method.methodName].apply(l,_.xq(_.oX.apply(0,arguments)))},t=y.method.args;
yPu(p,y.propertyKey,q,t,y.value)};
sf6=function(p,y){if(y.readOnly){var l=Object.getOwnPropertyDescriptor(p.model,y.propertyKey);Object.defineProperty(p.model,y.propertyKey,{get:l.get,set:function(){}});
p.model[qo6(y.propertyKey)]=l.set}};
tlt=function(p,y,l){if(l){var q=y.propertyKey,t=y.selector;y=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.xq(y.selectorArgs.map(function(E){return{type:"path",path:E}})));
yPu(p,q,function(E){var e=_.oX.apply(1,arguments);return t.apply(null,[l.getState()].concat(_.xq(e)))},y)}};
JP5=function(p,y,l){var q=_.Mf(y.propertyKey)+"-changed";E_j(p,function(t){var E={value:t.value,queueProperty:!0};t.path.split(".").length>1&&(E.path=t.path);l.dispatchEvent(new CustomEvent(q,{detail:E}))},[{type:"wildcard",
path:y.propertyKey}])};
cPl=function(p,y,l){E_j(p,function(){l[y.method.methodName].apply(l,_.xq(_.oX.apply(0,arguments)))},y.method.args)};
qo6=function(p){return"_set"+(p.charAt(0).toUpperCase()+p.slice(1))};
hZm=function(){return _.n("enable_track_defined_via_mutable_signal")||eZ8};
CDm=function(){var p,y=xJ(function(l){p=l},!1);
return[p,y]};
mog=function(p){p=p.trim().replace(uUa,",").replace(RZo,"$1");var y=p[0];y==="-"&&(y=p[1]);if(y>="0"&&y<="9")return{type:"literal",value:Number(p)};if(y==="'"||y==='"')return{type:"literal",value:p.slice(1,-1)};if(y=p.match(WBu)){y=y[1];var l=ag6[y];if(l)return{type:l,path:p.slice(0,-(y.length+1))}}return{type:"path",path:p}};
bZc=function(p){var y=p.match(Uoa);if(y)return p={methodName:y[1],args:$o8},y[2].trim()&&(y=y[2].replace(jfc,"&comma;").split(","),p.args=y.map(mog)),p};
n_u=function(p,y,l,q){q=q===void 0?!1:q;y=_.Mf(y);var t=Kt;t&&(l=t(l,y,"attribute",p));IM(p,l,y,q)};
IM=function(p,y,l,q){y=G2t(y,q===void 0?!1:q);y===void 0?p.removeAttribute(l):p.setAttribute(l,y)};
G2t=function(p,y){switch(typeof p){case "object":case "function":if(p instanceof Date)return p.toString();if(p){if((y===void 0?0:y)&&!_.n("polymer_reflect_objects_as_boolean_killswitch"))return p?"":void 0;y=window.trustedTypes?window.trustedTypes.isHTML(p)||window.trustedTypes.isScript(p)||window.trustedTypes.isScriptURL(p):void 0;if(y)return p;try{return JSON.stringify(p)}catch(l){_.vs(Error("Dg`"+p))}}break;case "boolean":return p?"":void 0;default:return p!==null&&p!==void 0?p.toString():void 0}};
PDa=function(p){if(p===void 0)throw Error("Eg");return p};
g_o=function(p,y,l,q){var t=AP6(q);if(t.length){q=l;var E="property";ZZm.test(l)?E="attribute":l[l.length-1]==="$"&&(l=l.slice(0,-1),E="attribute");var e=Mlo(t);e&&E==="attribute"&&(l==="class"&&p.hasAttribute("class")&&(e+=" "+p.getAttribute(l)),IM(p,e,l));E==="attribute"&&q==="disable-upgrade$"&&p.setAttribute("disable-upgrade","");p.localName==="input"&&q==="value"&&p.setAttribute("value","");p.removeAttribute(q);E==="property"&&(l=_.Vl(l));y=PDa(y);Vlj(y,E,l,t);return!0}return l.slice(0,3)===
"on-"?(p.removeAttribute(l),(E=y).events!=null||(E.events=[]),y.events.push({name:l.slice(3),value:q}),!0):l==="id"?(y.id=q,!0):!1};
AP6=function(p){for(var y=[],l=0,q;(q=Qft.exec(p))!==null;){q.index>l&&y.push({type:"literal",value:p.slice(l,q.index)});var t=q[1][0];l=!!q[2];q=q[3].trim();if(t==="{")throw Error("Fg");(t=bZc(q))?y.push({type:"method",negate:l,signature:t}):y.push({type:"path",negate:l,path:q});l=Qft.lastIndex}l&&l<p.length&&(p=p.substring(l))&&y.push({type:"literal",value:p});return y};
Mlo=function(p){for(var y="",l=0;l<p.length;l++){var q=p[l];q.type==="literal"&&(y+=q.value)}return y};
Vlj=function(p,y,l,q){p.bindings!=null||(p.bindings=[]);p.bindings.push({kind:y,target:l,parts:q})};
SoL=function(p,y,l){var q=!1;if(p.localName==="template"){q=l;var t=y.stripWhitespace;t=KB5(p,t===void 0?!1:t);var E=p.content.ownerDocument.createDocumentFragment();t.content=E;E.appendChild(p.content);q&&(q.templateInfo=t);q=!0}else p.localName==="slot"&&(y.hasInsertionPoint=!0);if(p.firstChild&&(t=l,p.localName!=="script"&&p.localName!=="style")){E=0;for(var e=p.firstChild;e;){var C=e;if(C.localName==="template"){var u=C.getAttribute("is");if((e=u==="dom-if")||u==="dom-repeat"){C.removeAttribute("is");
u=C.ownerDocument.createElement("ps-"+u);C.parentNode.replaceChild(u,C);u.appendChild(C);var a=Array.from(C.attributes);a=_.c(a);for(var m=a.next();!m.done;m=a.next())m=m.value,e?wom.has(m.name)&&IM(u,m.value,m.name):iZ_.has(m.name)?IM(u,m.value,m.name):rPo.has(m.name),C.removeAttribute(m.name);e=u}else e=C}if(e.nodeType===Node.TEXT_NODE){C=void 0;u=p;for(a=e;((C=a.nextSibling)==null?void 0:C.nodeType)===Node.TEXT_NODE;)m=void 0,(m=a).textContent!=null||(m.textContent=""),a.nextSibling.textContent&&
(a.textContent+=a.nextSibling.textContent),u.removeChild(a.nextSibling);if(y.stripWhitespace&&e.textContent&&!e.textContent.trim()){p.removeChild(e);e=e.nextSibling;continue}}SoL(e,y,{parentIndex:E,parentInfo:t});e.parentNode&&E++;e=e.nextSibling}}var U;if((U=p.hasAttributes)==null?0:U.call(p)){U=l=PDa(l);t=!1;E=Array.from(p.attributes);E=_.c(E);for(C=E.next();!C.done;C=E.next())C=C.value,t=g_o(p,U,C.name,C.value)||t;q=t||q}p.nodeType===Node.TEXT_NODE&&(U=AP6(p.textContent),U.length&&(p.textContent=
Mlo(U)||" ",l=PDa(l),Vlj(l,"text","textContent",U),q=!0));l&&q&&(l.infoIndex=y.nodeInfoList.push(l)-1)};
KB5=function(p,y){y={nodeInfoList:[],stripWhitespace:(y===void 0?!1:y)||p.hasAttribute("strip-whitespace")};SoL(p.content,y);return y};
FBj=function(p){Object.assign(p,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
k2c=function(p,y,l){y.signalCache!=null||(y.signalCache={});var q=y.signalCache[l];if(!q){var t=l.split(".");q=!LBj(p,t[0]);if(t.length>1&&q){var E=p.getPathMutationSignal(t);q=function(){var e=vQ(p.owner,function(){return p.getWithPath([t[0]])}),C,u=(C=E())==null?void 0:C.value;
return{rootWasDefined:e!==void 0,value:u}}}else q=function(){var e=p.getWithPath(t);
return{rootWasDefined:e!==void 0,value:e}};
y.signalCache[l]=q}return q()};
Do6=function(p,y,l,q,t){y=y.parts.map(function(e,C){if(e.type==="literal"){l.partWasDefined!=null||(l.partWasDefined=[]);var u;(u=l.partWasDefined)[C]||(u[C]=e.value!==void 0);return e.value}var a;if(e.type==="method"){var m,U=(m=(a=l.partWasDefined)==null?void 0:a[C])!=null?m:!1;U||(U=e.signature.args.every(function(Z){return Z.type==="literal"}));
var b=!1,P=!0;a=e.signature.args.map(function(Z){if(Z.type==="literal")return Z.value;if(Z.type!=="path")throw Error("Gg`"+Z.type);var K=k2c(p,l,Z.path);Z=K.value;K=K.rootWasDefined;b||(b=K);P&&(P=K);return Z});
U||(U=t===1?P:b);l.partWasDefined!=null||(l.partWasDefined={});l.partWasDefined[C]=U;if(!U)return;a=(C=k2c(p,l,e.signature.methodName).value)&&typeof C==="function"?C.apply(q,a):void 0}else m=k2c(p,l,e.path),a=m.value,l.partWasDefined!=null||(l.partWasDefined={}),(U=l.partWasDefined)[C]||(U[C]=a!==void 0||m.rootWasDefined);e.negate&&(a=!a);return a});
if(y.length===1){var E;return((E=l.partWasDefined)==null?0:E[0])?y[0]:Nht}return y.join("")};
HZo=function(p){return typeof p==="object"&&!!p&&"notifyPath"in p&&"canNotifyPath"in p};
ThR=function(p){return typeof p==="object"&&!!p&&"notifyPath"in p};
xoL=function(p){return"polymerController"in p};
Bho=function(p,y){y=""+Y8(y)[0];if(HZo(p))return p.canNotifyPath(y);if(xoL(p)&&HZo(p.polymerController))return p.polymerController.canNotifyPath(y);if(ThR(p)){var l;return!((l=p.properties)==null||!l[y])}if(xoL(p)&&ThR(p.polymerController)){var q;return!((q=p.polymerController.properties)==null||!q[y])}return!1};
fgt=function(p,y,l){HZo(p)||ThR(p)?p.notifyPath(y,l):xoL(p)&&(HZo(p.polymerController)||ThR(p.polymerController))&&p.polymerController.notifyPath(y,l)};
Xol=function(p,y,l){if(l!==Nht){p.kind==="attribute"||p.target!=="textContent"&&(p.target!=="value"||y.localName!=="input"&&y.localName!=="textarea")||(l=l===void 0?"":l);var q,t=(q=v_t.Polymer)==null?void 0:q.sanitizeDOMValue;t&&(l=t(l,p.target,p.kind,y));if(p.kind==="attribute"){p=p.target;if(p==="class"||p==="name"||p==="slot")y=(0,_.Pm)(y);IM(y,l,p)}else if(p=p.target,l!==y[p]||typeof l==="object")y.loggingStatus&&(y.loggingStatus.isDeclarativeExternal=!0,Hm(y.localName,p,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
y[p]=l,y.loggingStatus&&(y.loggingStatus.isDeclarativeExternal=!1)}};
dol=function(p,y,l,q){var t=y.parts[0];if(y.parts.length!==1||t.type!=="path"||!Bho(l,y.target))return!1;var E=_.c(t.path.split(".")),e=E.next().value,C=qA(E);if(LBj(p,e))return!1;q.signalCache!=null||(q.signalCache={});E=q.signalCache[t.path];var u;E=(u=E)==null?void 0:u().value;if((E==null?void 0:E.path)!==void 0){q=Y8(E.path);var a=Y8(t.path);q=[y.target].concat(_.xq(q.slice(a.length-1)));fgt(l,q,t.negate?!E.value:E.value);return!0}var m=pl(p,e);var U=m.getChangeRecordSignal(C),b=!1;E=function(){if(!b){var Z=
vQ(p.owner,function(){return m.getWithPath([])});
b||(b=Z!==void 0)}return{value:U(),rootWasDefined:b}};
q.signalCache[t.path]=E;q.partWasDefined!=null||(q.partWasDefined={});E=E();(a=q.partWasDefined)[0]||(a[0]=E.rootWasDefined);var P=vQ(p.owner,function(){return m.getWithPath(C)});
q.partWasDefined[0]&&vQ(p.owner,function(){return void Xol(y,l,t.negate?!P:P)});
return!0};
OZu=function(p,y,l,q,t,E){if(!dol(p,y,l,q)){var e=Do6(p,y,q,t,E);vQ(p.owner,function(){return void Xol(y,l,e)})}};
o_o=function(p,y,l,q,t,E){l=_.c(l);for(var e=l.next(),C={};!e.done;C={infoIndex:void 0},e=l.next()){e=e.value;var u=e.bindings;C.infoIndex=e.infoIndex;e=e.parentInfo;if(u){u=_.c(u);for(var a=u.next(),m={};!a.done;m={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},a=u.next()){m.b$jscomp$253=a.value;if(C.infoIndex===void 0)throw Error("Hg");m.bindingCtx$jscomp$4={};p.effect(function(U,b){return function(){t&&!t()||OZu(p,U.b$jscomp$253,y[b.infoIndex],U.bindingCtx$jscomp$4,q,E)}}(m,C))}}e&&o_o(p,y,[e],
q,t,E)}};
zZu=function(p,y){p=(y.parentInfo?zZu(p,y.parentInfo):p).firstChild;for(var l=0;p;p=p.nextSibling)if(y.parentIndex===l++)return p;throw Error("Ig");};
Igt=function(p,y,l,q){p=document.importNode(p.content,!0);p.__noInsertionPoint=!(q==null?0:q.hasInsertionPoint);for(var t=Array(y.length),E={},e=0;e<y.length;e++){var C=y[e],u=zZu(p,C);t[e]=u;C.id&&(E[C.id]=u);if(C.templateInfo){var a=u.parentElement;a&&(a.templateInfo=C.templateInfo,a.parentSignalProxy=l,a.eventListenerHost=q.eventListenerHost,a.stampingEnabled=q.enabledSignal)}a=void 0;if((a=C.events)==null?0:a.length)for(a=0;a<C.events.length;a++){var m=C.events[a];Yog(q.eventListenerHost,u,m.name,
m.value,q.getModel)}}o_o(l,t,y,q.thisCtx,q.enabledSignal,q.methodInvocationRequirement);return{root:p,nodes:t,nodesById:E}};
y$u=function(p,y){p=p();var l;(l=pTo.ShadyCSS)==null||l.prepareTemplate(p,y);y=KB5(p);return{template:p,nodeInfoList:y.nodeInfoList,hasInsertionPoint:y.hasInsertionPoint}};
sqj=function(){ln8=!1;for(var p=yZ.length,y=0;y<p;y++){var l=yZ[y];if(l)try{l()}catch(q){Promise.resolve().then(function(){throw q;})}}yZ.splice(0,p);
qNt+=p};
c$8=function(p){ln8||(ln8=!0,tag.textContent=(E2j++).toString());yZ.push(p);return J$j++};
_.sU=function(p,y,l){ly++;p=y?new elu(ly,p,y,l):new hlR(ly,p);qe.set(ly,p);return ly};
CFt=function(p){(p=qe.get(p))&&p.cancel()};
RlR=function(p,y){p=ug5.get(p);return p?(y=p.get(y))?y:null:null};
_.tl=function(p,y,l,q){var t=RlR(p,y);if(!t){t=new Wxo;var E=ug5.get(p);E||(E=new Map,ug5.set(p,E));E.set(y,t)}p=l.bind(p);t.run(p,q,void 0)};
_.ana=function(p,y){var l;(l=RlR(p,y))==null||l.cancel()};
m3c=function(p){var y;(y=RlR(p,"doRender"))==null||y.flush()};
EU=function(p){var y;return(y=p.hostElement)!=null?y:p};
U38=function(p){var y=p.indexOf(".");return y===-1?p:p.slice(0,y)};
$3_=function(p,y,l,q,t,E){E=(t=(q=E?U38(y):y)?y:null)?p.get(t):p.__data[y];t&&E===void 0&&(E=l[y]);_.Ub(p.hostElement,BIu(q)+"-changed",{value:E,queueProperty:!0,path:t!=null?t:void 0},{bubbles:!1,composed:!1})};
jqt=function(p,y){p.__isReflecting=!0;n_u(p.hostElement,y,p.__data[y]);p.__isReflecting=!1};
bEt=function(p){if(p._onIronRequestResizeNotifications){var y=p._onIronRequestResizeNotifications.bind(p);p._onIronRequestResizeNotifications=function(l){_.cm(l)!==p.hostElement&&y(l)}}p._ariaActiveAttributeChanged&&(p._ariaActiveAttributeChanged=p._ariaActiveAttributeChanged.bind(p.hostElement));
p._activeChanged&&(p._activeChanged=function(l){p.toggles?IM(p.hostElement,l?"true":"false",p.ariaActiveAttribute):p.hostElement.removeAttribute(p.ariaActiveAttribute);p._changedButtonState()});
p._asyncClick&&(p._asyncClick=function(){_.sU(function(){p.hostElement.click()},1)});
!p.keyEventTarget||p.keyEventTarget instanceof EventTarget||(p.keyEventTarget=EU(p.keyEventTarget));p._disabledChanged&&(p._disabledChanged=p._disabledChanged.bind(p.hostElement));p._observeItems&&(p._observeItems=function(l){var q=EU(l);return _.FK(q).observeNodes(function(t){p._updateItems();p._updateSelected();_.Ub(q,"iron-items-changed",t,{bubbles:!1,cancelable:!1})})});
p._updateItems&&p._updateItems===_.Jl._updateItems&&(p._updateItems=function(){var l=_.FK(p.hostElement).queryDistributedElements(p.selectable||"*");l=Array.prototype.filter.call(l,p._bindFilterItem);p._setItems(l)});
p._computeKeyboardClass&&(p._computeKeyboardClass=function(l){_.nv(p.hostElement,"keyboard-focus",l)});
p.ensureRipple&&(p.ensureRipple=function(l){if(p.hasRipple&&!p.hasRipple()){if(!p._createRipple)return;p._ripple=p._createRipple();p._ripple.noink=p.noink;var q=p._rippleContainer||p.hostElement;q&&_.jR(q).appendChild(p._ripple)}var t;if(l&&((t=p._ripple)==null?0:t.uiDownAction)){q=_.jR(p._rippleContainer||p.hostElement);var E;t=(E=l.composedPath())==null?void 0:E[0];q.contains(t)&&p._ripple.uiDownAction(l)}});
p._updateMultiselectable&&(p._updateMultiselectable=function(l){l?p.hostElement.setAttribute("aria-multiselectable","true"):p.hostElement.removeAttribute("aria-multiselectable")})};
n2c=function(p,y,l){l=_.c(l);for(var q=l.next();!q.done;q=l.next())OHc(q.value.constructor,p);OHc(y.constructor,p)};
PFo=function(p,y){p=_.c(p);for(var l=p.next();!l.done;l=p.next())if(l=l.value,l.type==="signal"){var q=l.propertyKey;if(y.hasOwnProperty(q)&&y[q]!=null&&l.attributeType===Object){a:{q=y[q].constructor;for(var t=_.c(GJa),E=t.next();!E.done;E=t.next())if(E=E.value,q===E){q=E;break a}q=Object}l.attributeType=q}}};
A$a=function(){};
ZEt=function(p){var y;return(y=p.hostElement)!=null?y:p};
Mac=function(){throw Error("Mg");};
Va_=function(p,y){p.constructor.prototype.useSignals=!0;var l=new p.constructor;n2c(l,p,y.behaviors);PFo(y.reactiveSchemas,l);l={};for(var q=_.c(y.reactiveSchemas),t=q.next();!t.done;t=q.next())t=t.value,t.type==="signal"&&(l[t.propertyKey]=t.attributeType);var E={copyPropertiesToProto:Mac,didRegister:!1,typesForSignals:l},e=["disable-upgrade"].concat(_.xq(y.observedAttributes)),C=function(u){cL.call(this,p,y,E,u)};
_.A(C,cL);_.Jh.Object.defineProperties(C,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return e}}});
E.copyPropertiesToProto=function(){for(var u=0;u<y.behaviors.length;u++)zjt(y.behaviors[u],C.prototype);zjt(p,C.prototype)};
y.legacyOptimizations||E.copyPropertiesToProto();C.prototype.is=p.is;return C};
g2u=function(p,y){if(Object.getPrototypeOf(y.prototype).constructor!==_.w)throw Error("Ng");y.prototype.is=p.is;return Va_(y.prototype,p)};
Qq5=function(p){return p.type==="compute"||p.type==="computeWithMethod"};
Kxj=function(p){for(var y=p.reactiveSchemas.filter(Qq5),l=new Map,q=new Map,t=new Map,E=_.c(y),e=E.next();!e.done;e=E.next())e=e.value,l.set(e.propertyKey,e),q.set(e.propertyKey,[]),t.set(e.propertyKey,0);E=0;y=_.c(y);for(e=y.next();!e.done;e=y.next()){e=e.value;for(var C=_.c(e.type==="computeWithMethod"?e.method.args:e.args),u=C.next();!u.done;u=C.next())u=u.value,u.type!=="literal"&&(u=u.path.split(".")[0],q.has(u)&&(q.get(u).push(e.propertyKey),t.set(e.propertyKey,t.get(e.propertyKey)+1),E++))}e=
[].concat(_.xq(q.keys())).filter(function(a){return t.get(a)===0});
for(y=[];e.length;)for(C=e.shift(),y.push(l.get(C)),C=_.c(q.get(C)),u=C.next();!u.done;u=C.next())u=u.value,t.set(u,t.get(u)-1),E--,t.get(u)===0&&e.push(u);l=p.reactiveSchemas.filter(function(a){return!Qq5(a)});
p.reactiveSchemas=[].concat(_.xq(l),_.xq(y))};
wT_=function(p,y){if(y.properties)for(var l=_.c(Object.entries(y.properties)),q=l.next();!q.done;q=l.next()){var t=_.c(q.value);q=t.next().value;t=t.next().value;p.properties[q]=typeof t==="function"?{type:t}:t}y.observers&&p.observers.push.apply(p.observers,_.xq(y.observers));y.disabledPolySiReactions&&p.disabledPolySiReactions.push.apply(p.disabledPolySiReactions,_.xq(y.disabledPolySiReactions))};
iEg=function(p,y){for(var l=y.length-1;l>=0;l--){var q=y[l];Array.isArray(q)?iEg(p,q):p.indexOf(q)<0&&p.unshift(q)}};
r$_=function(p,y){p.reactiveSchemas=p.reactiveSchemas.filter(function(l){return l.type==="observe"&&y.includes(l.method.methodName)||Qq5(l)&&y.includes(l.propertyKey)?!1:!0})};
Fxt=function(p,y){var l=y.prototype,q,t,E={is:p.is,reactiveSchemas:[],observedAttributes:[],behaviors:[xw6.InjectBehavior,Os.prototype],disableElementRegistration:p.disableElementRegistration,provide:(q=p.providers)!=null?q:[],reactivityMode:p.reactivityMode,signalProperties:(t=l.signalProperties)!=null?t:[]};"template"in y?E.templateGetter=function(){return y.template}:p.getTemplate&&(E.templateGetter=p.getTemplate);
l.behaviors&&iEg(E.behaviors,l.behaviors);SN_(E,y);return E};
SN_=function(p,y){for(var l=y.prototype,q={properties:{},observers:[],disabledPolySiReactions:[]},t=_.c(p.behaviors),E=t.next();!E.done;E=t.next())wT_(q,E.value);wT_(q,l);if(p.signalProperties)for(l=_.c(p.signalProperties),t=l.next();!t.done;t=l.next())delete q.properties[t.value];l=_.c(Object.entries(q.properties));for(t=l.next();!t.done;t=l.next()){E=_.c(t.value);t=E.next().value;E=E.next().value;var e=void 0;if((e=p.signalProperties)==null||!e.includes(t)){e=void 0;var C=p,u=E.type;if(!u)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{u=Reflect.getMetadata("design:type",y,t);for(var a=_.c(Lxa),m=a.next();!m.done;m=a.next())if(m=m.value,u===m){u=m;break a}u=Object}else u=String;E.computed||E.selector||(C.reactiveSchemas.push({type:"signal",propertyKey:t,value:E.value,attributeType:u,readOnly:E.readOnly}),C.observedAttributes.push(_.Mf(t)));E.reflectToAttribute&&C.reactiveSchemas.push({type:"reflect",propertyKey:t});if(E.computed){u=bZc(E.computed);if(!u)throw Error("Og");C.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:t,method:u,value:E.value})}E.observer&&C.reactiveSchemas.push({type:"observe",method:{methodName:E.observer,args:[{type:"path",path:t}]}});E.notify&&C.reactiveSchemas.push({type:"notify",propertyKey:t});E.selector&&C.reactiveSchemas.push({type:"redux",propertyKey:t,selector:E.selector,selectorArgs:(e=E.selectorArgs)!=null?e:[]})}}kJa&&Kxj(p);y=_.c(q.observers);for(t=y.next();!t.done;t=y.next())l=p,t=t.value,(E=bZc(t))?l.reactiveSchemas.push({type:"observe",method:E}):console.log('Warning: unable to parse observe declaration: "'+
t+'"');r$_(p,q.disabledPolySiReactions)};
Nvt=function(p,y){for(var l=0;l<y.length;l++){var q=y[l],t=void 0;(t=q).showHideApi!=null||(t.showHideApi={});t=void 0;!!p!==!((t=q.showHideApi)==null||!t.hideTemplateChildren)&&(q.nodeType===Node.TEXT_NODE?p?(q.showHideApi.polymerTextContent=q.textContent,q.textContent=""):(t=void 0,q.textContent=(t=q.showHideApi.polymerTextContent)!=null?t:null):q instanceof Element&&q.localName==="slot"?p?(q.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Pm)((0,_.Pm)(q).parentNode).replaceChild(q.showHideApi.polymerReplaced,
q)):(t=q.showHideApi.polymerReplaced)&&(0,_.Pm)((0,_.Pm)(t).parentNode).replaceChild(q,t):q instanceof HTMLElement&&q.style&&(p?(q.showHideApi.polymerDisplay=q.style.display,q.style.display="none"):q.style.display=q.showHideApi.polymerDisplay));q.showHideApi.hideTemplateChildren=p;q.showHideChildren&&q.showHideChildren(p)}};
HEu=function(){if(!D3t){var p=document.createElement("style");p.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(p);D3t=!0}};
em=function(){return _.n("disable_hidden_dom_if_using_stamper")};
Tv_=function(p,y){var l=_.hl().getState();return y?p.apply(null,[l].concat(_.xq(y))):p(l)};
fnu=function(){if(x3l)return x3l;var p=_.c(_.nr(0,void 0,"Nl6eIe")),y=p.next().value;p.next();var l=p.next().value;_.hl().subscribe(function(){Bv8(l)});
return x3l=y};
Bv8=function(p){_.n("delay_redux_signal_update_killswitch")?p(function(y){return y+1}):v2g||(v2g=!0,Promise.resolve().then(function(){p(function(y){return y+1});
v2g=!1}))};
_.hl=function(){return XT6.getAppStore()};
d3u=function(p,y){return XT6.getSelectFn()(p,y)};
_.Cl=function(p){XT6.getDispatchFn()(p)};
OEm=function(p,y){var l={},q;for(q in p)l[q]=y(p[q],q);return l};
_.uy=function(p,y){return function(){var l;return(l=_.BQ(p))!=null?l:y}};
_.RF=function(p,y){var l=Object.assign({},p),q;for(q in y)y.hasOwnProperty(q)&&(l[q]=_.uy(p[q],y[q]));return l};
o2u=function(p,y,l){p instanceof Element&&(l.debugName||(l.debugName="<"+p.tagName.toLowerCase()+(p.tagName.includes("-")?">":"."+p.className+">")),_.n("ytwiz_enable_debug_component_props")&&(p.debugProps||(p.debugProps=OEm(y,function(q){return function(){return q()}}))))};
zlm=function(p){var y;if(!(y=WL.traceAllComponents)){var l;y=(l=CW)==null?void 0:l.activeSpan;y=(y==null?void 0:y.name)!=="ytComponent"}return y?GbR("ytComponent",{},p):p()};
_.aF=function(p,y){var l=function(q){return zlm(function(t){var E=YNt={};var e;if(((e=l)==null?0:e.idomCompat)&&q.renderedFromIdom){var C;e=typeof l.idomCompat==="object"?(C=l)==null?void 0:C.idomCompat.callbacks:{};e=_.c(Ing(q,e,l.debugName));C=e.next().value;e.next();e=e.next().value;var u=ppL(p,C);E.privateValue=u;YNt=void 0;o2u(u,C,l);E={debugName:l.debugName};t&&E&&Object.assign(t.attributes,E);t=rKm(u);t=Array.isArray(t)?t[0]:t;t[Pu]||(t[Pu]={});t[Pu].updateSignalsFromIdomProps=e;yto(C,u);return u}e=
OEm(q,lD_);C=ppL(p,e);E.privateValue=C;YNt=void 0;o2u(C,e,l);E={debugName:l.debugName};t&&E&&Object.assign(t.attributes,E);yto(e,C);return C})};
l.debugName=y===void 0?"":y;return l};
ppL=function(p,y){p=p(y);return Vi(p)};
qi_=function(p,y){p[y]||(p=new _.SM("IDOM interop setter undefined. Key:",y),_.Bs(p))};
lD_=function(p,y){return y==="children"||y==="ref"||typeof p==="function"||p===void 0?p:function(){return _.BQ(p)}};
Ing=function(p,y,l){var q={},t={},E={},e={},C;for(C in p){e={key$jscomp$920:e.key$jscomp$920};e.key$jscomp$920=C;var u=p[e.key$jscomp$920];if(e.key$jscomp$920==="children"||e.key$jscomp$920==="ref")q[e.key$jscomp$920]=u;else if(typeof u==="function")e.key$jscomp$920 in y||u.length>0?(E[e.key$jscomp$920]=u,q[e.key$jscomp$920]=function(m){return function(){return E[m.key$jscomp$920].apply(E,_.xq(_.oX.apply(0,arguments)))}}(e)):q[e.key$jscomp$920]=u;
else if(!(p[e.key$jscomp$920]===void 0&&e.key$jscomp$920 in y)){var a=_.c(_.nr(p[e.key$jscomp$920],{debugName:e.key$jscomp$920+":cwis:"+l},"rvrjQe"));u=a.next().value;a=a.next().value;q[e.key$jscomp$920]=u;t[e.key$jscomp$920]=a}}return[q,t,function(m){var U={},b;for(b in m)U={key$jscomp$921:U.key$jscomp$921,val$jscomp$117:void 0},U.key$jscomp$921=b,U.val$jscomp$117=m[U.key$jscomp$921],U.key$jscomp$921!=="children"&&U.key$jscomp$921!=="ref"&&(typeof U.val$jscomp$117==="function"?U.key$jscomp$921 in
y?E[U.key$jscomp$921]=U.val$jscomp$117:U.val$jscomp$117.length>0&&(E[U.key$jscomp$921]=U.val$jscomp$117,_.vs(new _.SM("Callback detected that was not set in the idomCompat callbacks map. Key:",U.key$jscomp$921))):U.key$jscomp$921 in y&&U.val$jscomp$117===void 0||(qi_(t,U.key$jscomp$921),Vc(function(P){return function(){t[P.key$jscomp$921](P.val$jscomp$117)}}(U))))}]};
E4l=function(p,y,l){var q=IYR(p.prototype,sO5,p.prototype.behaviors);q.prototype.is=y;q.prototype.localName=y;l&&t9o(q,l);return function(t){t&&(q.prototype.hostElement=t);var E=new q;E.root=E;E.hostElement=t;return E}};
t9o=function(p,y){var l;Object.defineProperty(p.prototype,"_template",{get:function(){l===void 0&&(l=y());return l},
set:function(q){l=q},
configurable:!0,enumerable:!0})};
CPc=function(p,y,l,q){function t(){if(!P){for(var Z=new Set,K=_.c(m),F=K.next();!F.done;F=K.next()){F=F.value;for(var L=_.c(Object.getOwnPropertyNames(F)),T=L.next();!T.done;T=L.next()){T=T.value;var O=void 0,f=(O=Object.getOwnPropertyDescriptor(F,T))==null?void 0:O.value;f&&f instanceof Function&&!mc(T)&&(!C[T]||_.n("polymer_forward_method_killswitch"))&&Z.add(T)}}K=_.c(Object.entries(Object.getOwnPropertyDescriptors(p.prototype)));for(F=K.next();!F.done;F=K.next())L=_.c(F.value),F=L.next().value,
L=L.next().value,L.value instanceof Function&&!mc(F)&&Z.add(F);P=Z}return P}
Jtu(p,y,q==null?void 0:q.providers);pZc(p.prototype,p,!0);var E=E4l(p,y,l),e,C=(e=p.prototype.properties)!=null?e:{},u,a,m=(a=(u=p.prototype.behaviors)==null?void 0:u.flat(Infinity))!=null?a:[];l=_.c(m);for(e=l.next();!e.done;e=l.next())C=Object.assign({},e.value.properties,C);var U=[].concat(_.xq(ctt),_.xq(Object.keys(C).map(function(Z){return _.Mf(Z)}))),b=!1,P;
return{ctor:function(Z,K){var F=E(Z),L,T;Z=[].concat(_.xq((L=q==null?void 0:q.allowedProps)!=null?L:[]),_.xq((T=q==null?void 0:q.allowedPropsFromBehaviors)!=null?T:[]));F.allowedProps=Z.length>0?Z:void 0;L={};T=_.c(U);for(Z=T.next();!Z.done;Z=T.next())Z=Z.value,L[Z]=_.Vl(Z);F.__dataAttributes=L;var O=F.ready.bind(F);F.ready=function(){K.beforeReady();O();if(NH(y)&&!b){var f=F.__templateInfo;if(f==null?0:f.hostProps){f=_.c(Object.keys(f.hostProps));for(var v=f.next();!v.done;v=f.next())Hm(y,v.value,
"PROPERTY_ACCESS_GET_INTERNAL")}b=!0}};
F._overrideLegacyUndefined=!0;return F},
props:C,observedAttributes:U,getInitialMethods:t,getPropsToForwardBeforeRegister:function(){for(var Z=[],K=new Set,F=_.c(Object.keys(C)),L=F.next();!L.done;L=F.next())L=L.value,Z.push([L,C[L].readOnly]),K.add(L);F=t();L=_.c(Object.keys(Object.getOwnPropertyDescriptors(p.prototype)));for(var T=L.next();!T.done;T=L.next())T=T.value,!eeg(T)||F.has(T)||K.has(T)||(Z.push([T,!1]),K.add(T));K=_.c(heg);for(F=K.next();!F.done;F=K.next())Z.push([F.value,!0]);return Z},
getPropsToForwardBeforeReady:function(Z){for(var K=[],F=_.c(Object.entries(Z)),L=F.next();!L.done;L=F.next()){var T=_.c(L.value);L=T.next().value;T=T.next().value;if(eeg(L)&&!(T instanceof Function)&&(K.push([L,!1]),NH(y))){var O=T=void 0;(O=(T=Z)._createPropertyAccessor)==null||O.call(T,L)}}return K},
shouldForwardProp:eeg,shouldLog:NH}};
Jtu=function(p,y,l){B16(p,l);p.prototype.behaviors.unshift(uO6);if(KTa()){if(NH(y)){var q;(q=p.prototype).behaviors!=null||(q.behaviors=[]);p.prototype.behaviors.unshift(SQ5())}FT8(p)}_.V(Os.prototype)(p.prototype,"__templateHelpers")};
mc=function(p){return Reo.has(p)||p.startsWith("__compute__")};
eeg=function(p){return!mc(p)&&!p.startsWith("_")&&!p.endsWith("_")};
$uo=function(p,y){function l(){var b=u();b=_.c(b);for(var P=b.next();!P.done;P=b.next()){var Z=_.c(P.value);P=Z.next().value;Z=Z.next().value;WEa(U.prototype,P,Z)}q=!0}
var q=!1,t=p.ctor,E=p.getInitialMethods,e=p.observedAttributes,C=p.getPropsToForwardBeforeReady,u=p.getPropsToForwardBeforeRegister,a=p.shouldForwardProp,m=p.shouldLog,U=function(){var b=HTMLElement.call(this)||this;b.didForwardDynamicProps=!1;b.loggingStatus={};q||l();b.inst=t(b,{beforeReady:function(){b.didForwardDynamicProps||(b.forwardDynamicProps(),b.didForwardDynamicProps=!0)}});
b.controllerProxy=iHR(b.inst,y);b.forwardMethods();return b};
_.A(U,HTMLElement);U.prototype.forwardMethods=function(){for(var b=this,P=_.c(this.inst.getExtraMethodsToForward()),Z=P.next(),K={};!Z.done;K={method$jscomp$63:void 0},Z=P.next()){var F=_.c(Z.value);Z=F.next().value;F=F.next().value;K.method$jscomp$63=F;this[Z]=function(L){return function(){return L.method$jscomp$63.call.apply(L.method$jscomp$63,[b.inst].concat(_.xq(_.oX.apply(0,arguments))))}}(K)}P=_.c(E());
for(K=P.next();!K.done;K=P.next())K=K.value,a(K)&&aDj(this,K),m(y)&&!mc(K)&&mug(this.inst,K)};
U.prototype.forwardDynamicProps=function(){var b=C(this.inst);b=_.c(b);for(var P=b.next();!P.done;P=b.next()){var Z=_.c(P.value);P=Z.next().value;Z=Z.next().value;WEa(this,P,Z);m(y)&&!mc(P)&&Uuo(this.inst,P)}};
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(b,P,Z){this.inst.attributeChangedCallbackWrapper(b,P,Z)};
_.Jh.Object.defineProperties(U.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return y}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Jh.Object.defineProperties(U,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return e}}});
customElements.define(y,U)};
WEa=function(p,y,l){p.hasOwnProperty(y)||Object.defineProperty(p,y,{get:function(){var q,t=((q=p.is)!=null?q:p.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||Hm(t,y,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,q=this.polymerController[y],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,q},
set:function(q){if(!l){var t,E=((t=p.is)!=null?t:p.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||Hm(E,y,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=y,this.loggingStatus.bypassProxyController=!0,this.polymerController[y]!==q&&(t={},this.polymerController.setProperties((t[y]=q,t)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
aDj=function(p,y,l){var q=p.polymerController;p[y]=function(){var t=_.oX.apply(0,arguments);p.loggingStatus.currentExternalCall=y;p.loggingStatus.bypassProxyController=!0;var E,e=((E=p.is)!=null?E:p.tagName).toLowerCase();Hm(e,y,"PROPERTY_ACCESS_CALL_EXTERNAL");var C;E=(C=l!=null?l:q[y])==null?void 0:C.call.apply(C,[q].concat(_.xq(t)));p.loggingStatus.currentExternalCall=void 0;p.loggingStatus.bypassProxyController=!1;return E}};
mug=function(p,y){var l=p.hostElement,q=p[y];p[y]=function(){var t=_.oX.apply(0,arguments);if(l.loggingStatus.currentExternalCall!==y){var E,e=((E=l.is)!=null?E:l.tagName).toLowerCase();Hm(e,y,"PROPERTY_ACCESS_CALL_INTERNAL")}return q==null?void 0:q.apply(p,t)}};
Uuo=function(p,y){var l=Object.getOwnPropertyDescriptor(p,y);l&&!l.get&&Object.defineProperty(p,y,{get:function(){rIt(p.hostElement,y);return l.value},
set:function(q){T9(p.hostElement,y);l.value=q}})};
jOR=function(p){return _.n("poly_si_dom_repeat_detached_fix_killswitch")||p.tagName!=="PS-DOM-REPEAT"?p.tagName==="DOM-REPEAT":!0};
n48=function(p,y){var l=bs8(p);p instanceof Element&&l.unshift(p);p=_.c(l.filter(jOR));for(var q=p.next();!q.done;q=p.next()){var t=void 0;q=_.c((t=q.value.__instances)!=null?t:[]);for(t=q.next();!t.done;t=q.next())if(t=t.value,t.root){t=Array.from(t.root.children);t=_.c(t);for(var E=t.next();!E.done;E=t.next())l.push.apply(l,_.xq(n48(E.value,y)))}}return l.filter(function(e){return e.usePatchedLifecycles&&e.lifecycleIsConnected===y})};
bs8=function(p){var y=null;p instanceof Element?y=Element.prototype.querySelectorAll:p instanceof DocumentFragment&&(y=DocumentFragment.prototype.querySelectorAll);return y?Array.from(y.call(p,"*")):[]};
UU=function(p){bb(function(){for(var y=_.c(n48(p,!1)),l=y.next();!l.done;l=y.next()){l=l.value;l.lifecycleIsConnected=!0;try{var q=void 0,t=void 0,E=void 0,e=void 0;(q=(e=l.polymerController)!=null?e:l)==null||(E=(t=q).connectedCallback)==null||E.call(t)}catch(C){_.Bs(C)}}})};
$g=function(p){bb(function(){for(var y=_.c(n48(p,!0)),l=y.next();!l.done;l=y.next()){l=l.value;l.lifecycleIsConnected=!1;try{var q=void 0,t=void 0,E=void 0,e=void 0;(q=(e=l.polymerController)!=null?e:l)==null||(E=(t=q).disconnectedCallback)==null||E.call(t)}catch(C){_.Bs(C)}}})};
g4u=function(){if(!GFg){GFg=!0;var p=[Node];jm&&p.push(jm.Wrapper);var y=Node.prototype.insertBefore,l=Node.prototype.removeChild;p=_.c(p);for(var q=p.next(),t={};!q.done;t={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},q=p.next())q=q.value,t.nativeInsertBefore=q.prototype.insertBefore,q.prototype.insertBefore=function(e){return function(C,u){if(C instanceof DocumentFragment){var a=Array.from(C.children);C=e.nativeInsertBefore.call(this,C,u);
if(this.isConnected&&e.nativeInsertBefore===y)for(u=_.c(a),a=u.next();!a.done;a=u.next())UU(a.value);return C}a=C instanceof Element&&C.isConnected;u=e.nativeInsertBefore.call(this,C,u);a&&$g(C);this.isConnected&&UU(C);return u}}(t),t.nativeAppendChild=q.prototype.appendChild,q.prototype.appendChild=function(e){return function(C){if(C instanceof DocumentFragment){var u=Array.from(C.children);
C=e.nativeAppendChild.call(this,C);if(this.isConnected){u=_.c(u);for(var a=u.next();!a.done;a=u.next())UU(a.value)}return C}u=C instanceof Element&&C.isConnected;a=e.nativeAppendChild.call(this,C);u&&$g(C);this.isConnected&&UU(C);return a}}(t),t.nativeRemoveChild=q.prototype.removeChild,q.prototype.removeChild=function(e){return function(C){var u=C instanceof Element&&C.isConnected,a=e.nativeRemoveChild.call(this,C);
u&&l===e.nativeRemoveChild&&$g(C);return a}}(t),t.nativeReplaceChild=q.prototype.replaceChild,q.prototype.replaceChild=function(e){return function(C,u){if(C instanceof DocumentFragment){var a=Array.from(C.children);
C=e.nativeReplaceChild.call(this,C,u);if(this.isConnected)for($g(u),u=_.c(a),a=u.next();!a.done;a=u.next())UU(a.value);return C}a=C instanceof Element&&C.isConnected;var m=this.isConnected,U=e.nativeReplaceChild.call(this,C,u);m&&$g(u);a&&$g(C);m&&UU(C);return U}}(t);
p=[Element];jm&&p.push(jm.Wrapper);p=_.c(p);q=p.next();for(t={};!q.done;t={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},q=p.next())q=q.value,q.prototype.before=PPt(q.prototype.before),q.prototype.after=PPt(q.prototype.after),t.nativeReplaceWith=q.prototype.replaceWith,q.prototype.replaceWith=function(e){return function(){var C=_.oX.apply(0,arguments),u=_.c(At5(C)),a=u.next().value,
m=u.next().value;u=this.isConnected;e.nativeReplaceWith.apply(this,C);C=_.c(m);for(m=C.next();!m.done;m=C.next())$g(m.value);if(u)for($g(this),a=_.c(a),u=a.next();!u.done;u=a.next())u=u.value,u instanceof Element&&UU(u)}}(t),t.nativeRemove=q.prototype.remove,q.prototype.remove=function(e){return function(){var C=this.isConnected;
e.nativeRemove.call(this);C&&$g(this)}}(t),t.nativeInsertAdjacentElement=q.prototype.insertAdjacentElement,q.prototype.insertAdjacentElement=function(e){return function(C,u){var a=u.isConnected;
C=e.nativeInsertAdjacentElement.call(this,C,u);a&&$g(u);C.isConnected&&UU(C);return C}}(t),t.nativeSetAttribute=q.prototype.setAttribute,q.prototype.setAttribute=function(e){return function(C,u){var a=Zsm(this);
if(!a.usePatchedLifecycles)return e.nativeSetAttribute.call(this,C,u);var m=this.getAttribute(C);e.nativeSetAttribute.call(this,C,u);u=this.getAttribute(C);M9l(a,C,m,u)}}(t),t.nativeRemoveAttribute=q.prototype.removeAttribute,q.prototype.removeAttribute=function(e){return function(C){var u=Zsm(this);
if(!u.usePatchedLifecycles)return e.nativeRemoveAttribute.call(this,C);var a=this.getAttribute(C);e.nativeRemoveAttribute.call(this,C);a!==null&&M9l(u,C,a,null)}}(t),t.nativeToggleAttribute=q.prototype.toggleAttribute,q.prototype.toggleAttribute=function(e){return function(C,u){var a=Zsm(this);
if(!this.usePatchedLifecycles)return e.nativeToggleAttribute.call(this,C,u);var m=this.getAttribute(C),U=m!==null;u=e.nativeToggleAttribute.call(this,C,u);u!==U&&M9l(a,C,m,u?"":null);return u}}(t);
p=[Document,DocumentFragment,Element,ShadowRoot];jm&&p.push(jm.Wrapper);p=_.c(p);for(t=p.next();!t.done;t=p.next())t=t.value,t.prototype.prepend=PPt(t.prototype.prepend),t.prototype.append=PPt(t.prototype.append);(jm==null?void 0:jm.noPatch)===!0&&V9R();document.readyState==="complete"?UU(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&UU(document.body)});
var E=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");E&&E.get&&E.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:E.enumerable,configurable:!0,get:E.get,set:function(e){e||$g(this);E.set.call(this,e);return e}})}};
PPt=function(p){return function(){var y=_.oX.apply(0,arguments),l=_.c(At5(y)),q=l.next().value;l=l.next().value;p.apply(this,y);y=_.c(l);for(l=y.next();!l.done;l=y.next())$g(l.value);if(this.isConnected)for(q=_.c(q),y=q.next();!y.done;y=q.next())y=y.value,y instanceof Element&&UU(y)}};
V9R=function(){for(var p=_.c(QO_),y=p.next();!y.done;y=p.next()){y=y.value.prototype;for(var l=_.c(KEo),q=l.next();!q.done;q=l.next()){q=q.value;var t=Object.getOwnPropertyDescriptor(y,q);t&&Object.defineProperty(y,"__shady_native_"+q,t)}}};
M9l=function(p,y,l,q){var t,E;if((t=p.polymerController)==null?0:(E=t.observedAttributes)==null?0:E.includes(y))if(p=p.polymerController,p.attributeChangedCallbackWrapper)p.attributeChangedCallbackWrapper.call(p,y,l,q);else{var e;(e=p.attributeChangedCallback)==null||e.call(p,y,l,q)}};
At5=function(p){var y=[],l=[];p=_.c(p);for(var q=p.next();!q.done;q=p.next())q=q.value,q instanceof Element&&q.isConnected&&l.push(q),q instanceof DocumentFragment?y.push.apply(y,_.xq(Array.from(q.children))):y.push(q);return[y,l]};
Zsm=function(p){return!(p instanceof Element)&&p.node instanceof Element?p.node:p};
wpt=function(p,y){var l=y?["children"].concat(_.xq(y)):["children"];y=[];l=_.c(l);for(var q=l.next();!q.done;q=l.next()){var t=q.value;if(p.hasOwnProperty(t)){q=p[t];q=typeof q==="function"?q():q;q=Array.isArray(q)?q:[q];q=Vi(q).flat();if(t!=="children"){t=BIu(t);for(var E=_.c(q),e=E.next();!e.done;e=E.next())e=e.value,e instanceof Element&&e.setAttribute("slot",t)}y.push(q)}}y.length===0?p=[]:(p=Vi(_.R("div",null,y)),p=Array.from(p.childNodes));return p};
rtj=function(p,y,l){var q={};_.fr(function(){var t={},E;for(E in y)if(y.hasOwnProperty(E)){var e=void 0,C=void 0;if(!(((e=l.slotProps)==null?0:e.includes(E))||E==="children"||((C=l.callbackProps)==null?0:C.includes(E))||E==="ref")&&(e=_.BQ(y[E]),q[E]!==e)){q[E]=e;C=void 0;var u=(C=p.hostElement)!=null?C:p;ist.has(E)&&(u[E]=e);t[E]=e}}Vc(function(){if(p.setProperties)p.setProperties(t);else for(var a=_.c(Object.entries(t)),m=a.next();!m.done;m=a.next()){var U=_.c(m.value);m=U.next().value;U=U.next().value;
p[m]=U}})})};
FEt=function(p,y,l,q){var t=wpt(l,q.slotProps),E=(0,_.Pm)(p);t=_.c(t);for(var e=t.next();!e.done;e=t.next())E.appendChild(e.value);rtj(y,l,q);q=_.c(q.callbackProps||[]);t=q.next();for(E={};!t.done;E={kebabEventName:void 0,eventListener:void 0},t=q.next())e=t=t.value,String(t).substring(0,2)==="on"&&l[e]?(E.kebabEventName=BIu(String(t).substring(2)),E.eventListener=l[e],p.addEventListener(E.kebabEventName,E.eventListener),_.TP(function(m){return function(){p.removeEventListener(m.kebabEventName,m.eventListener)}}(E))):
y[e]=l[e];
if(l.ref){l=_.c(Sio(l.ref));var C=l.next().value,u=l.next().value,a=y.attached.bind(y);y.attached=function(){C(p);a()};
_.TP(function(){u()})}};
Sio=function(p){if(typeof p==="function"){var y;return[function(l){y=p(l)},
function(){var l;(l=y)==null||l()}]}if(!p.onRender||!p.onUnmount)throw Error("Sg");
return[p.onRender,p.onUnmount]};
Duo=function(p,y,l,q,t){q=q===void 0?{}:q;var E=LEm,e=!1;E?(e=!0,LEm=void 0):(kFc=y,E=document.createElement(y),kFc=void 0);var C=E;C.usePatchedLifecycles=!0;C.lifecycleIsConnected=!1;E.loggingStatus={};var u=NS5(p,y,E,q,t);_.TP(function(){C.lifecycleIsConnected&&(C.lifecycleIsConnected=!1,u.disconnectedCallback())});
e||(_.n("sink_wrapper_disable_runtime_shadycss")&&(E.__noInsertionPoint=!0),FEt(E,u,l,q));return E};
NS5=function(p,y,l,q,t){t=t===void 0?CPc:t;Hso[y]!=null||(Hso[y]=t(p,y,q==null?void 0:q.getTemplate,q));var E=Hso[y],e=E.ctor;t=E.getInitialMethods;var C=E.getPropsToForwardBeforeReady;p=E.getPropsToForwardBeforeRegister;q=E.shouldForwardProp;var u=E.observedAttributes,a=E.shouldLog,m=e(l,{beforeReady:function(){var U=m;U._takeAttributes?U._takeAttributes():U.setPropertiesFromInitialAttributeValues&&U.setPropertiesFromInitialAttributeValues();U=_.c(C(l.polymerController));for(var b=U.next();!b.done;b=
U.next()){var P=_.c(b.value);b=P.next().value;P=P.next().value;WEa(l,b,P);a(y)&&!mc(b)&&Uuo(l.polymerController,b)}l.polymerController=iHR(m,y)}});
l.polymerController=m;l.polymerController.observedAttributes=u;E=_.c(m.getExtraMethodsToForward());for(e=E.next();!e.done;e=E.next())u=_.c(e.value),e=u.next().value,u=u.next().value,aDj(l,e,u);t=_.c(t());for(E=t.next();!E.done;E=t.next())E=E.value,q(E)&&aDj(l,E),a(y)&&!mc(E)&&mug(m,E);p=_.c(p());for(q=p.next();!q.done;q=p.next())t=_.c(q.value),q=t.next().value,t=t.next().value,WEa(l,q,t);return m};
xua=function(p,y){return by===y?(p.isInert=!0,by="",!0):TSc===y?(p.isInert=!0,TSc="",!0):!1};
BSt=function(p){var y=nl;nl=p;return y};
v4_=function(p){if(Gp.has(p))TSc=p;else if(PL.has(p)&&nl&&fDc(nl)===p){var y;(y=nl)._numRenders!=null||(y._numRenders=0);nl._numRenders++;if(nl._numRenders>1)throw Error("Tg");return nl}};
Xpo=function(p){Gp.has(fDc(p))?TSc=fDc(p):PL.has(fDc(p))&&nl!==p&&(p._isInert=!0)};
fDc=function(p){var y;return(y=p==null?void 0:p.tagName.toLowerCase())!=null?y:""};
du_=function(p,y){if(p.componentType===rq)throw Error("Ug");PL.add(y);var l=function(){var q=HTMLElement.call(this)||this;q.is=y;if(kFc===y)return q.isInert=!0,q;q.createElement();return q};
_.A(l,HTMLElement);l.prototype.createElement=function(){if(!this.isInert){LEm=this;var q=_.c(_.qw8(function(){return _.R(p,null)})).next().value;
LEm=void 0;FBj(this);return q}};
customElements.define(y,l)};
o4L=function(p,y,l,q,t){p.prototype.is=y;(q==null?0:q.useSink)?OsR(p,y,l,q,t):(l=CPc(p,y,l,q),$uo(l,y));return p};
OsR=function(p,y,l,q,t){g4u();var E=_.aF(function(e){return Duo(p,y,e,Object.assign({},q,{getTemplate:l}),t)},"a");
E.debugName=y+" (CoW wrapped)";du_(E,y);return E};
Yiu=function(p){return!ze_.has(p)};
y46=function(p,y,l,q){function t(){if(!U){for(var b=new Set(IDo),P=_.c(E.behaviors),Z=P.next();!Z.done;Z=P.next()){Z=Z.value;for(var K=_.c(Object.getOwnPropertyNames(Z)),F=K.next();!F.done;F=K.next()){F=F.value;var L=void 0,T=(L=Object.getOwnPropertyDescriptor(Z,F))==null?void 0:L.value;T&&T instanceof Function&&(!a[F]||_.n("polymer_forward_method_killswitch"))&&b.add(F)}}P=_.c(Object.entries(Object.getOwnPropertyDescriptors(p.prototype)));for(Z=P.next();!Z.done;Z=P.next())K=_.c(Z.value),Z=K.next().value,
K=K.next().value,K.value instanceof Function&&b.add(Z);U=b}return U}
var E=Fxt({is:y,disableElementRegistration:!1,getTemplate:l,providers:q==null?void 0:q.providers,reactivityMode:q==null?void 0:q.reactivityMode},p);if((q==null?0:q.allowedProps)||(q==null?0:q.allowedPropsFromBehaviors)){var e,C;E.allowedProps=[].concat(_.xq((e=q.allowedProps)!=null?e:[]),_.xq((C=q.allowedPropsFromBehaviors)!=null?C:[]))}var u=g2u(E,p);y=u.observedAttributes;var a={};l=_.c(E.reactiveSchemas);for(q=l.next();!q.done;q=l.next())if(q=q.value,q.type==="signal")a[q.propertyKey]={readOnly:q.readOnly},
q.readOnly&&(a[qo6(q.propertyKey)]={readOnly:!0});else if(q.type==="compute"||q.type==="computeWithMethod"||q.type==="redux")a[q.propertyKey]={readOnly:!0};var m=E.reactiveSchemas.length,U;return{ctor:function(b,P){b=new u(b);b.beforeReady=P.beforeReady;return b},
props:a,observedAttributes:y,getInitialMethods:t,getPropsToForwardBeforeRegister:function(){for(var b=[],P=new Set,Z=_.c(pko),K=Z.next();!K.done;K=Z.next())K=K.value,b.push([K,K!=="observers"&&K!=="properties"]),P.add(K);Z=_.c(Object.keys(a));for(K=Z.next();!K.done;K=Z.next())K=K.value,b.push([K,a[K].readOnly]),P.add(K);Z=t();K=_.c(Object.keys(Object.getOwnPropertyDescriptors(p.prototype)));for(var F=K.next();!F.done;F=K.next())F=F.value,!Yiu(F)||Z.has(F)||P.has(F)||(b.push([F,!1]),P.add(F));b.push(["allowedProps",
!0]);return b},
getPropsToForwardBeforeReady:function(b){var P=[];b=_.c(Object.keys(b));for(var Z=b.next();!Z.done;Z=b.next()){Z=Z.value;var K=t();Yiu(Z)&&!K.has(Z)&&P.push([Z,!1])}b=_.c(E.reactiveSchemas.slice(m));for(Z=b.next();!Z.done;Z=b.next())Z=Z.value,Z.type!=="compute"&&Z.type!=="computeWithMethod"&&Z.type!=="redux"&&Z.type!=="signal"||P.push([Z.propertyKey,Z.type==="signal"?Z.readOnly:!0]);return P},
shouldForwardProp:Yiu,shouldLog:NH}};
_.D=function(p,y,l,q){var t,E,e=(E=(t=q)==null?void 0:t.mode)!=null?E:0;q!=null||(q={});var C;(C=q).reactivityMode!=null||(C.reactivityMode=0);e===1&&_.jM("creator_poly_si_disable_list").includes(y)&&(e=2);return e===1?o4L(p,y,l,Object.assign({},q,{useSink:!0}),y46):o4L(p,y,l,Object.assign({},q,{useSink:e===2}))};
_.Al=function(){return function(p,y,l,q){var t,E,e=(E=(t=q)==null?void 0:t.mode)!=null?E:2;q!=null||(q={});var C;(C=q).reactivityMode!=null||(C.reactivityMode=0);if(e===0)throw Error("Vg`"+e);return OsR(p,y,l,q,e===1?y46:void 0)}};
_.ZS=function(p){return _.n("creator_poly_si_killswitch")?!1:_.n("force_all_poly_si_batches")&&(p==="poly_si_all_on_test_check"||p==="creator_poly_si_batch_050"?0:p)||document.documentElement.hasAttribute("use-signals")?!0:!p||_.n(p+"_holdback_enabled")&&_.n("kevlar_polysi_holdback")?!1:_.n(p)};
Me=function(p){return p?p.icon?p.icon.iconType.toLowerCase():p.customThumbnail?"member":"":""};
ldl=function(p){if(!p)return"";p=_.c(p);for(var y=p.next();!y.done;y=p.next())if((y=y.value)&&y.liveChatAuthorBadgeRenderer&&(y=Me(y.liveChatAuthorBadgeRenderer))&&y!=="verified")return y;return""};
qGj=function(p,y){if(!p)return null;var l;return((l=p.find(function(q){return q&&q.liveChatAuthorBadgeRenderer?Me(q.liveChatAuthorBadgeRenderer)===y:!1}))==null?void 0:l.liveChatAuthorBadgeRenderer)||null};
_.eha=function(p){var y=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;p=sHo(p);y=sHo(y);var l=ttc(p.hex);y=ttc(y.hex);var q=y[0]/255;var t=y[1]/255,E=y[2]/255,e=Math.max(q,t,E),C=Math.min(q,t,E),u=0,a=0,m=.5*(e+C);e!=C&&(e==q?u=60*(t-E)/(e-C):e==t?u=60*(E-q)/(e-C)+120:e==E&&(u=60*(q-t)/(e-C)+240),a=0<m&&m<=.5?(e-C)/(2*m):(e-C)/(2-2*m));q=[Math.round(u+360)%360,a,m];l=EeR(l,y);for(p=J4m(p.hex);l<4.5;){p=q[2]>=.5?p.darker((4.5-l)/2):p.brighter((4.5-l)/2);l=p.toString();
t=c4j(l);if(!t.length)throw Error("Sd`"+l);l=t;l=EeR(l,y)}return p.hex()};
EeR=function(p,y){p=_.B4j(p);y=_.B4j(y);return(Math.max(p,y)+.05)/(Math.min(p,y)+.05)};
_.VZ=function(p){return"#"+("000000"+(p&16777215).toString(16)).slice(-6)};
_.hhl=function(p){for(var y=0,l=0;l<p.length;l++)y=p.charCodeAt(l)+((y<<5)-y);p="#";for(l=0;l<3;l++)p+=("00"+(y>>l*8&255).toString(16)).slice(-2);return p};
Cna=function(p){p=(p||"").split(":");p.length===1&&p.unshift("yt-icons");p[1]=p[1].toLowerCase();return p};
Upt=function(p,y){var l=(y=y===void 0?!1:y)?uVm:Rh5,q=y?Wp_:adt;p.getIconNames().forEach(function(t){t=y?t:t.substring(t.indexOf(":")+1);p.name==="yt-icons"?mpu.add(t):t.includes("-filled")?l.add(t):q.add(t)})};
gW=function(p,y,l,q){l=l===void 0?!1:l;q=q===void 0?!1:q;var t,E,e;return _.h(function(C){if(C.nextAddress==1)return C.yield($p_,2);if(q)return C.return(mpu.has(p));t=l?uVm:Rh5;E=l?Wp_:adt;return y?(e=p.includes("-filled")?p:p.concat("-filled"),C.return(t.has(e))):C.return(E.has(p))})};
_.neL=function(p){if(jHR(p))return p;var y=p=p.toLowerCase();(p=bmo.get(p))&&(y=p);return y};
_.QZ=function(p){if(jHR(p))return p.toString();var y=GIg.get(p);if(y)return y;y=p.toLowerCase();var l="yt-icons",q=y.replace(/_/g,"-");switch(p){case "MY_CHANNEL":y="account_circle";break;case "ADD_TO_LIBRARY":y="add";break;case "ALERT_WARN_RED":y="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":y="person_music";break;case "BLOCK_USER":y="block";break;case "CAPTIONS":y="closed_caption";break;case "CLOSED_CAPTION":l="av";y="closed-caption";break;case "COLLECTION":l="maps";y="layers";break;case "CONTACT":l=
"icons";y="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":l="ytcp-icons";y=q.split("creator-studio-")[1];break;case "DISMISSAL":y="close";break;case "DO_NOT_DISTURB":y="block";break;case "DOGFOOD":l="icons";y="pets";break;case "DRAFT":y="paper_corner_folded";break;
case "EMPTY_LIKE":y="like_outline";break;case "EXIT_APP":y="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":y=q;break;case "GAMES":l="ytg";y="my-games";break;case "GO_TO_PAGE":y="arrow-forward";break;case "GROUP":l="social";break;case "HIDE":y="not_interested";break;case "INPUT_COMPONENT":l="icons";y="settings-input-component";break;case "KIDS_BLOCK":y="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":l="ytg";y="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":l=
"ytg";y="membership-post-purchase";break;case "MULTIVIEW":y="screen_multi_view";break;case "MY_LOCATION":l="maps";y=q;break;case "NOTIFICATIONS_INBOX":y="NOTIFICATIONS";break;case "NEXT":y="chevron_right";break;case "OFFLINE":y="power-settings-new";break;case "PAUSE":l="miniplayer";break;case "PAYMENT":l="icons";break;case "PHONE_DOWNLOAD":y="phone_download";break;case "PREMIUM_STANDALONE":l="yt-logos";y="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":l="yt-logos";y="premium_standalone_cairo";
break;case "QUESTION_ANSWER":y="question_answer";break;case "REDEEM":l="icons";y="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":y="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":y="library_add";break;case "SCHOOL":l="yt-sys-icons";y="creator_academy";break;case "SETTINGS_LIGHT":y="settings_applications";break;case "SETTINGS_MATERIAL":y="settings";break;case "SEARCH_HISTORY":y="watch_history";break;case "SHOPPING_BAG":y="bag";break;case "SOCIAL":case "PEOPLE":l=
"yt-icons";y="people";break;case "STAFF_PICK":l="ytg";y="spotlight";break;case "START_DVR":y="add";break;case "STOP_DVR":l="av";y="stop";break;case "TAB_LIKED":y="like";break;case "TAB_INBOX":y="mail";break;case "TERMS_OF_SERVICE":l="icons";y="description";break;case "TRENDING":y="fire";break;case "UNBLOCK_USER":y="remove";break;case "UNPLUGGED_DARK_THEME":l="image";y="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":y="live";break;case "UNPLUGGED_SPORTS":l="ytu";y="visibility-off";break;
case "VIDEOS":l="av";y="play-circle-filled";break;case "YOUTUBE":l="yt-logos";y="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":l="yt-logos-ext";y="yt-logo-red-updated";break;case "YOUTUBE_LOGO":l="yt-logos-ext";y="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":l="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":l="shorts";y=q;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":l="yt-sys-icons";y="youtube_improve_tv";break;case "OUTLINE_BAG":l=
"yt-sys-icons";y="bag";break;case "QUEUE_PLAY_LAST":l="yt-sys-icons";y="list_queue_last";break;case "SLASH_CIRCLE_LEFT":y="slash_circle_left";break;case "SPEED_1_POINT_2X":y="1_point_2x";break;case "SPEED_1_POINT_5X":y="1_point_5x";break;case "SPEED_1_POINT_8X":y="1_point_8x";break;case "SPEED_POINT_2X":y="point_2x";break;case "SPEED_POINT_5X":y="point_5x";break;case "SPEED_POINT_8X":y="point_8x";break;case "SPEED_1X":y="1x";break;case "SPEED_2X":y="2x";break;case "TAB_BOOKMARK":y="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":l="yt-sys-icons";y="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":l="yt-sys-icons";y="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":l="yt-sys-icons",y="tic_tac_toe"}y=l+":"+y;GIg.set(p,y);return y};
jHR=function(p){var y;_.n("kevlar_use_wil_icons")?y=!!_.WC().resolve(_.Kl).resolveIcon({iconName:p.toString()}):y=!1;return y};
_.iy=function(p,y,l,q){l=l===void 0?{}:l;q=q===void 0?!1:q;l===null&&(l={});var t=_.jM("kevlar_command_handler_command_banlist");t=_.c(t);for(var E=t.next();!E.done;E=t.next())if(E=p?p.hasOwnProperty(E.value):void 0,E)return!1;t=_.G(p.commandMetadata,_.ul);return q&&t!=null&&t.url?!1:!y.disableCommandHandlerOverride&&_.wW.instance?(q=_.wW.instance,l.form||(l.form={element:y}),l.form.element||(l.form.element=y),!l.clickedVisualElement&&y.visualElement&&(l.clickedVisualElement=y.visualElement),q.resolveCommand(p,
l),!0):!1};
Pnt=function(p,y){p=rW(p);for(var l=_.c(p.visibilityMonitorKeys||[]),q=l.next();!q.done;q=l.next())y.unobserveByKey(q.value);p.visibilityMonitorKeys=void 0};
Vta=function(p,y){if(_.B2()){if(_.n("kevlar_vimio_use_shared_monitor"))A4_(p,y.data);else if(!A4_(p,y.data))return;var l=y.data,q=Zmo(l);if(_.n("enable_client_ve_spec_logging"))Pnt(p,y.observer);else{var t=rW(p);t.trackedParams&&t.trackedParams!==q&&Pnt(p,y.observer)}t=rW(p);!l||t.data&&t.data===l||(t.data=l);Mtt(p,y);t.trackedParams=q}};
Mtt=function(p,y){var l=y.observer;if(!l&&_.n("web_skip_missing_vimio_observer")){var q,t;_.vs(new _.SM("VisibilityObserver is not defined.",p.tagName,p.trackedParams,(q=y.data)==null?void 0:q.trackingParams,(t=y.data)==null?void 0:t.loggingDirectives))}else{var E=y.layer,e=y.visibilityCallback||function(){},C=y.prescanCallback,u=rW(p);
q=[];y.showOption&&q.push(l.observe(p,function(){y.skipLogging&&y.skipLogging()||_.Sm().reportShown(u,void 0,E);e(!0)},y.showOption));
y.hideOption&&q.push(l.observe(p,function(){_.Sm().reportHidden(u,void 0,E);e(!1)},y.hideOption));
y.prescanOption&&C&&q.push(l.observe(p,function(){C()},y.prescanOption));
u.visibilityMonitorKeys=q}};
A4_=function(p,y){p=rW(p);if(p.visualElement&&!y)return!0;if(!y)return!1;var l=!1;if(_.n("enable_client_ve_spec_logging")){var q,t;l=!!((q=y.loggingDirectives)==null?0:(t=q.clientVeSpec)==null?0:t.uiType)}q=Zmo(y);if(!q&&!l)return!1;_.n("mweb_component_visibility_logging")&&(p.veContainer||(p.veContainer={}),p.veContainer.trackingParams=q);if(p.trackedParams&&p.trackedParams===q)return!1;var E;if(_.n("enable_client_ve_spec_logging")&&((E=p.visualElement)==null?0:E.isClientVe())){var e;E=(e=p.visualElement)==
null?void 0:e.getAsJspb();var C,u,a,m;if(_.W9(E,2)===((C=y.loggingDirectives)==null?void 0:(u=C.clientVeSpec)==null?void 0:u.uiType)&&_.W9(E,3,-1)===((a=y.loggingDirectives)==null?void 0:(m=a.clientVeSpec)==null?void 0:m.elementIndex))return!1}if(_.n("enable_client_ve_spec_logging")){var U,b;!p.visualElement&&((U=y.loggingDirectives)==null?0:(b=U.clientVeSpec)==null?0:b.uiType)&&(C=y.loggingDirectives.clientVeSpec,y=C.uiType,e=C.elementIndex,C=C.clientYoutubeData,p.visualElement=_.FH(_.Ll(),{veType:y,
elementIndex:e,clientYouTubeData:C}))}return!0};
Zmo=function(p){if(p==null?0:p.rendererContext){var y=_.G(p.rendererContext,_.kg);if(y==null?0:y.loggingDirectives)return y.loggingDirectives.trackingParams}return(p==null?0:p.loggingDirectives)?p.loggingDirectives.trackingParams:p==null?void 0:p.trackingParams};
rW=function(p){var y;return(y=p.polymerController)!=null?y:p};
wk8=function(p){_.Sm();if(_.YZ(Ne().JSC$12449_elementShouldLogGesture).bind(Ne())(p,4)){geo(p);var y=QHo(p);KpR.set(p,y)}};
geo=function(p){KpR.has(p)&&(KpR.get(p).cancel("untrack hover element"),KpR.delete(p))};
QHo=function(p){var y,l=[],q=!1,t=new _.Ps(function(E,e){DS(p,"mouseenter",_.YZ(function(){var C,u,a;return _.h(function(m){if(m.nextAddress==1)return y=(0,_.uM)(),C=imm(p),l.push(C),u=r46(p,function(){q=!0;e(Error("Wg"))}),m.yield(C,2);
if(m.nextAddress!=3)return u&&HL(u),a=SGt(p),l.push(a),m.yield(a,3);E();_.rR(m)})}))});
t.then(function(){var E=(0,_.uM)()-y;E=Math.round(E);if(!(500>E||6E5<=E)){var e=p.getScreenLayer?p.getScreenLayer():void 0;e=_.B2(e)||"";var C=Fpo(_.Sm(),p);_.Et(e,p.visualElement?p.visualElement:_.Tp(C),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:E}})}wk8(p)},function(){xg&&(xg(),xg=null);
q&&(geo(p),wk8(p))});
return t};
imm=function(p){var y;return(new _.Ps(function(l,q){xg=function(){q(Error("Xg"))};
y=_.TR.debounce(_.YZ(function(){HL(t);l()}),1,100);
var t=_.BL(p,"mousemove",y)})).thenCatch(function(){var l=_.TR.cancelDebouncedJobMap.get(y);
l&&_.TR.cancelJob(l)})};
SGt=function(p){var y;return(new _.Ps(function(l,q){xg=function(){q(Error("Yg"))};
y=DS(p,"mouseleave",_.YZ(function(){l()}))})).thenCatch(function(){HL(y)})};
r46=function(p,y){return DS(p,"mouseleave",_.YZ(y))};
kI8=function(p){Lpu&&_.fl.cancel(Lpu);Lpu=_.fl.run(function(){_.Ub(p,"yt-visibility-refresh");Lpu=0})};
Nwu=function(p){p=Number(p);return"rgba("+[p>>16&255,p>>8&255,p&255,(p>>24&255)/255].join()+")"};
HmL=function(p){if(!p)return!1;if(_.G(p,_.Dpl))return!0;var y;if(p=(y=_.G(p,_.AO))==null?void 0:y.commands)for(y=_.c(p),p=y.next();!p.done;p=y.next())if(_.G(p.value,_.Dpl))return!0;return!1};
Twa=function(p){var y=!0;y=y===void 0?!0:y;if(!p.useSignals&&!p.experimentalPropertiesChanged||_.n("experimental_templating_behavior_nopatch_killswitch")){var l=p._propertiesChanged;p._propertiesChanged=function(q,t,E){y?p.debounceRender():p.doRender();l&&l.call(p,q,t,E)}}};
xpc=function(p,y){if(p.useSignals||p.experimentalPropertiesChanged)if(_.n("experimental_templating_behavior_nopatch_killswitch"))p.experimentalPropertiesChanged=function(){};
else return;var l=new Set,q=[p].concat(_.xq(p.behaviors));q=_.c(q);for(var t=q.next();!t.done;t=q.next()){t=t.value;for(var E in t.properties)l.has(E)||(p._addPropertyEffect(E,"function",y),l.add(E))}};
Bwg=function(){var p=Polymer.Element,y=p._prepareTemplate;p._prepareTemplate=function(){y.call(this);var l=this.prototype;if(l.experimentalTemplatingInUse&&l.experimentalTemplatingInUse()&&l.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.Bs(Error("Zg"));else{l=this.template.content.childNodes;for(var q=l.length-1;q>=0;q--){var t=l[q];t.nodeName!=="STYLE"&&t.nodeName!=="LINK"&&t.nodeName!=="SCRIPT"&&t.nodeName!=="#comment"&&t.remove()}}}};
fdl=function(p){var y=!0;y=y===void 0?!0:y;Bwg();var l=p.ready;p.ready=function(){this._template=null;l.call(this)};
xpc(p,y?p.debounceRender:p.doRender)};
Xkl=function(p,y,l){if(l===null||l===void 0)return l;var q=Xsa(p.tagName.toLowerCase(),y,function(){throw Error("Ob");});
if(q===null)return l;q=vea[q];var t;if((t=q.isUnwrappable)==null?0:t.call(q,l)){if(q.unwrap)return q.unwrap(l);throw Error("bh");}return q.filterString?q.filterString(p.tagName,y,String(l)):l};
dpu=function(p,y,l){var q=y[y.length-1]!=="$",t=Xkl(p,y,l);if(q)if(typeof t==="function"&&y.startsWith("reactiveon")&&y===y.toLowerCase()){var E=Er;leL(p,y.slice(8),function(e){vQ(E,function(){t(e)})})}else p[y]=t;
else l=t==null?null:String(t),Or(p,y.slice(0,-1),l)};
XH=function(p){Om6.length===0&&requestAnimationFrame(function(){setTimeout(function(){var y=Om6.slice();Om6.length=0;y=_.c(y);for(var l=y.next();!l.done;l=y.next()){l=l.value;try{l()}catch(q){_.vL(q)}}})});
Om6.push(p)};
oe8=function(p){if(p){var y=p.component;if(y){var l;y==null||(l=y.events)==null||l.publish("DISCONNECTED");var q;y==null||(q=y.onDisconnected)==null||q.call(y)}var t,E;(t=p.__spec)==null||(E=t.didUnmount)==null||E.call(t);for(y=0;y<p.childNodes.length;y++)oe8(p.childNodes[y])}};
OU=function(p,y,l){var q=y&&y.key,t=tM;t[0]=p;t[1]=q;t[2]=void 0;for(var E in y)y.hasOwnProperty(E)&&(p=y[E],q=EY,q.push(E),q.push(p));y=tM;a:{if(E=tM[2])for(p=0;p<E.length;p+=2)if(E[p]==="nonce"){E=E[p+1];break a}E=""}E=aeo(y[0],y[1],E);p=zP(E);q=y[2];if(!p.staticsApplied&&(p.staticsApplied=!0,q&&q.length))if((t=p._attrsArr)&&t.length){for(t=0;t<q.length;t+=2)dW[q[t]]=t+1;t=p._attrsArr||(p._attrsArr=yKg(0));for(var e=0,C=0;C<t.length;C+=2){var u=t[C],a=t[C+1],m=dW[u];m?q[m]===a&&delete dW[u]:(t[e]=
u,t[e+1]=a,e+=2)}dq(t,e);for(var U in dW)JKu(E,U,q[dW[U]],cK),delete dW[U]}else for(U=0;U<q.length;U+=2)JKu(E,q[U],q[U+1],cK);Ge6(E,p,cK);dq(y,0);l&&l(YJ);mt_()};
zhR=function(p){var y=p.toString().toLowerCase();return function(l,q){OU(y,l,q)}};
_.oF=function(p,y,l){l===void 0?delete p[y.name]:p[y.name]=l};
_.zp=function(p){var y={androidIncludeFontPadding:!1},l=0,q=[],t=[],E=[];if(p.simpleText)return y.content=p.simpleText,y;if(p.runs===void 0)return y.content="",y;p=_.c(p.runs);for(var e=p.next();!e.done;e=p.next()){e=e.value;var C=e.text,u=void 0,a=(u=C)==null?void 0:u.length;if(C&&a){q.push(C);if(e.bold||e.italics||e.strikethrough||e.underline||e.textColor!=null&&e.textColor!==0||e.deemphasize){C=t;u=C.push;var m={startIndex:l,length:a};e.bold&&(m.weightLabel="FONT_WEIGHT_MEDIUM");e.italics&&(m.italic=
!0);e.strikethrough&&(m.strikethrough="LINE_STYLE_SINGLE");e.underline&&(m.underline="LINE_STYLE_SINGLE");e.textColor!=null&&e.textColor!==0?document.documentElement.hasAttribute("dark")?m.fontColor=e.darkModeTextColor||e.textColor:m.fontColor=e.textColor:e.deemphasize&&(document.documentElement.hasAttribute("dark")?m.fontColor=parseInt("ff"+YG6("#aaa").substring(1),16):m.fontColor=parseInt("ff"+YG6("#606060").substring(1),16));u.call(C,m)}e.navigationEndpoint&&(C=E,u=C.push,m={startIndex:l,length:a,
onTap:{innertubeCommand:e.navigationEndpoint}},e.loggingDirectives&&_.oF(m,Id6,e.loggingDirectives),u.call(C,m));l+=a}}y.content=q.join("");y.styleRuns=t.length?t:void 0;y.commandRuns=E.length?E:void 0;return y};
y_m=function(p){if(p==null||!p.runs)return!0;p=_.c(p.runs);for(var y=p.next();!y.done;y=p.next())if(y=y.value,y.bracket||y.errorUnderline||y.deemphasize||_.G(y,Yg)||_.G(y,pM_))return!1;return!0};
l5j=function(p,y){return function(l){var q=y.unit;if(q!==l)throw Error("eh`"+p+"`"+q+"`"+l);return y}};
IF=function(p){if(!((p==null?0:p.value)&&(p==null?0:p.unit)))return"";switch(p.unit){case "DIMENSION_UNIT_FRACTION":var y="%";break;default:y="px"}p=p.value;y==="%"&&(p*=100);return""+p+y};
qhL=function(p){try{return p()}catch(y){_.vs(y)}};
_.yM=function(p){var y=_.G(p,_.pY);if(y)return y;if((y=_.G(p,scu))&&y.commands)return t7L(y.commands);if((y=_.G(p,ElR))&&y.commands)return t7L(y.commands);if((p=_.G(p,J_6))&&p.identifier&&p.command&&(c_t||(c_t=[]),!c_t.includes(p.identifier)))return c_t.push(p.identifier),_.G(p.command,_.pY)};
t7L=function(p){if(p.length!==0){var y=[];p=_.c(p);for(var l=p.next();!l.done;l=p.next())(l=_.yM(l.value))&&y.push(l);return{commandExecutorCommand:{commands:y}}}};
_.qW=function(p){var y=p.defaultTarget,l=p.elementConfig,q=p.elementsCommand,t=p.skipOnClick,E=p.forceNewState,e=p.additionalCommandArgs,C=p.innertubeCommand||_.yM(q);if(C){p={};var u=ezc(C);q=u.navigatingCommand;u=u.href;q&&u?(p.href$=u,hzu(p,q,u,y),_.n("web_atagconfig_pointerdown")&&Cil(p,q),E&&(p["force-new-state$"]=!0)):(p.role$="button",p.href$="javascript:void(0);");_.G(C,uho)&&(p["aria-haspopup$"]=!0);t||(p.onclick=function(a){var m={};if(Rzc(a)){if(e==null?0:e.clickedVisualElement)m={clickedVisualElement:e.clickedVisualElement};
m=Object.assign({},{form:{element:a.target,event:a,createScreenConfig:m}},e);a.preventDefault();_.lp(C,m)}});
return Object.assign({},l,p)}};
Wvm=function(p){if(p.length){if(p.length===1)return p[0];var y={};_.oF(y,_.AO,{commands:p});return y}};
s5=function(p){return p&&p.href$!=="javascript:void(0);"};
ezc=function(p){var y,l=((y=_.G(p,_.AO))==null?void 0:y.commands)||[p];p=_.c(l);for(y=p.next();!y.done;y=p.next()){y=y.value;var q=void 0,t=void 0;l=(t=_.G((q=y)==null?void 0:q.commandMetadata,_.ul))==null?void 0:t.url;_.n("web_remove_web_navigation_endpoint_data")||(q=void 0,l=l||((q=_.G(y,a5m))==null?void 0:q.url));if(l&&l!=="/service_ajax"){if(q=fO(l,m_R))return p=_.xX(q),{navigatingCommand:y,href:p};_.vs(new _.SM("AttributedString URL could not be sanitized",l))}}return{}};
Rzc=function(p){return p.button!==void 0?p.button===0&&!(p.shiftKey||p.altKey||p.metaKey||p.ctrlKey):!(p.shiftKey||p.altKey||p.metaKey||p.ctrlKey)};
hzu=function(p,y,l,q){l=!Ch(l);var t,E,e;if((t=_.G(y,_.wC))!=null&&t.nofollow||(E=_.G(y,_.Eb))!=null&&E.nofollow||(e=_.G(y,_.Id))!=null&&e.nofollow||l)p.rel$="nofollow";var C;y=((C=_.G(y,_.Id))==null?void 0:C.target)==="TARGET_NEW_WINDOW"?"_blank":q===void 0?"":q;p.target$=y};
Cil=function(p,y){y.clickTrackingParams&&(p.params={itct:y.clickTrackingParams});p.onpointerdown=function(l){U__(l)};
p._data=y};
$_5=function(p){(p.loggingUrls||[]).forEach(function(y){y6(y.baseUrl,y.attributionSrcMode)})};
jcR=function(p){p.currentTarget._data&&$_5(p.currentTarget._data)};
U__=function(p){var y=p.currentTarget;p=qhL(function(){return y.href});
var l=y.params;p&&_.hO(p,l||{},8,!0)};
bf_=function(p,y){if(y=_.G(y,_.Id))(y==null?void 0:y.target)==="TARGET_NEW_WINDOW"&&(p.target="_blank"),y.nofollow&&(p.rel="nofollow")};
nlt=function(p){p=_.G(p==null?void 0:p.commandMetadata,_.ul);return(p==null?0:p.url)?p.url:null};
_.tb=function(p,y){(p=_.yM(p))&&_.lp(p,y)};
_.lp=function(p,y){WO5(function(l){y?l.resolveCommand(p,y):l.resolveCommand(p)})};
Zfc=function(p,y){var l=["yt-core-attributed-string__link"];y!=null&&y.noLinkColor||((y==null?0:y.isOverlay)?l.push("yt-core-attributed-string__link--overlay-call-to-action-color"):l.push("yt-core-attributed-string__link--call-to-action-color"),(y==null?0:y.linkInheritColor)&&l.push("yt-core-attributed-string--link-inherit-color"));l={className:l.join(" "),tabindex$:"0"};var q=p.onTap||p.onLongPress;if(!q)return l;var t=Gjt(p);t&&(l["aria-label$"]=t);y=_.qW({elementsCommand:q,elementConfig:l,skipOnClick:!(y==
null||!y.skipOnClick),forceNewState:!0});p.onLongPress&&(q=new Pit(function(){var E=_.yM(p.onLongPress);E&&_.WC().resolve(_.aK).resolveCommand(E)}),y&&A_m(q,y));
return y||l};
Gjt=function(p){var y,l;return(y=p.onTapOptions)==null?void 0:(l=y.accessibilityInfo)==null?void 0:l.accessibilityLabel};
M78=function(p){var y=p;p<=16777215&&(y+=parseInt("ff000000",16));return _.Y9(y)};
V7L=function(p){var y=p.isDarkTheme;var l=p.extension;p=p.runColor;var q=void 0;if(l=l==null?void 0:l.colorMap){y=y?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";l=_.c(l);for(var t=l.next();!t.done;t=l.next())if(t=t.value,y===t.key){q=t.value;break}}q==null&&p&&(q=p);if(q)return M78(q)};
E5=function(p){var y=p.config;var l=p.image;var q=p.imageConfig;var t=p.imageWrapperConfig;var E=p.run;var e=p.tag;var C=p.textLength;var u=p.startIndex===void 0?0:p.startIndex;p=p.length;u===void 0&&(u=0);E={run:E,startIndex:u,endIndex:p!==void 0?u+p:C,tag:e};l&&(E.image=l);q&&(E.imageConfig=q);t&&(E.imageWrapperConfig=t);y&&(E.config=y);return E};
Qcl=function(p,y){var l=[];l.push("yt-core-attributed-string");(y==null?0:y.className)&&l.push(y==null?void 0:y.className);(y==null?0:y.ellipsisTruncate)?l.push("yt-core-attributed-string--ellipsis-truncate"):(y==null?0:y.noWrap)?l.push("yt-core-attributed-string--white-space-no-wrap"):(y==null?0:y.noPreWrap)||l.push("yt-core-attributed-string--white-space-pre-wrap");(y==null?0:y.linkInheritColor)&&l.push("yt-core-attributed-string--link-inherit-color");p.alignment&&l.push(glo(p.alignment));p.lineBreakMode&&
l.push("yt-core-attributed-string--word-wrapping");return l.join(" ")};
Kv_=function(p){if(p.weight)return p.weight;switch(p.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
wML=function(p){switch(p){case "LINE_STYLE_DOT":return"yt-core-attributed-string--line-style-dot";case "LINE_STYLE_NONE":return"yt-core-attributed-string--line-style-none";default:return"yt-core-attributed-string--line-style-single"}};
glo=function(p){switch(p){case "TEXT_ALIGNMENT_LEFT":return"yt-core-attributed-string--text-alignment-left";case "TEXT_ALIGNMENT_RIGHT":return"yt-core-attributed-string--text-alignment-right";case "TEXT_ALIGNMENT_CENTER":return"yt-core-attributed-string--text-alignment-center";case "TEXT_ALIGNMENT_JUSTIFIED":return"yt-core-attributed-string--text-alignment-justified";case "TEXT_ALIGNMENT_LAYOUT_START":return"yt-core-attributed-string--text-alignment-layout-start";default:return"yt-core-attributed-string--text-alignment-unknown"}};
ew=function(p,y,l){var q=y;p.content&&l&&(l=p.content.indexOf("\n"),l!==-1&&(q=Math.min(y,l)));if(!p.content||p.content.length<=q)y=p;else if(p.attachmentRuns||p.commandRuns||p.decorationRuns||p.styleRuns||p.paragraphStyleRuns){y=Jb(p.content,q);l=q;var t=p.attachmentRuns;if(t){var E=[];t=_.c(t);for(var e=t.next();!e.done;e=t.next())e=Object.assign({},e.value),e.startIndex===void 0||e.startIndex>=l||(e.length||(e.length=0),e.length+e.startIndex>l&&(e.length=l-e.startIndex),E.push(e));l=E}else l=void 0;
E=ifg(q,p.commandRuns);t=q;var C=p.decorationRuns;if(C){e=[];C=_.c(C);for(var u=C.next();!u.done;u=C.next()){u=u.value;var a=_.G(u.textDecorator,c$);if(a&&a.startIndex!==void 0&&!(a.startIndex>=t)){u=Object.assign({},u,{textDecorator:{highlightTextDecorator:Object.assign({},a)}});a=_.G(u.textDecorator,c$);if(!a.length||a.length+a.startIndex>t)a.length=t-a.startIndex;e.push(u)}}t=e}else t=void 0;e=ifg(q,p.styleRuns);if(C=p.paragraphStyleRuns)for(p=[],C=_.c(C),u=C.next();!u.done;u=C.next()){var m=u.value;
u=Object.assign({},m);if(!(u.startIndex===void 0||u.startIndex>=q)){if(!u.length||u.length+u.startIndex>q)u.length=q-u.startIndex;a=[];var U=void 0,b=void 0;if((U=m)==null?0:(b=U.listGroup)==null?0:b.listItems)for(m=_.c(m.listGroup.listItems),U=m.next();!U.done;U=m.next())if(U=Object.assign({},U.value),!(U.startIndex===void 0||U.startIndex>=q)){if(!U.length||U.length+U.startIndex>q)U.length=q-U.startIndex;a.push(U)}a.length>0&&(u.listGroup||(u.listGroup={}),u.listGroup=Object.assign({},u.listGroup,
{listItems:a}));p.push(u)}}else p=void 0;y={content:y,attachmentRuns:l,commandRuns:E,decorationRuns:t,styleRuns:e,paragraphStyleRuns:p}}else y=Object.assign({},p,{content:Jb(p.content,q)});return y};
ifg=function(p,y){if(y){var l=[];y=_.c(y);for(var q=y.next();!q.done;q=y.next())if(q=Object.assign({},q.value),!(q.startIndex===void 0||q.startIndex>=p)){if(!q.length||q.length+q.startIndex>p)q.length=p-q.startIndex;l.push(q)}return l}};
Jb=function(p,y){var l=y,q;if(q=l>0)q=p.charCodeAt(l-1),q=q>=55296&&q<=56319;q&&(l=p.charCodeAt(l),q=l>=56320&&l<=57343);q&&--y;return p.substring(0,y)};
Lv5=function(p,y,l){l=l===void 0?r_u:l;if(p){var q=_.WC().resolve(hK);q||_.n("mweb_no_observer_killswitch")?Vta(p,{data:y,observer:q,visibilityCallback:l,hideOption:Shj,showOption:Fv_,layer:p.layer}):_.vs(new _.SM("Warning: monitorVisibility called with null observer",p.tagName,y==null?void 0:y.loggingDirectives,y==null?void 0:y.trackingParams))}else _.vs(new _.SM("Warning: monitorVisibility called with null element",y==null?void 0:y.loggingDirectives,y==null?void 0:y.trackingParams,y==null?void 0:
y.rendererContext))};
B0u=function(p,y){var l=[],q=p.content.length,t,E=(t=_.WC().resolve(_.RK(_.hb)))==null?void 0:t();if(p.paragraphStyleRuns){t=_.c(p.paragraphStyleRuns);for(var e=t.next();!e.done;e=t.next()){var C=l.push,u=C.apply;var a=void 0;e=e.value;if((a=e.listGroup)!=null&&a.listItems){a=[];b:switch(e.listGroup.listType){case "LIST_TYPE_BULLET":var m="ul";break b;default:m="span"}a.push(E5({run:e,textLength:q,tag:m,config:{className:"yt-core-attributed-string__list-group"},startIndex:e.startIndex,length:e.length}));
m=_.c(e.listGroup.listItems);for(var U=m.next();!U.done;U=m.next()){U=U.value;b:switch(e.listGroup.listType){case "LIST_TYPE_BULLET":var b="li";break b;default:b="span"}a.push(E5({run:e,textLength:q,tag:b,startIndex:U.startIndex,length:U.length}))}e=a}else e=[];u.call(C,l,_.xq(e))}}if(p.styleRuns&&(y==null||!y.noStyleRuns))for(t=_.c(p.styleRuns),C=t.next();!C.done;C=t.next()){C=C.value;u=V7L({extension:_.G(C.styleRunExtensions,kj5),isDarkTheme:E===void 0?!1:E,runColor:C.fontColor});a=[];u&&a.push("yt-core-attributed-string--link-inherit-color");
C.italic&&a.push("yt-core-attributed-string--italicized");C.underline&&C.strikethrough?a.push("yt-core-attributed-string--underline-strikethrough",wML(C.underline)):C.underline?a.push("yt-core-attributed-string--underlined",wML(C.underline)):C.strikethrough&&a.push("yt-core-attributed-string--strikethrough",wML(C.strikethrough));if(C.baselineOffset){a:switch(C.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":e="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":e=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:e="yt-core-attributed-string--baseline-offset-unknown"}a.push(e)}e=a.join(" ");a=C;m={};if(a.weight||a.weightLabel)m.fontWeight=Kv_(a).toString();u&&(m.color=u);l.push(E5({run:C,textLength:q,tag:"span",config:{className:e,style:m},startIndex:C.startIndex,length:C.length}))}if(p.decorationRuns)for(t=_.c(p.decorationRuns),C=t.next();!C.done;C=t.next())C=C.value,u={},C.textDecorator&&(m=C.textDecorator,e=E===void 0?!1:E,U=[],a=
_.G(m,c$),m=_.G(m,N0L),a?(m=U,U=m.concat,b=[],(e=V7L({extension:_.G(a.highlightTextDecoratorExtensions,D_c),isDarkTheme:e,runColor:a.backgroundColor}))&&b.push("background-color: "+e+";"),a.backgroundCornerRadius!==void 0&&b.push("border-radius: "+a.backgroundCornerRadius+"px;"),a.leftPadding!==void 0&&b.push("padding-left: "+a.leftPadding+"px;"),a.rightPadding!==void 0&&b.push("padding-right: "+a.rightPadding+"px;"),a.topPadding!==void 0&&b.push("padding-top: "+a.topPadding+"px;"),a.bottomPadding!==
void 0&&b.push("padding-bottom: "+a.bottomPadding+"px;"),U=U.call(m,b)):m&&(a=U,U=a.concat,e=e?"#2ba640":"#107516",e=m.color?M78(m.color):e,e=["padding: 2px;","border-top: solid "+e+" 2px;","border-bottom: solid "+e+" 2px;","background: linear-gradient(135deg, "+e+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+e+" 3px, rgba(0, 0, 0, 0) 3px);"],U=U.call(a,e)),e=U.join(" "),u.style$=e,e=C.textDecorator,a=[],m=_.G(e,N0L),_.G(e,c$)?a.push("yt-core-attributed-string--highlight-text-decorator"):
m&&a.push("yt-core-attributed-string--bracket-text-decorator"),e=a.join(" "),u.className=e,u.dir="auto"),e=_.G(C.textDecorator,c$),a=_.G(C.textDecorator,N0L),m=_.G(C.textDecorator,c$),U=_.G(C.textDecorator,N0L),l.push(E5({run:C,textLength:q,tag:"span",config:u,startIndex:(e==null?void 0:e.startIndex)||(a==null?void 0:a.startIndex)||0,length:(m==null?void 0:m.length)||(U==null?void 0:U.length)||0}));if(p.commandRuns&&(y==null||!y.noEndpoints))for(E=_.c(p.commandRuns),t=E.next();!t.done;t=E.next())t=
t.value,C=Zfc(t,y),l.push(E5({run:t,textLength:q,tag:"a",config:C,startIndex:t.startIndex,length:t.length}));if(p.attachmentRuns)for(p=_.c(p.attachmentRuns),E=p.next();!E.done;E=p.next()){E=E.value;u=C=void 0;t={className:"yt-core-attributed-string--inline-block-mod"};if((u=E.element)==null?0:u.properties){u=(C=E.element)==null?void 0:C.properties;C=[];u=_.G(u,Hf_);if(u==null?0:u.margin)u=u.margin,u.left&&C.push("margin-left: "+IF(u.left)+";"),u.right&&C.push("margin-right: "+IF(u.right)+";"),u.top&&
C.push("margin-top: "+IF(u.top)+";"),u.bottom&&C.push("margin-bottom: "+IF(u.bottom)+";");C=C.length!==0?C.join(" "):void 0;t.style$=C}e=void 0;C={alt:"",preserveHeight:!0,preserveWidth:!0};u=["yt-core-attributed-string__image-element"];if(E.alignment){a:switch(E.alignment){case "ALIGNMENT_BASELINE":a="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":a="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:a=
"yt-core-attributed-string__image-element--image-alignment-bottom"}u.push(a)}if((e=E.element)==null?0:e.properties)e=[],a=_.G(E.element.properties,Hf_),(a==null?0:a.height)&&e.push("height: "+IF(a.height)+";"),(a==null?0:a.width)&&e.push("width: "+IF(a.width)+";"),e=e.length!==0?e.join(" "):void 0,C.style$=e,a=void 0,e=((a=_.G(E.element.properties,T0j))==null?void 0:a.label)||"",C.alt=e;C.className=u.join(" ");u=void 0;m=a=void 0;e=((m=E.element)==null?0:m.type)?(a=_.G(E.element.type,x_g))==null?
void 0:a.image:void 0;l.push(E5({run:E,textLength:q,tag:"img",image:e,imageConfig:C,imageWrapperConfig:t,startIndex:E.startIndex,length:(u=E.length)!=null?u:0}))}if(y==null?0:y.headerRuns)for(y=_.c(y.headerRuns),p=y.next();!p.done;p=y.next())if(p=p.value,p.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(p.headerMapping)){a:{switch(p.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":E=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":E="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":E="yt-core-attributed-string--heading-3";break a}E=void 0}l.push(E5({run:p,textLength:q,tag:"span",config:E?{className:E}:void 0,startIndex:p.startIndex,length:p.length}))}return l};
_.CY=function(p){return(p==null?void 0:p.content)!==void 0};
f5_=function(p){return _.CY(p)?p:_.zp(p)};
vlm=function(p){return p.image!==void 0&&p.imageConfig!==void 0};
XMR=function(p,y){if(y==null?0:y.userInput)for(p=_.c(p),y=p.next();!y.done;y=p.next())if(y=y.value,y.tag!=="a"&&y.tag!=="li"){var l=void 0;(l=y).config||(l.config={});y.config.dir=y.tag==="ul"?_.WC().resolve(_.up):"auto"}};
d_5=function(p){return function(y){var l=p.run;(l.onTap!==void 0||l.onLongPress!==void 0)&&_.G(l,Id6)&&Lv5(y,{loggingDirectives:_.G(l,Id6)})}};
Of8=function(p){return function(y){for(var l in p)(cK[l]||cK[oe["default"]])(y,l,p[l])}};
I56=function(p,y){olc(y);var l={data:null,start:0,end:p.length,parts:[]};y=_.c(y);for(var q=y.next();!q.done;q=y.next())q=q.value,zzR(l,q.startIndex,q.endIndex,q);Yha(p,l);return l};
zzR=function(p,y,l,q){for(var t=_.c(p.parts),E=t.next();!E.done;E=t.next()){E=E.value;if(typeof E==="string")throw Error("gh");if(E.start<=y&&l<=E.end){zzR(E,y,l,q);return}}p.parts.push({data:q,parts:[],start:y,end:l})};
Yha=function(p,y){for(var l=y.parts.length;l>=0;l--){var q=y.parts[l],t=y.parts[l-1],E=l===y.parts.length?y.end:q.start;t=l===0?y.start:t.end;E!==t&&y.parts.splice(l,0,p.slice(t,E));q&&Yha(p,q)}};
olc=function(p){p.sort(function(y,l){if(y.startIndex<l.startIndex)return-1;if(l.startIndex<y.startIndex)return 1;y=y.endIndex-y.startIndex;l=l.endIndex-l.startIndex;return y>l?-1:l>y?1:0})};
_.pwg=function(p){var y=p.thumbnails;if(y){p={sources:[]};y=_.c(y);for(var l=y.next();!l.done;l=y.next()){l=l.value;var q={};q.url=l.url;q.width=l.width;q.height=l.height;p.sources.push(q)}return p}};
y58=function(p,y,l,q){if(!y)return p.length>=1?p[p.length-1]:null;if(q)for(var t=_.c(p),E=t.next();!E.done;E=t.next()){E=E.value;var e=void 0,C=(e=E.url)==null?void 0:e.indexOf(q);if(C!==void 0&&C>=0)return E}q=_.c(p);for(t=q.next();!t.done;t=q.next())if(t=t.value,t.width&&t.height&&(l&&t.width>=y||!l&&t.height>=y))return t;for(y=p.length-1;y>=0;y--)if(l&&p[y].width||!l&&p[y].height)return p[y];return p[0]};
_.ljo=function(p){var y;return(p=(y=p.sources)==null?void 0:y[0])?p.width/p.height:0};
_.qea=function(p){if(p.sources){p=_.c(p.sources);for(var y=p.next();!y.done;y=p.next()){y=y.value;var l=void 0;if((l=y.clientResource)==null?0:l.imageName)return y}}};
sVt=function(p){var y;if((y=p.clientResource)!=null&&y.imageColor)return _.Y9(p.clientResource.imageColor)};
_.Eu8=function(p,y,l,q,t,E,e){if(!y||y.length===0||y[0].clientResource)return null;if(l&&y[0].url)return y[0].url;q===void 0&&(q=!0);if(q){var C;p=tgo*(t||(p==null?void 0:(C=p.getBoundingClientRect())==null?void 0:C.width)||0)}else{var u;p=tgo*(E||(p==null?void 0:(u=p.getBoundingClientRect())==null?void 0:u.height)||0)}y=y58(y,p,q,e);return(y==null?0:y.url)?y.url:(y==null?0:y.imageData)?y.imageData:null};
J5l=function(p,y,l){l=l?[l]:[];p.opacity&&l.push("opacity: "+p.opacity+";");y&&p.placeholderColor?(p=_.Y9(p.placeholderColor),l.push("background-color: "+p+";")):l.push("background-color: transparent;");return l.join(" ")};
c5t=function(p,y,l,q,t){var E=["yt-core-image"];y&&E.push(y);l||E.push("yt-core-image--fill-parent-height");q||E.push("yt-core-image--fill-parent-width");switch(p.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":E.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":E.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":E.push("yt-core-image--content-mode-center");break;default:E.push("yt-core-image--content-mode-scale-to-fill")}p.flipForRtlLayout&&
E.push("yt-core-image--flip-rtl");switch(t){case "TOP_START":var e;E.push(((e=document.body)==null?void 0:e.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return E.join(" ")};
hC_=function(p){var y;if(p==null?0:(y=p.clientResource)==null?0:y.imageName){var l;p=(l=p.clientResource)==null?void 0:l.imageName;a:{switch(p){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":l="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":l="yt-logos-ext:yt-logo-updated";break a}l=void 0}return l||eCj.get(p)||p}};
RCj=function(p){return _.n("mweb_wiz_skip_render")?Cuc(p):uul(p)};
Cuc=function(p){return function(y){var l=aeo("wink-root");sY();mt_();Lm5(l,_.R(p,y))}};
uul=function(p){var y=y===void 0?!1:y;return function(l){if(!y||!_.n("mweb_skip_keto_to_c3_if_no_data")||l.data!==void 0){var q=mq(!1);try{var t=l.children;_.n("mweb_render_outside_patch_killswitch")||YJ?t?JK(_.R(p,l,t)):JK(_.R(p,l)):_.vs(new _.SM("ketoToC3 called outside of a patch",{tagName:p.TAG_NAME}))}finally{mq(q)}}}};
W9t=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
mko=function(p,y){p.onViewportEntered=y;aj5.observe(p)};
Ukm=function(){var p={rootMargin:"10%",threshold:.01};_.n("mweb_enable_set_io_root_to_null_safari")?p.root=null:_.n("mweb_enable_set_io_root_to_body_safari")&&(p.root=document.body);return new IntersectionObserver(function(y,l){y.filter(function(q){return q.intersectionRect.height>0}).forEach(function(q){q=q.target;
if(!_.n("mweb_enable_only_update_image_when_connected")||q.isConnected!==!1){var t;(t=q.onViewportEntered)==null||t.call(q);l.unobserve(q)}})},p)};
$kl=function(p,y,l,q,t){function E(){if(q){var C=q.loadedClass,u=q.notifyOnUnloaded;C&&_.Rx(p,C);u&&p.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function e(){var C=l(y,p);C&&p.getAttribute("src")!==C&&(_.n("mweb_enable_only_update_image_when_connected")&&p.isConnected===!1||C===p.src||(p.src=C),E())}
t=t===void 0?!0:t;p.removeAttribute("src");E();y&&(t?mko(p,e):e())};
jVt=function(p,y,l){if(!y)return!1;y=l(y,p);l=p.getAttribute("src");return y&&y===l&&p.complete};
bkR=function(p,y){for(var l in y)l==="className"?p.className=y[l]:(cK[l]||cK[oe.default])(p,l,y[l])};
nut=function(p,y,l,q){RCj(_.W$)({contentMode:y.contentMode,loadedClass:y.loadedClass,isPreloaded:y.isPreloaded,notifyOnLoaded:y.notifyOnLoaded,notifyOnUnloaded:y.notifyOnUnloaded,preferredThumbnail:y.preferredThumbnail,preserveHeight:y.preserveHeight,preserveWidth:y.preserveWidth,objectPosition:y.objectPosition,targetWidth:y.targetWidth,targetHeight:y.targetHeight,shouldShowPlaceholder:y.shouldShowPlaceholder,useWidth:y.useWidth,isToggled:y.isToggled,alt:y.alt,className:y.className,onerror:y.onerror,
onload:y.onload,style$:y.style$,color:y.color,width:y.width,height:y.height,"aria-hidden$":y["aria-hidden$"],draggable:y.draggable,"data-disabled$":y["data-disabled$"],data:p,callback:l,renderLazy:q===void 0?!0:q,hideOn404:!1})};
Pug=function(p,y,l){l=l===void 0?!1:l;var q=p.sources!==void 0?p:_.pwg(p);if(q){var t=y.onload;y.onload=function(u){var a=u.target;l&&a.naturalWidth===120||_.ax(a,"yt-core-image--loaded");y.notifyOnLoaded&&a.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));t==null||t(u)};
y.targetWidth&&y.preserveWidth&&(y.width=y.targetWidth);y.targetHeight&&y.preserveHeight&&(y.height=y.targetHeight);var E=_.qea(q),e=E&&hC_(E);if(e)return(p=sVt(E))&&(y.color=p),{type:"icon",iconName:e,config:Object.assign({},y,y.alt?{}:{"aria-hidden$":"true"},{"aria-label$":y.alt,role:"img"})};if(p.sources===void 0){y.alt=p.accessibility&&p.accessibility.accessibilityData&&p.accessibility.accessibilityData.label||y.alt;y.style$=J5l(p,y.shouldShowPlaceholder,y.style$);var C;y.isPreloaded=!((C=_.G(p,
GG_))==null||!C.isPreloaded)}y.contentMode&&!q.contentMode&&(q.contentMode=y.contentMode);y.className=c5t(q,y.className,y.preserveHeight,y.preserveWidth,y.objectPosition);y.loadedClass="yt-core-image--loaded";return{type:"image",image:q,config:y}}};
_.mR=function(){var p=_.oX.apply(0,arguments);return _.tK(A5_,function(y){var l=p.map(function(q){return q==null?void 0:q(y)});
return function(){return void l.forEach(function(q){return void(q==null?void 0:q())})}})};
U5=function(p,y){var l=y==null?void 0:y.initial;return _.MA(function(){_.BQ(!0);return l=p(l)},{equals:y==null?void 0:y.isEqual},"rSlKsc")};
Zkl=function(p,y){if(p===y)return!0;if(p===void 0||y===void 0)return!1;var l,q,t,E,e,C,u,a;return p.content===y.content&&((l=p.styleRuns)==null?void 0:l.length)===((q=y.styleRuns)==null?void 0:q.length)&&((t=p.commandRuns)==null?void 0:t.length)===((E=y.commandRuns)==null?void 0:E.length)&&((e=p.attachmentRuns)==null?void 0:e.length)===((C=y.attachmentRuns)==null?void 0:C.length)&&((u=p.decorationRuns)==null?void 0:u.length)===((a=y.decorationRuns)==null?void 0:a.length)};
gug=function(p,y){if(p){var l=f5_(p);if(l!=null&&l.content)if(_.n("attr_string_reactive"))RCj(Mg5)({text:p,config:y});else{var q=!(y==null||!y.ariaLabel)||!(l.commandRuns&&l.commandRuns.length!==0||l.paragraphStyleRuns&&l.paragraphStyleRuns.length!==0);p=q?y==null?void 0:y.ariaLabel:null;q=q?"text":null;OU("span",{className:Qcl(l,y),dir$:(y==null?0:y.userInput)?"auto":void 0,"aria-label$":p,role$:q},function(){if(l.styleRuns||l.commandRuns||l.attachmentRuns||l.decorationRuns){var t=B0u(l,y);XMR(t,
y);t=I56(l.content,t);t=_.c(t.parts);for(var E=t.next();!E.done;E=t.next())Vga(E.value)}else hM(l.content)})}}};
Vga=function(p){typeof p==="string"?hM(p):vlm(p.data)?OU("span",p.data.imageWrapperConfig,function(){nut(p.data.image,p.data.imageConfig)}):OU(p.data.tag,p.data.config,function(y){d_5(p.data)(y);
y=_.c(p.parts);for(var l=y.next();!l.done;l=y.next())Vga(l.value)})};
K9m=function(p){return p.parts.map(QVo)};
QVo=function(p){if(typeof p==="string")return p;p=vlm(p.data)?_.R("span",{el:_.mR(Of8(p.data.imageWrapperConfig))},_.R(_.W$,Object.assign({},{data:p.data.image},p.data.imageConfig))):_.R(p.data.tag,{el:_.mR(d_5(p.data),Of8(p.data.config))},p.parts.map(QVo));return Vi(p)};
wwL=function(p,y){return p===y?!0:p===void 0||y===void 0?!1:p.noStyleRuns===y.noStyleRuns&&p.noLinkColor===y.noLinkColor&&p.noEndpoints===y.noEndpoints&&p.headerRuns===y.headerRuns&&p.isOverlay===y.isOverlay&&p.linkInheritColor===y.linkInheritColor&&p.userInput===y.userInput};
ikt=function(p){return function(){var y,l,q,t,E,e,C,u,a,m,U,b,P,Z;return{ariaLabel:(y=p.ariaLabel)==null?void 0:y.call(p),className:(l=p.className)==null?void 0:l.call(p),ellipsisTruncate:(q=p.ellipsisTruncate)==null?void 0:q.call(p),isOverlay:(t=p.isOverlay)==null?void 0:t.call(p),linkInheritColor:(E=p.linkInheritColor)==null?void 0:E.call(p),noEndpoints:(e=p.noEndpoints)==null?void 0:e.call(p),noStyleRuns:(C=p.noStyleRuns)==null?void 0:C.call(p),noLinkColor:(u=p.noLinkColor)==null?void 0:u.call(p),
noPreWrap:(a=p.noPreWrap)==null?void 0:a.call(p),noWrap:(m=p.noWrap)==null?void 0:m.call(p),skipOnClick:(U=p.skipOnClick)==null?void 0:U.call(p),stopPropagation:(b=p.stopPropagation)==null?void 0:b.call(p),userInput:(P=p.userInput)==null?void 0:P.call(p),headerRuns:(Z=p.headerRuns)==null?void 0:Z.call(p)}}};
r5_=function(p){return p.value===""||p.value==="true"?!0:p.value==="false"?!1:isNaN(Number(p.value))?p.value:Number(p.value)};
$S=function(p,y){p=new F9j(p,y);_.Bs(p);throw p;};
L9_=function(p,y,l){var q=BSt(p);p._numRenders=0;try{var t=_.qw8(function(){return _.R(y,Object.assign({},l))})}catch(e){var E=function(C){C.args||(C.args=[]);
C.args.push("Error in web component wrapper");C.args.push(p.tagName.toLowerCase());return C};
_.fT(e instanceof Error?E(e):new F9j("Wiz rendering error",p.tagName.toLowerCase()));throw e;}finally{BSt(q)}return t};
_.bp=function(p,y,l){function q(m){var U={};m=_.c(m);for(var b=m.next();!b.done;b=m.next()){b=b.value;var P=void 0,Z=void 0,K=void 0,F=_.Vl((K=(Z=(P=b).getAttribute)==null?void 0:Z.call(P,"slot"))!=null?K:"children");if(P=U[F])P.push(b);else if(F in E||F==="children")U[F]=[b]}m=_.c(Object.keys(U));F=m.next();for(b={};!F.done;b={content$jscomp$56:void 0},F=m.next())F=F.value,F!=="children"&&(b.content$jscomp$56=U[F],U[F]=function(L){return function(){return L.content$jscomp$56}}(b));
return U}
l=l===void 0?{}:l;p.componentType!==rq||$S("Components must be marked reactive to be used from web component wrapper.",y);Gp.has(y)&&$S("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",y);var t,E=(t=l.props)!=null?t:{};PL.add(y);var e=kGo();t=function(){var m=e.apply(this,arguments)||this;m.rawProps={};m.queuingRender=!1;m.dispose=function(){};
m.isWebComponentWrapper=!0;m.isReparenting=!1;m.hasRendered=!1;return m};
_.A(t,e);t.prototype.render=function(){this.hasRendered=!0;for(var m=_.c([].concat(_.xq(this.attributes))),U=m.next();!U.done;U=m.next())U=U.value,U.name!=="slot"&&U.name!=="hidden"&&this.removeAttribute(U.name);m=Object.assign({},this.componentProps,this.slotProps);U=_.c(L9_(this,p,m));m=U.next().value;U=U.next().value;!(m[0]instanceof Element)||m.length>1?$S("Wrapped Wiz components must return a single root element.",y):(m=m[0].tagName.toLowerCase(),m!==y&&$S("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(m+" !== '"+y),y),this.dispose=U)};
t.prototype.setUpProps=function(){for(var m=this.rawProps,U=this.attributes,b=_.c(Object.keys(E)),P=b.next();!P.done;P=b.next()){P=P.value;var Z=void 0;((Z=this)==null?0:Z[P])&&this[P]!==NGc&&m[P]===void 0&&(m[P]=this[P],(Z=Object.getOwnPropertyDescriptor(this.constructor.prototype,P))&&Object.defineProperty(this,P,Z))}b=_.c(U);for(P=b.next();!P.done;P=b.next()){Z=P.value;P=_.Vl(Z.name);var K=P==="class"&&!U.getNamedItem("class-name");if(P in E||K)Z=r5_(Z),P!=="class"||m.className?m[P]=Z:m.className=
Z}U={};for(var F in E)E[F]!==_.jw&&E[F]!==Dkt&&(m[F]instanceof Function&&$S("Function props must be configured as STATIC, not SIGNAL.",y),P=_.c(_.nr(m[F],void 0,"Ri8MSe")),b=P.next().value,P=P.next().value,U[F]=P,m[F]=b);m=_.c([m,U]);this.componentProps=m.next().value;this.setters=m.next().value;this.slotProps=q(this.childNodes)};
t.prototype.connectedCallback=function(){by===y&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in E&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
t.prototype.disconnectedCallback=function(){if(!this._isInert){var m;a:{if(_.Hkg)for(m=this;m;){if(_.TGo.has(m)){m=!0;break a}m=m.parentElement}m=!1}if(m)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){m=_.c([].concat(_.xq(this.attributes)));for(var U=m.next();!U.done;U=m.next()){U=U.value;var b=void 0;U.name==="slot"||U.name==="hidden"&&((b=l.unsafeExternallySettableAttributes)==null?0:b.has("hidden"))||this.removeAttribute(U.name)}}this.innerText="";FBj(this)}}};
t.prototype._setPendingPropertyOrPath=function(){};
t.prototype.notifyPath=function(){};
_.Jh.Object.defineProperties(t.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var C=_.c(Object.keys(E)),u=C.next(),a={};!u.done;a={prop$jscomp$104:void 0},u=C.next())a.prop$jscomp$104=u.value,u=void 0,((u=l.legacyPolymer)==null?0:u.forwardHostProps)&&ist.has(a.prop$jscomp$104)||Object.defineProperty(t.prototype,a.prop$jscomp$104,{set:function(m){return function(U){var b=this;this._isInert||(this.setters?Vc(function(){var P,Z;return void((Z=(P=b.setters)[m.prop$jscomp$104])==null?void 0:Z.call(P,U))}):(this.rawProps[m.prop$jscomp$104]=U,this.queuingRender&&m.prop$jscomp$104===
"data"&&U!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(a),
get:xk8.has(a.prop$jscomp$104)?void 0:function(){return NGc}});
customElements.define(y,t)};
_.BG5=function(p,y){return(p=_.nY(p,y))?_.xX(_.XX(p)):null};
_.GT=function(p){if(p=_.nY(p,Number.MAX_VALUE,void 0,"width"))return _.XX(p)};
_.nY=function(p,y,l,q){q=q===void 0?"width":q;if(!p||!p.length)return null;if(_.n("kevlar_tuner_should_always_use_device_pixel_ratio")){var t=window.devicePixelRatio;_.n("kevlar_tuner_should_clamp_device_pixel_ratio")?t=Math.min(t,_.UC("kevlar_tuner_clamp_device_pixel_ratio")):_.n("kevlar_tuner_should_use_thumbnail_factor")&&(t=_.UC("kevlar_tuner_thumbnail_factor"));fjo=t}else fjo||(fjo=window.devicePixelRatio);t=fjo;_.n("kevlar_tuner_should_always_use_device_pixel_ratio")?y*=t:t>1&&(y*=t);if(_.n("kevlar_tuner_min_thumbnail_quality"))return p[0].url||
null;t=p.length;if(_.n("kevlar_tuner_max_thumbnail_quality"))return p[t-1].url||null;if(l)for(var E=0;E<t;E++)if(p[E].url.indexOf(l)>=0)return p[E].url||null;for(l=0;l<t;l++)if(p[l][q]>=y)return p[l].url||null;for(y=t-1;y>0;y--)if(p[y][q])return p[y].url||null;return p[0].url||null};
dk8=function(){P$.size?setTimeout(function(){Ab(vu5)},0):Xwj=0};
vu5=function(){var p=(0,_.uM)(),y=null,l=!1;P$.forEach(function(t){t.loaded=!0;t.loadTime=p;t.pendingPaint=!1;var E=Okj.get(t);E&&E.resolve(p);y=t;l||!t.ftlEligible&&t.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(l=!0)});
var q;((q=y)==null?0:q.markDirty)&&y.markDirty();P$.clear();Xwj=0;l&&ou6(p)};
zCc=function(p){P$.add(p);p.pendingPaint=!0;Xwj||(Xwj=_.ZR(_.TR,dk8))};
YeR=function(p){p.loaded=!1;p.loadTime=Infinity;var y=Okj.get(p);y&&(y.reject(Error("mh")),Okj.delete(p));p.pendingPaint&&(P$.delete(p),p.pendingPaint=!1)};
_.IjR=function(p){var y=p.indexOf(":");return y===-1?{originalName:p}:{originalName:p.substring(0,y),datasyncId:p.substring(y+1)}};
_.yzl=function(){return _.h(function(p){if(pva!==void 0)return p.return(pva);pva=new Promise(function(y){var l;return _.h(function(q){switch(q.nextAddress){case 1:return _.Ve(q,2),q.yield(_.MW.open("test-only"),4);case 4:return q.yield(_.MW.delete("test-only"),5);case 5:_.pK(q,3);break;case 2:if(l=_.i6(q),l instanceof Error&&l.name==="SecurityError")return y(!1),q.return();case 3:y("caches"in window),_.rR(q)}})});
return p.return(pva)})};
st_=function(){return _.h(function(p){if(p.nextAddress==1)return p.yield(_.yzl(),2);if(!p.yieldResult)return p.return(void 0);lPg||(lPg=new qlo);return p.return(lPg)})};
t3g=function(p){var y,l,q,t;return _.h(function(E){switch(E.nextAddress){case 1:return E.yield(st_(),2);case 2:y=E.yieldResult;if(!y)throw Error("oh");return E.yield(y.open("yt-player-local-img"),3);case 3:return l=E.yieldResult,E.yield(l.match(p),4);case 4:q=E.yieldResult;if(!q)throw Error("ph");return E.yield(q.blob(),5);case 5:return t=E.yieldResult,E.return(t)}})};
Eb6=function(p,y){for(var l in p)if(p.hasOwnProperty(l)&&y[l])return l;return null};
Jzg=function(p){return"stamp"+p.replace("-","_")+"_"};
cz_=function(p){var y=p.match(/\[\[([\w\.]+)\]\]/);if(y&&y.length>1)return y[1];_.Bs(Error("rh`"+p));return null};
ei8=function(p){return p===void 0?_.o4("REUSE_COMPONENTS",!1):p||!1};
ubR=function(p,y,l){l&&(y.is?(him.has(y)&&(p=him.get(y),l=p.listener,delete y[p.property],l.type==="element"&&y.removeEventListener(l.eventName,l.handler),him.delete(y)),CJR(y)):y.__proto__==HTMLElement.prototype&&(y=new _.SM("Rendererstamper removed a non custom element","Stamper: "+p+" element: "+(y&&y.nodeName)),_.vs(y)))};
Rij=function(p,y,l,q){var t=y.node?y.node:y;_.jR(l).parentNode===t&&(y.removeChild(l),ubR(p,l,q));if(p=VM.get(l))VM.delete(l),_.TR.cancelJob(p);l.hidden=!1};
WKc=function(p,y,l,q){if(y&&y.children&&(l=y.children[l]))if(_.o4("DEFERRED_DETACH"))for(;l&&!VM.has(l);){var t=p,E=y,e=l,C=q;e.hidden=!0;t=_.rJ(_.TR,Rij.bind(null,t,E,e,C),0);VM.set(e,t);l=l.nextElementSibling}else for(;(e=y.lastElementChild)&&(y.removeChild(e),ubR(p,e,q),e!=l););};
aPR=function(p){var y=_.sM("__slot-el");_.xZ(function(){for(var l=_.c(p.slotContent),q=l.next();!q.done;q=l.next())y.value.appendChild(q.value)});
return _.R("__slot-el",{el:y,skip:!0})};
_.gD=function(p,y,l){l=l===void 0?mzl:l;Gp.add(y);var q;(q=l).propNames!=null||(q.propNames=[]);var t=new Set(l.propNames),E=kGo();q=function(){var a=E.call(this)||this;a.props={};a.isUpdating=!1;a.hasAttached=!1;a.isInert=!1;a.updateQueued=!1;a.initialClasses=[];xua(a,y);return a};
_.A(q,E);q.prototype.forwardKebabCaseProp=function(a,m){a=_.Vl(a);if(t.has(a)||a==="children")this.props[a]=m};
q.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var a=_.c(this.initialClasses),m=a.next();!m.done;m=a.next())(m=m.value)&&this.classList.add(m);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
q.prototype.handleSlottedContent=function(){for(var a=new Map,m=_.c(this.children),U=m.next();!U.done;U=m.next()){U=U.value;var b=void 0,P=(b=U.getAttribute("slot"))!=null?b:"children";(b=a.get(P))?b.push(U):a.set(P,[U]);if(!U.getAttribute("key")){var Z=void 0,K=void 0;U.setAttribute("key",P+"_"+((K=(Z=b)==null?void 0:Z.length)!=null?K:0))}}a=_.c(a);for(m=a.next();!m.done;m=a.next())U=_.c(m.value),m=U.next().value,U=U.next().value,this.forwardKebabCaseProp(m,_.R(aPR,{slotContent:U}))};
q.prototype.connectedCallback=function(){var a=this;if(!xua(this,y)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var m=_.c(this.attributes),U=m.next();!U.done;U=m.next())U=U.value,this.forwardKebabCaseProp(U.name,r5_(U));this.handleSlottedContent();l.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){a.afterFirstPatch()});
this.hasAttached=!0}};
q.prototype.attributeChangedCallback=function(a,m,U){this.isInert||this.isUpdating||this.isConnected||a!=="class"||this.initialClasses.push.apply(this.initialClasses,_.xq(U.split(" ")))};
q.prototype.disconnectedCallback=function(){ncu(this)};
q.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var a,m;Lm5(this,_.R(p,Object.assign({},this.props,{idomKey:(m=(a=this.__incrementalDOMData)==null?void 0:a.key)!=null?m:y})),!0)}catch(b){var U=b instanceof Error?b:new _.SM("Wiz rendering error");U.args||(U.args=[]);U.args.push("Error in deprecated web component wrapper");U.args.push(y.toLowerCase());_.Bs(U);throw b;}finally{this.updateQueued=this.isUpdating=!1}}};
q.prototype.enqueueUpdate=function(){var a=this;return _.h(function(m){if(l.synchronous)return a.update(),m.return();if(a.updateQueued)return m.return();a.updateQueued=!0;return m.return(Promise.resolve().then(function(){a.update()}))})};
q.prototype.notifyPath=function(){l.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.Jh.Object.defineProperties(q,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var e=_.c(l.propNames),C=e.next(),u={};!C.done;u={prop$jscomp$106:void 0},C=e.next())u.prop$jscomp$106=C.value,Object.defineProperty(q.prototype,u.prop$jscomp$106,{set:function(a){return function(m){this.isInert||m===this.props[a.prop$jscomp$106]||(this.props[a.prop$jscomp$106]=m,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(u)});
customElements.define(y,q)};
_.Uz_=function(p,y){return _.Ae(p.entities,"markersEngagementPanelSyncEntity",y)};
$z6=function(p,y){return _.Ae(p.entities,"fantasyWinProbabilityEntity",y)};
jta=function(p,y){return _.Ae(p.entities,"fantasyTeamEntity",y)};
bQa=function(p,y){return _.Ae(p.entities,"fantasyPlayerEntity",y)};
nb_=function(p,y){return _.Ae(p.entities,"booleanEntity",y)};
Gy8=function(p,y){return _.Ae(p.entities,"qrCodeEntity",y)};
PJ5=function(p){return _.Ae(p.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
AzL=function(){if(QM)return QM;if(window.lottie)return QM=Promise.resolve(window.lottie);var p=_.xQ(_.OY("LOTTIE_URL"));return p?QM=new Promise(function(y,l){var q=document.createElement("script");q.addEventListener("load",function(){y(lottie)});
q.addEventListener("error",function(t){var E="Lottie library failed to load.";t?t.message&&(E+=" Original description: "+t.message,_.X$(t,E)):t=Error(E);_.vs(t);l(t)});
q.setAttribute("async","");_.e_(q,p);document.head.appendChild(q)}):Promise.reject(Error("sh"))};
ZQ8=function(){return QM?QM:AzL()};
M3_=function(p){if(p)switch(p){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.n("kevlar_use_wil_icons"))return p=(p=PJ5(_.ei().getState()))&&p.animationLightUrl&&p.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:p.animationLightUrl,pathDarkTheme:p.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,p?p:KY.get("LIKE")}};
V3u=function(p){var y=M3_(p);if(y)return y;switch(p){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return KY.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return KY.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return KY.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return KY.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return KY.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return KY.get("NOTIFICATION_BELL")}};
Qtl=function(p,y){if(!p||gbj)y=!1;else{if(p.closest){var l=!!M3_(y);l=_.OY("ID_TOKEN")&&l?!!p.closest("segmented-like-dislike-button-view-model"):!1}else l=!1;if(!l)if(p.closest)if(l=!_.OY("ID_TOKEN"),p=p.closest("ytd-subscription-notification-toggle-button-renderer-next"),l||!p)l=!1;else{var q;l=((q=p.data)==null?void 0:q.targetId)==="notification-bell"&&y!=="EXPAND_MORE"}else l=!1;y=l}return y};
KK8=function(p){var y,l;return _.h(function(q){switch(q.nextAddress){case 1:return _.Ve(q,2),q.yield(fetch(p),4);case 4:return y=q.yieldResult,q.yield(y.json(),5);case 5:return q.return(q.yieldResult);case 2:l=_.i6(q),_.vs(l),_.rR(q)}})};
wvo=function(p,y){var l,q,t;return _.h(function(E){if(E.nextAddress==1)return(l=y?p.pathDarkTheme:p.path)?E.yield(Promise.all([KK8(l),AzL()]),2):E.return();q=E.yieldResult;t=q[0];wD.set(l,t);_.rR(E)})};
_.ip=function(){for(var p=_.oX.apply(0,arguments),y=!0,l=_.c(p),q=l.next();!q.done;q=l.next())if(typeof q.value!=="string"){y=!1;break}return y?p.join(" ").trim()||void 0:function(){for(var t="",E=_.c(p),e=E.next();!e.done;e=E.next())if(e=e.value,typeof e==="function"&&(e=e()),e)if(typeof e==="string")t+=" "+e;else for(var C in e)if(e.hasOwnProperty(C)){var u=e[C];typeof u==="function"&&(u=u());u&&(t+=" "+C)}t=t.trim()||void 0;return _.BQ(t)}};
rzc=function(p,y,l,q){function t(e,C){if(y.value===C&&p!=null&&p.value){for(;p.value.firstChild;)p.value.removeChild(p.value.firstChild);p.value.classList.add("yt-spec-icon-shape");e(p.value,q)}}
l=_.iQ6(_.WC().resolve(_.Kl),l);if(typeof l==="function")y.value=null,t(l,null);else{var E=new _.Ps(l.then,l);y.value=E;E.then(function(e){t(e,E)})}};
FKg=function(p,y){var l=document.createElement("div"),q=_.kZ(l,function(){return _.R(_.W,{cond:p,then:function(t){return _.R(Sl5,{data:t,options:y})}})});
return[l,q]};
_.rD=function(){for(var p=[],y=_.c(_.oX.apply(0,arguments)),l=y.next();!l.done;l=y.next())if(l=l.value)if(typeof l==="string")p.push(l);else{l=_.c(Object.entries(l));for(var q=l.next();!q.done;q=l.next()){var t=_.c(q.value);q=t.next().value;(t=t.next().value)&&p.push(q)}}return p.join(" ")};
Dzt=function(p){var y=_.sM("animated-rolling-character"),l=f6(),q=cW(p.character)||cW(p.previousCharacter);Hxm(function(){if(p.marginMultiplier){var t;(t=l.value)==null||t.cancel();q?(t=p.previousCharacter?Number(p.previousCharacter)+10:p.rollUp?0:30,p.shouldAnimate||(t-=LKj(p,t))):(t=p.rollUp?0:2,p.shouldAnimate||(t-=p.rollUp?-1:1));y.value.style.marginTop="-"+t*p.marginMultiplier+"px";p.shouldAnimate?l.value=kyj(y.value,p,t,q):y.value.style.display=p.character?"":"none"}});
return _.R("animated-rolling-character",{el:y,class:"animated-rolling-character-wiz"},tU(q,function(){for(var t=[],E=1;E<30;E++)t.push(_.R("div",null,E%10));return _.R(_.a4,null,_.R("div",null,"\u00a0"),t,_.R("div",null,"\u00a0"))},function(){return NL8(p.character)}))};
NL8=function(p){return _.R(_.a4,null,_.R("div",null,"\u00a0"),_.R(_.a4,null,tU(!p||_.ej(p),function(){return _.R("div",null,"\u00a0")},function(){return _.R("div",null,p)})),_.R("div",null,"\u00a0"))};
kyj=function(p,y,l,q){l=new Animation(new KeyframeEffect(p,[{transform:"translateY(0px)"},{transform:"translateY("+(q?LKj(y,l):y.rollUp?-1:1)*y.marginMultiplier+"px)"}],HQc),document.timeline);y.character?(p.style.display="",l.onfinish=null):l.onfinish=function(){p.style.display="none"};
l.play();return l};
LKj=function(p,y){var l=Number(p.character)+10;if(p.previousCharacter)if(p.character){var q=Number(p.character),t=Number(p.previousCharacter);p=p.rollUp?t<q?l:l+10:t<q?l-10:l}else p=p.rollUp?30:0;else p=p.character==="0"?l:p.rollUp?l-10:l+10;return y-p};
_.Sw=function(p,y){return function(l){var q={},t;for(t in l){var E=void 0,e=void 0;((E=y)==null?0:(e=E.callbacks)==null?0:e[t])||(q[t]=l[t])}return _.R(ly6,null,function(){for(var C in q)l[C]=_.BQ(q[C]);l.disableReactiveLogging=!0;return _.R(p,Object.assign({},l))})}};
BLt=function(p,y,l,q,t,E,e){l=new Animation(new KeyframeEffect(p,[{transform:"translateY(0px)"},{transform:"translateY("+(E?TLc(y,l,q,t):q?-1:1)*e+"px)"}],xzm),document.timeline);y?(p.style.display="",l.onfinish=null):l.onfinish=function(){p.style.display="none"};
l.play();return l};
TLc=function(p,y,l,q){var t=Number(p)+10;y?p?(p=Number(p),y=Number(y),l=l?y<p?t:t+10:y<p?t-10:t):l=l?30:0:l=p==="0"?t:l?t-10:t+10;return q-l};
vbR=function(p){var y=f6(),l=f6();_.Ti(function(){y.value=p.numberText;l.value=p.numberValue},[p.numberText]);
var q=p.fontSizeMultiplier?p.heightPx*p.fontSizeMultiplier:p.heightPx,t=ocj(function(){if(p.numberText){var e=p.numberText;var C=p.forceRollUp||!l.value||!p.numberValue||l.value<p.numberValue;var u=!!p.shouldAnimate,a=y.value,m=[],U=0,b=0,P=(a?a.replace(/\D/g,"").length:0)-(e?e.replace(/\D/g,"").length:0);a=a?a.split(/(\d)/).filter(Boolean):[];for(e=e.split(/(\d)/).filter(Boolean);P<0;){var Z=e[b];m.push({character:Z,rollUp:C,marginMultiplier:q,shouldAnimate:u});b++;cW(Z)&&P++}for(;U<P;)Z=a[U],m.push({previousCharacter:Z,
rollUp:C,marginMultiplier:q,shouldAnimate:u}),U++,cW(Z)||P++;for(;b<e.length;)P=e[b],Z=a[U],cW(P)===cW(Z)?(b++,U++):cW(P)?(U++,P=void 0):cW(Z)&&(b++,Z=void 0),m.push({character:P,previousCharacter:Z,rollUp:C,marginMultiplier:q,shouldAnimate:u});C=m}else C=[];return C},[p.numberText]),E=p.numberText?["height: "+q+"px;",
"line-height: "+p.heightPx+"px;"].join(" "):"";return _.R("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:E,dir:"ltr","aria-hidden":"true"},t.map(function(e){return _.R(fP5,Object.assign({},e))}))};
dzR=function(p){var y;return(y=Xv5[p])!=null?y:"EVENT_SPAN_TYPE_UNKNOWN"};
OQg=function(p){var y=p.nodeName;if(p.id)return y+="#"+p.id;if(p.classList)for(var l=_.c(p.classList),q=l.next();!q.done;q=l.next())y+="."+q.value;p.parentElement&&(y=OQg(p.parentElement)+" > "+y);return y};
ob_=function(p){return function(y){var l=dzR(y.type);return l==="EVENT_SPAN_TYPE_UNKNOWN"?p(y):GbR("event",{type:l,nodepath:y.target instanceof Element?OQg(y.target):void 0},function(){return p(y)})}};
_.Ff=function(p){p&&j$_("event")&&(p=ob_(p));return iXL(function(y){var l,q=(l=p)==null?void 0:l(y);return typeof q==="boolean"?q:!0})};
LY=function(p){return function(){return p()?p():void 0}};
zig=function(p){return new KeyframeEffect(p,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
Ylc=function(p){return new KeyframeEffect(p,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.kS=function(p){var y=U5(function(l){l=l?bb(l[0]):void 0;return _.nr(p(l),void 0,"AwTxXe")},{isEqual:function(l,q){return bb(l[0])===bb(q[0])}});
return[function(){return y()[0]()},
function(l){return void y()[1](l)}]};
_.NW=function(p){return function(){var y="",l;for(l in p){for(var q=p[l];typeof q==="function";)q=q();q!==void 0&&q!==null&&(y+="; "+l+": "+q)}return y.length>0?_.BQ(y.slice(2)):_.BQ()}};
IP6=function(p){switch(p){case 2:return"yt-spec-touch-feedback-shape--touch-response-inverse";case 3:return"yt-spec-touch-feedback-shape--overlay-touch-response";case 4:return"yt-spec-touch-feedback-shape--overlay-touch-response-inverse";default:return"yt-spec-touch-feedback-shape--touch-response"}};
qBR=function(p,y,l,q,t,E){var e=py8(p),C=e.disabled,u=e.iconPosition,a=e.style,m=e.focused,U=function(){return!!Z()&&u()==="icon-only"},b=function(){return!!Z()&&u()==="icon-only-40"},P=function(){return!!Z()&&u()==="icon-with-label"},Z=function(){return!!y||!(q==null||!q())};
return{type:function(){return a()==="call-to-action-inverse"?"text":a()==="overlay-dark"&&p().type!=="filled"&&p().type!=="tonal"?"tonal":p().type},
shouldFocus:function(){return(m()||(E==null?void 0:E()))&&!C()},
hasIconLeading:function(){return!!Z()&&u()==="leading"},
hasIconTrailing:function(){return!!Z()&&u()==="trailing"},
hasIconLeadingTrailing:function(){return!!Z()&&!!(l||t!=null&&t())&&u()==="leading-trailing"},
hasIconOnly:U,hasIconOnly40:b,hasIconWithLabel:P,iconButton:function(){return U()||b()||P()},
visiblyDisabled:function(){return(C()?"disabled":p().state)==="disabled"||C()},
overrideSmallSizeIcon:function(){return!p().ignoreIconSizeOverride&&y98(p(),Z())},
iconToRender:y?y:function(){return _.R(_.DR,{icon:q,size:function(){return H$(p(),!0,p().ignoreIconSizeOverride)},
active:function(){return p().toggled},
iconFilter:function(){return lTu(p())}})},
secondaryIconToRender:l?l:function(){return _.R(_.DR,{icon:t,size:function(){return H$(p(),!0,p().ignoreIconSizeOverride)},
active:function(){return p().toggled},
iconFilter:function(){return lTu(p())}})}}};
py8=function(p){return{size:function(){return p().size},
style:function(){return p().style},
focused:function(){return p().focused},
disabled:function(){return p().disabled},
onTap:function(y){var l,q;return(q=(l=p()).onTap)==null?void 0:q.call(l,y)},
alignByText:function(){return p().alignByText},
aTagConfig:function(){return p().aTagConfig},
customColors:function(){return p().customColors},
segmentedPosition:function(){return p().segmentedPosition},
toggled:function(){return p().toggled},
toggleable:function(){return p().toggleable},
accessibilityLabel:function(){return p().accessibilityLabel},
onToggle:function(y){var l,q;return(q=(l=p()).onToggle)==null?void 0:q.call(l,y)},
iconPosition:function(){return p().iconPosition},
oneOffCustomTextWrap:function(){return p().oneOffCustomTextWrap},
disableTextEllipsis:function(){return p().disableTextEllipsis},
disableBackdropFilter:function(){return p().disableBackdropFilter},
tooltipText:function(){return p().tooltipText},
ariaHidden:function(){return p().ariaHidden},
tabIndex:function(){return p().tabIndex},
buttonText:function(){return p().buttonText},
formattedButtonText:function(){return p().formattedButtonText},
animatedTextProps:function(){return p().animatedTextProps}}};
sym=function(p){return p.style==="overlay-dark"?4:p.style==="overlay"?p.type==="filled"?4:3:p.type==="filled"||p.style==="call-to-action-inverse"||p.style==="mono-inverse"?2:1};
y98=function(p,y){y=(p.iconPosition==="icon-only"||p.iconPosition==="icon-only-40"||p.iconPosition==="icon-with-label")&&y;return!p.segmentedPosition&&y&&p.size==="S"};
tet=function(){return!_.n("web_disable_backdrop_filter")};
H$=function(p,y,l){switch(p.size){case "XS":return 16;case "S":return!l&&y98(p,y)?24:16;default:return 24}};
ERL=function(p){switch(p){case "filled":return"yt-spec-button-shape-next--filled";case "outline":return"yt-spec-button-shape-next--outline";case "tonal":return"yt-spec-button-shape-next--tonal";default:return"yt-spec-button-shape-next--text"}};
J9l=function(p){switch(p){case "call-to-action":return"yt-spec-button-shape-next--call-to-action";case "call-to-action-overlay":return"yt-spec-button-shape-next--call-to-action-overlay";case "mono":return"yt-spec-button-shape-next--mono";case "overlay":return"yt-spec-button-shape-next--overlay";case "overlay-dark":return"yt-spec-button-shape-next--overlay-dark";case "call-to-action-inverse":return"yt-spec-button-shape-next--call-to-action-inverse";case "mono-inverse":return"yt-spec-button-shape-next--mono-inverse";
case "brand-gradient":return"yt-spec-button-shape-next--brand-gradient";case "gen-ai-gradient":return"yt-spec-button-shape-next--gen-ai-gradient";default:return"yt-spec-button-shape-next--mono"}};
c95=function(p){switch(p){case "XS":return"yt-spec-button-shape-next--size-xs";case "S":return"yt-spec-button-shape-next--size-s";case "L":return"yt-spec-button-shape-next--size-l";case "XL":return"yt-spec-button-shape-next--size-xl";default:return"yt-spec-button-shape-next--size-m"}};
lTu=function(p){if(p.style==="overlay-dark"&&p.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
eaj=function(p){if(!p)return{};var y=p.color,l=p.backgroundColor;p=p.borderColor;var q="";y&&(q+="color: "+y+";");l&&(q+="background-color: "+l+";");p&&(q+="border-color: "+p+";");return{style:q}};
Wk8=function(p,y,l){var q=p.buttonText,t=p.formattedButtonText,E=p.formattedButtonTextLegacy,e=p.animatedTextProps,C=p.style,u=p.size,a=p.focused,m=p.disabled,U=p.onTap,b=p.alignByText,P=p.aTagConfig,Z=p.customColors,K=p.segmentedPosition,F=p.toggled,L=p.toggleable,T=p.accessibilityLabel,O=p.onToggle,f=p.iconPosition,v=p.oneOffCustomTextWrap,z=p.disableTextEllipsis,sc=p.disableBackdropFilter,hR=p.tooltipText,Wt=p.ariaHidden,AR=p.tabIndex,Qu=p.ignoreIconSizeOverride,jj=p.state,x6=p.type;C==="call-to-action-inverse"&&
(x6="text");C==="overlay-dark"&&x6!=="filled"&&x6!=="tonal"&&(x6="tonal");var L8=!!y&&f==="leading",Y6=!!y&&f==="trailing",AZ=!!y&&!!l&&f==="leading-trailing",cU=!!y&&f==="icon-only",Xo=!!y&&f==="icon-only-40",U$=!!y&&f==="icon-with-label",WU=cU||Xo||U$;m&&(jj="disabled");var VQ=jj==="disabled"||m;Qu=!Qu&&y98(p,!!y);jj={};var b9=(jj["yt-spec-button-shape-next"]=!0,jj[ERL(x6)]=!0,jj[J9l(C)]=!VQ,jj["yt-spec-button-shape-next--disabled"]=!!VQ,jj[c95(u)]=!0,jj["yt-spec-button-shape-next--focused"]=!!a&&
!m,jj["yt-spec-button-shape-next--icon-trailing"]=Y6,jj["yt-spec-button-shape-next--icon-leading"]=L8,jj["yt-spec-button-shape-next--icon-leading-trailing"]=AZ,jj["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=AZ&&!(q||t),jj["yt-spec-button-shape-next--icon-button"]=cU||U$,jj["yt-spec-button-shape-next--icon-only-default"]=Xo,jj["yt-spec-button-shape-next--align-by-text"]=!!b,jj["yt-spec-button-shape-next--segmented-start"]=K==="start",jj["yt-spec-button-shape-next--segmented-end"]=K===
"end",jj["yt-spec-button-shape-next--override-small-size-icon"]=Qu,jj["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!v,jj["yt-spec-button-shape-next--disable-text-ellipsis"]=!!z,jj["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!sc&&tet(),jj),kx=function(){if(e)RCj(_.hac)(e);else if(E)E(f==="icon-with-label"||v?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(t){var xx=f==="icon-with-label"||v;gug(Object.assign({},
t,xx?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!xx})}else q&&hM(q)},JR=function(xx){U==null||U(xx);
L&&(O==null||O(xx))},s$=P?C5m:uGl,PU=P?"aria-current$":"aria-pressed$",Uu=function(){y&&(L8||AZ||WU)&&function(){TT({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){y()})}();
(q||t||E||e)&&!WU&&function(){TT({className:"yt-spec-button-shape-next__button-text-content"},function(){kx()})}();
Y6&&function(){TT({className:"yt-spec-button-shape-next__icon"},function(){y()})}();
AZ&&function(){TT({className:"yt-spec-button-shape-next__secondary-icon"},function(){l()})}();
m||RCj(_.xS)({model:{color:sym(p)}})},jB=function(){var xx={};
s$(Object.assign({},(xx.className=_.rD(b9),xx.onclick=P?void 0:JR,xx.disabled=m,xx["aria-disabled$"]=VQ,xx.style=m&&P?"pointer-events:none":void 0,xx[PU]=L?!!F:void 0,xx["aria-label$"]=T,xx.title$=hR!=null?hR:"",xx["aria-hidden$"]=Wt,xx.tabindex$=AR,xx),P,eaj(Z)),function(){Uu()})};
U$?(u={},C=(u["yt-spec-button-shape-with-label"]=!0,u["yt-spec-button-shape-with-label--is-overlay"]=C==="overlay"||C==="overlay-dark",u),RaL({className:_.rD(C)},function(){jB();TT({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},kx)})):jB()};
m7g=function(p,y){if(!Er){var l;BJ8(function(){return l=pn_(p,y)});
return l}p.parent=_.aT6();return pn_(p,y)};
_.aT6=function(){var p=_.cQ(Er||void 0,zWt);return _.CM_(p)?void 0:p};
bGg=function(p){var y=y===void 0?{}:y;p=_.c(_.kS(p));var l=p.next().value;return[function(q){var t=_.MA(function(){var C,u,a,m,U={text:(C=l())!=null?C:"",location:(u=y.location)!=null?u:"bottom",offset:(a=y.offset)!=null?a:16,delay:(m=y.delay)!=null?m:500};return Object.assign({},U,{location:U.location})},void 0,"MgTrkc");
_.NA(function(){var C=t();bb(function(){_.TR.addJob(function(){U7L.notify(q,C)},4)})},"Z01NSc");
var E=function(){$7a(q,t())},e=function(){jyl()};
q.addEventListener("mouseenter",E);q.addEventListener("focus",E);q.addEventListener("mouseleave",e);q.addEventListener("blur",e);q.addEventListener("tap",e);_.TP(function(){q.removeEventListener("mouseenter",E);q.removeEventListener("mouseleave",e);q.removeEventListener("focus",E);q.removeEventListener("blur",e);q.removeEventListener("tap",e);jyl()})},
p.next().value]};
B$=function(p,y){_.lp(p,Object.assign({},y,{forceClickLogging:!0}))};
nR8=function(p,y,l,q){B$(p,Object.assign({},{form:{element:y,event:l}},q))};
P5_=function(p,y,l,q,t){var E=void 0;return function(e){var C=_.yM(l?p==null?void 0:p.onDisabledTap:p==null?void 0:p.onTap);if(C){var u;E=(u=E)!=null?u:y==null?void 0:y.value;if(C)if(_.n("web_button_vm_click_client_ve_killswitch"))nR8(C,E,e);else{u=GDl(p,C);if(t){nR8(C,t,e,{clickedVisualElement:u,form:{element:t}});return}nR8(C,E,e,{clickedVisualElement:u})}}q&&q(e)}};
GDl=function(p,y){y=y==null?void 0:y.clickTrackingParams;var l,q;if((p=p==null?void 0:(l=p.loggingDirectives)==null?void 0:(q=l.clientVeSpec)==null?void 0:q.uiType)&&!y)return _.fY(p)};
A9L=function(p){switch(p){case "BUTTON_VIEW_MODEL_STYLE_CTA":return"call-to-action";case "BUTTON_VIEW_MODEL_STYLE_MONO":case "BUTTON_VIEW_MODEL_STYLE_BRAND":return"mono";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY":return"overlay";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY_DARK":return"overlay-dark";case "BUTTON_VIEW_MODEL_STYLE_BRAND_GRADIENT":return"brand-gradient";case "BUTTON_VIEW_MODEL_STYLE_BRAND_AI":return"gen-ai-gradient";default:return"mono"}};
ZGt=function(p){switch(p){case "BUTTON_VIEW_MODEL_TYPE_FILLED":return"filled";case "BUTTON_VIEW_MODEL_TYPE_OUTLINE":return"outline";case "BUTTON_VIEW_MODEL_TYPE_TEXT":return"text";case "BUTTON_VIEW_MODEL_TYPE_TONAL":return"tonal";default:return"text"}};
Mej=function(p){switch(p){case "BUTTON_VIEW_MODEL_STATE_ACTIVE":return"active";case "BUTTON_VIEW_MODEL_STATE_INACTIVE":return"disabled";case "BUTTON_VIEW_MODEL_STATE_DISABLED":return"disabled";default:return"active"}};
Vec=function(p){switch(p){case "BUTTON_VIEW_MODEL_SIZE_XSMALL":return"XS";case "BUTTON_VIEW_MODEL_SIZE_COMPACT":return"S";case "BUTTON_VIEW_MODEL_SIZE_DEFAULT":return"M";case "BUTTON_VIEW_MODEL_SIZE_LARGE":return"L";case "BUTTON_VIEW_MODEL_SIZE_XLARGE":return"XL";default:return"M"}};
gRl=function(p,y){return _.Ae(p.entities,"engagementToolbarStateEntityPayload",y)};
KkR=function(p){(p=_.Tp(p))&&_.Qyj(p)};
_.Qyj=function(p){var y=_.B2();y&&_.la(y,p)};
wyo=function(p,y,l){_.$w(p,"yt-open-popup-action",[y,l||p])};
iGu=function(p,y){var l=_.vu(p,"endpoint"),q=_.vu(p,"action");return(l=q?q:l)&&y&&(l=y.navigationEndpointPopupMap[l])&&(p=_.I4(l,p),(l=_.vu(p,"renderer"))&&y.supportedPopups.hasOwnProperty(l))?{openPopupAction:{popupType:y.popupTypeMap[l],popup:p}}:null};
r9L=function(p,y,l,q){if(q){var t;l=l==null?void 0:(t=l.data)==null?void 0:t.contents;(t=l instanceof Array&&l.length?l[0]:l)&&(l=_.vu(t,"renderer"))&&q.supportedPopups.hasOwnProperty(l)&&(y.stopPropagation(),wyo(p,{openPopupAction:{popupType:q.popupTypeMap[l],popup:t}}))}};
Lkg=function(p,y,l,q){q=q===void 0?!1:q;var t=SB6(y);if(t){t.href&&yU(t.href);var E=y.button;E=E!==void 0?E===0&&!v$(y):!v$(y);t.data&&E&&Fku(p,t,y,l,q)}};
Fku=function(p,y,l,q,t){t=t===void 0?!1:t;var E=_.UC("pbj_navigate_limit",-1)===0;kDa(y);_.WC().resolve(_.RK(Yn));var e=y.data;if(Object.keys(e).length!==0)if(!_.n("unplugged_web_disable_actions_for_cec_endpoint")&&_.G(e,_.AO))_.n("endpoint_behavior_command_executor_fix_killswitch")||(l.preventDefault(),l.stopPropagation()),_.Gf(p,[e],p);else if(q=iGu(e,q))e.loggingUrls&&e.loggingUrls.forEach(function(u){u.baseUrl&&_.pT(u.baseUrl)}),l.preventDefault(),l.stopPropagation(),wyo(p,q,y);
else{var C=NK_(0,y.data,l);if(p=y.getForm)p=p(),C.tempData=C.tempData||{},C.tempData=Object.assign({},C.tempData,p);p=_.Jx(l);if(q=p.find(function(u){return!!u.visualElement}))C.createScreenConfig=C.createScreenConfig||{},C.createScreenConfig.clickedVisualElement=q.visualElement;
if(!E)if(l.preventDefault(),l.stopPropagation(),_.G(e,_.D7a)&&!t&&_.wW.instance)_.wW.instance.resolveCommand(e,C);else if(_.n("kevlar_command_handler_formatted_string")&&!t&&_.wW.instance&&HG8(e))t=p.find(function(u){return!!u.is})||l.target,l={form:Object.assign({},C,{event:l,
element:t,originatingNode:y})},_.wW.instance.resolveCommand(e,l);else{e=_.Jx(l);l=[];for(t=0;t<e.length;t++)(E=e[t].is)&&l.push(E);a6c({parents:l.join(","),text:y.innerText},function(){_.Ub(y,"yt-navigate",C)})}}};
TKc=function(p){if(p=SB6(p))kDa(p),yV8(p.href)};
SB6=function(p){p=_.Jx(p);for(var y,l=0;l<p.length;l++)if(y=p[l],y.tagName==="A"&&y.classList.contains("yt-simple-endpoint")){if(!y.data)break;return y}return null};
v$=function(p){return p.shiftKey||p.altKey||p.metaKey||p.ctrlKey};
x78=function(p,y){var l={itct:y.clickTrackingParams};_.n("kevlar_client_side_screens")&&(!_.G(y,_.FC)||_.n("kevlar_exclude_endpoint_killswitch"))&&(l.endpoint=JSON.stringify(y));_.n("enable_unknown_lact_fix_on_html5")&&_.WC().resolve(_.RK(_.Xf))&&(l.lact=_.Rd());YWg(l);_.hO(p,l)};
kDa=function(p){p.href&&Object.keys(p.data).length!==0&&x78(p.href,p.data)};
HG8=function(p){for(var y=_.c(BKg),l=y.next();!l.done;l=y.next())if(p[l.value])return!1;return!0};
_.dD=function(p,y){if(y){var l={};fT8.forEach(function(q){q=vRc(y,q,"--yt-lightsource-");Object.assign(l,q)});
Xyj.forEach(function(q){q=vRc(y,q,"--yt-basic-");Object.assign(l,q)});
_.Ax(p,l)}};
vRc=function(p,y,l){var q={};q[l+_.Mf(y)]=p&&p[y]?_.Y9(p[y]):"";return q};
_.ox=function(p,y,l){O5[p]||(O5[p]={});O5[p][y]=l};
_.zT=function(p){O5[p]||(O5[p]={});return O5[p]};
d7_=function(p){if(!p)return{};var y=p.foregroundTitleColor,l=p.backgroundColor;p=p.borderColor;var q="text";p?q="outline":l&&(q="filled");return{type:q,customColors:{color:y?_.Y9(y):void 0,backgroundColor:l?_.Y9(l):void 0,borderColor:p?_.Y9(p):void 0}}};
IT8=function(p){var y=p.renderer;var l=p.element;var q=p.commandController;var t=p.onTapCallback;var E=p.skipCommandHandling;var e=p.overrides;var C=p.forceIcon;var u=p.forceModernIconButton;var a=p.forceDisabled;var m=p.isSubscribe===void 0?!1:p.isSubscribe;var U=p.isPressed===void 0?!1:p.isPressed;var b=p.useButtonSize===void 0?!1:p.useButtonSize;p=OG_(y);m&&(p.style="mono",p.type="filled");C=!y.icon||!C&&y.text?y.icon?y.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:u?"icon-only":"icon-only-40";C==="icon-only-40"&&(p.type="text");var P;u=Object;m=u.assign;b=oR8(y,b);U=!!y.isSelected||!_.n("web_propagate_is_pressed_killswitch")&&!!U;var Z=y.isSelected!==void 0;a=a===void 0?y.isDisabled:a;var K=y.text?_.zp(y.text):void 0;var F,L,T,O=((F=y.accessibilityData)==null?void 0:(L=F.accessibilityData)==null?void 0:L.label)||((T=y.accessibility)==null?void 0:T.label);F=O?O:_.JB(y.text);l=zaR(y,l,q,t,E);q=YBa(y);q!=null&&q.length?(q=_.qW({innertubeCommand:Wvm(q),
forceNewState:!0}),q=s5(q)?q:void 0):q=void 0;return m.call(u,{},p,b,{iconPosition:C},e,{focused:!1,toggled:U,toggleable:Z,disabled:a,formattedButtonText:K,accessibilityLabel:F,onTap:l,aTagConfig:q},d7_((P=y.colorData)==null?void 0:P.basicColorPaletteData),{oneOffCustomTextWrap:y.oneOffCustomTextWrap})};
zaR=function(p,y,l,q,t){return function(E){var e=YBa(p);q(e,E);if(!t){e=_.c(e);for(var C=e.next();!C.done;C=e.next())B$(C.value,{form:{element:y,event:E},commandController:l})}}};
YBa=function(p){var y=[];p.command&&y.push(p.command);p.serviceEndpoint&&y.push(p.serviceEndpoint);p.navigationEndpoint&&y.push(p.navigationEndpoint);return y};
oR8=function(p,y){if(y)switch(p.size){case "SIZE_SMALL":return{size:"S"};case "SIZE_LARGE":return{size:"L"};case "SIZE_XLARGE":return{size:"XL"};case "SIZE_XSMALL":return{size:"XS"};default:return{size:"M"}}switch(p.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
OG_=function(p){switch(p.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.YS=function(p){return p!=null&&p.watch?p.watch.isTheaterMode:!1};
_.Ix=function(p){return p!=null&&p.watch?p.watch.isWatchFullscreen:!1};
_.pX=function(p){p=_.prj(p);return _.n("web_watch_enable_single_column_grid_view")?p:!1};
_.prj=function(p){return p.watch.isWatchNarrowWidth};
_.yo8=function(p){return p.watch.openEngagementPanels};
_.yS=function(p){return _.MA(function(){fnu()();return d3u(p)},{debugName:"d8B62c"},"wfRQAb")};
lj=function(p,y){return _.Ae(p.entities,"likeStatusEntity",y)};
l88=function(p,y){return _.Ae(p.entities,"likeCountEntity",y)};
_.qyu=function(p,y){return _.Ae(p.entities,"stringEntity",y)};
sQ5=function(p,y){if(!p)return!1;var l,q=(l=_.G(p,_.Mn))==null?void 0:l.signal;if(q&&y.signalEndpointMap)return!!y.signalEndpointMap[q];var t;if((l=(t=_.G(p,_.qr))==null?void 0:t.request)&&y.continuationEndpointMap)return!!y.continuationEndpointMap[l];for(var E in p)if(y.commandEndpointMap[E])return!0;return!1};
tG8=function(p,y){if(y.streamingEndpointMap)for(var l in p)if(y.streamingEndpointMap[l]&&(p=y.streamingEndpointMap[l]))return p()};
Eit=function(p,y){var l,q=(l=_.G(p,_.Mn))==null?void 0:l.signal;if(q&&y.signalEndpointMap&&(l=y.signalEndpointMap[q]))return l();var t;if((l=(t=_.G(p,_.qr))==null?void 0:t.request)&&y.continuationEndpointMap&&(t=y.continuationEndpointMap[l]))return t();for(var E in p)if(y.commandEndpointMap[E]&&(p=y.commandEndpointMap[E]))return p()};
Jot=function(p){var y={"Content-Type":"application/json"};_.OY("EOM_VISITOR_DATA")?y["X-Goog-EOM-Visitor-Id"]=_.OY("EOM_VISITOR_DATA"):_.OY("VISITOR_DATA")&&(y["X-Goog-Visitor-Id"]=_.OY("VISITOR_DATA"));y["X-Youtube-Bootstrap-Logged-In"]=_.OY("LOGGED_IN",!1);_.OY("DEBUG_SETTINGS_METADATA")&&(y["X-Debug-Settings-Metadata"]=_.OY("DEBUG_SETTINGS_METADATA"));p!=="cors"&&((p=_.OY("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(y["X-Youtube-Client-Name"]=p),(p=_.OY("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(y["X-Youtube-Client-Version"]=
p),(p=_.OY("CHROME_CONNECTED_HEADER"))&&(y["X-Youtube-Chrome-Connected"]=p),(p=_.OY("DOMAIN_ADMIN_STATE"))&&(y["X-Youtube-Domain-Admin-State"]=p),_.o4("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(p=_.OY("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(y["X-YouTube-Lava-Device-Context"]=p));return y};
cot=function(p,y){y.watchNextResponse||y.reelItemWatchResponse?y.watchNextResponse?p.content=y.watchNextResponse:p.content=y.reelItemWatchResponse:y.playerResponse?p.player=y.playerResponse:y.reelWatchSequenceResponse&&(p.reelSequence=y.reelWatchSequenceResponse)};
_.sZ=function(p){if(!p)return null;for(var y=[],l=0;l<p.textSegments.length;l++){var q=p.textSegments[l];q.text?y.push(q):q.emojiId&&y.push({emoji_id:q.emojiId})}return{text_segments:y}};
R0a=function(p,y,l,q,t,E,e){E=E===void 0?[]:E;var C=new _.ts;C.endpoint=l;if(!l)return _.fT(new _.SM("handle undefined endpoint",y.tagName)),C;var u=Asj(l);u.length&&(_.Gf(p,u,y,q),C.actions=u);l.loggingUrls&&l.loggingUrls.forEach(function(m){m.baseUrl&&y6(m.baseUrl,m.attributionSrcMode)});
u=!_.n("web_skip_impression_click_killswitch")&&q&&q.impression;if(l.clickTrackingParams&&!e0g(l)&&!h0t(y)&&!u&&(u=_.Ll(),!_.EZ(u,y))){var a=y.getScreenLayer&&y.getScreenLayer();a?u.clickCommand(l,null,a):u.clickCommand(l,null)}u=!1;for(a=0;a<E.length;a++)if((0,E[a])(y,l,q)){u=!0;break}!u&&Cej(l)&&(C.ajaxPromise=uQo(p,y,l,q,t,e));return C};
h0t=function(p){var y;return(p=(y=p.data)==null?void 0:y.navigationEndpoint)&&!!p.clickTrackingParams};
e0g=function(p){var y=_.G(p,_.Mn);if(y&&(y=y.signal)&&WDg.indexOf(y)>=0)return!0;for(var l in p)if(a86.indexOf(l)>=0)return!0;return!1};
Cej=function(p){var y;if(((y=_.G(p,_.Mn))==null?void 0:y.signal)==="CLIENT_SIGNAL")return!1;for(var l in p)if(m9_.indexOf(l)>=0)return!1;p=Object.keys(p);return p.length===1&&p[0]==="loggingUrls"?!1:!0};
Ao8=function(p,y,l,q,t,E,e){var C=_.Js.instance;if(C&&_.cN(C,q))var u=_.eo(C,q,t).then(function(m){return(m==null?0:m.data)?m:{data:m}});
else u=p.requestDataForServiceEndpoint(q,t),_.G(q,U9L)||_.G(q,$9u)||_.G(q,_.jQl)||_.G(q,bMm)||_.vs(new _.SM("No RequestBuilder for endpoint",q));var a=_.hs();a.promise.thenCatch(function(){var m=_.vu(q,"action")||_.vu(q,"command")||_.vu(q,"endpoint");m&&(m=q[m],m.hasOwnProperty("onFailureAction")?_.Gf(y,[m.onFailureAction],l):m.hasOwnProperty("onFailureCommand")&&_.Gf(y,m.onFailureCommand,l));u.cancel("Resolver promise rejected")});
u.then(function(m){if(m){var U=m.error;if(U){if(E&&E.onServerError)E.onServerError(q,m);a.reject(new _.SM("Response error",q,U))}else if(m=m.data)if(U=m.error){if(E&&E.onServerError)E.onServerError(q,m);a.reject(new _.SM("Returned error",q,U))}else{ni8(y,l,m,q);G8o(m);if(U=Pjj(m))for(var b=_.c(U),P=b.next();!P.done;P=b.next()){P=P.value;var Z=_.WC().resolve(_.RK(Pe5))||CX;if(!_.Js.instance||!Z.some(function(F){return!!_.G(q,F)})||_.n("kevlar_response_processor_allowlist_killswitch")){var K=Z=void 0;
((K=_.G((Z=P)==null?void 0:Z.commandMetadata,_.ul))==null?0:K.sendPost)?_.ny(y,[P]):_.Gf(y,[P],l)}}(b=_.G(m==null?void 0:m.frameworkUpdates,uj))&&e&&e(b);if(E&&E.onSuccess)E.onSuccess(q,m);a.resolve(new _.RW(m,U))}}else a.reject(new _.SM("Invalid service endpoint provided",q))},function(m){a.reject(m)});
return a.promise};
G8o=function(p){var y;(p=(y=_.G(p==null?void 0:p.onResponseReceivedCommand,_.ZMu))==null?void 0:y.continuationItems)&&(p==null?void 0:p.length)===1&&_.G(p[0],MGL)&&_.fy("so_r",void 0,"search_overview_answer")};
uQo=function(p,y,l,q,t,E){var e;return(e=y.getNetworkManager&&y.getNetworkManager()?y.getNetworkManager():_.WC().resolve(_.RK(_.vI)))?Ao8(e,p,y,l,q,t,E):_.vL("No network manager.")};
ni8=function(p,y,l,q){if(l=l.trackingParams||l.loggingDirectives&&l.loggingDirectives.trackingParams){var t;(_.G(q,VGo)||_.G(q,gi8)||_.G(q,QQR))&&q.clickTrackingParams?t=_.Tp(q.clickTrackingParams):_.n("web_graft_to_parent_command")&&q.clickTrackingParams&&(t=_.Tp(q.clickTrackingParams));var E;q=(E=y.getScreenLayer)==null?void 0:E.call(y);y=_.Ll().graftServerVe(l,t,q);_.jN(p,"yt-store-grafted-ve-action",[y])}};
_.KDt=function(p){var y=new Image;return new _.Ps(function(l,q){y.addEventListener("load",function(){l()});
y.addEventListener("error",function(){q()});
y.src=p})};
wrL=function(p){return!!p};
iM_=function(p){return!!p};
rom=function(p,y,l){var q=p.rowIndex;q!==void 0&&_.jN(p.hostElement,"yt-section-reactive-dismissal",[q,y,l])};
_.WN=function(p,y,l){p=_.c(p);for(var q=p.next();!q.done;q=p.next()){q=q.value;if(q===y)break;for(var t=_.c(l),E=t.next();!E.done;E=t.next())if(E=E.value,q.tagName===E||!_.n("web_event_button_role_check_killswitch")&&q.role==="button"&&E==="BUTTON")return!0}return!1};
_.aW=function(p,y,l){p=_.c(p);for(var q=p.next();!q.done;q=p.next()){q=q.value;if(q===y)break;for(var t=_.c(l),E=t.next();!E.done;E=t.next())if(q.id===E.value)return!0}return!1};
Sym=function(p){switch(p){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
FDl=function(p,y){if(!p&&!y)return"medium";p=Math.max(p||0,y||0);return p>=256?"large":p>=96?"medium":"small"};
LDt=function(p){switch(p){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.$o=function(){var p=_.WC().resolve(_.RK(_.mm));return p?(p=p.getCurrentPage())?_.UZ(p):null:null};
_.jo=function(){var p=_.$o();if(!p){var y=_.WC().resolve(_.RK(_.mm)),l=y?typeof y:"no page manager";y=y?y.getCurrentPage():null;l=new _.SM("Player is missing when requested.",l,y?y.tagName:"no page");_.Bs(l)}return p};
_.UZ=function(p){return p&&p.getPlayer?p.getPlayer():null};
k8a=function(p,y){p={args:{raw_player_response:p}};y&&(p.args=Object.assign({},p.args,y));return p};
N8t=function(p){if(p.args){if(p.args.raw_player_response)return p.args.raw_player_response;if(p.args.player_response)return JSON.parse(p.args.player_response)}};
_.D9c=function(p,y){var l={url:"/watch?v="+p.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};p.playlistId&&(l.url+="&list="+p.playlistId);p.playerParams&&(l.url+="&pp="+p.playerParams);p={watchEndpoint:p,commandMetadata:{webCommandMetadata:l}};y&&(p.clickTrackingParams=y);return p};
T8o=function(){return HM8||!!_.I4("yt.player.Application")};
B8a=function(){return x9u||!!document.querySelector("link#player-css")};
vim=function(){function p(){HM8=!0;f8g.resolve()}
var y,l;return _.h(function(q){f8g||(f8g=new _.AB,T8o()?p():(y=document.createElement("script"),y.addEventListener("load",p),l=_.kP(_.OY("PLAYER_JS_URL")),_.e_(y,l),document.head.appendChild(y)));return q.return(f8g.promise)})};
d98=function(){function p(){x9u=!0;Xrg.resolve()}
if(!Xrg)if(Xrg=new _.AB,B8a())p();else{var y=document.createElement("link");y.id="player-css";y.addEventListener("load",p);var l=_.kP(_.OY("PLAYER_CSS_URL"));_.R9(y,l,"stylesheet");document.head.appendChild(y)}return Xrg.promise};
OMu=function(){return T8o()&&B8a()?Promise.resolve([]):Promise.all([vim(),d98()])};
oi_=function(p,y,l){var q={args:{}};p&&(q.args.raw_player_response=p);y&&(q.args.raw_watch_next_response=y);l&&(q.args=Object.assign({},q.args,l));return q};
pOa=function(p,y,l){var q=!1;q=q===void 0?!0:q;p=typeof p==="string"?_.bj(document,p):p;var t=z0a+"_"+_.qO(p),E=Yya[t];if(E&&q)return I8u(y,l)?E.api.loadVideoByPlayerVars(y.args||null):E.loadNewVideoConfig(y),E.api;E=new nX(p,t,y,l,void 0);Yya[t]=E;E.addOnDisposeCallback(function(){delete Yya[E.getId()]});
return E.api};
I8u=function(p,y){return y&&y.serializedExperimentFlags?y.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):p&&p.args&&p.args.fflags?p.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
yau=function(){var p=new _.AB;p.resolved=!1;var y=p.resolve;p.resolve=function(l){p.resolved=!0;y(l)};
return p};
qJ6=function(p){var y={};lxu().install((y.document_disposed={callback:p},y))};
G4=function(p,y){if(!p&&Math.random()<=_.UC("kevlar_unified_player_logging_threshold")){p=Error("uh`"+(y?y:"Unspecified error"));if(_.n("kevlar_unified_player_throw_errors"))throw p;_.vs(p)}};
_.sol=function(){var p=_.I4("ytDebugData.callbacks");p||(p={},_.e0("ytDebugData.callbacks",p));return p};
ErR=function(p,y){var l=_.sol();if(_.n("web_dd_iu")||tQR.includes(p))l[p]=y};
JaR=function(){return _.h(function(p){return p.return({isLeader:_.k_R(_.ei().getState()),c:_.OY("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.OY("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
ca8=function(){var p;_.h(function(y){if(y.nextAddress==1)return ErR("APP_STATE",JaR),y.yield(_.WC().resolve(_.PN),2);p=y.yieldResult;ErR("PI",function(){return _.h(function(l){return l.return(p.getVideoStats())})});
_.rR(y)})};
ept=function(p){var y=_.eN(_.IG(_.l_.location.href));p=_.eN(_.IG(p));return _.n("kevlar_clear_non_displayable_url_params")?y==As(p):As(y)==As(p)};
As=function(p){var y=_.hpL(p);p=p.slice(0);var l=["frags"];_.n("kevlar_hide_pp_url_param")&&l.push("pp");_.n("kevlar_hide_time_continue_url_param")&&l.push("time_continue");l=_.c(l);for(var q=l.next();!q.done;q=l.next())q=q.value,p=_.Cy(_.eN(p),q);return _.eN(p)+(y?"#"+y:"")};
Z6=function(p,y){y=Number(y)*1E3;var l=Math.round((0,_.uM)()),q=l.toString();p={innertubeResponse:p,serverDateTimestampMs:q,lastModifiedTimestampMs:q,expireTimestampMs:(l+y).toString()};if(y=_.OY("INNERTUBE_CONTEXT_CLIENT_NAME"))p.clientName=y;return p};
u1m=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++Cqo};
_.Rpj=function(){var p=_.xc(),y=_.B2();y&&p&&_.st(y,[p],!0)};
axu=function(p){return p&&WUt.some(function(y){return p.includes(y)})};
nrg=function(p){var y=_.G(p,_.Id);if(!y)return!1;var l=y.url,q=y.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!l)return _.Bs(Error("zh")),!1;if(y.target==="TARGET_NEW_WINDOW"){var t={};_.n("resolve_url_parent_tracking_params")&&(!_.eM(l)||hJ(window.location.href,l))&&(t={endpoint:p,itct:p.clickTrackingParams});YWg(t);p=null;try{if(q)return p=_.E$5(l,"_blank",t,void 0,q),mTg(_.WC().resolve(UTc),p,l),!0}catch(b){_.Bs(b)}_.hO(l,t);y={target:"_blank",noopener:_.n("set_window_noopener_ks")&&
!y.allowOpener};p=window;q=TB(l)?l:_.XX(typeof l.href!="undefined"?l.href:String(l));t=self.crossOriginIsolated!==void 0;var E="strict-origin-when-cross-origin";window.Request&&(E=(new Request("/")).referrerPolicy);var e=y.noreferrer;if(t&&e&&E==="unsafe-url")throw Error("qe");E=e&&!t;e=y.target||l.target;var C=[],u=[],a=!1;for(U in y){var m=y[U];switch(U){case "width":case "height":case "top":case "left":C.push(U+"="+m);break;case "target":break;case "noopener":case "noreferrer":m?u.push(U):(a=!0,
u.push(U+"=false"));break;case "attributionsrc":C.push(U+(m?"="+m:""));break;default:C.push(U+"="+(m?1:0))}}var U=e!==void 0&&!["_blank","_self","_top","_parent",""].includes(e);U=gm()&&U;$Tl&&t&&C.length===0&&u.length>0&&!U&&!a?(u.length===2&&(u=["noreferrer"]),_.s8(p,q,e,u[0]),p=joR()):(U=C.join(","),_.Sj()&&p.navigator&&p.navigator.standalone&&e&&e!="_self"?(U=_.gg("A"),YX(U,q),U.target=e,E&&(U.rel="noreferrer"),((y=y.attributionsrc)||y==="")&&U.setAttribute("attributionsrc",y),y=document.createEvent("MouseEvent"),
y.initMouseEvent("click",!0,!0,p,1),U.dispatchEvent(y),p=joR()):E?(p=_.s8(p,"",e,U),y=_.xX(q),p&&(p.opener=null,y===""&&(y="javascript:''"),y='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Mr(y)+'">',y=pC(y),(q=p.document)&&q.write&&(q.write(ye(y)),q.close()))):((p=_.s8(p,q,e,U))&&y.noopener&&(p.opener=null),p&&y.noreferrer&&(p.opener=null)));mTg(_.WC().resolve(UTc),p,l);return!0}y=_.AJ(l);y=axu(y)||l==="https://studio.youtube.com/";q=!(!_.eM(l)||hJ(window.location.href,
l));U=l.indexOf("disable_polymer=1")>=0;if(q||U||y)yU(l),Tf(),_.lt(l,void 0,void 0,window.top,b$g);else return _.vs(new _.SM("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",p)),!1;return!0};
_.Aa6=function(p,y){y=y===void 0?0:y;if(!(_.G(p,GNo)||_.G(p,Pqo)||_.G(p,_.Id)&&_.G(p,_.Id).url))return!1;var l,q=(l=_.G(p,_.Id))==null?void 0:l.url;l=q?{externalLinkData:{url:q}}:null;return _.Ll().clickCommand(p,l,y)};
Z$R=function(p,y){return _.Ae(p.entities,"subscriptionStateEntity",y)};
MQc=function(p,y){return _.Ae(p.entities,"subscriptionNotificationStateEntity",y)};
VQt=function(p,y){return _.Ae(p.entities,"upcomingEventReminderStateEntity",y)};
grg=function(p,y){return _.Ae(p.entities,"engagementToolbarSurfaceEntityPayload",y)};
Qo5=function(p,y){return _.Ae(p.entities,"triStateButtonStateEntityPayload",y)};
KUg=function(p,y){return _.Ae(p.entities,"commerceCartCheckoutButtonEntity",y)};
_.wOt=function(p,y){return _.Ae(p.entities,"playlistLoopStateEntity",y)};
i$L=function(p,y){return _.Ae(p.entities,"commandEntity",y)};
SJt=function(p,y,l,q,t){t=t===void 0?{}:t;return function(E){var e,C;var u=((e=p.loggingDirectives)==null?0:(C=e.clientVeSpec)==null?0:C.uiType)?_.fY(p.loggingDirectives.clientVeSpec.uiType):void 0;t.clickedVisualElement||(t.clickedVisualElement=u);u=raj(p,y);l(u,E);u=_.c(u);for(e=u.next();!e.done;e=u.next()){e=e.value;C=q;var a=E,m=t;m.form?m.form.event=a:m.form={element:C,event:a};B$(e,m)}}};
raj=function(p,y){var l=[];y?(p.toggledCommand&&l.push(p.toggledCommand),p.toggledServiceEndpoint&&l.push(p.toggledServiceEndpoint)):(p.defaultCommand&&l.push(p.defaultCommand),p.defaultServiceEndpoint&&l.push(p.defaultServiceEndpoint),p.defaultNavigationEndpoint&&l.push(p.defaultNavigationEndpoint));return l};
FUu=function(p,y){var l=p.toggledStyle||p.style,q;switch((q=y?l:p.style)==null?void 0:q.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"}}};
_.VS=function(){return _.h(function(p){return p.nextAddress==1?p.yield(_.WC().resolve(_.PN),2):p.return(_.WC().resolve(LUm)())})};
_.gi=function(){return _.WC().resolve(LUm)()};
_.QS=function(){return Bu(function(){return{lottieEl:void 0}})};
kNu=function(p,y){return p.startsWith(y.uniqueId)};
N2L=function(p){var y,l;_.h(function(q){if(q.nextAddress==1)return q.yield(_.VS(),2);y=q.yieldResult;if((l=y)==null||!l.addEventListener)return KX(),q.return();y.addEventListener("onCueRangeEnter",p);_.rR(q)})};
DT6=function(p){var y,l;_.h(function(q){if(q.nextAddress==1)return q.yield(_.VS(),2);y=q.yieldResult;if((l=y)==null||!l.removeEventListener)return KX(),q.return();y.removeEventListener("onCueRangeEnter",p);_.rR(q)})};
H$o=function(p){var y,l,q,t,E;_.h(function(e){if(e.nextAddress==1)return e.yield(_.VS(),2);y=e.yieldResult;if((l=y)==null||!l.addCueRange)return KX(),e.return();q=_.c(p.timings);for(t=q.next();!t.done;t=q.next())E=t.value,y.addCueRange(p.uniqueId+"-"+E,E/1E3,(E+100)/1E3);_.rR(e)})};
T2m=function(p){var y,l,q,t,E;_.h(function(e){if(e.nextAddress==1)return e.yield(_.VS(),2);y=e.yieldResult;if((l=y)==null||!l.removeCueRange)return KX(),e.return();q=_.c(p.timings);for(t=q.next();!t.done;t=q.next())E=t.value,y.removeCueRange(p.uniqueId+"-"+E);_.rR(e)})};
xTm=function(){var p,y,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(_.VS(),2);p=q.yieldResult;if((y=p)==null||!y.getPlayerState)return KX(),q.return();l=p.getPlayerState();return q.return(l===2)})};
KX=function(){_.vs(new _.SM("Smartimation player does not exist or is corrupted"))};
B2u=function(){try{var p;return(p=window.CSS)!=null&&p.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(y){return _.vs(new _.SM("Smartimation CSS.supports threw an error")),!1}};
zpR=function(p,y,l,q,t){var E=p.playlistId?fxo:vrL;y=y();l=l();t=!!p.videoId&&t()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.rN(y))return XOl({data:p,actionType:E,disabled:t},l);if(p.videoId&&q())return dT_({data:p,actionType:E,disabled:t});switch(y){case "TRANSFER_STATE_UNKNOWN":return dT_({data:p,actionType:E,disabled:t});case "TRANSFER_STATE_FAILED":return p.videoId?O$a({data:p,actionType:E,disabled:t}):orm({data:p,actionType:E,disabled:t});case "TRANSFER_STATE_COMPLETE":return orm({data:p,
actionType:E,disabled:t});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return XOl({data:p,actionType:E,disabled:t},l);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return p.videoId?O$a({data:p,actionType:E,disabled:t}):dT_({data:p,actionType:E,disabled:t});default:return dT_({data:p,actionType:E,disabled:t})}};
YJl=function(p,y){var l=p.onTapCommand,q=_.yM(l);if(p.videoId&&_.G(q,_.wi))return _.G(q,_.wi).action=y,l;p.playlistId&&_.G(q,_.ij)&&(_.G(q,_.ij).action=y);return l};
dT_=function(p){var y=p.data;var l=p.actionType;p=p.disabled;return{text:Ix6,iconType:"OFFLINE_DOWNLOAD",onTap:YJl(y,l.ACTION_ADD),disabled:p}};
XOl=function(p,y){var l=p.data;var q=p.actionType;p=p.disabled;var t="OFFLINE_DOWNLOAD";y>=0&&y<=.1?t="OFFLINE_DOWNLOADING_ZERO":y>.1&&y<=.3?t="OFFLINE_DOWNLOADING_TWENTY":y>.3&&y<=.5?t="OFFLINE_DOWNLOADING_FORTY":y>.5&&y<=.7?t="OFFLINE_DOWNLOADING_SIXTY":y>.7&&y<1?t="OFFLINE_DOWNLOADING_EIGHTY":y===1&&(t="OFFLINE_PIN");return{text:pq8,iconType:t,onTap:YJl(l,q.ACTION_REMOVE_WITH_PROMPT),disabled:p}};
orm=function(p){var y=p.data;var l=p.actionType;p=p.disabled;return{text:yX5,iconType:"OFFLINE_PIN",onTap:YJl(y,l.ACTION_REMOVE_WITH_PROMPT),disabled:p}};
O$a=function(p){var y=p.data;var l=p.actionType;p=p.disabled;return{text:lCj,iconType:"OFFLINE_DOWNLOAD",onTap:YJl(y,l.ACTION_RETRY),disabled:p}};
Ep5=function(p){var y=qOa;s0m.push(p);tvR||(y(function(){for(var l=_.c(s0m),q=l.next();!q.done;q=l.next())q=q.value,q();s0m.length=0;tvR=!1}),tvR=!0)};
qOa=function(p){Promise.resolve().then(p)};
ri=function(p){p=_.c(OX6(p));var y=p.next().value,l=p.next().value,q=!1;_.xZ(function(){return function(){q=!0}});
return[y,function(t){Ep5(function(){q&&!_.n("cow_prevent_state_setter_after_cleanup_killswitch")||l(t)})}]};
_.So=function(p,y){var l=fnu();return _.MA(function(){l();return d3u(p,[_.BQ(y)||""])},{debugName:"LUZslf"},"qYSKAc")};
JXL=function(p){var y=_.So(_.Ot,function(){return p().videoId}),l=_.So(_.or,function(){return p().playlistId});
return function(){return p().videoId?y:p().playlistId?l:_.c(_.nr("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
cXg=function(p){var y=_.So(zU,function(){return p().videoId}),l=_.So(_.Ld_,function(){return p().playlistId});
return function(){return p().videoId?y:p().playlistId?l:_.c(_.nr(0,void 0,"K4tgOc")).next().value}};
eMm=function(p){var y=_.So(_.v7j,function(){return p().videoId});
return function(){return p().videoId?y:_.c(_.nr(!1,void 0,"Oaxwcf")).next().value}};
hMa=function(p){var y=_.So(Dbu,function(){return p().videoId});
return function(){return p().videoId?y:_.c(_.nr("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
CTc=function(){return{}};
uS8=function(){var p,y;return(y=(p=_.WC().resolve(_.RK(_.hb)))==null?void 0:p())!=null?y:!1};
WMt=function(p,y){p=p===void 0?RMl:p;switch(y.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},p,{isOpen:y.payload});default:return p}};
mXl=function(p,y){p=p===void 0?aCu:p;switch(y.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},p,{isAllowed:y.payload});default:return p}};
$Xt=function(p,y){p=p===void 0?UXt:p;switch(y.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},p,{errorMessage:y.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},p,{title:y.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},p,{privacy:y.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},p,{isDisabled:y.payload});default:return p}};
bVa=function(p,y){p=p===void 0?j0_:p;switch(y.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},p,{isOpen:y.payload});default:return p}};
Gaj=function(p,y){p=p===void 0?np6:p;switch(y.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},p,{isFullscreen:y.payload});case "SET_NAVIGATION_BUTTON":var l=y.payload.targetId,q=Object.assign({},p.navigationButtons);q[l]=y.payload.button;return Object.assign({},p,{navigationButtons:q});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},p,{topPanelId:y.payload});case "SET_SECONDARY_HEADER":return l=y.payload.panelId,q=Object.assign({},p.secondaryHeader),q[l]=y.payload.secondaryHeader,
Object.assign({},p,{secondaryHeader:q});default:return p}};
MvL=function(){return Ah(Object.assign({},{entities:XGj,voiceSearch:wFt,engagementPanel:Gaj,bottomSheet:WMt,cinematicSetting:mXl,shorts:DBa,drawerLayout:bVa,createPlaylist:$Xt,locationCollection:PT_,reportChannel:AX_,reportForm:ZVR},HIL))};
Vv8=function(p,y){_.TR.addLowPriorityJob(function(){var l,q,t;return _.h(function(E){switch(E.nextAddress){case 1:return _.Ve(E,2),E.yield(AzL(),4);case 4:return E.yield(fetch(p),5);case 5:return l=E.yieldResult,E.yield(l.json(),6);case 6:q=E.yieldResult;wD.set(p,q);requestAnimationFrame(function(){y(q)});
_.pK(E,0);break;case 2:t=_.i6(E),_.vs(t),_.rR(E)}})})};
gpc=function(p){var y={animationConfig:{},listeners:{}},l=function(){p(!0)};
y.listeners.data_failed=l;y.listeners.error=l;y.listeners.data_ready=function(){p(!1)};
return y};
wq_=function(p){var y=p.model;var l=p.subscribed;var q=p.isOverlay;var t=p.element;var E=p.commandController;var e=p.notificationState;if(l){var C,u;var a=(y==null?void 0:(C=y.buttonStyle)==null?void 0:C.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:y==null?void 0:(u=y.unsubscribeButtonContent)==null?void 0:u.buttonText}else{var m;a=y==null?void 0:(m=y.subscribeButtonContent)==null?void 0:m.buttonText}a:{var U;switch(y==null?void 0:(U=y.buttonStyle)==
null?void 0:U.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":C="S";break a;default:C="M"}}a:if(q)q="overlay";else switch(y.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":q="overlay";break a;default:q="mono"}a:if(l)var b="tonal";else switch((b=y.buttonStyle)==
null?void 0:b.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":b="tonal";break a;default:b="filled"}return{style:q,type:b,state:y.disableSubscribeButton?"disabled":"active",size:C,focused:p.focused,toggled:l,accessibilityLabel:Q0L(y,l,e),buttonText:a,iconPosition:y.disableNotificationBell?"none":"leading-trailing",onTap:KMc(y,l,t,E),disableTextEllipsis:!!p.disableTextEllipsis}};
KMc=function(p,y,l,q){return function(t){if(y){var E;var e=p.disableNotificationBell?_.yM(p==null?void 0:(E=p.unsubscribeButtonContent)==null?void 0:E.onTapCommand):_.yM(p==null?void 0:p.onShowSubscriptionOptions)}else{var C;e=_.yM(p==null?void 0:(C=p.subscribeButtonContent)==null?void 0:C.onTapCommand)}e&&B$(e,{form:{element:l==null?void 0:l.value},commandController:q});t.stopPropagation()}};
Q0L=function(p,y,l){if(y){if(p==null?0:p.disableNotificationBell){var q;return p==null?void 0:(q=p.unsubscribeButtonContent)==null?void 0:q.accessibilityText}switch(l){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var t;return p==null?void 0:(t=p.bellAccessibilityData)==null?void 0:t.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var E;return p==null?void 0:(E=p.bellAccessibilityData)==null?void 0:E.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var e;return p==null?void 0:(e=
p.bellAccessibilityData)==null?void 0:e.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var C;return p==null?void 0:(C=p.bellAccessibilityData)==null?void 0:C.disabledLabel;default:var u;return p==null?void 0:(u=p.unsubscribeButtonContent)==null?void 0:u.accessibilityText}}else{var a;return p==null?void 0:(a=p.subscribeButtonContent)==null?void 0:a.accessibilityText}};
iV6=function(p){if(p){switch(p){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":p="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":p="NOTIFICATIONS_OFF";break;default:p="NOTIFICATIONS_NONE"}return p}};
rXg=function(p,y,l){l.subscribed!==y&&((l=l.key)&&_.Cl(_.Fp("subscriptionStateEntity",l,{key:l,subscribed:y})),p.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:y})),y||_.$w(p,"yt-unsubscribe-action"))};
FMc=function(p){p=_.G(_.yM(p),_.LX);var y,l,q,t;return(t=_.G(p==null?void 0:(y=p.panelLoadingStrategy)==null?void 0:(l=y.inlineContent)==null?void 0:(q=l.sheetViewModel)==null?void 0:q.content,SO6))==null?void 0:t.listItems};
LMc=function(p,y){if(p.onShowSubscriptionOptions&&y&&(p=FMc(p.onShowSubscriptionOptions),p!=null&&p.length)){var l=iV6(y);p.forEach(function(q){q=_.G(q,_.Nr);var t,E,e,C,u=q==null?void 0:(t=q.leadingImage)==null?void 0:(E=t.sources)==null?void 0:(e=E[0])==null?void 0:(C=e.clientResource)==null?void 0:C.imageName;q&&u&&(q.isSelected=u===l)})}};
kaR=function(p,y,l,q){y&&l?p.style.width=l+"px":!y&&q&&(p.style.width=q+"px")};
Npu=function(p,y,l){var q;(q=p.lottieEl)==null||q.goToAndPlay(0);var t;(t=y.lottieEl)==null||t.goToAndPlay(0);_.D6(_.TR,function(){var E;(E=l.lottieEl)==null||E.goToAndPlay(0)},300)};
HN=function(){return _.WC().resolve(_.RK(DX6))||{}};
HV_=function(p){return typeof p==="function"};
_.T4=function(p){Object.keys(p);var y=function(l,q){var t=y.mapping||p;if(!l)return _.R(_.a4,null);if(Array.isArray(l)&&(l=Tpl(t,y,l),Array.isArray(l))){if(!l.length)return _.R(_.a4,null);if(l.length>1){for(var E=!1,e=!1,C=[],u={},a=0;a<l.length;u={data$jscomp$1898:void 0},a++)if(u.data$jscomp$1898=l[a],u.data$jscomp$1898){var m=xXg(u.data$jscomp$1898,t),U=m.mappingEntry;m=m.rendererName;U&&m&&(U&&(!HV_(U)&&Bp8(U)&&(e=!0),!HV_(U)&&U.asyncId||(E=!0)),C.push(fCc(u.data$jscomp$1898,U,m,y,q)))}return e&&
!E?_.R(_.a4,null,vpu()):_.R(_.a4,null,C)}l=l[0]}if(!l)return _.R(_.a4,null);l=Tpl(t,y,[l])[0];if(!l)return _.R(_.a4,null);E=xXg(l,t);t=E.mappingEntry;E=E.rendererName;return t&&E?_.R(_.a4,null,fCc(l,t,E,y,q)):_.R(_.a4,null)};
y.mapping=p;return y};
_.Xq6=function(p){var y=void 0,l;for(l in p)if(p.hasOwnProperty(l)){y=l;break}return y};
Tpl=function(p,y,l){var q,t=(q=HN().preProcessOptions)==null?void 0:q.idomOptions;if(!t)return l;HN();return t.preProcessPropsIdom(p,l,y.triggerRerender)};
xXg=function(p,y){return(p=_.Xq6(p))?{mappingEntry:y[p],rendererName:p}:{mappingEntry:void 0,rendererName:void 0}};
fCc=function(p,y,l,q,t){if(!y)return _.R(_.a4,null);var E={};t&&t[l]&&(E=Object.assign({},t[l]));p[l]!==void 0&&(E.data=p[l]);if(HV_(y))return y.debugName||(y.debugName=l),_.R(y,E);y.asyncId&&(q.pendingIdsMap=q.pendingIdsMap||{},q.pendingIdsMap[l]=y.asyncId);return y.templateFn?y.templateFn(E):Bp8(y)?vpu():_.R(_.a4,null)};
Bp8=function(p){var y;return(y=p.showPlaceholder)!=null?y:HN().defaultShowPlaceholder};
vpu=function(){var p=HN().placeholder;return p()};
dX5=function(p){p=_.G(p,_.xo);return(p==null?void 0:p.iconName)&&!(p==null?0:p.title)};
zM6=function(p,y,l){var q;return _.R(_.a4,null,p==null?void 0:(q=p.actions)==null?void 0:q.map(function(t){return _.R("div",{class:function(){var E={"yt-flexible-actions-view-model-wiz__action":!0};E["yt-flexible-actions-view-model-wiz__action--row-action"]=y;E["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(dX5(t))var e=!0;else if(e=_.G(t,_.BN),(e==null?0:e.isToggled)&&dX5(e==null?void 0:e.toggledButtonViewModel)||(e==null||!e.isToggled)&&dX5(e==null?void 0:e.defaultButtonViewModel))e=
!0;else{var C;e=((C=_.G(t,OV_))==null?0:C.playlistId)?!0:!1}E=(E["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=e,E["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=l,E);return _.rD(E)}},opj([t],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!y}}))}))};
YO_=function(p){var y=p.layout===1,l,q=((l=p.data)==null?void 0:l.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";l={};q=(l["yt-flexible-actions-view-model-wiz"]=!0,l["yt-flexible-actions-view-model-wiz--inline"]=!y,l["yt-flexible-actions-view-model-wiz--scrollable"]=q,l);var t,E;return _.R("yt-flexible-actions-view-model",{class:_.rD(p.className,q)},(t=p.data)==null?void 0:(E=t.actionsRows)==null?void 0:E.map(function(e){if(y){var C;return _.R("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
zM6(e,y,!((C=p.data)==null||!C.respectActionIntrinsicWidth)))}return zM6(e,y,!1)}))};
ICo=function(p,y){y=y===void 0?{shouldPersist:!0}:y;return{useUpdatableData:function(l,q){var t=[],E=_.c(_.kS(function(){var a=l();if(q!=null&&q.length&&t){var m=t.length>0;for(var U=!1,b=0;b<q.length;b++){var P=q[b]();m&&P!==t[b]&&(U=!0);t[b]=P}m=U}else m=!1;if(m)_.fX.remove(u());else if(m=_.fX.get(u()))return m;return a})),e=E.next().value,C=E.next().value,u=_.MA(function(){return p(l())},void 0,"VFraLb");
_.NA(function(){if(u()!=null){vN.set(u(),[e,C,!1]);var a=u();_.TP(function(){vN.delete(a)})}},"Fdafud");
return[e,function(a){C(a);y.shouldPersist&&_.fX.set(u(),a)}]},
getData:function(l){var q;return(q=vN.get(p(l)))==null?void 0:q[0]()},
updateData:function(l,q){l=p(l);var t=vN.get(l);if(!t)return!1;var E=_.c(t);t=E.next().value;E=E.next().value;q=q(t());E(q);y.shouldPersist&&_.fX.set(l,q);return!0},
useUpdatableDataIdom:function(l,q){var t=p(l),E=_.fX.get(t),e=_.c(ri(E!=null?E:l)),C=e.next().value,u=e.next().value,a=f6(E!=null?E:l);_.Ti(function(){if(t!=null)return vN.set(t,[function(){return a.value},
function(m){u(m);a.value=m},
vN.has(t)]),_.TR.addJob(function(){_.Xp(_.TR,function(){var m=vN.get(t);m&&(m[2]=!1)},0)},8),function(){var m;
((m=vN.get(t))==null?0:m[2])||vN.delete(t)}},[t]);
_.Ti(function(){C!==l&&(u(l),a.value=l)},q?[].concat(_.xq(q),[t]):[t]);
return[C,u]}}};
pdc=function(p){var y=_.c(_.nr(!0,void 0,"bKtO6d")),l=y.next().value;y.next();return function(){var q=Vi(p.children());return _.R(_.W,{cond:l,then:function(){return q},
else:p.fallback})}()};
_.di=function(p){var y=yvL(p),l=y.data,q=y.mapping,t=y.wrapper;y=y.pendingFallback;var E=function(){return lBm(_.BQ(l))},e=function(){var C=E(),u=[];
C=_.c(C);for(var a=C.next();!a.done;a=C.next()){var m=void 0;a=a.value;var U=void 0;for(m in a)if(!(!a).hasOwnProperty(m)){U=m;break}(m=U)&&u.push(m)}return u};
return p.data?_.R(pdc,{fallback:y},function(){return _.R(_.rT,{each:e},function(C,u){var a=t?function(U){return t(function(){return q[C](U,u)},m,u)}:function(U){return q[C](U,u)};
a.debugName||(a.debugName=String(C));if(!q[String(C)])return document.createComment("");a.componentType!==rq&&qpg(String(C));var m=s1m(E,C,u);return _.R(a,{data:m})})}):_.R(_.a4,null)};
yvL=function(p){var y=p.targetId||tS6(p.children);if(!p.data||!y||_.n("mweb_new_replaceables_killswitch"))return Object.assign({},p,{mapping:p.children,wrapper:void 0});var l="stamper-"+EKg++,q=function(){var C;return(C=typeof p.targetId==="function"?p.targetId(l):p.targetId)!=null?C:l};
y=_.c(Jvt(function(){var C=lBm(p.data());C.targetId=q;return C})).next().value;
var t=Object.assign({},HN().replaceableMapping,p.children);if(p.replacementWrapper){var E=t.notificationTextRenderer,e=t.notificationMultiActionRenderer;E&&(t.notificationTextRenderer=function(C,u){return p.replacementWrapper(E({data:C.data},u))});
e&&(t.notificationMultiActionRenderer=function(C,u){return p.replacementWrapper(e({data:C.data},u))})}return Object.assign({},p,{data:y,
mapping:t,wrapper:function(C,u,a){return m7g({targetId:q,stamperIndex:a},C)}})};
s1m=function(p,y,l){var q;return _.MA(function(){var t=p()[l()];if(t)q=t[y];else return _.vs(new _.SM("Stamper failed to find "+String(y)+" at index "+l()+" of data array of length "+(p().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),q;return t[y]},void 0,"wgRPHd")};
tS6=function(p){p=_.c(Object.keys(p));for(var y=p.next();!y.done;y=p.next())if(y=y.value,cvo.includes(y)||eDl.includes(y)||hDt.includes(y))return!0;return!1};
lBm=function(p){return p?Array.isArray(p)?p:[p]:[]};
qpg=function(p){if(_.n("web_enable_renderer_logger")){var y;(y=_.WC().resolve(_.RK(COu)))!=null&&y.loggingEnabled&&!y.ids.has(p)&&y.ids.add(p)}};
uMt=function(p){return!(p==null||!p.iconName||(p==null?0:p.title))};
RDu=function(p,y,l,q){l&&_.TR.cancelJob(l);l=_.TR.addLowPriorityJob(function(){q(void 0)},5E3);
q(l);y&&p!==(y.likeStatus==="LIKE")&&y.key&&_.Cl(_.Fp("likeStatusEntity",y.key,{key:y.key,likeStatus:p?"LIKE":"INDIFFERENT",hadUserInteraction:p}))};
_.WFL=function(p,y){return _.Ae(p.entities,"accountLinkStatusEntity",y)};
aBL=function(p,y){return _.Ae(p.entities,"hatsSurveyEntity",y)};
m5u=function(p,y){return _.Ae(p.entities,"hatsSurveyStateEntity",y)};
U5t=function(p,y){return _.Ae(p.entities,"quantityIncrementerEntity",y)};
$5m=function(p){switch(p){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 7;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;case "BADGE_STYLE_TYPE_YPC":return 8;case "BADGE_STYLE_TYPE_FEATURED":return 4;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 18;default:return 0}};
j1R=function(p){switch(p){case "BADGE_STYLE_TYPE_YPC_GREEN":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_RED_SQUARE":return 11;
case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
bAg=function(p){switch(p){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.GQl=function(p){var y=_.UC("web_generic_client_event_wait_period ",0);y||(y=3E5);var l=nKa.get(p);!_.n("enable_web_client_experiment_event_timeout_killswitch")&&l&&(0,_.uM)()-l<y||(nKa.set(p,(0,_.uM)()),_.TX("genericClientExperimentEvent",{eventType:p}))};
PO8=function(p){switch(p){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
Avu=function(p){if(!p)return"";var y,l=(y=_.WC().resolve(_.RK(_.hb)))==null?void 0:y(),q;if(!l&&((q=p.vibrantColorPalette)==null?0:q.iconInactiveColor))return IU(p.vibrantColorPalette.iconInactiveColor,"1");var t;return l&&((t=p.darkColorPalette)==null?0:t.iconInactiveColor)?IU(p.darkColorPalette.iconInactiveColor,"1"):p.color?IU(p.color,"1"):p.sampledThumbnailColor?(p=p.sampledThumbnailColor,"rgba("+p.red+","+p.green+","+p.blue+");"):""};
_.OZ=function(p,y){if(!p.includes("DATE_PLACEHOLDER"))return p;var l=new Date(0);l.setUTCSeconds(y);return p.replace("DATE_PLACEHOLDER",ZAo(l))};
MS5=function(p,y,l){return function(q){var t=p.command;t&&(B$(t,{form:{element:l}}),y([t],q))}};
gK8=function(p,y,l,q,t){return function(E){var e=VSo(p,y);e&&B$(e,{form:{element:l},commandController:q});t&&E.stopPropagation()}};
VSo=function(p,y){if(p.signInEndpoint&&!_.n("web_subscribe_sign_in_endpoint_killswitch"))return p.signInEndpoint;if(y){if(p.serviceEndpoints)return p.serviceEndpoints[1];if(p.onUnsubscribeEndpoints)return p.onUnsubscribeEndpoints[0]}else{if(p.serviceEndpoints)return p.serviceEndpoints[0];if(p.onSubscribeEndpoints)return p.onSubscribeEndpoints[0]}};
Q1c=function(p,y){var l,q,t,E;y=y&&((l=p.unsubscribeAccessibility)==null?void 0:(q=l.accessibilityData)==null?void 0:q.label)||((t=p.subscribeAccessibility)==null?void 0:(E=t.accessibilityData)==null?void 0:E.label);return p.longSubscriberCountText?[y,_.JB(p.longSubscriberCountText)].filter(function(e){return e}).join(" "):y};
oW=function(p,y){return y||(p==null?0:p.isChannelDelegate)?"disabled":"active"};
KFm=function(p,y){var l;switch((l=p.style)==null?void 0:l.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:oW(p)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:oW(p)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:oW(p,!0)};case "OVERLAY":return y?{style:"overlay",type:"tonal",state:oW(p)}:{style:"overlay",type:"filled",state:oW(p)};default:return y?{style:"mono",type:"tonal",state:oW(p)}:{style:"mono",type:"filled",state:oW(p)}}};
wdt=function(p){switch(p){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
iAc=function(p){switch(p){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
rvo=function(p,y){var l=p.map(function(q){return q.toString()});
return _.Ff(function(q){if(l.includes(q.key)){y&&q.preventDefault();var t;(t=q.currentTarget)==null||t.click()}})};
_.Spu=function(){return rvo(["Enter"])};
_.FFa=function(){return rvo(["Enter"," "],!0)};
_.z4=function(p){if(p.composedPath)return p.composedPath();if(!p.__composedPath){for(var y=[],l=p.target;l;)y.push(l),l=l.parentNode;y.push(window);p.__composedPath=y}return p.__composedPath};
_.Yo=function(p,y,l){p=_.c(p);for(var q=p.next();!q.done;q=p.next()){q=q.value;if(q===y)break;for(var t=_.c(l),E=t.next();!E.done;E=t.next())if(E=E.value,q.tagName===E||q.role==="button"&&E==="BUTTON")return!0}return!1};
kQc=function(p,y){var l,q=(l=y.observer)!=null?l:_.WC().resolve(hK);if(p){l=LFa(p);var t=[];y.showOption&&t.push(q.observe(p,function(){y.visibilityCallback(!0,p)},y.showOption));
y.hideOption&&t.push(q.observe(p,function(){y.visibilityCallback(!1,p)},y.hideOption));
y.prescanOption&&y.prescanCallback&&t.push(q.observe(p,function(){y.prescanCallback()},y.prescanOption));
var E;l.visibilityMonitorKeys=((E=l.visibilityMonitorKeys)!=null?E:[]).concat(t)}};
LFa=function(p){var y;return(y=p.polymerController)!=null?y:p};
_.pF=function(p){return!!_.IW(p)};
_.yn=function(p,y,l,q,t){return function(E){var e=_.aT6();_.NA(function(){if(E){_.NkL(E,p(),t);var C=_.D5j(E,p(),y,l,q,e);_.TP(C)}},"nr377e")}};
_.NkL=function(p,y,l){var q=HA8(y),t=Tkc(y);y=q&&x5m;var E=t&&Bkc;(q||t)&&kQc(p,{visibilityCallback:function(e){var C=_.WC().resolve(_.aK);e&&q?C.resolveCommand(q,{form:{element:l?p:void 0},disableClickTracking:!0}):!e&&t&&C.resolveCommand(t,{form:{element:l?p:void 0},disableClickTracking:!0})},
showOption:y,hideOption:E})};
_.D5j=function(p,y,l,q,t,E){var e=new Map;if(y=_.IW(y)){var C;p=(q==null?void 0:(C=q.onTap)==null?void 0:C.value)||p;l=fBj(y,p,l==null?void 0:l.onTap,t,E);p.addEventListener("click",l);e.set("click",l)}return function(){for(var u=_.c(e),a=u.next();!a.done;a=u.next()){var m=_.c(a.value);a=m.next().value;m=m.next().value;p.removeEventListener(a,m)}}};
_.IW=function(p){var y;return(p=(y=_.G(p,vKl))==null?void 0:y.onTap)&&_.yM(p)};
HA8=function(p){var y;return(p=(y=_.G(p,vKl))==null?void 0:y.onVisible)&&_.yM(p)};
Tkc=function(p){var y;return(p=(y=_.G(p,vKl))==null?void 0:y.onHidden)&&_.yM(p)};
fBj=function(p,y,l,q,t){var E=function(C){_.WC().resolve(_.aK).resolveCommand(p,C)},e=function(C){q&&_.Yo(_.z4(C),y,q)||E(C.target?{form:{element:C.target,
sourceData:p,mutationContext:t}}:void 0)};
l&&(e=function(C){l(C,E)});
return e};
Xd6=function(p){switch(p){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 72;case "giant":return 72;default:return 0}};
d5c=function(p){var y=p.numAvatarsInCluster;switch(p.clusterSize){case "small":return y===2?22:18;case "40":return y===2?24:22;default:return y===2?24:20}};
OAu=function(p,y){return function(l){var q=Object.keys(y);_.NA(function(){if(p!=null&&p()){for(var t=_.c(q),E=t.next();!E.done;E=t.next())E=E.value,l.addEventListener(E,y[E]);_.TP(function(){for(var e=_.c(q),C=e.next();!C.done;C=e.next())C=C.value,l.removeEventListener(C,y[C])})}},"bXZGfe")}};
oKa=function(p){switch(d5c(p)){case 18:return"yt-spec-avatar-shape--avatar-in-cluster-size-18";case 20:return"yt-spec-avatar-shape--avatar-in-cluster-size-20";case 22:return"yt-spec-avatar-shape--avatar-in-cluster-size-22";case 24:return"yt-spec-avatar-shape--avatar-in-cluster-size-24";default:return""}};
zDt=function(p){switch(p){case "tiny":return"yt-spec-avatar-shape--avatar-size-tiny";case "extra-small":return"yt-spec-avatar-shape--avatar-size-extra-small";case "small":return"yt-spec-avatar-shape--avatar-size-small";case "medium":return"yt-spec-avatar-shape--avatar-size-medium";case "48":return"yt-spec-avatar-shape--avatar-size-48";case "large":return"yt-spec-avatar-shape--avatar-size-large";case "extra-large":return"yt-spec-avatar-shape--avatar-size-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape--avatar-size-extra-extra-large";
case "giant":return"yt-spec-avatar-shape--avatar-size-giant";case "responsive":return"yt-spec-avatar-shape--avatar-size-responsive";default:return""}};
Ypc=function(p){switch(d5c(p)){case 18:return"yt-spec-avatar-shape__button--button-in-cluster-size-18";case 20:return"yt-spec-avatar-shape__button--button-in-cluster-size-20";case 22:return"yt-spec-avatar-shape__button--button-in-cluster-size-22";case 24:return"yt-spec-avatar-shape__button--button-in-cluster-size-24";default:return""}};
IBa=function(p){switch(p){case "tiny":return"yt-spec-avatar-shape__button--button-tiny";case "extra-small":return"yt-spec-avatar-shape__button--button-extra-small";case "small":return"yt-spec-avatar-shape__button--button-small";case "medium":return"yt-spec-avatar-shape__button--button-medium";case "48":return"yt-spec-avatar-shape__button--button-48";case "large":return"yt-spec-avatar-shape__button--button-large";case "extra-large":return"yt-spec-avatar-shape__button--button-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape__button--button-extra-extra-large";
case "giant":return"yt-spec-avatar-shape__button--button-giant";case "responsive":return"yt-spec-avatar-shape__button--button-responsive";default:return""}};
pB_=function(p){switch(p){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 120;case "giant":return 160;default:return 0}};
yuR=function(p){return p==="medium"||p==="48"||p==="large"||p==="extra-large"||p==="extra-extra-large"||p==="giant"};
lcm=function(p){return!!((p==null?0:p.includes(3))||(p==null?0:p.includes(5)))};
sjL=function(p){return{size:q9t(p.data.avatarImageSize),onTap:p.onTap,decorations:p.decorations||[],badgeText:p.badgeText,accessibilityText:p.accessibilityText,avatarButtonCustomClassName:p.avatarButtonCustomClassName,clusterLayoutConfig:p.clusterLayoutConfig}};
q9t=function(p){switch(p){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_40":return"40";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
tUo=function(p){switch(p){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
ELo=function(p){switch(p){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
Ju_=function(p){var y=p.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",l,q=p.avatars&&p.avatars.length>0?(l=_.G(p.avatars[0],_.lI))==null?void 0:l.avatarImageSize:"AVATAR_SIZE_UNKNOWN";l=tUo(q)||0;if(y){var t,E=(t=p.avatarClusterSize)!=null?t:"AVATAR_SIZE_M";y=tUo(E);var e,C,u=Math.min((C=(e=p.avatars)==null?void 0:e.length)!=null?C:0,4),a;return{avatars:((a=p.avatars)==null?void 0:a.slice(0,4))||[],avatarSizeInPx:l,avatarStackStyle:{width:y+"px",height:y+"px",position:"relative"},avatarStyle:function(U){var b=
d5c({clusterSize:q9t(E),numAvatarsInCluster:u,avatarIndex:U});var P=tUo(E);u===3&&U===2?(P=(P-b)/2,P=(_.OY("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*P):P=void 0;return{position:"absolute",top:u===2&&U===1||u===3&&U===2||u===4&&U>=2?"0":void 0,bottom:u===2&&U===0||u>2&&U<2?"0":void 0,left:u===2&&U===1||u>2&&(U===1||U===3)?"0":void 0,right:u<=3&&U===0||u===4&&(U===0||U===2)?"0":void 0,transform:P?"translateX("+P+"px)":void 0,width:b+"px",height:b+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(U){return{clusterSize:q9t(p.avatarClusterSize),numAvatarsInCluster:u,avatarIndex:U}},
avatarButtonCustomClassName:void 0}}var m;return{avatars:((m=p.avatars)==null?void 0:m.slice())||[],avatarSizeInPx:l,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:ELo(q),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
cu_=function(p,y,l){return function(){B$(p,{form:{element:y},commandController:l})}};
e4c=function(p){switch(p){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
h4u=function(p){switch(p){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
Cdu=function(p){var y=p.data;p=p.hidden===void 0?!1:p.hidden;var l={};p={class:_.rD("yt-page-indicator-view-model",(l["yt-page-indicator-view-model__indicator--hidden"]=!y.indicatorCount,l)),hidden:p};if(y.indicatorCount){l=[];for(var q=0;q<y.indicatorCount;q++){var t={};t=_.rD("yt-page-indicator-view-model__indicator",(t["yt-page-indicator-view-model__indicator--selected"]=y.selectedIndex===q,t));l.push(_.R("div",{class:t}))}y=_.R(_.a4,null,l)}else y=_.R(_.a4,null);return _.R("yt-page-indicator-view-model",
p,y)};
R4a=function(p){p&&(u58(p)?delete p.inlinePlayerData:"inlinePlaybackEndpoint"in p&&delete p.inlinePlaybackEndpoint)};
WWm=function(p){if("accessibilityText"in p)return p.accessibilityText||"";if("title"in p){var y,l,q;return((y=p.title)==null?void 0:(l=y.accessibility)==null?void 0:(q=l.accessibilityData)==null?void 0:q.label)||""}if("accessibility"in p){var t,E;return((t=p.accessibility)==null?void 0:(E=t.accessibilityData)==null?void 0:E.label)||""}return""};
u58=function(p){return"inlinePlayerData"in p};
qG=function(p){return new acg(p)};
m2a=function(p){var y=p.data;p=_.Ff(function(){var t=_.G(y.onTap,_.pY);t&&_.WC().resolve(_.aK).resolveCommand(t);return!1});
var l={sources:[{url:y.thumbnailUrl,width:120,height:90}]},q=y.rating&&y.ratingA11yLabel&&y.reviewsCount&&y.reviewsCountA11yLabel;return _.R("place-data-view-model",null,y.placeName&&y.placeCategory?_.R("div",{class:"yt-spec-place-data-view-model-shape","on:click":p},_.R(_.W$,{data:l,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.R(_.sw,{className:"yt-spec-place-data-view-model-shape__place-link",command:y.onTap},_.R("h3",{class:"yt-spec-place-data-view-model-shape__name",
title:y.placeName},y.placeName)),_.R("div",{class:"yt-spec-place-data-view-model-shape__metadata"},q?_.R("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.R("span",{class:"score",title:y.ratingA11yLabel},y.rating),_.R("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.R(_.DR,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.R("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",
title:y.reviewsCountA11yLabel},y.reviewsCount)):_.R("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.R("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.R("span",{class:"category",title:y.placeCategory},y.placeCategory)))):null)};
U2a=function(p){return function(y){p&&(p.thumbnailElRef=y.thumbnailElRef,p.thumbnail=y.thumbnail,p.thumbnailOverlays=y.thumbnailOverlays,p.thumbnailSize=y.thumbnailSize)}};
$2R=function(p){var y;return(y=p.sharedUi)==null?void 0:y.animatedThumbnailEnabled};
jj_=function(p){var y;return(y=p.sharedUi)==null?void 0:y.inlinePreviewEnabled};
_.bcL=function(p){var y;return(y=p.sharedUi)==null?void 0:y.currentPageSubType};
nLR=function(p){switch(p){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
Pdt=function(p){var y=_.c(_.nr(!1,void 0,"RIOonf")),l=y.next().value,q=y.next().value;_.xZ(function(){var t=p==null?void 0:p();if(t){var E=_.WC().resolve(_.RK(Gnc));if(E){var e={triggeringElement:t,onDwellTriggeredFn:function(){q(!0)},
onDwellEndFn:function(){q(!1)}};
E.registerElement(e);_.TP(function(){_.ty(E,e)})}}});
return l};
AuL=function(p,y,l){l?l(y):_.tb(y,p.target?{form:{element:p.target}}:void 0)};
_.Ew=function(p,y,l){return function(q){_.NA(function(){var t=new Map,E,e=(E=p())==null?void 0:E.onTap;e&&(E=function(C){a:{var u=C.composedPath();u=_.c(u);for(var a=u.next();!a.done;a=u.next()){a=a.value;if(a===q)break;if(a.className.indexOf("HostIsClickableAdComponent")>=0||a.tagName==="A".toString()||a.tagName==="BUTTON".toString()){u=!0;break a}}u=!1}u||AuL(C,e,y)},(l==null?0:l())||_.n("enable_web_home_top_landscape_image_layout_level_click")?(q.addEventListener("tap",E),t.set("tap",E)):(q.addEventListener("click",
E),t.set("click",E)));
_.TP(function(){for(var C=_.c(t),u=C.next();!u.done;u=C.next()){var a=_.c(u.value);u=a.next().value;a=a.next().value;q.removeEventListener(u,a)}})},"NMyqj")}};
Zcm=function(p,y){var l,q=(l=p.interaction)==null?void 0:l.onTap;if(p=_.qW({elementsCommand:q,forceNewState:!0,skipOnClick:!0}))return p.onclick=function(t){Rzc(t)&&(t.preventDefault(),q&&AuL(t,q,y))},s5(p)?p:void 0};
MUa=function(p){switch(p){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
VUL=function(p){switch(p){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
gLt=function(p){switch(p){case "AD_BUTTON_STYLE_OUTLINE":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_MONO_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.Qjt=function(p){return _.n("rich_grid_enable_dynamic_offset")&&p?Math.max(Math.round((p-_.UC("rich_grid_dynamic_offset_anchor_width",1300))/100*_.UC("rich_grid_dynamic_offset_offset_per_100",10)),_.UC("rich_grid_dynamic_offset_lower_bound",-60)):0};
KWj=function(p,y){switch(y){case 4:return 16;case 1:return p<528?16:p<1024?32:48;case 2:return(p>=528?16:8)/2;case 3:return(p<528?16:p<1024?32:48)+(p>=528?16:8)/2;default:return 0}};
wB_=function(p){var y=p.originalContainerWidth;var l=p.sizing;var q=p.standardUnit;if(p.isCompactList&&y<528)return 1;switch(l){case "STANDARD":return q;case "COMPACT":return q+1;case "EXTRA_COMPACT":return _.n("web_responsive_extra_compact_2x")?q*2:_.n("web_responsive_current")?q===1?2:q%2===0?q/2*3:q+2:q<4?q*2:Math.ceil(q*3/2);case "MINI":return q>1?q*2:3;default:return q}};
rua=function(p){var y=p.containerWidth;var l=p.peek;var q=p.gutter;var t=p.numItems;p=p.ignoreMaxWidthLimit;y=l?Math.max((y-l-q*t)/t,0):Math.max((y-q*(t-1))/t,0);return p?y:Math.min(y,icm)};
_.Jy=function(p){var y=p.containerWidth;var l=p.hasPeek;var q=p.sizing;var t=p.marginSettings;var E=p.isCompactList;var e=p.enableFullBleedForSingleCol;var C=p.standardUnitMinWidth;q=q||"STANDARD";l=!!l;p=y>=528?16:8;var u=l?y>=528?48:24:0;t=KWj(y,t);var a=Math.max(y-t*2,0);C=_.n("kevlar_disable_min_width_override")?void 0:C;C=Math.min(Math.max(Math.floor((a-u+p)/((C!=null?C:S9l)+_.Qjt(y)+p)),1),6);var m=(e=!!e&&C===1)||C===1&&q!=="STANDARD";l=l||m?a:Math.min(a,(icm+p)*C-p);q=wB_({originalContainerWidth:y,
sizing:q,standardUnit:C,isCompactList:E});return{itemWidth:rua({containerWidth:l,peek:u,gutter:p,numItems:q,ignoreMaxWidthLimit:m}),gutter:p,maxContainerWidth:l,numItems:q,margin:e?0:t,contentMargin:KWj(y,1),typographyBump:rua({containerWidth:l,peek:u,gutter:p,numItems:C,ignoreMaxWidthLimit:m})>400&&!(E&&y<528),standardUnit:C}};
FWt=function(p){switch(p){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.LW6=function(p){if(p){var y;if((y=p.responsiveContainerConfiguration)==null?0:y.responsiveSize)return FWt(p.responsiveContainerConfiguration.responsiveSize);if(p.layoutSizing)switch(p.layoutSizing){case "RICH_GRID_LAYOUT_SIZING_COMPACT":return"COMPACT";case "RICH_GRID_LAYOUT_SIZING_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RICH_GRID_LAYOUT_SIZING_TINY":return"MINI";default:return"STANDARD"}}};
knm=function(p){if(p.fullbleed)return 1;switch(p.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
TE6=function(p,y,l,q,t,E,e,C){a:if(p===4&&q==="LOCKUP_CONTENT_TYPE_SOURCE")var u=1;else switch(p){case 3:u=1;break a;default:u=0}a:switch(p){case 4:E=!!(E&&E<100);break a;default:E=!1}a:switch(p){case 3:case 4:var a=q==="LOCKUP_CONTENT_TYPE_CHANNEL"||q==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:a=!1}a:switch(p){case 5:var m=!0;break a;case 4:m=!1;break a;default:m=!1}return{isOverlay:m,isCard:NEm(q,e),sizing:y!=null?y:"STANDARD",typographyBump:l!=null?l:!1,isTiny:E,isCentered:a,isCollection:D2t(q),
arrangement:u,addMarginForFullbleed:p===1&&q!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:p===1&&q==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:Hc8(q,t,C),disableRounding:p===5||NEm(q,e)||p===1&&q==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:D2t(q)?2:0,useLegacyTypography:!(C==null||!C.useLegacyTypography),useRichGridLegacyTypography:!(C==null||!C.useRichGridLegacyTypography)&&!_.n("web_enable_typography_bump"),compactMetadata:u===0&&q==="LOCKUP_CONTENT_TYPE_VIDEO"}};
D2t=function(p){switch(p){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
NEm=function(p,y){if(y&&p==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(p){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
Hc8=function(p,y,l){if(y&&(l==null||!l.alwaysRespectPodcastShowAspectRatio||p!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(p){case "LOCKUP_CONTENT_TYPE_SHORT":return 4;case "LOCKUP_CONTENT_TYPE_GAME":case "LOCKUP_CONTENT_TYPE_MOVIE":return 1;case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PRODUCT":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return 3;default:return 0}};
x2c=function(p){switch(p){case 0:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingGreenCircle";case 1:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingYellowCircle";case 2:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingRedSquare";case 3:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallGreenSquare";case 4:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlueSquare";case 5:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlueSquare";case 6:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallYellowSquare";case 7:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeYellowSquare";
case 8:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallOrangeSquare";case 9:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeOrangeSquare";case 10:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallRedSquare";case 11:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeRedSquare";case 12:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlackSquare";case 13:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlackSquare"}};
BEl=function(p){switch(p){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
fc8=function(p){switch(p){case "BADGE_NZ_RATING_GREEN_CIRCLE":return 0;case "BADGE_NZ_RATING_YELLOW_CIRCLE":return 1;case "BADGE_NZ_RATING_RED_SQUARE":return 2;case "BADGE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;
case "BADGE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_BR_RATING_LARGE_RED_SQUARE":return 11;case "BADGE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
_.cn=function(p){if(p){var y;return((y=_.WC().resolve(_.RK(_.hb)))==null?0:y())?p.darkThemeImage:p.image}};
d2o=function(p,y,l,q,t,E){if(t&&E&&y==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:t,height:E};if(!l)return{};t=l.size;l=l.allowFullWidth;if(y==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&l)return{fullWidth:!0};if(t===void 0)return{};switch(p){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:t,height:t};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:t,height:1/vLL*t};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:t*
XBc,height:t};default:return(q==null?0:q.height)&&(q==null?0:q.width)?q.width/q.height>1?{maxWidth:t*XBc}:{maxWidth:t}:{maxWidth:t}}};
Ocl=function(p){var y;return p&&((y=_.cn(p.themedImage))!=null?y:p.image)};
oLg=function(p){var y;return p==null?void 0:(y=p.sources)==null?void 0:y[0]};
z4c=function(p){switch(p){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
Y9L=function(p){switch(p.style){case "STYLE_VISIBLY_DISABLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_WHITE_WITH_BORDER":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};
case "STYLE_LIGHT_TEXT":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DARK_ON_BLACK":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",
type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};default:return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"}}};
IcR=function(p){var y=_.bcL(_.hl().getState())||"";return p?p+y:""};
pA8=function(p){switch(p){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
lwt=function(p){var y=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],l=_.c(_.nr(void 0,void 0,"JrqNsb")),q=l.next().value,t=l.next().value,E=_.c(_.nr(void 0,void 0,"rWytse"));l=E.next().value;var e=E.next().value;E=_.c(_.nr(void 0,void 0,"DHRqxe"));var C=E.next().value,u=E.next().value;return{touchFeedbackEvents:{pointerUpEvent:q,pointerDownEvent:l,pointerLeaveEvent:C},touchFeedbackOnPointerUp:_.Ff(function(a){yf8(_.z4(a),y)||(t(a),e(void 0),u(void 0))}),
touchFeedbackOnPointerDown:_.Ff(function(a){p==null||p(a);yf8(_.z4(a),y)||(e(a),t(void 0),u(void 0))}),
touchFeedbackOnPointerLeave:_.Ff(function(a){yf8(_.z4(a),y)||(u(a),e(void 0),t(void 0))})}};
yf8=function(p,y){y=y===void 0?[]:y;y=[].concat(_.xq(y),["BUTTON".toString()]);p=_.c(p);for(var l=p.next();!l.done;l=p.next()){l=l.value;for(var q=_.c(y),t=q.next();!t.done;t=q.next())if(l.tagName===t.value)return!0}return!1};
qvg=function(p){switch(p){case "AD_AVATAR_SIZE_XXS":return"tiny";case "AD_AVATAR_SIZE_XS":return"extra-small";case "AD_AVATAR_SIZE_S":return"small";case "AD_AVATAR_SIZE_M":return"medium";case "AD_AVATAR_SIZE_MPLUS":return"48";case "AD_AVATAR_SIZE_L":return"large";case "AD_AVATAR_SIZE_XL":return"extra-large";default:return"medium"}};
sDR=function(p){return p.scrollHeight-p.offsetHeight>1};
tHo=function(p,y){var l;return ew(p,((l=p.content)==null?void 0:l.length)||0,!y)};
EYt=function(p,y){y=tHo(p,y);var l,q;return(((l=p.content)==null?void 0:l.length)||0)>(((q=y.content)==null?void 0:q.length)||0)};
cfg=function(p,y,l,q,t,E){if(!y||eq){var e;return ew(p,((e=p.content)==null?void 0:e.length)||0,!0)}y=q.value;if(!l.value||!y||!p.content)return p;l=0;q=p.content.length;e=0;Jfl||(Jfl=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var C=Jfl;for(t=t*E*C;l<=q;)E=Math.floor(l+(q-l)/2),C=ew(p,E)||p,y.firstChild&&(y.firstChild.textContent=C.content),y.scrollHeight>t?q=E-1:(e=E,l=E+1);return ew(p,e)};
eqt=function(p,y){var l,q;return(((l=p.content)==null?void 0:l.length)||0)>(((q=y.content)==null?void 0:q.length)||0)};
hqo=function(p){var y=p.isTruncated;var l=p.isAbsoluteButton;var q=p.lineHeight;var t=p.contentRef.value,E=p.placeholderTruncationTextRef.value,e=p.truncationTextRef.value;p=p.appDirection==="rtl";if(t&&E){var C=E.offsetLeft;p&&(C=t.offsetWidth-E.offsetWidth-E.offsetLeft);if(y){y=E.offsetWidth;E=t.offsetWidth;var u=l?E-y-70:C-70;q="linear-gradient(\n      to top, transparent 0%,\n      transparent "+q+"rem,\n      #000 "+q+"rem,\n      #000 100%), linear-gradient(\n      to "+((p?"left":"right")+
",\n      #000 0px,\n      #000 "+u+"px,\n      transparent "+(l?E-y:u+70)+"px)");t.style.setProperty("-webkit-mask-image",q);t.style.setProperty("mask-image",q)}else t.style.setProperty("-webkit-mask-image",""),t.style.setProperty("mask-image","");l?p?(e.style.setProperty("left","0"),e.style.setProperty("right","unset")):(e.style.setProperty("left",""),e.style.setProperty("right","0")):p?(e.style.setProperty("left","unset"),e.style.setProperty("right",C+"px")):(e.style.setProperty("left",C+"px"),
e.style.setProperty("right","unset"))}};
CZo=function(p,y,l,q,t){var E=_.sM("truncated-text-content"),e=_.sM("truncated-text-content"),C=_.sM("button"),u=_.sM("button"),a=_.sM("button"),m=_.WC().resolve(_.up),U=_.c(ri(tHo(p,t))),b=U.next().value,P=U.next().value;U=_.c(ri(_.n("enable_truncated_text_max_lines")?eqt(p,b):EYt(p,t)));var Z=U.next().value,K=U.next().value,F=f6(null);_.Ti(function(){function L(){if(E.value&&C.value&&a.value)if(_.n("enable_truncated_text_max_lines")){var f=cfg(p,t,E,e,y,l);P(f);q||requestAnimationFrame(function(){if(E.value&&
C.value&&a.value){var v=sDR(E.value)||eqt(p,f);K(v);hqo({isTruncated:v,isAbsoluteButton:sDR(E.value),lineHeight:l,contentRef:E,placeholderTruncationTextRef:C,truncationTextRef:a,appDirection:m})}})}else P(tHo(p,t)),requestAnimationFrame(function(){if(E.value&&C.value&&a.value)if(sDR(E.value))K(!0),q||hqo({isTruncated:!0,
isAbsoluteButton:!0,lineHeight:l,contentRef:E,placeholderTruncationTextRef:C,truncationTextRef:a,appDirection:m});else{var v=EYt(p,t);K(v);q||hqo({isTruncated:v,isAbsoluteButton:!1,lineHeight:l,contentRef:E,placeholderTruncationTextRef:C,truncationTextRef:a,appDirection:m})}})}
var T,O;(T=F.value)==null||(O=T.stop)==null||O.call(T);T=new _.hy(L,17);L();F.value=T},[p.content,
y,l,m,q,t]);_.xZ(function(){var L=function(){Jfl=void 0;var O,f;(O=F.value)==null||(f=O.fire)==null||f.call(O)};
if(window.ResizeObserver){var T=new ResizeObserver(L);T.observe(E.value);return function(){var O,f;(O=F.value)==null||(f=O.stop)==null||f.call(O);T.disconnect()}}window.addEventListener("resize",L);
return function(){var O,f;(O=F.value)==null||(f=O.stop)==null||f.call(O);window.removeEventListener("resize",L)}});
return{isTruncated:Z,displayText:b,contentRef:E,hiddenRef:e,placeholderTruncationTextRef:C,hiddenTruncationTextRef:u,truncationTextRef:a}};
uY_=function(p){var y=p.text;var l=p.alwaysShowTruncationText;var q=p.truncationText;var t=p.onTextClick;var E=p.maxLines===void 0?2:p.maxLines;var e=p.disableTextMask===void 0?!1:p.disableTextMask;var C=p.textStyle===void 0?"default":p.textStyle;var u=p.accessibilityLabel===void 0?"":p.accessibilityLabel;var a=p.textSize===void 0?"small":p.textSize;var m=p.alwaysTruncateAtMaxLines===void 0?!1:p.alwaysTruncateAtMaxLines;var U=p.expandOnClick===void 0?!1:p.expandOnClick;p=_.c(ri(!1));var b=p.next().value,
P=p.next().value;p=_.Ff(function(){U&&P(!b);t==null||t()});
a:switch(a){case "medium":var Z=2;break a;case "large":Z=2.2;break a;default:Z=1.8}var K=CZo(y,b?Infinity:E,Z,e,m),F=K.isTruncated;y=K.displayText;m=K.contentRef;var L=K.hiddenRef,T=K.placeholderTruncationTextRef,O=K.hiddenTruncationTextRef;K=K.truncationTextRef;var f={};l=_.rD((f["truncated-text-wiz__absolute-button"]=!e,f["truncated-text-wiz__bottom-button"]=e,f["truncated-text-wiz--hidden"]=!(!b&&(l||F)),f));e={};C=_.rD((e["truncated-text-wiz"]=!0,e["truncated-text-wiz--overlay"]=C==="overlay",
e["truncated-text-wiz--medium-text"]=a==="medium",e["truncated-text-wiz--large-text"]=a==="large",e["truncated-text-wiz--primary-text"]=C==="primary-text",e));a={};a=_.rD((a["truncated-text-wiz__truncated-text-content"]=!0,a["truncated-text-wiz__truncated-text-content--hidden-text-content"]=!0,a));return _.R("truncated-text",{class:C,"on:click":p,style:"line-height: "+Z+"rem;"},_.R("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",el:m,style:b?"":"max-height: "+E*Z+"rem;"},
_.R(_.CF,{text:y}),_.R("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:T,style:"line-height: "+Z+"rem;"},_.R(_.CF,{text:q}))),_.R("truncated-text-content",{class:a,el:L,style:b?"":"max-height: "+E*Z+"rem;","aria-hidden":"true"},_.R(_.CF,{text:y}),_.R("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:O,style:"line-height: "+Z+"rem;"},_.R(_.CF,{text:q}))),_.R("button",{"aria-label":u,class:l,el:K,style:"line-height: "+Z+"rem;"},
_.R(_.CF,{text:q})))};
Rq6=function(p){return p.scrollHeight-p.offsetHeight>1};
W_g=function(p,y){var l;return ew(p,((l=p.content)==null?void 0:l.length)||0,!y)};
awL=function(p,y){y=W_g(p,y);var l,q;return(((l=p.content)==null?void 0:l.length)||0)>(((q=y.content)==null?void 0:q.length)||0)};
Ug6=function(p,y,l,q,t,E){if(!y||eq){var e;return ew(p,((e=p.content)==null?void 0:e.length)||0,!0)}y=q.value;if(!l.value||!y||!p.content)return p;l=0;q=p.content.length;e=0;mgo||(mgo=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var C=mgo;for(t=t*E*C;l<=q;)E=Math.floor(l+(q-l)/2),C=ew(p,E)||p,y.firstChild&&(y.firstChild.textContent=C.content),y.scrollHeight>t?q=E-1:(e=E,l=E+1);return ew(p,e)};
$gg=function(p,y){var l,q;return(((l=p.content)==null?void 0:l.length)||0)>(((q=y.content)==null?void 0:q.length)||0)};
jD6=function(p){var y=p.isTruncated;var l=p.isAbsoluteButton;var q=p.lineHeight;var t=p.contentRef.value,E=p.placeholderTruncationTextRef.value,e=p.truncationTextRef.value;p=p.appDirection==="rtl";if(t&&E){var C=E.offsetLeft;p&&(C=t.offsetWidth-E.offsetWidth-E.offsetLeft);if(y){y=E.offsetWidth;E=t.offsetWidth;var u=l?E-y-70:C-70;q="linear-gradient(\n      to top, transparent 0%,\n      transparent "+q+"rem,\n      #000 "+q+"rem,\n      #000 100%), linear-gradient(\n      to "+((p?"left":"right")+
",\n      #000 0px,\n      #000 "+u+"px,\n      transparent "+(l?E-y:u+70)+"px)");t.style.setProperty("-webkit-mask-image",q);t.style.setProperty("mask-image",q)}else t.style.setProperty("-webkit-mask-image",""),t.style.setProperty("mask-image","");l?p?(e.style.setProperty("left","0"),e.style.setProperty("right","unset")):(e.style.setProperty("left",""),e.style.setProperty("right","0")):p?(e.style.setProperty("left","unset"),e.style.setProperty("right",C+"px")):(e.style.setProperty("left",C+"px"),
e.style.setProperty("right","unset"))}};
baL=function(p,y,l,q,t){var E=_.sM("truncated-text-content"),e=_.sM("truncated-text-content"),C=_.sM("button"),u=_.sM("button"),a=_.sM("button"),m=_.WC().resolve(_.up),U=_.c(_.kS(function(){return W_g(p(),t())})),b=U.next().value,P=U.next().value;
U=_.c(_.kS(function(){return _.n("enable_truncated_text_max_lines")?$gg(p(),b()):awL(p(),t())}));
var Z=U.next().value,K=U.next().value,F=null;_.NA(function(){function L(){if(E.value&&C.value&&a.value)if(_.n("enable_truncated_text_max_lines")){var f=Ug6(p(),t(),E,e,y(),l());P(f);q()||requestAnimationFrame(function(){if(E.value&&C.value&&a.value){var v=Rq6(E.value)||$gg(p(),f);K(v);jD6({isTruncated:v,isAbsoluteButton:Rq6(E.value),lineHeight:l(),contentRef:E,placeholderTruncationTextRef:C,truncationTextRef:a,appDirection:m})}})}else P(W_g(p(),t())),requestAnimationFrame(function(){if(E.value&&C.value&&
a.value){var v=p();
y();var z=l(),sc=q(),hR=t();Rq6(E.value)?(K(!0),sc||jD6({isTruncated:!0,isAbsoluteButton:!0,lineHeight:z,contentRef:E,placeholderTruncationTextRef:C,truncationTextRef:a,appDirection:m})):(v=awL(v,hR),K(v),sc||jD6({isTruncated:v,isAbsoluteButton:!1,lineHeight:z,contentRef:E,placeholderTruncationTextRef:C,truncationTextRef:a,appDirection:m}))}})}
var T,O;(T=F)==null||(O=T.stop)==null||O.call(T);T=new _.hy(L,17);L();F=T},"EujZId");
_.xZ(function(){P(W_g(p(),t()));K(_.n("enable_truncated_text_max_lines")?$gg(p(),b()):awL(p(),t()));var L=function(){mgo=void 0;var O,f;(O=F)==null||(f=O.fire)==null||f.call(O)};
if(window.ResizeObserver){var T=new ResizeObserver(L);T.observe(E.value);_.TP(function(){var O,f;(O=F)==null||(f=O.stop)==null||f.call(O);T.disconnect()})}else window.addEventListener("resize",L),_.TP(function(){var O,f;
(O=F)==null||(f=O.stop)==null||f.call(O);window.removeEventListener("resize",L)})});
return{isTruncated:Z,displayText:b,contentRef:E,hiddenRef:e,placeholderTruncationTextRef:C,hiddenTruncationTextRef:u,truncationTextRef:a}};
_.nYg=function(p,y,l,q,t,E){var e=function(a){a.preventDefault()},C=function(){var a=p.value;
if(a)return(a._data=y)?(a.addEventListener("touchstart",U__,{passive:!0}),a.addEventListener("click",jcR),y.clickTrackingParams&&(a.params={itct:y.clickTrackingParams}),bf_(a,y),YX(a,nlt(y)||"")):a.addEventListener("click",e),function(){y?(a.removeEventListener("touchstart",U__,{passive:!0}),a.removeEventListener("click",jcR)):a.removeEventListener("click",e)}},u=function(){var a=p.value;
if(a){var m=_.qW({innertubeCommand:y,elementsCommand:l,forceNewState:q,stopPropagation:E});if(m)return a._data=m._data,m["aria-haspopup$"]&&a.setAttribute("aria-haspopup",m["aria-haspopup$"].toString()),m["force-new-state$"]&&a.setAttribute("force-new-state",m["force-new-state$"].toString()),m.href$&&YX(a,m.href$),m.rel$&&(a.rel=m.rel$),m.role$&&a.setAttribute("role",m.role$),m.target$&&(a.target=m.target$),a.params=m.params,m.onclick&&a.addEventListener("click",m.onclick),m.onpointerdown&&a.addEventListener("onpointerdown",
m.onpointerdown),function(){m.onclick&&a.removeEventListener("click",m.onclick);m.onpointerdown&&a.removeEventListener("onpointerdown",m.onpointerdown)}}};
_.Ti(t?u:C,[y,l])};
GE6=function(p){var y=p.children;var l=p.className;var q=p.dir;var t=p.style;var E=p.role;var e=p.ariaSelected;var C=p.ariaLabel;var u=p.ariaHidden;var a=p.ariaLabelledby;var m=p.ariaDescribedby;var U=p.command;var b=p.elementsCommand;var P=p.forceNewState;var Z=p.isPlaceholder;var K=p.tabIdentifier;var F=p.target;var L=p.tabIndex;var T=p.useATagConfig;var O=p.stopPropagation;p=_.sM("a");_.nYg(p,U,b,P,T,O);return _.R("a",{el:p,"on:click":_.Ff(function(){return O===!1}),
class:l,style:t,dir:q,role:E?E:U?void 0:"group","aria-hidden":u?!0:void 0,"aria-label":C,"aria-labelledby":a,"aria-describedby":m,"aria-selected":e,tabindex:L!==void 0?L:void 0,target:F,"tab-identifier":K,"force-new-state":P?!0:void 0,"is-placeholder":Z?!0:void 0},y)};
PZo=function(p){return{content:p!=null?p:""}};
AfL=function(p){return _.yM(p.onTap)||_.IW(p.rendererContext)};
VH_=function(p){var y=p.data;p={class:p.className};a:switch(y.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var l="yt-video-attribute-view-model--vertical";break a;default:l="yt-video-attribute-view-model--horizontal"}a:switch(y.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var q="yt-video-attribute-view-model--image-small";break a;default:q="yt-video-attribute-view-model--image-large"}a:switch(y.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var t="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":t="yt-video-attribute-view-model--image-avatar";break a;default:t=""}a:switch(y.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var E="yt-video-attribute-view-model--metadata-header";break a;default:E=""}a:switch(y.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var e="yt-video-attribute-view-model--container-card";break a;default:e=""}l=["yt-video-attribute-view-model",l,q,t,E,e,AfL(y)?"yt-video-attribute-view-model--clickable":
""].join(" ");if(y.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var C="";else q=y.lightColorPalette,t=y.darkColorPalette,E=((C=_.WC().resolve(_.RK(_.hb)))==null?0:C())&&t?t:q,C=(C=E==null?void 0:E.section2Color)?_.Y9(C):"";return _.R("yt-video-attribute-view-model",p,_.R("div",{class:l,style:_.NW({"background-color":C})},AfL(y)||!_.n("web_video_attribute_view_model_a11y_fix")?_.R(GE6,{className:"yt-video-attribute-view-model__content-container",useATagConfig:!0,stopPropagation:!1,command:AfL(y),
role:"group",ariaLabel:y.title,forceNewState:!0},y.heroText||y.image?_.R(Zam,{data:y}):null,_.R(MHt,{data:y,sizeSmall:y.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"})):_.R("div",{class:"yt-video-attribute-view-model__content-container"},y.heroText||y.image?_.R(Zam,{data:y}):null,_.R(MHt,{data:y,sizeSmall:y.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
gYt=function(p){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:p.overflowMenuA11yLabel,onTap:function(y){y.preventDefault();y.stopPropagation();if(p.overflowMenuOnTap){var l=_.qW({elementsCommand:p.overflowMenuOnTap,forceNewState:!0});if(l==null?0:l.onclick)l.onclick(y)}}}};
Zam=function(p){p=p.data;var y,l=((y=_.WC().resolve(_.RK(_.hb)))==null?0:y())&&p.darkThemeImage?p.darkThemeImage:p.image;y=gYt(p);return _.R("div",{class:"yt-video-attribute-view-model__hero-section"},l?_.R(_.W$,{data:l,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):p.heroText?_.R("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.R("span",{class:"yt-video-attribute-view-model__hero-text"},p.heroText)):null,p.overflowMenuOnTap?
_.R("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.R(_.uI,{data:y,iconName:"MORE_VERT"})):null)};
MHt=function(p){var y=p.data;p=p.sizeSmall;var l=y.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",q=AfL(y);q=_.qW({innertubeCommand:q});q=s5(q);var t={};p={class:_.rD("yt-video-attribute-view-model__metadata",(t["yt-video-attribute-view-model--small-font"]=p,t)),role:q?"link":"group"};q=_.R("h1",{class:"yt-video-attribute-view-model__title"},y.title);l=y.subtitle?_.R("h4",{class:"yt-video-attribute-view-model__subtitle"},l?_.R(QDL,{text:PZo(y.subtitle),truncationText:PZo(y.subtitleTruncationText),
maxLines:2}):_.R("span",null,y.subtitle)):null;if(y.secondarySubtitle){t=y.secondarySubtitle;if(t!=null&&t.attachmentRuns){for(var E=[],e=_.c(t.attachmentRuns),C=e.next();!C.done;C=e.next())C=C.value,C.element&&E.push(Object.assign({},C,{element:Object.assign({},C.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));t=Object.assign({},t,{attachmentRuns:E})}t=_.R("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.R(_.CF,{text:t}))}else t=null;return _.R("div",p,q,l,t,y.buttonViewModel?K_6(y.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
wAa=function(p){return{content:p!=null?p:""}};
iam=function(p){return _.yM(p.onTap)||_.IW(p.rendererContext)};
rf_=function(p){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:p.overflowMenuA11yLabel,onTap:function(y){y.preventDefault();y.stopPropagation();if(p.overflowMenuOnTap){var l=_.qW({elementsCommand:p.overflowMenuOnTap,forceNewState:!0});if(l==null?0:l.onclick)l.onclick(y)}}}};
_.Rk=function(p,y,l,q,t){q=q===void 0?{}:q;if(!t||Math.random()<5E-4){y=y||null;l=l||null;p=p instanceof Error?p:new _.SM(p);if(p.args)for(var E=_.c(p.args),e=E.next();!e.done;e=E.next())e=e.value,e instanceof Object&&(q=Object.assign({},e,q));q.category="H5 Ads Control Flow";y&&(q.slot=y?"slot:  "+y.slotType:"");l&&(q.layout=l?"layout:  "+l.layoutType:"",q.layoutId=l.layoutId);t&&(q.known_error_aggressively_sampled=!0);p.args=[q];_.vs(p)}};
_.Svt=function(p,y){_.$w(p,"yt-open-popup-action",[_.C4(y),p])};
_.Wn=function(p,y){_.Svt(p,_.EK(y))};
L_a=function(p){if(!p)return"";if(F_j[p])return F_j[p];ak||(ak=_.gg("A"));ak.href!==p&&YX(ak,p);var y=ak.pathname;F_j[p]=y.startsWith("/")?y:"/"+y;return F_j[p]};
kER=function(){var p=L_a(window.location.href);if(p==="/")return"home";if(p.startsWith("/results"))return"search";if(p.startsWith("/watch"))return"watch";if(p.startsWith("/shorts"))return"shorts";if(p.startsWith("/hashtag"))return"hashtag";if(p.startsWith("/create_channel"))return"create_channel";if(p.startsWith("/@")||p.startsWith("/user/")||p.startsWith("/channel/"))return"channel";if(p.startsWith("/experiments"))return"experiments";if(p.startsWith("/sponsor_channel"))return"sponsorship";if(p.startsWith("/select_site"))return"settings";
if(p.startsWith("/locate"))return"locate";if(p.startsWith("/redeem"))return"redeem";if(p.startsWith("/musicpremium")||p.startsWith("/premium")||p.startsWith("/red"))return"premium";if(p.startsWith("/paid_memberships"))return"paid_memberships";if(p.startsWith("/oops"))return"oops";if(p.startsWith("/clip"))return"clip";var y;return(mV==null?void 0:(y=mV.response)==null?void 0:y.page)==="404"?"404":p.startsWith("/feed/history")?"history":p.startsWith("/feed/library")?"library":p.startsWith("/feed/subscriptions")?
"subscriptions":p.startsWith("/feed/trending")?"trending":p.startsWith("/feed/news_destination")?"news":p.startsWith("/playlist")?"playlist":p.startsWith("/minor_moment")?"minor_moment":p.startsWith("/playable/")||p.match("^/playables/(?!saved).")?"mini_app":p.startsWith("/playables")?"playables":p.startsWith("/create/live/join")?"open_in_app":p.startsWith("/feed/explore")?"explore":"browse"};
_.TOc=function(){var p=mV==null?void 0:mV.response,y=p==null?void 0:p.endpoint;if(!y)return(p==null?void 0:p.page)==="watch"?"watch":kER();var l;p=(l=_.G(y==null?void 0:y.commandMetadata,_.ul))==null?void 0:l.webPageType;l=!1;if(p&&!NO6.includes(p))switch(p){case "WEB_PAGE_TYPE_SEARCH":return"search";case "WEB_PAGE_TYPE_SHORTS":return"shorts";case "WEB_PAGE_TYPE_CHANNEL":return"channel";case "WEB_PAGE_TYPE_SETTINGS":return"settings";case "WEB_PAGE_TYPE_PLAYLIST":return"playlist";case "WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app";
case "WEB_PAGE_TYPE_MINI_APP":return"mini_app";case "WEB_PAGE_TYPE_WATCH":var q;return((q=_.G(y==null?void 0:y.commandMetadata,_.ul))==null?0:q.url)&&L_a(_.G(y.commandMetadata,_.ul).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var t;return(y=(t=_.G(y,_.wC))==null?void 0:t.browseId)?Dgg[y]||"browse":"browse";default:l=!0}if(_.G(y,_.Uw)||_.G(y,Ha_))return"sponsorship";t=L_a(window.location.href);if(t.startsWith("/experiments"))return"experiments";if(t.startsWith("/create_channel"))return"create_channel";
if(_.G(y,_.Id)&&t.startsWith("/shorts"))return"shorts";if(_.G(y,_.Id)&&t.startsWith("/watch"))return"watch";l&&(y=new _.SM("Unsupported mWeb page type",{pathname:t,webPageType:p}),_.Bs(y));return"browse"};
$F=function(p,y,l,q){return p&&y?p!==l||y!==q?(_.Rk(Error("Hh"),void 0,void 0,{"stored-slot":p,"stored-layout":y,"latest-slot":l,"latest-layout":q}),!1):!0:!1};
xgt=function(p,y,l){return p({targetId:y},function(q){return l.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},q,{header:l.continuationItems?l.continuationItems[0]:void 0}):Object.assign({},q,{contents:l.continuationItems?l.continuationItems:[]})})};
BOm=function(p,y,l,q){if(y=y.trackingParams){var t,E=(t=l.getScreenLayer)==null?void 0:t.call(l);l=_.B2(E);t=_.xc(E);if(l&&t){var e=_.Tp(y);_.n("combine_ve_grafts")?p.graftServerVe(y,t,E):_.pW(l,t,e);q==null||q(e)}}};
vYu=function(p){var y;return((y=fwu.get(p))==null?void 0:y.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
Oa8=function(p,y){var l={type:y.slotType,controlFlowManagerLayer:XA5.get(y.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};y.slotEntryTrigger&&(l.entryTriggerType=y.slotEntryTrigger.triggerType);y.slotPhysicalPosition!==1&&(l.slotPhysicalPosition=y.slotPhysicalPosition);if(p){l.debugData={slotId:y.slotId};if(p=y.slotEntryTrigger)l.debugData.slotEntryTriggerData=dgc(p);p=y.slotFulfillmentTriggers;l.debugData.fulfillmentTriggerData=[];p=_.c(p);for(var q=p.next();!q.done;q=p.next())l.debugData.fulfillmentTriggerData.push(dgc(q.value));
y=y.slotExpirationTriggers;l.debugData.expirationTriggerData=[];y=_.c(y);for(p=y.next();!p.done;p=y.next())l.debugData.expirationTriggerData.push(dgc(p.value))}return l};
dgc=function(p,y){var l={type:p.triggerType};y!=null&&(l.category=y);p.triggeringSlotId!=null&&(l.triggerSourceData||(l.triggerSourceData={}),l.triggerSourceData.associatedSlotId=p.triggeringSlotId);p.triggeringLayoutId!=null&&(l.triggerSourceData||(l.triggerSourceData={}),l.triggerSourceData.associatedLayoutId=p.triggeringLayoutId);return l};
oY5=function(p,y,l,q){y={opportunityType:y};p&&(q||l)&&(q=_.xI(q||[],function(t){return Oa8(p,t)}),y.debugData=Object.assign({},l&&l.length>0?{associatedSlotId:l}:{},q.length>0?{slots:q}:{}));
return y};
zqc=function(p){return jq(p.opportunityAdapterMap).concat(jq(p.triggerAdapterMap)).concat(jq(p.fulfillmentAdapterFactoryMap)).concat(jq(p.slotAdapterFactoryMap)).concat(jq(p.layoutRenderingAdapterFactoryMap))};
jq=function(p){var y=[];p=_.c(p.values());for(var l=p.next();!l.done;l=p.next())l=l.value,l.isAdsControlFlowEventListener&&y.push(l);return y};
nF=function(p){var y=p.slotId,l=p.slotType,q=p.slotPhysicalPosition;return y===void 0?new bI("Cannot construct a slot due to the missing id.",{adSlotMetadata:p}):l===void 0?new bI("Cannot construct a slot due to the missing type.",{adSlotMetadata:p}):q===void 0?new bI("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:p}):{slotId:y,slotType:l,slotPhysicalPosition:q,managerLayer:"external",adSlotLoggingData:p.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new Yv8}};
Iw_=function(p){var y=p.layoutId,l=p.layoutType;return y===void 0?new GY("Cannot construct a layout due to the missing id.",{adLayoutMetadata:p}):l===void 0?new GY("Cannot construct a layout due to the missing type.",{adLayoutMetadata:p}):{layoutId:y,layoutType:l,managerLayer:"external",adLayoutLoggingData:p.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new Yv8,interactionLoggingAdsClientData:{}}};
pb5=function(p){if(p.querySelector("img")){var y=p.querySelector("img");y.addEventListener("error",function(){t3g(y.src).then(function(l){(l=_.du(l).toString())?y.src=l:y.removeAttribute("src")}).catch(function(){y.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Ay=function(p,y){if(y&&(yNj(y.viewableCommand)||yNj(y.endOfSessionCommand))){var l=l4u(y==null?void 0:y.viewableCommand);y=l4u(y==null?void 0:y.endOfSessionCommand);if(!Pn){var q=_.UC("custom_active_view_tos_timeout_ms");Pn=q>0&&q!==36E5?new qRm(sSc(),q):new qRm(sSc())}tut(Pn,p);E38(Pn,p,l,y)}};
Zy=function(p){Pn&&tut(Pn,p)};
sSc=function(){var p=_.OY("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(p==null?void 0:p.length)===2?p[1]:null};
yNj=function(p){p=_.yM(p);return!(p==null||!p.loggingUrls)&&p.loggingUrls.length>0};
l4u=function(p){if(!p)return[];var y=[],l,q;((q=(l=_.yM(p))==null?void 0:l.loggingUrls)!=null?q:[]).forEach(function(t){t.baseUrl&&y.push(t.baseUrl)});
return y};
JN_=function(p){if(_.n("stop_av_measurement_on_detach"))return function(){Zy(p)}};
cNl=function(p){return function(){_.n("stop_av_measurement_on_detach")&&Zy(p)}};
ew8=function(p){if(_.n("stop_av_measurement_on_detach"))return function(){Zy(p)}};
hwc=function(p){return p.shorts.isDesktopSmallWidth};
_.CC5=function(p){return p.shorts.isShortsActive};
_.uko=function(p){return p.shorts.isWatchWhileMode};
_.MG=function(p){return p.shorts.isFullscreen};
_.Vn=function(p){return p.shorts.isShortsPipActive};
Wet=function(p){var y,l;if(p=(y=_.G(p.reelsAdCardButtoned,Rwa))==null?void 0:(l=y.animatedRenderingConfig)==null?void 0:l.easeOutSeconds)return p+"s"};
mxu=function(p,y,l){return _.h(function(q){return q.return(new Promise(function(t){var E=new Image;E.onload=function(){t(new a4u(p,y,l,E.naturalWidth,E.naturalHeight))};
E.src=l.toString()}))})};
Uxu=function(p,y){return Math.round(p/1E-5)===Math.round(y/1E-5)};
$xo=function(p,y){return Math.round(p/1E-5)===Math.round(y/1E-5)};
jSt=function(p,y){return p.year===y.year&&p.month===y.month&&p.day===y.day};
bbt=function(p,y){return p.year!==y.year?p.year<y.year:p.month!==y.month?p.month<y.month:p.day<y.day};
Gg5=function(p){return p.day===n36(p.year,p.month)?p.month===11?{year:p.year+1,month:0,day:1}:{year:p.year,month:p.month+1,day:1}:{year:p.year,month:p.month,day:p.day+1}};
PC6=function(){var p=new Date,y={year:p.getFullYear(),month:p.getMonth(),day:p.getDate()};return{start:y,end:{year:p.getFullYear()+2,month:p.getMonth(),day:p.getDate()},selectedDate:Gg5(y)}};
ANg=function(p){return(new sK(2)).format(new Date(p.year,p.month,p.day))};
Zbo=function(p){return{year:p.getFullYear(),month:p.getMonth(),day:p.getDate()}};
Mug=function(p,y){p=(p+(Number(y.utcOffsetSec)+(new Date(p*1E3)).getTimezoneOffset()*60))*1E3;y=Zbo(new Date(p));return{date:y,secondsSinceMidnight:Math.floor((p-(new Date(y.year,y.month,y.day)).getTime())/1E3)}};
Vul=function(p,y){y=y.months.findIndex(function(l){return l.year===p.year&&l.month===p.month});
return y>=0?y:void 0};
g3j=function(p){if(!p)return!1;try{if(p.host&&p.host.tagName==="YT-FORMATTED-STRING"&&p.host.id==="contenteditable-textarea"||p.nodeType===Node.ELEMENT_NODE&&p.tagName==="YTD-COMMENTBOX")return!0}catch(y){return!1}return g3j(p.parentNode)};
gP=function(p){return p?!(p.tagName!=="A"||!p.href||!p.classList.contains("yt-simple-endpoint")):!1};
QS_=function(p){return p?p.tagName==="IMG"&&p.classList.contains("emoji"):!1};
Keg=function(p,y,l){if(!p)return null;var q=gP(p);if(q&&l)return y=p.pathname.substring(p.pathname.indexOf("/channel/")+9),document.createTextNode("@"+y);if(q&&!l)return document.createTextNode("");if(QS_(p))return l=p.alt,p=p.dataset.emojiId,!p&&y&&(y=_.Qn(y,l))&&y.isCustomEmoji&&(p=y.emojiId),p?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+p+">"):document.createTextNode(l);q=p.cloneNode(!1);for(var t=0;t<p.childNodes.length;++t){var E=Keg(p.childNodes[t],y,l);E&&q.appendChild(E)}return q};
KF=function(p){return p?gP(p)?p:KF(p.lastChild):null};
wbL=function(p){return p?gP(p)?p:wbL(p.firstChild):null};
ibj=function(p){if(!p)return null;for(var y=p.previousSibling;y;)if(y.nodeType===Node.ELEMENT_NODE&&y.nodeName==="BR")y=y.previousSibling;else if(y.nodeType===Node.TEXT_NODE&&/\s+/.test(y.textContent))y=y.previousSibling;else break;(y=KF(y))?p=y:p=(p=p.parentNode)?KF(p.previousElementSibling):null;return p};
rN_=function(p){if(!p)return null;for(var y=p.nextSibling;y;)if(y.nodeType===Node.ELEMENT_NODE&&y.nodeName==="BR")y=y.nextSibling;else if(y.nodeType===Node.TEXT_NODE&&/\s+/.test(y.textContent))y=y.nextSibling;else break;return(y=wbL(y))?y:rN_(p.parentNode)};
SR8=function(p){var y=_.wP(),l=y.JSC$11230_getStartNode();if(!g3j(l.parentNode))return null;y=y.JSC$11230_getStartOffset();if(l.nodeType===Node.TEXT_NODE){var q=_.dV(l,gP);if(q){if(p&&y===0||!p&&y===l.length)return q}else{if(p&&y===l.length)return!l||l.nodeName==="BR"||l.nextElementSibling&&_.iI(l.nextElementSibling,"display")==="block"?null:wbL(l.nextElementSibling);if(!p&&y===0)return l?KF(l.previousElementSibling):null}}if(l.nodeType===Node.ELEMENT_NODE)if(p){if(0<=y&&y<l.childNodes.length)return wbL(l.childNodes[y])}else if(0<
y&&y<=l.childNodes.length)return KF(l.childNodes[y-1]);return null};
Fe_=function(p,y,l){if(!p)return null;if(p.nodeType===Node.TEXT_NODE)if(l){var q=ibj(p);if(q&&!/^\s+\S/.test(p.wholeText.substr(0,y)))return q}else if((q=rN_(p))&&!/\S\s+/.test(p.wholeText.substr(y,p.wholeText.length)))return q;return p.nodeType===Node.ELEMENT_NODE?l?ibj(p.childNodes[y]):rN_(p.childNodes[y]):Fe_(p.parentNode,y,l)};
Lej=function(p){if(p.hasChildNodes())switch(p.tagName){case "DIV":case "A":case "SPAN":var y="";for(p=p.firstChild;p;p=p.nextSibling)y+=Lej(p);return y;default:return""}else switch(p.nodeType){case 3:return p.textContent;default:return""}};
rP=function(p,y){return p.year===y.year&&p.month===y.month&&p.day===y.day};
Sq=function(p,y){return p.year!==y.year?p.year<y.year:p.month!==y.month?p.month<y.month:p.day<y.day};
kgl=function(p){return{year:p.getFullYear(),month:p.getMonth(),day:p.getDate()}};
Nj8=function(p){var y=ySo;y=y===void 0?ySo:y;y(new Date(p.year,p.month,p.day))};
Fr=function(p){return kgl(new Date(Number(p.seconds)*1E3))};
DxL=function(p){return p.year!==void 0&&p.month!==void 0&&p.day!==void 0};
HbL=function(p){return p.start!==void 0&&p.end!==void 0};
Tjg=function(p){return HbL(p)?p.start:p};
xxu=function(p){return HbL(p)?p.end:void 0};
f46=function(p,y){for(var l=[],q=new Date(p.start.year,p.start.month);q.getFullYear()<p.end.year||q.getFullYear()===p.end.year&&q.getMonth()<=p.end.month;){var t=l,E=t.push,e=q.getFullYear(),C=q.getMonth(),u=p,a=y,m=void 0,U=[],b=Object.freeze({extraCssClass:"invisible"}),P=new Date(e,C),Z=kgl(P);P=P.getDay();for(var K=kgl(new Date);Z.month===C;){P!==Bjj&&m||(m=Array.from({length:7}).fill(b),U.push(m));var F={date:{year:e,month:C,day:Z.day},extraCssClass:"",debugClass:""};F.extraCssClass=a(F.date,
Z,K,u).trim();m[(P-Bjj+7)%7]=F;Z=Z.day===n36(Z.year,Z.month)?Z.month===11?{year:Z.year+1,month:0,day:1}:{year:Z.year,month:Z.month+1,day:1}:{year:Z.year,month:Z.month,day:Z.day+1};P=(P+1)%7}E.call(t,{weeks:U,monthLabel:LF.SHORTMONTHS[C]+" "+e,year:e,month:C,monthLabelExtraCssClass:U[0][2]===b?"shift-down-label":""});q.setMonth(q.getMonth()+1)}return l};
v3R=function(p,y){y=y.months.findIndex(function(l){return l.year===p.year&&l.month===p.month});
return y>=0?y:void 0};
dxa=function(p,y){a:{var l=l===void 0?[2,3]:l;l=_.c(l);for(var q=l.next();!q.done;q=l.next()){var t=new Date;if((new Xbo(q.value)).parse(y,t,{validate:!0})){t.setHours(0,0,0,0);y=t;break a}}y=null}if(!y)return{isValid:!1,value:void 0};y=kgl(y);l=p.end;return Sq(y,p.start)||Sq(l,y)?{isValid:!1,value:void 0}:{isValid:!0,value:y}};
I4L=function(p){var y=Obt;y=y===void 0?o3l:y;var l=p.columnsToShow||[],q=zw5(p.columnDimensions,p.columnsToShow,p.leftFloatingColumns,y);return l.map(function(t,E){var e=p.columns[t];if(e===void 0)throw Error("Nh");var C=q?q[E]:"";var u=p.getCustomTooltip?p.getCustomTooltip(t,e.headerTooltipParagraphs):e.headerTooltipParagraphs;var a=YRc(p,t);return{type:t,index:E,style:C,classes:a,headerName:e.headerName||"",headerIcon:e.headerIcon,headerTooltipParagraphs:u||[],headerTooltipHelpContext:e.headerTooltipHelpContext,
sortOrders:e.sortOrders||[],selectionState:e.isSelectionCheckbox?p.selectionState:void 0}})};
YRc=function(p,y){var l=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],q=p.columns[y];if(q===void 0)return"";var t=l.includes("DEFAULTS")&&q.cssClass?[q.cssClass]:[];if(l.includes("SORTING")){q.sortOrders&&q.sortOrders.length&&t.push("sortable");if(p.sorting&&p.sorting.columnType===y)a:switch(p.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var E="column-sorted";break a;default:E=""}else E="";E&&t.push(E)}l.includes("FLOATING")&&(y=p.columnsToShow.indexOf(y),p.leftFloatingColumns&&y<p.leftFloatingColumns&&
t.push("floating-column"),p.leftFloatingColumns&&y===p.leftFloatingColumns-1&&t.push("last-floating-column"));l.includes("RIGHT_ALIGN")&&q.rightAlignHeader&&t.push("right-align");return t.filter(function(e){return e}).join(" ")};
zw5=function(p,y,l,q){l=l===void 0?0:l;q=q===void 0?o3l:q;if(p){var t=[],E=0;pDu(p,y,q).forEach(function(e,C){var u="min-width:"+e.minWidth+"px;padding-left:"+e.paddingLeft+"px;padding-right:"+e.paddingRight+"px;flex:"+e.flexGrow+" 0 "+e.minWidth+"px;";e.maxWidth!==Infinity&&(u=[u,"max-width:"+e.maxWidth+"px;"].join(""));E>0&&C<l&&(u=[u,"left:"+E+"px;"].join(""));t.push(u);E+=e.minWidth+e.paddingLeft+e.paddingRight});
return t}};
pDu=function(p,y,l){l=l===void 0?o3l:l;return y.map(function(q,t){q=p&&p[q]||{};var E=t===0?l.paddingLeftFirstColumn:l.padding;q.paddingLeft!==void 0&&(E=q.paddingLeft);t=t===y.length-1?l.paddingRightLastColumn:l.padding;q.paddingRight!==void 0&&(t=q.paddingRight);return{paddingLeft:E,paddingRight:t,minWidth:q.minWidth!==void 0?q.minWidth:l.minWidth,maxWidth:q.maxWidth!==void 0?q.maxWidth:l.maxWidth,flexGrow:q.flexGrow!==void 0?q.flexGrow:l.flexGrow}})};
yro=function(p){var y=p.reduce(function(q,t){var E=t.columnId,e={};t.headerText&&(e.headerName=_.JB(t.headerText));t.rightAlignHeader&&(e.rightAlignHeader=t.rightAlignHeader);var C;if((C=t.headerIcon)==null?0:C.iconType)e.headerIcon=_.QZ(t.headerIcon.iconType);q[E]=e;return q},{}),l=p.filter(function(q){return!q.hideColumn}).map(function(q){return q.columnId});
p=p.filter(function(q){return!!q.dimensions}).reduce(function(q,t){q[t.columnId]=t.dimensions;
return q},{});
return{columns:y,columnsToShow:l,columnDimensions:p}};
_.l2u=function(p){return p?p.simpleText?p.simpleText:p.runs?p.runs.map(function(y){return y.text}).join(""):"":""};
Jrc=function(p){var y=p.data;var l=p.onTap;var q=p.isSelected;var t=p.onFocusIn;if(!y)return{};p=qFa(y);q===void 0&&(q=y==null?void 0:y.isSelected);var E;return{text:sRj(y,p),startIcon:(E=y.icon)==null?void 0:E.iconType,state:q?0:2,type:0,onTap:t8o(y,l),accessibilityLabel:EWt(y,p),onFocusIn:function(){return t==null?void 0:t()}}};
sRj=function(p,y){if(!y)return p.text?_.l2u(p.text):void 0};
t8o=function(p,y){return function(l){y==null||y(l,p)}};
qFa=function(p){p=p.style&&p.style.styleType;return!eq&&p==="STYLE_EXPLORE_LAUNCHER_CHIP"};
EWt=function(p,y){if(y){var l,q,t;return(t=(l=p.accessibilityData)==null?void 0:(q=l.accessibilityData)==null?void 0:q.label)!=null?t:sRj(p,!1)}};
kF=function(p){return{signalAction:{signal:p}}};
hYt=function(){return _.OY("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?cro:_.eYa};
C75=function(p,y){p=p===void 0?"SOFT_RELOAD_PAGE":p;y=y===void 0?49504:y;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.ar(_.g$("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:y}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:p}}]}}}};
uBR=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.ar(_.g$("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:hYt()}};
RYc=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.ar(_.g$("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:hYt()}};
Wzl=function(p,y){var l=_.ar(_.g$("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),q=_.ar(_.g$("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),t={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.ar(_.g$("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};t.serviceEndpoint=p?p:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[kF("SOFT_RELOAD_PAGE")]}};return{title:l,bodyText:q,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:t},
style:{value:y!=null?y:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
m88=function(p){p=p===void 0?{}:p;return{title:_.ar(p.localizedZeroStateTitleText===void 0?"":p.localizedZeroStateTitleText),bodyText:_.ar(p.localizedZeroStateMessage===void 0?"":p.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ar(p.localizedZeroStateButtonText===void 0?"":p.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[a26]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
$8_=function(p){p=p===void 0?{}:p;return{title:_.ar(p.localizedOptInBannerTitleText===void 0?"":p.localizedOptInBannerTitleText),titleLength:19,subtitle:_.ar(p.localizedOptInMessage===void 0?"":p.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ar(_.g$("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:_.ar(_.g$("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:[U8t]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
nW6=function(p,y){var l=y=y===void 0?{}:y;y=l.offlineTitleText===void 0?"":l.offlineTitleText;var q=l.offlineDescriptionText===void 0?"":l.offlineDescriptionText,t=l.formattedSupplementalText,E=l.actionButtonText===void 0?"":l.actionButtonText,e=l.titleText===void 0?"":l.titleText;l=l.descriptionText===void 0?"":l.descriptionText;var C={style:"STYLE_PRIMARY",size:"SIZE_DEFAULT",text:_.ar(E),isDisabled:!1,navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://www.youtube.com/premium",
webPageType:"WEB_PAGE_TYPE_PROMO"}},urlEndpoint:{url:"https://www.youtube.com/premium"}},loggingDirectives:{clientVeSpec:{uiType:266213}}};p||(e=y,l=q,C={style:"STYLE_MONO_TONAL",size:"SIZE_DEFAULT",text:_.ar(E),isDisabled:!0,loggingDirectives:{clientVeSpec:{uiType:266213}}});return{title:_.ar(e),titleLength:e.length,overrideTitleMaxFontSize:30,subtitle:_.ar(l),supplementalText:t,primaryButton:{buttonRenderer:C},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},
tileImage:{thumbnails:[jRt]},darkTileImage:{thumbnails:[bem]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.Arl=function(p,y,l,q,t,E,e,C,u,a,m){t=t===void 0?!1:t;E=E===void 0?!1:E;e=e===void 0?0:e;C=C===void 0?-Infinity:C;u=u===void 0?!1:u;a=a===void 0?!1:a;m=m===void 0?!1:m;var U=[],b=_.ar(_.g$("SMART_DOWNLOADS",void 0,"Smart downloads")),P=_.ar(Gmu(e,C,p.length));C=e=void 0;a?e={statementBannerRenderer:nW6(m,q)}:t?p.length>0?C=P7c(p,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.n("kevlar_manual_downloads_above"),b,P):u?C={alertBannerViewModel:{heading:{content:l.localizedOptInBannerTitleText===
void 0?"":l.localizedOptInBannerTitleText},body:{content:l.localizedPromptMessage===void 0?"":l.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.g$("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.g$("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:_.WdR}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:E&&(C={backgroundPromoRenderer:{bodyText:_.ar(_.g$("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"}}}):
E&&(C={alertBannerViewModel:{heading:{content:l.localizedOptInBannerTitleText===void 0?"":l.localizedOptInBannerTitleText},body:{content:l.localizedOptInMessage===void 0?"":l.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.g$("TURN_ON",void 0,"Turn on"),accessibilityText:_.g$("TURN_ON",void 0,"Turn on"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:127983}},onTap:{innertubeCommand:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!0}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});l=_.ar(_.g$("YOUR_DOWNLOADS",void 0,"Your downloads"));q=void 0;y.length>0?(q=void 0,_.n("kevlar_display_downloads_numbers")&&(q=_.ar(_.Qt("VIDEO_COUNT",y.length))),q=P7c(y,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,l,q)):t||p.length||
a||(q={backgroundPromoRenderer:{bodyText:_.ar(_.g$("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}}}});e?U.push({richSectionRenderer:{content:e}}):C&&!_.n("kevlar_manual_downloads_above")&&U.push({richSectionRenderer:{content:C,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
q&&U.push({richSectionRenderer:{content:q,loggingDirectives:{clientVeSpec:{uiType:51721}}}});C&&_.n("kevlar_manual_downloads_above")&&U.push({richSectionRenderer:{content:C,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(y.length>0||t&&p.length>0&&!a)&&U.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.ar(_.g$("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},
loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:U}};
_.M8c=function(p){return Zec(p,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.V8L=function(p){return Zec(p,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
Zec=function(p,y){var l=[];p=P7c(p,y,!0);l.push({richSectionRenderer:{content:p}});return{contents:l}};
P7c=function(p,y,l,q,t){l=l===void 0?!1:l;var E="RESPONSIVE_SIZE_STANDARD";_.n("kevlar_modern_downloads_compact")?E="RESPONSIVE_SIZE_COMPACT":_.n("kevlar_modern_downloads_extra_compact")&&(E="RESPONSIVE_SIZE_EXTRA_COMPACT");p={isExpanded:l,contents:NG(p),entitySelectorType:y,responsiveContainerConfiguration:{responsiveSize:E}};q&&(p.title=q);t&&(p.subtitle=t);l||(_.n("kevlar_smart_downloads_show_more_button")?(p.showMoreButton={buttonRenderer:{accessibility:{label:_.g$("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.ar(_.g$("SHOW_MORE",void 0,"Show more"))}},p.showLessButton={buttonRenderer:{accessibility:{label:_.g$("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.ar(_.g$("SHOW_LESS",void 0,"Show less"))}}):(p.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.g$("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,
"Previous"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},p.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.g$("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:11760}}}},p.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.g$("VIEW_ALL",void 0,"View all"),accessibilityText:_.g$("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:Rr("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:p}};
NG=function(p){var y=[];p=_.c(p);for(var l=p.next();!l.done;l=p.next())if(l=l.value,zFR(l)){var q=y,t=q.push;var E=void 0;if(l==null?0:(E=l.videoEntity)==null?0:E.videoId){E=Yy(_.ei().getState(),l.videoEntity.videoId);var e=_.ei().getState();var C=_.PV(l.videoEntity.videoId,"mainVideoEntity");e=!!_.Ns(e.entities)[C];e={videoId:l.videoEntity.videoId,title:mN(l.videoEntity.title),shortBylineText:mN(l.channelEntity.title),thumbnail:l.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:e&&_.n("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:V1j(l.videoEntity.videoId,E,l.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.g$("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};l.videoEntity.lengthSeconds&&(e.thumbnailOverlays=bIj(l.videoEntity.lengthSeconds,E));e.isWatched=E>0;_.n("kevlar_modern_downloads_page")&&(e.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:l.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.g$("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},e.badges=void 0);l=e}else l={};t.call(q,{richItemRenderer:{content:{videoRenderer:l},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(oBm(l)){q=y;t=q.push;var u=C=E=void 0,a=void 0,m=void 0,U=void 0,b=void 0,P=void 0,Z=void 0,K=void 0,F=void 0,L=void 0;e=l.mainPlaylistEntity.playlistId;var T=l==null?void 0:(L=l.mainPlaylistEntity)==null?void 0:(F=L.thumbnailStyleData)==null?void 0:(K=F[0])==null?void 0:(Z=K.value)==null?void 0:(P=Z.collageThumbnail)==
null?void 0:P.coverThumbnail;if(e&&T){P=g0o(e);!_.n("enable_offline_playlist_page")&&(l==null?0:(b=l.mainPlaylistEntity)==null?0:b.videos)&&(b=l==null?void 0:(U=l.mainPlaylistEntity)==null?void 0:(m=U.videos)==null?void 0:m[0],m=_.ba(b).entityId,m=JSON.parse(m).videoId,m!==void 0&&(U=Yy(_.ei().getState(),m),P=_.WV(m,e,void 0,void 0,U)));m=[];if(l==null?0:(a=l.mainPlaylistEntity)==null?0:(u=a.videos)==null?0:u.length)m=[pFR(),Object.assign({},(C=IUc(l==null?void 0:l.mainPlaylistEntity.videos.length))!=
null?C:{})];l={playlistId:e,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:T}},navigationEndpoint:P,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:m,title:mN(l.mainPlaylistEntity.title),shortBylineText:mN(l==null?void 0:(E=l.channelEntity)==null?void 0:E.title),badges:[{metadataBadgeRenderer:{label:_.g$("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.n("kevlar_modern_downloads_page")&&(l.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:gW8,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:e,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.g$("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},l.badges=void 0)}else l=void 0;t.call(q,{richItemRenderer:{content:{playlistRenderer:l},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return y};
Gmu=function(p,y,l){p=p?QR5(p):"";y!==void 0&&isFinite(y)?y===0?y=_.g$("UPDATING",void 0,"Updating..."):(y=juL(new Date(y),new Date),y=_.g$("UPDATED_TIME",{relative_time:y},"Updated "+y)):y="";var q="";p&&y&&(q=" \u2022 ");if(l&&_.n("kevlar_display_downloads_numbers")){l=_.Qt("VIDEO_COUNT",l);if(p||y)q=" \u2022 ";return l+q+p+q+y}return p+q+y};
Kzg=function(p){return Tel(p.entities).length};
_.wDa=function(p,y){var l=FWt(p.responsiveSize),q;p=!((q=p.responsiveMap)==null||!q.some(function(t){return t.containerSize==="CONTAINER_SIZE_NARROW"&&t.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:y,sizing:l,enableFullBleedForSingleCol:!1,isCompactList:l==="COMPACT"&&p}};
iea=function(p,y){return _.Ae(p.entities,"votingEntity",y)};
rrt=function(p){if(p){var y;return((y=_.WC().resolve(_.RK(_.hb)))==null?0:y())?p.darkTheme:p.lightTheme}};
SFt=function(p,y){if(p.simpleText)return Object.assign({},p,{simpleText:Jb(p.simpleText,y)});if(!p.runs)return p;for(var l=Object.assign({},p,{runs:[]}),q=0,t=_.c(p.runs),E=t.next();!E.done;E=t.next())if(E=E.value,E.text)if(q+E.text.length<=y)l.runs.push(E),q+=E.text.length;else return l.runs.push(Object.assign({},E,{text:Jb(E.text,y-q)})),l;return p};
Fzm=function(p,y){return _.Ae(p.entities,"chipBarStateEntity",y)};
Lza=function(p,y){return _.Ae(p.entities,"chipEntity",y)};
Nog=function(p,y,l,q){return function(){var t=kmu.has(p.displayType)&&p.selected,E=t&&p.deselectCommand?p.deselectCommand:p.tapCommand;!E||t&&q||_.tb(E,{form:{element:y==null?void 0:y.value}});l==null||l()}};
D86=function(p){switch(p){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
Hej=function(p,y){return{triggeringElement:p,onDwellTriggeredFn:function(){var l={triggeringElement:p,loadVideoPreviewEventData:y},q=document.querySelector(".video-preview");q&&q.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:l}))},
onDwellEndFn:function(){var l=document.querySelector(".video-preview");l&&l.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
ToR=function(p,y){var l=_.WC().resolve(_.RK(Gnc)),q=function(){var t=y();return l&&t?Hej(p.value,t):null};
_.NA(function(){var t=q();l&&t&&Promise.resolve().then(function(){l.registerElement(t)});
_.TP(function(){l&&t&&Promise.resolve().then(function(){_.ty(l,t)})})},"csPUge")};
Bo8=function(p){var y=p.dataset.resizeObserverId;if(y)return y;y=""+x8u++;return p.dataset.resizeObserverId=y};
f2u=function(p,y){var l=Bo8(p);Dy.has(l)||Dy.set(l,new Set);Dy.get(l).add(y);Hn.has(l)&&y(Object.assign({},{target:p},Hn.get(l)))};
vWt=function(p){p=_.c(p);for(var y=p.next();!y.done;y=p.next()){y=y.value;var l=Bo8(y.target),q=Object.assign({},{target:y.target},Hn.get(l));if(q!=null&&q.contentRect?q.contentRect.width!==y.contentRect.width||q.contentRect.height!==y.contentRect.height:1)for(Hn.set(l,{borderBoxSize:y.borderBoxSize,contentBoxSize:y.contentBoxSize,contentRect:y.contentRect,devicePixelContentBoxSize:y.devicePixelContentBoxSize}),l=_.c(Dy.get(l)||[]),q=l.next();!q.done;q=l.next())q=q.value,q(y)}};
d8R=function(){return TY?TY:TY=new XDa(vWt)};
Oea=function(p,y){var l=Bo8(p);Dy.has(l)&&(Dy.get(l).delete(y),Dy.get(l).size===0&&(Dy.delete(l),Hn.delete(l),TY.unobserve(p),delete p.dataset.resizeObserverId));Dy.size===0&&TY&&(TY.disconnect(),TY=void 0)};
zYR=function(p,y){var l=_.WC().resolve(hK);return oW6.map(function(q){return l.observe(p,y,q)})};
YFj=function(p){var y=_.WC().resolve(hK);p.forEach(function(l){y.unobserveByKey(l)})};
_.y3m=function(p,y){var l=Object.assign({},I2t,y);y=_.c(m$L());var q=y.next().value,t=y.next().value,E=function(e){var C=e.contentRect.height;if((e=e.contentRect.width)||C||l.canHaveZeroSize)q.width()===e&&q.height()===C||t(q,{height:C,width:e})};
_.xZ(function(){var e=p instanceof HTMLElement?p:p.value,C=pa5(E,l.throttleMs),u=[];l.useVisibilityObserver&&(u=zYR(e,function(a,m){requestAnimationFrame(function(){m==="visible"?(f2u(e,C),d8R().observe(e)):Oea(e,C)})}));
u.length||(f2u(e,C),d8R().observe(e));_.TP(function(){u.length&&(YFj(u),u.length=0);Oea(e,C)})});
return q};
qzo=function(p){var y=p.data;var l=p.callback;var q=p.enableSingleChipSelection;var t=p.disableChipsScrollAnimation;var E=_.tK("div"),e=f6(!1),C=f6(0);p={};p=_.c(ri(y.autoselectedChipIndex!=null?(p[y.autoselectedChipIndex]=!0,p):{}));var u=p.next().value,a=p.next().value,m=function(){var hR=E.value;return hR==null||hR.scrollLeft-1<=0},U=function(){var hR=E.value;
return hR==null?!1:hR.scrollLeft+1>=(hR==null?NaN:hR.scrollWidth)-(hR==null?NaN:hR.clientWidth)};
p=_.c(ri(m()));var b=p.next().value,P=p.next().value;p=_.c(ri(U()));var Z=p.next().value,K=p.next().value;p=y.isHorizontallyScrollable;var F=function(hR){E.value!=null&&(_.OY("HTML_DIR")==="rtl"&&(hR=-hR),E.value.scrollBy({left:hR,behavior:t?"instant":"smooth"}))},L=function(){F(-320)},T=function(){F(320)},O=_.Ff(function(hR){e.value=!0;
C.value=hR.clientX}),f=_.Ff(function(hR){if(e.value){hR=hR.clientX;
var Wt=hR-C.value;C.value=hR;var AR;(AR=E.value)==null||AR.scrollBy({left:-Wt})}}),v=_.Ff(function(){var hR=m(),Wt=U();
hR!==b&&P(hR);Wt!==Z&&K(Wt)});
eW("pointerup",function(){e.value&&(e.value=!1)});
var z={},sc={};return _.R("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},tU(y.title,function(){return _.R("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.R("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},y.title),lf6(y.overflowButton))}),_.R("div",{class:"ytChipsShelfViewModelChipsShelfContent"},tU(y.previousButton!=null,function(){var hR={};
return _.R("div",{class:_.rD("ytChipsShelfViewModelLeftArrowContainer",(hR.ytChipsShelfViewModelLeftArrowContainerIsHidden=b,hR))},lf6(y.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:L}}))}),_.R("div",{el:E,
"on:pointerdown":O,"on:pointermove":f,"on:scroll":v,class:_.rD("ytChipsShelfViewModelChipsScrollContainer",(z.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!p,z))},_.R("div",{class:_.rD("ytChipsShelfViewModelChipsContainer",(sc.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!p,sc.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!p&&!1,sc)),role:"tablist"},(y.contents||[]).map(function(hR,Wt){return _.R("div",{class:"ytChipsShelfViewModelChipWrapper"},
lf6(hR,{chipViewModel:{callback:function(AR,Qu){if(q){var jj={};a((jj[Wt]=Qu,jj))}else jj={},a(Object.assign({},u,(jj[Wt]=Qu,jj)));l==null||l(AR,Qu,Wt)},
disableDeselection:q,selected:!!u[Wt]}}))}))),tU(y.nextButton!=null,function(){var hR={};
return _.R("div",{class:_.rD("ytChipsShelfViewModelRightArrowContainer",(hR.ytChipsShelfViewModelRightArrowContainerIsHidden=Z,hR))},lf6(y.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:T}}))})))};
tL_=function(p,y,l,q,t){p=y?p.switchOffCommand:p.switchOnCommand;if(q&&t)s38(p,l,t);else{var E,e;(E=_.qW({elementsCommand:p}))==null||(e=E.onclick)==null||e.call(E,l)}};
s38=function(p,y,l){p=_.qW({elementsCommand:p,additionalCommandArgs:{commandController:{onSuccess:function(){l(!1)},
onServerError:function(){l(!1)}}}});
if(p==null?0:p.onclick)p.onclick(y),l(!0)};
J3R=function(p){if(p)return _.G(p,EAg)};
uJm=function(p,y,l){if(y)return[c3o];switch(p){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[xF];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return l?[xF]:[ePa,xF];case "TRANSFER_STATE_PAUSED_BY_USER":return[hPu,xF];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[Csg,xF];default:return[c3o]}};
RPR=function(p,y,l,q){return uJm(p,y,q).map(function(t){var E=t.text,e=t.iconType,C=t.videoAction;t=t.playlistAction;E=E?{content:E}:void 0;e=e&&{sources:[{clientResource:{imageName:e}}]};var u=(0,_.Ts.unsafeClone)(l);if(u){var a=_.G(u,_.wi),m=_.G(u,_.ij);a&&C?a.action=C:m&&t&&(m.action=t)}return{title:E,leadingImage:e,rendererContext:u&&{commandContext:{onTap:{innertubeCommand:u}}}}})};
WfL=function(p){p=_.IW(p.rendererContext);var y;return(y=_.G(p,_.ij))==null?void 0:y.playlistId};
af8=function(p){var y;return(y=p.listItems)==null?void 0:y.some(function(l){var q;return _.pF((q=_.G(l,_.Nr))==null?void 0:q.rendererContext)})};
$c_=function(p){var y;return(y=p.listItems)==null?void 0:y.some(function(l){var q,t,E=(t=(q=_.G(l,mcm))==null?void 0:q.defaultListItem)!=null?t:l;l=_.G(E,_.Nr);return!!_.G(l==null?void 0:l.leadingAccessory,UcR)})};
nA_=function(p){var y=p.element;var l=p.veType;var q=p.storedVisualElement===void 0?null:p.storedVisualElement;var t=p.elementIndex===void 0?0:p.elementIndex;p=p.clientYouTubeData;var E=_.B2();E!==j3m&&(b35.clear(),j3m=E);if(y.visualElement&&b35.has(y.visualElement))return null;if(q&&b35.has(q))return y.visualElement=q,null;l=_.FH(_.Ll(),{veType:l,elementIndex:t,clientYouTubeData:p});if(!l)return null;y.visualElement=l;b35.add(l);return l};
_.Bn=function(p,y,l,q){l=l===void 0?null:l;q=q===void 0?r_u:q;var t=t===void 0?null:t;XH(function(){if(y){l instanceof Function&&(l=l());var E=nA_({element:y,veType:p,storedVisualElement:l,clientYouTubeData:void 0});E&&(Lv5(y,t),q(E))}})};
fF=function(p,y){if(p){switch(y){case 0:p=p.primaryTitleColor;break;case 1:p=p.secondaryTitleColor;break;case 2:p=p.surgeColor;break;case 3:p=p.section2Color;break;case 4:p=p.section3Color;break;default:return}if(p)return _.z5(p)}};
Gq5=function(p){return p?_.Y9(p):""};
Ps5=function(p){return(p==null?void 0:p.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
A3u=function(p,y){var l;return"linear-gradient(to bottom, "+((l=y==null?void 0:y.map(function(q){var t=p?q.darkThemeColor:q.lightThemeColor;return t?_.Y9(t)+" "+((q==null?void 0:q.startLocation)||0)*100+"%":"transparent"}))==null?void 0:l.join(", "))+")"};
Z3R=function(p,y,l,q,t){if(!((q==null?0:q.height)&&(q==null?0:q.width)))return{size:0};var E=q.width;q=q.height;if(t)return y==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||y==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&E>q?{size:312/XBc}:y==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(l!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||p!==1&&p!==2||y!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&y!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&y!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(y==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||y==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||q===E)switch(p){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(y==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||q>E)switch(p){case 1:case 3:return{size:240*vLL};default:return{size:360*vLL}}switch(p){case 1:case 2:return{size:1/XBc*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.MLl=function(p){if(!("matchMedia"in window))return _.ph(Error("Oh")),function(){return!1};
var y=window.matchMedia(p);p=_.c(_.nr(y.matches,void 0,"jLJc8e"));var l=p.next().value,q=p.next().value,t=function(E){q(E.matches)};
y.addEventListener?(y.addEventListener("change",t),_.TP(function(){y.removeEventListener("change",t)})):y.addListener&&(y.addListener(t),_.TP(function(){y.removeListener(t)}));
return l};
VL5=function(p){return p==="IMAGE_BANNER_STYLE_INSET"||p==="IMAGE_BANNER_STYLE_UNKNOWN"};
gAa=function(){if(!("matchMedia"in window))return _.ph(Error("Oh")),function(){return 0};
var p=Bu(function(){return window.matchMedia("(max-width: 527.9px)")}),y=Bu(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),l=Bu(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),q=Bu(function(){return window.matchMedia("(min-width: 1024px)")}),t=_.c(_.nr(p.matches,void 0,"og9kEc")),E=t.next().value,e=t.next().value;
t=_.c(_.nr(y.matches,void 0,"ybDWCb"));var C=t.next().value,u=t.next().value;t=_.c(_.nr(l.matches,void 0,"o0Gfh"));var a=t.next().value,m=t.next().value;t=_.c(_.nr(q.matches,void 0,"yqUUgd"));var U=t.next().value,b=t.next().value,P=Bu(function(){return function(L){e(L.matches)}}),Z=Bu(function(){return function(L){u(L.matches)}}),K=Bu(function(){return function(L){m(L.matches)}}),F=Bu(function(){return function(L){b(L.matches)}});
_.xZ(function(){p.addEventListener?(p.addEventListener("change",P),y.addEventListener("change",Z),l.addEventListener("change",K),q.addEventListener("change",F)):p.addListener&&(p.addListener(P),y.addListener(Z),l.addListener(K),q.addListener(F));_.TP(function(){p.removeEventListener?(p.removeEventListener("change",P),y.removeEventListener("change",Z),l.removeEventListener("change",K),q.removeEventListener("change",F)):p.removeListener&&(p.removeListener(P),y.removeListener(Z),l.removeListener(K),
q.removeListener(F))})});
return function(){return E()?1:C()?2:a()?3:U()?4:0}};
Q3t=function(p){var y=0;p=_.c([p.title,p.metadata,p.actions,p.description,p.attribution]);for(var l=p.next();!l.done;l=p.next())l.value&&y++;return y};
Kf5=function(p){return p===1||p===2?1:0};
i3t=function(p){var y,l=((y=_.WC().resolve(_.RK(_.hb)))==null?0:y())&&p.data.darkThemeImage?p.data.darkThemeImage:p.data.image;y=_.R("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.R("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},l?_.R(_.W$,{data:l,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),waL(p.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));l=_.R(_.CF,{text:p.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var q=p.data;if(q.bodyText){var t=[];q=_.c(q.bodyText);for(var E=q.next();!E.done;E=q.next())t.push(_.R(_.CF,{text:E.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else t=_.R(_.a4,null);return _.R("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},y,l,t,waL(p.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.R(_.CF,{text:p.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.R(_.CF,{text:p.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
Sz5=function(p){p=(new r3t).parse(p);return(new Gc).render(p).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(y){var l=y.split(":").map(Number),q=0,t=0;if(l.length===3)l=_.c(l),q=l.next().value,t=l.next().value,l=l.next().value;else if(l.length===2)l=_.c(l),t=l.next().value,l=l.next().value;else if(l.length===1)l=_.c(l).next().value;else throw Error("Ph");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(q*3600+t*60+l)+'" role="button">'+y+"</span>"})};
Ffg=function(p){p=_.c(p.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var y=p.next(),l={};!y.done;l={clickHandler$jscomp$4:void 0},y=p.next()){y=y.value;l.clickHandler$jscomp$4=function(t){t=Number(t.target.getAttribute("data-time"));if(isNaN(t))throw Error("Qh");var E;(E=_.gi())==null||E.seekTo(t,!0)};
var q=function(t){return function(E){E.key!=="Enter"&&E.key!=="Space"||(0,t.clickHandler$jscomp$4)(E)}}(l);
y.setAttribute("tabindex","0");y.removeEventListener("click",l.clickHandler$jscomp$4);y.removeEventListener("keydown",q);y.addEventListener("click",l.clickHandler$jscomp$4);y.addEventListener("keydown",q)}};
Lf_=function(){return _.R("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.R(vn,{percentWidth:100}),_.R(vn,{animationDelay:200}),_.R(vn,{animationDelay:400}),_.R(vn,{animationDelay:600}),_.R(vn,{animationDelay:800,percentWidth:60}),_.R("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.R(vn,{percentWidth:100}),_.R(vn,{animationDelay:200}),_.R(vn,{animationDelay:400}),_.R(vn,{animationDelay:600,percentWidth:50}))};
vn=function(p){return _.R("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(p.percentWidth===void 0?100:p.percentWidth)+"%"},_.R("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(p.animationDelay===void 0?0:p.animationDelay)+"ms"}))};
kq5=function(){var p=_.c(_.nr(function(){return""},void 0,"v2wS5e")),y=p.next().value;
return[function(){return y()()},
p.next().value]};
Nt5=function(p,y){p=p?QR5(p):"";y!==void 0&&isFinite(y)?y===0?y=_.g$("UPDATING",void 0,"Updating..."):(y=juL(new Date(y),new Date),y=_.g$("UPDATED_TIME",{relative_time:y},"Updated "+y)):y="";var l="";p&&y&&(l=" \u2022 ");return _.ar(p+l+y)};
TtR=function(p,y,l,q,t,E){y=y===void 0?0:y;var e=Dct[y],C=e.title,u=e.iconType,a=e.topButtonRenderer,m=e.sectionClientVE;e=e.videoClientVE;var U;if(y!==1||p.length){l=[];p=_.c(p);for(q=p.next();!q.done;q=p.next()){var b=q.value;if(zFR(b))l.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:b.videoEntity.videoId,title:mN(b.videoEntity.title),shortBylineText:mN(b.channelEntity.title),thumbnail:b.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:b.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.g$("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:e}}}}}});else if(oBm(b)){q=l;var P=q.push;var Z=void 0,K=void 0,F=void 0,L=void 0,T=void 0,O=void 0,f=void 0,v=void 0,z=b.mainPlaylistEntity.playlistId,sc=b==null?void 0:(v=b.mainPlaylistEntity)==null?void 0:(f=v.thumbnailStyleData)==null?void 0:(O=f[0])==null?void 0:(T=O.value)==null?void 0:(L=T.collageThumbnail)==null?void 0:L.coverThumbnail;L=g0o(z);if(!_.n("enable_offline_playlist_page")&&
(b==null?0:(F=b.mainPlaylistEntity)==null?0:F.videos)){b:{F=b==null?void 0:(K=b.mainPlaylistEntity)==null?void 0:K.videos;K=_.ei().getState().entities;if(F!=null&&F.length&&K)for(F=_.c(F),T=F.next();!T.done;T=F.next())if(T=_.ba(T.value).entityId,(T=JSON.parse(T).videoId)&&DvR(K,T)==="TRANSFER_STATE_COMPLETE"){K=T;break b}K=""}K!==void 0&&(L=Yy(_.ei().getState(),K),L=_.WV(K,z,void 0,void 0,L))}K=KG8(_.g$("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),g0o(z));b=z&&sc&&K?{playlistId:z,navigationEndpoint:L,
viewPlaylistText:K,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:sc}},title:mN(b.mainPlaylistEntity.title),shortBylineText:mN(b==null?void 0:(Z=b.channelEntity)==null?void 0:Z.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:H3g,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:z,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.g$("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:e}}}:
void 0;P.call(q,{gridPlaylistRenderer:b})}}e={gridRenderer:{items:l}};y===1&&(U=Nt5(t,E))}else if(q){var hR=_.ar((P=l==null?void 0:l.localizedPromptMessage)!=null?P:"");e={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ar(_.g$("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.WdR}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ar(_.g$("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=Nt5(t,E)}else hR=_.ar(_.g$("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
e={};return{contents:[{shelfRenderer:{title:C,titleAnnotation:U,icon:{iconType:u},subtitle:hR,content:e,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:a}]}}}}],loggingDirectives:{clientVeSpec:{uiType:m}}}};
xcl=function(p,y,l,q,t,E,e,C,u,a,m){l=l===void 0?{}:l;q=q===void 0?{}:q;t=t===void 0?!1:t;E=E===void 0?!1:E;e=e===void 0?!1:e;C=C===void 0?!1:C;u=u===void 0?!1:u;a=a===void 0?0:a;m=m===void 0?-Infinity:m;if(!(y.length||p.length||t||C))return E?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:m88(l)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.ar(_.g$("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},
loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];var U=[];p.length&&U.push(TtR(p,0));C?U.push({contents:[{statementBannerRenderer:nW6(u,q)}]}):t?U.push(TtR(y,1,l,e,a,m)):E&&U.push({contents:[{statementBannerRenderer:$8_(l)}]});(t&&y.length||p.length)&&U.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.ar(_.g$("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});
return U.map(function(b){return{itemSectionRenderer:b}})};
Xr=function(p,y){if(typeof p!=="object")return null;p=_.c(Object.entries(p));for(var l=p.next();!l.done;l=p.next()){var q=_.c(l.value);l=q.next().value;q=q.next().value;if(l===y)return l;if(q=Xr(q,y))return l+"."+q}return null};
dP=function(p){var y=p.content;return(p=p.styleRuns)&&y?{runs:p.map(function(l){var q={text:y.slice(l.startIndex,l.startIndex+l.length)};l.fontColor&&(q.textColor=l.fontColor);return q})}:{simpleText:y}};
vAu=function(p,y,l,q){var t=Bta;q&&(p.quantity=q);if(!p.quantity||!p.maxQuantity)return{};q=p.minusButton;var E=p.plusButton,e,C,u,a;return{value:p.quantity,maxValue:p.maxQuantity,onChangeCallback:function(m){t(p,m)},
minusLabel:(e=_.G(q,ffj))==null?void 0:e.label,minimumReachedLabel:(C=_.G(q,ffj))==null?void 0:C.limitReachedLabel,plusLabel:(u=_.G(E,ffj))==null?void 0:u.label,maximumReachedLabel:(a=_.G(E,ffj))==null?void 0:a.limitReachedLabel,disabled:y,onRemoveCommand:l}};
Bta=function(p,y){var l=p.quantityIncrementerEntityKey;if(l){var q={};q.quantity=y;_.Cl(_.Ow("quantityIncrementerEntity",l,q));p.onChangeCommand&&_.tb(p.onChangeCommand)}};
O35=function(p,y){(p=XaL(p))&&(y?dc8.push({command:p,sourceData:{},commandContext:void 0}):_.WC().resolve(_.aK).resolveCommand(p))};
XaL=function(p){return _.G(p,_.pY)};
oA8=function(){var p=window.performance.timeOrigin+window.performance.now(),y=(new _.ok).setSeconds(p/1E9);return _.E3(y,2,_.WR(p%1E9),0)};
Yza=function(p,y){var l;p=(l=_.G(_.G(p,_.pY),zPj))==null?void 0:l.methodName;var q,t;(l=window.youtubewebview||((q=window.webkit)==null?void 0:(t=q.messageHandlers)==null?void 0:t.youtubewebview))&&p&&(q=new zY,p=_.Fq(q,1,p),p=_.HR(p.JSC$12274_serializeBinary()),y=_.HR(y),l.postMessage(p+","+y))};
YF=function(p,y){var l=_.G(_.G(p,_.pY),zPj);l&&(y&&(l.serializedAdditionalMetadata=_.HR(y)),O35(p,!0))};
Ifj=function(p){switch(p){case 2:return"MINI_APP_AD_TRIGGER_TYPE_WITHIN";case 3:return"MINI_APP_AD_TRIGGER_TYPE_REWARD";case 1:return"MINI_APP_AD_TRIGGER_TYPE_BEFORE";default:return"MINI_APP_AD_TRIGGER_TYPE_UNSPECIFIED"}};
p1a=function(){return!!_.OY("ID_TOKEN")};
qDL=function(p){return p instanceof Error&&p.cause instanceof yD8&&p.cause.rpcErrorCode!==void 0?!lN_.includes(p.cause.rpcErrorCode):!0};
tfa=function(){return _.JJ(sht,{authuser:""+(_.OY("SESSION_INDEX")||0)})};
Ik=function(p,y,l,q){l=l===void 0?"MINI_APP_SDK_API_UNSPECIFIED":l;q=q===void 0?"":q;var t=new _.SM;l={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:q,sdkApi:l};p instanceof Error&&(t.message=p.message,t.name=p.name,p.cause instanceof yD8&&p.cause.rpcErrorCode!==void 0&&(l.rpcErrorCode=p.cause.rpcErrorCode));var E;(E=y.onError)==null||E.call(y,{loggingError:t,metadata:l})};
JDj=function(p,y,l,q){switch(p){case "MINI_APP_SOURCE_GAMESNACKS":return new pp(y,l,q);default:return new EN_(y,l,q)}};
cDc=function(p){switch(p){case 1:return"MINI_APP_ERROR_SOURCE_CONSOLE";case 2:return"MINI_APP_ERROR_SOURCE_UNCAUGHT";case 3:return"MINI_APP_ERROR_SOURCE_SDK";case 4:return"MINI_APP_ERROR_SOURCE_SDK_INTERNAL";case 5:return"MINI_APP_ERROR_SOURCE_SDK_SERVER";default:return"MINI_APP_ERROR_SOURCE_UNSPECIFIED"}};
et6=function(p){switch(p){case 1:return"MINI_APP_SDK_ERROR_TYPE_API_UNAVAILABLE";case 2:return"MINI_APP_SDK_ERROR_TYPE_INVALID_PARAMS";case 3:return"MINI_APP_SDK_ERROR_TYPE_SIZE_LIMIT_EXCEEDED";default:return"MINI_APP_SDK_ERROR_TYPE_UNSPECIFIED"}};
htR=function(p){switch(p){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
CHo=function(){return Math.floor(Math.random()*4)+1};
uv5=function(p,y,l,q){p=_.c(Object.entries(p));for(var t=p.next(),E={};!t.done;E={message$jscomp$989:void 0},t=p.next()){var e=_.c(t.value);t=e.next().value;e=e.next().value;E.message$jscomp$989=e;y.push(setTimeout(function(C){return function(){q(!1);l(C.message$jscomp$989.text)}}(E),E.message$jscomp$989.delayMs));
Number(t)>0&&y.push(setTimeout(function(){q(!0)},E.message$jscomp$989.delayMs-400))}};
Rto=function(p,y){var l=l===void 0?r_u:l;_.n("mweb_fix_monitor_visibility_after_render")?p&&XH(function(){Lv5(p,y,l)}):XH(function(){Lv5(p,y,l)})};
mj8=function(p){var y=p.data;var l=p.uniqueId;p=p.overrides;var q,t=((q=y.timedAnimationData)==null?void 0:q.animationTiming)||[];return _.R("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.R(WQt,{settings:{uniqueId:l,timings:t,experimentEnabled:t.length>0,enabled:t.length>0}},aNt(y.buttonRenderer,{buttonRenderer:{buttonOverrides:p}})))};
b1l=function(p){Ujc||(Ujc=$jt(new _.p4(1,void 0,void 0,jh5),0));var y=Ujc.format(Math.floor(p));y=_.Ir==="be"||_.Ir==="bg"||_.Ir==="es"||_.Ir==="et"||_.Ir==="hu"||_.Ir==="ka"||_.Ir==="lv"||_.Ir==="pl"||_.Ir==="pt-PT"||_.Ir==="sq"?y.replace(new RegExp("^(\\d)"+jh5.GROUP_SEP.replace(".","\\.")+"(\\d+("+jh5.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):y;return p>=1E3&&p<=9999&&y[1]==="."&&(_.Ir==="sl"||_.Ir==="it")?y.replace(".",""):y};
nN6=function(p,y){OU("ytd-button-renderer",{data:p,className:y?y.className:"",overrides:y==null?void 0:y.buttonOverrides},sY)};
ADg=function(p,y,l,q){if(p)return q=q||p.likeStatus,y?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:q==="LIKE",isDisabled:!p.likesAllowed,defaultIcon:{iconType:l},defaultText:q==="LIKE"?p.likeCountWithUnlikeText:p.likeCountText,toggledText:q==="LIKE"?p.likeCountText:p.likeCountWithLikeText,defaultNavigationEndpoint:Gx8(p,"LIKE"),defaultServiceEndpoint:PHu(p,"LIKE"),toggledServiceEndpoint:PHu(p,"INDIFFERENT"),defaultTooltip:_.JB(p.likeCountTooltipText),toggledTooltip:_.JB(p.likeCountTooltipText),
targetId:p.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:q==="DISLIKE",isDisabled:!p.likesAllowed,defaultIcon:{iconType:l},defaultText:q==="DISLIKE"?p.dislikeCountWithUndislikeText:p.dislikeCountText,toggledText:q==="DISLIKE"?p.dislikeCountText:p.dislikeCountWithDislikeText,defaultNavigationEndpoint:Gx8(p,"DISLIKE"),defaultServiceEndpoint:PHu(p,"DISLIKE"),toggledServiceEndpoint:PHu(p,"INDIFFERENT"),defaultTooltip:_.JB(p.dislikeCountTooltipText),
toggledTooltip:_.JB(p.dislikeCountTooltipText)}};
Gx8=function(p,y){if(y==="LIKE")return p.likeCommand;if(y==="DISLIKE")return p.dislikeNavigationEndpoint};
PHu=function(p,y){var l;return(l=p.serviceEndpoints)==null?void 0:l.find(function(q){var t;return((t=_.G(q,_.yG))==null?void 0:t.status)===y})};
_.VfR=function(p,y,l){return window.spf&&!_.n("web_disable_spfjs_client")?Z1u(p,y,l):Mfa(p,y)};
Z1u=function(p,y,l){var q=null,t=(new _.Ps(function(E,e){var C={};if(y){C.method=y.method;var u=y.postParams||{};KOt(p,y)&&(u[_.OY("XSRF_FIELD_NAME")]=_.OY("XSRF_TOKEN"));C.postData=_.MM(u);y.type&&(C.type=y.type);u=y.headers}C.headers=AO5(p,u);_.n("debug_forward_web_query_parameters")&&(p=_.gwj(p,window.location.search));C.experimental_headers=C.headers;C.onError=function(a){a.err&&a.xhr&&(a.err.params={url:a.xhr.responseURL,response:a.xhr.responseText.substr(0,64)});e(a.err)};
C.onPartDone=function(a){l&&l.call(null,a.part)};
C.onDone=function(a){var m=gNm(a.response,"xsrf_token");hJ(window.location.href,p)&&m&&_.dT("XSRF_TOKEN",m);if(m=gNm(a.response,"service_worker_killswitch"))_.dT("SERVICE_WORKER_KILLSWITCH",m),hRu();E(a.response)};
q=spf.request(p,C)})).then(Qhc);
t.thenCatch(function(E){var e=E instanceof _.lW,C=E&&E.hasOwnProperty("params")&&E.params.response?E.params.response:"";E instanceof Error&&(C?e?WmL(E):C===')]}\'\n{"reload":"now"}'?WmL(E):(KQ6(E,p,C),w1L(E,C)?_.vs(E):_.Bs(E)):WmL(E));q&&q.abort()});
return t};
Qhc=function(p){if(p.type==="multipart"){var y=p.timing;p=p.parts.reduce(function(l,q){Object.assign(l,q);return l},{});
p.timing=p.timing||{};Object.assign(p.timing,y);p.type="reduced"}return p};
Mfa=function(p,y){y=y===void 0?{}:y;var l=null,q=new _.Ps(function(t,E){y.onFinish=function(e){if(e.readyState===XMLHttpRequest.DONE)if(e.status===200){if(e.responseType!=="json"){var C=e.response;C.substring(0,5)===")]}'\n"&&(C=C.substring(5));try{var u=JSON.parse(C)}catch(a){u=a}}else u=e.response;u instanceof Error?E(u):(C=gNm(u,"xsrf_token"),hJ(window.location.href,p)&&C&&_.dT("XSRF_TOKEN",C),e=e.responseURL,window.performance&&window.performance.getEntriesByName?(C=window.performance.getEntriesByName(e).pop())?
e={responseStart:(0,_.uM)()-(C.responseEnd-C.responseStart)}:(Math.random()<.01&&(C=Error("bi"),C.params=e,_.vs(C)),e={responseStart:-1}):e={responseStart:0},u.timing=u.timing||{},Object.assign(u.timing,e),t(u))}else E(Error("ai`"+e.status))};
(l=_.Z3(p,y))||E(Error("ai`"+l.status))});
q.thenCatch(function(t){t instanceof Error&&(KQ6(t,p),w1L(t)&&(t.level="WARNING"))});
_.n("cancel_pending_navs")&&q.thenCatch(function(){l.abort()});
return q};
gNm=function(p,y){var l=p[y],q=p.parts;p.type==="multipart"&&q&&(l=(p=q.find(function(t){return y in t}))&&p[y]);
return l};
KQ6=function(p,y,l){var q=p.message||"";y={original:q,url:y};if(l)if(q=q.match(/position:?\s*(\d+)/)){q=q&&Number(q[1])?Number(q[1]):0;var t=Math.max(q-25,0);y.position=q;y.response=l.substring(t,q+25)}else y.response=l.substring(0,50);_.X$(p,y);try{p.message="JSON parse error"}catch(E){}};
w1L=function(p,y){p=p.message||"";p=!!(p.indexOf("<")>=0||p.indexOf("end of ")>=0||p.indexOf("Unterminated string")>=0||p.indexOf("Unexpected EOF"));if(!p&&y)for(var l=y.length,q=!1,t=0;t<l;t++)if(q&&y[t]==="\\")t++;else if(y[t]==='"')q=!q;else if(y[t]==="<"&&!q){p=!0;break}return p};
i1R=function(){return document.documentElement.hasAttribute("dark")};
_.rDt=function(p,y){if(p!=="GFEEDBACK"&&p!=="GUIDED_HELP")_.zi(Error("ci`"+p));else{var l=_.WC().resolve(_.RK(_.mm));if(l&&(l=l.getCurrentPage())&&l.getServiceTrackingParams&&(l=l.getServiceTrackingParams()))for(var q=0,t;t=l[q++];)if(t.service===p){if(p=t.params)for(l=0;q=p[l++];)y[q.key]=q.value;break}}};
_.SDL=function(p){var y=_.$o();y&&(y=y.getPlayer())&&(y.pauseVideo(),p.playback_id=y.getVideoData().cpn,p.eid=y.getVideoData().eventId,Object.assign(p,y.getFeedbackProductData()))};
FQl=function(){var p={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.OY("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(p.enableAnonymousFeedback=!0);_.OY("SESSION_INDEX")&&(p.authuser=String(_.OY("SESSION_INDEX")));_.n("enable_pageid_for_feedback")&&_.OY("DELEGATED_SESSION_ID")&&(p.pageId=String(_.OY("DELEGATED_SESSION_ID")));return p};
_.qR=function(p){_.n("enable_ypc_spinners")&&_.$w(p,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},p])};
_.sP=function(p){_.n("enable_ypc_spinners")&&_.$w(p,"yt-close-popup-action",["yt-loading-renderer"])};
LQ6=function(p){return new Promise(function(y,l){_.lp({verifyCommand:{recaptchaToken:p.recaptchaResponse}},{commandController:{onSuccess:function(q,t){t||l("ChallengeService did not return a response.");var E;y({challengeCompleted:(E=t.verified)!=null?E:!1})},
onServerError:function(q,t){l(t)}}})})};
kxo=function(p,y,l,q){y({recaptchaResponse:q}).then(function(t){t.challengeCompleted?_.ws()?(l(3),_.WC().resolve(_.aK).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:p}})):l(2):l(4)},function(){l(4)})};
Dj6=function(p,y,l){_.zc(_.bz(NA6,_.OY("HL")),function(){var q;(q=window.grecaptcha)==null||q.ready(function(){var t=window.grecaptcha;t?(l(t.render(p,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:kxo.bind(null,p,LQ6,y)})),y(1)):y(4)})})};
H1g=function(p,y){return function(){switch(y()){case 0:return p().captchaLoadingMessage;case 1:return p().challengeReason;case 3:return p().captchaSuccessfulMessage;case 2:return p().captchaCookieSetFailureMessage;case 4:return p().captchaFailedMessage;default:return p().challengeReason}}()};
_.t2=function(){if(!TAt){var p=document.querySelector("#player.skeleton");p&&(_.Qy(p),TAt=!0)}};
_.BAj=function(){return xju=h85()};
X1a=function(){return _.h(function(p){return fN6!==void 0?p.return():p.yield(vN8(),0)})};
vN8=function(){return _.h(function(p){if(p.nextAddress==1)return p.yield(u08(),2);xju=p.yieldResult;fN6=_.TR.addLowPriorityJob(vN8,5E3);_.rR(p)})};
INL=function(p){var y=y===void 0?djm:y;var l,q,t=(l=p.responseContext)==null?void 0:(q=l.mainAppWebResponseContext)==null?void 0:q.trackingParam;if(!t){y.increment("MISSING");var E,e,C,u,a,m;_.vs(new _.SM("282054944_a",{bFt:!!((E=p.responseContext)==null?0:(e=E.mainAppWebResponseContext)==null?0:e.loggedOut),tgj:((C=p.responseContext)==null?void 0:C.mainAppWebResponseContext)===void 0,v5l:p.responseContext===void 0,cp:(u=p.playabilityStatus)==null?void 0:u.contextParams,oxj:(((a=p.streamingData)==
null?void 0:a.formats)||[]).length>0,n9Z:(((m=p.streamingData)==null?void 0:m.adaptiveFormats)||[]).length>0,os:!!p.offlineState,cotn:p.cotn}));return 2}l="";try{l=O1R(t)}catch(P){return y.increment("C_ERROR"),_.Bs(P),2}try{var U=_.oNa(l);var b=zt_(U)}catch(P){return y.increment("P_ERROR"),_.Bs(P),2}b=_.u4(b,YDt,1,_.RY());t=[];b=_.c(b);for(U=b.next();!U.done;U=b.next())q=U.value,U=q.getPath(),l=(0,_.Ts.getValueByKeys)(p,U.split(".")),l=String(l===void 0||l===null?"":l),q=q.getValue()||"",E=/[+\-\/_]/g,
l.replace(E,"")!==q.replace(E,"")&&(y.increment("MISMATCH"),_.n("ab_mis_log_err")&&(l=new _.SM("282054944_p",{xjt:U,g:String(l),e:String(q)}),_.Bs(l)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(U)||(U.match(/enforcementMessageViewModel/i)?t.push(3):t.push(2)));if(t.length>0)return Math.max.apply(Math,_.xq(t));y.increment("SUCCESS");return 1};
lMj=function(p){var y=new EP;if(p.interpreterJavascript){var l=_.Jxl(p.interpreterJavascript);l=OO8(l).toString();var q=new pgg;_.Fq(q,6,l);_.gu(y,1,q,BU)}else p.interpreterUrl&&(l=_.xQ(p.interpreterUrl),l=_.LO(l).toString(),q=new _.ydl,_.Fq(q,4,l),_.gu(y,2,q,BU));p.interpreterHash&&_.J2(y,3,p.interpreterHash,BU);p.program&&_.J2(y,4,p.program,BU);p.globalName&&_.J2(y,5,p.globalName,BU);p.clientExperimentsStateBlob&&_.J2(y,7,p.clientExperimentsStateBlob,BU);return y};
c3=function(p){var y={};p=_.c(p.split("&"));for(var l=p.next();!l.done;l=p.next())l=l.value.split("="),l.length===2&&(y[l[0]]=l[1]);return y};
qqt=function(p){return Number(p.t)||7200};
UVg=function(){if(_.n("bg_st_hr"))return"havuokmhhs-0";var p,y=((p=performance)==null?void 0:p.timeOrigin)||0;return"havuokmhhs-"+Math.floor(y)};
s_6=function(){return new Promise(function(p){var y=window;y.ntpevasrs!==void 0?p(new eP(y.ntpevasrs)):(y.ntpqfbel===void 0&&(y.ntpqfbel=[]),y.ntpqfbel.push(function(l){p(new eP(l))}))})};
tAg=function(p){var y=p.fCk.bind(p);_.e0("yt.aba.att",y);p=p.cMf.bind(p);_.e0("yt.aba.att2",p)};
Jdl=function(p){switch(_.AJ(p.input)){case _.hB(EM5):var y={};return y.encryptedVideoId=p.innerTubeRequest.externalVideoId,y}return{}};
hXc=function(p){switch(_.AJ(p.input)){case _.hB(EM5):if(_.n("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.hB(cd_):if(_.n("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.hB(Cp):if(_.n("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&p.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.hB(eXt):var y,l;if(_.n("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((l=_.G((y=p.config)==null?void 0:y.command,VGo))==null?0:l.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.u4l=function(p){var y;if(p.playlistVideoRenderer&&((y=p.playlistVideoRenderer)==null?0:y.engagementBar))return Crl(p.playlistVideoRenderer.engagementBar);if(_.G(p,uW)){var l;if(p=(l=_.G(p,uW))==null?void 0:l.engagementBar)return Crl(p)}return""};
Crl=function(p){if(!p)return"";p=_.G(p,_.RXm);if(p==null||!p.actions)return"";p=_.c(p.actions);for(p=p.next();!p.done;p=p.next()){p=_.G(p.value,_.Woo);var y=void 0;if((y=p)==null||!y.itemId)break;return p.itemId}return""};
_.aMj=function(p){var y;if(p.playlistVideoRenderer&&((y=p.playlistVideoRenderer)==null?0:y.videoId))return p.playlistVideoRenderer.videoId;if(_.G(p,uW)){var l,q;if(p=(l=_.G(p,uW))==null?void 0:(q=l.playlistItemData)==null?void 0:q.videoId)return p}return""};
_.mq6=function(p){var y;if(p.playlistVideoRenderer&&((y=p.playlistVideoRenderer)==null?0:y.voteCount))return p.playlistVideoRenderer.voteCount;if(_.G(p,uW)){var l,q;if(p=(l=_.G(p,uW))==null?void 0:(q=l.playlistItemData)==null?void 0:q.voteCount)return p}return 0};
_.RA=function(p,y){return _.Ae(p.entities,"flowStateEntity",y)};
$qj=function(p,y,l,q){var t=void 0;p=_.c(p[y.iconName]||[]);for(var E=p.next();!E.done;E=p.next()){E=E.value;var e=y.iconSize;var C=y.iconStyle;e=!e||e===E[2];var u=UqR[E[0]];q&&q!==E[1]||!e||C&&C!==u?C=!1:t?(C=UqR[E[0]],C=!!y.iconStyle||C==="youtube_outline",e=t.version<=E[1],C=(!!y.iconSize||E[2]===24)&&C&&e):C=!0;C&&(t={name:y.iconName,style:UqR[E[0]],size:E[2],version:E[1],allowMirroring:!!E[3],url:l(y.iconName,E)})}return t};
j_j=function(p,y,l,q){return p+(""+UqR[l[0]]+((q===void 0?0:q)?"_experimental":"")+"/"+y+"/v"+l[1]+"/")+(l[2]+"px.svg")};
bNj=function(p){return _.OY("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"?"bookmark":p};
nMc=function(p,y){return j_j("https://fonts.gstatic.com/s/i/",p,y)};
GVa=function(p,y){return j_j("https://fonts.gstatic.com/s/i/",p,y,!0)};
PrR=function(p,y){return j_j("https://www.gstatic.com/youtube/img/icons/web/",p,y)};
ZNj=function(p){var y=p.enabled;var l=p.itemPlaybackModel;var q=p.thumbnailElRef;var t=p.containerElRef;var E=p.options;var e;_.NA(function(){var C=t==null?void 0:t.value;var u,a=(u=q())==null?void 0:u.value;u=l();var m=E();if(y&&u&&C&&a&&(m==null?0:m.thumbnail)){var U={data:u,hostElement:C},b,P,Z=_.n("web_explore_hub_on_hover")||_.n("web_client_explore_hub_on_hover")?[].concat(_.xq((b=m.thumbnailOverlays)!=null?b:[]),_.xq((P=u.overlays)!=null?P:[])):m.thumbnailOverlays||[],K,F;C={mediaRenderer:U,
lockupElement:C,thumbnailElement:a,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.yM((K=u.inlinePlayerData)==null?void 0:K.onVisible),navigationEndpoint:_.yM((F=u.inlinePlayerData)==null?void 0:F.onSelect),thumbnail:m.thumbnail,thumbnailOverlays:Z,accessibilityText:m.accessibilityText||""},thumbnailSize:m.thumbnailSize,enableRounding:m.enableRounding}}}else C=void 0;if(K=C){var L;(L=e)==null||W3(L);e=qG(K);var T,O;((T=l())==null?0:(O=T.inlinePlayerData)==null?0:O.forceImpAutoplay)&&
Adj(e)}},"B33dEc");
_.TP(function(){var C;(C=e)==null||W3(C)})};
MA5=function(p){p=atob(p);for(var y=[],l=0;l<p.length;l++)y.push(p.charCodeAt(l));return new Blob([new Uint8Array(y)],{type:"image/png"})};
gM_=function(p,y,l,q){q=q===void 0?"INSERTION_POSITION_UNSPECIFIED":q;return p({targetId:y},function(t){var E,e=(E=t.contents)!=null?E:[];E=l!=null?l:[];var C=VAL(e);switch(q){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},t,{contents:[].concat(_.xq(e.slice(0,C)),_.xq(E),_.xq(e.slice(C+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},t,{contents:[].concat(_.xq(E),_.xq(e))});case "INSERTION_POSITION_LAST":return Object.assign({},t,{contents:[].concat(_.xq(e),_.xq(E))});
default:return t}})};
Koj=function(p,y,l,q,t){t=t===void 0?"RELATIVE_INSERTION_POSITION_AFTER":t;return p({targetId:y},function(E){var e,C=(e=E.contents)!=null?e:[];e=Q_t(C,l);if(e<0)return E;e=t==="RELATIVE_INSERTION_POSITION_BEFORE"?e:e+1;return Object.assign({},E,{contents:[].concat(_.xq(C.slice(0,e)),_.xq(q),_.xq(C.slice(e)))})})};
VAL=function(p){var y=p.findIndex(function(l){return _.G(l,_.aA)});
return y>=0?y:p.length};
Q_t=function(p,y){return p.findIndex(function(l){a:{l=_.c(Object.values(l));for(var q=l.next();!q.done;q=l.next())if((q=q.value)&&q.targetId){l=q.targetId;break a}l=""}return l===y})};
iN_=function(p,y,l){return p({targetId:y},function(q){var t,E=(t=q.contents)!=null?t:[];return Object.assign({},q,{contents:wg5(E,l)})})};
wg5=function(p,y){return p.filter(function(l){var q=y.includes;a:{l=_.c(Object.values(l));for(var t=l.next();!t.done;t=l.next())if((t=t.value)&&t.targetId){l=t.targetId;break a}l=""}return!q.call(y,l||"")})};
_.rdm=function(p,y){return{engagementPanelSectionListRenderer:{panelIdentifier:p,identifier:y,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
_.Fo_=function(p){var y,l=(y=p.getOption("captions","tracklist",{includeAsr:!0}))!=null?y:[];return l=Sq5(l,p)};
LoL=function(p){return p.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
Sq5=function(p,y){y=LoL(y);if(y==null||!y.length)return p;var l=y.filter(function(e){return e});
y=p.filter(function(e){return e.languageCode.startsWith("en")});
l=_.c(l);for(var q=l.next();!q.done;q=l.next())if(q=q.value,y.length){var t=y[0],E=Object.assign({},t);t.languageCode!==q.languageCode&&(E.displayName=t.languageName+" >> "+q.languageName,E.translationLanguage=q,p.push(E))}return p};
kVo=function(p,y,l){p=_.Fo_(p);if(p.length)return l?p.find(function(q){if(typeof(q==null?void 0:q.translationLanguage)==="object"){var t;return((t=q.translationLanguage)==null?void 0:t.languageCode)===y}return!1}):p==null?void 0:p.find(function(q){return q.languageCode===y})};
NQR=function(p){return p.getOption("captions","tracklist",{includeAsr:!0})};
Dqg=function(p){return p.getOption("captions","tracklist",{includeAsr:!0})};
HNt=function(p){var y=Dqg(p);if(y==null?0:y.length)return y;p.loadModule("captions");return Dqg(p)};
TQ5=function(p){var y=p.getOption("captions","track");if(y)return y;p.loadModule("captions");return p.getOption("captions","track")};
BQc=function(p){var y=HNt(p);if(y!=null&&y.length){var l=TQ5(p),q;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.g$("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(l==null?0:l.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.xq(y.map(function(t){return{listItemViewModel:{title:{content:t.displayName},
isSelected:t.displayName===(l==null?void 0:l.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:t.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.g$("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!l.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!l.translationLanguage&&{selectionText:{content:(l==null?void 0:(q=l.translationLanguage)==null?void 0:q.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[xqR(p)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
xqR=function(p){var y=LoL(p);if(y==null||!y.length)throw Error("Ai");var l=TQ5(p);p=y.filter(function(q){return!q.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.xq(p.map(function(q){var t;return{listItemViewModel:{title:{content:q.languageName},isSelected:q.languageName===(l==null?void 0:(t=l.translationLanguage)==null?void 0:t.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:q.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
dq8=function(p){return new Promise(function(y,l){if(p===void 0)_.Bs(Error("Ei"),"ERROR"),l(Error("Ei"));else{l=new _.fMt;var q=_.vML();l=l.init();var t=_.Xgo(_.OY("YPC_MB_URL"),!0);Promise.all([l,t]).then(function(){var E=payments.business.integration.ClientTokenFactory.createClientToken(p,q);y(E)})}})};
zXo=function(p,y,l,q,t,E,e){var C=_.hs();l=l.replace(/-/g,"+").replace(/_/g,"/");var u=_.w$().get("hl"),a=_.m8(_.Es),m=y==null?void 0:y.element;m&&_.qR(m);ONj(y,!0);_.oMo(a,l,C.resolve,function(){m&&_.sP(m)},function(U){m&&_.sP(m);
C.reject(U)},u,q?function(U){q&&_.eo(p,q,{backend_analytics:U})}:void 0,C.resolve,t,E,e);
return C.promise};
ONj=function(p,y){!(p=p==null?void 0:p.element)||p.tagName!=="YT-BUTTON-RENDERER"&&p.tagName!=="YTD-BUTTON-RENDERER"||(p.disabled=y)};
Yqu=function(){var p=_.g$("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.ar(p),actionButton:{buttonRenderer:RYc()}}},popupType:"TOAST"}};
IM6=function(){var p=_.g$("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.ar(p),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
pXm=function(p){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:p}]}}};
UP=function(p,y,l,q){var t;return _.h(function(E){if(E.nextAddress==1)return _.Ve(E,2),E.yield(p,4);if(E.nextAddress!=2)return(t=_.FT(y.getState().entities).length>0)?E.return({title:_.ar(_.g$("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.ar(_.g$("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:uBR()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
E.return(Wzl(l,q));_.i6(E);return E.return(Wzl(l,q))})};
yAt=function(p,y){return y?y==="PPSV"||xvj(p,y):!1};
lit=function(p){p.responseContext||(p.responseContext={});p.responseContext.maxAgeSeconds=0;return p};
jP=function(p){var y;return _.h(function(l){return l.nextAddress==1?l.yield(qmu(p,"service:topbar:fallback"),2):(y=l.yieldResult)&&_.$z(y)?l.return(lit(_.$z(y))):l.return()})};
sEt=function(p){var y;return _.h(function(l){return l.nextAddress==1?l.yield(qmu(p,"service:downloads_settings:fallback"),2):(y=l.yieldResult)&&_.$z(y)?l.return(y):l.return()})};
qmu=function(p,y){var l;return _.h(function(q){if(q.nextAddress==1)return p?q.yield(p.get(y),2):q.return();l=q.yieldResult;return!l||!_.$z(l)||!isNaN(Number(l.data.expireTimestampMs))&&l.isExpired()?q.return():q.return(l)})};
tD5=function(p){var y=_.WC().resolve(bW).getState().entities;return p.playlistId?yAt(y,p.playlistId):!1};
ETu=function(p,y){var l;if(y==null?0:(l=y.requestTemplate)==null?0:l.panelId)p.panelId=y.requestTemplate.panelId;var q;if(y==null?0:(q=y.requestTemplate)==null?0:q.params)p.params=y.requestTemplate.params};
cAj=function(){if(JAc)return JAc();var p=!_.n("idb_response_store_auth_killswitch"),y={};JAc=CK("yt-it-response-store",{objectStores:(y.ResponseStore={addedAtVersion:1},y),shared:!p,upgrade:function(l,q){q(1)&&(l=O1(l,"ResponseStore",{keyPath:["key","clientName"]}),o7(l,"byExpiration","expireTimestampMs"),o7(l,"byInterface","clientName"))},
version:1});return JAc()};
e1g=function(p){return _.lM(cAj(),p)};
CU6=function(p,y){var l;return _.h(function(q){return q.nextAddress==1?q.yield(_.hk(),2):(l=q.yieldResult)?q.return(new h1_(p,y,l)):q.return()})};
usL=function(p){var y=Object.keys(p)[0];if(y)return p.screenExit&&(y=y+";"+p.screenExit.screen),y};
R1t=function(p){var y=new Map;p=_.c(p);for(var l=p.next();!l.done;l=p.next())l=l.value,l!=null&&(y.has(l.taskType)||y.set(l.taskType,[]),y.get(l.taskType).push(l));return y};
W7j=function(p){return!isNaN(p)&&p>0};
ai5=function(p){p=[].concat(_.xq(p)).sort(function(l,q){return l-q});
var y=Math.floor(p.length/2);return p.length%2?p[y]:(p[y-1]+p[y])/2};
$JR=function(p,y){p=p===void 0?IRt:p;y=y===void 0?{}:y;_.e0("yt.logging.errors.log",_.Bs);zxL();mJl(sWl(),y);window.onerror=p;UJa=Y5t;window.addEventListener("unhandledrejection",function(l){if(l.reason instanceof Error){var q=l.reason;_.X$(q,{source:"unhandledrejection"});q.name==="AbortError"&&(q.level="WARNING")}Y5t(l.reason);l.preventDefault()})};
_.jE8=function(p){return p.a11y.ephemeralAction||null};
_.b_g=function(p){var y,l,q,t,E,e,C,u,a,m,U,b,P,Z,K,F,L,T,O,f,v,z,sc,hR,Wt,AR,Qu,jj,x6,L8,Y6,AZ,cU,Xo,U$,WU,VQ,b9,kx,JR;return _.h(function(s$){if(s$.nextAddress==1)return s$.yield(_.KW(p,{mode:"readonly",enableRetries:!0},function(PU){return wN(PU,"playbackData").then(function(Uu){var jB=Uu.map(function(CU){return CU.transfer}).filter(function(CU){return!!CU}),xx=Uu.map(function(CU){return CU.offlineVideoPolicy}).filter(function(CU){return!!CU}),qN=Uu.filter(function(CU){return!!CU.key}).map(function(CU){return _.PV(_.ba(CU.key).entityId,
"downloadStatusEntity")});
jB=wN(PU,"transfer",jB);xx=wN(PU,"offlineVideoPolicy",xx);qN=wN(PU,"downloadStatusEntity",qN);var Iv=jB.then(function(CU){CU=CU.reduce(function(ov,u9){(u9==null?0:u9.offlineVideoStreams)&&ov.push.apply(ov,_.xq(u9.offlineVideoStreams));return ov},[]).filter(function(ov){return!!ov});
return wN(PU,"offlineVideoStreams",CU)});
return oK.all([jB,xx,Iv,qN]).then(function(CU){var ov=_.c(CU);CU=ov.next().value;var u9=ov.next().value;var ZV=ov.next().value;ov=ov.next().value;return[Uu,CU,u9,ZV,ov]})})}),2);
if(s$.nextAddress!=3)return y=s$.yieldResult,s$.yield(_.KW(p,{mode:"readonly",enableRetries:!0},function(PU){return wN(PU,"mainDownloadsListEntity").then(function(Uu){var jB,xx;return(xx=(jB=Uu[0])==null?void 0:jB.downloads)!=null?xx:[]})}),3);
l=s$.yieldResult;q=_.c(y);t=q.next().value;E=q.next().value;e=q.next().value;C=q.next().value;u=q.next().value;a=t;m=E;U=e;b=C;P=u;Z={};K={};F={};L={};T={};O=[];f=_.c(m);for(v=f.next();!v.done;v=f.next())(z=v.value)&&(Z[z.key]=z);sc=_.c(U);for(hR=sc.next();!hR.done;hR=sc.next())(Wt=hR.value)&&(K[Wt.key]=Wt);AR=_.c(P);for(Qu=AR.next();!Qu.done;Qu=AR.next())(jj=Qu.value)&&(F[jj.key]=jj);x6=_.c(b);for(L8=x6.next();!L8.done;L8=x6.next())(Y6=L8.value)&&(L[Y6.key]=Y6);AZ=_.c(l);for(cU=AZ.next();!cU.done;cU=
AZ.next())Xo=cU.value,U$=void 0,T[(U$=Xo.videoItem)!=null?U$:""]=!0,Xo.videoItem&&(VQ=WU=void 0,b9=(VQ=(WU=_.ba(Xo.videoItem))==null?void 0:WU.entityId)!=null?VQ:"",O.push({externalVideoId:b9}));kx=a.filter(function(PU){if(!PU||!PU.key||!PU.offlineVideoPolicy)return!1;PU=_.ba(PU.key).entityId;PU=_.PV(PU,"downloadStatusEntity");var Uu;return!(PU&&((Uu=F[PU])==null?void 0:Uu.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
JR=kx.map(function(PU){var Uu=Z[PU.transfer],jB=[];if(Uu==null?0:Uu.offlineVideoStreams)for(var xx=_.c(Uu.offlineVideoStreams),qN=xx.next();!qN.done;qN=xx.next())(qN=L[qN.value])&&jB.push(qN);xx=K[PU.offlineVideoPolicy];qN=T;var Iv=PU==null?void 0:PU.playerResponseTimestamp,CU=_.ba(xx.key).entityId;PU=_.PV(CU,"mainVideoEntity");if(xx.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var ov="OFFLINE_VIDEO_STATE_DISABLED";xx.expirationTimestamp&&Number(xx.expirationTimestamp)<Date.now()/1E3&&(ov="OFFLINE_VIDEO_STATE_EXPIRED")}else if(xx.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")ov="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Uu==null?void 0:Uu.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":ov="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":ov="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":ov="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":ov="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":ov="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":ov="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:ov="OFFLINE_VIDEO_STATE_UNKNOWN"}if(ov==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Uu==null?void 0:Uu.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":ov="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":ov="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":ov=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}CU={id:CU,videoState:ov};if(Uu==null?0:Uu.cotn)CU.cotn=Uu.cotn;if(Uu==null?0:Uu.maximumDownloadQuality)CU.selectedVideoQuality=Uu==null?void 0:Uu.maximumDownloadQuality;if(Uu==null?0:Uu.lastProgressTimeMs)CU.lastProgressTimeMs=Uu.lastProgressTimeMs;Iv&&(CU.playerResponseSavedTimeMs=String(Number(Iv)*1E3));Uu=String;Iv=0;jB=_.c(jB);for(ov=jB.next();!ov.done;ov=jB.next())if(ov=ov.value,ov.streamsProgress){ov=_.c(ov.streamsProgress);for(var u9=ov.next();!u9.done;u9=
ov.next()){var ZV=void 0;Iv+=Number((ZV=u9.value.numBytesDownloaded)!=null?ZV:0)}}CU.downloadedBytes=Uu(Iv);CU.selectedOfflineMode=qN[PU]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";xx.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(CU.offlinePlaybackDisabledReason=xx.offlinePlaybackDisabledReason);return CU});
return s$.return({offlineVideos:JR,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:O}}})})};
nTc=function(){var p;return _.h(function(y){return y.nextAddress==1?y.yield(_.Vj(),2):(p=y.yieldResult)?y.return(_.b_g(p)):y.return({state:"PES Unavailable"})})};
AAL=function(){var p,y,l,q;return _.h(function(t){if(t.nextAddress==1)return t.yield(_.Vj(),2);if(t.nextAddress!=3)return(p=t.yieldResult)?t.yield(G1L(p),3):t.return({state:"PES Unavailable"});y=t.yieldResult;l={};q=y.reduce(function(E,e){E[e.key]=e;return E},l);
return t.return(PUR(q))})};
PUR=function(p){for(var y={},l=[],q=_.c(Object.keys(p)),t=q.next();!t.done;t=q.next()){var E=t.value;t=p[E];var e=void 0;if(((e=t)==null?void 0:e.entityType)==="mainVideoEntity"){delete p[E];var C=t.data;t={};if(C){var u=void 0;e=(u=C.videoId)!=null?u:"vid-"+E;E=p;t.video=C;delete t.video.formattedDescription;delete t.video.thumbnail;C.owner&&(u=E[C.owner],u==null?0:u.data)&&(delete E[u.key],t.video.owner=u.data,delete t.video.owner.avatar);if(C=C.downloadState)if(u=E[C],u==null?0:u.data)if(delete E[C],
C=u.data.playbackData)if(u=E[C],u!=null&&u.data){delete E[C];C=u.data;delete C.playerResponseJson;t.playbackData=C;if(C.transfer&&(u=E[C.transfer],u==null?0:u.data)){delete E[u.key];var a=u.data;t.transfer=a;u=[];a=_.c(a.offlineVideoStreams||[]);for(var m=a.next();!m.done;m=a.next())if(m=E[m.value])delete E[m.key],u.push(m.data);u&&(t.streams=u)}(C=C.offlineVideoPolicy)&&(C=E[C])&&C.data&&(delete E[C.key],t.offlineVideoPolicy=C.data)}y[e]=t}}else t&&t.entityType==="offlineOrchestrationActionWrapperEntity"&&
t.data&&(delete p[t.key],e=t.data,E=void 0,l.push({id:e.rootActionId,type:((E=e.actionProto)==null?void 0:E.actionType)||"",entity:t}))}y.wrapperEntities=l;Object.keys(p).length>0&&(y.unknownKeys=p);return y};
Z_g=function(){var p,y,l,q,t,E,e,C,u;return _.h(function(a){if(a.nextAddress==1)return p=!!(new _.XL("")).expiringStorage_,q=!!((y=_.l_.crypto)==null?0:(l=y.subtle)==null?0:l.importKey),t=!!_.l_.BroadcastChannel,E=!!_.l_.navigator.locks,a.yield(KN8(),2);e=a.yieldResult;C=p&&q&&t&&E&&e;u={isSupported:C};if(C)return a.return(u);u.missingBrowserFeatures=[];e||u.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");p||u.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
q||u.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");t||u.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");E||u.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return a.return(u)})};
MDu=function(){var p;return!((p=np?np:null)==null||!p.window)};
_.gTg=function(p){if(_.K8()&&_.C_t("Chromium")>=120){var y=_.VD5().mediaSession;try{y.setActionHandler("enterpictureinpicture",function(){p()})}catch(l){}}};
QEc=function(p){for(var y=[],l=_.c(document.styleSheets),q=l.next(),t={};!q.done;t={node$jscomp$727:void 0},q=l.next())t.node$jscomp$727=q.value.ownerNode,t.node$jscomp$727&&(t.node$jscomp$727 instanceof HTMLStyleElement||t.node$jscomp$727 instanceof HTMLLinkElement)&&y.push(new Promise(function(E){return function(e){var C=E.node$jscomp$727.cloneNode(!0);C.onload=function(){e()};
C.onerror=function(){_.vs(Error("gj"));e()};
p.document.head.appendChild(C)}}(t)));
return Promise.all(y)};
DJc=function(p){var y=[_.$I(K7a),_.$I(wX5),_.$I(i_l)];rAl(window.document.documentElement,p.document.documentElement,[_.$I(Sm5),_.$I(F7a),_.$I(L7R),_.$I(k1R),_.$I(Nbl)]);rAl(window.document.body,p.document.body,y)};
rAl=function(p,y,l){p=_.c(p.attributes);for(var q=p.next();!q.done;q=p.next())if(q=q.value)try{_.CC(l,y,q.name,q.value)}catch(t){}};
Tba=function(p,y){p=new _.GK(p.document.documentElement);p.start(H_j,y);return p};
xJl=function(p){var y=p.document.documentElement;y.addEventListener("click",function(l){Lkg(y,l)});
y.addEventListener("touchstart",function(l){TKc(l)});
y.addEventListener("mousedown",function(l){TKc(l)})};
fi_=function(p,y,l,q){q=q===void 0?!1:q;y=new Bbo(y||p,l||p);return{x:p.x+((q===void 0?0:q)?y.lengthX*-1:y.lengthX)*.2,y:p.y+((q===void 0?0:q)?y.lengthY*-1:y.lengthY)*.2}};
vTt=function(p){if(!p)return!1;var y=p.status==="OK"||p.status==="LIVE_STREAM_OFFLINE",l,q,t,E=(t=(l=p.errorScreen)==null?void 0:l.playerLegacyDesktopYpcTrailerRenderer)!=null?t:(q=p.errorScreen)==null?void 0:q.ypcTrailerRenderer;return!!y||!!E};
_.XXo=function(p,y){if(!p)return!1;var l,q=(l=p.errorScreen)==null?void 0:l.playerLegacyDesktopYpcOfferRenderer,t;y=!!(y==null?0:(t=y.playerOverlayRenderer)==null?0:t.gatedActionsOverlayRenderer);return!!vTt(p)||!!q||!!y};
oTu=function(p){return dJj(p,0,"gclid",p.search(O_m))>=0||dJj(p,0,"gad_source",p.search(O_m))>=0};
z18=function(p){var y=[],l=0;return{clear:function(){l=y.length=0},
push:function(q){y[l]=q;l=(l+1)%p},
iterate:function(){return function t(){var E,e,C,u;return _.MR(t,function(a){switch(a.nextAddress){case 1:_.KC(a,2),E=y.length,e=0;case 4:if(!(e<E)){a.jumpTo(2);break}C=l+e;u=_.VG;return a.yield(y[C%E],7);case 7:u(a.yieldResult);e++;a.jumpTo(4);break;case 2:_.Qe(a),_.wR(a,0)}})}()}}};
Iil=function(){var p=Ymg,y=WL.bufferSize;p||(p=[]);p=p.map(dzR);var l=new Set(p),q=z18(y);return{flush:function(){var t=Array.from(q.iterate());q.clear();t=t.map(function(E){return{name:E.name,timestamp:E.startTime,attributes:E.attributes}});
return JSON.stringify(t)},
onSpanStart:function(t){t.name==="event"&&l.has(t.attributes.type)||q.push(t)}}};
pjt=function(){var p=Iil(),y=p.flush;bn6({onSpanStart:p.onSpanStart});eWc.subscribe("handleError",function(l){try{l.params.breadcrumbs=y()}catch(q){_.Bs(q,"WARNING")}})};
y1o=function(p,y,l){var q=p.endTime;if(q==null)throw Error("ij");var t=p.name,E={};q-=p.startTime;var e=p.startTime;E={webTracing:(E[t]=p.attributes,E)};l=_.YZ(Fgl)(t,q,e,E,l,y);if(p.children)for(p=_.c(p.children),t=p.next();!t.done;t=p.next())y1o(t.value,y,l)};
q7l=function(){for(var p={},y=_.c(WL.enabledSpansArray),l=y.next();!l.done;l=y.next())p[l.value]=!0;if(WL.exportToCsi||WL.exportBreadcrumbs)CW={sessionId:y6t()||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:p};WL.exportBreadcrumbs&&pjt();WL.exportToCsi&&bn6(l$j)};
s8m=function(p){return new Promise(function(y){window.setTimeout(y,p)})};
tXj=function(p){var y={bicf:function(E){p.x2e=E},
blc:function(){return p.getLatestChallengeResponse()},
bcr:function(E){p.i0f.push(E)}},l=window;
l.ntpevasrs=y;if(l.ntpqfbel!==void 0)for(var q=_.c(l.ntpqfbel),t=q.next();!t.done;t=q.next())t=t.value,t(y);l.ntpqfbel=void 0};
Est=function(p){return _.h(function(y){if(y.nextAddress==1)return _.Ve(y,2),y.yield(p.w30(),4);if(y.nextAddress!=2)return _.pK(y,0);_.i6(y);_.rR(y)})};
J1t=function(p){var y,l;(y=p.ytcsi)==null||(l=y.tick)==null||l.call(y,"pot_ist")};
c1g=function(p){if(p instanceof Error){var y=_.I4("yt.logging.errors.log");y&&y(p,"WARNING")}};
e98=function(p){try{var y=JSON.parse(p);if(y.bgChallenge)return y}catch(l){}};
Cg8=function(){var p=window,y={networkStatusManagerPromise:_.WC().resolve(new RSg(_.lG)),initialChallengeSli:_.n("wpo_att_sli")?new _.bga("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};p=p===void 0?window:p;var l=p.ytAtR,q;y==null||(q=y.initialChallengeSli)==null||_.gU(q);if(l){if(l=e98(l)){var t;y==null||(t=y.initialChallengeSli)==null||_.QG(t,"SUCCESS");h96(l,y)}p.ytAtR=void 0}else p.ytAtRC=function(E){if(E=e98(E)){var e;y==null||(e=y.initialChallengeSli)==null||
_.QG(e,"SUCCESS");h96(E,y);p.ytAtRC=void 0}}};
W0t=function(){if(uNl)return uNl;try{var p=_.gg("IFRAME");_.l6(p,_.bz(R98));p.sandbox.add("allow-same-origin");p.style.display="none";document.body.appendChild(p);return uNl=p}catch(y){p=new _.SM("Failed to create sandbox iframe"),_.Bs(p)}};
a$a=function(p){var y,l;return(l=p==null?void 0:(y=p.contentWindow)==null?void 0:y.fetch)!=null?l:window.fetch};
mSa=function(p){var y,l;return(l=p==null?void 0:(y=p.contentWindow)==null?void 0:y.JSON.parse)!=null?l:JSON.parse};
USo=function(p){var y,l;return(l=p==null?void 0:(y=p.contentWindow)==null?void 0:y.Request)!=null?l:window.Request};
$Sg=function(p){var y,l;return(l=p==null?void 0:(y=p.contentWindow)==null?void 0:y.TextDecoder)!=null?l:window.TextDecoder};
j86=function(){return function(p,y){_.OY("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[p]=y}};
bDg=function(){return function(p,y){var l={};l[p]=y;p=_.YZ(_.rc6)(l);Object.keys(p).length>0&&_.xw(p)}};
Pg_=function(){if(Gpl()==="hidden")var p="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else Gpl()==="visible"&&(p="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",nsl=null);p&&G$u(p)};
G$u=function(p){if(p==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||p==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(A1t===p)return;A1t=p}var y=9E4+Math.random()*2E3;if(p!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Rd()>y)&&Gpl()==="visible"){y=-1;nsl&&(y=Math.round((0,_.uM)()-nsl));var l=String;var q=_.I4("_fact",window);q=q==null||q==-1?-1:Math.max(Date.now()-q,0);_.TX("foregroundHeartbeat",{firstActivityMs:l(q),clientDocumentNonce:lmj,index:String(ZD5),lastEventDeltaMs:String(y),trigger:p});
_.e0("_fact",-1,window);ZD5++;nsl=(0,_.uM)()}};
_.MXL=function(){try{return!!self.sessionStorage}catch(p){return!1}};
VX6=function(){var p=navigator;return new Promise(function(y,l){var q;(q=p.webkitTemporaryStorage)!=null&&q.queryUsageAndQuota?p.webkitTemporaryStorage.queryUsageAndQuota(function(t,E){y({usage:t,quota:E})},function(t){l(t)}):l(Error("qj"))})};
gsL=function(p,y){var l={errorSeverity:y.errorSeverity.toString(),wizFeatureFlags:Object.entries(y.featureFlags).join("\n")};oSo(y,l);y=y.errorSeverity;y===3?_.Bs(p,"ERROR",void 0,void 0,void 0,l):y===2&&_.Bs(p,"WARNING",void 0,void 0,void 0,l);_.n("cow_if_errors_in_popup")&&y===3&&p.message.indexOf("<If>")!==-1&&window.alert(p.message)};
Q8_=function(p,y){var l=he.get(p)||{layerNode:y};l.layerNode=y;$lu(p,l);p.getScreenLayer=function(){return Kp(l.layerNode)}};
K0m=function(p){var y;p=p.parentNode;for(var l;p&&((y=he.get(p))==null||!y.isRenderer)&&!((l=p.polymerController)!=null?l:p).isRenderer_;)p=p.parentNode||p.host;if(y=p)return he.get(y)};
wj5=function(p){if(p){he.delete(p);var y=_.WC().resolve(hK);Pnt(p,y)}};
r1m=function(p,y,l){if(l===void 0?0:l){if(l=p.getAttribute("client-ve-type"),y.data&&!y.disableReactiveLogging||l)_.fr(function(){iDL(p,_.BQ(y.data))}),_.TP(function(){return void wj5(p)})}else typeof y.data!=="function"&&iDL(p,y.data)};
iDL=function(p,y){S7u++;F05(p,y)&&_.TR.addJob(function(){_.Xp(_.TR,function(){if(F05(p,y)&&p.ownerDocument.documentElement===document.documentElement&&p){var l;if(p.getAttribute("layer")){var q=l=Number(p.getAttribute("layer")),t=he.get(p);t?t.layerNode.layer=q:Q8_(p,new L0R(q));(q=K0m(p))&&(t=he.get(p))!=null&&(t.layerNode.parent=q.layerNode)}else if(l=he.get(p))l=Kp(l.layerNode);else{l=Kp;q=new L0R;if(t=K0m(p))q.parent=t.layerNode;Q8_(p,q);l=l(q)}l!=null||(l=0);q=p.getAttribute("client-ve-type");
t=Number(q);var E=!1;q=!1;var e=he.get(p),C;if((C=e)&&!(C=e[k$l]!==y)&&(C=t)){var u;C=((u=he.get(p))==null?void 0:u.clientVeType)===void 0}C&&(e[k$l]=y,E=q=e.isRenderer=!0);he.has(p)&&(he.get(p).clientVeType=t);p.visualElement&&(q=!0);if(_.n("wiz_next_ld_fix_client_ve_spec")){var a;u=((a=_.G(y==null?void 0:y.rendererContext,_.kg))==null?void 0:a.loggingDirectives)||(y==null?void 0:y.loggingDirectives)}else u=y==null?void 0:y.loggingDirectives;u&&u.clientVeSpec&&(a=N_o(_.Sm(),p),a=_.DSa(_.Ll(),u,a||
void 0,l))&&(p.visualElement=a);!p.visualElement&&t&&E&&(p.veType=t,a=void 0,_.n("wiz_next_client_ve_parent_fix")&&(a=N_o(_.Sm(),p)),a=_.FH(_.Ll(),p,a,l),p.visualElement=a);q&&(a=_.WC().resolve(hK),Vta(p,{data:y,observer:a,layer:l,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
F05=function(p,y){return(y==null?0:y.trackingParams)||(y==null?0:y.loggingDirectives)||_.G(y==null?void 0:y.rendererContext,_.kg)||p.getAttribute("client-ve-type")?!0:!1};
HDo=function(p,y,l){p.componentType!==rq&&l instanceof HTMLElement&&y&&!_.n("cow_logging_in_component_wrapper")&&r1m(l,y,!0)};
Xj_=function(){if(!T_g){T_g=!0;var p=Object.assign({},{enableLazyTsx:_.n("mweb_enable_wiz_lazy_tsx")||_.n("kevlar_enable_wiz_lazy_tsx")||_.n("creator_enable_wiz_lazy_tsx")||xSj,flushRenderEffectsDuringRender:!0},{handleError:gsL,enableComponentStacksInErrorMessages:!1});Object.assign(ub,p);WXo=B_g;f$m();jGt=v4_;mfL=Xpo;_.n("ytwiz_enable_debug_component_props")&&(p=document.body.firstElementChild,window.ng||p.__ngContext__||(p.__ngContext__={},p.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=
vsu))}};
f$m=function(){_.n("cow_logging_in_component_wrapper")?(yto=function(p,y){y instanceof HTMLElement&&r1m(y,p,!0)},qnR=function(){}):(yto=function(){},qnR=HDo)};
dS8=function(p,y,l){y=y===void 0?{}:y;var q,t=(q=_.G(p.commandMetadata,_.ul))==null?void 0:q.url;q=y.form||{};!l||q.element||q.skipDefaultElement||(y.form=y.form||{},y.form.element=l);if(t&&t!=="/service_ajax")return{type:0,command:p,form:y.form};if(_.n("kevlar_service_command_check")){if(_.cN(_.WC().resolve(_.XC),p))return Object.assign({},{type:1,command:p},y)}else{var E;if((E=_.G(p.commandMetadata,_.ul))==null?0:E.apiUrl)return Object.assign({},{type:1,command:p},y)}return{type:2,command:p,form:y.form}};
OD_=function(p){if(p.form){var y=p.form,l=Object.assign({},y);y=y.element;l=(delete l.element,l);if(y)return[_.ny(y,[p.command,l,p.commandController])]}return[]};
osR=function(p){if(p.form){var y=p.form,l=Object.assign({},y);y=y.element;l=(delete l.element,l);y&&_.Gf(y,[p.command],y,l)}};
Y7a=function(p,y,l){var q=new z9o(p,y),t=new wU(p,y,l);p={"/youtubei/v1/browse":new iW(p,y,l),"/youtubei/v1/player":q,"/youtubei/v1/navigation/resolve_url":new rU,"/youtubei/v1/next":t,"/youtubei/v1/guide":new SP(l),"/youtubei/v1/search":new Fy(p,y,l),"/youtubei/v1/reel/reel_item_watch":new Lp(p,y,l),"/youtubei/v1/get_watch":new kz(q,t)};p["/youtubei/v1/account/account_menu"]=new NR;p["/youtubei/v1/notification/get_notification_menu"]=new DQ;return p};
TK=function(){var p=_.WC().resolve(H3);return Promise.resolve(I$c(p,_.l_.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
ph8=function(p){return p&&(p=_.xz(_.hpL(p)))?(new URLSearchParams(p)).get("service"):null};
v3=function(p,y){_.ZR(_.B3(),function(){_.fy("adl")});
_.WC().resolve(y8c)(y);p=p.root;p.loadData&&p.loadData(y);(y==null?0:y.response)?_.QG(PK6(),"SUCCESS"):_.vs(new _.SM("Lifecycle: No response in data",_.o4("IS_SHELL_LOAD"),y?y.page:"NO_PAGE",y?y.endpoint:"NO_ENDPOINT"));p.polymerController.$["page-manager"].lazyPrepareCriticalPages((y==null?void 0:y.page)||"",y.endpoint);var l,q;((q=_.G(y==null?void 0:(l=y.endpoint)==null?void 0:l.commandMetadata,_.ul))==null?0:q.webPageType)&&_.ei().dispatch(_.fp(_.G(y.endpoint.commandMetadata,_.ul).webPageType))};
l0o=function(){var p,y;return _.h(function(l){switch(l.nextAddress){case 1:p=window;if(!p.getDataPromise){l.jumpTo(2);break}_.Ve(l,3);return l.yield(p.getDataPromise(),5);case 5:return l.return(l.yieldResult);case 3:return _.i6(l),l.yield(TK(),6);case 6:return l.return(l.yieldResult);case 2:if(p.getInitialData)return y=p.getInitialData(),p.getInitialData=void 0,l.return(y);throw Error("sj`"+_.l_.location.href);}})};
sng=function(){_.dT("CSI_SERVICE_NAME","youtube");_.xw({loadType:"cold"});_.n("kevlar_log_lcp")&&qSc(function(p){_.fy("lcp",p.value)})};
tpl=function(){var p=_.oY(document.location.href,"enable");p&&p.indexOf("scraper")>-1&&_.dT("ADD_SCRAPER_ATTRIBUTES",!0)};
hgL=function(p){var y=p.root;p=[EOo,J8u,_.Xy];_.n("web_feedback_endpoint_autolog_allowlist_killswitch")&&p.push(_.dU,c8L);egt(function(l,q){return dS8(l,q,y)},function(l){if(!l.command)return[];
var q;((q=l.form)==null?0:q.element)?l.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},l.form,{endpoint:l.command})})):y.handleNavigate(l);return[]},p);
_.WC().addProvider({provide:_.aK,useValue:_.wW.instance})};
ulg=function(){var p={},y={},l;for(l in C$c){var q=_.c(_.nr(C$c[l],void 0,"NBH2te"));p[l]=q.next().value;y[l]=q.next().value}return[p,function(t){for(var E in t){var e=void 0;(e=y[E])==null||e(t[E])}}]};
_.a0c=function(p,y){var l=!1;l=l===void 0?!1:l;var q=_.Ts.getValueByKeys(p,"contents","twoColumnWatchNextResults","results","results","contents"),t=_.Ts.getValueByKeys(p,"contents","twoColumnWatchNextResults","playlist","playlist")||null;l&&(t=null);var E=l=null;if(t)l=_.Ts.getValueByKeys(t,"titleText"),E=_.Ts.unsafeClone(_.Ts.getValueByKeys(t,"longBylineText")),q="",E&&(q=_.JB(E)),E=_.EK(q);else if(q){q=_.c(q);for(var e=q.next();!e.done;e=q.next())e=e.value,e.videoPrimaryInfoRenderer&&(l=_.Ts.getValueByKeys.apply(_.Ts,
[e].concat(_.xq(Rgj)))),e.videoSecondaryInfoRenderer&&(E=_.Ts.getValueByKeys.apply(_.Ts,[e].concat(_.xq(Wac))))}else _.ph(Error("xj"));var C;p.currentVideoEndpoint?C=p.currentVideoEndpoint:_.ph(Error("yj"));var u;y&&(u=_.Ts.getValueByKeys(y,"playabilityStatus","miniplayer","miniplayerRenderer"));p={miniplayerTitle:l,miniplayerSubtitle:E,watchEndpoint:C,playlistData:t};u&&(p.miniplayerRenderer=u);return p};
mhc=function(p){if(p)return _.zp(p)};
_.Uhu=function(){return{isFullscreen:function(){throw Error("zj");},
toggleFullscreen:function(){throw Error("Aj");},
exitFullscreen:function(){throw Error("Bj");},
isAutonavEnabled:function(){throw Error("Cj");},
setAutonavEnabled:function(){throw Error("Dj");},
isAutoplaySetExplicitly:function(){throw Error("Ej");}}};
$ho=function(p){return p.videoDuration?p.numTaps>1&&p.tapDirection!==0?_.OP(p.draggedTime/p.videoDuration,0,1):_.OP((p.playedTime||0)/p.videoDuration,0,1):0};
jnm=function(p){return p.videoDuration?p.isDragging||p.numTaps>1&&p.tapDirection!==0?_.OP(p.draggedTime/p.videoDuration,0,1):_.OP((p.playedTime||0)/p.videoDuration,0,1):0};
nO5=function(p){var y,l,q;return _.G(p==null?void 0:(y=p.markersMap)==null?void 0:(l=y.find(function(t){return t.key==="HEATSEEKER"}))==null?void 0:(q=l.value)==null?void 0:q.heatmap,bLL)};
Gha=function(p){var y,l;return(l=(y=nO5(p))==null?void 0:y.heatMarkersDecorations)!=null?l:[]};
P$g=function(p){if(_.n("mweb_supported_chapters_killswitch"))return!0;var y;return!!(p==null?0:(y=p.markersMap)==null?0:y.find(function(l){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(l.key)}))};
_.A8j=function(p){var y=Object,l=y.assign,q;p={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(q=p==null?void 0:p.getPlayerState())!=null?q:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return l.call(y,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},p,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
ZLm=function(p){return function(y){var l=p(),q,t=(q=l.playerApi)==null?void 0:q.getPlayerState();y&&y!==l.playerState&&(y===1||y===2)&&l.setState({playerState:t})}};
Vpg=function(p){return function(y){var l=p(),q=l.playerApi;q&&(y==null?void 0:y.type)==="newdata"&&(Mpg&&(clearTimeout(Mpg),Mpg=void 0),_.n("web_shorts_use_progress_state_for_gapless")?(y=q==null?void 0:q.getProgressState(y==null?void 0:y.playertype),y=y.seekableEnd-y.seekableStart):y=q==null?void 0:q.getDuration(y==null?void 0:y.playertype),l.setState({playedTime:0,videoDuration:y}))}};
gOg=function(p){return function(y){var l=p(),q=l.playerApi;if(q){var t=q.getPresentingPlayerType();_.n("web_shorts_use_progress_state_for_gapless")?(q=q.getProgressState(t),q=q.seekableEnd-q.seekableStart):q=q.getDuration(t);l.setState({playedTime:y,videoDuration:q})}}};
Ka6=function(p){_.Bn(112394,p,function(){return Qno},function(y){Qno=y})};
r88=function(p,y){if(!p)return[];var l,q,t;p=((l=p.markersMap)==null?void 0:(q=l.find(function(E){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(E.key)}))==null?void 0:(t=q.value)==null?void 0:t.chapters)||[];
!whj(p)||(y==null?0:y.ignoreStub)||(p=[iL_()].concat(_.xq(p)));return p};
iL_=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
whj=function(p){if(p.length===0)return!1;var y;return((y=_.G(p[0],oA))==null?void 0:y.timeRangeStartMillis)!==0};
zK=function(p){return p?p.timeRangeStartMillis||0:0};
Fa5=function(p,y){if(p.isDragging&&y)return p=SSo(p,y),p===-1?iL_():r88(y)[p]};
SSo=function(p,y){return p.isDragging&&y?r88(y,{ignoreStub:!0}).findIndex(function(l,q,t){l=La_(p);return khL(l,t,q).scrubberHovering}):-1};
La_=function(p){return Object.assign({},p,{videoDuration:p.videoDuration*1E3,playedTime:p.playedTime*1E3,draggedTime:p.draggedTime*1E3})};
khL=function(p,y,l){var q=zK(_.G(y[l],oA));y=zK(_.G(y[l+1],oA))||p.videoDuration;l=p.isDragging;var t;if(t=p.isDragging)t=p.draggedTime,t=t!==null&&t>=q&&t<y;var E=p.playedTime;return E!==null&&E>=q&&E<y?{videoPosition:"active",isScrubbing:l,scrubberHovering:t}:p.playedTime<q?{videoPosition:"pending",isScrubbing:l,scrubberHovering:t}:{videoPosition:"seen",isScrubbing:l,scrubberHovering:t}};
Nx_=function(p,y){return p.videoPosition==="seen"||(y===void 0?0:y)>0};
Dh_=function(p,y,l){y=p/y.storyboardInterval;var q=r88(l);if(!q.length)return-y*72;l=0;q=_.c(q);for(var t=q.next();!t.done;t=q.next())if(zK(_.G(t.value,oA))/1E3<p)l++;else break;return-(y*72)-l*56};
HLc=function(p){return p?p.width/p.columns:0};
Tx8=function(p){return p.isHovering?p.hoveredTime:p.draggedTime};
xhl=function(p,y){p=p.draggedTime*1E3;return p>=y.visibleTimeRangeStartMillis&&p<=y.visibleTimeRangeEndMillis};
_.Bxj=function(p){if(p===void 0||Number.isNaN(p))return"--:--";var y=Math.abs(Math.floor(p)),l=Math.floor(y/86400),q=Math.floor(y%86400/3600),t=Math.floor(y%3600/60);y=Math.floor(y%60);var E="";l>0&&(E+=l+":",q<10&&(E+="0"));if(l>0||q>0)E+=q+":",t<10&&(E+="0");E+=t+":";y<10&&(E+="0");E+=y;return p>=0?E:"-"+E};
f05=function(p,y){return function(){var l=Tx8(p());var q=y();var t=p().playerApi;if(t&&t.getNumberOfStoryboardLevels()!==0){var E=t.getStoryboardFrameIndex(l,1);E!==-1?q=t.getStoryboardFrame(E,1):(l=t.getStoryboardFrameIndex(l,0),t=t.getStoryboardFrame(l,0),q&&t&&(t.height*=3,t.width*=3),q=t)}else q=null;if(!q)return null;y()&&(q.width=90*q.columns,q.height=160*q.rows);return q}};
_.Yz=function(p){if(!p||p.getVideoData)return p};
vO6=function(){var p;return{playerApi:(p=_.gi())!=null?p:void 0}};
XhL=function(p){var y;_.h(function(l){if(l.nextAddress==1)return l.yield(_.VS(),2);if(y=l.yieldResult)y.unMute(!0),y.setVolume(p,!0);_.rR(l)})};
dht=function(p,y){p&&(p.value=""+y,p.style.setProperty("--gradient-percent",y+"%"))};
OL8=function(p){var y;return(y=p==null?void 0:p.value)!=null?y:0};
oO_=function(){var p;_.h(function(y){if(y.nextAddress==1)return y.yield(_.VS(),2);p=y.yieldResult;if(!p)return y.return();p.isMuted()?p.unMute(!0):p.mute(!0);_.rR(y)})};
zg6=function(p){var y=_.WC().resolve(_.IA).getPlayerElement();y&&p&&(p===1?y.pause():y.play())};
YSl=function(p){_.jN(p,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
I0j=function(p){_.jN(p,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
yYt=function(p){return _.kZ(p.document.body,function(){return _.R(pla,null)})};
lEl=function(){var p=window.performance.getEntriesByType("navigation");return p?p.map(function(y){return y.type}).includes("reload"):!1};
hTL=function(){pq(pq(pq(pq(pq(pq(pq(_.WC().resolve(_.yR),_.qkm),_.ssg),_.tnm),_.EEt),_.JYl),_.cYa),_.eTo)};
Cwj=function(p,y){y=y===void 0?!1:y;var l,q,t,E;return _.h(function(e){if(e.nextAddress==1)return y||!_.n("kevlar_shorts_seedless_retry_initial_load")||(l=window,q=!(!l.getDataPromise&&!l.getInitialData),q)?e.yield(l0o(),2):(setTimeout(Cwj.bind(window,p,!0),1E3),e.return());if(e.nextAddress!=3)return t=e.yieldResult,e.yield(uEc(t),3);E=e.yieldResult;v3(p,E);_.rR(e)})};
uEc=function(p){var y;if((y=p.response)==null||!y.replacementEndpoint)return _.PW(p);y=_.WC().resolve(H3);p=p.response;_.G(p.replacementEndpoint,_.FC)&&p.sequenceContinuation&&(_.G(p.replacementEndpoint,_.FC).sequenceParams=p.sequenceContinuation);return l8(y,p.replacementEndpoint,{},_.l_.location.href,"shorts",function(){},function(){return!1})};
W5t=function(p){var y=_.WC().resolve(RTo);p.playerResponse&&y.handleResponse(p.playerResponse);p.response&&y.handleResponse(p.response)};
aEc=function(p){var y=_.ei(),l,q=_.G((l=p.response)==null?void 0:l.frameworkUpdates,uj),t;l=_.G((t=p.playerResponse)==null?void 0:t.frameworkUpdates,uj);var E;p=_.G((E=p.reelWatchSequenceResponse)==null?void 0:E.frameworkUpdates,uj);q&&_.Qj(q,y);l&&_.Qj(l,y);p&&_.Qj(p,y)};
mK5=function(p){var y;_.n("enable_redirect_linking_for_desktop_web_client")&&((y=window.location.hash)==null?0:y.includes("redirect_state"))&&p.url&&(p.url=p.url.toString()+window.location.hash)};
jst=function(p){var y=_.WC(),l=y.resolve(H3);y=y.resolve(_.UK_);p.endpoint&&(l=$K6(l,p.endpoint),l.content&&p.response&&_.qY(y,p.response,l.content),l.player&&p.playerResponse&&_.qY(y,p.playerResponse,l.player),l.reelSequence&&p.reelWatchSequenceResponse&&_.qY(y,p.reelWatchSequenceResponse,l.reelSequence))};
sa=function(p,y){_.n("web_service_params_response_processor")&&W5t(y);aEc(y);var l;(y==null?0:y.url)&&((l=window.location.hash)==null?0:l.includes("redirect_state"))&&(mK5(y),(l=ph8(y.url))&&_.$w(p.root,"yt-initialize-third-party",[l,y]));jst(y);l=_.WC();var q=l.resolve(bB_);y.playerResponse&&l.resolve(nEc).handleResponse(y.playerResponse);if(y.playerResponse){l=void 0;if(_.n("ab_v_vid_sig")&&y.endpoint){var t,E=(t=_.G(y.endpoint,_.Eb))!=null?t:_.G(y.endpoint,_.FC);E&&(l=E.videoId)}GZ_(q,y.playerResponse,
l)}y.playerResponse&&N3g(y.playerResponse)&&_.n("web_enable_ab_rsp_cl")?X1a().then(function(){Pw_(q,y.playerResponse);v3(p,y)}):v3(p,y)};
ZBu=function(p){if(p=p.root.data){var y=_.WC().resolve(AY_);p.endpoint&&(p.response&&y.handleResponse(p.response,void 0,document.querySelector("ytd-app")),p.playerResponse&&y.handleResponse(p.playerResponse),p.reelWatchSequenceResponse&&y.handleResponse(p.reelWatchSequenceResponse))}};
Mno=function(p){var y,l,q,t,E,e;return _.h(function(C){switch(C.nextAddress){case 1:y=window;if(!y.getDataPromise){C.jumpTo(2);break}_.Ve(C,3);return C.yield(y.getDataPromise(),5);case 5:l=C.yieldResult;sa(p,l);_.pK(C,4);break;case 3:return _.i6(C),C.yield(TK(),6);case 6:q=C.yieldResult,v3(p,q);case 4:return C.return();case 2:if(!_.n("sw_nav_preload_pbj")){C.jumpTo(7);break}y.fetchInitialData=function(){var u;return _.h(function(a){if(a.nextAddress==1)return a.yield(TK(),2);u=a.yieldResult;v3(p,u);
_.rR(a)})};
if(y.getInitialData){y.loadInitialData=function(u){sa(p,u)};
t=y.getInitialData();y.getInitialData=void 0;sa(p,t);C.jumpTo(8);break}y.fetchInitialData=void 0;return C.yield(TK(),9);case 9:E=C.yieldResult,v3(p,E);case 8:return C.return();case 7:y.getInitialData?(e=y.getInitialData(),y.getInitialData=void 0,sa(p,e)):y.loadInitialData=function(u){sa(p,u)},_.rR(C)}})};
Vna=function(p){var y=0;return function(){return y<p.length?{done:!1,value:p[y++]}:{done:!0}}};
gEc=typeof Object.defineProperties=="function"?Object.defineProperty:function(p,y,l){if(p==Array.prototype||p==Object.prototype)return p;p[y]=l.value;return p};
QsL=function(p){p=["object"==typeof globalThis&&globalThis,p,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var y=0;y<p.length;++y){var l=p[y];if(l&&l.Math==Math)return l}throw Error("a");};
_.Jh=QsL(this);tj=function(p,y){if(y)a:{var l=_.Jh;p=p.split(".");for(var q=0;q<p.length-1;q++){var t=p[q];if(!(t in l))break a;l=l[t]}p=p[p.length-1];q=l[p];y=y(q);y!=q&&y!=null&&gEc(l,p,{configurable:!0,writable:!0,value:y})}};
tj("Symbol",function(p){if(p)return p;var y=function(E,e){this.$jscomp$symbol$id_=E;gEc(this,"description",{configurable:!0,writable:!0,value:e})};
y.prototype.toString=function(){return this.$jscomp$symbol$id_};
var l="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",q=0,t=function(E){if(this instanceof t)throw new TypeError("b");return new y(l+(E||"")+"_"+q++,E)};
return t});
tj("Symbol.iterator",function(p){if(p)return p;p=Symbol("c");for(var y="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),l=0;l<y.length;l++){var q=_.Jh[y[l]];typeof q==="function"&&typeof q.prototype[p]!="function"&&gEc(q.prototype,p,{configurable:!0,writable:!0,value:function(){return K5j(Vna(this))}})}return p});
tj("Symbol.asyncIterator",function(p){return p?p:Symbol("d")});
var K5j=function(p){p={next:p};p[Symbol.iterator]=function(){return this};
return p},wl5=typeof Object.create=="function"?Object.create:function(p){var y=function(){};
y.prototype=p;return new y},iBL=function(){function p(){function l(){}
new l;Reflect.construct(l,[],function(){});
return new l instanceof l}
if(typeof Reflect!="undefined"&&Reflect.construct){if(p())return Reflect.construct;var y=Reflect.construct;return function(l,q,t){l=y(l,q);t&&Reflect.setPrototypeOf(l,t.prototype);return l}}return function(l,q,t){t===void 0&&(t=l);
t=wl5(t.prototype||Object.prototype);return Function.prototype.apply.call(l,t,q)||t}}(),rYm;
if(typeof Object.setPrototypeOf=="function")rYm=Object.setPrototypeOf;else{var Sk8;a:{var F5R={a:!0},L5L={};try{L5L.__proto__=F5R;Sk8=L5L.a;break a}catch(p){}Sk8=!1}rYm=Sk8?function(p,y){p.__proto__=y;if(p.__proto__!==y)throw new TypeError("e`"+p);return p}:null}Ea=rYm;
_.A=function(p,y){p.prototype=wl5(y.prototype);p.prototype.constructor=p;if(Ea)Ea(p,y);else for(var l in y)if(l!="prototype")if(Object.defineProperties){var q=Object.getOwnPropertyDescriptor(y,l);q&&Object.defineProperty(p,l,q)}else p[l]=y[l];p.superClass_=y.prototype};
_.c=function(p){var y=typeof Symbol!="undefined"&&Symbol.iterator&&p[Symbol.iterator];if(y)return y.call(p);if(typeof p.length=="number")return{next:Vna(p)};throw Error("f`"+String(p));};
qA=function(p){for(var y,l=[];!(y=p.next()).done;)l.push(y.value);return l};
_.xq=function(p){return p instanceof Array?p:qA(_.c(p))};
_.c0=function(p){return Jj(p,p)};
Jj=function(p,y){p.raw=y;Object.freeze&&(Object.freeze(p),Object.freeze(y));return p};
e6=function(p,y){return Object.prototype.hasOwnProperty.call(p,y)};
kZu=typeof Object.assign=="function"?Object.assign:function(p,y){for(var l=1;l<arguments.length;l++){var q=arguments[l];if(q)for(var t in q)e6(q,t)&&(p[t]=q[t])}return p};
tj("Object.assign",function(p){return p||kZu});
var hj=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},NMj=function(p){if(p.isRunning_)throw new TypeError("h");
p.isRunning_=!0};
hj.prototype.JSC$8662_next_=function(p){this.yieldResult=p};
var DKu=function(p,y){p.abruptCompletion_={exception:y,isException:!0};p.nextAddress=p.catchAddress_||p.finallyAddress_};
hj.prototype.return=function(p){this.abruptCompletion_={return:p};this.nextAddress=this.finallyAddress_};
hj.prototype.yield=function(p,y){this.nextAddress=y;return{value:p}};
hj.prototype.jumpTo=function(p){this.nextAddress=p};
_.rR=function(p){p.nextAddress=0};
_.Ve=function(p,y,l){p.catchAddress_=y;l!=void 0&&(p.finallyAddress_=l)};
_.KC=function(p,y){p.catchAddress_=0;p.finallyAddress_=y||0};
_.pK=function(p,y,l){p.nextAddress=y;p.catchAddress_=l||0};
_.i6=function(p,y){p.catchAddress_=y||0;y=p.abruptCompletion_.exception;p.abruptCompletion_=null;return y};
_.Qe=function(p,y,l,q){q?p.finallyContexts_[q]=p.abruptCompletion_:p.finallyContexts_=[p.abruptCompletion_];p.catchAddress_=y||0;p.finallyAddress_=l||0};
_.wR=function(p,y,l){l=p.finallyContexts_.splice(l||0)[0];(l=p.abruptCompletion_=p.abruptCompletion_||l)?l.isException?p.nextAddress=p.catchAddress_||p.finallyAddress_:l.jumpTo!=void 0&&p.finallyAddress_<l.jumpTo?(p.nextAddress=l.jumpTo,p.abruptCompletion_=null):p.nextAddress=p.finallyAddress_:p.nextAddress=y};
HBc=function(p){this.JSC$8667_context_=new hj;this.program_=p};
xKt=function(p,y){NMj(p.JSC$8667_context_);var l=p.JSC$8667_context_.yieldAllIterator_;if(l)return TMg(p,"return"in l?l["return"]:function(q){return{value:q,done:!0}},y,p.JSC$8667_context_.return);
p.JSC$8667_context_.return(y);return Cq(p)};
TMg=function(p,y,l,q){try{var t=y.call(p.JSC$8667_context_.yieldAllIterator_,l);if(!(t instanceof Object))throw new TypeError("g`"+t);if(!t.done)return p.JSC$8667_context_.isRunning_=!1,t;var E=t.value}catch(e){return p.JSC$8667_context_.yieldAllIterator_=null,DKu(p.JSC$8667_context_,e),Cq(p)}p.JSC$8667_context_.yieldAllIterator_=null;q.call(p.JSC$8667_context_,E);return Cq(p)};
Cq=function(p){for(;p.JSC$8667_context_.nextAddress;)try{var y=p.program_(p.JSC$8667_context_);if(y)return p.JSC$8667_context_.isRunning_=!1,{value:y.value,done:!1}}catch(l){p.JSC$8667_context_.yieldResult=void 0,DKu(p.JSC$8667_context_,l)}p.JSC$8667_context_.isRunning_=!1;if(p.JSC$8667_context_.abruptCompletion_){y=p.JSC$8667_context_.abruptCompletion_;p.JSC$8667_context_.abruptCompletion_=null;if(y.isException)throw y.exception;return{value:y.return,done:!0}}return{value:void 0,done:!0}};
BMt=function(p){this.next=function(y){NMj(p.JSC$8667_context_);p.JSC$8667_context_.yieldAllIterator_?y=TMg(p,p.JSC$8667_context_.yieldAllIterator_.next,y,p.JSC$8667_context_.JSC$8662_next_):(p.JSC$8667_context_.JSC$8662_next_(y),y=Cq(p));return y};
this.throw=function(y){NMj(p.JSC$8667_context_);p.JSC$8667_context_.yieldAllIterator_?y=TMg(p,p.JSC$8667_context_.yieldAllIterator_["throw"],y,p.JSC$8667_context_.JSC$8662_next_):(DKu(p.JSC$8667_context_,y),y=Cq(p));return y};
this.return=function(y){return xKt(p,y)};
this[Symbol.iterator]=function(){return this}};
_.MR=function(p,y){y=new BMt(new HBc(y));Ea&&p.prototype&&Ea(y,p.prototype);return y};
fEL=function(p){function y(q){return p.next(q)}
function l(q){return p.throw(q)}
return new Promise(function(q,t){function E(e){e.done?q(e.value):Promise.resolve(e.value).then(y,l).then(E,t)}
E(p.next())})};
_.h=function(p){return fEL(new BMt(new HBc(p)))};
_.gR=function(p){var y=p[Symbol.asyncIterator];return y!==void 0?y.call(p):new vEo(_.c(p))};
vEo=function(p){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return p};
this.next=function(y){return Promise.resolve(p.next(y))};
this["throw"]=function(y){return new Promise(function(l,q){var t=p["throw"];t!==void 0?l(t.call(p,y)):(l=p["return"],l!==void 0&&l.call(p),q(new TypeError("i")))})};
p["return"]!==void 0&&(this["return"]=function(y){return Promise.resolve(p["return"](y))})};
_.oX=function(){for(var p=Number(this),y=[],l=p;l<arguments.length;l++)y[l-p]=arguments[l];return y};
_.VG=function(p){return p};
tj("globalThis",function(p){return p||_.Jh});
tj("Reflect",function(p){return p?p:{}});
tj("Reflect.construct",function(){return iBL});
tj("Reflect.setPrototypeOf",function(p){return p?p:Ea?function(y,l){try{return Ea(y,l),!0}catch(q){return!1}}:null});
tj("Promise",function(p){function y(){this.batch_=null}
function l(e){return e instanceof t?e:new t(function(C){C(e)})}
if(p&&(typeof _.Jh.PromiseRejectionEvent!=="undefined"||!_.Jh.Promise||_.Jh.Promise.toString().indexOf("[native code]")===-1))return p;y.prototype.asyncExecute=function(e){if(this.batch_==null){this.batch_=[];var C=this;this.asyncExecuteFunction(function(){C.executeBatch_()})}this.batch_.push(e)};
var q=_.Jh.setTimeout;y.prototype.asyncExecuteFunction=function(e){q(e,0)};
y.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var e=this.batch_;this.batch_=[];for(var C=0;C<e.length;++C){var u=e[C];e[C]=null;try{u()}catch(a){this.asyncThrow_(a)}}}this.batch_=null};
y.prototype.asyncThrow_=function(e){this.asyncExecuteFunction(function(){throw e;})};
var t=function(e){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var C=this.createResolveAndReject_();try{e(C.resolve,C.reject)}catch(u){C.reject(u)}};
t.prototype.createResolveAndReject_=function(){function e(a){return function(m){u||(u=!0,a.call(C,m))}}
var C=this,u=!1;return{resolve:e(this.resolveTo_),reject:e(this.JSC$8695_reject_)}};
t.prototype.resolveTo_=function(e){if(e===this)this.JSC$8695_reject_(new TypeError("m"));else if(e instanceof t)this.settleSameAsPromise_(e);else{a:switch(typeof e){case "object":var C=e!=null;break a;case "function":C=!0;break a;default:C=!1}C?this.resolveToNonPromiseObj_(e):this.fulfill_(e)}};
t.prototype.resolveToNonPromiseObj_=function(e){var C=void 0;try{C=e.then}catch(u){this.JSC$8695_reject_(u);return}typeof C=="function"?this.settleSameAsThenable_(C,e):this.fulfill_(e)};
t.prototype.JSC$8695_reject_=function(e){this.settle_(2,e)};
t.prototype.fulfill_=function(e){this.settle_(1,e)};
t.prototype.settle_=function(e,C){if(this.state_!=0)throw Error("n`"+e+"`"+C+"`"+this.state_);this.state_=e;this.result_=C;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
t.prototype.scheduleUnhandledRejectionCheck_=function(){var e=this;q(function(){if(e.notifyUnhandledRejection_()){var C=_.Jh.console;typeof C!=="undefined"&&C.error(e.result_)}},1)};
t.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var e=_.Jh.CustomEvent,C=_.Jh.Event,u=_.Jh.dispatchEvent;if(typeof u==="undefined")return!0;typeof e==="function"?e=new e("unhandledrejection",{cancelable:!0}):typeof C==="function"?e=new C("unhandledrejection",{cancelable:!0}):(e=_.Jh.document.createEvent("CustomEvent"),e.initCustomEvent("unhandledrejection",!1,!0,e));e.promise=this;e.reason=this.result_;return u(e)};
t.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var e=0;e<this.onSettledCallbacks_.length;++e)E.asyncExecute(this.onSettledCallbacks_[e]);this.onSettledCallbacks_=null}};
var E=new y;t.prototype.settleSameAsPromise_=function(e){var C=this.createResolveAndReject_();e.callWhenSettled_(C.resolve,C.reject)};
t.prototype.settleSameAsThenable_=function(e,C){var u=this.createResolveAndReject_();try{e.call(C,u.resolve,u.reject)}catch(a){u.reject(a)}};
t.prototype.then=function(e,C){function u(b,P){return typeof b=="function"?function(Z){try{a(b(Z))}catch(K){m(K)}}:P}
var a,m,U=new t(function(b,P){a=b;m=P});
this.callWhenSettled_(u(e,a),u(C,m));return U};
t.prototype.catch=function(e){return this.then(void 0,e)};
t.prototype.callWhenSettled_=function(e,C){function u(){switch(a.state_){case 1:e(a.result_);break;case 2:C(a.result_);break;default:throw Error("o`"+a.state_);}}
var a=this;this.onSettledCallbacks_==null?E.asyncExecute(u):this.onSettledCallbacks_.push(u);this.isRejectionHandled_=!0};
t.resolve=l;t.reject=function(e){return new t(function(C,u){u(e)})};
t.race=function(e){return new t(function(C,u){for(var a=_.c(e),m=a.next();!m.done;m=a.next())l(m.value).callWhenSettled_(C,u)})};
t.all=function(e){var C=_.c(e),u=C.next();return u.done?l([]):new t(function(a,m){function U(Z){return function(K){b[Z]=K;P--;P==0&&a(b)}}
var b=[],P=0;do b.push(void 0),P++,l(u.value).callWhenSettled_(U(b.length-1),m),u=C.next();while(!u.done)})};
return t});
var u8=function(p,y,l){if(p==null)throw new TypeError("p`"+l);if(y instanceof RegExp)throw new TypeError("q`"+l);return p+""};
tj("String.prototype.startsWith",function(p){return p?p:function(y,l){var q=u8(this,y,"startsWith"),t=q.length,E=y.length;l=Math.max(0,Math.min(l|0,q.length));for(var e=0;e<E&&l<t;)if(q[l++]!=y[e++])return!1;return e>=E}});
tj("Object.setPrototypeOf",function(p){return p||Ea});
tj("Symbol.dispose",function(p){return p?p:Symbol("r")});
tj("SuppressedError",function(p){function y(l,q,t){if(!(this instanceof y))return new y(l,q,t);t=Error(t);"stack"in t&&(this.stack=t.stack);this.message=t.message;this.error=l;this.suppressed=q}
if(p)return p;_.A(y,Error);y.prototype.name="SuppressedError";return y});
var Xlc=function(p,y,l){p instanceof String&&(p=String(p));for(var q=p.length,t=0;t<q;t++){var E=p[t];if(y.call(l,E,t,p))return{i:t,v:E}}return{i:-1,v:void 0}};
tj("Array.prototype.find",function(p){return p?p:function(y,l){return Xlc(this,y,l).v}});
tj("WeakMap",function(p){function y(){}
function l(u){var a=typeof u;return a==="object"&&u!==null||a==="function"}
function q(u){if(!e6(u,E)){var a=new y;gEc(u,E,{value:a})}}
function t(u){var a=Object[u];a&&(Object[u]=function(m){if(m instanceof y)return m;Object.isExtensible(m)&&q(m);return a(m)})}
if(function(){if(!p||!Object.seal)return!1;try{var u=Object.seal({}),a=Object.seal({}),m=new p([[u,2],[a,3]]);if(m.get(u)!=2||m.get(a)!=3)return!1;m.delete(u);m.set(a,4);return!m.has(u)&&m.get(a)==4}catch(U){return!1}}())return p;
var E="$jscomp_hidden_"+Math.random();t("freeze");t("preventExtensions");t("seal");var e=0,C=function(u){this.JSC$8702_id_=(e+=Math.random()+1).toString();if(u){u=_.c(u);for(var a;!(a=u.next()).done;)a=a.value,this.set(a[0],a[1])}};
C.prototype.set=function(u,a){if(!l(u))throw Error("s");q(u);if(!e6(u,E))throw Error("t`"+u);u[E][this.JSC$8702_id_]=a;return this};
C.prototype.get=function(u){return l(u)&&e6(u,E)?u[E][this.JSC$8702_id_]:void 0};
C.prototype.has=function(u){return l(u)&&e6(u,E)&&e6(u[E],this.JSC$8702_id_)};
C.prototype.delete=function(u){return l(u)&&e6(u,E)&&e6(u[E],this.JSC$8702_id_)?delete u[E][this.JSC$8702_id_]:!1};
return C});
tj("Map",function(p){if(function(){if(!p||typeof p!="function"||!p.prototype.entries||typeof Object.seal!="function")return!1;try{var C=Object.seal({x:4}),u=new p(_.c([[C,"s"]]));if(u.get(C)!="s"||u.size!=1||u.get({x:4})||u.set({x:4},"t")!=u||u.size!=2)return!1;var a=u.entries(),m=a.next();if(m.done||m.value[0]!=C||m.value[1]!="s")return!1;m=a.next();return m.done||m.value[0].x!=4||m.value[1]!="t"||!a.next().done?!1:!0}catch(U){return!1}}())return p;
var y=new WeakMap,l=function(C){this[0]={};this[1]=E();this.size=0;if(C){C=_.c(C);for(var u;!(u=C.next()).done;)u=u.value,this.set(u[0],u[1])}};
l.prototype.set=function(C,u){C=C===0?0:C;var a=q(this,C);a.list||(a.list=this[0][a.id]=[]);a.entry?a.entry.value=u:(a.entry={next:this[1],previous:this[1].previous,head:this[1],key:C,value:u},a.list.push(a.entry),this[1].previous.next=a.entry,this[1].previous=a.entry,this.size++);return this};
l.prototype.delete=function(C){C=q(this,C);return C.entry&&C.list?(C.list.splice(C.index,1),C.list.length||delete this[0][C.id],C.entry.previous.next=C.entry.next,C.entry.next.previous=C.entry.previous,C.entry.head=null,this.size--,!0):!1};
l.prototype.clear=function(){this[0]={};this[1]=this[1].previous=E();this.size=0};
l.prototype.has=function(C){return!!q(this,C).entry};
l.prototype.get=function(C){return(C=q(this,C).entry)&&C.value};
l.prototype.entries=function(){return t(this,function(C){return[C.key,C.value]})};
l.prototype.keys=function(){return t(this,function(C){return C.key})};
l.prototype.values=function(){return t(this,function(C){return C.value})};
l.prototype.forEach=function(C,u){for(var a=this.entries(),m;!(m=a.next()).done;)m=m.value,C.call(u,m[1],m[0],this)};
l.prototype[Symbol.iterator]=l.prototype.entries;var q=function(C,u){var a=u&&typeof u;a=="object"||a=="function"?y.has(u)?a=y.get(u):(a=""+ ++e,y.set(u,a)):a="p_"+u;var m=C[0][a];if(m&&e6(C[0],a))for(C=0;C<m.length;C++){var U=m[C];if(u!==u&&U.key!==U.key||u===U.key)return{id:a,list:m,index:C,entry:U}}return{id:a,list:m,index:-1,entry:void 0}},t=function(C,u){var a=C[1];
return K5j(function(){if(a){for(;a.head!=C[1];)a=a.previous;for(;a.next!=a.head;)return a=a.next,{done:!1,value:u(a)};a=null}return{done:!0,value:void 0}})},E=function(){var C={};
return C.previous=C.next=C.head=C},e=0;
return l});
tj("Set",function(p){if(function(){if(!p||typeof p!="function"||!p.prototype.entries||typeof Object.seal!="function")return!1;try{var l=Object.seal({x:4}),q=new p(_.c([l]));if(!q.has(l)||q.size!=1||q.add(l)!=q||q.size!=1||q.add({x:4})!=q||q.size!=2)return!1;var t=q.entries(),E=t.next();if(E.done||E.value[0]!=l||E.value[1]!=l)return!1;E=t.next();return E.done||E.value[0]==l||E.value[0].x!=4||E.value[1]!=E.value[0]?!1:t.next().done}catch(e){return!1}}())return p;
var y=function(l){this.JSC$8716_map_=new Map;if(l){l=_.c(l);for(var q;!(q=l.next()).done;)this.add(q.value)}this.size=this.JSC$8716_map_.size};
y.prototype.add=function(l){l=l===0?0:l;this.JSC$8716_map_.set(l,l);this.size=this.JSC$8716_map_.size;return this};
y.prototype.delete=function(l){l=this.JSC$8716_map_.delete(l);this.size=this.JSC$8716_map_.size;return l};
y.prototype.clear=function(){this.JSC$8716_map_.clear();this.size=0};
y.prototype.has=function(l){return this.JSC$8716_map_.has(l)};
y.prototype.entries=function(){return this.JSC$8716_map_.entries()};
y.prototype.values=function(){return this.JSC$8716_map_.values()};
y.prototype.keys=y.prototype.values;y.prototype[Symbol.iterator]=y.prototype.values;y.prototype.forEach=function(l,q){var t=this;this.JSC$8716_map_.forEach(function(E){return l.call(q,E,E,t)})};
return y});
tj("Math.log2",function(p){return p?p:function(y){return Math.log(y)/Math.LN2}});
tj("Object.values",function(p){return p?p:function(y){var l=[],q;for(q in y)e6(y,q)&&l.push(y[q]);return l}});
tj("Object.is",function(p){return p?p:function(y,l){return y===l?y!==0||1/y===1/l:y!==y&&l!==l}});
tj("Array.prototype.includes",function(p){return p?p:function(y,l){var q=this;q instanceof String&&(q=String(q));var t=q.length;l=l||0;for(l<0&&(l=Math.max(l+t,0));l<t;l++){var E=q[l];if(E===y||Object.is(E,y))return!0}return!1}});
tj("String.prototype.includes",function(p){return p?p:function(y,l){return u8(this,y,"includes").indexOf(y,l||0)!==-1}});
tj("Array.from",function(p){return p?p:function(y,l,q){l=l!=null?l:function(C){return C};
var t=[],E=typeof Symbol!="undefined"&&Symbol.iterator&&y[Symbol.iterator];if(typeof E=="function"){y=E.call(y);for(var e=0;!(E=y.next()).done;)t.push(l.call(q,E.value,e++))}else for(E=y.length,e=0;e<E;e++)t.push(l.call(q,y[e],e));return t}});
tj("Object.entries",function(p){return p?p:function(y){var l=[],q;for(q in y)e6(y,q)&&l.push([q,y[q]]);return l}});
tj("Number.isFinite",function(p){return p?p:function(y){return typeof y!=="number"?!1:!isNaN(y)&&y!==Infinity&&y!==-Infinity}});
tj("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
tj("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
tj("Number.isInteger",function(p){return p?p:function(y){return Number.isFinite(y)?y===Math.floor(y):!1}});
tj("Number.isSafeInteger",function(p){return p?p:function(y){return Number.isInteger(y)&&Math.abs(y)<=Number.MAX_SAFE_INTEGER}});
tj("String.prototype.endsWith",function(p){return p?p:function(y,l){var q=u8(this,y,"endsWith");l===void 0&&(l=q.length);l=Math.max(0,Math.min(l|0,q.length));for(var t=y.length;t>0&&l>0;)if(q[--l]!=y[--t])return!1;return t<=0}});
var dKl=function(p,y){p instanceof String&&(p+="");var l=0,q=!1,t={next:function(){if(!q&&l<p.length){var E=l++;return{value:y(E,p[E]),done:!1}}q=!0;return{done:!0,value:void 0}}};
t[Symbol.iterator]=function(){return t};
return t};
tj("Array.prototype.entries",function(p){return p?p:function(){return dKl(this,function(y,l){return[y,l]})}});
tj("Math.trunc",function(p){return p?p:function(y){y=Number(y);if(isNaN(y)||y===Infinity||y===-Infinity||y===0)return y;var l=Math.floor(Math.abs(y));return y<0?-l:l}});
tj("Number.isNaN",function(p){return p?p:function(y){return typeof y==="number"&&isNaN(y)}});
tj("Array.prototype.keys",function(p){return p?p:function(){return dKl(this,function(y){return y})}});
tj("Array.prototype.values",function(p){return p?p:function(){return dKl(this,function(y,l){return l})}});
tj("Array.prototype.fill",function(p){return p?p:function(y,l,q){var t=this.length||0;l<0&&(l=Math.max(0,t+l));if(q==null||q>t)q=t;q=Number(q);q<0&&(q=Math.max(0,t+q));for(l=Number(l||0);l<q;l++)this[l]=y;return this}});
var RN=function(p){return p?p:Array.prototype.fill};
tj("Int8Array.prototype.fill",RN);tj("Uint8Array.prototype.fill",RN);tj("Uint8ClampedArray.prototype.fill",RN);tj("Int16Array.prototype.fill",RN);tj("Uint16Array.prototype.fill",RN);tj("Int32Array.prototype.fill",RN);tj("Uint32Array.prototype.fill",RN);tj("Float32Array.prototype.fill",RN);tj("Float64Array.prototype.fill",RN);
tj("Object.fromEntries",function(p){return p?p:function(y){var l={};if(!(Symbol.iterator in y))throw new TypeError("u`"+y);y=y[Symbol.iterator].call(y);for(var q=y.next();!q.done;q=y.next()){q=q.value;if(Object(q)!==q)throw new TypeError("v");l[q[0]]=q[1]}return l}});
tj("String.prototype.replaceAll",function(p){return p?p:function(y,l){if(y instanceof RegExp&&!y.global)throw new TypeError("w");return y instanceof RegExp?this.replace(y,l):this.replace(new RegExp(String(y).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),l)}});
tj("Object.getOwnPropertySymbols",function(p){return p?p:function(){return[]}});
tj("String.prototype.repeat",function(p){return p?p:function(y){var l=u8(this,null,"repeat");if(y<0||y>1342177279)throw new RangeError("x");y|=0;for(var q="";y;)if(y&1&&(q+=l),y>>>=1)l+=l;return q}});
tj("Array.prototype.findIndex",function(p){return p?p:function(y,l){return Xlc(this,y,l).i}});
tj("Array.prototype.flatMap",function(p){return p?p:function(y,l){var q=[];Array.prototype.forEach.call(this,function(t,E){t=y.call(l,t,E,this);Array.isArray(t)?q.push.apply(q,t):q.push(t)});
return q}});
tj("String.prototype.codePointAt",function(p){return p?p:function(y){var l=u8(this,null,"codePointAt"),q=l.length;y=Number(y)||0;if(y>=0&&y<q){y|=0;var t=l.charCodeAt(y);if(t<55296||t>56319||y+1===q)return t;y=l.charCodeAt(y+1);return y<56320||y>57343?t:(t-55296)*1024+y+9216}}});
tj("String.fromCodePoint",function(p){return p?p:function(y){for(var l="",q=0;q<arguments.length;q++){var t=Number(arguments[q]);if(t<0||t>1114111||t!==Math.floor(t))throw new RangeError("y`"+t);t<=65535?l+=String.fromCharCode(t):(t-=65536,l+=String.fromCharCode(t>>>10&1023|55296),l+=String.fromCharCode(t&1023|56320))}return l}});
tj("String.prototype.trimLeft",function(p){function y(){return this.replace(/^[\s\xa0]+/,"")}
return p||y});
tj("String.prototype.trimStart",function(p){return p||String.prototype.trimLeft});
tj("String.prototype.padStart",function(p){return p?p:function(y,l){var q=u8(this,null,"padStart");y-=q.length;l=l!==void 0?String(l):" ";return(y>0&&l?l.repeat(Math.ceil(y/l.length)).substring(0,y):"")+q}});
tj("Promise.prototype.finally",function(p){return p?p:function(y){return this.then(function(l){return Promise.resolve(y()).then(function(){return l})},function(l){return Promise.resolve(y()).then(function(){throw l;
})})}});
tj("Math.imul",function(p){return p?p:function(y,l){y=Number(y);l=Number(l);var q=y&65535,t=l&65535;return q*t+((y>>>16&65535)*t+q*(l>>>16&65535)<<16>>>0)|0}});
tj("Object.hasOwn",function(p){return p?p:function(y,l){return Object.prototype.hasOwnProperty.call(y,l)}});
tj("Math.sign",function(p){return p?p:function(y){y=Number(y);return y===0||isNaN(y)?y:y>0?1:-1}});
tj("Array.prototype.flat",function(p){return p?p:function(y){y=y===void 0?1:y;var l=[];Array.prototype.forEach.call(this,function(q){Array.isArray(q)&&y>0?(q=Array.prototype.flat.call(q,y-1),l.push.apply(l,q)):l.push(q)});
return l}});
tj("String.raw",function(p){return p?p:function(y,l){if(y==null)throw new TypeError("z");for(var q=y.raw,t=q.length,E="",e=0;e<t;++e)E+=q[e],e+1<t&&e+1<arguments.length&&(E+=String(arguments[e+1]));return E}});
tj("Reflect.ownKeys",function(p){return p?p:function(y){var l=[],q=Object.getOwnPropertyNames(y);y=Object.getOwnPropertySymbols(y);for(var t=0;t<q.length;t++)(q[t].substring(0,14)=="jscomp_symbol_"?y:l).push(q[t]);return l.concat(y)}});
tj("Object.getOwnPropertyDescriptors",function(p){return p?p:function(y){for(var l={},q=Reflect.ownKeys(y),t=0;t<q.length;t++)l[q[t]]=Object.getOwnPropertyDescriptor(y,q[t]);return l}});
tj("WeakSet",function(p){if(function(){if(!p||!Object.seal)return!1;try{var l=Object.seal({}),q=Object.seal({}),t=new p([l]);if(!t.has(l)||t.has(q))return!1;t.delete(l);t.add(q);return!t.has(l)&&t.has(q)}catch(E){return!1}}())return p;
var y=function(l){this.JSC$8723_map_=new WeakMap;if(l){l=_.c(l);for(var q;!(q=l.next()).done;)this.add(q.value)}};
y.prototype.add=function(l){this.JSC$8723_map_.set(l,!0);return this};
y.prototype.has=function(l){return this.JSC$8723_map_.has(l)};
y.prototype.delete=function(l){return this.JSC$8723_map_.delete(l)};
return y});
tj("Promise.allSettled",function(p){function y(q){return{status:"fulfilled",value:q}}
function l(q){return{status:"rejected",reason:q}}
return p?p:function(q){var t=this;q=Array.from(q,function(E){return t.resolve(E).then(y,l)});
return t.all(q)}});
tj("Number.parseInt",function(p){return p||parseInt});
_._DumpException=window._DumpException||function(p){throw p;};
window._DumpException=_._DumpException;var OB5,W0,aN,mn,oER,zTu,YkL,IE5,NL,pit;OB5=OB5||{};_.l_=this||self;_.e0=function(p,y,l){p=p.split(".");l=l||_.l_;for(var q;p.length&&(q=p.shift());)p.length||y===void 0?l[q]&&l[q]!==Object.prototype[q]?l=l[q]:l=l[q]={}:l[q]=y};
W0=function(p,y){var l=_.I4("WIZ_global_data.oxN3nb");p=l&&l[p];return p!=null?p:y};
aN=_.l_._F_toggles_default_kevlar_base||[];mn=function(){};
mn.get=function(){return null};
_.I4=function(p,y){p=p.split(".");y=y||_.l_;for(var l=0;l<p.length;l++)if(y=y[p[l]],y==null)return null;return y};
_.Ua=function(p){p.instance_=void 0;p.getInstance=function(){return p.instance_?p.instance_:p.instance_=new p}};
_.tm=function(p){var y=typeof p;return y!="object"?y:p?Array.isArray(p)?"array":y:"null"};
_.zl=function(p){var y=_.tm(p);return y=="array"||y=="object"&&typeof p.length=="number"};
_.yQ=function(p){var y=typeof p;return y=="object"&&p!=null||y=="function"};
_.qO=function(p){return Object.prototype.hasOwnProperty.call(p,oER)&&p[oER]||(p[oER]=++zTu)};
oER="closure_uid_"+(Math.random()*1E9>>>0);zTu=0;YkL=function(p,y,l){return p.call.apply(p.bind,arguments)};
IE5=function(p,y,l){if(!p)throw Error();if(arguments.length>2){var q=Array.prototype.slice.call(arguments,2);return function(){var t=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(t,q);return p.apply(y,t)}}return function(){return p.apply(y,arguments)}};
_.FZ=function(p,y,l){_.FZ=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?YkL:IE5;return _.FZ.apply(null,arguments)};
_.Ky=function(p,y){var l=Array.prototype.slice.call(arguments,1);return function(){var q=l.slice();q.push.apply(q,arguments);return p.apply(this,q)}};
_.$t=function(){return Date.now()};
NL=function(p){return p};
_.j6=function(p,y){function l(){}
l.prototype=y.prototype;p.superClass_=y.prototype;p.prototype=new l;p.prototype.constructor=p;p.base=function(q,t,E){for(var e=Array(arguments.length-2),C=2;C<arguments.length;C++)e[C-2]=arguments[C];return y.prototype[t].apply(q,e)}};
pit=function(p){return p};var ynm,ls8;_.H=function(p,y,l,q){var t=arguments.length,E=t<3?y:q===null?q=Object.getOwnPropertyDescriptor(y,l):q,e;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")E=Reflect.decorate(p,y,l,q);else for(var C=p.length-1;C>=0;C--)if(e=p[C])E=(t<3?e(E):t>3?e(y,l,E):e(y,l))||E;t>3&&E&&Object.defineProperty(y,l,E)};
_.x=function(p,y){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(p,y)};
ynm=function(p,y){if(y!==null&&y!==void 0){if(typeof y!=="object"&&typeof y!=="function")throw new TypeError("A");if(l===void 0){if(!Symbol.dispose)throw new TypeError("C");var l=y[Symbol.dispose]}if(typeof l!=="function")throw new TypeError("D");p.stack.push({value:y,dispose:l,async:!1})}return y};
ls8=function(p){function y(E){p.error=p.hasError?new SuppressedError(E,p.error,"An error was suppressed during disposal."):E;p.hasError=!0}
function l(){for(;q=p.stack.pop();)try{if(!q.async&&t===1)return t=0,p.stack.push(q),Promise.resolve().then(l);if(q.dispose){var E=q.dispose.call(q.value);if(q.async)return t|=2,Promise.resolve(E).then(l,function(e){y(e);return l()})}else t|=1}catch(e){y(e)}if(t===1)return p.hasError?Promise.reject(p.error):Promise.resolve();
if(p.hasError)throw p.error;}
var q,t=0;l()};_.j6(_.p8,Error);_.p8.prototype.name="CustomError";var q2g;var s66=void 0,tbt,EVl=typeof TextDecoder!=="undefined",qcj,ltl=typeof String.prototype.isWellFormed==="function",yRt=typeof TextEncoder!=="undefined";var JnL;_.rg=function(p){for(var y=[],l=0,q=0;q<p.length;q++){var t=p.charCodeAt(q);t<128?y[l++]=t:(t<2048?y[l++]=t>>6|192:((t&64512)==55296&&q+1<p.length&&(p.charCodeAt(q+1)&64512)==56320?(t=65536+((t&1023)<<10)+(p.charCodeAt(++q)&1023),y[l++]=t>>18|240,y[l++]=t>>12&63|128):y[l++]=t>>12|224,y[l++]=t>>6&63|128),y[l++]=t&63|128)}return y};
JnL=function(p){for(var y=[],l=0,q=0;l<p.length;){var t=p[l++];if(t<128)y[q++]=String.fromCharCode(t);else if(t>191&&t<224){var E=p[l++];y[q++]=String.fromCharCode((t&31)<<6|E&63)}else if(t>239&&t<365){E=p[l++];var e=p[l++],C=p[l++];t=((t&7)<<18|(E&63)<<12|(e&63)<<6|C&63)-65536;y[q++]=String.fromCharCode(55296+(t>>10));y[q++]=String.fromCharCode(56320+(t&1023))}else E=p[l++],e=p[l++],y[q++]=String.fromCharCode((t&15)<<12|(E&63)<<6|e&63)}return y.join("")};var Rg=String.prototype.trim?function(p){return p.trim()}:function(p){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(p)[1]},cn6=/&/g,eG_=/</g,hGc=/>/g,C3m=/"/g,uj_=/'/g,RGj=/\x00/g,WYo=/[\x00&<>"']/;var b8=!!(aN[0]>>15&1),ast=!!(aN[0]&1024),m1j=!!(aN[0]>>16&1),U1a=!!(aN[0]&8),$1g=!!(aN[0]&2),j6_=!!(aN[0]&4),bRc=!!(aN[0]&16),nVm=!!(aN[0]&128);var GWl=W0(1,!0),$6=b8?m1j:W0(610401301,!1),P3t=b8?U1a:W0(772657768,!1),Anu=b8?$1g:W0(513659523,!1),ZR_=b8?ast||!j6_:W0(568333945,GWl),$Tl=b8?bRc:W0(1331761403,!1),sTl=b8?ast||!nVm:W0(748402147,GWl);var b_,Mbj=_.l_.navigator;b_=Mbj?Mbj.userAgentData||null:null;var sL;_.Ht=function(p,y){return Array.prototype.indexOf.call(p,y,void 0)};
_.lv=function(p,y,l){Array.prototype.forEach.call(p,y,l)};
_.nq=function(p,y,l){return Array.prototype.filter.call(p,y,l)};
_.xI=function(p,y,l){return Array.prototype.map.call(p,y,l)};
sL=function(p,y,l){return Array.prototype.some.call(p,y,l)};
_.T46=function(p,y,l){return Array.prototype.every.call(p,y,l)};var G6=function(p){G6[" "](p);return p};
G6[" "]=function(){};
var oPu=function(p,y){try{return G6(p[y]),!0}catch(l){}return!1},EQ5=function(p,y,l,q){q=q?q(y):y;
return Object.prototype.hasOwnProperty.call(p,q)?p[q]:p[q]=l(y)};var Vbo,Jk,gVo,Q6L,wi6,iRt,Hgt,rnc,S2l,FYg,eq,kWt,N9g,x1j,B9l,fsc;_.VD5=function(){return _.l_.navigator||null};
Vbo=Vu();_.P0=E6R();Jk=Pt("Edge");gVo=Jk||_.P0;_.Aj=Pt("Gecko")&&!(_.u_(_.mL(),"WebKit")&&!Pt("Edge"))&&!(Pt("Trident")||Pt("MSIE"))&&!Pt("Edge");_.ZY=_.u_(_.mL(),"WebKit")&&!Pt("Edge");Q6L=_.ZY&&Pt("Mobile");_.KY_=_.WLm();wi6=_.at8();iRt=(rm()?b_.platform==="Linux":Pt("Linux"))||_.maj();Hgt=_.uot();rnc=R5u();S2l=Pt("iPad");FYg=Pt("iPod");_.LY6=_.Sj();eq=_.u_(_.mL(),"KaiOS");kWt=function(){var p=_.l_.document;return p?p.documentMode:void 0};
a:{var D18="",HRm=function(){var p=_.mL();if(_.Aj)return/rv:([^\);]+)(\)|;)/.exec(p);if(Jk)return/Edge\/([\d\.]+)/.exec(p);if(_.P0)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(p);if(_.ZY)return/WebKit\/(\S+)/.exec(p);if(Vbo)return/(?:Version)[ \/]?(\S+)/.exec(p)}();
HRm&&(D18=HRm?HRm[1]:"");if(_.P0){var T9c=kWt();if(T9c!=null&&T9c>parseFloat(D18)){N9g=String(T9c);break a}}N9g=D18}x1j=N9g;B9l={};_.MY=function(p){return EQ5(B9l,p,function(){return _.ag(x1j,p)>=0})};
if(_.l_.document&&_.P0){var vV6=kWt();fsc=vV6?vV6:parseInt(x1j,10)||void 0}else fsc=void 0;_.XiR=fsc;var cel,e3m,d16;_.VR=gm();cel=R5u()||Pt("iPod");e3m=Pt("iPad");d16=_.cRl();_.gl=_.K8();_.ds=_.wm()&&!_.Sj();var ORj,QR,gI6,fu6,zGt,oV6;ORj={};QR=null;gI6=_.Aj||_.ZY||typeof _.l_.btoa=="function";_.HR=function(p,y){y===void 0&&(y=0);oV6();y=ORj[y];for(var l=Array(Math.floor(p.length/3)),q=y[64]||"",t=0,E=0;t<p.length-2;t+=3){var e=p[t],C=p[t+1],u=p[t+2],a=y[e>>2];e=y[(e&3)<<4|C>>4];C=y[(C&15)<<2|u>>6];u=y[u&63];l[E++]=a+e+C+u}a=0;u=q;switch(p.length-t){case 2:a=p[t+1],u=y[(a&15)<<2]||q;case 1:p=p[t],l[E]=y[p>>2]+y[(p&3)<<4|a>>4]+u+q}return l.join("")};
fu6=function(p){var y="";zGt(p,function(l){y+=String.fromCharCode(l)});
return y};
_.oNa=function(p){var y=[];zGt(p,function(l){y.push(l)});
return y};
_.hZ=function(p){var y=p.length,l=y*3/4;l%3?l=Math.floor(l):_.C8("=.",p[y-1])&&(l=_.C8("=.",p[y-2])?l-2:l-1);var q=new Uint8Array(l),t=0;zGt(p,function(E){q[t++]=E});
return t!==l?q.subarray(0,t):q};
zGt=function(p,y){function l(u){for(;q<p.length;){var a=p.charAt(q++),m=QR[a];if(m!=null)return m;if(!_.ej(a))throw Error("H`"+a);}return u}
oV6();for(var q=0;;){var t=l(-1),E=l(0),e=l(64),C=l(64);if(C===64&&t===-1)break;y(t<<2|E>>4);e!=64&&(y(E<<4&240|e>>2),C!=64&&y(e<<6&192|C))}};
oV6=function(){if(!QR){QR={};for(var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),y=["+/=","+/","-_=","-_.","-_"],l=0;l<5;l++){var q=p.concat(y[l].split(""));ORj[l]=q;for(var t=0;t<q.length;t++){var E=q[t];QR[E]===void 0&&(QR[E]=t)}}}};var FLj=typeof Uint8Array!=="undefined",Mjt=!_.P0&&typeof btoa==="function",Vj8=/[-_.]/g,AR5={"-":"+",_:"/",".":"="},NO={};var LU,Ism;LU=function(p,y){if(y!==NO)throw Error("J");this.JSC$8753_value_=p;if(p!=null&&p.length===0)throw Error("I");};
_.DV=function(){return Y2L||(Y2L=new LU(null,NO))};
Ism=function(p){return new Uint8Array(Mdu(p)||0)};
LU.prototype.isEmpty=function(){return this.JSC$8753_value_==null};
LU.prototype.sizeBytes=function(){var p=Mdu(this);return p?p.length:0};
var Mdu=function(p){if(NO!==NO)throw Error("J");var y=p.JSC$8753_value_;y==null||FLj&&y!=null&&y instanceof Uint8Array||(typeof y==="string"?y=g6j(y):(_.tm(y),y=null));return y==null?y:p.JSC$8753_value_=y},Y2L;var KLt=void 0;var MO=typeof Symbol==="function"&&typeof Symbol()==="symbol",pej=GM("jas",void 0,!0),AZt=GM(void 0,"0di"),c6=GM(void 0,"1oa"),DA=GM(void 0,Symbol()),DOa=GM(void 0,"0ub"),Trc=GM(void 0,"0ubs"),EXo=GM(void 0,"0ubsb"),E1u=GM(void 0,"0actk"),Sd=GM("m_m","messagePrototypeMarker",!0),Y$g=GM(void 0,"vps"),LPt=GM();var i8j,wtl,Y1,y0o;i8j={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};wtl=Object.defineProperties;_.gr=MO?pej:"internalArrayState";y0o=[];wr(y0o,7);Y1=Object.freeze(y0o);var Fw={},SB={},lW8=function(p,y,l){this.iterable=p;this.mapper=y;this.thisArg=l};
lW8.prototype.next=function(){var p=this.iterable.next();p.done||(p.value=this.mapper.call(this.thisArg,p.value));return p};
lW8.prototype[Symbol.iterator]=function(){return this};
var qjo=Object.freeze({}),BU={};_.sm_=vU(function(p){return p!==null&&p!==void 0});var H8m=vU(function(p){return typeof p==="number"}),Dam=vU(function(p){return typeof p==="string"}),xaR=vU(function(p){return typeof p==="boolean"}),t5a=vU(function(p){return p!=null&&typeof p==="object"&&typeof p.then==="function"}),rJl=vU(function(p){return typeof p==="function"}),Re=vU(function(p){return!!p&&(typeof p==="object"||typeof p==="function")});var Tmm=typeof _.l_.BigInt==="function"&&typeof _.l_.BigInt(0)==="bigint";var $Ot=vU(function(p){return Tmm?p>=Ejt&&p<=J0g:p[0]==="-"?Bmu(p,c0l):Bmu(p,eLo)}),c0l=Number.MIN_SAFE_INTEGER.toString(),Ejt=Tmm?BigInt(Number.MIN_SAFE_INTEGER):void 0,eLo=Number.MAX_SAFE_INTEGER.toString(),J0g=Tmm?BigInt(Number.MAX_SAFE_INTEGER):void 0;var hLt=typeof Uint8Array.prototype.slice==="function",O$=0,Yx=0,efR;var $1,ML,Eu,g6,yZo;$1=typeof BigInt==="function"?BigInt.asIntN:void 0;_.QO=typeof BigInt==="function"?BigInt.asUintN:void 0;ML=Number.isSafeInteger;Eu=Number.isFinite;g6=Math.trunc;yZo=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var IVc={};var rZo={},Cht=function(){try{var p=function(){return iBL(Map,[],this.constructor)};
_.A(p,Map);G6(new p);return!1}catch(y){return!0}}(),Kq=function(){this.JSC$8773_map_=new Map};
_.J=Kq.prototype;_.J.get=function(p){return this.JSC$8773_map_.get(p)};
_.J.set=function(p,y){this.JSC$8773_map_.set(p,y);this.size=this.JSC$8773_map_.size;return this};
_.J.delete=function(p){p=this.JSC$8773_map_.delete(p);this.size=this.JSC$8773_map_.size;return p};
_.J.clear=function(){this.JSC$8773_map_.clear();this.size=this.JSC$8773_map_.size};
_.J.has=function(p){return this.JSC$8773_map_.has(p)};
_.J.entries=function(){return this.JSC$8773_map_.entries()};
_.J.keys=function(){return this.JSC$8773_map_.keys()};
_.J.values=function(){return this.JSC$8773_map_.values()};
_.J.forEach=function(p,y){return this.JSC$8773_map_.forEach(p,y)};
Kq.prototype[Symbol.iterator]=function(){return this.entries()};
var Td=function(){if(Cht)return Object.setPrototypeOf(Kq.prototype,Map.prototype),Object.defineProperties(Kq.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Kq;var p=function(){return iBL(Map,[],this.constructor)};
_.A(p,Map);return p}(),k1=function(p,y,l,q){l=l===void 0?gx8:l;
q=q===void 0?gx8:q;var t=Td.call(this)||this;t.arrayState=p[_.gr]|0;t.valueCtor=y;t.keyToApi=l;t.valueToApi=t.valueCtor?KPc:q;for(var E=0;E<p.length;E++){var e=p[E],C=l(e[0],!1,!0),u=e[1];y?u===void 0&&(u=null):u=q(e[1],!1,!0,void 0,void 0,t.arrayState);Td.prototype.set.call(t,C,u)}return t};
_.A(k1,Td);var um8=function(p){if(p.arrayState&2)throw Error("N");};
_.J=k1.prototype;_.J.clear=function(){um8(this);Td.prototype.clear.call(this)};
_.J.delete=function(p){um8(this);return Td.prototype.delete.call(this,this.keyToApi(p,!0,!1))};
_.J.entries=function(){if(this.valueCtor){var p=Td.prototype.keys.call(this);p=new lW8(p,wU5,this)}else p=Td.prototype.entries.call(this);return p};
_.J.values=function(){if(this.valueCtor){var p=Td.prototype.keys.call(this);p=new lW8(p,k1.prototype.get,this)}else p=Td.prototype.values.call(this);return p};
_.J.forEach=function(p,y){this.valueCtor?Td.prototype.forEach.call(this,function(l,q,t){p.call(y,t.get(q),q,t)}):Td.prototype.forEach.call(this,p,y)};
_.J.set=function(p,y){um8(this);p=this.keyToApi(p,!0,!1);return p==null?this:y==null?(Td.prototype.delete.call(this,p),this):Td.prototype.set.call(this,p,this.valueToApi(y,!0,!0,this.valueCtor,!1,this.arrayState))};
_.J.has=function(p){return Td.prototype.has.call(this,this.keyToApi(p,!1,!1))};
_.J.get=function(p){p=this.keyToApi(p,!1,!1);var y=Td.prototype.get.call(this,p);if(y!==void 0){var l=this.valueCtor;return l?(l=this.valueToApi(y,!1,!0,l,this.callToMutableOnAccess,this.arrayState),l!==y&&Td.prototype.set.call(this,p,l),l):y}};
k1.prototype[Symbol.iterator]=function(){return this.entries()};
k1.prototype.toJSON=void 0;var iU8;var vx_=function(){},Bro=function(p,y){for(var l in p)!isNaN(l)&&y(p,+l,p[l])},XUL=function(p){var y=new vx_;
Bro(p,function(l,q,t){y[q]=l9(t)});
y.reviveUnknownFields=p.reviveUnknownFields;return y},kM5={reviveIntoImmutable:!0};var fV5;var pR8,yma;var RL8,s3,Ap,Q6,Wyu,NY,V6,aWm,mdc,xt,Udg,B0,dl,Oa;RL8=_.Xi(0);_.wl={};_.i8=function(p,y,l,q,t){y=s3(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y,l,t);if(y!==null||q&&p.noLegacyNull!==SB)return y};
s3=function(p,y,l,q){if(y===-1)return null;var t=y+(l?0:-1),E=p.length-1;if(!(E<1+(l?0:-1))){if(t>=E){var e=p[E];if(e!=null&&typeof e==="object"&&e.constructor===Object){l=e[y];var C=!0}else if(t===E)l=e;else return}else l=p[t];if(q&&l!=null){q=q(l);if(q==null)return q;if(!Object.is(q,l))return C?e[y]=q:p[t]=q,q}return l}};
_.mj=function(p,y,l,q){Ou(p);var t=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;zd(t,t[_.gr]|0,y,l,q);return p};
_.rl=function(p,y,l){p=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return n1t(p,p[_.gr]|0,y,l)!==void 0};
_.S6=function(p,y,l,q){var t=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return n1t(t,t[_.gr]|0,y,Q6(p,q,l))!==void 0};
_.RY=function(p){return p===qjo?2:4};
_.Fc=function(p,y){p=_.i8(p,y,void 0,void 0,aAc);return p==null?_.DV():p};
Ap=function(p,y,l,q){Ou(p);var t=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=t[_.gr]|0;if(q==null){var e=$Lg(t);if(jTL(e,t,E,l)===y)e.set(l,0);else return p}else E=b7a(t,E,l,y);zd(t,E,y,q);return p};
_.Lq=function(p,y,l,q){var t=p[_.gr]|0,E=fU(t);t=b7a(p,t,l,y,E);zd(p,t,y,q,E)};
Q6=function(p,y,l){return _.kt(p,y)===l?l:-1};
_.kt=function(p,y){p=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jTL($Lg(p),p,void 0,y,void 0)};
Wyu=function(p,y,l){var q=p[_.gr]|0,t=fU(q),E=s3(p,l,t);if(E!=null&&E[Sd]===Fw){if(!Fi(E))return d6(E),E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var e=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(E)&&(e=E);if(e){var C=e[_.gr]|0;C&2&&(e=Xw(e,C))}e=quu(e,y,!0);e!==E&&zd(p,q,l,e,t);return e};
_.MF=function(p,y,l,q){var t=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=t[_.gr]|0;y=n1t(t,E,y,l,q);if(y==null)return y;E=t[_.gr]|0;if(!Fi(p,E)){var e=QvR(y);e!==y&&(d6(p)&&(t=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=t[_.gr]|0),y=e,E=zd(t,E,l,y,q),oT(t,E))}return y};
_.u4=function(p,y,l,q){var t=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Gdt(p,t,t[_.gr]|0,y,l,q,!1,!0)};
_.gu=function(p,y,l,q){l=P9j(l);_.mj(p,y,l,q);l&&!Fi(l)&&oT(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return p};
_.Qa=function(p,y,l,q){q=P9j(q);Ap(p,y,l,q);q&&!Fi(q)&&oT(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return p};
NY=function(p,y,l){Ou(p);var q=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=q[_.gr]|0;if(l==null)return zd(q,t,y),p;for(var E=l===Y1?7:l[_.gr]|0,e=E,C=ya(E),u=C||Object.isFrozen(l),a=!0,m=!0,U=0;U<l.length;U++){var b=l[U];C||(b=Fi(b),a&&(a=!b),m&&(m=b))}C||(E=a?13:5,E=m?E&-4097:E|4096);u&&E===e||(l=l9(l),e=0,E=IT(E,t));E!==e&&wr(l,E);t=zd(q,t,y,l);2&E||!(4096&E||16&E)||oT(q,t);return p};
V6=function(p,y,l,q){Z7j(p,y,l,q);return p};
aWm=function(p,y,l){Z7j(p,y,DY,void 0,l,1,!0);return p};
_.H0=function(p,y,l){p=_.i8(p,y,void 0,l);y=typeof p;p=p==null?p:y==="bigint"?_.Xi((0,_.QO)(64,p)):_.Jm(p)?y==="string"?_.UOR(p):_.aV5(p):void 0;return p};
_.T6=function(p,y){var l=l===void 0?!1:l;var q;return(q=_.pUu(_.i8(p,y)))!=null?q:l};
_.W9=function(p,y,l){l=l===void 0?0:l;var q;return(q=_.aT(_.i8(p,y)))!=null?q:l};
mdc=function(p,y){var l=l===void 0?0:l;p=_.q$6(_.i8(p,y));return p!=null?p:l};
xt=function(p,y,l){l=l===void 0?RL8:l;var q;return(q=_.nxa(_.i8(p,y)))!=null?q:l};
Udg=function(p){var y=y===void 0?RL8:y;var l;return(l=_.H0(p,23))!=null?l:y};
B0=function(p,y){var l=l===void 0?0:l;var q;return(q=_.i8(p,y,void 0,void 0,_.Yct))!=null?q:l};
_.fq=function(p,y,l,q){l=l===void 0?"":l;var t;return(t=_.r6(_.i8(p,y,q)))!=null?t:l};
_.v0=function(p,y){var l=l===void 0?0:l;var q;return(q=_.C7(_.i8(p,y)))!=null?q:l};
dl=function(p,y){var l=l===void 0?"0":l;p=bUj(_.i8(p,y),!0);return p!=null?p:l};
Oa=function(p,y,l){return _.fq(p,Q6(p,l,y))};
_.oN=function(p,y,l,q){return _.MF(p,y,Q6(p,q,l),void 0)};
_.Vy=function(p,y){return _.r6(_.i8(p,y,void 0,_.wl))};
_.jr=function(p,y,l){return _.mj(p,y,Ita(l))};
_.D_=function(p,y,l){return _.E3(p,y,Ita(l),!1)};
_.z6=function(p,y,l){return _.mj(p,y,_.WR(l))};
_.wJ=function(p,y,l){return _.mj(p,y,ZA(l))};
_.Fq=function(p,y,l){return _.mj(p,y,i9(l))};
_.J2=function(p,y,l,q){return _.E3(p,y,i9(l),"",q)};
_.a7=function(p,y,l){return _.mj(p,y,l==null?l:_.hm(l))};
_.Yt=function(p,y,l){return _.E3(p,y,l==null?l:_.hm(l),0)};var eZ=function(p,y,l){this.buffer=p;if(l&&!y)throw Error();this.JSC$8785_isImmutable=y};var $d6=function(p,y,l,q){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8788_start_=0;this.init(p,y,l,q)},IN,bJu,njt,Phu,O7t,jmo;
_.J=$d6.prototype;_.J.init=function(p,y,l,q){var t=q===void 0?{}:q;q=t.aliasBytesFields===void 0?!1:t.aliasBytesFields;t=t.treatNewDataAsImmutable===void 0?!1:t.treatNewDataAsImmutable;this.aliasBytesFields=q;this.treatNewDataAsImmutable=t;p&&(p=Vd8(p,this.treatNewDataAsImmutable),this.bytes_=p.buffer,this.bytesAreImmutable_=p.JSC$8785_isImmutable,this.JSC$8788_start_=y||0,this.end_=l!==void 0?this.JSC$8788_start_+l:this.bytes_.length,this.cursor_=this.JSC$8788_start_)};
_.J.free=function(){this.clear();jmo.length<100&&jmo.push(this)};
_.J.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8788_start_=0;this.aliasBytesFields=!1};
_.J.reset=function(){this.cursor_=this.JSC$8788_start_};
_.J.atEnd=function(){return this.cursor_==this.end_};
_.pj=function(p,y){var l=0,q=0,t=0,E=p.bytes_,e=p.cursor_;do{var C=E[e++];l|=(C&127)<<t;t+=7}while(t<32&&C&128);if(t>32)for(q|=(C&127)>>4,t=3;t<32&&C&128;t+=7)C=E[e++],q|=(C&127)<<t;IN(p,e);if(!(C&128))return y(l>>>0,q>>>0);throw Error();};
IN=function(p,y){p.cursor_=y;if(y>p.end_)throw Error();};
_.y0=function(p){var y=p.bytes_,l=p.cursor_,q=y[l++],t=q&127;if(q&128&&(q=y[l++],t|=(q&127)<<7,q&128&&(q=y[l++],t|=(q&127)<<14,q&128&&(q=y[l++],t|=(q&127)<<21,q&128&&(q=y[l++],t|=q<<28,q&128&&y[l++]&128&&y[l++]&128&&y[l++]&128&&y[l++]&128&&y[l++]&128)))))throw Error();IN(p,l);return t};
_.lk=function(p){var y=p.bytes_,l=p.cursor_,q=y[l],t=y[l+1],E=y[l+2];y=y[l+3];IN(p,p.cursor_+4);return(q<<0|t<<8|E<<16|y<<24)>>>0};
bJu=function(p){var y=_.lk(p);p=_.lk(p);return Xtj(y,p)};
njt=function(p){var y=_.lk(p),l=_.lk(p);p=(l>>31)*2+1;var q=l>>>20&2047;y=4294967296*(l&1048575)+y;return q==2047?y?NaN:p*Infinity:q==0?p*4.9E-324*y:p*Math.pow(2,q-1075)*(y+4503599627370496)};
_.Gzo=function(p){for(var y=0,l=p.cursor_,q=l+10,t=p.bytes_;l<q;){var E=t[l++];y|=E;if((E&128)===0)return IN(p,l),!!(y&127)}throw Error();};
Phu=function(p,y){if(y<0)throw Error();var l=p.cursor_;y=l+y;if(y>p.end_)throw Error();p.cursor_=y;return l};
O7t=function(p,y){if(y==0)return _.DV();var l=Phu(p,y);p.aliasBytesFields&&p.bytesAreImmutable_?l=p.bytes_.subarray(l,l+y):(p=p.bytes_,y=l+y,l=l===y?new Uint8Array(0):hLt?p.slice(l,y):new Uint8Array(p.subarray(l,y)));return l.length==0?_.DV():new LU(l,NO)};
jmo=[];var ZJa=function(p,y,l,q){if(jmo.length){var t=jmo.pop();t.init(p,y,l,q);p=t}else p=new $d6(p,y,l,q);this.decoder_=p;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;A0u(this,q)},A0u=function(p,y){y=y===void 0?{}:y;
p.discardUnknownFields=y.discardUnknownFields===void 0?!1:y.discardUnknownFields},Yuo=function(p,y,l,q){if(M5a.length){var t=M5a.pop();
A0u(t,q);t.decoder_.init(p,y,l,q);return t}return new ZJa(p,y,l,q)},v1L,dLR,V5o,M5a;
ZJa.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;M5a.length<100&&M5a.push(this)};
ZJa.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
v1L=function(p){if(p.decoder_.atEnd())return!1;p.fieldCursor_=p.decoder_.cursor_;var y=_.y0(p.decoder_)>>>0,l=y>>>3;y&=7;if(!(y>=0&&y<=5))throw Error();if(l<1)throw Error();p.nextField_=l;p.nextWireType_=y;return!0};
dLR=function(p){switch(p.nextWireType_){case 0:p.nextWireType_!=0?dLR(p):_.Gzo(p.decoder_);break;case 1:p=p.decoder_;IN(p,p.cursor_+8);break;case 2:if(p.nextWireType_!=2)dLR(p);else{var y=_.y0(p.decoder_)>>>0;p=p.decoder_;IN(p,p.cursor_+y)}break;case 5:p=p.decoder_;IN(p,p.cursor_+4);break;case 3:y=p.nextField_;do{if(!v1L(p))throw Error();if(p.nextWireType_==4){if(p.nextField_!=y)throw Error();break}dLR(p)}while(1);break;default:throw Error();}};
V5o=function(p,y,l){var q=p.decoder_.end_,t=_.y0(p.decoder_)>>>0;t=p.decoder_.cursor_+t;var E=t-q;E<=0&&(p.decoder_.end_=t,l(y,p,void 0,void 0,void 0),E=t-p.decoder_.cursor_);if(E)throw Error();p.decoder_.cursor_=t;p.decoder_.end_=q};
_.gjt=function(p){var y=_.y0(p.decoder_)>>>0;p=p.decoder_;var l=Phu(p,y);p=p.bytes_;if(EVl){var q=p,t;(t=tbt)||(t=tbt=new TextDecoder("utf-8",{fatal:!0}));y=l+y;q=l===0&&y===q.length?q:q.subarray(l,y);try{var E=t.decode(q)}catch(a){if(s66===void 0){try{t.decode(new Uint8Array([128]))}catch(m){}try{t.decode(new Uint8Array([97])),s66=!0}catch(m){s66=!1}}!s66&&(tbt=void 0);throw a;}}else{E=l;y=E+y;l=[];for(var e=null,C,u;E<y;)C=p[E++],C<128?l.push(C):C<224?E>=y?yu():(u=p[E++],C<194||(u&192)!==128?(E--,
yu()):l.push((C&31)<<6|u&63)):C<240?E>=y-1?yu():(u=p[E++],(u&192)!==128||C===224&&u<160||C===237&&u>=160||((t=p[E++])&192)!==128?(E--,yu()):l.push((C&15)<<12|(u&63)<<6|t&63)):C<=244?E>=y-2?yu():(u=p[E++],(u&192)!==128||(C<<28)+(u-144)>>30!==0||((t=p[E++])&192)!==128||((q=p[E++])&192)!==128?(E--,yu()):(C=(C&7)<<18|(u&63)<<12|(t&63)<<6|q&63,C-=65536,l.push((C>>10&1023)+55296,(C&1023)+56320))):yu(),l.length>=8192&&(e=pt6(e,l),l.length=0);E=pt6(e,l)}return E};
_.Qm5=function(p){var y=_.y0(p.decoder_)>>>0;return O7t(p.decoder_,y)};
_.Kym=function(p,y,l){var q=_.y0(p.decoder_)>>>0;for(q=p.decoder_.cursor_+q;p.decoder_.cursor_<q;)l.push(y(p.decoder_))};
M5a=[];var wej=function(p,y){this.JSC$8795_lo=p>>>0;this.JSC$8795_hi=y>>>0},r06=function(p){if(!p)return iJg||(iJg=new wej(0,0));
if(!/^\d+$/.test(p))return null;z56(p);return new wej(O$,Yx)},iJg,Rfg=function(p,y){this.JSC$8797_lo=p>>>0;
this.JSC$8797_hi=y>>>0},Cft=function(p){if(!p)return Sjj||(Sjj=new Rfg(0,0));
if(!/^-?\d+$/.test(p))return null;z56(p);return new Rfg(O$,Yx)},Sjj;var qZ=function(){this.JSC$8799_buffer_=[]},uXl,Fyo;
qZ.prototype.length=function(){return this.JSC$8799_buffer_.length};
qZ.prototype.end=function(){var p=this.JSC$8799_buffer_;this.JSC$8799_buffer_=[];return p};
uXl=function(p,y,l){for(;l>0||y>127;)p.JSC$8799_buffer_.push(y&127|128),y=(y>>>7|l<<25)>>>0,l>>>=7;p.JSC$8799_buffer_.push(y)};
Fyo=function(p,y){for(;y>127;)p.JSC$8799_buffer_.push(y&127|128),y>>>=7;p.JSC$8799_buffer_.push(y)};
_.Wwt=function(p,y){if(y>=0)Fyo(p,y);else{for(var l=0;l<9;l++)p.JSC$8799_buffer_.push(y&127|128),y>>=7;p.JSC$8799_buffer_.push(1)}};
qZ.prototype.writeUint8=function(p){this.JSC$8799_buffer_.push(p>>>0&255)};
_.GB=function(p,y){p.JSC$8799_buffer_.push(y>>>0&255);p.JSC$8799_buffer_.push(y>>>8&255);p.JSC$8799_buffer_.push(y>>>16&255);p.JSC$8799_buffer_.push(y>>>24&255)};
qZ.prototype.writeInt8=function(p){this.JSC$8799_buffer_.push(p>>>0&255)};var LyR,W6,mmj,jXg;LyR=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new qZ};
W6=function(p,y){y.length!==0&&(p.blocks_.push(y),p.totalLength_+=y.length)};
_.wR5=function(p,y){_.bf(p,y,2);y=p.encoder_.end();W6(p,y);y.push(p.totalLength_);return y};
_.i7g=function(p,y){var l=y.pop();for(l=p.totalLength_+p.encoder_.length()-l;l>127;)y.push(l&127|128),l>>>=7,p.totalLength_++;y.push(l);p.totalLength_++};
_.bf=function(p,y,l){Fyo(p.encoder_,y*8+l)};
mmj=function(p,y,l){if(l!=null){switch(typeof l){case "string":r06(l)}_.bf(p,y,1);switch(typeof l){case "number":p=p.encoder_;ftt(l);_.GB(p,O$);_.GB(p,Yx);break;case "bigint":l=BigInt.asUintN(64,l);l=new wej(Number(l&BigInt(4294967295)),Number(l>>BigInt(32)));p=p.encoder_;y=l.JSC$8795_hi;_.GB(p,l.JSC$8795_lo);_.GB(p,y);break;default:l=r06(l),p=p.encoder_,y=l.JSC$8795_hi,_.GB(p,l.JSC$8795_lo),_.GB(p,y)}}};
jXg=function(p,y,l){_.bf(p,y,2);Fyo(p.encoder_,l.length);W6(p,p.encoder_.end());W6(p,l)};var g1t,DdL,HJt,BX8,fW5;g1t=hE();_.kzR=hE();_.NXo=hE();DdL=hE();HJt=hE();_.TX5=hE();_.sf=hE();_.xdo=hE();BX8=hE();fW5=hE();_.vjc=hE();_.Xeu=hE();_.RX=function(p,y,l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p,y,l)};
_.RX.prototype.toJSON=function(){return BR(this)};
_.RX.prototype.serialize=function(p){return JSON.stringify(BR(this,p))};
var VZR=function(p,y){if(y==null||y=="")return new p;y=JSON.parse(y);if(!Array.isArray(y))throw Error("V");return new p(Sc8(y))};
_.RX.prototype.getExtension=function(p){HUR(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p.fieldIndex);Nro(this,p.fieldIndex);return p.ctor?p.isRepeated?p.getExtensionFn(this,p.ctor,p.fieldIndex,_.RY(),p.JSC$8810_hasMessageId):p.getExtensionFn(this,p.ctor,p.fieldIndex,p.JSC$8810_hasMessageId):p.isRepeated?p.getExtensionFn(this,p.fieldIndex,_.RY(),p.JSC$8810_hasMessageId):p.getExtensionFn(this,p.fieldIndex,p.defaultValue,p.JSC$8810_hasMessageId)};
_.RX.prototype.clone=function(){var p=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=p[_.gr]|0;return C9_(this,p,y)?hVg(this,p,!0):new this.constructor(Xw(p,y,!1))};
_.RX.prototype[Sd]=Fw;_.RX.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var CO=function(p,y,l){this.$$binaryReaderFn=p;this.$$binaryWriterFn=y;p=NL(g1t);this.$$isMsg=!!p&&l===p||!1},kdj=QTo(function(p,y,l,q,t){if(p.nextWireType_!==2)return!1;
V5o(p,Wyu(y,q,l),t);return!0},rm5),N6c=QTo(function(p,y,l,q,t){if(p.nextWireType_!==2)return!1;
V5o(p,Wyu(y,q,l),t);return!0},rm5),p65=Symbol(),T6t=Symbol(),fA8=Symbol(),q3t=Symbol(),o1u=Symbol(),Su_,Fiu;var AEa,ddL,OJ6,ojc,zLt,Yjt,IWt,pcm,yW5,lGc,qHt,tTc,EUL,cWu,e6a;AEa=function(p,y){var l=new LyR;sXc(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l,uf(p65,IAo,yE6,y));W6(l,l.encoder_.end());p=new Uint8Array(l.totalLength_);y=l.blocks_;for(var q=y.length,t=0,E=0;E<q;E++){var e=y[E];p.set(e,t);t+=e.length}l.blocks_=[p];return p};
ddL=_.aX(function(p,y,l){if(p.nextWireType_!==1)return!1;_.U3(y,l,njt(p.decoder_));return!0},hfg,fW5);
OJ6=_.aX(function(p,y,l,q){if(p.nextWireType_!==1)return!1;_.Lq(y,l,q,njt(p.decoder_));return!0},hfg,fW5);
ojc=_.aX(function(p,y,l,q){if(p.nextWireType_!==5)return!1;var t=_.lk(p.decoder_);p=(t>>31)*2+1;var E=t>>>23&255;t&=8388607;_.Lq(y,l,q,E==255?t?NaN:p*Infinity:E==0?p*1.401298464324817E-45*t:p*Math.pow(2,E-150)*(t+8388608));return!0},function(p,y,l){y=_.Yct(y);
y!=null&&(_.bf(p,l,5),p=p.encoder_,l=efR||(efR=new DataView(new ArrayBuffer(8))),l.setFloat32(0,+y,!0),Yx=0,O$=l.getUint32(0,!0),_.GB(p,O$))},BX8);
_.tL=_.aX(function(p,y,l){if(p.nextWireType_!==0)return!1;_.U3(y,l,_.pj(p.decoder_,da8));return!0},_.P6,_.sf);
zLt=_.aX(function(p,y,l){if(p.nextWireType_!==0)return!1;p=_.pj(p.decoder_,da8);_.U3(y,l,p===0?void 0:p);return!0},_.P6,_.sf);
Yjt=_.aX(function(p,y,l,q){if(p.nextWireType_!==0)return!1;_.Lq(y,l,q,_.pj(p.decoder_,da8));return!0},_.P6,_.sf);
_.Ef=_.aX(function(p,y,l){if(p.nextWireType_!==0)return!1;_.U3(y,l,_.y0(p.decoder_));return!0},al_,DdL);
IWt=_.aX(function(p,y,l){if(p.nextWireType_!==0)return!1;p=_.y0(p.decoder_);_.U3(y,l,p===0?void 0:p);return!0},al_,DdL);
pcm=_.aX(function(p,y,l,q){if(p.nextWireType_!==0)return!1;_.Lq(y,l,q,_.y0(p.decoder_));return!0},al_,DdL);
yW5=_.aX(function(p,y,l){if(p.nextWireType_!==1)return!1;_.U3(y,l,bJu(p.decoder_));return!0},_.Um_,_.xdo);
lGc=_.cEm(function(p,y,l){if(p.nextWireType_!==1&&p.nextWireType_!==2)return!1;y=_.UL6(y,y[_.gr]|0,l);p.nextWireType_==2?_.Kym(p,bJu,y):y.push(bJu(p.decoder_));return!0},function(p,y,l){y=_.JEl(PNj,y,!1);
if(y!=null)for(var q=0;q<y.length;q++)mmj(p,l,y[q])},_.xdo);
_.JL=_.aX(function(p,y,l){if(p.nextWireType_!==0)return!1;_.U3(y,l,_.Gzo(p.decoder_));return!0},_.$mt,_.kzR);
qHt=_.aX(function(p,y,l,q){if(p.nextWireType_!==0)return!1;_.Lq(y,l,q,_.Gzo(p.decoder_));return!0},_.$mt,_.kzR);
_.cZ=_.aX(function(p,y,l){if(p.nextWireType_!==2)return!1;_.U3(y,l,_.gjt(p));return!0},_.bOg,_.NXo);
_.sI5=_.aX(function(p,y,l,q){if(p.nextWireType_!==2)return!1;_.Lq(y,l,q,_.gjt(p));return!0},_.bOg,_.NXo);
tTc=_.cEm(function(p,y,l){if(p.nextWireType_!==2)return!1;p=_.gjt(p);_.UL6(y,y[_.gr]|0,l).push(p);return!0},function(p,y,l){y=_.JEl(_.r6,y,!0);
if(y!=null)for(var q=0;q<y.length;q++){var t=p,E=l,e=y[q];e!=null&&jXg(t,E,sgc(e))}},_.NXo);
EUL=void 0;EUL=EUL===void 0?g1t:EUL;_.ez=new CO(function(p,y,l,q,t){if(p.nextWireType_!==2)return!1;q=quu(void 0,q,!0);_.UL6(y,y[_.gr]|0,l).push(q);V5o(p,q,t);return!0},function(p,y,l,q,t){if(Array.isArray(y))for(var E=0;E<y.length;E++)nXg(p,y[E],l,q,t)},EUL);
_.hL=QTo(function(p,y,l,q,t,E){if(p.nextWireType_!==2)return!1;var e=y[_.gr]|0;b7a(y,e,E,l,fU(e));y=Wyu(y,q,l);V5o(p,y,t);return!0},nXg);
_.JWa=_.aX(function(p,y,l){if(p.nextWireType_!==2)return!1;_.U3(y,l,_.Qm5(p));return!0},_.GBl,_.vjc);
cWu=_.aX(function(p,y,l,q){if(p.nextWireType_!==2)return!1;_.Lq(y,l,q,_.Qm5(p));return!0},_.GBl,_.vjc);
e6a=_.aX(function(p,y,l,q){if(p.nextWireType_!==0)return!1;_.Lq(y,l,q,_.y0(p.decoder_)>>>0);return!0},function(p,y,l){y=_.q$6(y);
y!=null&&y!=null&&(_.bf(p,l,0),Fyo(p.encoder_,y))},HJt);
_.Cj=_.aX(function(p,y,l){if(p.nextWireType_!==0)return!1;_.U3(y,l,_.y0(p.decoder_));return!0},_.Pf6,_.Xeu);var u8l=function(){var p=h6_,y=CE5;this.fieldIndex=175237375;this.ctor=y;this.isRepeated=0;this.getExtensionFn=_.MF;this.defaultValue=void 0;this.JSC$8810_hasMessageId=p.messageId!=null?BU:void 0};
u8l.prototype.register=function(){G6(this)};var R6_=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(R6_,_.RX);var Wht=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Wht,_.RX);var Kwc=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Kwc,_.RX);var aGt=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(aGt,_.RX);var mP6=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(mP6,_.RX);var UPt=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(UPt,_.RX);var $Pm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A($Pm,_.RX);$Pm.prototype.getData=function(){return _.Fc(this,2)};var jIu=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(jIu,_.RX);var bij=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(bij,_.RX);bij.prototype.getStyle=function(){return _.MF(this,R6_,1)};var Va=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Va,_.RX);Va.prototype.getPayloadCase=function(){return _.kt(this,KO)};
Va.prototype.getStyle=function(){return _.oN(this,bij,6,KO)};
var nUc=function(){var p=new Va,y=new mP6;return _.Qa(p,7,KO,y)},G0u=function(){var p=new Va,y=new UPt;
return _.Qa(p,8,KO,y)},KO=[1,
2,3,4,5,6,7,8];var PE8=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(PE8,_.RX);var AWo=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(AWo,_.RX);var Zi_=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Zi_,_.RX);var MT_=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(MT_,_.RX);var VTg=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(VTg,_.RX);var gUm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(gUm,_.RX);var QIL=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(QIL,_.RX);var Kh6=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Kh6,_.RX);Kh6.prototype.getData=function(){return _.Fc(this,2)};var wcg=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(wcg,_.RX);var QXL=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(QXL,_.RX);QXL.prototype.getPayloadCase=function(){return _.kt(this,RC)};
var RC=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var WZ=function(p,y){p=Error.call(this,p);this.message=p.message;"stack"in p&&(this.stack=p.stack);this.code=y===void 0?2:y};
_.A(WZ,Error);var ii_=Promise;var rWL=function(p){this.channelPromise=p};
rWL.prototype.send=function(p,y,l){this.channelPromise.then(function(q){q.send(p,y,l)})};var SHa=function(p,y){this.data=p;this.channel=y};
SHa.prototype.reply=function(p,y,l){this.channel.send(p,y,l)};var Fha=function(p){this.JSC$8876_port_=p};
Fha.prototype.send=function(p,y,l){l=l===void 0?[]:l;var q=new MessageChannel;Lh8(q.port1,y);this.JSC$8876_port_.postMessage(p,[q.port2].concat(l))};
var k0u=function(p,y){Lh8(p,y);return new Fha(p)},Lh8=function(p,y){y&&(p.onmessage=function(l){y(new SHa(l.data,k0u(l.ports[0])))})};var NfR=function(p){this.verifier_=p};
NfR.prototype.verify=function(p){return this.verifier_(p)};
var DPt=function(p){var y=Object.create(null);(typeof p==="string"?[p]:p).forEach(function(l){if(l==="null")throw Error("X");y[l]=!0});
return function(l){return y[l]===!0}};_.Hic=function(){if(!_.l_.addEventListener||!Object.defineProperty)return!1;var p=!1,y=Object.defineProperty({},"passive",{get:function(){p=!0}});
try{var l=function(){};
_.l_.addEventListener("test",l,y);_.l_.removeEventListener("test",l,y)}catch(q){}return p}();var Tfg;_.aC=function(p){var y=p.destination;var l=p.iframe;var q=p.origin;var t=p.channelName===void 0?"ZNWN1d":p.channelName;var E=p.onMessage===void 0?void 0:p.onMessage;p=p.onEstablished===void 0?void 0:p.onEstablished;return Tfg({destination:y,getSource:function(){return l.contentWindow},
originVerifier:q instanceof NfR?q:typeof q==="function"?new NfR(q):new NfR(DPt(q)),channelName:t,onMessage:E,onEstablished:p})};
Tfg=function(p){var y=p.destination;var l=p.getSource;var q=p.originVerifier;var t=p.token===void 0?void 0:p.token;var E=p.channelName;var e=p.onMessage===void 0?void 0:p.onMessage;var C=p.onEstablished===void 0?void 0:p.onEstablished;return new rWL(new ii_(function(u,a){var m=function(U){U.source&&U.source===l()&&q.verify(U.origin)&&(U.data.n||U.data)===E&&(y.removeEventListener("message",m,!1),t&&U.data.t!==t?a(Error("Y`"+E+"`"+t+"`"+U.data.t)):(u(k0u(U.ports[0],e)),C&&C(U)))};
y.addEventListener("message",m,!1)}))};var xP6=function(p){try{p()}catch(y){qa(y)}};var fGL=function(p){var y=this;var l=p.getMessageType;var q=p.onUnregisteredMessage===void 0?function(){}:p.onUnregisteredMessage;
var t=p.onBeforeRegisteredMessage===void 0?function(){}:p.onBeforeRegisteredMessage;
p=p.onAfterRegisteredMessage===void 0?function(){}:p.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=l;this.onUnregisteredMessage_=q;this.onBeforeRegisteredMessage_=t;this.onAfterRegisteredMessage_=p;this.onMessage=function(E){return Bf6(y,E)}};
fGL.prototype.register=function(p,y){this.registry_.set(p,y);return this};
var Bf6=function(p,y){var l=p.getMessageType_(y.data),q=p.registry_.get(l);q?(xP6(function(){return p.onBeforeRegisteredMessage_(y,l)}),xP6(function(){return q(y)}),xP6(function(){return p.onAfterRegisteredMessage_(y,l)})):xP6(function(){return p.onUnregisteredMessage_(y,l)})};var vUt=function(p){this.JSC$8893_channel_=p},dP_,Oi_;
vUt.prototype.send=function(p,y,l){this.JSC$8893_channel_.send(BR(p),y,l)};
_.Xc5=function(p,y){return function(l){var q=new p(l.data);return y(new SHa(q,l.channel))}};
dP_=function(p){return function(y){return p(new SHa(y.data,new vUt(y.channel)))}};
Oi_=function(p,y){return dP_(_.Xc5(p,y))};var oUu=function(p,y,l,q){this.registry=p;this.delegate=y;this.receiveMessageConstructor=l;this.createInitMessage=q;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},gXj=function(p){var y=new fGL({getMessageType:p.getPayloadCase});
return new oUu(y,new vUt(_.aC({iframe:p.child,destination:window,origin:p.origin,channelName:p.channelName,onMessage:Oi_(p.receiveMessageConstructor,y.onMessage)})),p.receiveMessageConstructor,p.createInitMessage)},z6c=function(p,y){p.createInitMessage=y};
oUu.prototype.send=function(p){if(!this.initialised)throw new WZ("Attempted to send a message before initialisation.");this.delegate.send(p)};
var YHa=function(p,y){return _.h(function(l){if(!p.initialised)throw new WZ("Attempted to send a message before initialisation.");return l.return(new Promise(function(q){p.delegate.send(y,Oi_(p.receiveMessageConstructor,q))}))})};
oUu.prototype.init=function(){var p=this;return _.h(function(y){if(p.initialised)throw new WZ("Attempted to initialise twice. The SDK can only be initialised once.");if(p.createInitMessage!==void 0){var l=p.delegate,q=l.send,t=p.createInitMessage;var E=new Wht;var e=[].concat(_.xq(p.features));E=_.tE(E,1,e,_.hm);q.call(l,t.call(p,E))}p.initialised=!0;_.rR(y)})};
var mC=function(p,y){if(p.initialised)throw new WZ('Attempted to set up API "'+y+'" after initialisation. All APIs must be set up before initialising the SDK.');p.features.add(y);return p.registry};
_.Jh.Object.defineProperties(oUu.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var IGc=function(p){this.channel=p;this.registered=!1};
IGc.prototype.update=function(p){if(this.channel.isInitialised){if(!this.registered)throw new WZ("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var y=new Va;var l=new aGt;l=_.jr(l,1,p);y=_.Qa(y,2,KO,l);this.channel.send(y)}else this.register();this.JSC$8907_audioEnabled=p};
IGc.prototype.register=function(){mC(this.channel,1);this.registered=!0};
IGc.prototype.isAudioEnabled=function(){return this.JSC$8907_audioEnabled};var ptx=function(p){this.channel=p};
_.J=ptx.prototype;_.J.onFirstFrameReady=function(p){mC(this.channel,2).register(11,function(y){y=_.oN(y.data,PE8,11,RC);if(!y)throw new WZ("Unexpectedly nonexistent GameFirstFrameReadyEvent");p(_.fq(y,1))})};
_.J.onReady=function(p){mC(this.channel,2).register(4,function(y){y=_.oN(y.data,Zi_,4,RC);if(!y)throw new WZ("Unexpectedly nonexistent GameReadyEvent");p(_.fq(y,1))})};
_.J.onLevelComplete=function(p){mC(this.channel,2).register(5,function(y){y=_.oN(y.data,MT_,5,RC);if(!y)throw new WZ("Unexpectedly nonexistent LevelCompleteEvent");p(_.fq(y,1),_.W9(y,2))})};
_.J.onGameOver=function(p){mC(this.channel,2).register(6,function(y){y=_.oN(y.data,AWo,6,RC);if(!y)throw new WZ("Unexpectedly nonexistent GameOverEvent");p(_.fq(y,1))})};
_.J.pause=function(){var p=this;if(!this.channel.isInitialised)return mC(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new WZ("Using unregistered Game Feature: pause.");var y=nUc();return new Promise(function(l){return _.h(function(q){if(q.nextAddress==1)return q.yield(YHa(p.channel,y),2);l();_.rR(q)})})};
_.J.resume=function(){var p=this;if(!this.channel.isInitialised)return mC(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new WZ("Using unregistered Game Feature: resume.");var y=G0u();return new Promise(function(l){return _.h(function(q){if(q.nextAddress==1)return q.yield(YHa(p.channel,y),2);l();_.rR(q)})})};var yRV=function(p){this.channel=p};
yRV.prototype.onReady=function(p){mC(this.channel,5).register(8,function(y){if(!_.oN(y.data,VTg,8,RC))throw new WZ("Unexpectedly nonexistent PageReadyEvent");p()})};var ltM=function(p){this.channel=p};
ltM.prototype.onChange=function(p){mC(this.channel,3).register(7,function(y){y=_.oN(y.data,gUm,7,RC);if(!y)throw new WZ("Unexpectedly nonexistent ScoreEvent");p(_.fq(y,1),_.W9(y,2))})};var qcB={load:function(){throw new WZ("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new WZ("Storage used, but storage.onSave() listener not set!");}},sg$=function(p){this.channel=p;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},tjB=function(p){mC(p.channel,4).register(2,qcB.load).register(3,qcB.save);
p.initialSetupDone=!0};
sg$.prototype.onLoad=function(p){this.initialSetupDone||tjB(this);this.loadRegistered||(this.loadRegistered=!0,mC(this.channel,4).register(2,function(y){var l,q,t;return _.h(function(E){if(E.nextAddress==1){l=_.oN(y.data,QIL,2,RC);if(!l)throw new WZ("Unexpectedly nonexistent StorageLoad");q=_.fq(l,1);return E.yield(p(q),2)}t=E.yieldResult;var e=y.reply,C=new Va;var u=new $Pm;u=_.Fq(u,1,q);u=_.mj(u,2,_.HU(t,!1));C=_.Qa(C,3,KO,u);e.call(y,C);_.rR(E)})}))};
sg$.prototype.onSave=function(p){this.initialSetupDone||tjB(this);this.saveRegistered||(this.saveRegistered=!0,mC(this.channel,4).register(3,function(y){var l,q,t;return _.h(function(E){if(E.nextAddress==1){l=_.oN(y.data,Kh6,3,RC);if(!l)throw new WZ("Unexpectedly nonexistent StorageSave");q=_.fq(l,1);t=Ism(l.getData());return E.yield(p(q,t),2)}var e=y.reply,C=new Va;var u=new jIu;u=_.Fq(u,1,q);C=_.Qa(C,4,KO,u);e.call(y,C);_.rR(E)})}))};var E6Z=function(p){this.channel=p};
E6Z.prototype.update=function(p){if(!this.channel.features.has(6))throw new WZ("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var y=new Va,l=new bij;p=_.gu(l,1,p);y=_.Qa(y,6,KO,p);this.channel.send(y)};
E6Z.prototype.register=function(){mC(this.channel,6)};var JRV=function(p){this.channel=p;this.userActivityLoggingIntervalMs=0};
JRV.prototype.onUserActivity=function(p,y){this.userActivityLoggingIntervalMs=y;mC(this.channel,7).register(9,function(l){if(!_.oN(l.data,wcg,9,RC))throw new WZ("Unexpectedly nonexistent ClickEvent");p()})};var cRM=function(p){var y=this;this.channel=p;this.init=this.channel.init.bind(this.channel);this.page=new yRV(this.channel);this.game=new ptx(this.channel);this.audio=new IGc(this.channel);this.score=new ltM(this.channel);this.storage=new sg$(this.channel);this.style=new E6Z(this.channel);this.userActivity=new JRV(this.channel);z6c(this.channel,function(l){var q=new Kwc;l=_.gu(q,1,l);l=_.z6(l,3,y.userActivity.userActivityLoggingIntervalMs);q=y.audio.isAudioEnabled();q!==void 0&&_.jr(l,2,q);q=new Va;
return _.Qa(q,5,KO,l)})};var e5v=function(){this.timedFunctionContext=0};
e5v.prototype.timeExecution=function(p,y){var l=this;return function(){var q=_.oX.apply(0,arguments);l.timedFunctionContext=p;return y.apply(null,_.xq(q))}};var h5Q=function(){var p={};this.priorityTasks=(p[3]=[],p[2]=[],p[1]=[],p);this.isFlushing=!1},gV=function(p,y,l){var q=C_V(p,l);
p.priorityTasks[l].push(y);q&&p.priorityTasks[l].length===1&&p.flush()},C_V=function(p,y){return Object.keys(p.priorityTasks).map(function(l){return Number(l)}).filter(function(l){return!isNaN(l)&&l>y}).every(function(l){return p.priorityTasks[l].length===0})};
h5Q.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(p){return p.length>0});)uoU(this,3),uoU(this,2),uoU(this,1)}catch(p){throw Object.values(this.priorityTasks).forEach(function(y){return void y.splice(0,y.length)}),p;
}finally{this.isFlushing=!1}}};
var uoU=function(p,y){for(;C_V(p,y)&&p.priorityTasks[y].length>0;)p.priorityTasks[y][0](),p.priorityTasks[y].shift()};
_.Jh.Object.defineProperties(h5Q.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(p){return p.length>0})}}});var kBo={};var R5Q=globalThis.trustedTypes,iOt=R5Q,S3t;var SZ=function(p){this.privateDoNotAccessOrElseWrappedResourceUrl=p};
SZ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var WLr,atU,maB,Uai,$ar,jgi,b8M,n6i;WLr=_.c0([""]);atU=Jj(["\x00"],["\\0"]);maB=Jj(["\n"],["\\n"]);Uai=Jj(["\x00"],["\\u0000"]);$ar=_.c0([""]);jgi=Jj(["\x00"],["\\0"]);b8M=Jj(["\n"],["\\n"]);n6i=Jj(["\x00"],["\\u0000"]);_.GlU=Lwt(function(p){return p(WLr)})||Lwt(function(p){return p(atU)})||Lwt(function(p){return p(maB)})||Lwt(function(p){return p(Uai)});
_.P_Z=_.Nm($ar)&&_.Nm(jgi)&&_.Nm(b8M)&&_.Nm(n6i);var v6;_.Dl=function(p,y){this.privateDoNotAccessOrElseWrappedUrl=y};
_.Dl.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.ARr=H6("about:blank");v6=H6("about:invalid#zClosurez");var Dmg=function(p){this.isValid=p},Z8V=new Dmg(function(p){return/^[^:]*([/?#]|$)/.test(p)}),MjU=B6("data"),VjU=B6("http"),g6B=B6("https"),QgO=B6("ftp"),KLU=B6("mailto"),wtM=B6("intent"),i8B=B6("vnd.youtube"),HOm=[MjU,
VjU,g6B,KLU,QgO,Z8V],xm6=ru(function(){return typeof URL==="function"}),rRZ=["data:",
"http:","https:","mailto:","ftp:"],flu=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var IX=function(p){this.privateDoNotAccessOrElseWrappedHtml=p};
IX.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var q1j=ru(function(){return new IX(R5Q?R5Q.emptyHTML:"")});var ScU={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"},X65=function(p,y){var l=Error.call(this,p+" cannot be used with intent "+ScU[y]);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.type=p;this.intent=y;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.A(X65,Error);_.E8=function(p){this.privateDoNotAccessOrElseWrappedScript=p};
_.E8.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var zfR=function(p){this.privateDoNotAccessOrElseWrappedAttributePrefix=p};
zfR.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var Y3g="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var qZ8=function(p){var y=_.I4("window.location.href");p==null&&(p='Unknown Error of type "null/undefined"');if(typeof p==="string")return{message:p,name:"Unknown error",lineNumber:"Not available",fileName:y,stack:"Not available"};var l=!1;try{var q=p.lineNumber||p.line||"Not available"}catch(e){q="Not available",l=!0}try{var t=p.fileName||p.filename||p.sourceURL||_.l_.$googDebugFname||y}catch(e){t="Not available",l=!0}y=FLB(p);if(!(!l&&p.lineNumber&&p.fileName&&p.stack&&p.message&&p.name)){l=p.message;
if(l==null){if(p.constructor&&p.constructor instanceof Function){if(p.constructor.name)l=p.constructor.name;else if(l=p.constructor,Uf[l])l=Uf[l];else{l=String(l);if(!Uf[l]){var E=/function\s+([^\(]+)/m.exec(l);Uf[l]=E?E[1]:"[Anonymous]"}l=Uf[l]}l='Unknown Error of type "'+l+'"'}else l="Unknown Error of unknown type";typeof p.toString==="function"&&Object.prototype.toString!==p.toString&&(l+=": "+p.toString())}return{message:l,name:p.name||"UnknownError",lineNumber:q,fileName:t,stack:y||"Not available"}}return{message:p.message,
name:p.name,lineNumber:p.lineNumber,fileName:p.fileName,stack:y}},FLB=function(p,y){y||(y={});
y[LLx(p)]=!0;var l=p.stack||"",q=p.cause;q&&!y[LLx(q)]&&(l+="\nCaused by: ",q.stack&&q.stack.indexOf(q.toString())==0||(l+=typeof q==="string"?q:q.message+"\n"),l+=FLB(q,y));p=p.errors;if(Array.isArray(p)){q=1;var t;for(t=0;t<p.length&&!(q>4);t++)y[LLx(p[t])]||(l+="\nInner error "+q++ +": ",p[t].stack&&p[t].stack.indexOf(p[t].toString())==0||(l+=typeof p[t]==="string"?p[t]:p[t].message+"\n"),l+=FLB(p[t],y));t<p.length&&(l+="\n... "+(p.length-t)+" more inner errors")}return l},LLx=function(p){var y=
"";
typeof p.toString==="function"&&(y=""+p);return y+p.stack},Uf={};var klM,uv,Mr,Dar,H8r,NmU,zH,Yc,xaZ;klM=function(p,y){for(var l=p.split("%s"),q="",t=Array.prototype.slice.call(arguments,1);t.length&&l.length>1;)q+=l.shift()+t.shift();return q+l.join("%s")};
_.y$=function(p){return encodeURIComponent(String(p))};
uv=function(p){return decodeURIComponent(p.replace(/\+/g," "))};
Mr=function(p){WYo.test(p)&&(p.indexOf("&")!=-1&&(p=p.replace(cn6,"&amp;")),p.indexOf("<")!=-1&&(p=p.replace(eG_,"&lt;")),p.indexOf(">")!=-1&&(p=p.replace(hGc,"&gt;")),p.indexOf('"')!=-1&&(p=p.replace(C3m,"&quot;")),p.indexOf("'")!=-1&&(p=p.replace(uj_,"&#39;")),p.indexOf("\x00")!=-1&&(p=p.replace(RGj,"&#0;")));return p};
Dar=function(p){var y={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var l=_.l_.document.createElement("div");return p.replace(NmU,function(q,t){var E=y[q];if(E)return E;t.charAt(0)=="#"&&(t=Number("0"+t.slice(1)),isNaN(t)||(E=String.fromCharCode(t)));E||(_.hw(l,pC(q+" ")),E=l.firstChild.nodeValue.slice(0,-1));return y[q]=E})};
H8r=function(p){return p.replace(/&([^;]+);/g,function(y,l){switch(l){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return l.charAt(0)!="#"||(l=Number("0"+l.slice(1)),isNaN(l))?y:String.fromCharCode(l)}})};
NmU=/&([^;\s<&]+);?/g;_.Zu8=function(p){return String(p).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.Tmr=String.prototype.repeat?function(p,y){return p.repeat(y)}:function(p,y){return Array(y+1).join(p)};
_.$C=function(p,y){if(!Number.isFinite(p))return String(p);p=String(p);var l=p.indexOf(".");l===-1&&(l=p.length);var q=p[0]==="-"?"-":"";q&&(p=p.substring(1));return q+(0,_.Tmr)("0",Math.max(0,y-l))+p};
zH=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.$t()).toString(36)};
Yc=function(p){for(var y=0,l=0;l<p.length;++l)y=31*y+p.charCodeAt(l)>>>0;return y};
_.Vl=function(p){return String(p).replace(/\-([a-z])/g,function(y,l){return l.toUpperCase()})};
_.Mf=function(p){return String(p).replace(/([A-Z])/g,"-$1").toLowerCase()};
xaZ=function(p){return p.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(y,l,q){return l+q.toUpperCase()})};var BmQ=function(){this.names=new Map};
BmQ.prototype.getName=function(p){var y=this.names.get(p);if(y)return y;var l;y=(l=p.description)!=null?l:zH();this.names.set(p,y);return y};var ftU=function(p){var y=Error.call(this,p?p.length+" errors occurred during unsubscription:\n"+p.map(function(l,q){return q+1+") "+l.toString()}).join("\n  "):"");
this.message=y.message;"stack"in y&&(this.stack=y.stack);this.errors=p;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.A(ftU,Error);var mb=function(p){this.initialTeardown=p;this.closed=!1;this._teardowns=this._parentage=null};
_.J=mb.prototype;
_.J.unsubscribe=function(){if(!this.closed){this.closed=!0;var p=this._parentage;if(Array.isArray(p))for(var y=_.c(p),l=y.next();!l.done;l=y.next())l.value.remove(this);else p==null||p.remove(this);y=this.initialTeardown;if(a9(y))try{y()}catch(E){var q=E instanceof ftU?E.errors:[E]}var t=this._teardowns;if(t)for(this._teardowns=null,y=_.c(t),l=y.next();!l.done;l=y.next()){l=l.value;try{a9(l)?l():l.unsubscribe()}catch(E){l=void 0,q=(l=q)!=null?l:[],E instanceof ftU?q=[].concat(_.xq(q),_.xq(E.errors)):
q.push(E)}}if(q)throw new ftU(q);}};
_.J.add=function(p){if(p&&p!==this)if(this.closed)a9(p)?p():p.unsubscribe();else{if(p instanceof mb){if(p.closed||p._hasParent(this))return;p._addParent(this)}var y;(this._teardowns=(y=this._teardowns)!=null?y:[]).push(p)}};
_.J._hasParent=function(p){var y=this._parentage;return y===p||Array.isArray(y)&&y.includes(p)};
_.J._addParent=function(p){var y=this._parentage;this._parentage=Array.isArray(y)?(y.push(p),y):y?[y,p]:p};
_.J._removeParent=function(p){var y=this._parentage;y===p?this._parentage=null:Array.isArray(y)&&lhm(y,p)};
_.J.remove=function(p){var y=this._teardowns;y&&lhm(y,p);p instanceof mb&&p._removeParent(this)};
var v6P=new mb;v6P.closed=!0;mb.JSC$9003_EMPTY=v6P;var s9g=function(){setTimeout.apply(null,_.xq(_.oX.apply(0,arguments)))};var jz=function(p){mb.call(this);this.JSC$9008_isStopped=!1;this.destination=p instanceof jz?p:new bk(!p||a9(p)?{next:p!=null?p:void 0}:p);q8g(p)&&p.add(this)};
_.A(jz,mb);jz.JSC$9003_EMPTY=mb.JSC$9003_EMPTY;jz.create=function(p,y,l){return new nj(p,y,l)};
_.J=jz.prototype;_.J.next=function(p){this.JSC$9008_isStopped||this._next(p)};
_.J.error=function(p){this.JSC$9008_isStopped||(this.JSC$9008_isStopped=!0,this._error(p))};
_.J.complete=function(){this.JSC$9008_isStopped||(this.JSC$9008_isStopped=!0,this._complete())};
_.J.unsubscribe=function(){this.closed||(this.JSC$9008_isStopped=!0,mb.prototype.unsubscribe.call(this))};
_.J._next=function(p){this.destination.next(p)};
_.J._error=function(p){this.destination.error(p);this.unsubscribe()};
_.J._complete=function(){this.destination.complete();this.unsubscribe()};
var bk=function(p){this.partialObserver=p};
bk.prototype.next=function(p){var y=this.partialObserver;if(y.next)try{y.next(p)}catch(l){$q(l)}};
bk.prototype.error=function(p){var y=this.partialObserver;if(y.error)try{y.error(p)}catch(l){$q(l)}else $q(p)};
bk.prototype.complete=function(){var p=this.partialObserver;if(p.complete)try{p.complete()}catch(y){$q(y)}};
var nj=function(p,y,l){jz.call(this);var q;a9(p)||!p?q={next:p!=null?p:void 0,error:y!=null?y:void 0,complete:l!=null?l:void 0}:q=p;this.destination=new bk(q)};
_.A(nj,jz);nj.JSC$9003_EMPTY=jz.JSC$9003_EMPTY;nj.create=jz.create;var Gw=typeof Symbol==="function"&&Symbol.observable||"@@observable";var nC=function(p){p&&(this._subscribe=p)};
_.J=nC.prototype;_.J.lift=function(p){var y=new nC;y.source=this;y.operator=p;return y};
_.J.subscribe=function(p,y,l){p=p&&p instanceof jz||p&&a9(p.next)&&a9(p.error)&&a9(p.complete)&&q8g(p)?p:new nj(p,y,l);y=this.operator;l=this.source;p.add(y?y.call(p,l):l?this._subscribe(p):this._trySubscribe(p));return p};
_.J._trySubscribe=function(p){try{return this._subscribe(p)}catch(y){p.error(y)}};
_.J.forEach=function(p,y){var l=this;y=Eqo(y);return new y(function(q,t){var E=l.subscribe(function(e){try{p(e)}catch(C){t(C),E==null||E.unsubscribe()}},t,q)})};
_.J._subscribe=function(p){var y;return(y=this.source)==null?void 0:y.subscribe(p)};
nC.prototype[Gw]=function(){return this};
nC.prototype.pipe=function(){var p=_.oX.apply(0,arguments);return p.length?t_o(p)(this):this};
nC.create=function(p){return new nC(p)};var XtB=function(){var p=Error.call(this,"object unsubscribed");this.message=p.message;"stack"in p&&(this.stack=p.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.A(XtB,Error);var PJ=function(){this.observers=[];this.hasError=this.JSC$9024_isStopped=this.closed=!1;this.thrownError=null};
_.A(PJ,nC);_.J=PJ.prototype;_.J.lift=function(p){var y=new Gk(this,this);y.operator=p;return y};
_.J._throwIfClosed=function(){if(this.closed)throw new XtB;};
_.J.next=function(p){this._throwIfClosed();if(!this.JSC$9024_isStopped){var y=this.observers.slice();y=_.c(y);for(var l=y.next();!l.done;l=y.next())l.value.next(p)}};
_.J.error=function(p){this._throwIfClosed();if(!this.JSC$9024_isStopped){this.hasError=this.JSC$9024_isStopped=!0;this.thrownError=p;for(var y=this.observers;y.length;)y.shift().error(p)}};
_.J.complete=function(){this._throwIfClosed();if(!this.JSC$9024_isStopped){this.JSC$9024_isStopped=!0;for(var p=this.observers;p.length;)p.shift().complete()}};
_.J.unsubscribe=function(){this.JSC$9024_isStopped=this.closed=!0;this.observers=null};
_.J._trySubscribe=function(p){this._throwIfClosed();return nC.prototype._trySubscribe.call(this,p)};
_.J._subscribe=function(p){this._throwIfClosed();this._checkFinalizedStatuses(p);return this._innerSubscribe(p)};
_.J._innerSubscribe=function(p){var y=this,l=this.JSC$9024_isStopped,q=this.observers;return this.hasError||l?mb.JSC$9003_EMPTY:(q.push(p),new mb(function(){return lhm(y.observers,p)}))};
_.J._checkFinalizedStatuses=function(p){var y=this.thrownError,l=this.JSC$9024_isStopped;this.hasError?p.error(y):l&&p.complete()};
PJ.create=function(p,y){return new Gk(p,y)};
var Gk=function(p,y){PJ.call(this);this.destination=p;this.source=y};
_.A(Gk,PJ);Gk.create=PJ.create;Gk.prototype.next=function(p){var y,l;(y=this.destination)==null||(l=y.next)==null||l.call(y,p)};
Gk.prototype.error=function(p){var y,l;(y=this.destination)==null||(l=y.error)==null||l.call(y,p)};
Gk.prototype.complete=function(){var p,y;(p=this.destination)==null||(y=p.complete)==null||y.call(p)};
Gk.prototype._subscribe=function(p){var y,l;return(l=(y=this.source)==null?void 0:y.subscribe(p))!=null?l:mb.JSC$9003_EMPTY};var YI=function(p){PJ.call(this);this._value=p};
_.A(YI,PJ);YI.create=PJ.create;YI.prototype._subscribe=function(p){var y=PJ.prototype._subscribe.call(this,p);!y.closed&&p.next(this._value);return y};
YI.prototype.getValue=function(){var p=this.thrownError,y=this._value;if(this.hasError)throw p;this._throwIfClosed();return y};
YI.prototype.next=function(p){PJ.prototype.next.call(this,this._value=p)};
_.Jh.Object.defineProperties(YI.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var dR=new nC(function(p){return p.complete()});var h__=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var ah6=function(p){return p&&typeof p.length==="number"&&typeof p!=="function"};var daU={now:function(){return(daU.delegate||Date).now()},
delegate:void 0};var hQ=function(p,y,l){p=p===void 0?Infinity:p;y=y===void 0?Infinity:y;l=l===void 0?daU:l;PJ.call(this);this.bufferSize=p;this.windowTime=y;this.timestampProvider=l;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=y===Infinity;this.bufferSize=Math.max(1,p);this.windowTime=Math.max(1,y)};
_.A(hQ,PJ);hQ.create=PJ.create;hQ.prototype.next=function(p){var y=this.buffer,l=this.infiniteTimeWindow,q=this.timestampProvider,t=this.windowTime;this.JSC$9024_isStopped||(y.push(p),!l&&y.push(q.now()+t));O8r(this);PJ.prototype.next.call(this,p)};
hQ.prototype._subscribe=function(p){this._throwIfClosed();O8r(this);for(var y=this._innerSubscribe(p),l=this.infiniteTimeWindow,q=this.buffer.slice(),t=0;t<q.length&&!p.closed;t+=l?1:2)p.next(q[t]);this._checkFinalizedStatuses(p);return y};
var O8r=function(p){var y=p.bufferSize,l=p.timestampProvider,q=p.buffer;p=p.infiniteTimeWindow;var t=(p?1:2)*y;y<Infinity&&t<q.length&&q.splice(0,q.length-t);if(!p){y=l.now();l=0;for(p=1;p<q.length&&q[p]<=y;p+=2)l=p;l&&q.splice(0,l+1)}};var z5x=function(p,y){y=y===void 0?o6$:y;this.schedulerActionCtor=p;this.now=y};
z5x.prototype.schedule=function(p,y,l){y=y===void 0?0:y;return(new this.schedulerActionCtor(this,p)).schedule(l,y)};
var o6$=daU.now;var JQt=function(){var p=Error.call(this,"no elements in sequence");this.message=p.message;"stack"in p&&(this.stack=p.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.A(JQt,Error);var NN=function(p,y,l,q,t){jz.call(this,p);this.onUnsubscribe=t;y&&(this._next=function(E){try{y(E)}catch(e){this.destination.error(e)}});
l&&(this._error=function(E){try{l(E)}catch(e){this.destination.error(e)}this.unsubscribe()});
q&&(this._complete=function(){try{q()}catch(E){this.destination.error(E)}this.unsubscribe()})};
_.A(NN,jz);NN.JSC$9003_EMPTY=jz.JSC$9003_EMPTY;NN.create=jz.create;NN.prototype.unsubscribe=function(){var p;this.closed||(p=this.onUnsubscribe)!=null&&p.call(this);jz.prototype.unsubscribe.call(this)};var cJ=function(p,y){this.source=p;this.subjectFactory=y;this._subject=null;this._refCount=0;this._connection=null};
_.A(cJ,nC);cJ.create=nC.create;cJ.prototype._subscribe=function(p){return YcV(this).subscribe(p)};
var YcV=function(p){var y=p._subject;if(!y||y.JSC$9024_isStopped)p._subject=p.subjectFactory();return p._subject};
cJ.prototype._teardown=function(){this._refCount=0;var p=this._connection;this._subject=this._connection=null;p==null||p.unsubscribe()};
cJ.prototype.connect=function(){var p=this,y=this._connection;if(!y){y=this._connection=new mb;var l=YcV(this);y.add(this.source.subscribe(new NN(l,void 0,function(q){p._teardown();l.error(q)},function(){p._teardown();
l.complete()},function(){return p._teardown()})));
y.closed&&(this._connection=null,y=mb.JSC$9003_EMPTY)}return y};var V_6=Array.isArray;var Q9l=Array.isArray,ItO=Object,Kbc=ItO.getPrototypeOf,wHg=ItO.prototype,iCm=ItO.keys;var fC=function(p,y,l){jz.call(this,p);this._next=y;this.shouldComplete=l};
_.A(fC,jz);fC.JSC$9003_EMPTY=jz.JSC$9003_EMPTY;fC.create=jz.create;fC.prototype._complete=function(){this.shouldComplete()?jz.prototype._complete.call(this):this.unsubscribe()};var TR8=["addListener","removeListener"],HC6=["addEventListener","removeEventListener"],BRa=["on","off"];var PZ=function(){mb.call(this)};
_.A(PZ,mb);PZ.JSC$9003_EMPTY=mb.JSC$9003_EMPTY;PZ.prototype.schedule=function(){return this};var pUQ=function(p,y){return setInterval.apply(null,[p,y].concat(_.xq(_.oX.apply(2,arguments))))};var AL=function(p,y){mb.call(this);this.scheduler=p;this.work=y;this.pending=!1};
_.A(AL,PZ);AL.JSC$9003_EMPTY=PZ.JSC$9003_EMPTY;AL.prototype.schedule=function(p,y){y=y===void 0?0:y;if(this.closed)return this;this.state=p;p=this.id;var l=this.scheduler;p!=null&&(this.id=yZi(this,p,y));this.pending=!0;this.delay=y;this.id=this.id||this.requestAsyncId(l,this.id,y);return this};
AL.prototype.requestAsyncId=function(p,y,l){l=l===void 0?0:l;return pUQ(p.flush.bind(p,this),l)};
var yZi=function(p,y,l){l=l===void 0?0:l;if(l!=null&&p.delay===l&&p.pending===!1)return y;clearInterval(y)};
AL.prototype.execute=function(p,y){if(this.closed)return Error("ha");this.pending=!1;if(p=this._execute(p,y))return p;this.pending===!1&&this.id!=null&&(this.id=yZi(this,this.id,null))};
AL.prototype._execute=function(p){var y=!1;try{this.work(p)}catch(q){y=!0;var l=!!q&&q||Error(q)}if(y)return this.unsubscribe(),l};
AL.prototype.unsubscribe=function(){if(!this.closed){var p=this.id,y=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;lhm(y,this);p!=null&&(this.id=yZi(this,p,null));this.delay=null;PZ.prototype.unsubscribe.call(this)}};var lV$=function(p,y){y=y===void 0?o6$:y;z5x.call(this,p,y);this.actions=[];this.active=!1;this.scheduled=void 0};
_.A(lV$,z5x);lV$.prototype.flush=function(p){var y=this.actions;if(this.active)y.push(p);else{var l;this.active=!0;do if(l=p.execute(p.state,p.delay))break;while(p=y.shift());this.active=!1;if(l){for(;p=y.shift();)p.unsubscribe();throw l;}}};var NQ=new nC(U8);var fht=Array.isArray;var ZI=function(p,y){AL.call(this,p,y);this.scheduler=p;this.work=y};
_.A(ZI,AL);ZI.JSC$9003_EMPTY=AL.JSC$9003_EMPTY;ZI.prototype.schedule=function(p,y){y=y===void 0?0:y;if(y>0)return AL.prototype.schedule.call(this,p,y);this.delay=y;this.state=p;this.scheduler.flush(this);return this};
ZI.prototype.execute=function(p,y){return y>0||this.closed?AL.prototype.execute.call(this,p,y):this._execute(p,y)};
ZI.prototype.requestAsyncId=function(p,y,l){l=l===void 0?0:l;return l!=null&&l>0||l==null&&this.delay>0?AL.prototype.requestAsyncId.call(this,p,y,l):p.flush(this)};var q$x=function(){lV$.apply(this,arguments)};
_.A(q$x,lV$);var ZCc=new q$x(ZI);var svx=function(){this.performanceMonitor=new e5v;this.queue=new h5Q;this.internalSymbol=Symbol();this.debugNames=new BmQ};
svx.prototype.getOnBackgrounded=function(){return NQ};
_.Jh.Object.defineProperties(svx.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var MZ=function(p,y){y=Error.call(this,y?p+": "+y:String(p));this.message=y.message;"stack"in y&&(this.stack=y.stack);this.code=p;this.__proto__=MZ.prototype;this.name=String(p)};
_.A(MZ,Error);var D7=function(p){MZ.call(this,1E3,'sfr:"'+p+'"');this.measurementStrategyFailureReason=p;this.__proto__=D7.prototype};
_.A(D7,MZ);var HJ=function(){MZ.call(this,1003);this.__proto__=HJ.prototype};
_.A(HJ,MZ);var V0=function(){MZ.call(this,1009);this.__proto__=V0.prototype};
_.A(V0,MZ);var tBr=function(){MZ.call(this,1011);this.__proto__=tBr.prototype};
_.A(tBr,MZ);var ExZ=function(){MZ.call(this,1007);this.__proto__=HJ.prototype};
_.A(ExZ,MZ);var L0=function(p){MZ.call(this,1004,String(p));this.inputObservableIndex=p;this.__proto__=L0.prototype};
_.A(L0,MZ);var jYt=function(p){MZ.call(this,1010,p);this.__proto__=bSL.prototype};
_.A(jYt,MZ);var bSL=function(p){MZ.call(this,1005,p);this.__proto__=bSL.prototype};
_.A(bSL,MZ);var JZr=function(p){var y=_.oX.apply(1,arguments),l=this;this.orderedFactories=[];this.orderedFactories.push(p);y.forEach(function(q){l.orderedFactories.push(q)})};
JZr.prototype.isSupported=function(p){return this.orderedFactories.some(function(y){return y.isSupported(p)})};
JZr.prototype.makeBeacon=function(p,y){for(var l=0;l<this.orderedFactories.length;l++)if(this.orderedFactories[l].isSupported(y))return this.orderedFactories[l].makeBeacon(p,y);throw new V0;};var emL=Symbol("ia"),cZP=Symbol("ja"),I9=function(p,y){this.value=p;this.timeline=y},Yq=function(p,y){if(y.timeline!==p.timeline)throw new ExZ;
return p.value-y.value};
_.J=I9.prototype;_.J.equals=function(p){return Yq(this,p)===0};
_.J.maximum=function(p){if(p.timeline!==this.timeline)throw new ExZ;return this.value>=p.value?this:p};
_.J.round=function(){return new I9(Math.round(this.value),this.timeline)};
_.J.add=function(p){return new I9(this.value+p,this.timeline)};
_.J.toString=function(){return String(this.value)};var gH=function(p,y){this.context=p;this.JSC$9130_pinger=y};
gH.prototype.isSupported=function(p){return this.JSC$9130_pinger.isSupported(p)};
gH.prototype.makeBeacon=function(p,y){if(!this.isSupported(y))throw new V0;return new Q0(this.context,this.JSC$9130_pinger,y!=null?y:void 0,p)};
var Q0=function(p,y,l,q){var t=this;this.JSC$9136_pinger=y;this.properties=l;this.url=q;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var E;this.method=(E=l==null?void 0:l.beaconMethod)!=null?E:"GET";this.backgroundedSubscription=p.getOnBackgrounded().subscribe(function(){t.sendNow()})};
Q0.prototype.deactivate=function(){this.internalIsPending=!1};
Q0.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9136_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var p,y;this.JSC$9136_pinger.pingWithHeadersAndBody((p=this.properties)!=null?p:{},this.customHeaders,(y=this.body)!=null?y:"",this.url)}else this.JSC$9136_pinger.ping(this.url);this.internalIsPending=!1}catch(l){}else this.internalIsPending=!1};
Q0.prototype.setHeader=function(p,y){this.customHeaders.set(p,y)};
_.Jh.Object.defineProperties(Q0.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var hrx=function(){for(var p=_.c(_.oX.apply(0,arguments)),y=p.next();!y.done;y=p.next())if(y=y.value,y.available()){this.timeProvider=y;return}this.timeProvider=new erV};
_.J=hrx.prototype;_.J.available=function(){return this.timeProvider.available()};
_.J.now=function(){return this.timeProvider.now()};
_.J.setTimeout=function(p,y){return this.timeProvider.setTimeout(p,y)};
_.J.clearTimeout=function(p){this.timeProvider.clearTimeout(p)};
_.J.interval=function(p,y){var l=this.intervalObservable(p).subscribe(y);return function(){return void l.unsubscribe()}};
_.J.intervalObservable=function(p){return this.timeProvider.intervalObservable(p)};
_.Jh.Object.defineProperties(hrx.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var erV=function(){this.timeline=Symbol()};
_.J=erV.prototype;_.J.available=function(){return!1};
_.J.now=function(){return new I9(0,this.timeline)};
_.J.setTimeout=function(){return 0};
_.J.clearTimeout=function(){};
_.J.interval=function(){return function(){}};
_.J.intervalObservable=function(){return NQ};var Kj=function(p,y){this.intrinsicFunctionNamespace=p;this.performanceMonitor=y};
_.J=Kj.prototype;_.J.setTimeout=function(p,y){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,p),y)};
_.J.clearTimeout=function(p){this.intrinsicFunctionNamespace.clearTimeout(p)};
_.J.interval=function(p,y){var l=this.intervalObservable(p).subscribe(y);return function(){return void l.unsubscribe()}};
_.J.intervalObservable=function(p){var y=this;return new nC(function(l){var q=0,t=y.intrinsicFunctionNamespace.setInterval(function(){l.next(q++)},p);
return function(){y.intrinsicFunctionNamespace.clearInterval(t)}})};
_.J.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var CNN=function(p,y){Kj.call(this,p,y);this.timeline=cZP};
_.A(CNN,Kj);CNN.prototype.now=function(){return new I9(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
CNN.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Kj.prototype.available.call(this)};var uiQ=function(p,y){Kj.call(this,p,y);this.timeline=emL};
_.A(uiQ,Kj);uiQ.prototype.now=function(){return new I9(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
uiQ.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Kj.prototype.available.call(this)};var WPv=function(p){this.context=p;if(RrZ===void 0)a:{var y,l,q=(y=p.global)==null?void 0:(l=y.document)==null?void 0:l.createElement("meta");if(q)try{q.httpEquiv="origin-trial";q.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";p.global.document.head.append(q);RrZ=q;break a}catch(t){}RrZ=void 0}},
RrZ;
WPv.prototype.isSupported=function(p){return yQt(this.context)!==void 0&&!(p==null||!p.endOfSession)&&!wH(this.context)&&!(p==null?0:p.attributionEnabled)&&!(p==null?0:p.customHeaders)&&!(p==null?0:p.customBody)};
WPv.prototype.makeBeacon=function(p,y){if(!this.isSupported(y))throw new V0;return new ik(this.context,p,y)};
var ik=function(p,y,l){this.context=p;this.properties=l;this.JSC$9163_urlWithoutToken=y;var q;this.beaconMethod=(q=l==null?void 0:l.beaconMethod)!=null?q:"GET";p=yQt(this.context);if(p===void 0)throw Error();this.fetchLater=p;aVr(this,mOU(this))},aVr=function(p,y){p.beaconResult&&p.beaconResult.activated||(p.beaconAbort=new AbortController,p.beaconResult=p.fetchLater(y,{method:p.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:p.beaconAbort.signal,activateAfter:96E4}))},mOU=function(p){p=p.JSC$9163_urlWithoutToken;
return(p.slice(-1)[0]==="&"?p:p+"&")+"flapi=1"};
ik.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
ik.prototype.sendNow=function(){};
ik.prototype.setHeader=function(){};
_.Jh.Object.defineProperties(ik.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9163_urlWithoutToken},
set:function(p){this.JSC$9163_urlWithoutToken=p;p=mOU(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);aVr(this,p)}},
method:{configurable:!0,enumerable:!0,get:function(){return this.beaconMethod}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.beaconResult?!this.beaconResult.activated:!1}}});var UOZ=function(p){this.context=p};
UOZ.prototype.isSupported=function(){return!wH(this.context)&&!!this.context.global.fetch};
UOZ.prototype.ping=function(){var p=this;return O8.apply(null,_.xq(_.oX.apply(0,arguments).map(function(y){return MN(p.context.global.fetch(y,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(Tw(function(l){return l.status===200}))}))).pipe(cQo(function(y){return y}),h$L())};
UOZ.prototype.pingWithHeadersAndBody=function(p,y,l){for(var q=_.oX.apply(3,arguments),t=this,E=new Headers,e=_.c(y.entries()),C=e.next();!C.done;C=e.next()){var u=_.c(C.value);C=u.next().value;u=u.next().value;E.set(C,u)}var a,m=(a=p.keepAlive)!=null?a:!1;O8.apply(null,_.xq(q.map(function(U){return MN(t.context.global.fetch(U,Object.assign({},{method:String(p.beaconMethod),cache:"no-cache"},m?{keepalive:!0}:{},{mode:"no-cors",headers:E,body:l}))).pipe(Tw(function(b){return b.status===200}))}))).pipe(cQo(function(U){return U}),
h$L())};var $OU,pa5;_.rH=function(){};
_.Dt=function(p){return p};
$OU=function(p){var y=y||0;return function(){return p.apply(this,Array.prototype.slice.call(arguments,0,y))}};
_.Sz=function(p){var y=!1,l;return function(){y||(l=p(),y=!0);return l}};
_.Fd=function(p,y){var l=0;return function(q){_.l_.clearTimeout(l);var t=arguments;l=_.l_.setTimeout(function(){p.apply(void 0,t)},y)}};
pa5=function(p,y){var l=0,q=!1,t=[],E=function(){l=0;q&&(q=!1,e())},e=function(){l=_.l_.setTimeout(E,y);
var C=t;t=[];p.apply(void 0,C)};
return function(C){t=arguments;l?q=!0:e()}};var bUB=function(){return $6&&b_?b_.mobile:!jvr()&&(Pt("iPod")||Pt("iPhone")||Pt("Android")||Pt("IEMobile"))},jvr=function(){return $6&&b_?!b_.mobile&&(Pt("iPad")||Pt("Android")||Pt("Silk")):Pt("iPad")||Pt("Android")&&!Pt("Mobile")||Pt("Silk")};var nxO;_.Ts={};nxO="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.Ts.add=function(p,y,l){if(p!==null&&y in p)throw Error("la`"+y);p[y]=l};
_.Ts.clear=function(p){for(var y in p)delete p[y]};
_.Ts.clone=function(p){var y={},l;for(l in p)y[l]=p[l];return y};
_.Ts.contains=function(p,y){return WJL(p,y)};
_.Ts.containsKey=function(p,y){return p!==null&&y in p};
_.Ts.containsValue=WJL;_.Ts.create=UQa;_.Ts.createImmutableView=function(p){var y=p;Object.isFrozen&&!Object.isFrozen(p)&&(y=Object.create(p),Object.freeze(y));return y};
_.Ts.createSet=$Q_;_.Ts.equals=function(p,y){for(var l in p)if(!(l in y)||p[l]!==y[l])return!1;for(var q in y)if(!(q in p))return!1;return!0};
_.Ts.every=function(p,y,l){for(var q in p)if(!y.call(l,p[q],q,p))return!1;return!0};
_.Ts.extend=function(p,y){for(var l,q,t=1;t<arguments.length;t++){q=arguments[t];for(l in q)p[l]=q[l];for(var E=0;E<nxO.length;E++)l=nxO[E],Object.prototype.hasOwnProperty.call(q,l)&&(p[l]=q[l])}};
_.Ts.filter=function(p,y,l){var q={},t;for(t in p)y.call(l,p[t],t,p)&&(q[t]=p[t]);return q};
_.Ts.findKey=a78;_.Ts.findValue=function(p,y,l){return(y=a78(p,y,l))&&p[y]};
_.Ts.forEach=function(p,y,l){for(var q in p)y.call(l,p[q],q,p)};
_.Ts.get=function(p,y,l){return p!==null&&y in p?p[y]:l};
_.Ts.getAllPropertyNames=function(p,y,l){if(!p)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return R$g(p);for(var q={};p&&(p!==Object.prototype||y)&&(p!==Function.prototype||l);){for(var t=Object.getOwnPropertyNames(p),E=0;E<t.length;E++)q[t[E]]=!0;p=Object.getPrototypeOf(p)}return R$g(q)};
_.Ts.getAnyKey=function(p){for(var y in p)return y};
_.Ts.getAnyValue=function(p){for(var y in p)return p[y]};
_.Ts.getCount=function(p){var y=0,l;for(l in p)y++;return y};
_.Ts.getKeys=R$g;_.Ts.getSuperClass=function(p){return(p=Object.getPrototypeOf(p.prototype))&&p.constructor};
_.Ts.getValueByKeys=function(p,y){var l=_.zl(y),q=l?y:arguments;for(l=l?0:1;l<q.length;l++){if(p==null)return;p=p[q[l]]}return p};
_.Ts.getValues=function(p){var y=[],l=0,q;for(q in p)y[l++]=p[q];return y};
_.Ts.isEmpty=function(p){for(var y in p)return!1;return!0};
_.Ts.isImmutableView=function(p){return!!Object.isFrozen&&Object.isFrozen(p)};
_.Ts.map=function(p,y,l){var q={},t;for(t in p)q[t]=y.call(l,p[t],t,p);return q};
_.Ts.remove=function(p,y){var l;(l=y in p)&&delete p[y];return l};
_.Ts.set=function(p,y,l){p[y]=l};
_.Ts.setIfUndefined=function(p,y,l){return y in p?p[y]:p[y]=l};
_.Ts.setWithReturnValueIfNotSet=function(p,y,l){if(y in p)return p[y];l=l();return p[y]=l};
_.Ts.some=function(p,y,l){for(var q in p)if(y.call(l,p[q],q,p))return!0;return!1};
_.Ts.transpose=function(p){var y={},l;for(l in p)y[p[l]]=l;return y};
_.Ts.unsafeClone=mQL;var Lj=function(p,y,l,q,t){this.allowedElements=p;this.elementPolicies=y;this.allowedGlobalAttributes=l;this.globalAttributePolicies=q;this.globallyAllowedAttributePrefixes=t},GMU=function(p,y,l){l=p.elementPolicies.get(l);
return(l==null?0:l.has(y))?l.get(y):p.allowedGlobalAttributes.has(y)?{policyAction:1}:(l=p.globalAttributePolicies.get(y))?l:p.globallyAllowedAttributePrefixes&&[].concat(_.xq(p.globallyAllowedAttributePrefixes)).some(function(q){return y.indexOf(q)===0})?{policyAction:1}:{policyAction:0}};var PNB="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(" "),
AZU=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],ZUr="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
MB$=[["dir",{policyAction:3,conditions:ru(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:ru(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:ru(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:ru(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],VBQ=new Lj(new Set(PNB),new Map(AZU),new Set(ZUr),new Map(MB$)),gxU=new Lj(new Set(PNB.concat(["BUTTON",
"INPUT"])),new Map(AZU),new Set(ru(function(){return ZUr.concat(["class","id","name"])})),new Map(ru(function(){return MB$.concat([["style",
{policyAction:1}]])})));var QvZ,KP$,iUU;QvZ=function(p,y,l,q,t){this.JSC$9223_sanitizerTable=p;this.styleElementSanitizer=y;this.styleAttributeSanitizer=l;this.JSC$9223_resourceUrlPolicy=q;this.JSC$9223_navigationUrlPolicy=t;this.changes=[]};
_.wUr=function(p,y){var l=document.implementation.createHTMLDocument("");p=KP$(p,y,l);l=l.body;l.appendChild(p);l=(new XMLSerializer).serializeToString(l);l=l.slice(l.indexOf(">")+1,l.lastIndexOf("</"));return pC(l)};
KP$=function(p,y,l){y=b0_(y,l);y=document.createTreeWalker(y,5,function(C){if(C.nodeType===3)C=1;else if(Gsj(C))if(C=nIj(C),C===null)C=2;else{var u=p.JSC$9223_sanitizerTable;C=C!=="FORM"&&(u.allowedElements.has(C)||u.elementPolicies.has(C))?1:2}else C=2;return C});
for(var q=y.nextNode(),t=l.createDocumentFragment(),E=t;q!==null;){var e=void 0;if(q.nodeType===3)p.styleElementSanitizer&&E.nodeName==="STYLE"?(q=p.styleElementSanitizer(q.data),e=p.createTextNode(q)):e=p.createTextNode(q.data);else if(Gsj(q))e=iUU(p,q,l);else throw Error("Z");E.appendChild(e);if(q=y.firstChild())E=e;else for(;!(q=y.nextSibling())&&(q=y.parentNode());)E=E.parentNode}return t};
QvZ.prototype.createTextNode=function(p){return document.createTextNode(p)};
iUU=function(p,y,l){var q,t=nIj(y);l=l.createElement(t);y=y.attributes;for(var E=_.c(y),e=E.next();!e.done;e=E.next()){var C=e.value;e=C.name;C=C.value;var u=GMU(p.JSC$9223_sanitizerTable,e,t);a:{if(q=u.conditions){q=_.c(q);for(var a=q.next();!a.done;a=q.next()){var m=_.c(a.value);a=m.next().value;m=m.next().value;var U=void 0;if((a=(U=y.getNamedItem(a))==null?void 0:U.value)&&!m.has(a)){q=!1;break a}}}q=!0}if(q)switch(u.policyAction){case 1:jO(l,e,C);break;case 2:throw Error();case 3:jO(l,e,C.toLowerCase());
break;case 4:p.styleAttributeSanitizer?(C=p.styleAttributeSanitizer(C),jO(l,e,C)):jO(l,e,C);break;case 5:p.JSC$9223_resourceUrlPolicy?(u={type:2,attributeName:e,elementName:t},C=jl8(C),(C=p.JSC$9223_resourceUrlPolicy(C,u))&&jO(l,e,C.toString())):jO(l,e,C);break;case 6:if(p.JSC$9223_resourceUrlPolicy){u={type:2,attributeName:e,elementName:t};q=[];C=_.c(C.split(","));for(a=C.next();!a.done;a=C.next())m=_.c(a.value.trim().split(/\s+/,2)),a=m.next().value,m=m.next().value,q.push({url:a,descriptor:m});
C={parts:[]};q=_.c(q);for(a=q.next();!a.done;a=q.next())a=a.value,m=jl8(a.url),(m=p.JSC$9223_resourceUrlPolicy(m,u))&&C.parts.push({url:m.toString(),descriptor:a.descriptor});jO(l,e,PzL(C))}else jO(l,e,C);break;case 7:u=C;if(p.JSC$9223_navigationUrlPolicy){u={type:2,attributeName:e,elementName:t};C=jl8(C);C=p.JSC$9223_navigationUrlPolicy(C,u);if(C===null)break;u=C.toString()}C=u;u=_.Buu(C);u=u!==void 0&&rRZ.indexOf(u.toLowerCase())!==-1?C:"about:invalid#zClosurez";jO(l,e,u)}}return l};
_.rZi=ru(function(){return new QvZ(VBQ)});
_.S$i=ru(function(){return new QvZ(gxU)});var FPU=function(){this.calledBuild=!1;this.JSC$9235_sanitizerTable=VBQ},LPU=function(){FPU.apply(this,arguments)};
_.A(LPU,FPU);LPU.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new QvZ(this.JSC$9235_sanitizerTable,void 0,void 0,this.JSC$9235_resourceUrlPolicy,this.JSC$9235_navigationUrlPolicy)};var kMr=/[^#]*/;var fHl=function(p){try{return!!p&&p.location.href!=null&&oPu(p,"foo")}catch(y){return!1}},DOO=function(p){var y=Nri;
if(y)for(var l in y)Object.prototype.hasOwnProperty.call(y,l)&&p(y[l],l,y)},HUZ=function(){var p=[];
DOO(function(y){p.push(y)});
return p},Nri={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"},Tr$=_.Sz(function(){return HUZ()}),Bri=function(){var p=xOZ("IFRAME"),
y={};
_.lv(Tr$(),function(l){p.sandbox&&p.sandbox.supports&&p.sandbox.supports(l)&&(y[l]=!0)});
return y},xOZ=function(p,y){y=y===void 0?document:y;
return y.createElement(String(p).toLowerCase())};var kC;_.OP=function(p,y,l){return Math.min(Math.max(p,y),l)};
kC=function(p,y,l){return p+l*(y-p)};_.BJ=function(p,y){this.x=p!==void 0?p:0;this.y=y!==void 0?y:0};
_.J=_.BJ.prototype;_.J.clone=function(){return new _.BJ(this.x,this.y)};
_.J.equals=function(p){return p instanceof _.BJ&&(this==p?!0:this&&p?this.x==p.x&&this.y==p.y:!1)};
_.J.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.J.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.J.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.J.translate=function(p,y){p instanceof _.BJ?(this.x+=p.x,this.y+=p.y):(this.x+=Number(p),typeof y==="number"&&(this.y+=y));return this};
_.J.scale=function(p,y){this.x*=p;this.y*=typeof y==="number"?y:p;return this};_.wV=function(p,y){this.width=p;this.height=y};
_.J=_.wV.prototype;_.J.clone=function(){return new _.wV(this.width,this.height)};
_.J.area=function(){return this.width*this.height};
_.J.aspectRatio=function(){return this.width/this.height};
_.J.isEmpty=function(){return!this.area()};
_.J.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.J.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.J.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.J.scale=function(p,y){this.width*=p;this.height*=typeof y==="number"?y:p;return this};var dJ=function(p,y){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=p===Eoa&&y||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=fVr};
dJ.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var vxN=function(p){return p instanceof dJ&&p.constructor===dJ&&p.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===fVr?p.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},fVr={},Eoa={};
new dJ(Eoa,"");var SO,KS,DI,XUP,oxi,OUi,f0,Y$v,pRU,IV$,BZ,ymO,cmM,JmN,E1Q,eVB,hVv,C9N,uwr,ZlR,RVP,aA$,mLx,WiU,NZ;SO=function(p){return p?new NZ(_.vJ(p)):q2g||(q2g=new NZ)};
_.bj=function(p,y){return typeof y==="string"?p.getElementById(y):y};
KS=function(p,y){return(y||document).getElementsByTagName(String(p))};
_.dOQ=function(p){return XUP("yt-formatted-string","paper-input-input",p)};
DI=function(p,y,l,q){p=q||p;return(y=y&&y!="*"?String(y).toUpperCase():"")||l?p.querySelectorAll(y+(l?"."+l:"")):p.getElementsByTagName("*")};
XUP=function(p,y,l){var q=document,t=p&&p!="*"?String(p).toUpperCase():"";return t||y?(l||q).querySelector(t+(y?"."+y:"")):DI(q,p,y,l)[0]||null};
oxi=function(p,y){_.Ts.forEach(y,function(l,q){q=="style"?p.style.cssText=l:q=="class"?p.className=l:q=="for"?p.htmlFor=l:OUi.hasOwnProperty(q)?p.setAttribute(OUi[q],l):_.tR(q,"aria-")||_.tR(q,"data-")?p.setAttribute(q,l):p[q]=l})};
OUi={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"};_.iz=function(p){p=(p||window).document;p=p.compatMode=="CSS1Compat"?p.documentElement:p.body;return new _.wV(p.clientWidth,p.clientHeight)};
_.zri=function(p){var y=_.HZ(p);p=p.defaultView;return new _.BJ(p.pageXOffset||y.scrollLeft,p.pageYOffset||y.scrollTop)};
_.HZ=function(p){return p.scrollingElement?p.scrollingElement:_.ZY||p.compatMode!="CSS1Compat"?p.body||p.documentElement:p.documentElement};
f0=function(p){return p?p.defaultView:window};
_.Tk=function(p,y,l){return Y$v(document,arguments)};
Y$v=function(p,y){var l=y[1],q=IV$(p,String(y[0]));l&&(typeof l==="string"?q.className=l:Array.isArray(l)?q.className=l.join(" "):oxi(q,l));y.length>2&&pRU(p,q,y,2);return q};
pRU=function(p,y,l,q){function t(C){C&&y.appendChild(typeof C==="string"?p.createTextNode(C):C)}
for(;q<l.length;q++){var E=l[q];if(!_.zl(E)||_.yQ(E)&&E.nodeType>0)t(E);else{a:{if(E&&typeof E.length=="number"){if(_.yQ(E)){var e=typeof E.item=="function"||typeof E.item=="string";break a}if(typeof E==="function"){e=typeof E.item=="function";break a}}e=!1}_.lv(e?_.og(E):E,t)}}};
_.gg=function(p){return IV$(document,p)};
IV$=function(p,y){y=String(y);p.contentType==="application/xhtml+xml"&&(y=y.toLowerCase());return p.createElement(y)};
_.xC=function(){return document.createTextNode("\n")};
BZ=function(p){if(p.nodeType!=1)return!1;switch(p.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
ymO=function(p,y){pRU(_.vJ(p),p,arguments,1)};
_.fj=function(p){for(var y;y=p.firstChild;)p.removeChild(y)};
_.vZ=function(p,y){y.parentNode&&y.parentNode.insertBefore(p,y)};
_.Xd=function(p,y){y.parentNode&&y.parentNode.insertBefore(p,y.nextSibling)};
_.Qy=function(p){return p&&p.parentNode?p.parentNode.removeChild(p):null};
_.lAU=function(p,y){var l=y.parentNode;l&&l.replaceChild(p,y)};
_.quQ=function(p){var y,l=p.parentNode;if(l&&l.nodeType!=11)if(p.removeNode)p.removeNode(!1);else{for(;y=p.firstChild;)l.insertBefore(y,p);_.Qy(p)}};
_.dH=function(p){return p.children!=void 0?p.children:Array.prototype.filter.call(p.childNodes,function(y){return y.nodeType==1})};
_.tdQ=function(p){return p.nextElementSibling!==void 0?p.nextElementSibling:_.sTM(p.nextSibling,!0)};
_.sTM=function(p,y){for(;p&&p.nodeType!=1;)p=y?p.nextSibling:p.previousSibling;return p};
_.Jp=function(p){return _.yQ(p)&&p.nodeType==1};
_.OE=function(p,y){if(!p||!y)return!1;if(p.contains&&y.nodeType==1)return p==y||p.contains(y);if(typeof p.compareDocumentPosition!="undefined")return p==y||!!(p.compareDocumentPosition(y)&16);for(;y&&p!=y;)y=y.parentNode;return y==p};
cmM=function(p,y){if(p==y)return 0;if(p.compareDocumentPosition)return p.compareDocumentPosition(y)&2?1:-1;if("sourceIndex"in p||p.parentNode&&"sourceIndex"in p.parentNode){var l=p.nodeType==1,q=y.nodeType==1;if(l&&q)return p.sourceIndex-y.sourceIndex;var t=p.parentNode,E=y.parentNode;return t==E?E1Q(p,y):!l&&_.OE(t,y)?-1*JmN(p,y):!q&&_.OE(E,p)?JmN(y,p):(l?p.sourceIndex:t.sourceIndex)-(q?y.sourceIndex:E.sourceIndex)}q=_.vJ(p);l=q.createRange();l.selectNode(p);l.collapse(!0);p=q.createRange();p.selectNode(y);
p.collapse(!0);return l.compareBoundaryPoints(_.l_.Range.START_TO_END,p)};
JmN=function(p,y){var l=p.parentNode;if(l==y)return-1;for(;y.parentNode!=l;)y=y.parentNode;return E1Q(y,p)};
E1Q=function(p,y){for(;y=y.previousSibling;)if(y==p)return-1;return 1};
eVB=function(p){var y,l=arguments.length;if(!l)return null;if(l==1)return arguments[0];var q=[],t=Infinity;for(y=0;y<l;y++){for(var E=[],e=arguments[y];e;)E.unshift(e),e=e.parentNode;q.push(E);t=Math.min(t,E.length)}E=null;for(y=0;y<t;y++){e=q[0][y];for(var C=1;C<l;C++)if(e!=q[C][y])return E;E=e}return E};
_.vJ=function(p){return p.nodeType==9?p:p.ownerDocument||p.document};
hVv=function(p){return p.contentDocument||p.contentWindow.document};
_.Of=function(p,y){if("textContent"in p)p.textContent=y;else if(p.nodeType==3)p.data=String(y);else if(p.firstChild&&p.firstChild.nodeType==3){for(;p.lastChild!=p.firstChild;)p.removeChild(p.lastChild);p.firstChild.data=String(y)}else _.fj(p),p.appendChild(_.vJ(p).createTextNode(String(y)))};
C9N={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};uwr={IMG:" ",BR:"\n"};ZlR=function(p){var y;p.tagName=="A"&&p.hasAttribute("href")||p.tagName=="INPUT"||p.tagName=="TEXTAREA"||p.tagName=="SELECT"||p.tagName=="BUTTON"?y=!p.disabled&&(!p.hasAttribute("tabindex")||RVP(p)):y=p.hasAttribute("tabindex")&&RVP(p);return y};
RVP=function(p){p=p.tabIndex;return typeof p==="number"&&p>=0&&p<32768};
aA$=function(p){var y=[];WiU(p,y,!0);p=y.join("");p=p.replace(/ \xAD /g," ").replace(/\xAD/g,"");p=p.replace(/\u200B/g,"");p=p.replace(/ +/g," ");p!=" "&&(p=p.replace(/^\s*/,""));return p};
mLx=function(p){var y=[];WiU(p,y,!1);return y.join("")};
WiU=function(p,y,l){if(!(p.nodeName in C9N))if(p.nodeType==3)l?y.push(String(p.nodeValue).replace(/(\r\n|\r|\n)/g,"")):y.push(p.nodeValue);else if(p.nodeName in uwr)y.push(uwr[p.nodeName]);else for(p=p.firstChild;p;)WiU(p,y,l),p=p.nextSibling};
_.ULx=function(p,y,l){if(!y&&!l)return null;var q=y?String(y).toUpperCase():null;return _.dV(p,function(t){return(!q||t.nodeName==q)&&(!l||typeof t.className==="string"&&_.Tl(t.className.split(/\s+/),l))},!0)};
_.dV=function(p,y,l){p&&!l&&(p=p.parentNode);for(l=0;p;){if(y(p))return p;p=p.parentNode;l++}return null};
NZ=function(p){this.JSC$9260_document_=p||_.l_.document||document};
_.J=NZ.prototype;_.J.getElement=function(p){return _.bj(this.JSC$9260_document_,p)};
_.J.$=NZ.prototype.getElement;_.J.getElementsByTagName=function(p,y){return(y||this.JSC$9260_document_).getElementsByTagName(String(p))};
_.J.getElementsByTagNameAndClass=function(p,y,l){return DI(this.JSC$9260_document_,p,y,l)};
_.J.$$=NZ.prototype.getElementsByTagNameAndClass;_.J.setProperties=oxi;_.J.JSC$9262_createDom=function(p,y,l){return Y$v(this.JSC$9260_document_,arguments)};
_.J.createElement=function(p){return IV$(this.JSC$9260_document_,p)};
_.J.createTextNode=function(p){return this.JSC$9260_document_.createTextNode(String(p))};
_.J.getWindow=function(){return this.JSC$9260_document_.defaultView};
var rV=function(p){return _.zri(p.JSC$9260_document_)};
_.J=NZ.prototype;_.J.appendChild=function(p,y){p.appendChild(y)};
_.J.append=ymO;_.J.canHaveChildren=BZ;_.J.removeNode=_.Qy;_.J.getChildren=_.dH;_.J.contains=_.OE;_.J=Gs.prototype;_.J.getWidth=function(){return this.right-this.left};
_.J.getHeight=function(){return this.bottom-this.top};
_.J.clone=function(){return new Gs(this.top,this.right,this.bottom,this.left)};
_.J.contains=function(p){return this&&p?p instanceof Gs?p.left>=this.left&&p.right<=this.right&&p.top>=this.top&&p.bottom<=this.bottom:p.x>=this.left&&p.x<=this.right&&p.y>=this.top&&p.y<=this.bottom:!1};
_.J.expand=function(p,y,l,q){_.yQ(p)?(this.top-=p.top,this.right+=p.right,this.bottom+=p.bottom,this.left-=p.left):(this.top-=p,this.right+=Number(y),this.bottom+=Number(l),this.left-=Number(q));return this};
_.J.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
_.J.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
_.J.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
_.J.translate=function(p,y){p instanceof _.BJ?(this.left+=p.x,this.right+=p.x,this.top+=p.y,this.bottom+=p.y):(this.left+=p,this.right+=p,typeof y==="number"&&(this.top+=y,this.bottom+=y));return this};
_.J.scale=function(p,y){y=typeof y==="number"?y:p;this.left*=p;this.right*=p;this.top*=y;this.bottom*=y;return this};var oC=function(p,y,l,q){this.left=p;this.top=y;this.width=l;this.height=q};
_.J=oC.prototype;_.J.clone=function(){return new oC(this.left,this.top,this.width,this.height)};
_.J.boundingRect=function(p){var y=Math.max(this.left+this.width,p.left+p.width),l=Math.max(this.top+this.height,p.top+p.height);this.left=Math.min(this.left,p.left);this.top=Math.min(this.top,p.top);this.width=y-this.left;this.height=l-this.top};
_.J.contains=function(p){return p instanceof _.BJ?p.x>=this.left&&p.x<=this.left+this.width&&p.y>=this.top&&p.y<=this.top+this.height:this.left<=p.left&&this.left+this.width>=p.left+p.width&&this.top<=p.top&&this.top+this.height>=p.top+p.height};
_.J.distance=function(p){var y=p.x<this.left?this.left-p.x:Math.max(p.x-(this.left+this.width),0);p=p.y<this.top?this.top-p.y:Math.max(p.y-(this.top+this.height),0);return Math.sqrt(y*y+p*p)};
_.J.getSize=function(){return new _.wV(this.width,this.height)};
_.J.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.J.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.J.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.J.translate=function(p,y){p instanceof _.BJ?(this.left+=p.x,this.top+=p.y):(this.left+=p,typeof y==="number"&&(this.top+=y));return this};
_.J.scale=function(p,y){y=typeof y==="number"?y:p;this.left*=p;this.width*=p;this.top*=y;this.height*=y;return this};var jTP,IC,zyt,YC,P9B,GdU,AmU,mZl,Z7B,VdU;_.zk=function(p,y,l){if(typeof y==="string")(y=_.$Lv(p,y))&&(p.style[y]=l);else for(var q in y){l=p;var t=y[q],E=_.$Lv(l,q);E&&(l.style[E]=t)}};
jTP={};_.$Lv=function(p,y){var l=jTP[y];if(!l){var q=_.Vl(y);l=q;p.style[q]===void 0&&(q=(_.ZY?"Webkit":_.Aj?"Moz":null)+xaZ(q),p.style[q]!==void 0&&(l=q));jTP[y]=l}return l};
_.iI=function(p,y){var l=_.vJ(p);return l.defaultView&&l.defaultView.getComputedStyle&&(p=l.defaultView.getComputedStyle(p,null))?p[y]||p.getPropertyValue(y)||"":""};
_.dg=function(p,y){return _.iI(p,y)||(p.currentStyle?p.currentStyle[y]:null)||p.style&&p.style[y]};
_.b7O=function(p){return _.dg(p,"position")};
IC=function(p,y,l){if(y instanceof _.BJ){var q=y.x;y=y.y}else q=y,y=l;p.style.left=YC(q,!1);p.style.top=YC(y,!1)};
zyt=function(p){try{return p.getBoundingClientRect()}catch(y){return{left:0,top:0,right:0,bottom:0}}};
_.Xq=function(p){var y=_.vJ(p),l=new _.BJ(0,0);if(p==(y?_.vJ(y):document).documentElement)return l;p=zyt(p);y=rV(SO(y));l.x=p.left+y.x;l.y=p.top+y.y;return l};
_.n1U=function(p,y,l){if(y instanceof _.wV)l=y.height,y=y.width;else if(l==void 0)throw Error("oa");p.style.width=YC(y,!0);p.style.height=YC(l,!0)};
YC=function(p,y){typeof p=="number"&&(p=(y?Math.round(p):p)+"px");return p};
P9B=function(p){return GdU(p)};
GdU=function(p){var y=AmU;if(_.dg(p,"display")!="none")return y(p);var l=p.style,q=l.display,t=l.visibility,E=l.position;l.visibility="hidden";l.position="absolute";l.display="inline";p=y(p);l.display=q;l.position=E;l.visibility=t;return p};
AmU=function(p){var y=p.offsetWidth,l=p.offsetHeight,q=_.ZY&&!y&&!l;return(y===void 0||q)&&p.getBoundingClientRect?(p=zyt(p),new _.wV(p.right-p.left,p.bottom-p.top)):new _.wV(y,l)};
mZl=function(p){var y=_.Xq(p);p=GdU(p);return new oC(y.x,y.y,p.width,p.height)};
Z7B=function(p,y){p=p.style;"opacity"in p?p.opacity=y:"MozOpacity"in p?p.MozOpacity=y:"filter"in p&&(p.filter=y===""?"":"alpha(opacity="+Number(y)*100+")")};
_.yc=function(p,y){p.style.display=y?"":"none"};
_.MdQ=function(p){return"rtl"==_.dg(p,"direction")};
VdU=function(p){var y=_.iI(p,"marginLeft"),l=_.iI(p,"marginRight"),q=_.iI(p,"marginTop");p=_.iI(p,"marginBottom");return new Gs(parseFloat(q),parseFloat(l),parseFloat(p),parseFloat(y))};
_.g1V=function(p){var y=_.iI(p,"borderLeftWidth"),l=_.iI(p,"borderRightWidth"),q=_.iI(p,"borderTopWidth");p=_.iI(p,"borderBottomWidth");return new Gs(parseFloat(q),parseFloat(l),parseFloat(p),parseFloat(y))};var pu=function(p){this.context=p};
pu.prototype.isSupported=function(p){return(p==null?0:p.attributionEnabled)||(p==null?void 0:p.beaconMethod)==="POST"||(p==null?0:p.customHeaders)||(p==null?0:p.customBody)||(p==null?0:p.keepAlive)?!1:!wH(this.context)};
pu.prototype.ping=function(){var p=this;return FD(_.oX.apply(0,arguments).map(function(y){try{var l=p.context.global,q=!1;q=q===void 0?!1:q;l.google_image_requests||(l.google_image_requests=[]);var t=xOZ("IMG",l.document);q&&(t.attributionSrc="");t.src=y;l.google_image_requests.push(t);return!0}catch(E){return!1}}).every(function(y){return y}))};
pu.prototype.pingWithHeadersAndBody=function(p,y,l){this.ping.apply(this,_.xq(_.oX.apply(3,arguments)))};var QTi=function(p){this.context=p};
QTi.prototype.isSupported=function(p){return KiQ&&!wH(this.context)&&Z0c(this.context)!==void 0&&!(p==null?0:p.attributionEnabled)&&(p==null?void 0:p.beaconMethod)!=="POST"&&!(p==null?0:p.customHeaders)&&!(p==null?0:p.customBody)};
QTi.prototype.makeBeacon=function(p,y){if(!this.isSupported(y))throw new V0;return new y4(this.context,p)};
var KiQ=!1,y4=function(p,y){this.context=p;this.JSC$9281_urlWithoutToken=y;p=Z0c(this.context);if(p===void 0)throw Error();this.wrappedBeacon=new p(wRr(this),{})},wRr=function(p){p=p.JSC$9281_urlWithoutToken;
return(p.slice(-1)[0]==="&"?p:p+"&")+"pbapi=1"};
y4.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
y4.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
y4.prototype.setHeader=function(){};
_.Jh.Object.defineProperties(y4.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9281_urlWithoutToken},
set:function(p){this.JSC$9281_urlWithoutToken=p;this.wrappedBeacon.setURL(wRr(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(p){if(p!=="GET")throw new V0;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var i7v=function(p){this.context=p};
i7v.prototype.isSupported=function(p){if((p==null?0:p.attributionEnabled)||(p==null?void 0:p.beaconMethod)==="GET"||(p==null?0:p.customHeaders)||(p==null?0:p.customBody)||(p==null?0:p.keepAlive))return!1;var y;return!wH(this.context)&&((y=this.context.global.navigator)==null?void 0:y.sendBeacon)!==void 0};
i7v.prototype.ping=function(){var p=this;return FD(_.oX.apply(0,arguments).map(function(y){var l;return(l=p.context.global.navigator)==null?void 0:l.sendBeacon(y)}).every(function(y){return y}))};
i7v.prototype.pingWithHeadersAndBody=function(p,y,l){this.ping.apply(this,_.xq(_.oX.apply(3,arguments)))};var QE=function(p){this.value=p},tq=function(p,y){return FD(p.value).pipe(Z7(y))},Jq=new QE(!1),hnj=new QE(!0);var O6=function(p){this.value=p;this.releasedSubject=new PJ};
O6.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Jh.Object.defineProperties(O6.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9294_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var NVt=["FRAME","IMG","IFRAME"],i0l=/^[01](px)?$/,ksa=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},LJ5=function(){var p=new ksa;
p.crossDomainLoadedDefault=!0;p.pendingImagesBlockLoad=!0;return p};var rmr=function(p,y){var l=vIl(p);if(l)if(l.onCreativeLoad)l.onCreativeLoad(y);else{var q=y?[y]:[],t=function(E){for(var e=0;e<q.length;++e)try{q[e](1,E)}catch(C){}q={push:function(C){C(1,E)}}};
l.onCreativeLoad=function(E){q.push(E)};
l.setAttribute("data-creative-load-listener","");l.addEventListener("creativeLoad",function(E){t(E.detail)});
_.l_.addEventListener("message",function(E){f7_(l,t,E)})}};var l0=function(p,y){var l=this;this.global=p;this.parentContext=y;this.JSC$9305_onVisibilityChange=this.document?O8(FD(!0),XD(this.document,"visibilitychange")).pipe(p0(this.parentContext.performanceMonitor,748),Tw(function(){return l.getVisibilityState()}),E6()):FD("visible");
this.document?XD(this.document,"DOMContentLoaded").pipe(p0(this.parentContext.performanceMonitor,739),tQ(1)):FD(KJ_("DOMContentLoaded"))},enR=function(p){return p.document!==null&&p.document.visibilityState!==void 0};
l0.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
l0.prototype.querySelector=function(p){return this.document?this.document.querySelector(p):null};
l0.prototype.querySelectorAll=function(p){return this.document?_.og(this.document.querySelectorAll(p)):[]};
l0.prototype.elementFromPoint=function(p,y){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;p=this.document.elementFromPoint(p,y);return p===null?null:new O6(p)};
var Yrm=function(p,y,l){l=l===void 0?!1:l;if(y.ref===void 0||!p.document)return FD(y).pipe(p0(p.parentContext.performanceMonitor,749));var q=new hQ(1),t=function(){q.next(y)};
l||rmr(y.ref,t);DQ5(y.ref,t);return q.pipe(p0(p.parentContext.performanceMonitor,749),tQ(1))};
_.Jh.Object.defineProperties(l0.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return oPu(this.global,"document")?this.global.document||null:null}}});var XJR=_.c0(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),dQt=_.c0(["./reach_worklet.js"]),O0R=_.c0(["./reach_worklet.js"]),SuN=_.c0(["./reach_worklet.html"]),FiQ=_.c0(["./reach_worklet.js"]),LiB=_.c0(["./reach_worklet.js"]);_.bz(SuN);_.bz(FiQ);_.bz(LiB);var Il={left:0,top:0,width:0,height:0};var kdB,N6$,DLM,H7Q,hJ,xLU,B6i,fAU,dJj,O_m,dLZ,O7V;kdB=function(p,y,l,q,t,E,e){var C="";p&&(C+=p+":");l&&(C+="//",y&&(C+=y+"@"),C+=l,q&&(C+=":"+q));t&&(C+=t);E&&(C+="?"+E);e&&(C+="#"+e);return C};
N6$=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.cC=function(p){return p.match(N6$)};
_.xz=function(p,y){return p?y?decodeURI(p):decodeURIComponent(p):p};
DLM=function(p){p=_.cC(p)[1]||null;!p&&_.l_.self&&_.l_.self.location&&(p=_.l_.self.location.protocol.slice(0,-1));return p?p.toLowerCase():""};
_.eM=function(p){return _.xz(_.cC(p)[3]||null,!0)};
_.AJ=function(p){return _.xz(_.cC(p)[5]||null,!0)};
_.hpL=function(p){var y=p.indexOf("#");return y<0?null:p.slice(y+1)};
H7Q=function(p){p=_.cC(p);return kdB(p[1],p[2],p[3],p[4])};
_.T6V=function(p){p=_.cC(p);return kdB(p[1],null,p[3],p[4])};
_.IG=function(p){p=_.cC(p);return kdB(null,null,null,null,p[5],p[6],p[7])};
_.eN=function(p){var y=p.indexOf("#");return y<0?p:p.slice(0,y)};
hJ=function(p,y){p=_.cC(p);y=_.cC(y);return p[3]==y[3]&&p[1]==y[1]&&p[4]==y[4]};
xLU=function(p,y){if(p){p=p.split("&");for(var l=0;l<p.length;l++){var q=p[l].indexOf("="),t=null;if(q>=0){var E=p[l].substring(0,q);t=p[l].substring(q+1)}else E=p[l];y(E,t?uv(t):"")}}};
B6i=function(p){var y=p.indexOf("#");y<0&&(y=p.length);var l=p.indexOf("?");if(l<0||l>y){l=y;var q=""}else q=p.substring(l+1,y);return[p.slice(0,l),q,p.slice(y)]};
fAU=function(p,y){return y?p?p+"&"+y:y:p};
_.v1P=function(p,y){if(!y)return p;p=B6i(p);p[1]=fAU(p[1],y);return p[0]+(p[1]?"?"+p[1]:"")+p[2]};
_.XRP=function(p,y,l){if(Array.isArray(y))for(var q=0;q<y.length;q++)_.XRP(p,String(y[q]),l);else y!=null&&l.push(p+(y===""?"":"="+_.y$(y)))};
_.MM=function(p){var y=[],l;for(l in p)_.XRP(l,p[l],y);return y.join("&")};
_.JJ=function(p,y){y=_.MM(y);return _.v1P(p,y)};
_.qi=function(p,y,l){l=l!=null?"="+_.y$(l):"";return _.v1P(p,y+l)};
dJj=function(p,y,l,q){for(var t=l.length;(y=p.indexOf(l,y))>=0&&y<q;){var E=p.charCodeAt(y-1);if(E==38||E==63)if(E=p.charCodeAt(y+t),!E||E==61||E==38||E==35)return y;y+=t+1}return-1};
O_m=/#|$/;_.oY=function(p,y){var l=p.search(O_m),q=dJj(p,0,y,l);if(q<0)return null;var t=p.indexOf("&",q);if(t<0||t>l)t=l;q+=y.length+1;return uv(p.slice(q,t!==-1?t:0))};
dLZ=/[?&]($|#)/;_.Cy=function(p,y){for(var l=p.search(O_m),q=0,t,E=[];(t=dJj(p,q,y,l))>=0;)E.push(p.substring(q,t)),q=Math.min(p.indexOf("&",t)+1||l,l);E.push(p.slice(q));return E.join("").replace(dLZ,"$1")};
_.OL=function(p,y,l){return _.qi(_.Cy(p,y),y,l)};
O7V=function(p){var y=B6i(window.location.href),l=y[1],q=[];l&&l.split("&").forEach(function(t){var E=t.indexOf("=");E=E>=0?t.slice(0,E):t;p.hasOwnProperty(E)||q.push(t)});
y[1]=fAU(q.join("&"),_.MM(p));return y[0]+(y[1]?"?"+y[1]:"")+y[2]};var azg=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(azg,_.RX);azg.prototype.getVersion=function(){return _.fq(this,2)};var W2c=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(W2c,_.RX);var cq_=function(p,y){return _.Fq(p,2,y)},RyR=function(p,y){return _.Fq(p,3,y)};
W2c.prototype.getModel=function(){return _.fq(this,4)};
var hyR=function(p,y){return _.Fq(p,4,y)},Jqt=function(p,y){return _.Fq(p,5,y)},uZl=function(p,y){return _.Fq(p,9,y)},EPg=function(p,y){return NY(p,10,y)},trg=function(p,y){return _.jr(p,11,y)},eyu=function(p,y){return _.Fq(p,1,y)},C4c=function(p,y){return _.jr(p,7,y)};var qE_="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var EE=function(p,y,l,q){p=p===void 0?window:p;y=y===void 0?null:y;l=l===void 0?new e5v:l;q=q===void 0?oI_():q;svx.call(this);var t=this;this.global=p;this.debugChannel=y;this.performanceMonitor=l;this.onPageHide=DNt(function(){return XD(t.global,"pagehide")}).pipe(p0(this.performanceMonitor,941));
this.onLoad=DNt(function(){return XD(t.global,"load")}).pipe(p0(this.performanceMonitor,738),tQ(1));
this.onResize=DNt(function(){return XD(t.global,"resize")}).pipe(p0(this.performanceMonitor,741));
this.onMessage=DNt(function(){return XD(t.global,"message")}).pipe(p0(this.performanceMonitor,740));
this.document=new l0(this.global,this);this.timeProvider=new hrx(new uiQ(this.intrinsicFunctionNamespace,this.performanceMonitor),new CNN(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new JZr(new WPv(this),new QTi(this),new gH(this,new UOZ(this)),new gH(this,new i7v(this)),new gH(this,new pu(this)))};
_.A(EE,svx);var wH=function(p){var y=p.global;return!!p.global.HTMLFencedFrameElement&&!!y.fence&&typeof y.fence.reportEvent==="function"};
_.J=EE.prototype;_.J.reportFencedFrameEvent=function(p){wH(this)&&this.global.fence.reportEvent(p)};
_.J.getOnBackgrounded=function(){return this.onPageHide.pipe(p0(this.performanceMonitor,942),Z7(this.queue),Tw(function(){}))};
_.J.postMessage=function(p,y,l){l=l===void 0?[]:l;this.global.postMessage(p,y,l)};
_.J.getWidth=function(){return fHl(this.global)?this.global.width:0};
_.J.getHeight=function(){return fHl(this.global)?this.global.height:0};
_.J.isMobile=function(){return jvr()||bUB()};
var ol=function(p,y){try{var l=p9_(y,p.global,p.isMobile());return{left:l.left,top:l.top,width:l.getWidth(),height:l.getHeight()}}catch(q){return Il}};
EE.prototype.validate=function(){var p=this.beaconFactory.isSupported()||wH(this);return this.global&&this.timeProvider.available()&&p};
var VOm=function(p){return(p=UFo(p.global))?MN(p):null};
_.Jh.Object.defineProperties(EE.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(p){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!fHl(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}}});_.o1Q=!_.P0&&!_.wm();var CBL=function(p){return p};var RnR=function(p){return p.pipe(zw(function(y){var l=y.endOfSessionReason;var q;return((q=y.viewable)==null?void 0:q.extrapolateToNow().value)||l!=void 0}),tQ(1),lz())};var Aqt=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},ZSl=function(p){var y=p.sequenceNumber.toString(10).padStart(2,"0");
y=""+p.startTime+y;p.sequenceNumber<99&&p.sequenceNumber++;return y};var cMt=b6(U6(function(p){return p.endOfSessionReason===void 0}),Tw(function(p){return Object.assign({},p,{timestamps:kI(p)})}),zw(function(p){var y=p.viewable;
p=p.timestamps;var l;return(l=y==null?void 0:y.extrapolateUsingTimestampMap(p).value)!=null?l:!1}),Tw(function(p){var y=p.beaconFactory;
var l=p.timestampedExposureHistory;var q=p.timeOnScreen;var t=p.binaryContext;p=p.timestamps;if(y===void 0||l===void 0||q===void 0||t===void 0)return!1;if(q.extrapolateUsingTimestampMap(p).value.every(function(E){return E>=0}))return!0;
l=l.map(function(E){return E.timestamp+":"+E.value}).join(",");
q=Mra({bin:t,tos:q},p);y.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+q+("&eh="+l)).sendNow();return!0}),U6(function(p){return!p}),lz());var gP_=function(p){return{id:p.pingId,mcvt:p.maxConsecutiveViewTime,p:p.creativePosition,asp:p.adSpeedPosition,tm:p.totalMeasurementTime,tu:p.totalUnviewedTime,mtos:p.maxTimeOnScreen,tos:p.timeOnScreen,v:p.binaryVersion,bin:p.binaryContext,avms:p.measurementStrategy,bs:p.browserSize,mc:p.maximumExposure,"if":p.crossDomainIframeState,vu:p.delayedImpressionJsState,app:p.inApp,mse:p.mraidError,mtop:p.mraidSituation,itpl:p.injectedTemplateId,adk:p.adKey,exk:p.awbidKey,rs:p.requestSource,la:p.isLargeAd,
cr:p.isContentRecommendationAd,uach:p.userAgentClientHints,vs:p.viewState,r:p.reasonCode,pay:p.hasCpmavUrl,co:p.clientPingOrderCounter,rst:p.adRenderStartTime,rpt:p.adRenderPeriodTime,isd:p.initialScrollDepth,lsd:p.loadedScrollDepth,context:p.errorContext,msg:p.errorMessage,stack:p.errorStack,name:p.errorName,ec:p.hasElementChanged,sfr:p.strategyFailureReasons,met:p.creativeSearchResult,wmsd:p.webMeasurementStartDiagnostic,pv:p.pageVisible,epv:p.eosPageVisible,pbe:p.inStatefulBeaconExperiment,fle:p.inFetchLaterBeaconExperiment,
vae:p.inViewableAttributionExperiment,spb:p.supportsPendingBeacon,sfl:p.supportsFetchLater,ffslot:p.isFencedFrameSlotTurtlex,reach:p.sharedStorageReachMode,io2:p.v2VisibilityBitVector,rxdbg:p.rxDebugger,omida:p.omidAppId,omidp:p.omidPartner,omidpv:p.omidPartnerVersion,omidor:p.omidOcclusionReasons,omidv:p.omidVersion,omids:p.omidSessionType,omidam:p.omidAccessMode,omidct:p.omidCreativeType,omidia:p.omidInApp,omiddc:p.omidDeviceCategory,omidlat:p.omidLastActivity,omiddit:p.omidDeviceIdleTime,qid:p.errorEscapedQueryId}};var uF6=function(p){var y=[];return p.pipe(Tw(function(l){var q=l.beaconFactory,t=l.fetchBeaconFactory,E=l.timeOnScreen,e=l.timeOnScreenUrlPrefixes,C=l.payloadMapper,u=l.timeOnScreenPingId,a=l.timeOnScreenReason,m=l.urlSerializer,U=l.viewable,b=l.hasImpressionFired,P=l.inStatefulBeaconExperiment,Z=l.supportsPendingBeacon,K=l.supportsFetchLater,F=l.turtlexReportEventData;if(!l.geometryMeasurable||!b||l.maxTimeOnScreen===void 0||E===void 0||e===void 0||C===void 0||u===void 0||m===void 0||q===void 0)return!1;
if(l.isTurtlex){if(a===void 0)return!1;e=l.reportFencedFrameEvent;if(!e)return!1;e({eventType:"active-view-time-on-screen",eventData:F!=null?F:"",destination:["buyer"]});return!0}if(!(P||K||a))return!1;F=kI(l);var L;U=(L=U==null?void 0:U.extrapolateUsingTimestampMap(F).value)!=null?L:!1;L=m(Object.assign({},l,{pingId:u,viewState:U?4:3,reasonCode:a!=null?a:"u",payloadMapper:C,urlPrefixes:e}),F);if(P){for(;y.length>e.length;)l=void 0,(l=y.shift())==null||l.deactivate();L.forEach(function(O,f){f>=y.length?
y.push(q.makeBeacon(O)):y[f].url=O});
return Z&&t&&a!==void 0?(L.forEach(function(O){t.makeBeacon(O).sendNow()}),!0):a!==void 0}if(Z&&t&&a!==void 0)return L.forEach(function(O){t.makeBeacon(O).sendNow()}),!0;
if(K&&t){for(;y.length>e.length;)Z=void 0,(Z=y.shift())==null||Z.deactivate();var T=m(Object.assign({},l,{pingId:u,viewState:U?4:3,reasonCode:a!=null?a:"u",payloadMapper:C,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),F)[0];L.forEach(function(O,f){f>=y.length?y.push(q.makeBeacon(T,{endOfSession:!0})):y[f].url=T});
return a!==void 0?(L.forEach(function(O){t.makeBeacon(O).sendNow()}),!0):a!==void 0}return a!==void 0?(L.forEach(function(O){q.makeBeacon(O).sendNow()}),!0):!1}),U6(function(l){return!l}),lz())};var Wq_=b6(zw(function(p){return p.immediateUrlPrefixes!==void 0&&p.payloadMapper!==void 0&&p.urlSerializer!==void 0&&p.inferredPingId!==void 0&&p.beaconFactory!==void 0}),zw(function(p){return L25(p)!==null}),SEc(function(p){return p.activeViewUnmeasurableEvent},function(p){return p.emit}),Tw(function(p){if(p.isTurtlex){var y=p.reportFencedFrameEvent;
if(y){var l;y({eventType:"active-view-unmeasurable",eventData:(l=p.turtlexReportEventData)!=null?l:"",destination:["buyer"]})}}else{l=void 0;var q=L25(p);if(q==="x"){var t,E=(t=p.geometricMeasurementErrors)!=null?t:p.contextValidationErrors;E&&(y=E.stack,l=E.message)}p.urlSerializer(Object.assign({},p,{urlPrefixes:p.immediateUrlPrefixes,payloadMapper:p.payloadMapper,pingId:p.inferredPingId,viewState:2,reasonCode:q,errorMessage:l,errorStack:y}),kI(p)).forEach(function(e){p.beaconFactory.makeBeacon(e).sendNow()})}}),
tQ(1),lz());var kHm=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var JM6=b6(zw(function(p){return p.payloadMapper!==void 0&&p.immediateUrlPrefixes!==void 0&&p.urlSerializer!==void 0&&p.inferredPingId!==void 0&&p.beaconFactory!==void 0}),Tw(function(p){return Object.assign({},p,{timestamps:kI(p)})}),zw(function(p){var y=p.viewable;
var l=p.hasImpressionFired;p=p.timestamps;var q;return!!l&&((q=y==null?void 0:y.extrapolateUsingTimestampMap(p).value)!=null?q:!1)}),SEc(function(p){return p.activeViewViewableEvent},function(p){return p.emit}),Tw(function(p){var y=p.beaconFactory,l=p.turtlexReportEventData;
if(p.isTurtlex){var q=p.reportFencedFrameEvent;if(!q)return!1;q({eventType:"active-view-viewable",eventData:l!=null?l:"",destination:["buyer"]});return!0}l=p.urlSerializer(Object.assign({},p,{urlPrefixes:p.immediateUrlPrefixes,payloadMapper:p.payloadMapper,pingId:p.inferredPingId,viewState:4,reasonCode:"v"}),p.timestamps);(q=p.cpmavUrls)&&q.length>0&&p.viewUrlSerializer&&p.viewUrlSerializer(q,p).forEach(function(t){y.makeBeacon(t).sendNow()});
(q=p.viewableRelayUrls)&&q.length>0&&p.viewUrlSerializer&&p.viewUrlSerializer(q,p).forEach(function(t){y.makeBeacon(t).sendNow()});
l.forEach(function(t){y.makeBeacon(t,{attributionEnabled:p.isViewableAttributionEnabled}).sendNow()});
return!0}),U6(function(p){return!p}),lz());var Qea=Tw(function(p){return[p.value.topWindowViewportExternalGeometry.width,p.value.topWindowViewportExternalGeometry.height]});var zs=function(p,y){this.callback=p;this.options=y;this.intersectionObserverV2=this.intersectionObserverV1=null},Cb8=function(p,y){y?p.intersectionObserverV2||(y=Object.assign({},p.options,{delay:100,
trackVisibility:!0}),p.intersectionObserverV2=new IntersectionObserver(p.callback,y)):p.intersectionObserverV1||(p.intersectionObserverV1=new IntersectionObserver(p.callback,p.options))},zVO=function(p,y){p=y?p.intersectionObserverV2:p.intersectionObserverV1;
if(!p)throw new tBr;return p};
zs.prototype.observe=function(p,y){zVO(this,p).observe(y)};
zs.prototype.unobserve=function(p,y){zVO(this,p).unobserve(y)};
zs.prototype.disconnect=function(p){zVO(this,p).disconnect()};
zs.prototype.takeRecords=function(p){return zVO(this,p).takeRecords()};var Izl={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Il,topWindowViewportExternalGeometry:Il,measurementRequests:new PJ,elementGeometrySourceName:"ns",elementGeometry:Il,intersectionGeometry:Il,viewportLocalAppOffset:{x:0,y:0}};var $A8=pS(b6(Tw(function(p){var y;return(y=p.exposureOverride)!=null?y:Rmu(p)}),Tw(function(p){return isFinite(p)?p:0}))),ZrL=pS(b6(Tw(function(p){var y;
return(y=p.exposureOverride)!=null?y:Rmu(p)}),Tw(function(p){return isFinite(p)?p:-1})));var sV=function(p,y){this.a=p;this.b=y;if(p.clock.timeline!==y.clock.timeline)throw Error();};
sV.prototype.equivalentTo=function(p){return p instanceof sV?this.a.equivalentTo(p.a)&&this.b.equivalentTo(p.b):!1};
sV.prototype.extrapolateToTime=function(p){var y=this.a.extrapolateToTime(p).value,l=this.b.extrapolateToTime(p).value;return{timestamp:p,value:[y,l]}};
_.Jh.Object.defineProperties(sV.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.a.active||this.b.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.a.clock}},
lastMeasurement:{configurable:!0,enumerable:!0,get:function(){var p=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),y=this.a.lastMeasurement.timestamp.equals(p)?this.a.lastMeasurement.value:this.a.extrapolateToTime(p).value,l=this.b.lastMeasurement.timestamp.equals(p)?this.b.lastMeasurement.value:this.b.extrapolateToTime(p).value;return{timestamp:p,value:[y,l]}}}});var t7=function(p,y){this.input=p;this.mapFunction=y;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
t7.prototype.equivalentTo=function(p){return p instanceof t7?this.input.equivalentTo(p.input)&&this.mapFunction===p.mapFunction:!1};
t7.prototype.extrapolateToTime=function(p){p=this.input.extrapolateToTime(p);return{timestamp:p.timestamp,value:this.mapFunction(p.value)}};
_.Jh.Object.defineProperties(t7.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var EV=function(){};
EV.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
EV.prototype.extrapolateUsingTimestampMap=function(p){var y=this.clock.timeline,l,q=(l=p.get(y))!=null?l:this.clock.now();p.set(y,q);return this.extrapolateToTime(q)};
EV.prototype.map=function(p){return new Yui(this,p)};
EV.prototype.joinWith=function(p){return new IAi(this,p)};
var IAi=function(){sV.apply(this,arguments);this.map=EV.prototype.map;this.joinWith=EV.prototype.joinWith;this.extrapolateToNow=EV.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=EV.prototype.extrapolateUsingTimestampMap};
_.A(IAi,sV);var Yui=function(){t7.apply(this,arguments);this.map=EV.prototype.map;this.joinWith=EV.prototype.joinWith;this.extrapolateToNow=EV.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=EV.prototype.extrapolateUsingTimestampMap};
_.A(Yui,t7);var qF=function(p,y){this.lastMeasurement=y;this.extrapolateToNow=EV.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=EV.prototype.extrapolateUsingTimestampMap;this.map=EV.prototype.map;this.joinWith=EV.prototype.joinWith;this.clock=p};
qF.prototype.equivalentTo=function(p){return p.active};
qF.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Jh.Object.defineProperties(qF.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var gJt=Tw(function(p){if(p.value.viewportGeometrySourceName==="omid"){if(p.value.elementGeometrySourceName==="nio")return"omio";if(p.value.elementGeometrySourceName==="geo")return"omgeo"}return p.value.elementGeometrySourceName==="geo"||p.value.elementGeometrySourceName==="nio"?p.value.viewportGeometrySourceName:p.value.elementGeometrySourceName});var aHj=b6(zw(function(p){return!isNaN(p)}),uz(function(p,y){return isNaN(p)?y:Math.min(p,y)},NaN),E6());var je_=pS(b6(Tw(function(p){return p.intersectionGeometry.width*p.intersectionGeometry.height/(p.exposedViewportLocalGeometry.width*p.exposedViewportLocalGeometry.height)}),Tw(function(p){return isFinite(p)?Math.min(1,p):0})));var Vhj=b6(pS(Tw(function(p){p=p.exposureOverride?p.elementGeometry.width*p.elementGeometry.height*p.exposureOverride/(p.topWindowViewportExternalGeometry.width*p.topWindowViewportExternalGeometry.height):p.intersectionGeometry.width*p.intersectionGeometry.height/(p.topWindowViewportExternalGeometry.width*p.topWindowViewportExternalGeometry.height);return isFinite(p)?p:0})));var irj=function(p,y){var l=this;this.timeProvider=p;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=y.pipe(E6()).subscribe(function(q){SrL(l);l.measurementRequestObserver=q})},Fu5=function(p,y){SrL(p);
p.lastMeasurementRequest=p.timeProvider.setTimeout(function(){var l;return void((l=p.measurementRequestObserver)==null?void 0:l.next())},y)},SrL=function(p){p.lastMeasurementRequest!==null&&p.timeProvider.clearTimeout(p.lastMeasurementRequest);
p.lastMeasurementRequest=null};
irj.prototype.dispose=function(){SrL(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var p6r=function(){};var s48=function(p,y){this.context=p;this.strategies=y};
_.A(s48,p6r);s48.prototype.buildGeometrySource=function(p,y){var l=this.strategies.map(function(E){return E.buildGeometrySource(p,y)}),q=Hru(l.map(function(E){return E.geometrySource})),t=q.capturedErrors.pipe(yEx());
return{geometrySource:q.chain.pipe(Z7(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:t,strategyErrors:q.capturedErrors}].concat(_.xq(l.map(function(E){return E.additionalOutputs}))))}};
var yEx=function(){return uz(function(p,y){y instanceof D7?p.push(y.measurementStrategyFailureReason):p.push(-1);return p},[])};var EZu=function(p,y){this.context=p;this.poller=y};
_.A(EZu,p6r);EZu.prototype.buildGeometrySource=function(p,y){var l=Tqt(Bqm(this.context,this.poller),pQu(this.context,y.requestSource));return{geometrySource:DAt(p.measurableCreative.pipe(l),y.inApp),additionalOutputs:{}}};var tcR=function(p,y,l){l=l===void 0?EJ5(p,y):l;this.context=p;this.intersectionObserverStrategy=l};
_.A(tcR,p6r);tcR.prototype.buildGeometrySource=function(p,y){var l=this.intersectionObserverStrategy(y.useV2);return{geometrySource:DAt(p.measurableCreative.pipe(l,JU5(this.context)),y.inApp),additionalOutputs:{}}};var llr=function(p,y,l){var q=q===void 0?Symbol():q;this.element=p;this.immediateUrls=y;this.timeOnScreenUrls=l;this.symbol=q};var wQm=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),oJj=Object.freeze([1,.75,wQm.exposureThreshold,wQm.largeAdExposureThreshold,0]);var qRm=function(p,y){y=y===void 0?36E5:y;var l=l===void 0?!0:l;this.creatives=new PJ;this.elementsToUnregister=new PJ;this.elementMap=new Map;var q=new EE(window,null);q.beaconFactory=new gH(q,new pu(q));qYL(q,this.creatives,this.elementsToUnregister,p,y,l).subscribe()},E38=function(p,y,l,q){if(!p.elementMap.has(y)){var t=new O6(y);
p.elementMap.set(y,t);p.creatives.next(new llr(t,l,q))}},tut=function(p,y){p.elementsToUnregister.next(y);
var l=p.elementMap.get(y);l!==void 0&&(l.release(),p.elementMap.delete(y))};var ylR=function(p){var y=p.url;p=p.uaDataValues;this.JSC$9410_url_=y;this.uaDataValues_=p;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var l=/[?&]([^&=]+)=([^&]*)/g;p=l.exec(y);)this.urlParamValues_[p[1]]=p[2]},lSR=function(p){p=p.uaDataValues_;
if(!p)return"";var y=c9("uap",p.platform)+c9("uapv",p.platformVersion)+c9("uafv",p.uaFullVersion)+c9("uaa",p.architecture)+c9("uam",p.model)+c9("uab",p.bitness);p.fullVersionList&&(y+="&uafvl="+encodeURIComponent(p.fullVersionList.map(function(l){return encodeURIComponent(l.brand)+";"+encodeURIComponent(l.version)}).join("|")));
p.wow64!=null&&(y+="&uaw="+Number(p.wow64));return y.slice(1)};var q3U=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(q3U,_.RX);q3U.prototype.getId=function(){return _.fq(this,1)};var J7=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(J7,_.RX);J7.prototype.getSeconds=function(){return xt(this,1)};
J7.prototype.setSeconds=function(p){return _.E3(this,1,ZA(p),"0")};_.ok=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(_.ok,_.RX);_.ok.prototype.getSeconds=function(){return xt(this,1)};
_.ok.prototype.setSeconds=function(p){return _.E3(this,1,ZA(p),"0")};
_.sX$=function(p){var y=Number(dl(p,1));p=_.W9(p,2);return new Date(y*1E3+p/1E6)};var cf=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(cf,_.RX);cf.prototype.getUrl=function(){return _.fq(this,1)};
cf.prototype.setUrl=function(p){return _.J2(this,1,p)};
cf.prototype.getHeight=function(){return _.W9(this,2)};
cf.prototype.getWidth=function(){return _.W9(this,3)};var eJ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(eJ,_.RX);eJ.prototype.getAspectRatio=function(){return B0(this,1)};
eJ.prototype.setAspectRatio=function(p){return _.E3(this,1,_.su(p),0)};
eJ.prototype.getDuration=function(){return _.MF(this,J7,2)};var tZr=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(tZr,_.RX);var EXi=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(EXi,_.RX);var JEM=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(JEM,_.RX);var cEr=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(cEr,_.RX);var efZ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(efZ,_.RX);var hfv=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(hfv,_.RX);var CfV=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(CfV,_.RX);var uXM=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(uXM,_.RX);var Rfv=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Rfv,_.RX);var h7=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(h7,_.RX);var Cu=[2,4,5,6,7];var WwV=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(WwV,_.RX);var DY=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(DY,_.RX);_.J=DY.prototype;_.J.getId=function(){return _.MF(this,q3U,1)};
_.J.getName=function(){return _.fq(this,2)};
_.J.setDescription=function(p){return _.J2(this,3,p)};
_.J.getUrl=function(){return _.fq(this,8)};
_.J.setUrl=function(p){return _.J2(this,8,p)};
var u0=function(p){return _.u4(p,cf,10,_.RY())};
DY.prototype.getOwner=function(p){var y=_.pO(this,40,_.r6,3,!0);TM(y,p);return y[p]};
DY.prototype.getVersion=function(){return xt(this,45)};
var RZ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(RZ,_.RX);_.alN=[0,zLt,IWt];_.mmB=[0,zLt,IWt];var UmN=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(UmN,_.RX);var Wf=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Wf,_.RX);Wf.prototype.getStatus=function(){return _.v0(this,1)};
Wf.prototype.removeItem=function(p){return aWm(this,2,p)};var $mV=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A($mV,_.RX);$mV.prototype.getName=function(){return _.fq(this,8)};var aZ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(aZ,_.RX);aZ.prototype.getCommand=function(){return _.v0(this,1)};
aZ.prototype.getSource=function(){return _.MF(this,$mV,2)};
aZ.prototype.setVisible=function(p){return _.D_(this,5,p)};
aZ.prototype.removeItem=function(p){return aWm(this,7,p)};var jXv=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(jXv,_.RX);jXv.prototype.getCommand=function(){return _.v0(this,1)};
jXv.prototype.removeItem=function(p){return aWm(this,4,p)};
var bOv=_.Mm(jXv);var m6=function(p,y,l){l=l===void 0?Error():l;var q=Error.call(this);this.message=q.message;"stack"in q&&(this.stack=q.stack);this.code=p;y+=":";l instanceof Error?(this.message=y+l.message,this.stack=l.stack||""):(this.message=y+String(l),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.A(m6,Error);_.Sr=function(){this.JSC$9468_disposed_=this.JSC$9468_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.Sr.prototype.JSC$9468_disposed_=!1;_.Sr.prototype.isDisposed=function(){return this.JSC$9468_disposed_};
_.Sr.prototype.dispose=function(){this.JSC$9468_disposed_||(this.JSC$9468_disposed_=!0,this.disposeInternal())};
_.Sr.prototype[Symbol.dispose]=function(){this.dispose()};
_.P9=function(p,y){p.addOnDisposeCallback(_.Ky(_.er,y))};
_.Sr.prototype.addOnDisposeCallback=function(p,y){this.JSC$9468_disposed_?y!==void 0?p.call(y):p():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),y&&(p=p.bind(y)),this.onDisposeCallbacks_.push(p))};
_.Sr.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var UV=function(p){_.Sr.call(this);this.wpc=p};
_.A(UV,_.Sr);UV.prototype.w30=function(){return this.wpc.f()};
UV.prototype.coc=function(p){return this.wpc.c(p)};
UV.prototype.eo=function(p){return this.wpc.m(j4t(p))};
UV.prototype.jZZ=function(p){return this.wpc.mws(j4t(p))};
var CS=function(p){_.Sr.call(this);var y=this;this.vm=p;this.dFA="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.wu3=void 0;this.f1g=this.vm.p;this.kRx=this.dzV.bind(this);this.addOnDisposeCallback(function(){return void nXv(y)})};
_.A(CS,_.Sr);var GBM=function(p){var y;return _.h(function(l){if(l.nextAddress==1){if(!p.vm.wpc)throw new m6(30,"NWA");return p.hzZ?l.return(p.hzZ):l.yield(p.vm.wpc(),2)}y=l.yieldResult;p.hzZ=new UV(y);return l.return(p.hzZ)})};
CS.prototype.snapshot=function(p){return this.vm.s(Object.assign({},p.m3&&{c:p.m3},p.dGX&&{s:p.dGX},p.vOF!==void 0&&{p:p.vOF}))};
CS.prototype.dzV=function(p){this.vm.e(p)};
CS.prototype.a3k=function(p,y){return this.vm.c(p,y,!1)};
var nXv=function(p){p.wu3!==void 0&&(p.dFA.forEach(function(y){var l;(l=p.wu3)==null||l.removeEventListener(y,p.kRx)}),p.wu3=void 0)};
CS.prototype.qBV=function(){return this.vm.l()};var $v=function(){_.Sr.apply(this,arguments);this.cj2=1};
_.A($v,_.Sr);$v.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.cj2++;return this};
$v.prototype.dispose=function(){--this.cj2||_.Sr.prototype.dispose.call(this)};var Pfx=function(p){this.gP2=p;p.addNewEventMetric("/client_streamz/bg/frs",_.UE("mk"))};
Pfx.prototype.record=function(p,y){this.gP2.record("/client_streamz/bg/frs",p,y)};
var AEO=function(p){this.nPP=p;p.addNewEventMetric("/client_streamz/bg/wrl",_.UE("mn"),m2("ac"),m2("sc"),_.UE("rk"),_.UE("mk"))};
AEO.prototype.record=function(p,y,l,q,t,E){this.nPP.record("/client_streamz/bg/wrl",p,y,l,q,t,E)};
var ZOV=function(p){this.osL=p;p.addNewCounter("/client_streamz/bg/ec",_.UE("en"),_.UE("mk"))};
ZOV.prototype.increment=function(p,y){this.osL.JSC$9722_incrementCounter("/client_streamz/bg/ec",p,y)};
var MZV=function(p){this.e63=p;p.addNewEventMetric("/client_streamz/bg/el",_.UE("en"),_.UE("mk"))};
MZV.prototype.record=function(p,y,l){this.e63.record("/client_streamz/bg/el",p,y,l)};
var VZZ=function(p){this.f4d=p;p.addNewCounter("/client_streamz/bg/cec",m2("ec"),_.UE("mk"))};
VZZ.prototype.increment=function(p,y){this.f4d.JSC$9722_incrementCounter("/client_streamz/bg/cec",p,y)};
var gXB=function(p){this.sUx=p;p.addNewCounter("/client_streamz/bg/po/csc",m2("cs"),_.UE("mk"))};
gXB.prototype.increment=function(p,y){this.sUx.JSC$9722_incrementCounter("/client_streamz/bg/po/csc",p,y)};
var QXP=function(p){this.qcP=p;p.addNewCounter("/client_streamz/bg/po/ctav",_.UE("av"),_.UE("mk"))};
QXP.prototype.increment=function(p,y){this.qcP.JSC$9722_incrementCounter("/client_streamz/bg/po/ctav",p,y)};
var Kw$=function(p){this.h62=p;p.addNewCounter("/client_streamz/bg/po/cwsc",_.UE("su"),_.UE("mk"))};
Kw$.prototype.increment=function(p,y){this.h62.JSC$9722_incrementCounter("/client_streamz/bg/po/cwsc",p,y)};var dVL=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(dVL,_.RX);var Xuu=function(p,y){return _.tE(p,3,y,lVc)};var w6U=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(w6U,_.RX);var iOV=[1,2,3];var rEP=[0,iOV,_.sI5,pcm,qHt];var S3V=[0,_.ez,[0,ddL,_.tL]];var FwB=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(FwB,_.RX);var LwU=[1,2,3];var kBi=[0,LwU,Yjt,OJ6,_.hL,S3V];var Nuv=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Nuv,_.RX);var Dmv=[0,_.ez,rEP,kBi];var HOr=[0,_.cZ];var TuV=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(TuV,_.RX);var xmx=[0,_.cZ,-1,_.JL];var BuQ=[0,_.cZ,-1,_.Ef,_.JL];var flQ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(flQ,_.RX);var vXQ=[1,2,3];var X6r=[0,vXQ,_.hL,xmx,_.hL,BuQ,_.hL,HOr];var dmi=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(dmi,_.RX);dmi.prototype.JSC$9542_serializeBinary=ZOt([0,_.cZ,X6r,tTc,_.ez,Dmv,yW5,lGc]);var OOU=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(OOU,_.RX);var Y3v=function(p){var y=new dmi;y=_.Fq(y,1,p.JSC$9658_metricName);var l=oXi(p);y=_.tE(y,3,l,_.w6);l=[];for(var q=[],t=_.c(p.cellMap.keys()),E=t.next();!E.done;E=t.next())q.push(E.value.split(","));for(t=0;t<q.length;t++){E=q[t];for(var e=p.cellType,C=p.getCells(E)||[],u=[],a=0;a<C.length;a++){var m=C[a],U=m&&m.cellValue;m=new FwB;switch(e){case 3:U=Number(U);Number.isFinite(U)&&Ap(m,1,LwU,ZA(U));break;case 2:Ap(m,2,LwU,_.su(Number(U)))}u.push(m)}e=u;for(C=0;C<e.length;C++){u=e[C];a=new Nuv;u=_.gu(a,
2,u);a=[];m=zfZ(p);for(U=0;U<m.length;U++){var b=m[U],P=E[U],Z=new w6U;switch(b){case 3:Ap(Z,1,iOV,i9(String(P)));break;case 2:b=Number(P);Number.isFinite(b)&&Ap(Z,2,iOV,_.WR(b));break;case 1:Ap(Z,3,iOV,Ita(P==="true"))}a.push(Z)}NY(u,1,a);l.push(u)}}NY(y,4,l);return y};var IlQ=function(p){if(!p)return"";if(/^about:(?:blank|srcdoc)$/.test(p))return window.origin||"";p.indexOf("blob:")===0&&(p=p.substring(5));p=p.split("#")[0].split("?")[0];p=p.toLowerCase();p.indexOf("//")==0&&(p=window.location.protocol+p);/^[\w\-]*:\/\//.test(p)||(p=window.location.href);var y=p.substring(p.indexOf("://")+3),l=y.indexOf("/");l!=-1&&(y=y.substring(0,l));l=p.substring(0,p.indexOf("://"));if(!l)throw Error("qa`"+p);if(l!=="http"&&l!=="https"&&l!=="chrome-extension"&&l!=="moz-extension"&&
l!=="file"&&l!=="android-app"&&l!=="chrome-search"&&l!=="chrome-untrusted"&&l!=="chrome"&&l!=="app"&&l!=="devtools")throw Error("ra`"+l);p="";var q=y.indexOf(":");if(q!=-1){var t=y.substring(q+1);y=y.substring(0,q);if(l==="http"&&t!=="80"||l==="https"&&t!=="443")p=":"+t}return l+"://"+y+p};var ywP=function(p,y,l){var q=String(_.l_.location.href);return q&&p&&y?[y,pHr(IlQ(q),p,l||null)].join(" "):null},pHr=function(p,y,l){var q=[],t=[];
if((Array.isArray(l)?2:1)==1)return t=[y,p],_.lv(q,function(C){t.push(C)}),lhr(t.join(" "));
var E=[],e=[];_.lv(l,function(C){e.push(C.key);E.push(C.value)});
l=Math.floor((new Date).getTime()/1E3);t=E.length==0?[l,y,p]:[E.join(":"),l,y,p];_.lv(q,function(C){t.push(C)});
p=lhr(t.join(" "));p=[l,p];e.length==0||p.push(e.join(""));return p.join("_")},lhr=function(p){var y=Vct();
y.update(p);return y.digestString().toLowerCase()};var jJ=function(p){this.JSC$9553_document_=p||{cookie:""}},q8v;
_.J=jJ.prototype;_.J.isEnabled=function(){if(!_.l_.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
_.J.set=function(p,y,l){var q=!1;if(typeof l==="object"){var t=l.sameSite;q=l.secure||!1;var E=l.domain||void 0;var e=l.path||void 0;var C=l.maxAge}if(/[;=\s]/.test(p))throw Error("sa`"+p);if(/[;\r\n]/.test(y))throw Error("ta`"+y);C===void 0&&(C=-1);l=E?";domain="+E:"";e=e?";path="+e:"";q=q?";secure":"";C=C<0?"":C==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+C*1E3)).toUTCString();this.JSC$9553_document_.cookie=p+"="+y+l+e+C+q+(t!=null?";samesite="+t:"")};
_.J.get=function(p,y){for(var l=p+"=",q=(this.JSC$9553_document_.cookie||"").split(";"),t=0,E;t<q.length;t++){E=Rg(q[t]);if(E.lastIndexOf(l,0)==0)return E.slice(l.length);if(E==p)return""}return y};
_.J.remove=function(p,y,l){var q=this.containsKey(p);this.set(p,"",{maxAge:0,path:y,domain:l});return q};
_.J.getKeys=function(){return q8v(this).keys};
_.J.getValues=function(){return q8v(this).values};
_.J.isEmpty=function(){return!this.JSC$9553_document_.cookie};
_.J.getCount=function(){return this.JSC$9553_document_.cookie?(this.JSC$9553_document_.cookie||"").split(";").length:0};
_.J.containsKey=function(p){return this.get(p)!==void 0};
_.J.containsValue=function(p){for(var y=q8v(this).values,l=0;l<y.length;l++)if(y[l]==p)return!0;return!1};
_.J.clear=function(){for(var p=q8v(this).keys,y=p.length-1;y>=0;y--)this.remove(p[y])};
q8v=function(p){p=(p.JSC$9553_document_.cookie||"").split(";");for(var y=[],l=[],q,t,E=0;E<p.length;E++)t=Rg(p[E]),q=t.indexOf("="),q==-1?(y.push(""),l.push(t)):(y.push(t.substring(0,q)),l.push(t.substring(q+1)));return{keys:y,values:l}};
_.Q$=new jJ(typeof document=="undefined"?null:document);var DyR,s9v;DyR=function(){var p=_.l_.__SAPISID||_.l_.__APISID||_.l_.__3PSAPISID||_.l_.__1PSAPISID||_.l_.__OVERRIDE_SID;if(p)return!0;typeof document!=="undefined"&&(p=new jJ(document),p=p.get("SAPISID")||p.get("APISID")||p.get("__Secure-3PAPISID")||p.get("__Secure-1PAPISID"));return!!p};
s9v=function(p,y,l,q){(p=_.l_[p])||typeof document==="undefined"||(p=(new jJ(document)).get(y));return p?ywP(p,l,q):null};
_.Krl=function(p){var y=IlQ(_.l_==null?void 0:_.l_.location.href),l=[];if(DyR()){y=y.indexOf("https:")==0||y.indexOf("chrome-extension:")==0||y.indexOf("chrome-untrusted://new-tab-page")==0||y.indexOf("moz-extension:")==0;var q=y?_.l_.__SAPISID:_.l_.__APISID;q||typeof document==="undefined"||(q=new jJ(document),q=q.get(y?"SAPISID":"APISID")||q.get("__Secure-3PAPISID"));(q=q?ywP(q,y?"SAPISIDHASH":"APISIDHASH",p):null)&&l.push(q);y&&((y=s9v("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",p))&&l.push(y),
(p=s9v("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",p))&&l.push(p))}return l.length==0?null:l.join(" ")};var t_i=function(){this.minSize=1024};
t_i.prototype.compress=function(p){var y,l,q,t;return _.h(function(E){switch(E.nextAddress){case 1:return y=new CompressionStream("gzip"),l=(new Response(y.readable)).arrayBuffer(),q=y.writable.getWriter(),E.yield(q.write((new TextEncoder).encode(p)),2);case 2:return E.yield(q.close(),3);case 3:return t=Uint8Array,E.yield(l,4);case 4:return E.return(new t(E.yieldResult))}})};
t_i.prototype.isSupported=function(p){return p<this.minSize?!1:typeof CompressionStream!=="undefined"};var Eqi=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Eqi,_.RX);var b0=function(p,y){this.intervalMs=p;this.callback=y;this.enabled=!1;this.nowFn=function(){return _.$t()};
this.lastTimeMs=this.nowFn()};
b0.prototype.setInterval=function(p){this.intervalMs=p;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
b0.prototype.start=function(){var p=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){p.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
b0.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
b0.prototype.tick=function(){var p=this;if(this.enabled){var y=Math.max(this.nowFn()-this.lastTimeMs,0);y<this.intervalMs*.8?this.timer=setTimeout(function(){p.tick()},this.intervalMs-y):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var JwO=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(JwO,_.RX);var cwU=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(cwU,_.RX);var e_$=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(e_$,_.RX);e_$.prototype.getTransmissionType=function(){return _.v0(this,1)};var wu_=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(wu_,_.RX);wu_.prototype.getVersion=function(){return _.fq(this,2)};var nu=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(nu,_.RX);var Kqm=function(p){NY(i6o,1,p)};
nu.prototype.getModel=function(){return _.fq(this,6)};
var h_N=_.Mm(nu);var C6B=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(C6B,_.RX);var gZm=["platform","platformVersion","architecture","model","uaFullVersion"],i6o=new nu,Q4m=null;var Gt=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Gt,_.RX);var uDN=function(p){return _.a7(p,1,1)};var R_r=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p,4)};
_.A(R_r,_.RX);_.Pf=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p,36)};
_.A(_.Pf,_.RX);_.Pf.prototype.getExperimentIds=function(){return _.MF(this,Eqi,16)};var Wbr=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p,19)};
_.A(Wbr,_.RX);Wbr.prototype.setLogSource=function(p){return _.a7(this,2,p)};
Wbr.prototype.setScheduler=function(p){return _.a7(this,10,p)};var mNr=function(p,y){this.isServiceWorkerScope=y=y===void 0?!1:y;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new Wbr;Number.isInteger(p)&&this.logRequest.setLogSource(p);y||(this.locale=document.documentElement.getAttribute("lang"));ahx(this,new Gt)};
mNr.prototype.setLogSource=function(p){this.logRequest.setLogSource(p);return this};
var ahx=function(p,y){_.gu(p.logRequest,1,y);_.v0(y,1)||uDN(y);p.isServiceWorkerScope||(y=A7(p),_.fq(y,5)||_.Fq(y,5,p.locale));p.uach&&(y=A7(p),_.MF(y,nu,9)||_.gu(y,9,p.uach))},UNi=function(p,y){p.transmissionType=y},$NQ=function(p){var y=y===void 0?gZm:y;
var l=p.isServiceWorkerScope?void 0:f0();l?rMt(l,y).then(function(q){p.uach=h_N(q!=null?q:"[]");q=A7(p);_.gu(q,9,p.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},A7=function(p){var y=_.MF(p.logRequest,Gt,1);
y||(y=new Gt,ahx(p,y));p=y;y=_.MF(p,C6B,11);y||(y=new C6B,_.gu(p,11,y));return y};
mNr.prototype.build=function(p,y,l,q,t,E){y=y===void 0?0:y;l=l===void 0?0:l;q=q===void 0?null:q;t=t===void 0?0:t;E=E===void 0?0:E;if(!this.isServiceWorkerScope){var e=A7(this);var C=new e_$;C=_.a7(C,1,this.transmissionType);C=_.jr(C,2,this.isFinal);l=_.z6(C,3,l>0?l:void 0);l=_.z6(l,4,t>0?t:void 0);l=_.z6(l,5,E>0?E:void 0);t=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;E=t[_.gr]|0;l=Fi(l,E)?l:C9_(l,t,E)?hVg(l,t):new l.constructor(Xw(t,E,!0));_.gu(e,10,l)}e=this.logRequest.clone();l=Date.now().toString();
e=_.mj(e,4,ZA(l));p=p.slice();p=NY(e,3,p);q&&(e=new JwO,q=_.z6(e,13,q),e=new cwU,q=_.gu(e,2,q),e=new R_r,q=_.gu(e,1,q),q=_.a7(q,2,9),_.gu(p,18,q));y&&_.wJ(p,14,y);return p};b4.prototype.currBackoffCount_=0;b4.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
b4.prototype.getValue=function(){return this.currValue_};
var j9v=function(p){p.currBaseValue_=Math.min(p.maxValue_,p.currBaseValue_*p.backoffFactor_);p.currValue_=Math.min(p.maxValue_,p.currBaseValue_+(p.randomFactor_?Math.round(p.randomFactor_*(Math.random()-.5)*2*p.currBaseValue_):0));p.currBackoffCount_++};var h6_=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p,8)};
_.A(h6_,_.RX);var bCO=_.Mm(h6_);var CE5=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(CE5,_.RX);var ZO;ZO=new u8l;var Mi=function(p){_.Sr.call(this);var y=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9631_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$9631_sendBeaconApiEnabled=!1;this.logSource=p.logSource;this.getAuthHeaderValue=
p.getAuthHeaderValue||function(){};
this.logRequestBuilder=new mNr(p.logSource,p.isServiceWorkerScope);this.network=p.network||null;this.productID=p.productID||null;this.bufferSize=1E3;this.clearcutUrl=p.urlOverride||null;this.sessionIndex=p.sessionIndex||null;this.disableAutomaticFlush=p.disableAutomaticFlush||!1;this.withCredentials=!p.disableWithCredentials;this.isServiceWorkerScope=p.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!f0()&&!!f0().navigator&&f0().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(nqr())).searchParams&&!!(new URL(nqr())).searchParams.set;var l=uDN(new Gt);ahx(this.logRequestBuilder,l);this.flushBackoff=new b4(1E4,3E5,.1);p=GwB(this,p.backgroundJobDeferrer);this.JSC$9631_flushTimer=new b0(this.flushBackoff.getValue(),p);this.backupTimer=new b0(6E5,p);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){P6P(y);
var q;(q=y.metalogService)==null||q.flush()}}),document.addEventListener("pagehide",function(){P6P(y);
var q;(q=y.metalogService)==null||q.flush()}))};
_.A(Mi,_.Sr);var GwB=function(p,y){return p.isBrowserSupported?y?function(){y().then(function(){p.flush()})}:function(){p.flush()}:function(){}};
Mi.prototype.disposeInternal=function(){P6P(this);this.JSC$9631_flushTimer.stop();this.backupTimer.stop();_.Sr.prototype.disposeInternal.call(this)};
var AwB=function(p){p.clearcutUrl||(p.clearcutUrl=nqr());try{return(new URL(p.clearcutUrl)).toString()}catch(y){return(new URL(p.clearcutUrl,f0().location.origin)).toString()}};
Mi.prototype.dispatch=function(p){if(p instanceof _.Pf)this.log(p);else try{var y=new _.Pf,l=p.serialize();var q=_.Fq(y,8,l);this.log(q)}catch(t){V4(this,4,1)}};
var V4=function(p,y,l){p.metalogService&&p.metalogService.increment(y,l)};
Mi.prototype.log=function(p){V4(this,2,1);if(this.isBrowserSupported){p=p.clone();var y=this.sequencePosition++;p=_.wJ(p,21,y);this.componentId&&_.Fq(p,26,this.componentId);y=p;if(bUj(_.i8(y,1))==null){var l=Date.now();l=Number.isFinite(l)?l.toString():"0";_.mj(y,1,ZA(l))}_.jv5(_.i8(y,15))!=null||_.wJ(y,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(l=this.experimentIds.clone(),_.gu(y,16,l));V4(this,1,1);y=this.pendingEvents.length-this.bufferSize+1;y>0&&(this.pendingEvents.splice(0,y),
this.numLogsDroppedSinceLastFlush+=y,V4(this,3,y));this.pendingEvents.push(p);this.disableAutomaticFlush||this.JSC$9631_flushTimer.enabled||this.JSC$9631_flushTimer.start()}};
Mi.prototype.flush=function(p,y){var l=this;if(this.pendingEvents.length===0)p&&p();else if(this.JSC$9631_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,ZC$(this);else{var q=Date.now();if(this.noFlushUntilMs>q&&this.startWaitingMs<q)y&&y("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?UNi(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var t=this.pendingEvents.length,
E=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),e=this.getAuthHeaderValue();if(e&&this.lastFailedAuth===e)y&&y("stale-auth-token");else{this.pendingEvents=[];this.JSC$9631_flushTimer.enabled&&this.JSC$9631_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;q=E.serialize();var C;this.JSC$9631_compressor&&this.JSC$9631_compressor.isSupported(q.length)&&
(C=this.JSC$9631_compressor.compress(q));var u=M_$(this,q,e),a=function(b){l.flushBackoff.reset();l.JSC$9631_flushTimer.setInterval(l.flushBackoff.getValue());if(b){var P=null;try{var Z=JSON.stringify(JSON.parse(b.replace(")]}'\n","")));P=bCO(Z)}catch(K){}P&&(b=Number(xt(P,1,_.Xi("-1"))),b>0&&(l.startWaitingMs=Date.now(),l.noFlushUntilMs=l.startWaitingMs+b),HUR(P.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,ZO.fieldIndex),Nro(P,ZO.fieldIndex),P=ZO.ctor?ZO.getExtensionFn(P,ZO.ctor,ZO.fieldIndex,
ZO.JSC$8810_hasMessageId):ZO.getExtensionFn(P,ZO.fieldIndex,null,ZO.JSC$8810_hasMessageId),P=P===null?void 0:P)&&(P=_.W9(P,1,-1),P!==-1&&(l.flushBackoff=new b4(P<1?1:P,3E5,.1),l.JSC$9631_flushTimer.setInterval(l.flushBackoff.getValue())))}p&&p();l.numRetriesSinceLastSuccessfulFlush=0},m=function(b,P){var Z=_.u4(E,_.Pf,3,_.RY());
var K=Number(xt(E,14));j9v(l.flushBackoff);l.JSC$9631_flushTimer.setInterval(l.flushBackoff.getValue());b===401&&e&&(l.lastFailedAuth=e);K&&(l.numLogsDroppedSinceLastFlush+=K);P===void 0&&(P=l.isRetryable(b));P&&(l.pendingEvents=Z.concat(l.pendingEvents),l.disableAutomaticFlush||l.JSC$9631_flushTimer.enabled||l.JSC$9631_flushTimer.start());V4(l,7,1);y&&y("net-send-failed",b);++l.numRetriesSinceLastSuccessfulFlush},U=function(){l.network&&l.network.send(u,a,m)};
C?C.then(function(b){V4(l,5,t);u.requestHeaders["Content-Encoding"]="gzip";u.requestHeaders["Content-Type"]="application/binary";u.body=b;u.bodyType=2;U()},function(){V4(l,6,t);
U()}):U()}}}};
var M_$=function(p,y,l){l=l===void 0?null:l;var q=q===void 0?p.withCredentials:q;var t={},E=new URL(AwB(p));l&&(t.Authorization=l);p.sessionIndex&&(t["X-Goog-AuthUser"]=p.sessionIndex,E.searchParams.set("authuser",p.sessionIndex));p.pageId&&(Object.defineProperty(t,"X-Goog-PageId",{value:p.pageId}),E.searchParams.set("pageId",p.pageId));return{url:E.toString(),body:y,bodyType:1,requestHeaders:t,requestType:"POST",withCredentials:q,timeoutMillis:p.timeoutMillis}},P6P=function(p){p.logRequestBuilder.isFinal=
!0;
p.flush();p.logRequestBuilder.isFinal=!1},ZC$=function(p){V_x(p,function(y,l){y=new URL(y);
y.searchParams.set("format","json");var q=!1;try{q=f0().navigator.sendBeacon(y.toString(),l.serialize())}catch(t){}q||(p.isSendBeaconSupported=!1);return q})},V_x=function(p,y){if(p.pendingEvents.length!==0){var l=new URL(AwB(p));
l.searchParams.delete("format");var q=p.getAuthHeaderValue();q&&l.searchParams.set("auth",q);l.searchParams.set("authuser",p.sessionIndex||"0");for(q=0;q<10&&p.pendingEvents.length;++q){var t=p.pendingEvents.slice(0,32),E=p.logRequestBuilder.build(t,p.numLogsDroppedSinceLastFlush,p.numRetriesSinceLastSuccessfulFlush,p.productID,p.persistedLogRecoveredCount,p.persistedLogExpiredCount);if(!y(l.toString(),E)){++p.numRetriesSinceLastSuccessfulFlush;break}p.numLogsDroppedSinceLastFlush=0;p.numRetriesSinceLastSuccessfulFlush=
0;p.persistedLogRecoveredCount=0;p.persistedLogExpiredCount=0;p.pendingEvents=p.pendingEvents.slice(t.length)}p.JSC$9631_flushTimer.enabled&&p.JSC$9631_flushTimer.stop()}};
Mi.prototype.isRetryable=function(p){return 500<=p&&p<600||p===401||p===0};
var nqr=function(){return"https://play.google.com/log?format=json&hasfast=true"};var gqU=function(){this.abortSupported=typeof AbortController!=="undefined"};
gqU.prototype.send=function(p,y,l){var q=this,t,E,e,C,u,a,m,U,b,P;return _.h(function(Z){switch(Z.nextAddress){case 1:return E=(t=q.abortSupported?new AbortController:void 0)?setTimeout(function(){t.abort()},p.timeoutMillis):void 0,_.Ve(Z,2,3),e=Object.assign({},{method:p.requestType,
headers:Object.assign({},p.requestHeaders)},p.body&&{body:p.body},p.withCredentials&&{credentials:"include"},{signal:p.timeoutMillis&&t?t.signal:null}),Z.yield(fetch(p.url,e),5);case 5:C=Z.yieldResult;if(C.status!==200){(u=l)==null||u(C.status);Z.jumpTo(3);break}if((a=y)==null){Z.jumpTo(7);break}return Z.yield(C.text(),8);case 8:a(Z.yieldResult);case 7:case 3:_.Qe(Z);clearTimeout(E);_.wR(Z,0);break;case 2:m=_.i6(Z);switch((U=m)==null?void 0:U.name){case "AbortError":(b=l)==null||b(408);break;default:(P=
l)==null||P(400)}Z.jumpTo(3)}})};
gqU.prototype.getTransmissionType=function(){return 4};_.GH=function(p,y){y=y===void 0?"0":y;_.Sr.call(this);this.logSource=p;this.sessionIndex=y;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9649_clearExperimentIds=this.productID=null;this.JSC$9649_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.A(_.GH,_.Sr);var BT8=function(p,y){p.buildLabel=y;return p},xVR=function(p,y){p.network=y;
return p},vZ5=function(p,y){p.JSC$9649_clearExperimentIds=y},TTm=function(p){p.JSC$9649_sendBeaconApiEnabled=!0;
return p};
_.GH.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.GH.prototype.build=function(){this.network||(this.network=new gqU);var p=new Mi({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.Krl,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.P9(this,p);if(this.buildLabel){var y=this.buildLabel,l=
A7(p.logRequestBuilder);_.Fq(l,7,y)}p.JSC$9631_compressor=new t_i;this.componentId&&(p.componentId=this.componentId);this.productID&&(p.productID=this.productID);this.pageId&&(p.pageId=this.pageId);this.JSC$9649_clearExperimentIds&&((l=this.JSC$9649_clearExperimentIds)?(p.experimentIds||(p.experimentIds=new Eqi),y=p.experimentIds,l=l.serialize(),_.Fq(y,4,l)):p.experimentIds&&_.mj(p.experimentIds,4));this.JSC$9649_sendBeaconApiEnabled&&(p.JSC$9631_sendBeaconApiEnabled=p.isSendBeaconSupported);$NQ(p.logRequestBuilder);
this.bufferSize&&(p.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(p);return p};var O6_=function(p,y,l,q,t,E,e){p=p===void 0?-1:p;y=y===void 0?"":y;l=l===void 0?"":l;q=q===void 0?!1:q;t=t===void 0?"":t;_.Sr.call(this);this.logSource=p;this.componentId=y;E?y=E:(p=new _.GH(p,"0"),p.componentId=y,_.P9(this,p),l!==""&&(p.destinationUrl=l),q&&(p.serviceWorkerScopeEnabled=!0),t&&BT8(p,t),e&&xVR(p,e),y=p.build());this.JSC$9653_transport=y};
_.A(O6_,_.Sr);O6_.prototype.flush=function(p){p=p||[];if(p.length){for(var y=new OOU,l=[],q=0;q<p.length;q++){var t=p[q],E=Y3v(t);l.push(E);t.clear()}NY(y,1,l);this.JSC$9653_transport.dispatch(y);this.JSC$9653_transport.flush()}};var Q9M=function(p){this.cellValue=p};var g5=function(p,y,l){this.JSC$9658_metricName=p;this.cellType=y;this.fields=l||[];this.cellMap=new Map},zfZ=function(p){return p.fields.map(function(y){return y.fieldType})},oXi=function(p){return p.fields.map(function(y){return y.fieldName})};
_.J=g5.prototype;_.J.addCell=function(p){var y=_.oX.apply(1,arguments),l=this.getCells(y);l?l.push(new Q9M(p)):this.JSC$9658_setCell(p,y)};
_.J.JSC$9658_setCell=function(p){var y=this.JSC$9658_getKey(_.oX.apply(1,arguments));this.cellMap.set(y,[new Q9M(p)])};
_.J.getCells=function(){var p=this.JSC$9658_getKey(_.oX.apply(0,arguments));return this.cellMap.has(p)?this.cellMap.get(p):void 0};
_.J.getCell=function(){var p=this.getCells(_.oX.apply(0,arguments));return p&&p.length?p[0]:void 0};
_.J.clear=function(){this.cellMap.clear()};
_.J.JSC$9658_getKey=function(){var p=_.oX.apply(0,arguments);return p?p.join(","):"key"};var Kb$=function(p,y){g5.call(this,p,3,y)};
_.A(Kb$,g5);Kb$.prototype.JSC$9661_incrementCounterBy=function(p){var y=_.oX.apply(1,arguments),l=0,q=this.getCell(y);q&&(l=q.cellValue);this.JSC$9658_setCell(l+p,y)};var wHv=function(p,y){g5.call(this,p,2,y)};
_.A(wHv,g5);wHv.prototype.record=function(p){this.addCell(p,_.oX.apply(1,arguments))};_.Q4=function(p){this.id=p};
_.Q4.prototype.toString=function(){return this.id};_.Ku=function(p,y){this.type=p instanceof _.Q4?String(p):p;this.currentTarget=this.target=y;this.defaultPrevented=this.propagationStopped_=!1};
_.Ku.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.Ku.prototype.preventDefault=function(){this.defaultPrevented=!0};_.w5=function(p,y){_.Ku.call(this,p?p.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.event_=null;p&&this.init(p,y)};
_.j6(_.w5,_.Ku);
_.w5.prototype.init=function(p,y){var l=this.type=p.type,q=p.changedTouches&&p.changedTouches.length?p.changedTouches[0]:null;this.target=p.target||p.srcElement;this.currentTarget=y;y=p.relatedTarget;y||(l=="mouseover"?y=p.fromElement:l=="mouseout"&&(y=p.toElement));this.relatedTarget=y;q?(this.clientX=q.clientX!==void 0?q.clientX:q.pageX,this.clientY=q.clientY!==void 0?q.clientY:q.pageY,this.screenX=q.screenX||0,this.screenY=q.screenY||0):(this.offsetX=_.ZY||p.offsetX!==void 0?p.offsetX:p.layerX,
this.offsetY=_.ZY||p.offsetY!==void 0?p.offsetY:p.layerY,this.clientX=p.clientX!==void 0?p.clientX:p.pageX,this.clientY=p.clientY!==void 0?p.clientY:p.pageY,this.screenX=p.screenX||0,this.screenY=p.screenY||0);this.button=p.button;this.keyCode=p.keyCode||0;this.key=p.key||"";this.charCode=p.charCode||(l=="keypress"?p.keyCode:0);this.ctrlKey=p.ctrlKey;this.altKey=p.altKey;this.shiftKey=p.shiftKey;this.metaKey=p.metaKey;this.pointerId=p.pointerId||0;this.pointerType=p.pointerType;this.state=p.state;
this.timeStamp=p.timeStamp;this.event_=p;p.defaultPrevented&&_.w5.superClass_.preventDefault.call(this)};
_.w5.prototype.stopPropagation=function(){_.w5.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.w5.prototype.preventDefault=function(){_.w5.superClass_.preventDefault.call(this);var p=this.event_;p.preventDefault?p.preventDefault():p.returnValue=!1};var iCr="closure_listenable_"+(Math.random()*1E6|0),i0=function(p){return!(!p||!p[iCr])};var rwv=0;var S8O=function(p,y,l,q,t){this.listener=p;this.proxy=null;this.src=y;this.type=l;this.capture=!!q;this.handler=t;this.key=++rwv;this.removed=this.callOnce=!1},FbM=function(p){p.removed=!0;
p.listener=null;p.proxy=null;p.src=null;p.handler=null};nS.prototype.add=function(p,y,l,q,t){var E=p.toString();p=this.listeners[E];p||(p=this.listeners[E]=[],this.typeCount_++);var e=Lb$(p,y,q,t);e>-1?(y=p[e],l||(y.callOnce=!1)):(y=new S8O(y,this.src,E,!!q,t),y.callOnce=l,p.push(y));return y};
nS.prototype.remove=function(p,y,l,q){p=p.toString();if(!(p in this.listeners))return!1;var t=this.listeners[p];y=Lb$(t,y,l,q);return y>-1?(FbM(t[y]),_.dm(t,y),t.length==0&&(delete this.listeners[p],this.typeCount_--),!0):!1};
var kw$=function(p,y){var l=y.type;if(!(l in p.listeners))return!1;var q=_.Oc(p.listeners[l],y);q&&(FbM(y),p.listeners[l].length==0&&(delete p.listeners[l],p.typeCount_--));return q};
nS.prototype.removeAll=function(p){p=p&&p.toString();var y=0,l;for(l in this.listeners)if(!p||l==p){for(var q=this.listeners[l],t=0;t<q.length;t++)++y,FbM(q[t]);delete this.listeners[l];this.typeCount_--}return y};
nS.prototype.getListener=function(p,y,l,q){p=this.listeners[p.toString()];var t=-1;p&&(t=Lb$(p,y,l,q));return t>-1?p[t]:null};
nS.prototype.hasListener=function(p,y){var l=p!==void 0,q=l?p.toString():"",t=y!==void 0;return _.Ts.some(this.listeners,function(E){for(var e=0;e<E.length;++e)if(!(l&&E[e].type!=q||t&&E[e].capture!=y))return!0;return!1})};
var Lb$=function(p,y,l,q){for(var t=0;t<p.length;++t){var E=p[t];if(!E.removed&&E.listener==y&&E.capture==!!l&&E.handler==q)return t}return-1};var NRV,DNV,HCx,xNU,BRO,DS,HL,XH$,fhU,vqU,r5,dNi,TRU;NRV="closure_lm_"+(Math.random()*1E6|0);DNV={};HCx=0;_.BL=function(p,y,l,q,t){if(q&&q.once)return DS(p,y,l,q,t);if(Array.isArray(y)){for(var E=0;E<y.length;E++)_.BL(p,y[E],l,q,t);return null}l=TRU(l);return i0(p)?p.listen(y,l,_.yQ(q)?!!q.capture:!!q,t):xNU(p,y,l,!1,q,t)};
xNU=function(p,y,l,q,t,E){if(!y)throw Error("va");var e=_.yQ(t)?!!t.capture:!!t,C=r5(p);C||(p[NRV]=C=new nS(p));l=C.add(y,l,q,e,E);if(l.proxy)return l;q=BRO();l.proxy=q;q.src=p;q.listener=l;if(p.addEventListener)_.Hic||(t=e),t===void 0&&(t=!1),p.addEventListener(y.toString(),q,t);else if(p.attachEvent)p.attachEvent(fhU(y.toString()),q);else if(p.addListener&&p.removeListener)p.addListener(q);else throw Error("wa");HCx++;return l};
BRO=function(){var p=vqU,y=function(l){return p.call(y.src,y.listener,l)};
return y};
DS=function(p,y,l,q,t){if(Array.isArray(y)){for(var E=0;E<y.length;E++)DS(p,y[E],l,q,t);return null}l=TRU(l);return i0(p)?p.listenOnce(y,l,_.yQ(q)?!!q.capture:!!q,t):xNU(p,y,l,!0,q,t)};
_.SJ=function(p,y,l,q,t){if(Array.isArray(y))for(var E=0;E<y.length;E++)_.SJ(p,y[E],l,q,t);else q=_.yQ(q)?!!q.capture:!!q,l=TRU(l),i0(p)?p.unlisten(y,l,q,t):p&&(p=r5(p))&&(y=p.getListener(y,l,q,t))&&HL(y)};
HL=function(p){if(typeof p==="number"||!p||p.removed)return!1;var y=p.src;if(i0(y))return kw$(y.eventTargetListeners_,p);var l=p.type,q=p.proxy;y.removeEventListener?y.removeEventListener(l,q,p.capture):y.detachEvent?y.detachEvent(fhU(l),q):y.addListener&&y.removeListener&&y.removeListener(q);HCx--;(l=r5(y))?(kw$(l,p),l.typeCount_==0&&(l.src=null,y[NRV]=null)):FbM(p);return!0};
XH$=function(p,y,l,q,t){l=TRU(l);q=!!q;return i0(p)?p.getListener(y,l,q,t):p?(p=r5(p))?p.getListener(y,l,q,t):null:null};
fhU=function(p){return p in DNV?DNV[p]:DNV[p]="on"+p};
vqU=function(p,y){if(p.removed)p=!0;else{y=new _.w5(y,this);var l=p.listener,q=p.handler||p.src;p.callOnce&&HL(p);p=l.call(q,y)}return p};
r5=function(p){p=p[NRV];return p instanceof nS?p:null};
dNi="__closure_events_fn_"+(Math.random()*1E9>>>0);TRU=function(p){if(typeof p==="function")return p;p[dNi]||(p[dNi]=function(y){return p.handleEvent(y)});
return p[dNi]};_.Fn=function(){_.Sr.call(this);this.eventTargetListeners_=new nS(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.j6(_.Fn,_.Sr);_.Fn.prototype[iCr]=!0;_.J=_.Fn.prototype;_.J.setParentEventTarget=function(p){this.parentEventTarget_=p};
_.J.addEventListener=function(p,y,l,q){_.BL(this,p,y,l,q)};
_.J.removeEventListener=function(p,y,l,q){_.SJ(this,p,y,l,q)};
_.J.dispatchEvent=function(p){var y,l=this.parentEventTarget_;if(l)for(y=[];l;l=l.parentEventTarget_)y.push(l);l=this.actualEventTarget_;var q=p.type||p;if(typeof p==="string")p=new _.Ku(p,l);else if(p instanceof _.Ku)p.target=p.target||l;else{var t=p;p=new _.Ku(q,l);_.Ts.extend(p,t)}t=!0;var E;if(y)for(E=y.length-1;!p.propagationStopped_&&E>=0;E--){var e=p.currentTarget=y[E];t=OCr(e,q,!0,p)&&t}p.propagationStopped_||(e=p.currentTarget=l,t=OCr(e,q,!0,p)&&t,p.propagationStopped_||(t=OCr(e,q,!1,p)&&
t));if(y)for(E=0;!p.propagationStopped_&&E<y.length;E++)e=p.currentTarget=y[E],t=OCr(e,q,!1,p)&&t;return t};
_.J.disposeInternal=function(){_.Fn.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.J.listen=function(p,y,l,q){return this.eventTargetListeners_.add(String(p),y,!1,l,q)};
_.J.listenOnce=function(p,y,l,q){return this.eventTargetListeners_.add(String(p),y,!0,l,q)};
_.J.unlisten=function(p,y,l,q){return this.eventTargetListeners_.remove(String(p),y,l,q)};
_.J.removeAllListeners=function(p){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(p):0};
var OCr=function(p,y,l,q){y=p.eventTargetListeners_.listeners[String(y)];if(!y)return!0;y=y.concat();for(var t=!0,E=0;E<y.length;++E){var e=y[E];if(e&&!e.removed&&e.capture==l){var C=e.listener,u=e.handler||e.src;e.callOnce&&kw$(p.eventTargetListeners_,e);t=C.call(u,q)!==!1&&t}}return t&&!q.defaultPrevented};
_.Fn.prototype.getListener=function(p,y,l,q){return this.eventTargetListeners_.getListener(String(p),y,l,q)};
_.Fn.prototype.hasListener=function(p,y){return this.eventTargetListeners_.hasListener(p!==void 0?String(p):void 0,y)};var Lu=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(p){return p&&AsyncContext.Snapshot.wrap(p)}:function(p){return p};var oqV=function(p,y){this.create_=p;this.reset_=y;this.occupants_=0;this.JSC$9693_head_=null};
oqV.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var p=this.JSC$9693_head_;this.JSC$9693_head_=p.next;p.next=null}else p=this.create_();return p};
oqV.prototype.put=function(p){this.reset_(p);this.occupants_<100&&(this.occupants_++,p.next=this.JSC$9693_head_,this.JSC$9693_head_=p)};var z_U=function(){this.workTail_=this.workHead_=null};
z_U.prototype.add=function(p,y){var l=Fq5.get();l.set(p,y);this.workTail_?this.workTail_.next=l:this.workHead_=l;this.workTail_=l};
z_U.prototype.remove=function(){var p=null;this.workHead_&&(p=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),p.next=null);return p};
var Fq5=new oqV(function(){return new Y8x},function(p){return p.reset()}),Y8x=function(){this.next=this.scope=this.fn=null};
Y8x.prototype.set=function(p,y){this.fn=p;this.scope=y;this.next=null};
Y8x.prototype.reset=function(){this.next=this.scope=this.fn=null};var IhP,Lqg,SYc,pJM;Lqg=!1;SYc=new z_U;_.kv=function(p,y){IhP||pJM();Lqg||(IhP(),Lqg=!0);SYc.add(p,y)};
pJM=function(){var p=Promise.resolve(void 0);IhP=function(){p.then(kic)}};var yQV=function(p){p.prototype.$goog_Thenable=!0},l7r=function(p){if(!p)return!1;
try{return!!p.$goog_Thenable}catch(y){return!1}};var q6N,slx,tOU,JQV,cQi,e$N,R$v,mQP,b0N,$QN,UJa;_.Ps=function(p,y){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(p!=_.rH)try{var l=this;p.call(y,function(q){l.resolve_(2,q)},function(q){l.resolve_(3,q)})}catch(q){this.resolve_(3,q)}};
q6N=function(){this.next=this.context=this.JSC$9704_onRejected=this.JSC$9704_onFulfilled=this.child=null;this.always=!1};
q6N.prototype.reset=function(){this.context=this.JSC$9704_onRejected=this.JSC$9704_onFulfilled=this.child=null;this.always=!1};
slx=new oqV(function(){return new q6N},function(p){p.reset()});
tOU=function(p,y,l){var q=slx.get();q.JSC$9704_onFulfilled=p;q.JSC$9704_onRejected=y;q.context=l;return q};
_.PW=function(p){if(p instanceof _.Ps)return p;var y=new _.Ps(_.rH);y.resolve_(2,p);return y};
_.vL=function(p){return new _.Ps(function(y,l){l(p)})};
JQV=function(p,y,l){EI$(p,y,l,null)||_.kv(_.Ky(y,p))};
_.Ni=function(p){return new _.Ps(function(y,l){var q=p.length,t=[];if(q)for(var E=function(a,m){q--;t[a]=m;q==0&&y(t)},e=function(a){l(a)},C,u=0;u<p.length;u++)C=p[u],JQV(C,_.Ky(E,u),e);
else y(t)})};
cQi=function(p){return new _.Ps(function(y){var l=p.length,q=[];if(l)for(var t=function(C,u,a){l--;q[C]=u?{fulfilled:!0,value:a}:{fulfilled:!1,reason:a};l==0&&y(q)},E,e=0;e<p.length;e++)E=p[e],JQV(E,_.Ky(t,e,!0),_.Ky(t,e,!1));
else y(q)})};
e$N=function(p){return new _.Ps(function(y,l){var q=p.length,t=[];if(q)for(var E=function(a){y(a)},e=function(a,m){q--;
t[a]=m;q==0&&l(t)},C,u=0;u<p.length;u++)C=p[u],JQV(C,E,_.Ky(e,u));
else y(void 0)})};
_.hs=function(){var p,y,l=new _.Ps(function(q,t){p=q;y=t});
return new h$P(l,p,y)};
_.Ps.prototype.then=function(p,y,l){return CzU(this,Lu(typeof p==="function"?p:null),Lu(typeof y==="function"?y:null),l)};
yQV(_.Ps);R$v=function(p,y,l,q){uqU(p,tOU(y||_.rH,l||null,q))};
_.DO=function(p,y){y=Lu(y);y=tOU(y,y);y.always=!0;uqU(p,y);return p};
_.Ps.prototype.finally=function(p){var y=this;p=Lu(p);return new Promise(function(l,q){R$v(y,function(t){p();l(t)},function(t){p();
q(t)})})};
_.Ps.prototype.thenCatch=function(p,y){return CzU(this,null,Lu(p),y)};
_.Ps.prototype.catch=_.Ps.prototype.thenCatch;_.Ps.prototype.cancel=function(p){if(this.state_==0){var y=new _.lW(p);_.kv(function(){WJP(this,y)},this)}};
var WJP=function(p,y){if(p.state_==0)if(p.parent_){var l=p.parent_;if(l.callbackEntries_){for(var q=0,t=null,E=null,e=l.callbackEntries_;e&&(e.always||(q++,e.child==p&&(t=e),!(t&&q>1)));e=e.next)t||(E=e);t&&(l.state_==0&&q==1?WJP(l,y):(E?(q=E,q.next==l.callbackEntriesTail_&&(l.callbackEntriesTail_=q),q.next=q.next.next):a7U(l),mQP(l,t,3,y)))}p.parent_=null}else p.resolve_(3,y)},uqU=function(p,y){p.callbackEntries_||p.state_!=2&&p.state_!=3||UQO(p);
p.callbackEntriesTail_?p.callbackEntriesTail_.next=y:p.callbackEntries_=y;p.callbackEntriesTail_=y},CzU=function(p,y,l,q){var t=tOU(null,null,null);
t.child=new _.Ps(function(E,e){t.JSC$9704_onFulfilled=y?function(C){try{var u=y.call(q,C);E(u)}catch(a){e(a)}}:E;
t.JSC$9704_onRejected=l?function(C){try{var u=l.call(q,C);u===void 0&&C instanceof _.lW?e(C):E(u)}catch(a){e(a)}}:e});
t.child.parent_=p;uqU(p,t);return t.child};
_.Ps.prototype.unblockAndFulfill_=function(p){this.state_=0;this.resolve_(2,p)};
_.Ps.prototype.unblockAndReject_=function(p){this.state_=0;this.resolve_(3,p)};
_.Ps.prototype.resolve_=function(p,y){this.state_==0&&(this===y&&(p=3,y=new TypeError("xa")),this.state_=1,EI$(y,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=y,this.state_=p,this.parent_=null,UQO(this),p!=3||y instanceof _.lW||$QN(this,y)))};
var EI$=function(p,y,l,q){if(p instanceof _.Ps)return R$v(p,y,l,q),!0;if(l7r(p))return p.then(y,l,q),!0;if(_.yQ(p))try{var t=p.then;if(typeof t==="function")return jlU(p,t,y,l,q),!0}catch(E){return l.call(q,E),!0}return!1},jlU=function(p,y,l,q,t){var E=!1,e=function(u){E||(E=!0,l.call(t,u))},C=function(u){E||(E=!0,q.call(t,u))};
try{y.call(p,e,C)}catch(u){C(u)}},UQO=function(p){p.executing_||(p.executing_=!0,_.kv(p.executeCallbacks_,p))},a7U=function(p){var y=null;
p.callbackEntries_&&(y=p.callbackEntries_,p.callbackEntries_=y.next,y.next=null);p.callbackEntries_||(p.callbackEntriesTail_=null);return y};
_.Ps.prototype.executeCallbacks_=function(){for(var p;p=a7U(this);)mQP(this,p,this.state_,this.result_);this.executing_=!1};
mQP=function(p,y,l,q){if(l==3&&y.JSC$9704_onRejected&&!y.always)for(;p&&p.hadUnhandledRejection_;p=p.parent_)p.hadUnhandledRejection_=!1;if(y.child)y.child.parent_=null,b0N(y,l,q);else try{y.always?y.JSC$9704_onFulfilled.call(y.context):b0N(y,l,q)}catch(t){UJa.call(null,t)}slx.put(y)};
b0N=function(p,y,l){y==2?p.JSC$9704_onFulfilled.call(p.context,l):p.JSC$9704_onRejected&&p.JSC$9704_onRejected.call(p.context,l)};
$QN=function(p,y){p.hadUnhandledRejection_=!0;_.kv(function(){p.hadUnhandledRejection_&&UJa.call(null,y)})};
UJa=qa;_.lW=function(p){_.p8.call(this,p)};
_.j6(_.lW,_.p8);_.lW.prototype.name="cancel";var h$P=function(p,y,l){this.promise=p;this.resolve=y;this.reject=l};var Hf;_.RG=function(p,y){_.Fn.call(this);this.JSC$9716_interval_=p||1;this.timerObject_=y||_.l_;this.boundTick_=(0,_.FZ)(this.tick_,this);this.last_=_.$t()};
_.j6(_.RG,_.Fn);_.J=_.RG.prototype;_.J.enabled=!1;_.J.JSC$9718_timer_=null;_.J.setInterval=function(p){this.JSC$9716_interval_=p;this.JSC$9718_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9718_timer_&&this.stop()};
_.J.tick_=function(){if(this.enabled){var p=_.$t()-this.last_;p>0&&p<this.JSC$9716_interval_*.8?this.JSC$9718_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9716_interval_-p):(this.JSC$9718_timer_&&(this.timerObject_.clearTimeout(this.JSC$9718_timer_),this.JSC$9718_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.J.start=function(){this.enabled=!0;this.JSC$9718_timer_||(this.JSC$9718_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9716_interval_),this.last_=_.$t())};
_.J.stop=function(){this.enabled=!1;this.JSC$9718_timer_&&(this.timerObject_.clearTimeout(this.JSC$9718_timer_),this.JSC$9718_timer_=null)};
_.J.disposeInternal=function(){_.RG.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Hf=function(p,y,l){if(typeof p==="function")l&&(p=(0,_.FZ)(p,l));else if(p&&typeof p.handleEvent=="function")p=(0,_.FZ)(p.handleEvent,p);else throw Error("ya");return Number(y)>2147483647?-1:_.l_.setTimeout(p,y||0)};
_.nIB=function(p){var y=null;return(new _.Ps(function(l,q){y=Hf(function(){l(void 0)},p);
y==-1&&q(Error("za"))})).thenCatch(function(l){_.l_.clearTimeout(y);
throw l;})};var Aq=function(p){_.Sr.call(this);this.streamzLogger=p;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9722_flushTimer=new _.RG(this.flushInterval);this.JSC$9722_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.P9(this,this.JSC$9722_flushTimer)};
_.A(Aq,_.Sr);Aq.prototype.sendIsolatedPayload=function(p){this.shouldSendIsolatedPayload=p;this.invocationLimit=1};
var GsB=function(p){p.JSC$9722_flushTimer.enabled||p.JSC$9722_flushTimer.start();p.invocationCount++;p.invocationCount>=p.invocationLimit&&p.snapshotAndFlush()};
Aq.prototype.snapshotAndFlush=function(){var p=this.metricMap.values();p=[].concat(_.xq(p)).filter(function(y){return y.cellMap.size});
p.length&&this.streamzLogger.flush(p,this.shouldSendIsolatedPayload);PzP(p);this.invocationCount=0;this.JSC$9722_flushTimer.enabled&&this.JSC$9722_flushTimer.stop()};
Aq.prototype.addNewCounter=function(p){var y=_.oX.apply(1,arguments);this.metricMap.has(p)||this.metricMap.set(p,new Kb$(p,y))};
Aq.prototype.addNewEventMetric=function(p){var y=_.oX.apply(1,arguments);this.metricMap.has(p)||this.metricMap.set(p,new wHv(p,y))};
var AQZ=function(p,y){return p.disabledMetrics.has(y)?void 0:p.metricMap.get(y)};
Aq.prototype.JSC$9722_incrementCounter=function(p){this.JSC$9722_incrementCounterBy(p,1,_.oX.apply(1,arguments))};
Aq.prototype.JSC$9722_incrementCounterBy=function(p,y){var l=_.oX.apply(2,arguments),q=AQZ(this,p);q&&q instanceof Kb$&&(q.JSC$9661_incrementCounterBy(y,l),GsB(this))};
Aq.prototype.record=function(p,y){var l=_.oX.apply(2,arguments),q=AQZ(this,p);q&&q instanceof wHv&&(q.record(y,l),GsB(this))};
var PzP=function(p){for(var y=0;y<p.length;y++)p[y].clear()};_.Tt=function(p,y,l){l=l===void 0?{}:l;y=Error.call(this,y);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.code=p;this.metadata=l;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.A(_.Tt,Error);_.Tt.prototype.toString=function(){var p="RpcError("+(DVa(this.code)||String(this.code))+")";this.message&&(p+=": "+this.message);return p};_.Z0$=_.l_.JSON.parse;_.xv=_.l_.JSON.stringify;_.Nf=_.l_.JSON.parse;_.MOO=function(p){switch(p){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var VOr=function(p){switch(p){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var gIx,Ql$=function(){};
_.j6(Ql$,_.H68);Ql$.prototype.createInstance=function(){return new XMLHttpRequest};
gIx=new Ql$;_.Bf=function(p){_.Fn.call(this);this.headers=new Map;this.JSC$9731_xmlHttpFactory_=p||null;this.JSC$9731_active_=!1;this.JSC$9731_xhr_=null;this.JSC$9731_lastUri_="";this.JSC$9731_lastErrorCode_=0;this.JSC$9731_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9731_timeoutId_=null;this.responseType_="";this.JSC$9731_withCredentials_=!1};
_.j6(_.Bf,_.Fn);var KJN=/^https?$/i,wJN=["POST","PUT"],i0M=[],BYa=function(p,y,l,q,t,E,e){var C=new _.Bf;i0M.push(C);y&&C.listen("complete",y);C.listenOnce("ready",C.cleanupSend_);E&&(C.timeoutInterval_=Math.max(0,E));e&&(C.JSC$9731_withCredentials_=e);C.send(p,l,q,t)};
_.Bf.prototype.cleanupSend_=function(){this.dispose();_.Oc(i0M,this)};
_.Bf.prototype.send=function(p,y,l,q){if(this.JSC$9731_xhr_)throw Error("Aa`"+this.JSC$9731_lastUri_+"`"+p);y=y?y.toUpperCase():"GET";this.JSC$9731_lastUri_=p;this.JSC$9731_lastError_="";this.JSC$9731_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9731_active_=!0;this.JSC$9731_xhr_=this.createXhr();this.JSC$9731_xhr_.onreadystatechange=Lu((0,_.FZ)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9731_xhr_.open(y,String(p),!0),this.inOpen_=!1}catch(e){rQB(this,e);return}p=l||"";l=new Map(this.headers);
if(q)if(Object.getPrototypeOf(q)===Object.prototype)for(var t in q)l.set(t,q[t]);else if(typeof q.keys==="function"&&typeof q.get==="function"){t=_.c(q.keys());for(var E=t.next();!E.done;E=t.next())E=E.value,l.set(E,q.get(E))}else throw Error("Ba`"+String(q));q=Array.from(l.keys()).find(function(e){return"content-type"==e.toLowerCase()});
t=_.l_.FormData&&p instanceof _.l_.FormData;!_.Tl(wJN,y)||q||t||l.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");y=_.c(l);for(q=y.next();!q.done;q=y.next())l=_.c(q.value),q=l.next().value,l=l.next().value,this.JSC$9731_xhr_.setRequestHeader(q,l);this.responseType_&&(this.JSC$9731_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9731_xhr_&&this.JSC$9731_xhr_.withCredentials!==this.JSC$9731_withCredentials_&&(this.JSC$9731_xhr_.withCredentials=this.JSC$9731_withCredentials_);
try{this.JSC$9731_timeoutId_&&(clearTimeout(this.JSC$9731_timeoutId_),this.JSC$9731_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9731_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9731_xhr_.send(p),this.inSend_=!1}catch(e){rQB(this,e)}};
_.Bf.prototype.createXhr=function(){return this.JSC$9731_xmlHttpFactory_?this.JSC$9731_xmlHttpFactory_.createInstance():gIx.createInstance()};
_.Bf.prototype.timeout_=function(){typeof OB5!="undefined"&&this.JSC$9731_xhr_&&(this.JSC$9731_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9731_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var rQB=function(p,y){p.JSC$9731_active_=!1;p.JSC$9731_xhr_&&(p.inAbort_=!0,p.JSC$9731_xhr_.abort(),p.inAbort_=!1);p.JSC$9731_lastError_=y;p.JSC$9731_lastErrorCode_=5;S6B(p);FJ$(p)},S6B=function(p){p.errorDispatched_||(p.errorDispatched_=!0,p.dispatchEvent("complete"),p.dispatchEvent("error"))};
_.Bf.prototype.abort=function(p){this.JSC$9731_xhr_&&this.JSC$9731_active_&&(this.JSC$9731_active_=!1,this.inAbort_=!0,this.JSC$9731_xhr_.abort(),this.inAbort_=!1,this.JSC$9731_lastErrorCode_=p||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),FJ$(this))};
_.Bf.prototype.disposeInternal=function(){this.JSC$9731_xhr_&&(this.JSC$9731_active_&&(this.JSC$9731_active_=!1,this.inAbort_=!0,this.JSC$9731_xhr_.abort(),this.inAbort_=!1),FJ$(this,!0));_.Bf.superClass_.disposeInternal.call(this)};
_.Bf.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)LJr(this);else this.onReadyStateChangeEntryPoint_()};
_.Bf.prototype.onReadyStateChangeEntryPoint_=function(){LJr(this)};
var LJr=function(p){if(p.JSC$9731_active_&&typeof OB5!="undefined")if(p.inSend_&&_.fu(p)==4)setTimeout(p.onReadyStateChange_.bind(p),0);else if(p.dispatchEvent("readystatechange"),p.isComplete()){p.JSC$9731_active_=!1;try{if(p.isSuccess())p.dispatchEvent("complete"),p.dispatchEvent("success");else{p.JSC$9731_lastErrorCode_=6;try{var y=_.fu(p)>2?p.JSC$9731_xhr_.statusText:""}catch(l){y=""}p.JSC$9731_lastError_=y+" ["+p.getStatus()+"]";S6B(p)}}finally{FJ$(p)}}},FJ$=function(p,y){if(p.JSC$9731_xhr_){p.JSC$9731_timeoutId_&&
(clearTimeout(p.JSC$9731_timeoutId_),p.JSC$9731_timeoutId_=null);
var l=p.JSC$9731_xhr_;p.JSC$9731_xhr_=null;y||p.dispatchEvent("ready");try{l.onreadystatechange=null}catch(q){}}};
_.Bf.prototype.isActive=function(){return!!this.JSC$9731_xhr_};
_.Bf.prototype.isComplete=function(){return _.fu(this)==4};
_.Bf.prototype.isSuccess=function(){var p=this.getStatus(),y;if(!(y=VOr(p))){if(p=p===0)p=DLM(String(this.JSC$9731_lastUri_)),p=!KJN.test(p);y=p}return y};
_.fu=function(p){return p.JSC$9731_xhr_?p.JSC$9731_xhr_.readyState:0};
_.J=_.Bf.prototype;_.J.getStatus=function(){try{return _.fu(this)>2?this.JSC$9731_xhr_.status:-1}catch(p){return-1}};
_.J.getResponseText=function(){try{return this.JSC$9731_xhr_?this.JSC$9731_xhr_.responseText:""}catch(p){return""}};
_.J.getResponse=function(){try{if(!this.JSC$9731_xhr_)return null;if("response"in this.JSC$9731_xhr_)return this.JSC$9731_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9731_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9731_xhr_)return this.JSC$9731_xhr_.mozResponseArrayBuffer}return null}catch(p){return null}};
_.J.getAllResponseHeaders=function(){return this.JSC$9731_xhr_&&_.fu(this)>=2?this.JSC$9731_xhr_.getAllResponseHeaders()||"":""};
_.J.getLastError=function(){return typeof this.JSC$9731_lastError_==="string"?this.JSC$9731_lastError_:String(this.JSC$9731_lastError_)};var fkc=function(){};
fkc.prototype.send=function(p,y,l){y=y===void 0?function(){}:y;
l=l===void 0?function(){}:l;
BYa(p.url,function(q){q=q.target;q.isSuccess()?y(q.getResponseText()):l(q.getStatus())},p.requestType,p.body,p.requestHeaders,p.timeoutMillis,p.withCredentials)};
fkc.prototype.getTransmissionType=function(){return 1};var ksO=function(p,y){this.vsA=p;this.event=y;this.startTime=Zz()},zn8;
ksO.prototype.done=function(){this.vsA.o0(this.event,Zz()-this.startTime)};
var vf=function(){$v.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.A(vf,$v);_.Xn=function(p,y,l){var q=Zz();y=y();p.o0(l,Zz()-q);return y};
zn8=function(){vf.apply(this,arguments)};
_.A(zn8,vf);_.J=zn8.prototype;_.J.kik=function(){};
_.J.yq=function(){};
_.J.o0=function(){};
_.J.logError=function(){};
_.J.iC=function(){};
_.J.yyu=function(){};
_.J.ryZ=function(){};
_.J.jxg=function(){};
var NVV=function(p){vf.call(this);var y=this;this.hN=p;this.TEST_ONLY={fGf:function(){return y.hN},
getExperimentIds:function(){return y.hN.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void y.hN.dispose()})};
_.A(NVV,vf);_.J=NVV.prototype;_.J.update=function(p){this.hN.dispose();this.hN=p};
_.J.yq=function(p){this.hN.yq(p)};
_.J.o0=function(p,y){this.hN.o0(p,y)};
_.J.logError=function(p){this.hN.logError(p)};
_.J.iC=function(){this.hN.iC()};
_.J.yyu=function(p){this.hN.yyu(p)};
_.J.ryZ=function(p){this.hN.ryZ(p)};
_.J.jxg=function(p){this.hN.jxg(p)};
_.J.kik=function(p){this.hN.kik(p)};
var DQr=function(p,y){_.Sr.call(this);var l=this;this.callback=p;this.ud3=y;this.kG1=-y;this.addOnDisposeCallback(function(){return void clearTimeout(l.timer)})};
_.A(DQr,_.Sr);var H0Z=function(p){if(p.timer===void 0){var y=Math.max(0,p.kG1+p.ud3-Zz());p.timer=setTimeout(function(){try{p.callback()}finally{p.kG1=Zz(),p.timer=void 0}},y)}},TVi=function(p,y){vf.call(this);
this.metrics=p;this.ak=y};
_.A(TVi,vf);_.J=TVi.prototype;_.J.kik=function(p){this.metrics.lot.record(p,this.ak)};
_.J.yq=function(p){this.metrics.eventCount.increment(p,this.ak)};
_.J.o0=function(p,y){this.metrics.c2P.record(y,p,this.ak)};
_.J.logError=function(p){this.metrics.errorCount.increment(p,this.ak)};
_.J.yyu=function(p){this.metrics.xWl.increment(p,this.ak)};
_.J.ryZ=function(p){this.metrics.bNP.increment(p,this.ak)};
_.J.jxg=function(p){this.metrics.pol.increment(p,this.ak)};
var Ik6=function(p,y){y=y===void 0?[]:y;var l={ak:p.ak||"_",cZg:p.cZg||[],mev:p.mev|0,destinationUrl:p.destinationUrl,disableClearcutCredentialBinding:p.disableClearcutCredentialBinding,tlr:p.tlr||function(){},
l1y:p.l1y||function(E,e){return oZo(E,e,l.tlr,l.destinationUrl,l.disableClearcutCredentialBinding)}},q=l.l1y("50",l.cZg.concat(y));
TVi.call(this,{lot:new Pfx(q),errorCount:new VZZ(q),eventCount:new ZOV(q),c2P:new MZV(q),rYi:new AEO(q),xWl:new gXB(q),bNP:new QXP(q),pol:new Kw$(q)},l.ak);var t=this;this.TEST_ONLY={getExperimentIds:function(){return t.options.cZg.concat(t.xVL).sort(function(E,e){return E-e})}};
this.options=l;this.service=q;this.mNh=!p.l1y;this.flushDebouncer=new DQr(function(){return void t.service.snapshotAndFlush()},l.mev);
this.addOnDisposeCallback(function(){t.flushDebouncer.dispose();t.mNh&&t.service.dispose()});
(this.xVL=y.slice()).sort(_.JZ)};
_.A(Ik6,TVi);Ik6.prototype.iC=function(){H0Z(this.flushDebouncer)};var pgg=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(pgg,_.RX);_.ydl=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(_.ydl,_.RX);var EP=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p,0,EP.messageId)};
_.A(EP,_.RX);var xQ$=_.MZt(EP);EP.messageId="bfkj";var YYm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(YYm,_.RX);var PBL=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(PBL,_.RX);var BVB=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(BVB,_.RX);var f7N=_.Mm(BVB);_.AB=function(){var p=this;this.promise=new Promise(function(y,l){p.resolve=y;p.reject=l})};_.d5=function(p){_.Sr.call(this);var y=this;this.cwc=Math.floor(Math.random()*200);this.xmy=new BVB;if("challenge"in p&&xQ$(p.challenge)){var l=_.fq(p.challenge,4,void 0,BU);var q=_.fq(p.challenge,5,void 0,BU);_.fq(p.challenge,7,void 0,BU)&&(this.xmy=f7N(_.fq(p.challenge,7,void 0,BU)))}else l=p.program,q=p.globalName;this.addOnDisposeCallback(function(){var Z,K,F;return _.h(function(L){if(L.nextAddress==1)return L.yield(y.xtJ,2);Z=L.yieldResult;K=Z.tsy;(F=K)==null||F();_.rR(L)})});
this.cY=pCl(p.rVk||{},this.xmy);_.P9(this,this.cY);var t=new _.AB;this.xtJ=t.promise;this.cY.yq("t");var E=this.cY.share(),e=new ksO(E,"t"),C=function(Z,K,F,L){if(!y.cY.isDisposed()){var T="k";K?T="h":F&&(T="u");T!=="k"?L!==0&&(y.cY.yq(T),y.cY.o0(T,Z)):y.cwc<=0?(y.cY.yq(T),y.cY.o0(T,Z),y.cwc=Math.floor(Math.random()*200)):y.cwc--}},u=function(Z,K,F,L){Promise.resolve().then(function(){e.done();
E.iC();E.dispose();t.resolve({tNA:Z,tsy:K,imi:F,eel:L})})};
if(!_.l_[q])throw this.cY.logError(25),Error("Ca");if(!_.l_[q].a)throw this.cY.logError(26),Error("Da");try{var a=_.l_[q].a;q=[];for(var m=[],U=AM_(this.xmy),b=0;b<U.length;b++)q.push(U[b]),m.push(1);var P=Z6u(this.xmy);for(U=0;U<P.length;U++)q.push(P[U]),m.push(2);this.nz0=_.c(a(l,u,!0,p.bAl,C,[q,m],_.fq(this.xmy,5))).next().value;this.f1g=t.promise.then(function(){})}catch(Z){throw this.cY.logError(28),Z;
}};
_.A(_.d5,_.Sr);_.d5.prototype.snapshot=function(p){if(this.isDisposed())throw Error("Ea");this.cY.yq("n");var y=this.cY.share();return this.xtJ.then(function(l){var q=l.tNA;return new Promise(function(t){var E=new ksO(y,"n");q(function(e){E.done();y.kik(e.length);y.iC();y.dispose();t(e)},[p.m3,
p.dGX,p.oGP,p.vOF])})})};
_.d5.prototype.dzV=function(p){this.xtJ.then(function(y){var l;(l=y.imi)==null||l(p)})};
_.d5.prototype.a3k=function(p,y){return this.xtJ.then(function(l){var q;return(q=l.eel)==null?void 0:q(p,y,!1)})};
_.d5.prototype.qBV=function(){return this.cY.share()};var vIM=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(vIM,_.RX);var ke_=_.MZt(vIM);var XJZ=function(){this.promises={};this.i51=null},dQU=function(){XJZ.instance||(XJZ.instance=new XJZ);
return XJZ.instance},oIN=function(p,y){return O0Z(p,_.MF(y,pgg,1,BU),_.MF(y,_.ydl,2,BU),_.fq(y,3,void 0,BU))},O0Z=function(p,y,l,q){if(!y&&!l)return Promise.resolve();
if(!q)return tMo(y,l);var t;(t=p.promises)[q]||(t[q]=new Promise(function(E,e){tMo(y,l).then(function(){p.i51=q;E()},function(C){delete p.promises[q];
e(C)})}));
return p.promises[q]};var z$P=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(z$P,_.RX);var Y6x=function(p,y){return _.J2(p,1,y)},I7x=function(p,y){return _.J2(p,2,y)};var OV=function(p){_.Sr.call(this);var y=this;this.options=p;this.sbG=new _.AB;this.f1g=this.sbG.promise;this.ufJ=new _.AB;this.tDA=1;this.zwJ=new _.AB;this.bBu=[];this.dYJ=p.dYJ||function(){};
this.bQP=new NVV(pCl(p.rVk||{}));p9N(this,p.uz,p.zKZ,p.cR0,p.zzj,Object.assign({},yqV,p.tMb||{}));this.addOnDisposeCallback(function(){return void lzM(y)})};
_.A(OV,_.Sr);OV.prototype.snapshot=function(p){var y=this;return _.h(function(l){switch(l.nextAddress){case 1:if(y.isDisposed())throw Error("Ea");if(y.iq||y.yuw){l.jumpTo(2);break}return l.yield(y.ufJ.promise,2);case 2:if(!y.iq){l.jumpTo(4);break}return l.yield(y.iq.snapshot(p),5);case 5:return l.return(l.yieldResult);case 4:throw y.yuw;}})};
var qEN=function(p){var y;return _.h(function(l){if(p.isDisposed())throw Error("Ea");(y=p.wm)!=null&&(y.endTimeMs=0,y.resolver(1));return l.yield(p.zwJ.promise,0)})},lzM=function(p){p.yuw=Error("Ga");
p.ufJ.resolve();Mcg(p.sbG.promise);p.sbG.reject(Error("Ga"));p.bQP.dispose();Promise.all(p.bBu).then(function(){var l;return _.h(function(q){(l=p.iq)==null||l.dispose();p.iq=void 0;_.rR(q)})});
p.bBu=[];var y;(y=p.wm)!=null&&(y.endTimeMs=0,y.resolver(1));Mcg(p.zwJ.promise);p.zwJ.reject(Error("Ga"))};
OV.prototype.dzV=function(p){var y,l;(y=this.iq)==null||(l=y.dzV)==null||l.call(y,p)};
OV.prototype.a3k=function(p,y){var l,q,t;return(t=(l=this.iq)==null?void 0:(q=l.a3k)==null?void 0:q.call(l,p,y))!=null?t:Promise.resolve()};
var sYB=function(p,y){var l=p.dYJ;p.dYJ=function(){l();y()}},trv=function(p,y){p.isDisposed()||(p.iq=y,p.bQP.update(y.qBV()),p.ufJ.resolve(),p.sbG.resolve(void 0),p.dYJ())};
OV.prototype.handleError=function(p){if(!this.isDisposed()){this.yuw=p;this.ufJ.resolve();var y,l;(l=(y=this.options).rha)==null||l.call(y,p)}};
var EPv=function(p,y){y&&(Promise.all(p.bBu).then(function(){return void y.dispose()}),p.bBu=[])},oZ=function(p,y){p.tDA=y;
var l,q;(q=(l=p.options).rM1)==null||q.call(l,y)},JqU=function(p){p.isDisposed()||(p.zwJ.resolve(),p.zwJ=new _.AB)},p9N=function(p,y,l,q,t,E){q=q===void 0?dQU():q;
t=t===void 0?Promise.resolve(void 0):t;var e,C,u,a,m,U,b,P,Z,K,F,L;_.h(function(T){switch(T.nextAddress){case 1:return T.yield(0,3);case 3:C=null;if(!e){T.jumpTo(6);break}oZ(p,7);_.Ve(T,7);return T.yield(wg(e.snapshot({}),E.j43,function(){return Promise.resolve("E:CTO")}),9);
case 9:C=T.yieldResult;_.pK(T,6);break;case 7:_.i6(T),C="E:UCE";case 6:u=void 0,a=e?E.z1r:E.mUP,m=new b4(a,E.r22,E.jWx,E.lxA),U=1;case 10:if(!(U<=E.maxAttempts)){T.jumpTo(12);break}if(U===1){T.jumpTo(13);break}oZ(p,0);p.wm=new cqN(m.getValue(),E.sfd,E.xnA);return T.yield(p.wm.promise,14);case 14:b=T.yieldResult,p.wm=void 0,b===1?(U=1,m.reset()):j9v(m);case 13:_.Ve(T,15);P=void 0;if(l){P=l;T.jumpTo(17);break}oZ(p,5);Z=q.i51;return T.yield(wg(eyQ(y,Z,C),E.mqd,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:P=T.yieldResult;case 17:return oZ(p,3),T.yield(wg(oIN(q,P),E.ex2,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return oZ(p,8),T.yield(t,20);case 20:return K=new _.d5({challenge:P,rVk:p.options.rVk,bAl:p.options.bAl}),T.yield(wg(K.f1g,E.oD0,function(){return Promise.reject(Error("Ja"))}),21);
case 21:u=K;T.jumpTo(12);break;case 15:F=_.i6(T),p.handleError(F),JqU(p);case 11:U++;T.jumpTo(10);break;case 12:if(p.isDisposed()){T.jumpTo(5);break}u&&(l=void 0,EPv(p,e),e=u,trv(p,u),JqU(p));oZ(p,2);p.wm=new cqN(E.gpP,E.sfd,E.xnA);return T.yield(p.wm.promise,22);case 22:p.wm=void 0;if(p.isDisposed()){T.jumpTo(5);break}T.jumpTo(3);break;case 5:(L=e)==null||L.dispose(),_.rR(T)}})};
OV.prototype.qBV=function(){return this.bQP.share()};
var yqV={gpP:432E5,sfd:3E5,xnA:10,j43:1E4,mqd:3E4,ex2:3E4,oD0:6E4,mUP:1E3,z1r:6E4,r22:6E5,jWx:.25,lxA:2,maxAttempts:10},cqN=function(p,y,l){var q=this;this.endTimeMs=Date.now()+p;this.promise=new Promise(function(E){q.resolver=E});
var t=function(){var E=q.endTimeMs-Date.now();E<=l?q.resolver(0):setTimeout(t,Math.min(E,y))};
t()};var hyZ,cJt=(hyZ=Math.imul)!=null?hyZ:function(p,y){return p*y|0},i4=[196,
200,224,18],zt=function(p,y,l){l=l===void 0?[]:l;this.maxItems=p;this.k7=y===void 0?0:y;this.jW=l},C4$=function(p){var y=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!y)return new zt(p);var l=y.split(",");if(l.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new zt(p);y=l.slice(1);y.length===1&&y[0]===""&&(y=[]);l=Number(l[0]);return isNaN(l)||l<0||l>y.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new zt(p)):new zt(p,l,y)};
zt.prototype.serialize=function(){return String(this.k7)+","+this.jW.join()};
zt.prototype.insert=function(p,y){var l=void 0;if(this.jW[this.k7]!==p){var q=this.jW.indexOf(p);q!==-1?(this.jW.splice(q,1),q<this.k7&&this.k7--,this.jW.splice(this.k7,0,p)):(l=this.jW[this.k7],this.jW[this.k7]=p)}this.k7=(this.k7+1)%this.maxItems;p=Eh5("iU5q-!O9@$",this.serialize());l&&p&&y(l);return p};
var uZM=function(p,y){this.c4h=y;try{var l=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(q){l=!1}l&&(this.index=C4$(p))},RyZ=function(p,y,l,q,t){var E=p.index?_.Xn(p.c4h,function(){return QK_(p.index,VM_(y),l,q,t)},"W"):"u";
p.c4h.jxg(E)},W2$=function(p,y,l){var q=_.c(p.index?_.Xn(p.c4h,function(){return KIt(VM_(y),l)},"R"):["u"]),t=q.next().value;
q=q.next().value;p.c4h.ryZ(t);return q};var azv={toString:function(p){var y=[],l=0;p-=-2147483648;y[l++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(p%52);for(p=Math.floor(p/52);p>0;)y[l++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(p%62),p=Math.floor(p/62);return y.join("")}};var $Fx=function(p){p=mFr(p);for(var y=2654435769,l=2654435769,q=314159265,t=p.length,E=t,e=0,C=function(){y-=l;y-=q;y^=q>>>13;l-=q;l-=y;l^=y<<8;q-=y;q-=l;q^=l>>>13;y-=l;y-=q;y^=q>>>12;l-=q;l-=y;l^=y<<16;q-=y;q-=l;q^=l>>>5;y-=l;y-=q;y^=q>>>3;l-=q;l-=y;l^=y<<10;q-=y;q-=l;q^=l>>>15};E>=12;E-=12,e+=12)y+=UFi(p,e),l+=UFi(p,e+4),q+=UFi(p,e+8),C();
q+=t;switch(E){case 11:q+=p[e+10]<<24;case 10:q+=p[e+9]<<16;case 9:q+=p[e+8]<<8;case 8:l+=p[e+7]<<24;case 7:l+=p[e+6]<<16;case 6:l+=p[e+5]<<8;case 5:l+=p[e+4];case 4:y+=p[e+3]<<24;case 3:y+=p[e+2]<<16;case 2:y+=p[e+1]<<8;case 1:y+=p[e]}C();return azv.toString(q)},mFr=function(p){for(var y=[],l=0;l<p.length;l++)y.push(p.charCodeAt(l));
return y},UFi=function(p,y){return p[y]+(p[y+1]<<8)+(p[y+2]<<16)+(p[y+3]<<24)};var Yv=function(p){_.Sr.call(this);this.bw=p;this.kke=new _.AB};
_.A(Yv,_.Sr);var jYV=function(p,y){var l=setTimeout(function(){p.kke.resolve()},y);
p.addOnDisposeCallback(function(){return void clearTimeout(l)})};
Yv.prototype.jZZ=function(p,y){var l=this.eo(p);y==null||y(l);return _.Xn(this.bw,function(){return _.HR(l,2)},this.qjb)};
var bSP=function(p,y,l,q){return _.Xn(p.bw,function(){return l?p.jZZ(y,q):p.eo(y,q)},p.yVX)},nPB=function(p,y,l,q){Yv.call(this,p);
this.vIZ=y;this.pUA=l;this.yVX="m";this.qjb="x";this.atr=0;jYV(this,q)};
_.A(nPB,Yv);nPB.prototype.eo=function(p,y){var l=this;this.bw.yq(this.yVX);++this.atr>=this.pUA&&this.kke.resolve();var q=p();p=_.Xn(this.bw,function(){return l.vIZ(q)},"C");
if(p===void 0)throw new m6(17,"YNJ:Undefined");if(!(p instanceof Uint8Array))throw new m6(18,"ODM:Invalid");y==null||y(p);return p};
var GHU=function(p,y,l){Yv.call(this,p);this.dqr=y;this.yVX="f";this.qjb="z";jYV(this,l)};
_.A(GHU,Yv);GHU.prototype.eo=function(){return this.dqr};
var P4r=function(p,y,l){Yv.call(this,p);this.e9r=y;this.yVX="w";this.qjb="z";jYV(this,l)};
_.A(P4r,Yv);P4r.prototype.eo=function(){var p=this;return _.Xn(this.bw,function(){return _.hZ(p.e9r)},"d")};
P4r.prototype.jZZ=function(){return this.e9r};
var AqV=function(p,y){Yv.call(this,p);this.error=y;this.yVX="e";this.qjb="y"};
_.A(AqV,Yv);var ZSM=function(p,y){var l=(y(p.error.message)+":"+y(p.error.stack)).substring(0,2048);y=l.length+1;l=wCR(l);var q=new Uint8Array(4+l.length);q.set([42,y&127|128,y>>7,p.error.code]);q.set(l,4);return q};
AqV.prototype.eo=function(){if(this.l68)return this.l68;this.l68=ZSM(this,function(p){return"_"+$Fx(p)});
return ZSM(this,function(p){return p})};
var MrO=function(p,y,l){Yv.call(this,p);this.iSL=y;this.clientState=l;this.yVX="S";this.qjb="q"};
_.A(MrO,Yv);MrO.prototype.eo=function(){var p=Math.floor(Date.now()/1E3),y=[Math.random()*255,Math.random()*255],l=y.concat([this.iSL&255,this.clientState],[p>>24&255,p>>16&255,p>>8&255,p&255]);p=new Uint8Array(2+l.length);p[0]=34;p[1]=l.length;p.set(l,2);l=p.subarray(2);for(var q=y=y.length;q<l.length;++q)l[q]^=l[q%y];this.bw.yyu(this.clientState);return p};var VrP={j9l:3E4,zCZ:2E4},IZ=function(p){_.Sr.call(this);var y=this;this.x37=new _.AB;this.myJ=0;this.tF=void 0;this.state=2;this.vm=p.vm;this.uz=p.uz;this.tMb=Object.assign({},VrP,p.tMb||{});this.bE=p.vm.qBV();var l;this.onError=(l=p.onError)!=null?l:function(){};
this.zZG=p.zZG||!1;if(gPN(p)){var q=this.vm;this.a4G=function(){return qEN(q).catch(function(e){e=y.reportError(new m6(y.sR?20:32,"TRG:Disposed",e));y.tF=e;var C;(C=y.sR)==null||C.dispose();y.sR=void 0;y.x37.reject(e)})};
sYB(q,function(){return void QYr(y)});
q.tDA===2&&QYr(this)}else this.a4G=p.p00,QYr(this);var t=this.bE.share();t.yq("o");var E=new ksO(t,"o");this.x37.promise.then(function(){E.done();t.iC();t.dispose()},function(){return void t.dispose()});
this.addOnDisposeCallback(function(){y.sR?(y.sR.dispose(),y.sR=void 0):y.tF?y.bE.iC():(y.tF=y.reportError(new m6(32,"TNP:Disposed")),y.bE.iC(),y.x37.reject(y.tF))});
_.P9(this,this.bE)};
_.A(IZ,_.Sr);IZ.prototype.w30=function(){return this.x37.promise};
var K2B=function(p,y){if(!(y instanceof m6))if(y instanceof _.Tt){var l=Error(y.toString());l.stack=y.stack;y=new m6(11,"EBH:Error",l)}else y=new m6(12,"BSO:Unknown",y);return p.reportError(y)},QYr=function(p){var y,l,q,t,E,e,C,u,a,m,U,b,P,Z,K;
return _.h(function(F){switch(F.nextAddress){case 1:y=void 0;p.myJ++;l=new _.AB;p.vm instanceof OV&&p.vm.bBu.push(l.promise);if(!p.zZG){F.jumpTo(2);break}q=new _.AB;setTimeout(function(){return void q.resolve()});
return F.yield(q.promise,2);case 2:return t=p.bE.share(),_.Ve(F,4,5),p.state=5,E={},e=[],F.yield(wg(p.vm.snapshot({m3:E,oGP:e}),p.tMb.zCZ,function(){return Promise.reject(new m6(15,"MDA:Timeout"))}),7);
case 7:C=F.yieldResult;if(p.isDisposed())throw new m6(p.sR?20:32,"MDA:Disposed");u=e[0];p.state=6;return F.yield(wg(w9Q(p.uz,C),p.tMb.j9l,function(){return Promise.reject(new m6(10,"BWB:Timeout"))}),8);
case 8:a=F.yieldResult;if(p.isDisposed())throw new m6(p.sR?20:32,"BWB:Disposed");p.state=7;y=_.Xn(t,function(){var T=iSZ(p,a,l,u);T.kke.promise.then(function(){return void p.a4G()});
return T},"i");
case 5:_.Qe(F);t.dispose();_.wR(F,6);break;case 4:m=_.i6(F);(U=y)==null||U.dispose();if(!p.tF){b=K2B(p,m);l.resolve();var L;if(L=p.vm instanceof OV&&p.myJ<2)a:if(m instanceof m6)L=m.code!==32&&m.code!==20&&m.code!==10;else{if(m instanceof _.Tt)switch(m.code){case 2:case 13:case 14:case 4:break;default:L=!1;break a}L=!0}if(L)return P=(1+Math.random()*.25)*(p.sR?6E4:1E3),Z=setTimeout(function(){return void p.a4G()},P),p.addOnDisposeCallback(function(){return void clearTimeout(Z)}),F.return();
p.tF=b}t.logError(p.sR?13:14);p.x37.reject(p.tF);return F.return();case 6:p.state=8,p.myJ=0,(K=p.sR)==null||K.dispose(),p.sR=y,p.x37.resolve(),_.rR(F)}})},iSZ=function(p,y,l,q){var t=mdc(y,2)*1E3;
if(t<=0)throw new m6(31,"TTM:Invalid");if(_.fq(y,4))return new P4r(p.bE,_.fq(y,4),t);if(!mdc(y,3))return new GHU(p.bE,Ism(_.Fc(y,1)),t);if(!q)throw new m6(4,"PMD:Undefined");q=q(Ism(_.Fc(y,1)));if(!(q instanceof Function))throw new m6(16,"APF:Failed");p.t2G=Math.floor((Date.now()+t)/1E3);p=new nPB(p.bE,q,mdc(y,3),t);p.addOnDisposeCallback(function(){return void l.resolve()});
return p};
IZ.prototype.eo=function(p){return rqU(this,Object.assign({},p),!1)};
IZ.prototype.jZZ=function(p){return rqU(this,Object.assign({},p),!0)};
IZ.prototype.coc=function(p){if(p>150)return!1;try{return this.cache=new uZM(p,this.bE),!0}catch(y){return this.reportError(new m6(22,"GBJ:init",y)),!1}};
IZ.prototype.reportError=function(p){this.bE.logError(p.code);this.onError(p);return p};
var SE$=function(p,y){y=y instanceof m6?y:new m6(5,"TVD:error",y);return p.reportError(y)},rqU=function(p,y,l){try{if(p.isDisposed())throw new m6(21,"BNT:disposed");
if(!p.sR&&p.tF)throw p.tF;var q,t;return(t=(q=F2U(p,y,l))!=null?q:L2r(p,y,l))!=null?t:kHr(p,y,l)}catch(E){if(!y.nDG)throw SE$(p,E);return Ng$(p,l,E)}},F2U=function(p,y,l){var q;
return(q=p.sR)==null?void 0:bSP(q,function(){return DFN(p,y)},l,function(t){var E;
if(p.sR instanceof nPB&&((E=y.bX)==null?0:E.i5G))try{var e;(e=p.cache)==null||RyZ(e,DFN(p,y),t,y.bX.f8Z,p.t2G-120)}catch(C){p.reportError(new m6(24,"ELX:write",C))}})},L2r=function(p,y,l){var q;
if((q=y.bX)!=null&&q.ako)try{var t,E=(t=p.cache)==null?void 0:W2$(t,DFN(p,y),y.bX.f8Z);return E?l?_.Xn(p.bE,function(){return _.HR(E,2)},"a"):E:void 0}catch(e){p.reportError(new m6(23,"RXO:read",e))}},kHr=function(p,y,l){var q={stack:[],
error:void 0,hasError:!1};try{if(!y.gD3)throw new m6(29,"SDF:notready");return bSP(ynm(q,new MrO(p.bE,0,p.state)),function(){return DFN(p,y)},l)}catch(t){q.error=t,q.hasError=!0}finally{ls8(q)}},Ng$=function(p,y,l){var q={stack:[],
error:void 0,hasError:!1};try{var t=SE$(p,l);return bSP(ynm(q,new AqV(p.bE,t)),function(){return[]},y)}catch(E){q.error=E,q.hasError=!0}finally{ls8(q)}},DFN=function(p,y){return y.xvh?y.xvh:y.m3?_.Xn(p.bE,function(){return y.xvh=wCR(y.m3)},"c"):[]},gPN=function(p){return vU(function(y){if(!Re(y))return!1;
for(var l=_.c(Object.entries(p)),q=l.next();!q.done;q=l.next()){var t=_.c(q.value);q=t.next().value;t=t.next().value;if(!(q in y)){if(t.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!t(y[q]))return!1}return!0})}({vm:function(p){return vU(function(y){return y instanceof p})}(OV)},"");var HSv=function(){var p=_.bS();this.JSC$9851_streamzService=p;p.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",aY("cookie_enabled"),aY("cookie_3p_enabled"),_.UE("browser"))};
HSv.prototype.increment=function(p,y,l){this.JSC$9851_streamzService.JSC$9722_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",p,y,l)};
var qIc=function(){var p=_.bS();this.JSC$9875_streamzService=p;p.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",m2("tick"),aY("from_st_cookie"))};
qIc.prototype.increment=function(p,y){this.JSC$9875_streamzService.JSC$9722_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",p,y)};
var TgZ=function(){var p=_.bS();this.JSC$9881_streamzService=p;p.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.UE("status"))};
TgZ.prototype.increment=function(p){this.JSC$9881_streamzService.JSC$9722_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",p)};
var xFN=function(){var p=_.bS();this.JSC$9884_streamzService=p;p.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.UE("stage"),aY("is_using_ytd_player"),aY("has_expandable_tiles"))};
xFN.prototype.increment=function(p,y,l){this.JSC$9884_streamzService.JSC$9722_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",p,y,l)};
var Bgr=function(){var p=_.bS();this.JSC$9887_streamzService=p;p.addNewCounter("/client_streamz/youtube/web/response_signature",_.UE("check_status"))};
Bgr.prototype.increment=function(p){this.JSC$9887_streamzService.JSC$9722_incrementCounter("/client_streamz/youtube/web/response_signature",p)};
var fzv=function(){var p=_.bS();this.JSC$9890_streamzService=p;p.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.UE("sig"),m2("de"))};
fzv.prototype.increment=function(p,y){this.JSC$9890_streamzService.JSC$9722_incrementCounter("/client_streamz/youtube/web/e_sig_log",p,y)};
var vPQ=function(){var p=_.bS();this.JSC$9893_streamzService=p;p.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.UE("sig"),m2("de"))};
vPQ.prototype.increment=function(p,y){this.JSC$9893_streamzService.JSC$9722_incrementCounter("/client_streamz/youtube/web/e_sig_en",p,y)};
_.X9B=function(){var p=_.bS();this.JSC$9896_streamzService=p;p.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.UE("action"))};
_.X9B.prototype.increment=function(p){this.JSC$9896_streamzService.JSC$9722_incrementCounter("/client_streamz/youtube/web/enforcement_intent",p)};var p2=window;var dFQ=(new Date).getTime();_.Ts.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.Ts.createSet("action","cite","data","formaction","href","manifest","poster","src");var OS$=function(p){this.servicePromise_=p;p.then((0,_.FZ)(function(){},this),function(){},this)},oPQ=function(p,y,l){p.servicePromise_.then(function(q){var t=q[y];
if(!t)throw Error("Ka`"+y);return t.apply(q,l)})},IzM=function(p,y,l){for(var q=Array(arguments.length-2),t=2;t<arguments.length;t++)q[t-2]=arguments[t];
t=zyV(p,y).then(function(E){return E.apply(null,q)},function(E){E=Error("La`"+y+"`"+p,{cause:E});
delete YEQ[y];return _.vL(E)});
return new OS$(t)},YEQ={},zyV=function(p,y){var l=YEQ[y];
if(l)return l;l=(l=_.I4(y))?_.PW(l):(new _.Ps(function(q,t){var E=(new NZ(document)).createElement("SCRIPT");E.async=!0;_.e_(E,_.FX(vxN(p)));E.onload=E.onreadystatechange=function(){E.readyState&&E.readyState!="loaded"&&E.readyState!="complete"||q()};
E.onerror=function(e){t(Error("Ma`"+y+"`"+p,{cause:e}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(E)})).then(function(){var q=_.I4(y);
if(!q)throw Error("Na`"+y+"`"+p);return q});
return YEQ[y]=l};var pQQ={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},lHi=function(){var p=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=ihg(function(){return _.h(function(y){if(y.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?y.return(Promise.resolve()):y.yield(yUM(p),2);p.rsaForList.length>
0&&document.addEventListener("click",p.requestAccessForHelpPanel);_.rR(y)})});
this.requestAccessForHelpPanel=function(){if(!(p.rsaForPromises.length>0)){for(var y=_.c(p.rsaForList),l=y.next();!l.done;l=y.next()){l=l.value;try{p.rsaForPromises.push(document.requestStorageAccessFor(l))}catch(q){}}Promise.all(p.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){p.reset()})}}};
lHi.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var yUM=function(p){var y,l,q,t;return _.h(function(E){switch(E.nextAddress){case 1:y=_.c(Object.values(pQQ)),l=y.next();case 2:if(l.done){E.jumpTo(0);break}q=l.value;_.Ve(E,5);return E.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:q}),7);case 7:t=E.yieldResult;t.state!=="granted"&&p.rsaForList.push(q);_.pK(E,3);break;case 5:_.i6(E);E.jumpTo(0);break;case 3:l=y.next(),E.jumpTo(2)}})};(new lHi).initialize();var qr$=function(p){this.JSC$9910_loader_=p};
qr$.prototype.startHelp=function(p){oPQ(this.JSC$9910_loader_,"startHelp",arguments)};
qr$.prototype.JSC$9912_loadChatSupport=function(p){oPQ(this.JSC$9910_loader_,"loadChatSupport",arguments)};
var thr=function(p,y){y=y||{};p=IzM(seV,"help.service.Lazy.create",p,{apiKey:y.apiKey||y.apiKey,asxUiUri:y.asxUiUri||y.asxUiUri,environment:y.environment||y.environment,flow:y.flow||y.flow,frdProductData:y.frdProductData||y.frdProductData,frdProductDataSerializedJspb:y.frdProductDataSerializedJspb||y.frdProductDataSerializedJspb,helpCenterPath:y.helpCenterPath||y.helpCenterPath,locale:y.locale||y.locale||"en-US".replace(/-/g,"_"),nonce:y.nonce||y.nonce,productData:y.productData||y.productData,receiverUri:y.receiverUri||
y.receiverUri,renderApiUri:y.renderApiUri||y.renderApiUri,theme:y.theme||y.theme,window:y.window||y.window});return new qr$(p)},seV=new dJ(Eoa,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var EJr=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(EJr,_.RX);var JUr=_.Mm(EJr);_.cUM=new function(p,y,l,q){this.configType=p;this.flagName=l;this.defaultValue=q;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 hmP=function(){this.retriever=_.WC().resolve(emP)};SCj(Node);SCj(Element);var CbU=SCj(HTMLElement);SCj(SVGElement);var uIi,RmQ,qD,WuU;uIi=function(p){return typeof p.className=="string"?p.className:p.getAttribute&&p.getAttribute("class")||""};
RmQ=function(p){return p.classList?p.classList:uIi(p).match(/\S+/g)||[]};
_.yz=function(p,y){typeof p.className=="string"?p.className=y:p.setAttribute&&p.setAttribute("class",y)};
_.lR=function(p,y){return p.classList?p.classList.contains(y):_.Tl(RmQ(p),y)};
_.ax=function(p,y){if(p.classList)p.classList.add(y);else if(!_.lR(p,y)){var l=uIi(p);_.yz(p,l+(l.length>0?" "+y:y))}};
qD=function(p,y){if(p.classList)Array.prototype.forEach.call(y,function(t){_.ax(p,t)});
else{var l={};Array.prototype.forEach.call(RmQ(p),function(t){l[t]=!0});
Array.prototype.forEach.call(y,function(t){l[t]=!0});
y="";for(var q in l)y+=y.length>0?" "+q:q;_.yz(p,y)}};
_.Rx=function(p,y){p.classList?p.classList.remove(y):_.lR(p,y)&&_.yz(p,Array.prototype.filter.call(RmQ(p),function(l){return l!=y}).join(" "))};
WuU=function(p,y){p.classList?Array.prototype.forEach.call(y,function(l){_.Rx(p,l)}):_.yz(p,Array.prototype.filter.call(RmQ(p),function(l){return!_.Tl(y,l)}).join(" "))};var aHB=function(p){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=p.document},$AU=function(p,y){mAP(p);
var l=document.createElement("div"),q;(q=y.parentNode)==null||q.insertBefore(l,y);l.tabIndex=0;l.id="fc-focus-trap-pre-div";l=document.createElement("div");var t;(t=y.parentNode)==null||t.insertBefore(l,y.nextSibling);l.tabIndex=0;l.id="fc-focus-trap-post-div";var E=UAi(p,y),e=UAi(p,y,!0);E&&e&&(p.focusChangeHandler=function(){var C=p.document.activeElement;if(C)if(_.OE(y,C))p.previouslyFocusedElement=C;else if(C===p.document.activeElement)switch(p.previouslyFocusedElement){case E:e.focus();p.previouslyFocusedElement=
e;break;default:E.focus(),p.previouslyFocusedElement=E}},p.document.addEventListener("focus",p.focusChangeHandler,!0),p.document.addEventListener("focusin",p.focusChangeHandler))},mAP=function(p){p.focusChangeHandler&&(document.removeEventListener("focus",p.focusChangeHandler,!0),document.removeEventListener("focusin",p.focusChangeHandler),p.focusChangeHandler=null);
var y;(y=document.getElementById("fc-focus-trap-pre-div"))==null||y.remove();var l;(l=document.getElementById("fc-focus-trap-post-div"))==null||l.remove()},jeN=function(p,y,l,q,t){l=l===void 0?!0:l;
var E;t=(E=t===void 0?null:t)!=null?E:UAi(p,y,q===void 0?!1:q);t!==null&&(t.focus(),l&&$AU(p,y))};
aHB.prototype.disableButton=function(p,y){y=y===void 0?null:y;p.disabled=!0;y&&_.ax(p,y)};
var UAi=function(p,y,l){l=l===void 0?!1:l;if(ZlR(y)&&!l)return y;var q=l?[].slice.call(y.children,0).reverse():y.children;q=_.c(q);for(var t=q.next();!t.done;t=q.next())if(t=t.value,CbU(t)&&(t=UAi(p,t,l)))return t;return ZlR(y)&&l?y:null};var brr=function(p){this.originalBodyOverflow="";this.JSC$9936_domHelper=SO(p)};
brr.prototype.enableScrolling=function(){this.JSC$9936_domHelper.JSC$9260_document_.body.style.overflow=this.originalBodyOverflow};_.j6(_.LS,_.Sr);_.J=_.LS.prototype;_.J.JSC$9939_id_=0;_.J.disposeInternal=function(){_.LS.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$9937_listener_;delete this.handler_};
_.J.start=function(p){this.stop();this.JSC$9939_id_=Hf(this.callback_,p!==void 0?p:this.JSC$9937_interval_)};
_.J.stop=function(){this.isActive()&&_.l_.clearTimeout(this.JSC$9939_id_);this.JSC$9939_id_=0};
_.J.fire=function(){this.stop();this.JSC$9939_doAction_()};
_.J.isActive=function(){return this.JSC$9939_id_!=0};
_.J.JSC$9939_doAction_=function(){this.JSC$9939_id_=0;this.JSC$9937_listener_&&this.JSC$9937_listener_.call(this.handler_)};_.W2=function(p){_.Sr.call(this);this.handler_=p;this.JSC$9940_keys_={}};
_.j6(_.W2,_.Sr);var nJZ=[];_.W2.prototype.listen=function(p,y,l,q){Array.isArray(y)||(y&&(nJZ[0]=y.toString()),y=nJZ);for(var t=0;t<y.length;t++){var E=_.BL(p,y[t],l||this.handleEvent,q||!1,this.handler_||this);if(!E)break;this.JSC$9940_keys_[E.key]=E}return this};
_.W2.prototype.listenOnce=function(p,y,l,q){return GPr(this,p,y,l,q)};
var GPr=function(p,y,l,q,t,E){if(Array.isArray(l))for(var e=0;e<l.length;e++)GPr(p,y,l[e],q,t,E);else{y=DS(y,l,q||p.handleEvent,t,E||p.handler_||p);if(!y)return p;p.JSC$9940_keys_[y.key]=y}return p};
_.W2.prototype.unlisten=function(p,y,l,q,t){if(Array.isArray(y))for(var E=0;E<y.length;E++)this.unlisten(p,y[E],l,q,t);else if(p=XH$(p,y,l||this.handleEvent,_.yQ(q)?!!q.capture:!!q,t||this.handler_||this))HL(p),delete this.JSC$9940_keys_[p.key];return this};
_.W2.prototype.removeAll=function(){_.Ts.forEach(this.JSC$9940_keys_,function(p,y){this.JSC$9940_keys_.hasOwnProperty(y)&&HL(p)},this);
this.JSC$9940_keys_={}};
_.W2.prototype.disposeInternal=function(){_.W2.superClass_.disposeInternal.call(this);this.removeAll()};
_.W2.prototype.handleEvent=function(){throw Error("Oa");};var s0=function(){_.Sr.call(this);this.services_={}};
_.j6(s0,_.Sr);s0.prototype.connect=function(p){p&&p()};
s0.prototype.isConnected=function(){return!0};
s0.prototype.registerService=function(p,y,l){this.services_[p]={callback:y,objectPayload:!!l}};
s0.prototype.getService=function(p,y){var l=this.services_[p];return l?l:this.defaultService_?{callback:_.Ky(this.defaultService_,p),objectPayload:_.yQ(y)}:null};
var PbB=function(p,y){if(y&&typeof p==="string")try{return JSON.parse(p)}catch(l){return null}else if(!y&&typeof p!=="string")return(0,_.xv)(p);return p};
s0.prototype.disposeInternal=function(){s0.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 tH=function(p,y){this.sequence_=[];this.onCancelFunction_=p;this.defaultScope_=y||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};
tH.prototype.cancel=function(p){if(this.fired_)this.result_ instanceof tH&&this.result_.cancel();else{if(this.parent_){var y=this.parent_;delete this.parent_;p?y.cancel(p):(y.branches_--,y.branches_<=0&&y.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new E0(this))}};
tH.prototype.continue_=function(p,y){this.blocked_=!1;AUx(this,p,y)};
var AUx=function(p,y,l){p.fired_=!0;p.result_=l;p.hadError_=!y;ZrP(p)},VhB=function(p){if(p.fired_){if(!p.silentlyCanceled_)throw new Mhv(p);
p.silentlyCanceled_=!1}};
tH.prototype.callback=function(p){VhB(this);AUx(this,!0,p)};
tH.prototype.errback=function(p){VhB(this);AUx(this,!1,p)};
var gJV=function(p,y,l){JH(p,y,null,l)};
tH.prototype.finally=function(p){var y=this;return QeO(new Promise(function(l,q){JH(y,function(t){p();l(t)},function(t){p();
q(t)})}))};
var JH=function(p,y,l,q){var t=p.fired_;t||(y===l?y=l=Lu(y):(y=Lu(y),l=Lu(l)));p.sequence_.push([y,l,q]);t&&ZrP(p)};
tH.prototype.then=function(p,y,l){var q,t,E=new _.Ps(function(e,C){t=e;q=C});
JH(this,t,function(e){e instanceof E0?E.cancel():q(e);return KuQ},this);
return E.then(p,y,l)};
yQV(tH);var wQr=function(p,y){y instanceof tH?gJV(p,(0,_.FZ)(y.branch,y)):gJV(p,function(){return y})};
tH.prototype.branch=function(p){var y=new tH;JH(this,y.callback,y.errback,y);p&&(y.parent_=this,this.branches_++);return y};
tH.prototype.isError=function(p){return p instanceof Error};
var irB=function(p){return sL(p.sequence_,function(y){return typeof y[1]==="function"})},KuQ={},ZrP=function(p){if(p.unhandledErrorId_&&p.fired_&&irB(p)){var y=p.unhandledErrorId_,l=rUN[y];
l&&(_.l_.clearTimeout(l.JSC$9957_id_),delete rUN[y]);p.unhandledErrorId_=0}p.parent_&&(p.parent_.branches_--,delete p.parent_);y=p.result_;for(var q=l=!1;p.sequence_.length&&!p.blocked_;){var t=p.sequence_.shift(),E=t[0],e=t[1];t=t[2];if(E=p.hadError_?e:E)try{var C=E.call(t||p.defaultScope_,y);C===KuQ&&(C=void 0);C!==void 0&&(p.hadError_=p.hadError_&&(C==y||p.isError(C)),p.result_=y=C);if(l7r(y)||typeof _.l_.Promise==="function"&&y instanceof _.l_.Promise)q=!0,p.blocked_=!0}catch(u){y=u,p.hadError_=
!0,irB(p)||(l=!0)}}p.result_=y;q&&(C=(0,_.FZ)(p.continue_,p,!0),q=(0,_.FZ)(p.continue_,p,!1),y instanceof tH?(JH(y,C,q),y.blocking_=!0):y.then(C,q));l&&(y=new SrP(y),rUN[y.JSC$9957_id_]=y,p.unhandledErrorId_=y.JSC$9957_id_)},QeO=function(p){var y=new tH;
p.then(function(l){y.callback(l)},function(l){y.errback(l)});
return y},Mhv=function(){_.p8.call(this)};
_.j6(Mhv,_.p8);Mhv.prototype.message="Deferred has already fired";Mhv.prototype.name="AlreadyCalledError";var E0=function(){_.p8.call(this)};
_.j6(E0,_.p8);E0.prototype.message="Deferred was canceled";E0.prototype.name="CanceledError";var SrP=function(p){this.JSC$9957_id_=_.l_.setTimeout((0,_.FZ)(this.throwError,this),0);this.JSC$9957_error_=p};
SrP.prototype.throwError=function(){delete rUN[this.JSC$9957_id_];throw this.JSC$9957_error_;};
var rUN={};var Fur={1:"NativeMessagingTransport"},LuV=["pu","lru","pru","lpu","ppu"],Nqv=function(){for(var p=10,y=kPr,l=y.length,q="";p-- >0;)q+=y.charAt(Math.floor(Math.random()*l));return q},kPr="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var cP=function(p){_.Sr.call(this);this.JSC$9960_domHelper_=p||SO()};
_.j6(cP,_.Sr);cP.prototype.transportType=0;cP.prototype.getWindow=function(){return this.JSC$9960_domHelper_.getWindow()};
cP.prototype.getName=function(){return Fur[String(this.transportType)]||""};var e2=function(p,y,l,q,t){cP.call(this,l);this.JSC$9963_channel_=p;this.protocolVersion_=t||2;this.peerHostname_=y||"*";this.JSC$9963_eventHandler_=new _.W2(this);this.maybeAttemptToConnectTimer_=new _.RG(100,this.getWindow());this.oneSidedHandshake_=!!q;this.setupAckReceived_=new tH;this.setupAckSent_=new tH;this.JSC$9963_connected_=new tH;this.endpointId_=Nqv();this.peerEndpointId_=null;this.oneSidedHandshake_?DAV(this.JSC$9963_channel_)==1?wQr(this.JSC$9963_connected_,this.setupAckReceived_):
wQr(this.JSC$9963_connected_,this.setupAckSent_):(wQr(this.JSC$9963_connected_,this.setupAckReceived_),this.protocolVersion_==2&&wQr(this.JSC$9963_connected_,this.setupAckSent_));gJV(this.JSC$9963_connected_,this.notifyConnected_,this);this.JSC$9963_connected_.callback(!0);this.JSC$9963_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.j6(e2,cP);e2.prototype.peerProtocolVersion_=null;e2.prototype.initialized_=!1;e2.prototype.transportType=1;var HrQ={};e2.prototype.sendTimerId_=0;
var Bqr=function(p){var y=p.event_.data;if(typeof y!=="string")return!1;var l=y.indexOf("|"),q=y.indexOf(":");if(l==-1||q==-1)return!1;var t=y.substring(0,l);l=y.substring(l+1,q);y=y.substring(q+1);if(q=hH[t])return q.xpcDeliver(l,y,p.event_.origin),!0;q=TqU(y)[0];for(var E in hH){var e=hH[E];if(DAV(e)==1&&!e.isConnected()&&l=="tp"&&(q=="SETUP"||q=="SETUP_NTPV2")&&xAZ(e,p.event_.origin))return delete hH[e.name],e.name=t,hH[t]=e,e.xpcDeliver(l,y),!0}return!1},fHM=function(p){p.protocolVersion_!=2||
p.peerProtocolVersion_!=null&&p.peerProtocolVersion_!=2||p.send("tp","SETUP_NTPV2,"+p.endpointId_);
p.peerProtocolVersion_!=null&&p.peerProtocolVersion_!=1||p.send("tp","SETUP")},vJv=function(p,y){if(p.protocolVersion_!=2||p.peerProtocolVersion_!=null&&p.peerProtocolVersion_!=2||y!=2){if(p.peerProtocolVersion_!=null&&p.peerProtocolVersion_!=1||y!=1)return;
p.send("tp","SETUP_ACK")}else p.send("tp","SETUP_ACK_NTPV2");p.setupAckSent_.fired_||p.setupAckSent_.callback(!0)},XQN=function(p,y){y>p.peerProtocolVersion_&&(p.peerProtocolVersion_=y);
p.peerProtocolVersion_==1&&(p.setupAckSent_.fired_||p.oneSidedHandshake_||p.setupAckSent_.callback(!0),p.peerEndpointId_=null)};
_.J=e2.prototype;_.J.connect=function(){var p=this.getWindow(),y=_.qO(p),l=HrQ[y];typeof l!=="number"&&(l=0);l==0&&_.BL(p.postMessage?p:p.document,"message",Bqr,!1,e2);HrQ[y]=l+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.J.maybeAttemptToConnect_=function(){var p=DAV(this.JSC$9963_channel_)==0;this.oneSidedHandshake_&&p||this.JSC$9963_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),fHM(this))};
_.J.send=function(p,y){var l=this.JSC$9963_channel_.peerWindowObject_;l&&(this.send=function(q,t){var E=this,e=this.JSC$9963_channel_.name;this.sendTimerId_=Hf(function(){E.sendTimerId_=0;try{var C=l.postMessage?l:l.document;C.postMessage&&C.postMessage(e+"|"+q+":"+t,E.peerHostname_)}catch(u){}},0)},this.send(p,y))};
_.J.notifyConnected_=function(){var p=this.JSC$9963_channel_,y=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;p.isConnected()||p.connectionDelay_&&p.connectionDelay_.isActive()||(p.state_=2,_.er(p.connectionDelay_),y!==void 0?(p.connectionDelay_=new _.LS(p.connectCb_,y),p.connectionDelay_.start()):(p.connectionDelay_=null,p.connectCb_()))};
_.J.disposeInternal=function(){if(this.initialized_){var p=this.getWindow(),y=_.qO(p),l=HrQ[y];HrQ[y]=l-1;l==1&&_.SJ(p.postMessage?p:p.document,"message",Bqr,!1,e2)}this.sendTimerId_&&(_.l_.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.er(this.JSC$9963_eventHandler_);delete this.JSC$9963_eventHandler_;_.er(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$9963_connected_.cancel();delete this.JSC$9963_connected_;delete this.send;e2.superClass_.disposeInternal.call(this)};
var TqU=function(p){p=p.split(",");p[1]=p[1]||null;return p};var OrN;_.C2=function(p){if(p.getValues&&typeof p.getValues=="function")return p.getValues();if(typeof Map!=="undefined"&&p instanceof Map||typeof Set!=="undefined"&&p instanceof Set)return Array.from(p.values());if(typeof p==="string")return p.split("");if(_.zl(p)){for(var y=[],l=p.length,q=0;q<l;q++)y.push(p[q]);return y}return _.Ts.getValues(p)};
_.dAi=function(p){if(p.getKeys&&typeof p.getKeys=="function")return p.getKeys();if(!p.getValues||typeof p.getValues!="function"){if(typeof Map!=="undefined"&&p instanceof Map)return Array.from(p.keys());if(!(typeof Set!=="undefined"&&p instanceof Set)){if(_.zl(p)||typeof p==="string"){var y=[];p=p.length;for(var l=0;l<p;l++)y.push(l);return y}return _.Ts.getKeys(p)}}};
OrN=function(p,y,l){if(p.forEach&&typeof p.forEach=="function")p.forEach(y,l);else if(_.zl(p)||typeof p==="string")Array.prototype.forEach.call(p,y,l);else for(var q=_.dAi(p),t=_.C2(p),E=t.length,e=0;e<E;e++)y.call(l,t[e],q&&q[e],p)};var JFt,j2,n2,lkx,oJB,Yrr,zmr,yMP,IHZ;
_.JO=function(p,y){this.JSC$9968_domain_=this.userInfo_=this.scheme_="";this.JSC$9968_port_=null;this.fragment_=this.JSC$9968_path_="";this.JSC$9968_ignoreCase_=!1;var l;p instanceof _.JO?(this.JSC$9968_ignoreCase_=y!==void 0?y:p.JSC$9968_ignoreCase_,_.uR(this,p.scheme_),this.userInfo_=p.userInfo_,_.R2(this,p.JSC$9968_domain_),_.WP(this,p.JSC$9968_port_),_.mt(this,p.getPath()),_.U0(this,p.JSC$9968_queryData_.clone()),_.$D(this,p.fragment_)):p&&(l=_.cC(String(p)))?(this.JSC$9968_ignoreCase_=!!y,_.uR(this,
l[1]||"",!0),this.userInfo_=j2(l[2]||""),_.R2(this,l[3]||"",!0),_.WP(this,l[4]),_.mt(this,l[5]||"",!0),_.U0(this,l[6]||"",!0),_.$D(this,l[7]||"",!0)):(this.JSC$9968_ignoreCase_=!!y,this.JSC$9968_queryData_=new _.bR(null,this.JSC$9968_ignoreCase_))};
_.JO.prototype.toString=function(){var p=[],y=this.scheme_;y&&p.push(n2(y,oJB,!0),":");var l=this.JSC$9968_domain_;if(l||y=="file")p.push("//"),(y=this.userInfo_)&&p.push(n2(y,oJB,!0),"@"),p.push(_.y$(l).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),l=this.JSC$9968_port_,l!=null&&p.push(":",String(l));if(l=this.getPath())this.JSC$9968_domain_&&l.charAt(0)!="/"&&p.push("/"),p.push(n2(l,l.charAt(0)=="/"?zmr:Yrr,!0));(l=this.JSC$9968_queryData_.toString())&&p.push("?",l);(l=this.fragment_)&&p.push("#",n2(l,
IHZ));return p.join("")};
_.JO.prototype.resolve=function(p){var y=this.clone(),l=!!p.scheme_;l?_.uR(y,p.scheme_):l=!!p.userInfo_;l?y.userInfo_=p.userInfo_:l=!!p.JSC$9968_domain_;l?_.R2(y,p.JSC$9968_domain_):l=p.JSC$9968_port_!=null;var q=p.getPath();if(l)_.WP(y,p.JSC$9968_port_);else if(l=!!p.JSC$9968_path_){if(q.charAt(0)!="/")if(this.JSC$9968_domain_&&!this.JSC$9968_path_)q="/"+q;else{var t=y.getPath().lastIndexOf("/");t!=-1&&(q=y.getPath().slice(0,t+1)+q)}t=q;if(t==".."||t==".")q="";else if(_.C8(t,"./")||_.C8(t,"/.")){q=
_.tR(t,"/");t=t.split("/");for(var E=[],e=0;e<t.length;){var C=t[e++];C=="."?q&&e==t.length&&E.push(""):C==".."?((E.length>1||E.length==1&&E[0]!="")&&E.pop(),q&&e==t.length&&E.push("")):(E.push(C),q=!0)}q=E.join("/")}else q=t}l?_.mt(y,q):l=p.JSC$9968_queryData_.toString()!=="";l?_.U0(y,p.JSC$9968_queryData_.clone()):l=!!p.fragment_;l&&_.$D(y,p.fragment_);return y};
_.JO.prototype.clone=function(){return new _.JO(this)};
_.uR=function(p,y,l){p.scheme_=l?j2(y,!0):y;p.scheme_&&(p.scheme_=p.scheme_.replace(/:$/,""));return p};
_.R2=function(p,y,l){p.JSC$9968_domain_=l?j2(y,!0):y;return p};
_.WP=function(p,y){if(y){y=Number(y);if(isNaN(y)||y<0)throw Error("Pa`"+y);p.JSC$9968_port_=y}else p.JSC$9968_port_=null;return p};
_.JO.prototype.getPath=function(){return this.JSC$9968_path_};
_.mt=function(p,y,l){p.JSC$9968_path_=l?j2(y,!0):y;return p};
_.U0=function(p,y,l){y instanceof _.bR?(p.JSC$9968_queryData_=y,puQ(p.JSC$9968_queryData_,p.JSC$9968_ignoreCase_)):(l||(y=n2(y,yMP)),p.JSC$9968_queryData_=new _.bR(y,p.JSC$9968_ignoreCase_));return p};
_.pr=function(p,y,l){p.JSC$9968_queryData_.set(y,l);return p};
_.IY=function(p,y){return p.JSC$9968_queryData_.get(y)};
_.$D=function(p,y,l){p.fragment_=l?j2(y):y;return p};
_.GC=function(p){_.pr(p,"zx",zH());return p};
_.YP=function(p,y){return p instanceof _.JO?p.clone():new _.JO(p,y)};
JFt=function(p,y){p instanceof _.JO||(p=_.YP(p));y instanceof _.JO||(y=_.YP(y));return p.resolve(y)};
j2=function(p,y){return p?y?decodeURI(p.replace(/%25/g,"%2525")):decodeURIComponent(p):""};
n2=function(p,y,l){return typeof p==="string"?(p=encodeURI(p).replace(y,lkx),l&&(p=p.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),p):null};
lkx=function(p){p=p.charCodeAt(0);return"%"+(p>>4&15).toString(16)+(p&15).toString(16)};
oJB=/[#\/\?@]/g;Yrr=/[#\?:]/g;zmr=/[#\?]/g;yMP=/[#\?@]/g;IHZ=/#/g;_.bR=function(p,y){this.count_=this.keyMap_=null;this.encodedQuery_=p||null;this.JSC$9969_ignoreCase_=!!y};
_.PP=function(p){p.keyMap_||(p.keyMap_=new Map,p.count_=0,p.encodedQuery_&&xLU(p.encodedQuery_,function(y,l){p.add(uv(y),l)}))};
_.J=_.bR.prototype;_.J.getCount=function(){_.PP(this);return this.count_};
_.J.add=function(p,y){_.PP(this);this.encodedQuery_=null;p=AH(this,p);var l=this.keyMap_.get(p);l||this.keyMap_.set(p,l=[]);l.push(y);this.count_+=1;return this};
_.J.remove=function(p){_.PP(this);p=AH(this,p);return this.keyMap_.has(p)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(p).length,this.keyMap_.delete(p)):!1};
_.J.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.J.isEmpty=function(){_.PP(this);return this.count_==0};
_.J.containsKey=function(p){_.PP(this);p=AH(this,p);return this.keyMap_.has(p)};
_.J.containsValue=function(p){var y=this.getValues();return _.Tl(y,p)};
_.J.forEach=function(p,y){_.PP(this);this.keyMap_.forEach(function(l,q){l.forEach(function(t){p.call(y,t,q,this)},this)},this)};
_.J.getKeys=function(){_.PP(this);for(var p=Array.from(this.keyMap_.values()),y=Array.from(this.keyMap_.keys()),l=[],q=0;q<y.length;q++)for(var t=p[q],E=0;E<t.length;E++)l.push(y[q]);return l};
_.J.getValues=function(p){_.PP(this);var y=[];if(typeof p==="string")this.containsKey(p)&&(y=y.concat(this.keyMap_.get(AH(this,p))));else{p=Array.from(this.keyMap_.values());for(var l=0;l<p.length;l++)y=y.concat(p[l])}return y};
_.J.set=function(p,y){_.PP(this);this.encodedQuery_=null;p=AH(this,p);this.containsKey(p)&&(this.count_-=this.keyMap_.get(p).length);this.keyMap_.set(p,[y]);this.count_+=1;return this};
_.J.get=function(p,y){if(!p)return y;p=this.getValues(p);return p.length>0?String(p[0]):y};
_.qYP=function(p,y,l){p.remove(y);l.length>0&&(p.encodedQuery_=null,p.keyMap_.set(AH(p,y),_.og(l)),p.count_+=l.length)};
_.bR.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var p=[],y=Array.from(this.keyMap_.keys()),l=0;l<y.length;l++){var q=y[l],t=_.y$(q);q=this.getValues(q);for(var E=0;E<q.length;E++){var e=t;q[E]!==""&&(e+="="+_.y$(q[E]));p.push(e)}}return this.encodedQuery_=p.join("&")};
_.bR.prototype.clone=function(){var p=new _.bR;p.encodedQuery_=this.encodedQuery_;this.keyMap_&&(p.keyMap_=new Map(this.keyMap_),p.count_=this.count_);return p};
var AH=function(p,y){y=String(y);p.JSC$9969_ignoreCase_&&(y=y.toLowerCase());return y},puQ=function(p,y){y&&!p.JSC$9969_ignoreCase_&&(_.PP(p),p.encodedQuery_=null,p.keyMap_.forEach(function(l,q){var t=q.toLowerCase();
q!=t&&(this.remove(q),_.qYP(this,t,l))},p));
p.JSC$9969_ignoreCase_=y};
_.bR.prototype.extend=function(p){for(var y=0;y<arguments.length;y++)OrN(arguments[y],function(l,q){this.add(q,l)},this)};var Zv=function(p,y){s0.call(this);for(var l=0,q;q=LuV[l];l++)if(q in p&&!/^https?:\/\//.test(p[q]))throw Error("Ra`"+p[q]+"`"+q);this.cfg_=p;this.name=this.cfg_.cn||Nqv();this.JSC$9964_domHelper_=y||SO();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.W2(this);p.lpu=p.lpu||H7Q(this.JSC$9964_domHelper_.getWindow().location.href)+"/robots.txt";p.ppu=p.ppu||H7Q(p.pu||"")+"/robots.txt";hH[this.name]=this;XH$(window,"unload",s4U)||DS(window,"unload",s4U)};
_.j6(Zv,s0);var tcZ=RegExp("^%*tp$"),EZQ=RegExp("^%+tp$");_.J=Zv.prototype;_.J.connectionDelay_=null;_.J.peerWindowDeferred_=null;_.J.transport_=null;_.J.state_=1;_.J.isConnected=function(){return this.state_==2};
_.J.peerWindowObject_=null;_.J.iframeElement_=null;_.J.connect=function(p){this.connectCb_=p||_.rH;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?gJV(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.J.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$9964_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var p=this.iframeElement_.contentWindow;p||(p=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=p}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$9964_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new e2(this,this.cfg_.ph,this.JSC$9964_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.J.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.er(this.transport_);this.connectCb_=this.transport_=null;_.er(this.connectionDelay_);this.connectionDelay_=null};
_.J.send=function(p,y){if(this.isConnected()){try{var l=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(t){l=!1}if(l){_.yQ(y)&&(y=(0,_.xv)(y));l=this.transport_;var q=l.send;tcZ.test(p)&&(p="%"+p);p=p.replace(/[%:|]/g,encodeURIComponent);q.call(l,p,y)}else this.close()}};
_.J.xpcDeliver=function(p,y,l){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.FZ)(this.xpcDeliver,this,p,y,l));else if(xAZ(this,l)&&!this.isDisposed()&&this.state_!=3)if(p&&p!="tp")this.isConnected()&&(p=p.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),p=EZQ.test(p)?p.substring(1):p,p=this.getService(p,y))&&(y=PbB(y,p.objectPayload),y!=null&&p.callback(y));else switch(p=this.transport_,l=TqU(y),y=l[1],l[0]){case "SETUP_ACK":XQN(p,1);p.setupAckReceived_.fired_||p.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":p.protocolVersion_==2&&(XQN(p,2),p.setupAckReceived_.fired_||p.setupAckReceived_.callback(!0));break;case "SETUP":XQN(p,1);vJv(p,1);break;case "SETUP_NTPV2":p.protocolVersion_==2&&(l=p.peerProtocolVersion_,XQN(p,2),vJv(p,2),l!=1&&p.peerEndpointId_==null||p.peerEndpointId_==y||fHM(p),p.peerEndpointId_=y)}};
var DAV=function(p){var y=p.cfg_.role;return typeof y==="number"?y:window.parent==p.peerWindowObject_?1:0},xAZ=function(p,y){var l=p.cfg_.ph;
return _.ej(y==null?"":String(y))||_.ej(l==null?"":String(l))||y==p.cfg_.ph};
Zv.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete hH[this.name];_.er(this.peerLoadHandler_);delete this.peerLoadHandler_;Zv.superClass_.disposeInternal.call(this)};
var s4U=function(){for(var p in hH)_.er(hH[p])},hH={};var cMV=function(p,y){this.JSC$9978_win=p;this.allowAdsHttpEndpoint=y;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$9978_domHelper=SO(p);this.scrollManager=new brr(p);this.accessibilityManager=new aHB(p);JMx(this)},JMx=function(p){var y=function(){p.allowAdsPopup&&p.allowAdsPopup.style.setProperty("display","none","important");
p.wallElement.style.setProperty("display","","important");mAP(p.accessibilityManager);jeN(p.accessibilityManager,p.wallElement.querySelector(".fc-dialog-container"),!1,!1,p.wallElement.querySelector(".fc-button-whitelist"));p.scrollManager.enableScrolling()};
p.allowAdsPopup=p.JSC$9978_domHelper.JSC$9262_createDom("DIV",{"class":"fc-whitelist-root"});p.allowAdsPopup.style.setProperty("display","none","important");p.JSC$9978_domHelper.appendChild(p.JSC$9978_domHelper.JSC$9260_document_.body,p.allowAdsPopup);var l=p.JSC$9978_domHelper.JSC$9262_createDom("DIV",{"class":"fc-dialog-overlay"});p.JSC$9978_domHelper.appendChild(p.allowAdsPopup,l);var q=p.JSC$9978_domHelper.JSC$9262_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:y});p.JSC$9978_domHelper.appendChild(p.allowAdsPopup,
q);l=p.JSC$9978_domHelper.JSC$9262_createDom("IFRAME");l.className="fc-whitelist-dialog";l.frameBorder="0";l.id="fc-whitelist-iframe";l.tabIndex="0";_.l6(l,p.allowAdsHttpEndpoint);p.JSC$9978_domHelper.appendChild(q,l);q={};q.pu=_.LO(p.allowAdsHttpEndpoint).toString();q.tp=1;q.cn="fc-whitelist-channel";q.ifrid=l.id;q.osh=!0;p.allowAdsCrossPageChannel=new Zv(q);p.allowAdsCrossPageChannel.registerService("close",y);p.allowAdsCrossPageChannel.registerService("refresh",function(){p.JSC$9978_win.location.reload()});
p.allowAdsCrossPageChannel.registerService("resize",function(t){if(t){var E=p.allowAdsPopup.querySelector(".fc-whitelist-dialog");t.width&&E.style.setProperty("width",t.width,"important");t.height&&E.style.setProperty("height",t.height,"important")}},!0);
p.allowAdsCrossPageChannel.connect()};
cMV.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$9978_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var MD=window,Vz=document,enZ=MD.location,hnB=function(){},CBP=/\[native code\]/,gY=function(p,y,l){return p[y]=p[y]||l},uFx=function(p){p=p.sort();
for(var y=[],l=void 0,q=0;q<p.length;q++){var t=p[q];t!=l&&y.push(t);l=t}return y},Qz=function(){var p;
if((p=Object.create)&&CBP.test(p))p=p(null);else{p={};for(var y in p)p[y]=void 0}return p},K2=gY(MD,"gapi",{});var wY={};wY=gY(MD,"___jsl",Qz());gY(wY,"I",0);gY(wY,"hel",10);var RnZ=function(){var p=enZ.href;if(wY.dpo)var y=wY.h;else{y=wY.h;var l=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),q=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(p=p&&(l.exec(p)||q.exec(p)))try{y=decodeURIComponent(p[2])}catch(t){}}return y},WqN=function(p){var y=gY(wY,"PQ",[]);
wY.PQ=[];var l=y.length;if(l===0)p();else for(var q=0,t=function(){++q===l&&p()},E=0;E<l;E++)y[E](t)},akr=function(p){return gY(gY(wY,"H",Qz()),p,Qz())};var iR=function(p){this.JSC$9980_obj_=p};
iR.prototype.value=function(){return this.JSC$9980_obj_};
iR.prototype.getWidth=function(){return this.JSC$9980_obj_.width};
iR.prototype.getHeight=function(){return this.JSC$9980_obj_.height};
iR.prototype.getStyle=function(){return this.JSC$9980_obj_.style};var mVP=function(p){this.JSC$9983_obj_=p||{}};
_.J=mVP.prototype;_.J.value=function(){return this.JSC$9983_obj_};
_.J.setUrl=function(p){this.JSC$9983_obj_.url=p;return this};
_.J.getUrl=function(){return this.JSC$9983_obj_.url};
_.J.getStyle=function(){return this.JSC$9983_obj_.style};
_.J.getId=function(){return this.JSC$9983_obj_.id};
_.J.getContext=function(){return this.JSC$9983_obj_.context};
var UVv=function(p){p.JSC$9983_obj_.attributes=p.JSC$9983_obj_.attributes||{};return new iR(p.JSC$9983_obj_.attributes)};var $Vr=function(){mVP.apply(this,arguments)};
_.A($Vr,mVP);var j4U=gY(wY,"perf",Qz());gY(j4U,"g",Qz());var b6U=gY(j4U,"i",Qz());gY(j4U,"r",[]);Qz();Qz();var Gir=function(p,y,l){y&&y.length>0&&(y=nZi(y),l&&l.length>0&&(y+="___"+nZi(l)),y.length>28&&(y=y.substr(0,28)+(y.length-28)),l=y,y=gY(b6U,"_p",Qz()),gY(y,l,Qz())[p]=(new Date).getTime(),y=j4U.r,typeof y==="function"?y(p,"_p",l):y.push([p,"_p",l]))},nZi=function(p){return p.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var PBP=Qz(),AMN=[],rY=function(p){throw Error("Ua`"+p);};
AMN.push(["jsl",function(p){for(var y in p)if(Object.prototype.hasOwnProperty.call(p,y)){var l=p[y];typeof l=="object"?wY[y]=gY(wY,y,[]).concat(l):gY(wY,y,l)}if(y=p.u)p=gY(wY,"us",[]),p.push(y),(y=/^https:(.*)$/.exec(y))&&p.push("http:"+y[1])}]);
var Z6Q=/^(\/[a-zA-Z0-9_\-]+)+$/,Mcv=[/\/amp\//,/\/amp$/,/^\/amp$/],VcV=/^[a-zA-Z0-9\-_\.,!]+$/,gZr=/^gapi\.loaded_[0-9]+$/,Q4r=/^[a-zA-Z0-9,._-]+$/,rMV=function(p,y,l,q,t){var E=p.split(";"),e=E.shift(),C=PBP[e],u=null;C?u=C(E,y,l,q):rY("no hint processor for: "+e);u||rY("failed to generate load url");y=u;l=y.match(Kqr);(q=y.match(wuN))&&q.length===1&&i6i.test(y)&&l&&l.length===1||rY("failed sanity: "+p);try{p="?";if(t&&t.length>0){E$(t);var a=t.join(",");u=u+"?le="+a;p="&"}if(wY.rol){var m=wY.ol;
m&&m.length&&(u=""+u+p+"ol="+m.length)}}catch(U){}return u},Lqv=function(p,y,l,q){p=SY$(p);
gZr.test(l)||rY("invalid_callback");y=Fqr(y);q=q&&q.length?Fqr(q):null;var t=function(E){return encodeURIComponent(E).replace(/%2C/g,",")};
return[encodeURIComponent(p.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",t(p.version),"/m=",t(y),q?"/exm="+t(q):"","/rt=j/sv=1/d=1/ed=1",p.activeMods?"/am="+t(p.activeMods):"",p.resourceSig?"/rs="+t(p.resourceSig):"",p.zcms?"/t="+t(p.zcms):"","/cb=",t(l)].join("")},SY$=function(p){p.charAt(0)!=="/"&&rY("relative path");
for(var y=p.substring(1).split("/"),l=[];y.length;){p=y.shift();if(!p.length||p.indexOf(".")==0)rY("empty/relative directory");else if(p.indexOf("=")>0){y.unshift(p);break}l.push(p)}p={};for(var q=0,t=y.length;q<t;++q){var E=y[q].split("="),e=decodeURIComponent(E[0]),C=decodeURIComponent(E[1]);E.length==2&&e&&C&&(p[e]=p[e]||C)}y="/"+l.join("/");Z6Q.test(y)||rY("invalid_prefix");l=0;for(q=Mcv.length;l<q;++l)Mcv[l].test(y)&&rY("invalid_prefix");l=ki$(p,"k",!0);q=ki$(p,"am");t=ki$(p,"rs");p=ki$(p,"t");
return{pathPrefix:y,version:l,activeMods:q,resourceSig:t,zcms:p}},Fqr=function(p){for(var y=[],l=0,q=p.length;l<q;++l){var t=p[l].replace(/\./g,"_").replace(/-/g,"_");
Q4r.test(t)&&y.push(t)}return y.join(",")},ki$=function(p,y,l){p=p[y];
!p&&l&&rY("missing: "+y);if(p){if(VcV.test(p))return p;rY("invalid: "+y)}return null},i6i=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,wuN=/\/cb=/g,Kqr=/\/\//g;
PBP.m=function(p,y,l,q){(p=p[0])||rY("missing_hint");return"https://apis.google.com"+Lqv(p,y,l,q)};
var NTU=decodeURI("%73cript"),DVO=/^[-+_0-9\/A-Za-z]+={0,2}$/,H6U=function(p,y){for(var l=[],q=0;q<p.length;++q){var t=p[q],E;if(E=t){a:{for(E=0;E<y.length;E++)if(y[E]===t)break a;E=-1}E=E<0}E&&l.push(t)}return l},TTr=function(){var p=wY.nonce;
return p!==void 0?p&&p===String(p)&&p.match(DVO)?p:wY.nonce=null:Vz.querySelector?(p=Vz.querySelector("script[nonce]"))?(p=p.nonce||p.getAttribute("nonce")||"",p&&p===String(p)&&p.match(DVO)?wY.nonce=p:wY.nonce=null):null:null},fk$=function(p){if(Vz.readyState!="loading")xVZ(p);
else{var y=TTr(),l="";y!==null&&(l=' nonce="'+y+'"');p="<"+NTU+' src="'+encodeURI(p)+'"'+l+"></"+NTU+">";Vz.write(BTU?BTU.createHTML(p):p)}},xVZ=function(p){var y=Vz.createElement(NTU);
y.setAttribute("src",BTU?BTU.createScriptURL(p):p);p=TTr();p!==null&&y.setAttribute("nonce",p);y.async="true";(p=Vz.getElementsByTagName(NTU)[0])?p.parentNode.insertBefore(y,p):(Vz.head||Vz.body||Vz.documentElement).appendChild(y)},XuQ=function(p,y,l){vZr(function(){var q=y===RnZ()?gY(K2,"_",Qz()):Qz();
q=gY(akr(y),"_",q);p(q)},l)},yc6=function(p,y){var l=y||{};
typeof y=="function"&&(l={},l.callback=y);var q=(y=l)&&y._c;if(q)for(var t=0;t<AMN.length;t++){var E=AMN[t][0],e=AMN[t][1];e&&Object.prototype.hasOwnProperty.call(q,E)&&e(q[E],p,y)}y=[];p?y=p.split(":"):l.features&&(y=l.features);if(!(p=l.h)&&(p=RnZ(),!p))throw Error("Va");dVP(y||[],l,p)},dVP=function(p,y,l){p=uFx(p)||[];
var q=y.callback,t=y.config,E=y.timeout,e=y.ontimeout,C=y.onerror,u=void 0;typeof C=="function"&&(u=C);var a=null,m=!1;if(E&&!e||!E&&e)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";C=gY(akr(l),"r",[]).sort();var U=gY(akr(l),"L",[]).sort(),b=wY.le||[],P=[].concat(C),Z=function(O,f){if(m)return 0;MD.clearTimeout(a);U.push.apply(U,K);var v=((K2||{}).config||{}).update;v?v(t):t&&gY(wY,"cu",[]).push(t);if(f){Gir("me0",O,P);try{XuQ(f,l,u)}finally{Gir("me1",O,P)}}return 1};
E>0&&(a=MD.setTimeout(function(){m=!0;e()},E));
var K=H6U(p,U);if(K.length){K=H6U(p,C);var F=gY(wY,"CP",[]),L=F.length;F[L]=function(O){if(!O)return 0;Gir("ml1",K,P);var f=function(z){F[L]=null;Z(K,O)&&WqN(function(){q&&q();z()})},v=function(){var z=F[L+1];
z&&z()};
L>0&&F[L-1]?F[L]=function(){f(v)}:f(v)};
if(K.length){var T="loaded_"+wY.I++;K2[T]=function(O){F[L](O);K2[T]=null};
p=rMV(l,K,"gapi."+T,C,b);C.push.apply(C,K);Gir("ml0",K,P);y.sync||MD.___gapisync?fk$(p):xVZ(p)}else F[L](hnB)}else Z(K)&&q&&q()},O6N;
var oZi=null,znU=_.l_.trustedTypes;if(znU&&znU.createPolicy){try{oZi=znU.createPolicy("goog#gapi",{createHTML:pit,createScript:pit,createScriptURL:pit})}catch(p){_.l_.console&&_.l_.console.error(p.message)}O6N=oZi}else O6N=oZi;var BTU=O6N,vZr=function(p,y){if(wY.hee&&wY.hel>0)try{return p()}catch(l){y&&y(l),wY.hel--,yc6("debug_error",function(){try{window.___jsl.hefn(l)}catch(q){throw l;}})}else try{return p()}catch(l){throw y&&y(l),l;
}},YYr=K2.load;
YYr&&gY(wY,"ol",[]).push(YYr);K2.load=function(p,y){return vZr(function(){return yc6(p,y)})};var DMm;var pCM=function(p,y){var l=l||[];this.serviceId_=p;this.moduleId_=y||null;this.dependencies_=[];Ikx(this,l)};
pCM.prototype.toString=function(){return this.serviceId_};
pCM.prototype.getModuleId=function(){return this.moduleId_};
var Ikx=function(p,y){var l=!1;l=l===void 0?!1:l;p.dependencies_=p.dependencies_.concat(y);if(l){if(!p.moduleId_)throw Error("Wa`"+p.serviceId_);y.map(function(q){return q.getModuleId()}).forEach(function(q){Hhc(function(t){t.addExtraEdge(p.moduleId_,q)})})}};var xfL=new pCM("MpJwZc","MpJwZc");var f__=new _.Q4("a"),Baa=function(p,y,l){_.Ku.call(this,p,y);this.node=y;this.kind=l};
_.A(Baa,_.Ku);var yJP=function(){this.JSC$9996_keys_={};this.urlPrefix_="";this.JSC$9996_queryData_={}};
yJP.prototype.toString=function(){var p=this.urlPrefix_+l3x(this),y=_.MM(this.JSC$9996_queryData_),l="";y!=""&&(l="?"+y);return p+l};
var qCr=function(p){p=S2(p,"md");return!!p&&p!=="0"},l3x=function(p){var y=[],l=(0,_.FZ)(function(q){this.JSC$9996_keys_[q]!==void 0&&y.push(q+"="+this.JSC$9996_keys_[q])},p);
qCr(p)?(l("md"),l("k"),l("ck"),l("am"),l("rs"),l("gssmodulesetproto"),l("slk"),l("dti")):(l("sdch"),l("k"),l("ck"),l("am"),l("rt"),"d"in p.JSC$9996_keys_||Fe(p,"d","0"),l("d"),l("exm"),l("excm"),(p.JSC$9996_keys_.excm||p.JSC$9996_keys_.exm)&&y.push("ed=1"),l("im"),l("dg"),l("sm"),S2(p,"br")!="1"&&S2(p,"br")!="0"||l("br"),l("br-d"),S2(p,"rb")=="1"&&l("rb"),S2(p,"zs")!=="0"&&l("zs"),sKZ(p)!==""&&l("wt"),l("gssmodulesetproto"),l("ujg"),l("sp"),l("rs"),l("cb"),l("ee"),l("slk"),l("dti"),l("m"));return y.join("/")},
S2=function(p,y){return p.JSC$9996_keys_[y]?p.JSC$9996_keys_[y]:null},Fe=function(p,y,l){l?p.JSC$9996_keys_[y]=l:delete p.JSC$9996_keys_[y]},tMi=function(p,y){p.urlPrefix_=y},Ehr=function(p,y){y&&y.length>0?(y.sort(),Fe(p,"exm",y.join(","))):Fe(p,"exm",null)},JJV=function(p,y){y&&y.length>0?(y.sort(),Fe(p,"excm",y.join(","))):Fe(p,"excm",null)},cJU=function(p){return(p=S2(p,"m"))?p.split(","):[]},sKZ=function(p){switch(S2(p,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},esQ=function(p,y){var l=Object.keys(y).filter(function(q){return!!Object.keys(y[q]).length}).map(function(q){var t=Object.keys(y[q]);
t.length>1&&t.sort();return q+":"+t.join(",")});
l.sort();Fe(p,"ee",l.join(";"))},w7m=function(p){var y=S2(p,"ee");
if(!y)return{};p={};y=_.c(y.split(";"));for(var l=y.next();!l.done;l=y.next()){var q=_.c(l.value.split(":"));l=q.next().value;q=q.next().value;p[l]={};q=_.c(q.split(","));for(var t=q.next();!t.done;t=q.next())p[l][t.value]=!0}return p},hs$=function(p){delete p.JSC$9996_keys_.m;
delete p.JSC$9996_keys_.exm;delete p.JSC$9996_keys_.ed};
yJP.prototype.clone=function(){var p=new yJP;p.JSC$9996_keys_=Object.assign({},this.JSC$9996_keys_);p.urlPrefix_=this.urlPrefix_;p.JSC$9996_queryData_=Object.assign({},this.JSC$9996_queryData_);return p};
var iKj=function(p,y){y=y===void 0?!0:y;var l=CvN(p),q=new yJP,t=_.cC(l)[5];_.Ts.forEach(u3N,function(e){var C=t.match("/"+e+"=([^/]+)");C&&Fe(q,e,C[1])});
var E="";E=p.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";tMi(q,p.substr(0,p.indexOf(E)+E.length));if(!y)return q;(p=_.cC(l)[6]||null)&&xLU(p,function(e,C){q.JSC$9996_queryData_[e]=C});
return q},gQc=function(p){p=_.AJ(CvN(p));
return p===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(p)?/\/k=/.test(p):!1},CvN=function(p){return p.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?p.substr(65):p},u3N={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},RsN=RegExp("^loaded_(g|h)?[_\\d]+$");_.L2=function(p){this.JSC$10008_id_=p;this.opts={}};
_.L2.prototype.JSC$10010_setLabel=function(p){this.label_=p||void 0;return this};
_.L2.prototype.addUploadMetadata=function(p,y){var l=this.opts.data||{};l[p]=y;this.opts.data=l;return this};
var WIr=function(p){var y=_.Ts.filter(p.opts,function(l){return l!==null});
y=_.Ts.isEmpty(y)?null:y;p=[p.JSC$10008_id_,p.label_,y];y=$am(p);return p=p.slice(0,y+1)};
_.L2.prototype.toString=function(){var p=WIr(this);return"("+_.xI(p,function(y){return JSON.stringify(y)}).join(",")+")"};
_.L2.prototype.getId=function(){return this.JSC$10008_id_};
_.L2.prototype.getOptions=function(){return _.Ts.clone(this.opts)};var kD=function(){_.L2.call(this,"image-search")};
_.A(kD,_.L2);kD.prototype.setSize=function(p){this.opts.imgsz=p;return this};
kD.prototype.JSC$10010_setLabel=function(p){_.L2.prototype.JSC$10010_setLabel.call(this,p);return this};
kD.prototype.addUploadMetadata=function(p,y){_.L2.prototype.addUploadMetadata.call(this,p,y);return this};var ND=function(){_.L2.call(this,"maps")};
_.A(ND,_.L2);ND.prototype.setZoom=function(p){this.opts.zoom=p;return this};
ND.prototype.JSC$10010_setLabel=function(p){_.L2.prototype.JSC$10010_setLabel.call(this,p);return this};
ND.prototype.addUploadMetadata=function(p,y){_.L2.prototype.addUploadMetadata.call(this,p,y);return this};_.Dv=function(){_.L2.call(this,"photos")};
_.A(_.Dv,_.L2);_.Dv.prototype.JSC$10010_setLabel=function(p){_.L2.prototype.JSC$10010_setLabel.call(this,p);return this};
_.Dv.prototype.addUploadMetadata=function(p,y){_.L2.prototype.addUploadMetadata.call(this,p,y);return this};var HP=function(){_.L2.call(this,"url")};
_.A(HP,_.L2);var a3$=function(){var p=new HP;p.opts.type="video";p.opts.site="youtube.com";return p};
HP.prototype.JSC$10010_setLabel=function(p){_.L2.prototype.JSC$10010_setLabel.call(this,p);return this};
HP.prototype.addUploadMetadata=function(p,y){_.L2.prototype.addUploadMetadata.call(this,p,y);return this};var TC=function(){_.L2.call(this,"video-search")};
_.A(TC,_.L2);var mMZ=function(){var p=new TC;p.opts.site="youtube.com";return p};
TC.prototype.JSC$10010_setLabel=function(p){_.L2.prototype.JSC$10010_setLabel.call(this,p);return this};
TC.prototype.addUploadMetadata=function(p,y){_.L2.prototype.addUploadMetadata.call(this,p,y);return this};var UM$=function(){_.L2.call(this,"web")};
_.A(UM$,_.L2);UM$.prototype.JSC$10010_setLabel=function(p){_.L2.prototype.JSC$10010_setLabel.call(this,p);return this};
UM$.prototype.addUploadMetadata=function(p,y){_.L2.prototype.addUploadMetadata.call(this,p,y);return this};var xD=function(){this.items_=[];this.opts={}},$MM=function(p){switch(p){case "image-search":return new kD;
case "maps":return new ND;case "photos":return new _.Dv;case "url":return new HP;case "video-search":return new TC;case "web":return new UM$}return new _.L2(p)};
xD.prototype.addView=function(p){this.items_.push(typeof p==="string"?$MM(p):p);return this};
var jKV=function(p){return"("+_.xI(p.items_,function(y){return y.toString()}).join(",")+")"};
xD.prototype.toString=function(){return jKV(this)};
xD.prototype.getViews=function(p,y){y=y===void 0?[]:y;for(var l=this.items_,q=0;q<l.length;q++){var t=l[q];t instanceof xD?t.getViews(p,y):t.getId()==p&&y.push(t)}return y};
xD.prototype.getOptions=function(){return _.Ts.clone(this.opts)};var v9=function(p){this.basePickerUrl_=p||"https://docs.google.com/picker";this.nav_=new xD};
v9.prototype.nav_=null;v9.prototype.addView=function(p){this.nav_.addView(p);return this};
v9.prototype.getBaseUrl=function(){return this.basePickerUrl_};
v9.prototype.getViews=function(p){return this.nav_.getViews(p)};
_.bhV=function(p,y){p.callback_=y;return p};var nhB=new Map;nhB.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");nhB.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");nhB.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var Gor=new Set;Gor.add("application/vnd.google-apps.kix");Gor.add("application/vnd.google-apps.ritz");Gor.add("application/vnd.google-apps.punch");var SCB=function(p,y,l){var q=l&&_.fq(l,1);l=Pvr(l);var t=p[0].getId();switch(_.v0(t,2)){case 13:return AJZ(p,y,q,l);case 3:return ZhU(p,y,q,l);case 10:return MMr(p,y,q,l);case 27:return MMr(p,y,q,l);case 12:return VMN(p,y);case 2:return ghU(p,y,q,l);case 5:return QKN(p,y,q,l);case 9:return KIV(p,y,q,l);case 6:return wCZ(p,y,q,l);case 25:return ihv(p,y,q,l);case 1:return _.rl(p[0],tZr,26)?rJM(p,y,q,l):MMr(p,y,q,l);default:return{}}},wCZ=function(p,y,l,q){p=p.map(function(t){return{id:t.getId().getId(),
serviceId:"youtube",name:t.getName(),description:_.fq(t,3),type:BP(t),lastEditedUtc:_.sX$(_.MF(t,_.ok,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:t.getUrl(),embedUrl:_.fq(t,13),thumbnails:f2(u0(t))}});
return{action:y,docs:p,viewToken:q,view:l||"youtube",v2Translated:!0}},ghU=function(p,y,l,q){var t=p.map(function(E){var e=E.getId().getId(),C=_.fq(E,7),u=E.getName(),a=BP(E),m=_.sX$(_.MF(E,_.ok,12)).getTime(),U=E.getUrl(),b=Number(Udg(E)),P=_.fq(E,3),Z=_.fq(E,11),K=f2(u0(E));
var F=_.MF(E,RZ,21);F=_.T6(F,1);var L=_.MF(E,RZ,21);L=_.fq(L,10);var T=_.fq(E,13);var O=_.MF(E,RZ,21);O=_.T6(O,9);var f=_.MF(E,RZ,21);f=_.fq(f,11);e={id:e,serviceId:"docs",mimeType:C,name:u,type:a,lastEditedUtc:m,url:U,sizeBytes:b,description:P,iconUrl:Z,thumbnails:K,isShared:F,downloadUrl:L,embedUrl:T,copyable:O,resourceKey:f};C=_.MF(E,RZ,21);_.T6(C,12)&&(e.uploadState="success",e.isNew=!0);C=_.MF(E,RZ,21);_.rl(C,eJ,3)&&(E=_.MF(E,RZ,21),E=_.MF(E,eJ,3),_.rl(E,J7,2)&&(C=B9(E.getDuration().getSeconds()),
u=E.getDuration(),u=_.W9(u,2),e.duration=C+u/1E9),e.aspectRatio=E.getAspectRatio());return e});
return{action:y,docs:t,viewToken:q,view:l||"all",extraUserInputs:FIV(p),v2Translated:!0}},QKN=function(p,y,l,q){p=p.map(function(t){var E=_.MF(t,WwV,15);
E=_.MF(E,cf,1);V6(t,10,cf,E);return{id:t.getId().getId(),serviceId:"web",mimeType:_.fq(t,7),name:t.getName(),type:BP(t),url:t.getUrl(),description:_.fq(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:f2(u0(t))}});
return{action:y,docs:p,viewToken:q,view:l||"image-search",v2Translated:!0}},KIV=function(p,y,l,q){p=p.map(function(t){return{serviceId:"url",
name:u0(t)[0].getUrl().split("/").pop(),type:BP(t),mimeType:_.fq(t,7),url:t.getUrl(),description:_.fq(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:f2(u0(t))}});
return{action:y,docs:p,viewToken:q,view:l||"url",v2Translated:!0}},rJM=function(p,y,l,q){p=p.map(function(t){return{id:t.getId().getId(),
serviceId:"picasa",name:t.getName(),type:BP(t),description:_.fq(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:f2(u0(t))}});
return{action:y,docs:p,viewToken:q,view:l||"webcam",v2Translated:!0}},MMr=function(p,y,l,q){return{action:y,
docs:p.map(LIv),viewToken:q,view:kor(l||"upload",p),extraUserInputs:FIV(p),v2Translated:!0}},kor=function(p,y){return y.some(function(l){var q;
return((q=_.MF(l,h7,30))==null?void 0:_.v0(q,3))===9})?p+"/gmailphotos":p},ZhU=function(p,y,l,q){var t=p.map(function(E){var e={id:E.getId().getId(),
serviceId:"picasa",mimeType:_.fq(E,7),name:E.getName(),type:BP(E),lastEditedUtc:_.sX$(_.MF(E,_.ok,12)).getTime(),url:E.getUrl(),sizeBytes:Number(Udg(E)),description:_.fq(E,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:f2(u0(E)),mediaKey:E.getId().getId(),parentId:_.fq(E,4)},C,u=(C=_.MF(E,cEr,18))==null?void 0:_.MF(C,JEM,3);u&&(e.latitude=B0(u,1),e.longitude=B0(u,2));var a;E=(a=_.MF(E,cEr,18))==null?void 0:xt(a,6);a=E!=null?B9(E):void 0;a&&(e.version=
a);return e});
return{action:y,docs:t,viewToken:q,view:l||"photos",extraUserInputs:FIV(p),v2Translated:!0}},AJZ=function(p,y,l,q){p=p.map(function(t){return{id:t.getId().getId(),
serviceId:"et",name:u0(t)[0].getUrl().split("/").pop(),description:_.fq(t,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:f2(u0(t),"etjpg")}});
return{action:y,docs:p,viewToken:q,view:l||"et",v2Translated:!0}},ihv=function(p,y,l,q){p=p.map(function(t){var E=t.getId().getId(),e=q["2"];
return{id:E,serviceId:e.type!=="gmail_themes"&&e.parent==="6226252643674576769"?"picasa":"static_themes",name:t.getName(),mimeType:_.fq(t,7),type:BP(t),description:_.fq(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:t.getUrl(),embedUrl:t.getUrl(),thumbnails:f2(u0(t))}});
return{action:y,docs:p,viewToken:q,view:l||"photos",v2Translated:!0}},VMN=function(p,y){p=p.map(function(l){var q=_.MF(l,EXi,27);
q=_.pO(q,1,_.r6,_.RY())[0];return{id:l.getId().getId(),serviceId:"contacts",mimeType:_.fq(l,7),name:l.getName(),description:_.fq(l,3),url:"mailto:"+q,thumbnail:[{url:_.fq(l,11)}],email:q}});
return{action:y,docs:p,view:"contacts",v2Translated:!0}},Pvr=function(p){if(!p)return{};
var y=_.fq(p,3);y=y&&JSON.parse(y)||{};return{0:_.fq(p,1),1:_.fq(p,2),2:y}},f2=function(p,y){y=y===void 0?"":y;
if(!p.length)return null;y=="etjpg"&&(p=p.filter(function(l){return l.getUrl().includes("w1200-h300")}));
return p.map(function(l){return{url:l.getUrl(),height:l.getHeight(),width:l.getWidth(),type:y}})},FIV=function(p){return{isAttachment:p.some(function(y){return _.T6(y,31)})}},LIv=function(p){var y,l={id:(y=p.getId())==null?void 0:y.getId(),
serviceId:NsM(p),mimeType:_.fq(p,7),name:p.getName(),type:BP(p),sizeBytes:Number(Udg(p)),description:_.fq(p,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:f2(u0(p)),isNew:!0};if(y=_.MF(p,h7,30)){l.dataUrl=_.fq(y,1)||null;a:{var q=_.MF(p,h7,30);switch(_.v0(q,3)){case 9:q=_.oN(q,uXM,2,Cu);q={remoteRefs:q&&_.fq(q,1)};break a;case 10:case 15:q=_.oN(q,CfV,4,Cu);var t=u0(p);q={photo_id:q&&_.fq(q,1),media_key:p.getId().getId(),media_type:_.v0(p,6)===1?1:2,image_url:t&&
t[0].getUrl(),width:t&&String(t[0].getWidth()),height:t&&String(t[0].getHeight())};break a}q=null}l.uploadMetadata=q;l.uploadId=_.fq(y,9)||null;l.uploadState=DMr(y)||null}(q=y&&_.oN(y,CfV,4,Cu))&&(l.id=_.fq(q,1));(q=y&&_.oN(y,Rfv,5,Cu))&&(l.contentId=_.fq(q,1));(q=y&&_.oN(y,efZ,7,Cu))&&(l.contentId=_.fq(q,1));(q=y&&_.oN(y,hfv,6,Cu))&&(l.contentId=_.fq(q,1));(y==null?void 0:_.v0(y,3))===1&&(l.mediaKey=p.getId().getId());return l},NsM=function(p){var y;
switch(((y=_.MF(p,h7,30))==null?void 0:_.v0(y,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},BP=function(p){switch(_.v0(p,6)){case 1:case 21:return"photo";
case 2:return"video";case 6:return"folder";case 13:return"calendar";case 14:return"album";case 19:return"contact";case 3:case 4:case 5:case 7:case 12:return _.fq(p,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},DMr=function(p){switch(p==null?void 0:_.v0(p,8)){case 0:return"default";
case 1:return"canceled";case 2:return"error";case 3:return"running";case 4:return"scheduled";case 5:return"success"}return null};var BsU,Hh$,TsU,xMB;_.f3$=function(p,y){var l=y||{};y=l.document||document;var q=_.LO(p).toString(),t=(new NZ(y)).createElement("SCRIPT"),E={script_:t,timeout_:void 0},e=new tH(Hh$,E),C=null,u=l.timeout!=null?l.timeout:5E3;u>0&&(C=window.setTimeout(function(){TsU(t,!0);e.errback(new xMB(1,"Timeout reached for loading script "+q))},u),E.timeout_=C);
t.onload=t.onreadystatechange=function(){t.readyState&&t.readyState!="loaded"&&t.readyState!="complete"||(TsU(t,l.cleanupWhenDone||!1,C),e.callback(null))};
t.onerror=function(){TsU(t,!0,C);e.errback(new xMB(0,"Error while loading script "+q))};
E=l.attributes||{};_.Ts.extend(E,{type:"text/javascript",charset:"UTF-8"});oxi(t,E);_.e_(t,p);BsU(y).appendChild(t);return e};
BsU=function(p){var y=KS("HEAD",p);return y&&y.length!==0?y[0]:p.documentElement};
Hh$=function(){if(this&&this.script_){var p=this.script_;p&&p.tagName=="SCRIPT"&&TsU(p,!0,this.timeout_)}};
TsU=function(p,y,l){l!=null&&_.l_.clearTimeout(l);p.onload=function(){};
p.onerror=function(){};
p.onreadystatechange=function(){};
y&&window.setTimeout(function(){_.Qy(p)},0)};
xMB=function(p,y){var l="Jsloader error (code #"+p+")";y&&(l+=": "+y);_.p8.call(this,l);this.code=p};
_.j6(xMB,_.p8);var vhM=_.c0(["https://apis.google.com/js/api.js"]),XCP=_.bz(vhM),zsV=function(p,y){var l=!1,q=dMU(p,y).then(function(E){l=!0;return E}),t=_.nIB(5E3).then(function(){return l?dMU(p,y):Ohr(y).then(function(E){return ohM(E,p)})});
return e$N([q,t])},dMU=function(p,y){return YC$(y).then(function(l){return ohM(l,p)})},ohM=function(p,y){var l=_.tR(y,"gapi.")?y.slice(5):y;
return p[l]?_.PW(p[l]):new _.Ps(function(q,t){var E=Hf(function(){t(Error("Ya"))},3E4);
p.load(y,{callback:function(){_.l_.clearTimeout(E);q(p[l])},
onerror:function(e){_.l_.clearTimeout(E);t(e)}})})},YC$=function(p){return p.gapi&&p.gapi.load?_.PW(p.gapi):Ohr(p)},Ohr=function(p){return _.f3$(XCP,{document:p.document}).then(function(){return p.gapi})},I3r=function(){};
I3r.prototype.load=function(p,y){y=y===void 0?window:y;var l=Date.now();return zsV(p,y).then(function(q){var t=Date.now();return{library:q,loadStartMs:l,loadEndMs:t}},function(q){throw q instanceof Error?q:Error(String(q));
})};var I3m=function(){_.Sr.call(this);this.gapiLoader_=new I3r;this.origin_=null;this.gapiPickerIframeResolver_=_.hs();this.gapiIframesResolver_=_.hs();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.A(I3m,_.Sr);var p7x=function(p,y){var l=_.I4("gapi.iframes",y);return l?(p=Date.now(),_.PW({library:l,loadStartMs:p,loadEndMs:p})):p.gapiLoader_.load("gapi.iframes",y)},ykr=function(p,y,l,q,t,E){var e=!1;
e=e===void 0?!1:e;p7x(p,f0(y.ownerDocument)).then(function(C){var u=C.library;p.gapiIframesResolver_.resolve(u);C=p.gapiPickerIframeResolver_;var a=C.resolve,m=e;m=m===void 0?!1:m;var U={};U["host-message-handler"]=l;p.hostMessageHandlerInternal_=U;var b=_.YP(q);b=_.YP(b);b=_.WP(_.R2(_.uR(new _.JO,b.scheme_),b.JSC$9968_domain_),b.JSC$9968_port_).toString();p.origin_=b;b=(new $Vr).setUrl(q);b.JSC$9983_obj_.where=y;b.JSC$9983_obj_.allowPost=m;b.JSC$9983_obj_.messageHandlers=U;m=_.I4("makeWhiteListIframesFilter",
u)([p.origin_]);b.JSC$9983_obj_.messageHandlersFilter=m;t!=null&&(b.JSC$9983_obj_.id=t);E!=null&&(b.JSC$9983_obj_.rpctoken=E);m=UVv(b);m.JSC$9980_obj_.style={display:"block","min-width":"100%",width:"1px"};m.JSC$9980_obj_.height="100%";UVv(b).value().allow="camera 'src' "+p.origin_;u=u.getContext().openChild(b.value());a.call(C,u)},function(C){p.gapiIframesResolver_.reject(C);
p.gapiPickerIframeResolver_.reject(C)});
return p.gapiPickerIframeResolver_.promise},lKr=function(p,y){return _.Ni([p.gapiIframesResolver_.promise,
p.gapiPickerIframeResolver_.promise]).then(function(l){var q=_.c(l);l=q.next().value;return(q=q.next().value)?q.send("picker-message-handler",y,void 0,_.I4("makeWhiteListIframesFilter",l)([p.origin_])):_.vL(Error("Za"))})};
I3m.prototype.disposeInternal=function(){q1B(this);_.Sr.prototype.disposeInternal.call(this)};
var q1B=function(p){p.gapiPickerIframeResolver_.promise.then(function(y){y&&(y.unregister("host-message-handler"),delete p.hostMessageHandlerInternal_["host-message-handler"])})};var s7r=function(){this.JSC$10070_nextId=0};var EQr=function(p,y){switch(p.action){case "select-contacts":p=t0P(p.contacts);break;case "visibility":p=p.visible;var l=new aZ;p=_.Yt(l,1,7).setVisible(p);l={};l["iframe-command"]=p.serialize();p=l;break;default:p=null}return p?lKr(y,p):_.PW()},t0P=function(p){if(!p||p.length==0)return null;
var y=new aZ;_.Yt(y,1,11);var l=new s7r;p.forEach(function(q){if(q.email){var t=new DY;t=_.J2(t,2,q.name?q.name:q.email);var E=new EXi;q=_.Am8(E,1,_.w6,q.email,_.r6);q=_.gu(t,27,q);t=new q3U;E=":"+(l.JSC$10070_nextId++).toString(36);t=_.J2(t,1,E);t=_.Yt(t,2,12);q=_.gu(q,1,t)}else q=null;q&&V6(y,7,DY,q)});
p={};p["iframe-command"]=y.serialize();return p};_.Jkv=function(){if(wi6){var p=/Windows NT ([0-9.]+)/;return(p=p.exec(_.mL()))?p[1]:"0"}return _.KY_?(p=/1[0|1][_.][0-9_.]+/,(p=p.exec(_.mL()))?p[0].replace(/_/g,"."):"10"):Hgt?(p=/Android\s+([^\);]+)(\)|;)/,(p=p.exec(_.mL()))?p[1]:""):rnc||S2l||FYg?(p=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(p=p.exec(_.mL()))?p[1].replace(/_/g,"."):""):""}();var vP;vP=function(p){return(p=p.exec(_.mL()))?p[1]:""};
_.ckQ=function(){if(_.VR)return vP(/Firefox\/([0-9.]+)/);if(_.P0||Jk||Vbo)return x1j;if(_.gl){if(_.Sj()||_.WLm()){var p=vP(/CriOS\/([0-9.]+)/);if(p)return p}return vP(/Chrome\/([0-9.]+)/)}if(_.ds&&!_.Sj())return vP(/Version\/([0-9.]+)/);if(cel||e3m){if(p=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.mL()))return p[1]+"."+p[2]}else if(d16)return(p=vP(/Android\s+([0-9.]+)/))?p:vP(/Version\/([0-9.]+)/);return""}();var eJi=function(){};
_.Ua(eJi);eJi.prototype.nextId_=0;_.Xe=function(p){return":"+(p.nextId_++).toString(36)};var dY=function(p){_.Fn.call(this);this.JSC$10078_dom_=p||SO();this.JSC$10078_id_=null;this.inDocument_=!1;this.JSC$10078_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.j6(dY,_.Fn);dY.prototype.idGenerator_=eJi.getInstance();dY.prototype.getId=function(){return this.JSC$10078_id_||(this.JSC$10078_id_=_.Xe(this.idGenerator_))};
dY.prototype.getElement=function(){return this.JSC$10078_element_};
var O0=function(p){p.googUiComponentHandler_||(p.googUiComponentHandler_=new _.W2(p));return p.googUiComponentHandler_},hJU=function(p,y){if(p==y)throw Error("$a");
var l;if(l=y&&p.parent_&&p.JSC$10078_id_){l=p.parent_;var q=p.JSC$10078_id_;l=l.childIndex_&&q?_.Ts.get(l.childIndex_,q)||null:null}if(l&&p.parent_!=y)throw Error("$a");p.parent_=y;dY.superClass_.setParentEventTarget.call(p,y)};
dY.prototype.setParentEventTarget=function(p){if(this.parent_&&this.parent_!=p)throw Error("ab");dY.superClass_.setParentEventTarget.call(this,p)};
dY.prototype.JSC$10080_createDom=function(){this.JSC$10078_element_=this.JSC$10078_dom_.createElement("DIV")};
dY.prototype.render=function(p){CMN(this,p)};
var CMN=function(p,y,l){if(p.inDocument_)throw Error("bb");p.JSC$10078_element_||p.JSC$10080_createDom();y?y.insertBefore(p.JSC$10078_element_,l||null):p.JSC$10078_dom_.JSC$9260_document_.body.appendChild(p.JSC$10078_element_);p.parent_&&!p.parent_.inDocument_||p.enterDocument()};
_.J=dY.prototype;_.J.decorate=function(p){if(this.inDocument_)throw Error("bb");if(p&&this.canDecorate(p)){this.wasDecorated_=!0;var y=_.vJ(p);this.JSC$10078_dom_&&this.JSC$10078_dom_.JSC$9260_document_==y||(this.JSC$10078_dom_=SO(p));this.decorateInternal(p);this.enterDocument()}else throw Error("cb");};
_.J.canDecorate=function(){return!0};
_.J.decorateInternal=function(p){this.JSC$10078_element_=p};
_.J.enterDocument=function(){this.inDocument_=!0;uLx(this,function(p){!p.inDocument_&&p.getElement()&&p.enterDocument()})};
_.J.exitDocument=function(){uLx(this,function(p){p.inDocument_&&p.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.J.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);uLx(this,function(p){p.dispose()});
!this.wasDecorated_&&this.JSC$10078_element_&&_.Qy(this.JSC$10078_element_);this.parent_=this.model_=this.JSC$10078_element_=this.childIndex_=this.children_=null;dY.superClass_.disposeInternal.call(this)};
_.J.getModel=function(){return this.model_};
_.J.addChild=function(p,y){var l=this.children_?this.children_.length:0;if(p.inDocument_&&(y||!this.inDocument_))throw Error("bb");if(l<0||l>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);p.parent_==this?(_.Ts.set(this.childIndex_,p.getId(),p),_.Oc(this.children_,p)):_.Ts.add(this.childIndex_,p.getId(),p);hJU(p,this);_.b8l(this.children_,l,0,p);p.inDocument_&&this.inDocument_&&p.parent_==this?(y=this.getContentElement(),
(y.childNodes[l]||null)!=p.getElement()&&(p.getElement().parentElement==y&&y.removeChild(p.getElement()),l=y.childNodes[l]||null,y.insertBefore(p.getElement(),l))):y?(this.JSC$10078_element_||this.JSC$10080_createDom(),l=this.children_?this.children_[l+1]||null:null,CMN(p,this.getContentElement(),l?l.JSC$10078_element_:null)):this.inDocument_&&!p.inDocument_&&p.JSC$10078_element_&&p.JSC$10078_element_.parentNode&&p.JSC$10078_element_.parentNode.nodeType==1&&p.enterDocument()};
_.J.getContentElement=function(){return this.JSC$10078_element_};
var uLx=function(p,y){p.children_&&p.children_.forEach(y,void 0)};
dY.prototype.removeChild=function(p,y){if(p){var l=typeof p==="string"?p:p.getId();p=this.childIndex_&&l?_.Ts.get(this.childIndex_,l)||null:null;l&&p&&(_.Ts.remove(this.childIndex_,l),_.Oc(this.children_,p),y&&(p.exitDocument(),p.JSC$10078_element_&&_.Qy(p.JSC$10078_element_)),hJU(p,null))}if(!p)throw Error("eb");return p};_.j6(Bs8,xMj);_.j6(f3c,xMj);var RJv;_.Ts.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var WjU=function(p,y){y?p.setAttribute("role",y):p.removeAttribute("role")},o2=function(p,y,l){Array.isArray(l)&&(l=l.join(" "));
var q="aria-"+y;l===""||l==void 0?(RJv||(l={},RJv=(l.atomic=!1,l.autocomplete="none",l.dropeffect="none",l.haspopup=!1,l.live="off",l.multiline=!1,l.multiselectable=!1,l.orientation="vertical",l.readonly=!1,l.relevant="additions text",l.required=!1,l.sort="none",l.busy=!1,l.disabled=!1,l.hidden=!1,l.invalid="false",l)),l=RJv,y in l?p.setAttribute(q,l[y]):p.removeAttribute(q)):p.setAttribute(q,l)};var aKB;_.zC=function(p,y,l){_.Fn.call(this);this.target=p;this.handle=y||p;this.limits=l||new oC(NaN,NaN,NaN,NaN);this.JSC$10083_document_=_.vJ(p);this.JSC$10083_eventHandler_=new _.W2(this);_.P9(this,this.JSC$10083_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;_.BL(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=aKB};
_.j6(_.zC,_.Fn);aKB=_.l_.document&&_.l_.document.documentElement&&!!_.l_.document.documentElement.setCapture&&!!_.l_.document.releaseCapture;_.mU$=function(p,y){p.hysteresisDistanceSquared_=Math.pow(y,2)};
_.J=_.zC.prototype;_.J.setEnabled=function(p){this.enabled_=p};
_.J.disposeInternal=function(){_.zC.superClass_.disposeInternal.call(this);_.SJ(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10083_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10083_document_.releaseCapture();this.handle=this.target=null};
_.J.startDrag=function(p){var y=p.type=="mousedown";if(!this.enabled_||this.dragging_||y&&(p.event_.button!=0||_.KY_&&p.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new YD("start",this,p.clientX,p.clientY,p)))this.dragging_=!0,y&&p.preventDefault();else return;else y&&p.preventDefault();y=this.JSC$10083_document_;var l=y.documentElement,q=!this.useSetCapture_;this.JSC$10083_eventHandler_.listen(y,["touchmove","mousemove"],this.handleMove_,
{capture:q,passive:!1});this.JSC$10083_eventHandler_.listen(y,["touchend","mouseup"],this.endDrag,q);this.useSetCapture_?(l.setCapture(!1),this.JSC$10083_eventHandler_.listen(l,"losecapture",this.endDrag)):this.JSC$10083_eventHandler_.listen(f0(y),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10083_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,q);this.clientX=this.startX=p.clientX;this.clientY=this.startY=p.clientY;this.screenX=p.screenX;this.screenY=p.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=rV(SO(this.JSC$10083_document_))}};
_.J.endDrag=function(p,y){this.JSC$10083_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10083_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new YD("end",this,p.clientX,p.clientY,p,UUM(this,this.deltaX),$Ur(this,this.deltaY),y||p.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.J.handleMove_=function(p){if(this.enabled_){var y=p.clientX-this.clientX,l=p.clientY-this.clientY;this.clientX=p.clientX;this.clientY=p.clientY;this.screenX=p.screenX;this.screenY=p.screenY;if(!this.dragging_){var q=this.startX-this.clientX,t=this.startY-this.clientY;if(q*q+t*t>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new YD("start",this,p.clientX,p.clientY,p)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(p);return}}l=j7Q(this,y,l);y=l.x;l=l.y;this.dragging_&&this.dispatchEvent(new YD("beforedrag",
this,p.clientX,p.clientY,p,y,l))&&(bKU(this,p,y,l),p.preventDefault())}};
var j7Q=function(p,y,l){var q=rV(SO(p.JSC$10083_document_));y+=q.x-p.pageScroll.x;l+=q.y-p.pageScroll.y;p.pageScroll=q;p.deltaX+=y;p.deltaY+=l;return new _.BJ(UUM(p,p.deltaX),$Ur(p,p.deltaY))};
_.zC.prototype.onScroll_=function(p){var y=j7Q(this,0,0);p.clientX=this.clientX;p.clientY=this.clientY;bKU(this,p,y.x,y.y)};
var bKU=function(p,y,l,q){p.target.style.left=l+"px";p.target.style.top=q+"px";p.dispatchEvent(new YD("drag",p,y.clientX,y.clientY,y,l,q))},UUM=function(p,y){var l=p.limits;
p=isNaN(l.left)?null:l.left;l=isNaN(l.width)?0:l.width;return Math.min(p!=null?p+l:Infinity,Math.max(p!=null?p:-Infinity,y))},$Ur=function(p,y){var l=p.limits;
p=isNaN(l.top)?null:l.top;l=isNaN(l.height)?0:l.height;return Math.min(p!=null?p+l:Infinity,Math.max(p!=null?p:-Infinity,y))};
_.zC.prototype.isDragging=function(){return this.dragging_};
var YD=function(p,y,l,q,t,E,e){_.Ku.call(this,p);this.clientX=l;this.clientY=q;this.browserEvent=t;this.left=E!==void 0?E:y.deltaX;this.top=e!==void 0?e:y.deltaY};
_.j6(YD,_.Ku);var I2=function(p){this.JSC$10090_map_=new Map;var y=arguments.length;if(y>1){if(y%2)throw Error("ka");for(var l=0;l<y;l+=2)this.set(arguments[l],arguments[l+1])}else p&&this.addAll(p)};
_.J=I2.prototype;_.J.getCount=function(){return this.JSC$10090_map_.size};
_.J.getValues=function(){return Array.from(this.JSC$10090_map_.values())};
_.J.getKeys=function(){return Array.from(this.JSC$10090_map_.keys())};
_.J.containsKey=function(p){return this.JSC$10090_map_.has(p)};
_.J.containsValue=function(p){return this.getValues().some(function(y){return y==p})};
_.J.equals=function(p,y){var l=this;y=y===void 0?function(q,t){return q===t}:y;
return this===p?!0:this.JSC$10090_map_.size!=p.getCount()?!1:this.getKeys().every(function(q){return y(l.JSC$10090_map_.get(q),p.get(q))})};
_.J.isEmpty=function(){return this.JSC$10090_map_.size==0};
_.J.clear=function(){this.JSC$10090_map_.clear()};
_.J.remove=function(p){return this.JSC$10090_map_.delete(p)};
_.J.get=function(p,y){return this.JSC$10090_map_.has(p)?this.JSC$10090_map_.get(p):y};
_.J.set=function(p,y){this.JSC$10090_map_.set(p,y);return this};
_.J.addAll=function(p){if(p instanceof I2){p=_.c(p.JSC$10090_map_);for(var y=p.next();!y.done;y=p.next()){var l=_.c(y.value);y=l.next().value;l=l.next().value;this.JSC$10090_map_.set(y,l)}}else if(p)for(p=_.c(Object.entries(p)),y=p.next();!y.done;y=p.next())l=_.c(y.value),y=l.next().value,l=l.next().value,this.JSC$10090_map_.set(y,l)};
_.J.forEach=function(p,y){var l=this;y=y===void 0?this:y;this.JSC$10090_map_.forEach(function(q,t){return p.call(y,q,t,l)})};
_.J.clone=function(){return new I2(this)};(function(){for(var p=["ms","moz","webkit","o"],y,l=0;y=p[l]&&!_.l_.requestAnimationFrame;++l)_.l_.requestAnimationFrame=_.l_[y+"RequestAnimationFrame"],_.l_.cancelAnimationFrame=_.l_[y+"CancelAnimationFrame"]||_.l_[y+"CancelRequestAnimationFrame"];if(!_.l_.requestAnimationFrame){var q=0;_.l_.requestAnimationFrame=function(t){var E=(new Date).getTime(),e=Math.max(0,16-(E-q));q=E+e;return _.l_.setTimeout(function(){t(E+e)},e)};
_.l_.cancelAnimationFrame||(_.l_.cancelAnimationFrame=function(t){clearTimeout(t)})}})();
var nQ$=[[],[]],GRv=0,PMQ=!1,Akr=0,M0V=function(p,y){var l=Akr++,q={measureTask:{id:l,fn:p.measure,context:y},mutateTask:{id:l,fn:p.mutate,context:y},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(q.args||(q.args=[]),q.args.length=0,q.args.push.apply(q.args,arguments),q.args.push(q.state)):q.args&&q.args.length!=0?(q.args[0]=q.state,q.args.length=1):q.args=[q.state];q.isScheduled||(q.isScheduled=!0,nQ$[GRv].push(q));PMQ||(PMQ=!0,window.requestAnimationFrame(ZKU))}},ZKU=
function(){PMQ=!1;
var p=nQ$[GRv],y=p.length;GRv=(GRv+1)%2;for(var l,q=0;q<y;++q){l=p[q];var t=l.measureTask;l.isScheduled=!1;t.fn&&t.fn.apply(t.context,l.args)}for(q=0;q<y;++q)l=p[q],t=l.mutateTask,l.isScheduled=!1,t.fn&&t.fn.apply(t.context,l.args),l.state={};p.length=0};var V0B=_.c0(["about:blank"]),gQ$=_.c0(["javascript:undefined"]),Q7x=_.bz(V0B);_.LO(Q7x);var KjO=_.bz(gQ$);_.LO(KjO);var pg=function(p){_.Fn.call(this);this.JSC$10096_element_=p;this.listenKeyIn_=_.BL(this.JSC$10096_element_,"focus",this,!0);this.listenKeyOut_=_.BL(this.JSC$10096_element_,"blur",this,!0)};
_.j6(pg,_.Fn);pg.prototype.handleEvent=function(p){var y=new _.w5(p.event_);y.type=p.type=="focusin"||p.type=="focus"?"focusin":"focusout";this.dispatchEvent(y)};
pg.prototype.disposeInternal=function(){pg.superClass_.disposeInternal.call(this);HL(this.listenKeyIn_);HL(this.listenKeyOut_);delete this.JSC$10096_element_};var w7r=function(p,y){this.JSC$10099_element_=p;this.JSC$10099_dom_=y};var yN=function(p,y){dY.call(this,y);this.useIframeMask_=!!p;this.lastFocus_=null;this.resizeBackgroundTask_=M0V({mutate:this.resizeBackground_},this);M0V({mutate:this.updateModalAndBackground_},this)};
_.j6(yN,dY);_.J=yN.prototype;_.J.focusHandler_=null;_.J.visible_=!1;_.J.bgEl_=null;_.J.bgIframeEl_=null;_.J.tabCatcherElement_=null;_.J.backwardTabWrapInProgress_=!1;_.J.getCssClass=function(){return"goog-modalpopup"};
_.J.getBackgroundElement=function(){return this.bgEl_};
_.J.JSC$10080_createDom=function(){yN.superClass_.JSC$10080_createDom.call(this);var p=this.getElement(),y=Rg(this.getCssClass()).split(" ");qD(p,y);p.tabIndex=0;_.yc(p,!1);iKB(this);rkQ(this)};
var iKB=function(p){if(p.useIframeMask_&&!p.bgIframeEl_){var y=p.JSC$10078_dom_.JSC$9262_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.l6(y,Q7x);p.bgIframeEl_=y;p.bgIframeEl_.className=p.getCssClass()+"-bg";_.yc(p.bgIframeEl_,!1);Z7B(p.bgIframeEl_,0)}p.bgEl_||(p.bgEl_=p.JSC$10078_dom_.JSC$9262_createDom("DIV",p.getCssClass()+"-bg"),_.yc(p.bgEl_,!1))},rkQ=function(p){p.tabCatcherElement_||(p.tabCatcherElement_=p.JSC$10078_dom_.createElement("SPAN"),_.yc(p.tabCatcherElement_,
!1),p.tabCatcherElement_.tabIndex=0,p.tabCatcherElement_.style.position="absolute")};
_.J=yN.prototype;_.J.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.J.canDecorate=function(p){return!!p&&p.tagName=="DIV"};
_.J.decorateInternal=function(p){yN.superClass_.decorateInternal.call(this,p);p=Rg(this.getCssClass()).split(" ");qD(this.getElement(),p);iKB(this);rkQ(this);this.getElement().tabIndex=0;_.yc(this.getElement(),!1)};
_.J.enterDocument=function(){this.bgIframeEl_&&_.vZ(this.bgIframeEl_,this.getElement());_.vZ(this.bgEl_,this.getElement());yN.superClass_.enterDocument.call(this);_.Xd(this.tabCatcherElement_,this.getElement());this.focusHandler_=new pg(this.JSC$10078_dom_.JSC$9260_document_);O0(this).listen(this.focusHandler_,"focusin",this.onFocus);S1r(this,!1)};
_.J.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.er(this.focusHandler_);yN.superClass_.exitDocument.call(this);_.Qy(this.bgIframeEl_);_.Qy(this.bgEl_);_.Qy(this.tabCatcherElement_)};
_.J.setVisible=function(p){if(p!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&S1r(this,p),p){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10078_dom_.JSC$9260_document_.activeElement}catch(t){}this.updateModalAndBackground_();O0(this).listen(this.JSC$10078_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10078_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);FjQ(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)DS(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){O0(this).unlisten(this.JSC$10078_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10078_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)DS(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var y=this.JSC$10078_dom_,l=y.JSC$9260_document_.body,q=y.JSC$9260_document_.activeElement||l;if(!this.lastFocus_||this.lastFocus_==l){this.lastFocus_=null;break a}(q==l||y.contains(this.getElement(),q))&&this.lastFocus_.focus()}catch(t){}this.lastFocus_=
null}}};
var S1r=function(p,y){p.modalAriaVisibilityHelper_||(p.modalAriaVisibilityHelper_=new w7r(p.JSC$10078_element_,p.JSC$10078_dom_));p=p.modalAriaVisibilityHelper_;if(y){p.hiddenElements_||(p.hiddenElements_=[]);y=p.JSC$10099_dom_.getChildren(p.JSC$10099_dom_.JSC$9260_document_.body);for(var l=0;l<y.length;l++){var q=y[l],t;if(t=q!=p.JSC$10099_element_)t=q.getAttribute("aria-hidden"),t=!(t==null||t==void 0?0:String(t));t&&(o2(q,"hidden",!0),p.hiddenElements_.push(q))}}else if(p.hiddenElements_){for(y=
0;y<p.hiddenElements_.length;y++)p.hiddenElements_[y].removeAttribute("aria-hidden");p.hiddenElements_=null}};
yN.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var FjQ=function(p,y){p.bgIframeEl_&&_.yc(p.bgIframeEl_,y);p.bgEl_&&_.yc(p.bgEl_,y);_.yc(p.getElement(),y);_.yc(p.tabCatcherElement_,y)};
_.J=yN.prototype;_.J.onShow=function(){this.dispatchEvent("show")};
_.J.onHide=function(){FjQ(this,!1);this.dispatchEvent("hide")};
_.J.isVisible=function(){return this.visible_};
_.J.focus=function(){this.focusElement_()};
_.J.resizeBackground_=function(){this.bgIframeEl_&&_.yc(this.bgIframeEl_,!1);this.bgEl_&&_.yc(this.bgEl_,!1);var p=this.JSC$10078_dom_.JSC$9260_document_;var y=_.iz(f0(this.JSC$10078_dom_.JSC$9260_document_)||window);var l=Math.max(y.width,Math.max(p.body.scrollWidth,p.documentElement.scrollWidth));p=Math.max(y.height,Math.max(p.body.scrollHeight,p.documentElement.scrollHeight));this.bgIframeEl_&&(_.yc(this.bgIframeEl_,!0),_.n1U(this.bgIframeEl_,l,p));this.bgEl_&&(_.yc(this.bgEl_,!0),_.n1U(this.bgEl_,
l,p))};
_.J.reposition=function(){var p;if(_.b7O(this.getElement())=="fixed")var y=p=0;else y=rV(this.JSC$10078_dom_),p=y.x,y=y.y;var l=P9B(this.getElement());var q=_.iz(f0(this.JSC$10078_dom_.JSC$9260_document_)||window);p=Math.max(p+q.width/2-l.width/2,0);y=Math.max(y+q.height/2-l.height/2,0);IC(this.getElement(),p,y);IC(this.tabCatcherElement_,p,y)};
_.J.onFocus=function(p){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():p.target==this.tabCatcherElement_&&Hf(this.focusElement_,0,this)};
_.J.focusElement_=function(){try{this.getElement().focus()}catch(p){}};
_.J.disposeInternal=function(){_.er(this.popupShowTransition_);this.popupShowTransition_=null;_.er(this.popupHideTransition_);this.popupHideTransition_=null;_.er(this.bgShowTransition_);this.bgShowTransition_=null;_.er(this.bgHideTransition_);this.bgHideTransition_=null;yN.superClass_.disposeInternal.call(this)};var fS=function(p,y,l){yN.call(this,y,l);this.JSC$10109_class_=p||"modal-dialog";this.buttons_=(new lK).addButton(LjB,!0).addButton(kRP,!1,!0)};
_.j6(fS,yN);_.J=fS.prototype;_.J.escapeToCancel_=!0;_.J.hasTitleCloseButton_=!0;_.J.modal_=!0;_.J.draggable_=!0;_.J.backgroundElementOpacity_=.5;_.J.title_="";_.J.JSC$10111_dragger_=null;_.J.JSC$10111_disposeOnHide_=!1;_.J.titleEl_=null;_.J.titleTextEl_=null;_.J.titleTextId_=null;_.J.titleCloseEl_=null;_.J.contentEl_=null;_.J.buttonEl_=null;_.J.getCssClass=function(){return this.JSC$10109_class_};
_.J.setTitle=function(p){this.title_=p;this.titleTextEl_&&_.Of(this.titleTextEl_,p)};
_.J.getTitle=function(){return this.title_};
_.J.getContent=function(){return""};
_.J.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var NyV=function(p){p.getElement()||p.render();return p.getElement()};
fS.prototype.getBackgroundElement=function(){this.getElement()||this.render();return fS.superClass_.getBackgroundElement.call(this)};
var DUZ=function(p,y){p.backgroundElementOpacity_=y;p.getElement()&&(y=p.getBackgroundElement())&&Z7B(y,p.backgroundElementOpacity_)};
fS.prototype.setDraggable=function(p){this.draggable_=p;HKZ(this,p&&this.inDocument_)};
fS.prototype.JSC$10111_handleDrag=function(){};
var HKZ=function(p,y){var l=Rg(p.JSC$10109_class_+"-title-draggable").split(" ");p.getElement()&&(y?qD(p.titleEl_,l):WuU(p.titleEl_,l));y&&!p.JSC$10111_dragger_?(y=new _.zC(p.getElement(),p.titleEl_),p.JSC$10111_dragger_=y,qD(p.titleEl_,l),_.BL(p.JSC$10111_dragger_,"start",p.setDraggerLimits_,!1,p),_.BL(p.JSC$10111_dragger_,"drag",p.JSC$10111_handleDrag,!1,p)):!y&&p.JSC$10111_dragger_&&(p.JSC$10111_dragger_.dispose(),p.JSC$10111_dragger_=null)};
_.J=fS.prototype;
_.J.JSC$10080_createDom=function(){fS.superClass_.JSC$10080_createDom.call(this);var p=this.getElement(),y=this.JSC$10078_dom_;this.titleTextId_=this.getId();var l=this.getId()+".contentEl";this.titleEl_=y.JSC$9262_createDom("DIV",this.JSC$10109_class_+"-title",this.titleTextEl_=y.JSC$9262_createDom("SPAN",{className:this.JSC$10109_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=y.JSC$9262_createDom("SPAN",this.JSC$10109_class_+"-title-close"));ymO(p,this.titleEl_,this.contentEl_=
y.JSC$9262_createDom("DIV",{className:this.JSC$10109_class_+"-content",id:l}),this.buttonEl_=y.JSC$9262_createDom("DIV",this.JSC$10109_class_+"-buttons"));WjU(this.titleTextEl_,"heading");WjU(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;o2(this.titleCloseEl_,"label","Close");WjU(p,"dialog");o2(p,"labelledby",this.titleTextId_||"");_.yc(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(p=this.buttons_,p.JSC$10112_element_=this.buttonEl_,p.render());_.yc(this.buttonEl_,!!this.buttons_);
DUZ(this,this.backgroundElementOpacity_)};
_.J.decorateInternal=function(p){fS.superClass_.decorateInternal.call(this,p);p=this.getElement();var y=this.JSC$10109_class_+"-content";this.contentEl_=DI(document,null,y,p)[0];this.contentEl_||(this.contentEl_=this.JSC$10078_dom_.JSC$9262_createDom("DIV",y),p.appendChild(this.contentEl_));y=this.JSC$10109_class_+"-title";var l=this.JSC$10109_class_+"-title-text",q=this.JSC$10109_class_+"-title-close";(this.titleEl_=DI(document,null,y,p)[0])?(this.titleTextEl_=DI(document,null,l,this.titleEl_)[0],
this.titleCloseEl_=DI(document,null,q,this.titleEl_)[0]):(this.titleEl_=this.JSC$10078_dom_.JSC$9262_createDom("DIV",y),p.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=aA$(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.Tk("SPAN",{className:l,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;o2(p,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10078_dom_.JSC$9262_createDom("SPAN",q),this.titleEl_.appendChild(this.titleCloseEl_));_.yc(this.titleCloseEl_,this.hasTitleCloseButton_);y=this.JSC$10109_class_+"-buttons";(this.buttonEl_=DI(document,null,y,p)[0])?(this.buttons_=new lK(this.JSC$10078_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10078_dom_.JSC$9262_createDom("DIV",y),p.appendChild(this.buttonEl_),this.buttons_&&(p=this.buttons_,p.JSC$10112_element_=this.buttonEl_,p.render()),_.yc(this.buttonEl_,
!!this.buttons_));DUZ(this,this.backgroundElementOpacity_)};
_.J.enterDocument=function(){fS.superClass_.enterDocument.call(this);O0(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);O0(this).listen(this.buttonEl_,"click",this.onButtonClick_);HKZ(this,this.draggable_);O0(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var p=this.getElement();WjU(p,"dialog");this.titleTextEl_.id!==""&&o2(p,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){p=this.JSC$10078_dom_;
var y=this.getBackgroundElement();p.removeNode(this.bgIframeEl_);p.removeNode(y)}this.isVisible()&&S1r(this,!1)}};
_.J.exitDocument=function(){this.isVisible()&&this.setVisible(!1);HKZ(this,!1);fS.superClass_.exitDocument.call(this)};
_.J.setVisible=function(p){p!=this.isVisible()&&(this.inDocument_||this.render(),fS.superClass_.setVisible.call(this,p))};
_.J.onShow=function(){fS.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.J.onHide=function(){fS.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10111_disposeOnHide_&&this.dispose()};
_.J.setDraggerLimits_=function(){var p=this.JSC$10078_dom_.JSC$9260_document_,y=_.iz(f0(p)||window),l=Math.max(p.body.scrollWidth,y.width);p=Math.max(p.body.scrollHeight,y.height);var q=P9B(this.getElement());_.b7O(this.getElement())=="fixed"?this.JSC$10111_dragger_.limits=new oC(0,0,Math.max(0,y.width-q.width),Math.max(0,y.height-q.height)):this.JSC$10111_dragger_.limits=new oC(0,0,l-q.width,p-q.height)};
_.J.onTitleCloseClick_=function(){Ty$(this)};
var Ty$=function(p){if(p.hasTitleCloseButton_){var y=p.buttons_,l=y&&y.cancelButton_;l?(y=y.get(l),p.dispatchEvent(new qy(l,y))&&p.setVisible(!1)):p.setVisible(!1)}},xUQ=function(p){p.hasTitleCloseButton_=!1;
p.titleCloseEl_&&_.yc(p.titleCloseEl_,p.hasTitleCloseButton_)};
fS.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;fS.superClass_.disposeInternal.call(this)};
fS.prototype.onButtonClick_=function(p){a:{for(p=p.target;p!=null&&p!=this.buttonEl_;){if(p.tagName=="BUTTON")break a;p=p.parentNode}p=null}if(p&&!p.disabled){p=p.name;var y=this.buttons_.get(p);this.dispatchEvent(new qy(p,y))&&this.setVisible(!1)}};
fS.prototype.onKey_=function(p){var y=!1,l=!1,q=this.buttons_,t=p.target;if(p.type=="keydown")if(this.escapeToCancel_&&p.keyCode==27){var E=q&&q.cancelButton_;t=t.tagName=="SELECT"&&!t.disabled;E&&!t?(l=!0,y=q.get(E),y=this.dispatchEvent(new qy(E,y))):t||(y=!0)}else{if(p.keyCode==9&&p.shiftKey&&t==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(m){}Hf(this.resetBackwardTabWrap_,0,this)}}else if(p.keyCode==13){if(t.tagName=="BUTTON"&&!t.disabled)E=t.name;
else if(t==this.titleCloseEl_)Ty$(this);else if(q){var e=q.defaultButton_,C;if(C=e)a:{C=KS("BUTTON",q.JSC$10112_element_);for(var u,a=0;u=C[a];a++)if(u.name==e||u.id==e){C=u;break a}C=null}t=(t.tagName=="TEXTAREA"||t.tagName=="SELECT"||t.tagName=="A")&&!t.disabled;!C||C.disabled||t||(E=e)}E&&q&&(l=!0,y=this.dispatchEvent(new qy(E,String(q.get(E)))))}else t!=this.titleCloseEl_||p.keyCode!=32&&p.key!=" "||Ty$(this);if(y||l)p.stopPropagation(),p.preventDefault();y&&this.setVisible(!1)};
var qy=function(p,y){this.type="dialogselect";this.key=p;this.caption=y};
_.j6(qy,_.Ku);var lK=function(p){I2.call(this);p||SO();this.cancelButton_=this.JSC$10112_element_=this.defaultButton_=null};
_.j6(lK,I2);_.J=lK.prototype;_.J.clear=function(){I2.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.J.set=function(p,y,l,q){I2.prototype.set.call(this,p,y);l&&(this.defaultButton_=p);q&&(this.cancelButton_=p);return this};
_.J.addButton=function(p,y,l){return this.set(p.key,p.caption,y,l)};
_.J.render=function(){if(this.JSC$10112_element_){_.hw(this.JSC$10112_element_,q1j);var p=SO(this.JSC$10112_element_);this.forEach(function(y,l){y=p.JSC$9262_createDom("BUTTON",{name:l},y);l==this.defaultButton_&&(y.className="goog-buttonset-default");this.JSC$10112_element_.appendChild(y)},this)}};
_.J.decorate=function(p){if(p&&p.nodeType==1){this.JSC$10112_element_=p;p=KS("BUTTON",this.JSC$10112_element_);for(var y,l,q,t=0;y=p[t];t++)if(l=y.name||y.id,q=aA$(y)||y.value,l){var E=t==0;this.set(l,q,E,y.name=="cancel");E&&_.ax(y,"goog-buttonset-default")}}};
_.J.getElement=function(){return this.JSC$10112_element_};
var LjB={key:"ok",caption:"OK"},kRP={key:"cancel",caption:"Cancel"},ByZ={key:"yes",caption:"Yes"},fKO={key:"no",caption:"No"},vQv={key:"save",caption:"Save"},X7P={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new lK).addButton(LjB,!0,!0),(new lK).addButton(LjB,!0).addButton(kRP,!1,!0),(new lK).addButton(ByZ,!0).addButton(fKO,!1,!0),(new lK).addButton(ByZ).addButton(fKO,!0).addButton(kRP,!1,!0),(new lK).addButton(X7P).addButton(vQv).addButton(kRP,!0,!0));_.j6(vhl,fS);_.j6(XCL,v9);var dUr=_.c0(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),OKU=_.c0(["//apis.google.com/js/rpc.js"]),lKm=_.bz(dUr),ykm=_.bz(OKU),Ohm=null;var XZ=function(p,y){_.Fn.call(this);this.JSC$10121_element_=p;p=_.Jp(this.JSC$10121_element_)?this.JSC$10121_element_:this.JSC$10121_element_?this.JSC$10121_element_.body:null;this.isRtl_=!!p&&_.MdQ(p);this.listenKey_=_.BL(this.JSC$10121_element_,_.Aj?"DOMMouseScroll":"mousewheel",this,y)};
_.j6(XZ,_.Fn);XZ.prototype.handleEvent=function(p){var y=0,l=0,q=p.event_;q.type=="mousewheel"?(p=oQx(-q.wheelDelta),q.wheelDeltaX!==void 0?(y=oQx(-q.wheelDeltaX),l=oQx(-q.wheelDeltaY)):l=p):(p=q.detail,p>100?p=3:p<-100&&(p=-3),q.axis!==void 0&&q.axis===q.HORIZONTAL_AXIS?y=p:l=p);typeof this.maxDeltaX_==="number"&&(y=_.OP(y,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(l=_.OP(l,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(y=-y);y=new zJM(p,q,y,l);this.dispatchEvent(y)};
var oQx=function(p){return _.ZY&&(_.KY_||iRt)&&p%40!=0?p:p/40};
XZ.prototype.disposeInternal=function(){XZ.superClass_.disposeInternal.call(this);HL(this.listenKey_);this.listenKey_=null};
var zJM=function(p,y,l,q){_.w5.call(this,y);this.type="mousewheel";this.detail=p;this.deltaX=l;this.deltaY=q};
_.j6(zJM,_.w5);_.m8=function(p){var y="instance_";if(p.instance_&&p.hasOwnProperty(y))return p.instance_;y=new p;return p.instance_=y};var p76;var Y1B=_.c0(["https://about:blank"]),IKx=_.c0(['javascript:""']),psr=_.c0(["about:blank"]);_.j6(lb,vhl);_.J=lb.prototype;_.J.JSC$10129_url_="";_.J.JSC$10129_iframe_=null;_.J.iframeLoaded_=!1;_.J.loadedFired_=!1;_.J.callback_=function(){};
_.J.enterDocument=function(){lb.superClass_.enterDocument.call(this);YCc(this.getBackgroundElement(),O0(this))};
_.J.render=function(p){var y=this;lb.superClass_.render.call(this,p);this.useGapi_?p7x(this.iframeManager_,window).then(function(){return ypM(y)}).then(null,function(){y.callback_({action:"error"})}):lpx(this)};
var ypM=function(p){var y=p.JSC$10078_dom_.JSC$9262_createDom("div",["picker-dialog-content","picker-frame"]);_.yc(y,!1);p.getContentElement().appendChild(y);return ykr(p.iframeManager_,y,function(l){var q=bOv(l["iframe-command"]);switch(q.getCommand()){case 1:l=p.callback_;q=_.MF(q,Wf,2);var t="";switch(q.getStatus()){case 2:t="cancel";break;case 1:t="picked";break;case 3:t="error"}var E=_.u4(q,DY,2,_.RY(qjo));q=E.length===0?{action:t}:SCB(E,t,_.MF(q,UmN,7));l.call(p,q);p.setVisible(!1);break;case 4:xUQ(p);
p.callback_({action:"loaded"});break;case 7:case 8:l=p.callback_;a:{t=q.getCommand();E=_.MF(q,Wf,2);switch(t){case 7:t="uploadScheduled";break;case 8:t="uploadStateChange";break;default:q={};break a}q=_.u4(E,DY,2,_.RY(qjo));if(q.length===0)q={action:t};else{var e=_.MF(E,UmN,7);E=e&&_.fq(e,1);e=Pvr(e);q=MMr(q,t,E,e)}}l.call(p,q)}},p.JSC$10129_url_,p.targetId_,p.rpcToken_).then(function(l){p.JSC$10129_iframe_=l.getIframeEl();
qL$(p);_.yc(p.JSC$10129_iframe_.parentElement,!0);_.ax(p.getElement(),"picker-dialog");sdZ(p);return l})},lpx=function(p){p.JSC$10129_iframe_=p.JSC$10078_dom_.JSC$9262_createDom("IFRAME",{id:p.targetId_,
name:p.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.l6(p.JSC$10129_iframe_,tFN(p));_.ax(p.getElement(),"picker-dialog");p.getContentElement().appendChild(p.JSC$10129_iframe_);O0(p).listen(p.JSC$10129_iframe_,"load",function(){return void qL$(p)});
p.JSC$10129_iframe_.src=p.JSC$10129_url_;sdZ(p)},JpB=function(p){Enx(p,(0,_.FZ)(function(y){y.setAuthToken(this.targetId_,this.rpcToken_)},p))},sdZ=function(p){var y=_.IY(_.YP(p.JSC$10129_url_),"title");
y&&p.setTitle(y)},tFN=function(p){return _.C_t("Internet Explorer")>=7&&_.tR(p.JSC$10129_url_,"https")?_.bz(Y1B):_.P0?_.bz(IKx):_.bz(psr)},qL$=function(p){JpB(p);
p.iframeLoaded_=!0;p.JSC$10129_iframe_.tabIndex=0;p.isVisible()&&p.focus()};
lb.prototype.handleKeydown_=function(p){p.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),p.stopPropagation(),p.preventDefault())};
var Enx=function(p,y){var l=p.JSC$10127_gadgetsDomHelper_;ohl(function(){y(l.getWindow().gadgets.rpc)},l)};
lb.prototype.setUrl=function(p){p=_.pr(new _.JO(p),"rpcService",this.targetId_);_.pr(p,"rpctoken",this.rpcToken_);_.$D(p,"rpctoken="+this.rpcToken_);_.uR(p,"https");this.JSC$10129_url_=p.toString();this.JSC$10129_iframe_&&(this.JSC$10129_iframe_.src=this.JSC$10129_url_)};
var cpU=function(p,y){p.callback_=y;Enx(p,(0,_.FZ)(function(l){l.register(this.targetId_,(0,_.FZ)(this.handlePickerAction_,this))},p))};
lb.prototype.handlePickerAction_=function(p){var y=p.action;y=="loaded"&&(this.loadedFired_=!0,eKr(this,new f3c(this.isVisible())),hKr(this),xUQ(this),O0(this).unlisten(this.JSC$10078_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10129_iframe_.tabIndex=0);y!="picked"&&y!="cancel"||this.setVisible(!1);this.callback_(p)};
var hKr=function(p){p.JSC$10129_appId_&&eKr(p,new Bs8(p.JSC$10129_appId_,window.location.protocol+"//"+window.location.host))};
lb.prototype.setRelayUrl=function(p){Enx(this,(0,_.FZ)(function(y){y.setRelayUrl(this.targetId_,p)},this))};
var eKr=function(p,y){p.useGapi_&&EQr(y,p.iframeManager_).then(null,function(){p.callback_({action:"error"})});
Enx(p,(0,_.FZ)(function(l){l.call(this.targetId_,"picker",null,y)},p))};
lb.prototype.resizePicker_=function(){var p=f0(this.JSC$10078_dom_.JSC$9260_document_)||window;if(_.IY(_.YP(this.JSC$10129_url_),"ignoreLimits")=="true")p=new _.wV(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.IY(_.YP(this.JSC$10129_url_),"shadeDialog")=="true"){var y=NyV(this);y=VdU(y);var l=_.iz(p);p=l.width-80;l=l.height-40;y&&(p-=y.left?y.left:0,p-=y.right?y.right:0,l-=y.top?y.top:0,l-=y.bottom?y.bottom:0);p=new _.wV(p>0?p:0,l>0?l:0)}else(y=this.preferredDialogWidth_)?(y=Math.max(320,
Math.min(1051,y)),(l=this.preferredDialogHeight_)||(l=_.iz(p).height*.85),l=Math.max(480,Math.min(650,l))):(y=_.iz(p),l=y.width*.618,l=l<y.height?Math.round(Math.max(480,Math.min(650,l*.85))):Math.round(Math.max(480,Math.min(650,y.height*.85))),y=Math.round(l/.618)),p=_.iz(p),y=Math.min(y,Math.max(p.width,320)),l=Math.min(l,Math.max(p.height,480)),p=new _.wV(y,l);_.n1U(this.getContentElement(),p);this.reposition()};
lb.prototype.reposition=function(){if(_.IY(_.YP(this.JSC$10129_url_),"shadeDialog")=="true"){var p=P9B(this.getElement()),y=_.iz(this.JSC$10078_dom_.getWindow());p=Math.floor(y.width/2-p.width/2);y=NyV(this);if(y=VdU(y)){var l=y.left?y.left:0;l+=y.right?y.right:0;p=Math.floor(p-l/2)}p=p>0?p:0;y=rV(this.JSC$10078_dom_).y;IC(this.getElement(),p,y)}else lb.superClass_.reposition.call(this)};
lb.prototype.setVisible=function(p){if(p!=this.isVisible()&&this.autoSizeDialog_){var y=this.JSC$10078_dom_.getWindow();p?(this.resizePicker_(),O0(this).listen(y,"resize",this.resizePicker_),this.iframeLoaded_||O0(this).listen(y,"keydown",this.handleKeydown_)):(O0(this).unlisten(y,"resize",this.resizePicker_),this.iframeLoaded_||O0(this).unlisten(y,"keydown",this.handleKeydown_))}lb.superClass_.setVisible.call(this,p);eKr(this,new f3c(p))};
lb.prototype.focus=function(){lb.superClass_.focus.call(this);if(this.JSC$10129_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10129_iframe_.focus()}catch(p){}};var f4=function(p,y){y=y===void 0?lb:y;v9.call(this,p);this.pickerConstructor=y;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(p=window.location.origin)||(p=window.location.protocol+"//"+window.location.host);p&&this.urlParamMap_.set("origin",p);this.postProcessors_=[]};
_.A(f4,XCL);f4.prototype.JSC$10134_disposeOnHide_=!1;
f4.prototype.build=function(){this.JSC$10035_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10035_appId_);this.getRelayUrl()||this.setRelayUrl(_.mt(_.$D(_.U0(_.YP(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var p=new this.pickerConstructor(CGM(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);p.JSC$10111_disposeOnHide_=this.JSC$10134_disposeOnHide_;
p.JSC$10129_appId_=this.JSC$10035_appId_;p.loadedFired_&&hKr(p);cpU(p,this.callback_);return p};
var u$r=function(p){p.urlParamMap_.set("multiselectEnabled","true");return p};
_.J=f4.prototype;_.J.getHeight=function(){return this.dialogHeight_};
_.J.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.J.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.J.getTitle=function(){return this.urlParamMap_.get("title")};
_.J.getWidth=function(){return this.dialogWidth_};
var RK$=function(p){p.JSC$10134_disposeOnHide_=void 0;return p};
f4.prototype.setRelayUrl=function(p){this.urlParamMap_.set("parent",p);return this};
var WHP=function(p,y){p.urlParamMap_.set("selectButtonLabel",y);return p};
f4.prototype.setSize=function(p,y){this.dialogWidth_=p;this.dialogHeight_=y;return this};
f4.prototype.setTitle=function(p){this.urlParamMap_.set("title",p);return this};
var CGM=function(p){p.postProcessors_.length&&p.urlParamMap_.set("pp",JSON.stringify(p.postProcessors_));p.urlParamMap_.set("nav",jKV(p.nav_));var y=new _.JO(p.getBaseUrl());p.urlParamMap_.forEach(function(l,q){_.pr(y,q,l)});
return y};var U$B=function(p,y){p.name!==void 0?(this.name=p.name,this.code=apN[p.name]):(this.code=p=p.code,this.name=m$P(p));_.p8.call(this,klM("%s %s",this.name,y))};
_.j6(U$B,_.p8);var m$P=function(p){var y=_.Ts.findKey(apN,function(l){return p==l});
if(y===void 0)throw Error("hb`"+p);return y},sA={},apN=(sA.AbortError=3,sA.EncodingError=5,sA.InvalidModificationError=9,sA.InvalidStateError=7,sA.NotFoundError=1,sA.NotReadableError=4,sA.NoModificationAllowedError=6,sA.PathExistsError=12,sA.QuotaExceededError=10,sA.SecurityError=2,sA.SyntaxError=8,sA.TypeMismatchError=11,sA);var $$x=function(p,y){_.Ku.call(this,p.type,y);this.event_=p};
_.j6($$x,_.Ku);var jdN=function(p,y,l){l===void 0&&(l=p.size);return p.slice?p.slice(y,l):null};var t0L=new WeakMap,s7m=function(p,y){p=[p];for(var l=y.length-1;l>=0;--l)p.push(typeof y[l],y[l]);return p.join("\v")};_.Jkg(function(){if(!_.l_.Blob)return!1;var p=new Uint8Array(100);try{var y=new Blob([p])}catch(l){return!1}return y.size!=100?!1:!0});
var bT$=_.Jkg(function(){if(!_.l_.Blob)return!1;var p=new Uint8Array(100);try{var y=new Blob([p])}catch(l){return!1}return jdN(y,0,1)===null?!1:!0});_.l_.U3bHHf!=null||(_.l_.U3bHHf=0);_.l_.U3bHHf++;_.nnV=new WeakMap;_.GXB=new WeakMap;var cku={};var Er=void 0;var hJ8=Symbol("pb");var PMu=hU("WizInjectionContext_Dispatcher");var Wu=Symbol("qb");var MV,iB;MV=function(){this.afterRenderCallbacks=null};
_.FX6=Symbol("rb");iB=function(p){this.props=p;this.__unmounted=!1};
iB.prototype.didPatch=function(){};
iB.prototype.didMount=function(){};
iB.prototype.didUnmount=function(){};
iB.prototype.didUpdate=function(){};_.$U5=hU("WizInjectionContext_RootElement");var bKt=hU("WizInjectionContext_AppContext"),j7u=hU("WizInjectionContext_ModelRootElement"),nQc=hU("WizInjectionContext_RendererData"),GRg=hU("WizInjectionContext_InjectingConstructor"),UUl=hU("WizInjectionContext_AsyncDeps"),Ak5={};var Kja=!1;var S15={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:Anu,enableLazyTsx:ZR_,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:P3t,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var ub=Object.assign({},{attributes:{},handleError:function(p){throw p;}},S15);var PGN=Symbol("vb"),gq=Symbol("wb"),Apu=Symbol("xb"),GXj=Symbol("yb"),wsR=vU(function(p){return Re(p)&&PGN in p});var Tyc=Symbol("zb"),t6={},DUR=(t6[Tyc]=!0,t6.debugName="[component]",t6.getComponentStack=function(){for(var p=[],y=this;y;)xUu(y)&&p.push(y.debugName),y=y.parent;return p},t6.registerSignal=function(){},t6.registerEffect=function(){},t6);var WQ=null,mu=!1,X7L=1,jh=Symbol("Ab"),ZH={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var EA=Symbol("Bb"),J6=Symbol("Cb"),$J=Symbol("Db"),ypl=Object.assign({},ZH,{value:EA,dirty:!0,error:null,equal:ByR,kind:"computed",producerMustRecompute:function(p){return p.value===EA||p.value===J6},
producerRecomputeValue:function(p){if(p.value===J6)throw Error("Z");var y=p.value;p.value=J6;var l=Y1j(p),q=!1;try{var t=p.computation();ae(null);q=y!==EA&&y!==$J&&t!==$J&&p.equal(y,t)}catch(E){t=$J,p.error=E}finally{psm(p,l)}q?p.value=y:(p.value=t,p.version++)}});var tF_=function(){throw Error();};var Jpj=null,qLc=Object.assign({},ZH,{equal:ByR,value:void 0,kind:"signal"});Object.assign({},ZH,{value:EA,dirty:!0,error:null,equal:ByR,kind:"linkedSignal",producerMustRecompute:function(p){return p.value===EA||p.value===J6},
producerRecomputeValue:function(p){if(p.value===J6)throw Error("Z");var y=p.value;p.value=J6;var l=Y1j(p);try{var q=p.source();var t=p.computation(q,y===EA||y===$J?void 0:{source:p.sourceValue,value:y});p.sourceValue=q}catch(E){t=$J,p.error=E}finally{psm(p,l)}y!==EA&&t!==$J&&p.equal(y,t)?p.value=y:(p.value=t,p.version++)}});Object.assign({},ZH,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(p){p.schedule!==null&&p.schedule(p.ref)},
hasRun:!1,cleanupFn:function(){}});var eK5=Symbol("Eb"),GP=Symbol("Fb");var PQ=Array.isArray;var $$6;var ApQ={},bTc=U$j(Object.assign({},{consumerAllowSignalWrites:!0},ApQ)),gT=U$j(Object.assign({},{consumerAllowSignalWrites:!0},ApQ));var Qc=0,Kr=!1,cE=function(){this.queue=new Set};
cE.prototype.remove=function(p){this.queue.delete(p)};
cE.prototype.clear=function(){this.queue.clear()};
var ZTB=function(){cE.apply(this,arguments)};
_.A(ZTB,cE);ZTB.prototype.schedule=function(p){this.queue.add(p)};
ZTB.prototype.flush=function(){if(this.queue.size){Kr=!0;try{for(var p=_.c(this.queue),y=p.next();!y.done;y=p.next()){var l=y.value;this.queue.delete(l);try{l.run()}catch(q){MFN(q)}}}finally{Kr=!1}}};
var VFP=new ZTB,ex=function(){cE.apply(this,arguments)};
_.A(ex,cE);var gnU=function(){ex.apply(this,arguments)};
_.A(gnU,ex);gnU.prototype.schedule=function(p){p.hasRun?this.queue.add(p):p.run()};
gnU.prototype.flush=function(){if(this.queue.size)if(ub.flushRenderEffectsDuringRender){var p=this.queue;this.queue=new Set;iT_(p)}else iT_(this.queue)};
var nnt=new gnU,QdP=function(){ex.apply(this,arguments)};
_.A(QdP,ex);QdP.prototype.schedule=function(p){var y=this;return _.h(function(l){if(l.nextAddress==1)return p.hasRun?l.jumpTo(2):l.yield(Promise.resolve(),3);if(l.nextAddress!=2)return p.run(),l.return();y.queue.add(p);_.rR(l)})};
QdP.prototype.flush=function(){var p=this;return _.h(function(y){if(y.nextAddress==1)return p.queue.size?y.yield(Promise.resolve(),2):y.return();iT_(p.queue);_.rR(y)})};
var ZTj=new QdP,KHP=function(){ex.apply(this,arguments)};
_.A(KHP,ex);KHP.prototype.schedule=function(p){this.queue.add(p)};
KHP.prototype.flush=function(){this.queue.size&&iT_(this.queue)};
var PG_=new KHP,QdL=[nnt,VFP,PG_,ZTj],wsZ=[nnt,PG_,ZTj],VFL=[];Jpj=function(){KHL();for(var p=_.c(VFL),y=p.next();!y.done;y=p.next())y=y.value,y()};
var MFN=qa;var rq=Symbol("Kb");var ib=null,FHc,LHm=null,kXt;var h6={},iTN=Object.assign({},ZH,(h6[PGN]=!0,h6.effectType=gq,h6.isResettableContext=!0,h6.hasRun=!1,h6.effectFn=null,h6.consumerIsAlwaysLive=!0,h6.consumerAllowSignalWrites=!0,h6.consumerMarkedDirty=MF_,h6.kind="effect",h6.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(mu)throw Error("Lb");this.dirty=!1;if(!this.hasRun||dUm(this)){this.hasRun=!0;mUc(this);var p=_.JU(this),y=Y1j(this);Ljj("effectRun",this.debugName);try{kJ(this.effectFn,this.componentStack,this)}catch(l){throw ub.enableContextBasedComponentStacks&&
Lr(l),l;}finally{kRL("effectRun",this.debugName),psm(this,y),_.JU(p)}}}},h6.componentStack=void 0,h6.debugName="[effect]",h6[Symbol.dispose]=function(){if(Ur(this))for(var p=this.producers;p!==void 0;)p=IK6(p);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;p=_.c(wsZ);for(var y=p.next();!y.done;y=p.next())y.value.remove(this);aKj(this)},h6));var HTt=Object.assign({},iTN,{effectType:Apu});var TJl=Symbol("Mb");var x$t=Object.assign({},iTN,{effectType:gq});var PXc=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var vn5={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},fpR=
{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}]}},Uic={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},OTl=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],d$L={"*":{async:1,dir:0,loading:2,target:3}};var rpU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Cg={},zKl=(Cg[1]=null,Cg[2]=function(p,y){return y instanceof IX?ye(y):v6.toString()},Cg[3]=function(p,y){return TB(y)?_.xX(y):rpU.test(String(y))?String(y):v6.toString()},Cg[4]=function(p,y){return y instanceof SZ?_.LO(y):v6.toString()},Cg[5]=function(p,y){return String(y)},Cg[7]=null,Cg[8]=null,Cg[10]=null,Cg);var Drt=Symbol("Pb");var QR5=function(p){var y=SLQ,l=p,q="",t="",E=1;p<0&&(p=-p);if(p===Infinity)p=(Infinity*Math.sign(l)).toString();else{for(var e=0;e<FH$.length;e++){var C=FH$[e];E=y[C];if(p>=E||E<=1&&p>.1*E){q=C;break}}q?(q+="B",t=" "):E=1;p=Math.round(l/E*10)/10+t+q}return p},FH$="Y Z E P T G M K  m u n".split(" "),SLQ={"":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};_.LHr=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 bB={};RegExp.prototype.hasOwnProperty("sticky");var Ztt=function(p){p=String(p);for(var y=function(q,t,E){for(var e=Math.min(t.length-E,q.length),C=0;C<e;C++){var u=t[E+C];if(q[C]!==("A"<=u&&u<="Z"?u.toLowerCase():u))return!1}return!0},l=0;(l=p.indexOf("<",l))!=-1;){if(y("\x3c/script",p,l)||y("\x3c!--",p,l))return"zSoyz";
l+=1}return p};var oe={default:"__default"};var qM5=Object.prototype.hasOwnProperty;pKm.prototype=Object.create(null);var cK=EHo();var JM=null;var Ut5=function(p){this.created=[];this.deleted=[];this.node=p};var $t5=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var p=this,y=p;p;)y=p,p=p.parentNode;return y};var cK5=function(p,y){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=p;this.key=y;this.text=void 0};var p6=null,yi=null,YJ=null,qV=null,RI5=[],uz_=hI_,tM=[],EY=[],NiL=function(p){return jpR(function(y,l,q){YJ=yi=y;yi=null;l(q);CXo(null);yi=YJ;YJ=YJ.parentNode;return y},p)}(),k46=function(p){return jpR(function(y,l,q){var t={nextSibling:y};
yi=t;l(q);YJ&&CXo(y.nextSibling);return t===yi?null:yi},p)}();var cu=[],nH_=0;var ec=new pKm;var dW=new pKm;var kXU=EHo(),gH8=kXU[oe.default],VW_=kXU.style,AKm=["focusin","focusout"],wKu="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var WXo=function(){},qnR=function(){},jGt=function(){},mfL=function(){};var uB=Symbol("Wb");var Ll6,Fl_=SML;var Pu=Symbol("Xb");var $fR=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(" ")),
Uft=new Set(["a","font","script","style","title"]);var Gi={setUp:oHt,tearDown:oHt,log:oHt,logNodeRange:oHt,graft:function(p,y){y()}};var Qi={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var K6=null,wT=function(p,y){iB.call(this,p);var l=this;this.functionComponent=y;this.hooks=[];this.hookCounter=0;this.disposeEffects=xJ(function(q){l.effectContext=q;_.TP(function(){Jhm(l,l.el)})},ub.alwaysTrackContexts||!!Er)};
_.A(wT,iB);wT.prototype.render=function(p){var y=K6;K6=this;this.hookCounter=0;var l=ae(gT),q=_.JU(this.effectContext);try{return Ljj("render",this.componentName),this.functionComponent(p)}finally{kRL("render",this.componentName),_.JU(q),ae(l),K6=y}};
_.Jh.Object.defineProperties(wT.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return rp8(this.functionComponent)}}});var bxL=Symbol("kc"),uKR=function(p,y,l){this.afterRenderCallbacks=null;this.kind=p;this.props=y;this.children=l};
_.A(uKR,MV);uKR.prototype.render=function(){var p=CLa(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var y=_.c(this.afterRenderCallbacks),l=y.next();!l.done;l=y.next())l=l.value,p=l(p);return p};
uKR.prototype.getChildren=function(){return this.children};var Gcg=[];tF_=function(p){throw Error("ob`"+p.debugName);};
(function(){var p=JM;JM=function(y){p==null||p(y);PLm(y)}})();var NJZ=new WeakMap,D$r=0;var HTU=void 0,TJM={},x$U=new WeakMap,vsu={getComponent:function(p){if(p.hasAttribute("ng-version"))return TJM;if(!p.__wizComponent)return null;p=p.__wizComponent;x$U.set(p.propsAndState,p);return p.propsAndState},
getDirectiveMetadata:function(p){if(p===TJM)return{framework:"wiz",name:"<Root>",props:{}};p=x$U.get(p);if(!p)throw Error("lc");return{framework:"wiz",name:p.name,props:Object.fromEntries(Object.keys(p.props).map(function(y){return[y,y]}))}},
"\u0275setProfiler":function(p){var y;(y=HTU)==null||y();HTU=gnt(function(){p(2)})},
getInjector:function(p){return p.__wizComponent},
"\u0275getSignalGraph":function(p){var y;p=(y=p.effects)!=null?y:[];var l=Ahu(p),q=Array.from(l.keys());y=[];p=[];for(var t=new Map,E=0;E<q.length;E++)t.set(q[E],E);l=_.c(l.entries());for(q=l.next();!q.done;q=l.next()){E=_.c(q.value);q=E.next().value;var e=E.next().value;E=q;q=t.get(E);var C=NJZ.get(E);C||(C=D$r.toString(),NJZ.set(E,C),D$r++);var u=void 0,a=(u=E.debugName)!=null?u:"";u=a.startsWith("[signal]")?a:a.replace(/@.+/,"");if(E.kind==="computed"){a=E.computation;var m=void 0;y.push({label:u,
value:E.value,kind:E.kind,epoch:E.version,debuggableFn:(m=a.userFn)!=null?m:a,id:C})}else if(E.kind==="signal")y.push({label:u,value:E.value,kind:E.kind,epoch:E.version,id:C});else if(E.kind==="effect"){m=void 0;a=(m=E.effectFn)!=null?m:void 0;var U=m=void 0;y.push({label:u,kind:E.kind,epoch:E.version,debuggableFn:(U=(m=a)==null?void 0:m.userFn)!=null?U:a,id:C})}else y.push({label:u,kind:E.kind,epoch:E.version,id:C});E=_.c(e);for(e=E.next();!e.done;e=E.next())p.push({consumer:q,producer:t.get(e.value)})}return{nodes:y,
edges:p}},
isSignal:function(p){return typeof p==="function"&&p[jh]!==void 0}};Object.assign({},iTN,{effectType:gq,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var p=this.elementRef;var y;p.element!=null||(p.element=(y=p.document.getElementById(p.value))!=null?y:void 0);p=p.element;for(y=this.attributes;y;){var l=y.signal();l!==y.prevValue&&(y.prevValue=l,PXc.has(y.name)?Or(p,y.name,l?"":null):Or(p,y.name,l));y=y.next}}});Object.assign({},iTN,{effectType:gq,hasRun:!0});_.W.debugName="RlDudd";var Zxu={nonNullableCondIsNull:function(){return Error("rc")}};var w26=function(){this.map=new Map};
w26.prototype.push=function(p,y){var l=this.map;l.has(p)&&(this.multi||(this.multi=new Map),this.multi.set(y,l.get(p)));l.set(p,y)};
w26.prototype.pop=function(p){var y=this.map,l=y.get(p),q;l!==void 0&&((q=this.multi)==null?0:q.has(l))?(y.set(p,this.multi.get(l)),this.multi.delete(l)):y.delete(p);return l};_.rT.debugName="nsTGHd";_.Sc.debugName="tbhMcf";_.FF.debugName="zyMFzb";_.L6.debugName="vI1rtf";_.kco={OUT_OF_ORDER_HOOK_CALL:function(p){return Error("sc`"+p)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("tc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("uc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("vc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(p,y){return Error("wc`"+((y===void 0?0:y)?"IDOM":"Reactive")+"`"+p)},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(p,y){return Error("xc`"+p+"`"+y)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(p){return Error("yc`"+p)},
USE_ELEMENT_NOT_ASSIGNED:function(p){return Error("zc`"+String(p))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(p){return Error("Ac`"+String(p))}};Ll6=RoL;var vcL=Symbol("Bc");tYR({beforeRender:function(p){var y=_.JU(p.effectContext);try{var l;((l=p.__syncEffects)==null?0:l.length)&&df6(p.__syncEffects)}finally{_.JU(y)}},
didPatch:function(p){var y=_.JU(p.effectContext);try{var l;((l=p.__syncEffects)==null?0:l.length)&&df6(p.__syncEffects)}finally{_.JU(y)}},
didUnmount:function(p){var y;((y=p.hooks)==null?0:y.length)&&p.hooks.forEach(X2m)}});var BJU,fpZ,vnr;BJU=_.l_.window;_.XF=(BJU==null?void 0:(fpZ=BJU.yt)==null?void 0:fpZ.config_)||(BJU==null?void 0:(vnr=BJU.ytcfg)==null?void 0:vnr.data_)||{};_.e0("yt.config_",_.XF);var XsO={},Yn5=[];_.SM=function(p){var y=_.oX.apply(1,arguments);var l=Error.call(this,p);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.args=[].concat(_.xq(y));Object.setPrototypeOf(this,this.constructor.prototype)};
_.A(_.SM,Error);var pzo=function(p,y,l){this.actionName=p;this.optionalAction=y===void 0?!1:y;this.args=l===void 0?null:l;this.returnValue=[]};_.uK=function(p){this.name=p};_.zX=new _.uK("signalAction");var eSu=/^[\w.]*$/,qbg={q:!0,search_query:!0},lbL=String(yOt);var RL;RL=Symbol("Cc");_.WE=function(p){this.name=p};
_.WE.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var hSt=function(p){this.key=p},RSg=function(p){this.deferredKey=p},u_8=function(){var p=this;
this.providers=new Map;this.JSC$10390_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(p.providers)}}};
u_8.prototype.addProvider=function(p){this.providers.set(p.provide,p);var y=this.JSC$10390_deferred.get(p.provide);if(y)try{y.resolver(this.resolve(p.provide))}catch(l){y.rejector(l)}};
u_8.prototype.resolve=function(p){return p instanceof RSg?d$P(this,p):p instanceof hSt?OTM(this,p.key,[],!0):OTM(this,p,[])};
var d$P=function(p,y){y=y.deferredKey;if(p.JSC$10390_deferred.has(y))return p.JSC$10390_deferred.get(y).promise;var l={};l.promise=new Promise(function(q,t){l.resolver=q;l.rejector=t});
p.JSC$10390_deferred.set(y,l);return l.promise},OTM=function(p,y,l,q){q=q===void 0?!1:q;
if(l.indexOf(y)>-1)throw Error("Dc`"+y);if(p.cachedValues.has(y))return p.cachedValues.get(y);if(!p.providers.has(y)){if(q)return;throw Error("Ec`"+y);}q=p.providers.get(y);l.push(y);if(q.useValue!==void 0)var t=q.useValue;else if(q.useFactory)t=q[RL]?onr(p,q[RL],l):[],t=q.useFactory.apply(q,_.xq(t));else if(q.useClass){t=q.useClass;var E=t[RL]?onr(p,t[RL],l):[];t=new (Function.prototype.bind.apply(t,[null].concat(_.xq(E))))}else throw Error("Fc`"+y);l.pop();q.skipCache||p.cachedValues.set(y,t);return t},
onr=function(p,y,l){return y?y.map(function(q){return q instanceof hSt?OTM(p,q.key,l,!0):OTM(p,q,l)}):[]};var Clt;var Yn=new _.WE("ENDPOINT_HANDLER_TOKEN");_.Id=new _.uK("urlEndpoint");var zKM=function(){this.data=[];this.cachedPackedInt52=-1};
zKM.prototype.set=function(p,y){y=y===void 0?!0:y;0<=p&&p<52&&Number.isInteger(p)&&this.data[p]!==y&&(this.data[p]=y,this.cachedPackedInt52=-1)};
zKM.prototype.get=function(p){return!!this.data[p]};
var YLQ=function(p){p.cachedPackedInt52===-1&&(p.cachedPackedInt52=p.data.reduce(function(y,l,q){return y+(l?Math.pow(2,q):0)},0));
return p.cachedPackedInt52};var VNt=function(p){var y=Ipv;p=p===void 0?_.I4("yt.ads.biscotti.lastId_")||"":p;var l=Object,q=l.assign,t={};t.dt=dFQ;t.flash="0";a:{try{var E=y.JSC$10395_win_.top.location.href}catch(sc){E=2;break a}E=E?E===y.doc_.location.href?0:1:2}t=(t.frm=E,t);try{t.u_tz=-(new Date).getTimezoneOffset();try{var e=p2.history.length}catch(sc){e=0}t.u_his=e;var C;t.u_h=(C=p2.screen)==null?void 0:C.height;var u;t.u_w=(u=p2.screen)==null?void 0:u.width;var a;t.u_ah=(a=p2.screen)==null?void 0:a.availHeight;var m;t.u_aw=
(m=p2.screen)==null?void 0:m.availWidth;var U;t.u_cd=(U=p2.screen)==null?void 0:U.colorDepth}catch(sc){}e=y.JSC$10395_win_;try{var b=e.screenX;var P=e.screenY}catch(sc){}try{var Z=e.outerWidth;var K=e.outerHeight}catch(sc){}try{var F=e.innerWidth;var L=e.innerHeight}catch(sc){}try{var T=e.screenLeft;var O=e.screenTop}catch(sc){}try{F=e.innerWidth,L=e.innerHeight}catch(sc){}try{var f=e.screen.availWidth;var v=e.screen.availTop}catch(sc){}b=[T,O,b,P,f,v,Z,K,F,L];P=I76(!1,y.JSC$10395_win_.top);Z={};
var z=z===void 0?_.l_:z;K=new zKM;"SVGElement"in z&&"createElementNS"in z.document&&K.set(0);F=Bri();F["allow-top-navigation-by-user-activation"]&&K.set(1);F["allow-popups-to-escape-sandbox"]&&K.set(2);z.crypto&&z.crypto.subtle&&K.set(3);"TextDecoder"in z&&"TextEncoder"in z&&K.set(4);z=YLQ(K);y=(Z.bc=z,Z.bih=P.height,Z.biw=P.width,Z.brdim=b.join(),Z.vis=vJg(y.doc_),Z.wgl=!!p2.WebGLRenderingContext,Z);l=q.call(l,t,y);l.ca_type="image";p&&(l.bid=p);return l},Ipv=new function(){var p=window.document;
this.JSC$10395_win_=window;this.doc_=p};
_.e0("yt.ads_.signals_.getAdSignalsString",function(p){return sJo(VNt(p))});_.$t();navigator.userAgent.indexOf(" (CrKey ");var $nl="XMLHttpRequest"in _.l_?function(){return new XMLHttpRequest}:null;var pKr="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),yKv=[].concat(_.xq(pKr),["client_dev_set_cookie"]);var MNa={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"},nwm="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(_.xq(pKr)),LOj=!1,Pll=_.gwj,rOo=ZyL;var tot=[{messageFn:function(p){return"Cannot read property '"+p.key+"'"},
patternsForType:{Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{regexp:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{messageFn:function(p){return"Cannot call '"+p.key+"'"},
patternsForType:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,
groups:["key"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{messageFn:function(p){return p.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var leP={messageWeights:[],callbackWeights:[{callback:Hyj,weight:500},{callback:T$l,weight:500}]};var qMr=function(){this.callbackWeights=[];this.messageWeights=[]},spB,sWl=function(){if(!spB){var p=spB=new qMr;
p.messageWeights.length=0;p.callbackWeights.length=0;mJl(p,leP)}return spB},mJl=function(p,y){y.messageWeights&&p.messageWeights.push.apply(p.messageWeights,y.messageWeights);
y.callbackWeights&&p.callbackWeights.push.apply(p.callbackWeights,y.callbackWeights)};_.j6(_.V$,_.Sr);_.V$.prototype.subscribe=function(p,y,l){var q=this.topics_[p];q||(q=this.topics_[p]=[]);var t=this.JSC$10419_key_;this.subscriptions_[t]=p;this.subscriptions_[t+1]=y;this.subscriptions_[t+2]=l;this.JSC$10419_key_=t+3;q.push(t);return t};
var tW$=function(p){var y=eWc,l=!1,q=y.subscribe("handleError",function(t){l||(l=!0,this.unsubscribeByKey(q),p.apply(void 0,arguments))},y)};
_.V$.prototype.unsubscribe=function(p,y,l){if(p=this.topics_[p]){var q=this.subscriptions_;if(p=p.find(function(t){return q[t+1]==y&&q[t+2]==l}))return this.unsubscribeByKey(p)}return!1};
_.V$.prototype.unsubscribeByKey=function(p){var y=this.subscriptions_[p];if(y){var l=this.topics_[y];this.publishDepth_!=0?(this.pendingKeys_.push(p),this.subscriptions_[p+1]=function(){}):(l&&_.Oc(l,p),delete this.subscriptions_[p],delete this.subscriptions_[p+1],delete this.subscriptions_[p+2])}return!!y};
_.V$.prototype.publish=function(p,y){var l=this.topics_[p];if(l){var q=Array(arguments.length-1),t=arguments.length,E;for(E=1;E<t;E++)q[E-1]=arguments[E];if(this.async_)for(E=0;E<l.length;E++)t=l[E],EHi(this.subscriptions_[t+1],this.subscriptions_[t+2],q);else{this.publishDepth_++;try{for(E=0,t=l.length;E<t&&!this.isDisposed();E++){var e=l[E];this.subscriptions_[e+1].apply(this.subscriptions_[e+2],q)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;l=this.pendingKeys_.pop();)this.unsubscribeByKey(l)}}return E!=
0}return!1};
var EHi=function(p,y,l){_.kv(function(){p.apply(y,l)})};
_.V$.prototype.clear=function(p){if(p){var y=this.topics_[p];y&&(y.forEach(this.unsubscribeByKey,this),delete this.topics_[p])}else this.subscriptions_.length=0,this.topics_={}};
_.V$.prototype.getCount=function(p){if(p){var y=this.topics_[p];return y?y.length:0}p=0;for(y in this.topics_)p+=this.getCount(y);return p};
_.V$.prototype.disposeInternal=function(){_.V$.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var eWc=new _.V$;var U1=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(U1,_.RX);U1.prototype.getColdHashData=function(){return _.fq(this,3)};
U1.prototype.getHotHashData=function(){return _.fq(this,5)};
U1.prototype.setHotHashData=function(p){return _.Fq(this,5,p)};var laL=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(laL,_.RX);var Qx5=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Qx5,_.RX);_.J=Qx5.prototype;_.J.getDeviceId=function(){return _.fq(this,6)};
_.J.getExperimentIds=function(p){var y=_.pO(this,9,_.aT,3,!0);TM(y,p);return y[p]};
_.J.getPlayerType=function(){return _.v0(this,36)};
_.J.setHomeGroupInfo=function(p){return _.gu(this,81,p)};
_.J.clearLocationPlayabilityToken=function(){return _.mj(this,89)};var M$=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(M$,_.RX);M$.prototype.setKey=function(p){return _.Fq(this,1,p)};
M$.prototype.getValue=function(){return Oa(this,2,w$l)};
var w$l=[2,3,4,5,6];var JKQ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(JKQ,_.RX);JKQ.prototype.setTrackingParams=function(p){return _.mj(this,1,_.HU(p,!1))};var KRg=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(KRg,_.RX);var tiL=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(tiL,_.RX);tiL.prototype.getExperimentIds=function(p){var y=_.pO(this,5,_.q$6,3,!0);TM(y,p);return y[p]};var KT=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(KT,_.RX);KT.prototype.getToken=function(){return _.Vy(this,2)};
KT.prototype.setToken=function(p){return _.Fq(this,2,p)};var gJ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(gJ,_.RX);gJ.prototype.setSafetyMode=function(p){return _.a7(this,5,p)};var Zp=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Zp,_.RX);Zp.prototype.setClient=function(p){return _.gu(this,1,p)};var sUL={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 qKc;_.x9=function(){var p=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.l_.addEventListener("beforeinstallprompt",function(y){y.preventDefault();p.deferredInstallPrompt=y});
_.l_.addEventListener("appinstalled",function(){p.appInstalledEventFired=!0},{once:!0})};
qKc=function(){if(!_.l_.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.l_.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.l_.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.l_.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.l_.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(p){return"WEB_DISPLAY_MODE_UNKNOWN"}};var cBa=function(){this.syncHeaders=!0},eAt=function(p){var y={},l=[];
"USER_SESSION_ID"in _.XF&&l.push({key:"u",value:_.OY("USER_SESSION_ID")});if(l=_.Krl(l))y.Authorization=l,l=p=p==null?void 0:p.sessionIndex,l===void 0&&(l=Number(_.OY("SESSION_INDEX",0)),l=isNaN(l)?0:l),_.n("voice_search_auth_header_removal")||(y["X-Goog-AuthUser"]=l.toString()),"INNERTUBE_HOST_OVERRIDE"in _.XF||(y["X-Origin"]=window.location.origin),p===void 0&&"DELEGATED_SESSION_ID"in _.XF&&(y["X-Goog-PageId"]=_.OY("DELEGATED_SESSION_ID"));return y};var cKr={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var aL=_.I4("ytglobal.prefsUserPrefsPrefs_")||{},eIU;_.e0("ytglobal.prefsUserPrefsPrefs_",aL);_.m4=function(){this.cookieName=_.OY("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.OY("ALT_PREF_COOKIE_DOMAIN","youtube.com");var p=_.Q$.get(this.cookieName,void 0);p&&this.parse(p)};
_.w$=function(){eIU||(eIU=new _.m4);return eIU};
_.m4.prototype.get=function(p,y){hIN(p);CXi(p);p=aL[p]!==void 0?aL[p].toString():null;return p!=null?p:y?y:""};
_.m4.prototype.set=function(p,y){hIN(p);CXi(p);if(y==null)throw Error("Ic");aL[p]=y.toString()};
_.m4.prototype.getFlag=function(p){return!!((uzN("f"+(Math.floor(p/31)+1))||0)&1<<p%31)};
_.il=function(p,y,l){p="f"+(Math.floor(y/31)+1);y=1<<y%31;var q=uzN(p)||0;q=l?q|y:q&~y;q===0?delete aL[p]:(l=q.toString(16),aL[p]=l.toString())};
_.m4.prototype.remove=function(p){hIN(p);CXi(p);delete aL[p]};
_.m4.prototype.save=function(){var p=!0;_.n("web_secure_pref_cookie_killswitch")&&(p=!1);_.Kh(this.cookieName,this.dump(),63072E3,this.cookieDomain,p)};
_.m4.prototype.clear=function(){_.Ts.clear(aL)};
_.m4.prototype.dump=function(){var p=[],y;for(y in aL)aL.hasOwnProperty(y)&&p.push(y+"="+encodeURIComponent(String(aL[y])));return p.join("&")};
var CXi=function(p){if(/^f([1-9][0-9]*)$/.test(p))throw Error("Jc`"+p);},hIN=function(p){if(!/^\w+$/.test(p))throw Error("Kc`"+p);
},uzN=function(p){p=aL[p]!==void 0?aL[p].toString():null;
return p!=null&&/^[A-Fa-f0-9]+$/.test(p)?parseInt(p,16):null};
_.m4.prototype.parse=function(p){p=decodeURIComponent(p).split("&");for(var y=0;y<p.length;y++){var l=p[y].split("="),q=l[0];(l=l[1])&&(aL[q]=l.toString())}};var zS6={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"},E9l={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},JB8={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},Ib8={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Ab;_.UA=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.rJ=function(p,y,l){return p.addJob(y,0,l)};
_.UA.prototype.addLowPriorityJob=function(p,y){return this.addJob(p,1,y)};
_.D6=function(p,y,l){return p.addJob(y,2,l)};
_.Xp=function(p,y,l){return p.addJob(y,3,l)};
_.ZR=function(p,y,l){return p.addJob(y,4,l)};
Ab=function(p){var y=_.I4("yt.scheduler.instance.addImmediateJob");y?y(p):p()};
_.UA.prototype.debounce=function(p,y,l){var q=this,t=0,E=function(){t&&q.cancelJob(t);t=q.addJob(p,y,l);q.cancelDebouncedJobMap.set(E,t)};
return E};
_.UA.prototype.cancelThrottle=function(p){(p=this.cancelThrottledJobMap.get(p))&&p()};var $f=function(){_.UA.apply(this,arguments)};
_.A($f,_.UA);_.B3=function(){$f.instance||($f.instance=new $f);return $f.instance};
$f.prototype.addJob=function(p,y,l){l!==void 0&&Number.isNaN(Number(l))&&(l=void 0);var q=_.I4("yt.scheduler.instance.addJob");return q?q(p,y,l):l===void 0?(p(),NaN):_.nh(p,l||0)};
$f.prototype.cancelJob=function(p){if(p===void 0||!Number.isNaN(Number(p))){var y=_.I4("yt.scheduler.instance.cancelJob");y?y(p):_.PC(p)}};
$f.prototype.start=function(){var p=_.I4("yt.scheduler.instance.start");p&&p()};
$f.prototype.pause=function(){var p=_.I4("yt.scheduler.instance.pause");p&&p()};
_.TR=_.B3();_.F3.prototype.set=function(p,y){y===void 0?this.mechanism.remove(p):this.mechanism.set(p,(0,_.xv)(y))};
_.F3.prototype.get=function(p){try{var y=this.mechanism.get(p)}catch(l){return}if(y!==null)try{return JSON.parse(y)}catch(l){throw"Storage: Invalid value was encountered";}};
_.F3.prototype.remove=function(p){this.mechanism.remove(p)};var jx=function(p){this.mechanism=p};
_.j6(jx,_.F3);var RIr=function(p){this.data=p},WlU=function(p){return p===void 0||p instanceof RIr?p:new RIr(p)};
jx.prototype.set=function(p,y){jx.superClass_.set.call(this,p,WlU(y))};
jx.prototype.getWrapper=function(p){p=jx.superClass_.get.call(this,p);if(p===void 0||p instanceof Object)return p;throw"Storage: Invalid value was encountered";};
jx.prototype.get=function(p){if(p=this.getWrapper(p)){if(p=p.data,p===void 0)throw"Storage: Invalid value was encountered";}else p=void 0;return p};_.j6(Lh,jx);_.aei=function(p){var y=p.creation;p=p.expiration;return!!p&&p<_.$t()||!!y&&y>_.$t()};
Lh.prototype.set=function(p,y,l){if(y=WlU(y)){if(l){if(l<_.$t()){Lh.prototype.remove.call(this,p);return}y.expiration=l}y.creation=_.$t()}Lh.superClass_.set.call(this,p,y)};
Lh.prototype.getWrapper=function(p,y){var l=Lh.superClass_.getWrapper.call(this,p);if(l)if(!y&&_.aei(l))Lh.prototype.remove.call(this,p);else return l};var bK=function(){};
bK.prototype.next=function(){return Gv};
var Gv={done:!0,value:void 0},PE=function(p){return{value:p,done:!1}};
bK.prototype.__iterator__=function(){return this};
_.mtN=function(p){if(p instanceof bK)return p;if(typeof p.__iterator__=="function")return p.__iterator__(!1);if(_.zl(p)){var y=0,l=new bK;l.next=function(){for(;;){if(y>=p.length)return Gv;if(y in p)return PE(p[y++]);y++}};
return l}throw Error("Lc");};var Utr=function(p){if(p instanceof A6||p instanceof Zm||p instanceof My)return p;if(typeof p.next=="function")return new A6(function(){return p});
if(typeof p[Symbol.iterator]=="function")return new A6(function(){return p[Symbol.iterator]()});
if(typeof p.__iterator__=="function")return new A6(function(){return p.__iterator__()});
throw Error("Mc");},A6=function(p){this.func_=p};
A6.prototype.__iterator__=function(){return new Zm(this.func_())};
A6.prototype[Symbol.iterator]=function(){return new My(this.func_())};
A6.prototype.toEs6=function(){return new My(this.func_())};
var Zm=function(p){this.JSC$10503_iter_=p};
_.A(Zm,bK);Zm.prototype.next=function(){return this.JSC$10503_iter_.next()};
Zm.prototype[Symbol.iterator]=function(){return new My(this.JSC$10503_iter_)};
Zm.prototype.toEs6=function(){return new My(this.JSC$10503_iter_)};
var My=function(p){A6.call(this,function(){return p});
this.JSC$10506_iter_=p};
_.A(My,A6);My.prototype.next=function(){return this.JSC$10506_iter_.next()};var $tr=function(){};var VN=function(){};
_.j6(VN,$tr);VN.prototype.getCount=function(){for(var p=0,y=_.c(this),l=y.next();!l.done;l=y.next())p++;return p};
VN.prototype[Symbol.iterator]=function(){return Utr(this.__iterator__(!0)).toEs6()};
VN.prototype.clear=function(){var p=Array.from(this);p=_.c(p);for(var y=p.next();!y.done;y=p.next())this.remove(y.value)};_.j6(kh,VN);_.J=kh.prototype;_.J.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var p=this.storage_;if(p)try{p.setItem("__sak","1");p.removeItem("__sak");var y=!0}catch(l){y=l instanceof DOMException&&(l.name==="QuotaExceededError"||l.code===22||l.code===1014||l.name==="NS_ERROR_DOM_QUOTA_REACHED")&&p&&p.length!==0}else y=!1;this.cachedIsStorageAvailable_=y}return this.cachedIsStorageAvailable_};
_.J.set=function(p,y){gI(this);try{this.storage_.setItem(p,y)}catch(l){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.J.get=function(p){gI(this);p=this.storage_.getItem(p);if(typeof p!=="string"&&p!==null)throw"Storage mechanism: Invalid value was encountered";return p};
_.J.remove=function(p){gI(this);this.storage_.removeItem(p)};
_.J.getCount=function(){gI(this);return this.storage_.length};
_.J.__iterator__=function(p){gI(this);var y=0,l=this.storage_,q=new bK;q.next=function(){if(y>=l.length)return Gv;var t=l.key(y++);if(p)return PE(t);t=l.getItem(t);if(typeof t!=="string")throw"Storage mechanism: Invalid value was encountered";return PE(t)};
return q};
_.J.clear=function(){gI(this);this.storage_.clear()};
_.J.key=function(p){gI(this);return this.storage_.key(p)};
var gI=function(p){if(p.storage_==null)throw Error("Nc");p.isAvailable()||qa(Error("Nc"))};_.j6(yeR,kh);_.j6(lFu,kh);_.j6(NM,VN);NM.prototype.set=function(p,y){this.mechanism_.set(this.JSC$10521_prefix_+p,y)};
NM.prototype.get=function(p){return this.mechanism_.get(this.JSC$10521_prefix_+p)};
NM.prototype.remove=function(p){this.mechanism_.remove(this.JSC$10521_prefix_+p)};
NM.prototype.__iterator__=function(p){var y=this.mechanism_[Symbol.iterator](),l=this,q=new bK;q.next=function(){var t=y.next();if(t.done)return t;for(t=t.value;t.slice(0,l.JSC$10521_prefix_.length)!=l.JSC$10521_prefix_;){t=y.next();if(t.done)return t;t=t.value}return PE(p?t.slice(l.JSC$10521_prefix_.length):l.mechanism_.get(t))};
return q};_.XL=function(p){this.expiringStorage_=(p=_.qtl(p))?new Lh(p):null;this.JSC$10525_domain_=document.domain||window.location.hostname};
_.XL.prototype.set=function(p,y,l,q){l=l||31104E3;this.remove(p);if(this.expiringStorage_)try{this.expiringStorage_.set(p,y,Date.now()+l*1E3);return}catch(E){}var t="";if(q)try{t=escape((0,_.xv)(y))}catch(E){return}else t=escape(y);_.Kh(p,t,l,this.JSC$10525_domain_)};
_.XL.prototype.get=function(p,y){var l=void 0,q=!this.expiringStorage_;if(!q)try{l=this.expiringStorage_.get(p)}catch(t){q=!0}if(q&&(l=_.Q$.get(p,void 0))&&(l=unescape(l),y))try{l=JSON.parse(l)}catch(t){this.remove(p),l=void 0}return l};
_.XL.prototype.remove=function(p){this.expiringStorage_&&this.expiringStorage_.remove(p);_.dnL(p,"/",this.JSC$10525_domain_)};
_.XL.prototype.getCreationTime=function(p){return this.expiringStorage_&&(p=(this.expiringStorage_.getWrapper(p)||{}).creation,typeof p==="number")?p:null};var t$l=function(){var p;return function(){p||(p=new _.XL("ytidb"));return p}}();var Jet;_.HC=[];Jet=!1;var M$t=cel||e3m;var QN={},jpZ=(QN.AUTH_INVALID="No user identifier specified.",QN.EXPLICIT_ABORT="Transaction was explicitly aborted.",QN.IDB_NOT_SUPPORTED="IndexedDB is not supported.",QN.MISSING_INDEX="Index not created.",QN.MISSING_OBJECT_STORES="Object stores not created.",QN.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",QN.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",QN.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",QN.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",QN.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",QN.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",QN.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",QN),Kg={},btP=(Kg.AUTH_INVALID="ERROR",Kg.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Kg.EXPLICIT_ABORT="IGNORED",
Kg.IDB_NOT_SUPPORTED="ERROR",Kg.MISSING_INDEX="WARNING",Kg.MISSING_OBJECT_STORES="ERROR",Kg.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Kg.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Kg.QUOTA_EXCEEDED="WARNING",Kg.QUOTA_MAYBE_EXCEEDED="WARNING",Kg.UNKNOWN_ABORT="WARNING",Kg.INCOMPATIBLE_DB_VERSION="WARNING",Kg),wI={},nHN=(wI.AUTH_INVALID=!1,wI.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,wI.EXPLICIT_ABORT=!1,wI.IDB_NOT_SUPPORTED=!1,wI.MISSING_INDEX=!1,wI.MISSING_OBJECT_STORES=!1,wI.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,wI.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,wI.QUOTA_EXCEEDED=!1,wI.QUOTA_MAYBE_EXCEEDED=!0,wI.UNKNOWN_ABORT=!0,wI.INCOMPATIBLE_DB_VERSION=!1,wI),X3=function(p,y,l,q,t){y=y===void 0?{}:y;l=l===void 0?jpZ[p]:l;q=q===void 0?btP[p]:q;t=t===void 0?nHN[p]:t;_.SM.call(this,l,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:p},y));this.type=p;this.message=l;this.level=q;this.retryable=t;Object.setPrototypeOf(this,X3.prototype)};
_.A(X3,_.SM);var Gex=function(p,y){X3.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:y,foundObjectStores:p},jpZ.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Gex.prototype)};
_.A(Gex,X3);var Caj=function(p,y){var l=Error.call(this);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.index=p;this.objectStore=y;Object.setPrototypeOf(this,Caj.prototype)};
_.A(Caj,Error);var uTR=["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 zo=function(p){this.executor=p},oK=function(p){var y=this;
this.state={status:"PENDING"};this.JSC$10553_onFulfilled=[];this.JSC$10553_onRejected=[];p=p.executor;var l=function(t){if(y.state.status==="PENDING"){y.state={status:"FULFILLED",value:t};t=_.c(y.JSC$10553_onFulfilled);for(var E=t.next();!E.done;E=t.next())E=E.value,E()}},q=function(t){if(y.state.status==="PENDING"){y.state={status:"REJECTED",
reason:t};t=_.c(y.JSC$10553_onRejected);for(var E=t.next();!E.done;E=t.next())E=E.value,E()}};
try{p(l,q)}catch(t){q(t)}};
oK.all=function(p){return new oK(new zo(function(y,l){var q=[],t=p.length;t===0&&y(q);for(var E={i$jscomp$464:0};E.i$jscomp$464<p.length;E={i$jscomp$464:E.i$jscomp$464},++E.i$jscomp$464)oK.resolve(p[E.i$jscomp$464]).then(function(e){return function(C){q[e.i$jscomp$464]=C;t--;t===0&&y(q)}}(E)).catch(function(e){l(e)})}))};
oK.resolve=function(p){return new oK(new zo(function(y,l){p instanceof oK?p.then(y,l):y(p)}))};
oK.reject=function(p){return new oK(new zo(function(y,l){l(p)}))};
oK.prototype.then=function(p,y){var l=this,q=p!=null?p:aFl,t=y!=null?y:WNj;return new oK(new zo(function(E,e){l.state.status==="PENDING"?(l.JSC$10553_onFulfilled.push(function(){PX$(l,l,q,E,e)}),l.JSC$10553_onRejected.push(function(){AKr(l,l,t,E,e)})):l.state.status==="FULFILLED"?PX$(l,l,q,E,e):l.state.status==="REJECTED"&&AKr(l,l,t,E,e)}))};
oK.prototype.catch=function(p){return this.then(void 0,p)};
var PX$=function(p,y,l,q,t){try{if(p.state.status!=="FULFILLED")throw Error("Qc");var E=l(p.state.value);E instanceof oK?ZtU(p,y,E,q,t):q(E)}catch(e){t(e)}},AKr=function(p,y,l,q,t){try{if(p.state.status!=="REJECTED")throw Error("Rc");
var E=l(p.state.reason);E instanceof oK?ZtU(p,y,E,q,t):q(E)}catch(e){t(e)}},ZtU=function(p,y,l,q,t){y===l?t(new TypeError("Sc")):l.then(function(E){E instanceof oK?ZtU(p,y,E,q,t):q(E)},function(E){t(E)})};var iK;iK=window;_.uM=iK.ytcsi&&iK.ytcsi.now?iK.ytcsi.now:iK.performance&&iK.performance.timing&&iK.performance.now&&iK.performance.timing.navigationStart?function(){return iK.performance.timing.navigationStart+iK.performance.now()}:function(){return(new Date).getTime()};var IK=function(p,y){this.JSC$10565_wrapped=p;this.options=y;this.transactionCount=0;this.startedMs=Math.round((0,_.uM)());this.hasUnknownAbortedTransaction=!1},gHU,QpB,Fa,itN;
IK.prototype.add=function(p,y,l){return _.s1(this,[p],{mode:"readwrite",enableRetries:!0},function(q){return q.objectStore(p).add(y,l)})};
IK.prototype.clear=function(p){return _.s1(this,[p],{mode:"readwrite",enableRetries:!0},function(y){return y.objectStore(p).clear()})};
IK.prototype.close=function(){this.JSC$10565_wrapped.close();var p;((p=this.options)==null?0:p.closed)&&this.options.closed()};
IK.prototype.count=function(p,y){return _.s1(this,[p],{mode:"readonly",enableRetries:!0},function(l){return l.objectStore(p).count(y)})};
var O1=function(p,y,l){p=p.JSC$10565_wrapped.createObjectStore(y,l);return new rI(p)};
IK.prototype.delete=function(p,y){return _.s1(this,[p],{mode:"readwrite",enableRetries:!0},function(l){return l.objectStore(p).delete(y)})};
var MW$=function(p,y){return _.s1(p,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(l){return l.objectStore("ResponseStore").index("byInterface").delete(y)})};
IK.prototype.get=function(p,y){return _.s1(this,[p],{mode:"readonly",enableRetries:!0},function(l){return l.objectStore(p).get(y)})};
IK.prototype.getAll=function(p,y,l){return _.s1(this,[p],{mode:"readonly",enableRetries:!0},function(q){return q.objectStore(p).getAll(y,l)})};
IK.prototype.put=function(p,y,l){return _.s1(this,[p],{mode:"readwrite",enableRetries:!0},function(q){return q.objectStore(p).put(y,l)})};
IK.prototype.objectStoreNames=function(){return Array.from(this.JSC$10565_wrapped.objectStoreNames)};
_.s1=function(p,y,l,q){var t,E,e,C,u,a,m,U,b,P,Z,K;return _.h(function(F){switch(F.nextAddress){case 1:var L={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof l==="string"?L.mode=l:Object.assign(L,l);t=L;p.transactionCount++;E=t.enableRetries?3:1;e=0;case 2:if(C){F.jumpTo(4);break}e++;u=Math.round((0,_.uM)());_.Ve(F,5);a=p.JSC$10565_wrapped.transaction(y,t.mode);L=F.yield;var T=new jr6(a);T=VWN(T,q);return L.call(F,T,7);case 7:return m=F.yieldResult,U=Math.round((0,_.uM)()),
gHU(p,u,U,e,void 0,y.join(),t),F.return(m);case 5:b=_.i6(F);P=Math.round((0,_.uM)());Z=R3l(b,p.JSC$10565_wrapped.name,y.join(),p.JSC$10565_wrapped.version);if((K=Z instanceof X3&&!Z.retryable)||e>=E)gHU(p,u,P,e,Z,y.join(),t),C=Z;F.jumpTo(2);break;case 4:return F.return(Promise.reject(C))}})};
gHU=function(p,y,l,q,t,E,e){y=l-y;t?(t instanceof X3&&(t.type==="QUOTA_EXCEEDED"||t.type==="QUOTA_MAYBE_EXCEEDED")&&xh("QUOTA_EXCEEDED",{dbName:fh(p.JSC$10565_wrapped.name),objectStoreNames:E,transactionCount:p.transactionCount,transactionMode:e.mode}),t instanceof X3&&t.type==="UNKNOWN_ABORT"&&(l-=p.startedMs,l<0&&l>=2147483648&&(l=0),xh("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:E,transactionDuration:y,transactionCount:p.transactionCount,dbDuration:l}),p.hasUnknownAbortedTransaction=!0),
QpB(p,!1,q,E,y,e.tag),_.To(t)):QpB(p,!0,q,E,y,e.tag)};
QpB=function(p,y,l,q,t,E){xh("TRANSACTION_ENDED",{objectStoreNames:q,connectionHasUnknownAbortedTransaction:p.hasUnknownAbortedTransaction,duration:t,isSuccessful:y,tryCount:l,tag:E===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":E})};
IK.prototype.getVersion=function(){return this.JSC$10565_wrapped.version};
IK.prototype.getName=function(){return this.JSC$10565_wrapped.name};
var rI=function(p){this.JSC$10579_wrapped=p};
rI.prototype.add=function(p,y){return Yh(this.JSC$10579_wrapped.add(p,y))};
rI.prototype.autoIncrement=function(){return this.JSC$10579_wrapped.autoIncrement};
rI.prototype.clear=function(){return Yh(this.JSC$10579_wrapped.clear()).then(function(){})};
var o7=function(p,y,l){p.JSC$10579_wrapped.createIndex(y,l,{unique:!1})};
rI.prototype.count=function(p){return Yh(this.JSC$10579_wrapped.count(p))};
var KlZ=function(p,y){return E1(p,{query:y},function(l){return l.delete().then(function(){return l.continue()})}).then(function(){})};
rI.prototype.delete=function(p){return p instanceof IDBKeyRange?KlZ(this,p):Yh(this.JSC$10579_wrapped.delete(p))};
rI.prototype.get=function(p){return Yh(this.JSC$10579_wrapped.get(p))};
rI.prototype.getAll=function(p,y){return"getAll"in IDBObjectStore.prototype?Yh(this.JSC$10579_wrapped.getAll(p,y)):wKQ(this,p,y)};
var wKQ=function(p,y,l){var q=[];return E1(p,{query:y},function(t){if(!(l!==void 0&&q.length>=l))return q.push(t.getValue()),t.continue()}).then(function(){return q})};
rI.prototype.index=function(p){try{return new Sx(this.JSC$10579_wrapped.index(p))}catch(y){if(y instanceof Error&&y.name==="NotFoundError")throw new Caj(p,this.JSC$10579_wrapped.name);throw y;}};
rI.prototype.getName=function(){return this.JSC$10579_wrapped.name};
rI.prototype.keyPath=function(){return this.JSC$10579_wrapped.keyPath};
rI.prototype.put=function(p,y){return Yh(this.JSC$10579_wrapped.put(p,y))};
var E1=function(p,y,l){p=p.JSC$10579_wrapped.openCursor(y.query,y.direction);return itN(p).then(function(q){return $sg(q,l)})},jr6=function(p){var y=this;
this.JSC$10587_wrapped=p;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(l,q){y.JSC$10587_wrapped.addEventListener("complete",function(){l()});
y.JSC$10587_wrapped.addEventListener("error",function(t){t.currentTarget===t.target&&q(y.JSC$10587_wrapped.error)});
y.JSC$10587_wrapped.addEventListener("abort",function(){var t=y.JSC$10587_wrapped.error;if(t)q(t);else if(!y.aborted){t=X3;for(var E=y.JSC$10587_wrapped.objectStoreNames,e=[],C=0;C<E.length;C++){var u=E.item(C);if(u===null)throw Error("Tc");e.push(u)}t=new t("UNKNOWN_ABORT",{objectStoreNames:e.join(),dbName:y.JSC$10587_wrapped.db.name,mode:y.JSC$10587_wrapped.mode});q(t)}})})},VWN=function(p,y){var l=new Promise(function(q,t){try{y(p).then(function(E){q(E)}).catch(t)}catch(E){t(E),p.abort()}});
return Promise.all([l,p.done]).then(function(q){return _.c(q).next().value})};
jr6.prototype.abort=function(){this.JSC$10587_wrapped.abort();this.aborted=!0;throw new X3("EXPLICIT_ABORT");};
jr6.prototype.objectStore=function(p){p=this.JSC$10587_wrapped.objectStore(p);var y=this.objectStoreCache.get(p);y||(y=new rI(p),this.objectStoreCache.set(p,y));return y};
var Sx=function(p){this.JSC$10589_wrapped=p};
Sx.prototype.count=function(p){return Yh(this.JSC$10589_wrapped.count(p))};
Sx.prototype.delete=function(p){return _.R7(this,{query:p},function(y){return y.delete().then(function(){return y.continue()})})};
Sx.prototype.get=function(p){return Yh(this.JSC$10589_wrapped.get(p))};
Sx.prototype.getAll=function(p,y){return"getAll"in IDBIndex.prototype?Yh(this.JSC$10589_wrapped.getAll(p,y)):rKr(this,p,y)};
var rKr=function(p,y,l){var q=[];return _.R7(p,{query:y},function(t){if(!(l!==void 0&&q.length>=l))return q.push(t.getValue()),t.continue()}).then(function(){return q})};
Sx.prototype.keyPath=function(){return this.JSC$10589_wrapped.keyPath};
Sx.prototype.unique=function(){return this.JSC$10589_wrapped.unique};
_.R7=function(p,y,l){p=p.JSC$10589_wrapped.openCursor(y.query===void 0?null:y.query,y.direction===void 0?"next":y.direction);return itN(p).then(function(q){return $sg(q,l)})};
Fa=function(p,y){this.request=p;this.cursor=y};
itN=function(p){return Yh(p).then(function(y){return y?new Fa(p,y):null})};
Fa.prototype.continue=function(p){this.cursor.continue(p);return itN(this.request)};
Fa.prototype.delete=function(){return Yh(this.cursor.delete()).then(function(){})};
Fa.prototype.getValue=function(){return this.cursor.value};
Fa.prototype.update=function(p){return Yh(this.cursor.update(p))};var Lg=function(p,y){this.name=p;this.options=y;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},SMP;
Lg.prototype.openDb=function(p,y,l){l=l===void 0?{}:l;return nyc(p,y,l)};
Lg.prototype.delete=function(p){p=p===void 0?{}:p;return _.yx(this.name,p)};
SMP=function(p,y){return new X3("INCOMPATIBLE_DB_VERSION",{dbName:p.name,oldVersion:p.options.version,newVersion:y})};
_.lM=function(p,y){if(!y)throw OC("openWithToken",fh(p.name));return p.open()};
Lg.prototype.open=function(){var p=this;if(!this.isCompatible)throw SMP(this);if(this.connectionPromise)return this.connectionPromise;var y,l=function(){p.connectionPromise===y&&(p.connectionPromise=void 0)},q={blocking:function(E){E.close()},
closed:l,terminated:l,upgrade:this.options.upgrade},t=function(){var E,e,C,u,a,m,U,b,P,Z;return _.h(function(K){switch(K.nextAddress){case 1:return e=(E=Error().stack)!=null?E:"",_.Ve(K,2),K.yield(p.openDb(p.name,p.options.version,q),4);case 4:for(var F=C=K.yieldResult,L=p.options,T=[],O=_.c(Object.keys(L.objectStores)),f=O.next();!f.done;f=O.next()){f=f.value;var v=L.objectStores[f],z=v.removedAtVersion===void 0?Number.MAX_VALUE:v.removedAtVersion;!(F.JSC$10565_wrapped.version>=v.addedAtVersion)||
F.JSC$10565_wrapped.version>=z||F.JSC$10565_wrapped.objectStoreNames.contains(f)||T.push(f)}u=T;if(u.length===0){K.jumpTo(5);break}a=Object.keys(p.options.objectStores);m=C.objectStoreNames();if(p.timesReopenedToFixMissingObjectStore<_.UC("ytidb_reopen_db_retries",0))return p.timesReopenedToFixMissingObjectStore++,C.close(),_.To(new X3("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:p.name,expectedObjectStores:a,foundObjectStores:m})),K.return(t());if(!(p.timesDeletedToFixMissingObjectStore<_.UC("ytidb_remake_db_retries",
1))){K.jumpTo(6);break}p.timesDeletedToFixMissingObjectStore++;return K.yield(p.delete(),7);case 7:return _.To(new X3("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:p.name,expectedObjectStores:a,foundObjectStores:m})),K.return(t());case 6:throw new Gex(m,a);case 5:return K.return(C);case 2:U=_.i6(K);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."){K.jumpTo(8);
break}return K.yield(p.openDb(p.name,void 0,Object.assign({},q,{upgrade:void 0})),9);case 9:b=K.yieldResult;P=b.getVersion();if(p.options.version!==void 0&&P>p.options.version+1)throw b.close(),p.isCompatible=!1,SMP(p,P);return K.return(b);case 8:throw l(),U instanceof Error&&!_.n("ytidb_async_stack_killswitch")&&(U.stack=U.stack+"\n"+e.substring(e.indexOf("\n")+1)),R3l(U,p.name,"",(Z=p.options.version)!=null?Z:-1);}})};
return this.connectionPromise=y=t()};var GUt=new Lg("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(p,y){y(1)&&O1(p,"databases",{keyPath:"actualName"})}});var Qro,V$u=new function(){}(new function(){});new _.AB;var FlN=function(p,y){Lg.call(this,p,y);this.options=y;BC(p)};
_.A(FlN,Lg);var Dsu=function(p,y){var l;return function(){l||(l=new FlN(p,y));return l}};
FlN.prototype.openDb=function(p,y,l){l=l===void 0?{}:l;return(this.options.shared?St5:reL)(p,y,Object.assign({},l))};
FlN.prototype.delete=function(p){p=p===void 0?{}:p;return(this.options.shared?NNc:FN_)(this.name,p)};var Llx={},HW8=CK("ytGcfConfig",{objectStores:(Llx.coldConfigStore={addedAtVersion:1},Llx.hotConfigStore={addedAtVersion:1},Llx),shared:!1,upgrade:function(p,y){y(1)&&(o7(O1(p,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),o7(O1(p,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var keN=function(){_.Sr.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var p=_.I4("yt.gcf.config.hotUpdateCallbacks");p?(this.localHotConfigJobQueue=[].concat(_.xq(p)),this.sharedHotConfigJobQueue=p):(this.sharedHotConfigJobQueue=[],_.e0("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.A(keN,_.Sr);keN.prototype.disposeInternal=function(){for(var p=_.c(this.localHotConfigJobQueue),y=p.next();!y.done;y=p.next()){var l=this.sharedHotConfigJobQueue;y=l.indexOf(y.value);y>=0&&l.splice(y,1)}this.localHotConfigJobQueue.length=0;_.Sr.prototype.disposeInternal.call(this)};var SF=function(){var p=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new keN;this.TEST_ONLY={initializeConfigDb:function(){p.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return p.coldGlobalConfigGroup},
setHotConfigGroup:function(y){NFB(p,y)},
setHotHashData:function(y){p.setHotHashData(y)},
setColdConfigGroup:function(y){Dtv(p,y)},
getColdHashData:function(){return p.coldHashData},
getHotHashData:function(){return p.hotHashData},
getHotConfigGroup:function(){return p.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return HtB()},
getExportedHotConfigGroup:function(){return kf()},
getExportedColdHashData:function(){return _.I4("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.I4("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){TFr(p)},
resetInstance:function(){p.setHotHashData(void 0);xtr(p);delete SF.instance},
setDebounceTimer:function(y){p.debounceTimer=y},
getDebounceTimer:function(){return p.debounceTimer}}},BFU=function(){if(!SF.instance){var p=new SF;
SF.instance=p}return SF.instance},XKx=function(p){var y;
_.h(function(l){if(l.nextAddress==1)return _.n("start_client_gcf")||_.n("delete_gcf_config_db")?_.n("start_client_gcf")?l.yield(_.hk(),3):l.jumpTo(2):l.return();l.nextAddress!=2&&((y=l.yieldResult)&&_.rs()&&!_.n("delete_gcf_config_db")?(p.isConfigDbInitialized=!0,TFr(p)):(feM(p),vHM(p)));return _.n("delete_gcf_config_db")?l.yield(XVt(),0):l.jumpTo(0)})},kn=function(){var p;
return(p=kf())!=null?p:_.OY("RAW_HOT_CONFIG_GROUP")},dtV=function(p){var y,l,q,t,E,e;
return _.h(function(C){switch(C.nextAddress){case 1:if(p.hotGlobalConfigGroup)return C.return(kf());if(!p.isConfigDbInitialized)return y=OC("getHotConfig IDB not initialized"),_.ph(y),C.return(Promise.reject(y));l=c7();q=_.OY("TIME_CREATED_MS");if(!l){t=OC("getHotConfig token error");_.ph(t);C.jumpTo(2);break}return C.yield(vy5(l),3);case 3:if((E=C.yieldResult)&&E.timestamp>q)return NFB(p,E.config),p.setHotHashData(E.hashData),C.return(kf());case 2:vHM(p);if(!(l&&p.hotGlobalConfigGroup&&p.hotHashData)){C.jumpTo(4);
break}return C.yield(xso(p.hotGlobalConfigGroup,p.hotHashData,l,q),4);case 4:return p.hotGlobalConfigGroup?C.return(kf()):(e=new _.SM("Config not available in ytConfig"),_.ph(e),C.return(Promise.reject(e)))}})},oHU=function(p){var y,l,q,t,E,e;
return _.h(function(C){switch(C.nextAddress){case 1:if(p.coldGlobalConfigGroup)return C.return(HtB());if(!p.isConfigDbInitialized)return y=OC("getColdConfig IDB not initialized"),_.ph(y),C.return(Promise.reject(y));l=c7();q=_.OY("TIME_CREATED_MS");if(!l){t=OC("getColdConfig");_.ph(t);C.jumpTo(2);break}return C.yield(fFa(l),3);case 3:if((E=C.yieldResult)&&E.timestamp>q)return Dtv(p,E.config),OtO(p,E.configData),xtr(p,E.hashData),C.return(HtB());case 2:feM(p);if(!(l&&p.coldGlobalConfigGroup&&p.coldHashData&&
p.configData)){C.jumpTo(4);break}return C.yield(BNl(p.coldGlobalConfigGroup,p.coldHashData,p.configData,l,q),4);case 4:return p.coldGlobalConfigGroup?C.return(HtB()):(e=new _.SM("Config not available in ytConfig"),_.ph(e),C.return(Promise.reject(e)))}})},TFr=function(p){if(!p.hotGlobalConfigGroup||!p.coldGlobalConfigGroup){if(!c7()){var y=OC("scheduleGetConfigs");
_.ph(y)}p.initJob||(p.initJob=_.TR.addLowPriorityJob(function(){return _.h(function(l){switch(l.nextAddress){case 1:return _.Ve(l,2),l.yield(dtV(p),4);case 4:_.pK(l,3);break;case 2:_.i6(l);case 3:return _.Ve(l,5),l.yield(oHU(p),7);case 7:_.pK(l,6);break;case 5:_.i6(l);case 6:p.initJob&&(p.initJob=0),_.rR(l)}})},100))}},xWa=function(p,y,l){var q,t,E;
return _.h(function(e){switch(e.nextAddress){case 1:if(!_.n("start_client_gcf")){e.jumpTo(0);break}l&&NFB(p,l);p.setHotHashData(y);q=c7();if(!q){e.jumpTo(3);break}if(l){e.jumpTo(4);break}return e.yield(vy5(q),5);case 5:t=e.yieldResult,l=(E=t)==null?void 0:E.config;case 4:return e.yield(xso(l,y,q),3);case 3:if(l)for(var C=l,u=_.c(p.configUpdateService.sharedHotConfigJobQueue),a=u.next();!a.done;a=u.next())a=a.value,a(C);_.rR(e)}})},BDu=function(p,y,l){var q,t,E,e;
return _.h(function(C){if(C.nextAddress==1){if(!_.n("start_client_gcf"))return C.jumpTo(0);xtr(p,y);return(q=c7())?l?C.jumpTo(4):C.yield(fFa(q),5):C.jumpTo(0)}C.nextAddress!=4&&(t=C.yieldResult,l=(E=t)==null?void 0:E.config);if(!l)return C.jumpTo(0);e=l.configData;return C.yield(BNl(l,y,e,q),0)})},CSu=function(){var p=BFU(),y=(0,_.uM)()-p.debounceTimer;
if(!(p.debounceTimer!==0&&y<_.UC("send_config_hash_timer"))){y=_.I4("yt.gcf.config.coldConfigData");var l=_.I4("yt.gcf.config.hotHashData"),q=_.I4("yt.gcf.config.coldHashData");y&&l&&q&&(p.debounceTimer=(0,_.uM)());return{coldConfigData:y,hotHashData:l,coldHashData:q}}},feM=function(p){Dtv(p,_.OY("RAW_COLD_CONFIG_GROUP"));
xtr(p,_.OY("SERIALIZED_COLD_HASH_DATA"));var y;OtO(p,(y=p.coldGlobalConfigGroup)==null?void 0:y.configData)},vHM=function(p){NFB(p,_.OY("RAW_HOT_CONFIG_GROUP"));
p.setHotHashData(_.OY("SERIALIZED_HOT_HASH_DATA"))},NFB=function(p,y){p.hotGlobalConfigGroup=y;
_.e0("yt.gcf.config.hotConfigGroup",p.hotGlobalConfigGroup||null)},Dtv=function(p,y){p.coldGlobalConfigGroup=y;
_.e0("yt.gcf.config.coldConfigGroup",p.coldGlobalConfigGroup||null)};
SF.prototype.setHotHashData=function(p){this.hotHashData=p;_.e0("yt.gcf.config.hotHashData",this.hotHashData||null)};
var xtr=function(p,y){p.coldHashData=y;_.e0("yt.gcf.config.coldHashData",p.coldHashData||null)},OtO=function(p,y){p.configData=y;
_.e0("yt.gcf.config.coldConfigData",p.configData||null)},kf=function(){return _.I4("yt.gcf.config.hotConfigGroup")},HtB=function(){return _.I4("yt.gcf.config.coldConfigGroup")};var GR={},zIO=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";GR.assign=function(p){for(var y=Array.prototype.slice.call(arguments,1);y.length;){var l=y.shift();if(l){if(typeof l!=="object")throw new TypeError("Wc`"+l);for(var q in l)Object.prototype.hasOwnProperty.call(l,q)&&(p[q]=l[q])}}return p};
GR.shrinkBuf=function(p,y){if(p.length===y)return p;if(p.subarray)return p.subarray(0,y);p.length=y;return p};
var YMN={arraySet:function(p,y,l,q,t){if(y.subarray&&p.subarray)p.set(y.subarray(l,l+q),t);else for(var E=0;E<q;E++)p[t+E]=y[l+E]},
flattenChunks:function(p){var y,l;var q=l=0;for(y=p.length;q<y;q++)l+=p[q].length;var t=new Uint8Array(l);q=l=0;for(y=p.length;q<y;q++){var E=p[q];t.set(E,l);l+=E.length}return t}},Ie$={arraySet:function(p,y,l,q,t){for(var E=0;E<q;E++)p[t+E]=y[l+E]},
flattenChunks:function(p){return[].concat.apply([],p)}};
GR.setTyped=function(){zIO?(GR.Buf8=Uint8Array,GR.Buf16=Uint16Array,GR.Buf32=Int32Array,GR.assign(GR,YMN)):(GR.Buf8=Array,GR.Buf16=Array,GR.Buf32=Array,GR.assign(GR,Ie$))};
GR.setTyped();var p2Q=!0;try{new Uint8Array(1)}catch(p){p2Q=!1}
var v96=function(p){var y,l,q=p.length,t=0;for(y=0;y<q;y++){var E=p.charCodeAt(y);if((E&64512)===55296&&y+1<q){var e=p.charCodeAt(y+1);(e&64512)===56320&&(E=65536+(E-55296<<10)+(e-56320),y++)}t+=E<128?1:E<2048?2:E<65536?3:4}var C=new GR.Buf8(t);for(y=l=0;l<t;y++)E=p.charCodeAt(y),(E&64512)===55296&&y+1<q&&(e=p.charCodeAt(y+1),(e&64512)===56320&&(E=65536+(E-55296<<10)+(e-56320),y++)),E<128?C[l++]=E:(E<2048?C[l++]=192|E>>>6:(E<65536?C[l++]=224|E>>>12:(C[l++]=240|E>>>18,C[l++]=128|E>>>12&63),C[l++]=
128|E>>>6&63),C[l++]=128|E&63);return C};var i4j={};i4j=function(p,y,l,q){var t=p&65535|0;p=p>>>16&65535|0;for(var E;l!==0;){E=l>2E3?2E3:l;l-=E;do t=t+y[q++]|0,p=p+t|0;while(--E);t%=65521;p%=65521}return t|p<<16|0};for(var LK={},Ny,yhZ=[],l_U=0;l_U<256;l_U++){Ny=l_U;for(var qnZ=0;qnZ<8;qnZ++)Ny=Ny&1?3988292384^Ny>>>1:Ny>>>1;yhZ[l_U]=Ny}LK=function(p,y,l,q){l=q+l;for(p^=-1;q<l;q++)p=p>>>8^yhZ[(p^y[q])&255];return p^-1};var Vx={};Vx={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 n9c=[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],PS6=[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],faR=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],K3j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],wy=Array(576);$Q(wy);var iM=Array(60);$Q(iM);var ZK=Array(512);$Q(ZK);var Ak=Array(256);$Q(Ak);var G5o=Array(29);$Q(G5o);var ABl=Array(30);$Q(ABl);var TCm,xEc,BCt,H48=!1;var H7;
H7=[new DK(0,0,0,0,function(p,y){var l=65535;for(l>p.pending_buf_size-5&&(l=p.pending_buf_size-5);;){if(p.lookahead<=1){kQ(p);if(p.lookahead===0&&y===0)return 1;if(p.lookahead===0)break}p.strstart+=p.lookahead;p.lookahead=0;var q=p.block_start+l;if(p.strstart===0||p.strstart>=q)if(p.lookahead=p.strstart-q,p.strstart=q,ry(p,!1),p.strm.avail_out===0)return 1;if(p.strstart-p.block_start>=p.w_size-262&&(ry(p,!1),p.strm.avail_out===0))return 1}p.insert=0;if(y===4)return ry(p,!0),p.strm.avail_out===0?3:
4;p.strstart>p.block_start&&ry(p,!1);return 1}),
new DK(4,4,8,4,rBm),new DK(4,5,16,8,rBm),new DK(4,6,32,32,rBm),new DK(4,4,16,16,NU),new DK(8,16,32,32,NU),new DK(8,16,128,128,NU),new DK(8,32,128,256,NU),new DK(32,128,258,1024,NU),new DK(32,258,258,4096,NU)];var DE_={};DE_=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 XIt=Object.prototype.toString;
NC8.prototype.push=function(p,y){var l=this.strm,q=this.options.chunkSize;if(this.ended)return!1;var t=y===~~y?y:y===!0?4:0;typeof p==="string"?l.input=v96(p):XIt.call(p)==="[object ArrayBuffer]"?l.input=new Uint8Array(p):l.input=p;l.next_in=0;l.avail_in=l.input.length;do{l.avail_out===0&&(l.output=new GR.Buf8(q),l.next_out=0,l.avail_out=q);p=k5t(l,t);if(p!==1&&p!==0)return sGZ(this,p),this.ended=!0,!1;if(l.avail_out===0||l.avail_in===0&&(t===4||t===2))if(this.options.to==="string"){var E=GR.shrinkBuf(l.output,
l.next_out);y=E;E=E.length;if(E<65537&&(y.subarray&&p2Q||!y.subarray))y=String.fromCharCode.apply(null,GR.shrinkBuf(y,E));else{for(var e="",C=0;C<E;C++)e+=String.fromCharCode(y[C]);y=e}this.chunks.push(y)}else y=GR.shrinkBuf(l.output,l.next_out),this.chunks.push(y)}while((l.avail_in>0||l.avail_out===0)&&p!==1);if(t===4)return(l=this.strm)&&l.state?(q=l.state.status,q!==42&&q!==69&&q!==73&&q!==91&&q!==103&&q!==113&&q!==666?p=gy(l,-2):(l.state=null,p=q===113?gy(l,-3):0)):p=-2,sGZ(this,p),this.ended=
!0,p===0;t===2&&(sGZ(this,0),l.avail_out=0);return!0};
var sGZ=function(p,y){y===0&&(p.result=p.options.to==="string"?p.chunks.join(""):GR.flattenChunks(p.chunks));p.chunks=[];p.err=y;p.msg=p.strm.msg};var tYZ=typeof TextEncoder!=="undefined"?new TextEncoder:null,G9c=tYZ?function(p){return tYZ.encode(p)}:function(p){p=_.rg(p);
for(var y=new Uint8Array(p.length),l=0;l<y.length;l++)y[l]=p[l];return y};var OzR={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},zv6={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var Dm=function(p,y){this.version=p;this.args=y};
Dm.prototype.serialize=function(){return{version:this.version,args:this.args}};var YKu=function(p,y){this.topic=p;this.dataClass=y};
YKu.prototype.toString=function(){return this.topic};var Ecr=_.I4("ytPubsub2Pubsub2Instance")||new _.V$;_.V$.prototype.subscribe=_.V$.prototype.subscribe;_.V$.prototype.unsubscribeByKey=_.V$.prototype.unsubscribeByKey;_.V$.prototype.publish=_.V$.prototype.publish;_.V$.prototype.clear=_.V$.prototype.clear;_.e0("ytPubsub2Pubsub2Instance",Ecr);var zA6=_.I4("ytPubsub2Pubsub2SubscribedKeys")||{};_.e0("ytPubsub2Pubsub2SubscribedKeys",zA6);var pmo=_.I4("ytPubsub2Pubsub2TopicToKeys")||{};_.e0("ytPubsub2Pubsub2TopicToKeys",pmo);
var Ia6=_.I4("ytPubsub2Pubsub2IsAsync")||{};_.e0("ytPubsub2Pubsub2IsAsync",Ia6);_.e0("ytPubsub2Pubsub2SkipSubKey",null);var hbu=void 0,cx5=void 0;var $H8=_.UC("max_body_size_to_compress",5E5),jMo=_.UC("min_body_size_to_compress",500),B7=!0,Zvo=0,fK=0,Axj=_.UC("compression_performance_threshold_lr",250),MR8=_.UC("slow_compressions_before_abandon_count",4),Rb_=!1,Wro=new Map,n86=1,bvu=!0;_.j6(v7,QMj);v7.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 Jhr=function(p,y,l){l||(l=0);var q=p.W_;if(typeof y==="string")for(var t=0;t<16;t++)q[t]=y.charCodeAt(l)<<24|y.charCodeAt(l+1)<<16|y.charCodeAt(l+2)<<8|y.charCodeAt(l+3),l+=4;else for(t=0;t<16;t++)q[t]=y[l]<<24|y[l+1]<<16|y[l+2]<<8|y[l+3],l+=4;for(y=16;y<80;y++)l=q[y-3]^q[y-8]^q[y-14]^q[y-16],q[y]=(l<<1|l>>>31)&4294967295;y=p.chain_[0];l=p.chain_[1];t=p.chain_[2];for(var E=p.chain_[3],e=p.chain_[4],C,u,a=0;a<80;a++)a<40?a<20?(C=E^l&(t^E),u=1518500249):(C=l^t^E,u=1859775393):a<60?(C=l&t|E&(l|t),
u=2400959708):(C=l^t^E,u=3395469782),C=(y<<5|y>>>27)+C+e+u+q[a]&4294967295,e=E,E=t,t=(l<<30|l>>>2)&4294967295,l=y,y=C;p.chain_[0]=p.chain_[0]+y&4294967295;p.chain_[1]=p.chain_[1]+l&4294967295;p.chain_[2]=p.chain_[2]+t&4294967295;p.chain_[3]=p.chain_[3]+E&4294967295;p.chain_[4]=p.chain_[4]+e&4294967295};
v7.prototype.update=function(p,y){if(p!=null){y===void 0&&(y=p.length);for(var l=y-this.blockSize,q=0,t=this.buf_,E=this.inbuf_;q<y;){if(E==0)for(;q<=l;)Jhr(this,p,q),q+=this.blockSize;if(typeof p==="string")for(;q<y;){if(t[E]=p.charCodeAt(q),++E,++q,E==this.blockSize){Jhr(this,t);E=0;break}}else for(;q<y;)if(t[E]=p[q],++E,++q,E==this.blockSize){Jhr(this,t);E=0;break}}this.inbuf_=E;this.total_+=y}};
v7.prototype.digest=function(){var p=[],y=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var l=this.blockSize-1;l>=56;l--)this.buf_[l]=y&255,y/=256;Jhr(this,this.buf_);for(l=y=0;l<5;l++)for(var q=24;q>=0;q-=8)p[y]=this.chain_[l]>>q&255,++y;return p};var ivt;var Tv=function(p){var y=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(m){y.databaseToken=m},
triggerThrottle:function(){y.throttledSend()},
cancelThrottle:function(){y.cancelThrottledSend()},
immediateSend:function(m){return _.h(function(U){return U.yield(y.immediateSend(m),0)})},
requestWithinAgeLimit:function(m,U){return y.requestWithinAgeLimit(m,U)},
retryQueuedRequests:function(){y.retryQueuedRequests()}};
var l;this.throttleTimeout=(l=p.throttleTimeout)!=null?l:100;var q;this.retryMaxAttempts=(q=p.retryMaxAttempts)!=null?q:1;var t;this.requestAgeLimitMs=(t=p.requestAgeLimitMs)!=null?t:2592E6;var E;this.queuedRequestAgeLimitMs=(E=p.queuedRequestAgeLimitMs)!=null?E:12E4;var e;this.retryDelayMs=(e=p.retryDelayMs)!=null?e:5E3;var C;this.databaseToken=(C=p.databaseToken)!=null?C:void 0;this.enableCleaning=!!p.enableCleaning;var u;this.cleaningRate=(u=p.cleaningRate)!=null?u:.1;var a;this.potentialEsfErrorLimit=
(a=p.potentialEsfErrorLimit)!=null?a:10;p.handleError&&(this.handleError=p.handleError);p.handleWarning&&(this.handleWarning=p.handleWarning);p.disableYtIdbTransactions&&(this.disableYtIdbTransactions=p.disableYtIdbTransactions);p.bypassDbTokenDependency&&(this.bypassDbTokenDependency=p.bypassDbTokenDependency);this.getBooleanFlag=p.getBooleanFlag;this.jobManager=p.jobManager;this.logsStore=p.logsStore;this.networkManager=p.networkManager;this.sendFn=p.sendFn;this.onlineEvent=p.onlineEvent;this.offlineEvent=
p.offlineEvent;HE(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&chZ(this)},chZ=function(p){HE(p)&&!p.disableYtIdbTransactions&&(p.initialized=!0,p.enableCleaning&&Math.random()<=p.cleaningRate&&p.logsStore.cleanLogsStore(p.databaseToken),p.retryQueuedRequests(),p.networkManager.isNetworkAvailable()&&p.throttledSend(),p.networkManager.listen(p.onlineEvent,p.throttledSend.bind(p)),p.networkManager.listen(p.offlineEvent,p.cancelThrottledSend.bind(p)))};
_.J=Tv.prototype;_.J.writeThenSend=function(p,y){var l=this;y=y===void 0?{}:y;if(HE(this)&&this.initialized){var q={url:p,options:y,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(q,this.databaseToken).then(function(t){q.id=t;l.networkManager.isNetworkAvailable()&&l.immediateSend(q)}).catch(function(t){l.immediateSend(q);
eoV(l,t)})}else this.sendFn(p,y)};
_.J.sendThenWrite=function(p,y,l){var q=this;y=y===void 0?{}:y;if(HE(this)&&this.initialized){var t={url:p,options:y,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(t.skipRetry=l);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!t.skipRetry){if(!t.skipRetry){var E=y.onError?y.onError:function(){};
y.onError=function(e,C){return _.h(function(u){if(u.nextAddress==1)return u.yield(q.logsStore.set(t,q.databaseToken).catch(function(a){eoV(q,a)}),2);
E(e,C);_.rR(u)})}}this.sendFn(p,y,t.skipRetry)}else this.logsStore.set(t,this.databaseToken).catch(function(e){q.sendFn(p,y,t.skipRetry);
eoV(q,e)})}else this.sendFn(p,y,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&l)};
_.J.sendAndWrite=function(p,y){var l=this;y=y===void 0?{}:y;if(HE(this)&&this.initialized){var q={url:p,options:y,timestamp:this.now(),status:"NEW",sendCount:0},t=!1,E=y.onSuccess?y.onSuccess:function(){};
q.options.onSuccess=function(e,C){q.id!==void 0?l.logsStore.deleteRequest(q.id,l.databaseToken):t=!0;l.networkManager.networkStatusHint&&l.getBooleanFlag&&l.getBooleanFlag("vss_network_hint")&&l.networkManager.networkStatusHint(!0);E(e,C)};
this.sendFn(q.url,q.options,void 0,!0);this.logsStore.set(q,this.databaseToken).then(function(e){q.id=e;t&&l.logsStore.deleteRequest(q.id,l.databaseToken)}).catch(function(e){eoV(l,e)})}else this.sendFn(p,y,void 0,!0)};
_.J.throttledSend=function(){var p=this;if(!HE(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var y;return _.h(function(l){if(l.nextAddress==1)return l.yield(p.logsStore.getMostRecentByStatus("NEW",p.databaseToken),2);if(l.nextAddress!=3)return y=l.yieldResult,y?l.yield(p.immediateSend(y),3):(p.cancelThrottledSend(),l.return());p.intervalJob&&(p.intervalJob=0,p.throttledSend());_.rR(l)})},this.throttleTimeout))};
_.J.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.J.immediateSend=function(p){var y=this,l;return _.h(function(q){switch(q.nextAddress){case 1:if(!HE(y))throw Error("$c");if(p.id===void 0){q.jumpTo(2);break}return q.yield(y.logsStore.markAsQueued(p.id,y.databaseToken),3);case 3:(l=q.yieldResult)||y.handleWarning(Error("ad"));case 2:if(y.requestWithinAgeLimit(p,y.requestAgeLimitMs)){q.jumpTo(4);break}y.handleWarning(Error("bd"));if(p.id===void 0){q.jumpTo(5);break}return q.yield(y.logsStore.deleteRequest(p.id,y.databaseToken),5);case 5:return q.return();
case 4:p.skipRetry||(p=hoM(y,p));if(!p){q.jumpTo(0);break}if(!p.skipRetry||p.id===void 0){q.jumpTo(8);break}return q.yield(y.logsStore.deleteRequest(p.id,y.databaseToken),8);case 8:y.sendFn(p.url,p.options,!!p.skipRetry),_.rR(q)}})};
var hoM=function(p,y){if(!HE(p))throw Error("cd");var l=y.options.onError?y.options.onError:function(){};
y.options.onError=function(t,E){var e,C,u,a;return _.h(function(m){switch(m.nextAddress){case 1:e=k9R(E);(C=NdL(E))&&p.getBooleanFlag&&p.getBooleanFlag("web_enable_error_204")&&p.handleError(Error("dd"),y.url,E);if(!(p.getBooleanFlag&&p.getBooleanFlag("nwl_consider_error_code")&&e||p.getBooleanFlag&&!p.getBooleanFlag("nwl_consider_error_code")&&p.potentialEsfErrorCounter<=p.potentialEsfErrorLimit)){m.jumpTo(2);break}if(!p.networkManager.sendNetworkCheckRequest){m.jumpTo(3);break}return m.yield(p.networkManager.sendNetworkCheckRequest(),
3);case 3:if(p.networkManager.isNetworkAvailable()){m.jumpTo(2);break}l(t,E);if(!p.getBooleanFlag||!p.getBooleanFlag("nwl_consider_error_code")||((u=y)==null?void 0:u.id)===void 0){m.jumpTo(6);break}return m.yield(p.logsStore.resetRequest(y.id,p.databaseToken,!1),6);case 6:return m.return();case 2:if(p.getBooleanFlag&&p.getBooleanFlag("nwl_consider_error_code")&&!e&&p.potentialEsfErrorCounter>p.potentialEsfErrorLimit)return m.return();p.potentialEsfErrorCounter++;if(((a=y)==null?void 0:a.id)===void 0){m.jumpTo(8);
break}return y.sendCount<p.retryMaxAttempts?m.yield(p.logsStore.resetRequest(y.id,p.databaseToken,!0,C?!1:void 0),12):m.yield(p.logsStore.deleteRequest(y.id,p.databaseToken),8);case 12:p.jobManager.addLowPriorityJob(function(){p.networkManager.isNetworkAvailable()&&p.throttledSend()},p.retryDelayMs);
case 8:l(t,E),_.rR(m)}})};
var q=y.options.onSuccess?y.options.onSuccess:function(){};
y.options.onSuccess=function(t,E){var e;return _.h(function(C){if(C.nextAddress==1)return((e=y)==null?void 0:e.id)===void 0?C.jumpTo(2):C.yield(p.logsStore.deleteRequest(y.id,p.databaseToken),2);p.networkManager.networkStatusHint&&p.getBooleanFlag&&p.getBooleanFlag("vss_network_hint")&&p.networkManager.networkStatusHint(!0);q(t,E);_.rR(C)})};
return y};
Tv.prototype.requestWithinAgeLimit=function(p,y){p=p.timestamp;return this.now()-p>=y?!1:!0};
Tv.prototype.retryQueuedRequests=function(){var p=this;if(!HE(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(y){y&&!p.requestWithinAgeLimit(y,p.queuedRequestAgeLimitMs)?p.jobManager.addLowPriorityJob(function(){return _.h(function(l){if(l.nextAddress==1)return y.id===void 0?l.jumpTo(2):l.yield(p.logsStore.resetRequest(y.id,p.databaseToken),2);p.retryQueuedRequests();_.rR(l)})}):p.networkManager.isNetworkAvailable()&&p.throttledSend()})};
var eoV=function(p,y){p.writeError&&!p.networkManager.isNetworkAvailable()?p.writeError(y):p.handleError(y)},HE=function(p){return!!p.databaseToken||p.bypassDbTokenDependency};var DH8;var X$6={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,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,
startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,
keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525};var CLO={},o8_=CK("ServiceWorkerLogsDatabase",{objectStores:(CLO.SWHealthLog={addedAtVersion:1},CLO),shared:!0,upgrade:function(p,y){y(1)&&o7(O1(p,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var sF5={},qU_=0;var clu;var xf=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},q$=function(){if(!xf.instance){var p=_.I4("yt.networkRequestMonitor.instance")||new xf;
_.e0("yt.networkRequestMonitor.instance",p);xf.instance=p}return xf.instance};
xf.prototype.requestComplete=function(p,y){y&&(this.anyRequestHasSucceeded=!0);p=this.removeParams(p);this.requestMap.get(p)||this.requestMap.set(p,y)};
xf.prototype.isEndpointCFR=function(p){p=this.removeParams(p);return(p=this.requestMap.get(p))?!1:p===!1&&this.anyRequestHasSucceeded?!0:null};
xf.prototype.removeParams=function(p){return p.split("?")[0]};
xf.prototype.removeParams=xf.prototype.removeParams;xf.prototype.isEndpointCFR=xf.prototype.isEndpointCFR;xf.prototype.requestComplete=xf.prototype.requestComplete;xf.getInstance=q$;var BE=function(p){_.Fn.call(this);var y=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=p!=null?p:{addLowPriorityJob:function(t,E){return setTimeout(t,E)},
cancelJob:function(t){clearTimeout(t)}};
var l,q;this.isOnline=(q=(l=window.navigator)==null?void 0:l.onLine)!=null?q:!0;this.onNavigatorChange=function(){return _.h(function(t){return t.yield(uKZ(y),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||RoP(this)};
_.A(BE,_.Fn);BE.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete BE.instance};
BE.prototype.isNetworkAvailable=function(){return this.isOnline};
var RoP=function(p){p.pollingJob=p.jobManager.addLowPriorityJob(function(){var y;return _.h(function(l){if(l.nextAddress==1)return p.isOnline?((y=window.navigator)==null?0:y.onLine)?l.jumpTo(3):l.yield(uKZ(p),3):l.yield(uKZ(p),3);RoP(p);_.rR(l)})},3E4)},uKZ=function(p,y){return p.networkRequestPromise?p.networkRequestPromise:p.networkRequestPromise=new Promise(function(l){var q,t,E,e;
return _.h(function(C){switch(C.nextAddress){case 1:return q=window.AbortController?new window.AbortController:void 0,E=(t=q)==null?void 0:t.signal,e=!1,_.Ve(C,2,3),q&&(p.abortTimeoutKey=p.jobManager.addLowPriorityJob(function(){q.abort()},y||2E4)),C.yield(fetch("/generate_204",{method:"HEAD",
signal:E}),5);case 5:e=!0;case 3:_.Qe(C);p.networkRequestPromise=void 0;p.abortTimeoutKey&&(p.jobManager.cancelJob(p.abortTimeoutKey),p.abortTimeoutKey=0);e!==p.isOnline&&(p.isOnline=e,p.isOnline?p.dispatchEvent("networkstatus-online"):p.dispatchEvent("networkstatus-offline"));l(e);_.wR(C,0);break;case 2:_.i6(C),e=!1,C.jumpTo(3)}})})};var fg=function(){_.Fn.call(this);var p=this;this.shouldFlushErrors=!1;BE.instance||(BE.instance=new BE(_.TR));this.sharedNetworkStatusManager=BE.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(p.shouldFlushErrors&&_.n("offline_error_handling")){var y=eUj().get("errors",!0);if(y){for(var l in y)if(y[l]){var q=new _.SM(l,"sent via offline_errors");q.name=y[l].name;q.stack=y[l].stack;q.level=y[l].level;_.zi(q)}eUj().set("errors",{},2592E3,!0)}}})};
_.A(fg,_.Fn);var WXi=function(){if(!fg.instance){var p=_.I4("yt.networkStatusManager.instance")||new fg;_.e0("yt.networkStatusManager.instance",p);fg.instance=p}return fg.instance};
_.J=fg.prototype;_.J.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.J.networkStatusHint=function(p){this.sharedNetworkStatusManager.isOnline=p};
_.J.getWindowStatus=function(){var p=window.navigator.onLine;return p===void 0?!0:p};
_.J.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.J.listen=function(p,y){return this.sharedNetworkStatusManager.listen(p,y)};
_.J.sendNetworkCheckRequest=function(p){p=uKZ(this.sharedNetworkStatusManager,p);p.then(function(y){_.n("use_cfr_monitor")&&q$().requestComplete("generate_204",y)});
return p};
fg.prototype.sendNetworkCheckRequest=fg.prototype.sendNetworkCheckRequest;fg.prototype.listen=fg.prototype.listen;fg.prototype.enableErrorFlushing=fg.prototype.enableErrorFlushing;fg.prototype.getWindowStatus=fg.prototype.getWindowStatus;fg.prototype.networkStatusHint=fg.prototype.networkStatusHint;fg.prototype.isNetworkAvailable=fg.prototype.isNetworkAvailable;fg.getInstance=WXi;_.lG=function(p){p=p===void 0?{}:p;_.Fn.call(this);var y=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=WXi();var l=_.I4("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);l&&(p.rateLimit?(this.rateLimit=p.rateLimit,l("networkstatus-online",function(){a_Q(y,"publicytnetworkstatus-online")}),l("networkstatus-offline",function(){a_Q(y,"publicytnetworkstatus-offline")})):(l("networkstatus-online",function(){y.dispatchEvent("publicytnetworkstatus-online")}),l("networkstatus-offline",
function(){y.dispatchEvent("publicytnetworkstatus-offline")})))};
_.A(_.lG,_.Fn);_.lG.prototype.isNetworkAvailable=function(){var p=_.I4("yt.networkStatusManager.instance.isNetworkAvailable");return p?p.bind(this.nsmInstance)():!0};
_.lG.prototype.networkStatusHint=function(p){var y=_.I4("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);y&&y(p)};
_.lG.prototype.sendNetworkCheckRequest=function(p){var y=this,l;return _.h(function(q){l=_.I4("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(y.nsmInstance);return _.n("skip_network_check_if_cfr")&&q$().isEndpointCFR("generate_204")?q.return(new Promise(function(t){var E;y.networkStatusHint(((E=window.navigator)==null?void 0:E.onLine)||!0);t(y.isNetworkAvailable())})):l?q.return(l(p)):q.return(!0)})};
var a_Q=function(p,y){p.rateLimit?p.lastJobTime?(_.TR.cancelJob(p.schedulerJob),p.schedulerJob=_.TR.addLowPriorityJob(function(){p.lastPublicSignalSent!==y&&(p.dispatchEvent(y),p.lastPublicSignalSent=y,p.lastJobTime=(0,_.uM)())},p.rateLimit-((0,_.uM)()-p.lastJobTime))):(p.dispatchEvent(y),p.lastPublicSignalSent=y,p.lastJobTime=(0,_.uM)()):p.dispatchEvent(y)};var Wcm,vE=function(){Tv.call(this,{logsStore:{cleanLogsStore:dHu,deleteRequest:Xm8,getMostRecentByStatus:Bd8,markAsQueued:fL5,resetRequest:v8t,set:xH5},networkManager:_.aS5(),handleError:function(p,y,l){var q,t=l==null?void 0:(q=l.error)==null?void 0:q.code;if(t===400||t===415){var E;p=new _.SM(p.message,y,l==null?void 0:(E=l.error)==null?void 0:E.code);_.ph(p,void 0,void 0,void 0,!0)}else _.zi(p)},
handleWarning:_.ph,sendFn:uH5,now:_.uM,writeError:hUa,jobManager:_.B3(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.UC("potential_esf_error_limit",10),getBooleanFlag:_.n,disableYtIdbTransactions:!(_.rs()&&_.mej())});this.initializationPromise=new _.AB;_.n("networkless_immediately_drop_all_requests")&&Ovu();NNc("LogsDatabaseV2")};
_.A(vE,Tv);_.UfU=function(){var p=_.I4("yt.networklessRequestController.instance");p||(p=new vE,_.e0("yt.networklessRequestController.instance",p),_.n("networkless_logging")&&_.hk().then(function(y){p.databaseToken=y;chZ(p);p.initializationPromise.resolve();p.enableCleaning&&Math.random()<=p.cleaningRate&&p.databaseToken&&Ys5(p.databaseToken);_.n("networkless_immediately_drop_sw_health_store")&&mfP(p)}));
return p};
vE.prototype.writeThenSend=function(p,y){y||(y={});y=RUR(p,y);_.rs()||(this.initialized=!1);Tv.prototype.writeThenSend.call(this,p,y)};
vE.prototype.sendThenWrite=function(p,y,l){y||(y={});y=RUR(p,y);_.rs()||(this.initialized=!1);Tv.prototype.sendThenWrite.call(this,p,y,l)};
vE.prototype.sendAndWrite=function(p,y){y||(y={});y=RUR(p,y);_.rs()||(this.initialized=!1);Tv.prototype.sendAndWrite.call(this,p,y)};
vE.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var mfP=function(p){var y;_.h(function(l){if(!p.databaseToken)throw y=OC("clearSWHealthLogsDb"),y;return l.return(ILa(p.databaseToken).catch(function(q){p.handleError(q)}))})};_.$ej=!1;_.Ueu=_.l_.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.$ej};_.e0("ytNetworklessLoggingInitializationOptions",_.Ueu);var Hs=function(p){var y=this;this.config_=null;p?this.config_=p:dsu()&&(this.config_=_.W7());_.rJ(_.TR,function(){Lrt(y)},5E3)};
Hs.prototype.isReady=function(){!this.config_&&dsu()&&(this.config_=_.W7());return!!this.config_};
var Fr5=function(p,y,l,q){!_.OY("VISITOR_DATA")&&y!=="visitor_id"&&Math.random()<.01&&_.ph(new _.SM("Missing VISITOR_DATA when sending innertube request.",y,l,q));if(!p.isReady()){var t=new _.SM("innertube xhrclient not ready",y,l,q);_.zi(t);throw t;}var E={headers:q.headers||{},method:"POST",postParams:l,postBody:q.postBody,postBodyFormat:q.postBodyFormat||"JSON",onTimeout:function(){q.onTimeout()},
onFetchTimeout:q.onTimeout,onSuccess:function(U,b){if(q.onSuccess)q.onSuccess(b)},
onFetchSuccess:function(U){if(q.onSuccess)q.onSuccess(U)},
onProgress:function(U){if(q.onProgress)q.onProgress(U)},
onError:function(U,b){if(q.onError)q.onError(b)},
onFetchError:function(U){if(q.onError)q.onError(U)},
timeout:q.timeout,withCredentials:!0,compress:q.compress};E.headers["Content-Type"]||(E.headers["Content-Type"]="application/json");var e="";(t=p.config_.innertubeHostOverride)&&(e=t);var C=p.config_.innertubeUseThirdPartyAuth||!1,u=_.hAa(C,e,q);Object.assign(E.headers,u);E.headers.Authorization&&!e&&C&&(E.headers["x-origin"]=window.location.origin);var a=_.EC(e+("/youtubei/"+p.config_.innertubeApiVersion+"/"+y),{alt:"json"}),m=function(U){U=U===void 0?!1:U;var b;if(q.retry&&e!="www.youtube-nocookie.com"&&
(U||_.n("skip_ls_gel_retry")||E.headers["Content-Type"]!=="application/json"||(b=rx6(y,l,u,C)),b)){var P=E.onSuccess,Z=E.onFetchSuccess;E.onSuccess=function(L,T){Sst(b);P(L,T)};
l.onFetchSuccess=function(L,T){Sst(b);Z(L,T)}}try{if(U&&q.retry&&!q.networklessOptions.bypassNetworkless)E.method="POST",q.networklessOptions.writeThenSend?_.UfU().writeThenSend(a,E):_.UfU().sendAndWrite(a,E);
else if(q.compress){var K=!q.networklessOptions.writeThenSend;if(E.postBody){var F=E.postBody;typeof F!=="string"&&(F=JSON.stringify(E.postBody));PtL(a,F,E,_.Z3,K)}else PtL(a,JSON.stringify(E.postParams),E,QJc,K)}else _.n("web_all_payloads_via_jspb")?_.Z3(a,E):QJc(a,E)}catch(L){if(L.name==="InvalidAccessError")b&&(Sst(b),b=0),_.ph(Error("fd"));else throw L;}b&&_.rJ(_.TR,function(){Lrt(p)},5E3)};
_.jF5()?KN8().then(function(U){m(U)}):m(!1)};var Grt=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Grt,_.RX);var $fZ=0,ngo=_.ZY?"webkit":_.Aj?"moz":_.P0?"ms":Vbo?"o":"";_.e0("ytDomDomGetNextId",_.I4("ytDomDomGetNextId")||function(){return++$fZ});var jGU={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},eF=function(p){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(p=
p||window.event){this.event=p;for(var y in p)y in jGU||(this[y]=p[y]);this.scale=p.scale;this.rotation=p.rotation;var l=p.target||p.srcElement;l&&l.nodeType==3&&(l=l.parentNode);this.target=l;var q=p.relatedTarget;if(q)try{q=q.nodeName?q:null}catch(t){q=null}else this.type=="mouseover"?q=p.fromElement:this.type=="mouseout"&&(q=p.toElement);this.relatedTarget=q;this.clientX=p.clientX!=void 0?p.clientX:p.pageX;this.clientY=p.clientY!=void 0?p.clientY:p.pageY;this.keyCode=p.keyCode?p.keyCode:p.which;
this.charCode=p.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=p.altKey;this.ctrlKey=p.ctrlKey;this.shiftKey=p.shiftKey;this.metaKey=p.metaKey;this.pageX_=p.pageX;this.pageY_=p.pageY}}catch(t){}},bxP=function(p){if(document.body&&document.documentElement){var y=document.body.scrollTop+document.documentElement.scrollTop;
p.pageX_=p.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);p.pageY_=p.clientY+y}};
eF.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
eF.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
eF.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var cs=_.l_.ytEventsEventsListeners||{};_.e0("ytEventsEventsListeners",cs);var Vm8=_.l_.ytEventsEventsCounter||{count:0};_.e0("ytEventsEventsCounter",Vm8);var ggt=_.Sz(function(){var p=!1;try{var y=Object.defineProperty({},"capture",{get:function(){p=!0}});
window.addEventListener("test",null,y)}catch(l){}return p});_.j6(CT,_.Sr);CT.prototype.onMouseMove_=function(p){p.pageX_===void 0&&bxP(p);var y=p.pageX_;p.pageY_===void 0&&bxP(p);this.position_=new _.BJ(y,p.pageY_)};
CT.prototype.checkPosition_=function(){if(this.position_){var p=(0,_.uM)();if(this.previousTime_!=0){var y=this.previousPosition_,l=this.position_,q=y.x-l.x;y=y.y-l.y;q=Math.sqrt(q*q+y*y)/(p-this.previousTime_);this.cycles_[this.index_]=Math.abs((q-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(l=y=0;l<4;l++)y+=this.cycles_[l]||0;y>=3&&this.callback_();this.previousVelocity_=q}this.previousTime_=p;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
CT.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.QFc(this.mouseListenerKey_)};var rl6={};var TDt=new _.uK("rawColdConfigGroup");var HY_=new _.uK("rawHotConfigGroup");var ncQ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(ncQ,_.RX);var nd5=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(nd5,_.RX);var iG=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p,500)};
_.A(iG,_.RX);iG.prototype.getPayloadCase=function(){return _.kt(this,Gcv)};
iG.prototype.getContext=function(){return _.MF(this,nd5,33)};
var Gcv=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525];var S56=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(S56,_.RX);var hxc=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(hxc,_.RX);hxc.prototype.setVideoId=function(p){return Ap(this,1,Cp5,i9(p))};
hxc.prototype.getPlaylistId=function(){return _.Vy(this,Q6(this,Cp5,2))};
var Cp5=[1,2];var gSc=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(gSc,_.RX);gSc.prototype.getContext=function(){return _.MF(this,Zp,1)};
gSc.prototype.getTier=function(){return _.v0(this,7)};var PLr,ad,mH;PLr=_.l_.ytPubsubPubsubInstance||new _.V$;ad=_.l_.ytPubsubPubsubSubscribedKeys||{};mH=_.l_.ytPubsubPubsubTopicToKeys||{};_.SUg=_.l_.ytPubsubPubsubIsSynchronous||{};_.V$.prototype.subscribe=_.V$.prototype.subscribe;_.V$.prototype.unsubscribeByKey=_.V$.prototype.unsubscribeByKey;_.V$.prototype.publish=_.V$.prototype.publish;_.V$.prototype.clear=_.V$.prototype.clear;_.e0("ytPubsubPubsubInstance",PLr);_.e0("ytPubsubPubsubTopicToKeys",mH);_.e0("ytPubsubPubsubIsSynchronous",_.SUg);
_.e0("ytPubsubPubsubSubscribedKeys",ad);var $n=window;var Xa=_.n("web_enable_lifecycle_monitoring")&&Del()!==0,AhQ=_.n("web_enable_lifecycle_monitoring");var ZxQ=function(p){var y=this;var l=l===void 0?0:l;var q=q===void 0?_.B3():q;this.JSC$10786_defaultPriority=l;this.scheduler=q;this.completedResolver=new _.AB;this.scheduledPayloads=p;for(p={i$jscomp$488:0};p.i$jscomp$488<this.scheduledPayloads.length;p={payload$jscomp$19:void 0,i$jscomp$488:p.i$jscomp$488},p.i$jscomp$488++)p.payload$jscomp$19=this.scheduledPayloads[p.i$jscomp$488],l=function(t){return function(){t.payload$jscomp$19.job();y.scheduledPayloads[t.i$jscomp$488].processed=!0;y.scheduledPayloads.every(function(E){return E.processed===
!0})&&y.completedResolver.resolve()}}(p),q=this.getPriority(p.payload$jscomp$19),q=this.scheduler.addJob(l,q),this.scheduledPayloads[p.i$jscomp$488]=Object.assign({},p.payload$jscomp$19,{job:l,
jobId:q})};
ZxQ.prototype.flushJobs=function(){var p=this,y=Array.from(this.scheduledPayloads.keys()).sort(function(q,t){return p.getPriority(p.scheduledPayloads[t])-p.getPriority(p.scheduledPayloads[q])});
y=_.c(y);for(var l=y.next();!l.done;l=y.next())l=this.scheduledPayloads[l.value],l.jobId===void 0||l.processed||(this.scheduler.cancelJob(l.jobId),this.scheduler.addJob(l.job,10))};
ZxQ.prototype.cancel=function(){for(var p=_.c(this.scheduledPayloads),y=p.next();!y.done;y=p.next())y=y.value,y.jobId===void 0||y.processed||this.scheduler.cancelJob(y.jobId),y.processed=!0;this.completedResolver.resolve()};
ZxQ.prototype.getPriority=function(p){var y;return(y=p.priority)!=null?y:this.JSC$10786_defaultPriority};var dI=function(p){this.state=p;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Xa&&Hlg(this.state)};
dI.prototype.install=function(p){this.plugins.push(p);return this};
dI.prototype.uninstall=function(){var p=this;_.oX.apply(0,arguments).forEach(function(y){y=p.plugins.indexOf(y);y>-1&&p.plugins.splice(y,1)})};
dI.prototype.transition=function(p,y){var l=this;Xa&&TW6(this.state);var q=this.transitions.find(function(E){return Array.isArray(E.from)?E.from.find(function(e){return e===l.state&&E.to===p}):E.from===l.state&&E.to===p});
if(q){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);MYr(this,p,y);this.state=p;Xa&&Hlg(this.state);q=q.action.bind(this);var t=this.plugins.filter(function(E){return E[p]}).map(function(E){return E[p]});
q(VYN(this,t),y)}else throw Error("gd`"+this.state+"`"+p);};
var VYN=function(p,y){var l=y.filter(function(t){return gcU(p,t)===10}),q=y.filter(function(t){return gcU(p,t)!==10});
return p.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var t=_.oX.apply(0,arguments);return _.h(function(E){if(E.nextAddress==1)return E.yield(p.runImmediateJobsAsync.apply(p,[l].concat(_.xq(t))),2);p.setJobSetWithScheduledJobs.apply(p,[q].concat(_.xq(t)));_.rR(E)})}:function(){var t=_.oX.apply(0,arguments);
p.runImmediateJobsSync.apply(p,[l].concat(_.xq(t)));p.setJobSetWithScheduledJobs.apply(p,[q].concat(_.xq(t)))}};
dI.prototype.runImmediateJobsSync=function(p){var y=_.oX.apply(1,arguments);_.B3();for(var l=_.c(p),q=l.next(),t={};!q.done;t={lifecycle$jscomp$2:void 0},q=l.next())t.lifecycle$jscomp$2=q.value,Ab(function(E){return function(){QGU(E.lifecycle$jscomp$2.name);BWu(function(){return E.lifecycle$jscomp$2.callback.apply(E.lifecycle$jscomp$2,_.xq(y))});
OA(E.lifecycle$jscomp$2.name)}}(t))};
dI.prototype.runImmediateJobsAsync=function(p){var y=_.oX.apply(1,arguments),l,q,t,E;return _.h(function(e){e.nextAddress==1&&(_.B3(),l=_.c(p),q=l.next(),t={});if(e.nextAddress!=3){if(q.done)return e.jumpTo(0);t.lifecycle$jscomp$3=q.value;t.asyncJobCompletion=void 0;E=function(C){return function(){QGU(C.lifecycle$jscomp$3.name);var u=BWu(function(){return C.lifecycle$jscomp$3.callback.apply(C.lifecycle$jscomp$3,_.xq(y))});
t5a(u)?C.asyncJobCompletion=_.n("web_lifecycle_error_handling_killswitch")?u.then(function(){OA(C.lifecycle$jscomp$3.name)}):u.then(function(){OA(C.lifecycle$jscomp$3.name)},function(a){xem(a);
OA(C.lifecycle$jscomp$3.name)}):OA(C.lifecycle$jscomp$3.name)}}(t);
Ab(E);return t.asyncJobCompletion?e.yield(t.asyncJobCompletion,3):e.jumpTo(3)}t={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};q=l.next();return e.jumpTo(2)})};
dI.prototype.setJobSetWithScheduledJobs=function(p){var y=_.oX.apply(1,arguments),l=this,q=p.map(function(t){return{job:function(){QGU(t.name);BWu(function(){return t.callback.apply(t,_.xq(y))});
OA(t.name)},
priority:gcU(l,t)}});
q.length&&(this.jobSet=new ZxQ(q))};
var gcU=function(p,y){var l,q;return(q=(l=p.overridePriority)!=null?l:y.priority)!=null?q:0},QGU=function(p){Xa&&p&&Hlg(p)},OA=function(p){Xa&&p&&TW6(p)},MYr=function(p,y,l){AhQ&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+p.constructor.name+"] '"+p.state+"' to '"+y+"'"),console.log("with message: ",l),console.groupEnd())};
_.Jh.Object.defineProperties(dI.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var KXU=function(p){dI.call(this,p===void 0?"none":p);this.navigationTimer=null;this.overridePriority=10;this.transitions=[{from:"none",to:"application_navigating",action:this.runApplicationNavigationBegin},{from:"application_navigating",to:"none",action:this.runApplicationNavigationEnd},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]},w2x;
_.A(KXU,dI);KXU.prototype.runApplicationNavigationBegin=function(p,y){var l=this;this.navigationTimer=_.rJ(_.TR,function(){l.currentState==="application_navigating"&&l.transition("none")},5E3);
p(y==null?void 0:y.event)};
KXU.prototype.runApplicationNavigationEnd=function(p,y){this.navigationTimer&&(_.TR.cancelJob(this.navigationTimer),this.navigationTimer=null);p(y==null?void 0:y.event)};
_.DWl=function(){w2x||(w2x=new KXU);return w2x};var NDL=[];_.e0("yt.logging.transport.getScrapedGelPayloads",function(){return NDL});var jF=function(){var p=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return p.totalEntries}}};
jF.prototype.storePayload=function(p,y){p=fSt(p);this.store[p]?this.store[p].push(y):(this.memoizedKeySequences={},this.store[p]=[y]);this.totalEntries++;_.n("more_accurate_gel_parser")&&(y=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(y));return p};
jF.prototype.smartExtractMatchingEntries=function(p){if(!p.keys.length)return[];for(var y=ixr(this,p.keys.splice(0,1)[0]),l=[],q=0;q<y.length;q++)this.store[y[q]]&&p.sizeLimit&&(this.store[y[q]].length<=p.sizeLimit?(l.push.apply(l,_.xq(this.store[y[q]])),delete this.store[y[q]]):l.push.apply(l,_.xq(this.store[y[q]].splice(0,p.sizeLimit))));this.totalEntries-=l.length;(p==null?0:p.sizeLimit)&&l.length<(p==null?void 0:p.sizeLimit)&&(p.sizeLimit-=l.length,l.push.apply(l,_.xq(this.smartExtractMatchingEntries(p))));
return l};
jF.prototype.extractMatchingEntries=function(p){p=ixr(this,p);for(var y=[],l=0;l<p.length;l++)this.store[p[l]]&&(y.push.apply(y,_.xq(this.store[p[l]])),delete this.store[p[l]]);this.totalEntries-=y.length;return y};
jF.prototype.getSequenceCount=function(p){p=ixr(this,p);for(var y=0,l=0;l<p.length;l++){var q=void 0;y+=((q=this.store[p[l]])==null?void 0:q.length)||0}return y};
var ixr=function(p,y){var l=fSt(y);if(p.memoizedKeySequences[l])return p.memoizedKeySequences[l];var q=Object.keys(p.store)||[];if(q.length<=1&&fSt(y)===q[0])return q;for(var t=[],E=0;E<q.length;E++){var e=q[E].split("/");if(rhr(y.auth,e[0])){var C=y.isJspb;rhr(C===void 0?"undefined":C?"true":"false",e[1])&&rhr(y.cttAuthInfo,e[2])&&(C=y.tier,C=C===void 0?"undefined":JSON.stringify(C),rhr(C,e[3])&&t.push(q[E]))}}return p.memoizedKeySequences[l]=t},rhr=function(p,y){return p===void 0||p==="undefined"?
!0:p===y};
jF.prototype.getSequenceCount=jF.prototype.getSequenceCount;jF.prototype.extractMatchingEntries=jF.prototype.extractMatchingEntries;jF.prototype.smartExtractMatchingEntries=jF.prototype.smartExtractMatchingEntries;jF.prototype.storePayload=jF.prototype.storePayload;var bYm,$Wt,nSm,GX,SnQ,vS8,fR6,UWo,mWu,tw5,jxL,LR6,Rxu;bYm=_.UC("initial_gel_batch_timeout",2E3);$Wt=_.UC("gel_queue_timeout_max_ms",6E4);nSm=_.UC("gel_min_batch_size",5);GX=void 0;SnQ=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
vS8=new SnQ;fR6=new SnQ;UWo=new SnQ;mWu=new SnQ;jxL=!0;LR6=1;_.FRa=new Map;Rxu=_.l_.ytLoggingTransportTokensToCttTargetIds_||{};_.e0("ytLoggingTransportTokensToCttTargetIds_",Rxu);var uf5=_.l_.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.e0("ytLoggingTransportTokensToJspbCttTargetIds_",uf5);var nT={};var N$=_.l_.ytLoggingGelSequenceIdObj_||{};_.e0("ytLoggingGelSequenceIdObj_",N$);var OYu=[];var Jsu=new Set,pN8=0,Cj6=0,hWl=0,l6g=[],ys_=[],up6=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var ZXo=function(){};
ZXo.prototype.getUrl=function(p,y){y=y===void 0?!1:y;return p.hasOwnProperty("shareEndpoint")?null:_.mru(p,null,y)};
var NK_=function(p,y,l){p={endpoint:y,actions:[]};l=(l.path?l.path[0]:l.target).icon||"";y=l.indexOf(":");y>0&&(l=l.substr(y+1));l&&p.actions.push(l);return p};var G4L=/Command$/,nom=/Endpoint$/,$r5=new Map;var FXx,LXr;FXx=1;_.pt=function(){this.actionRoutingMap=new Map};
_.pt.prototype.triggerAction=function(p){var y=new pzo(p,!1,_.oX.apply(1,arguments));this.handleAction(y);return y.returnValue};
_.pt.prototype.triggerOptionalAction=function(p){var y=new pzo(p,!0,_.oX.apply(1,arguments));this.handleAction(y);return y.returnValue};
_.oL=function(p,y,l){y.forEach(function(q){var t=bX8(q);t&&p.triggerOptionalAction(t,q,l,void 0)})};
_.pt.prototype.handleAction=function(p){var y=this.actionRoutingMap.get(p.actionName);y&&LXr(p,y);p.optionalAction||p.returnValue.length!==0||(p=new _.SM("Unhandled action",p.actionName),_.ph(p))};
LXr=function(p,y){y.forEach(function(l){var q=null;l?q=l.apply(null,p.args):(l=Error("hd"),l.params=p.actionName,_.zi(l));p.returnValue.push(q)})};
_.y2=function(p,y,l){l||(l=FXx++);for(var q=_.c(Object.keys(y)),t=q.next();!t.done;t=q.next()){t=t.value;var E=p.actionRoutingMap.get(t);E||(E=new Map,p.actionRoutingMap.set(t,E));p.registerActionHandler(l,t,y[t],E)}return l};
_.pt.prototype.registerActionHandler=function(p,y,l,q){q.set(p,_.YZ(l))};
_.lX=function(p,y,l){y=_.c(Object.keys(y));for(var q=y.next();!q.done;q=y.next())(q=p.actionRoutingMap.get(q.value))&&q.delete(l)};
_.Ua(_.pt);var goo=function(p,y){var l=_.pt.getInstance();_.xZ(function(){var q={},t=_.y2(l,(q[p]=y,q));_.TP(function(){var E={};_.lX(l,(E[p]="",E),t)})})};var A5_=Symbol("jd");Ll6=RoL;var f6o=new Set(["For","If","Match","Watch"]),kci={},NaM=(kci[oe.default]=function(){return Qpj},kci.style=function(){return Qpj},kci),DfP;
for(DfP in NaM)ub.attributes[DfP]=NaM[DfP](ub.attributes[DfP]);var hK=new _.WE("VISIBILITY_OBSERVER");var yy_={retrieve:function(p){return this.id.\u0275prov.token===p.\u0275prov.token?this.contextValue:this?_.cQ(this,this.id):hJ8}};var B_g=function(p,y,l){if(p!==EM)return!1;p=NiL(document.createElement("div"),function(){var q=mq(!1);try{l[0]()}finally{mq(q)}});
p=Array.from(p.childNodes);p.length===1&&(p=p[0]);return p};var Hxr=function(p){p=p.clone();hs$(p);Fe(p,"dg",null);Fe(p,"d","0");Ehr(p,null);JJV(p,null);return p},TaN=!0,xfP=function(p,y,l){var q=l===void 0?{}:l;
l=q.cssRowKey===void 0?void 0:q.cssRowKey;var t=q.combinedSignature===void 0?void 0:q.combinedSignature;var E=q.extraEdges===void 0?void 0:q.extraEdges;q=q.callback===void 0?void 0:q.callback;Fe(p,"m",y.join(","));E&&esQ(p,E);l&&(Fe(p,"ck",l),t?Fe(p,"rs",t):TaN&&(TaN=!1));if(q){if(q!=null&&!RsN.test(q))throw Error("Xa`"+q);Fe(p,"cb",q)}p=p.toString();_.tR(p,"/")&&(p=H7Q(document.location.href)+p);return _.FX(p)};var f_N=function(p){return BaO(p).then(function(y){return JSON.parse(y.responseText)})},BaO=function(p){var y={},l=y.xmlHttpFactory?y.xmlHttpFactory.createInstance():gIx.createInstance();
return(new _.Ps(function(q,t){var E;try{l.open("GET",p,!0)}catch(u){t(new zv("Error opening XHR: "+u.message,p,l))}l.onreadystatechange=function(){if(l.readyState==4){_.l_.clearTimeout(E);var u;!(u=VOr(l.status))&&(u=l.status===0)&&(u=DLM(p),u=!(u=="http"||u=="https"||u==""));u?q(l):t(new vcP(l.status,p,l))}};
l.onerror=function(){t(new zv("Network error",p,l))};
if(y.headers)for(var e in y.headers){var C=y.headers[e];C!=null&&l.setRequestHeader(e,C)}y.withCredentials&&(l.withCredentials=y.withCredentials);y.responseType&&(l.responseType=y.responseType);y.mimeType&&l.overrideMimeType(y.mimeType);y.timeoutMs>0&&(E=_.l_.setTimeout(function(){l.onreadystatechange=function(){};
l.abort();t(new X2r(p,l))},y.timeoutMs));
try{l.send(null)}catch(u){l.onreadystatechange=function(){},_.l_.clearTimeout(E),t(new zv("Error sending XHR: "+u.message,p,l))}})).thenCatch(function(q){q instanceof _.lW&&l.abort();
throw q;})},zv=function(p,y,l){_.p8.call(this,p+", url="+y);
this.url=y;this.xhr=l};
_.j6(zv,_.p8);zv.prototype.name="XhrError";var vcP=function(p,y,l){zv.call(this,"Request Failed, status="+p,y,l);this.status=p};
_.j6(vcP,zv);vcP.prototype.name="XhrHttpError";var X2r=function(p,y){zv.call(this,"Request timed out",p,y)};
_.j6(X2r,zv);X2r.prototype.name="XhrTimeoutError";mn=mn||{};var Yf=function(){_.Sr.call(this)};
_.j6(Yf,_.Sr);Yf.prototype.initialize=function(){};var dfx=function(p,y){this.fn_=p;this.handler_=y};
dfx.prototype.execute=function(p){this.fn_&&(this.fn_.call(this.handler_||null,p),this.fn_=this.handler_=null)};
dfx.prototype.abort=function(){this.handler_=this.fn_=null};var IL=function(p,y){_.Sr.call(this);this.deps_=p;this.JSC$10913_id_=y;this.onloadCallbacks_=[];this.JSC$10913_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.j6(IL,_.Sr);IL.prototype.moduleConstructor_=Yf;IL.prototype.module_=null;IL.prototype.getId=function(){return this.JSC$10913_id_};
IL.prototype.registerCallback=function(p,y){return OxM(this.onloadCallbacks_,p,y)};
var ocB=function(p,y){OxM(p.JSC$10913_onErrorCallbacks_,y)},OxM=function(p,y,l){y=new dfx(y,l);
p.push(y);return y};
IL.prototype.isLoaded=function(){return!!this.module_};
IL.prototype.onLoad=function(p){var y=new this.moduleConstructor_;y.initialize(p());this.module_=y;y=(y=zoB(this.earlyOnloadCallbacks_,p()))||zoB(this.onloadCallbacks_,p());y||(this.JSC$10913_onErrorCallbacks_.length=0);return y};
IL.prototype.onError=function(p){(p=zoB(this.JSC$10913_onErrorCallbacks_,p))&&qa(Error("nd`"+p));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var zoB=function(p,y){for(var l=[],q=0;q<p.length;q++)try{p[q].execute(y)}catch(t){qa(t),l.push(t)}p.length=0;return l.length?l:null};
IL.prototype.disposeInternal=function(){IL.superClass_.disposeInternal.call(this);_.er(this.module_)};var Ynr,sJi,lbP,qbv,pWr,yOU,eSQ,JO$,cO$;
_.yp=function(p,y,l,q,t){q=q===void 0?!1:q;t=t===void 0?!1:t;var E=E===void 0?!0:E;this.scsReferenceUrl_=iKj(_.LO(p).toString(),E);this.cssRowKey_=y;this.combinedSignature_=l;this.useNegativeLoading_=q;this.requestedModuleMap_={};this.JSC$10916_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(p=S2(this.scsReferenceUrl_,"excm"))?p.split(","):[];this.shouldScanForCss_=t;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;rku();_.pz(this,cJU(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
Ynr=function(p,y){if(y.href||y.getAttribute("data-href"))if(y=y.href||y.getAttribute("data-href"),gQc(y)&&!iKj(y).urlPrefix_.endsWith("_/js/")){y=cJU(iKj(y));y=_.c(y);for(var l=y.next();!l.done;l=y.next())l=l.value,p.loadedCssModuleList_.includes(l)||p.loadedCssModuleList_.push(l)}};
_.yp.prototype.JSC$10918_loadModules=function(p,y,l){var q=l===void 0?{}:l;l=q.extraEdges;var t=q.onError;var E=q.onSuccess;q=q.forceReload;this.JSC$10916_moduleInfoMap_=y;if(!p)throw Error("od");if(this.shouldScanForCss_){y=_.c(document.getElementsByTagName("style"));for(var e=y.next();!e.done;e=y.next())Ynr(this,e.value);y=_.c(document.getElementsByTagName("link"));for(e=y.next();!e.done;e=y.next())Ynr(this,e.value)}I_$(this,pWr(this,p),l,t,E,q)};
var I_$=function(p,y,l,q,t,E){q=q===void 0?function(){}:q;
t=t===void 0?function(){}:t;
E=E===void 0?!1:E;yOU(p,y,function(e,C,u){u=u===void 0?C:u;p.enableFallbackFetch&&E?p.loadWithFetch(e,C,q,t,u):p.load(e,C,q,t,u,l)},l)||q(-1)};
_.yp.prototype.loadWithFetch=function(){_.h(function(){throw Error("pd");})};
_.yp.prototype.maybeSetAdditionalFields=function(){};
sJi=function(p,y,l){if(p.useNegativeLoading_){var q=p.scsReferenceUrl_;p={cssRowKey:p.cssRowKey_,combinedSignature:p.combinedSignature_,extraEdges:l,requestedModuleIds:lbP(p),requestedCssModuleIds:qbv(p)};var t=p===void 0?{}:p;p=t.requestedModuleIds===void 0?[]:t.requestedModuleIds;l=t.requestedCssModuleIds===void 0?[]:t.requestedCssModuleIds;var E=t.cssRowKey===void 0?void 0:t.cssRowKey;var e=t.combinedSignature===void 0?void 0:t.combinedSignature;var C=t.extraEdges===void 0?void 0:t.extraEdges;
t=t.callback===void 0?void 0:t.callback;q=Hxr(q);Fe(q,"d","1");Ehr(q,p);JJV(q,l);y=xfP(q,y,{cssRowKey:E,combinedSignature:e,extraEdges:C,callback:t})}else q=p.scsReferenceUrl_,p={cssRowKey:p.cssRowKey_,combinedSignature:p.combinedSignature_,requestedModuleIds:lbP(p),requestedCssModuleIds:qbv(p)},C=p===void 0?{}:p,p=C.requestedCssModuleIds===void 0?[]:C.requestedCssModuleIds,l=C.cssRowKey===void 0?void 0:C.cssRowKey,E=C.combinedSignature===void 0?void 0:C.combinedSignature,e=C.extraEdges===void 0?
void 0:C.extraEdges,C=C.callback===void 0?void 0:C.callback,q=Hxr(q),JJV(q,p),y=xfP(q,y,{cssRowKey:l,combinedSignature:E,extraEdges:e,callback:C});return y};
_.pz=function(p,y){for(var l=!1,q=[],t=0;t<y.length;++t){var E=y[t];p.requestedModuleMap_[E]||(p.requestedModuleMap_[E]=!0,p.requestedModuleList_.push(E),l=!0,q.push(E))}l&&(p.requestedModuleListSorted_=!1)};
_.lm=function(p,y){for(var l=[],q=0;q<y.length;++q){var t=y[q];p.requestedModuleMap_[t]&&(delete p.requestedModuleMap_[t],_.Oc(p.requestedModuleList_,t),l.push(t))}};
_.yp.prototype.load=function(p,y,l,q,t){t=t===void 0?y:t;_.LO(p);var E=this.useCors_,e=this.corsMode_,C=this.fetchPriority,u=_.gg("SCRIPT");_.e_(u,p);E&&(u.crossOrigin=e);u.async=!1;C&&u.setAttribute("fetchpriority",C);_.pz(this,y);_.tNQ(this,p,u,y,l,q,t)};
_.tNQ=function(p,y,l,q,t,E,e){e=e===void 0?q:e;p.lastScript_=l;p.insertPos.insertBefore(l,p.insertPos.firstChild);_.EwM(l,q,function(){l.parentElement.removeChild(l);p.lastScript_==l&&(p.lastScript_=null);var C=new Set;q.map(function(a){return C.add(a)});
for(var u in p.JSC$10916_moduleInfoMap_)p.JSC$10916_moduleInfoMap_[u].isLoaded()&&C.add(u);Array.from(C);E()},function(C){l.parentElement.removeChild(l);
p.lastScript_==l&&(p.lastScript_=null);_.lm(p,C);p.pendingModuleGraphUpdate_?p.pendingModuleGraphUpdate_.then(function(){t(-1,y)}):t(-1,y)},e)};
_.EwM=function(p,y,l,q,t){t=t===void 0?y:t;var E=y.length,e=function(){E=0;p.onload=null;p.onerror=null;C=function(){}},C=function(){e();
var a=t.filter(function(m){return!H9().getModuleInfo(m).isLoaded()});
a.length!==0?q(a,"Response was successful but was missing module(s) "+a+"."):l()},u=function(){E--;
E==0&&C()};
y.forEach(function(a){a=H9().getModuleInfo(a);a.isLoaded()?u():(OxM(a.earlyOnloadCallbacks_,u),ocB(a,u))});
p.onload=function(){return C()};
p.onerror=function(){e();q(y)}};
lbP=function(p){p.requestedModuleListSorted_||(p.requestedModuleListSorted_=!0,p.requestedModuleList_.sort());return p.requestedModuleList_};
qbv=function(p){p=p.loadedCssModuleList_;p.sort();return p};
pWr=function(p,y){return y.filter(function(l){return!p.requestedModuleMap_[l]})};
yOU=function(p,y,l,q){if(p.pendingModuleGraphUpdate_)return p.pendingModuleGraphUpdate_.then(function(){yOU(p,y,l,q)}),!0;
if(!p.useNegativeLoading_){var t=[],E=Object.assign({},p.requestedModuleMap_);JO$(p,y,function(m){t.push(m.getId())},q,function(m){return!m.isLoaded()},E);
y=t}for(E=0;E<y.length;){for(var e=y.length-E,C=E==0?y:y.slice(E,y.length),u=sJi(p,C,q),a=_.LO(u).toString();a.length>p.urlMaxLength;)if(e>1)e-=Math.ceil((a.length-p.urlMaxLength)/6),e=Math.max(e,1),C=y.slice(E,E+e),u=sJi(p,C,q),a=_.LO(u).toString();else return p.useNegativeLoading_?(p.useNegativeLoading_=!1,p.pendingModuleGraphUpdate_=cO$(p).then(function(m){eSQ(p,m,q)}),yOU(p,y.slice(E),l,q)):!1;
E+=e;p.useNegativeLoading_?l(u,C):l(u,C,E===y.length?y:[])}return!0};
eSQ=function(p,y,l){H9().setAllModuleInfoString((y||{}).moduleGraph);JO$(p,lbP(p),function(q){_.pz(p,[q.getId()])},l);
p.pendingModuleGraphUpdate_=null};
JO$=function(p,y,l,q,t,E){E=E===void 0?{}:E;var e=H9();y=_.c(y);for(var C=y.next();!C.done;C=y.next()){C=C.value;var u=e.getModuleInfo(C);if(!(E[C]||t&&!t(u))){E[C]=!0;var a=u.deps_||[];if(q){var m=[];q[C]&&(m=Object.keys(q[C]));a=a.concat(m)}JO$(p,a,l,q,t,E);l(u)}}};
cO$=function(p){p=p.scsReferenceUrl_.clone();hs$(p);Fe(p,"dg",null);Fe(p,"md","1");return f_N(p.toString())};var skc=new Uint8Array(123);var hSV=[];var ClV=function(){this.JSC$9990_loader_=null};
_.J=ClV.prototype;_.J.setBatchModeEnabled=function(){};
_.J.setAllModuleInfoString=function(){};
_.J.addExtraEdge=function(){throw Error("qd");};
_.J.removeExtraEdge=function(){throw Error("rd");};
_.J.getModuleContext=function(){return null};
_.J.isActive=function(){return!1};
_.J.isUserActive=function(){return!1};
_.J.registerCallback=function(){};var q6=function(p,y,l,q,t){var E=Error.call(this);this.message=E.message;"stack"in E&&(this.stack=E.stack);this.name="ModuleLoadFailure";this.type=p;this.status=y;this.requestedModuleIds=l;this.url=q;this.cause=t;this.message=this.toString()};
_.A(q6,Error);q6.prototype.toString=function(){return u_U(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var u_U=function(p){switch(p.type){case q6.Type.UNAUTHORIZED:return"Unauthorized";case q6.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case q6.Type.TIMEOUT:return"Timed out";case q6.Type.OLD_CODE_GONE:return"Out of date module id";case q6.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+p.type}};
mn.ModuleLoadFailure=q6;mn.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var sT=function(){this.moduleIds_=this.JSC$9990_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$10931_extraEdges_={};this.JSC$10931_callbackMap_={};this.JSC$10931_currentlyLoadingModule_=this.baseModuleInfo_=new IL([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new tH;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.j6(sT,ClV);var RSv=function(p,y){_.p8.call(this,"Error loading "+p+": "+y)};
_.j6(RSv,_.p8);sT.prototype.setBatchModeEnabled=function(p){this.batchModeEnabled_=p};
sT.prototype.setAllModuleInfoString=function(p,y){if(!(this instanceof sT))this.setAllModuleInfoString(p,y);else if(typeof p==="string"){if(p.startsWith("d$")){p=p.substring(2);for(var l=[],q=0,t=p.indexOf("/"),E=0,e=!1,C=0;;){var u=e?p.substring(E):p.substring(E,t);if(u.length===0)q++,E="sy"+q.toString(36),u=[];else{var a=u.indexOf(":");if(a<0)E=u,u=[];else if(a===u.length-1)E=u.substring(0,a),u=Array(l[C-1]);else{E=u.substring(0,a);u=u.substring(a+1).split(",");a=C;for(var m=0;m<u.length;m++)a-=
u[m].length===0?1:Number(u[m]),u[m]=l[a]}a=0;if(E.length===0)a=1;else if(E.charAt(0)==="+"||E.charAt(0)==="-")a=Number(E);a!==0&&(q+=a,E="sy"+q.toString(36))}l.push(E);WOr(this,E,u);if(e)break;E=t+1;t=p.indexOf("/",E);t===-1&&(e=!0);C++}this.moduleIds_=l}else if(p.startsWith("p$"))abP(this,p);else{p=p.split("/");l=[];for(q=0;q<p.length;q++){C=p[q].split(":");t=C[0];e=[];if(C[1])for(e=C[1].split(","),C=0;C<e.length;C++)e[C]=l[parseInt(e[C],36)];l.push(t);WOr(this,t,e)}this.moduleIds_=l}y&&y.length?
(_.pU(this.loadingModuleIds_,y),this.lastInitialModuleId_=_.Fo(y)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$10931_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$10931_currentlyLoadingModule_=null,(y=this.baseModuleInfo_.onLoad((0,_.FZ)(this.getModuleContext,this)))&&y.length&&mni(this,new mn.ModuleLoadFailure(mn.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,y[0])),tc(this))}};
var abP=function(p,y){var l=y.substring(2);for(y=0;y<64;y++)skc["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(y)]=y;var q={buf:l,pos:0};Rp(q);var t=Rp(q),E=Rp(q)+1;y=Array(t);var e=Array(t),C=Array(t);E=Array(E);var u=0,a=0,m=q.pos,U=q.buf.indexOf("|",q.pos);q.pos=U+1;for(U=0;U<t;U++){var b=Rp(q),P=b&2,Z=b&1;b>>>=2;Z?(u+=b>>>1^-(b&1),b="sy"+u.toString(36)):(Z=m,m+=b,b=l.substring(Z,m));y[U]=b;P&&(E[a++]=b)}E[a]="";q.pos++;a=t&-2;l=t&1;for(u=0;u<a;u+=2)m=tq8(q),C[u]=
m&7,C[u+1]=m>>>3&7;l&&(l=tq8(q),C[a]=l&7);q.pos++;for(a=0;a<t;a++)C[a]===7&&(C[a]=Rp(q));q.pos++;for(l=a=0;l<t;l++){u=C[l];m=u===0?hSV:Array(u);e[l]=m;U=a;for(P=0;P<u;P++)U-=Rp(q),m[P]=E[U];E[a]===y[l]&&a++}for(q=0;q<y.length;q++)WOr(p,y[q],e[q]);p.moduleIds_=y};
_.J=sT.prototype;_.J.getModuleInfo=function(p){return this.moduleInfoMap[p]};
_.J.addExtraEdge=function(p,y){var l=this.getModuleInfo(p);l&&l.isLoaded()?this.load(y):(this.JSC$10931_extraEdges_[p]||(this.JSC$10931_extraEdges_[p]={}),this.JSC$10931_extraEdges_[p][y]=!0)};
_.J.removeExtraEdge=function(p,y){if(this.JSC$10931_extraEdges_[p]){delete this.JSC$10931_extraEdges_[p][y];for(var l in this.JSC$10931_extraEdges_[p])return;delete this.JSC$10931_extraEdges_[p]}};
_.J.isActive=function(){return this.loadingModuleIds_.length>0};
_.J.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var tc=function(p){var y=p.lastActive_,l=p.isActive();l!=y&&(p.executeCallbacks_(l?"active":"idle"),p.lastActive_=l);y=p.isUserActive();y!=p.userLastActive_&&(p.executeCallbacks_(y?"userActive":"userIdle"),p.userLastActive_=y)},WOr=function(p,y,l){p.moduleInfoMap[y]?(p=p.moduleInfoMap[y].deps_,p!=l&&p.splice.apply(p,[0,
p.length].concat(_.xq(l)))):p.moduleInfoMap[y]=new IL(l,y)},$nM=function(p,y,l){var q=[];
E$(y,q);y=[];for(var t={},E=0;E<q.length;E++){var e=q[E],C=p.getModuleInfo(e);if(!C)throw Error("sd`"+e);var u=new tH;t[e]=u;C.isLoaded()?u.callback(null):(Uni(p,e,C,!!l,u),p.isModuleLoading(e)||y.push(e))}y.length>0&&(p.loadingModuleIds_.length===0?p.loadModules_(y):(p.requestedModuleIdsQueue_.push(y),tc(p)));return t},Uni=function(p,y,l,q,t){l.registerCallback(t.callback,t);
ocB(l,function(E){t.errback(new RSv(y,E))});
p.isModuleLoading(y)?q&&(jJU(p,y),tc(p)):q&&jJU(p,y)};
sT.prototype.loadModules_=function(p,y,l){var q=this;y||(this.consecutiveFailures_=0);var t=byU(this,p);this.loadingModuleIds_=t;this.requestedLoadingModuleIds_=this.batchModeEnabled_?p:_.og(t);tc(this);if(t.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,t);if(Object.keys(this.JSC$10931_extraEdges_).length>0&&!this.JSC$9990_loader_.supportsExtraEdges)throw Error("td");p=(0,_.FZ)(this.JSC$9990_loader_.JSC$10918_loadModules,this.JSC$9990_loader_,_.og(t),this.moduleInfoMap,
{extraEdges:this.JSC$10931_extraEdges_,forceReload:!!l,onError:function(E,e){var C=q.requestedLoadingModuleIds_;E=E!=null?E:void 0;q.consecutiveFailures_++;var u=_.og(t);q.requestedLoadingModuleIds_=C;t.forEach(_.Ky(_.Oc,q.requestedModuleIds_),q);E==401?(mni(q,new mn.ModuleLoadFailure(mn.ModuleLoadFailure.Type.UNAUTHORIZED,E)),q.requestedModuleIdsQueue_.length=0):E==410?(nwr(q,new mn.ModuleLoadFailure(mn.ModuleLoadFailure.Type.OLD_CODE_GONE,E)),GfB(q)):q.consecutiveFailures_>=3?(nwr(q,new mn.ModuleLoadFailure(mn.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
E,u,e)),GfB(q)):q.loadModules_(q.requestedLoadingModuleIds_,!0,E==8001||!1)},
onTimeout:(0,_.FZ)(this.handleLoadTimeout_,this)});(y=Math.pow(this.consecutiveFailures_,2)*5E3)?_.l_.setTimeout(p,y):p()}};
var byU=function(p,y){y=y.filter(function(t){return p.moduleInfoMap[t].isLoaded()?(_.l_.setTimeout(function(){return Error("ud`"+t)},0),!1):!0});
for(var l=[],q=0;q<y.length;q++)l=l.concat(PlM(p,y[q]));E$(l);return!p.batchModeEnabled_&&l.length>1?(y=l.shift(),p.requestedModuleIdsQueue_=l.map(function(t){return[t]}).concat(p.requestedModuleIdsQueue_),[y]):l},PlM=function(p,y){var l=_.Ts.createSet(p.requestedModuleIds_),q=[];
l[y]||q.push(y);y=[y];for(var t=0;t<y.length;t++)for(var E=p.getModuleInfo(y[t]).deps_,e=E.length-1;e>=0;e--){var C=E[e];p.getModuleInfo(C).isLoaded()||l[C]||(q.push(C),y.push(C))}q.reverse();E$(q);return q};
sT.prototype.JSC$10926_setLoaded=function(){if(this.JSC$10931_currentlyLoadingModule_){var p=this.JSC$10931_currentlyLoadingModule_.getId(),y=[];if(this.JSC$10931_extraEdges_[p]){for(var l=_.c(Object.keys(this.JSC$10931_extraEdges_[p])),q=l.next();!q.done;q=l.next()){q=q.value;var t=this.getModuleInfo(q);t&&!t.isLoaded()&&(this.removeExtraEdge(p,q),y.push(q))}this.loadMultiple(y)}this.isDisposed()||((y=this.moduleInfoMap[p].onLoad((0,_.FZ)(this.getModuleContext,this)))&&y.length&&mni(this,new mn.ModuleLoadFailure(mn.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,y[0])),_.Oc(this.userInitiatedLoadingModuleIds_,p),_.Oc(this.loadingModuleIds_,p),this.loadingModuleIds_.length===0&&GfB(this),this.lastInitialModuleId_&&p==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),tc(this),this.JSC$10931_currentlyLoadingModule_=null)}};
sT.prototype.isModuleLoading=function(p){if(_.Tl(this.loadingModuleIds_,p))return!0;for(var y=0;y<this.requestedModuleIdsQueue_.length;y++)if(_.Tl(this.requestedModuleIdsQueue_[y],p))return!0;return!1};
sT.prototype.load=function(p,y){return $nM(this,[p],y)[p]};
sT.prototype.loadMultiple=function(p){return $nM(this,p)};
var jJU=function(p,y){_.Tl(p.userInitiatedLoadingModuleIds_,y)||p.userInitiatedLoadingModuleIds_.push(y)};
sT.prototype.beforeLoadModuleCode=function(p){var y=this;this.JSC$10931_currentlyLoadingModule_&&this.JSC$10931_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$10926_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[p]&&AOr(this,this.moduleInfoMap[p].deps_||[],function(l){l.module_=new Yf;_.Oc(y.loadingModuleIds_,l.getId())},function(l){return!l.isLoaded()});
this.JSC$10931_currentlyLoadingModule_=this.getModuleInfo(p)};
sT.prototype.handleLoadTimeout_=function(){nwr(this,new mn.ModuleLoadFailure(mn.ModuleLoadFailure.Type.TIMEOUT));GfB(this)};
var nwr=function(p,y){p.requestedLoadingModuleIds_.length>1?p.requestedModuleIdsQueue_=p.requestedLoadingModuleIds_.map(function(l){return[l]}).concat(p.requestedModuleIdsQueue_):mni(p,y)},mni=function(p,y){var l=p.requestedLoadingModuleIds_;
p.loadingModuleIds_.length=0;for(var q=[],t=0;t<p.requestedModuleIdsQueue_.length;t++){var E=p.requestedModuleIdsQueue_[t].filter(function(u){var a=PlM(this,u);return sL(l,function(m){return _.Tl(a,m)})},p);
_.pU(q,E)}for(t=0;t<l.length;t++)_.f8(q,l[t]);for(t=0;t<q.length;t++){for(E=0;E<p.requestedModuleIdsQueue_.length;E++)_.Oc(p.requestedModuleIdsQueue_[E],q[t]);_.Oc(p.userInitiatedLoadingModuleIds_,q[t])}if(t=p.JSC$10931_callbackMap_.error)for(E=0;E<t.length;E++)for(var e=t[E],C=0;C<q.length;C++)e("error",q[C],y);for(q=0;q<l.length;q++)if(p.moduleInfoMap[l[q]])p.moduleInfoMap[l[q]].onError(y);p.requestedLoadingModuleIds_.length=0;tc(p)},GfB=function(p){for(;p.requestedModuleIdsQueue_.length;){var y=
p.requestedModuleIdsQueue_.shift().filter(function(l){return!this.getModuleInfo(l).isLoaded()},p);
if(y.length>0){p.loadModules_(y);return}}tc(p)};
sT.prototype.registerCallback=function(p,y){Array.isArray(p)||(p=[p]);for(var l=0;l<p.length;l++){var q=p[l],t=y,E=this.JSC$10931_callbackMap_;E[q]||(E[q]=[]);E[q].push(t)}};
sT.prototype.executeCallbacks_=function(p){for(var y=this.JSC$10931_callbackMap_[p],l=0;y&&l<y.length;l++)y[l](p)};
var AOr=function(p,y,l,q,t){q=q===void 0?function(){return!0}:q;
t=t===void 0?{}:t;y=_.c(y);for(var E=y.next();!E.done;E=y.next()){E=E.value;var e=p.getModuleInfo(E);!t[E]&&q(e)&&(t[E]=!0,AOr(p,e.deps_||[],l,q,t),l(e))}};
sT.prototype.dispose=function(){_.hq(_.Ts.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$10931_callbackMap_={};this.isDisposed_=!0};
sT.prototype.isDisposed=function(){return this.isDisposed_};
_.Dz=function(){return new sT};var ZyP=[5E3,2E4],MNO=function(){this.JSC$9990_loader_=null;this.JSC$10939_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$10939_queue_=[];this.JSC$10939_extraEdges_=Object.create(null);this.JSC$10939_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.A(MNO,ClV);_.J=MNO.prototype;_.J.setAllModuleInfoString=function(){this.JSC$10939_currentlyLoadingModule_&&this.JSC$10939_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$10926_setLoaded()};
_.J.getModuleInfo=function(p){var y=this.JSC$10939_moduleInfoMap_[p];y||(y=new IL([],p),this.JSC$10939_moduleInfoMap_[p]=y);return y};
_.J.addExtraEdge=function(p,y){this.getModuleInfo(p).isLoaded()?this.load(y):(this.JSC$10939_extraEdges_[p]||(this.JSC$10939_extraEdges_[p]={}),this.JSC$10939_extraEdges_[p][y]=!0)};
_.J.removeExtraEdge=function(p,y){if(this.JSC$10939_extraEdges_[p]){delete this.JSC$10939_extraEdges_[p][y];for(var l in this.JSC$10939_extraEdges_[p])return;delete this.JSC$10939_extraEdges_[p]}};
_.J.isModuleLoading=function(p){return!!this.loadingModules_[p]};
_.J.load=function(p){VNU(this,[p]);return gwB(this,p)};
_.J.loadMultiple=function(p){var y=this,l=Object.create(null),q=[];p.forEach(function(t){l[t]||(l[t]=gwB(y,t),q.push(t))});
VNU(this,q);return l};
_.J.beforeLoadModuleCode=function(p){var y;((y=this.JSC$10939_currentlyLoadingModule_)==null?void 0:y.getId())==="synthetic_module_overhead"&&this.JSC$10926_setLoaded();var l,q;QJ$(this,(q=(l=this.JSC$10939_moduleInfoMap_[p])==null?void 0:l.deps_)!=null?q:[],function(t){t.module_=new Yf},function(t){return!t.isLoaded()});
this.JSC$10939_currentlyLoadingModule_=this.getModuleInfo(p)};
_.J.JSC$10926_setLoaded=function(){if(this.JSC$10939_currentlyLoadingModule_){var p=this.JSC$10939_currentlyLoadingModule_.getId(),y=[];if(this.JSC$10939_extraEdges_[p]){for(var l=_.c(Object.keys(this.JSC$10939_extraEdges_[p])),q=l.next();!q.done;q=l.next())q=q.value,this.getModuleInfo(q).isLoaded()||(this.removeExtraEdge(p,q),y.push(q));this.loadMultiple(y)}this.JSC$10939_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$10939_currentlyLoadingModule_=null;(!this.isModuleLoading(p)&&/^sy[0-9a-z]{0,4}$/.test(p)||p==="synthetic_module_overhead")&&delete this.JSC$10939_moduleInfoMap_[p];this.unsetModulesAsLoading(p)}};
_.J.setModulesAsLoading=function(){var p=this;_.oX.apply(0,arguments).forEach(function(y){p.loadingModules_[y]=!0})};
_.J.unsetModulesAsLoading=function(){var p=this;_.oX.apply(0,arguments).forEach(function(y){delete p.loadingModules_[y]})};
var gwB=function(p,y){return new _.Ps(function(l,q){var t=p.getModuleInfo(y);t.isLoaded()?l(null):(t.registerCallback(function(){l(null)}),ocB(t,function(E){var e="Error loading "+y+": "+E;
E instanceof mn.ModuleLoadFailure&&E.url&&(e=e+", requested url: "+E.url.toString());q(Error(e))}))})},VNU=function(p,y){y=y.filter(function(l){return!p.isModuleLoading(l)&&!p.getModuleInfo(l).isLoaded()});
y.length>0&&(p.setModulesAsLoading.apply(p,_.xq(y)),p.JSC$10939_queue_.push(y),KOU(p))},KOU=function(p){for(var y={};p.activeLoads_<Infinity&&p.JSC$10939_queue_.length>0;y={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})y.ids$jscomp$36=p.JSC$10939_queue_.shift().filter(function(l){return!p.getModuleInfo(l).isLoaded()}),y.ids$jscomp$36.length>0&&(p.activeLoads_++,y.finishLoad=function(l){return function(){p.activeLoads_--;
KOU(p);l.finishLoad=function(){}}}(y),_.Ni(y.ids$jscomp$36.map(function(l){return gwB(p,l)})).then(function(l){return function(){(0,l.finishLoad)()}}(y)),y.attempt$jscomp$6=0,y.load$jscomp$1=function(l){return function(){if(Object.keys(p.JSC$10939_extraEdges_).length>0&&!p.JSC$9990_loader_.supportsExtraEdges)throw Error("td");
p.JSC$9990_loader_.JSC$10918_loadModules(l.ids$jscomp$36,p.JSC$10939_moduleInfoMap_,{extraEdges:p.JSC$10939_extraEdges_,onError:function(q,t){var E=ZyP[l.attempt$jscomp$6++];E!==void 0?setTimeout(function(){(0,l.load$jscomp$1)()},E):(p.unsetModulesAsLoading.apply(p,_.xq(l.ids$jscomp$36)),(0,l.finishLoad)(),l.ids$jscomp$36.forEach(function(e){e=p.getModuleInfo(e);
if(!e.isLoaded())e.onError(new mn.ModuleLoadFailure(mn.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,q,l.ids$jscomp$36,t))}))}})}}(y),(0,y.load$jscomp$1)())},QJ$=function(p,y,l,q,t){q=q===void 0?function(){return!0}:q;
t=t===void 0?{}:t;y=_.c(y);for(var E=y.next();!E.done;E=y.next()){E=E.value;var e=p.getModuleInfo(E);!t[E]&&q(e)&&(t[E]=!0,QJ$(p,e.deps_||[],l,q,t),l(e))}};var wWQ=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var Jya=Symbol("wd");window.JSCompiler_renameProperty=function(p){return p};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var iyO=!wWQ||HTMLElement.es5Shimmed||_.l_.Reflect===void 0||_.l_.customElements===void 0||_.l_.customElements.polyfillWrapFlushCallback||!1,rOi,kGo=function(){var p=HTMLElement;if(iyO)return p;if(rOi!==void 0)return rOi;var y=_.l_.Reflect,l=function(){return y.construct(p,[],this.constructor)};
l.prototype=p.prototype;l.prototype.constructor=l;l.es5Shimmed=!0;Object.setPrototypeOf(l,p);return rOi=l},SbV=!1;iyO||SbV||(SbV=!0,_.l_.HTMLElement=kGo());/*

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 uru=/(url\()([^)]*)(\))/g,hQ_=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,CIt,WK;var dF=!window.ShadyDOM||!window.ShadyDOM.inUse,FOU=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),LOB=!window.customElements.polyfillWrapFlushCallback,kf$;if(kf$=dF&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var N$$=new CSSStyleSheet;N$$.replaceSync("");var Dnr=document.createElement("div");Dnr.attachShadow({mode:"open"});Dnr.shadowRoot.adoptedStyleSheets=[N$$];kf$=Dnr.shadowRoot.adoptedStyleSheets[0]===N$$}catch(p){kf$=!1}
var HyB=kf$,T$M=window.Polymer&&window.Polymer.rootPath||WVm(document.baseURI||window.location.href),Kt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,GK8=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,YH=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,xnQ=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Xz=window.Polymer&&window.Polymer.legacyOptimizations||!1,ze=window.Polymer&&window.Polymer.legacyWarnings||!1,B$N=window.Polymer&&window.Polymer.syncInitialRender||
!1,iX=window.Polymer&&window.Polymer.legacyUndefined||!1,fb$=window.Polymer&&window.Polymer.orderedComputed||!1,ET=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Jc=window.Polymer&&window.Polymer.fastDomIf||!1,cz=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,vwr=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,XWQ=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var eC={},dnP={},SW=function(){return HTMLElement.apply(this,arguments)||this};
_.A(SW,HTMLElement);SW.import=function(p,y){return p?(p=eC[p]||dnP[p.toLowerCase()])&&y?p.querySelector(y):p:null};
SW.prototype.attributeChangedCallback=function(p,y,l){y!==l&&this.register()};
SW.prototype.register=function(p){if(p=p||this.id){if(YH&&(eC[p]||dnP[p.toLowerCase()])!==void 0)throw eC[p]=dnP[p.toLowerCase()]=null,Error("xd`"+p);this.id=p;eC[p]=dnP[p.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Jh.Object.defineProperties(SW.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var p=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;p=_.ap(this.getAttribute("assetpath")||"",p.baseURI);this.__assetpath=WVm(p)}return this.__assetpath}}});
_.Jh.Object.defineProperties(SW,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
SW["import"]=SW.import;SW.prototype.modules=eC;customElements.define("dom-module",SW);var OyU=0,mGt=0,ml=[],owQ=0,ayt=!1,zSx=document.createTextNode(""),Ybx,ft;(new window.MutationObserver(UGg)).observe(zSx,{characterData:!0});_.hc={after:function(p){return{run:function(y){return window.setTimeout(y,p)},
cancel:function(y){window.clearTimeout(y)}}},
run:function(p,y){return window.setTimeout(p,y)},
cancel:function(p){window.clearTimeout(p)}};
_.fl={run:function(p){return window.requestAnimationFrame(p)},
cancel:function(p){window.cancelAnimationFrame(p)}};
Ybx={run:function(p){return window.requestIdleCallback?window.requestIdleCallback(p):window.setTimeout(p,16)},
cancel:function(p){window.cancelIdleCallback?window.cancelIdleCallback(p):window.clearTimeout(p)}};
ft={run:function(p){ayt||(ayt=!0,zSx.textContent=owQ++);ml.push(p);return OyU++},
cancel:function(p){var y=p-mGt;if(y>=0){if(!ml[y])throw Error("yd`"+p);ml[y]=null}}};var IbU=0,Cz=function(p){var y=p.__mixinApplications;y||(y=new WeakMap,p.__mixinApplications=y);var l=IbU++;return function(q){var t=q.__mixinSet;if(t&&t[l])return q;var E=y,e=E.get(q);e||(e=p(q),E.set(q,e),q=Object.create(e.__mixinSet||t||null),q[l]=!0,e.__mixinSet=q);return e}};_.Q2=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(p){return ShadyDOM.patch(p)}:function(p){return p};var pVr=Cz(function(p){var y=function(){var l=p.call(this)||this;l.__dataEnabled=!1;l.__dataReady=!1;l.__dataInvalid=!1;l.__data={};l.__dataPending=null;l.__dataOld=null;l.__dataInstanceProps=null;l.__dataCounter=0;l.__serializing=!1;l._initializeProperties();return l};
_.A(y,p);y.createProperties=function(l){var q=this.prototype,t;for(t in l)t in q||q._createPropertyAccessor(t)};
y.attributeNameForProperty=function(l){return l.toLowerCase()};
y.typeForProperty=function(){};
y.prototype._createPropertyAccessor=function(l,q){this._addPropertyToAttributeMap(l);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[l]||(this.__dataHasAccessor[l]=!0,this._definePropertyAccessor(l,q))};
y.prototype._addPropertyToAttributeMap=function(l){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var q=this.__dataAttributes[l];q||(q=this.constructor.attributeNameForProperty(l),this.__dataAttributes[q]=l);return q};
y.prototype._definePropertyAccessor=function(l,q){Object.defineProperty(this,l,{get:function(){return this.__data[l]},
set:q?function(){}:function(t){this._setPendingProperty(l,t,!0)&&this._invalidateProperties()}})};
y.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
y.prototype._initializeProperties=function(){for(var l in this.__dataHasAccessor)this.hasOwnProperty(l)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[l]=this[l],delete this[l])};
y.prototype._initializeInstanceProperties=function(l){Object.assign(this,l)};
y.prototype._setProperty=function(l,q){this._setPendingProperty(l,q)&&this._invalidateProperties()};
y.prototype._getProperty=function(l){return this.__data[l]};
y.prototype._setPendingProperty=function(l,q){var t=this.__data[l],E=this._shouldPropertyChange(l,q,t);E&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||l in this.__dataOld||(this.__dataOld[l]=t),this.__data[l]=q,this.__dataPending[l]=q);return E};
y.prototype._isPropertyPending=function(l){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(l))};
y.prototype._invalidateProperties=function(){var l=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ft.run(function(){l.__dataInvalid&&(l.__dataInvalid=!1,l._flushProperties())}))};
y.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
y.prototype._flushProperties=function(){this.__dataCounter++;var l=this.__data,q=this.__dataPending,t=this.__dataOld;this._shouldPropertiesChange(l,q,t)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(l,q,t));this.__dataCounter--};
y.prototype._shouldPropertiesChange=function(l,q){return!!q};
y.prototype._propertiesChanged=function(){};
y.prototype._shouldPropertyChange=function(l,q,t){return t!==q&&(t===t||q===q)};
y.prototype.attributeChangedCallback=function(l,q,t,E){q!==t&&this._attributeToProperty(l,t);p.prototype.attributeChangedCallback&&p.prototype.attributeChangedCallback.call(this,l,q,t,E)};
y.prototype._attributeToProperty=function(l,q,t){if(!this.__serializing){var E=this.__dataAttributes;l=E&&E[l]||l;this[l]=this._deserializeValue(q,t||this.constructor.typeForProperty(l))}};
y.prototype._propertyToAttribute=function(l,q,t){this.__serializing=!0;t=arguments.length<3?this[l]:t;this._valueToNodeAttribute(this,t,q||this.constructor.attributeNameForProperty(l));this.__serializing=!1};
y.prototype._valueToNodeAttribute=function(l,q,t){q=this._serializeValue(q);if(t==="class"||t==="name"||t==="slot")l=(0,_.Q2)(l);q===void 0?l.removeAttribute(t):l.setAttribute(t,q===""&&window.trustedTypes?window.trustedTypes.emptyScript:q)};
y.prototype._serializeValue=function(l){switch(typeof l){case "boolean":return l?"":void 0;default:return l!=null?l.toString():void 0}};
y.prototype._deserializeValue=function(l,q){switch(q){case Boolean:return l!==null;case Number:return Number(l);default:return l}};
return y});var yeZ=0,$Gt=[];var lFQ=Cz(function(p){function y(E){E=Object.getPrototypeOf(E);return E.prototype instanceof t?E:null}
function l(E){if(!E.hasOwnProperty("__ownProperties")){var e=null;if(E.hasOwnProperty("properties")){var C=E.properties;if(C){e={};for(var u in C){var a=C[u];e[u]=typeof a==="function"?{type:a}:a}}}E.__ownProperties=e}return E.__ownProperties}
var q=pVr(p),t=function(){return q.apply(this,arguments)||this};
_.A(t,q);t.finalize=function(){if(!this.hasOwnProperty("__finalized")){var E=y(this);E&&E.finalize();this.__finalized=!0;this._finalizeClass()}};
t._finalizeClass=function(){var E=l(this);E&&this.createProperties(E)};
t.typeForProperty=function(E){return(E=this._properties[E])&&E.type};
t.prototype._initializeProperties=function(){yeZ++;this.constructor.finalize();q.prototype._initializeProperties.call(this)};
t.prototype.connectedCallback=function(){q.prototype.connectedCallback&&q.prototype.connectedCallback.call(this);this._enableProperties()};
t.prototype.disconnectedCallback=function(){q.prototype.disconnectedCallback&&q.prototype.disconnectedCallback.call(this)};
_.Jh.Object.defineProperties(t,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var E=this;if(!this.hasOwnProperty("__observedAttributes")){jko(this.prototype);var e=this._properties;this.__observedAttributes=e?Object.keys(e).map(function(C){return E.prototype._addPropertyToAttributeMap(C)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var E=y(this);this.__properties=Object.assign({},E&&E._properties,l(this))}return this.__properties}}});
return t});var bFu={},nFL=/-[a-z]/g,GYt=/([A-Z])/g;for(var qtM={},srx=HTMLElement.prototype;srx;){for(var t$M=Object.getOwnPropertyNames(srx),Eyx=0;Eyx<t$M.length;Eyx++)qtM[t$M[Eyx]]=!0;srx=Object.getPrototypeOf(srx)}var JeV=window.trustedTypes?function(p){return trustedTypes.isHTML(p)||trustedTypes.isScript(p)||trustedTypes.isScriptURL(p)}:function(){return!1},ceM=Cz(function(p){var y=pVr(p);
p=function(){return y.apply(this,arguments)||this};
_.A(p,y);p.createPropertiesForAttributes=function(){for(var l=this.observedAttributes,q=0;q<l.length;q++)this.prototype._createPropertyAccessor(UM(l[q]))};
p.attributeNameForProperty=function(l){return $H(l)};
p.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);y.prototype._initializeProperties.call(this)};
p.prototype._initializeProtoProperties=function(l){for(var q in l)this._setProperty(q,l[q])};
p.prototype._ensureAttribute=function(l,q){this.hasAttribute(l)||this._valueToNodeAttribute(this,q,l)};
p.prototype._serializeValue=function(l){switch(typeof l){case "object":if(l instanceof Date)return l.toString();if(l){if(JeV(l))return l;try{return JSON.stringify(l)}catch(q){return""}}default:return y.prototype._serializeValue.call(this,l)}};
p.prototype._deserializeValue=function(l,q){switch(q){case Object:try{var t=JSON.parse(l)}catch(E){t=l}break;case Array:try{t=JSON.parse(l)}catch(E){t=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+l)}break;case Date:t=isNaN(l)?String(l):Number(l);t=new Date(t);break;default:t=y.prototype._deserializeValue.call(this,l,q)}return t};
p.prototype._definePropertyAccessor=function(l,q){if(!qtM[l]){var t=this[l];t!==void 0&&(this.__data?this._setPendingProperty(l,t):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[l]=t))}y.prototype._definePropertyAccessor.call(this,l,q)};
p.prototype._hasAccessor=function(l){return this.__dataHasAccessor&&this.__dataHasAccessor[l]};
p.prototype._isPropertyPending=function(l){return!!(this.__dataPending&&l in this.__dataPending)};
return p});var e3r={"dom-if":!0,"dom-repeat":!0},h3Q=!1,CaB=!1,uTZ=function(){var p=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(y){return y}});
return function(y,l,q){l=l.getAttribute(q);p&&q.startsWith("on-")?y.setAttribute(q,p.createScript(l,q)):y.setAttribute(q,l)}}(),R3M=Cz(function(p){var y=function(){return p.apply(this,arguments)||this};
_.A(y,p);y._parseTemplate=function(l,q){if(!l._templateInfo){var t=l._templateInfo={};t.nodeInfoList=[];t.nestedTemplate=!!q;t.stripWhiteSpace=q&&q.stripWhiteSpace||l.hasAttribute&&l.hasAttribute("strip-whitespace");this._parseTemplateContent(l,t,{parent:null})}return l._templateInfo};
y._parseTemplateContent=function(l,q,t){return this._parseTemplateNode(l.content,q,t)};
y._parseTemplateNode=function(l,q,t){var E=!1;l.localName!="template"||l.hasAttribute("preserve-content")?l.localName==="slot"&&(q.hasInsertionPoint=!0):E=this._parseTemplateNestedTemplate(l,q,t)||E;if(!h3Q){h3Q=!0;var e=document.createElement("textarea");e.placeholder="a";CaB=e.placeholder===e.textContent}CaB&&l.localName==="textarea"&&l.placeholder&&l.placeholder===l.textContent&&(l.textContent=null);l.firstChild&&this._parseTemplateChildNodes(l,q,t);l.hasAttributes&&l.hasAttributes()&&(E=this._parseTemplateNodeAttributes(l,
q,t)||E);return E||t.noted};
y._parseTemplateChildNodes=function(l,q,t){if(l.localName!=="script"&&l.localName!=="style")for(var E=l.firstChild,e=0,C;E;E=C){if(E.localName=="template"){var u=E.getAttribute("is");if(u&&e3r[u])for(C=E,C.removeAttribute("is"),E=C.ownerDocument.createElement(u),C.parentNode.replaceChild(E,C),E.appendChild(C);C.attributes.length;)u=C.attributes[0].name,uTZ(E,C,u),C.removeAttribute(u)}C=E.nextSibling;if(E.nodeType===Node.TEXT_NODE){for(u=C;u&&u.nodeType===Node.TEXT_NODE;)E.textContent+=u.textContent,
C=u.nextSibling,l.removeChild(u),u=C;if(q.stripWhiteSpace&&!E.textContent.trim()){l.removeChild(E);continue}}u={parentIndex:e,parentInfo:t};this._parseTemplateNode(E,q,u)&&(u.infoIndex=q.nodeInfoList.push(u)-1);E.parentNode&&e++}};
y._parseTemplateNestedTemplate=function(l,q,t){q=this._parseTemplate(l,q);(q.content=l.content.ownerDocument.createDocumentFragment()).appendChild(l.content);t.templateInfo=q;return!0};
y._parseTemplateNodeAttributes=function(l,q,t){for(var E=!1,e=Array.from(l.attributes),C=e.length-1,u;u=e[C];C--)E=this._parseTemplateNodeAttribute(l,q,t,u.name,u.value)||E;return E};
y._parseTemplateNodeAttribute=function(l,q,t,E,e){return E.slice(0,3)==="on-"?(l.removeAttribute(E),t.events=t.events||[],t.events.push({name:E.slice(3),value:e}),!0):E==="id"?(t.id=e,!0):!1};
y._contentForTemplate=function(l){var q=l._templateInfo;return q&&q.content||l.content};
y.prototype._stampTemplate=function(l,q){l&&!l.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(l);q=q||this.constructor._parseTemplate(l);var t=q.nodeInfoList;l=document.importNode(q.content||l.content,!0);l.__noInsertionPoint=!q.hasInsertionPoint;var E=l.nodeList=Array(t.length);l.$={};for(var e=0,C=t.length,u=void 0;e<C&&(u=t[e]);e++){var a=E[e]=PIg(l,u);u.id&&(l.$[u.id]=a);var m=a,U=u,b=q;U.templateInfo&&(m._templateInfo=U.templateInfo,m._parentTemplateInfo=
b);if(u.events&&u.events.length)for(m=0,U=u.events,b=void 0;m<U.length&&(b=U[m]);m++)this._addMethodEventListenerToNode(a,b.name,b.value,this)}return l};
y.prototype._addMethodEventListenerToNode=function(l,q,t,E){t=Ayt(E||l,t);this._addEventListenerToNode(l,q,t);return t};
y.prototype._addEventListenerToNode=function(l,q,t){l.addEventListener(q,t)};
y.prototype._removeEventListenerFromNode=function(l,q,t){l.removeEventListener(q,t)};
return y});var V2=0,wF=[],WNB={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},aFM=/[A-Z]/,msU=function(p,y,l,q,t){var E=t?bX(p):p;if(y=y[E])for(E=0;E<y.length;E++){var e=y[E];if(e.info.lastRun!==V2&&(!t||KVu(p,e.trigger))){e.info.lastRun=V2;e=e.info;for(var C=l,u=q,a=0,m=C.length-1,U=-1;a<=m;){var b=a+m>>1,P=u.get(C[b].methodInfo)-u.get(e.methodInfo);if(P<0)a=b+1;else if(P>0)m=b-1;else{U=b;break}}U<
0&&(U=m+1);C.splice(U,0,e)}}},vF5=[],UsP=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"),Ra=Cz(function(p){var y=R3M(ceM(p));
p=function(){var l=y.call(this)||this;l.__isPropertyEffectsClient=!0;return l};
_.A(p,y);p.prototype._initializeProperties=function(){y.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
p.prototype._registerHost=function(){if(um.length){var l=um[um.length-1];l._enqueueClient(this);this.__dataHost=l}};
p.prototype._initializeProtoProperties=function(l){this.__data=Object.create(l);this.__dataPending=Object.create(l);this.__dataOld={}};
p.prototype._initializeInstanceProperties=function(l){var q=this.__readOnly,t;for(t in l)q&&q[t]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[t]=this.__dataPending[t]=l[t])};
p.prototype._addPropertyEffect=function(l,q,t){this._createPropertyAccessor(l,q=="__readOnly");var E=Qkl(this,q,!0)[l];E||(E=this[q][l]=[]);E.push(t)};
p.prototype._removePropertyEffect=function(l,q,t){l=Qkl(this,q,!0)[l];t=l.indexOf(t);t>=0&&l.splice(t,1)};
p.prototype._hasPropertyEffect=function(l,q){q=this[q];return!(!q||!q[l])};
p.prototype._hasReadOnlyEffect=function(l){return this._hasPropertyEffect(l,"__readOnly")};
p.prototype._hasNotifyEffect=function(l){return this._hasPropertyEffect(l,"__notifyEffects")};
p.prototype._hasReflectEffect=function(l){return this._hasPropertyEffect(l,"__reflectEffects")};
p.prototype._hasComputedEffect=function(l){return this._hasPropertyEffect(l,"__computeEffects")};
p.prototype._setPendingPropertyOrPath=function(l,q,t,E){if(E||bX(Array.isArray(l)?l[0]:l)!==l){if(!E&&(E=Mt(this,l),l=gFt(this,l,q),!l||!y.prototype._shouldPropertyChange.call(this,l,q,E)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(l,q,t)){if(t=this.__dataLinkedPaths)for(var e in t)E=t[e],nt(e,l)?(E=AK(e,E,l),this._setPendingPropertyOrPath(E,q,!0,!0)):nt(E,l)&&(E=AK(E,e,l),this._setPendingPropertyOrPath(E,q,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[l])return this._setPendingProperty(l,
q,t);this[l]=q}return!1};
p.prototype._setUnmanagedPropertyToNode=function(l,q,t){if(t!==l[q]||typeof t=="object")q==="className"&&(l=(0,_.Q2)(l)),l[q]=t};
p.prototype._setPendingProperty=function(l,q,t){var E=this.__dataHasPaths&&jW(l);if(this._shouldPropertyChange(l,q,(E?this.__dataTemp:this.__data)[l])){this.__dataPending||(this.__dataPending={},this.__dataOld={});l in this.__dataOld||(this.__dataOld[l]=this.__data[l]);E?this.__dataTemp[l]=q:this.__data[l]=q;this.__dataPending[l]=q;if(E||this.__notifyEffects&&this.__notifyEffects[l])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[l]=t;return!0}return!1};
p.prototype._setProperty=function(l,q){this._setPendingProperty(l,q,!0)&&this._invalidateProperties()};
p.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
p.prototype._enqueueClient=function(l){this.__dataPendingClients=this.__dataPendingClients||[];l!==this&&this.__dataPendingClients.push(l)};
p.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
p.prototype.__enableOrFlushClients=function(){var l=this.__dataPendingClients;if(l){this.__dataPendingClients=null;for(var q=0;q<l.length;q++){var t=l[q];t.__dataEnabled?t.__dataPending&&t._flushProperties():t._enableProperties()}}};
p.prototype._readyClients=function(){this.__enableOrFlushClients()};
p.prototype.setProperties=function(l,q){for(var t in l)!q&&this.__readOnly&&this.__readOnly[t]||this._setPendingPropertyOrPath(t,l[t],!0);this._invalidateProperties()};
p.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
p.prototype._propertiesChanged=function(l,q,t){l=this.__dataHasPaths;this.__dataHasPaths=!1;var E;if(E=this.__computeEffects)if(fb$){V2++;var e=LVo(this),C=[],u;for(u in q)msU(u,E,C,e,l);for(;u=C.shift();)NP6(this,"",q,t,u)&&msU(u.methodInfo,E,C,e,l);Object.assign(t,this.__dataOld);Object.assign(q,this.__dataPending);this.__dataPending=null}else for(e=q;gF(this,E,e,t,l);)Object.assign(t,this.__dataOld),Object.assign(q,this.__dataPending),e=this.__dataPending,this.__dataPending=null;E=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(q,t,l);this._flushClients();gF(this,this.__reflectEffects,q,t,l);gF(this,this.__observeEffects,q,t,l);if(E){e=this.__notifyEffects;C=V2++;for(var a in E)if(E[a]){if(u=e){var m=e;u=C;var U=a,b=q,P=t,Z=l,K=!1,F=Z?bX(U):U;if(m=m[F]){F=0;for(var L=m.length,T=void 0;F<L&&(T=m[F]);F++)T.info&&T.info.lastRun===u||Z&&!KVu(U,T.trigger)||(T.info&&(T.info.lastRun=u),T.fn(this,U,b,P,T.info,Z,void 0),K=!0)}u=K}if(u)var O=!0;else{if(u=l)u=a,U=q,b=bX(u),b!==
u?(b=$H(b)+"-changed",iFj(this,b,U[u],u),u=!0):u=!1;u&&(O=!0)}}var f;O&&(f=this.__dataHost)&&f._invalidateProperties&&f._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
p.prototype._propagatePropertyChanges=function(l,q,t){this.__propagateEffects&&gF(this,this.__propagateEffects,l,q,t);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,l,q,t)};
p.prototype._runEffectsForTemplate=function(l,q,t,E){var e=this,C=function(u,a){gF(e,l.propertyEffects,u,t,a,l.nodeList);for(var m=l.firstChild;m;m=m.nextSibling)e._runEffectsForTemplate(m,u,t,a)};
l.runEffects?l.runEffects(C,q,E):C(q,E)};
p.prototype.linkPaths=function(l,q){l=Ze(l);q=Ze(q);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[l]=q};
p.prototype.unlinkPaths=function(l){l=Ze(l);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[l]};
p.prototype.notifySplices=function(l,q){var t={path:""};l=Mt(this,l,t);oFt(this,l,t.path,q)};
p.prototype.get=function(l,q){return Mt(q||this,l)};
p.prototype.set=function(l,q,t){t?gFt(t,l,q):this.__readOnly&&this.__readOnly[l]||this._setPendingPropertyOrPath(l,q,!0)&&this._invalidateProperties()};
p.prototype.push=function(l){var q=_.oX.apply(1,arguments),t={path:""},E=Mt(this,l,t),e=E.length,C=E.push.apply(E,_.xq(q));q.length&&rF(this,E,t.path,e,q.length,[]);return C};
p.prototype.pop=function(l){var q={path:""};l=Mt(this,l,q);var t=!!l.length,E=l.pop();t&&rF(this,l,q.path,l.length,0,[E]);return E};
p.prototype.splice=function(l,q,t){var E=_.oX.apply(3,arguments),e={path:""},C=Mt(this,l,e);q<0?q=C.length-Math.floor(-q):q&&(q=Math.floor(q));var u=arguments.length===2?C.splice(q):C.splice.apply(C,[q,t].concat(_.xq(E)));(E.length||u.length)&&rF(this,C,e.path,q,E.length,u);return u};
p.prototype.shift=function(l){var q={path:""};l=Mt(this,l,q);var t=!!l.length,E=l.shift();t&&rF(this,l,q.path,0,0,[E]);return E};
p.prototype.unshift=function(l){var q=_.oX.apply(1,arguments),t={path:""},E=Mt(this,l,t),e=E.unshift.apply(E,_.xq(q));q.length&&rF(this,E,t.path,0,q.length,[]);return e};
p.prototype.notifyPath=function(l,q){if(arguments.length==1){var t={path:""};q=Mt(this,l,t);t=t.path}else t=Array.isArray(l)?Ze(l):l;this._setPendingPropertyOrPath(t,q,!0,!0)&&this._invalidateProperties()};
p.prototype._createReadOnlyProperty=function(l,q){this._addPropertyEffect(l,"__readOnly");q&&(this["_set"+(l[0].toUpperCase()+l.substring(1))]=function(t){this._setProperty(l,t)})};
p.prototype._createPropertyObserver=function(l,q,t){var E={property:l,method:q,dynamicFn:!!t};this._addPropertyEffect(l,"__observeEffects",{fn:wn6,info:E,trigger:{name:l}});t&&this._addPropertyEffect(q,"__observeEffects",{fn:wn6,info:E,trigger:{name:q}})};
p.prototype._createMethodObserver=function(l,q){var t=dG8(l);if(!t)throw Error("zd`"+l);BPL(this,t,"__observeEffects",kYu,null,q)};
p.prototype._createNotifyingProperty=function(l){this._addPropertyEffect(l,"__notifyEffects",{fn:ryg,info:{eventName:$H(l)+"-changed",property:l}})};
p.prototype._createReflectedProperty=function(l){var q=this.constructor.attributeNameForProperty(l);q[0]==="-"?console.warn("Property "+l+" cannot be reflected to attribute "+q+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(l,"__reflectEffects",{fn:Swo,info:{attrName:q}})};
p.prototype._createComputedProperty=function(l,q,t){var E=dG8(q);if(!E)throw Error("Ad`"+q);q=BPL(this,E,"__computeEffects",NP6,l,t);Qkl(this,"__computeInfo")[l]=q};
p.prototype._marshalArgs=function(l,q,t){for(var E=this.__data,e=[],C=0,u=l.length;C<u;C++){var a=l[C],m=a.name,U=a.structured,b=a.wildcard,P=a.value;a.literal||(b?(a=nt(m,q),U=OFg(E,t,a?q:m),P={path:a?q:m,value:U,base:a?Mt(E,m):U}):P=U?OFg(E,t,m):E[m]);if(iX&&!this._overrideLegacyUndefined&&P===void 0&&l.length>1)return wF;e[C]=P}return e};
p.addPropertyEffect=function(l,q,t){this.prototype._addPropertyEffect(l,q,t)};
p.createPropertyObserver=function(l,q,t){this.prototype._createPropertyObserver(l,q,t)};
p.createMethodObserver=function(l,q){this.prototype._createMethodObserver(l,q)};
p.createNotifyingProperty=function(l){this.prototype._createNotifyingProperty(l)};
p.createReadOnlyProperty=function(l,q){this.prototype._createReadOnlyProperty(l,q)};
p.createReflectedProperty=function(l){this.prototype._createReflectedProperty(l)};
p.createComputedProperty=function(l,q,t){this.prototype._createComputedProperty(l,q,t)};
p.bindTemplate=function(l){return this.prototype._bindTemplate(l)};
p.prototype._bindTemplate=function(l,q){var t=this.constructor._parseTemplate(l),E=this.__preBoundTemplateInfo==t;if(!E)for(var e in t.propertyEffects)this._createPropertyAccessor(e);q?(t=Object.create(t),t.wasPreBound=E,this.__templateInfo?(l=l._parentTemplateInfo||this.__templateInfo,q=l.lastChild,t.parent=l,l.lastChild=t,(t.previousSibling=q)?q.nextSibling=t:l.firstChild=t):this.__templateInfo=t):this.__preBoundTemplateInfo=t;return t};
p._addTemplatePropertyEffect=function(l,q,t){(l.hostProps=l.hostProps||{})[q]=!0;l=l.propertyEffects=l.propertyEffects||{};(l[q]=l[q]||[]).push(t)};
p.prototype._stampTemplate=function(l,q){q=q||this._bindTemplate(l,!0);um.push(this);l=y.prototype._stampTemplate.call(this,l,q);um.pop();q.nodeList=l.nodeList;if(!q.wasPreBound)for(var t=q.childNodes=[],E=l.firstChild;E;E=E.nextSibling)t.push(E);l.templateInfo=q;t=q.nodeList;E=q.nodeInfoList;if(E.length)for(var e=0;e<E.length;e++){var C=t[e],u=E[e].bindings;if(u)for(var a=0;a<u.length;a++){var m=u[a],U=C,b=m;if(b.isCompound){for(var P=U.__dataCompoundStorage||(U.__dataCompoundStorage={}),Z=b.parts,
K=Array(Z.length),F=0;F<Z.length;F++)K[F]=Z[F].literal;Z=b.target;P[Z]=K;b.literal&&b.kind=="property"&&(Z==="className"&&(U=(0,_.Q2)(U)),U[Z]=b.literal)}xGu(C,this,m)}C.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(q,this.__data,null,!1),this._flushClients());return l};
p.prototype._removeBoundDom=function(l){l=l.templateInfo;var q=l.previousSibling,t=l.nextSibling,E=l.parent;q?q.nextSibling=t:E&&(E.firstChild=t);t?t.previousSibling=q:E&&(E.lastChild=q);l.nextSibling=l.previousSibling=null;l=l.childNodes;for(q=0;q<l.length;q++)t=l[q],(0,_.Q2)((0,_.Q2)(t).parentNode).removeChild(t)};
p._parseTemplateNode=function(l,q,t){var E=y._parseTemplateNode.call(this,l,q,t);if(l.nodeType===Node.TEXT_NODE){var e=this._parseBindings(l.textContent,q);e&&(l.textContent=fyj(e)||" ",TPj(this,q,t,"text","textContent",e),E=!0)}return E};
p._parseTemplateNodeAttribute=function(l,q,t,E,e){var C=this._parseBindings(e,q);if(C){e=E;var u="property";aFM.test(E)?u="attribute":E[E.length-1]=="$"&&(E=E.slice(0,-1),u="attribute");var a=fyj(C);a&&u=="attribute"&&(E=="class"&&l.hasAttribute("class")&&(a+=" "+l.getAttribute(E)),l.setAttribute(E,a));u=="attribute"&&e=="disable-upgrade$"&&l.setAttribute(E,"");l.localName==="input"&&e==="value"&&l.setAttribute(e,"");l.removeAttribute(e);u==="property"&&(E=UM(E));TPj(this,q,t,u,E,C,a);return!0}return y._parseTemplateNodeAttribute.call(this,
l,q,t,E,e)};
p._parseTemplateNestedTemplate=function(l,q,t){var E=y._parseTemplateNestedTemplate.call(this,l,q,t),e=l.parentNode,C=t.templateInfo,u=e.localName==="dom-if",a=e.localName==="dom-repeat";ET&&(u||a)&&(e.removeChild(l),t=t.parentInfo,t.templateInfo=C,t.noted=!0,E=!1);l=C.hostProps;if(Jc&&u)l&&(q.hostProps=Object.assign(q.hostProps||{},l),ET||(t.parentInfo.noted=!0));else for(var m in l)TPj(this,q,t,"property","_host_"+m,[{mode:"{",source:m,dependencies:[m],hostProp:!0}]);return E};
p._parseBindings=function(l,q){for(var t=[],E=0,e;(e=UsP.exec(l))!==null;){e.index>E&&t.push({literal:l.slice(E,e.index)});E=e[1][0];var C=!!e[2];e=e[3].trim();var u=!1,a="",m=-1;E=="{"&&(m=e.indexOf("::"))>0&&(a=e.substring(m+2),e=e.substring(0,m),u=!0);m=dG8(e);var U=[];if(m){var b=m,P=b.args;b=b.methodName;for(var Z=0;Z<P.length;Z++){var K=P[Z];K.literal||U.push(K)}if((P=q.dynamicFns)&&P[b]||m.static)U.push(b),m.dynamicFn=!0}else U.push(e);t.push({source:e,mode:E,negate:C,customEvent:u,signature:m,
dependencies:U,event:a});E=UsP.lastIndex}E&&E<l.length&&(l=l.substring(E))&&t.push({literal:l});return t.length?t:null};
p._evaluateBinding=function(l,q,t,E,e,C){l=q.signature?kYu(l,t,E,e,q.signature):t!=q.source?Mt(l,q.source):C&&jW(t)?Mt(l,t):l.__data[t];q.negate&&(l=!l);return l};
_.Jh.Object.defineProperties(p.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return WNB}}});
return p}),um=[];var $sv=window.ShadyCSS&&window.ShadyCSS.cssBuild,Wz=Cz(function(p){function y(q,t,E,e){if(!$sv){for(var C=t.content.querySelectorAll("style"),u=p35(t),a=y2l(E),m=t.content.firstElementChild,U=0;U<a.length;U++){var b=a[U];b.textContent=q._processStyleText(b.textContent,e);t.content.insertBefore(b,m)}for(m=a=0;m<u.length;m++)U=u[m],b=C[a],b!==U?(U=U.cloneNode(!0),b.parentNode.insertBefore(U,b)):a++,U.textContent=q._processStyleText(U.textContent,e)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(t,
E);if(XWQ&&$sv&&HyB&&(t=t.content.querySelectorAll("style"))){var P="";Array.from(t).forEach(function(Z){P+=Z.textContent;Z.parentNode.removeChild(Z)});
q._styleSheet=new CSSStyleSheet;q._styleSheet.replaceSync(P)}}
var l=lFQ(Ra(p));p=function(){return l.call(this)||this};
_.A(p,l);p._finalizeClass=function(){l._finalizeClass.call(this);var q;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(q=this.__ownObservers)&&this.createObservers(q,this._properties);this._prepareTemplate()};
p._prepareTemplate=function(){var q=this.template;q&&(typeof q==="string"?(console.error("template getter must return HTMLTemplateElement"),q=null):Xz||(q=q.cloneNode(!0)));this.prototype._template=q};
p.createProperties=function(q){for(var t in q){var E=this.prototype,e=t,C=q[t],u=q;C.computed&&(C.readOnly=!0);C.computed&&(E._hasReadOnlyEffect(e)?console.warn("Cannot redefine computed property '"+e+"'."):E._createComputedProperty(e,C.computed,u));C.readOnly&&!E._hasReadOnlyEffect(e)?E._createReadOnlyProperty(e,!C.computed):C.readOnly===!1&&E._hasReadOnlyEffect(e)&&console.warn("Cannot make readOnly property '"+e+"' non-readOnly.");C.reflectToAttribute&&!E._hasReflectEffect(e)?E._createReflectedProperty(e):
C.reflectToAttribute===!1&&E._hasReflectEffect(e)&&console.warn("Cannot make reflected property '"+e+"' non-reflected.");C.notify&&!E._hasNotifyEffect(e)?E._createNotifyingProperty(e):C.notify===!1&&E._hasNotifyEffect(e)&&console.warn("Cannot make notify property '"+e+"' non-notify.");C.observer&&E._createPropertyObserver(e,C.observer,u[C.observer]);E._addPropertyToAttributeMap(e)}};
p.createObservers=function(q,t){for(var E=this.prototype,e=0;e<q.length;e++)E._createMethodObserver(q[e],t)};
p.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);l.prototype._initializeProperties.call(this);this.rootPath=T$M;this.importPath=this.constructor.importPath;var q=this.constructor;if(!q.hasOwnProperty("__propertyDefaults")){q.__propertyDefaults=null;var t=q._properties,E;for(E in t){var e=t[E];"value"in e&&(q.__propertyDefaults=q.__propertyDefaults||{},q.__propertyDefaults[E]=e)}}if(q=q.__propertyDefaults)for(var C in q)t=q[C],
this._canApplyPropertyDefault(C)&&(t=typeof t.value=="function"?t.value.call(this):t.value,this._hasAccessor(C)?this._setPendingProperty(C,t,!0):this[C]=t)};
p.prototype._canApplyPropertyDefault=function(q){return!this.hasOwnProperty(q)};
p._processStyleText=function(q,t){return RQj(q,t)};
p._finalizeTemplate=function(q){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var E=this.importPath;E=E?_.ap(E):"";y(this,t,q,E);this.prototype._bindTemplate(t)}};
p.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);l.prototype.connectedCallback.call(this)};
p.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);l.prototype.ready.call(this)};
p.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));l.prototype._readyClients.call(this)};
p.prototype._attachDom=function(q){var t=(0,_.Q2)(this);if(t.attachShadow)return q?(t.shadowRoot||(t.attachShadow({mode:"open",shadyUpgradeFragment:q}),t.shadowRoot.appendChild(q),this.constructor._styleSheet&&(t.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),B$N&&window.ShadyDOM&&window.ShadyDOM.flushInitial(t.shadowRoot),t.shadowRoot):null;throw Error("Cd");};
p.prototype.updateStyles=function(q){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,q)};
p.prototype.resolveUrl=function(q,t){!t&&this.importPath&&(t=_.ap(this.importPath));return _.ap(q,t)};
p._parseTemplateContent=function(q,t,E){t.dynamicFns=t.dynamicFns||this._properties;return l._parseTemplateContent.call(this,q,t,E)};
p._addTemplatePropertyEffect=function(q,t,E){!ze||t in this._properties||E.info.part.signature&&E.info.part.signature.static||E.info.part.hostProp||q.nestedTemplate||console.warn("Property '"+t+"' used in template but not declared in 'properties'; attribute will not be observed.");return l._addTemplatePropertyEffect.call(this,q,t,E)};
_.Jh.Object.defineProperties(p,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var q=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof q==="function"&&(q=q());if(q===void 0){if(q=this.hasOwnProperty("is")){q=this.is;var t=null;if(q&&(!YH||xnQ)&&(t=SW.import(q,"template"),YH&&!t))throw Error("Bd`"+q);q=t}q=q||Object.getPrototypeOf(this.prototype).constructor.template}this._template=q}return this._template},
set:function(q){this._template=q}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var q=this.importMeta;q?this._importPath=WVm(q.url):this._importPath=(q=SW.import(this.is))&&q.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return p});var jrx=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(p){return p}}),c2j=function(p,y){bWU(p,y);
this.value=y.reduce(function(l,q,t){return l+eEa(q)+p[t+1]},p[0]).toString()},bWU;
c2j.prototype.toString=function(){return this.value};
_.ny$=function(p){var y=_.oX.apply(1,arguments);bWU(p,y);var l=document.createElement("template");y=y.reduce(function(q,t,E){if(t instanceof HTMLTemplateElement)t=t.innerHTML;else if(t instanceof c2j)t=eEa(t);else throw Error("Ed`"+t);return q+t+p[E+1]},p[0]);
jrx&&(y=jrx.createHTML(y));l.innerHTML=y;return l};
bWU=function(p,y){if(!Array.isArray(p)||!Array.isArray(p.raw)||y.length!==p.length-1)throw new TypeError("Fd");};var aa=Wz(HTMLElement);var GUV=Cz(function(p){var y=Wz(p);p=function(){var l=y.call(this)||this;l.__lastItems=null;l.__lastMulti=null;l.__selectedMap=null;return l};
_.A(p,y);p.prototype.__updateSelection=function(l,q){var t=q.path;t=="items"?(q=q.base||[],t=this.__lastItems,l!==this.__lastMulti&&this.clearSelection(),t&&(t=J2c(q,t),this.__applySplices(t)),this.__lastItems=q,this.__lastMulti=l):q.path=="items.splices"?this.__applySplices(q.value.indexSplices):(l=t.slice(6),q=parseInt(l,10),l.indexOf(".")<0&&l==q&&this.__deselectChangedIdx(q))};
p.prototype.__applySplices=function(l){for(var q=this,t=this.__selectedMap,E={},e=0;e<l.length;E={s$jscomp$108:void 0},e++){E.s$jscomp$108=l[e];t.forEach(function(m){return function(U,b){U<m.s$jscomp$108.index||(U>=m.s$jscomp$108.index+m.s$jscomp$108.removed.length?t.set(b,U+m.s$jscomp$108.addedCount-m.s$jscomp$108.removed.length):t.set(b,-1))}}(E));
for(var C=0;C<E.s$jscomp$108.addedCount;C++){var u=E.s$jscomp$108.index+C;t.has(this.items[u])&&t.set(this.items[u],u)}}this.__updateLinks();var a=0;t.forEach(function(m,U){m<0?(q.multi?q.splice("selected",a,1):q.selected=q.selectedItem=null,t.delete(U)):a++})};
p.prototype.__updateLinks=function(){var l=this;this.__dataLinkedPaths={};if(this.multi){var q=0;this.__selectedMap.forEach(function(t){t>=0&&l.linkPaths("items."+t,"selected."+q++)})}else this.__selectedMap.forEach(function(t){l.linkPaths("selected","items."+t);
l.linkPaths("selectedItem","items."+t)})};
p.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
p.prototype.isSelected=function(l){return this.__selectedMap.has(l)};
p.prototype.isIndexSelected=function(l){return this.isSelected(this.items[l])};
p.prototype.__deselectChangedIdx=function(l){var q=this,t=this.__selectedIndexForItemIndex(l);if(t>=0){var E=0;this.__selectedMap.forEach(function(e,C){t==E++&&q.deselect(C)})}};
p.prototype.__selectedIndexForItemIndex=function(l){if(l=this.__dataLinkedPaths["items."+l])return parseInt(l.slice(9),10)};
p.prototype.deselect=function(l){var q=this.__selectedMap.get(l);if(q>=0){this.__selectedMap.delete(l);var t;this.multi&&(t=this.__selectedIndexForItemIndex(q));this.__updateLinks();this.multi?this.splice("selected",t,1):this.selected=this.selectedItem=null}};
p.prototype.deselectIndex=function(l){this.deselect(this.items[l])};
p.prototype.select=function(l){this.selectIndex(this.items.indexOf(l))};
p.prototype.selectIndex=function(l){var q=this.items[l];this.isSelected(q)?this.toggle&&this.deselectIndex(l):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(q,l),this.__updateLinks(),this.multi?this.push("selected",q):this.selected=this.selectedItem=q)};
_.Jh.Object.defineProperties(p,{properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},
observers:{configurable:!0,enumerable:!0,get:function(){return["__updateSelection(multi, items.*)"]}}});
return p}),PaN=GUV(aa),mg=function(){return PaN.apply(this,arguments)||this};
_.A(mg,PaN);_.Jh.Object.defineProperties(mg,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(mg.is,mg);var AeU=window.Polymer;window.Polymer=function(p){return window.Polymer._polymerFn(p)};
AeU&&Object.assign(Polymer,AeU);Polymer._polymerFn=function(){throw Error("Gd");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:RQj,resolveUrl:_.ap,pathFromUrl:WVm};Polymer.DomModule=SW;Polymer.Async={timeOut:_.hc,animationFrame:_.fl,idlePeriod:Ybx,microTask:ft};Polymer.dedupingMixin=Cz;Polymer.wrap=_.Q2;Polymer.PropertiesChanged=pVr;Polymer.telemetry={instanceCount:yeZ,incrementInstanceCount:function(){yeZ++},
registrations:$Gt,register:jko,dumpRegistrations:function(){$Gt.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=lFQ;Polymer.CaseMap={dashToCamelCase:UM,camelToDashCase:$H};Polymer.PropertyAccessors=ceM;Polymer.TemplateStamp=R3M;Polymer.Path={isPath:jW,root:bX,isAncestor:ZF8,isDescendant:nt,translate:AK,matches:Mq5,normalize:Ze,split:Vq5,get:Mt,set:gFt,isDeep:jW};Polymer.Settings={useShadow:dF,useNativeCSSProperties:FOU,useNativeCustomElements:LOB,get rootPath(){return T$M},setRootPath:function(p){T$M=p},
get sanitizeDOMValue(){return Kt},setSanitizeDOMValue:function(p){Kt=p},
get passiveTouchGestures(){return GK8},setPassiveTouchGestures:function(p){GK8=p},
get strictTemplatePolicy(){return YH},setStrictTemplatePolicy:function(p){YH=p},
get allowTemplateFromDomModule(){return xnQ},setAllowTemplateFromDomModule:function(p){xnQ=p},
get legacyOptimizations(){return Xz},setLegacyOptimizations:function(p){Xz=p},
get syncInitialRender(){return B$N},setSyncInitialRender:function(p){B$N=p},
get legacyUndefined(){return iX},setLegacyUndefined:function(p){iX=p},
get legacyWarnings(){return ze},setLegacyWarnings:function(p){ze=p},
get orderedComputed(){return fb$},setOrderedComputed:function(p){fb$=p},
get fastDomIf(){return Jc},setFastDomIf:function(p){Jc=p},
get removeNestedTemplates(){return ET},setRemoveNestedTemplates:function(p){ET=p},
get suppressTemplateNotifications(){return cz},setSuppressTemplateNotifications:cz};Polymer.rootPath!==void 0&&(T$M=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(Kt=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(GK8=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(YH=Polymer.strictTemplatePolicy);xnQ=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(Xz=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(B$N=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(iX=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(ze=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(fb$=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(Jc=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(ET=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(cz=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return Kt},
set:function(p){Kt=p}});Polymer.PropertyEffects=Ra;Polymer.StyleGather={stylesFromModules:Iyc,stylesFromModule:Ywa,stylesFromTemplate:p35,stylesFromModuleImports:y2l,cssFromModules:qPa,cssFromModule:lQo,cssFromTemplate:sAt,cssFromModuleImports:function(p){return(p=SW.import(p))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(p):""}};Polymer.ElementMixin=Wz;Polymer.updateStyles=function(p){window.ShadyCSS&&window.ShadyCSS.styleDocument(p)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:J2c};Polymer.html=_.ny$;Polymer.htmlLiteral=function(p){return new c2j(p,_.oX.apply(1,arguments))};Polymer.Element=aa;Polymer.ArraySelectorMixin=GUV;Polymer.ArraySelector=mg;var ZWP=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,M$U=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,xYl=/@media\s(.*)/;var RER=null,uya=window.HTMLImports&&window.HTMLImports.whenReady||null,W8m;var V$Q=null,UT=null,$d=function(){this.customStyles=[];this.enqueued=!1;aQL(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},gyV=function(p){!p.enqueued&&UT&&(p.enqueued=!0,aQL(UT))};
$d.prototype.addCustomStyle=function(p){p.__seenByShadyCSS||(p.__seenByShadyCSS=!0,this.customStyles.push(p),gyV(this))};
$d.prototype.getStyleForCustomStyle=function(p){if(p.__shadyCSSCachedStyle)return p.__shadyCSSCachedStyle;var y;p.getStyle?y=p.getStyle():y=p;return y};
$d.prototype.processStyles=function(){for(var p=this.customStyles,y=0;y<p.length;y++){var l=p[y];if(!l.__shadyCSSCachedStyle){var q=this.getStyleForCustomStyle(l);q&&(q=q.__appliedElement||q,V$Q&&V$Q(q),l.__shadyCSSCachedStyle=q)}}return p};
$d.prototype.addCustomStyle=$d.prototype.addCustomStyle;$d.prototype.getStyleForCustomStyle=$d.prototype.getStyleForCustomStyle;$d.prototype.processStyles=$d.prototype.processStyles;Object.defineProperties($d.prototype,{transformCallback:{get:function(){return V$Q},
set:function(p){V$Q=p}},
validateCallback:{get:function(){return UT},
set:function(p){var y=!1;UT||(y=!0);UT=p;y&&gyV(this)}}});var URt=!(window.ShadyDOM&&window.ShadyDOM.inUse),mRm,En;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(En=window.ShadyCSS.cssBuild);var Qri=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?mRm=window.ShadyCSS.nativeCss:window.ShadyCSS?($RR(window.ShadyCSS),window.ShadyCSS=void 0):$RR(window.WebComponents&&window.WebComponents.flags);var DYm=mRm;var KNU=new $d;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(p,y){KNU.processStyles();hEL(p,y)},
styleElement:function(){KNU.processStyles()},
styleDocument:function(p){KNU.processStyles();hEL(document.body,p)},
getComputedStyleValue:function(p,y){return CWR(p,y)},
flushCustomStyles:function(){},
nativeCss:DYm,nativeShadow:URt,cssBuild:En,disableRuntime:Qri});window.ShadyCSS.CustomStyleInterface=KNU;var wVU=window.ShadyCSS.CustomStyleInterface,jC=function(){var p=HTMLElement.call(this)||this;p._style=null;wVU.addCustomStyle(p);return p};
_.A(jC,HTMLElement);jC.prototype.getStyle=function(){if(this._style)return this._style;var p=this.querySelector("style");if(!p)return null;this._style=p;var y=p.getAttribute("include");y&&(p.removeAttribute("include"),p.textContent=qPa(y)+p.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
jC.prototype.getStyle=jC.prototype.getStyle;window.customElements.define("custom-style",jC);Polymer.CustomStyle=jC;var bm=function(){this._timer=this._callback=this._asyncModule=null},nz,reP;
bm.prototype.setConfig=function(p,y){var l=this;this._asyncModule=p;this._callback=y;this._timer=this._asyncModule.run(function(){l._timer=null;nz.delete(l);l._callback()})};
bm.prototype.cancel=function(){this.isActive()&&(iWP(this),nz.delete(this))};
var iWP=function(p){p.isActive()&&(p._asyncModule.cancel(p._timer),p._timer=null)};
bm.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
bm.prototype.isActive=function(){return this._timer!=null};
_.Gr=function(p,y,l){p instanceof bm?iWP(p):p=new bm;p.setConfig(y,l);return p};
nz=new Set;_.Pz=function(p){nz.add(p)};
reP=function(){var p=!!nz.size;nz.forEach(function(y){try{y.flush()}catch(l){setTimeout(function(){throw l;})}});
return p};var bp5=typeof document.head.style.touchAction==="string",jAL=["mousedown","mousemove","mouseup","click"],QAj=[0,1,4,2],Str;try{Str=(new MouseEvent("test",{buttons:1})).buttons===1}catch(p){Str=!1}var gz5=Str,nzl=!1;(function(){try{var p=Object.defineProperty({},"passive",{get:function(){nzl=!0}});
window.addEventListener("test",null,p);window.removeEventListener("test",null,p)}catch(y){}})();
var A2m=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),Zp8=[],FNN={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},TUj={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},MPc=function(p){var y=p.sourceCapabilities;if(!y||y.firesTouchEvents)if(p.__polymerGesturesHandled={skip:!0},p.type==="click"){y=!1;for(var l=r2_(p),q=0;q<l.length;q++){if(l[q].nodeType===Node.ELEMENT_NODE)if(l[q].localName==="label")Zp8.push(l[q]);
else if(FNN[l[q].localName]){var t=l[q];var E=Array.prototype.slice.call(t.labels||[]);if(!E.length){E=[];try{var e=t.getRootNode();if(t.id){var C=e.querySelectorAll("label[for = '"+t.id+"']");for(t=0;t<C.length;t++)E.push(C[t])}}catch(u){}}for(t=0;t<E.length;t++)y=y||Zp8.indexOf(E[t])>-1}if(l[q]===LNv)return}y||(p.preventDefault(),p.stopPropagation())}},LNv=null,Ac=null,F8j=0,L86=0,SP5=-1,kK_=!1;
document.addEventListener("touchend",function(p){Ac||VPj(!0);LNv=r2_(p)[0];Ac=_.Gr(Ac,_.hc.after(2500),function(){VPj();Ac=LNv=null})},nzl?{passive:!0}:!1);
var r2_=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(p){return p.composedPath&&p.composedPath()||[]},HK={},Nt=[];
NUj({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){kH(this.info)},
mousedown:function(p){if(Lt(p)){var y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p),l=this;w3a(this.info,function(q){Lt(q)||(vK("up",y,q),kH(l.info))},function(q){Lt(q)&&vK("up",y,q);
kH(l.info)});
vK("down",y,p)}},
touchstart:function(p){vK("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p),p.changedTouches[0],p)},
touchend:function(p){vK("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p),p.changedTouches[0],p)}});
NUj({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(p){this.moves.length>2&&this.moves.shift();this.moves.push(p)},
movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start";this.info.started=!1;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=!1;kH(this.info)},
mousedown:function(p){if(Lt(p)){var y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p),l=this,q=function(t){var E=t.clientX,e=t.clientY;DRt(l.info,E,e)&&(l.info.state=l.info.started?t.type==="mouseup"?"end":"track":"start",l.info.state==="start"&&De("tap"),l.info.addMove({x:E,y:e}),Lt(t)||(l.info.state="end",kH(l.info)),y&&HpR(l.info,y,t),l.info.started=!0)};
w3a(this.info,q,function(t){l.info.started&&q(t);kH(l.info)});
this.info.x=p.clientX;this.info.y=p.clientY}},
touchstart:function(p){p=p.changedTouches[0];this.info.x=p.clientX;this.info.y=p.clientY},
touchmove:function(p){var y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p);p=p.changedTouches[0];var l=p.clientX,q=p.clientY;DRt(this.info,l,q)&&(this.info.state==="start"&&De("tap"),this.info.addMove({x:l,y:q}),HpR(this.info,y,p),this.info.state="track",this.info.started=!0)},
touchend:function(p){var y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p);p=p.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:p.clientX,y:p.clientY}),HpR(this.info,y,p))}});
NUj({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=!1},
mousedown:function(p){Lt(p)&&(this.info.x=p.clientX,this.info.y=p.clientY)},
click:function(p){Lt(p)&&xRL(this.info,p)},
touchstart:function(p){p=p.changedTouches[0];this.info.x=p.clientX;this.info.y=p.clientY},
touchend:function(p){xRL(this.info,p.changedTouches[0],p)}});var kUZ=Cz(function(p){var y=function(){return p.apply(this,arguments)||this};
_.A(y,p);y.prototype._addEventListenerToNode=function(l,q,t){Te(l,q,t)||p.prototype._addEventListenerToNode.call(this,l,q,t)};
y.prototype._removeEventListenerFromNode=function(l,q,t){xH(l,q,t)||p.prototype._removeEventListenerFromNode.call(this,l,q,t)};
return y});var ZZ=Cz(function(p){var y=function(){return p.apply(this,arguments)||this};
_.A(y,p);y.prototype._shouldPropertyChange=function(l,q,t){return BUm(this,l,q,t,!0)};
return y}),NN$=Cz(function(p){var y=function(){return p.apply(this,arguments)||this};
_.A(y,p);y.prototype._shouldPropertyChange=function(l,q,t){return BUm(this,l,q,t,this.mutableData)};
_.Jh.Object.defineProperties(y,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return y});
ZZ._mutablePropertyChange=BUm;var fQo=!1;var DsQ=kUZ(NN$(Ra(HTMLElement))),M6=function(){var p=DsQ.call(this)||this;if(YH)throw Error("Hd");p.root=null;p.$=null;p.__children=null;return p};
_.A(M6,DsQ);_.J=M6.prototype;_.J.attributeChangedCallback=function(){this.mutableData=!0};
_.J.connectedCallback=function(){vz_()||(this.style.display="none");this.render()};
_.J.disconnectedCallback=function(){this.__removeChildren()};
_.J.__insertChildren=function(){(0,_.Q2)((0,_.Q2)(this).parentNode).insertBefore(this.root,this)};
_.J.__removeChildren=function(){if(this.__children)for(var p=0;p<this.__children.length;p++)this.root.appendChild(this.__children[p])};
_.J.render=function(){var p=this;if(!this.__children){var y=y||this.querySelector("template");if(!y){var l=new MutationObserver(function(){if(y=p.querySelector("template"))l.disconnect(),p.render();else throw Error("Id");});
l.observe(this,{childList:!0});return}this.root=this._stampTemplate(y);this.$=this.root.$;this.__children=[];for(var q=this.root.firstChild;q;q=q.nextSibling)this.__children[this.__children.length]=q;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Jh.Object.defineProperties(M6,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",M6);Polymer.Debouncer=bm;Polymer.Gestures={gestures:HK,recognizers:Nt,deepTargetFind:ipm,addListener:Te,removeListener:xH,register:NUj,setTouchAction:_.BK,prevent:De,resetMouseCanceller:function(){Ac&&Ac.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Te,remove:xH};Polymer.GestureEventListeners=kUZ;Polymer.MutableData=ZZ;Polymer.OptionalMutableData=NN$;Polymer.DomBind=M6;_.Vp=function(){do{var p=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var y=reP()}while(p||y)};var X3L=null;dRu.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:dRu,writable:!0}});var lYo=Ra(dRu),yju=ZZ(lYo),HWU=Ra(function(){}),OM=function(p){var y=HWU.call(this)||this;
y._configureProperties(p);y.root=y._stampTemplate(y.__dataHost);var l=[];y.children=l;for(var q=y.root.firstChild;q;q=q.nextSibling)l.push(q),q.__templatizeInstance=y;y.__templatizeOwner&&y.__templatizeOwner.__hideTemplateChildren__&&y._showHideChildren(!0);l=y.__templatizeOptions;(p&&l.instanceProps||!l.instanceProps)&&y._enableProperties();return y};
_.A(OM,HWU);_.J=OM.prototype;_.J._configureProperties=function(p){if(this.__templatizeOptions.forwardHostProp)for(var y in this.__hostProps)this._setPendingProperty(y,this.__dataHost["_host_"+y]);for(var l in p)this._setPendingProperty(l,p[l])};
_.J.forwardHostProp=function(p,y){this._setPendingPropertyOrPath(p,y,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.J._addEventListenerToNode=function(p,y,l){var q=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(p,y,function(E){E.model=q;l(E)});
else{var t=this.__dataHost.__dataHost;t&&t._addEventListenerToNode(p,y,l)}};
_.J._showHideChildren=function(p){oz5(p,this.children)};
_.J._setUnmanagedPropertyToNode=function(p,y,l){p.__hideTemplateChildren__&&p.nodeType==Node.TEXT_NODE&&y=="textContent"?p.__polymerTextContent__=l:HWU.prototype._setUnmanagedPropertyToNode.call(this,p,y,l)};
_.J.dispatchEvent=function(){return!0};
_.Jh.Object.defineProperties(OM.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var p=this.__parentModel;if(!p){var y;p=this;do p=p.__dataHost.__dataHost;while((y=p.__templatizeOptions)&&!y.parentModel);this.__parentModel=p}return p}}});
var YP5=ZZ(OM);var Qp=function(){var p=aa.call(this)||this;p.__renderDebouncer=null;p._lastIf=!1;p.__hideTemplateChildren__=!1;return p};
_.A(Qp,aa);_.J=Qp.prototype;_.J.__debounceRender=function(){var p=this;this.__renderDebouncer=_.Gr(this.__renderDebouncer,ft,function(){return p.__render()});
_.Pz(this.__renderDebouncer)};
_.J.disconnectedCallback=function(){aa.prototype.disconnectedCallback.call(this);var p=(0,_.Q2)(this).parentNode;p&&(p.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Q2)(p).host)||this.__teardownInstance()};
_.J.connectedCallback=function(){aa.prototype.connectedCallback.call(this);vz_()||(this.style.display="none");this.if&&this.__debounceRender()};
_.J.__ensureTemplate=function(){var p=this;if(!this.__template){var y=this._templateInfo?this:(0,_.Q2)(this).querySelector("template");if(!y){var l=new MutationObserver(function(){if((0,_.Q2)(p).querySelector("template"))l.disconnect(),p.__render();else throw Error("Ld");});
l.observe(this,{childList:!0});return!1}this.__template=y}return!0};
_.J.__ensureInstance=function(){var p=(0,_.Q2)(this).parentNode;if(this.__hasInstance()){var y=this.__getInstanceNodes();if(y&&y.length&&(0,_.Q2)(this).previousSibling!==y[y.length-1])for(var l=0,q=void 0;l<y.length&&(q=y[l]);l++)(0,_.Q2)(p).insertBefore(q,this)}else{if(!p||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(p)}return!0};
_.J.render=function(){_.Vp()};
_.J.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();cz&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.J.__hasInstance=function(){};
_.J.__getInstanceNodes=function(){};
_.J.__createAndInsertInstance=function(){};
_.J.__teardownInstance=function(){};
_.J._showHideChildren=function(){};
_.Jh.Object.defineProperties(Qp,{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:Qp.prototype.__debounceRender},restamp:{type:Boolean,observer:Qp.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var TNv=function(){var p=Qp.call(this)||this;p.__instance=null;p.__syncInfo=null;return p};
_.A(TNv,Qp);_.J=TNv.prototype;_.J.__hasInstance=function(){return!!this.__instance};
_.J.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.J.__createAndInsertInstance=function(p){var y=this,l=this.__dataHost||this;if(YH&&!this.__dataHost)throw Error("Jd");var q=l._bindTemplate(this.__template,!0);q.runEffects=function(t,E,e){var C=y.__syncInfo;if(y.if)C&&(y.__syncInfo=null,y._showHideChildren(),E=Object.assign(C.changedProps,E)),t(E,e);else if(y.__instance)if(C||(C=y.__syncInfo={runEffects:t,changedProps:{}}),e)for(var u in E)t=bX(u),C.changedProps[t]=y.__dataHost[t];else Object.assign(C.changedProps,E)};
this.__instance=l._stampTemplate(this.__template,q);(0,_.Q2)(p).insertBefore(this.__instance,this)};
_.J.__syncHostProperties=function(){var p=this.__syncInfo;p&&(this.__syncInfo=null,p.runEffects(p.changedProps,!1))};
_.J.__teardownInstance=function(){var p=this.__dataHost||this;this.__instance&&(p._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.J._showHideChildren=function(){var p=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==p&&(this.__instance.__hidden=p,oz5(p,this.__instance.templateInfo.childNodes));p||this.__syncHostProperties()};
var xsi=function(){var p=Qp.call(this)||this;p.__ctor=null;p.__instance=null;p.__invalidProps=null;return p};
_.A(xsi,Qp);_.J=xsi.prototype;_.J.__hasInstance=function(){return!!this.__instance};
_.J.__getInstanceNodes=function(){return this.__instance.children};
_.J.__createAndInsertInstance=function(p){this.__ctor||(this.__ctor=op(this.__template,this,{mutableData:!0,forwardHostProp:function(y,l){this.__instance&&(this.if?this.__instance.forwardHostProp(y,l):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[bX(y)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Q2)(p).insertBefore(this.__instance.root,this)};
_.J.__teardownInstance=function(){if(this.__instance){var p=this.__instance.children;if(p&&p.length){var y=(0,_.Q2)(p[0]).parentNode;if(y){y=(0,_.Q2)(y);for(var l=0,q=void 0;l<p.length&&(q=p[l]);l++)y.removeChild(q)}}this.__instance=this.__invalidProps=null}};
_.J.__syncHostProperties=function(){var p=this.__invalidProps;if(p){this.__invalidProps=null;for(var y in p)this.__instance._setPendingProperty(y,this.__dataHost[y]);this.__instance._flushProperties()}};
_.J._showHideChildren=function(){var p=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==p&&(this.__instance.__hidden=p,this.__instance._showHideChildren(p));p||this.__syncHostProperties()};
_.dd=Jc?TNv:xsi;customElements.define(_.dd.is,_.dd);Polymer.enqueueDebouncer=_.Pz;Polymer.flush=_.Vp;Polymer.Templatize={templatize:op,modelForElement:cj_};Polymer.TemplateInstanceBase=OM;Polymer.DomIf=_.dd;var BNM=NN$(aa),XA=function(){var p=BNM.call(this)||this;p.__instances=[];p.__renderDebouncer=null;p.__itemsIdxToInstIdx={};p.__chunkCount=null;p.__renderStartTime=null;p.__itemsArrayChanged=!1;p.__shouldMeasureChunk=!1;p.__shouldContinueChunking=!1;p.__chunkingId=0;p.__sortFn=null;p.__filterFn=null;p.__observePaths=null;p.__ctor=null;p.__isDetached=!0;p.template=null;return p};
_.A(XA,BNM);_.J=XA.prototype;_.J.disconnectedCallback=function(){BNM.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var p=0;p<this.__instances.length;p++)this.__detachInstance(p);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.J.connectedCallback=function(){BNM.prototype.connectedCallback.call(this);vz_()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var p=(0,_.Q2)((0,_.Q2)(this).parentNode),y=0;y<this.__instances.length;y++)this.__attachInstance(y,p);this.__chunkingId&&this.__render()}};
_.J.__ensureTemplatized=function(){var p=this;if(!this.__ctor){var y=this.template=this._templateInfo?this:this.querySelector("template");if(!y){var l=new MutationObserver(function(){if(p.querySelector("template"))l.disconnect(),p.__render();else throw Error("Md");});
l.observe(this,{childList:!0});return!1}var q={};q[this.as]=!0;q[this.indexAs]=!0;q[this.itemsIndexAs]=!0;this.__ctor=op(y,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:q,forwardHostProp:function(t,E){for(var e=this.__instances,C=0,u=void 0;C<e.length&&(u=e[C]);C++)u.forwardHostProp(t,E)},
notifyInstanceProp:function(t,E,e){Mq5(this.as,E)&&(t=t[this.itemsIndexAs],E==this.as&&(this.items[t]=e),E=AK(this.as,"items."+t,E),this.notifyPath(E,e))}})}return!0};
_.J.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.J.__functionFromPropertyValue=function(p){if(typeof p==="string"){var y=this.__getMethodHost();return function(){return y[p].apply(y,arguments)}}return p};
_.J.__sortChanged=function(p){this.__sortFn=this.__functionFromPropertyValue(p);this.items&&this.__debounceRender(this.__render)};
_.J.__filterChanged=function(p){this.__filterFn=this.__functionFromPropertyValue(p);this.items&&this.__debounceRender(this.__render)};
_.J.__computeFrameTime=function(p){return Math.ceil(1E3/p)};
_.J.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.J.__handleObservedPaths=function(p){if(this.__sortFn||this.__filterFn)if(!p)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var y=this.__observePaths,l=0;l<y.length;l++)p.indexOf(y[l])===0&&this.__debounceRender(this.__render,this.delay)};
_.J.__itemsChanged=function(p){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(p.path,p.value)||(p.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.J.__debounceRender=function(p,y){y=y===void 0?0:y;this.__renderDebouncer=_.Gr(this.__renderDebouncer,y>0?_.hc.after(y):ft,p.bind(this));_.Pz(this.__renderDebouncer)};
_.J.render=function(){this.__debounceRender(this.__render);_.Vp()};
_.J.__render=function(){var p=this;if(this.__ensureTemplatized()){var y=this.items||[],l=this.__sortAndFilterItems(y),q=this.__calculateLimit(l.length);this.__updateInstances(y,q,l);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){p.__chunkingId=null;p.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);cz&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.J.__sortAndFilterItems=function(p){for(var y=this,l=Array(p.length),q=0;q<p.length;q++)l[q]=q;this.__filterFn&&(l=l.filter(function(t,E,e){return y.__filterFn(p[t],E,e)}));
this.__sortFn&&l.sort(function(t,E){return y.__sortFn(p[t],p[E])});
return l};
_.J.__calculateLimit=function(p){var y=p,l=this.__instances.length;if(this.initialCount){var q;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(y=Math.min(p,this.initialCount),this.__chunkCount=(q=Math.max(y-l,0))||1):(q=Math.min(Math.max(p-l,0),this.__chunkCount),y=Math.min(l+q,p));this.__shouldMeasureChunk=q===this.__chunkCount;this.__shouldContinueChunking=y<p;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return y};
_.J.__continueChunking=function(){if(this.__shouldMeasureChunk){var p=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/p*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.J.__updateInstances=function(p,y,l){var q=this.__itemsIdxToInstIdx={},t;for(t=0;t<y;t++){var E=this.__instances[t],e=l[t],C=p[e];q[e]=t;E?(E._setPendingProperty(this.as,C),E._setPendingProperty(this.indexAs,t),E._setPendingProperty(this.itemsIndexAs,e),E._flushProperties()):this.__insertInstance(C,t,e)}for(p=this.__instances.length-1;p>=t;p--)this.__detachAndRemoveInstance(p)};
_.J.__detachInstance=function(p){p=this.__instances[p];for(var y=(0,_.Q2)(p.root),l=0;l<p.children.length;l++)y.appendChild(p.children[l]);return p};
_.J.__attachInstance=function(p,y){y.insertBefore(this.__instances[p].root,this)};
_.J.__detachAndRemoveInstance=function(p){this.__detachInstance(p);this.__instances.splice(p,1)};
_.J.__stampInstance=function(p,y,l){var q={};q[this.as]=p;q[this.indexAs]=y;q[this.itemsIndexAs]=l;return new this.__ctor(q)};
_.J.__insertInstance=function(p,y,l){p=this.__stampInstance(p,y,l);l=(l=this.__instances[y+1])?l.children[0]:this;(0,_.Q2)((0,_.Q2)(this).parentNode).insertBefore(p.root,l);return this.__instances[y]=p};
_.J._showHideChildren=function(p){for(var y=0;y<this.__instances.length;y++)this.__instances[y]._showHideChildren(p)};
_.J.__handleItemPath=function(p,y){var l=p.slice(6),q=l.indexOf(".");p=q<0?l:l.substring(0,q);if(p==parseInt(p,10)){l=q<0?"":l.substring(q+1);this.__handleObservedPaths(l);if(p=this.__instances[this.__itemsIdxToInstIdx[p]])p._setPendingPropertyOrPath(this.as+(l?"."+l:""),y,!1,!0),p._flushProperties();return!0}};
_.J.itemForElement=function(p){return(p=this.modelForElement(p))&&p[this.as]};
_.J.indexForElement=function(p){return(p=this.modelForElement(p))&&p[this.indexAs]};
_.J.modelForElement=function(p){return cj_(this.template,p)};
_.Jh.Object.defineProperties(XA,{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:XA.prototype.__sortChanged},filter:{type:Function,observer:XA.prototype.__filterChanged},observe:{type:String,observer:XA.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!cz,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.*)"]}}});
XA.prototype._setRenderedItemCount=function(){};
customElements.define(XA.is,XA);Polymer.DomRepeat=XA;var fFO=function(p,y){var l=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=p;this.callback=y;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){l._schedule()};
this.connect();this._schedule()},vyr=function(p){var y=(0,_.Q2)(p);
if(Ip(p))return y.assignedNodes({flatten:!0});p=[];for(var l=0;l<y.childNodes.length;l++){var q=y.childNodes[l];Ip(q)?p.push.apply(p,_.xq((0,_.Q2)(q).assignedNodes({flatten:!0}))):p.push(q)}return p};
_.J=fFO.prototype;_.J.connect=function(){var p=this;Ip(this._target)?this._listenSlots([this._target]):(0,_.Q2)(this._target).children&&(this._listenSlots((0,_.Q2)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(y){p._processMutations(y)}):(this._nativeChildrenObserver=new MutationObserver(function(y){p._processMutations(y)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.J.disconnect=function(){Ip(this._target)?this._unlistenSlots([this._target]):(0,_.Q2)(this._target).children&&(this._unlistenSlots((0,_.Q2)(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null));this._connected=!1};
_.J._schedule=function(){var p=this;this._scheduled||(this._scheduled=!0,ft.run(function(){return p.flush()}))};
_.J._processMutations=function(p){this._processSlotMutations(p);this.flush()};
_.J._processSlotMutations=function(p){if(p)for(var y=0;y<p.length;y++){var l=p[y];l.addedNodes&&this._listenSlots(l.addedNodes);l.removedNodes&&this._unlistenSlots(l.removedNodes)}};
_.J.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var p={target:this._target,addedNodes:[],removedNodes:[]},y=vyr(this._target),l=J2c(y,this._effectiveNodes),q=0,t=void 0;q<l.length&&(t=l[q]);q++)for(var E=0,e=void 0;E<t.removed.length&&(e=t.removed[E]);E++)p.removedNodes.push(e);
q=0;for(t=void 0;q<l.length&&(t=l[q]);q++)for(E=t.index;E<t.index+t.addedCount;E++)p.addedNodes.push(y[E]);this._effectiveNodes=y;y=!1;if(p.addedNodes.length||p.removedNodes.length)y=!0,this.callback.call(this._target,p);return y};
_.J._listenSlots=function(p){for(var y=0;y<p.length;y++){var l=p[y];Ip(l)&&l.addEventListener("slotchange",this._boundSchedule)}};
_.J._unlistenSlots=function(p){for(var y=0;y<p.length;y++){var l=p[y];Ip(l)&&l.removeEventListener("slotchange",this._boundSchedule)}};var Kz=Element.prototype,XVV=Kz.matches||Kz.matchesSelector||Kz.mozMatchesSelector||Kz.msMatchesSelector||Kz.oMatchesSelector||Kz.webkitMatchesSelector,dsQ=function(p,y){return XVV.call(p,y)},px=function(p){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(p);
this.node=p},Ytr;
_.J=px.prototype;_.J.observeNodes=function(p){return new fFO(this.node,p)};
_.J.unobserveNodes=function(p){p.disconnect()};
_.J.notifyObserver=function(){};
_.J.deepContains=function(p){if((0,_.Q2)(this.node).contains(p))return!0;var y=p;for(p=p.ownerDocument;y&&y!==p&&y!==this.node;)y=(0,_.Q2)(y).parentNode||(0,_.Q2)(y).host;return y===this.node};
_.J.getOwnerRoot=function(){return(0,_.Q2)(this.node).getRootNode()};
_.J.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Q2)(this.node).assignedNodes({flatten:!0}):[]};
_.J.getDestinationInsertionPoints=function(){for(var p=[],y=(0,_.Q2)(this.node).assignedSlot;y;)p.push(y),y=(0,_.Q2)(y).assignedSlot;return p};
_.J.importNode=function(p,y){return(0,_.Q2)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(p,y)};
_.J.getEffectiveChildNodes=function(){return vyr(this.node)};
_.J.queryDistributedElements=function(p){for(var y=this.getEffectiveChildNodes(),l=[],q=0,t=y.length,E=void 0;q<t&&(E=y[q]);q++)E.nodeType===Node.ELEMENT_NODE&&dsQ(E,p)&&l.push(E);return l};
_.Jh.Object.defineProperties(px.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var p=this.node;return p._activeElement!==void 0?p._activeElement:p.activeElement}}});
var wc=function(p){this.event=p};
_.Jh.Object.defineProperties(wc.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 OWU=px;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var oyi=window.ShadyDOM.Wrapper,z3U=function(){return oyi.apply(this,arguments)||this};
_.A(z3U,oyi);Object.getOwnPropertyNames(px.prototype).forEach(function(p){p!="activeElement"&&p!="constructor"&&(z3U.prototype[p]=px.prototype[p])});
h76(z3U.prototype,["classList"]);OWU=z3U;Object.defineProperties(wc.prototype,{localTarget:{get:function(){var p=this.event.currentTarget;p=p&&_.FK(p).getOwnerRoot();for(var y=this.path,l=0;l<y.length;l++){var q=y[l];if(_.FK(q).getOwnerRoot()===p)return q}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else e7l(),h76(px.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),C8l();Ytr=OWU;_.FK=function(p){p=p||document;if(p instanceof OWU)return p;if(p instanceof wc)return p;var y=p.__domApi;y||(p instanceof Event?y=new wc(p):y=new OWU(p),p.__domApi=y);return y};var IF$=/:host\(:dir\((ltr|rtl)\)\)/g,pIx=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,yBQ=/:dir\((?:ltr|rtl)\)/,laP=!(!window.ShadyDOM||!window.ShadyDOM.inUse),lL=[],im=null,yl="",qK$=Cz(function(p){laP||im||(yl=document.documentElement.getAttribute("dir"),im=new MutationObserver(ucg),im.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var y=ceM(p);p=function(){var l=y.call(this)||this;l.__autoDirOptOut=!1;return l};
_.A(p,y);p._processStyleText=function(l,q){l=y._processStyleText.call(this,l,q);!laP&&yBQ.test(l)&&(l=this._replaceDirInCssText(l),this.__activateDir=!0);return l};
p._replaceDirInCssText=function(l){l=l.replace(IF$,':host([dir="$1"])');return l=l.replace(pIx,':host([dir="$2"]) $1')};
p.prototype.ready=function(){y.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
p.prototype.connectedCallback=function(){y.prototype.connectedCallback&&y.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(im&&im.takeRecords().length&&ucg(),lL.push(this),this.__autoDirOptOut||this.setAttribute("dir",yl))};
p.prototype.disconnectedCallback=function(){y.prototype.disconnectedCallback&&y.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var l=lL.indexOf(this);l>-1&&lL.splice(l,1)}};
p.__activateDir=!1;return p});var sUP=function(p){for(;p;){var y=Object.getOwnPropertyDescriptor(p,"observedAttributes");if(y)return y.get;p=Object.getPrototypeOf(p.prototype).constructor}return function(){return[]}};
Cz(function(p){var y=Wz(p),l=sUP(y);p=function(){return y.call(this)||this};
_.A(p,y);p.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:y.prototype._initializeProperties.call(this)};
p.prototype._enableProperties=function(){this.__isUpgradeDisabled||y.prototype._enableProperties.call(this)};
p.prototype._canApplyPropertyDefault=function(q){return y.prototype._canApplyPropertyDefault.call(this,q)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(q))};
p.prototype.attributeChangedCallback=function(q,t,E,e){q=="disable-upgrade"?this.__isUpgradeDisabled&&E==null&&(y.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Q2)(this).isConnected&&y.prototype.connectedCallback.call(this)):y.prototype.attributeChangedCallback.call(this,q,t,E,e)};
p.prototype.connectedCallback=function(){this.__isUpgradeDisabled||y.prototype.connectedCallback.call(this)};
p.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||y.prototype.disconnectedCallback.call(this)};
_.Jh.Object.defineProperties(p,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return l.call(this).concat("disable-upgrade")}}});
return p});var qf=!1,Wnc=[],sn=[];var $Yu=window.ShadyDOM,jNu=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",nt6):document.readyState==="interactive"||document.readyState==="complete"?nt6():window.addEventListener("DOMContentLoaded",nt6);var Aj5=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=""},G66=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,P8c=/@import[^;]*;/gim,Kn8=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,w0l=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,iq8=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,rju=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,gtu=/^@[^\s]*keyframes/,
V6m=/\s+/g;var Sa5={};var k6c=Promise.resolve();var tiP=new Set;var E9M=/;\s*/m,JBU=/^\s*(initial)|(inherit)\s*$/,cBO=/\s*!important/,eAU=function(){this._map={}};
eAU.prototype.set=function(p,y){p=p.trim();this._map[p]={properties:y,dependants:{}}};
eAU.prototype.get=function(p){p=p.trim();return this._map[p]||null};
var hAO=null,rc=function(){this._measureElement=this._currentElement=null;this._map=new eAU};
_.J=rc.prototype;_.J.detectMixin=function(p){p=M$U.test(p)||ZWP.test(p);M$U.lastIndex=0;ZWP.lastIndex=0;return p};
_.J.transformTemplate=function(p,y){if(p._gatheredStyle===void 0){var l=[];for(var q=p.content.querySelectorAll("style"),t=0;t<q.length;t++){var E=q[t];if(E.hasAttribute("shady-unscoped")){if(!URt){var e=E.textContent;if(!tiP.has(e)){tiP.add(e);var C=document.createElement("style");C.setAttribute("shady-unscoped","");C.textContent=e;document.head.appendChild(C)}E.parentNode.removeChild(E)}}else l.push(E.textContent),E.parentNode.removeChild(E)}(l=l.join("").trim())?(q=document.createElement("style"),
q.textContent=l,p.content.insertBefore(q,p.content.firstChild),l=q):l=null;p._gatheredStyle=l}return(p=p._gatheredStyle)?this.JSC$11148_transformStyle(p,y):null};
_.J.JSC$11148_transformStyle=function(p,y){y=y===void 0?"":y;var l=TlR(p);this.transformRules(l,y);p.textContent=Hqo(l);return l};
_.J.transformCustomStyle=function(p){var y=this,l=TlR(p);Blt(l,function(q){q.selector===":root"&&(q.selector="html");y.transformRule(q)});
p.textContent=Hqo(l);return l};
_.J.transformRules=function(p,y){var l=this;this._currentElement=y;Blt(p,function(q){l.transformRule(q)});
this._currentElement=null};
_.J.transformRule=function(p){p.cssText=CSQ(this,p.parsedCssText,p);p.selector===":root"&&(p.selector=":host > *")};
var CSQ=function(p,y,l){y=y.replace(ZWP,function(q,t,E,e){return p._produceCssProperties(q,t,E,e,l)});
return p._consumeCssProperties(y,l)};
_.J=rc.prototype;_.J._getInitialValueForProperty=function(p){this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement));return window.getComputedStyle(this._measureElement).getPropertyValue(p)};
_.J._fallbacksFromPreviousRules=function(p){for(var y=this,l=p;l.parent;)l=l.parent;var q={},t=!1;Blt(l,function(E){(t=t||E===p)||E.selector===p.selector&&Object.assign(q,y._cssTextToMap(E.parsedCssText))});
return q};
_.J._consumeCssProperties=function(p,y){for(var l;l=M$U.exec(p);){var q=l[0],t=l[1];l=l.index;var E=l+q.indexOf("@apply"),e=l+q.length;q=p.slice(0,E);p=p.slice(e);E=y?this._fallbacksFromPreviousRules(y):{};Object.assign(E,this._cssTextToMap(q));t=this._atApplyToCssProperties(t,E);p=q+t+p;M$U.lastIndex=l+t.length}return p};
_.J._atApplyToCssProperties=function(p,y){p=p.replace(E9M,"");var l=[],q=this._map.get(p);q||(this._map.set(p,{}),q=this._map.get(p));if(q){this._currentElement&&(q.dependants[this._currentElement]=!0);var t,E=q.properties;for(t in E){var e=y&&y[t];q=[t,": var(",p,"_-_",t];e&&q.push(",",e.replace(cBO,""));q.push(")");cBO.test(E[t])&&q.push(" !important");l.push(q.join(""))}}return l.join("; ")};
_.J._replaceInitialOrInherit=function(p,y){var l=JBU.exec(y);l&&(y=l[1]?this._getInitialValueForProperty(p):"apply-shim-inherit");return y};
_.J._cssTextToMap=function(p,y){y=y===void 0?!1:y;p=p.split(";");for(var l,q,t={},E=0;E<p.length;E++)if(l=p[E])q=l.split(":"),q.length>1&&(l=q[0].trim(),q=q.slice(1).join(":"),y&&(q=this._replaceInitialOrInherit(l,q)),t[l]=q);return t};
_.J._invalidateMixinEntry=function(p){if(hAO)for(var y in p.dependants)y!==this._currentElement&&hAO(y)};
_.J._produceCssProperties=function(p,y,l,q,t){var E=this;l&&fYo(l,function(Z,K){K&&E._map.get(K)&&(q="@apply "+K+";")});
if(!q)return p;var e=this._consumeCssProperties(""+q,t);t=p.slice(0,p.indexOf("--"));var C=e=this._cssTextToMap(e,!0),u=this._map.get(y),a=u&&u.properties;a?C=Object.assign(Object.create(a),e):this._map.set(y,C);var m=[],U,b=!1;for(U in C){var P=e[U];P===void 0&&(P="initial");!a||U in a||(b=!0);m.push(y+"_-_"+U+": "+P)}b&&this._invalidateMixinEntry(u);u&&(u.properties=C);l&&(t=p+";"+t);return t+m.join("; ")+";"};
rc.prototype.detectMixin=rc.prototype.detectMixin;rc.prototype.transformStyle=rc.prototype.JSC$11148_transformStyle;rc.prototype.transformCustomStyle=rc.prototype.transformCustomStyle;rc.prototype.transformRules=rc.prototype.transformRules;rc.prototype.transformRule=rc.prototype.transformRule;rc.prototype.transformTemplate=rc.prototype.transformTemplate;rc.prototype._separator="_-_";Object.defineProperty(rc.prototype,"invalidCallback",{get:function(){return hAO},
set:function(p){hAO=p}});var SC=new rc,uCP=function(){this.customStyleInterface=null;SC.invalidCallback=Fnt},F6=function(p){!p.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(p.customStyleInterface=window.ShadyCSS.CustomStyleInterface,p.customStyleInterface.transformCallback=function(y){SC.transformCustomStyle(y)},p.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){p.customStyleInterface.enqueued&&p.flushCustomStyles()})})};
_.J=uCP.prototype;_.J.prepareTemplate=function(p,y){F6(this);vtg(p)===""&&(Sa5[y]=p,y=SC.transformTemplate(p,y),p._styleAst=y)};
_.J.flushCustomStyles=function(){F6(this);if(this.customStyleInterface){var p=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var y=0;y<p.length;y++){var l=this.customStyleInterface.getStyleForCustomStyle(p[y]);l&&SC.transformCustomStyle(l)}this.customStyleInterface.enqueued=!1}}};
_.J.styleSubtree=function(p,y){F6(this);y&&hEL(p,y);if(p.shadowRoot)for(this.styleElement(p),p=p.shadowRoot.children||p.shadowRoot.childNodes,y=0;y<p.length;y++)this.styleSubtree(p[y]);else for(p=p.children||p.childNodes,y=0;y<p.length;y++)this.styleSubtree(p[y])};
_.J.styleElement=function(p){F6(this);var y=p.localName,l;y?y.indexOf("-")>-1?l=y:l=p.getAttribute&&p.getAttribute("is")||"":l=p.is;y=Sa5[l];if(!(y&&vtg(y)!==""||!y||Lna(y))){if(Lna(y)||y._applyShimValidatingVersion!==y._applyShimNextVersion)this.prepareTemplate(y,l),Nlo(y);if(p=p.shadowRoot)if(p=p.querySelector("style"))p.__cssRules=y._styleAst,p.textContent=Hqo(y._styleAst)}};
_.J.styleDocument=function(p){F6(this);this.styleSubtree(document.body,p)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var Lz=new uCP,RAP=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(p,y){Lz.flushCustomStyles();Lz.prepareTemplate(p,y)},
prepareTemplateStyles:function(p,y,l){window.ShadyCSS.prepareTemplate(p,y,l)},
prepareTemplateDom:function(){},
styleSubtree:function(p,y){Lz.flushCustomStyles();Lz.styleSubtree(p,y)},
styleElement:function(p){Lz.flushCustomStyles();Lz.styleElement(p)},
styleDocument:function(p){Lz.flushCustomStyles();Lz.styleDocument(p)},
getComputedStyleValue:function(p,y){return CWR(p,y)},
flushCustomStyles:function(){Lz.flushCustomStyles()},
nativeCss:DYm,nativeShadow:URt,cssBuild:En,disableRuntime:Qri};RAP&&(window.ShadyCSS.CustomStyleInterface=RAP)}window.ShadyCSS.ApplyShim=SC;var W3U;W3U=window.ShadyCSS;_.kd=Cz(function(p){p=kUZ(Wz(p));var y=$sv?p:qK$(p),l=sUP(y),q={x:"pan-x",y:"pan-y",none:"none",all:"auto"};p=function(){return y.call(this)||this};
_.A(p,y);p.prototype.created=function(){};
p.prototype.__attributeReaction=function(t,E,e){(this.__dataAttributes&&this.__dataAttributes[t]||t==="disable-upgrade")&&this.attributeChangedCallback(t,E,e,null)};
p.prototype.setAttribute=function(t,E){if(vwr&&!this._legacyForceObservedAttributes){var e=this.getAttribute(t);y.prototype.setAttribute.call(this,t,E);this.__attributeReaction(t,e,String(E))}else y.prototype.setAttribute.call(this,t,E)};
p.prototype.removeAttribute=function(t){if(vwr&&!this._legacyForceObservedAttributes){var E=this.getAttribute(t);y.prototype.removeAttribute.call(this,t);this.__attributeReaction(t,E,null)}else y.prototype.removeAttribute.call(this,t)};
p.prototype._enableProperties=function(){this.__isUpgradeDisabled||y.prototype._enableProperties.call(this)};
p.prototype._canApplyPropertyDefault=function(t){return y.prototype._canApplyPropertyDefault.call(this,t)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(t))};
p.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(y.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
p.prototype.attached=function(){};
p.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(y.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
p.prototype.detached=function(){};
p.prototype.attributeChangedCallback=function(t,E,e,C){E!==e&&(t=="disable-upgrade"?this.__isUpgradeDisabled&&e==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Q2)(this).isConnected&&this.connectedCallback()):(y.prototype.attributeChangedCallback.call(this,t,E,e,C),this.attributeChanged(t,E,e)))};
p.prototype.attributeChanged=function(){};
p.prototype._initializeProperties=function(){if(Xz&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var t=Object.getPrototypeOf(this);t.hasOwnProperty("__hasRegisterFinished")||(this._registered(),t.__hasRegisterFinished=!0);y.prototype._initializeProperties.call(this);this.root=this;this.created();vwr&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
p.prototype._takeAttributes=function(){for(var t=this.attributes,E=0,e=t.length;E<e;E++){var C=t[E];this.__attributeReaction(C.name,null,C.value)}};
p.prototype._registered=function(){};
p.prototype.ready=function(){this._ensureAttributes();y.prototype.ready.call(this)};
p.prototype._ensureAttributes=function(){};
p.prototype._applyListeners=function(){};
p.prototype.serialize=function(t){return this._serializeValue(t)};
p.prototype.deserialize=function(t,E){return this._deserializeValue(t,E)};
p.prototype.reflectPropertyToAttribute=function(t,E,e){this._propertyToAttribute(t,E,e)};
p.prototype.serializeValueToAttribute=function(t,E,e){this._valueToNodeAttribute(e||this,t,E)};
p.prototype.extend=function(t,E){if(!t||!E)return t||E;for(var e=Object.getOwnPropertyNames(E),C=0,u=void 0;C<e.length&&(u=e[C]);C++){var a=Object.getOwnPropertyDescriptor(E,u);a&&Object.defineProperty(t,u,a)}return t};
p.prototype.mixin=function(t,E){for(var e in E)t[e]=E[e];return t};
p.prototype.chainObject=function(t,E){t&&E&&t!==E&&(t.__proto__=E);return t};
p.prototype.instanceTemplate=function(t){t=this.constructor._contentForTemplate(t);return document.importNode(t,!0)};
p.prototype.fire=function(t,E,e){e=e||{};E=E===null||E===void 0?{}:E;t=new Event(t,{bubbles:e.bubbles===void 0?!0:e.bubbles,cancelable:!!e.cancelable,composed:e.composed===void 0?!0:e.composed});t.detail=E;(0,_.Q2)(e.node||this).dispatchEvent(t);return t};
p.prototype.listen=function(t,E,e){t=t||this;var C=this.__boundListeners||(this.__boundListeners=new WeakMap),u=C.get(t);u||(u={},C.set(t,u));C=E+e;u[C]||(u[C]=this._addMethodEventListenerToNode(t,E,e,this))};
p.prototype.unlisten=function(t,E,e){t=t||this;var C=this.__boundListeners&&this.__boundListeners.get(t);e=E+e;var u=C&&C[e];u&&(this._removeEventListenerFromNode(t,E,u),C[e]=null)};
p.prototype.setScrollDirection=function(t,E){_.BK(E||this,q[t]||"auto")};
p.prototype.$$=function(t){return this.root.querySelector(t)};
p.prototype.distributeContent=function(){var t=_.FK(this);window.ShadyDOM&&t.shadowRoot&&ShadyDOM.flush()};
p.prototype.getEffectiveChildNodes=function(){return _.FK(this).getEffectiveChildNodes()};
p.prototype.queryDistributedElements=function(t){return _.FK(this).queryDistributedElements(t)};
p.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(t){return t.nodeType===Node.ELEMENT_NODE})};
p.prototype.getEffectiveTextContent=function(){for(var t=this.getEffectiveChildNodes(),E=[],e=0,C;C=t[e];e++)C.nodeType!==Node.COMMENT_NODE&&E.push(C.textContent);return E.join("")};
p.prototype.queryEffectiveChildren=function(t){return(t=this.queryDistributedElements(t))&&t[0]};
p.prototype.queryAllEffectiveChildren=function(t){return this.queryDistributedElements(t)};
p.prototype.getContentChildNodes=function(t){return(t=this.root.querySelector(t||"slot"))?_.FK(t).getDistributedNodes():[]};
p.prototype.getContentChildren=function(t){return this.getContentChildNodes(t).filter(function(E){return E.nodeType===Node.ELEMENT_NODE})};
p.prototype.isLightDescendant=function(t){return this!==t&&(0,_.Q2)(this).contains(t)&&(0,_.Q2)(this).getRootNode()===(0,_.Q2)(t).getRootNode()};
p.prototype.isLocalDescendant=function(t){return this.root===(0,_.Q2)(t).getRootNode()};
p.prototype.scopeSubtree=function(t,E){return bqj(t,E===void 0?!1:E)};
p.prototype.getComputedStyleValue=function(t){return W3U.getComputedStyleValue(this,t)};
p.prototype.debounce=function(t,E,e){this._debouncers=this._debouncers||{};return this._debouncers[t]=_.Gr(this._debouncers[t],e>0?_.hc.after(e):ft,E.bind(this))};
p.prototype.isDebouncerActive=function(t){this._debouncers=this._debouncers||{};t=this._debouncers[t];return!(!t||!t.isActive())};
p.prototype.flushDebouncer=function(t){this._debouncers=this._debouncers||{};(t=this._debouncers[t])&&t.flush()};
p.prototype.cancelDebouncer=function(t){this._debouncers=this._debouncers||{};(t=this._debouncers[t])&&t.cancel()};
p.prototype.async=function(t,E){return E>0?_.hc.run(t.bind(this),E):~ft.run(t.bind(this))};
p.prototype.cancelAsync=function(t){t<0?ft.cancel(~t):_.hc.cancel(t)};
p.prototype.create=function(t,E){t=document.createElement(t);if(E)if(t.setProperties)t.setProperties(E);else for(var e in E)t[e]=E[e];return t};
p.prototype.elementMatches=function(t,E){return dsQ(E||this,t)};
p.prototype.toggleAttribute=function(t,E){var e=this;arguments.length===3&&(e=arguments[2]);arguments.length==1&&(E=!e.hasAttribute(t));if(E)return(0,_.Q2)(e).setAttribute(t,""),!0;(0,_.Q2)(e).removeAttribute(t);return!1};
p.prototype.toggleClass=function(t,E,e){e=e||this;arguments.length==1&&(E=!e.classList.contains(t));E?e.classList.add(t):e.classList.remove(t)};
p.prototype.transform=function(t,E){E=E||this;E.style.webkitTransform=t;E.style.transform=t};
p.prototype.translate3d=function(t,E,e,C){this.transform("translate3d("+t+","+E+","+e+")",C||this)};
p.prototype.arrayDelete=function(t,E){if(Array.isArray(t)){if(E=t.indexOf(E),E>=0)return t.splice(E,1)}else if(E=Mt(this,t).indexOf(E),E>=0)return this.splice(t,E,1);return null};
p.prototype._logger=function(t,E){Array.isArray(E)&&E.length===1&&Array.isArray(E[0])&&(E=E[0]);switch(t){case "log":case "warn":case "error":console[t].apply(console,_.xq(E))}};
p.prototype._log=function(){this._logger("log",_.oX.apply(0,arguments))};
p.prototype._warn=function(){this._logger("warn",_.oX.apply(0,arguments))};
p.prototype._error=function(){this._logger("error",_.oX.apply(0,arguments))};
p.prototype._logf=function(t){return["[%s::%s]",this.is,t].concat(_.xq(_.oX.apply(1,arguments)))};
_.Jh.Object.defineProperties(p.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var t=(0,_.Q2)(this).getRootNode();return t instanceof DocumentFragment?t.host:t}}});
_.Jh.Object.defineProperties(p,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return vwr&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],jko(this.prototype)),this.__observedAttributes):l.call(this).concat("disable-upgrade")}}});
p.prototype.is="";return p});Polymer.FlattenedNodesObserver=fFO;Polymer.DomApi=Ytr;Polymer.EventApi=wc;Polymer.dom=_.FK;Polymer.dom.matchesSelector=dsQ;Polymer.dom.flush=_.Vp;Polymer.dom.addDebouncer=_.Pz;Polymer.DirMixin=qK$;Polymer.RenderStatus={beforeNextRender:_.UYo,afterNextRender:_.th,flush:function(){for(;Wnc.length||sn.length;)R7j(Wnc),R7j(sn);qf=!1}};Polymer.LegacyElementMixin=_.kd;var aaN;aaN=ZZ._mutablePropertyChange;var mE$={properties:{mutableData:Boolean},_shouldPropertyChange:function(p,y,l){return aaN(this,p,y,l,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(p,y,l){return aaN(this,p,y,l,!0)}};
Polymer.OptionalMutableDataBehavior=mE$;var X08={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Yaj={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},z7j=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Yaj),UE$=(0,_.kd)(HTMLElement),N1l=function(p,y){p||console.warn("Polymer.Class requires `info` argument");y=y?y(UE$):UE$;y=IYR(p,y,p.behaviors);y.is=y.prototype.is=
p.is;return y};Polymer.Class=N1l;Polymer.mixinBehaviors=function(p,y){return IYR({},(0,_.kd)(y),p)};
Polymer.GenerateClassFromInfo=IYR;_.fv=function(p){var y=typeof p==="function"?p:_.fv.Class(p);p._legacyForceObservedAttributes&&(y.prototype._legacyForceObservedAttributes=p._legacyForceObservedAttributes);customElements.define(y.is,y);return y};
_.fv.Class=N1l;Polymer._polymerFn=_.fv;var $EU=window.onLegacyPolymerFunctionDefinedCallback;$EU&&$EU();var HHl={templatize:function(p,y){this._templatizerTemplate=p;this.ctor=op(p,this,{mutableData:!!y,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(p){return new this.ctor(p)},
modelForElement:function(p){return cj_(this._templatizerTemplate,p)}};Polymer.Templatizer=HHl;_.N6=(0,_.kd)(HTMLElement).prototype;Polymer.Base=_.N6;var yLt=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.c2=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.A(_.c2,PolymerFakeBaseClass);var eY=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.A(eY,PolymerFakeBaseClass);var lIl=Symbol("Nd"),huc=[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 jUB=jUB||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},b4U;(function(p){function y(f,v,z){var sc=O.get(f);if(!sc){if(!z)return;sc=new L;O.set(f,sc)}f=sc.get(v);if(!f){if(!z)return;f=new L;sc.set(v,f)}return f}
function l(f,v,z){if(q(f,v,z))return!0;v=b(v);return v!==null?l(f,v,z):!1}
function q(f,v,z){v=y(v,z,!1);return v===void 0?!1:!!v.has(f)}
function t(f,v,z){if(q(f,v,z))return E(f,v,z);v=b(v);if(v!==null)return t(f,v,z)}
function E(f,v,z){v=y(v,z,!1);if(v!==void 0)return v.get(f)}
function e(f,v){var z=C(f,v);f=b(f);if(f===null)return z;var sc=e(f,v);if(sc.length<=0)return z;if(z.length<=0)return sc;v=new T;f=[];z=_.c(z);for(var hR=z.next();!hR.done;hR=z.next())hR=hR.value,v.has(hR)||(v.add(hR),f.push(hR));z=_.c(sc);for(sc=z.next();!sc.done;sc=z.next())sc=sc.value,v.has(sc)||(v.add(sc),f.push(sc));return f}
function C(f,v){f=y(f,v,!1);var z=[];f&&f.forEach(function(sc,hR){return z.push(hR)});
return z}
function u(f){return f===void 0}
function a(f){return typeof f==="object"?f!==null:typeof f==="function"}
function m(f){return typeof f==="function"}
function U(f){return typeof f==="symbol"?f:String(f)}
function b(f){var v=Object.getPrototypeOf(f);if(typeof f!=="function"||f===F||v!==F)return v;var z=Object.getPrototypeOf(f.prototype);if(z==null||z===Object.prototype)return v;z=z.constructor;return typeof z!=="function"||z===f?v:z}
function P(){function f(){this._keys=[];this._values=[];this._cache=v}
var v={};f.prototype={get size(){return this._keys.length},has:function(z){return z===this._cache?!0:this._find(z)>=0?(this._cache=z,!0):!1},
get:function(z){var sc=this._find(z);if(sc>=0)return this._cache=z,this._values[sc]},
set:function(z,sc){this.delete(z);this._keys.push(z);this._values.push(sc);this._cache=z;return this},
delete:function(z){z=this._find(z);return z>=0?(this._keys.splice(z,1),this._values.splice(z,1),this._cache=v,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=v},
forEach:function(z){for(var sc=this.size,hR=0;hR<sc;++hR){var Wt=this._keys[hR],AR=this._values[hR];this._cache=Wt;z.call(this,AR,Wt,this)}},
_find:function(z){for(var sc=this._keys,hR=sc.length,Wt=0;Wt<hR;++Wt)if(sc[Wt]===z)return Wt;return-1}};
return f}
function Z(){function f(){this._map=new L}
f.prototype={get size(){return this._map.length},has:function(v){return this._map.has(v)},
add:function(v){this._map.set(v,v);return this},
delete:function(v){return this._map.delete(v)},
clear:function(){this._map.clear()},
forEach:function(v,z){this._map.forEach(v,z)}};
return f}
function K(){function f(){this._key=z()}
function v(jj,x6){for(var L8=0;L8<x6;++L8)jj[L8]=Math.random()*255|0}
function z(){do{if(hR)var jj=hR.randomBytes(16);else typeof Uint8Array==="function"?(jj=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(jj):v(jj,16)):(jj=Array(16),v(jj,16));jj[6]=jj[6]&79|64;jj[8]=jj[8]&191|128;for(var x6="",L8=0;L8<16;++L8){var Y6=jj[L8];if(L8===4||L8===6||L8===8)x6+="-";Y6<16&&(x6+="0");x6+=Y6.toString(16).toLowerCase()}jj="@@WeakMap@@"+x6}while(Wt.call(AR,jj));AR[jj]=!0;return jj}
function sc(jj,x6){if(!Wt.call(jj,Qu)){if(!x6)return;Object.defineProperty(jj,Qu,{value:Object.create(null)})}return jj[Qu]}
var hR=typeof global!=="undefined"&&typeof jUB==="object"&&typeof require==="function"&&require("crypto"),Wt=Object.prototype.hasOwnProperty,AR={},Qu=z();f.prototype={has:function(jj){return(jj=sc(jj,!1))?this._key in jj:!1},
get:function(jj){if(jj=sc(jj,!1))return jj[this._key]},
set:function(jj,x6){sc(jj,!0)[this._key]=x6;return this},
delete:function(jj){return(jj=sc(jj,!1))&&this._key in jj?delete jj[this._key]:!1},
clear:function(){this._key=z()}};
return f}
var F=Object.getPrototypeOf(Function),L=typeof Map==="function"?Map:P(),T=typeof Set==="function"?Set:Z(),O=new (typeof WeakMap==="function"?WeakMap:K());p.decorate=function(f,v,z,sc){if(u(sc)){if(u(z)){if(!Array.isArray(f))throw new TypeError;if(!m(v))throw new TypeError;for(z=f.length-1;z>=0;--z)if(sc=(0,f[z])(v),!u(sc)){if(!m(sc))throw new TypeError;v=sc}return v}if(!Array.isArray(f))throw new TypeError;if(!a(v))throw new TypeError;z=U(z);for(sc=f.length-1;sc>=0;--sc)(0,f[sc])(v,z)}else{if(Array.isArray(f))if(a(v)){if(u(z))throw new TypeError;
if(!a(sc))throw new TypeError;}else throw new TypeError;else throw new TypeError;z=U(z);for(var hR=f.length-1;hR>=0;--hR){var Wt=(0,f[hR])(v,z,sc);if(!u(Wt)){if(!a(Wt))throw new TypeError;sc=Wt}}return sc}};
p.metadata=function(f,v){return function(z,sc){if(u(sc)){if(!m(z))throw new TypeError;y(z,void 0,!0).set(f,v)}else{if(!a(z))throw new TypeError;sc=U(sc);y(z,sc,!0).set(f,v)}}};
p.defineMetadata=function(f,v){var z;if(a(v))u(z)||(z=U(z));else throw new TypeError;y(v,z,!0).set("parameters",f)};
p.hasMetadata=function(f,v,z){if(a(v))u(z)||(z=U(z));else throw new TypeError;return l(f,v,z)};
p.hasOwnMetadata=function(f,v,z){if(a(v))u(z)||(z=U(z));else throw new TypeError;return q(f,v,z)};
p.getMetadata=function(f,v,z){if(a(v))u(z)||(z=U(z));else throw new TypeError;return t(f,v,z)};
p.getOwnMetadata=function(f,v,z){if(a(v))u(z)||(z=U(z));else throw new TypeError;return E(f,v,z)};
p.getMetadataKeys=function(f,v){if(a(f))u(v)||(v=U(v));else throw new TypeError;return e(f,v)};
p.getOwnMetadataKeys=function(f,v){if(a(f))u(v)||(v=U(v));else throw new TypeError;return C(f,v)};
p.deleteMetadata=function(f,v,z){if(a(v))u(z)||(z=U(z));else throw new TypeError;var sc=y(v,z,!1);if(!u(sc)){if(!sc.delete(f))return!1;if(sc.size>0)return!0;f=O.get(v);f.delete(z);if(f.size>0)return!0;O.delete(v);return!0}};
(function(f){if(typeof f.Reflect!=="undefined"){if(f.Reflect!==p)for(var v in p)f.Reflect[v]=p[v]}else f.Reflect=p})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(b4U||(b4U={}));var n9$=function(){this.aborted=!1;this.onabort=null;this.target=document.createDocumentFragment?document.createDocumentFragment():document.createElement("div")};
n9$.prototype.addEventListener=function(p,y,l){this.target.addEventListener(p,y,l)};
n9$.prototype.removeEventListener=function(p,y,l){this.target.removeEventListener(p,y,l)};
n9$.prototype.dispatchEvent=function(p){if(this.onabort&&p.type==="abort")this.onabort(p);return this.target.dispatchEvent(p)};var G5i=function(){this.signal=new n9$};
G5i.prototype.abort=function(){if(!this.signal.aborted){this.signal.aborted=!0;var p=document.createEvent("Event");p.initEvent("abort",!1,!1);this.signal.dispatchEvent(p)}};var P1_=self;var PSx=[0,_.Ef,_.cZ,_.Ef];var ABM=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(ABM,_.RX);var Z4N=_.AE(ABM,[0,_.JWa,_.ez,PSx,_.cZ,_.Cj]);_.j6(_.hh,_.Sr);_.J=_.hh.prototype;_.J.start=function(){this.stop();this.usingListeners_=!1;var p=MiO(this),y=ViM(this);p&&!y&&this.JSC$11197_win_.mozRequestAnimationFrame?(this.JSC$11197_id_=_.BL(this.JSC$11197_win_,"MozBeforePaint",this.callback_),this.JSC$11197_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11197_id_=p&&y?p.call(this.JSC$11197_win_,this.callback_):this.JSC$11197_win_.setTimeout($OU(this.callback_),20)};
_.J.stop=function(){if(this.isActive()){var p=MiO(this),y=ViM(this);p&&!y&&this.JSC$11197_win_.mozRequestAnimationFrame?HL(this.JSC$11197_id_):p&&y?y.call(this.JSC$11197_win_,this.JSC$11197_id_):this.JSC$11197_win_.clearTimeout(this.JSC$11197_id_)}this.JSC$11197_id_=null};
_.J.fire=function(){this.stop();this.JSC$11199_doAction_()};
_.J.isActive=function(){return this.JSC$11197_id_!=null};
_.J.JSC$11199_doAction_=function(){this.usingListeners_&&this.JSC$11197_id_&&HL(this.JSC$11197_id_);this.JSC$11197_id_=null;this.JSC$11197_listener_.call(this.handler_,_.$t())};
_.J.disposeInternal=function(){this.stop();_.hh.superClass_.disposeInternal.call(this)};
var MiO=function(p){p=p.JSC$11197_win_;return p.requestAnimationFrame||p.webkitRequestAnimationFrame||p.mozRequestAnimationFrame||p.oRequestAnimationFrame||p.msRequestAnimationFrame||null},ViM=function(p){p=p.JSC$11197_win_;
return p.cancelAnimationFrame||p.cancelRequestAnimationFrame||p.webkitCancelRequestAnimationFrame||p.mozCancelRequestAnimationFrame||p.oCancelRequestAnimationFrame||p.msCancelRequestAnimationFrame||null};_.hy=function(p,y,l){_.Sr.call(this);this.JSC$11200_listener_=l!=null?p.bind(l):p;this.JSC$11200_interval_=y;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11200_timer_=null};
_.A(_.hy,_.Sr);_.J=_.hy.prototype;_.J.fire=function(p){this.args_=arguments;this.JSC$11200_timer_||this.pauseCount_?this.shouldFire_=!0:g9Z(this)};
_.J.stop=function(){this.JSC$11200_timer_&&(_.l_.clearTimeout(this.JSC$11200_timer_),this.JSC$11200_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.J.pause=function(){this.pauseCount_++};
_.J.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11200_timer_||(this.shouldFire_=!1,g9Z(this))};
_.J.disposeInternal=function(){_.Sr.prototype.disposeInternal.call(this);this.stop()};
var g9Z=function(p){p.JSC$11200_timer_=Hf(function(){p.JSC$11200_timer_=null;p.shouldFire_&&!p.pauseCount_&&(p.shouldFire_=!1,g9Z(p))},p.JSC$11200_interval_);
var y=p.args_;p.args_=null;p.JSC$11200_listener_.apply(null,y)};var QUU=function(p,y){this.childIterator_=p[_.l_.Symbol.iterator]();this.mapFn_=y};
QUU.prototype[Symbol.iterator]=function(){return this};
QUU.prototype.next=function(){var p=this.childIterator_.next();return{value:p.done?void 0:this.mapFn_.call(void 0,p.value),done:p.done}};
var K3B=function(p,y){return new QUU(p,y)};var wIV={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 sHo=function(p){var y=i4B(p);if(!y)throw Error("Rd`"+p);return y},i4B=function(p){var y={};
p=String(p);var l=p.charAt(0)=="#"?p:"#"+p;if(rBr.test(l))return y.hex=YG6(l),y.type="hex",y;l=c4j(p);return l.length?(y.hex=H9g(l[0],l[1],l[2]),y.type="rgb",y):wIV&&(p=wIV[p.toLowerCase()])?(y.hex=p,y.type="named",y):null},SKv=/#(.)(.)(.)/,YG6=function(p){if(!rBr.test(p))throw Error("Td`"+p);
p.length==4&&(p=p.replace(SKv,"#$1$1$2$2$3$3"));return p.toLowerCase()},ttc=function(p){p=YG6(p);
p=parseInt(p.slice(1),16);return[p>>16,p>>8&255,p&255]},H9g=function(p,y,l){p=Number(p);
y=Number(y);l=Number(l);if(p!=(p&255)||y!=(y&255)||l!=(l&255))throw Error("Ud`"+p+"`"+y+"`"+l);y=p<<16|y<<8|l;return p<16?"#"+(16777216|y).toString(16).slice(1):"#"+y.toString(16)},rBr=/^#(?:[0-9a-f]{3}){1,2}$/i,F3M=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,c4j=function(p){var y=p.match(F3M);
if(y){p=Number(y[1]);var l=Number(y[2]);y=Number(y[3]);if(p>=0&&p<=255&&l>=0&&l<=255&&y>=0&&y<=255)return[p,l,y]}return[]};var L3N={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},LF=L3N;LF=L3N;var n36,k5U,NCU;n36=function(p,y){switch(y){case 1:return p%4!=0||p%100==0&&p%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
k5U=function(p,y,l,q,t){p=new Date(p,y,l);t=t||0;return p.valueOf()+(((q!==void 0?q:3)-t+7)%7-((p.getDay()+6)%7-t+7)%7)*864E5};
_.DZ=function(p,y,l){typeof p==="number"?(this.date=NCU(p,y||0,l||1),DEN(this,l||1)):_.yQ(p)?(this.date=NCU(p.getFullYear(),p.getMonth(),p.getDate()),DEN(this,p.getDate())):(this.date=new Date(_.$t()),p=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),DEN(this,p))};
NCU=function(p,y,l){y=new Date(p,y,l);p>=0&&p<100&&y.setFullYear(y.getFullYear()-1900);return y};
_.J=_.DZ.prototype;_.J.firstDayOfWeek_=LF.FIRSTDAYOFWEEK;_.J.firstWeekCutOffDay_=LF.FIRSTWEEKCUTOFFDAY;_.J.clone=function(){var p=new _.DZ(this.date);p.firstDayOfWeek_=this.firstDayOfWeek_;p.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return p};
_.J.getFullYear=function(){return this.date.getFullYear()};
_.J.getYear=function(){return this.getFullYear()};
_.J.getMonth=function(){return this.date.getMonth()};
_.J.getDate=function(){return this.date.getDate()};
_.J.getTime=function(){return this.date.getTime()};
_.J.getDay=function(){return this.date.getDay()};
_.J.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.J.getUTCMonth=function(){return this.date.getUTCMonth()};
_.J.getUTCDate=function(){return this.date.getUTCDate()};
_.J.getUTCDay=function(){return this.date.getDay()};
_.J.getUTCHours=function(){return this.date.getUTCHours()};
_.J.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.J.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.J.set=function(p){this.date=new Date(p.getFullYear(),p.getMonth(),p.getDate())};
_.J.setFullYear=function(p){this.date.setFullYear(p)};
_.J.setYear=function(p){this.setFullYear(p)};
_.J.setMonth=function(p){this.date.setMonth(p)};
_.J.setDate=function(p){this.date.setDate(p)};
_.J.setTime=function(p){this.date.setTime(p)};
_.J.setUTCFullYear=function(p){this.date.setUTCFullYear(p)};
_.J.setUTCMonth=function(p){this.date.setUTCMonth(p)};
_.J.setUTCDate=function(p){this.date.setUTCDate(p)};
_.J.add=function(p){if(p.years||p.months){var y=this.getMonth()+p.months+p.years*12,l=this.getYear()+Math.floor(y/12);y%=12;y<0&&(y+=12);var q=Math.min(n36(l,y),this.getDate());this.setDate(1);this.setFullYear(l);this.setMonth(y);this.setDate(q)}p.days&&(l=this.getYear(),y=l>=0&&l<=99?-1900:0,p=new Date((new Date(l,this.getMonth(),this.getDate(),12)).getTime()+p.days*864E5),this.setDate(1),this.setFullYear(p.getFullYear()+y),this.setMonth(p.getMonth()),this.setDate(p.getDate()),DEN(this,p.getDate()))};
_.J.JSC$11213_toIsoString=function(p){var y=this.getFullYear(),l=y<0?"-":y>=1E4?"+":"";return[l+_.$C(Math.abs(y),l?6:4),_.$C(this.getMonth()+1,2),_.$C(this.getDate(),2)].join(p?"-":"")};
_.J.equals=function(p){return!(!p||this.getYear()!=p.getYear()||this.getMonth()!=p.getMonth()||this.getDate()!=p.getDate())};
_.J.toString=function(){return this.JSC$11213_toIsoString()};
var DEN=function(p,y){p.getDate()!=y&&p.date.setUTCHours(p.date.getUTCHours()+(p.getDate()<y?1:-1))};
_.DZ.prototype.valueOf=function(){return this.date.valueOf()};var Tr=function(p,y,l,q,t){this.reversed=!!y;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!l;p&&Hz(this,p,q);this.depth=t!=void 0?t:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.j6(Tr,bK);var Hz=function(p,y,l,q){if(p.node=y)p.tagType=typeof l==="number"?l:p.node.nodeType!=1?0:p.reversed?-1:1;typeof q==="number"&&(p.depth=q)};
_.J=Tr.prototype;_.J.JSC$11228_copyFrom=function(p){this.node=p.node;this.tagType=p.tagType;this.depth=p.depth;this.reversed=p.reversed;this.constrained=p.constrained};
_.J.clone=function(){return new Tr(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.J.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Gv;var p=this.node;var y=this.reversed?-1:1;if(this.tagType==y){var l=this.reversed?p.lastChild:p.firstChild;l?Hz(this,l):Hz(this,p,y*-1)}else(l=this.reversed?p.previousSibling:p.nextSibling)?Hz(this,l):Hz(this,p.parentNode,y*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(p=this.node)?PE(p):Gv};
_.J.equals=function(p){return p.node==this.node&&(!this.node||p.tagType==this.tagType)};
_.J.splice=function(p){var y=this.node,l=this.reversed?1:-1;this.tagType==l&&(this.tagType=l*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;Tr.prototype.next.call(this);this.reversed=!this.reversed;l=_.zl(arguments[0])?arguments[0]:arguments;for(var q=l.length-1;q>=0;q--)_.Xd(l[q],y);_.Qy(y)};var H4U=function(){},xd=function(p){for(var y=[],l=p.getTextRangeCount(),q=0;q<l;q++)y.push(p.getTextRange(q));
return y};
H4U.prototype.isReversed=function(){return!1};
H4U.prototype.getWindow=function(){return f0(_.vJ(this.JSC$11230_getStartNode()))};
var TCr=function(p,y){Tr.call(this,p,y,!0)};
_.j6(TCr,Tr);var Bz=function(p,y,l,q,t){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!t;if(p){this.startNode_=p;this.startOffset_=y;this.endNode_=l;this.endOffset_=q;if(p.nodeType==1&&p.tagName!="BR")if(p=p.childNodes,y=p[y])this.startNode_=y,this.startOffset_=0;else{p.length&&(this.startNode_=_.Fo(p));var E=!0}l.nodeType==1&&((this.endNode_=l.childNodes[q])?this.endOffset_=0:this.endNode_=l)}Tr.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);E&&this.next()};
_.j6(Bz,TCr);_.J=Bz.prototype;_.J.JSC$11236_getStartNode=function(){return this.startNode_};
_.J.isLast=function(){return this.started_&&(this.node!=(this.isReversed_?this.startNode_:this.endNode_)?!1:this.isReversed_?this.startOffset_?this.tagType!=-1:this.tagType==1:!this.endOffset_||this.tagType!=1)};
_.J.next=function(){return this.isLast()?Gv:Bz.superClass_.next.call(this)};
_.J.JSC$11228_copyFrom=function(p){this.startNode_=p.startNode_;this.endNode_=p.endNode_;this.startOffset_=p.startOffset_;this.endOffset_=p.endOffset_;this.isReversed_=p.isReversed_;Bz.superClass_.JSC$11228_copyFrom.call(this,p)};
_.J.clone=function(){var p=new Bz(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);p.JSC$11228_copyFrom(this);return p};var xE$=function(){};
xE$.prototype.__iterator__=function(){return new Bz(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var fz=function(p){this.range_=p};
_.j6(fz,xE$);var BCV=function(p){var y=_.vJ(p).createRange();if(p.nodeType==3)y.setStart(p,0),y.setEnd(p,p.length);else if(BZ(p)||p.nodeType==3){for(var l,q=p;(l=q.firstChild)&&(BZ(l)||l.nodeType==3);)q=l;y.setStart(q,0);for(q=p;(l=q.lastChild)&&(BZ(l)||l.nodeType==3);)q=l;y.setEnd(q,q.nodeType==1?q.childNodes.length:q.length)}else l=p.parentNode,p=Array.prototype.indexOf.call(l.childNodes,p),y.setStart(l,p),y.setEnd(l,p+1);return y},faZ=function(p,y,l,q){var t=_.vJ(p).createRange();
t.setStart(p,y);t.setEnd(l,q);return t};
_.J=fz.prototype;_.J.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.J.getContainer=function(){return this.range_.commonAncestorContainer};
_.J.compareBrowserRangeEndpoints=function(p,y,l){return this.range_.compareBoundaryPoints(l==1?y==1?_.l_.Range.START_TO_START:_.l_.Range.START_TO_END:y==1?_.l_.Range.END_TO_START:_.l_.Range.END_TO_END,p)};
_.J.isCollapsed=function(){return this.range_.collapsed};
_.J.select=function(p){this.selectInternal(f0(_.vJ(this.range_.startContainer)).getSelection(),p)};
_.J.selectInternal=function(p){p.removeAllRanges();p.addRange(this.range_)};
_.J.insertNode=function(p,y){var l=this.range_.cloneRange();l.collapse(y);l.insertNode(p);l.detach();return p};
_.J.collapse=function(p){this.range_.collapse(p)};_.j6(Cx,fz);Cx.prototype.selectInternal=function(p,y){!y||this.isCollapsed()?Cx.superClass_.selectInternal.call(this,p,y):(p.collapse(this.range_.endContainer,this.range_.endOffset),p.extend(this.range_.startContainer,this.range_.startOffset))};_.j6(uL,fz);uL.prototype.compareBrowserRangeEndpoints=function(p,y,l){return uL.superClass_.compareBrowserRangeEndpoints.call(this,p,y,l)};
uL.prototype.selectInternal=function(p,y){y?p.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):p.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var v9x=function(p){return _.ZY?new uL(p):_.Aj?new Cx(p):new fz(p)};var vz=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},XIU;
_.j6(vz,H4U);XIU=function(p,y){var l=new vz;l.browserRangeWrapper_=p;l.isReversed_=!!y;return l};
_.dEx=function(p){p=_.ZY?new uL(BCV(p)):_.Aj?new Cx(BCV(p)):new fz(BCV(p));return XIU(p)};
_.X6=function(p,y,l,q){var t=new vz;t.isReversed_=O4v(p,y,l,q);if(_.Jp(p)&&!BZ(p)){var E=p.parentNode;y=Array.prototype.indexOf.call(E.childNodes,p);p=E}_.Jp(l)&&!BZ(l)&&(E=l.parentNode,q=Array.prototype.indexOf.call(E.childNodes,l),l=E);t.isReversed_?(t.startNode_=l,t.startOffset_=q,t.endNode_=p,t.endOffset_=y):(t.startNode_=p,t.startOffset_=y,t.endNode_=l,t.endOffset_=q);return t};
_.J=vz.prototype;_.J.clone=function(){var p=new vz;p.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();p.startNode_=this.startNode_;p.startOffset_=this.startOffset_;p.endNode_=this.endNode_;p.endOffset_=this.endOffset_;p.isReversed_=this.isReversed_;return p};
_.J.JSC$11230_getType=function(){return"text"};
_.J.getBrowserRangeObject=function(){return dc(this).range_};
_.J.getTextRangeCount=function(){return 1};
_.J.getTextRange=function(){return this};
var dc=function(p){var y;if(!(y=p.browserRangeWrapper_)){y=p.JSC$11230_getStartNode();var l=p.JSC$11230_getStartOffset(),q=p.JSC$11230_getEndNode(),t=p.JSC$11230_getEndOffset();y=_.ZY?new uL(faZ(y,l,q,t)):_.Aj?new Cx(faZ(y,l,q,t)):new fz(faZ(y,l,q,t));y=p.browserRangeWrapper_=y}return y};
_.J=vz.prototype;_.J.getContainer=function(){return dc(this).getContainer()};
_.J.JSC$11230_getStartNode=function(){return this.startNode_||(this.startNode_=dc(this).range_.startContainer)};
_.J.JSC$11230_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=dc(this).range_.startOffset};
_.J.JSC$11230_getEndNode=function(){return this.endNode_||(this.endNode_=dc(this).range_.endContainer)};
_.J.JSC$11230_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=dc(this).range_.endOffset};
_.J.isReversed=function(){return this.isReversed_};
_.J.JSC$11230_containsRange=function(p,y){if(p.JSC$11230_getType()=="text"){var l=dc(this);p=dc(p);y=y&&!p.isCollapsed();p=p.range_;l=y?l.compareBrowserRangeEndpoints(p,0,1)>=0&&l.compareBrowserRangeEndpoints(p,1,0)<=0:l.compareBrowserRangeEndpoints(p,0,0)>=0&&l.compareBrowserRangeEndpoints(p,1,1)<=0}else l=!1;return l};
_.J.isCollapsed=function(){return dc(this).isCollapsed()};
_.J.JSC$11230_getText=function(){return dc(this).range_.toString()};
_.J.__iterator__=function(){return new Bz(this.JSC$11230_getStartNode(),this.JSC$11230_getStartOffset(),this.JSC$11230_getEndNode(),this.JSC$11230_getEndOffset())};
_.J.select=function(){dc(this).select(this.isReversed_)};
_.J.JSC$11230_removeContents=function(){var p=dc(this).range_;p.extractContents();if(p.startContainer.hasChildNodes()&&(p=p.startContainer.childNodes[p.startOffset])){var y=p.previousSibling;mLx(p)==""&&_.Qy(p);y&&mLx(y)==""&&_.Qy(y)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.J.insertNode=function(p,y){p=dc(this).insertNode(p,y);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return p};
_.J.collapse=function(p){p=this.isReversed()?!p:p;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(p);p?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var o9Q=function(){};
_.j6(o9Q,H4U);o9Q.prototype.JSC$11230_containsRange=function(p,y){var l=xd(this);p=xd(p);return(y?sL:_.T46)(p,function(q){return sL(l,function(t){return t.JSC$11230_containsRange(q,y)})})};
o9Q.prototype.insertNode=function(p,y){y?_.vZ(p,this.JSC$11230_getStartNode()):_.Xd(p,this.JSC$11230_getEndNode());return p};var zAx,YKQ=SO().JSC$9260_document_.documentElement;zAx=YKQ.requestFullscreen?"fullscreenchange":YKQ.webkitRequestFullscreen?"webkitfullscreenchange":YKQ.mozRequestFullScreen?"mozfullscreenchange":YKQ.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var Iax=function(){var p=SO().JSC$9260_document_;return!!(p.webkitIsFullScreen||p.mozFullScreen||p.msFullscreenElement||p.fullscreenElement)};var OT=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.j6(OT,o9Q);_.J=OT.prototype;_.J.clone=function(){var p=new OT;p.browserRanges_=_.og(this.browserRanges_);return p};
_.J.JSC$11230_getType=function(){return"mutli"};
_.J.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.J.getTextRangeCount=function(){return this.browserRanges_.length};
_.J.getTextRange=function(p){this.ranges_[p]||(this.ranges_[p]=XIU(v9x(this.browserRanges_[p])));return this.ranges_[p]};
_.J.getContainer=function(){if(!this.container_){for(var p=[],y=this.getTextRangeCount(),l=0;l<y;l++)p.push(this.getTextRange(l).getContainer());this.container_=eVB.apply(null,p)}return this.container_};
var oa=function(p){p.sortedRanges_||(p.sortedRanges_=xd(p),p.sortedRanges_.sort(function(y,l){var q=y.JSC$11230_getStartNode();y=y.JSC$11230_getStartOffset();var t=l.JSC$11230_getStartNode();l=l.JSC$11230_getStartOffset();return q==t&&y==l?0:O4v(q,y,t,l)?1:-1}));
return p.sortedRanges_};
_.J=OT.prototype;_.J.JSC$11230_getStartNode=function(){return oa(this)[0].JSC$11230_getStartNode()};
_.J.JSC$11230_getStartOffset=function(){return oa(this)[0].JSC$11230_getStartOffset()};
_.J.JSC$11230_getEndNode=function(){return _.Fo(oa(this)).JSC$11230_getEndNode()};
_.J.JSC$11230_getEndOffset=function(){return _.Fo(oa(this)).JSC$11230_getEndOffset()};
_.J.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.J.JSC$11230_getText=function(){return xd(this).map(function(p){return p.JSC$11230_getText()}).join("")};
_.J.__iterator__=function(){return new zr(this)};
_.J.select=function(){var p=this.getWindow().getSelection();p.removeAllRanges();for(var y=this.getTextRangeCount(),l=0;l<y;l++)p.addRange(this.getTextRange(l).getBrowserRangeObject())};
_.J.JSC$11230_removeContents=function(){xd(this).forEach(function(p){p.JSC$11230_removeContents()})};
_.J.collapse=function(p){if(!this.isCollapsed()){var y=p?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;y.collapse(p);this.ranges_=[y];this.sortedRanges_=[y];this.browserRanges_=[y.getBrowserRangeObject()]}};
var zr=function(p){this.iterators_=null;this.currentIdx_=0;p&&(this.iterators_=oa(p).map(function(y){return _.mtN(y)}));
Tr.call(this,p?this.JSC$11236_getStartNode():null,!1,!0)};
_.j6(zr,TCr);_.J=zr.prototype;_.J.JSC$11236_getStartNode=function(){return this.iterators_[0].JSC$11236_getStartNode()};
_.J.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.J.next=function(){for(;this.currentIdx_<this.iterators_.length;){var p=this.iterators_[this.currentIdx_],y=p.next();if(y.done)this.currentIdx_++;else return Hz(this,p.node,p.tagType,p.depth),y}return Gv};
_.J.JSC$11228_copyFrom=function(p){this.iterators_=_.og(p.iterators_);zr.superClass_.JSC$11228_copyFrom.call(this,p)};
_.J.clone=function(){var p=new zr(null);p.JSC$11228_copyFrom(this);return p};var pmi,O4v;_.wP=function(){var p=window.getSelection();return p&&pmi(p)};
pmi=function(p){var y=!1;if(p.createRange)try{var l=p.createRange()}catch(t){return null}else if(p.rangeCount){if(p.rangeCount>1){l=new OT;y=p.rangeCount;for(var q=0;q<y;q++)l.browserRanges_.push(p.getRangeAt(q));return l}l=p.getRangeAt(0);y=O4v(p.anchorNode,p.anchorOffset,p.focusNode,p.focusOffset)}else return null;return XIU(v9x(l),y)};
_.Yd=function(p,y){return _.X6(p,y,p,y)};
_.Ia=function(p,y,l,q){return _.X6(p,y,l,q)};
O4v=function(p,y,l,q){if(p==l)return q<y;var t;if(p.nodeType==1&&y)if(t=p.childNodes[y])p=t,y=0;else if(_.OE(p,l))return!0;if(l.nodeType==1&&q)if(t=l.childNodes[q])l=t,q=0;else if(_.OE(l,p))return!1;return(cmM(p,l)||y-q)>0};var pn=function(){_.Fn.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.FZ)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.FZ)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.FZ)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.FZ)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.FZ)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.FZ)(this.dispatchProgressEvent_,this)};
_.j6(pn,_.Fn);pn.prototype.abort=function(){try{this.reader_.abort()}catch(p){throw new U$B(p,"aborting read");}};
pn.prototype.getError=function(){return this.reader_.error&&new U$B(this.reader_.error,"reading file")};
pn.prototype.dispatchProgressEvent_=function(p){this.dispatchEvent(new $$x(p,this))};
pn.prototype.disposeInternal=function(){pn.superClass_.disposeInternal.call(this);delete this.reader_};
var lLi=function(p){var y=new pn,l=yxi(y);y.reader_.readAsArrayBuffer(p);return l},qsB=function(p){var y=new pn,l=yxi(y);
y.reader_.readAsDataURL(p);return l},yxi=function(p){var y=new tH;
p.listen("loadend",_.Ky(function(l,q){var t=q.reader_.result,E=q.getError();t==null||E?l.errback(E):l.callback(t);q.dispose()},y,p));
return y};var yB=function(){_.Fn.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11270_eventHandler_=new _.W2(this);this.JSC$11270_isInitialized_=!1};
_.j6(yB,_.Fn);var sMx=new _.Q4("d"),tRM=new _.Q4("beforedragstart"),E8M=new _.Q4("dragstart"),JxM=new _.Q4("beforedragmove"),cxr=new _.Q4("dragmove"),ebr=new _.Q4("beforedragend"),hbQ=new _.Q4("dragend"),CtQ=new _.Q4("e");yB.prototype.isDragging=function(){return!!this.JSC$11270_dragger_};
var uAU=function(p,y){y.dlgGrowthDirection_=0;y.dlgDragHoverClass_=void 0;y.dlgDragPermission=0;p.dragLists_.push(y)},RbN=function(p,y){p.getHandleForDragItem_=y};
yB.prototype.init=function(){if(!this.JSC$11270_isInitialized_){for(var p=this.dragLists_.length,y=0;y<p;y++)for(var l=_.dH(this.dragLists_[y]),q=l.length,t=0;t<q;++t){var E=l[t],e=this.getHandleForDragItem_(E),C=_.qO(e);this.dragItemForHandle_[C]=E;this.dragItemHoverClasses_&&(this.JSC$11270_eventHandler_.listen(E,"mouseover",this.handleDragItemMouseover_),this.JSC$11270_eventHandler_.listen(E,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11270_eventHandler_.listen(e,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11270_eventHandler_.listen(e,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(E);this.JSC$11270_eventHandler_.listen(e,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11270_isInitialized_=!0}};
yB.prototype.disposeInternal=function(){this.JSC$11270_eventHandler_.dispose();for(var p=this.dragLists_.length,y=0;y<p;y++){var l=this.dragLists_[y];l.dlgGrowthDirection_=void 0;l.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;Wri(this);yB.superClass_.disposeInternal.call(this)};
var aLP=function(p,y){for(var l=p.dragLists_.length,q=0;q<l;q++){var t=p.dragLists_[q];t.dlgBounds_=mZl(t)}l=p.dragItems_.length;for(q=0;q<l;q++)t=p.dragItems_[q],t!=y&&(t.dlgBounds_=mZl(t))};
_.J=yB.prototype;
_.J.handlePotentialDragStart_=function(p){var y=_.qO(p.currentTarget);y=this.dragItemForHandle_[y];if(y.parentElement.dlgDragPermission!=2){this.currDragItem_=y;a:{y=this.currDragItem_;for(var l=y.cloneNode(!0),q=KS("TEXTAREA",y),t=KS("TEXTAREA",l),E=0;E<q.length;E++)t[E].value=q[E].value;switch(y.tagName){case "TR":y=_.Tk("TABLE",null,_.Tk("TBODY",null,l));break a;case "TD":case "TH":y=_.Tk("TABLE",null,_.Tk("TBODY",null,_.Tk("TR",null,l)));break a;case "TEXTAREA":l.value=y.value;default:y=l;break a}y=
void 0}this.draggerEl_=y;this.draggerElClasses_&&qD(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.vJ(this.currDragItem_).body.appendChild(this.draggerEl_);l=_.Xq(this.currDragItem_);y=this.draggerEl_;q=_.Xq(y);if(l instanceof _.BJ){var e=l.y;l=l.x}IC(y,y.offsetLeft+(l-q.x),y.offsetTop+(Number(e)-q.y));this.JSC$11270_dragger_=new _.zC(this.draggerEl_);_.mU$(this.JSC$11270_dragger_,this.hysteresisDistance_);
_.BL(this.JSC$11270_dragger_,"start",this.handleDragStart_,!1,this);_.BL(this.JSC$11270_dragger_,"end",this.handleDragEnd_,!1,this);_.BL(this.JSC$11270_dragger_,"earlycancel",this.JSC$11272_cleanup_,!1,this);this.dispatchEvent(new lo(sMx,this,p,this.currDragItem_,this.draggerEl_,this.JSC$11270_dragger_));this.JSC$11270_dragger_.startDrag(p)}};
_.J.handleDragStart_=function(p){if(this.dispatchEvent(new lo(tRM,this,p.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.tdQ(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?qD(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var y=GdU(this.draggerEl_);this.draggerEl_.halfWidth=y.width/2;this.draggerEl_.halfHeight=y.height/2;y=this.draggerEl_.getBoundingClientRect();
var l=p.clientY,q=UUM(this.JSC$11270_dragger_,p.clientX);if(q>y.right){var t=this.currDragItem_.getBoundingClientRect();this.JSC$11270_dragger_.deltaX=q-(q-t.left)/t.width*y.width}l=$Ur(this.JSC$11270_dragger_,l);l>y.bottom&&(this.JSC$11270_dragger_.deltaY+=l-y.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";aLP(this,this.currDragItem_);this.currDragItem_.style.display="";_.BL(this.JSC$11270_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new lo(E8M,
this,p.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11270_dragger_))}else p.preventDefault(),this.JSC$11272_cleanup_()};
_.J.handleDragMove_=function(p){var y=_.Xq(this.draggerEl_);y=new _.BJ(y.x+this.draggerEl_.halfWidth,y.y+this.draggerEl_.halfHeight);a:{var l=null;if(this.currDragItem_.style.display!="none"){l=this.currDragItem_.parentNode;var q=mZl(l);if(mHV(y,q))break a}q=this.dragLists_.length;for(var t=0;t<q;t++){var E=this.dragLists_[t];if(E!=l&&mHV(y,E.dlgBounds_)){l=E;break a}}l=null}if(l){if(l==null)throw Error("Vd");q=0;t=!1;E=void 0;switch(l.dlgGrowthDirection_){case 0:q=y.y;var e=UHr;var C=$HU;break;case 4:t=
!0;case 2:q=y.x;e=jMi;C=$HU;break;case 5:t=!0;case 3:q=y.x,e=bvQ,C=n8x}for(var u=null,a,m=_.dH(l),U=m.length,b=0;b<U;b++){var P=m[b];if(P!=this.currDragItem_){var Z=e(P.dlgBounds_);if(t){var K=G9$(P,y);E===void 0&&(E=K);C(q,Z)&&(a==void 0||K<E||K==E&&(C(Z,a)||Z==a))&&(u=P,a=Z);K<E&&(E=K)}else C(q,Z)&&(a==void 0||C(Z,a))&&(u=P,a=Z)}}e=u!==null&&G9$(u,y)>E?null:u}else e=null;if(!this.dispatchEvent(new lo(JxM,this,p,this.currDragItem_,this.draggerEl_,this.JSC$11270_dragger_,y,l,e)))return!1;if(l&&l.dlgDragPermission!=
1)this.currDragItem_.parentNode==l&&_.tdQ(this.currDragItem_)==e||l.insertBefore(this.currDragItem_,e),this.currDragItem_.style.display="",l.dlgDragHoverClass_&&_.ax(l,l.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",C=this.dragLists_.length,a=0;a<C;a++)q=this.dragLists_[a],q.dlgDragHoverClass_&&_.Rx(q,q.dlgDragHoverClass_);l!=this.currHoverList_&&(this.currHoverList_=l,aLP(this,this.currDragItem_));this.dispatchEvent(new lo(cxr,this,p,this.currDragItem_,this.draggerEl_,this.JSC$11270_dragger_,
y,l,e));return!1};
_.J.JSC$11272_cleanup_=function(){Wri(this);this.JSC$11270_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var p=this.dragLists_.length,y=0;y<p;y++)this.dragLists_[y].dlgBounds_=null;p=this.dragItems_.length;for(y=0;y<p;y++)this.dragItems_[y].dlgBounds_=null};
_.J.handleDragEnd_=function(p){if(!this.dispatchEvent(new lo(ebr,this,p,this.currDragItem_,this.draggerEl_,this.JSC$11270_dragger_)))return!1;Wri(this);this.dispatchEvent(new lo(hbQ,this,p,this.currDragItem_,this.draggerEl_,this.JSC$11270_dragger_));this.JSC$11272_cleanup_();return!0};
var Wri=function(p){_.er(p.JSC$11270_dragger_);var y=p.draggerEl_&&p.draggerEl_.parentElement;p.draggerEl_&&_.Qy(p.draggerEl_);p.currDragItem_&&p.currDragItem_.style.display=="none"&&(p.origList_.insertBefore(p.currDragItem_,p.origNextItem_),p.currDragItem_.style.display="");p.currDragItemClasses_&&p.currDragItem_?WuU(p.currDragItem_,p.currDragItemClasses_||[]):p.currDragItem_&&(p.currDragItem_.style.visibility="");for(var l=p.dragLists_.length,q=0;q<l;q++){var t=p.dragLists_[q];t.dlgDragHoverClass_&&
_.Rx(t,t.dlgDragHoverClass_)}y&&p.dispatchEvent(new lo(CtQ,p,null,p.currDragItem_,p.draggerEl_,p.JSC$11270_dragger_))};
_.J=yB.prototype;_.J.getHandleForDragItem_=function(p){return p};
_.J.handleDragItemMouseover_=function(p){qD(p.currentTarget,this.dragItemHoverClasses_||[])};
_.J.handleDragItemMouseout_=function(p){WuU(p.currentTarget,this.dragItemHoverClasses_||[])};
_.J.handleDragItemHandleMouseover_=function(p){qD(p.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.J.handleDragItemHandleMouseout_=function(p){WuU(p.currentTarget,this.dragItemHandleHoverClasses_||[])};
var mHV=function(p,y){return p.x>y.left&&p.x<y.left+y.width&&p.y>y.top&&p.y<y.top+y.height},G9$=function(p,y){p=p.dlgBounds_;
return Math.abs(y.y-(p.top+(p.height-1)/2))},UHr=function(p){return p.top+p.height-1},jMi=function(p){return p.left+p.width-1},bvQ=function(p){return p.left||0},$HU=function(p,y){return p<y},n8x=function(p,y){return p>y},lo=function(p,y,l,q,t,E){_.Ku.call(this,p);
this.event=l;this.currDragItem=q;this.draggerEl=t;this.JSC$11274_dragger=E};
_.j6(lo,_.Ku);_.j6(aG,_.Sr);var PtP=new _.BJ(0,0);aG.prototype.JSC$11278_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
aG.prototype.JSC$11278_onMouseMove=function(p){var y=this.containerIsActuallyContent_?PtP:rV(SO(this.containerNode_)),l=this.horizontalScrolling_?this.calculateScrollDelta(p.clientX+y.x,this.scrollBounds_.left,this.scrollBounds_.width):0,q=this.calculateScrollDelta(p.clientY+y.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=l;this.scrollDelta_.y=q;!(l=!l&&!q)&&(l=this.constrainScroll_)&&(l=p.clientX+y.x,p=p.clientY+y.y,y=this.containerBounds_,l=!(y.left<=l&&y.left+y.width>=
l&&y.top<=p&&y.top+y.height>=p));l?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
aG.prototype.calculateScrollDelta=function(p,y,l){var q=0;p<y?q=-8:p>y+l&&(q=8);return q};
aG.prototype.disposeInternal=function(){aG.superClass_.disposeInternal.call(this);this.JSC$11276_eventHandler_.dispose();this.scrollTimer_.dispose()};var AxB={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"}}},ql=AxB;ql=AxB;var s4={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 Zvi=function(){},qE=function(p){if(typeof p=="number"){var y=new Zvi;
y.standardOffset_=p;var l=p;if(l==0)l="Etc/GMT";else{var q=["Etc/GMT",l<0?"-":"+"];l=Math.abs(l);q.push(Math.floor(l/60)%100);l%=60;l!=0&&q.push(":",_.$C(l,2));l=q.join("")}y.timeZoneId_=l;l=p;l==0?l="UTC":(q=["UTC",l<0?"+":"-"],l=Math.abs(l),q.push(Math.floor(l/60)%100),l%=60,l!=0&&q.push(":",l),l=q.join(""));p=MRU(p);y.tzNames_=[l,l];y.tzNamesExt_={STD_LONG_NAME_GMT:p,STD_GENERIC_LOCATION:p};y.transitions_=[];return y}y=new Zvi;y.timeZoneId_=p.id;y.standardOffset_=-p.std_offset;y.tzNames_=p.names;
y.tzNamesExt_=p.names_ext;y.transitions_=p.transitions;return y},MRU=function(p){var y=["GMT"];
y.push(p<=0?"+":"-");p=Math.abs(p);y.push(_.$C(Math.floor(p/60)%100,2),":",_.$C(p%60,2));return y.join("")},VRQ=function(p,y){y=Date.UTC(y.getUTCFullYear(),y.getUTCMonth(),y.getUTCDate(),y.getUTCHours(),y.getUTCMinutes())/36E5;
for(var l=0;l<p.transitions_.length&&y>=p.transitions_[l];)l+=2;return l==0?0:p.transitions_[l-1]},g8B=function(p,y){p=p.standardOffset_-VRQ(p,y);
return p===-1440?0:p};var sK=function(p,y){this.patternParts_=[];this.JSC$11289_dateTimeSymbols_=y||LF;typeof p=="number"?QMB(this,p):KrM(this,p)},wmr=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],tg=function(p){return p.getHours?p.getHours():0},KrM=function(p,y){for(C2t&&(y=y.replace(/\u200f/g,""));y;){for(var l=y,q=0;q<wmr.length;++q){var t=y.match(wmr[q]);
if(t){var E=t[0];y=y.substring(E.length);q==0&&(E=="''"?E="'":(E=E.substring(1,t[1]=="'"?E.length-1:E.length),E=E.replace(/''/g,"'")));p.patternParts_.push({text:E,type:q});break}}if(l===y)throw Error("Wd`"+y);}};
sK.prototype.format=function(p,y){if(!p)throw Error("Xd");var l=y?(p.getTimezoneOffset()-g8B(y,p))*6E4:0,q=l?new Date(p.getTime()+l):p,t=q;y&&q.getTimezoneOffset()!=p.getTimezoneOffset()&&(q=new Date(q.getTime()+(q.getTimezoneOffset()-p.getTimezoneOffset())*6E4),t=new Date(p.getTime()+(l+(l>0?-864E5:864E5))));l=[];for(var E=0;E<this.patternParts_.length;++E){var e=this.patternParts_[E].text;1==this.patternParts_[E].type?l.push(ivV(this,e,p,q,t,y)):l.push(e)}return l.join("")};
var QMB=function(p,y){if(y<4)var l=p.JSC$11289_dateTimeSymbols_.DATEFORMATS[y];else if(y<8)l=p.JSC$11289_dateTimeSymbols_.TIMEFORMATS[y-4];else if(y<12)l=p.JSC$11289_dateTimeSymbols_.DATETIMEFORMATS[y-8],l=l.replace("{1}",p.JSC$11289_dateTimeSymbols_.DATEFORMATS[y-8]),l=l.replace("{0}",p.JSC$11289_dateTimeSymbols_.TIMEFORMATS[y-8]);else if(y===12)l=p.JSC$11289_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(y===13)l=p.JSC$11289_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{QMB(p,10);return}KrM(p,l)},E4=function(p,y){y=String(y);
p=p.JSC$11289_dateTimeSymbols_||LF;if(p.ZERODIGIT!==void 0&&!hO8){for(var l=[],q=0;q<y.length;q++){var t=y.charCodeAt(q);l.push(48<=t&&t<=57?String.fromCharCode(p.ZERODIGIT+t-48):y.charAt(q))}y=l.join("")}return y},hO8=!1,C2t=!1,SsU=function(p,y,l,q){l=l.getFullYear();
l<=0&&q&&(l=1-l);return E4(p,rxx(l,y))},rxx=function(p,y){y==2&&(p%=100);
p<0&&y++;return _.$C(p,y)},Jg=function(p){if(!(p.getHours&&p.getSeconds&&p.getMinutes))throw Error("Yd");
},Frr=function(p,y){Jg(y);
y=tg(y);return p.JSC$11289_dateTimeSymbols_.AMPMS[y>=12&&y<24?1:0]},ivV=function(p,y,l,q,t,E){var e=y.length;
switch(y.charAt(0)){case "G":return l=q.getFullYear()>0?1:0,e>=4?p.JSC$11289_dateTimeSymbols_.ERANAMES[l]:p.JSC$11289_dateTimeSymbols_.ERAS[l];case "y":return SsU(p,e,q,!0);case "Y":return l=(new Date(k5U(q.getFullYear(),q.getMonth(),q.getDate(),p.JSC$11289_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,p.JSC$11289_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),e==2&&(l%=100),E4(p,rxx(l,e));case "u":return SsU(p,e,q,!1);case "M":a:switch(l=q.getMonth(),e){case 5:e=p.JSC$11289_dateTimeSymbols_.NARROWMONTHS[l];
break a;case 4:e=p.JSC$11289_dateTimeSymbols_.MONTHS[l];break a;case 3:e=p.JSC$11289_dateTimeSymbols_.SHORTMONTHS[l];break a;default:e=E4(p,_.$C(l+1,e))}return e;case "k":return Jg(t),E4(p,_.$C(tg(t)||24,e));case "S":return E4(p,(t.getMilliseconds()/1E3).toFixed(Math.min(3,e)).slice(2)+(e>3?_.$C(0,e-3):""));case "E":return l=q.getDay(),e>=4?p.JSC$11289_dateTimeSymbols_.WEEKDAYS[l]:p.JSC$11289_dateTimeSymbols_.SHORTWEEKDAYS[l];case "a":return Frr(p,t);case "b":return Frr(p,t);case "B":return Frr(p,
t);case "h":return Jg(t),E4(p,_.$C(tg(t)%12||12,e));case "K":return Jg(t),E4(p,_.$C(tg(t)%12,e));case "H":return Jg(t),E4(p,_.$C(tg(t),e));case "c":a:switch(l=q.getDay(),e){case 5:e=p.JSC$11289_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[l];break a;case 4:e=p.JSC$11289_dateTimeSymbols_.STANDALONEWEEKDAYS[l];break a;case 3:e=p.JSC$11289_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[l];break a;default:e=E4(p,_.$C(l,1))}return e;case "L":a:switch(l=q.getMonth(),e){case 5:e=p.JSC$11289_dateTimeSymbols_.STANDALONENARROWMONTHS[l];
break a;case 4:e=p.JSC$11289_dateTimeSymbols_.STANDALONEMONTHS[l];break a;case 3:e=p.JSC$11289_dateTimeSymbols_.STANDALONESHORTMONTHS[l];break a;default:e=E4(p,_.$C(l+1,e))}return e;case "Q":return l=Math.floor(q.getMonth()/3),e<4?p.JSC$11289_dateTimeSymbols_.SHORTQUARTERS[l]:p.JSC$11289_dateTimeSymbols_.QUARTERS[l];case "d":return E4(p,_.$C(q.getDate(),e));case "m":return Jg(t),E4(p,_.$C(t.getMinutes?t.getMinutes():0,e));case "s":return Jg(t),E4(p,_.$C(t.getSeconds(),e));case "v":return(E||qE(l.getTimezoneOffset())).timeZoneId_;
case "V":return p=E||qE(l.getTimezoneOffset()),e<=2?p.timeZoneId_:VRQ(p,l)>0?p.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?p.tzNamesExt_.DST_GENERIC_LOCATION:p.tzNamesExt_.DST_GENERIC_LOCATION:p.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?p.tzNamesExt_.STD_GENERIC_LOCATION:p.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return l=k5U(t.getFullYear(),t.getMonth(),t.getDate(),p.JSC$11289_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,p.JSC$11289_dateTimeSymbols_.FIRSTDAYOFWEEK),E4(p,_.$C(Math.floor(Math.round((l-(new Date((new Date(l)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,e));case "z":return p=E||qE(l.getTimezoneOffset()),e<4?p.tzNames_[VRQ(p,l)>0?2:0]:p.tzNames_[VRQ(p,l)>0?3:1];case "Z":return y=E||qE(l.getTimezoneOffset()),e<4?(e=-g8B(y,l),p=[e<0?"-":"+"],e=Math.abs(e),p.push(_.$C(Math.floor(e/60)%100,2),_.$C(e%60,2)),e=p.join("")):e=E4(p,MRU(g8B(y,l))),e;default:return""}};var LrV=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,k9Z=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,Xbo=function(p){this.patternParts_=[];this.JSC$11298_dateTimeSymbols_=LF;if(typeof p=="number"){p>11&&(p=10);if(p<4)var y=this.JSC$11298_dateTimeSymbols_.DATEFORMATS[p];else p<8?y=this.JSC$11298_dateTimeSymbols_.TIMEFORMATS[p-4]:(y=this.JSC$11298_dateTimeSymbols_.DATETIMEFORMATS[p-8],y=y.replace("{1}",this.JSC$11298_dateTimeSymbols_.DATEFORMATS[p-8]),y=y.replace("{0}",this.JSC$11298_dateTimeSymbols_.TIMEFORMATS[p-
8]));NdP(this,y)}else NdP(this,p)},NdP=function(p,y){for(var l=!1,q="",t=0;t<y.length;t++){var E=y.charAt(t);
if(LrV.test(E))for(q.length>0&&(p.patternParts_.push({text:q,count:0,abutStart:!1,numeric:!1}),q=""),p.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});t<y.length-1&&y.charAt(t+1)==" ";)t++;else if(l)E=="'"?t+1<y.length&&y.charAt(t+1)=="'"?(q+="'",t++):l=!1:q+=E;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(E)>=0){q.length>0&&(p.patternParts_.push({text:q,count:0,abutStart:!1,numeric:!1}),q="");for(var e=y.charAt(t),C=t+1;C<y.length&&y.charAt(C)==e;)C++;e=C-t;e<=0?C=!1:(C="MydhHmsSDkK".indexOf(E),
C=C>0||C==0&&e<3);p.patternParts_.push({text:E,count:e,abutStart:!1,numeric:C});t+=e-1}else E=="'"?t+1<y.length&&y.charAt(t+1)=="'"?(q+="'",t++):l=!0:q+=E}q.length>0&&p.patternParts_.push({text:q,count:0,abutStart:!1,numeric:!1});y=!1;for(l=0;l<p.patternParts_.length;l++)p.patternParts_[l].numeric?!y&&l+1<p.patternParts_.length&&p.patternParts_[l+1].numeric&&(y=!0,p.patternParts_[l].abutStart=!0):y=!1};
Xbo.prototype.parse=function(p,y,l){var q=!1,t=!1;l&&(q=l.predictive||!1,t=l.validate||!1);if(q)for(l=0;l<this.patternParts_.length;l++){var E=this.patternParts_[l];if(E.count>0&&("abBhHkKm".indexOf(E.text.charAt(0))<0||E.count>2||E.abutStart))throw Error("Zd`"+E.text.charAt(0));}E=new DHU;l=[0];E.dayPeriodIndex=-1;for(var e=0;e<this.patternParts_.length&&!(q&&l[0]>=p.length);e++){if(this.patternParts_[e].count==0){a:{var C=p;var u=l,a=this.patternParts_[e],m=q;if(a.text.match(LrV)!=null){if(a=u[0],
HvV(C,u),u[0]>a){C=!0;break a}}else{if(C.indexOf(a.text,u[0])==u[0]){u[0]+=a.text.length;C=!0;break a}if(m&&a.text.indexOf(C.substring(u[0]))==0){u[0]+=C.length-u[0];C=!0;break a}}C=!1}if(C)continue;return 0}if(this.patternParts_[e].abutStart){a:{u=p;a=l;m=e;var U=a[0],b=0;for(C=m;C<this.patternParts_.length;C++){var P=this.patternParts_[C],Z=P.count;if(Z===0)break;if(C==m&&(Z-=b,b++,Z==0)){C=0;break a}var K=C>m&&P.numeric,F=a[0];if(!TdQ(this,u,a,P,Z,E,!1)||K&&a[0]-F<Z)C=m-1,a[0]=U}C-=m}if(C<=0)return 0;
e+=C-1}else if(!TdQ(this,p,l,this.patternParts_[e],0,E,q))return 0}a:{p=t;if(y==null)throw Error("$d");E.era!=void 0&&E.year!=void 0&&E.era==0&&E.year>0&&(E.year=-(E.year-1));E.year!=void 0&&y.setFullYear(E.year);q=y.getDate();y.setDate(1);E.month!=void 0&&y.setMonth(E.month);E.day!=void 0?y.setDate(E.day):(t=n36(y.getFullYear(),y.getMonth()),y.setDate(q>t?t:q));typeof y.setHours==="function"&&(E.hours==void 0&&(E.hours=y.getHours()),E.hours<12&&(E.ampm!=void 0&&E.ampm>0?E.hours+=12:E.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(E.dayPeriodName)||["night1","night2"].includes(E.dayPeriodName)&&E.hours>=6)&&(E.hours+=12)),y.setHours(E.hours));typeof y.setMinutes==="function"&&E.minutes!=void 0&&y.setMinutes(E.minutes);typeof y.setSeconds==="function"&&E.seconds!=void 0&&y.setSeconds(E.seconds);typeof y.setMilliseconds==="function"&&E.milliseconds!=void 0&&y.setMilliseconds(E.milliseconds);if(p&&(E.year&&E.year!=y.getFullYear()||E.month&&E.month!=
y.getMonth()||E.day&&E.day!=y.getDate()||E.hours&&E.hours>=24||E.minutes&&E.minutes>=60||E.seconds&&E.seconds>=60||E.milliseconds&&E.milliseconds>=1E3))y=!1;else{E.tzOffset!=void 0&&y.setTime(y.getTime()+(E.tzOffset-y.getTimezoneOffset())*60*1E3);E.ambiguousYear&&(p=new Date,p.setFullYear(p.getFullYear()-80),y.getTime()<p.getTime()&&y.setFullYear(p.getFullYear()+100));if(E.dayOfWeek!=void 0)if(E.day==void 0)E=(7+E.dayOfWeek-y.getDay())%7,E>3&&(E-=7),p=y.getMonth(),y.setDate(y.getDate()+E),y.getMonth()!=
p&&y.setDate(y.getDate()+(E>0?-7:7));else if(E.dayOfWeek!=y.getDay()){y=!1;break a}y=!0}}return y?l[0]:0};
var TdQ=function(p,y,l,q,t,E,e){HvV(y,l);if(q.numeric&&t>0&&l[0]+t>y.length)return!1;switch(q.text.charAt(0)){case "G":return cG(y,l,[p.JSC$11298_dateTimeSymbols_.ERAS],function(C){return E.era=C}),!0;
case "M":case "L":return xHr(p,y,l,t,q,E);case "E":return cG(y,l,[p.JSC$11298_dateTimeSymbols_.WEEKDAYS,p.JSC$11298_dateTimeSymbols_.SHORTWEEKDAYS],function(C){return E.dayOfWeek=C});
case "B":case "b":return t=[],p=[[].concat(p.JSC$11298_dateTimeSymbols_.AMPMS)],t.push("isAm"),t.push("isPm"),y=cG(y,l,p,function(C){return E.dayPeriodIndex=C},e),E.dayPeriodName=t[E.dayPeriodIndex],e?y:!0;
case "a":return y=cG(y,l,[p.JSC$11298_dateTimeSymbols_.AMPMS],function(C){return E.ampm=C},e),e?y:!0;
case "y":return BdU(p,y,l,q,t,E);case "Q":return cG(y,l,[p.JSC$11298_dateTimeSymbols_.QUARTERS,p.JSC$11298_dateTimeSymbols_.SHORTQUARTERS],function(C){E.month=C*3;E.day=1});
case "d":return e1(p,y,l,q,t,function(C){E.day=C}),!0;
case "S":return fLr(p,y,l,t,E);case "h":case "K":case "H":case "k":return y=e1(p,y,l,q,t,function(C){E.hours=q.text.charAt(0)==="h"&&C===12?0:C},e),e?y:!0;
case "m":return y=e1(p,y,l,q,t,function(C){E.minutes=C},e),e?y:!0;
case "s":return e1(p,y,l,q,t,function(C){E.seconds=C}),!0;
case "z":case "Z":case "v":return v8U(p,y,l,E);default:return!1}},BdU=function(p,y,l,q,t,E){var e=l[0];
t=hg(p,y,l,t);t===null&&(t=hg(p,y,l,0,!0));if(t===null)return!1;t>=0&&l[0]-e==2&&q.count==2?(p=t,y=(new Date).getFullYear()-80,l=y%100,E.ambiguousYear=p==l,p+=Math.floor(y/100)*100+(p<l?100:0),E.year=p):E.year=t;return!0},xHr=function(p,y,l,q,t,E){return t.numeric&&e1(p,y,l,t,q,function(e){E.month=e-1})?!0:cG(y,l,[p.JSC$11298_dateTimeSymbols_.MONTHS,
p.JSC$11298_dateTimeSymbols_.STANDALONEMONTHS,p.JSC$11298_dateTimeSymbols_.SHORTMONTHS,p.JSC$11298_dateTimeSymbols_.STANDALONESHORTMONTHS],function(e){E.month=e})},fLr=function(p,y,l,q,t){var E=l[0];
p=hg(p,y,l,q);if(p===null)return!1;l=l[0]-E;t.milliseconds=l<3?p*Math.pow(10,3-l):Math.round(p/Math.pow(10,l-3));return!0},v8U=function(p,y,l,q){y.indexOf("GMT",l[0])==l[0]&&(l[0]+=3);
if(l[0]>=y.length)return q.tzOffset=0,!0;var t=l[0],E=hg(p,y,l,0,!0);if(E===null)return!1;if(l[0]<y.length&&y.charAt(l[0])==":"){var e=E*60;l[0]++;E=hg(p,y,l,0);if(E===null)return!1;e+=E}else e=E,e=e<24&&l[0]-t<=3?e*60:e%100+e/100*60;q.tzOffset=-e;return!0},e1=function(p,y,l,q,t,E,e){e=e||!1;
var C=l[0];p=hg(p,y,l,t);if(p===null)return!1;if(e&&l[0]-C<q.count){if(l[0]<y.length)return!1;p*=Math.pow(10,q.count-(l[0]-C))}E(p);return!0},cG=function(p,y,l,q,t){t=t||!1;
for(var E,e=0;e<l.length;e++){E=y;for(var C=l[e],u=t,a=0,m=null,U=p.substring(E[0]).toLowerCase(),b=0;b<C.length;b++){var P=C[b].toLowerCase();if(u&&P.indexOf(U)==0){a=U.length;m=b;break}C[b].length>a&&U.indexOf(P)==0&&(a=C[b].length,m=b)}m!==null&&(E[0]+=a);E=m;if(E!==null)return q(E),!0}return!1},HvV=function(p,y){(p=p.substring(y[0]).match(k9Z))&&(y[0]+=p[0].length)},hg=function(p,y,l,q,t){y=q>0?y.substring(0,l[0]+q):y;
t=t||!1;if(p.JSC$11298_dateTimeSymbols_.ZERODIGIT){q=[];for(var E=l[0];E<y.length;E++){var e=y.charCodeAt(E)-p.JSC$11298_dateTimeSymbols_.ZERODIGIT;q.push(0<=e&&e<=9?String.fromCharCode(e+48):y.charAt(E))}y=q.join("")}else y=y.substring(l[0]);p=y.match(new RegExp("^"+(t?"[+-]?":"")+"\\d+"));if(!p)return null;l[0]+=p[0].length;return parseInt(p[0],10)},DHU=function(){};
DHU.prototype.ambiguousYear=!1;_.XmU={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 dHQ={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"},OvQ=dHQ,o8N=dHQ;o8N=OvQ=dHQ;var Ysr,Cn,R$,$jt,uo,zbr;
_.p4=function(p,y,l,q){var t;if(t=y){a:if(y&&y.length===3){for(t=0;t<3;t++){var E=y[t];if(E<"A"||E>"Z"&&E<"a"||E>"z"){t=!1;break a}}t=!0}else t=!1;t=!t}if(t)throw new TypeError("ae");this.intlCurrencyCode_=y?y.toUpperCase():null;this.currencyStyle_=l||0;this.overrideNumberFormatSymbols_=q||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_=Cn(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof p==="number")switch(p){case 1:uo(this,Cn(this).DECIMAL_PATTERN);break;case 2:uo(this,Cn(this).SCIENTIFIC_PATTERN);break;case 3:uo(this,Cn(this).PERCENT_PATTERN);break;case 4:p=Cn(this).CURRENCY_PATTERN;y=["0"];if(l=
s4[R$(this)]){l=l[0]&7;if(l>0)for(y.push("."),q=0;q<l;q++)y.push("0");p=p.replace(/0.00/g,y.join(""))}uo(this,p);break;case 5:zbr(this,1);break;case 6:zbr(this,2);break;default:throw Error("de");}else uo(this,p)};
Ysr=!1;Cn=function(p){return p.overrideNumberFormatSymbols_||(Ysr?o8N:OvQ)};
R$=function(p){return p.intlCurrencyCode_||Cn(p).DEF_CURRENCY_CODE};
$jt=function(p,y){if(y>308)throw Error("ce`"+y);p.maximumFractionDigits_=y;return p};
uo=function(p,y){var l=[0];p.positivePrefix_=ILO(p,y,l);for(var q=l[0],t=-1,E=0,e=0,C=0,u=-1,a=y.length,m=!0;l[0]<a&&m;l[0]++)switch(y.charAt(l[0])){case "#":e>0?C++:E++;u>=0&&t<0&&u++;break;case "0":if(C>0)throw Error("je`"+y);e++;u>=0&&t<0&&u++;break;case ",":u>0&&p.groupingArray_.push(u);u=0;break;case ".":if(t>=0)throw Error("ke`"+y);t=E+e+C;break;case "E":if(p.useExponentialNotation_)throw Error("le`"+y);p.useExponentialNotation_=!0;p.minExponentDigits_=0;l[0]+1<a&&y.charAt(l[0]+1)=="+"&&(l[0]++,
p.useSignForPositiveExponent_=!0);for(;l[0]+1<a&&y.charAt(l[0]+1)=="0";)l[0]++,p.minExponentDigits_++;if(E+e<1||p.minExponentDigits_<1)throw Error("me`"+y);m=!1;break;default:l[0]--,m=!1}e==0&&E>0&&t>=0&&(e=t,e==0&&e++,C=E-e,E=e-1,e=1);if(t<0&&C>0||t>=0&&(t<E||t>E+e)||u==0)throw Error("ne`"+y);C=E+e+C;p.maximumFractionDigits_=t>=0?C-t:0;t>=0&&(p.minimumFractionDigits_=E+e-t,p.minimumFractionDigits_<0&&(p.minimumFractionDigits_=0));p.minimumIntegerDigits_=(t>=0?t:C)-E;p.useExponentialNotation_&&(p.maximumIntegerDigits_=
E+p.minimumIntegerDigits_,p.maximumFractionDigits_==0&&p.minimumIntegerDigits_==0&&(p.minimumIntegerDigits_=1));p.groupingArray_.push(Math.max(0,u));p.decimalSeparatorAlwaysShown_=t==0||t==C;q=l[0]-q;p.positiveSuffix_=ILO(p,y,l);l[0]<y.length&&y.charAt(l[0])==";"?(l[0]++,p.multiplier_!=1&&(p.negativePercentSignExpected_=!0),p.negativePrefix_=ILO(p,y,l),l[0]+=q,p.negativeSuffix_=ILO(p,y,l)):(p.negativePrefix_+=p.positivePrefix_,p.negativeSuffix_+=p.positiveSuffix_)};
zbr=function(p,y){p.compactStyle_=y;uo(p,Cn(p).DECIMAL_PATTERN);p.minimumFractionDigits_=0;$jt(p,2);if(p.minimumFractionDigits_>0)throw Error("be");p.significantDigits_=2};
_.p4.prototype.parse=function(p,y){y=y||[0];if(this.compactStyle_!==0)throw Error("ee");p=p.replace(/ |\u202f/g,"\u00a0");var l=p.indexOf(this.positivePrefix_,y[0])==y[0],q=p.indexOf(this.negativePrefix_,y[0])==y[0];l&&q&&(this.positivePrefix_.length>this.negativePrefix_.length?q=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(l=!1));l?y[0]+=this.positivePrefix_.length:q&&(y[0]+=this.negativePrefix_.length);if(p.indexOf(Cn(this).INFINITY,y[0])==y[0]){y[0]+=Cn(this).INFINITY.length;var t=
Infinity}else{t=p;var E=!1,e=!1,C=!1,u=-1,a=1,m=Cn(this).DECIMAL_SEP,U=Cn(this).GROUP_SEP,b=Cn(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");U=U.replace(/\u202f/g,"\u00a0");for(var P="";y[0]<t.length;y[0]++){var Z=t.charAt(y[0]),K=pLQ(this,Z);if(K>=0&&K<=9)P+=K,C=!0;else if(Z==m.charAt(0)){if(E||e)break;P+=".";E=!0}else if(Z==U.charAt(0)&&("\u00a0"!=U.charAt(0)||y[0]+1<t.length&&pLQ(this,t.charAt(y[0]+1))>=0)){if(E||e)break}else if(Z==b.charAt(0)){if(e)break;P+="E";e=!0;u=y[0]}else if(Z==
"+"||Z=="-"){if(C&&u!=y[0]-1)break;P+=Z}else if(this.multiplier_==1&&Z==Cn(this).PERCENT.charAt(0)){if(a!=1)break;a=100;if(C){y[0]++;break}}else if(this.multiplier_==1&&Z==Cn(this).PERMILL.charAt(0)){if(a!=1)break;a=1E3;if(C){y[0]++;break}}else break}this.multiplier_!=1&&(a=this.multiplier_);t=parseFloat(P)/a}if(l){if(p.indexOf(this.positiveSuffix_,y[0])!=y[0])return NaN;y[0]+=this.positiveSuffix_.length}else if(q){if(p.indexOf(this.negativeSuffix_,y[0])!=y[0])return NaN;y[0]+=this.negativeSuffix_.length}return q?
-t:t};
_.p4.prototype.format=function(p){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(p))return Cn(this).NAN;var y=[];var l=p;if(this.compactStyle_==0)l=WG;else{l=Math.abs(l);var q=ylZ(this,l<=1?0:lSZ(l)).divisorBase;l=ylZ(this,q+lSZ(qUN(this,a$(l,-q)).intValue))}p=a$(p,-l.divisorBase);(q=p<0||p==0&&1/p<0)?l.negative_prefix?y.push(l.negative_prefix):(y.push(l.prefix),y.push(this.negativePrefix_)):(y.push(l.prefix),y.push(this.positivePrefix_));if(isFinite(p))if(p*=
q?-1:1,p*=this.multiplier_,this.useExponentialNotation_){var t=p;if(t==0)sFr(this,t,this.minimumIntegerDigits_,y),tmr(this,0,y);else{var E=Math.floor(Math.log(t)/Math.log(10)+2E-15);t=a$(t,-E);var e=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(e=E%this.maximumIntegerDigits_,e<0&&(e=this.maximumIntegerDigits_+e),t=a$(t,e),E-=e,e=1):this.minimumIntegerDigits_<1?(E++,t=a$(t,-1)):(E-=this.minimumIntegerDigits_-1,t=a$(t,this.minimumIntegerDigits_-
1));sFr(this,t,e,y);tmr(this,E,y)}}else sFr(this,p,this.minimumIntegerDigits_,y);else y.push(Cn(this).INFINITY);q?l.negative_suffix?y.push(l.negative_suffix):(isFinite(p)&&y.push(l.suffix),y.push(this.negativeSuffix_)):(isFinite(p)&&y.push(l.suffix),y.push(this.positiveSuffix_));return y.join("")};
var qUN=function(p,y){var l=a$(y,p.maximumFractionDigits_);p.significantDigits_>0&&(l=EgM(l,p.significantDigits_,p.maximumFractionDigits_));l=Math.round(l);if(isFinite(l)){var q=Math.floor(a$(l,-p.maximumFractionDigits_));l=Math.floor(l-a$(q,p.maximumFractionDigits_));if(l<0||l>=a$(1,p.maximumFractionDigits_))q=Math.round(y),l=0}else q=y,l=0;return{intValue:q,fracValue:l}},sFr=function(p,y,l,q){if(p.minimumFractionDigits_>p.maximumFractionDigits_)throw Error("ge");
q||(q=[]);y=qUN(p,y);var t=y.intValue,E=y.fracValue,e=p.minimumFractionDigits_>0||E>0||!1;y=p.minimumFractionDigits_;e&&(y=p.minimumFractionDigits_);for(var C="",u=t;u>1E20;)C="0"+C,u=Math.round(a$(u,-1));C=u+C;var a=Cn(p).DECIMAL_SEP;u=Cn(p).ZERO_DIGIT.codePointAt(0);var m=C.length,U=0;if(t>0||l>0){for(t=m;t<l;t++)q.push(String.fromCodePoint(u));if(p.groupingArray_.length>=2)for(l=1;l<p.groupingArray_.length;l++)U+=p.groupingArray_[l];l=m-U;if(l>0){t=p.groupingArray_;U=m=0;for(var b,P=Cn(p).GROUP_SEP,
Z=C.length,K=0;K<Z;K++)if(q.push(String.fromCodePoint(u+Number(C.charAt(K)))),Z-K>1)if(b=t[U],K<l){var F=l-K;(b===1||b>0&&F%b===1)&&q.push(P)}else U<t.length&&(K===l?U+=1:b===K-l-m+1&&(q.push(P),m+=b,U+=1))}else{l=C;C=p.groupingArray_;t=Cn(p).GROUP_SEP;b=l.length;P=[];for(m=C.length-1;m>=0&&b>0;m--){U=C[m];for(Z=0;Z<U&&b-Z-1>=0;Z++)P.push(String.fromCodePoint(u+Number(l.charAt(b-Z-1))));b-=U;b>0&&P.push(t)}q.push.apply(q,P.reverse())}}else e||q.push(String.fromCodePoint(u));(p.decimalSeparatorAlwaysShown_||
e)&&q.push(a);E=String(E);e=E.split("e+");e.length==2&&(E=String(EgM(parseFloat(e[0]),p.significantDigits_,1)),E=E.replace(".",""),E+=(0,_.Tmr)("0",parseInt(e[1],10)-E.length+1));p.maximumFractionDigits_+1>E.length&&(E="1"+(0,_.Tmr)("0",p.maximumFractionDigits_-E.length)+E);for(p=E.length;E.charAt(p-1)=="0"&&p>y+1;)p--;for(y=1;y<p;y++)q.push(String.fromCodePoint(u+Number(E.charAt(y))))},tmr=function(p,y,l){l.push(Cn(p).EXP_SYMBOL);
y<0?(y=-y,l.push(Cn(p).MINUS_SIGN)):p.useSignForPositiveExponent_&&l.push(Cn(p).PLUS_SIGN);y=""+y;for(var q=Cn(p).ZERO_DIGIT,t=y.length;t<p.minExponentDigits_;t++)l.push(q);p=q.codePointAt(0)-Jlv;for(q=0;q<y.length;q++)l.push(String.fromCodePoint(p+y.codePointAt(q)))},pLQ=function(p,y){y=y.codePointAt(0);
if(48<=y&&y<58)return y-48;p=Cn(p).ZERO_DIGIT.codePointAt(0);return p<=y&&y<p+10?y-p:-1},Jlv="0".codePointAt(0),ILO=function(p,y,l){for(var q="",t=!1,E=y.length;l[0]<E;l[0]++){var e=y.charAt(l[0]);
if(e=="'")l[0]+1<E&&y.charAt(l[0]+1)=="'"?(l[0]++,q+="'"):t=!t;else if(t)q+=e;else switch(e){case "#":case "0":case ",":case ".":case ";":return q;case "\u00a4":if(l[0]+1<E&&y.charAt(l[0]+1)=="\u00a4")l[0]++,q+=R$(p);else switch(p.currencyStyle_){case 0:e=R$(p);q+=e in s4?s4[e][1]:e;break;case 2:e=R$(p);var C=s4[e];q+=C?e==C[1]?e:e+" "+C[1]:e;break;case 1:e=R$(p),q+=e in s4?s4[e][2]:e}break;case "%":if(!p.negativePercentSignExpected_&&p.multiplier_!=1)throw Error("he");if(p.negativePercentSignExpected_&&
p.multiplier_!=100)throw Error("ie");p.multiplier_=100;p.negativePercentSignExpected_=!1;q+=Cn(p).PERCENT;break;case "\u2030":if(!p.negativePercentSignExpected_&&p.multiplier_!=1)throw Error("he");if(p.negativePercentSignExpected_&&p.multiplier_!=1E3)throw Error("ie");p.multiplier_=1E3;p.negativePercentSignExpected_=!1;q+=Cn(p).PERMILL;break;default:q+=e}}return q},WG={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},ylZ=function(p,y){p=p.compactStyle_==1?ql.COMPACT_DECIMAL_SHORT_PATTERN:ql.COMPACT_DECIMAL_LONG_PATTERN;p==null&&(p=ql.COMPACT_DECIMAL_SHORT_PATTERN);if(y<3)return WG;y=Math.min(14,y);var l=p[a$(1,y)];for(--y;!l&&y>=3;)l=p[a$(1,y)],y--;if(!l)return WG;l=l.other;var q=p="",t=l.indexOf(";");t>=0&&(l=l.substring(0,t),t=l.substring(t+1))&&(q=/([^0]*)(0+)(.*)/.exec(t),p=q[1],q=q[3]);return l&&l!="0"?(l=/([^0]*)(0+)(.*)/.exec(l))?{divisorBase:y+
1-(l[2].length-1),negative_prefix:p,negative_suffix:q,prefix:l[1],suffix:l[3]}:WG:WG},lSZ=function(p){if(!isFinite(p))return p>0?p:0;
for(var y=0;(p/=10)>=1;)y++;return y},a$=function(p,y){if(!p||!isFinite(p)||y==0)return p;
p=String(p).split("e");return parseFloat(p[0]+"e"+(parseInt(p[1]||0,10)+y))},clQ=function(p,y){return p&&isFinite(p)?a$(Math.round(a$(p,y)),-y):p},EgM=function(p,y,l){if(!p)return p;
y=y-lSZ(p)-1;return y<-l?clQ(p,-l):clQ(p,y)};var eUB=function(p){return p%10==1&&p%100!=11?"one":p%10==2&&p%100!=12?"two":p%10==3&&p%100!=13?"few":"other"},hUO=eUB;
hUO=eUB;var CyU;CyU=function(p,y){var l=p|0;if(void 0===y){y=Math;var q=y.min,t=p+"",E=t.indexOf(".");y=q.call(y,E===-1?0:t.length-E-1,3)}q=Math.pow(10,y);p={v:y,f:(p*q|0)%q};return l==1&&p.v==0?"one":"other"};
_.tB=CyU;_.tB=CyU;var uHr,RUZ,Wcr,meB,UeQ;_.aSr=function(p){this.JSC$11341_pattern_=p;this.parsedPattern_=this.literals_=this.initialLiterals_=null;p=OvQ;var y=ql;if(uHr!==p||RUZ!==y)uHr=p,RUZ=y,Wcr=new _.p4(1);this.numberFormatter_=Wcr};
uHr=null;RUZ=null;Wcr=null;meB=RegExp("'([{}#].*?)'","g");UeQ=RegExp("''","g");
_.aSr.prototype.format=function(p){if(this.JSC$11341_pattern_){this.initialLiterals_=[];var y=$eB(this,this.JSC$11341_pattern_);this.parsedPattern_=jFr(this,y);this.JSC$11341_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.og(this.initialLiterals_),y=[],blU(this,this.parsedPattern_,p,!1,y),p=y.join("");this.literals_.length>0;)p=p.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else p="";return p};
var blU=function(p,y,l,q,t){for(var E=0;E<y.length;E++)switch(y[E].type){case 4:t.push(y[E].value);break;case 3:var e=y[E].value;var C=p,u=t,a=l[e];a===void 0?u.push("Undefined parameter - "+e):(C.literals_.push(a),u.push(C.buildPlaceholder_(C.literals_)));break;case 2:e=y[E].value;C=p;u=l;a=q;var m=t,U=e.argumentIndex;u[U]===void 0?m.push("Undefined parameter - "+U):(U=e[u[U]],U===void 0&&(U=e.other),blU(C,U,u,a,m));break;case 0:e=y[E].value;ngi(p,e,l,_.tB,q,t);break;case 1:e=y[E].value,ngi(p,e,
l,hUO,q,t)}},ngi=function(p,y,l,q,t,E){var e=y.argumentIndex,C=y.argumentOffset,u=+l[e];
isNaN(u)?E.push("Undefined or invalid parameter - "+e):(C=u-C,e=y[l[e]],e===void 0&&(q=q(Math.abs(C)),e=y[q],e===void 0&&(e=y.other)),y=[],blU(p,e,l,t,y),l=y.join(""),t?E.push(l):(p=p.numberFormatter_.format(C),E.push(l.replace(/#/g,p))))},$eB=function(p,y){var l=p.initialLiterals_,q=p.buildPlaceholder_.bind(p);
y=y.replace(UeQ,function(){l.push("'");return q(l)});
return y=y.replace(meB,function(t,E){l.push(E);return q(l)})},GpM=function(p){var y=0,l=[],q=[],t=/[{}]/g;
t.lastIndex=0;for(var E;E=t.exec(p);){var e=E.index;E[0]=="}"?(l.pop(),l.length==0&&(E={type:1},E.value=p.substring(y,e),q.push(E),y=e+1)):(l.length==0&&(y=p.substring(y,e),y!=""&&q.push({type:0,value:y}),y=e+1),l.push("{"))}p=p.substring(y);p!=""&&q.push({type:0,value:p});return q},Pyv=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,AlU=/^\s*(\w+)\s*,\s*selectordinal\s*,/,ZlZ=/^\s*(\w+)\s*,\s*select\s*,/,jFr=function(p,y){var l=[];
y=GpM(y);for(var q=0;q<y.length;q++){var t={};if(0==y[q].type)t.type=4,t.value=y[q].value;else if(1==y[q].type){var E=y[q].value;switch(Pyv.test(E)?0:AlU.test(E)?1:ZlZ.test(E)?2:/^\s*\w+\s*/.test(E)?3:5){case 2:t.type=2;t.value=Mmv(p,y[q].value);break;case 0:t.type=0;t.value=VmU(p,y[q].value);break;case 1:t.type=1;t.value=ggV(p,y[q].value);break;case 3:t.type=3,t.value=y[q].value}}l.push(t)}return l},Mmv=function(p,y){var l="";
y=y.replace(ZlZ,function(C,u){l=u;return""});
var q={};q.argumentIndex=l;y=GpM(y);for(var t=0;t<y.length;){var E=y[t].value;t++;var e=void 0;1==y[t].type&&(e=jFr(p,y[t].value));q[E.replace(/\s/g,"")]=e;t++}return q},VmU=function(p,y){var l="",q=0;
y=y.replace(Pyv,function(u,a,m){l=a;m&&(q=parseInt(m,10));return""});
var t={};t.argumentIndex=l;t.argumentOffset=q;y=GpM(y);for(var E=0;E<y.length;){var e=y[E].value;E++;var C=void 0;1==y[E].type&&(C=jFr(p,y[E].value));t[e.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=C;E++}return t},ggV=function(p,y){var l="";
y=y.replace(AlU,function(C,u){l=u;return""});
var q={};q.argumentIndex=l;q.argumentOffset=0;y=GpM(y);for(var t=0;t<y.length;){var E=y[t].value;t++;var e=void 0;1==y[t].type&&(e=jFr(p,y[t].value));q[E.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=e;t++}return q};
_.aSr.prototype.buildPlaceholder_=function(p){return"\ufddf_"+(p.length-1).toString(10)+"_"};var QF$;
QF$={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 WZ5=function(){this.rdtfSymbols_=Kci||QF$;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
WZ5.prototype.format=function(p,y){a:{y=wLB(this,y);switch(this.style_){case 2:if(y.NARROW!=void 0){y=y.NARROW;break a}case 1:if(y.SHORT!=void 0){y=y.SHORT;break a}default:y=y.LONG;break a}y=void 0}if(!this.alwaysNumeric_&&y&&y.R&&y.R[""+p])p=y.R[""+p];else if(y){var l=Math.abs(p);p=(new _.aSr("{N,plural,"+(p>0||p==0&&1/p==Infinity?y.F:y.P)+"}")).format({N:l})}else p="";return p};
var wLB=function(p,y){switch(y){default:case 0:return p.rdtfSymbols_.YEAR;case 1:return p.rdtfSymbols_.QUARTER;case 2:return p.rdtfSymbols_.MONTH;case 3:return p.rdtfSymbols_.WEEK;case 4:return p.rdtfSymbols_.DAY;case 5:return p.rdtfSymbols_.HOUR;case 6:return p.rdtfSymbols_.MINUTE;case 7:return p.rdtfSymbols_.SECOND}};var ilZ=function(p,y,l,q,t,E,e,C){this.x0=p;this.y0=y;this.x1=l;this.y1=q;this.x2=t;this.y2=E;this.x3=e;this.y3=C};
ilZ.prototype.clone=function(){return new ilZ(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
ilZ.prototype.equals=function(p){return this.x0==p.x0&&this.y0==p.y0&&this.x1==p.x1&&this.y1==p.y1&&this.x2==p.x2&&this.y2==p.y2&&this.x3==p.x3&&this.y3==p.y3};
var rlx=function(p,y){if(y==0)return p.x0;if(y==1)return p.x3;var l=kC(p.x0,p.x1,y),q=kC(p.x1,p.x2,y);p=kC(p.x2,p.x3,y);l=kC(l,q,y);q=kC(q,p,y);return kC(l,q,y)},SUv=function(p,y){var l=(y-p.x0)/(p.x3-p.x0);
if(l<=0)return 0;if(l>=1)return 1;for(var q=0,t=1,E=0,e=0;e<8;e++){E=rlx(p,l);var C=(rlx(p,l+1E-6)-E)/1E-6;if(Math.abs(E-y)<1E-6)return l;if(Math.abs(C)<1E-6)break;else E<y?q=l:t=l,l-=(E-y)/C}for(e=0;Math.abs(E-y)>1E-6&&e<8;e++)E<y?(q=l,l=(l+t)/2):(t=l,l=(l+q)/2),E=rlx(p,l);return l};var mG=function(){_.Fn.call(this);this.JSC$11362_name_="closure_frame"+FcM++;this.iframesForDisposal_=[];LcU[this.JSC$11362_name_]=this},U4;
_.j6(mG,_.Fn);var LcU={},FcM=0,kpO=function(p,y){var l=SO(p);OrN(y,function(q,t){Array.isArray(q)||(q=[q]);_.lv(q,function(E){E=l.JSC$9262_createDom("INPUT",{type:"hidden",name:t,value:E});p.appendChild(E)})})};
_.J=mG.prototype;_.J.JSC$11364_form_=null;_.J.JSC$11364_iframe_=null;_.J.iframeName_=null;_.J.nextIframeId_=0;_.J.JSC$11364_active_=!1;_.J.complete_=!1;_.J.success_=!1;_.J.lastContent_=null;_.J.JSC$11364_lastErrorCode_=0;_.J.iframeDisposalTimer_=null;
_.J.send=function(p,y,l,q){if(this.JSC$11364_active_)throw Error("oe");p=new _.JO(p);y=y?y.toUpperCase():"GET";l&&_.GC(p);U4||(U4=_.Tk("FORM"),U4.acceptCharset="utf-8",l=U4.style,l.position="absolute",l.visibility="hidden",l.top=l.left="-10px",l.width=l.height="10px",l.overflow="hidden",document.body.appendChild(U4));this.JSC$11364_form_=U4;y=="GET"&&kpO(this.JSC$11364_form_,p.JSC$9968_queryData_);q&&kpO(this.JSC$11364_form_,q);l=p.toString();l=FIt(l);q=this.JSC$11364_form_;l=_.zB(H6(l));l!==void 0&&
(q.action=l);this.JSC$11364_form_.method=y;NWi(this);DeM(this)};
_.J.abort=function(p){if(this.JSC$11364_active_){var y=$0(this);if(y)if(i0(y))y.removeAllListeners(void 0);else if(y=r5(y)){var l=0,q;for(q in y.listeners)for(var t=y.listeners[q].concat(),E=0;E<t.length;++E)HL(t[E])&&++l}this.success_=this.JSC$11364_active_=this.complete_=!1;this.JSC$11364_lastErrorCode_=p||7;this.dispatchEvent("abort");Hlv(this)}};
_.J.disposeInternal=function(){this.JSC$11364_active_&&this.abort();mG.superClass_.disposeInternal.call(this);this.JSC$11364_iframe_&&TWx(this);DeM(this);this.JSC$11364_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11364_form_=null;this.JSC$11364_lastErrorCode_=0;delete LcU[this.JSC$11362_name_]};
_.J.isComplete=function(){return this.complete_};
_.J.isSuccess=function(){return this.success_};
_.J.isActive=function(){return this.JSC$11364_active_};
_.J.getResponseText=function(){return this.lastContent_};
_.J.getLastError=function(){return _.MOO(this.JSC$11364_lastErrorCode_)};
var NWi=function(p){p.JSC$11364_active_=!0;p.complete_=!1;p.JSC$11364_lastErrorCode_=0;p.iframeName_=p.JSC$11362_name_+"_"+(p.nextIframeId_++).toString(36);p.JSC$11364_iframe_=SO(p.JSC$11364_form_).JSC$9262_createDom("IFRAME",{name:p.iframeName_,id:p.iframeName_});var y=p.JSC$11364_iframe_.style;y.visibility="hidden";y.width=y.height="10px";y.display="none";_.ZY?y.marginTop=y.marginLeft="-10px":(y.position="absolute",y.top=y.left="-10px");SO(p.JSC$11364_form_).JSC$9260_document_.body.appendChild(p.JSC$11364_iframe_);
y=p.iframeName_+"_inner";var l=hVv(p.JSC$11364_iframe_);if(document.baseURI){var q=Mr(y);q='<head><base href="'+Mr(document.baseURI)+'"></head><body><iframe id="'+q+'" name="'+q+'"></iframe>';q=pC(q)}else q=Mr(y),q=pC('<body><iframe id="'+q+'" name="'+q+'"></iframe>');l.write(ye(q));_.BL(l.getElementById(y),"load",p.onIframeLoaded_,!1,p);q=KS("TEXTAREA",p.JSC$11364_form_);for(var t=0,E=q.length;t<E;t++){var e=q[t].value;mLx(q[t])!=e&&(_.Of(q[t],e),q[t].value=e)}q=l.importNode(p.JSC$11364_form_,!0);
q.target=y;q.action=p.JSC$11364_form_.action;l.body.appendChild(q);t=KS("SELECT",p.JSC$11364_form_);E=KS("SELECT",q);e=0;for(var C=t.length;e<C;e++)for(var u=KS("OPTION",t[e]),a=KS("OPTION",E[e]),m=0,U=u.length;m<U;m++)a[m].selected=u[m].selected;t=KS("INPUT",p.JSC$11364_form_);E=KS("INPUT",q);e=0;for(C=t.length;e<C;e++)if(t[e].type=="file"&&t[e].value!=E[e].value){p.JSC$11364_form_.target=y;q=p.JSC$11364_form_;break}try{p.errorHandled_=!1,q.submit(),l.close(),_.Aj&&setTimeout(p.testForFirefoxSilentError_.bind(p),
250)}catch(b){_.SJ(l.getElementById(y),"load",p.onIframeLoaded_,!1,p),l.close(),j1(p,2)}};
mG.prototype.onIframeLoaded_=function(){_.SJ($0(this),"load",this.onIframeLoaded_,!1,this);try{var p=this.JSC$11364_iframe_?hVv($0(this)):null;this.complete_=!0;this.JSC$11364_active_=!1;try{var y=p.body;this.lastContent_=y.textContent||y.innerText}catch(t){var l=1}var q;l||typeof this.errorChecker_!="function"||(q=this.errorChecker_(p))&&(l=4);l?j1(this,l):(this.success_=!0,this.JSC$11364_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),Hlv(this))}catch(t){j1(this,1)}};
var j1=function(p,y){p.errorHandled_||(p.success_=!1,p.JSC$11364_active_=!1,p.complete_=!0,p.JSC$11364_lastErrorCode_=y,p.dispatchEvent("complete"),p.dispatchEvent("error"),Hlv(p),p.errorHandled_=!0)},Hlv=function(p){TWx(p);
DeM(p);p.JSC$11364_form_=null;p.dispatchEvent("ready")},TWx=function(p){var y=p.JSC$11364_iframe_;
y&&(y.onreadystatechange=null,y.onload=null,y.onerror=null,p.iframesForDisposal_.push(y));p.iframeDisposalTimer_&&(clearTimeout(p.iframeDisposalTimer_),p.iframeDisposalTimer_=null);_.Aj?p.iframeDisposalTimer_=setTimeout(p.disposeIframes_.bind(p),2E3):p.disposeIframes_();p.JSC$11364_iframe_=null;p.iframeName_=null};
mG.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var p=this.iframesForDisposal_.pop();_.Qy(p)}};
var DeM=function(p){p.JSC$11364_form_&&p.JSC$11364_form_==U4&&_.fj(p.JSC$11364_form_)},$0=function(p){return p.JSC$11364_iframe_?hVv(p.JSC$11364_iframe_).getElementById(p.iframeName_+"_inner"):null};
mG.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11364_active_){var p=this.JSC$11364_iframe_?hVv($0(this)):null;p&&!oPu(p,"documentUri")?(_.SJ($0(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?j1(this,3):j1(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.bo=function(p){return p=="\r"||p=="\n"||p==" "||p=="\t"};var xer;_.nn=function(p){this.errorMessage_=null;this.result_=[];this.JSC$11366_buffer_="";this.stack_=[];this.JSC$11366_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!p||!p.deliverMessageAsRawString)};
xer={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};_.nn.prototype.isInputValid=function(){return this.streamState_!=3};
_.nn.prototype.done=function(){return this.streamState_===2};
var Gb=function(p,y,l){p.streamState_=3;p.errorMessage_="The stream is broken @"+p.JSC$11366_pos_+"/"+l+". With input:\n"+y;throw Error(p.errorMessage_);};
_.nn.prototype.acceptsBinaryInput=function(){return!1};
_.nn.prototype.parse=function(p){function y(){for(;b<p.length;)if(_.bo(p[b]))b++,E.JSC$11366_pos_++;else break;return b<a}
function l(){for(var Z;;){Z=p[b++];if(!Z)break;E.JSC$11366_pos_++;switch(E.state_){case u.INIT:Z==="{"?E.state_=u.OBJECT_OPEN:Z==="["?E.state_=u.ARRAY_OPEN:_.bo(Z)||Gb(E,p,b);continue;case u.KEY_START:case u.OBJECT_OPEN:if(_.bo(Z))continue;if(E.state_===u.KEY_START)e.push(u.KEY_END);else if(Z==="}"){t("{}");E.state_=q();continue}else e.push(u.OBJECT_END);Z==='"'?E.state_=u.STRING:Gb(E,p,b);continue;case u.KEY_END:case u.OBJECT_END:if(_.bo(Z))continue;Z===":"?(E.state_===u.OBJECT_END&&(e.push(u.OBJECT_END),
E.depth_++),E.state_=u.VALUE):Z==="}"?(E.depth_--,t(),E.state_=q()):Z===","?(E.state_===u.OBJECT_END&&e.push(u.OBJECT_END),E.state_=u.KEY_START):Gb(E,p,b);continue;case u.ARRAY_OPEN:case u.VALUE:if(_.bo(Z))continue;if(E.state_===u.ARRAY_OPEN)if(E.depth_++,E.state_=u.VALUE,Z==="]"){E.depth_--;if(E.depth_===0){E.state_=u.ARRAY_END;return}t("[]");E.state_=q();continue}else e.push(u.ARRAY_END);Z==='"'?E.state_=u.STRING:Z==="{"?E.state_=u.OBJECT_OPEN:Z==="["?E.state_=u.ARRAY_OPEN:Z==="t"?E.state_=u.TRUE1:
Z==="f"?E.state_=u.FALSE1:Z==="n"?E.state_=u.NULL1:Z!=="-"&&("0123456789".indexOf(Z)!==-1?E.state_=u.NUM_DIGIT:Gb(E,p,b));continue;case u.ARRAY_END:if(Z===",")e.push(u.ARRAY_END),E.state_=u.VALUE,E.depth_===1&&(U=b);else if(Z==="]"){E.depth_--;if(E.depth_===0)return;t();E.state_=q()}else if(_.bo(Z))continue;else Gb(E,p,b);continue;case u.STRING:var K=b;a:for(;;){for(;E.unicodeCount_>0;)if(Z=p[b++],E.unicodeCount_===4?E.unicodeCount_=0:E.unicodeCount_++,!Z)break a;if(Z==='"'&&!E.slashed_){E.state_=
q();break}if(Z==="\\"&&!E.slashed_&&(E.slashed_=!0,Z=p[b++],!Z))break;if(E.slashed_)if(E.slashed_=!1,Z==="u"&&(E.unicodeCount_=1),Z=p[b++])continue;else break;C.lastIndex=b;Z=C.exec(p);if(!Z){b=p.length+1;break}b=Z.index+1;Z=p[Z.index];if(!Z)break}E.JSC$11366_pos_+=b-K;continue;case u.TRUE1:if(!Z)continue;Z==="r"?E.state_=u.TRUE2:Gb(E,p,b);continue;case u.TRUE2:if(!Z)continue;Z==="u"?E.state_=u.TRUE3:Gb(E,p,b);continue;case u.TRUE3:if(!Z)continue;Z==="e"?E.state_=q():Gb(E,p,b);continue;case u.FALSE1:if(!Z)continue;
Z==="a"?E.state_=u.FALSE2:Gb(E,p,b);continue;case u.FALSE2:if(!Z)continue;Z==="l"?E.state_=u.FALSE3:Gb(E,p,b);continue;case u.FALSE3:if(!Z)continue;Z==="s"?E.state_=u.FALSE4:Gb(E,p,b);continue;case u.FALSE4:if(!Z)continue;Z==="e"?E.state_=q():Gb(E,p,b);continue;case u.NULL1:if(!Z)continue;Z==="u"?E.state_=u.NULL2:Gb(E,p,b);continue;case u.NULL2:if(!Z)continue;Z==="l"?E.state_=u.NULL3:Gb(E,p,b);continue;case u.NULL3:if(!Z)continue;Z==="l"?E.state_=q():Gb(E,p,b);continue;case u.NUM_DECIMAL_POINT:Z===
"."?E.state_=u.NUM_DIGIT:Gb(E,p,b);continue;case u.NUM_DIGIT:if("0123456789.eE+-".indexOf(Z)!==-1)continue;else b--,E.JSC$11366_pos_--,E.state_=q();continue;default:Gb(E,p,b)}}}
function q(){var Z=e.pop();return Z!=null?Z:u.VALUE}
function t(Z){E.depth_>1||(Z||(Z=U===-1?E.JSC$11366_buffer_+p.substring(m,b):p.substring(U,b)),E.deliverMessageAsRawString_?E.result_.push(Z):E.result_.push(JSON.parse(Z)),U=b)}
for(var E=this,e=E.stack_,C=E.stringInputPattern_,u=xer,a=p.length,m=0,U=-1,b=0;b<a;)switch(E.streamState_){case 3:return Gb(E,p,b),null;case 2:return y()&&Gb(E,p,b),null;case 0:if(y()){var P=p[b++];E.JSC$11366_pos_++;if(P==="["){E.streamState_=1;m=b;E.state_=u.ARRAY_OPEN;continue}else Gb(E,p,b)}return null;case 1:return l(),E.depth_===0&&E.state_==u.ARRAY_END?(E.streamState_=2,E.JSC$11366_buffer_=p.substring(b)):E.JSC$11366_buffer_=U===-1?E.JSC$11366_buffer_+p.substring(m):p.substring(U),E.result_.length>
0?(P=E.result_,E.result_=[],P):null}return null};_.j6(_.mX,Lh);Un.prototype.getValue=function(){return this.JSC$11374_value_};
Un.prototype.clone=function(){return new Un(this.JSC$11374_key_,this.JSC$11374_value_)};var PG=function(p){this.nodes_=[];if(p)a:{if(p instanceof PG){var y=p.getKeys();p=p.getValues();if(this.getCount()<=0){for(var l=this.nodes_,q=0;q<y.length;q++)l.push(new Un(y[q],p[q]));break a}}else y=_.Ts.getKeys(p),p=_.Ts.getValues(p);for(l=0;l<y.length;l++)this.insert(y[l],p[l])}};
_.J=PG.prototype;_.J.insert=function(p,y){var l=this.nodes_;l.push(new Un(p,y));p=l.length-1;y=this.nodes_;for(l=y[p];p>0;){var q=p-1>>1;if(y[q].JSC$11374_key_>l.JSC$11374_key_)y[p]=y[q],p=q;else break}y[p]=l};
_.J.remove=function(){var p=this.nodes_,y=p.length,l=p[0];if(!(y<=0)){if(y==1)p.length=0;else{p[0]=p.pop();p=0;y=this.nodes_;for(var q=y.length,t=y[p];p<q>>1;){var E=p*2+1,e=p*2+2;E=e<q&&y[e].JSC$11374_key_<y[E].JSC$11374_key_?e:E;if(y[E].JSC$11374_key_>t.JSC$11374_key_)break;y[p]=y[E];p=E}y[p]=t}return l.getValue()}};
_.J.peek=function(){var p=this.nodes_;if(p.length!=0)return p[0].getValue()};
_.J.getValues=function(){for(var p=this.nodes_,y=[],l=p.length,q=0;q<l;q++)y.push(p[q].getValue());return y};
_.J.getKeys=function(){for(var p=this.nodes_,y=[],l=p.length,q=0;q<l;q++)y.push(p[q].JSC$11374_key_);return y};
_.J.containsValue=function(p){return this.nodes_.some(function(y){return y.getValue()==p})};
_.J.containsKey=function(p){return this.nodes_.some(function(y){return y.JSC$11374_key_==p})};
_.J.clone=function(){return new PG(this)};
_.J.getCount=function(){return this.nodes_.length};
_.J.isEmpty=function(){return this.nodes_.length===0};
_.J.clear=function(){this.nodes_.length=0};_.Ag=function(p,y){this.JSC$11380_map_={};this.JSC$11380_keys_=[];this.version_=this.size=0;var l=arguments.length;if(l>1){if(l%2)throw Error("ka");for(var q=0;q<l;q+=2)this.set(arguments[q],arguments[q+1])}else p&&this.addAll(p)};
_.J=_.Ag.prototype;_.J.getCount=function(){return this.size};
_.J.getValues=function(){Zr(this);for(var p=[],y=0;y<this.JSC$11380_keys_.length;y++)p.push(this.JSC$11380_map_[this.JSC$11380_keys_[y]]);return p};
_.J.getKeys=function(){Zr(this);return this.JSC$11380_keys_.concat()};
_.J.containsKey=function(p){return this.has(p)};
_.J.has=function(p){return Ml(this.JSC$11380_map_,p)};
_.J.containsValue=function(p){for(var y=0;y<this.JSC$11380_keys_.length;y++){var l=this.JSC$11380_keys_[y];if(Ml(this.JSC$11380_map_,l)&&this.JSC$11380_map_[l]==p)return!0}return!1};
_.J.equals=function(p,y){if(this===p)return!0;if(this.size!=p.getCount())return!1;y=y||BWQ;Zr(this);for(var l,q=0;l=this.JSC$11380_keys_[q];q++)if(!y(this.get(l),p.get(l)))return!1;return!0};
var BWQ=function(p,y){return p===y};
_.Ag.prototype.isEmpty=function(){return this.size==0};
_.Ag.prototype.clear=function(){this.JSC$11380_map_={};this.version_=this.size=this.JSC$11380_keys_.length=0};
_.Ag.prototype.remove=function(p){return this.delete(p)};
_.Ag.prototype.delete=function(p){return Ml(this.JSC$11380_map_,p)?(delete this.JSC$11380_map_[p],--this.size,this.version_++,this.JSC$11380_keys_.length>2*this.size&&Zr(this),!0):!1};
var Zr=function(p){if(p.size!=p.JSC$11380_keys_.length){for(var y=0,l=0;y<p.JSC$11380_keys_.length;){var q=p.JSC$11380_keys_[y];Ml(p.JSC$11380_map_,q)&&(p.JSC$11380_keys_[l++]=q);y++}p.JSC$11380_keys_.length=l}if(p.size!=p.JSC$11380_keys_.length){y={};for(q=l=0;l<p.JSC$11380_keys_.length;){var t=p.JSC$11380_keys_[l];Ml(y,t)||(p.JSC$11380_keys_[q++]=t,y[t]=1);l++}p.JSC$11380_keys_.length=q}};
_.J=_.Ag.prototype;_.J.get=function(p,y){return Ml(this.JSC$11380_map_,p)?this.JSC$11380_map_[p]:y};
_.J.set=function(p,y){Ml(this.JSC$11380_map_,p)||(this.size+=1,this.JSC$11380_keys_.push(p),this.version_++);this.JSC$11380_map_[p]=y};
_.J.addAll=function(p){if(p instanceof _.Ag)for(var y=p.getKeys(),l=0;l<y.length;l++)this.set(y[l],p.get(y[l]));else for(y in p)this.set(y,p[y])};
_.J.forEach=function(p,y){for(var l=this.getKeys(),q=0;q<l.length;q++){var t=l[q],E=this.get(t);p.call(y,E,t,this)}};
_.J.clone=function(){return new _.Ag(this)};
_.J.transpose=function(){for(var p=new _.Ag,y=0;y<this.JSC$11380_keys_.length;y++){var l=this.JSC$11380_keys_[y];p.set(this.JSC$11380_map_[l],l)}return p};
_.J.keys=function(){return Utr(this.__iterator__(!0)).toEs6()};
_.J.values=function(){return Utr(this.__iterator__(!1)).toEs6()};
_.J.entries=function(){var p=this;return K3B(this.keys(),function(y){return[y,p.get(y)]})};
_.J.__iterator__=function(p){Zr(this);var y=0,l=this.version_,q=this,t=new bK;t.next=function(){if(l!=q.version_)throw Error("pe");if(y>=q.JSC$11380_keys_.length)return Gv;var E=q.JSC$11380_keys_[y++];return PE(p?E:q.JSC$11380_map_[E])};
return t};
var Ml=function(p,y){return Object.prototype.hasOwnProperty.call(p,y)};var vg$=function(){this.JSC$11383_map_=new _.Ag;this.JSC$11383_head_=new fSV("");this.JSC$11383_head_.next=this.JSC$11383_head_.prev=this.JSC$11383_head_},XLP=function(p,y){if(y=p.JSC$11383_map_.get(y))y.remove(),p.insert_(y);
return y};
_.J=vg$.prototype;_.J.get=function(p,y){return(p=XLP(this,p))?p.value:y};
_.J.set=function(p,y){var l=XLP(this,p);l?l.value=y:(l=new fSV(p,y),this.JSC$11383_map_.set(p,l),this.insert_(l))};
_.J.peek=function(){return this.JSC$11383_head_.next.value};
_.J.shift=function(){return deN(this,this.JSC$11383_head_.next)};
_.J.pop=function(){return deN(this,this.JSC$11383_head_.prev)};
_.J.remove=function(p){return(p=this.JSC$11383_map_.get(p))?(this.removeNode(p),!0):!1};
_.J.removeNode=function(p){p.remove();this.JSC$11383_map_.remove(p.key)};
_.J.getCount=function(){return this.JSC$11383_map_.getCount()};
_.J.isEmpty=function(){return this.JSC$11383_map_.isEmpty()};
_.J.getKeys=function(){return this.map(function(p,y){return y})};
_.J.getValues=function(){return this.map(function(p){return p})};
_.J.contains=function(p){return this.some(function(y){return y==p})};
_.J.containsKey=function(p){return this.JSC$11383_map_.containsKey(p)};
_.J.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11383_head_.prev)};
_.J.forEach=function(p,y){for(var l=this.JSC$11383_head_.next;l!=this.JSC$11383_head_;l=l.next)p.call(y,l.value,l.key,this)};
_.J.map=function(p,y){for(var l=[],q=this.JSC$11383_head_.next;q!=this.JSC$11383_head_;q=q.next)l.push(p.call(y,q.value,q.key,this));return l};
_.J.some=function(p,y){for(var l=this.JSC$11383_head_.next;l!=this.JSC$11383_head_;l=l.next)if(p.call(y,l.value,l.key,this))return!0;return!1};
_.J.every=function(p,y){for(var l=this.JSC$11383_head_.next;l!=this.JSC$11383_head_;l=l.next)if(!p.call(y,l.value,l.key,this))return!1;return!0};
_.J.insert_=function(p){p.next=this.JSC$11383_head_.next;p.prev=this.JSC$11383_head_;this.JSC$11383_head_.next=p;for(p.next.prev=p;this.getCount()>100;)this.removeNode(this.JSC$11383_head_.prev)};
var deN=function(p,y){p.JSC$11383_head_!=y&&p.removeNode(y);return y.value},fSV=function(p,y){this.key=p;
this.value=y};
fSV.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var Olr=function(){PG.apply(this,arguments)};
_.A(Olr,PG);Olr.prototype.enqueue=function(p,y){this.insert(p,y)};var ogx=function(){var p=Error();p.name="SecurityError";throw p;},joR=function(){return{get opener(){return null},
get closed(){return!0},get location(){ogx()},get document(){ogx()},postMessage:function(){},
close:function(){},
focus:function(){}}};var UZg={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 nCc={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 zUi={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(nCc).join("|");var YUQ=function(){function p(C){C.substr(-1)!==";"&&(C+=";");return e(C)}
for(var y=Object.keys(zUi).sort(bjm),l=Object.keys(nCc).sort(bjm),q=0,t=0;q<l.length;q++)y[t]===l[q]?(l[q]+=";?",t++):l[q]+=";";var E=new RegExp("&(?:"+l.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),e=Gka();return function(C){return String(C).replace(E,p)}}();/*

 Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 OTHER DEALINGS IN THE SOFTWARE.
*/
var ISx={};var p$B=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"),yb$=/[\\&]/,lRv=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),q5V=RegExp('[&<>"]',"g"),sxr=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),twr=function(p){return p.charCodeAt(0)===92?p.charAt(1):YUQ(p)},ESQ=function(p){return yb$.test(p)?p.replace(lRv,twr):p},JbN=function(p){try{var y,l="";
if(typeof t!=="string"){var q=t;var t=";/?:@&=+$,-_.!~*'()#"}typeof q==="undefined"&&(q=!0);var E,e=ISx[t];if(e)var C=e;else{e=ISx[t]=[];for(E=0;E<128;E++){var u=String.fromCharCode(E);/^[0-9a-z]$/i.test(u)?e.push(u):e.push("%"+("0"+E.toString(16).toUpperCase()).slice(-2))}for(E=0;E<t.length;E++)e[t.charCodeAt(E)]=t[E];C=e}var a=0;for(y=p.length;a<y;a++){var m=p.charCodeAt(a);if(q&&m===37&&a+2<y&&/^[0-9a-f]{2}$/i.test(p.slice(a+1,a+3)))l+=p.slice(a,a+3),a+=2;else if(m<128)l+=C[m];else if(m>=55296&&
m<=57343){if(m>=55296&&m<=56319&&a+1<y){var U=p.charCodeAt(a+1);if(U>=56320&&U<=57343){l+=encodeURIComponent(p[a]+p[a+1]);a++;continue}}l+="%EF%BF%BD"}else l+=encodeURIComponent(p[a])}return l}catch(b){return p}},cbU=function(p){switch(p){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return p}},VB=function(p,y){return q5V.test(p)?y?p.replace(sxr,cbU):p.replace(q5V,cbU):p};/*

 lib/from-code-point.js is derived from a polyfill
 Copyright Mathias Bynens <http://mathiasbynens.be/>

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 http://mths.be/fromcodepoint v0.2.1 by @mathias */
var gn;if(String.fromCodePoint)gn=function(p){try{return String.fromCodePoint(p)}catch(y){if(y instanceof RangeError)return String.fromCharCode(65533);throw y;}};
else{var exN=String.fromCharCode,hx$=Math.floor;gn=function(){var p=[],y=-1,l=arguments.length;if(!l)return"";for(var q="";++y<l;){var t=Number(arguments[y]);if(!isFinite(t)||t<0||t>1114111||hx$(t)!==t)return String.fromCharCode(65533);if(t<=65535)p.push(t);else{t-=65536;var E=(t>>10)+55296;t=t%1024+56320;p.push(E,t)}if(y+1===l||p.length>16384)q+=exN.apply(null,p),p.length=0}return q}};var Cpr=function(p){this.root=this.current=p;this.entering=!0};
Cpr.prototype.next=function(){var p=this.current,y=this.entering;if(p===null)return null;a:switch(p._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var l=!0;break a;default:l=!1}y&&l?p._firstChild?(this.current=p._firstChild,this.entering=!0):this.entering=!1:p===this.root?this.current=null:p._next===null?(this.current=
p._parent,this.entering=!1):(this.current=p._next,this.entering=!0);return{entering:y,node:p}};
var nx=function(p,y){this._type=p;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=y;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};
nx.prototype.appendChild=function(p){p.unlink();p._parent=this;this._lastChild?(this._lastChild._next=p,p._prev=this._lastChild):this._firstChild=p;this._lastChild=p};
nx.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var ufr=function(p,y){y.unlink();y._next=p._next;y._next&&(y._next._prev=y);y._prev=p;p._next=y;y._parent=p._parent;y._next||(y._parent._lastChild=y)};
nx.prototype.insertBefore=function(p){p.unlink();p._prev=this._prev;p._prev&&(p._prev._next=p);p._next=this;this._prev=p;p._parent=this._parent;p._prev||(p._parent._firstChild=p)};
_.Jh.Object.defineProperties(nx.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this._type}},
firstChild:{configurable:!0,enumerable:!0,get:function(){return this._firstChild}},
lastChild:{configurable:!0,enumerable:!0,get:function(){return this._lastChild}},
next:{configurable:!0,enumerable:!0,get:function(){return this._next}},
prev:{configurable:!0,enumerable:!0,get:function(){return this._prev}},
parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},
sourcepos:{configurable:!0,enumerable:!0,get:function(){return this._sourcepos}},
literal:{configurable:!0,enumerable:!0,get:function(){return this._literal},
set:function(p){this._literal=p}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(p){this._destination=p}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(p){this._title=p}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(p){this._info=p}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(p){this._level=p}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(p){this._listData.type=p}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(p){this._listData.tight=p}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(p){this._listData.start=p}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(p){this._onEnter=p}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(p){this._onExit=p}}});var Pkg=/[ \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,
ALg={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 RxQ=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]/),
WRN=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),aRP=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),mWQ=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),UWi=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),$WV=/`+/,jxP=/^`+/,bYr=/\.\.\./g,nSr=/--+/g,GTP=/^<([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])?)*)>/,
PpV=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,AbP=/^ *(?:\n *)?/,ZYv=/^[ \t\n\x0b\x0c\x0d]/,Mwi=/[ \t\n\x0b\x0c\x0d]+/g,Vwr=/^\s/,gS$=/ *$/,Qxr=/^ */,KRv=/^ *(?:\n|$)/,w$M=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),iYU=/^[^\n`\[\]\\!<&*_'"]+/m,QB=function(p){var y=new nx("text");y._literal=p;return y},Kn=function(p){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=p||{}};
Kn.prototype.match=function(p){p=p.exec(this.subject.slice(this.pos));if(p===null)return null;this.pos+=p.index+p[0].length;return p[0]};
Kn.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var wn=function(p){p.match(AbP);return!0},rbO=function(p,y,l){var q=0;
var t=p.pos;if(y===39||y===34)q++,p.pos++;else for(;p.peek()===y;)q++,p.pos++;if(q===0)q=null;else{var E=t===0?"\n":p.subject.charAt(t-1);var e=p.peek();e=e===-1?"\n":gn(e);var C=Vwr.test(e);e=RxQ.test(e);var u=Vwr.test(E);var a=RxQ.test(E);E=!C&&!(e&&!u&&!a);C=!u&&!(a&&!C&&!e);y===95?(u=E&&(!C||a),e=C&&(!E||e)):(u=y===39||y===34?E&&!C:E,e=C);p.pos=t;q={numdelims:q,can_open:u,can_close:e}}if(!q)return!1;t=q.numdelims;e=p.pos;p.pos+=t;e=y===39?"\u2019":y===34?"\u201c":p.subject.slice(e,p.pos);e=QB(e);
l.appendChild(e);p.delimiters={cc:y,numdelims:t,origdelims:t,node:e,previous:p.delimiters,next:null,can_open:q.can_open,can_close:q.can_close};p.delimiters.previous!==null&&(p.delimiters.previous.next=p.delimiters);return!0},S5x=function(p,y){y.previous!==null&&(y.previous.next=y.next);
y.next===null?p.delimiters=y.previous:y.next.previous=y.previous},FRO=function(p,y){var l,q,t=[],E=!1;
t[95]=y;t[42]=y;t[39]=y;t[34]=y;for(l=p.delimiters;l!==null&&l.previous!==y;)l=l.previous;for(;l!==null;){var e=l.cc;if(l.can_close){var C=l.previous;for(q=!1;C!==null&&C!==y&&C!==t[e];){E=(l.can_open||C.can_close)&&(C.origdelims+l.origdelims)%3===0;if(C.cc===l.cc&&C.can_open&&!E){q=!0;break}C=C.previous}var u=l;if(e===42||e===95)if(q){var a=l.numdelims>=2&&C.numdelims>=2?2:1;var m=C.node;var U=l.node;C.numdelims-=a;l.numdelims-=a;m._literal=m._literal.slice(0,m._literal.length-a);U._literal=U._literal.slice(0,
U._literal.length-a);var b=new nx(a===1?"emph":"strong");for(a=m._next;a&&a!==U;){var P=a._next;a.unlink();b.appendChild(a);a=P}ufr(m,b);a=C;P=l;a.next!==P&&(a.next=P,P.previous=a);C.numdelims===0&&(m.unlink(),S5x(p,C));l.numdelims===0&&(U.unlink(),C=l.next,S5x(p,l),l=C)}else l=l.next;else e===39?(l.node._literal="\u2019",q&&(C.node._literal="\u2018"),l=l.next):e===34&&(l.node._literal="\u201d",q&&(C.node.literal="\u201c"),l=l.next);q||E||(t[e]=u.previous,u.can_open||S5x(p,u))}else l=l.next}for(;p.delimiters!==
null&&p.delimiters!==y;)S5x(p,p.delimiters)},LRx=function(p){p=p.match(WRN);
return p===null?null:ESQ(p.substr(1,p.length-2))},kTM=function(p){var y=p.match(aRP);
if(y===null){y=p.pos;for(var l=0,q;(q=p.peek())!==-1;)if(q===92)p.pos+=1,p.peek()!==-1&&(p.pos+=1);else if(q===40)p.pos+=1,l+=1;else if(q===41)if(l<1)break;else p.pos+=1,--l;else if(ZYv.exec(gn(q))!==null)break;else p.pos+=1;y=p.subject.substr(y,p.pos-y);return JbN(ESQ(y))}return JbN(ESQ(y.substr(1,y.length-2)))},NDP=function(p){p=p.match(w$M);
return p===null||p.length>1001?0:p.length},DWM=function(p,y,l,q){p.brackets!==null&&(p.brackets.bracketAfter=!0);
p.brackets={node:y,previous:p.brackets,previousDelimiter:p.delimiters,index:l,image:q,active:!0}},HYN=function(p,y){var l;
return(l=p.match(iYU))?(p.options.smart?y.appendChild(QB(l.replace(bYr,"\u2026").replace(nSr,function(q){var t=0,E=0;q.length%3===0?E=q.length/3:q.length%2===0?t=q.length/2:q.length%3===2?(t=1,E=(q.length-2)/3):(t=2,E=(q.length-4)/3);q="";var e;for(e=0;e<E;e++)q+="\u2014";for(e=0;e<t;e++)q+="\u2013";return q}))):y.appendChild(QB(l)),!0):!1},TDV=function(p,y,l){p.subject=y;
p.pos=0;y=p.pos;var q=NDP(p);if(q===0)return 0;var t=p.subject.substr(0,q);if(p.peek()===58)p.pos++;else return p.pos=y,0;wn(p);q=kTM(p);if(q===null||q.length===0)return p.pos=y,0;var E=p.pos;wn(p);var e=LRx(p);e===null&&(e="",p.pos=E);var C=!0;p.match(KRv)===null&&(e===""?C=!1:(e="",p.pos=E,C=p.match(KRv)!==null));if(!C)return p.pos=y,0;t=Zjo(t);if(t==="")return p.pos=y,0;l[t]||(l[t]={destination:q,title:e});return p.pos-y},xWO=function(p,y){var l,q=p.peek();
if(q===-1)return!1;switch(q){case 10:p.pos+=1;if((l=y._lastChild)&&l.type==="text"&&l._literal[l._literal.length-1]===" "){var t=l._literal[l._literal.length-2]===" ";l._literal=l._literal.replace(gS$,"");y.appendChild(new nx(t?"linebreak":"softbreak"))}else y.appendChild(new nx("softbreak"));p.match(Qxr);l=!0;break;case 92:l=p.subject;p.pos+=1;p.peek()===10?(p.pos+=1,l=new nx("linebreak"),y.appendChild(l)):mWQ.test(l.charAt(p.pos))?(y.appendChild(QB(l.charAt(p.pos))),p.pos+=1):y.appendChild(QB("\\"));
l=!0;break;case 96:a:if(l=p.match(jxP),l===null)l=!1;else{t=p.pos;for(var E;(E=p.match($WV))!==null;)if(E===l){E=new nx("code");E._literal=p.subject.slice(t,p.pos-l.length).trim().replace(Mwi," ");y.appendChild(E);l=!0;break a}p.pos=t;y.appendChild(QB(l));l=!0}break;case 42:case 95:l=rbO(p,q,y);break;case 39:case 34:l=p.options.smart&&rbO(p,q,y);break;case 91:l=p.pos;p.pos+=1;t=QB("[");y.appendChild(t);DWM(p,t,l,!1);l=!0;break;case 33:l=p.pos;p.pos+=1;p.peek()===91?(p.pos+=1,t=QB("!["),y.appendChild(t),
DWM(p,t,l+1,!0)):y.appendChild(QB("!"));l=!0;break;case 93:var e,C=!1,u;p.pos+=1;var a=p.pos;t=p.brackets;if(t===null)y.appendChild(QB("]"));else if(t.active){l=t.image;var m=p.pos;p.peek()===40&&(p.pos++,wn(p)&&(E=kTM(p))!==null&&wn(p)&&(ZYv.test(p.subject.charAt(p.pos-1))&&(e=LRx(p)),1)&&wn(p)&&p.peek()===41?(p.pos+=1,C=!0):p.pos=m);if(!C){var U=p.pos,b=NDP(p);b>2?u=p.subject.slice(U,U+b):t.bracketAfter||(u=p.subject.slice(t.index,a));b===0&&(p.pos=m);u&&(u=p.refmap[Zjo(u)])&&(E=u.destination,e=
u.title,C=!0)}if(C){a=new nx(l?"image":"link");a._destination=E;a._title=e||"";for(E=t.node._next;E;)e=E._next,E.unlink(),a.appendChild(E),E=e;y.appendChild(a);FRO(p,t.previousDelimiter);p.brackets=p.brackets.previous;t.node.unlink();if(!l)for(t=p.brackets;t!==null;)t.image||(t.active=!1),t=t.previous}else p.brackets=p.brackets.previous,p.pos=a,y.appendChild(QB("]"))}else y.appendChild(QB("]")),p.brackets=p.brackets.previous;l=!0;break;case 60:(l=p.match(GTP))?(l=l.slice(1,l.length-1),t=new nx("link"),
t._destination=JbN("mailto:"+l),t._title="",t.appendChild(QB(l)),y.appendChild(t),l=!0):(l=p.match(PpV))?(l=l.slice(1,l.length-1),t=new nx("link"),t._destination=JbN(l),t._title="",t.appendChild(QB(l)),y.appendChild(t),l=!0):l=!1;l||(l=p.match(p$B),l===null?l=!1:(t=new nx("html_inline"),t._literal=l,y.appendChild(t),l=!0));break;case 38:(l=p.match(UWi))?(y.appendChild(QB(YUQ(l))),l=!0):l=!1;break;default:l=HYN(p,y)}l||(p.pos+=1,y.appendChild(QB(gn(q))));return!0};
Kn.prototype.parseInlines=function(p){this.subject=p._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;xWO(this,p););p._string_content=null;FRO(this,null)};
Kn.prototype.parse=Kn.prototype.parseInlines;var BDQ=[/./,/^<(?: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")],fRx=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],vSU=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,X$x=/^[#`~*+_=<>0-9-\|]|\|/,dWr=/[^ \t\f\v\r\n]/,OYQ=/^[*+-]/,oSi=/^(\d{1,9})([.)])/,zxP=/^#{1,6}(?:[ \t]+|$)/,Y5U=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,IRV=/^(?:`{3,}|~{3,})(?= *$)/,pNU=/^(?:=+|-+)[ \t]*$/,ysN=/\r\n|\n|\r/,VzL=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,gCR=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,l6v={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(p){return p!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(p,y){for(p=y._firstChild;p;){if(MzR(p)&&p._next){y._listData.tight=!1;break}for(var l=p._firstChild;l;){if(MzR(l)&&(p._next||l._next)){y._listData.tight=!1;break}l=l._next}p=p._next}},
canContain:function(p){return p==="item"},
acceptsLines:!1},block_quote:{continue:function(p){var y=p.currentLine;if(p.indented||jY(y,p.nextNonspace)!==62)return 1;io(p);rn(p,1,!1);$c(jY(y,p.offset))&&rn(p,1,!0);return 0},
finalize:function(){},
canContain:function(p){return p!=="item"},
acceptsLines:!1},item:{continue:function(p,y){if(p.blank){if(y._firstChild==null)return 1;io(p)}else if(p.indent>=y._listData.markerOffset+y._listData.padding)rn(p,y._listData.markerOffset+y._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(p){return p!=="item"&&!QCa(p)},
acceptsLines:!1},heading:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},thematic_break:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},code_block:{continue:function(p,y){var l=p.currentLine,q=p.indent;if(y._isFenced){if((q=q<=3&&l.charAt(p.nextNonspace)===y._fenceChar&&l.slice(p.nextNonspace).match(IRV))&&q[0].length>=y._fenceLength)return p.finalize(y,p.lineNumber),2;for(y=y._fenceOffset;y>0&&$c(jY(l,p.offset));)rn(p,1,!0),y--}else if(q>=4)rn(p,4,!0);else if(p.blank)io(p);else return 1;return 0},
finalize:function(p,y){if(y._isFenced){var l=y._string_content,q=l.indexOf("\n");p=l.slice(0,q);l=l.slice(q+1);y.info=ESQ(p.trim());y._literal=l}else y._literal=y._string_content.replace(/(\n *)+$/,"\n");y._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(p,y){return!p.blank||y._htmlBlockType!==6&&y._htmlBlockType!==7?0:1},
finalize:function(p,y){y._literal=y._string_content.replace(/(\n *)+$/,"");y._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(p){return p.blank?1:0},
finalize:function(p,y){for(var l,q=!1;jY(y._string_content,0)===91&&(l=TDV(p.inlineParser,y._string_content,p.refmap));)y._string_content=y._string_content.slice(l),q=!0;q&&!dWr.test(y._string_content)&&y.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(p){return bL(p.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(p){return p=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(p,y){if(!y._rowIsDelimiter){p=y._isHeader?"th":"td";for(var l=y._parent._tableColumns,q=y._string_content,t=0,E="",e,C=y._sourcepos[0][0];t<q.length;){switch(q[t]){case "|":e&&(e._string_content=E.trim(),E="",e=null,l--,l<=0&&(t=q.length));break;default:if(!e){e=new nx(p,[[C,t],[C,t]]);var u=y._parent._columnAlignment,a=y._parent._tableColumns-l;u&&a<=u.length&&a>=0&&(e._alignment=u[a]);y.appendChild(e)}E+=q[t];e._sourcepos[1][1]=t}t++}e&&(e._string_content=E.trim());y._string_content=
""}},
canContain:function(p){return p!=="row"},
acceptsLines:!1}},qZU=[function(p){if(p.indented||jY(p.currentLine,p.nextNonspace)!==62)return 0;io(p);rn(p,1,!1);$c(jY(p.currentLine,p.offset))&&rn(p,1,!0);S1(p);p.addChild("block_quote",p.nextNonspace);return 1},
function(p){var y;if(!p.indented&&(y=p.currentLine.slice(p.nextNonspace).match(zxP))){io(p);rn(p,y[0].length,!1);S1(p);var l=p.addChild("heading",p.nextNonspace);l.level=y[0].trim().length;l._string_content=p.currentLine.slice(p.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");rn(p,p.currentLine.length-p.offset);return 2}return 0},
function(p){var y;if(!p.indented&&(y=p.currentLine.slice(p.nextNonspace).match(Y5U))){var l=y[0].length;S1(p);var q=p.addChild("code_block",p.nextNonspace);q._isFenced=!0;q._fenceLength=l;q._fenceChar=y[0][0];q._fenceOffset=p.indent;io(p);rn(p,l,!1);return 2}return 0},
function(p,y){if(!p.indented&&jY(p.currentLine,p.nextNonspace)===60){var l=p.currentLine.slice(p.nextNonspace),q;for(q=1;q<=7;q++)if(BDQ[q].test(l)&&(q<7||y.type!=="paragraph"))return S1(p),p.addChild("html_block",p.offset)._htmlBlockType=q,2}return 0},
function(p,y){var l;if(!p.indented&&y.type==="paragraph"&&(l=p.currentLine.slice(p.nextNonspace).match(pNU))){S1(p);var q=new nx("heading",y.sourcepos);q.level=l[0][0]==="="?1:2;q._string_content=y._string_content;ufr(y,q);y.unlink();p.tip=q;rn(p,p.currentLine.length-p.offset,!1);return 2}return 0},
function(p){return!p.indented&&vSU.test(p.currentLine.slice(p.nextNonspace))?(S1(p),p.addChild("thematic_break",p.nextNonspace),rn(p,p.currentLine.length-p.offset,!1),2):0},
function(p,y){var l,q;if(!(q=p.indented&&y.type!=="list")){a:{var t=y,E=p.currentLine.slice(p.nextNonspace);q={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:p.indent};if(l=E.match(OYQ))q.type="bullet",q.bulletChar=l[0][0];else{if(!(l=E.match(oSi))||t.type==="paragraph"&&l[1]!=="1"){l=null;break a}q.type="ordered";q.start=parseInt(l[1],10);q.delimiter=l[2]}var e=jY(p.currentLine,p.nextNonspace+l[0].length);if(e!==-1&&e!==9&&e!==32||t.type==="paragraph"&&!p.currentLine.slice(p.nextNonspace+
l[0].length).match(dWr))l=null;else{io(p);rn(p,l[0].length,!0);t=p.column;E=p.offset;do rn(p,1,!0),e=jY(p.currentLine,p.offset);while(p.column-t<5&&$c(e));e=jY(p.currentLine,p.offset)===-1;var C=p.column-t;C>=5||C<1||e?(q.padding=l[0].length+1,p.column=t,p.offset=E,$c(jY(p.currentLine,p.offset))&&rn(p,1,!0)):q.padding=l[0].length+C;l=q}}q=!l}if(q)return 0;S1(p);(q=p.tip.type!=="list")||(y=y._listData,q=!(y.type===l.type&&y.delimiter===l.delimiter&&y.bulletChar===l.bulletChar));q&&(y=p.addChild("list",
p.nextNonspace),y._listData=l);y=p.addChild("item",p.nextNonspace);y._listData=l;return 1},
function(p){var y;return((y=p.options.shouldParseIndentAsCodeBlock)!=null?y:1)&&p.indented&&p.tip.type!=="paragraph"&&!p.blank?(rn(p,4,!0),S1(p),p.addChild("code_block",p.offset),2):0},
function(p,y){var l=bL(p.currentLine),q=bL(p.lookahead);if(l!==0&&q<0&&Math.abs(l)==Math.abs(q)&&!QCa(y.type)){S1(p);y=p.addChild("table",p.nextNonspace);y._tableRows=1;y._tableColumns=Math.abs(l);l=p.lookahead;if(gCR.test(l)){q=[];for(var t=0,E=!1,e=0,C=void 0;t<l.length;){var u=e>=3;switch(l[t]){case "-":e++;break;case "|":E&&(q.push(C),C=void 0,e=0);E=!0;break;case ":":C||u||(C="left"),!C&&u&&(C="right"),C==="left"&&u&&(C="center")}t++}l=q}else l=void 0;y._columnAlignment=l;y=p.addChild("row",
p.nextNonspace);y._isHeader=!0;rn(p,p.currentLine.length-p.offset,!1);y._string_content=p.currentLine;return 1}return 0},
function(p,y){if(y.type=="table"&&bL(p.currentLine)!==0){S1(p);var l=y;y=p.addChild("row",p.nextNonspace);bL(p.currentLine)<0?y._rowIsDelimiter=!0:l._tableRows+=1;rn(p,p.currentLine.length-p.offset,!1);y._string_content=p.currentLine;return 2}return 0}],r3t=function(){var p={shouldParseIndentAsCodeBlock:!1};
p=p===void 0?{}:p;this.lastMatchedContainer=this.doc=KCt();this.refmap={};this.lastLineLength=0;this.inlineParser=new Kn(p);this.options=p;this.oldtip=this.tip=this.doc;this.lookahead=this.currentLine="";this.indent=this.nextNonspaceColumn=this.nextNonspace=this.column=this.offset=this.lineNumber=0;this.partiallyConsumedTab=this.blank=this.indented=!1;this.allClosed=!0;this.blocks=l6v;this.blockStarts=qZU},sWM=function(p){p.partiallyConsumedTab&&(p.offset+=1,p.tip._string_content+=" ".repeat(4-p.column%
4));
p.tip._string_content+=p.currentLine.slice(p.offset)+"\n"};
r3t.prototype.addChild=function(p,y){for(;!this.blocks[this.tip.type].canContain(p);)this.finalize(this.tip,this.lineNumber-1);p=new nx(p,[[this.lineNumber,y+1],[0,0]]);p._string_content="";this.tip.appendChild(p);return this.tip=p};
var S1=function(p){if(!p.allClosed){for(;p.oldtip!==p.lastMatchedContainer;){var y=p.oldtip._parent;p.finalize(p.oldtip,p.lineNumber-1);p.oldtip=y}p.allClosed=!0}},rn=function(p,y,l){for(var q=p.currentLine,t,E;y>0&&(E=q[p.offset]);)E==="\t"?(t=4-p.column%4,l?(p.partiallyConsumedTab=t>y,t=t>y?y:t,p.column+=t,p.offset+=p.partiallyConsumedTab?0:1,y-=t):(p.partiallyConsumedTab=!1,p.column+=t,p.offset+=1,--y)):(p.partiallyConsumedTab=!1,p.offset+=1,p.column+=1,--y)},io=function(p){p.offset=p.nextNonspace;
p.column=p.nextNonspaceColumn;p.partiallyConsumedTab=!1},toU=function(p){for(var y=p.currentLine,l=p.offset,q=p.column,t;(t=y.charAt(l))!=="";)if(t===" ")l++,q++;
else if(t==="\t")l++,q+=4-q%4;else break;p.blank=t==="\n"||t==="\r"||t==="";p.nextNonspace=l;p.nextNonspaceColumn=q;p.indent=p.nextNonspaceColumn-p.column;p.indented=p.indent>=4};
r3t.prototype.finalize=function(p,y){var l=p._parent;p._open=!1;p.sourcepos[1]=[y,this.lastLineLength];this.blocks[p.type].finalize(this,p);this.tip=l};
r3t.prototype.parse=function(p){this.tip=this.doc=KCt();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!p)return this.doc;this.options.time&&console.time("preparing input");var y=p.split(ysN),l=y.length;p.charCodeAt(p.length-1)===10&&--l;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(p=0;p<l;p++)a:{var q=void 0,t=y[p],E=y[p+1],e=!0,C=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;t.indexOf("\x00")!==-1&&(t=t.replace(/\0/g,"\ufffd"));this.currentLine=t;for(this.lookahead=E;(q=C._lastChild)&&q._open;){C=q;toU(this);switch(this.blocks[C.type].continue(this,C)){case 0:break;case 1:e=!1;break;case 2:this.lastLineLength=t.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!e){C=C._parent;break}}this.allClosed=C===this.oldtip;this.lastMatchedContainer=
C;q=C.type!=="paragraph"&&l6v[C.type].acceptsLines;E=this.blockStarts;for(e=E.length;!q;){toU(this);if(!this.indented&&!X$x.test(t.slice(this.nextNonspace))){io(this);break}for(var u=0;u<e;){var a=E[u](this,C);if(a===1){C=this.tip;break}else if(a===2){C=this.tip;q=!0;break}else u++}if(u===e){io(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){S1(this);this.blank&&C.lastChild&&(C.lastChild._lastLineBlank=!0);q=C.type;E=this.blank&&!(q==="block_quote"||q==="code_block"&&C._isFenced||
q==="item"&&!C._firstChild&&C.sourcepos[0][0]===this.lineNumber);for(e=C;e;)e._lastLineBlank=E,e=e._parent;this.blocks[q].acceptsLines?(sWM(this),q==="html_block"&&C._htmlBlockType>=1&&C._htmlBlockType<=5&&fRx[C._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(C,this.lineNumber)):this.offset<t.length&&!this.blank&&(this.addChild("paragraph",this.offset),io(this),sWM(this))}else sWM(this);this.lastLineLength=t.length}for(;this.tip;)this.finalize(this.tip,l);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");t=new Cpr(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;l=t.next();)y=l.node,p=y.type,l.entering||p!=="paragraph"&&p!=="heading"&&p!=="th"&&p!="td"||this.inlineParser.parse(y);this.options.time&&console.timeEnd("inline parsing");return this.doc};wZg.prototype.render=function(p){p=new Cpr(p);var y;this.buffer="";for(this.lastOut="\n";y=p.next();){var l=y.node.type;if(this[l])this[l](y.node,y.entering)}return this.buffer};
wZg.prototype.out=function(p){FP(this,p)};
var FP=function(p,y){p.buffer+=y;p.lastOut=y};
wZg.prototype.cr=function(){this.lastOut!=="\n"&&FP(this,"\n")};var EoO=/^javascript:|vbscript:|file:|data:/i,JsQ=/^data:image\/(?:png|gif|jpeg|webp)/i,csr=function(p){return EoO.test(p)&&!JsQ.test(p)};
Gc.prototype=Object.create(wZg.prototype);_.J=Gc.prototype;_.J.text=function(p){this.out(p.literal)};
_.J.html_inline=function(p){this.options.safe?FP(this,"\x3c!-- raw HTML omitted --\x3e"):FP(this,p.literal)};
_.J.html_block=function(p){this.cr();this.options.safe?FP(this,"\x3c!-- raw HTML omitted --\x3e"):FP(this,p.literal);this.cr()};
_.J.softbreak=function(){FP(this,this.options.softbreak)};
_.J.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.J.link=function(p,y){var l=this.attrs(p);y?(this.options.safe&&csr(p.destination)||l.push(["href",VB(p.destination,!0)]),p.title&&l.push(["title",VB(p.title,!0)]),this.tag("a",l)):this.tag("/a")};
_.J.image=function(p,y){y?(this.disableTags===0&&(this.options.safe&&csr(p.destination)?FP(this,'<img src="" alt="'):FP(this,'<img src="'+VB(p.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(p.title&&FP(this,'" title="'+VB(p.title,!0)),FP(this,'" />')))};
_.J.emph=function(p,y){this.tag(y?"em":"/em")};
_.J.strong=function(p,y){this.tag(y?"strong":"/strong")};
_.J.paragraph=function(p,y){var l=p.parent.parent;p=this.attrs(p);l!==null&&l.type==="list"&&l.listTight||(y?(this.cr(),this.tag("p",p)):(this.tag("/p"),this.cr()))};
_.J.heading=function(p,y){var l="h"+p.level;p=this.attrs(p);y?(this.cr(),this.tag(l,p)):(this.tag("/"+l),this.cr())};
_.J.code=function(p){this.tag("code");this.out(p.literal);this.tag("/code")};
_.J.code_block=function(p){var y=p.info?p.info.split(/\s+/):[],l=this.attrs(p);y.length>0&&y[0].length>0&&l.push(["class","language-"+VB(y[0],!0)]);this.cr();this.tag("pre");this.tag("code",l);this.out(p.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.J.thematic_break=function(p){p=this.attrs(p);this.cr();this.tag("hr",p,!0);this.cr()};
_.J.block_quote=function(p,y){p=this.attrs(p);y?(this.cr(),this.tag("blockquote",p)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.J.list=function(p,y){var l=p.listType==="bullet"?"ul":"ol",q=this.attrs(p);y?(p=p.listStart,p!==null&&p!==1&&q.push(["start",p.toString()]),this.cr(),this.tag(l,q)):(this.cr(),this.tag("/"+l));this.cr()};
_.J.item=function(p,y){p=this.attrs(p);y?this.tag("li",p):(this.tag("/li"),this.cr())};
_.J.custom_inline=function(p,y){y&&p.onEnter?FP(this,p.onEnter):!y&&p.onExit&&FP(this,p.onExit)};
_.J.custom_block=function(p,y){this.cr();y&&p.onEnter?FP(this,p.onEnter):!y&&p.onExit&&FP(this,p.onExit);this.cr()};
_.J.table=function(p,y){p=this.attrs(p);y?(this.cr(),this.tag("table",p)):(this.tag("/table"),this.cr())};
_.J.row=function(p,y){p._rowIsDelimiter||(p=this.attrs(p),y?this.tag("tr",p):this.tag("/tr"))};
_.J.td=function(p,y){var l=this.attrs(p);p._alignment&&l.push(["align",p._alignment]);y?this.tag("td",l):this.tag("/td")};
_.J.th=function(p,y){var l=this.attrs(p);p._alignment&&l.push(["align",p._alignment]);y?this.tag("th",l):this.tag("/th")};
_.J.out=function(p){FP(this,VB(p,!1))};
_.J.tag=function(p,y,l){if(!(this.disableTags>0)){this.buffer+="<"+p;if(y&&y.length>0){p=0;for(var q;(q=y[p])!==void 0;)this.buffer+=" "+q[0]+'="'+q[1]+'"',p++}l&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.J.attrs=function(p){var y=[];this.options.sourcepos&&(p=p.sourcepos)&&y.push(["data-sourcepos",String(p[0][0])+":"+String(p[0][1])+"-"+String(p[1][0])+":"+String(p[1][1])]);return y};
Gc.prototype.text=Gc.prototype.text;Gc.prototype.html_inline=Gc.prototype.html_inline;Gc.prototype.html_block=Gc.prototype.html_block;Gc.prototype.softbreak=Gc.prototype.softbreak;Gc.prototype.linebreak=Gc.prototype.linebreak;Gc.prototype.link=Gc.prototype.link;Gc.prototype.image=Gc.prototype.image;Gc.prototype.emph=Gc.prototype.emph;Gc.prototype.strong=Gc.prototype.strong;Gc.prototype.paragraph=Gc.prototype.paragraph;Gc.prototype.heading=Gc.prototype.heading;Gc.prototype.code=Gc.prototype.code;
Gc.prototype.code_block=Gc.prototype.code_block;Gc.prototype.thematic_break=Gc.prototype.thematic_break;Gc.prototype.block_quote=Gc.prototype.block_quote;Gc.prototype.list=Gc.prototype.list;Gc.prototype.item=Gc.prototype.item;Gc.prototype.custom_inline=Gc.prototype.custom_inline;Gc.prototype.custom_block=Gc.prototype.custom_block;Gc.prototype.table=Gc.prototype.table;Gc.prototype.row=Gc.prototype.row;Gc.prototype.td=Gc.prototype.td;Gc.prototype.th=Gc.prototype.th;Gc.prototype.out=Gc.prototype.out;
Gc.prototype.tag=Gc.prototype.tag;Gc.prototype.attrs=Gc.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 eW$,hWM,J4m;(function(){function p(S,r){return S<r?-1:S>r?1:S>=r?0:NaN}
function y(S){return function(r,N){return p(S(r),N)}}
function l(){for(var S=0,r=arguments.length,N={},Y;S<r;++S){if(!(Y=arguments[S]+"")||Y in N)throw Error("re`"+Y);N[Y]=[]}return new q(N)}
function q(S){this._=S}
function t(S,r){return S.trim().split(/^|\s+/).map(function(N){var Y="",ct=N.indexOf(".");ct>=0&&(Y=N.slice(ct+1),N=N.slice(0,ct));if(N&&!r.hasOwnProperty(N))throw Error("se`"+N);return{type:N,name:Y}})}
function E(S,r,N){for(var Y=0,ct=S.length;Y<ct;++Y)if(S[Y].name===r){S[Y]=tCw;S=S.slice(0,Y).concat(S.slice(Y+1));break}N!=null&&S.push({name:r,value:N});return S}
function e(S){var r=S,N=r.indexOf(":");N>=0&&(r=S.slice(0,N))!=="xmlns"&&(S=S.slice(N+1));return P3.hasOwnProperty(r)?{space:P3[r],local:S}:S}
function C(S){return function(){var r=this.ownerDocument,N=this.namespaceURI;return N==="http://www.w3.org/1999/xhtml"&&r.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?r.createElement(S):r.createElementNS(N,S)}}
function u(S){return function(){return this.ownerDocument.createElementNS(S.space,S.local)}}
function a(S){S=e(S);return(S.local?u:C)(S)}
function m(){}
function U(S){return S==null?m:function(){return this.querySelector(S)}}
function b(S){return Array(S.length)}
function P(S,r){this.ownerDocument=S.ownerDocument;this.namespaceURI=S.namespaceURI;this._next=null;this._parent=S;this.__data__=r}
function Z(S){return function(){return S}}
function K(S,r,N,Y,ct,Uc){for(var Gl=0,i_,lN=r.length,Ig=Uc.length;Gl<Ig;++Gl)(i_=r[Gl])?(i_.__data__=Uc[Gl],Y[Gl]=i_):N[Gl]=new P(S,Uc[Gl]);for(;Gl<lN;++Gl)if(i_=r[Gl])ct[Gl]=i_}
function F(S,r,N,Y,ct,Uc,Gl){var i_,lN,Ig={},tZ=r.length,av=Uc.length,zM=Array(tZ),PR;for(i_=0;i_<tZ;++i_)if(lN=r[i_])zM[i_]=PR="$"+Gl.call(lN,lN.__data__,i_,r),PR in Ig?ct[i_]=lN:Ig[PR]=lN;for(i_=0;i_<av;++i_)PR="$"+Gl.call(S,Uc[i_],i_,Uc),(lN=Ig[PR])?(Y[i_]=lN,lN.__data__=Uc[i_],Ig[PR]=null):N[i_]=new P(S,Uc[i_]);for(i_=0;i_<tZ;++i_)(lN=r[i_])&&Ig[zM[i_]]===lN&&(ct[i_]=lN)}
function L(S,r){return S<r?-1:S>r?1:S>=r?0:NaN}
function T(S){return function(){this.removeAttribute(S)}}
function O(S){return function(){this.removeAttributeNS(S.space,S.local)}}
function f(S,r){return function(){this.setAttribute(S,r)}}
function v(S,r){return function(){this.setAttributeNS(S.space,S.local,r)}}
function z(S,r){return function(){var N=r.apply(this,arguments);N==null?this.removeAttribute(S):this.setAttribute(S,N)}}
function sc(S,r){return function(){var N=r.apply(this,arguments);N==null?this.removeAttributeNS(S.space,S.local):this.setAttributeNS(S.space,S.local,N)}}
function hR(S){return function(){this.style.removeProperty(S)}}
function Wt(S,r,N){return function(){this.style.setProperty(S,r,N)}}
function AR(S,r,N){return function(){var Y=r.apply(this,arguments);Y==null?this.style.removeProperty(S):this.style.setProperty(S,Y,N)}}
function Qu(S,r){return S.style.getPropertyValue(r)||(S.ownerDocument&&S.ownerDocument.defaultView||S.document&&S||S.defaultView).getComputedStyle(S,null).getPropertyValue(r)}
function jj(S){return function(){delete this[S]}}
function x6(S,r){return function(){this[S]=r}}
function L8(S,r){return function(){var N=r.apply(this,arguments);N==null?delete this[S]:this[S]=N}}
function Y6(){this.textContent=""}
function AZ(S){return function(){this.textContent=S}}
function cU(S){return function(){var r=S.apply(this,arguments);this.textContent=r==null?"":r}}
function Xo(){this.innerHTML=""}
function U$(S){return function(){this.innerHTML=S}}
function WU(S){return function(){var r=S.apply(this,arguments);this.innerHTML=r==null?"":r}}
function VQ(){return null}
function b9(){var S=this.parentNode;S&&S.removeChild(this)}
function kx(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function JR(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function s$(S,r,N){S=PU(S,r,N);return function(Y){var ct=Y.relatedTarget;ct&&(ct===this||ct.compareDocumentPosition(this)&8)||S.call(this,Y)}}
function PU(S,r,N){return function(){S.call(this,this.__data__,r,N)}}
function Uu(S){return S.trim().split(/^|\s+/).map(function(r){var N="",Y=r.indexOf(".");Y>=0&&(N=r.slice(Y+1),r=r.slice(0,Y));return{type:r,name:N}})}
function jB(S){return function(){var r=this.__on;if(r){for(var N=0,Y=-1,ct=r.length,Uc;N<ct;++N)(Uc=r[N],S.type&&Uc.type!==S.type||Uc.name!==S.name)?r[++Y]=Uc:this.removeEventListener(Uc.type,Uc.listener,Uc.capture);++Y?r.length=Y:delete this.__on}}}
function xx(S,r,N){var Y=n7P.hasOwnProperty(S.type)?s$:PU;return function(ct,Uc,Gl){ct=this.__on;var i_;Uc=Y(r,Uc,Gl);if(ct){Gl=0;for(var lN=ct.length;Gl<lN;++Gl)if((i_=ct[Gl]).type===S.type&&i_.name===S.name){this.removeEventListener(i_.type,i_.listener,i_.capture);this.addEventListener(i_.type,i_.listener=Uc,i_.capture=N);i_.value=r;return}}this.addEventListener(S.type,Uc,N);i_={type:S.type,name:S.name,value:r,listener:Uc,capture:N};ct?ct.push(i_):this.__on=[i_]}}
function qN(S,r,N){var Y=S.ownerDocument&&S.ownerDocument.defaultView||S.document&&S||S.defaultView,ct=Y.CustomEvent;typeof ct==="function"?ct=new ct(r,N):(ct=Y.document.createEvent("Event"),N?(ct.initEvent(r,N.bubbles,N.cancelable),ct.detail=N.detail):ct.initEvent(r,!1,!1));S.dispatchEvent(ct)}
function Iv(S,r){return function(){return qN(this,S,r)}}
function CU(S,r){return function(){return qN(this,S,r.apply(this,arguments))}}
function ov(S,r){this._groups=S;this._parents=r}
function u9(){return new ov([[document.documentElement]],Edm)}
function ZV(){this._="@"+(++Jcd).toString(36)}
function QQ(S,r,N){S.prototype=r.prototype=N;N.constructor=S}
function n7(S,r){S=Object.create(S.prototype);for(var N in r)S[N]=r[N];return S}
function u6(){}
function ed(S){var r;S=(S+"").trim().toLowerCase();return(r=ccR.exec(S))?(r=parseInt(r[1],16),new lf(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1)):(r=ev7.exec(S))?MQ(parseInt(r[1],16)):(r=hv6.exec(S))?new lf(r[1],r[2],r[3],1):(r=CmL.exec(S))?new lf(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=u6i.exec(S))?Ob(r[1],r[2],r[3],r[4]):(r=RvR.exec(S))?Ob(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=Wg1.exec(S))?Sh(r[1],r[2]/100,r[3]/100,1):(r=aZ9.exec(S))?Sh(r[1],r[2]/100,r[3]/100,r[4]):G_r.hasOwnProperty(S)?
MQ(G_r[S]):S==="transparent"?new lf(NaN,NaN,NaN,0):null}
function MQ(S){return new lf(S>>16&255,S>>8&255,S&255,1)}
function Ob(S,r,N,Y){Y<=0&&(S=r=N=NaN);return new lf(S,r,N,Y)}
function dr(S){S instanceof u6||(S=ed(S));if(!S)return new lf;S=S.rgb();return new lf(S.r,S.g,S.b,S.opacity)}
function Am(S,r,N,Y){return arguments.length===1?dr(S):new lf(S,r,N,Y==null?1:Y)}
function lf(S,r,N,Y){this.r=+S;this.g=+r;this.b=+N;this.opacity=+Y}
function qm(S){S=Math.max(0,Math.min(255,Math.round(S)||0));return(S<16?"0":"")+S.toString(16)}
function Sh(S,r,N,Y){Y<=0?S=r=N=NaN:N<=0||N>=1?S=r=NaN:r<=0&&(S=NaN);return new qU(S,r,N,Y)}
function yy(S){if(S instanceof qU)return new qU(S.h,S.s,S.l,S.opacity);S instanceof u6||(S=ed(S));if(!S)return new qU;if(S instanceof qU)return S;S=S.rgb();var r=S.r/255,N=S.g/255,Y=S.b/255,ct=Math.min(r,N,Y),Uc=Math.max(r,N,Y),Gl=NaN,i_=Uc-ct,lN=(Uc+ct)/2;i_?(Gl=r===Uc?(N-Y)/i_+(N<Y)*6:N===Uc?(Y-r)/i_+2:(r-N)/i_+4,i_/=lN<.5?Uc+ct:2-Uc-ct,Gl*=60):i_=lN>0&&lN<1?0:Gl;return new qU(Gl,i_,lN,S.opacity)}
function P7(S,r,N,Y){return arguments.length===1?yy(S):new qU(S,r,N,Y==null?1:Y)}
function qU(S,r,N,Y){this.h=+S;this.s=+r;this.l=+N;this.opacity=+Y}
function o9(S,r,N){return(S<60?r+(N-r)*S/60:S<180?N:S<240?r+(N-r)*(240-S)/60:r)*255}
function RM(S){if(S instanceof Ma)return new Ma(S.l,S.a,S.b,S.opacity);if(S instanceof nU){if(isNaN(S.h))return new Ma(S.l,0,0,S.opacity);var r=S.h*PV$;return new Ma(S.l,Math.cos(r)*S.c,Math.sin(r)*S.c,S.opacity)}S instanceof lf||(S=dr(S));var N=cR(S.r),Y=cR(S.g),ct=cR(S.b);r=k6(.2225045*N+.7168786*Y+.0606169*ct);if(N===Y&&Y===ct)var Uc=N=r;else Uc=k6((.4360747*N+.3850649*Y+.1430804*ct)/.96422),N=k6((.0139322*N+.0971045*Y+.7141733*ct)/.82521);return new Ma(116*r-16,500*(Uc-r),200*(r-N),S.opacity)}
function Ma(S,r,N,Y){this.l=+S;this.a=+r;this.b=+N;this.opacity=+Y}
function k6(S){return S>m6u?Math.pow(S,1/3):S/Air+ZwM}
function Bt(S){return S>YR?S*S*S:Air*(S-ZwM)}
function bN(S){return 255*(S<=.0031308?12.92*S:1.055*Math.pow(S,1/2.4)-.055)}
function cR(S){return(S/=255)<=.04045?S/12.92:Math.pow((S+.055)/1.055,2.4)}
function wu(S){if(S instanceof nU)return new nU(S.h,S.c,S.l,S.opacity);S instanceof Ma||(S=RM(S));if(S.a===0&&S.b===0)return new nU(NaN,0,S.l,S.opacity);var r=Math.atan2(S.b,S.a)*MyN;return new nU(r<0?r+360:r,Math.sqrt(S.a*S.a+S.b*S.b),S.l,S.opacity)}
function Gd(S,r,N,Y){return arguments.length===1?wu(S):new nU(S,r,N,Y==null?1:Y)}
function nU(S,r,N,Y){this.h=+S;this.c=+r;this.l=+N;this.opacity=+Y}
function $x(S,r,N,Y){if(arguments.length===1){var ct=S;if(ct instanceof K7)ct=new K7(ct.h,ct.s,ct.l,ct.opacity);else{ct instanceof lf||(ct=dr(ct));var Uc=ct.g/255,Gl=ct.b/255,i_=(VyB*Gl+ct.r/255*-1.7884503806-3.5172982438*Uc)/(VyB+-1.7884503806-3.5172982438);Gl-=i_;var lN=(1.97294*(Uc-i_)- -.29227*Gl)/-.90649;Gl=(Uc=Math.sqrt(lN*lN+Gl*Gl)/(1.97294*i_*(1-i_)))?Math.atan2(lN,Gl)*MyN-120:NaN;ct=new K7(Gl<0?Gl+360:Gl,Uc,i_,ct.opacity)}}else ct=new K7(S,r,N,Y==null?1:Y);return ct}
function K7(S,r,N,Y){this.h=+S;this.s=+r;this.l=+N;this.opacity=+Y}
function $X(S,r,N,Y,ct){var Uc=S*S,Gl=Uc*S;return((1-3*S+3*Uc-Gl)*r+(4-6*Uc+3*Gl)*N+(1+3*S+3*Uc-3*Gl)*Y+Gl*ct)/6}
function uN(S){return function(){return S}}
function PH(S,r){return function(N){return S+N*r}}
function eh(S,r,N){return S=Math.pow(S,N),r=Math.pow(r,N)-S,N=1/N,function(Y){return Math.pow(S+Y*r,N)}}
function kX(S,r){var N=r-S;return N?PH(S,N>180||N<-180?N-360*Math.round(N/360):N):uN(isNaN(S)?r:S)}
function VE(S){return(S=+S)===1?zR:function(r,N){return N-r?eh(r,N,S):uN(isNaN(r)?N:r)}}
function zR(S,r){var N=r-S;return N?PH(S,N):uN(isNaN(S)?r:S)}
function h2(S){return function(r){var N=r.length,Y=Array(N),ct=Array(N),Uc=Array(N),Gl;for(Gl=0;Gl<N;++Gl){var i_=Am(r[Gl]);Y[Gl]=i_.r||0;ct[Gl]=i_.g||0;Uc[Gl]=i_.b||0}Y=S(Y);ct=S(ct);Uc=S(Uc);i_.opacity=1;return function(lN){i_.r=Y(lN);i_.g=ct(lN);i_.b=Uc(lN);return i_+""}}}
function vt(S,r){return S=+S,r-=S,function(N){return S+r*N}}
function RT(S){return function(){return S}}
function x1(S){return function(r){return S(r)+""}}
function f7(S,r){var N=xBo.lastIndex=BB8.lastIndex=0,Y,ct,Uc,Gl=-1,i_=[],lN=[];S+="";for(r+="";(Y=xBo.exec(S))&&(ct=BB8.exec(r));)(Uc=ct.index)>N&&(Uc=r.slice(N,Uc),i_[Gl]?i_[Gl]+=Uc:i_[++Gl]=Uc),(Y=Y[0])===(ct=ct[0])?i_[Gl]?i_[Gl]+=ct:i_[++Gl]=ct:(i_[++Gl]=null,lN.push({i:Gl,x:vt(Y,ct)})),N=BB8.lastIndex;N<r.length&&(Uc=r.slice(N),i_[Gl]?i_[Gl]+=Uc:i_[++Gl]=Uc);return i_.length<2?lN[0]?x1(lN[0].x):RT(r):(r=lN.length,function(Ig){for(var tZ=0,av;tZ<r;++tZ)i_[(av=lN[tZ]).i]=av.x(Ig);return i_.join("")})}
function Rl(S,r,N,Y,ct,Uc){var Gl,i_,lN;if(Gl=Math.sqrt(S*S+r*r))S/=Gl,r/=Gl;if(lN=S*N+r*Y)N-=S*lN,Y-=r*lN;if(i_=Math.sqrt(N*N+Y*Y))N/=i_,Y/=i_,lN/=i_;S*Y<r*N&&(S=-S,r=-r,lN=-lN,Gl=-Gl);return{translateX:ct,translateY:Uc,rotate:Math.atan2(r,S)*g7N,skewX:Math.atan(lN)*g7N,scaleX:Gl,scaleY:i_}}
function s6(S,r,N,Y){function ct(Ig){return Ig.length?Ig.pop()+" ":""}
function Uc(Ig,tZ,av,zM,PR,nO){Ig!==av||tZ!==zM?(PR=PR.push("translate(",null,r,null,N),nO.push({i:PR-4,x:vt(Ig,av)},{i:PR-2,x:vt(tZ,zM)})):(av||zM)&&PR.push("translate("+av+r+zM+N)}
function Gl(Ig,tZ,av,zM){Ig!==tZ?(Ig-tZ>180?tZ+=360:tZ-Ig>180&&(Ig+=360),zM.push({i:av.push(ct(av)+"rotate(",null,Y)-2,x:vt(Ig,tZ)})):tZ&&av.push(ct(av)+"rotate("+tZ+Y)}
function i_(Ig,tZ,av,zM){Ig!==tZ?zM.push({i:av.push(ct(av)+"skewX(",null,Y)-2,x:vt(Ig,tZ)}):tZ&&av.push(ct(av)+"skewX("+tZ+Y)}
function lN(Ig,tZ,av,zM,PR,nO){Ig!==av||tZ!==zM?(PR=PR.push(ct(PR)+"scale(",null,",",null,")"),nO.push({i:PR-4,x:vt(Ig,av)},{i:PR-2,x:vt(tZ,zM)})):av===1&&zM===1||PR.push(ct(PR)+"scale("+av+","+zM+")")}
return function(Ig,tZ){var av=[],zM=[];Ig=S(Ig);tZ=S(tZ);Uc(Ig.translateX,Ig.translateY,tZ.translateX,tZ.translateY,av,zM);Gl(Ig.rotate,tZ.rotate,av,zM);i_(Ig.skewX,tZ.skewX,av,zM);lN(Ig.scaleX,Ig.scaleY,tZ.scaleX,tZ.scaleY,av,zM);Ig=tZ=null;return function(PR){for(var nO=-1,HH=zM.length,Aw;++nO<HH;)av[(Aw=zM[nO]).i]=Aw.x(PR);return av.join("")}}}
function jZ(S){return function(r,N){var Y=S((r=P7(r)).h,(N=P7(N)).h),ct=zR(r.s,N.s),Uc=zR(r.l,N.l),Gl=zR(r.opacity,N.opacity);return function(i_){r.h=Y(i_);r.s=ct(i_);r.l=Uc(i_);r.opacity=Gl(i_);return r+""}}}
function Wm(S){return function(r,N){var Y=S((r=Gd(r)).h,(N=Gd(N)).h),ct=zR(r.c,N.c),Uc=zR(r.l,N.l),Gl=zR(r.opacity,N.opacity);return function(i_){r.h=Y(i_);r.c=ct(i_);r.l=Uc(i_);r.opacity=Gl(i_);return r+""}}}
function Xc(S){return function Y(N){function ct(Uc,Gl){var i_=S((Uc=$x(Uc)).h,(Gl=$x(Gl)).h),lN=zR(Uc.s,Gl.s),Ig=zR(Uc.l,Gl.l),tZ=zR(Uc.opacity,Gl.opacity);return function(av){Uc.h=i_(av);Uc.s=lN(av);Uc.l=Ig(Math.pow(av,N));Uc.opacity=tZ(av);return Uc+""}}
N=+N;ct.gamma=Y;return ct}(1)}
function lY(){return Zg||(QBr(Nug),Zg=p_.now()+esu)}
function Nug(){Zg=0}
function qw(){this._call=this._time=this._next=null}
function yf(S,r,N){var Y=new qw;Y.restart(S,r,N);return Y}
function ls(){Zg=(hsc=p_.now())+esu;Iy=yL=0;try{lY();++Iy;for(var S=Cv_,r;S;)(r=Zg-S._time)>=0&&S._call.call(null,r),S=S._next;--Iy}finally{Iy=0;S=Cv_;for(var N=Infinity;S;)if(S._call){N>S._time&&(N=S._time);var Y=S;S=S._next}else r=S._next,S._next=null,S=Y?Y._next=r:Cv_=r;lU=Y;qc(N);Zg=0}}
function jCo(){var S=p_.now(),r=S-hsc;r>1E3&&(esu-=r,hsc=S)}
function qc(S){Iy||(yL&&(yL=clearTimeout(yL)),S-Zg>24?(S<Infinity&&(yL=setTimeout(ls,S-p_.now()-esu)),qJ&&(qJ=clearInterval(qJ))):(qJ||(hsc=p_.now(),qJ=setInterval(jCo,1E3)),Iy=1,QBr(ls)))}
function Kdx(S,r,N){var Y=new qw;r=r==null?0:+r;Y.restart(function(ct){Y.stop();S(ct+r)},r,N);
return Y}
function f1L(S,r,N,Y,ct,Uc){var Gl=S.__transition;if(!Gl)S.__transition={};else if(N in Gl)return;U6T(S,N,{name:r,index:Y,group:ct,on:$6w,tween:jaA,time:Uc.time,delay:Uc.delay,duration:Uc.duration,ease:Uc.ease,timer:null,state:0})}
function va6(S,r){S=a2(S,r);if(S.state>0)throw Error("te");return S}
function Mo(S,r){S=a2(S,r);if(S.state>2)throw Error("ue");return S}
function a2(S,r){S=S.__transition;if(!S||!(S=S[r]))throw Error("ve");return S}
function U6T(S,r,N){function Y(lN){var Ig,tZ;if(N.state!==1)return Uc();for(zM in Gl){var av=Gl[zM];if(av.name===N.name){if(av.state===3)return Kdx(Y);av.state===4?(av.state=6,av.timer.stop(),av.on.call("interrupt",S,S.__data__,av.index,av.group),delete Gl[zM]):+zM<r&&(av.state=6,av.timer.stop(),delete Gl[zM])}}Kdx(function(){N.state===3&&(N.state=4,N.timer.restart(ct,N.delay,N.time),ct(lN))});
N.state=2;N.on.call("start",S,S.__data__,N.index,N.group);if(N.state===2){N.state=3;i_=Array(tZ=N.tween.length);var zM=0;for(Ig=-1;zM<tZ;++zM)if(av=N.tween[zM].value.call(S,S.__data__,N.index,N.group))i_[++Ig]=av;i_.length=Ig+1}}
function ct(lN){lN=lN<N.duration?N.ease.call(null,lN/N.duration):(N.timer.restart(Uc),N.state=5,1);for(var Ig=-1,tZ=i_.length;++Ig<tZ;)i_[Ig].call(null,lN);N.state===5&&(N.on.call("end",S,S.__data__,N.index,N.group),Uc())}
function Uc(){N.state=6;N.timer.stop();delete Gl[r];for(var lN in Gl)return;delete S.__transition}
var Gl=S.__transition,i_;Gl[r]=N;N.timer=yf(function(lN){N.state=1;N.timer.restart(Y,N.delay,N.time);N.delay<=lN&&Y(lN-N.delay)},0,N.time)}
function bz7(S,r){var N,Y;return function(){var ct=Mo(this,S),Uc=ct.tween;if(Uc!==N){Y=N=Uc;Uc=0;for(var Gl=Y.length;Uc<Gl;++Uc)if(Y[Uc].name===r){Y=Y.slice();Y.splice(Uc,1);break}}ct.tween=Y}}
function ndV(S,r,N){var Y,ct;if(typeof N!=="function")throw Error();return function(){var Uc=Mo(this,S),Gl=Uc.tween;if(Gl!==Y){ct=(Y=Gl).slice();Gl={name:r,value:N};for(var i_=0,lN=ct.length;i_<lN;++i_)if(ct[i_].name===r){ct[i_]=Gl;break}i_===lN&&ct.push(Gl)}Uc.tween=ct}}
function XF8(S,r,N){var Y=S._id;S.each(function(){var ct=Mo(this,Y);(ct.value||(ct.value={}))[r]=N.apply(this,arguments)});
return function(ct){return a2(ct,Y).value[r]}}
function w4r(S,r){var N;return(typeof r==="number"?vt:r instanceof ed?iwP:(N=ed(r))?(r=N,iwP):f7)(S,r)}
function GrA(S){return function(){this.removeAttribute(S)}}
function Pmd(S){return function(){this.removeAttributeNS(S.space,S.local)}}
function AcR(S,r,N){var Y,ct;return function(){var Uc=this.getAttribute(S);return Uc===N?null:Uc===Y?ct:ct=r(Y=Uc,N)}}
function ZzL(S,r,N){var Y,ct;return function(){var Uc=this.getAttributeNS(S.space,S.local);return Uc===N?null:Uc===Y?ct:ct=r(Y=Uc,N)}}
function MCd(S,r,N){var Y,ct,Uc;return function(){var Gl=N(this);if(Gl==null)return void this.removeAttribute(S);var i_=this.getAttribute(S);return i_===Gl?null:i_===Y&&Gl===ct?Uc:Uc=r(Y=i_,ct=Gl)}}
function VC1(S,r,N){var Y,ct,Uc;return function(){var Gl=N(this);if(Gl==null)return void this.removeAttributeNS(S.space,S.local);var i_=this.getAttributeNS(S.space,S.local);return i_===Gl?null:i_===Y&&Gl===ct?Uc:Uc=r(Y=i_,ct=Gl)}}
function gd7(S,r){function N(){var Y=this,ct=r.apply(Y,arguments);return ct&&function(Uc){Y.setAttributeNS(S.space,S.local,ct(Uc))}}
N._value=r;return N}
function Qa9(S,r){function N(){var Y=this,ct=r.apply(Y,arguments);return ct&&function(Uc){Y.setAttribute(S,ct(Uc))}}
N._value=r;return N}
function Kg9(S,r){return function(){va6(this,S).delay=+r.apply(this,arguments)}}
function wz6(S,r){return r=+r,function(){va6(this,S).delay=r}}
function izi(S,r){return function(){Mo(this,S).duration=+r.apply(this,arguments)}}
function rc1(S,r){return r=+r,function(){Mo(this,S).duration=r}}
function ST6(S,r){if(typeof r!=="function")throw Error();return function(){Mo(this,S).ease=r}}
function Fgd(S){return(S+"").trim().split(/^|\s+/).every(function(r){var N=r.indexOf(".");N>=0&&(r=r.slice(0,N));return!r||r==="start"})}
function Lgu(S,r,N){var Y,ct,Uc=Fgd(r)?va6:Mo;return function(){var Gl=Uc(this,S),i_=Gl.on;if(i_!==Y)(ct=(Y=i_).copy()).on(r,N);Gl.on=ct}}
function krR(S){return function(){var r=this.parentNode,N;for(N in this.__transition)if(+N!==S)return;r&&r.removeChild(this)}}
function NcV(S,r){var N,Y,ct;return function(){var Uc=Qu(this,S),Gl=(this.style.removeProperty(S),Qu(this,S));return Uc===Gl?null:Uc===N&&Gl===Y?ct:ct=r(N=Uc,Y=Gl)}}
function D69(S){return function(){this.style.removeProperty(S)}}
function Hzm(S,r,N){var Y,ct;return function(){var Uc=Qu(this,S);return Uc===N?null:Uc===Y?ct:ct=r(Y=Uc,N)}}
function Tcm(S,r,N){var Y,ct,Uc;return function(){var Gl=Qu(this,S),i_=N(this);i_==null&&(i_=(this.style.removeProperty(S),Qu(this,S)));return Gl===i_?null:Gl===Y&&i_===ct?Uc:Uc=r(Y=Gl,ct=i_)}}
function x6u(S,r,N){function Y(){var ct=this,Uc=r.apply(ct,arguments);return Uc&&function(Gl){ct.style.setProperty(S,Uc(Gl),N)}}
Y._value=r;return Y}
function BcA(S){return function(){this.textContent=S}}
function fZd(S){return function(){var r=S(this);this.textContent=r==null?"":r}}
function QF(S,r,N,Y){this._groups=S;this._parents=r;this._name=N;this._id=Y}
function dBo(S){return{type:S}}
function OIu(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function u3_(){}
function riM(S,r){var N=new u3_;if(S instanceof u3_)S.each(function(Gl,i_){N.set(i_,Gl)});
else if(Array.isArray(S)){var Y=-1,ct=S.length,Uc;if(r==null)for(;++Y<ct;)N.set(Y,S[Y]);else for(;++Y<ct;)N.set(r(Uc=S[Y],Y,S),Uc)}else if(S)for(Y in S)N.set(Y,S[Y]);return N}
function Rs_(){}
function S_U(S){return function(r){for(var N={},Y=0;Y<S.length;Y++)N[S[Y]]=r[Y]||"";return N}}
function vdd(S,r){var N=S_U(S);return function(Y,ct){return r(N(Y),ct,S)}}
function Xzw(S){var r=Object.create(null),N=[];S.forEach(function(Y){for(var ct in Y)ct in r||N.push(r[ct]=ct)});
return N}
function FdU(S){function r(Gl,i_){function lN(){if(nO)return oa8;if(HH)return HH=!1,LdN;var F$,DH=av,cV;if(Gl.charCodeAt(DH)===34){for(;av++<tZ&&Gl.charCodeAt(av)!==34||Gl.charCodeAt(++av)===34;);(F$=av)>=tZ?nO=!0:(cV=Gl.charCodeAt(av++))===10?HH=!0:cV===13&&(HH=!0,Gl.charCodeAt(av)===10&&++av);return Gl.slice(DH+1,F$-1).replace(/""/g,'"')}for(;av<tZ;){if((cV=Gl.charCodeAt(F$=av++))===10)HH=!0;else if(cV===13)HH=!0,Gl.charCodeAt(av)===10&&++av;else if(cV!==Uc)continue;return Gl.slice(DH,F$)}return nO=
!0,Gl.slice(DH,tZ)}
var Ig=[],tZ=Gl.length,av=0,zM=0,PR,nO=tZ<=0,HH=!1;Gl.charCodeAt(tZ-1)===10&&--tZ;for(Gl.charCodeAt(tZ-1)===13&&--tZ;(PR=lN())!==oa8;){for(var Aw=[];PR!==LdN&&PR!==oa8;)Aw.push(PR),PR=lN();i_&&(Aw=i_(Aw,zM++))==null||Ig.push(Aw)}return Ig}
function N(Gl){return Gl.map(Y).join(S)}
function Y(Gl){return Gl==null?"":ct.test(Gl)?'"'+Gl.replace(/"/g,'""')+'"':Gl}
var ct=new RegExp('["'+S+"\n\r]"),Uc=S.charCodeAt(0);return{parse:function(Gl,i_){var lN,Ig;Gl=r(Gl,function(tZ,av){if(lN)return lN(tZ,av-1);Ig=tZ;lN=i_?vdd(tZ,i_):S_U(tZ)});
Gl.columns=Ig||[];return Gl},
parseRows:r,format:function(Gl,i_){i_==null&&(i_=Xzw(Gl));return[i_.map(Y).join(S)].concat(Gl.map(function(lN){return i_.map(function(Ig){return Y(lN[Ig])}).join(S)})).join("\n")},
formatRows:function(Gl){return Gl.map(N).join("\n")}}}
function d66(S){if(!S.ok)throw Error("we`"+S.status+"`"+S.statusText);return S.text()}
function k_Z(S){return function(r,N,Y){arguments.length===2&&typeof N==="function"&&(Y=N,N=void 0);return fetch(r,N).then(d66).then(function(ct){return S(ct,Y)})}}
function Nzr(S,r,N,Y){if(isNaN(r)||isNaN(N))return S;var ct,Uc=S._root;Y={data:Y};var Gl=S._x0,i_=S._y0,lN=S._x1,Ig=S._y1,tZ,av,zM,PR,nO;if(!Uc)return S._root=Y,S;for(;Uc.length;)if((zM=r>=(tZ=(Gl+lN)/2))?Gl=tZ:lN=tZ,(PR=N>=(av=(i_+Ig)/2))?i_=av:Ig=av,ct=Uc,!(Uc=Uc[nO=PR<<1|zM]))return ct[nO]=Y,S;var HH=+S._x.call(null,Uc.data);var Aw=+S._y.call(null,Uc.data);if(r===HH&&N===Aw)return Y.next=Uc,ct?ct[nO]=Y:S._root=Y,S;do ct=ct?ct[nO]=Array(4):S._root=Array(4),(zM=r>=(tZ=(Gl+lN)/2))?Gl=tZ:lN=tZ,(PR=
N>=(av=(i_+Ig)/2))?i_=av:Ig=av;while((nO=PR<<1|zM)===(zM=(Aw>=av)<<1|HH>=tZ));return ct[zM]=Uc,ct[nO]=Y,S}
function QU(S,r,N,Y,ct){this.node=S;this.x0=r;this.y0=N;this.x1=Y;this.y1=ct}
function Ozm(S){return S[0]}
function odR(S){return S[1]}
function zOc(S,r,N,Y,ct,Uc){this._x=S;this._y=r;this._x0=N;this._y0=Y;this._x1=ct;this._y1=Uc;this._root=void 0}
function DbQ(S){for(var r={data:S.data},N=r;S=S.next;)N=N.next={data:S.data};return r}
function WI5(S,r){if((r=(S=r?S.toExponential(r-1):S.toExponential()).indexOf("e"))<0)return null;var N=S.slice(0,r);return[N.length>1?N[0]+N.slice(2):N,+S.slice(r+1)]}
function zv1(S){return S=WI5(Math.abs(S)),S?S[1]:NaN}
function YTd(S,r){return function(N,Y){for(var ct=N.length,Uc=[],Gl=0,i_=S[0],lN=0;ct>0&&i_>0;){lN+i_+1>Y&&(i_=Math.max(1,Y-lN));Uc.push(N.substring(ct-=i_,ct+i_));if((lN+=i_+1)>Y)break;i_=S[Gl=(Gl+1)%S.length]}return Uc.reverse().join(r)}}
function IZd(S){return function(r){return r.replace(/[0-9]/g,function(N){return S[+N]})}}
function YX5(S){return new I1R(S)}
function I1R(S){if(!(r=pGA.exec(S)))throw Error("xe`"+S);var r;this.fill=r[1]||" ";this.align=r[2]||">";this.sign=r[3]||"-";this.symbol=r[4]||"";this.zero=!!r[5];this.width=r[6]&&+r[6];this.comma=!!r[7];this.precision=r[8]&&+r[8].slice(1);this.trim=!!r[9];this.type=r[10]||""}
function HwM(S,r){r=WI5(S,r);if(!r)return S+"";S=r[0];r=r[1];return r<0?"0."+Array(-r).join("0")+S:S.length>r+1?S.slice(0,r+1)+"."+S.slice(r+1):S+Array(r-S.length+2).join("0")}
function Tzr(S){return S}
function ygu(S){function r(i_){function lN(O3){var I7=cV,L7=ko,mw,JE;if(DH==="c")L7=HQ(O3)+L7,O3="";else{O3=+O3;var VO=O3<0;O3=HQ(Math.abs(O3),Aw);if(F$){var NV=O3.length,Ge=1,LT=-1;a:for(;Ge<NV;++Ge)switch(O3[Ge]){case ".":LT=mw=Ge;break;case "0":LT===0&&(LT=Ge);mw=Ge;break;default:if(!+O3[Ge])break a;LT>0&&(LT=0)}O3=LT>0?O3.slice(0,LT)+O3.slice(mw+1):O3}VO&&+O3===0&&(VO=!1);I7=(VO?av==="("?av:"-":av==="-"||av==="("?"":av)+I7;L7=(DH==="s"?xbQ[8+BzZ/3]:"")+L7+(VO&&av==="("?")":"");if($P)for(VO=-1,
mw=O3.length;++VO<mw;)if(JE=O3.charCodeAt(VO),48>JE||JE>57){L7=(JE===46?ct+O3.slice(VO+1):O3.slice(VO))+L7;O3=O3.slice(0,VO);break}}HH&&!PR&&(O3=N(O3,Infinity));JE=I7.length+O3.length+L7.length;VO=JE<nO?Array(nO-JE+1).join(Ig):"";HH&&PR&&(O3=N(VO+O3,VO.length?nO-L7.length:Infinity),VO="");switch(tZ){case "<":O3=I7+O3+L7+VO;break;case "=":O3=I7+VO+O3+L7;break;case "^":O3=VO.slice(0,JE=VO.length>>1)+I7+O3+L7+VO.slice(JE);break;default:O3=VO+I7+O3+L7}return Uc(O3)}
i_=YX5(i_);var Ig=i_.fill,tZ=i_.align,av=i_.sign,zM=i_.symbol,PR=i_.zero,nO=i_.width,HH=i_.comma,Aw=i_.precision,F$=i_.trim,DH=i_.type;DH==="n"?(HH=!0,DH="g"):fUM[DH]||(Aw==null&&(Aw=12),F$=!0,DH="g");if(PR||Ig==="0"&&tZ==="=")PR=!0,Ig="0",tZ="=";var cV=zM==="$"?Y[0]:zM==="#"&&/[boxX]/.test(DH)?"0"+DH.toLowerCase():"",ko=zM==="$"?Y[1]:/[%p]/.test(DH)?Gl:"",HQ=fUM[DH],$P=/[defgprs%]/.test(DH);Aw=Aw==null?6:/[gprs]/.test(DH)?Math.max(1,Math.min(21,Aw)):Math.max(0,Math.min(20,Aw));lN.toString=function(){return i_+
""};
return lN}
var N=S.grouping&&S.thousands?YTd(S.grouping,S.thousands):Tzr,Y=S.currency,ct=S.decimal,Uc=S.numerals?IZd(S.numerals):Tzr,Gl=S.percent||"%";return{format:r,formatPrefix:function(i_,lN){var Ig=r((i_=YX5(i_),i_.type="f",i_));i_=Math.max(-8,Math.min(8,Math.floor(zv1(lN)/3)))*3;var tZ=Math.pow(10,-i_),av=xbQ[8+i_/3];return function(zM){return Ig(tZ*zM)+av}}}}
function uk(){this.reset()}
function v7B(S,r,N){var Y=S.s=r+N,ct=Y-r;S.t=r-(Y-ct)+(N-ct)}
function a3c(S){return S>1?A2:S<-1?-A2:Math.asin(S)}
function lr1(){}
function X4U(S){var r=S[0];S=S[1];var N=ZQ(S);return[N*ZQ(r),N*WI(r),WI(S)]}
function dbP(S,r){return[S[1]*r[2]-S[2]*r[1],S[2]*r[0]-S[0]*r[2],S[0]*r[1]-S[1]*r[0]]}
function Owr(S){var r=mMR(S[0]*S[0]+S[1]*S[1]+S[2]*S[2]);S[0]/=r;S[1]/=r;S[2]/=r}
function q46(){var S=[],r;return{point:function(N,Y){r.push([N,Y])},
lineStart:function(){S.push(r=[])},
lineEnd:lr1,rejoin:function(){S.length>1&&S.push(S.pop().concat(S.shift()))},
result:function(){var N=S;S=[];r=null;return N}}}
function UMc(S,r,N,Y){this.x=S;this.z=r;this.o=N;this.e=Y;this.v=!1;this.n=this.p=null}
function s$1(S,r,N,Y,ct){var Uc=[],Gl=[];S.forEach(function(av){if(!((zM=av.length-1)<=0)){var zM,PR=av[0],nO=av[zM],HH=PR;if(Ko(HH[0]-nO[0])<1E-6&&Ko(HH[1]-nO[1])<1E-6){ct.lineStart();for(i_=0;i_<zM;++i_)ct.point((PR=av[i_])[0],PR[1]);ct.lineEnd()}else Uc.push(zM=new UMc(PR,av,null,!0)),Gl.push(zM.o=new UMc(PR,null,zM,!1)),Uc.push(zM=new UMc(nO,av,null,!1)),Gl.push(zM.o=new UMc(nO,null,zM,!0))}});
if(Uc.length){Gl.sort(r);o7i(Uc);o7i(Gl);var i_=0;for(S=Gl.length;i_<S;++i_)Gl[i_].e=N=!N;N=Uc[0];for(var lN;;){for(var Ig=N,tZ=!0;Ig.v;)if((Ig=Ig.n)===N)return;r=Ig.z;ct.lineStart();do{Ig.v=Ig.o.v=!0;if(Ig.e){if(tZ)for(i_=0,S=r.length;i_<S;++i_)ct.point((lN=r[i_])[0],lN[1]);else Y(Ig.x,Ig.n.x,1,ct);Ig=Ig.n}else{if(tZ)for(r=Ig.p.z,i_=r.length-1;i_>=0;--i_)ct.point((lN=r[i_])[0],lN[1]);else Y(Ig.x,Ig.p.x,-1,ct);Ig=Ig.p}Ig=Ig.o;r=Ig.z;tZ=!tZ}while(!Ig.v);ct.lineEnd()}}}
function o7i(S){if(r=S.length){for(var r,N=0,Y=S[0],ct;++N<r;)Y.n=ct=S[N],ct.p=Y,Y=ct;Y.n=ct=S[0];ct.p=Y}}
function t1d(S){return S.length>1}
function E0w(S,r){return((S=S.x)[0]<0?S[1]-A2-1E-6:A2-S[1])-((r=r.x)[0]<0?r[1]-A2-1E-6:A2-r[1])}
function p_m(){}
function z2r(S){return function(r,N){var Y=ZQ(r),ct=ZQ(N);Y=S(Y*ct);return[Y*ct*WI(r),Y*WI(N)]}}
function sm(S){return function(r,N){var Y=mMR(r*r+N*N),ct=S(Y),Uc=WI(ct);ct=ZQ(ct);return[Y_r(r*Uc,Y*ct),a3c(Y&&N*Uc/Y)]}}
function Jgu(S){var r=0,N=S.children,Y=N&&N.length;if(Y)for(;--Y>=0;)r+=N[Y].value;else r=1;S.value=r}
function IU$(S,r){var N=new tA(S);S=+S.value&&(N.value=S.value);var Y,ct=[N],Uc,Gl,i_,lN;for(r==null&&(r=cgw);Y=ct.pop();)if(S&&(Y.value=+Y.data.value),(Gl=r(Y.data))&&(lN=Gl.length))for(Y.children=Array(lN),i_=lN-1;i_>=0;--i_)ct.push(Uc=Y.children[i_]=new tA(Gl[i_])),Uc.parent=Y,Uc.depth=Y.depth+1;return N.eachBefore(edi)}
function cgw(S){return S.children}
function hdA(S){S.data=S.data.data}
function edi(S){var r=0;do S.height=r;while((S=S.parent)&&S.height<++r)}
function tA(S){this.data=S;this.depth=this.height=0;this.parent=null}
function qn(S,r,N,Y){function ct(Uc){return S(Uc=new Date(+Uc)),Uc}
ct.floor=ct;ct.ceil=function(Uc){return S(Uc=new Date(Uc-1)),r(Uc,1),S(Uc),Uc};
ct.round=function(Uc){var Gl=ct(Uc),i_=ct.ceil(Uc);return Uc-Gl<i_-Uc?Gl:i_};
ct.offset=function(Uc,Gl){return r(Uc=new Date(+Uc),Gl==null?1:Math.floor(Gl)),Uc};
ct.range=function(Uc,Gl,i_){var lN=[],Ig;Uc=ct.ceil(Uc);i_=i_==null?1:Math.floor(i_);if(!(Uc<Gl&&i_>0))return lN;do lN.push(Ig=new Date(+Uc)),r(Uc,i_),S(Uc);while(Ig<Uc&&Uc<Gl);return lN};
ct.filter=function(Uc){return qn(function(Gl){if(Gl>=Gl)for(;S(Gl),!Uc(Gl);)Gl.setTime(Gl-1)},function(Gl,i_){if(Gl>=Gl)if(i_<0)for(;++i_<=0;)for(;r(Gl,-1),!Uc(Gl););
else for(;--i_>=0;)for(;r(Gl,1),!Uc(Gl););})};
N&&(ct.count=function(Uc,Gl){yGg.setTime(+Uc);lut.setTime(+Gl);S(yGg);S(lut);return Math.floor(N(yGg,lut))},ct.every=function(Uc){Uc=Math.floor(Uc);
return isFinite(Uc)&&Uc>0?Uc>1?ct.filter(Y?function(Gl){return Y(Gl)%Uc===0}:function(Gl){return ct.count(0,Gl)%Uc===0}):ct:null});
return ct}
function VT(S){return qn(function(r){r.setDate(r.getDate()-(r.getDay()+7-S)%7);r.setHours(0,0,0,0)},function(r,N){r.setDate(r.getDate()+N*7)},function(r,N){return(N-r-(N.getTimezoneOffset()-r.getTimezoneOffset())*6E4)/6048E5})}
function gh(S){return qn(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-S)%7);r.setUTCHours(0,0,0,0)},function(r,N){r.setUTCDate(r.getUTCDate()+N*7)},function(r,N){return(N-r)/6048E5})}
function Com(S){if(0<=S.y&&S.y<100){var r=new Date(-1,S.m,S.d,S.H,S.M,S.S,S.L);r.setFullYear(S.y);return r}return new Date(S.y,S.m,S.d,S.H,S.M,S.S,S.L)}
function $Ml(S){if(0<=S.y&&S.y<100){var r=new Date(Date.UTC(-1,S.m,S.d,S.H,S.M,S.S,S.L));r.setUTCFullYear(S.y);return r}return new Date(Date.UTC(S.y,S.m,S.d,S.H,S.M,S.S,S.L))}
function Em(S){return{y:S,m:0,d:1,H:0,M:0,S:0,L:0}}
function uP6(S){function r(L7,mw){return function(JE){var VO=[],NV=-1,Ge=0,LT=L7.length,sC,p5;for(JE instanceof Date||(JE=new Date(+JE));++NV<LT;)if(L7.charCodeAt(NV)===37){VO.push(L7.slice(Ge,NV));(Ge=pFZ[sC=L7.charAt(++NV)])!=null?sC=L7.charAt(++NV):Ge=sC==="e"?" ":"0";if(p5=mw[sC])sC=p5(JE,Ge);VO.push(sC);Ge=NV+1}VO.push(L7.slice(Ge,NV));return VO.join("")}}
function N(L7,mw){return function(JE){var VO=Em(1900);if(Y(VO,L7,JE,0)!=JE.length)return null;if("Q"in VO)return new Date(VO.Q);"p"in VO&&(VO.H=VO.H%12+VO.p*12);if("V"in VO){if(VO.V<1||VO.V>53)return null;"w"in VO||(VO.w=1);if("Z"in VO){JE=$Ml(Em(VO.y));var NV=JE.getUTCDay();JE=NV>4||NV===0?qdg.ceil(JE):qdg(JE);JE=ySi.offset(JE,(VO.V-1)*7);VO.y=JE.getUTCFullYear();VO.m=JE.getUTCMonth();VO.d=JE.getUTCDate()+(VO.w+6)%7}else JE=mw(Em(VO.y)),NV=JE.getDay(),JE=NV>4||NV===0?sim.ceil(JE):sim(JE),JE=l1x.offset(JE,
(VO.V-1)*7),VO.y=JE.getFullYear(),VO.m=JE.getMonth(),VO.d=JE.getDate()+(VO.w+6)%7}else if("W"in VO||"U"in VO)"w"in VO||(VO.w="u"in VO?VO.u%7:"W"in VO?1:0),NV="Z"in VO?$Ml(Em(VO.y)).getUTCDay():mw(Em(VO.y)).getDay(),VO.m=0,VO.d="W"in VO?(VO.w+6)%7+VO.W*7-(NV+5)%7:VO.w+VO.U*7-(NV+6)%7;return"Z"in VO?(VO.H+=VO.Z/100|0,VO.M+=VO.Z%100,$Ml(VO)):mw(VO)}}
function Y(L7,mw,JE,VO){for(var NV=0,Ge=mw.length,LT=JE.length,sC;NV<Ge;){if(VO>=LT)return-1;sC=mw.charCodeAt(NV++);if(sC===37){if(sC=mw.charAt(NV++),sC=I7[sC in pFZ?mw.charAt(NV++):sC],!sC||(VO=sC(L7,JE,VO))<0)return-1}else if(sC!=JE.charCodeAt(VO++))return-1}return VO}
var ct=S.dateTime,Uc=S.date,Gl=S.time,i_=S.periods,lN=S.days,Ig=S.shortDays,tZ=S.months,av=S.shortMonths,zM=JA(i_),PR=cX(i_),nO=JA(lN),HH=cX(lN),Aw=JA(Ig),F$=cX(Ig),DH=JA(tZ),cV=cX(tZ),ko=JA(av),HQ=cX(av),$P={a:function(L7){return Ig[L7.getDay()]},
A:function(L7){return lN[L7.getDay()]},
b:function(L7){return av[L7.getMonth()]},
B:function(L7){return tZ[L7.getMonth()]},
c:null,d:qXP,e:qXP,f:Rdd,H:WGm,I:ar9,j:mlL,L:suv,m:UlT,M:$lO,p:function(L7){return i_[+(L7.getHours()>=12)]},
Q:t4r,s:EaU,S:j$9,u:bn1,U:n09,V:Gbm,w:Pow,W:AgT,x:null,X:null,y:ZnL,Y:M1d,Z:V1d,"%":JSr},O3={a:function(L7){return Ig[L7.getUTCDay()]},
A:function(L7){return lN[L7.getUTCDay()]},
b:function(L7){return av[L7.getUTCMonth()]},
B:function(L7){return tZ[L7.getUTCMonth()]},
c:null,d:cSx,e:cSx,f:g0w,H:Q$1,I:KG7,j:wGA,L:eOr,m:inu,M:rgd,p:function(L7){return i_[+(L7.getUTCHours()>=12)]},
Q:t4r,s:EaU,S:S4T,u:FG9,U:LGA,V:kb7,w:Nnm,W:Dld,x:null,X:null,y:Hn6,Y:TnL,Z:xlV,"%":JSr},I7={a:function(L7,mw,JE){return(mw=Aw.exec(mw.slice(JE)))?(L7.w=F$[mw[0].toLowerCase()],JE+mw[0].length):-1},
A:function(L7,mw,JE){return(mw=nO.exec(mw.slice(JE)))?(L7.w=HH[mw[0].toLowerCase()],JE+mw[0].length):-1},
b:function(L7,mw,JE){return(mw=ko.exec(mw.slice(JE)))?(L7.m=HQ[mw[0].toLowerCase()],JE+mw[0].length):-1},
B:function(L7,mw,JE){return(mw=DH.exec(mw.slice(JE)))?(L7.m=cV[mw[0].toLowerCase()],JE+mw[0].length):-1},
c:function(L7,mw,JE){return Y(L7,ct,mw,JE)},
d:hOU,e:hOU,f:Bn1,H:C2V,I:C2V,j:frT,L:v0A,m:XGd,M:dlR,p:function(L7,mw,JE){return(mw=zM.exec(mw.slice(JE)))?(L7.p=PR[mw[0].toLowerCase()],JE+mw[0].length):-1},
Q:On7,s:o0m,S:zdd,u:Y4T,U:Ird,V:pYR,w:yT1,W:l9L,x:function(L7,mw,JE){return Y(L7,Uc,mw,JE)},
X:function(L7,mw,JE){return Y(L7,Gl,mw,JE)},
y:qxw,Y:s5d,Z:tVV,"%":EBT};$P.x=r(Uc,$P);$P.X=r(Gl,$P);$P.c=r(ct,$P);O3.x=r(Uc,O3);O3.X=r(Gl,O3);O3.c=r(ct,O3);return{format:function(L7){var mw=r(L7,$P);mw.toString=function(){return L7};
return mw},
parse:function(L7){var mw=N(L7,Com);mw.toString=function(){return L7};
return mw},
utcFormat:function(L7){var mw=r(L7,O3);mw.toString=function(){return L7};
return mw},
utcParse:function(L7){var mw=N(L7,$Ml);mw.toString=function(){return L7};
return mw}}}
function R4(S,r,N){var Y=S<0?"-":"";S=(Y?-S:S)+"";var ct=S.length;return Y+(ct<N?Array(N-ct+1).join(r)+S:S)}
function JT9(S){return S.replace(cT1,"\\$&")}
function JA(S){return new RegExp("^(?:"+S.map(JT9).join("|")+")","i")}
function cX(S){for(var r={},N=-1,Y=S.length;++N<Y;)r[S[N].toLowerCase()]=N;return r}
function yT1(S,r,N){return(r=e$.exec(r.slice(N,N+1)))?(S.w=+r[0],N+r[0].length):-1}
function Y4T(S,r,N){return(r=e$.exec(r.slice(N,N+1)))?(S.u=+r[0],N+r[0].length):-1}
function Ird(S,r,N){return(r=e$.exec(r.slice(N,N+2)))?(S.U=+r[0],N+r[0].length):-1}
function pYR(S,r,N){return(r=e$.exec(r.slice(N,N+2)))?(S.V=+r[0],N+r[0].length):-1}
function l9L(S,r,N){return(r=e$.exec(r.slice(N,N+2)))?(S.W=+r[0],N+r[0].length):-1}
function s5d(S,r,N){return(r=e$.exec(r.slice(N,N+4)))?(S.y=+r[0],N+r[0].length):-1}
function qxw(S,r,N){return(r=e$.exec(r.slice(N,N+2)))?(S.y=+r[0]+(+r[0]>68?1900:2E3),N+r[0].length):-1}
function tVV(S,r,N){return(r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(N,N+6)))?(S.Z=r[1]?0:-(r[2]+(r[3]||"00")),N+r[0].length):-1}
function XGd(S,r,N){return(r=e$.exec(r.slice(N,N+2)))?(S.m=r[0]-1,N+r[0].length):-1}
function hOU(S,r,N){return(r=e$.exec(r.slice(N,N+2)))?(S.d=+r[0],N+r[0].length):-1}
function frT(S,r,N){return(r=e$.exec(r.slice(N,N+3)))?(S.m=0,S.d=+r[0],N+r[0].length):-1}
function C2V(S,r,N){return(r=e$.exec(r.slice(N,N+2)))?(S.H=+r[0],N+r[0].length):-1}
function dlR(S,r,N){return(r=e$.exec(r.slice(N,N+2)))?(S.M=+r[0],N+r[0].length):-1}
function zdd(S,r,N){return(r=e$.exec(r.slice(N,N+2)))?(S.S=+r[0],N+r[0].length):-1}
function v0A(S,r,N){return(r=e$.exec(r.slice(N,N+3)))?(S.L=+r[0],N+r[0].length):-1}
function Bn1(S,r,N){return(r=e$.exec(r.slice(N,N+6)))?(S.L=Math.floor(r[0]/1E3),N+r[0].length):-1}
function EBT(S,r,N){return(S=eFd.exec(r.slice(N,N+1)))?N+S[0].length:-1}
function On7(S,r,N){return(r=e$.exec(r.slice(N)))?(S.Q=+r[0],N+r[0].length):-1}
function o0m(S,r,N){return(r=e$.exec(r.slice(N)))?(S.Q=+r[0]*1E3,N+r[0].length):-1}
function qXP(S,r){return R4(S.getDate(),r,2)}
function WGm(S,r){return R4(S.getHours(),r,2)}
function ar9(S,r){return R4(S.getHours()%12||12,r,2)}
function mlL(S,r){return R4(1+l1x.count(pM(S),S),r,3)}
function suv(S,r){return R4(S.getMilliseconds(),r,3)}
function Rdd(S,r){return suv(S,r)+"000"}
function UlT(S,r){return R4(S.getMonth()+1,r,2)}
function $lO(S,r){return R4(S.getMinutes(),r,2)}
function j$9(S,r){return R4(S.getSeconds(),r,2)}
function bn1(S){S=S.getDay();return S===0?7:S}
function n09(S,r){return R4(hFO.count(pM(S),S),r,2)}
function Gbm(S,r){var N=S.getDay();S=N>=4||N===0?ts5(S):ts5.ceil(S);return R4(ts5.count(pM(S),S)+(pM(S).getDay()===4),r,2)}
function Pow(S){return S.getDay()}
function AgT(S,r){return R4(sim.count(pM(S),S),r,2)}
function ZnL(S,r){return R4(S.getFullYear()%100,r,2)}
function M1d(S,r){return R4(S.getFullYear()%1E4,r,4)}
function V1d(S){S=S.getTimezoneOffset();return(S>0?"-":(S*=-1,"+"))+R4(S/60|0,"0",2)+R4(S%60,"0",2)}
function cSx(S,r){return R4(S.getUTCDate(),r,2)}
function Q$1(S,r){return R4(S.getUTCHours(),r,2)}
function KG7(S,r){return R4(S.getUTCHours()%12||12,r,2)}
function wGA(S,r){return R4(1+ySi.count(yK(S),S),r,3)}
function eOr(S,r){return R4(S.getUTCMilliseconds(),r,3)}
function g0w(S,r){return eOr(S,r)+"000"}
function inu(S,r){return R4(S.getUTCMonth()+1,r,2)}
function rgd(S,r){return R4(S.getUTCMinutes(),r,2)}
function S4T(S,r){return R4(S.getUTCSeconds(),r,2)}
function FG9(S){S=S.getUTCDay();return S===0?7:S}
function LGA(S,r){return R4(Ccw.count(yK(S),S),r,2)}
function kb7(S,r){var N=S.getUTCDay();S=N>=4||N===0?E5j(S):E5j.ceil(S);return R4(E5j.count(yK(S),S)+(yK(S).getUTCDay()===4),r,2)}
function Nnm(S){return S.getUTCDay()}
function Dld(S,r){return R4(qdg.count(yK(S),S),r,2)}
function Hn6(S,r){return R4(S.getUTCFullYear()%100,r,2)}
function TnL(S,r){return R4(S.getUTCFullYear()%1E4,r,4)}
function xlV(){return"+0000"}
function JSr(){return"%"}
function t4r(S){return+S}
function EaU(S){return Math.floor(+S/1E3)}
function WJ(S){for(var r=S.length/6|0,N=Array(r),Y=0;Y<r;)N[Y]="#"+S.slice(Y*6,++Y*6);return N}
function Dk(S){return uR6(S[S.length-1])}
function jKt(S){var r=S.length;return function(N){return S[Math.max(0,Math.min(r-1,Math.floor(N*r)))]}}
function utx(S){this._context=S}
function ROV(S){this._curve=S}
function WZr(S,r,N){var Y=S._x1-S._x0;r-=S._x1;var ct=(S._y1-S._y0)/(Y||r<0&&-0);S=(N-S._y1)/(r||Y<0&&-0);return((ct<0?-1:1)+(S<0?-1:1))*Math.min(Math.abs(ct),Math.abs(S),.5*Math.abs((ct*r+S*Y)/(Y+r)))||0}
function a1B(S,r){var N=S._x1-S._x0;return N?(3*(S._y1-S._y0)/N-r)/2:r}
function JG_(S,r,N){var Y=S._x0,ct=S._x1,Uc=S._y1,Gl=(ct-Y)/3;S._context.bezierCurveTo(Y+Gl,S._y0+Gl*r,ct-Gl,Uc-Gl*N,ct,Uc)}
function cG5(S){this._context=S}
function mBM(S){this._context=S}
function eD(S,r,N){this.k=S;this.x=r;this.y=N}
(function(S){S.length===1&&(S=y(S));return{left:function(r,N,Y,ct){Y==null&&(Y=0);ct==null&&(ct=r.length);for(;Y<ct;){var Uc=Y+ct>>>1;S(r[Uc],N)<0?Y=Uc+1:ct=Uc}return Y},
right:function(r,N,Y,ct){Y==null&&(Y=0);ct==null&&(ct=r.length);for(;Y<ct;){var Uc=Y+ct>>>1;S(r[Uc],N)>0?ct=Uc:Y=Uc+1}return Y}}})(p);
var tCw={value:function(){}};
q.prototype=l.prototype={constructor:q,on:function(S,r){var N=this._,Y=t(S+"",N),ct,Uc=-1,Gl=Y.length;if(arguments.length<2)for(;++Uc<Gl;){var i_;if(i_=ct=(S=Y[Uc]).type){a:{i_=N[ct];for(var lN=0,Ig=i_.length;lN<Ig;++lN)if((ct=i_[lN]).name===S.name){ct=ct.value;break a}ct=void 0}i_=ct}if(i_)return ct}else{if(r!=null&&typeof r!=="function")throw Error("ye`"+r);for(;++Uc<Gl;)if(ct=(S=Y[Uc]).type)N[ct]=E(N[ct],S.name,r);else if(r==null)for(ct in N)N[ct]=E(N[ct],S.name,null);return this}},
copy:function(){var S={},r=this._,N;for(N in r)S[N]=r[N].slice();return new q(S)},
call:function(S,r){if((ct=arguments.length-2)>0)for(var N=Array(ct),Y=0,ct,Uc;Y<ct;++Y)N[Y]=arguments[Y+2];if(!this._.hasOwnProperty(S))throw Error("se`"+S);Uc=this._[S];Y=0;for(ct=Uc.length;Y<ct;++Y)Uc[Y].value.apply(r,N)},
apply:function(S,r,N){if(!this._.hasOwnProperty(S))throw Error("se`"+S);S=this._[S];for(var Y=0,ct=S.length;Y<ct;++Y)S[Y].value.apply(r,N)}};
var P3={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/"},UBM=function(S){return function(){return this.matches(S)}};
if(typeof document!=="undefined"){var hA=document.documentElement;if(!hA.matches){var RFV=hA.webkitMatchesSelector||hA.msMatchesSelector||hA.mozMatchesSelector||hA.oMatchesSelector;UBM=function(S){return function(){return RFV.call(this,S)}}}}var $BZ=UBM;
P.prototype={constructor:P,appendChild:function(S){return this._parent.insertBefore(S,this._next)},
insertBefore:function(S,r){return this._parent.insertBefore(S,r)},
querySelector:function(S){return this._parent.querySelector(S)},
querySelectorAll:function(S){return this._parent.querySelectorAll(S)}};
var n7P={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(n7P={mouseenter:"mouseover",mouseleave:"mouseout"}));var Edm=[null];ov.prototype=u9.prototype={constructor:ov,select:function(S){typeof S!=="function"&&(S=U(S));for(var r=this._groups,N=r.length,Y=Array(N),ct=0;ct<N;++ct)for(var Uc=r[ct],Gl=Uc.length,i_=Y[ct]=Array(Gl),lN,Ig,tZ=0;tZ<Gl;++tZ)(lN=Uc[tZ])&&(Ig=S.call(lN,lN.__data__,tZ,Uc))&&("__data__"in lN&&(Ig.__data__=lN.__data__),i_[tZ]=Ig);return new ov(Y,this._parents)},
filter:function(S){typeof S!=="function"&&(S=$BZ(S));for(var r=this._groups,N=r.length,Y=Array(N),ct=0;ct<N;++ct)for(var Uc=r[ct],Gl=Uc.length,i_=Y[ct]=[],lN,Ig=0;Ig<Gl;++Ig)(lN=Uc[Ig])&&S.call(lN,lN.__data__,Ig,Uc)&&i_.push(lN);return new ov(Y,this._parents)},
data:function(S,r){if(!S)return PR=Array(this.size()),Ig=-1,this.each(function(DH){PR[++Ig]=DH}),PR;
var N=r?F:K,Y=this._parents,ct=this._groups;typeof S!=="function"&&(S=Z(S));for(var Uc=ct.length,Gl=Array(Uc),i_=Array(Uc),lN=Array(Uc),Ig=0;Ig<Uc;++Ig){var tZ=Y[Ig],av=ct[Ig],zM=av.length,PR=S.call(tZ,tZ&&tZ.__data__,Ig,Y),nO=PR.length,HH=i_[Ig]=Array(nO),Aw=Gl[Ig]=Array(nO);zM=lN[Ig]=Array(zM);N(tZ,av,HH,Aw,zM,PR,r);av=tZ=0;for(var F$;tZ<nO;++tZ)if(zM=HH[tZ]){for(tZ>=av&&(av=tZ+1);!(F$=Aw[av])&&++av<nO;);zM._next=F$||null}}Gl=new ov(Gl,Y);Gl._enter=i_;Gl._exit=lN;return Gl},
enter:function(){return new ov(this._enter||this._groups.map(b),this._parents)},
exit:function(){return new ov(this._exit||this._groups.map(b),this._parents)},
merge:function(S){var r=this._groups;S=S._groups;for(var N=r.length,Y=Math.min(N,S.length),ct=Array(N),Uc=0;Uc<Y;++Uc)for(var Gl=r[Uc],i_=S[Uc],lN=Gl.length,Ig=ct[Uc]=Array(lN),tZ,av=0;av<lN;++av)if(tZ=Gl[av]||i_[av])Ig[av]=tZ;for(;Uc<N;++Uc)ct[Uc]=r[Uc];return new ov(ct,this._parents)},
order:function(){for(var S=this._groups,r=-1,N=S.length;++r<N;)for(var Y=S[r],ct=Y.length-1,Uc=Y[ct],Gl;--ct>=0;)if(Gl=Y[ct])Uc&&Uc!==Gl.nextSibling&&Uc.parentNode.insertBefore(Gl,Uc),Uc=Gl;return this},
sort:function(S){function r(av,zM){return av&&zM?S(av.__data__,zM.__data__):!av-!zM}
S||(S=L);for(var N=this._groups,Y=N.length,ct=Array(Y),Uc=0;Uc<Y;++Uc){for(var Gl=N[Uc],i_=Gl.length,lN=ct[Uc]=Array(i_),Ig,tZ=0;tZ<i_;++tZ)if(Ig=Gl[tZ])lN[tZ]=Ig;lN.sort(r)}return(new ov(ct,this._parents)).order()},
call:function(){var S=arguments[0];arguments[0]=this;S.apply(null,arguments);return this},
nodes:function(){var S=Array(this.size()),r=-1;this.each(function(){S[++r]=this});
return S},
node:function(){for(var S=this._groups,r=0,N=S.length;r<N;++r)for(var Y=S[r],ct=0,Uc=Y.length;ct<Uc;++ct){var Gl=Y[ct];if(Gl)return Gl}return null},
size:function(){var S=0;this.each(function(){++S});
return S},
empty:function(){return!this.node()},
each:function(S){for(var r=this._groups,N=0,Y=r.length;N<Y;++N)for(var ct=r[N],Uc=0,Gl=ct.length,i_;Uc<Gl;++Uc)(i_=ct[Uc])&&S.call(i_,i_.__data__,Uc,ct);return this},
attr:function(S,r){var N=e(S);if(arguments.length<2){var Y=this.node();return N.local?Y.getAttributeNS(N.space,N.local):Y.getAttribute(N)}return this.each((r==null?N.local?O:T:typeof r==="function"?N.local?sc:z:N.local?v:f)(N,r))},
style:function(S,r,N){return arguments.length>1?this.each((r==null?hR:typeof r==="function"?AR:Wt)(S,r,N==null?"":N)):Qu(this.node(),S)},
property:function(S,r){return arguments.length>1?this.each((r==null?jj:typeof r==="function"?L8:x6)(S,r)):this.node()[S]},
text:function(S){return arguments.length?this.each(S==null?Y6:(typeof S==="function"?cU:AZ)(S)):this.node().textContent},
html:function(S){return arguments.length?this.each(S==null?Xo:(typeof S==="function"?WU:U$)(S)):this.node().innerHTML},
append:function(S){var r=typeof S==="function"?S:a(S);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},
insert:function(S,r){var N=typeof S==="function"?S:a(S),Y=r==null?VQ:typeof r==="function"?r:U(r);return this.select(function(){return this.insertBefore(N.apply(this,arguments),Y.apply(this,arguments)||null)})},
remove:function(){return this.each(b9)},
clone:function(S){return this.select(S?JR:kx)},
datum:function(S){return arguments.length?this.property("__data__",S):this.node().__data__},
on:function(S,r,N){var Y=Uu(S+""),ct=Y.length,Uc;if(arguments.length<2){var Gl=this.node().__on;if(Gl)for(var i_=0,lN=Gl.length,Ig;i_<lN;++i_){var tZ=0;for(Ig=Gl[i_];tZ<ct;++tZ)if((Uc=Y[tZ]).type===Ig.type&&Uc.name===Ig.name)return Ig.value}}else{Gl=r?xx:jB;N==null&&(N=!1);for(tZ=0;tZ<ct;++tZ)this.each(Gl(Y[tZ],r,N));return this}},
dispatch:function(S,r){return this.each((typeof r==="function"?CU:Iv)(S,r))}};
var Jcd=0;ZV.prototype=function(){return new ZV}.prototype={constructor:ZV,
get:function(S){for(var r=this._;!(r in S);)if(!(S=S.parentNode))return;return S[r]},
set:function(S,r){return S[this._]=r},
remove:function(S){return this._ in S&&delete S[this._]},
toString:function(){return this._}};
var le=1/.7,ccR=/^#([0-9a-f]{3})$/,ev7=/^#([0-9a-f]{6})$/,hv6=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),CmL=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),u6i=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),RvR=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*\\)$"),
Wg1=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),aZ9=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*\\)$"),G_r={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};
QQ(u6,ed,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
QQ(lf,Am,n7(u6,{brighter:function(S){S=S==null?le:Math.pow(le,S);return new lf(this.r*S,this.g*S,this.b*S,this.opacity)},
darker:function(S){S=S==null?.7:Math.pow(.7,S);return new lf(this.r*S,this.g*S,this.b*S,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"#"+qm(this.r)+qm(this.g)+qm(this.b)},
toString:function(){var S=this.opacity;S=isNaN(S)?1:Math.max(0,Math.min(1,S));return(S===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))+(S===1?")":", "+S+")")}}));
QQ(qU,P7,n7(u6,{brighter:function(S){S=S==null?le:Math.pow(le,S);return new qU(this.h,this.s,this.l*S,this.opacity)},
darker:function(S){S=S==null?.7:Math.pow(.7,S);return new qU(this.h,this.s,this.l*S,this.opacity)},
rgb:function(){var S=this.h%360+(this.h<0)*360,r=this.l,N=r+(r<.5?r:1-r)*(isNaN(S)||isNaN(this.s)?0:this.s);r=2*r-N;return new lf(o9(S>=240?S-240:S+120,r,N),o9(S,r,N),o9(S<120?S+240:S-120,r,N),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 PV$=Math.PI/180,MyN=180/Math.PI,ZwM=4/29,YR=6/29,Air=3*YR*YR,m6u=YR*YR*YR;QQ(Ma,function(S,r,N,Y){return arguments.length===1?RM(S):new Ma(S,r,N,Y==null?1:Y)},n7(u6,{brighter:function(S){return new Ma(this.l+18*(S==null?1:S),this.a,this.b,this.opacity)},
darker:function(S){return new Ma(this.l-18*(S==null?1:S),this.a,this.b,this.opacity)},
rgb:function(){var S=(this.l+16)/116,r=isNaN(this.a)?S:S+this.a/500,N=isNaN(this.b)?S:S-this.b/200;r=.96422*Bt(r);S=1*Bt(S);N=.82521*Bt(N);return new lf(bN(3.1338561*r-1.6168667*S-.4906146*N),bN(-.9787684*r+1.9161415*S+.033454*N),bN(.0719453*r-.2289914*S+1.4052427*N),this.opacity)}}));
QQ(nU,Gd,n7(u6,{brighter:function(S){return new nU(this.h,this.c,this.l+18*(S==null?1:S),this.opacity)},
darker:function(S){return new nU(this.h,this.c,this.l-18*(S==null?1:S),this.opacity)},
rgb:function(){return RM(this).rgb()}}));
var VyB=1.78277*-.29227-.1347134789;QQ(K7,$x,n7(u6,{brighter:function(S){S=S==null?le:Math.pow(le,S);return new K7(this.h,this.s,this.l*S,this.opacity)},
darker:function(S){S=S==null?.7:Math.pow(.7,S);return new K7(this.h,this.s,this.l*S,this.opacity)},
rgb:function(){var S=isNaN(this.h)?0:(this.h+120)*PV$,r=+this.l,N=isNaN(this.s)?0:this.s*r*(1-r),Y=Math.cos(S);S=Math.sin(S);return new lf(255*(r+N*(-.14861*Y+1.78277*S)),255*(r+N*(-.29227*Y+-.90649*S)),255*(r+1.97294*Y*N),this.opacity)}}));
var iwP=function N(r){function Y(Uc,Gl){var i_=ct((Uc=Am(Uc)).r,(Gl=Am(Gl)).r),lN=ct(Uc.g,Gl.g),Ig=ct(Uc.b,Gl.b),tZ=zR(Uc.opacity,Gl.opacity);return function(av){Uc.r=i_(av);Uc.g=lN(av);Uc.b=Ig(av);Uc.opacity=tZ(av);return Uc+""}}
var ct=VE(r);Y.gamma=N;return Y}(1),uR6=h2(function(r){var N=r.length-1;
return function(Y){var ct=Y<=0?Y=0:Y>=1?(Y=1,N-1):Math.floor(Y*N),Uc=r[ct],Gl=r[ct+1];return $X((Y-ct/N)*N,ct>0?r[ct-1]:2*Uc-Gl,Uc,Gl,ct<N-1?r[ct+2]:2*Gl-Uc)}});
h2(function(r){var N=r.length;return function(Y){var ct=Math.floor(((Y%=1)<0?++Y:Y)*N);return $X((Y-ct/N)*N,r[(ct+N-1)%N],r[ct%N],r[(ct+1)%N],r[(ct+2)%N])}});
var xBo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,BB8=new RegExp(xBo.source,"g"),g7N=180/Math.PI,eHo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},C_,hHL,juP,bht,W1m=s6(function(r){if(r==="none")return eHo;C_||(C_=document.createElement("DIV"),hHL=document.documentElement,juP=document.defaultView);C_.style.transform=r;r=juP.getComputedStyle(hHL.appendChild(C_),null).getPropertyValue("transform");hHL.removeChild(C_);r=r.slice(7,-1).split(",");return Rl(+r[0],+r[1],+r[2],+r[3],
+r[4],+r[5])},"px, ","px)","deg)"),a96=s6(function(r){if(r==null)return eHo;
bht||(bht=document.createElementNS("http://www.w3.org/2000/svg","g"));bht.setAttribute("transform",r);if(!(r=bht.transform.baseVal.consolidate()))return eHo;r=r.matrix;return Rl(r.a,r.b,r.c,r.d,r.e,r.f)},", ",")",")");
jZ(kX);jZ(zR);Wm(kX);Wm(zR);Xc(kX);var CQg=Xc(zR),Iy=0,yL=0,qJ=0,Cv_,lU,hsc=0,Zg=0,esu=0,p_=typeof performance==="object"&&performance.now?performance:Date,QBr=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(r){setTimeout(r,17)};
qw.prototype=yf.prototype={constructor:qw,restart:function(r,N,Y){if(typeof r!=="function")throw new TypeError("ze");Y=(Y==null?lY():+Y)+(N==null?0:+N);this._next||lU===this||(lU?lU._next=this:Cv_=this,lU=this);this._call=r;this._time=Y;qc()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,qc())}};
var $6w=l("start","end","interrupt"),jaA=[],mvO=u9.prototype.constructor,bIB=0,q9=u9.prototype;QF.prototype=function(r){return u9().transition(r)}.prototype={constructor:QF,
select:function(r){var N=this._name,Y=this._id;typeof r!=="function"&&(r=U(r));for(var ct=this._groups,Uc=ct.length,Gl=Array(Uc),i_=0;i_<Uc;++i_)for(var lN=ct[i_],Ig=lN.length,tZ=Gl[i_]=Array(Ig),av,zM,PR=0;PR<Ig;++PR)(av=lN[PR])&&(zM=r.call(av,av.__data__,PR,lN))&&("__data__"in av&&(zM.__data__=av.__data__),tZ[PR]=zM,f1L(tZ[PR],N,Y,PR,tZ,a2(av,Y)));return new QF(Gl,this._parents,N,Y)},
filter:function(r){typeof r!=="function"&&(r=$BZ(r));for(var N=this._groups,Y=N.length,ct=Array(Y),Uc=0;Uc<Y;++Uc)for(var Gl=N[Uc],i_=Gl.length,lN=ct[Uc]=[],Ig,tZ=0;tZ<i_;++tZ)(Ig=Gl[tZ])&&r.call(Ig,Ig.__data__,tZ,Gl)&&lN.push(Ig);return new QF(ct,this._parents,this._name,this._id)},
merge:function(r){if(r._id!==this._id)throw Error();var N=this._groups;r=r._groups;for(var Y=N.length,ct=Math.min(Y,r.length),Uc=Array(Y),Gl=0;Gl<ct;++Gl)for(var i_=N[Gl],lN=r[Gl],Ig=i_.length,tZ=Uc[Gl]=Array(Ig),av,zM=0;zM<Ig;++zM)if(av=i_[zM]||lN[zM])tZ[zM]=av;for(;Gl<Y;++Gl)Uc[Gl]=N[Gl];return new QF(Uc,this._parents,this._name,this._id)},
selection:function(){return new mvO(this._groups,this._parents)},
transition:function(){for(var r=this._name,N=this._id,Y=++bIB,ct=this._groups,Uc=ct.length,Gl=0;Gl<Uc;++Gl)for(var i_=ct[Gl],lN=i_.length,Ig,tZ=0;tZ<lN;++tZ)if(Ig=i_[tZ]){var av=a2(Ig,N);f1L(Ig,r,Y,tZ,i_,{time:av.time+av.delay+av.duration,delay:0,duration:av.duration,ease:av.ease})}return new QF(ct,this._parents,r,Y)},
call:q9.call,nodes:q9.nodes,node:q9.node,size:q9.size,empty:q9.empty,each:q9.each,on:function(r,N){var Y=this._id;return arguments.length<2?a2(this.node(),Y).on.on(r):this.each(Lgu(Y,r,N))},
attr:function(r,N){var Y=e(r),ct=Y==="transform"?a96:w4r;return this.attrTween(r,typeof N==="function"?(Y.local?VC1:MCd)(Y,ct,XF8(this,"attr."+r,N)):N==null?(Y.local?Pmd:GrA)(Y):(Y.local?ZzL:AcR)(Y,ct,N+""))},
attrTween:function(r,N){var Y="attr."+r;if(arguments.length<2)return(Y=this.tween(Y))&&Y._value;if(N==null)return this.tween(Y,null);if(typeof N!=="function")throw Error();var ct=e(r);return this.tween(Y,(ct.local?gd7:Qa9)(ct,N))},
style:function(r,N,Y){var ct=r==="transform"?W1m:w4r;return N==null?this.styleTween(r,NcV(r,ct)).on("end.style."+r,D69(r)):this.styleTween(r,typeof N==="function"?Tcm(r,ct,XF8(this,"style."+r,N)):Hzm(r,ct,N+""),Y)},
styleTween:function(r,N,Y){var ct="style."+r;if(arguments.length<2)return(ct=this.tween(ct))&&ct._value;if(N==null)return this.tween(ct,null);if(typeof N!=="function")throw Error();return this.tween(ct,x6u(r,N,Y==null?"":Y))},
text:function(r){return this.tween("text",typeof r==="function"?fZd(XF8(this,"text",r)):BcA(r==null?"":r+""))},
remove:function(){return this.on("end.remove",krR(this._id))},
tween:function(r,N){var Y=this._id;if(arguments.length<2){Y=a2(this.node(),Y).tween;for(var ct=0,Uc=Y.length,Gl;ct<Uc;++ct)if((Gl=Y[ct]).name===r)return Gl.value;return null}return this.each((N==null?bz7:ndV)(Y,r,N))},
delay:function(r){var N=this._id;return arguments.length?this.each((typeof r==="function"?Kg9:wz6)(N,r)):a2(this.node(),N).delay},
duration:function(r){var N=this._id;return arguments.length?this.each((typeof r==="function"?izi:rc1)(N,r)):a2(this.node(),N).duration},
ease:function(r){var N=this._id;return arguments.length?this.each(ST6(N,r)):a2(this.node(),N).ease}};
var uWm={time:null,delay:0,duration:250,ease:function(r){return((r*=2)<=1?r*r*r:(r-=2)*r*r+2)/2}};
u9.prototype.transition=function(r){var N;if(r instanceof QF){var Y=r._id;r=r._name}else Y=++bIB,(N=uWm).time=lY(),r=r==null?null:r+"";for(var ct=this._groups,Uc=ct.length,Gl=0;Gl<Uc;++Gl)for(var i_=ct[Gl],lN=i_.length,Ig,tZ=0;tZ<lN;++tZ)if(Ig=i_[tZ]){var av=Ig,zM=r,PR=Y,nO=tZ,HH=i_,Aw;if(!(Aw=N))a:{Aw=void 0;for(var F$=Y;!(Aw=Ig.__transition)||!(Aw=Aw[F$]);)if(!(Ig=Ig.parentNode)){Aw=(uWm.time=lY(),uWm);break a}}f1L(av,zM,PR,nO,HH,Aw)}return new QF(ct,this._parents,r,Y)};
["e","w"].map(dBo);["n","s"].map(dBo);"n e s w nw ne se sw".split(" ").map(dBo);OIu.prototype=function(){return new OIu}.prototype={constructor:OIu,
moveTo:function(r,N){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+N)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(r,N){this._+="L"+(this._x1=+r)+","+(this._y1=+N)},
bezierCurveTo:function(r,N,Y,ct,Uc,Gl){this._+="C"+ +r+","+ +N+","+ +Y+","+ +ct+","+(this._x1=+Uc)+","+(this._y1=+Gl)},
rect:function(r,N,Y,ct){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+N)+"h"+ +Y+"v"+ +ct+"h"+-Y+"Z"},
toString:function(){return this._}};
u3_.prototype=riM.prototype={constructor:u3_,has:function(r){return" "+r in this},
get:function(r){return this[" "+r]},
set:function(r,N){this[" "+r]=N;return this},
remove:function(r){r=" "+r;return r in this&&delete this[r]},
clear:function(){for(var r in this)r[0]===" "&&delete this[r]},
keys:function(){var r=[],N;for(N in this)N[0]===" "&&r.push(N.slice(1));return r},
values:function(){var r=[],N;for(N in this)N[0]===" "&&r.push(this[N]);return r},
entries:function(){var r=[],N;for(N in this)N[0]===" "&&r.push({key:N.slice(1),value:this[N]});return r},
size:function(){var r=0,N;for(N in this)N[0]===" "&&++r;return r},
empty:function(){for(var r in this)if(r[0]===" ")return!1;return!0},
each:function(r){for(var N in this)N[0]===" "&&r(this[N],N.slice(1),this)}};
var QT=riM.prototype;Rs_.prototype=function(r,N){var Y=new Rs_;if(r instanceof Rs_)r.each(function(Gl){Y.add(Gl)});
else if(r){var ct=-1,Uc=r.length;if(N==null)for(;++ct<Uc;)Y.add(r[ct]);else for(;++ct<Uc;)Y.add(N(r[ct],ct,r))}return Y}.prototype={constructor:Rs_,
has:QT.has,add:function(r){this[" "+r]=r;return this},
remove:QT.remove,clear:QT.clear,values:QT.keys,size:QT.size,empty:QT.empty,each:QT.each};var LdN={},oa8={},Uv1=FdU(",").parse,$vA=FdU("\t").parse;k_Z(Uv1);k_Z($vA);var Kv=function(r,N,Y){N=new zOc(N==null?Ozm:N,Y==null?odR:Y,NaN,NaN,NaN,NaN);return r==null?N:N.addAll(r)}.prototype=zOc.prototype;
Kv.copy=function(){var r=new zOc(this._x,this._y,this._x0,this._y0,this._x1,this._y1),N=this._root,Y,ct;if(!N)return r;if(!N.length)return r._root=DbQ(N),r;for(Y=[{source:N,target:r._root=Array(4)}];N=Y.pop();)for(var Uc=0;Uc<4;++Uc)if(ct=N.source[Uc])ct.length?Y.push({source:ct,target:N.target[Uc]=Array(4)}):N.target[Uc]=DbQ(ct);return r};
Kv.add=function(r){var N=+this._x.call(null,r),Y=+this._y.call(null,r);return Nzr(this.cover(N,Y),N,Y,r)};
Kv.addAll=function(r){var N,Y,ct=r.length,Uc,Gl,i_=Array(ct),lN=Array(ct),Ig=Infinity,tZ=Infinity,av=-Infinity,zM=-Infinity;for(Y=0;Y<ct;++Y)isNaN(Uc=+this._x.call(null,N=r[Y]))||isNaN(Gl=+this._y.call(null,N))||(i_[Y]=Uc,lN[Y]=Gl,Uc<Ig&&(Ig=Uc),Uc>av&&(av=Uc),Gl<tZ&&(tZ=Gl),Gl>zM&&(zM=Gl));av<Ig&&(Ig=this._x0,av=this._x1);zM<tZ&&(tZ=this._y0,zM=this._y1);this.cover(Ig,tZ).cover(av,zM);for(Y=0;Y<ct;++Y)Nzr(this,i_[Y],lN[Y],r[Y]);return this};
Kv.cover=function(r,N){if(isNaN(r=+r)||isNaN(N=+N))return this;var Y=this._x0,ct=this._y0,Uc=this._x1,Gl=this._y1;if(isNaN(Y))Uc=(Y=Math.floor(r))+1,Gl=(ct=Math.floor(N))+1;else if(Y>r||r>Uc||ct>N||N>Gl){var i_=Uc-Y,lN=this._root,Ig;switch(Ig=(N<(ct+Gl)/2)<<1|r<(Y+Uc)/2){case 0:do{var tZ=Array(4);tZ[Ig]=lN;lN=tZ}while(i_*=2,Uc=Y+i_,Gl=ct+i_,r>Uc||N>Gl);break;case 1:do tZ=Array(4),tZ[Ig]=lN,lN=tZ;while(i_*=2,Y=Uc-i_,Gl=ct+i_,Y>r||N>Gl);break;case 2:do tZ=Array(4),tZ[Ig]=lN,lN=tZ;while(i_*=2,Uc=Y+i_,
ct=Gl-i_,r>Uc||ct>N);break;case 3:do tZ=Array(4),tZ[Ig]=lN,lN=tZ;while(i_*=2,Y=Uc-i_,ct=Gl-i_,Y>r||ct>N)}this._root&&this._root.length&&(this._root=lN)}else return this;this._x0=Y;this._y0=ct;this._x1=Uc;this._y1=Gl;return this};
Kv.data=function(){var r=[];this.visit(function(N){if(!N.length){do r.push(N.data);while(N=N.next)}});
return r};
Kv.extent=function(r){return arguments.length?this.cover(+r[0][0],+r[0][1]).cover(+r[1][0],+r[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Kv.find=function(r,N,Y){var ct=this._x0,Uc=this._y0,Gl,i_,lN,Ig,tZ=this._x1,av=this._y1,zM=[],PR=this._root,nO;PR&&zM.push(new QU(PR,ct,Uc,tZ,av));Y==null?Y=Infinity:(ct=r-Y,Uc=N-Y,tZ=r+Y,av=N+Y,Y*=Y);for(;nO=zM.pop();)if(!(!(PR=nO.node)||(Gl=nO.x0)>tZ||(i_=nO.y0)>av||(lN=nO.x1)<ct||(Ig=nO.y1)<Uc))if(PR.length){nO=(Gl+lN)/2;var HH=(i_+Ig)/2;zM.push(new QU(PR[3],nO,HH,lN,Ig),new QU(PR[2],Gl,HH,nO,Ig),new QU(PR[1],nO,i_,lN,HH),new QU(PR[0],Gl,i_,nO,HH));if(PR=(N>=HH)<<1|r>=nO)nO=zM[zM.length-1],zM[zM.length-
1]=zM[zM.length-1-PR],zM[zM.length-1-PR]=nO}else if(nO=r-+this._x.call(null,PR.data),HH=N-+this._y.call(null,PR.data),nO=nO*nO+HH*HH,nO<Y){var Aw=Math.sqrt(Y=nO);ct=r-Aw;Uc=N-Aw;tZ=r+Aw;av=N+Aw;Aw=PR.data}return Aw};
Kv.remove=function(r){if(isNaN(Ig=+this._x.call(null,r))||isNaN(tZ=+this._y.call(null,r)))return this;var N,Y=this._root,ct,Uc=this._x0,Gl=this._y0,i_=this._x1,lN=this._y1,Ig,tZ,av,zM,PR,nO,HH;if(!Y)return this;if(Y.length)for(;;){(PR=Ig>=(av=(Uc+i_)/2))?Uc=av:i_=av;(nO=tZ>=(zM=(Gl+lN)/2))?Gl=zM:lN=zM;if(!(N=Y,Y=Y[HH=nO<<1|PR]))return this;if(!Y.length)break;if(N[HH+1&3]||N[HH+2&3]||N[HH+3&3]){var Aw=N;var F$=HH}}for(;Y.data!==r;)if(!(ct=Y,Y=Y.next))return this;(r=Y.next)&&delete Y.next;if(ct)return r?
ct.next=r:delete ct.next,this;if(!N)return this._root=r,this;r?N[HH]=r:delete N[HH];(Y=N[0]||N[1]||N[2]||N[3])&&Y===(N[3]||N[2]||N[1]||N[0])&&!Y.length&&(Aw?Aw[F$]=Y:this._root=Y);return this};
Kv.removeAll=function(r){for(var N=0,Y=r.length;N<Y;++N)this.remove(r[N]);return this};
Kv.root=function(){return this._root};
Kv.size=function(){var r=0;this.visit(function(N){if(!N.length){do++r;while(N=N.next)}});
return r};
Kv.visit=function(r){var N=[],Y,ct=this._root,Uc,Gl,i_,lN,Ig;for(ct&&N.push(new QU(ct,this._x0,this._y0,this._x1,this._y1));Y=N.pop();)if(!r(ct=Y.node,Gl=Y.x0,i_=Y.y0,lN=Y.x1,Ig=Y.y1)&&ct.length){Y=(Gl+lN)/2;var tZ=(i_+Ig)/2;(Uc=ct[3])&&N.push(new QU(Uc,Y,tZ,lN,Ig));(Uc=ct[2])&&N.push(new QU(Uc,Gl,tZ,Y,Ig));(Uc=ct[1])&&N.push(new QU(Uc,Y,i_,lN,tZ));(Uc=ct[0])&&N.push(new QU(Uc,Gl,i_,Y,tZ))}};
Kv.visitAfter=function(r){var N=[],Y=[],ct;for(this._root&&N.push(new QU(this._root,this._x0,this._y0,this._x1,this._y1));ct=N.pop();){var Uc=ct.node;if(Uc.length){var Gl,i_=ct.x0,lN=ct.y0,Ig=ct.x1,tZ=ct.y1,av=(i_+Ig)/2,zM=(lN+tZ)/2;(Gl=Uc[0])&&N.push(new QU(Gl,i_,lN,av,zM));(Gl=Uc[1])&&N.push(new QU(Gl,av,lN,Ig,zM));(Gl=Uc[2])&&N.push(new QU(Gl,i_,zM,av,tZ));(Gl=Uc[3])&&N.push(new QU(Gl,av,zM,Ig,tZ))}Y.push(ct)}for(;ct=Y.pop();)r(ct.node,ct.x0,ct.y0,ct.x1,ct.y1);return this};
Kv.x=function(r){return arguments.length?(this._x=r,this):this._x};
Kv.y=function(r){return arguments.length?(this._y=r,this):this._y};
var pGA=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;YX5.prototype=I1R.prototype;I1R.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 BzZ,fUM={"%":function(r,N){return(r*100).toFixed(N)},
b:function(r){return Math.round(r).toString(2)},
c:function(r){return r+""},
d:function(r){return Math.round(r).toString(10)},
e:function(r,N){return r.toExponential(N)},
f:function(r,N){return r.toFixed(N)},
g:function(r,N){return r.toPrecision(N)},
o:function(r){return Math.round(r).toString(8)},
p:function(r,N){return HwM(r*100,N)},
r:HwM,s:function(r,N){var Y=WI5(r,N);if(!Y)return r+"";var ct=Y[0];Y=Y[1];Y=Y-(BzZ=Math.max(-8,Math.min(8,Math.floor(Y/3)))*3)+1;var Uc=ct.length;return Y===Uc?ct:Y>Uc?ct+Array(Y-Uc+1).join("0"):Y>0?ct.slice(0,Y)+"."+ct.slice(Y):"0."+Array(1-Y).join("0")+WI5(r,Math.max(0,N+Y-1))[0]},
X:function(r){return Math.round(r).toString(16).toUpperCase()},
x:function(r){return Math.round(r).toString(16)}},xbQ="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),j5L;
(function(r){return j5L=ygu(r)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});uk.prototype={constructor:uk,reset:function(){this.s=this.t=0},
add:function(r){v7B(nhj,r,this.t);v7B(this,nhj.s,this.s);this.s?this.t+=nhj.t:this.s=nhj.t},
valueOf:function(){return this.s}};
var nhj=new uk,PK=Math.PI,A2=PK/2,naQ=PK/4,b57=PK*2,RHR=PK/180,Ko=Math.abs,W$u=Math.atan,Y_r=Math.atan2,ZQ=Math.cos,WI=Math.sin,mMR=Math.sqrt;new uk;new uk;new uk;var auj=new uk;(function(r,N,Y,ct){return function(Uc){function Gl(HQ,$P){r(HQ,$P)&&Uc.point(HQ,$P)}
function i_(HQ,$P){PR.point(HQ,$P)}
function lN(){ko.point=i_;PR.lineStart()}
function Ig(){ko.point=Gl;PR.lineEnd()}
function tZ(HQ,$P){cV.push([HQ,$P]);HH.point(HQ,$P)}
function av(){HH.lineStart();cV=[]}
function zM(){tZ(cV[0][0],cV[0][1]);HH.lineEnd();var HQ=HH.clean(),$P=nO.result(),O3=$P.length,I7;cV.pop();F$.push(cV);cV=null;if(O3)if(HQ&1){if(O3=$P[0],($P=O3.length-1)>0){Aw||(Uc.polygonStart(),Aw=!0);Uc.lineStart();for(HQ=0;HQ<$P;++HQ)Uc.point((I7=O3[HQ])[0],I7[1]);Uc.lineEnd()}}else O3>1&&HQ&2&&$P.push($P.pop().concat($P.shift())),DH.push($P.filter(t1d))}
var PR=N(Uc),nO=q46(),HH=N(nO),Aw=!1,F$,DH,cV,ko={point:Gl,lineStart:lN,lineEnd:Ig,polygonStart:function(){ko.point=tZ;ko.lineStart=av;ko.lineEnd=zM;DH=[];F$=[]},
polygonEnd:function(){ko.point=Gl;ko.lineStart=lN;ko.lineEnd=Ig;var HQ=DH,$P=HQ.length;var O3=-1;for(var I7=0,L7,mw;++O3<$P;)I7+=HQ[O3].length;for(L7=Array(I7);--$P>=0;)for(mw=HQ[$P],O3=mw.length;--O3>=0;)L7[--I7]=mw[O3];DH=L7;HQ=F$;$P=ct[0];I7=ct[1];var JE=WI(I7);O3=[WI($P),-ZQ($P),0];mw=L7=0;auj.reset();JE===1?I7=A2+1E-6:JE===-1&&(I7=-A2-1E-6);JE=0;for(var VO=HQ.length;JE<VO;++JE)if(Ge=(NV=HQ[JE]).length){var NV,Ge,LT=NV[Ge-1],sC=LT[0],p5=LT[1]/2+naQ,Go5=WI(p5),G7B=ZQ(p5);for(p5=0;p5<Ge;++p5,sC=
mCa,Go5=P2U,G7B=uU,LT=Pv5){var Pv5=NV[p5],mCa=Pv5[0];uU=Pv5[1]/2+naQ;var P2U=WI(uU),uU=ZQ(uU),sy=mCa-sC,UC8=sy>=0?1:-1,$CR=UC8*sy,AJR=$CR>PK;Go5*=P2U;auj.add(Y_r(Go5*UC8*WI($CR),G7B*uU+Go5*ZQ($CR)));L7+=AJR?sy+UC8*b57:sy;AJR^sC>=$P^mCa>=$P&&(LT=dbP(X4U(LT),X4U(Pv5)),Owr(LT),sC=dbP(O3,LT),Owr(sC),sC=(AJR^sy>=0?-1:1)*a3c(sC[2]),I7>sC||I7===sC&&(LT[0]||LT[1]))&&(mw+=AJR^sy>=0?1:-1)}}HQ=(L7<-1E-6||L7<1E-6&&auj<-1E-6)^mw&1;DH.length?(Aw||(Uc.polygonStart(),Aw=!0),s$1(DH,E0w,HQ,Y,Uc)):HQ&&(Aw||(Uc.polygonStart(),
Aw=!0),Uc.lineStart(),Y(null,null,1,Uc),Uc.lineEnd());Aw&&(Uc.polygonEnd(),Aw=!1);DH=F$=null},
sphere:function(){Uc.polygonStart();Uc.lineStart();Y(null,null,1,Uc);Uc.lineEnd();Uc.polygonEnd()}};
return ko}})(function(){return!0},function(r){var N=NaN,Y=NaN,ct=NaN,Uc;
return{lineStart:function(){r.lineStart();Uc=1},
point:function(Gl,i_){var lN=Gl>0?PK:-PK,Ig=Ko(Gl-N);if(Ko(Ig-PK)<1E-6)r.point(N,Y=(Y+i_)/2>0?A2:-A2),r.point(ct,Y),r.lineEnd(),r.lineStart(),r.point(lN,Y),r.point(Gl,Y),Uc=0;else if(ct!==lN&&Ig>=PK){Ko(N-ct)<1E-6&&(N-=ct*1E-6);Ko(Gl-lN)<1E-6&&(Gl-=lN*1E-6);Ig=N;var tZ=Y,av=Gl,zM,PR,nO=WI(Ig-av);Y=Ko(nO)>1E-6?W$u((WI(tZ)*(PR=ZQ(i_))*WI(av)-WI(i_)*(zM=ZQ(tZ))*WI(Ig))/(zM*PR*nO)):(tZ+i_)/2;r.point(ct,Y);r.lineEnd();r.lineStart();r.point(lN,Y);Uc=0}r.point(N=Gl,Y=i_);ct=lN},
lineEnd:function(){r.lineEnd();N=Y=NaN},
clean:function(){return 2-Uc}}},function(r,N,Y,ct){r==null?(Y*=A2,ct.point(-PK,Y),ct.point(0,Y),ct.point(PK,Y),ct.point(PK,0),ct.point(PK,-Y),ct.point(0,-Y),ct.point(-PK,-Y),ct.point(-PK,0),ct.point(-PK,Y)):Ko(r[0]-N[0])>1E-6?(r=r[0]<N[0]?PK:-PK,Y=Y*r/2,ct.point(-r,Y),ct.point(0,Y),ct.point(r,Y)):ct.point(N[0],N[1])},[-PK,
-A2]);new uk;new uk;new uk;new uk;p_m.prototype={constructor:p_m,point:function(r,N){this.stream.point(r,N)},
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()}};
ZQ(30*RHR);(function(r){return function(N){var Y=new p_m,ct;for(ct in r)Y[ct]=r[ct];Y.stream=N;return Y}})({point:function(r,N){this.stream.point(r*RHR,N*RHR)}});
z2r(function(r){return mMR(2/(1+r))}).invert=sm(function(r){return 2*a3c(r/2)});
z2r(function(r){return(r=r>1?0:r<-1?PK:Math.acos(r))&&r/WI(r)}).invert=sm(function(r){return r});
mMR(3);sm(W$u);sm(a3c);sm(function(r){return 2*W$u(r)});
tA.prototype=IU$.prototype={constructor:tA,count:function(){return this.eachAfter(Jgu)},
each:function(r){var N,Y=[this],ct;do{var Uc=Y.reverse();for(Y=[];N=Uc.pop();)if(r(N),N=N.children){var Gl=0;for(ct=N.length;Gl<ct;++Gl)Y.push(N[Gl])}}while(Y.length);return this},
eachAfter:function(r){for(var N,Y=[this],ct=[],Uc,Gl;N=Y.pop();)if(ct.push(N),N=N.children)for(Uc=0,Gl=N.length;Uc<Gl;++Uc)Y.push(N[Uc]);for(;N=ct.pop();)r(N);return this},
eachBefore:function(r){for(var N,Y=[this],ct;N=Y.pop();)if(r(N),N=N.children)for(ct=N.length-1;ct>=0;--ct)Y.push(N[ct]);return this},
sum:function(r){return this.eachAfter(function(N){for(var Y=+r(N.data)||0,ct=N.children,Uc=ct&&ct.length;--Uc>=0;)Y+=ct[Uc].value;N.value=Y})},
sort:function(r){return this.eachBefore(function(N){N.children&&N.children.sort(r)})},
path:function(r){var N=this;var Y=N;var ct=r;if(Y!==ct){var Uc=Y.ancestors(),Gl=ct.ancestors(),i_=null;Y=Uc.pop();for(ct=Gl.pop();Y===ct;)i_=Y,Y=Uc.pop(),ct=Gl.pop();Y=i_}for(ct=[N];N!==Y;)N=N.parent,ct.push(N);for(N=ct.length;r!==Y;)ct.splice(N,0,r),r=r.parent;return ct},
ancestors:function(){for(var r=this,N=[r];r=r.parent;)N.push(r);return N},
links:function(){var r=this,N=[];r.each(function(Y){Y!==r&&N.push({source:Y.parent,target:Y})});
return N},
copy:function(){return IU$(this).eachBefore(hdA)}};
(function(r,N){this._=r;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=N}).prototype=Object.create(tA.prototype);
var yGg=new Date,lut=new Date,ASN=qn(function(){},function(r,N){r.setTime(+r+N)},function(r,N){return N-r});
ASN.every=function(r){r=Math.floor(r);return isFinite(r)&&r>0?r>1?qn(function(N){N.setTime(Math.floor(N/r)*r)},function(N,Y){N.setTime(+N+Y*r)},function(N,Y){return(Y-N)/r}):ASN:null};
qn(function(r){r.setTime(Math.floor(r/1E3)*1E3)},function(r,N){r.setTime(+r+N*1E3)},function(r,N){return(N-r)/1E3},function(r){return r.getUTCSeconds()});
qn(function(r){r.setTime(Math.floor(r/6E4)*6E4)},function(r,N){r.setTime(+r+N*6E4)},function(r,N){return(N-r)/6E4},function(r){return r.getMinutes()});
qn(function(r){var N=r.getTimezoneOffset()*6E4%36E5;N<0&&(N+=36E5);r.setTime(Math.floor((+r-N)/36E5)*36E5+N)},function(r,N){r.setTime(+r+N*36E5)},function(r,N){return(N-r)/36E5},function(r){return r.getHours()});
var l1x=qn(function(r){r.setHours(0,0,0,0)},function(r,N){r.setDate(r.getDate()+N)},function(r,N){return(N-r-(N.getTimezoneOffset()-r.getTimezoneOffset())*6E4)/864E5},function(r){return r.getDate()-1}),hFO=VT(0),sim=VT(1);
VT(2);VT(3);var ts5=VT(4);VT(5);VT(6);qn(function(r){r.setDate(1);r.setHours(0,0,0,0)},function(r,N){r.setMonth(r.getMonth()+N)},function(r,N){return N.getMonth()-r.getMonth()+(N.getFullYear()-r.getFullYear())*12},function(r){return r.getMonth()});
var pM=qn(function(r){r.setMonth(0,1);r.setHours(0,0,0,0)},function(r,N){r.setFullYear(r.getFullYear()+N)},function(r,N){return N.getFullYear()-r.getFullYear()},function(r){return r.getFullYear()});
pM.every=function(r){return isFinite(r=Math.floor(r))&&r>0?qn(function(N){N.setFullYear(Math.floor(N.getFullYear()/r)*r);N.setMonth(0,1);N.setHours(0,0,0,0)},function(N,Y){N.setFullYear(N.getFullYear()+Y*r)}):null};
qn(function(r){r.setUTCSeconds(0,0)},function(r,N){r.setTime(+r+N*6E4)},function(r,N){return(N-r)/6E4},function(r){return r.getUTCMinutes()});
qn(function(r){r.setUTCMinutes(0,0,0)},function(r,N){r.setTime(+r+N*36E5)},function(r,N){return(N-r)/36E5},function(r){return r.getUTCHours()});
var ySi=qn(function(r){r.setUTCHours(0,0,0,0)},function(r,N){r.setUTCDate(r.getUTCDate()+N)},function(r,N){return(N-r)/864E5},function(r){return r.getUTCDate()-1}),Ccw=gh(0),qdg=gh(1);
gh(2);gh(3);var E5j=gh(4);gh(5);gh(6);qn(function(r){r.setUTCDate(1);r.setUTCHours(0,0,0,0)},function(r,N){r.setUTCMonth(r.getUTCMonth()+N)},function(r,N){return N.getUTCMonth()-r.getUTCMonth()+(N.getUTCFullYear()-r.getUTCFullYear())*12},function(r){return r.getUTCMonth()});
var yK=qn(function(r){r.setUTCMonth(0,1);r.setUTCHours(0,0,0,0)},function(r,N){r.setUTCFullYear(r.getUTCFullYear()+N)},function(r,N){return N.getUTCFullYear()-r.getUTCFullYear()},function(r){return r.getUTCFullYear()});
yK.every=function(r){return isFinite(r=Math.floor(r))&&r>0?qn(function(N){N.setUTCFullYear(Math.floor(N.getUTCFullYear()/r)*r);N.setUTCMonth(0,1);N.setUTCHours(0,0,0,0)},function(N,Y){N.setUTCFullYear(N.getUTCFullYear()+Y*r)}):null};
var pFZ={"-":"",_:" ",0:"0"},e$=/^\s*\d+/,eFd=/^%/,cT1=/[\\^$*+?|[\]().{}]/g,Zh8;(function(r){Zh8=uP6(r);eW$=Zh8.utcFormat;hWM=Zh8.utcParse;return Zh8})({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||eW$("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||hWM("%Y-%m-%dT%H:%M:%S.%LZ");WJ("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
WJ("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");WJ("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");WJ("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");WJ("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");WJ("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");WJ("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
WJ("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");WJ("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");WJ("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");WJ("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");WJ("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var nBT=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(WJ);Dk(nBT);var GAi=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(WJ);Dk(GAi);var Pc6=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(WJ);Dk(Pc6);var ATR=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(WJ);
Dk(ATR);var Z5T=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(WJ);Dk(Z5T);var MVw=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(WJ);Dk(MVw);var VVw=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(WJ);Dk(VVw);var gB6=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(WJ);Dk(gB6);var Q56=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(WJ);Dk(Q56);var K1d=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(WJ);Dk(K1d);var wYR=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(WJ);Dk(wYR);var i5w=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(WJ);Dk(i5w);var rTO=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(WJ);Dk(rTO);var SxL=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(WJ);Dk(SxL);var F1u=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(WJ);Dk(F1u);var L1d=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(WJ);Dk(L1d);var kA6=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(WJ);Dk(kA6);var Ne1=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(WJ);Dk(Ne1);var Dvm=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(WJ);Dk(Dvm);var H59=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(WJ);Dk(H59);var Ted=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(WJ);Dk(Ted);var xvd=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(WJ);Dk(xvd);var Bei=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(WJ);Dk(Bei);var f9m=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(WJ);Dk(f9m);var vB1=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(WJ);Dk(vB1);var XYw=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(WJ);Dk(XYw);var dvL=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(WJ);Dk(dvL);CQg($x(300,.5,0),$x(-240,.5,1));CQg($x(-100,.75,.35),$x(80,1.5,.8));CQg($x(260,.75,.35),$x(80,1.5,.8));$x();Am();jKt(WJ("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
jKt(WJ("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
jKt(WJ("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
jKt(WJ("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
utx.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(r,N){r=+r;N=+N;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(r,N):this._context.moveTo(r,N);break;case 1:this._point=2;default:this._context.lineTo(r,N)}}};
(function(r){function N(Y){return new ROV(r(Y))}
N._curve=r;return N})(function(r){return new utx(r)});
ROV.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(r,N){this._curve.point(N*Math.sin(r),N*-Math.cos(r))}};
cG5.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:JG_(this,this._t0,a1B(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(r,N){var Y=NaN;r=+r;N=+N;if(r!==this._x1||N!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(r,N):this._context.moveTo(r,N);break;case 1:this._point=2;break;case 2:this._point=3;JG_(this,a1B(this,Y=WZr(this,r,N)),Y);break;default:JG_(this,this._t0,Y=WZr(this,r,N))}this._x0=this._x1;this._x1=r;this._y0=this._y1;this._y1=N;this._t0=Y}}};
(function(r){this._context=new mBM(r)}.prototype=Object.create(cG5.prototype)).point=function(r,N){cG5.prototype.point.call(this,N,r)};
mBM.prototype={moveTo:function(r,N){this._context.moveTo(N,r)},
closePath:function(){this._context.closePath()},
lineTo:function(r,N){this._context.lineTo(N,r)},
bezierCurveTo:function(r,N,Y,ct,Uc,Gl){this._context.bezierCurveTo(N,r,ct,Y,Gl,Uc)}};
eD.prototype={constructor:eD,scale:function(r){return r===1?this:new eD(this.k*r,this.x,this.y)},
translate:function(r,N){return r===0&N===0?this:new eD(this.k,this.x+this.k*r,this.y+this.k*N)},
apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},
invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new eD(1,0,0);J4m=ed;P3.svg=P3.svg;P3.xhtml=P3.xhtml;P3.xlink=P3.xlink;P3.xml=P3.xml;P3.xmlns=P3.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 Cjx="hammer_"+(Math.random()*1E6|0),upx=function(){var p=document||document;if(!p[Cjx]){var y=function(){(function(l,q,t,E){function e(Ma,k6,Bt){return setTimeout(b(Ma,Bt),k6)}
function C(Ma,k6,Bt){return Array.isArray(Ma)?(u(Ma,Bt[k6],Bt),!0):!1}
function u(Ma,k6,Bt){var bN;if(Ma)if(Ma.forEach)Ma.forEach(k6,Bt);else if(Ma.length!==E){var cR=0;for(bN=Ma.length;cR<bN;cR++)k6.call(Bt,Ma[cR],cR,Ma)}else for(cR in Ma)Ma.hasOwnProperty(cR)&&k6.call(Bt,Ma[cR],cR,Ma)}
function a(Ma,k6,Bt){for(var bN=Object.keys(k6),cR=0,wu=bN.length;cR<wu;cR++)if(!Bt||Bt&&Ma[bN[cR]]===E)Ma[bN[cR]]=k6[bN[cR]];return Ma}
function m(Ma,k6){return a(Ma,k6,!0)}
function U(Ma,k6,Bt){k6=k6.prototype;var bN=Ma.prototype=Object.create(k6);bN.constructor=Ma;bN._super=k6;Bt&&a(bN,Bt)}
function b(Ma,k6){return function(){return Ma.apply(k6,arguments)}}
function P(Ma,k6){return typeof Ma=="function"?Ma.apply(k6?k6[0]||E:E,k6):Ma}
function Z(Ma,k6,Bt){u(F(k6),function(bN){Ma.addEventListener(bN,Bt,!1)})}
function K(Ma,k6,Bt){u(F(k6),function(bN){Ma.removeEventListener(bN,Bt,!1)})}
function F(Ma){return Ma.trim().split(/\s+/g)}
function L(Ma,k6,Bt){if(Ma.indexOf&&!Bt)return Ma.indexOf(k6);for(var bN=0,cR=Ma.length;bN<cR;bN++)if(Bt&&Ma[bN][Bt]==k6||!Bt&&Ma[bN]===k6)return bN;return-1}
function T(Ma,k6,Bt){for(var bN=[],cR=[],wu=0,Gd=Ma.length;wu<Gd;wu++){var nU=k6?Ma[wu][k6]:Ma[wu];L(cR,nU)<0&&bN.push(Ma[wu]);cR[wu]=nU}Bt&&(bN=k6?bN.sort(function($x,K7){return $x[k6]>K7[k6]}):bN.sort());
return bN}
function O(Ma,k6){for(var Bt,bN=k6[0].toUpperCase()+k6.slice(1),cR=0,wu=CU.length;cR<wu;cR++)if(Bt=(Bt=CU[cR])?Bt+bN:k6,Bt in Ma)return Bt;return E}
function f(Ma,k6){var Bt=this;this.manager=Ma;this.callback=k6;this.element=Ma.element;this.target=Ma.options.inputTarget;this.domHandler=function(bN){P(Ma.options.enable,[Ma])&&Bt.handler(bN)};
this.evEl&&Z(this.element,this.evEl,this.domHandler);this.evTarget&&Z(this.target,this.evTarget,this.domHandler);this.evWin&&Z(l,this.evWin,this.domHandler)}
function v(Ma){var k6;MQ?k6=x6:Ob?k6=L8:ed?k6=Y6:k6=jj;return new k6(Ma,z)}
function z(Ma,k6,Bt){var bN=Bt.pointers.length,cR=Bt.changedPointers.length,wu=k6&1&&bN-cR===0;Bt.isFirst=!!wu;Bt.isFinal=!!(k6&12&&bN-cR===0);wu&&(Ma.session={});Bt.eventType=k6;k6=Ma.session;bN=Bt.pointers;cR=bN.length;k6.firstInput||(k6.firstInput=sc(Bt));cR>1&&!k6.firstMultiple?k6.firstMultiple=sc(Bt):cR===1&&(k6.firstMultiple=!1);wu=k6.firstInput;var Gd=(cR=k6.firstMultiple)?cR.center:wu.center,nU=Bt.center=hR(bN);Bt.timeStamp=QQ();Bt.deltaTime=Bt.timeStamp-wu.timeStamp;Bt.angle=Qu(Gd,nU);Bt.distance=
AR(Gd,nU);wu=Bt.center;Gd=k6.offsetDelta||{};nU=k6.prevDelta||{};var $x=k6.prevInput||{};if(Bt.eventType===1||$x.eventType===4)nU=k6.prevDelta={x:$x.deltaX||0,y:$x.deltaY||0},Gd=k6.offsetDelta={x:wu.x,y:wu.y};Bt.deltaX=nU.x+(wu.x-Gd.x);Bt.deltaY=nU.y+(wu.y-Gd.y);Bt.offsetDirection=Wt(Bt.deltaX,Bt.deltaY);cR?(wu=cR.pointers,wu=AR(bN[0],bN[1],Am)/AR(wu[0],wu[1],Am)):wu=1;Bt.scale=wu;cR?(cR=cR.pointers,bN=Qu(bN[1],bN[0],Am)-Qu(cR[1],cR[0],Am)):bN=0;Bt.rotation=bN;Gd=k6.lastInterval||Bt;bN=Bt.timeStamp-
Gd.timeStamp;Bt.eventType!=8&&(bN>25||Gd.velocity===E)?(wu=Gd.deltaX-Bt.deltaX,Gd=Gd.deltaY-Bt.deltaY,nU=wu/bN||0,$x=Gd/bN||0,bN=nU,cR=$x,nU=ZV(nU)>ZV($x)?nU:$x,wu=Wt(wu,Gd),k6.lastInterval=Bt):(nU=Gd.velocity,bN=Gd.velocityX,cR=Gd.velocityY,wu=Gd.direction);Bt.velocity=nU;Bt.velocityX=bN;Bt.velocityY=cR;Bt.direction=wu;k6=Ma.element;a:{for(bN=Bt.srcEvent.target;bN;){if(bN==k6){bN=!0;break a}bN=bN.parentNode}bN=!1}bN&&(k6=Bt.srcEvent.target);Bt.target=k6;Ma.emit("hammer.input",Bt);Ma.recognize(Bt);
Ma.session.prevInput=Bt}
function sc(Ma){for(var k6=[],Bt=0;Bt<Ma.pointers.length;Bt++)k6[Bt]={clientX:u9(Ma.pointers[Bt].clientX),clientY:u9(Ma.pointers[Bt].clientY)};return{timeStamp:QQ(),pointers:k6,center:hR(k6),deltaX:Ma.deltaX,deltaY:Ma.deltaY}}
function hR(Ma){var k6=Ma.length;if(k6===1)return{x:u9(Ma[0].clientX),y:u9(Ma[0].clientY)};for(var Bt=0,bN=0,cR=0;cR<k6;cR++)Bt+=Ma[cR].clientX,bN+=Ma[cR].clientY;return{x:u9(Bt/k6),y:u9(bN/k6)}}
function Wt(Ma,k6){return Ma===k6?1:ZV(Ma)>=ZV(k6)?Ma>0?2:4:k6>0?8:16}
function AR(Ma,k6,Bt){Bt||(Bt=dr);var bN=k6[Bt[0]]-Ma[Bt[0]];Ma=k6[Bt[1]]-Ma[Bt[1]];return Math.sqrt(bN*bN+Ma*Ma)}
function Qu(Ma,k6,Bt){Bt||(Bt=dr);return Math.atan2(k6[Bt[1]]-Ma[Bt[1]],k6[Bt[0]]-Ma[Bt[0]])*180/Math.PI}
function jj(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;f.apply(this,arguments)}
function x6(){this.evEl=yy;this.evWin=P7;f.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function L8(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};f.apply(this,arguments)}
function Y6(){f.apply(this,arguments);var Ma=b(this.handler,this);this.touch=new L8(this.manager,Ma);this.mouse=new jj(this.manager,Ma)}
function AZ(Ma,k6){this.manager=Ma;this.set(k6)}
function cU(Ma){if(Ma.indexOf("none")>-1)return"none";var k6=Ma.indexOf("pan-x")>-1,Bt=Ma.indexOf("pan-y")>-1;return k6&&Bt?"pan-x pan-y":k6||Bt?k6?"pan-x":"pan-y":Ma.indexOf("manipulation")>-1?"manipulation":"auto"}
function Xo(Ma){this.id=n7++;this.manager=null;this.options=m(Ma||{},this.defaults);Ma=this.options.enable;this.options.enable=Ma===E?!0:Ma;this.state=1;this.simultaneous={};this.requireFail=[]}
function U$(Ma){return Ma==16?"down":Ma==8?"up":Ma==2?"left":Ma==4?"right":""}
function WU(Ma,k6){return(k6=k6.manager)?k6.get(Ma):Ma}
function VQ(){Xo.apply(this,arguments)}
function b9(){VQ.apply(this,arguments);this.pY=this.pX=null}
function kx(){VQ.apply(this,arguments)}
function JR(){Xo.apply(this,arguments);this._input=this._timer=null}
function s$(){VQ.apply(this,arguments)}
function PU(){VQ.apply(this,arguments)}
function Uu(){Xo.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function jB(Ma,k6){k6=k6||{};var Bt=k6.recognizers;k6.recognizers=Bt===E?jB.defaults.preset:Bt;return new xx(Ma,k6)}
function xx(Ma,k6){k6=k6||{};this.options=m(k6,jB.defaults);this.options.inputTarget=this.options.inputTarget||Ma;this.handlers={};this.session={};this.recognizers=[];this.element=Ma;this.input=v(this);this.touchAction=new AZ(this,this.options.touchAction);qN(this,!0);u(k6.recognizers,function(Bt){var bN=this.add(new Bt[0](Bt[1]));Bt[2]&&bN.recognizeWith(Bt[2]);Bt[3]&&bN.requireFailure(Bt[2])},this)}
function qN(Ma,k6){var Bt=Ma.element;u(Ma.options.cssProps,function(bN,cR){Bt.style[O(Bt.style,cR)]=k6?bN:""})}
function Iv(Ma,k6){var Bt=q.createEvent("Event");Bt.initEvent(Ma,!0,!0);Bt.gesture=k6;k6.target.dispatchEvent(Bt)}
var CU=" webkit moz MS ms o".split(" "),ov=q.createElement("div"),u9=Math.round,ZV=Math.abs,QQ=Date.now,n7=1,u6=/mobile|tablet|ip(ad|hone|od)|android/i,ed="ontouchstart"in l,MQ=O(l,"PointerEvent")!==E,Ob=ed&&u6.test(navigator.userAgent),dr=["x","y"],Am=["clientX","clientY"];f.prototype={handler:function(){},
destroy:function(){this.evEl&&K(this.element,this.evEl,this.domHandler);this.evTarget&&K(this.target,this.evTarget,this.domHandler);this.evWin&&K(l,this.evWin,this.domHandler)}};
var lf={mousedown:1,mousemove:2,mouseup:4};U(jj,f,{handler:function(Ma){var k6=lf[Ma.type];k6&1&&Ma.button===0&&(this.pressed=!0);k6&2&&Ma.which!==1&&(k6=4);this.pressed&&this.allow&&(k6&4&&(this.pressed=!1),this.callback(this.manager,k6,{pointers:[Ma],changedPointers:[Ma],pointerType:"mouse",srcEvent:Ma}))}});
var qm={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Sh={2:"touch",3:"pen",4:"mouse",5:"kinect"},yy="pointerdown",P7="pointermove pointerup pointercancel";l.MSPointerEvent&&(yy="MSPointerDown",P7="MSPointerMove MSPointerUp MSPointerCancel");U(x6,f,{handler:function(Ma){var k6=this.store,Bt=!1,bN=Ma.type.toLowerCase().replace("ms","");bN=qm[bN];var cR=Sh[Ma.pointerType]||Ma.pointerType;bN&1&&(Ma.button===0||cR=="touch")?k6.push(Ma):bN&12&&(Bt=!0);var wu=L(k6,Ma.pointerId,"pointerId");
wu<0||(k6[wu]=Ma,this.callback(this.manager,bN,{pointers:k6,changedPointers:[Ma],pointerType:cR,srcEvent:Ma}),Bt&&k6.splice(wu,1))}});
var qU={touchstart:1,touchmove:2,touchend:4,touchcancel:8};U(L8,f,{handler:function(Ma){var k6=qU[Ma.type];var Bt=Array.prototype.slice.call(Ma.touches,0);var bN=this.targetIds;if(k6&3&&Bt.length===1)bN[Bt[0].identifier]=!0,bN=[Bt,Bt];else{var cR,wu=Array.prototype.slice.call(Ma.targetTouches,0),Gd=Array.prototype.slice.call(Ma.changedTouches,0),nU=[];if(k6===1)for(Bt=0,cR=wu.length;Bt<cR;Bt++)bN[wu[Bt].identifier]=!0;Bt=0;for(cR=Gd.length;Bt<cR;Bt++)bN[Gd[Bt].identifier]&&nU.push(Gd[Bt]),k6&12&&
delete bN[Gd[Bt].identifier];bN=nU.length?[T(wu.concat(nU),"identifier",!0),nU]:void 0}bN&&this.callback(this.manager,k6,{pointers:bN[0],changedPointers:bN[1],pointerType:"touch",srcEvent:Ma})}});
U(Y6,f,{handler:function(Ma,k6,Bt){var bN=Bt.pointerType=="mouse";if(Bt.pointerType=="touch")this.mouse.allow=!1;else if(bN&&!this.mouse.allow)return;k6&12&&(this.mouse.allow=!0);this.callback(Ma,k6,Bt)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var o9=O(ov.style,"touchAction"),RM=o9!==E;AZ.prototype={set:function(Ma){Ma=="compute"&&(Ma=this.compute());RM&&(this.manager.element.style[o9]=Ma);this.actions=Ma.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var Ma=[];u(this.manager.recognizers,function(k6){P(k6.options.enable,[k6])&&(Ma=Ma.concat(k6.getTouchAction()))});
return cU(Ma.join(" "))},
preventDefaults:function(Ma){if(!RM){var k6=Ma.srcEvent;Ma=Ma.offsetDirection;if(this.manager.session.prevented)k6.preventDefault();else{var Bt=this.actions,bN=Bt.indexOf("none")>-1,cR=Bt.indexOf("pan-y")>-1;Bt=Bt.indexOf("pan-x")>-1;if(bN||cR&&Bt||cR&&Ma&6||Bt&&Ma&24)return this.preventSrc(k6)}}},
preventSrc:function(Ma){this.manager.session.prevented=!0;Ma.preventDefault()}};
Xo.prototype={defaults:{},set:function(Ma){a(this.options,Ma);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(Ma){if(C(Ma,"recognizeWith",this))return this;var k6=this.simultaneous;Ma=WU(Ma,this);k6[Ma.id]||(k6[Ma.id]=Ma,Ma.recognizeWith(this));return this},
dropRecognizeWith:function(Ma){if(C(Ma,"dropRecognizeWith",this))return this;Ma=WU(Ma,this);delete this.simultaneous[Ma.id];return this},
requireFailure:function(Ma){if(C(Ma,"requireFailure",this))return this;var k6=this.requireFail;Ma=WU(Ma,this);L(k6,Ma)===-1&&(k6.push(Ma),Ma.requireFailure(this));return this},
dropRequireFailure:function(Ma){if(C(Ma,"dropRequireFailure",this))return this;Ma=WU(Ma,this);Ma=L(this.requireFail,Ma);Ma>-1&&this.requireFail.splice(Ma,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(Ma){return!!this.simultaneous[Ma.id]},
emit:function(Ma){function k6(cR){Bt.manager.emit(Bt.options.event+(cR?bN&16?"cancel":bN&8?"end":bN&4?"move":bN&2?"start":"":""),Ma)}
var Bt=this,bN=this.state;bN<8&&k6(!0);k6();bN>=8&&k6(!0)},
tryEmit:function(Ma){if(this.canEmit())return this.emit(Ma);this.state=32},
canEmit:function(){for(var Ma=0;Ma<this.requireFail.length;Ma++)if(!(this.requireFail[Ma].state&33))return!1;return!0},
recognize:function(Ma){Ma=a({},Ma);P(this.options.enable,[this,Ma])?(this.state&56&&(this.state=1),this.state=this.process(Ma),this.state&30&&this.tryEmit(Ma)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
U(VQ,Xo,{defaults:{pointers:1},attrTest:function(Ma){var k6=this.options.pointers;return k6===0||Ma.pointers.length===k6},
process:function(Ma){var k6=this.state,Bt=Ma.eventType,bN=k6&6;Ma=this.attrTest(Ma);return bN&&(Bt&8||!Ma)?k6|16:bN||Ma?Bt&4?k6|8:k6&2?k6|4:2:32}});
U(b9,VQ,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var Ma=this.options.direction;if(Ma===30)return["none"];var k6=[];Ma&6&&k6.push("pan-y");Ma&24&&k6.push("pan-x");return k6},
directionTest:function(Ma){var k6=this.options,Bt=!0,bN=Ma.distance,cR=Ma.direction,wu=Ma.deltaX,Gd=Ma.deltaY;cR&k6.direction||(k6.direction&6?(cR=wu===0?1:wu<0?2:4,Bt=wu!=this.pX,bN=Math.abs(Ma.deltaX)):(cR=Gd===0?1:Gd<0?8:16,Bt=Gd!=this.pY,bN=Math.abs(Ma.deltaY)));Ma.direction=cR;return Bt&&bN>k6.threshold&&cR&k6.direction},
attrTest:function(Ma){return VQ.prototype.attrTest.call(this,Ma)&&(this.state&2||!(this.state&2)&&this.directionTest(Ma))},
emit:function(Ma){this.pX=Ma.deltaX;this.pY=Ma.deltaY;var k6=U$(Ma.direction);k6&&this.manager.emit(this.options.event+k6,Ma);this._super.emit.call(this,Ma)}});
U(kx,VQ,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Ma){return this._super.attrTest.call(this,Ma)&&(Math.abs(Ma.scale-1)>this.options.threshold||this.state&2)},
emit:function(Ma){this._super.emit.call(this,Ma);Ma.scale!==1&&this.manager.emit(this.options.event+(Ma.scale<1?"in":"out"),Ma)}});
U(JR,Xo,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(Ma){var k6=this.options,Bt=Ma.pointers.length===k6.pointers,bN=Ma.distance<k6.threshold,cR=Ma.deltaTime>k6.time;this._input=Ma;if(!bN||!Bt||Ma.eventType&12&&!cR)this.reset();else if(Ma.eventType&1)this.reset(),this._timer=e(function(){this.state=8;this.tryEmit()},k6.time,this);
else if(Ma.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(Ma){this.state===8&&(Ma&&Ma.eventType&4?this.manager.emit(this.options.event+"up",Ma):(this._input.timeStamp=QQ(),this.manager.emit(this.options.event,this._input)))}});
U(s$,VQ,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Ma){return this._super.attrTest.call(this,Ma)&&(Math.abs(Ma.rotation)>this.options.threshold||this.state&2)}});
U(PU,VQ,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return b9.prototype.getTouchAction.call(this)},
attrTest:function(Ma){var k6=this.options.direction;if(k6&30)var Bt=Ma.velocity;else k6&6?Bt=Ma.velocityX:k6&24&&(Bt=Ma.velocityY);return this._super.attrTest.call(this,Ma)&&k6&Ma.direction&&ZV(Bt)>this.options.velocity&&Ma.eventType&4},
emit:function(Ma){var k6=U$(Ma.direction);k6&&this.manager.emit(this.options.event+k6,Ma);this.manager.emit(this.options.event,Ma)}});
U(Uu,Xo,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(Ma){var k6=this.options,Bt=Ma.pointers.length===k6.pointers,bN=Ma.distance<k6.threshold,cR=Ma.deltaTime<k6.time;this.reset();if(Ma.eventType&1&&this.count===0)return this.failTimeout();if(bN&&cR&&Bt){if(Ma.eventType!=4)return this.failTimeout();Bt=this.pTime?Ma.timeStamp-this.pTime<k6.interval:!0;bN=!this.pCenter||AR(this.pCenter,Ma.center)<k6.posThreshold;this.pTime=Ma.timeStamp;this.pCenter=Ma.center;bN&&Bt?this.count+=1:this.count=1;this._input=Ma;if(this.count%k6.taps===0)return this.hasRequireFailures()?
(this._timer=e(function(){this.state=8;this.tryEmit()},k6.interval,this),2):8}return 32},
failTimeout:function(){this._timer=e(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))}});
jB.VERSION="2.0.2";jB.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[s$,{enable:!1}],[kx,{enable:!1},["rotate"]],[PU,{direction:6}],[b9,{direction:6},["swipe"]],[Uu],[Uu,{event:"doubletap",taps:2},["tap"]],[JR]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};xx.prototype={set:function(Ma){a(this.options,Ma);return this},
stop:function(Ma){this.session.stopped=Ma?2:1},
recognize:function(Ma){var k6=this.session;if(!k6.stopped){this.touchAction.preventDefaults(Ma);var Bt=this.recognizers,bN=k6.curRecognizer;if(!bN||bN&&bN.state&8)bN=k6.curRecognizer=null;for(var cR=0,wu=Bt.length;cR<wu;cR++){var Gd=Bt[cR];k6.stopped===2||bN&&Gd!=bN&&!Gd.canRecognizeWith(bN)?Gd.reset():Gd.recognize(Ma);!bN&&Gd.state&14&&(bN=k6.curRecognizer=Gd)}}},
get:function(Ma){if(Ma instanceof Xo)return Ma;for(var k6=this.recognizers,Bt=0;Bt<k6.length;Bt++)if(k6[Bt].options.event==Ma)return k6[Bt];return null},
add:function(Ma){if(C(Ma,"add",this))return this;var k6=this.get(Ma.options.event);k6&&this.remove(k6);this.recognizers.push(Ma);Ma.manager=this;this.touchAction.update();return Ma},
remove:function(Ma){if(C(Ma,"remove",this))return this;var k6=this.recognizers;Ma=this.get(Ma);k6.splice(L(k6,Ma),1);this.touchAction.update();return this},
on:function(Ma,k6){var Bt=this.handlers;u(F(Ma),function(bN){Bt[bN]=Bt[bN]||[];Bt[bN].push(k6)});
return this},
off:function(Ma,k6){var Bt=this.handlers;u(F(Ma),function(bN){k6?Bt[bN].splice(L(Bt[bN],k6),1):delete Bt[bN]});
return this},
emit:function(Ma,k6){this.options.domEvents&&Iv(Ma,k6);var Bt=this.handlers[Ma]&&this.handlers[Ma].slice();if(Bt&&Bt.length){k6.type=Ma;k6.preventDefault=function(){k6.srcEvent.preventDefault()};
Ma=0;for(var bN=Bt.length;Ma<bN;Ma++)Bt[Ma](k6)}},
destroy:function(){this.element&&qN(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
a(jB,{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:xx,Input:f,TouchAction:AZ,Recognizer:Xo,AttrRecognizer:VQ,Tap:Uu,Pan:b9,Swipe:PU,Pinch:kx,Rotate:s$,Press:JR,on:Z,off:K,each:u,merge:m,extend:a,inherit:U,bindFn:b,prefixed:O});
l[t]=jB})(window,document,"Hammer");
return window.Hammer}.call({});
y.DOCUMENT=p;p[Cjx]=y}return p[Cjx]};/*

 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 RWr=function(p,y){if(p.length!==y.length)return!1;for(var l=0;l<p.length;++l)if(p[l]!==y[l])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var WmP=_.c(["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"]),a6$=WmP.next();!a6$.done;a6$=WmP.next()){var mrQ=a6$.value,Ur$=document.createElement("link");Ur$.rel="stylesheet";Ur$.href=mrQ;document.head.appendChild(Ur$)};var kkc,DZg,THt,Sfu,NHg,FCa,ijg,rLc;kkc={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};DZg={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:"*"};THt={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};Sfu=/[a-z0-9*]/;NHg=/U\+/;FCa=/^arrow/;ijg=/^space(bar)?/;rLc=/^escape$/;_.Ln={properties:{keyEventTarget:{type:Object,value:function(){return this}},
stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},
_imperativeKeyBindings:{type:Object,value:function(){return{}}}},
observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},
attached:function(){this._listenKeyEventListeners()},
detached:function(){this._unlistenKeyEventListeners()},
addOwnKeyBinding:function(p,y){this._imperativeKeyBindings[p]=y;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(p,y){y=BHo(y);for(var l=0;l<y.length;++l)if(HjR(y[l],p))return!0;return!1},
_collectKeyBindings:function(){var p=this.behaviors.map(function(y){return y.keyBindings});
p.indexOf(this.keyBindings)===-1&&p.push(this.keyBindings);return p},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(l){for(var q in l)this._addKeyBinding(q,l[q])},this);
for(var p in this._imperativeKeyBindings)this._addKeyBinding(p,this._imperativeKeyBindings[p]);for(var y in this._keyBindings)this._keyBindings[y].sort(function(l,q){l=l[0].hasModifiers;return l===q[0].hasModifiers?0:l?-1:1})},
_addKeyBinding:function(p,y){BHo(p).forEach(function(l){this._keyBindings[l.event]=this._keyBindings[l.event]||[];this._keyBindings[l.event].push([l,y])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(p){var y=this._onKeyBindingEvent.bind(this,this._keyBindings[p]);this._boundKeyHandlers.push([this.keyEventTarget,p,y]);this.keyEventTarget.addEventListener(p,y)},this)},
_unlistenKeyEventListeners:function(){for(var p,y,l;this._boundKeyHandlers.length;)p=this._boundKeyHandlers.pop(),y=p[0],l=p[1],p=p[2],y.removeEventListener(l,p)},
_onKeyBindingEvent:function(p,y){this.stopKeyboardEventPropagation&&y.stopPropagation();if(!y.defaultPrevented)for(var l=0;l<p.length;l++){var q=p[l][0],t=p[l][1];if(HjR(q,y)&&(this._triggerKeyHandler(q,t,y),y.defaultPrevented))break}},
_triggerKeyHandler:function(p,y,l){var q=Object.create(p);q.keyboardEvent=l;p=new CustomEvent(p.event,{detail:q,cancelable:!0});this[y].call(this,p);p.defaultPrevented&&l.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
*/
_.fv({is:"iron-a11y-keys",_template:null,behaviors:[_.Ln],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(p){this.keyEventTarget=p},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(p){this.fire("keys-pressed",p.detail,{})}});_.k0={properties:{focused:{type:Boolean,value:!1,notify:!0,readOnly:!0,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,notify:!0,observer:"_disabledChanged",reflectToAttribute:!0},_oldTabIndex:{type:String},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlurHandler.bind(this)}}},
observers:["_changedControlState(focused, disabled)"],ready:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0);this.addEventListener("blur",this._boundFocusBlurHandler,!0)},
_focusBlurHandler:function(p){this._setFocused(p.type==="focus")},
_disabledChanged:function(p){this.setAttribute("aria-disabled",p?"true":"false");this.style.pointerEvents=p?"none":"";p?(this._oldTabIndex=this.getAttribute("tabindex"),this._setFocused(!1),this.tabIndex=-1,this.blur()):this._oldTabIndex!==void 0&&(this._oldTabIndex===null?this.removeAttribute("tabindex"):this.setAttribute("tabindex",this._oldTabIndex))},
_changedControlState:function(){this._controlStateChanged&&this._controlStateChanged()}};var Nl={properties:{pressed:{type:Boolean,readOnly:!0,value:!1,reflectToAttribute:!0,observer:"_pressedChanged"},toggles:{type:Boolean,value:!1,reflectToAttribute:!0},active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},pointerDown:{type:Boolean,readOnly:!0,value:!1},receivedFocusFromKeyboard:{type:Boolean,readOnly:!0},ariaActiveAttribute:{type:String,value:"aria-pressed",observer:"_ariaActiveAttributeChanged"}},listeners:{down:"_downHandler",mouseup:"_upHandler",tap:"_tapHandler"},observers:["_focusChanged(focused)",
"_activeChanged(active, ariaActiveAttribute)"],keyBindings:{"enter:keydown":"_asyncClick","space:keydown":"_spaceKeyDownHandler","space:keyup":"_spaceKeyUpHandler"},_mouseEventRe:/^mouse/,_tapHandler:function(){this.toggles?this._userActivate(!this.active):this.active=!1},
_focusChanged:function(p){this._detectKeyboardFocus(p);p||this._setPressed(!1)},
_detectKeyboardFocus:function(p){this._setReceivedFocusFromKeyboard(!this.pointerDown&&p)},
_userActivate:function(p){this.active!==p&&(this.active=p,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(p){p=p.detail.keyboardEvent;var y=_.FK(p).localTarget;this.isLightDescendant(y)||(p.preventDefault(),p.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(p){p=_.FK(p.detail.keyboardEvent).localTarget;this.isLightDescendant(p)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(p,y){y&&y!=p&&this.hasAttribute(y)&&this.removeAttribute(y)},
_activeChanged:function(p){this.toggles?this.setAttribute(this.ariaActiveAttribute,p?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},$rr=[_.Ln,
Nl];_.Dr={IronButtonState:$rr,IronButtonStateImpl:Nl};_.HG={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.Tb=function(p){_.Tb[" "](p);this.type=p&&p.type||"default";this.key=p&&p.key;p&&"value"in p&&(this.value=p.value)};
_.Tb.prototype.byKey=function(p){this.key=p;return this.value};
_.Jh.Object.defineProperties(_.Tb.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var p=this.type,y=this.key;if(p&&y)return x0[p]&&x0[p][y]},
set:function(p){var y=this.type,l=this.key;y&&l&&(y=x0[y]=x0[y]||{},p==null?delete y[l]:y[l]=p)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var p=x0[this.type];return p?Object.keys(p).map(function(y){return x0[this.type][y]},this):[]}}});
_.Tb[" "]=function(){};
var x0={};_.fv({is:"iron-meta",_template:null,properties:{type:{type:String,value:"default"},key:{type:String},value:{type:String,notify:!0},self:{type:Boolean,observer:"_selfChanged"},__meta:{type:Boolean,computed:"__computeMeta(type, key, value)"}},hostAttributes:{hidden:!0},__computeMeta:function(p,y,l){p=new _.Tb({type:p,key:y});l!==void 0&&l!==p.value?p.value=l:this.value!==p.value&&(this.value=p.value);return p},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(p){p&&(this.value=this)},
byKey:function(p){return(new _.Tb({type:this.type,key:p})).value}});var jWP;jWP=null;_.BG={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){jWP=new _.Tb({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return jWP&&jWP.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(p){this.invalid=p===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(p);return!this.invalid},
_getValidity:function(p){return this.hasValidator()?this._validator.validate(p):!0}};var bXU={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"}},nor=[_.HG,
_.BG,bXU];_.fv({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 _.Tb({type:"iconset",key:null,value:null})},
attached:function(){this.style.display="none"},
getIconNames:function(){this._icons=this._createIconMap();return Object.keys(this._icons).map(function(p){return this.name+":"+p},this)},
applyIcon:function(p,y){this.removeIcon(p);if(y=this._cloneIcon(y,this.rtlMirroring&&this._targetIsRTL(p))){var l=_.FK(p.root||p);l.insertBefore(y,l.childNodes[0]);return p._svgIcon=y}return null},
removeIcon:function(p){p._svgIcon&&(_.FK(p.root||p).removeChild(p._svgIcon),p._svgIcon=null)},
_targetIsRTL:function(p){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(p&&p.nodeType!==Node.ELEMENT_NODE&&(p=p.host),this.__targetIsRTL=p&&window.getComputedStyle(p).direction==="rtl"));return this.__targetIsRTL},
_nameChanged:function(){this._meta.value=null;this._meta.key=this.name;this._meta.value=this;this.async(function(){this.fire("iron-iconset-added",this,{node:window})})},
_createIconMap:function(){var p=Object.create(null);_.FK(this).querySelectorAll("[id]").forEach(function(y){p[y.id]=y});
return p},
_cloneIcon:function(p,y){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[p],this.size,y)},
_prepareSvgClone:function(p,y,l){if(p){p=p.cloneNode(!0);var q=document.createElementNS("http://www.w3.org/2000/svg","svg");y=p.getAttribute("viewBox")||"0 0 "+y+" "+y;var t="pointer-events: none; display: block; width: 100%; height: 100%;";l&&p.hasAttribute("mirror-in-rtl")&&(t+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");q.setAttribute("viewBox",y);q.setAttribute("preserveAspectRatio","xMidYMid meet");q.setAttribute("focusable","false");q.style&&(q.style.cssText=
t);q.appendChild(p).removeAttribute("id");return q}return null}});var G4P=function(p){this.multi=!1;this.selection=[];this.selectCallback=p};
_.J=G4P.prototype;_.J.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.J.clear=function(p){this.selection.slice().forEach(function(y){(!p||p.indexOf(y)<0)&&this.setItemSelected(y,!1)},this)};
_.J.isSelected=function(p){return this.selection.indexOf(p)>=0};
_.J.setItemSelected=function(p,y){if(p!=null&&y!==this.isSelected(p)){if(y)this.selection.push(p);else{var l=this.selection.indexOf(p);l>=0&&this.selection.splice(l,1)}this.selectCallback&&this.selectCallback(p,y)}};
_.J.select=function(p){this.multi?this.toggle(p):this.get()!==p&&(this.setItemSelected(this.get(),!1),this.setItemSelected(p,!0))};
_.J.toggle=function(p){this.setItemSelected(p,!this.isSelected(p))};_.Jl={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 G4P(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.FK(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(p){return this.items?this.items.indexOf(p):-1},
select:function(p){this.selected=p},
selectPrevious:function(){var p=this.items.length,y=p-1;this.selected!==void 0&&(y=(Number(this._valueToIndex(this.selected))-1+p)%p);this.selected=this._indexToValue(y)},
selectNext:function(){var p=0;this.selected!==void 0&&(p=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(p)},
selectIndex:function(p){this.select(this._indexToValue(p))},
forceSynchronousItemUpdate:function(){this._observer&&typeof this._observer.flush==="function"?this._observer.flush():this._updateItems()},
get _shouldUpdateSelection(){return this.selected!=null},_checkFallback:function(){this._updateSelected()},
_addListener:function(p){this.listen(this,p,"_activateHandler")},
_removeListener:function(p){this.unlisten(this,p,"_activateHandler")},
_activateEventChanged:function(p,y){this._removeListener(y);this._addListener(p)},
_updateItems:function(){var p=_.FK(this).queryDistributedElements(this.selectable||"*");p=Array.prototype.filter.call(p,this._bindFilterItem);this._setItems(p)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var p=this._valueToItem(this.selected);p?this._selection.select(p):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(p){return!this._excludedLocalNames[p.localName]},
_valueToItem:function(p){return p==null?null:this.items[this._valueToIndex(p)]},
_valueToIndex:function(p){if(this.attrForSelected)for(var y=0,l;l=this.items[y];y++){if(this._valueForItem(l)==p)return y}else return Number(p)},
_indexToValue:function(p){if(this.attrForSelected){if(p=this.items[p])return this._valueForItem(p)}else return p},
_valueForItem:function(p){if(!p)return null;if(!this.attrForSelected)return p=this.indexOf(p),p===-1?null:p;var y=p[UM(this.attrForSelected)];return y!=void 0?y:p.getAttribute(this.attrForSelected)},
_applySelection:function(p,y){this.selectedClass&&this.toggleClass(this.selectedClass,y,p);this.selectedAttribute&&this.toggleAttribute.call(p,this.selectedAttribute,y);this._selectionChange();this.fire("iron-"+(y?"select":"deselect"),{item:p})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(p){return _.FK(p).observeNodes(function(y){this._updateItems();this._updateSelected();this.fire("iron-items-changed",y,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(p){p=p.target;for(var y=this.items;p&&p!=this;){var l=y.indexOf(p);if(l>=0){y=this._indexToValue(l);this._itemActivate(y,p);break}p=p.parentNode}},
_itemActivate:function(p,y){this.fire("iron-activate",{selected:p,item:y},{cancelable:!0}).defaultPrevented||this.select(p)}};var PjB={properties:{multi:{type:Boolean,value:!1,observer:"multiChanged"},selectedValues:{type:Array,notify:!0,value:function(){return[]}},
selectedItems:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}}},
observers:["_updateSelected(selectedValues.splices)"],select:function(p){this.multi?this._toggleSelected(p):this.selected=p},
multiChanged:function(p){this._selection.multi=p;this._updateSelected()},
get _shouldUpdateSelection(){return this.selected!=null||this.selectedValues!=null&&this.selectedValues.length},_updateAttrForSelected:function(){this.multi?this.selectedItems&&this.selectedItems.length>0&&(this.selectedValues=this.selectedItems.map(function(p){return this._indexToValue(this.indexOf(p))},this).filter(function(p){return p!=null},this)):_.Jl._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(p){p=p||[];p=(this._valuesToItems(p)||[]).filter(function(l){return l!==null&&l!==void 0});
this._selection.clear(p);for(var y=0;y<p.length;y++)this._selection.setItemSelected(p[y],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var p=this._selection.get();this.multi?(this._setSelectedItems(p),this._setSelectedItem(p.length?p[0]:null)):p!==null&&p!==void 0?(this._setSelectedItems([p]),this._setSelectedItem(p)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(p){var y=this.selectedValues.indexOf(p);y<0?this.push("selectedValues",p):this.splice("selectedValues",y,1)},
_valuesToItems:function(p){return p==null?null:p.map(function(y){return this._valueToItem(y)},this)}},AsB=[_.Jl,
PjB];var ZXi;
_.fn={properties:{focusedItem:{observer:"_focusedItemChanged",readOnly:!0,type:Object},attrForItemTitle:{type:String},disabled:{type:Boolean,value:!1,observer:"_disabledChanged"}},_MODIFIER_KEYS:"Alt AltGraph CapsLock Control Fn FnLock Hyper Meta NumLock OS ScrollLock Shift Super Symbol SymbolLock".split(" "),_SEARCH_RESET_TIMEOUT_MS:1E3,_previousTabIndex:0,hostAttributes:{role:"menu"},observers:["_updateMultiselectable(multi)"],listeners:{focus:"_onFocus",keydown:"_onKeydown","iron-items-changed":"_onIronItemsChanged"},keyBindings:{up:"_onUpKey",
down:"_onDownKey",esc:"_onEscKey","shift+tab:keydown":"_onShiftTabDown"},attached:function(){this._resetTabindices()},
select:function(p){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var y=this._valueToItem(p);y&&y.hasAttribute("disabled")||(this._setFocusedItem(y),PjB.select.apply(this,arguments))},
_resetTabindices:function(){var p=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(y){y.setAttribute("tabindex",y===p?"0":"-1");y.setAttribute("aria-selected",this._selection.isSelected(y))},this)},
_updateMultiselectable:function(p){p?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(p){if(this._MODIFIER_KEYS.indexOf(p.key)===-1){this.cancelDebouncer("_clearSearchText");var y=this._searchText||"";y+=(p.key&&p.key.length==1?p.key:String.fromCharCode(p.keyCode)).toLocaleLowerCase();p=y.length;for(var l=0,q;q=this.items[l];l++)if(!q.hasAttribute("disabled")){var t=this.attrForItemTitle||"textContent";t=(q[t]||q.getAttribute(t)||"").trim();if(!(t.length<p)&&t.slice(0,p).toLocaleLowerCase()==y){this._setFocusedItem(q);break}}this._searchText=y;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var p=this.items.length,y=Number(this.indexOf(this.focusedItem)),l=1;l<p+1;l++){var q=this.items[(y-l+p)%p];if(!q.hasAttribute("disabled")){var t=_.FK(q).getOwnerRoot()||document;this._setFocusedItem(q);if(_.FK(t).activeElement==q)break}}},
_focusNext:function(){for(var p=this.items.length,y=Number(this.indexOf(this.focusedItem)),l=1;l<p+1;l++){var q=this.items[(y+l)%p];if(!q.hasAttribute("disabled")){var t=_.FK(q).getOwnerRoot()||document;this._setFocusedItem(q);if(_.FK(t).activeElement==q)break}}},
_applySelection:function(p,y){y?p.setAttribute("aria-selected","true"):p.setAttribute("aria-selected","false");_.Jl._applySelection.apply(this,arguments)},
_focusedItemChanged:function(p,y){y&&y.setAttribute("tabindex","-1");!p||p.hasAttribute("disabled")||this.disabled||(p.setAttribute("tabindex","0"),p.focus())},
_onIronItemsChanged:function(p){p.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var p=this.getAttribute("tabindex");_.fn._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",p);_.fn._shiftTabPressed=!1},1)},
_onFocus:function(p){!_.fn._shiftTabPressed&&(p=_.FK(p).rootTarget,p===this||typeof p.tabIndex==="undefined"||this.isLightDescendant(p))&&(this._defaultFocusAsync=this.async(function(){var y=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);y?this._setFocusedItem(y):this.items[0]&&this._focusNext()}))},
_onUpKey:function(p){this._focusPrevious();p.detail.keyboardEvent.preventDefault()},
_onDownKey:function(p){this._focusNext();p.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var p=this.focusedItem;p&&p.blur()},
_onKeydown:function(p){this.keyboardEventMatchesKeys(p,"up down esc")||this._focusWithKeyboardEvent(p);p.stopPropagation()},
_activateHandler:function(p){_.Jl._activateHandler.call(this,p);p.stopPropagation()},
_disabledChanged:function(p){p?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};ZXi=[AsB,_.Ln,_.fn];_.Mor={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(p){this.focusedItem&&(this.focusedItem.click(),p.detail.keyboardEvent.preventDefault())},
_onDownKey:function(p){this.focusedItem&&(this.focusedItem.click(),p.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(p){return p.ctrlKey||p.shiftKey||p.altKey||p.metaKey},
_onLeftKey:function(p){this._isSpecialKey(p.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),p.detail.keyboardEvent.preventDefault())},
_onRightKey:function(p){this._isSpecialKey(p.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),p.detail.keyboardEvent.preventDefault())},
_onKeydown:function(p){this.keyboardEventMatchesKeys(p,"up down left right esc")||this._focusWithKeyboardEvent(p)}};
_.VoP=[ZXi,_.Mor];var goi;goi=new Set;_.vG={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):(goi.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(p){this.resizerShouldNotify(p)&&this._notifyDescendant(p)},this),this._fireResize())},
assignParentResizable:function(p){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=p)&&p._interestedResizables.indexOf(this)===-1&&(p._interestedResizables.push(this),p._subscribeIronResize(this))},
stopResizeNotificationsFor:function(p){var y=this._interestedResizables.indexOf(p);y>-1&&(this._interestedResizables.splice(y,1),this._unsubscribeIronResize(p))},
_subscribeIronResize:function(p){p.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(p){p.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(p){this._notifyingDescendant?p.stopPropagation():dF||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(p){var y=_.FK(p).rootTarget;y!==this&&(y.assignParentResizable(this),this._notifyDescendant(y),p.stopPropagation())},
_parentResizableChanged:function(p){p&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(p){this.isAttached&&(this._notifyingDescendant=!0,p.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var p=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function l(){document.removeEventListener("readystatechange",l);p()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(y){y!==this&&y._findParent()},this):(goi.forEach(function(y){y!==this&&y._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?goi.delete(this):goi.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
*/
_.QWr={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(p,y){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);y&&(p==="document"?this.scrollTarget=this._doc:typeof p==="string"?this.scrollTarget=(y=this.domHost)&&y.$?y.$[p]:_.FK(this.ownerDocument).querySelector("#"+p):this._isValidScrollTarget()&&(this._oldScrollTarget=p,this._toggleScrollListener(this._shouldHaveListener,p)))},
_scrollHandler:function(){},
get _defaultScrollTarget(){return this._doc},get _doc(){return this.ownerDocument.documentElement},get _scrollTop(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageYOffset:this.scrollTarget.scrollTop:0},get _scrollLeft(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageXOffset:this.scrollTarget.scrollLeft:0},set _scrollTop(p){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,p):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
p)},set _scrollLeft(p){this.scrollTarget===this._doc?window.scrollTo(p,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=p)},scroll:function(p,y){if(typeof p==="object"){var l=p.left;y=p.top}else l=p;l=l||0;y=y||0;this.scrollTarget===this._doc?window.scrollTo(l,y):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=l,this.scrollTarget.scrollTop=y)},
get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},
_toggleScrollListener:function(p,y){y=y===this._doc?window:y;p?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),y.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(y.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(p){this._shouldHaveListener=p;this._toggleScrollListener(p,this.scrollTarget)}};_.fv({is:"iron-selector",_template:null,behaviors:[AsB]});var XP={properties:{animationTiming:{type:Object,value:function(){return{duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"both"}}}},
isNeonAnimation:!0,created:function(){document.body.animate||console.warn("No web animations detected. This element will not function without a web animations polyfill.")},
timingFromConfig:function(p){if(p.timing)for(var y in p.timing)this.animationTiming[y]=p.timing[y];return this.animationTiming},
setPrefixedProperty:function(p,y,l){for(var q={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[y],t,E=0;t=q[E];E++)p.style[t]=l;p.style[y]=l},
complete:function(){}};_.fv({is:"fade-in-animation",_template:null,behaviors:[XP],configure:function(p){return this._effect=new KeyframeEffect(p.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(p))}});_.fv({is:"fade-out-animation",_template:null,behaviors:[XP],configure:function(p){return this._effect=new KeyframeEffect(p.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(p))}});var KmV=[{properties:{animationConfig:{type:Object},entryAnimation:{observer:"_entryAnimationChanged",type:String},exitAnimation:{observer:"_exitAnimationChanged",type:String}},_entryAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.entry=[{name:this.entryAnimation,node:this}]},
_exitAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.exit=[{name:this.exitAnimation,node:this}]},
_copyProperties:function(p,y){for(var l in y)p[l]=y[l]},
_cloneConfig:function(p){var y={isClone:!0};this._copyProperties(y,p);return y},
_getAnimationConfigRecursive:function(p,y,l){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 q=p?this.animationConfig[p]:this.animationConfig;Array.isArray(q)||(q=[q]);if(q)for(var t,E=0;t=q[E];E++)if(t.animatable)t.animatable._getAnimationConfigRecursive(t.type||p,y,l);else if(t.id){var e=y[t.id];
e?(e.isClone||(y[t.id]=this._cloneConfig(e),e=y[t.id]),this._copyProperties(e,t)):y[t.id]=t}else l.push(t)}},
getAnimationConfig:function(p){var y={},l=[];this._getAnimationConfigRecursive(p,y,l);for(var q in y)l.push(y[q]);return l}},
{_configureAnimations:function(p){var y=[],l=[];if(p.length>0)for(var q,t=0;q=p[t];t++){var E=document.createElement(q.name);if(E.isNeonAnimation){var e=null;E.configure||(E.configure=function(){return null});
e=E.configure(q);l.push({result:e,config:q})}else console.warn(this.is+":",q.name,"not found!")}for(p=0;p<l.length;p++){e=l[p].result;q=l[p].config;try{typeof e.cancel!="function"&&(e=document.timeline.play(e))}catch(C){e=null,console.warn("Couldnt play","(",q.name,").",C)}e&&y.push({neonAnimation:E,config:q,animation:e})}return y},
_shouldComplete:function(p){for(var y=!0,l=0;l<p.length;l++)if(p[l].animation.playState!="finished"){y=!1;break}return y},
_complete:function(p){for(var y=0;y<p.length;y++)p[y].neonAnimation.complete(p[y].config);for(y=0;y<p.length;y++)p[y].animation.cancel()},
playAnimation:function(p,y){var l=this.getAnimationConfig(p);if(l){this._active=this._active||{};this._active[p]&&(this._complete(this._active[p]),delete this._active[p]);var q=this._configureAnimations(l);if(q.length==0)this.fire("neon-animation-finish",y,{bubbles:!1});else for(this._active[p]=q,l=0;l<q.length;l++)q[l].animation.onfinish=function(){this._shouldComplete(q)&&(this._complete(q),delete this._active[p],this.fire("neon-animation-finish",y,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var p in this._active){var y=this._active[p],l;for(l in y)y[l].animation&&y[l].animation.cancel&&y[l].animation.cancel()}this._active={}}}];var P2=function(p,y){p=Error.call(this,p);this.message=p.message;"stack"in p&&(this.stack=p.stack);this.arg=y;this.name=this.constructor.name;this.constructor=P2;this.__proto__=P2.prototype};
_.A(P2,Error);var wNx=Cz(function(p){var y=function(){return p.apply(this,arguments)||this};
_.A(y,p);y.prototype._marshalArgs=function(l,q,t){q=p.prototype._marshalArgs.call(this,l,q,t);if(this._legacyUndefinedCheck&&q.length>1)for(t=0;t<q.length;t++)if(q[t]===void 0||l[t].wildcard&&q[t].base===void 0)throw l=l[t].name,new P2("Argument '"+l+"' is undefined.",l);return q};
y.prototype._addPropertyEffect=function(l,q,t){return p.prototype._addPropertyEffect.call(this,l,q,fI8(t,t&&t.info&&t.info.methodName))};
y._addTemplatePropertyEffect=function(l,q,t){return p._addTemplatePropertyEffect.call(this,l,q,fI8(t))};
return y}),iXP=_.fv.Class;
_.fv.Class=function(p,y){return iXP(p,function(l){return y?y(wNx(l)):wNx(l)})};
var rs$=Cz(function(p){var y=wNx(p);p=function(){return y.apply(this,arguments)||this};
_.A(p,y);_.Jh.Object.defineProperties(p.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return p}),SZ$=op.mixin;
op.mixin=SZ$?function(p){return rs$(SZ$(p))}:rs$;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.dn=_.Dr.IronButtonState;var Dwj=Xz;/*

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

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
*/
_.fv({_template:function(){if(LVi!==void 0)return LVi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-autogrow-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_autogrow_textarea.tp.yt.iron.autogrow.textarea.css.js--\x3e\n\n<div id="mirror" class="mirror-text style-scope tp-yt-iron-autogrow-textarea" aria-hidden="true" style-target="textarea">\u00a0</div>\n\n\n<div class="textarea-container fit style-scope tp-yt-iron-autogrow-textarea">\n  <textarea id="textarea" name$="[[name]]" aria-label$="[[label]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" autocapitalize$="[[autocapitalize]]" inputmode$="[[inputmode]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" disabled$="[[disabled]]" rows$="[[rows]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" style-target="textarea" class="style-scope tp-yt-iron-autogrow-textarea"></textarea>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;FVB===void 0&&(FVB=document.createElement("template"));var q=FVB;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return LVi=p},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.BG,_.k0],properties:{value:{observer:"_valueChanged",type:String,notify:!0},bindValue:{observer:"_bindValueChanged",type:String,notify:!0},rows:{type:Number,value:1,observer:"_updateCached"},maxRows:{type:Number,value:0,observer:"_updateCached"},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,value:!1},autocapitalize:{type:String,value:"none"},inputmode:{type:String},placeholder:{type:String},readonly:{type:String},required:{type:Boolean},
minlength:{type:Number},maxlength:{type:Number},label:{type:String}},listeners:{input:"_onInput"},get textarea(){return this.$.textarea},get selectionStart(){return this.$.textarea.selectionStart},get selectionEnd(){return this.$.textarea.selectionEnd},set selectionStart(p){this.$.textarea.selectionStart=p},set selectionEnd(p){this.$.textarea.selectionEnd=p},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var p=this.$.textarea.validity.valid;p&&(this.required&&this.value===""?p=!1:this.hasValidator()&&(p=_.BG.validate.call(this,this.value)));this.invalid=!p;this.fire("iron-input-validate");return p},
_bindValueChanged:function(p){this.value=p},
_valueChanged:function(p){var y=this.textarea;y&&(y.value!==p&&(y.value=p||p===0?p:""),this.bindValue=p,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(p){var y=_.FK(p).path;this.value=y?y[0].value:p.target.value},
_constrain:function(p){var y;p=p||[""];for(y=this.maxRows>0&&p.length>this.maxRows?p.slice(0,this.maxRows):p.slice(0);this.rows>0&&y.length<this.rows;)y.push("");return y.join("\n")+"\u00a0"},
_valueForMirror:function(){var p=this.textarea;if(p)return this.tokens=p&&p.value?p.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var kYQ;var NPx;_.fv({_template:function(){if(NPx!==void 0)return NPx;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-collapse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_collapse.tp.yt.iron.collapse.css.js--\x3e<slot class="style-scope tp-yt-iron-collapse"></slot>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
var y=p.content,l=y.insertBefore;kYQ===void 0&&(kYQ=document.createElement("template"));var q=kYQ;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return NPx=p},
is:"tp-yt-iron-collapse",behaviors:[_.vG],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dimension(){return this.horizontal?"width":"height"},get _dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCss(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group",
"aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened},
show:function(){this.opened=!0},
hide:function(){this.opened=!1},
updateSize:function(p,y){p=p==="auto"?"":p;y=y&&!this.noAnimation&&this.isAttached&&this._desiredSize!==p;this._desiredSize=p;this._updateTransition(!1);y&&(y=this._calcSize(),p===""&&(this.style[this._dimensionMax]="",p=this._calcSize()),this.style[this._dimensionMax]=y,this.scrollTop=this.scrollTop,this._updateTransition(!0),y=p!==y);this.style[this._dimensionMax]=p;y||this._transitionEnd()},
enableTransition:function(p){_.N6._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!p},
_updateTransition:function(p){this.style.transitionDuration=p&&!this.noAnimation?"":"0s"},
_horizontalChanged:function(){this.style.transitionProperty=this._dimensionMaxCss;this.style[this._dimensionMax==="maxWidth"?"maxHeight":"maxWidth"]="";this.updateSize(this.opened?"auto":"0px",!1)},
_openedChanged:function(){this.setAttribute("aria-hidden",!this.opened);this._setTransitioning(!0);this.toggleClass("iron-collapse-closed",!1);this.toggleClass("iron-collapse-opened",!1);this.updateSize(this.opened?"auto":"0px",!0);this.opened&&this.focus()},
_transitionEnd:function(){this.style[this._dimensionMax]=this._desiredSize;this.toggleClass("iron-collapse-closed",!this.opened);this.toggleClass("iron-collapse-opened",this.opened);this._updateTransition(!1);this.notifyResize();this._setTransitioning(!1)},
_onTransitionEnd:function(p){_.FK(p).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var DGP;var HFU;var TPB=void 0,xGQ={properties:{sizingTarget:{type:Object,value:function(){var p;return(p=this.hostElement)!=null?p:this}},
fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object},avoidOuterEdge:{type:Boolean,value:!1}},get _defaultPositionTarget(){var p,y=_.FK((p=this.hostElement)!=null?p:
this).parentNode;y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(y=y.host);return y},get _localeHorizontalAlign(){if(this._isRTL){if(this.horizontalAlign==="right")return"left";if(this.horizontalAlign==="left")return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){if(typeof this._memoizedIsRTL==="undefined"){var p;this._memoizedIsRTL=window.getComputedStyle((p=this.hostElement)!=null?p:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var p;window.getComputedStyle((p=this.hostElement)!=null?p:this).display==="none"?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit())}},
detached:function(){},
fit:function(){this.position();this.constrain();this.center()},
_discoverInfo:function(){if(!this._fitInfo){var p,y=window.getComputedStyle((p=this.hostElement)!=null?p:this);p=window.getComputedStyle(this.sizingTarget);var l,q,t;this._fitInfo={inlineStyle:{top:((l=this.hostElement)!=null?l:this).style.top||"",left:((q=this.hostElement)!=null?q:this).style.left||"",position:((t=this.hostElement)!=null?t:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:y.top!=="auto"?"top":y.bottom!=="auto"?"bottom":null,horizontally:y.left!=="auto"?"left":y.right!=="auto"?"right":null},sizedBy:{height:p.maxHeight!=="none",width:p.maxWidth!=="none",minWidth:parseInt(p.minWidth,10)||0,minHeight:parseInt(p.minHeight,10)||0},margin:{top:parseInt(y.marginTop,10)||0,right:parseInt(y.marginRight,10)||0,bottom:parseInt(y.marginBottom,10)||0,left:parseInt(y.marginLeft,10)||0}}}},
resetFit:function(){var p=this._fitInfo||{},y;for(y in p.sizerInlineStyle)this.sizingTarget.style[y]=p.sizerInlineStyle[y];for(y in p.inlineStyle){var l=void 0;((l=this.hostElement)!=null?l:this).style[y]=p.inlineStyle[y]}this._fitInfo=null},
refit:function(){var p=this.sizingTarget.scrollLeft,y=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=p;this.sizingTarget.scrollTop=y},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var p;((p=this.hostElement)!=null?p:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var y;((y=this.hostElement)!=null?y:this).style.left="0px";var l;((l=this.hostElement)!=null?l:this).style.top="0px";var q,t=((q=this.hostElement)!=null?q:this).getBoundingClientRect();y=this.__getNormalizedRect(this.positionTarget);q=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(q={left:q.left+24,right:q.right-24,top:q.top+24,bottom:q.bottom-24});if(this.expandSizingTargetForScrollbars){var E=this.sizingTarget.offsetWidth;var e=this.sizingTarget.offsetHeight;var C=this.sizingTarget.clientWidth;var u=this.sizingTarget.clientHeight}p=this._fitInfo.margin;y=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:t.width+p.left+p.right,height:t.height+p.top+p.bottom},t,y,q);var a=y.left+p.left,m=y.top+p.top;l=Math.min(q.right-p.right,a+t.width);var U=Math.min(q.bottom-
p.bottom,m+t.height);a=Math.max(q.left+p.left,Math.min(a,l-this._fitInfo.sizedBy.minWidth));m=Math.max(q.top+p.top,Math.min(m,U-this._fitInfo.sizedBy.minHeight));l=Math.max(l-a,this._fitInfo.sizedBy.minWidth);U=Math.max(U-m,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=l+"px";this.sizingTarget.style.maxHeight=U+"px";a-=t.left;t=m-t.top;var b;((b=this.hostElement)!=null?b:this).style.left=a+"px";var P;((P=this.hostElement)!=null?P:this).style.top=t+"px";if(this.expandSizingTargetForScrollbars){b=
this.sizingTarget.offsetHeight;e=b-this.sizingTarget.clientHeight-(e-u);if(e>0){this.sizingTarget.style.maxHeight=Math.min(q.height-p.top-p.bottom,U+e)+"px";e=this.sizingTarget.offsetHeight;u=e-b;var Z;y.verticalAlign==="top"?Z=t:y.verticalAlign==="middle"?Z=t-u/2:y.verticalAlign==="bottom"&&(Z=t-u);Z=Math.max(q.top+p.top,Math.min(Z,q.bottom-p.bottom-e));var K;((K=this.hostElement)!=null?K:this).style.top=Z+"px"}Z=this.sizingTarget.offsetWidth;E=Z-this.sizingTarget.clientWidth-(E-C);if(E>0){TPB!==
void 0?C=TPB:(C=document.createElement("div"),Object.assign(C.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),K=document.createElement("div"),K.style.width="200px",K.style.height="200px",C.appendChild(K),document.body.appendChild(C),TPB=Math.abs(C.offsetWidth-100)>1?C.offsetWidth-C.clientWidth:0,document.body.removeChild(C),C=TPB);this.sizingTarget.style.maxWidth=Math.min(q.width-p.left-p.right,l+E-C)+"px";E=this.sizingTarget.offsetWidth+C;C=E-Z;var F;
y.horizontalAlign==="left"?F=a:y.horizontalAlign==="center"?F=a-C/2:y.horizontalAlign==="right"&&(F=a-C);F=Math.max(q.left+p.left,Math.min(F,q.right-p.right-E));var L;((L=this.hostElement)!=null?L:this).style.left=F+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var p=this._fitInfo;if(!p.positionedBy.vertically){var y;((y=this.hostElement)!=null?y:this).style.position="fixed";var l;((l=this.hostElement)!=null?l:this).style.top="0px"}if(!p.positionedBy.horizontally){var q;((q=this.hostElement)!=null?q:this).style.position="fixed";var t;((t=this.hostElement)!=null?t:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var E;y=((E=this.hostElement)!=null?E:this).getBoundingClientRect();
p.sizedBy.height||this.__sizeDimension(y,p.positionedBy.vertically,"top","bottom","Height");p.sizedBy.width||this.__sizeDimension(y,p.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(p,y,l,q,t){this.__sizeDimension(p,y,l,q,t)},
__sizeDimension:function(p,y,l,q,t){var E=this._fitInfo,e=this.__getNormalizedRect(this.fitInto);e=t==="Width"?e.width:e.height;p=(y=y===q)?e-p[q]:p[l];l=E.margin[y?l:q];q="offset"+t;var C;E=((C=this.hostElement)!=null?C:this)[q]-this.sizingTarget[q];this.sizingTarget.style["max"+t]=e-l-p-E+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var p=this._fitInfo.positionedBy;if(!p.vertically||!p.horizontally){var y;((y=this.hostElement)!=null?y:this).style.position="fixed";if(!p.vertically){var l;((l=this.hostElement)!=null?l:this).style.top="0px"}if(!p.horizontally){var q;((q=this.hostElement)!=null?q:this).style.left="0px"}var t;y=((t=this.hostElement)!=null?t:this).getBoundingClientRect();t=this.__getNormalizedRect(this.fitInto);if(!p.vertically){l=t.top-y.top+(t.height-
y.height)/2;var E;((E=this.hostElement)!=null?E:this).style.top=l+"px"}if(!p.horizontally){p=t.left-y.left+(t.width-y.width)/2;var e;((e=this.hostElement)!=null?e:this).style.left=p+"px"}}}},
__getNormalizedRect:function(p){return p===document.documentElement||p===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:p.getBoundingClientRect()},
__getOffscreenArea:function(p,y,l){return Math.abs(Math.min(0,p.top)+Math.min(0,l.bottom-(p.top+y.height)))*y.width+Math.abs(Math.min(0,p.left)+Math.min(0,l.right-(p.left+y.width)))*y.height},
__getPosition:function(p,y,l,q,t,E){var e=[{verticalAlign:"top",horizontalAlign:"left",top:t.top+this.verticalOffset,left:t.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:t.top+this.verticalOffset,left:t.right-l.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:t.bottom-l.height-this.verticalOffset,left:t.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:t.bottom-l.height-this.verticalOffset,left:t.right-l.width-
this.horizontalOffset}];if(this.noOverlap){for(var C=0,u=e.length;C<u;C++){var a={},m;for(m in e[C])a[m]=e[C][m];e.push(a)}e[0].top=e[1].top+=t.height;e[2].top=e[3].top-=t.height;e[4].left=e[6].left+=t.width;e[5].left=e[7].left-=t.width}y=y==="auto"?null:y;p=p==="auto"?null:p;p&&p!=="center"||(e.push({verticalAlign:"top",horizontalAlign:"center",top:t.top+this.verticalOffset+(this.noOverlap?t.height:0),left:t.left-q.width/2+t.width/2+this.horizontalOffset}),e.push({verticalAlign:"bottom",horizontalAlign:"center",
top:t.bottom-l.height-this.verticalOffset-(this.noOverlap?t.height:0),left:t.left-q.width/2+t.width/2+this.horizontalOffset}));y&&y!=="middle"||(e.push({verticalAlign:"middle",horizontalAlign:"left",top:t.top-q.height/2+t.height/2+this.verticalOffset,left:t.left+this.horizontalOffset+(this.noOverlap?t.width:0)}),e.push({verticalAlign:"middle",horizontalAlign:"right",top:t.top-q.height/2+t.height/2+this.verticalOffset,left:t.right-l.width-this.horizontalOffset-(this.noOverlap?t.width:0)}));y==="middle"&&
p==="center"&&e.push({verticalAlign:"middle",horizontalAlign:"center",top:t.top-q.height/2+t.height/2+this.verticalOffset,left:t.left-q.width/2+t.width/2+this.horizontalOffset});for(C=0;C<e.length;C++){q=e[C];t=q.verticalAlign===y;u=q.horizontalAlign===p;if(!this.dynamicAlign&&!this.noOverlap&&t&&u){var U=q;break}a=(!y||t)&&(!p||u);if(this.dynamicAlign||a){q.offscreenArea=this.__getOffscreenArea(q,l,E);if(q.offscreenArea===0&&a){U=q;break}q.alignsOk=t+u;U=U||q;t=q.offscreenArea-U.offscreenArea;if(t<
0||t===0&&q.alignsOk>U.alignsOk)U=q}}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 qv,BPP,fyB;qv=Element.prototype;BPP=qv.matches||qv.matchesSelector||qv.mozMatchesSelector||qv.msMatchesSelector||qv.oMatchesSelector||qv.webkitMatchesSelector;fyB=function(){};
_.Xnv=function(p){var y=vFr,l=[];return y._collectTabbableNodes(p,l)?y._sortByTabIndex(l):l};
_.J=fyB.prototype;_.J._normalizedTabIndex=function(p){return(BPP.call(p,"input, select, textarea, button, object")?BPP.call(p,":not([disabled])"):BPP.call(p,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(p=p.getAttribute("tabindex")||0,Number(p)):-1};
_.J._collectTabbableNodes=function(p,y){if(p.nodeType!==Node.ELEMENT_NODE||!this._isVisible(p))return!1;var l=this._normalizedTabIndex(p),q=l>0;l>=0&&y.push(p);if(p.localName==="content"||p.localName==="slot")l=_.FK(p).getDistributedNodes();else{var t;l=((t=_.FK(p).shadowRoot)!=null?t:_.FK(p.root||p)).children}for(p=0;p<l.length;p++)q=this._collectTabbableNodes(l[p],y)||q;return q};
_.J._isVisible=function(p){var y=p.style;return y.visibility!=="hidden"&&y.display!=="none"?(y=window.getComputedStyle(p),y.visibility!=="hidden"&&y.display!=="none"):!1};
_.J._sortByTabIndex=function(p){var y=p.length;if(y<2)return p;var l=Math.ceil(y/2);y=this._sortByTabIndex(p.slice(0,l));p=this._sortByTabIndex(p.slice(l));return this._mergeSortByTabIndex(y,p)};
_.J._mergeSortByTabIndex=function(p,y){for(var l=[];p.length>0&&y.length>0;)this._hasLowerTabOrder(p[0],y[0])?l.push(y.shift()):l.push(p.shift());return l.concat(p,y)};
_.J._hasLowerTabOrder=function(p,y){p=Math.max(p.tabIndex,0);y=Math.max(y.tabIndex,0);return p===0||y===0?y>p:p>y};
var vFr=new fyB;var dGU;var OFv;_.fv({_template:function(){if(OFv!==void 0)return OFv;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-overlay-backdrop--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_overlay_backdrop.tp.yt.iron.overlay.backdrop.css.js--\x3e<slot class="style-scope tp-yt-iron-overlay-backdrop"></slot>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;dGU===void 0&&(dGU=document.createElement("template"));var q=dGU;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return OFv=p},
is:"tp-yt-iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},
attached:function(){this.opened&&this._openedChanged(this.opened)},
prepare:function(){this.opened&&!this.parentNode&&_.FK(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.FK(this.parentNode).removeChild(this)},
_onTransitionend:function(p){p&&p.target===this&&this.complete()},
_openedChanged:function(p){p?this.prepare():(p=window.getComputedStyle(this),p.transitionDuration!=="0s"&&p.opacity!=0||this.complete());this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null;this.toggleClass("opened",this.opened)}.bind(this)))}});var sx=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;Te(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)};
sx.prototype._bringOverlayAtIndexToFront=function(p){var y=this._overlays[p];if(y){var l=this._overlays.length-1,q=this._overlays[l];q&&this._shouldBeBehindOverlay(y,q)&&l--;if(!(p>=l)){q=Math.max(this._getZ(_.oFU(this)),this._minimumZ);for(this._getZ(y)<=q&&this._applyOverlayZ(y,q);p<l;)this._overlays[p]=this._overlays[p+1],p++;this._overlays[l]=y}}};
sx.prototype.addOverlay=function(p){var y=this._overlays.indexOf(p);if(y>=0)this._bringOverlayAtIndexToFront(y);else{y=this._overlays.length;var l=this._overlays[y-1],q=Math.max(this._getZ(l),this._minimumZ),t=this._getZ(p);l&&this._shouldBeBehindOverlay(p,l)&&(this._applyOverlayZ(l,q),y--,q=Math.max(this._getZ(this._overlays[y-1]),this._minimumZ));t<=q&&this._applyOverlayZ(p,q);this._overlays.splice(y,0,p)}this.trackBackdrop()};
sx.prototype.removeOverlay=function(p){p=this._overlays.indexOf(p);p!==-1&&(this._overlays.splice(p,1),this.trackBackdrop())};
_.oFU=function(p){return p._overlays[p._overlays.length-1]};
_.J=sx.prototype;_.J.trackBackdrop=function(){var p=this._overlayWithBackdrop();if(p||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(p)-1,this.backdropElement.opened=!!p,this.backdropElement.prepare()};
_.J._overlayWithBackdrop=function(){for(var p=this._overlays.length-1;p>=0;p--)if(this._overlays[p].withBackdrop)return this._overlays[p]};
_.J._getZ=function(p){var y=this._minimumZ;if(p){var l,q,t=Number(((l=p.hostElement)!=null?l:p).style.zIndex||window.getComputedStyle((q=p.hostElement)!=null?q:p).zIndex);t===t&&(y=t)}return y};
_.J._setZ=function(p,y){var l;((l=p.hostElement)!=null?l:p).style.zIndex=y};
_.J._applyOverlayZ=function(p,y){this._setZ(p,y+2)};
_.J._overlayInPath=function(p){p=p||[];for(var y=0;y<p.length;y++){var l=void 0;if(((l=p[y].polymerController)!=null?l:p[y])._manager===this)return p[y]}};
_.J._onCaptureClick=function(p){var y=this._overlays.length-1;if(y!==-1)for(var l=_.FK(p).path,q,t;(q=this._overlays[y])&&this._overlayInPath(l)!==((t=q.hostElement)!=null?t:q);)if(q._onCaptureClick(p),q.allowClickThrough)y--;else break};
_.J._onCaptureFocus=function(p){var y=_.oFU(this);y&&y._onCaptureFocus(p)};
_.J._onCaptureKeyDown=function(p){var y=_.oFU(this);y&&(_.Ln.keyboardEventMatchesKeys(p,"esc")?y._onCaptureEsc(p):_.Ln.keyboardEventMatchesKeys(p,"tab")&&y._onCaptureTab(p))};
_.J._shouldBeBehindOverlay=function(p,y){return!p.alwaysOnTop&&y.alwaysOnTop&&!y.contains(p)};
_.Jh.Object.defineProperties(sx.prototype,{backdropElement:{configurable:!0,enumerable:!0,get:function(){this._backdropElement||(this._backdropElement=document.createElement("tp-yt-iron-overlay-backdrop"));return this._backdropElement}},
deepActiveElement:{configurable:!0,enumerable:!0,get:function(){var p=document.activeElement;p&&p instanceof Element!==!1||(p=document.body);for(;p.root&&_.FK(p.root).activeElement;)p=_.FK(p.root).activeElement;return p}}});
_.tT=new sx;var avt=0,mDo=0,UD6=null,$Dt=[],Lx=["wheel","mousewheel","DOMMouseScroll"],j2t;_.n("web_no_lock_on_touchstart_killswitch")&&(Lx.push("touchstart"),Lx.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;_.Ex={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:_.tT},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var p;return this._focusedChild||_.FK((p=this.hostElement)!=null?p:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var p;return _.Xnv((p=this.hostElement)!=null?p:this)},ready:function(){this.__shouldRemoveTabIndex=
this.__isAnimating=!1;this.__firstFocusableNode=this.__lastFocusableNode=null;this.__rafs={};this.__scrollTop=this.__scrollLeft=this.__restoreFocusNode=null;this.__onCaptureScroll=this.__onCaptureScroll.bind(this);this.__rootNodes=null;this._ensureSetup()},
attached:function(){this.opened&&this._openedChanged(this.opened);var p;this._observer=_.FK((p=this.hostElement)!=null?p:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var p;_.FK((p=this.hostElement)!=null?p:this).unobserveNodes(this._observer)}this._observer=null;for(var y in this.__rafs)this.__rafs[y]!==null&&cancelAnimationFrame(this.__rafs[y]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(p){this.fire("iron-overlay-canceled",p,{cancelable:!0}).defaultPrevented||(this._setCanceled(!0),this.opened=!1)},
invalidateTabbables:function(){this.__firstFocusableNode=this.__lastFocusableNode=null},
_ensureSetup:function(){if(!this._overlaySetup){this._overlaySetup=!0;var p;((p=this.hostElement)!=null?p:this).style.outline="none";var y;((y=this.hostElement)!=null?y:this).style.display="none"}},
_openedChanged:function(p){if(p){var y;((y=this.hostElement)!=null?y:this).removeAttribute("aria-hidden")}else{var l;((l=this.hostElement)!=null?l:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var p;if(this.withBackdrop&&!((p=this.hostElement)!=null?p:this).hasAttribute("tabindex")){var y;((y=this.hostElement)!=null?y:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var l;((l=this.hostElement)!=null?l:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var p;((p=this.hostElement)!=null?p:this).style.display="none";var y;((y=this.hostElement)!=null?y:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var p,y;((p=this.hostElement)!=null?p:this).style.transition=((y=this.hostElement)!=null?y:this).style.webkitTransition="none";var l,q;((l=this.hostElement)!=null?l:this).style.transform=((q=this.hostElement)!=null?q:this).style.webkitTransform="none";var t;((t=this.hostElement)!=null?t:this).style.display=""},
_finishPositioning:function(){var p;((p=this.hostElement)!=null?p:this).style.display="none";this.scrollTop=this.scrollTop;var y,l;((y=this.hostElement)!=null?y:this).style.transition=((l=this.hostElement)!=null?l:this).style.webkitTransition="";var q,t;((q=this.hostElement)!=null?q:this).style.transform=((t=this.hostElement)!=null?t:this).style.webkitTransform="";var E;((E=this.hostElement)!=null?E:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var p=this._manager.deepActiveElement,y;if(!(y=p===document.body))a:{for(;p;p=p.assignedSlot||p.parentNode||p.host)if(p===this){y=!0;break a}y=!1}y&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(p){this.noCancelOnOutsideClick||this.cancel(p)},
_onCaptureFocus:function(p){if(this.withBackdrop){var y=_.FK(p).path;y.indexOf(this)===-1?(p.stopPropagation(),this._applyFocus()):this._focusedChild=y[0]}},
_onCaptureEsc:function(p){this.noCancelOnEscKey||this.cancel(p)},
_onCaptureTab:function(p){if(this.withBackdrop){this.__ensureFirstLastFocusables();var y=p.shiftKey,l=y?this.__firstFocusableNode:this.__lastFocusableNode;y=y?this.__lastFocusableNode:this.__firstFocusableNode;if(l===y)l=!0;else{var q=this._manager.deepActiveElement;l=q===l||q===this}l&&(p.preventDefault(),this._focusedChild=y,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var p=this._focusableNodes;this.__firstFocusableNode=p[0];this.__lastFocusableNode=p[p.length-1]},
__openedChanged:function(){this.opened?(this._prepareRenderOpened(),this._manager.addOverlay(this),this._applyFocus(),this._renderOpened()):(this._manager.removeOverlay(this),this._applyFocus(),this._renderClosed())},
__deraf:function(p,y){var l=this.__rafs;l[p]!==null&&cancelAnimationFrame(l[p]);l[p]=requestAnimationFrame(function(){l[p]=null;y.call(this)}.bind(this))},
__updateScrollObservers:function(p,y,l){p&&y&&this.__isValidScrollAction(l)?(l==="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),j2t=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-1],_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=
[],_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[])),this.__addScrollListeners()):(p=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),p!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(p,1),j2t=_._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(dF)for(var p=this;p;)p.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&p.host&&this.__rootNodes.push(p),p=p.host||p.assignedSlot||p.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(y){y.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(p){p.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(p){return p==="lock"||p==="refit"||p==="cancel"},
__onCaptureScroll:function(p){if(!(this.__isAnimating||_.FK(p).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(p)}},
__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},
__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}};
_.JT=[xGQ,_.vG,_.Ex];_.fv({_template:function(){if(HFU!==void 0)return HFU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_dropdown.tp.yt.iron.dropdown.css.js--\x3e<div id="contentWrapper" class="style-scope tp-yt-iron-dropdown">\n  <slot id="content" name="dropdown-content" class="style-scope tp-yt-iron-dropdown"></slot>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;DGP===void 0&&(DGP=document.createElement("template"));var q=DGP;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return HFU=p},
is:"tp-yt-iron-dropdown",behaviors:[_.k0,_.Ln,_.JT,KmV],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"],
get containedElement(){for(var p=_.FK(this.$.content).getDistributedNodes(),y=0,l=p.length;y<l;y++)if(p[y].nodeType===Node.ELEMENT_NODE)return p[y]},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(),_.Ex._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.Ex._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.Ex._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var p=this.containedElement,y=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),l=0;l<y.length;l++)y[l].node=p;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(p){this._readied&&(p?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var p=this.focusTarget||this.containedElement;p&&this.opened&&!this.noAutoFocus?p.focus():_.Ex._applyFocus.apply(this,arguments)}});var zQP;var YwO;/*

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 Iy$=new _.Tb({type:"iconset"});
_.fv({_template:function(){if(YwO!==void 0)return YwO;var p=document.createElement("template");_.M(p,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_icon.tp.yt.iron.icon.css.js--\x3e\n");p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;zQP===void 0&&(zQP=document.createElement("template"));
var q=zQP;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return YwO=p},
is:"tp-yt-iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String}},observers:["_updateIcon(isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(p){p=(p||"").split(":");this._iconName=p.pop();this._iconsetName=p.pop()||this._DEFAULT_ICONSET;this._updateIcon()},
_srcChanged:function(){this._updateIcon()},
_usesIconset:function(){return this.icon||!this.src},
_updateIcon:function(){if(this._usesIconset())if(this._img&&this._img.parentNode&&_.FK(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=Iy$.byKey(this._iconsetName)){var p=this._iconset.applyIcon(this,this._iconName,this.theme);p&&p.setAttribute("aria-hidden","true");this.unlisten(window,"iron-iconset-added","_updateIcon")}else this.listen(window,"iron-iconset-added","_updateIcon")}else this._iconset&&this._iconset.removeIcon(this),
this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,_.FK(this.root).appendChild(this._img)}});var p3r;var y2M;_.fv({_template:function(){if(y2M!==void 0)return y2M;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_input.tp.yt.iron.input.css.js--\x3e<slot id="content" class="style-scope tp-yt-iron-input"></slot>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
var y=p.content,l=y.insertBefore;p3r===void 0&&(p3r=document.createElement("template"));var q=p3r;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return y2M=p},
is:"tp-yt-iron-input",behaviors:[_.BG],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(){_.lc.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.FK(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.FK(this).unobserveNodes(this._observer),this._observer=null)},
get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0];this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value);this.fire("iron-input-ready")},
get _patternRegExp(){if(this.allowedPattern)var p=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":p=/[0-9.,e-]/}return p},_bindValueChanged:function(p,y){y&&(p===void 0?y.value=null:p!==y.value&&(this.inputElement.value=p),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:p}))},
_onInput:function(){!this.allowedPattern||this._patternAlreadyChecked||this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.inputElement.value=this._previousValidInput);this.bindValue=this._previousValidInput=this.inputElement.value;this._patternAlreadyChecked=!1},
_isPrintable:function(p){var y=p.keyCode==19||p.keyCode==20||p.keyCode==45||p.keyCode==46||p.keyCode==144||p.keyCode==145||p.keyCode>32&&p.keyCode<41||p.keyCode>111&&p.keyCode<124;return!(p.keyCode==8||p.keyCode==9||p.keyCode==13||p.keyCode==27)&&!(p.charCode==0&&y)},
_onKeypress:function(p){if(this.allowedPattern||this.inputElement.type==="number"){var y=this._patternRegExp;if(y&&!(p.metaKey||p.ctrlKey||p.altKey)){this._patternAlreadyChecked=!0;var l=String.fromCharCode(p.charCode);this._isPrintable(p)&&!y.test(l)&&(p.preventDefault(),this._announceInvalidCharacter("Invalid character "+l+" not entered."))}}},
_checkPatternValidity:function(){var p=this._patternRegExp;if(!p)return!0;for(var y=0;y<this.inputElement.value.length;y++)if(!p.test(this.inputElement.value[y]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var p=this.inputElement.checkValidity();p&&(this.required&&this.bindValue===""?p=!1:this.hasValidator()&&(p=_.BG.validate.call(this,this.bindValue)));this.invalid=!p;this.fire("iron-input-validate");return p},
_announceInvalidCharacter:function(p){this.fire("iron-announce",{text:p})},
_computeValue:function(p){return p}});var lQi;var qPO;var sAV=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),tPB=sAV&&sAV[1]>=8;
_.fv({_template:function(){if(qPO!==void 0)return qPO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;lQi===void 0&&(lQi=document.createElement("template"));var q=lQi;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return qPO=p},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[HHl,_.vG,_.QWr,mE$],_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 _.FK(_.FK(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var p=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,p-this._physicalCount)},set _virtualStart(p){p=this._clamp(p,0,this._maxVirtualStart);this.grid&&(p-=p%this._itemsPerRow);this._virtualStartVal=p},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(p){p%=this._physicalCount;p<0&&(p=this._physicalCount+p);this.grid&&(p-=p%this._itemsPerRow);this._physicalStartVal=p},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(p){this._physicalCountVal=p},get _physicalCount(){return this._physicalCountVal||0},get _optPhysicalSize(){return this._viewportHeight===0?Infinity:this._viewportHeight*this._maxPages},get _isVisible(){return!(!this.offsetWidth&&!this.offsetHeight)},get firstVisibleIndex(){var p=this._firstVisibleIndexVal;if(p==null){var y=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
p=this._iterateItems(function(l,q){y+=this._getPhysicalSizeIncrement(l);if(y>this._scrollPosition)return this.grid?q-q%this._itemsPerRow:q;if(this.grid&&this._virtualCount-1===q)return q-q%this._itemsPerRow})||0}return p},
get lastVisibleIndex(){var p=this._lastVisibleIndexVal;if(p==null){if(this.grid)p=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var y=this._physicalTop+this._scrollOffset;this._iterateItems(function(l,q){y<this._scrollBottom&&(p=q);y+=this._getPhysicalSizeIncrement(l)})}this._lastVisibleIndexVal=p}return p},
get _defaultScrollTarget(){return this},get _virtualRowCount(){return Math.ceil(this._virtualCount/this._itemsPerRow)},get _estRowsInView(){return Math.ceil(this._viewportHeight/this._rowHeight)},get _physicalRows(){return Math.ceil(this._physicalCount/this._itemsPerRow)},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},ready:function(){this.addEventListener("focus",this._didFocus.bind(this),!0)},
attached:function(){this._debounce("_render",this._render,_.fl);this.listen(this,"iron-resize","_resizeHandler");this.listen(this,"keydown","_keydownHandler")},
detached:function(){this.unlisten(this,"iron-resize","_resizeHandler");this.unlisten(this,"keydown","_keydownHandler")},
_setOverflow:function(p){this.style.webkitOverflowScrolling=p===this?"touch":"";this.style.overflowY=p===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.fl)},
updateViewportBoundaries:function(){var p=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(p["padding-top"],10);this._isRTL=p.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var p=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),y=p-this._scrollPosition,l=y>=0;this._scrollPosition=p;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(y)>this._physicalSize&&this._physicalSize>0?(y-=this._scrollOffset,l=Math.round(y/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=l,this._physicalStart+=l,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(p=this._getReusables(l),l?(this._physicalTop=p.physicalTop,this._virtualStart+=p.indexes.length,this._physicalStart+=p.indexes.length):(this._virtualStart=this._virtualStart-p.indexes.length,this._physicalStart=this._physicalStart-p.indexes.length),this._update(p.indexes,l?null:p.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ft))},
_getReusables:function(p){var y=[],l=this._hiddenContentSize*this._ratio,q=this._virtualStart,t=this._virtualEnd,E=this._physicalCount,e=this._physicalTop+this._scrollOffset;var C=this._physicalBottom+this._scrollOffset;var u=this._scrollPosition,a=this._scrollBottom;if(p){var m=this._physicalStart;C=u-e}else m=this._physicalEnd,C-=a;for(;;){var U=this._getPhysicalSizeIncrement(m);C-=U;if(y.length>=E||C<=l)break;if(p){if(t+y.length+1>=this._virtualCount)break;if(e+U>=u-this._scrollOffset)break;y.push(m);
e+=U;m=(m+1)%E}else{if(q-y.length<=0)break;if(e+this._physicalSize-U<=a)break;y.push(m);e-=U;m=m===0?E-1:m-1}}return{indexes:y,physicalTop:e-this._scrollOffset}},
_update:function(p,y){if(!(p&&p.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(p);this._updateMetrics(p);if(y)for(;y.length;)p=y.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(p);this._positionItems();this._updateScrollerSize()}},
_createPool:function(p){this._ensureTemplatized();var y,l=Array(p);for(y=0;y<p;y++){var q=this.stamp(null);l[y]=q.root.querySelector("*");this._itemsParent.appendChild(q.root)}return l},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(p){p=this._clamp(this._physicalCount+p,3,this._virtualCount-this._virtualStart);p=this._convertIndexToCompleteRow(p);if(this.grid){var y=p%this._itemsPerRow;y&&p-y<=this._physicalCount&&(p+=this._itemsPerRow);p-=y}p-=this._physicalCount;y=Math.round(this._physicalCount*.5);if(!(p<0)){if(p>0){y=window.performance.now();[].push.apply(this._physicalItems,this._createPool(p));for(var l=0;l<p;l++)this._physicalSizes.push(0);this._physicalCount+=p;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=p);this._update();this._templateCost=(window.performance.now()-y)/p;y=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||y===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,y)),Ybx):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,y),ft))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var p=this._getReusables(!0);this._physicalTop=p.physicalTop;this._virtualStart+=p.indexes.length;this._physicalStart+=p.indexes.length;this._update(p.indexes);this._update();this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},
_ensureTemplatized:function(){if(!this.ctor){(this._userTemplate=this.queryEffectiveChildren("template"))||console.warn("iron-list requires a template to be provided in light-dom");var p={__key__:!0};p[this.as]=!0;p[this.indexAs]=!0;p[this.selectedAs]=!0;p.tabIndex=!0;this._instanceProps=p;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(p,y){typeof y!=="undefined"&&(this.notifyResize(),_.Vp(),p&&this._updateGridMetrics())},
_itemsChanged:function(p){if(p.path==="items")this._physicalTop=this._virtualStart=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._lastVisibleIndexVal=this._firstVisibleIndexVal=null,this._physicalCount=this._physicalCount||0,this._physicalItems=this._physicalItems||[],this._physicalSizes=this._physicalSizes||[],this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._removeFocusedItem(),this._debounce("_render",this._render,
_.fl);else if(p.path==="items.splices"){this._adjustVirtualIndex(p.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(p.value.indexSplices.some(function(l){return l.addedCount>0||l.removed.length>0})){var y=this._getActiveElement();
this.contains(y)&&y.blur()}p=p.value.indexSplices.some(function(l){return l.index+l.addedCount>=this._virtualStart&&l.index<=this._virtualEnd},this);
this._isClientFull()&&!p||this._debounce("_render",this._render,_.fl)}else p.path!=="items.length"&&this._forwardItemPath(p.path,p.value)},
_forwardItemPath:function(p,y){p=p.slice(6);var l=p.indexOf(".");l===-1&&(l=p.length);var q,t=this.modelForElement(this._offscreenFocusedItem),E=parseInt(p.substring(0,l),10);if(q=this._isIndexRendered(E)){var e=this._getPhysicalIndex(E);var C=this.modelForElement(this._physicalItems[e])}else t&&(C=t);C&&C[this.indexAs]===E&&(p=p.substring(l+1),p=this.as+(p?"."+p:""),C._setPendingPropertyOrPath(p,y,!1,!0),C._flushProperties&&C._flushProperties(),q&&(this._updateMetrics([e]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(p){p.forEach(function(y){y.removed.forEach(this._removeItem,this);y.index<this._virtualStart&&(y=Math.max(y.addedCount-y.removed.length,y.index-this._virtualStart),this._virtualStart+=y,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=y))},this)},
_removeItem:function(p){this.$.selector.deselect(p);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===p&&this._removeFocusedItem()},
_iterateItems:function(p,y){var l,q;if(arguments.length===2&&y)for(q=0;q<y.length;q++){var t=y[q];var E=this._computeVidx(t);if((l=p.call(this,t,E))!=null)return l}else{t=this._physicalStart;for(E=this._virtualStart;t<this._physicalCount;t++,E++)if((l=p.call(this,t,E))!=null)return l;for(t=0;t<this._physicalStart;t++,E++)if((l=p.call(this,t,E))!=null)return l}},
_computeVidx:function(p){return p>=this._physicalStart?this._virtualStart+(p-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+p},
_assignModels:function(p){this._iterateItems(function(y,l){var q=this._physicalItems[y],t=this.items&&this.items[l];if(t!=null){var E=this.modelForElement(q);E.__key__=null;this._forwardProperty(E,this.as,t);this._forwardProperty(E,this.selectedAs,this.$.selector.isSelected(t));this._forwardProperty(E,this.indexAs,l);this._forwardProperty(E,"tabIndex",this._focusedVirtualIndex===l?0:-1);this._physicalIndexForKey[E.__key__]=y;E._flushProperties&&E._flushProperties(!0);q.removeAttribute("hidden")}else q.setAttribute("hidden",
"")},p)},
_updateMetrics:function(p){_.Vp();var y=0,l=0,q=this._physicalAverageCount,t=this._physicalAverage;this._iterateItems(function(E){l+=this._physicalSizes[E];this._physicalSizes[E]=this._physicalItems[E].offsetHeight;y+=this._physicalSizes[E];this._physicalAverageCount+=this._physicalSizes[E]?1:0},p);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(l=this._itemsPerRow===1?l:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+y-l,this._itemsPerRow=1);this._physicalAverageCount!==q&&(this._physicalAverage=Math.round((t*q+y)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var p=this._physicalTop;if(this.grid){var y=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(l,q){var t=Math.floor(q%this._itemsPerRow*this._itemWidth+y);this._isRTL&&(t*=-1);this.translate3d(t+"px",p+"px",0,this._physicalItems[l]);this._shouldRenderNextRow(q)&&(p+=this._rowHeight)})}else this._iterateItems(function(l){this.translate3d(0,p+"px",0,this._physicalItems[l]);
p+=this._physicalSizes[l]})},
_getPhysicalSizeIncrement:function(p){return this.grid?this._computeVidx(p)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[p]},
_shouldRenderNextRow:function(p){return p%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var p=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(p!==0){this._physicalTop=this._physicalTop-p;var y=this._scrollPosition;!tPB&&y>0&&this._resetScrollPosition(y-p)}},
_resetScrollPosition:function(p){this.scrollTarget&&p>=0&&(this._scrollPosition=this._scrollTop=p)},
_updateScrollerSize:function(p){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((p=(p=(p=p||this._scrollHeight===0)||this._scrollPosition>=this._estScrollHeight-this._physicalSize)||this.grid&&this.$.items.style.height<this._estScrollHeight)||Math.abs(this._estScrollHeight-this._scrollHeight)>=this._viewportHeight)this.$.items.style.height=
this._estScrollHeight+"px",this._scrollHeight=this._estScrollHeight},
scrollToItem:function(p){return this.scrollToIndex(this.items.indexOf(p))},
scrollToIndex:function(p){if(!(typeof p!=="number"||p<0||p>this.items.length-1)&&(_.Vp(),this._physicalCount!==0)){p=this._clamp(p,0,this._virtualCount-1);if(!this._isIndexRendered(p)||p>=this._maxVirtualStart)this._virtualStart=this.grid?p-this._itemsPerRow*2:p-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var y=this._physicalStart,l=this._virtualStart,q=0,t=this._hiddenContentSize;l<p&&
q<=t;)q+=this._getPhysicalSizeIncrement(y),y=(y+1)%this._physicalCount,l++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+q);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)},_.fl)},
selectItem:function(p){return this.selectIndex(this.items.indexOf(p))},
selectIndex:function(p){if(!(p<0||p>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(p)){var y=this.modelForElement(this._physicalItems[this._getPhysicalIndex(p)]);y&&(y[this.selectedAs]=!0);this.updateSizeForIndex(p)}this.$.selector.selectIndex(p)}},
deselectItem:function(p){return this.deselectIndex(this.items.indexOf(p))},
deselectIndex:function(p){p<0||p>=this._virtualCount||(this._isIndexRendered(p)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(p)])[this.selectedAs]=!1,this.updateSizeForIndex(p)),this.$.selector.deselectIndex(p))},
toggleSelectionForItem:function(p){return this.toggleSelectionForIndex(this.items.indexOf(p))},
toggleSelectionForIndex:function(p){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(p):this.$.selector.isSelected(this.items[p]))?this.deselectIndex(p):this.selectIndex(p)},
clearSelection:function(){this._iterateItems(function(p){this.modelForElement(this._physicalItems[p])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(p){(p?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(p){var y=this.modelForElement(p.target);if(y){var l=_.FK(p).path[0];p=this._getActiveElement();var q=this._physicalItems[this._getPhysicalIndex(y[this.indexAs])];if(l.localName!=="input"&&l.localName!=="button"&&l.localName!=="select"){l=y.tabIndex;y.tabIndex=-100;var t=p?p.tabIndex:-1;y.tabIndex=l;p&&q!==p&&q.contains(p)&&t!==-100||this.toggleSelectionForItem(y[this.as])}}},
_multiSelectionChanged:function(p){this.clearSelection();this.$.selector.multi=p},
updateSizeForItem:function(p){return this.updateSizeForIndex(this.items.indexOf(p))},
updateSizeForIndex:function(p){if(!this._isIndexRendered(p))return null;this._updateMetrics([this._getPhysicalIndex(p)]);this._positionItems();return null},
_manageFocus:function(){var p=this._focusedVirtualIndex;p>=0&&p<this._virtualCount?this._isIndexRendered(p)?this._restoreFocusedItem():this._createFocusBackfillItem():this._virtualCount>0&&this._physicalCount>0&&(this._focusedPhysicalIndex=this._physicalStart,this._focusedVirtualIndex=this._virtualStart,this._focusedItem=this._physicalItems[this._physicalStart])},
_convertIndexToCompleteRow:function(p){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(p/this._itemsPerRow)*this._itemsPerRow:p},
_isIndexRendered:function(p){return p>=this._virtualStart&&p<=this._virtualEnd},
_isIndexVisible:function(p){return p>=this.firstVisibleIndex&&p<=this.lastVisibleIndex},
_getPhysicalIndex:function(p){return(this._physicalStart+(p-this._virtualStart))%this._physicalCount},
focusItem:function(p){this._focusPhysicalItem(p)},
_focusPhysicalItem:function(p){if(!(p<0||p>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(p)||this.scrollToIndex(p);var y=this._physicalItems[this._getPhysicalIndex(p)],l=this.modelForElement(y),q;l.tabIndex=-100;y.tabIndex===-100&&(q=y);q||(q=_.FK(y).querySelector('[tabindex="-100"]'));l.tabIndex=0;this._focusedVirtualIndex=p;q&&q.focus()}},
_removeFocusedItem:function(){this._offscreenFocusedItem&&this._itemsParent.removeChild(this._offscreenFocusedItem);this._focusedItem=this._focusBackfillItem=this._offscreenFocusedItem=null;this._focusedPhysicalIndex=this._focusedVirtualIndex=-1},
_createFocusBackfillItem:function(){var p=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var y=this.stamp(null);this._focusBackfillItem=y.root.querySelector("*");this._itemsParent.appendChild(y.root)}this._offscreenFocusedItem=this._physicalItems[p];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[p]=this._focusBackfillItem;this._focusedPhysicalIndex=p;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var p=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),y=this._physicalItems[p];if(y){var l=this.modelForElement(y),q=this.modelForElement(this._offscreenFocusedItem);l[this.as]===q[this.as]?(this._focusBackfillItem=y,l.tabIndex=-1,this._physicalItems[p]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(p){p=this.modelForElement(p.target);var y=this.modelForElement(this._focusedItem),l=this._offscreenFocusedItem!==null,q=this._focusedVirtualIndex;p&&(y===p?this._isIndexVisible(q)||this.scrollToIndex(q):(this._restoreFocusedItem(),y&&(y.tabIndex=-1),p.tabIndex=0,this._focusedVirtualIndex=q=p[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(q),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],l&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(p){switch(p.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&p.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex+(this.grid?this._itemsPerRow:1));break;case 39:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+(this._isRTL?-1:1));break;case 38:this._focusedVirtualIndex>0&&p.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex-(this.grid?this._itemsPerRow:1));break;case 37:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+
(this._isRTL?1:-1));break;case 13:this._focusPhysicalItem(this._focusedVirtualIndex),this.selectionEnabled&&this._selectionHandler(p)}},
_clamp:function(p,y,l){return Math.min(l,Math.max(y,p))},
_debounce:function(p,y,l){this._debouncers=this._debouncers||{};this._debouncers[p]=_.Gr(this._debouncers[p],l,y.bind(this));_.Pz(this._debouncers[p])},
_forwardProperty:function(p,y,l){p._setPendingProperty(y,l)},
_forwardHostPropV2:function(p,y){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(l){l&&this.modelForElement(l).forwardHostProp(p,y)},this)},
_notifyInstancePropV2:function(p,y,l){Mq5(this.as,y)&&(p=p[this.indexAs],y==this.as&&(this.items[p]=l),this.notifyPath(AK(this.as,"items."+p,y),l))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(p,y,l){y.indexOf(this.as+".")===0&&this.notifyPath("items."+p.__key__+"."+y.slice(this.as.length+1),l)},
_forwardParentPath:function(p,y){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(l){l&&this.modelForElement(l).notifyPath(p,y)},this)},
_forwardParentProp:function(p,y){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(l){l&&(this.modelForElement(l)[p]=y)},this)},
_getActiveElement:function(){var p=this._itemsParent.node.domHost;return _.FK(p?p.root:document).activeElement},
_scrollTargetChanged:function(p,y){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(y)if(p==="document")this.scrollTarget=this._doc;else if(typeof p==="string"){var l,q;this.scrollTarget=(y=(q=(l=this.domHost)==null?void 0:l.polymerController)!=null?q:this.domHost)&&y.$?y.$[p]:_.FK(this.ownerDocument).querySelector("#"+p)}else this._isValidScrollTarget()&&(this._oldScrollTarget=p,this._toggleScrollListener(this._shouldHaveListener,p))}});var EzZ;var J2$;var c2B=function(p,y,l,q){p-=l;y-=q;return Math.sqrt(p*p+y*y)},eEO=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
b2R.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var nDu=function(p){p.maxRadius=0;p.mouseDownStart=0;p.mouseUpStart=0;p.xStart=0;p.yStart=0;p.xEnd=0;p.yEnd=0;p.containerMetrics=new b2R(p.element)};
GC6.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var p=eEO()-this.mouseDownStart;this.mouseUpStart&&(p-=this.mouseUpElapsed);return p},get mouseUpElapsed(){return this.mouseUpStart?eEO()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1E3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1E3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+
this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var p=Math.min(Math.sqrt(this.containerMetrics.width*this.containerMetrics.width+this.containerMetrics.height*this.containerMetrics.height),300)*1.1+5;return Math.min(Math.abs(p*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-p/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var p=this.radius/(this.containerMetrics.size/2);var y=this.xNow-this.containerMetrics.width/2;var l=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+y+"px, "+l+"px)";this.waveContainer.style.transform="translate3d("+y+"px, "+l+"px, 0)";this.wave.style.webkitTransform="scale("+p+","+p+")";this.wave.style.transform="scale3d("+p+","+p+",1)"},
downAction:function(p){var y=this.containerMetrics.width/2,l=this.containerMetrics.height/2;nDu(this);this.mouseDownStart=eEO();this.center?(this.xStart=y,this.yStart=l):(this.xStart=p?p.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=p?p.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=y,this.yEnd=l);p=this.containerMetrics;y=this.xStart;l=this.yStart;this.maxRadius=Math.max(c2B(y,l,0,0),c2B(y,l,
p.width,0),c2B(y,l,0,p.height),c2B(y,l,p.width,p.height));this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px";this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px";this.waveContainer.style.width=this.containerMetrics.size+"px";this.waveContainer.style.height=this.containerMetrics.size+"px"},
upAction:function(){this.isMouseDown&&(this.mouseUpStart=eEO())},
remove:function(){_.FK(_.FK(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.fv({_template:function(){if(J2$!==void 0)return J2$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-ripple--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_ripple.tp.yt.paper.ripple.css.js--\x3e<div id="background" class="style-scope tp-yt-paper-ripple"></div>\n<div id="waves" class="style-scope tp-yt-paper-ripple"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;EzZ===void 0&&(EzZ=document.createElement("template"));var q=EzZ;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return J2$=p},
is:"tp-yt-paper-ripple",behaviors:[_.Ln],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(){_.FK(this).parentNode.nodeType==11?this.keyEventTarget=_.FK(this).getOwnerRoot().host:this.keyEventTarget=_.FK(this).parentNode;var p=this.keyEventTarget;this.listen(p,"up","uiUpAction");this.listen(p,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(p){p.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var p=0;p<this.ripples.length;++p)if(!this.ripples[p].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(p){this.noink||this.downAction(p)},
downAction:function(p){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(p),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(p){this.noink||this.upAction(p)},
upAction:function(p){this.holdDown||(this.ripples.forEach(function(y){y.upAction(p)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var p=0;p<this.ripples.length;++p){var y=this.ripples[p];y.isOpacityFullyDecayed&&!y.isRestingAtMaxRadius&&this.removeRipple(y)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var p=new GC6(this);_.FK(this.$.waves).appendChild(p.waveContainer);this.$.background.style.backgroundColor=p.color;this.ripples.push(p);this._setAnimating(!0);return p},
removeRipple:function(p){var y=this.ripples.indexOf(p);y<0||(this.ripples.splice(y,1),p.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var p;for(p=0;p<this.ripples.length;++p){var y=this.ripples[p];y.draw();this.$.background.style.opacity=y.outerOpacity;y.isOpacityFullyDecayed&&!y.isRestingAtMaxRadius&&this.removeRipple(y)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(p,y){y!==void 0&&(p?this.downAction():this.upAction())}});var cY={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(p){Nl._downHandler.call(this,p);this.pressed&&this.ensureRipple(p)},
ensureRipple:function(p){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var y=this._rippleContainer||this.root;y&&_.FK(y).appendChild(this._ripple);if(p){y=_.FK(this._rippleContainer||this);var l=_.FK(p).rootTarget;y.deepContains(l)&&this._ripple.uiDownAction(p)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(p){this.hasRipple()&&(this._ripple.noink=p)}};var hEP={properties:{elevation:{type:Number,reflectToAttribute:!0,readOnly:!0}},observers:["_calculateElevation(focused, disabled, active, pressed, receivedFocusFromKeyboard)","_computeKeyboardClass(receivedFocusFromKeyboard)"],hostAttributes:{role:"button",tabindex:"0",animated:!0},_calculateElevation:function(){var p=1;this.disabled?p=0:this.active||this.pressed?p=4:this.receivedFocusFromKeyboard&&(p=3);this._setElevation(p)},
_computeKeyboardClass:function(p){this.toggleClass("keyboard-focus",p)},
_spaceKeyDownHandler:function(p){Nl._spaceKeyDownHandler.call(this,p);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(p){Nl._spaceKeyUpHandler.call(this,p);this.hasRipple()&&this._ripple.uiUpAction()}},CWZ=[$rr,
_.k0,cY,hEP];_.uyO={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(p){p&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=p)},
_createRipple:function(){var p=cY._createRipple();p.id="ink";p.setAttribute("center","");p.classList.add("circle");return p}};
_.REZ=[$rr,_.k0,cY,_.uyO];_.W8r=[_.REZ,nor,{_checkedChanged:function(){bXU._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){cY._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var aQP;var mRr;var URU=function(){};
_.J=URU.prototype;_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._buttonStateChanged=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._createRipple=function(){};
_.J._noinkChanged=function(){};
_.J._computeKeyboardClass=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
_.J._setElevation=function(){};
URU=_.fv({_template:function(){if(mRr!==void 0)return mRr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_button.tp.yt.paper.button.css.js--\x3e<slot class="style-scope tp-yt-paper-button"></slot>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
var y=p.content,l=y.insertBefore;aQP===void 0&&(aQP=document.createElement("template"));var q=aQP;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return mRr=p},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[CWZ],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?hEP._calculateElevation.apply(this):this._setElevation(0)}});var $RZ;var jAP;var bpr={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(p){_.n("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(p)},
_onDialogClickWrapped:function(p){_.n("dialog_behavior_no_tap_killswitch")||this._onDialogClick(p)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(p,y){y&&(p?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(p){p?this.setAttribute("aria-modal","true"):this.removeAttribute("aria-modal")},
_updateClosingReasonConfirmed:function(p){this.closingReason=this.closingReason||{};this.closingReason.confirmed=p},
_onDialogClick:function(p){for(var y=_.FK(p).path,l=0,q,t=y.indexOf((q=this.hostElement)!=null?q:this);l<t;l++)if(q=y[l],q.hasAttribute&&(q.hasAttribute("dialog-dismiss")||q.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(q.hasAttribute("dialog-confirm"));this.close();p.stopPropagation();break}}},nzM=[_.JT,
bpr];var GKU=document.createElement("template");_.M(GKU,'<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(GKU.content);var PWV=document.createElement("template");_.M(PWV,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(PWV.content);_.fv({_template:function(){if(jAP!==void 0)return jAP;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog.tp.yt.paper.dialog.css.js--\x3e<slot class="style-scope tp-yt-paper-dialog"></slot>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
var y=p.content,l=y.insertBefore;$RZ===void 0&&($RZ=document.createElement("template"));var q=$RZ;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return jAP=p},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[nzM,KmV],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 A2r;var ZpU;_.fv({_template:function(){if(ZpU!==void 0)return ZpU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog-scrollable--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog_scrollable.tp.yt.paper.dialog.scrollable.css.js--\x3e<div id="scrollable" class="scrollable style-scope tp-yt-paper-dialog-scrollable" on-scroll="updateScrollState">\n  <slot class="style-scope tp-yt-paper-dialog-scrollable"></slot>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;A2r===void 0&&(A2r=document.createElement("template"));var q=A2r;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return ZpU=p},
is:"tp-yt-paper-dialog-scrollable",properties:{dialogElement:{type:Object}},get scrollTarget(){return this.$.scrollable},ready:function(){this._ensureTarget();this.classList.add("no-padding")},
attached:function(){this._ensureTarget();requestAnimationFrame(this.updateScrollState.bind(this))},
updateScrollState:function(){this.toggleClass("is-scrolled",this.scrollTarget.scrollTop>0);this.toggleClass("can-scroll",this.scrollTarget.offsetHeight<this.scrollTarget.scrollHeight);this.toggleClass("scrolled-to-bottom",this.scrollTarget.scrollTop+this.scrollTarget.offsetHeight>=this.scrollTarget.scrollHeight)},
_ensureTarget:function(){var p,y,l;if(((p=window.ShadyDOM)==null?void 0:p.noPatch)!==!0&&((y=window.ShadyDOM)==null?void 0:y.noPatch)!=="on-demand"||((l=this.__shady_parentNode)==null?void 0:l.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(bpr)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var MP$=_.c0(['<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>']),VPB=_.ny$(MP$);VPB.setAttribute("style","display: none;");document.head.appendChild(VPB.content);var gzr;var QAB;var K8$;var w3O;_.fv({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[XP],configure:function(p){var y=p.node,l=y.getBoundingClientRect().height;return this._effect=new KeyframeEffect(y,[{height:l/2+"px"},{height:l+"px"}],this.timingFromConfig(p))}});
_.fv({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[XP],configure:function(p){var y=p.node,l=y.getBoundingClientRect().width;return this._effect=new KeyframeEffect(y,[{width:l/2+"px"},{width:l+"px"}],this.timingFromConfig(p))}});
_.fv({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[XP],configure:function(p){var y=p.node,l=y.getBoundingClientRect().width;return this._effect=new KeyframeEffect(y,[{width:l+"px"},{width:l-l/20+"px"}],this.timingFromConfig(p))}});
_.fv({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[XP],configure:function(p){var y=p.node,l=y.getBoundingClientRect().height;this.setPrefixedProperty(y,"transformOrigin","0 0");return this._effect=new KeyframeEffect(y,[{height:l+"px",transform:"translateY(0)"},{height:l/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(p))}});var eV={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},ipr=function(){};
_.J=ipr.prototype;_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._focusBlurHandler=function(){};
_.J._changedControlState=function(){};
_.J._setFocused=function(){};
ipr=_.fv({_template:function(){if(w3O!==void 0)return w3O;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;K8$===void 0&&(K8$=document.createElement("template"));var q=K8$;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return w3O=p},
is:"tp-yt-paper-menu-button",behaviors:[_.Ln,_.k0],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:eV.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:eV.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:eV.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},
allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object},fitInto:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var p=_.FK(this.$.content).getDistributedNodes(),y=0,l=p.length;y<l;y++)if(p[y].nodeType===Node.ELEMENT_NODE)return p[y]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(p,y){p?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):y!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(p){_.k0._disabledChanged.apply(this,arguments);p&&this.opened&&this.close()},
__onIronOverlayCanceled:function(p){var y=this.$.trigger;_.FK(p.detail).path.indexOf(y)>-1&&p.preventDefault()}});
Object.keys(eV).forEach(function(p){ipr[p]=eV[p]});var r2N=_.Dr.IronButtonState,SPr=(0,_.kd)(HTMLElement);
_.fv({_template:function(){if(QAB!==void 0)return QAB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu-light--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu_light.tp.yt.paper.dropdown.menu.light.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" class="style-scope tp-yt-paper-dropdown-menu-light">\n  \n  <div id="dropdown-trigger" class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu-light" slot="dropdown-trigger" role="button" tabindex="0" aria-haspopup="listbox">\n    <label class$="[[_computeLabelClass(noLabelFloat,alwaysFloatLabel,hasContent)]] style-scope tp-yt-paper-dropdown-menu-light" style-target="label">\n      [[label]]\n    </label>\n    <div id="input" tabindex="-1" style-target="input" class="style-scope tp-yt-paper-dropdown-menu-light">\u00a0</div>\n    <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" class="style-scope tp-yt-paper-dropdown-menu-light"></tp-yt-iron-icon>\n    <span class="error style-scope tp-yt-paper-dropdown-menu-light">[[errorMessage]]</span>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu-light"></slot>\n</tp-yt-paper-menu-button>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;gzr===void 0&&(gzr=document.createElement("template"));var q=gzr;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return QAB=p},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[r2N,_.k0,cY,_.HG,_.BG],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0,observer:"_valueChanged"},label:{type:String},placeholder:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,hasContent:{type:Boolean,readOnly:!0}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(p){var y=(0,_.Q2)(this);y.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:p});y.shadowRoot.appendChild(p);return SPr.prototype._attachDom.call(this,p)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var p=this.contentElement;p&&p.selectedItem&&this._setSelectedItem(p.selectedItem)},
get contentElement(){for(var p=_.FK(this.$.content).getDistributedNodes(),y=0,l=p.length;y<l;y++)if(p[y].nodeType===Node.ELEMENT_NODE)return p[y]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(p){this._setSelectedItem(p.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(p){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p)===this&&this.open()},
_selectedItemChanged:function(p){var y="";p?y=p.label||p.getAttribute("label")||p.textContent.trim():y="";this.value=y;this._setSelectedItemLabel(y)},
_computeMenuVerticalOffset:function(p,y){return y?y:p?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var p=this.opened?"true":"false",y=this.contentElement;y&&y.setAttribute("aria-expanded",p)},
_computeLabelClass:function(p,y,l){var q="label";if(p)l&&(q+=" label-is-hidden");else if(l||y)q+=" label-is-floating";return q},
_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 F8B;var L8x;_.fv({is:"tp-yt-paper-icon-button",_template:function(){if(L8x!==void 0)return L8x;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_button.tp.yt.paper.icon.button.css.js--\x3e<tp-yt-iron-icon id="icon" src="[[src]]" icon="[[icon]]" alt$="[[alt]]" class="style-scope tp-yt-paper-icon-button"></tp-yt-iron-icon>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;F8B===void 0&&(F8B=document.createElement("template"));var q=F8B;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return L8x=p},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.REZ],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(p,y){var l=this.getAttribute("aria-label");l&&y!=l||this.setAttribute("aria-label",p)}});var kKN;var NUB;_.hT=[$rr,_.k0,{hostAttributes:{role:"option",tabindex:"0"}}];_.fv({_template:function(){if(NUB!==void 0)return NUB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_item.tp.yt.paper.icon.item.css.js--\x3e<div id="contentIcon" class="content-icon style-scope tp-yt-paper-icon-item">\n  <slot name="item-icon" class="style-scope tp-yt-paper-icon-item"></slot>\n</div>\n<slot class="style-scope tp-yt-paper-icon-item"></slot>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;kKN===void 0&&(kKN=document.createElement("template"));var q=kKN;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return NUB=p},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.hT]});var DRU;var HpZ;var TUB={attached:function(){this.fire("addon-attached")},
update:function(){}};var xRP=1,BUr=1,fQi=1,vzN=[_.k0,_.Ln,{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();!aa&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(p,y){p?p=p+" "+y:p=y;return p},
_onAddonAttached:function(p){p=_.FK(p).rootTarget;if(p.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,p.id);else{var y="paper-input-add-on-"+BUr++;p.id=y;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,y)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(p){_.k0._focusBlurHandler.call(this,p);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var p=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",p);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(p){try{var y=this.inputElement.selectionStart;this.value=p;this.inputElement.selectionStart=y;this.inputElement.selectionEnd=y}catch(l){this.value=p}},
_computeAlwaysFloatLabel:function(p,y){return y||p},
_updateAriaLabelledBy:function(){var p=_.FK(this.root).querySelector("label");if(p){if(p.id)var y=p.id;else y="paper-input-label-"+xRP++,p.id=y;this._ariaLabelledBy=y}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+fQi++)},
_onChange:function(p){this.shadowRoot&&this.fire(p.type,{sourceEvent:p},{node:this,bubbles:p.bubbles,cancelable:p.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var p=document.activeElement;p instanceof HTMLElement&&p!==document.body&&p!==document.documentElement||this._focusableElement.focus()}}}];var X3P;var dRQ;_.fv({_template:function(){if(dRQ!==void 0)return dRQ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-char-counter--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_char_counter.tp.yt.paper.input.char.counter.css.js--\x3e<span class="style-scope tp-yt-paper-input-char-counter">[[_charCounterStr]]</span>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;X3P===void 0&&(X3P=document.createElement("template"));var q=X3P;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return dRQ=p},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[TUB],properties:{_charCounterStr:{type:String,value:"0"}},update:function(p){if(p.inputElement){p.value=p.value||"";var y=p.value.toString().length.toString();p.inputElement.hasAttribute("maxlength")&&(y+="/"+p.inputElement.getAttribute("maxlength"));this._charCounterStr=y}}});var OpO;var ozr;_.fv({_template:function(){if(ozr!==void 0)return ozr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_container.tp.yt.paper.input.container.css.js--\x3e<div class="floated-label-placeholder style-scope tp-yt-paper-input-container" aria-hidden="true" hidden="[[noLabelFloat]]">\n  \u00a0\n</div>\n\n<div class="input-wrapper style-scope tp-yt-paper-input-container">\n  <span class="prefix style-scope tp-yt-paper-input-container"><slot name="prefix" class="style-scope tp-yt-paper-input-container"></slot></span>\n\n  <div class$="[[_computeInputContentClass(noLabelFloat,alwaysFloatLabel,focused,invalid,_inputHasContent)]] style-scope tp-yt-paper-input-container" id="labelAndInputContainer">\n    <slot name="label" class="style-scope tp-yt-paper-input-container"></slot>\n    <slot name="input" on-slotchange="onInputSlotChanged" class="style-scope tp-yt-paper-input-container"></slot><slot name="after-input" class="style-scope tp-yt-paper-input-container"></slot>\n  </div>\n\n  <span class="suffix style-scope tp-yt-paper-input-container"><slot name="suffix" class="style-scope tp-yt-paper-input-container"></slot></span>\n</div>\n\n<div class$="[[_computeUnderlineClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <div class="unfocused-line style-scope tp-yt-paper-input-container"></div>\n  <div class="focused-line style-scope tp-yt-paper-input-container"></div>\n</div>\n\n<div class$="[[_computeAddOnContentClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <slot name="add-on" class="style-scope tp-yt-paper-input-container"></slot>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;OpO===void 0&&(OpO=document.createElement("template"));var q=OpO;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return ozr=p},
is:"tp-yt-paper-input-container",hostAttributes:{"style-target":"host"},properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},noUnfloatedLabelError:{type:Boolean,value:!1},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,tp-yt-iron-input,textarea,.paper-input-input"},
_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},
_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},
_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},
_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},
listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-changed"},get _propertyForValue(){return UM(this.attrForValue)},get _inputElement(){return _.FK(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this.__isFirstValueUpdate=!0;this._addons||(this._addons=[]);this.addEventListener("focus",this._boundOnFocus,
!0);this.addEventListener("blur",this._boundOnBlur,!0)},
attached:function(){this.attrForValue||this.addEventListener("input",this._onInput);this.initializeInput()},
onInputSlotChanged:function(){this._addons||(this._addons=[]);this.attrForValue&&this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged);this.initializeInput()},
initializeInput:function(){this._inputElement&&(this._inputElementValue&&this._inputElementValue!=""?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement))},
_onAddonAttached:function(p){this._addons||(this._addons=[]);p=p.target;this._addons.indexOf(p)===-1&&(this._addons.push(p),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(p){this._handleValueAndAutoValidate(p.target)},
_onValueChanged:function(p){var y=p.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,y.value===void 0||y.value===""))return;this._handleValueAndAutoValidate(p.target)},
_handleValue:function(p){var y=this._inputElementValue;y||y===0||p.type==="number"&&!p.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:p,value:y,invalid:this.invalid})},
_handleValueAndAutoValidate:function(p){this.autoValidate&&p&&(this.invalid=!(p.validate?p.validate(this._inputElementValue):p.checkValidity()));this._handleValue(p)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(p){if(this._addons)for(var y,l=0;y=this._addons[l];l++)y.update(p)},
_computeInputContentClass:function(p,y,l,q,t){var E="input-content";p?(t&&(E+=" label-is-hidden"),q&&!this.noUnfloatedLabelError&&(E+=" is-invalid")):(p=this.querySelector("label"),y||t?(E+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",q?E+=" is-invalid":l&&(E+=" label-is-highlighted")):(p&&(this.$.labelAndInputContainer.style.position="relative"),q&&!this.noUnfloatedLabelError&&(E+=" is-invalid")));l&&(E+=" focused");return E},
_computeUnderlineClass:function(p,y){var l="underline";y?l+=" is-invalid":p&&(l+=" is-highlighted");return l},
_computeAddOnContentClass:function(p,y){var l="add-on-content";y?l+=" is-invalid":p&&(l+=" is-highlighted");return l}});var zEM;var YPr;_.fv({_template:function(){if(YPr!==void 0)return YPr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-error--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_error.tp.yt.paper.input.error.css.js--\x3e\n<div id="a11yWrapper" class="style-scope tp-yt-paper-input-error">\n  <slot class="style-scope tp-yt-paper-input-error"></slot>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;zEM===void 0&&(zEM=document.createElement("template"));var q=zEM;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return YPr=p},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[TUB],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(p){this._setInvalid(p.invalid)}});_.fv({is:"tp-yt-paper-input",_template:function(){if(HpZ!==void 0)return HpZ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input.tp.yt.paper.input.css.js--\x3e<tp-yt-paper-input-container id="container" no-label-float="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-input">\n  <slot name="prefix" slot="prefix" class="style-scope tp-yt-paper-input"></slot>\n\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-input">[[label]]</label>\n\n  \n  <tp-yt-iron-input bind-value="{{value}}" slot="input" class="input-element style-scope tp-yt-paper-input" id$="[[_inputId]]" maxlength$="[[maxlength]]" allowed-pattern="[[allowedPattern]]" invalid="{{invalid}}" validator="[[validator]]">\n    <input aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" title$="[[title]]" type$="[[type]]" pattern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autocorrect]]" on-change="_onChange" tabindex$="[[tabIndex]]" autosave$="[[autosave]]" results$="[[results]]" accept$="[[accept]]" multiple$="[[multiple]]" role$="[[inputRole]]" aria-haspopup$="[[inputAriaHaspopup]]" dir$="[[inputDir]]" class="style-scope tp-yt-paper-input">\n  </tp-yt-iron-input>\n\n  <slot name="suffix" slot="suffix" class="style-scope tp-yt-paper-input"></slot>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-input">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-input"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;DRU===void 0&&(DRU=document.createElement("template"));var q=DRU;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return HpZ=p},
behaviors:[vzN,_.HG],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 IQV;var p0M;_.fv({_template:function(){if(p0M!==void 0)return p0M;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item.tp.yt.paper.item.css.js--\x3e<slot class="style-scope tp-yt-paper-item"></slot>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=
p.content,l=y.insertBefore;IQV===void 0&&(IQV=document.createElement("template"));var q=IQV;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return p0M=p},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.hT]});var yjQ;var lYi;_.fv({_template:function(){if(lYi!==void 0)return lYi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item-body--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item_body.tp.yt.paper.item.body.css.js--\x3e<slot class="style-scope tp-yt-paper-item-body"></slot>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
var y=p.content,l=y.insertBefore;yjQ===void 0&&(yjQ=document.createElement("template"));var q=yjQ;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return lYi=p},
is:"tp-yt-paper-item-body"});var qaB;var sNU;var t6v=function(){};
_.J=t6v.prototype;_.J.indexOf=function(){};
_.J.selectPrevious=function(){};
_.J.selectNext=function(){};
_.J.selectIndex=function(){};
_.J.forceSynchronousItemUpdate=function(){};
_.J._checkFallback=function(){};
_.J._addListener=function(){};
_.J._removeListener=function(){};
_.J._activateEventChanged=function(){};
_.J._updateItems=function(){};
_.J._selectSelected=function(){};
_.J._filterItem=function(){};
_.J._valueToItem=function(){};
_.J._valueToIndex=function(){};
_.J._indexToValue=function(){};
_.J._valueForItem=function(){};
_.J._observeItems=function(){};
_.J._itemActivate=function(){};
_.J.multiChanged=function(){};
_.J._updateAttrForSelected=function(){};
_.J._updateSelected=function(){};
_.J._selectMulti=function(){};
_.J._selectionChange=function(){};
_.J._toggleSelected=function(){};
_.J._valuesToItems=function(){};
_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J.select=function(){};
_.J._resetTabindices=function(){};
_.J._updateMultiselectable=function(){};
_.J._focusWithKeyboardEvent=function(){};
_.J._clearSearchText=function(){};
_.J._focusPrevious=function(){};
_.J._focusNext=function(){};
_.J._applySelection=function(){};
_.J._focusedItemChanged=function(){};
_.J._onIronItemsChanged=function(){};
_.J._onShiftTabDown=function(){};
_.J._onFocus=function(){};
_.J._onUpKey=function(){};
_.J._onDownKey=function(){};
_.J._onEscKey=function(){};
_.J._onKeydown=function(){};
_.J._activateHandler=function(){};
_.J._disabledChanged=function(){};
_.J._setSelectedItem=function(){};
_.J._setItems=function(){};
_.J._setSelectedItems=function(){};
_.J._setFocusedItem=function(){};
t6v=_.fv({_template:function(){if(sNU!==void 0)return sNU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-listbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_listbox.tp.yt.paper.listbox.css.js--\x3e<slot class="style-scope tp-yt-paper-listbox"></slot>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
var y=p.content,l=y.insertBefore;qaB===void 0&&(qaB=document.createElement("template"));var q=qaB;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return sNU=p},
is:"tp-yt-paper-listbox",behaviors:[ZXi],hostAttributes:{role:"listbox"}});var EtQ;var Jjx;var cjN={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(p,y){return[p||y?"active":"",y?"cooldown":""].join(" ")},
__activeChanged:function(p,y){this.__setAriaHidden(!p);this.__coolingDown=!p&&y},
__altChanged:function(p){this.setAttribute("aria-label",p||"loading")},
__setAriaHidden:function(p){p?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.fv({_template:function(){if(Jjx!==void 0)return Jjx;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner.tp.yt.paper.spinner.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner">\n  <div class="spinner-layer layer-1 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-2 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-3 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-4 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;EtQ===void 0&&(EtQ=document.createElement("template"));var q=EtQ;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return Jjx=p},
is:"tp-yt-paper-spinner",behaviors:[cjN]});var e7M;var h7x;_.fv({_template:function(){if(h7x!==void 0)return h7x;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner-lite--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner_lite.tp.yt.paper.spinner.lite.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner-lite">\n  <div class="spinner-layer style-scope tp-yt-paper-spinner-lite">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;e7M===void 0&&(e7M=document.createElement("template"));var q=e7M;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return h7x=p},
is:"tp-yt-paper-spinner-lite",behaviors:[cjN]});var C8M;var ucv;_.fv({_template:function(){if(ucv!==void 0)return ucv;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tab--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tab.tp.yt.paper.tab.css.js--\x3e<div class="tab-content style-scope tp-yt-paper-tab" style-target="tab-content">\n  <slot class="style-scope tp-yt-paper-tab"></slot>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;C8M===void 0&&(C8M=document.createElement("template"));var q=C8M;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return ucv=p},
is:"tp-yt-paper-tab",behaviors:[_.k0,_.Dr.IronButtonState,cY],properties:{link:{type:Boolean,value:!1,reflectToAttribute:!0},noBoldOnFocus:{type:Boolean,value:!1,reflectToAttribute:!0}},hostAttributes:{role:"tab","style-target":"host"},listeners:{down:"_updateNoink",tap:"_onTap"},attached:function(){this._updateNoink()},
get _parentNoink(){var p=_.FK(this).parentNode;return!!p&&!!p.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(p){if(this.link){var y=this.queryEffectiveChildren("a");y&&p.target!==y&&y.click()}}});var R7B;var Wn$;var aYN=_.c0(['<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>']),mY$=_.ny$(aYN);document.head.appendChild(mY$.content);_.fv({_template:function(){if(Wn$!==void 0)return Wn$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tabs--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tabs.tp.yt.paper.tabs.css.js--\x3e<tp-yt-paper-icon-button id="left" icon="paper-tabs:chevron-left" alt="[[altPrevious]]" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown" tabindex="-1" disabled="[[_leftHidden]]"></tp-yt-paper-icon-button>\n\n<div id="tabsContainer" on-track="_scroll" on-down="_down" class="style-scope tp-yt-paper-tabs">\n  <div id="tabsContent" style-target="content" class$="[[_computeTabsContentClass(scrollable, fitContainer)]] style-scope tp-yt-paper-tabs">\n    <div id="selectionBar" style-target="selection-bar" class$="[[_computeSelectionBarClass(noBar, alignBottom)]] style-scope tp-yt-paper-tabs" on-transitionend="_onBarTransitionEnd"></div>\n    <slot class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</div>\n\n<tp-yt-paper-icon-button id="right" icon="paper-tabs:chevron-right" alt="[[altNext]]" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown" tabindex="-1" disabled="[[_rightHidden]]"></tp-yt-paper-icon-button>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;R7B===void 0&&(R7B=document.createElement("template"));var q=R7B;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return Wn$=p},
is:"tp-yt-paper-tabs",behaviors:[_.vG,_.VoP],properties:{noink:{type:Boolean,value:!1,observer:"_noinkChanged"},noBar:{type:Boolean,value:!1},noSlide:{type:Boolean,value:!1},scrollable:{type:Boolean,value:!1},fitContainer:{type:Boolean,value:!1},disableDrag:{type:Boolean,value:!1},hideScrollButtons:{type:Boolean,value:!1},removeIdleScrollButtons:{type:Boolean,value:!1},alignBottom:{type:Boolean,value:!1},selectable:{type:String,value:"tp-yt-paper-tab"},autoselect:{type:Boolean,value:!1},autoselectDelay:{type:Number,
value:0},altNext:{type:String,value:""},altPrevious:{type:String,value:""},_step:{type:Number,value:10},_holdDelay:{type:Number,value:1},_leftHidden:{type:Boolean,value:!1},_rightHidden:{type:Boolean,value:!1},_previousTab:{type:Object}},hostAttributes:{role:"tablist"},listeners:{"iron-resize":"_onTabSizingChanged","iron-items-changed":"_onTabSizingChanged","iron-select":"_onIronSelect","iron-deselect":"_onIronDeselect"},keyBindings:{"left:keyup right:keyup":"_onArrowKeyup"},created:function(){this._holdJob=
null;this._pendingActivationTimeout=this._pendingActivationItem=void 0;this._bindDelayedActivationHandler=this._delayedActivationHandler.bind(this);this.addEventListener("blur",this._onBlurCapture.bind(this),!0);this._rightHidden=this._leftHidden=this.hideScrollButtons},
ready:function(){this.setScrollDirection("y",this.$.tabsContainer)},
detached:function(){this._cancelPendingActivation()},
_noinkChanged:function(p){_.FK(this).querySelectorAll("tp-yt-paper-tab").forEach(p?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(p){p.setAttribute("noink","")},
_removeNoinkAttribute:function(p){p.removeAttribute("noink")},
_computeScrollButtonClass:function(p,y,l,q){return!y||l?"hidden":p?q?"hidden":"not-visible":""},
_computeTabsContentClass:function(p,y){var l="tabs-content";p&&(l+=" scrollable");if(!p||y)l+=" fit-container";return l},
_computeSelectionBarClass:function(p,y){var l="selection-bar";p?l+=" hidden":y&&(l+=" align-bottom");return l},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(p){return""+p},
_onIronSelect:function(p){this._tabChanged(p.detail.item,this._previousTab);this._previousTab=p.detail.item;this.cancelDebouncer("tab-changed")},
_onIronDeselect:function(){this.debounce("tab-changed",function(){this._tabChanged(null,this._previousTab);this._previousTab=null},1)},
_activateHandler:function(){this._cancelPendingActivation();_.fn._activateHandler.apply(this,arguments)},
_scheduleActivation:function(p,y){this._pendingActivationItem=p;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,y)},
_delayedActivationHandler:function(){var p=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;p.fire(this.activateEvent,null,{bubbles:!0,cancelable:!0})},
_cancelPendingActivation:function(){this._pendingActivationTimeout!==void 0&&(this.cancelAsync(this._pendingActivationTimeout),this._pendingActivationTimeout=this._pendingActivationItem=void 0)},
_onArrowKeyup:function(){this.autoselect&&this._scheduleActivation(this.focusedItem,this.autoselectDelay)},
_onBlurCapture:function(p){p.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(p,y){this.scrollable&&this._affectScroll(y&&-y.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(p){this.$.tabsContainer.scrollLeft+=p;p=this.$.tabsContainer.scrollLeft;this._leftHidden=p===0||this.hideScrollButtons;this._rightHidden=p===this._tabContainerScrollSize||this.hideScrollButtons},
_onLeftScrollButtonDown:function(){this._scrollToLeft();this._holdJob=setInterval(this._scrollToLeft.bind(this),this._holdDelay)},
_onRightScrollButtonDown:function(){this._scrollToRight();this._holdJob=setInterval(this._scrollToRight.bind(this),this._holdDelay)},
_onScrollButtonUp:function(){clearInterval(this._holdJob);this._holdJob=null},
_scrollToLeft:function(){this._affectScroll(-this._step)},
_scrollToRight:function(){this._affectScroll(this._step)},
_tabChanged:function(p,y){if(p){var l=this.$.tabsContent.getBoundingClientRect(),q=l.width,t=p.getBoundingClientRect();l=t.left-l.left;this._pos={width:this._calcPercent(t.width,q),left:this._calcPercent(l,q)};if(this.noSlide||y==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var E=y.getBoundingClientRect();y=this.items.indexOf(y);p=this.items.indexOf(p);this.$.selectionBar.classList.add("expand");
p=y<p;this._isRTL&&(p=!p);p?this._positionBar(this._calcPercent(t.left+t.width-E.left,q)-5,this._left):this._positionBar(this._calcPercent(E.left+E.width-t.left,q)-5,this._calcPercent(l,q)+5);this.scrollable&&this._scrollToSelectedIfNeeded(t.width,l)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(p,y){y-=this.$.tabsContainer.scrollLeft;y<0?this.$.tabsContainer.scrollLeft+=y:(y+=p-this.$.tabsContainer.offsetWidth,y>0&&(this.$.tabsContainer.scrollLeft+=y))},
_calcPercent:function(p,y){return 100*p/y},
_positionBar:function(p,y){p=p||0;y=y||0;this._width=p;this._left=y;this.transform("translateX("+y+"%) scaleX("+p/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var p=this.$.selectionBar.classList;p.contains("expand")?(p.remove("expand"),p.add("contract"),this._positionBar(this._pos.width,this._pos.left)):p.contains("contract")&&p.remove("contract")}});var UYi;var $YQ;_.fv({_template:function(){if($YQ!==void 0)return $YQ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_textarea.tp.yt.paper.textarea.css.js--\x3e<tp-yt-paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-textarea">\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-textarea">[[label]]</label>\n\n  <tp-yt-iron-autogrow-textarea class="paper-input-input style-scope tp-yt-paper-textarea" slot="input" id$="[[_inputId]]" aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" bind-value="{{value}}" invalid="{{invalid}}" validator$="[[validator]]" disabled$="[[disabled]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" autocapitalize$="[[autocapitalize]]" rows$="[[rows]]" max-rows$="[[maxRows]]" on-change="_onChange"></tp-yt-iron-autogrow-textarea>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-textarea">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-textarea"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;UYi===void 0&&(UYi=document.createElement("template"));var q=UYi;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return $YQ=p},
is:"tp-yt-paper-textarea",behaviors:[vzN,_.HG],properties:{_ariaLabelledBy:{observer:"_ariaLabelledByChanged",type:String},_ariaDescribedBy:{observer:"_ariaDescribedByChanged",type:String},value:{type:String},rows:{type:Number,value:1},maxRows:{type:Number,value:0},noUnfloatedLabelError:{type:Boolean,value:!1}},get selectionStart(){return this.$.input.textarea.selectionStart},set selectionStart(p){this.$.input.textarea.selectionStart=p},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(p){this.$.input.textarea.selectionEnd=p},_ariaLabelledByChanged:function(p){this._focusableElement.setAttribute("aria-labelledby",p)},
_ariaDescribedByChanged:function(p){this._focusableElement.setAttribute("aria-describedby",p)},
get _focusableElement(){return this.inputElement.textarea}});var jNQ;var bqB;/*

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 ntx=function(){};
_.J=ntx.prototype;_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._noinkChanged=function(){};
_.J._focusedChanged=function(){};
_.J.registered=function(){};
_.J._invalidChanged=function(){};
_.J.hasValidator=function(){};
_.J.validate=function(){};
_.J._getValidity=function(){};
_.J._requiredChanged=function(){};
_.J._valueChanged=function(){};
_.J._checkedChanged=function(){};
_.J._buttonStateChanged=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
ntx=_.fv({is:"tp-yt-paper-toggle-button",_template:function(){if(bqB!==void 0)return bqB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toggle-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toggle_button.tp.yt.paper.toggle.button.css.js--\x3e<div class="toggle-container style-scope tp-yt-paper-toggle-button">\n  <div id="toggleBar" class="toggle-bar style-scope tp-yt-paper-toggle-button"></div>\n  <div id="toggleButton" class="toggle-button style-scope tp-yt-paper-toggle-button"></div>\n</div>\n\n<div class="toggle-label style-scope tp-yt-paper-toggle-button"><slot class="style-scope tp-yt-paper-toggle-button"></slot></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;jNQ===void 0&&(jNQ=document.createElement("template"));var q=jNQ;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return bqB=p},
behaviors:[_.W8r],hostAttributes:{role:"button","aria-pressed":"false",tabindex:0},properties:{ironLabelTarget:{type:Boolean,reflectToAttribute:!0}},listeners:{track:"_ontrack"},__calculateIsRtl:function(){return window.getComputedStyle(this).direction==="rtl"},
attached:function(){this.__calculateIsRtl()&&this.setAttribute("dir","rtl");_.th(this,function(){_.BK(this,"pan-y")})},
_ontrack:function(p){p=p.detail;p.state==="start"?this._trackStart(p):p.state==="track"?this._trackMove(p):p.state==="end"&&this._trackEnd(p)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(p){p=p.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+p:p)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+p:p));this.translate3d(this._x+"px",0,0,this.$.toggleButton);this._isRtl?this._userActivate(this._x<-this._width/2):this._userActivate(this._x>this._width/2)},
_trackEnd:function(){this.$.toggleButton.classList.remove("dragging");this.transform("",this.$.toggleButton)},
_createRipple:function(){this._rippleContainer=this.$.toggleButton;var p=cY._createRipple();p.id="ink";p.setAttribute("recenters","");p.classList.add("circle","toggle-ink");return p}});var G6x;var P8$;_.fv({_template:function(){if(P8$!==void 0)return P8$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tooltip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tooltip.tp.yt.paper.tooltip.css.js--\x3e<div id="tooltip" class="hidden style-scope tp-yt-paper-tooltip" style-target="tooltip">\n  <slot class="style-scope tp-yt-paper-tooltip"></slot>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;G6x===void 0&&(G6x=document.createElement("template"));var q=G6x;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return P8$=p},
is:"tp-yt-paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1,"aria-label":"tooltip"},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},alwaysDisplay:{type:Boolean,value:!1},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String,
value:""},animationConfig:{type:Object,value:function(){return{entry:[{name:"fade-in-animation",node:this,timing:{delay:0}}],exit:[{name:"fade-out-animation",node:this}]}}},
_showing:{type:Boolean,value:!1}},listeners:{webkitAnimationEnd:"_onAnimationEnd"},get target(){var p=_.FK(this).parentNode,y=_.FK(this).getOwnerRoot(),l;this.for?l=_.FK(y).querySelector("#"+this.for):l=p.nodeType==Node.DOCUMENT_FRAGMENT_NODE?y.host:p;return l},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(p){p==="entry"?this.show():p==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.FK(this).textContent.trim()===""){for(var p=!0,y=_.FK(this).getEffectiveChildNodes(),l=0;l<y.length;l++)if(y[l].textContent.trim()!==""){p=!1;break}if(p)return}this._showing=!0;this.$.tooltip.classList.remove("hidden");this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.updatePosition();this._animationPlaying=!0;this.$.tooltip.classList.add(this._getAnimationType("entry"))}},
hide:function(){this._showing&&(this._animationPlaying?(this._showing=!1,this._cancelAnimation()):(this._onAnimationFinish(),this._showing=!1,this._animationPlaying=!0))},
updatePosition:function(){if(this._target&&this.offsetParent){var p=this.offset;this.marginTop!=14&&this.offset==14&&(p=this.marginTop);var y=this.offsetParent.getBoundingClientRect(),l=this._target.getBoundingClientRect(),q=this.getBoundingClientRect(),t=(l.width-q.width)/2,E=(l.height-q.height)/2,e=l.left-y.left,C=l.top-y.top;switch(this.position){case "top":var u=e+t;var a=C-q.height-p;break;case "bottom":u=e+t;a=C+l.height+p;break;case "left":u=e-q.width-p;a=C+E;break;case "right":u=e+l.width+
p,a=C+E}this.fitToVisibleBounds?(y.left+u+q.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,u)+"px",this.style.right="auto"),y.top+a+q.height>window.innerHeight?(this.style.bottom=y.height+"px",this.style.top="auto"):(this.style.top=Math.max(-y.top,a)+"px",this.style.bottom="auto")):(this.style.left=u+"px",this.style.top=a+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(p){p!==500&&this.updateStyles({"--paper-tooltip-delay-in":p+"ms"})},
_manualModeChanged:function(){this.manualMode?this._removeListeners():this._addListeners()},
_cancelAnimation:function(){this.$.tooltip.classList.remove(this._getAnimationType("entry"));this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.add("hidden")},
_onAnimationFinish:function(){this._showing&&(this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add(this._getAnimationType("exit")))},
_onAnimationEnd:function(){this._animationPlaying=!1;this._showing||(this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.add("hidden"))},
_getAnimationType:function(p){if(p==="entry"&&this.animationEntry!=="")return this.animationEntry;if(p==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[p]&&typeof this.animationConfig[p][0].name==="string"){if(this.animationConfig[p][0].timing&&this.animationConfig[p][0].timing.delay&&this.animationConfig[p][0].timing.delay!==0){var y=this.animationConfig[p][0].timing.delay;p==="entry"?this.updateStyles({"--paper-tooltip-delay-in":y+"ms"}):p==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":y+
"ms"})}return this.animationConfig[p][0].name}},
_removeListeners:function(){this._target&&(this.unlisten(this._target,"mouseenter","show"),this.unlisten(this._target,"focus","show"),this.unlisten(this._target,"mouseleave","hide"),this.unlisten(this._target,"blur","hide"),this.unlisten(this._target,"tap","hide"));this.unlisten(this.$.tooltip,"animationend","_onAnimationEnd");this.unlisten(this,"mouseenter","hide")}});var Ajr=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Ajr,_.RX);var ZqP=_.AE(Ajr,[0,_.Cj]);var C5=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(C5,_.RX);var M6B=[3,4],V6r=[5,6];var gtQ=[0,M6B,V6r,_.alN,-1,_.hL,_.mmB,-1,cWu,e6a];var QNv=_.AE(C5,gtQ),KnU=_.Zl(gtQ);var w0M=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(w0M,_.RX);var iqU=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(iqU,_.RX);var rjQ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(rjQ,_.RX);var Sar=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Sar,_.RX);var FnU=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(FnU,_.RX);var uc=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(uc,_.RX);uc.prototype.getSource=function(){return _.v0(this,1)};
uc.prototype.getMessage=function(){return _.fq(this,4)};
uc.prototype.getData=function(){return _.MF(this,FnU,8)};var LnO=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(LnO,_.RX);var R5=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(R5,_.RX);var WY=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(WY,_.RX);var a5=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(a5,_.RX);a5.prototype.getUrl=function(){return _.fq(this,1)};
a5.prototype.setUrl=function(p){return _.Fq(this,1,p)};
a5.prototype.hasUrl=function(){return _.r6(_.i8(this,1))!=null};var k6$=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(k6$,_.RX);var Nli=[3];var DYr=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(DYr,_.RX);var m1=function(p){var y=new DYr;return _.a7(y,2,p)};
DYr.prototype.getLanguage=function(){return Oa(this,4,Ux)};
var Hqi=function(p){var y=m1(1);return _.Qa(y,6,Ux,p)},Ux=[3,
4,5,6];var TlZ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(TlZ,_.RX);var $B=function(p){var y=new TlZ;return _.a7(y,1,p)},jV=function(p,y){return _.Qa(p,2,xYM,y)},xYM=[2,
3,4,5];var BlV=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(BlV,_.RX);var bc=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(bc,_.RX);var fYi=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(fYi,_.RX);var vtv=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(vtv,_.RX);var X0U=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(X0U,_.RX);var dYr=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(dYr,_.RX);var OqN=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(OqN,_.RX);var n5=function(p){return _.MF(p,WY,5)};var otU=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(otU,_.RX);otU.prototype.getValue=function(){return xt(this,1)};var z7B=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(z7B,_.RX);var GA=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(GA,_.RX);GA.prototype.getMetadata=function(){return _.oN(this,X0U,7,PY)};
GA.prototype.hasMetadata=function(){return _.S6(this,X0U,7,PY)};
var YaB=_.MZt(GA),PY=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var AT=function(p){this.JSC$11906_name_=p;this.files_=[];this.directories_=[];this.directoryMap_={}};
AT.prototype.getName=function(){return this.JSC$11906_name_};var Mv=function(p,y){this.callback_=y;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new AT("");IYZ(this,p,this.rootDirectory_);Z9(this)},IYZ=function(p,y,l){for(var q=0;q<y.length;q++){var t=y[q];
t.isFile?(p.fileOps_++,t.file((0,_.FZ)(p.handleFileSuccess_,p,l),(0,_.FZ)(p.handleFileError_,p))):p.unscannedDirectories_.push(new pZ$(t,l))}},Z9=function(p){if(p.unscannedDirectories_.length>0&&p.directoryOps_<5&&!p.hasError_){p.directoryOps_++;
var y=p.unscannedDirectories_.shift(),l=y.entry,q=new AT(l.name);y=y.parent;y.directoryMap_[q.getName()]=q;y.directories_.push(q);l=l.createReader();l.readEntries((0,_.FZ)(p.handleDirectorySuccess_,p,l,q),(0,_.FZ)(p.handleDirectoryError_,p))}p.directoryOps_!=0||p.fileOps_!=0||p.unscannedDirectories_.length!=0&&!p.hasError_||p.callback_(p.rootDirectory_.files_,p.rootDirectory_.directories_,p.hasError_)};
Mv.prototype.handleDirectorySuccess_=function(p,y,l){IYZ(this,l,y);l.length==0?(this.directoryOps_--,Z9(this)):p.readEntries((0,_.FZ)(this.handleDirectorySuccess_,this,p,y),(0,_.FZ)(this.handleDirectoryError_,this))};
Mv.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;Z9(this)};
Mv.prototype.handleFileSuccess_=function(p,y){p.files_.push(y);this.fileOps_--;Z9(this)};
Mv.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;Z9(this)};
var pZ$=function(p,y){this.entry=p;this.parent=y};var VW=function(p){_.Fn.call(this);_.BL(p,"drop",this.onObjectsDropped_,!1,this);_.BL(p,"dragenter",this.onFilesDragged_,!1,this);_.BL(p,"dragover",this.onFilesDragged_,!1,this);_.BL(p,"dragleave",this.onDragLeave_,!1,this);_.BL(p,"dragend",this.onDragLeave_,!1,this)};
_.j6(VW,_.Fn);var yLV=function(p,y){_.Ku.call(this,"f");this.files=p;this.directories=y};
_.j6(yLV,_.Ku);var lIM=function(){_.Ku.call(this,"h")};
_.j6(lIM,_.Ku);var qfP=function(){_.Ku.call(this,"i")};
_.j6(qfP,_.Ku);var sCi=function(){_.Ku.call(this,"g")};
_.j6(sCi,_.Ku);VW.prototype.onObjectsDropped_=function(p){var y=this;p.preventDefault();var l=p.event_.dataTransfer;if((p=l&&l.items)&&p.length>0&&p[0].webkitGetAsEntry){l=[];for(var q=[],t=0;t<p.length;t++){var E=p[t].webkitGetAsEntry();E?l.push(E):q.push(p[t])}new Mv(l,function(e,C,u){u?y.dispatchEvent(new sCi("Error occurred while reading from the file system.")):y.dispatchEvent(new yLV(e,C,q))})}else(p=l&&l.files)&&this.dispatchEvent(new yLV(Array.from(p),[]))};
VW.prototype.onFilesDragged_=function(p){p.type==="dragenter"&&this.dispatchEvent(new lIM);p.preventDefault()};
VW.prototype.onDragLeave_=function(){this.dispatchEvent(new qfP)};var tzU=function(p,y){this.JSC$11929_name_=p;this.inputElement_=y};
tzU.prototype.getName=function(){return this.JSC$11929_name_};
tzU.prototype.getInputElement=function(){return this.inputElement_};var ge=function(p,y,l){y=y===void 0?"single_file":y;l=l===void 0?[]:l;_.Fn.call(this);this.overlayTarget_=p;this.parentOverlay_=p!=null?p.parentNode:_.gg("scotty-overlay-parent");this.selectorType_=y;this.acceptTypes_=l;this.overlay_=ECN(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.A(ge,_.Fn);
var ECN=function(p,y,l,q){var t=document.createElement("input");t.setAttribute("type","file");t.setAttribute("name","Filedata");_.BL(t,"change",p.onFilesSelected_,!1,p);l==="multiple_file"&&(t.multiple="true");l==="single_directory"&&(t.webkitdirectory="true");q.length>0&&t.setAttribute("accept",q.join(","));t.style.position="absolute";t.style.overflow="hidden";t.style.height="0px";t.style.width="0px";t.style.opacity="0";t.setAttribute("aria-hidden","true");t.setAttribute("tabIndex",-1);if(p.overlayTarget_!=
null)return t.style.height=y.offsetHeight+"px",t.style.width=y.offsetWidth+"px",p.parentOverlay_&&(p.parentOverlay_.style.position="relative"),_.Xd(t,y),IC(t,new _.BJ(y.offsetLeft,y.offsetTop)),t;p.parentOverlay_.appendChild(t);return t};
ge.prototype.click=function(){this.overlay_.click()};
ge.prototype.onFilesSelected_=function(p){a:{try{var y=(new XMLHttpRequest).upload!==void 0;break a}catch(a){}y=!1}if(y){var l;p=Array.from((l=p.target.files)!=null?l:[]);l=[];if(this.selectorType_==="single_directory"&&(_.ZY||Jk||_.Aj)){l=new AT("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(y=0;y<p.length;y++)for(var q=p[y],t=q.webkitRelativePath.split("/"),E=l,e=0;e<t.length;e++){var C=t[e];if(e==t.length-1){C!="."&&E.files_.push(q);break}var u=E.directoryMap_[C];u==void 0&&(C=
u=new AT(C),E.directoryMap_[C.getName()]=C,E.directories_.push(C));E=u}l=l.directories_}this.dispatchEvent(new JL$(p,l,null))}else p=p.target.value,p.match(/^c:\\fakepath\\/i)&&(p=p.substring(12)),this.dispatchEvent(new JL$([],[],new tzU(p,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=ECN(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var JL$=function(p,y){_.Ku.call(this,"j");this.files=p;this.directories=y};
_.A(JL$,_.Ku);var cLO=function(p){this.uploadUrl_=p};var eux=function(){_.Fn.call(this)};
_.j6(eux,_.Fn);var QW=function(p){_.Ku.call(this,p)};
_.j6(QW,_.Ku);var K5=function(p){_.Ku.call(this,p)};
_.j6(K5,_.Ku);var hu$=function(p,y,l,q,t){_.Fn.call(this);l=document.createElement("form");l.setAttribute("method",y);l.setAttribute("enctype","multipart/form-data");l.setAttribute("encoding","multipart/form-data");y=document.createElement("input");y.setAttribute("type","hidden");y.setAttribute("name","metadata");y.setAttribute("value",t);l.appendChild(y);l.appendChild(q);this.JSC$11946_form_=l;p=new _.JO(p);_.pr(p,"upload_protocol","multipart");this.JSC$11946_url_=p.toString();this.JSC$11946_request_=new mG;this.state_=
"Ready";this.JSC$11946_errorDescription_=null;this.JSC$11946_eventHandler_=new _.W2(this);_.P9(this,this.JSC$11946_eventHandler_);this.JSC$11946_eventHandler_.listen(this.JSC$11946_request_,"success",this.onTransferSuccess_);this.JSC$11946_eventHandler_.listen(this.JSC$11946_request_,"error",this.onTransferError_)};
_.A(hu$,eux);_.J=hu$.prototype;_.J.run=function(){this.state_="Transferring";var p=this.JSC$11946_request_,y=this.JSC$11946_form_;if(p.JSC$11364_active_)throw Error("oe");var l=new _.JO(this.JSC$11946_url_||y.action);p.JSC$11364_form_=y;y=p.JSC$11364_form_;l=_.zB(l.toString());l!==void 0&&(y.action=l);NWi(p)};
_.J.getResponseCode=function(){return null};
_.J.getResponseText=function(){return this.JSC$11946_request_&&this.JSC$11946_request_.getResponseText()||null};
_.J.JSC$29148_getErrorDescription=function(){return this.JSC$11946_errorDescription_};
_.J.cancel=function(){this.JSC$11946_request_&&this.JSC$11946_request_.abort();this.state_="Cancelled";this.dispatchEvent(new QW("o"))};
_.J.pause=function(){};
_.J.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new QW("l"))};
_.J.onTransferError_=function(){this.JSC$11946_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new QW("n"))};var we=function(){_.Bf.call(this)};
_.A(we,_.Bf);we.prototype.createXhr=function(){var p=_.Bf.prototype.createXhr.call(this);p.upload&&(p.upload.onprogress=(0,_.FZ)(this.onProgress_,this));return p};
we.prototype.onProgress_=function(p){this.dispatchEvent(p)};var CkN=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},RuU=function(p,y){var l=p.attempt_+1;
if(p.maxAttempts_>0&&l>p.maxAttempts_)return!1;l==0?y():p.delayCallId_=Hf(function(){p.delayCallId_=null;y()},udU(p),p);
p.attempt_=l;return!0};
CkN.prototype.reset=function(){this.delayCallId_&&_.l_.clearTimeout(this.delayCallId_);this.attempt_=-1};
var udU=function(p){var y=250*Math.pow(2,p.attempt_);p.maxDelayMs_>=0&&(y=Math.min(y,p.maxDelayMs_));return y};var AHL=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var ic=function(){_.Fn.call(this);this.JSC$11956_request_=this.state_=null;this.JSC$11956_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$11956_bytesTransferred_=0;this.retryIterator_=new CkN;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$11956_errorDescription_=null;this.JSC$11956_eventHandler_=new _.W2(this);_.P9(this,this.JSC$11956_eventHandler_);this.JSC$11956_url_=this.blob_=null;this.JSC$11956_method_=void 0;this.chunkSize_=this.JSC$11956_metadata_=
this.JSC$11956_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$11956_responseText_=this.JSC$11956_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.j6(ic,eux);_.J=ic.prototype;_.J.run=function(){re(this)};
_.J.getResponseCode=function(){return this.JSC$11956_responseCode_};
_.J.getResponseText=function(){return this.JSC$11956_responseText_};
_.J.JSC$29148_getErrorDescription=function(){return this.JSC$11956_errorDescription_};
_.J.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$11956_eventHandler_.removeAll();this.JSC$11956_request_&&this.JSC$11956_request_.abort();this.retryIterator_.reset();var p=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(p==="Upload"||p==="Query")p=new we,p.JSC$9731_withCredentials_=this.JSC$11956_withCredentials_,p.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$11956_bytesTransferred_=
0;this.dispatchEvent(new QW("o"))}};
_.J.pause=function(){this.pauseRequested_=!0};
var re=function(p){var y=p.state_;p.pauseRequested_?(p.pauseRequested_=!1,p.stateAfterUnpausing_=y,p.state_="Paused"):RuU(p.retryIterator_,function(){switch(p.state_){case "Start":p.JSC$11956_request_=new we;var l=_.Ts.clone(p.JSC$11956_headers_);p.blob_.size!=null&&(l["Content-Length"]=p.blob_.size);l=Z2c(l);l["X-Goog-Upload-Protocol"]="resumable";l["X-Goog-Upload-Command"]="start";p.JSC$11956_eventHandler_.removeAll();p.JSC$11956_eventHandler_.listen(p.JSC$11956_request_,"complete",p.onStartComplete_);
p.JSC$11956_request_.JSC$9731_withCredentials_=p.JSC$11956_withCredentials_;p.JSC$11956_request_.send(p.JSC$11956_url_,p.JSC$11956_method_,p.JSC$11956_metadata_,l);p.lastCommandResponseCode_=null;p.dispatchEvent(new K5("q"));break;case "Upload":l=p.transferHandle_.uploadUrl_;var q=p.blob_.size;if(bT$()){var t=p.chunkSize_;var E=p.offset_+t>=q;q=jdN(p.blob_,p.offset_,E?q:p.offset_+t)}else p.offset_=0,q=p.blob_,E=!0;p.JSC$11956_request_=new we;p.JSC$11956_request_.JSC$9731_withCredentials_=p.JSC$11956_withCredentials_;
p.JSC$11956_eventHandler_.removeAll();p.JSC$11956_eventHandler_.listen(p.JSC$11956_request_,"progress",p.onUploadProgress_);t=(0,_.FZ)(p.JSC$11958_onUploadComplete_,p,p.offset_+q.size,E);p.JSC$11956_eventHandler_.listen(p.JSC$11956_request_,"complete",t);p.lastCommandResponseCode_=null;p.dispatchEvent(new K5("q"));E=Object.assign({},p.JSC$11956_headers_||{},{"X-Goog-Upload-Command":"upload"+(E?", finalize":""),"X-Goog-Upload-Offset":p.offset_});p.JSC$11956_request_.send(l,"POST",q,E);break;case "Query":p.JSC$11956_request_=
new we;p.JSC$11956_eventHandler_.removeAll();p.JSC$11956_eventHandler_.listen(p.JSC$11956_request_,"complete",p.onQueryComplete_);l=Object.assign({},p.JSC$11956_headers_||{},{"X-Goog-Upload-Command":"query"});p.JSC$11956_request_.send(p.transferHandle_.uploadUrl_,"POST","",l);p.lastCommandResponseCode_=null;p.dispatchEvent(new K5("q"));break;default:throw Error("df");}})||SV(p,"Transfer encountered too many consecutive failures.")},SV=function(p,y){p.state_="Error";
p.JSC$11956_errorDescription_=y;p.dispatchEvent(new QW("n"))};
ic.prototype.onStartComplete_=function(p){var y=p.target;this.lastCommandResponseCode_=y.getStatus();this.dispatchEvent(new K5("r"));if(WCV(y))aIU(this,y);else if(mZM(y)){p=sr(p.target.getAllResponseHeaders());for(var l in p)_.tR(l.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new QW("m"));l=kc(p,"X-Goog-Upload-URL");p=(p=kc(p,"X-Goog-Upload-Chunk-Granularity"))?parseInt(p,10):1;l===void 0||isNaN(p)||p<=0?SV(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
p)*p,this.transferHandle_=new cLO(l),this.dispatchEvent(new QW("p")),this.state_="Upload",this.retryIterator_.reset(),re(this))}else re(this)};
ic.prototype.onUploadProgress_=function(p){this.JSC$11956_bytesTransferred_=this.offset_+p.loaded;this.dispatchEvent(new QW("k"))};
ic.prototype.JSC$11958_onUploadComplete_=function(p,y,l){var q=this,t,E;return _.h(function(e){switch(e.nextAddress){case 1:t=l.target;q.lastCommandResponseCode_=t.getStatus();q.dispatchEvent(new K5("r"));if(UZv(t)||t.getStatus()==404)return q.JSC$11956_bytesTransferred_=p,aIU(q,t),e.return();if(mZM(t)){e.jumpTo(2);break}if(!(E=q.detectCorruptedBlobEnabled_)){e.jumpTo(3);break}return e.yield($Zr(q),4);case 4:E=e.yieldResult;case 3:if(E)return SV(q,"Blob has been modified or corrupted."),e.return();
q.requireUploadRequestModification_=t.getStatus()==400;q.state_="Query";re(q);return e.return();case 2:if(y)return SV(q,"Got a non-final success response after issuing a finalize command."),e.return();q.JSC$11956_bytesTransferred_=p;q.offset_=p;q.retryIterator_.reset();re(q);return e.return()}})};
ic.prototype.onQueryComplete_=function(p){var y=p.target;this.lastCommandResponseCode_=y.getStatus();this.dispatchEvent(new K5("r"));WCV(y)?(y.getStatus()===200&&(this.JSC$11956_bytesTransferred_=this.blob_.size),aIU(this,y)):mZM(y)?(p=sr(p.target.getAllResponseHeaders()),p=parseInt(kc(p,"X-Goog-Upload-Size-Received"),10),isNaN(p)?SV(this,"Server did not respond with current offset."):p<this.offset_?SV(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
p+"."):this.requireUploadRequestModification_&&this.offset_===p?SV(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<p&&this.retryIterator_.reset(),this.offset_=this.JSC$11956_bytesTransferred_=p,this.state_="Upload",re(this))):re(this)};
var aIU=function(p,y){p.JSC$11956_responseCode_=y.getStatus();var l=sr(y.getAllResponseHeaders());M2L(l);p.JSC$11956_responseText_=y.getResponseText();p.state_="Response received";p.dispatchEvent(new QW("l"))},mZM=function(p){var y=p.getStatus();
p=sr(p.getAllResponseHeaders());p=kc(p,"X-Goog-Upload-Status");return y===200&&p==="active"},UZv=function(p){p=sr(p.getAllResponseHeaders());
return kc(p,"X-Goog-Upload-Status")==="final"},WCV=function(p){if(UZv(p))return!0;
p=p.getStatus();return p>=400&&p<500},$Zr=function(p){var y;
return _.h(function(l){if(l.nextAddress==1){if(!p.blob_||p.originalBlobSize_<=0)return l.return(!1);if(p.blob_.size!==p.originalBlobSize_)return l.return(!0);_.Ve(l,2);if(y=jdN(p.blob_,0,1)){var q=l.yield,t=new pn,E=yxi(t);t.reader_.readAsBinaryString(y);l=q.call(l,E,4)}else l=l.return(!0);return l}if(l.nextAddress!=2)return l.return(p.blob_.size!==p.originalBlobSize_);_.i6(l);return l.return(!0)})};var jCi=function(p,y,l,q,t,E){_.Fn.call(this);this.payload_=q;this.JSC$11959_url_=p;this.JSC$11959_method_=y;this.JSC$11959_headers_=l;this.JSC$11959_metadata_=t;this.encoding_=E||"binary";p=new _.DZ;this.boundary_="uploader-"+zH()+"-"+p.JSC$11213_toIsoString();this.JSC$11959_responseText_=this.JSC$11959_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$11959_errorDescription_=null;this.JSC$11959_eventHandler_=new _.W2(this);_.P9(this,this.JSC$11959_eventHandler_)};
_.A(jCi,eux);_.J=jCi.prototype;
_.J.run=function(){var p=_.Ts.clone(this.JSC$11959_headers_);this.payload_.length!=null&&(p["Content-Length"]=this.payload_.length);p=Z2c(p);p["X-Goog-Upload-Protocol"]="multipart";p["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new we;this.JSC$11959_eventHandler_.removeAll();this.JSC$11959_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$11959_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$11959_url_,this.JSC$11959_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$11959_metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n",p)};
_.J.getResponseCode=function(){return this.JSC$11959_responseCode_};
_.J.getResponseText=function(){return this.JSC$11959_responseText_};
_.J.JSC$29148_getErrorDescription=function(){return this.JSC$11959_errorDescription_};
_.J.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$11959_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new QW("o")))};
_.J.pause=function(){};
_.J.onTransferProgress_=function(){this.dispatchEvent(new QW("k"))};
_.J.onTransferComplete_=function(p){var y=p.target.getStatus();y===void 0||y===-1?(this.JSC$11959_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new QW("n"))):(this.JSC$11959_responseCode_=y,p=p.target,y=sr(p.getAllResponseHeaders()),M2L(y),this.JSC$11959_responseText_=p.getResponseText(),this.state_="Complete",this.dispatchEvent(new QW("l")))};_.bjr=function(p,y,l,q){q=q===void 0?!1:q;if(l instanceof tzU)return new hu$(p,"POST",y,l.getInputElement(),"");if(typeof l==="string"||l instanceof String)return new jCi(p,"POST",y,l,"");var t=new ic(void 0);t.JSC$11956_url_=p;t.JSC$11956_method_="POST";t.JSC$11956_headers_=y;t.blob_=l;t.originalBlobSize_=l.size;t.JSC$11956_metadata_="";q&&(t.JSC$11956_withCredentials_=q);t.state_="Start";return t};var FR=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(FR,_.RX);_.J=FR.prototype;_.J.getEnableSsEngine=function(){return _.T6(this,2)};
_.J.getEnableAwr=function(){return _.T6(this,3)};
_.J.getAlohaAutoGaRollout=function(){return _.T6(this,5)};
_.J.getEnableConfigurator=function(){return _.T6(this,6)};
_.J.getEnableMweb=function(){return _.T6(this,7)};
var GkO=function(){var p=nC$();return _.D_(p,7,!0)};
FR.prototype.getEnableCtlConsentCheckbox=function(){return _.T6(this,8)};
FR.prototype.getEnableIframe=function(){return _.T6(this,9)};
var nC$=function(){var p=new FR;p=_.D_(p,5,!0);p=_.D_(p,2,!0);p=_.D_(p,4,!1);p=_.D_(p,8,!0);return _.D_(p,9,!0)};
FR.prototype.getEnableScreenshotNudge=function(){return _.T6(this,10)};
var Pkv=function(){var p=GkO();return _.D_(p,10,!0)};
FR.prototype.getEnableWebStartupConfigEndpoint=function(){return _.T6(this,11)};
FR.prototype.getEnableJunkNudge=function(){return _.T6(this,12)};
var vDt=function(){var p=Pkv();return _.D_(p,12,!0)};
_.J=FR.prototype;_.J.getEnableConfiguratorLocale=function(){return _.T6(this,13)};
_.J.getEnableTinyNoPointer=function(){return _.T6(this,14)};
_.J.getEnableSupportSessionLogging=function(){return _.T6(this,15)};
_.J.getEnableFileUploadForScreenshot=function(){return _.T6(this,16)};
_.J.getEnableDirectDeflectionForSingleCategory=function(){return _.T6(this,17)};
_.J.getEnableImageSanitization=function(){return _.T6(this,18)};
_.J.getEnableAlohaBinarySplit=function(){return _.T6(this,19)};
_.J.getEnableDbFeedbackIntents=function(){return _.T6(this,20)};
_.J.getEnableMarkMandatoryFieldsWithRequired=function(){return _.T6(this,21)};
_.J.getEnableFeedbackCategoryCustomUi=function(){return _.T6(this,22)};
_.J.getEnableRealtimeCtl=function(){return _.T6(this,23)};var fvR=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(fvR,_.RX);var V2_=[/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 Q2R="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 Kt_=_.c0(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),wPt=_.c0(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var rHR,Ltc,S0c,kC_;var ALv,Zji;
ALv=function(p,y,l){p.timeOfStartCall=(new Date).getTime();var q=l||_.l_,t=q.document,E=p.nonce||_.tw(q.document);E&&!p.nonce&&(p.nonce=E);if(p.flow=="help"){var e=_.I4("document.location.href",q);!p.helpCenterContext&&e&&(p.helpCenterContext=e.substring(0,1200));e=!0;if(y&&JSON&&JSON.stringify){var C=JSON.stringify(y);(e=C.length<=1200)&&(p.psdJson=C)}e||(y={invalidPsd:!0})}y=[p,y,l];q.GOOGLE_FEEDBACK_START_ARGUMENTS=y;l=p.feedbackServerUri||"//www.google.com/tools/feedback";if(e=q.GOOGLE_FEEDBACK_START)e.apply(q,y);
else{q=l+"/load.js?";for(var u in p)y=p[u],y==null||_.yQ(y)||(q+=encodeURIComponent(u)+"="+encodeURIComponent(y)+"&");p=SO(t).createElement("SCRIPT");E&&p.setAttribute("nonce",E);_.e_(p,_.FX(q));t.body.appendChild(p)}};
Zji=function(p,y,l,q){var t,E;_.h(function(e){t=l||_.l_;var C=p.serverEnvironment==="DEV",u=l||_.l_;u=p.nonce||_.tw(u.document);C={integrationKeys:{productId:p.productId,feedbackBucket:p.bucket,triggerId:p.triggerId},callbacks:{onClose:p.callback,onLoad:p.onLoadCallback},formContent:{locale:p.locale,disableScreenshot:p.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,
defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:p.abuseLink,additionalDataConsent:p.additionalDataConsent},initializationData:{isLocalServer:C,nonce:u,useNightlyRelease:C,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:p.feedbackServerUri,colorScheme:p.colorScheme},extraData:{productVersion:p.productVersion,authUser:p.authuser,configuratorId:p.configuratorId,customZIndex:p.customZIndex,tinyNoPointer:p.tinyNoPointer,
allowNonLoggedInFeedback:p.allowNonLoggedInFeedback,enableAnonymousFeedback:p.enableAnonymousFeedback}};y&&(u=new Map(Object.entries(y)),C.extraData.productSpecificData=u);E=C;return e.yield(TYR(E,q,t),0)})};
_.MzZ=function(p,y,l){try{if(p.flow==="help"){var q=p.helpCenterPath.replace(/^\//,"");_.s8(l||window,"https://support.google.com/"+q)}else p.flow==="submit"?ALv(p,y,l):XPR(p.productId,p.feedbackServerUri).then(function(t){t=_.MF(t,FR,1);var E=!Q6L||(t==null?void 0:t.getEnableMweb()),e=!p.tinyNoPointer||(t==null?void 0:t.getEnableTinyNoPointer());!t||t.getAlohaAutoGaRollout()&&E&&e?Zji(p,y,l,t):ALv(p,y,l)},function(t){t&&t.name!=="DuplicateFormError"&&ALv(p,y,l)})}catch(t){Zji(p,y,l,null)}};
_.e0("userfeedback.api.startFeedback",_.MzZ);var dDl=/https?:\/\/\S+\.\S+/,O28=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],oDl=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var O1R=function(p){var y=p.split(""),l=[-263237435,15,y,function(q,t,E){var e=t.length;E.forEach(function(C,u,a){this.push(a[u]=t[(t.indexOf(C)-t.indexOf(this[u])+u+e--)%t.length])},q.split(""))},
function(q,t){q=(q%t.length+t.length)%t.length;t.splice(-q).reverse().forEach(function(E){t.unshift(E)})},
"response",function(){for(var q=64,t=[];++q-t.length-32;){switch(q){case 58:q-=14;case 91:case 92:case 93:continue;case 123:q=47;case 94:case 95:case 96:continue;case 46:q=95}t.push(String.fromCharCode(q))}return t},
null,12,1540023973,65941107,null,y,function(q,t){for(q=(q%t.length+t.length)%t.length;q--;)t.unshift(t.pop())},
695603893,function(q){for(var t=q.length;t;)q.push(q.splice(--t,1)[0])},
"'[;'[(",function(q,t){q.push(t)},
null,function(q,t,E,e,C){return t(E,e,C)},
"continuation",y,function(q,t){if(q.length!=0){t=(t%q.length+q.length)%q.length;var E=q[0];q[0]=q[t];q[t]=E}},
function(){for(var q=64,t=[];++q-t.length-32;){switch(q){case 91:q=44;continue;case 123:q=65;break;case 65:q-=18;continue;case 58:q=96;continue;case 46:q=95}t.push(String.fromCharCode(q))}return t},
'"),/]];'];l[7]=l;l[11]=l;l[18]=l;try{(((0,l[15])(l[21]),l[22])(l[11],l[9]),l[22])(l[new Date("1970-01-01T04:30:12.000+04:30")/1E3],l[1]),((0,l[22])(l[11],l[23]),l[4])(l[10],l[18]),(0,l[20])(l[21],l[14])<<(0,l[17])(l[18],l[1]),(0,l[4])(l[8],l[21]),(0,l[19])((0,l[19])((0,l[17])(l[7],l[9]),l[3],l[20],(0,l[6])(),l[2]),l[3],l[5],(0,l[15])(),l[2])}catch(q){return"aTlOUOubTO4AP____8P_"+p}return y.join("")};_.VzP=new _.uK("runAttestationCommand");var gCZ=new _.uK("verifyCommand");_.L5=new _.uK("accessibilityContext");var QCO=new _.uK("accessibilityData");var KCV=new _.uK("profileCardCommand");var Pqo=new _.uK("signInEndpoint");var GNo=new _.uK("signOutEndpoint");var ijv;_.wZv=new _.uK("accountItemSectionRenderer");ijv=new _.uK("accountItemRenderer");_.rL$=new _.uK("saveCommandToSessionStorageAction");var SfQ=new _.uK("crossAccountChannelTransferEndpoint");var $9u=new _.uK("getAccountMenuEndpoint");_.jQl=new _.uK("getAccountSwitcherEndpoint");var U9L=new _.uK("getAccountsListEndpoint");var FCO=new _.uK("getAccountsListInnertubeEndpoint");_.kB=new _.uK("addToToastAction");var LC$=new _.uK("hideEnclosingAction");_.Nv=new _.uK("replaceEnclosingAction");var kk$=new _.uK("buttonRefreshAction");var NHv=new _.uK("adsControlFlowOpportunityReceivedCommand");var DZv=new _.uK("openAdAllowlistInstructionCommand");var HjZ=new _.uK("videoMastheadAdPrimaryVideoRenderer");var THV=new _.uK("displayAdRenderer");var Fso=new _.uK("instreamVideoAdRenderer");_.xZQ=new _.uK("inFeedAdLayoutRenderer");var BHi=new _.uK("sequenceItemInPlayerAdLayoutRenderer");_.fIU=new _.uK("adSlotRenderer");var vCP=new _.uK("adAvatarViewModel");var XZN=new _.uK("adBadgeViewModel");var dZV=new _.uK("adImageViewModel");var Rwa=new _.uK("reelsAdCardButtonedViewModel");var OjZ=new _.uK("reelsPlayerOverlayLayoutViewModel");var oCx=new _.uK("showSchedulingPanelCommand");var zuN=new _.uK("backstageCommentsRenderer");var YfZ=new _.uK("backstageImageRenderer");var IIM=new _.uK("backstagePostRenderer");var pfv=new _.uK("backstageZeroStateRenderer");var y7Z=new _.uK("postRenderer");var lOr=new _.uK("sharedPostRenderer");var qVU=new _.uK("createBackstagePostEndpoint");var sZN=new _.uK("getPostVideoPreviewEndpoint");var tJP=new _.uK("updateBackstagePostEndpoint");var Evv=new _.uK("filterChipTransformCommand");var J7O=new _.uK("insertRichSectionCommand");var J8u=new _.uK("talkToRecsDeselectCommand");var c7r=new _.uK("talkToRecsNextCommand");var EOo=new _.uK("talkToRecsSelectCommand");var eBU=new _.uK("talkToRecsUpdateTextCommand");_.wC=new _.uK("browseEndpoint");_.hBP=new _.uK("confirmDialogEndpoint");var C0N=new _.uK("expandOnHoverCardRenderer");var unB=new _.uK("lumiereShelfDetailsRenderer");var RBM=new _.uK("revealBusinessEmailCommand");var W6U=new _.uK("validateChannelHandleCommand");var aOV=new _.uK("channelCreationFormEndpoint");var miV=new _.uK("aboutChannelViewModel");var Ui$=new _.uK("channelThumbnailWithLinkRenderer");var $iN=new _.uK("channelCreationServiceEndpoint");var jZQ=new _.uK("updateChannelPageSettingsEndpoint");var D9=function(p){this.delegate=p},HY=function(){D9.apply(this,arguments)};
_.A(HY,D9);_.Jh.Object.defineProperties(HY.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(p){this.delegate.entityMetadata=p}}});var buQ=function(){HY.apply(this,arguments)};
_.A(buQ,HY);buQ.prototype.getAssociations=function(){return[]};
buQ.prototype.getTypeName=function(){return"channelHandle"};var GG_=new _.uK("webThumbnailDetailsExtensionData");var vKl=new _.uK("commandContext");var nvx=new _.uK("addVideoLinkAction");var GtO=new _.uK("banAuthorAction");var P0U=new _.uK("createCommentAction");var A7N=new _.uK("createCommentReplyAction");var ZuU=new _.uK("createPollAction");var MJO=new _.uK("hideIdentityChipAction");var VJO=new _.uK("openUpdateCommentDialogAction");var gv$=new _.uK("pinCommentAction");var QZi=new _.uK("removeCommentAction");var K6i=new _.uK("unpinCommentAction");var TA=new _.uK("updateBackstagePollAction");var wfx=new _.uK("updateCommentVoteAction");var iuM=new _.uK("commentThreadRenderer");var r7i=function(){HY.apply(this,arguments)};
_.A(r7i,HY);r7i.prototype.getAssociations=function(){return[]};
r7i.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var SVV=function(){HY.apply(this,arguments)};
_.A(SVV,HY);SVV.prototype.getAssociations=function(){return[]};
SVV.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.F6i=new _.uK("commentDialogRenderer");var L6r=new _.uK("reloadCommentsCommand");var ktB=new _.uK("updateCommentsSettingsEndpoint");var N5v=new _.uK("commentViewModel");var DiN=new _.uK("triStateButtonViewModel");var HuM=new _.uK("voiceReplyContainerViewModel");_.AO=new _.uK("commandExecutorCommand");var Yg=new _.uK("emoji");var T5Q=new _.uK("updateCreatorChannelInnertubeCommand");_.xir=new _.uK("appendContinuationItemsAction");_.B5P=new _.uK("changeEngagementPanelVisibilityAction");_.qr=new _.uK("continuationCommand");var fOx=new _.uK("hideReportedCommentAction");var vvZ=new _.uK("listMutationCommand");_.xB=new _.uK("openPopupAction");var XfP=new _.uK("persistSubscriptionsDisplayPreferencesCommand");var yHr;_.diB=new _.uK("playlistRemoveVideosAction");_.Our=new _.uK("updatePlaylistAction");_.ovU=new _.uK("addToPlaylistCommand");_.zBU=new _.uK("endPlaylistCommand");_.YVP=new _.uK("recoverPlaylistCommand");_.IO$=new _.uK("refreshPlaylistCommand");_.pPQ=new _.uK("refreshFormCommand");yHr=new _.uK("openOnePickAddVideoModalCommand");_.ZMu=new _.uK("reloadContinuationItemsCommand");_.lv$=new _.uK("scrollToEngagementPanelCommand");var q0M=new _.uK("selectCountryCommand");var s2$=new _.uK("showReloadUiCommand");var t2i=new _.uK("undoFeedbackAction");var EDQ=new _.uK("updateButtonAction");var JHr=new _.uK("updateSubscribeButtonAction");var cHQ=new _.uK("updateToggleAction");var eNU=new _.uK("webNativeShareCommand");_.ul=new _.uK("webCommandMetadata");_.BY=new _.uK("webHandleServiceEndpointExtension");var a5m=new _.uK("webNavigationEndpointData");var hNU=new _.uK("copyLinkCommand");var CRZ=new _.uK("playlistVotingRefreshPopupCommand");var uev=new _.uK("selectChipCommand");var RNM=new _.uK("setCookieCommand");var Wtr=new _.uK("setLocalStorageCommand");var avU=new _.uK("setPrefStorageEntryCommand");var j2U;_.mDi=new _.uK("settingsUpdateCheckboxCommand");_.UDx=new _.uK("settingsUpdateTextCommand");_.$DV=new _.uK("settingsUpdateOptionsCommand");j2U=new _.uK("settingsUpdateSwitchCommand");_.b2Z=new _.uK("settingsUpdateConnectedAppRendererCommand");var nDQ=new _.uK("updateTextInputFormFieldRendererCommand");var GCx=new _.uK("updateToggleButtonStateCommand");var PRM=new _.uK("updateUrlParamCommand");var AHP=new _.uK("webSubmitFormCommand");var Z2$=new _.uK("channelSwitcherPageRenderer"),M2P=new _.uK("updateChannelSwitcherPageAction");_.aA=new _.uK("continuationItemRenderer");_.f5=new _.uK("richItemRenderer");var V2N=new _.uK("richSectionRenderer");_.gDN=new _.uK("richShelfRenderer");_.Q2Z=new _.uK("metadataBadgeRenderer");_.KtN=new _.uK("multiPageMenuNotificationSectionRenderer");_.wPV=new _.uK("playlistLoopButtonStateRenderer");var i2i=new _.uK("claimLegacyYoutubeChannelEndpoint");var rHZ=new _.uK("getNotificationMenuEndpoint");var S0$=new _.uK("getSearchInVideoCommand");_.Fti=new _.uK("getTranscriptEndpoint");_.Mn=new _.uK("signalServiceEndpoint");var Lt$=new _.uK("verifyAgeEndpoint");var YDt=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(YDt,_.RX);YDt.prototype.getPath=function(){return _.fq(this,1)};
YDt.prototype.getValue=function(){return _.fq(this,2)};var kCN=[0,_.cZ,-1];var NYx=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(NYx,_.RX);var zt_=_.AE(NYx,[0,_.ez,kCN]);var DDU=new _.uK("dismissalEndpoint");var H2r=new _.uK("elementsCommand");_.pY=new _.uK("innertubeCommand");var TYZ=new _.uK("multipleInlinePlaybackCommand");var Id6=new _.uK("loggingDirectives");var xDU=new _.uK("acknowledgeChannelTouStrikeCommand");var BYO=function(){HY.apply(this,arguments)};
_.A(BYO,HY);BYO.prototype.getAssociations=function(){return[]};
BYO.prototype.getTypeName=function(){return"booleanEntity"};var fvZ=function(){HY.apply(this,arguments)};
_.A(fvZ,HY);fvZ.prototype.getAssociations=function(){return[]};
fvZ.prototype.getTypeName=function(){return"stringEntity"};var uj=new _.uK("entityBatchUpdate");_.vDV=new _.uK("entityUpdateCommand");var XPZ=function(){HY.apply(this,arguments)};
_.A(XPZ,HY);XPZ.prototype.getAssociations=function(){var p=[];this.delegate.alternateChannel&&p.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&p.push.apply(p,_.xq(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&p.push(this.delegate.oneofChannelEntity);return[].concat(_.xq(new Set(p)))};
XPZ.prototype.getTypeName=function(){return"fakeChannel"};var dDM=function(){HY.apply(this,arguments)};
_.A(dDM,HY);dDM.prototype.getAssociations=function(){var p=[];this.delegate.entryCollection&&p.push(this.delegate.entryCollection);return[].concat(_.xq(new Set(p)))};
dDM.prototype.getTypeName=function(){return"fakePlaylist"};
var O2U=function(){HY.apply(this,arguments)};
_.A(O2U,HY);O2U.prototype.getAssociations=function(){var p=[];this.delegate.parentPlaylist&&p.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var y=_.c(this.delegate.entries),l=y.next();!l.done;l=y.next())p.push.apply(p,_.xq((new oDM(l.value)).getAssociations()));return[].concat(_.xq(new Set(p)))};
O2U.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var oDM=function(){D9.apply(this,arguments)};
_.A(oDM,D9);oDM.prototype.getAssociations=function(){var p=[];this.delegate.video&&p.push(this.delegate.video);return[].concat(_.xq(new Set(p)))};var zNM=function(){HY.apply(this,arguments)};
_.A(zNM,HY);zNM.prototype.getAssociations=function(){var p=[];this.delegate.descriptionEntity&&p.push(this.delegate.descriptionEntity);this.delegate.creators&&p.push.apply(p,_.xq(this.delegate.creators));this.delegate.theBiggestFan&&p.push(this.delegate.theBiggestFan);return[].concat(_.xq(new Set(p)))};
zNM.prototype.getTypeName=function(){return"fakeVideo"};
var Y0B=function(){HY.apply(this,arguments)};
_.A(Y0B,HY);Y0B.prototype.getAssociations=function(){return[]};
Y0B.prototype.getTypeName=function(){return"fakeVideoDescription"};var Ivi=new _.uK("fantasyRosterViewModel");var pEv=new _.uK("addFollowUpSurveyCommand");var y6U=new _.uK("getSurveyCommand");var lmB=new _.uK("ratingSurveyOptionRenderer");_.dU=new _.uK("feedbackEndpoint");var qAU=new _.uK("reportHistoryTableCellRenderer"),sLM=new _.uK("reportHistoryTableTextCellRenderer"),txQ=new _.uK("reportHistoryTableReasonCellRenderer");_.Ef$=new _.uK("flagEndpoint");var J6r=new _.uK("getFlowCommand");var c6U=new _.uK("submitFormWithValidationFlowCommand");var ekU=function(){HY.apply(this,arguments)};
_.A(ekU,HY);ekU.prototype.getAssociations=function(){return[]};
ekU.prototype.getTypeName=function(){return"flowStateEntity"};var hkx=new _.uK("flowFormState");var CKB=new _.uK("gameCardRenderer");var uaB=new _.uK("accountLinkingStateChangedCommand");var RkU=function(){HY.apply(this,arguments)};
_.A(RkU,HY);RkU.prototype.getAssociations=function(){return[]};
RkU.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var W4B=new _.uK("changeMiniAppPlayStateCommand");var amr=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(amr,_.RX);var vY=[1,2,3];var myr=[0,vY,qHt,_.sI5,ojc];var UyM=_.AE(amr,myr),$yP=_.Zl(myr);var jLQ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(jLQ,_.RX);var bgO=[0,_.tL,_.cZ];var nfN=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(nfN,_.RX);var GvB=[0,_.cZ,_.tL,-1];var de=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(de,_.RX);var PKx=_.Zl([0,1,bgO,_.Cj,GvB]);var A6Q=new _.uK("miniAppScoreChallengeViewModel");var Zgr=new _.uK("miniGameCardViewModel");var MxP=new _.uK("teaserCardViewModel");var VxM=function(){HY.apply(this,arguments)};
_.A(VxM,HY);VxM.prototype.getAssociations=function(){return[]};
VxM.prototype.getTypeName=function(){return"logoEntity"};_.gfU=new _.uK("feedbackItemRenderer");var QLZ=function(){HY.apply(this,arguments)};
_.A(QLZ,HY);QLZ.prototype.getAssociations=function(){return[]};
QLZ.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.K4Z=new _.uK("playerInterstitialRenderer");var wEr=new _.uK("getKidsBlocklistPickerCommand");_.igU=new _.uK("updateKidsBlacklistEndpoint");_.yG=new _.uK("likeEndpoint");var r6$,SAV,F4M;r6$=new _.uK("addChatItemAction");SAV=new _.uK("removeChatItemAction");F4M=new _.uK("markChatItemAsDeletedAction");_.L4U=new _.uK("setLiveChatCollapsedStateAction");var kvr=function(){HY.apply(this,arguments)};
_.A(kvr,HY);kvr.prototype.getAssociations=function(){return[]};
kvr.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var NIQ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(NIQ,_.RX);var DyZ=_.AE(NIQ,[0,1,_.tL]);var HgU=new _.uK("liveChatEndpoint");var TIi=new _.uK("liveChatItemContextMenuEndpoint");var xyv=new _.uK("liveChatReplayEndpoint");_.BIQ=new _.uK("emojiPickerRenderer");var fmN=new _.uK("liveChatAuthorBadgeViewModel");var vfU=new _.uK("deleteLiveChatMessageCommand");var XEM=new _.uK("liveChatActionEndpoint");var dyO=new _.uK("createLiveChatPollEndpoint");var Ogx=new _.uK("manageLiveChatUserEndpoint");var ofP=new _.uK("moderateLiveChatEndpoint");_.zkB=new _.uK("sendLiveChatMessageEndpoint");var YAV=new _.uK("sendLiveChatVoteEndpoint");var ImO=new _.uK("clearLocationCommand");var pzi=new _.uK("resolveLocationCommand");var ycx=new _.uK("interactionLoggingCommandMetadata");var lZZ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(lZZ,_.RX);var qTP=function(p,y){return _.jr(p,1,y)};var saZ=[0,_.JL];var tCi=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(tCi,_.RX);var EdZ=function(p,y){return V6(p,1,lZZ,y)};tCi.prototype.JSC$12053_serializeBinary=ZOt([0,_.ez,saZ]);var Uyl={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 JcM={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"},
ccU={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 kll={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED"};_.Dpl=new _.uK("logFlowLoggingEventCommand");_.kg=new _.uK("loggingContext");var evU=new _.uK("captionLanguageSelectActionCommand");var hvr=new _.uK("showCaptionLanguageSelectActionCommand");var CmO=new _.uK("dismissDialogEndpoint");var u6P=new _.uK("hideItemSectionVideosByIdCommand");var RvU=new _.uK("showMiniplayerCommand");var Wgx=function(){HY.apply(this,arguments)};
_.A(Wgx,HY);Wgx.prototype.getAssociations=function(){return[]};
Wgx.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var aZN=function(){HY.apply(this,arguments)};
_.A(aZN,HY);aZN.prototype.getAssociations=function(){return[]};
aZN.prototype.getTypeName=function(){return"downloadStatusEntity"};var m6$=function(){HY.apply(this,arguments)};
_.A(m6$,HY);m6$.prototype.getAssociations=function(){return[]};
m6$.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var U6v=function(){HY.apply(this,arguments)};
_.A(U6v,HY);U6v.prototype.getAssociations=function(){var p=[];this.delegate.downloadsList&&p.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&p.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&p.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&p.push(this.delegate.refresh);return[].concat(_.xq(new Set(p)))};
U6v.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var $6i=function(){HY.apply(this,arguments)};
_.A($6i,HY);$6i.prototype.getAssociations=function(){var p=[];this.delegate.refresh&&p.push(this.delegate.refresh);if(this.delegate.downloads)for(var y=_.c(this.delegate.downloads),l=y.next();!l.done;l=y.next())p.push.apply(p,_.xq((new jaV(l.value)).getAssociations()));return[].concat(_.xq(new Set(p)))};
$6i.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var jaV=function(){D9.apply(this,arguments)};
_.A(jaV,D9);jaV.prototype.getAssociations=function(){var p=[];this.delegate.video&&p.push(this.delegate.video);this.delegate.playlist&&p.push(this.delegate.playlist);this.delegate.videoItem&&p.push(this.delegate.videoItem);this.delegate.playlistItem&&p.push(this.delegate.playlistItem);return[].concat(_.xq(new Set(p)))};var bzU=function(){HY.apply(this,arguments)};
_.A(bzU,HY);bzU.prototype.getAssociations=function(){var p=[];this.delegate.localImageEntities&&p.push.apply(p,_.xq(this.delegate.localImageEntities));return[].concat(_.xq(new Set(p)))};
bzU.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var ndr=function(){HY.apply(this,arguments)};
_.A(ndr,HY);ndr.prototype.getAssociations=function(){var p=[];this.delegate.playbackData&&p.push(this.delegate.playbackData);this.delegate.localImageEntities&&p.push.apply(p,_.xq(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&p.push(this.delegate.videoDownloadContextEntity);return[].concat(_.xq(new Set(p)))};
ndr.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var GrV=function(){HY.apply(this,arguments)};
_.A(GrV,HY);GrV.prototype.getAssociations=function(){return[]};
GrV.prototype.getTypeName=function(){return"offlineabilityEntity"};var PmB=function(){HY.apply(this,arguments)};
_.A(PmB,HY);PmB.prototype.getAssociations=function(){var p=[];this.delegate.fakeChildren&&p.push.apply(p,_.xq(this.delegate.fakeChildren));return[].concat(_.xq(new Set(p)))};
PmB.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var AcU=function(){HY.apply(this,arguments)};
_.A(AcU,HY);AcU.prototype.getAssociations=function(){var p=[];this.delegate.video&&p.push(this.delegate.video);this.delegate.playbackData&&p.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&p.push(this.delegate.offlineVideoPolicy);return[].concat(_.xq(new Set(p)))};
AcU.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var ZzO=function(){HY.apply(this,arguments)};
_.A(ZzO,HY);ZzO.prototype.getAssociations=function(){return[]};
ZzO.prototype.getTypeName=function(){return"continuationTokenEntity"};var MCM=function(){HY.apply(this,arguments)};
_.A(MCM,HY);MCM.prototype.getAssociations=function(){var p=[];this.delegate.channelOwner&&p.push(this.delegate.channelOwner);this.delegate.videos&&p.push.apply(p,_.xq(this.delegate.videos));this.delegate.collaboratorChannels&&p.push.apply(p,_.xq(this.delegate.collaboratorChannels));this.delegate.downloadState&&p.push(this.delegate.downloadState);this.delegate.refresh&&p.push(this.delegate.refresh);return[].concat(_.xq(new Set(p)))};
MCM.prototype.getTypeName=function(){return"mainPlaylistEntity"};var VCx=function(){HY.apply(this,arguments)};
_.A(VCx,HY);VCx.prototype.getAssociations=function(){var p=[];this.delegate.video&&p.push(this.delegate.video);this.delegate.channelContributor&&p.push(this.delegate.channelContributor);return[].concat(_.xq(new Set(p)))};
VCx.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var gdU=function(){D9.apply(this,arguments)};
_.A(gdU,D9);gdU.prototype.getAssociations=function(){var p=[];this.delegate.recommendedVideoMetadata&&p.push.apply(p,_.xq((new QaN(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.xq(new Set(p)))};
var QaN=function(){D9.apply(this,arguments)};
_.A(QaN,D9);QaN.prototype.getAssociations=function(){var p=[];this.delegate.localImageEntities&&p.push.apply(p,_.xq(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&p.push(this.delegate.videoDownloadContextEntity);return[].concat(_.xq(new Set(p)))};var KgN=function(){D9.apply(this,arguments)};
_.A(KgN,D9);KgN.prototype.getAssociations=function(){var p=[];this.delegate.playbackPosition&&p.push(this.delegate.playbackPosition);return[].concat(_.xq(new Set(p)))};var wzr=function(){HY.apply(this,arguments)};
_.A(wzr,HY);wzr.prototype.getAssociations=function(){var p=[];this.delegate.owner&&p.push(this.delegate.owner);this.delegate.downloadState&&p.push(this.delegate.downloadState);this.delegate.userState&&p.push.apply(p,_.xq((new KgN(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&p.push.apply(p,_.xq((new gdU(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.xq(new Set(p)))};
wzr.prototype.getTypeName=function(){return"mainVideoEntity"};var izP=function(){HY.apply(this,arguments)};
_.A(izP,HY);izP.prototype.getAssociations=function(){var p=[];this.delegate.userChannelDetails&&p.push(this.delegate.userChannelDetails);return[].concat(_.xq(new Set(p)))};
izP.prototype.getTypeName=function(){return"ytMainChannelEntity"};var rcx=function(){HY.apply(this,arguments)};
_.A(rcx,HY);rcx.prototype.getAssociations=function(){var p=[];this.delegate.channelOwner&&p.push(this.delegate.channelOwner);this.delegate.playbackPosition&&p.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&p.push.apply(p,_.xq(this.delegate.localImageEntities));this.delegate.downloadStatus&&p.push(this.delegate.downloadStatus);return[].concat(_.xq(new Set(p)))};
rcx.prototype.getTypeName=function(){return"ytMainVideoEntity"};var uxg=new _.uK("downloadsPageSmartDownloadsOptInBannerParams");var mb5=new _.uK("downloadsPageUpsellBannerParams");var STr=function(){HY.apply(this,arguments)};
_.A(STr,HY);STr.prototype.getAssociations=function(){return[]};
STr.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var FgM=function(){HY.apply(this,arguments)};
_.A(FgM,HY);FgM.prototype.getAssociations=function(){return[]};
FgM.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var Lg$=function(){HY.apply(this,arguments)};
_.A(Lg$,HY);Lg$.prototype.getAssociations=function(){return[]};
Lg$.prototype.getTypeName=function(){return"macroMarkerEntity"};var krU=function(){HY.apply(this,arguments)};
_.A(krU,HY);krU.prototype.getAssociations=function(){return[]};
krU.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var Ncr=function(){HY.apply(this,arguments)};
_.A(Ncr,HY);Ncr.prototype.getAssociations=function(){return[]};
Ncr.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var D6N=function(){HY.apply(this,arguments)};
_.A(D6N,HY);D6N.prototype.getAssociations=function(){return[]};
D6N.prototype.getTypeName=function(){return"playerStateEntity"};var HzZ=function(){HY.apply(this,arguments)};
_.A(HzZ,HY);HzZ.prototype.getAssociations=function(){return[]};
HzZ.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var TcZ=function(){HY.apply(this,arguments)};
_.A(TcZ,HY);TcZ.prototype.getAssociations=function(){return[]};
TcZ.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var x6$=function(){HY.apply(this,arguments)};
_.A(x6$,HY);x6$.prototype.getAssociations=function(){return[]};
x6$.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.Ox=new _.uK("dislikeButtonViewModel");_.o5=new _.uK("likeButtonViewModel");var BcV=new _.uK("videoSummaryContentViewModel");var fZM=new _.uK("videoSummaryParagraphViewModel");var vdM=new _.uK("changeTimelyActionVisibilityCommand");var Xzi=new _.uK("hideEngagementPanelEndpoint");var d6r=new _.uK("refreshPanelEndpoint");var OzZ=new _.uK("scrollToSectionEndpoint");var odU=new _.uK("seekToVideoTimestampCommand");_.Xy=new _.uK("showEngagementPanelEndpoint");var zvx=new _.uK("showTransientPlayerScrimOverlayCommand");var YTB=new _.uK("toggleEngagementPanelCommand");_.IZM=new _.uK("createBroadcastCommand");var pGV=new _.uK("metadataUpdateCommand");var yg$=function(){HY.apply(this,arguments)};
_.A(yg$,HY);yg$.prototype.getAssociations=function(){return[]};
yg$.prototype.getTypeName=function(){return"featuredProductsEntity"};var lrx=function(){HY.apply(this,arguments)};
_.A(lrx,HY);lrx.prototype.getAssociations=function(){return[]};
lrx.prototype.getTypeName=function(){return"pinnedProductEntity"};var q4r=function(){HY.apply(this,arguments)};
_.A(q4r,HY);q4r.prototype.getAssociations=function(){return[]};
q4r.prototype.getTypeName=function(){return"trendingOfferEntity"};_.s$x=new _.uK("merchandiseShelfRenderer");var t1B=new _.uK("gridMovieRenderer");_.E0i=new _.uK("movieRenderer");var Jg$=function(){HY.apply(this,arguments)};
_.A(Jg$,HY);Jg$.prototype.getAssociations=function(){var p=[];this.delegate.trackDownloadMetadatas&&p.push.apply(p,_.xq(this.delegate.trackDownloadMetadatas));return[].concat(_.xq(new Set(p)))};
Jg$.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var cgi=function(){HY.apply(this,arguments)};
_.A(cgi,HY);
cgi.prototype.getAssociations=function(){var p=[];this.delegate.downloadedTracks&&p.push.apply(p,_.xq(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&p.push.apply(p,_.xq(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&p.push.apply(p,_.xq(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&p.push.apply(p,_.xq(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&p.push.apply(p,_.xq(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
p.push.apply(p,_.xq(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&p.push.apply(p,_.xq(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&p.push.apply(p,_.xq(this.delegate.metadataOnlyTracks));return[].concat(_.xq(new Set(p)))};
cgi.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var edP=function(){HY.apply(this,arguments)};
_.A(edP,HY);edP.prototype.getAssociations=function(){var p=[];this.delegate.trackDownloadMetadatas&&p.push.apply(p,_.xq(this.delegate.trackDownloadMetadatas));return[].concat(_.xq(new Set(p)))};
edP.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var hdV=function(){HY.apply(this,arguments)};
_.A(hdV,HY);hdV.prototype.getAssociations=function(){var p=[];this.delegate.playbackData&&p.push(this.delegate.playbackData);this.delegate.localImageEntities&&p.push.apply(p,_.xq(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&p.push(this.delegate.videoDownloadContextEntity);return[].concat(_.xq(new Set(p)))};
hdV.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var CoZ=function(){HY.apply(this,arguments)};
_.A(CoZ,HY);
CoZ.prototype.getAssociations=function(){var p=[];this.delegate.musicLibraryStatusEntity&&p.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&p.push.apply(p,_.xq(this.delegate.primaryArtists));this.delegate.details&&p.push(this.delegate.details);this.delegate.userDetails&&p.push(this.delegate.userDetails);this.delegate.tracks&&p.push.apply(p,_.xq(this.delegate.tracks));this.delegate.share&&p.push(this.delegate.share);this.delegate.downloadMetadata&&p.push(this.delegate.downloadMetadata);this.delegate.refresh&&
p.push(this.delegate.refresh);return[].concat(_.xq(new Set(p)))};
CoZ.prototype.getTypeName=function(){return"musicAlbumRelease"};
var uPr=function(){HY.apply(this,arguments)};
_.A(uPr,HY);uPr.prototype.getAssociations=function(){var p=[];this.delegate.albumRelease&&p.push(this.delegate.albumRelease);this.delegate.tracks&&p.push.apply(p,_.xq(this.delegate.tracks));return[].concat(_.xq(new Set(p)))};
uPr.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var RdM=function(){HY.apply(this,arguments)};
_.A(RdM,HY);RdM.prototype.getAssociations=function(){var p=[];this.delegate.albumRelease&&p.push(this.delegate.albumRelease);return[].concat(_.xq(new Set(p)))};
RdM.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var WGZ=function(){HY.apply(this,arguments)};
_.A(WGZ,HY);WGZ.prototype.getAssociations=function(){var p=[];this.delegate.details&&p.push(this.delegate.details);this.delegate.userDetails&&p.push(this.delegate.userDetails);return[].concat(_.xq(new Set(p)))};
WGZ.prototype.getTypeName=function(){return"musicArtist"};
var arN=function(){HY.apply(this,arguments)};
_.A(arN,HY);arN.prototype.getAssociations=function(){var p=[];this.delegate.parentArtist&&p.push(this.delegate.parentArtist);return[].concat(_.xq(new Set(p)))};
arN.prototype.getTypeName=function(){return"musicArtistDetail"};
var mlO=function(){HY.apply(this,arguments)};
_.A(mlO,HY);mlO.prototype.getAssociations=function(){var p=[];this.delegate.parentArtist&&p.push(this.delegate.parentArtist);return[].concat(_.xq(new Set(p)))};
mlO.prototype.getTypeName=function(){return"musicArtistUserDetail"};var Ulv=function(){HY.apply(this,arguments)};
_.A(Ulv,HY);Ulv.prototype.getAssociations=function(){return[]};
Ulv.prototype.getTypeName=function(){return"musicLibraryEdit"};var $lQ=function(){HY.apply(this,arguments)};
_.A($lQ,HY);$lQ.prototype.getAssociations=function(){return[]};
$lQ.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var j$N=function(){HY.apply(this,arguments)};
_.A(j$N,HY);
j$N.prototype.getAssociations=function(){var p=[];this.delegate.tracks&&p.push.apply(p,_.xq(this.delegate.tracks));this.delegate.refresh&&p.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&p.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&p.push(this.delegate.details);this.delegate.downloadMetadata&&p.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&p.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&p.push(this.delegate.userDetails);this.delegate.entryCollection&&
p.push(this.delegate.entryCollection);this.delegate.share&&p.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&p.push.apply(p,_.xq((new bnx(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.xq(new Set(p)))};
j$N.prototype.getTypeName=function(){return"musicPlaylist"};
var bnx=function(){D9.apply(this,arguments)};
_.A(bnx,D9);bnx.prototype.getAssociations=function(){var p=[];this.delegate.creatorEntity&&p.push(this.delegate.creatorEntity);return[].concat(_.xq(new Set(p)))};var n0N=function(){HY.apply(this,arguments)};
_.A(n0N,HY);n0N.prototype.getAssociations=function(){return[]};
n0N.prototype.getTypeName=function(){return"musicShare"};var GbZ=function(){HY.apply(this,arguments)};
_.A(GbZ,HY);
GbZ.prototype.getAssociations=function(){var p=[];this.delegate.musicLibraryStatusEntity&&p.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&p.push.apply(p,_.xq(this.delegate.artists));this.delegate.audioModeVersion&&p.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&p.push(this.delegate.videoModeVersion);this.delegate.userDetails&&p.push(this.delegate.userDetails);this.delegate.details&&p.push(this.delegate.details);this.delegate.albumRelease&&p.push(this.delegate.albumRelease);this.delegate.share&&
p.push(this.delegate.share);this.delegate.libraryEdit&&p.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&p.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&p.push(this.delegate.playbackPosition);this.delegate.lyrics&&p.push(this.delegate.lyrics);return[].concat(_.xq(new Set(p)))};
GbZ.prototype.getTypeName=function(){return"musicTrack"};
var Poi=function(){HY.apply(this,arguments)};
_.A(Poi,HY);Poi.prototype.getAssociations=function(){var p=[];this.delegate.parentTrack&&p.push(this.delegate.parentTrack);return[].concat(_.xq(new Set(p)))};
Poi.prototype.getTypeName=function(){return"musicTrackDetail"};
var Agv=function(){HY.apply(this,arguments)};
_.A(Agv,HY);Agv.prototype.getAssociations=function(){var p=[];this.delegate.parentTrack&&p.push(this.delegate.parentTrack);return[].concat(_.xq(new Set(p)))};
Agv.prototype.getTypeName=function(){return"musicTrackUserDetail"};var uW=new _.uK("musicResponsiveListItemRenderer");var QQR=new _.uK("addToPlaylistEndpoint");var ZnO=new _.uK("captionPickerEndpoint");var M1M=new _.uK("suggestStats");var V1B=new _.uK("backstageImageUploadEndpoint");var g0i=new _.uK("createBackstagePostDialogEndpoint");_.Q$x=new _.uK("createCommentReplyDialogEndpoint");_.KGU=new _.uK("updateCommentDialogEndpoint");_.wGV=new _.uK("updateCommentReplyDialogEndpoint");var in$=new _.uK("menuEndpoint");var uho=new _.uK("modalEndpoint");var rgB=new _.uK("playlistEditorEndpoint");var S4v=new _.uK("copyTextEndpoint");var FGN,LGV;FGN=new _.uK("shareEndpoint");LGV=new _.uK("shareEntityEndpoint");_.kbU=new _.uK("shareEntityServiceEndpoint");_.D7a=new _.uK("userFeedbackEndpoint");_.Eb=new _.uK("watchEndpoint");var XSo=new _.uK("watchPlaylistEndpoint");var NnZ=new _.uK("addUpcomingEventReminderEndpoint");_.zA=new _.uK("getCommentsFromInboxCommand");var DlB=new _.uK("notificationOptOutEndpoint");var Hnr=new _.uK("recordNotificationInteractionsEndpoint");var TnO=new _.uK("removeUpcomingEventReminderEndpoint");var VGo=new _.uK("getDownloadActionCommand");_.xlr=new _.uK("offlineOrchestrationActionCommand");var Bnx=function(){HY.apply(this,arguments)};
_.A(Bnx,HY);Bnx.prototype.getAssociations=function(){return[]};
Bnx.prototype.getTypeName=function(){return"captionTrack"};var frv=function(){HY.apply(this,arguments)};
_.A(frv,HY);frv.prototype.getAssociations=function(){return[]};
frv.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var v0V=function(){HY.apply(this,arguments)};
_.A(v0V,HY);v0V.prototype.getAssociations=function(){return[]};
v0V.prototype.getTypeName=function(){return"offlineVideoPolicy"};var XGB=function(){HY.apply(this,arguments)};
_.A(XGB,HY);XGB.prototype.getAssociations=function(){return[]};
XGB.prototype.getTypeName=function(){return"offlineVideoStreams"};var dlU=function(){HY.apply(this,arguments)};
_.A(dlU,HY);dlU.prototype.getAssociations=function(){var p=[];this.delegate.transfer&&p.push(this.delegate.transfer);this.delegate.adsPlaybackData&&p.push.apply(p,_.xq(this.delegate.adsPlaybackData));this.delegate.drmLicense&&p.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&p.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&p.push(this.delegate.videoDownloadContextEntity);return[].concat(_.xq(new Set(p)))};
dlU.prototype.getTypeName=function(){return"playbackData"};var OnU=function(){HY.apply(this,arguments)};
_.A(OnU,HY);OnU.prototype.getAssociations=function(){return[]};
OnU.prototype.getTypeName=function(){return"refresh"};var o0Z=function(){HY.apply(this,arguments)};
_.A(o0Z,HY);o0Z.prototype.getAssociations=function(){var p=[];this.delegate.offlineVideoStreams&&p.push.apply(p,_.xq(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&p.push.apply(p,_.xq(this.delegate.captionTrack));return[].concat(_.xq(new Set(p)))};
o0Z.prototype.getTypeName=function(){return"transfer"};var zdB=function(){HY.apply(this,arguments)};
_.A(zdB,HY);zdB.prototype.getAssociations=function(){return[]};
zdB.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var Y4v=new _.uK("showMoreDrawerCommand");var IrM=new _.uK("updateEngagementPanelContentCommand");var pYU=new _.uK("getPdgBuyFlowCommand");var yTx=new _.uK("liveChatPurchaseMessageEndpoint");var l9O=new _.uK("openSuperStickerBuyFlowCommand");var qxi=new _.uK("updatePdgFeatureEnablementCommand");var s5B=function(){HY.apply(this,arguments)};
_.A(s5B,HY);s5B.prototype.getAssociations=function(){return[]};
s5B.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var tVr=function(){HY.apply(this,arguments)};
_.A(tVr,HY);tVr.prototype.getAssociations=function(){return[]};
tVr.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.EBv=new _.uK("pdgCommentChipRenderer");_.JTN=new _.uK("permissionRoleBottomBarRenderer");_.cTx=new _.uK("updatePermissionRoleCommand");var eFB=new _.uK("prefetchWatchCommand");var hFQ=new _.uK("updatePlayerErrorMessageCommand");var bMm=new _.uK("toggleCaptionsVisibilityCommand");_.Cci=new _.uK("quickActionsViewModel");var uRr=new _.uK("playerResponse");var RFr=new _.uK("playlistRenderer");_.W1Z=new _.uK("playlistVideoListRenderer");_.YB=new _.uK("playlistEditEndpoint");var a9r=new _.uK("createImagePollCommand");var mvQ=new _.uK("createQuizCommand");var Uvx=new _.uK("quizRenderer");var $vV=new _.uK("uploadedVideoRenderer");var j5O=new _.uK("decorateMessageEndpoint");var b5U=new _.uK("lpOfferCardOptionViewModel");var nBv=new _.uK("sfvAudioItemPlaybackCommand");var GAP=function(){HY.apply(this,arguments)};
_.A(GAP,HY);GAP.prototype.getAssociations=function(){return[]};
GAP.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.I5=new _.uK("reelNonVideoContentEndpoint");_.FC=new _.uK("reelWatchEndpoint");_.pw=new _.uK("reelItemRenderer");_.Pcr=new _.uK("reelMetapanelViewModel");_.ATU=new _.uK("reelNonVideoContentRenderer");_.Z5v=new _.uK("reelPlayerOverlayRenderer");var MVi=new _.uK("shortsLockupViewModel");var VVi=new _.uK("sponsorButtonViewModel");var gBr=new _.uK("reelItemWatchResponse");var Q5r=new _.uK("textBadgeRenderer");_.yv=new _.uK("buttonRenderer");_.lV=new _.uK("toggleButtonRenderer");var EAg=new _.uK("switchButtonViewModel");_.K1B=new _.uK("confirmDialogRenderer");var wYU;wYU=new _.uK("menuRenderer");_.i5i=new _.uK("menuFlexibleItemRenderer");var rTQ=new _.uK("pollRenderer");_.SxO=new _.uK("backgroundPromoRenderer");var L1M;_.F1$=new _.uK("chipCloudRenderer");L1M=new _.uK("chipCloudChipRenderer");var kAr=new _.uK("dropdownRenderer");var Nex=new _.uK("gridVideoRenderer");_.DvZ=new _.uK("itemSectionRenderer");_.H5N=new _.uK("messageRenderer");var TeM=new _.uK("sortFilterHeaderRenderer");_.qb=new _.uK("videoRenderer");var xvB=new _.uK("resolveUrlCommandMetadata");var BeP=function(){HY.apply(this,arguments)};
_.A(BeP,HY);BeP.prototype.getAssociations=function(){return[]};
BeP.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.f9Z=new _.uK("getAnswerCommand");_.iS=new _.uK("searchEndpoint");var vBx=new _.uK("genAiRichTextViewModel");var MGL=new _.uK("overviewAnswerViewModel");var XYi=new _.uK("addToPlaylistServiceEndpoint");var dvO=new _.uK("clearSearchHistoryEndpoint");var O5U=new _.uK("clearWatchHistoryEndpoint");var oBr=new _.uK("webSerializedServiceEndpointExtension");_.zFZ=new _.uK("createCommentEndpoint");var Yxr=new _.uK("createCommentReplyEndpoint");var I9x=new _.uK("performCommentActionEndpoint");var p4Z=new _.uK("updateCommentEndpoint");var yiU=new _.uK("updateCommentReplyEndpoint");_.s_=new _.uK("createPlaylistServiceEndpoint");var lUr=new _.uK("deletePlaylistEndpoint");var q_x=new _.uK("deleteVideoEndpoint");var gi8=new _.uK("getReportFormEndpoint");var sBN=new _.uK("modifyChannelNotificationPreferenceEndpoint");var fxo;_.ij=new _.uK("offlinePlaylistEndpoint");fxo={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 vrL;_.wi=new _.uK("offlineVideoEndpoint");vrL={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 tyx=new _.uK("pingingEndpoint");_.E7v=new _.uK("selectActiveIdentityEndpoint");var JiU=new _.uK("setSettingEndpoint");var c8L=new _.uK("undoFeedbackEndpoint");var ciB=new _.uK("unsubscribeEndpoint");_.e2N=new _.uK("updatedMetadataEndpoint");var h2P=function(){HY.apply(this,arguments)};
_.A(h2P,HY);h2P.prototype.getAssociations=function(){return[]};
h2P.prototype.getTypeName=function(){return"settingEntity"};_.CVU=new _.uK("updateLocalAppSettingCommand");var uxv=new _.uK("saveImageToDeviceEndpoint");var R2$=new _.uK("shareImageCommand");var WdZ=new _.uK("sharingProviderDataCommand");var aUr=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(aUr,_.RX);var mbr=[0,_.cZ,-1];aUr.prototype.JSC$12254_serializeBinary=ZOt(mbr);var UbP=_.Zl(mbr);var $bU=new _.uK("userMentionSuggestionRenderer");var jBZ=new _.uK("liveChatTunnelCommand");var bwv=new _.uK("showSponsorshipsGiftOfferDialogCommand");var ZIU=new _.uK("sponsorshipsScrollableShelfViewModel");var M4P=new _.uK("updateUpcomingEventReminderButtonStateCommand");var V4O=new _.uK("upcomingEventReminderButtonStateRenderer");var gax=new _.uK("subscribeEndpoint");var QuQ=new _.uK("registerTasksCommand");var KZ$=new _.uK("hideSnackbarCommand");var wFU=new _.uK("showDialogCommand");_.LX=new _.uK("showSheetCommand");var iIU=new _.uK("showSnackbarCommand");var rSi=function(){HY.apply(this,arguments)};
_.A(rSi,HY);rSi.prototype.getAssociations=function(){return[]};
rSi.prototype.getTypeName=function(){return"chipEntity"};var SX$=function(){HY.apply(this,arguments)};
_.A(SX$,HY);SX$.prototype.getAssociations=function(){return[]};
SX$.prototype.getTypeName=function(){return"dismissState"};_.lI=new _.uK("avatarViewModel");var FZV=new _.uK("badgeViewModel");_.xo=new _.uK("buttonViewModel");_.ti=new _.uK("chipViewModel");var UcR=new _.uK("collectionThumbnailViewModel");var LZM=new _.uK("contentPreviewImageViewModel");var k7r=new _.uK("decoratedAvatarViewModel");var OV_=new _.uK("downloadButtonViewModel");_.RXm=new _.uK("engagementBarViewModel");_.NBi=new _.uK("imageBannerViewModel");var DBO=new _.uK("lockupContentMetadataRowExtension");var HIP=new _.uK("lockupMetadataViewModel");_.TBN=new _.uK("lockupViewModel");var xBi=new _.uK("avatarStackViewModel");_.BBU=new _.uK("contentMetadataViewModel");var f1P=function(){HY.apply(this,arguments)};
_.A(f1P,HY);f1P.prototype.getAssociations=function(){return[]};
f1P.prototype.getTypeName=function(){return"pageHeaderEntity"};_.vax=new _.uK("pageHeaderViewModel");var XFU=new _.uK("snackbarViewModel");var dBi=new _.uK("thumbnailHoverOverlayToggleActionsViewModel");_.BN=new _.uK("toggleButtonViewModel");var OIQ=function(){HY.apply(this,arguments)};
_.A(OIQ,HY);OIQ.prototype.getAssociations=function(){return[]};
OIQ.prototype.getTypeName=function(){return"votingEntity"};_.Woo=new _.uK("votingViewModel");var oaU=new _.uK("sectionHeaderViewModel");var zO$=new _.uK("notifyDropdownOptionSelectedCommand");var SO6=new _.uK("listViewModel");_.Nr=new _.uK("listItemViewModel");var mcm=new _.uK("toggleableListItemViewModel");var YXr=new _.uK("dialogHeaderViewModel");var I1Z=function(){HY.apply(this,arguments)};
_.A(I1Z,HY);I1Z.prototype.getAssociations=function(){return[]};
I1Z.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var p_r=function(){HY.apply(this,arguments)};
_.A(p_r,HY);p_r.prototype.getAssociations=function(){return[]};
p_r.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var yGv=function(){HY.apply(this,arguments)};
_.A(yGv,HY);yGv.prototype.getAssociations=function(){return[]};
yGv.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.luV=new _.uK("transcriptSubmitCaptionCorrectionCommand");var qdv=function(){HY.apply(this,arguments)};
_.A(qdv,HY);qdv.prototype.getAssociations=function(){return[]};
qdv.prototype.getTypeName=function(){return"buttonEntity"};var pM_=new _.uK("unpluggedStringRunImage");var sir=new _.uK("tabViewModel");var tsr=new _.uK("tabbedViewModel");var E5B=function(){HY.apply(this,arguments)};
_.A(E5B,HY);E5B.prototype.getAssociations=function(){return[]};
E5B.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.JGN=new _.uK("updateDescriptionAction");var cGr=new _.uK("updateToggleButtonTextAction");_.eHi=new _.uK("autoplaySwitchButtonRenderer");var oA;_.hHP=new _.uK("multiMarkersPlayerBarRenderer");oA=new _.uK("chapterRenderer");var CQv=new _.uK("heatMarkerRenderer");var bLL=new _.uK("heatmapRenderer");var uWr=new _.uK("smartSkipPlayerScrimOverlayRenderer");var RHZ=new _.uK("timedMarkerDecorationRenderer");var zPj=new _.uK("postWebToNativeMessageCommand");var zY=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(zY,_.RX);zY.prototype.getMethodName=function(){return _.fq(this,1)};var W$Q=[0,_.cZ,-2];zY.prototype.JSC$12274_serializeBinary=ZOt(W$Q);var auB=_.AE(zY,W$Q);var mCO=new _.uK("whitelistEditEndpoint");var UCU=new _.uK("clearUrlParamCommand");var $CZ=new _.uK("commerceActionCommand");_.jiB=new _.uK("getPaymentInstrumentsParamsCommand");var boi=new _.uK("getPaymentsClientTokenCommand");var n5Q=new _.uK("googlePaymentBillingCommand");var GS$=new _.uK("googlePaymentPurchaseManagerCommand");_.PQr=new _.uK("logGtmCommand");var AGi=new _.uK("updateCardItemOnClickCommand");_.Zoi=new _.uK("ypcPauseSubscriptionCommand");_.Msv=new _.uK("ypcResumeSubscriptionCommand");var Vsv=function(){HY.apply(this,arguments)};
_.A(Vsv,HY);Vsv.prototype.getAssociations=function(){return[]};
Vsv.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var g5i=function(){HY.apply(this,arguments)};
_.A(g5i,HY);g5i.prototype.getAssociations=function(){return[]};
g5i.prototype.getTypeName=function(){return"commerceCartListEntity"};var Qix=function(){HY.apply(this,arguments)};
_.A(Qix,HY);Qix.prototype.getAssociations=function(){return[]};
Qix.prototype.getTypeName=function(){return"iconBadgeEntity"};var K$Q=function(){HY.apply(this,arguments)};
_.A(K$Q,HY);K$Q.prototype.getAssociations=function(){return[]};
K$Q.prototype.getTypeName=function(){return"pdpStateEntity"};var w_r=function(){HY.apply(this,arguments)};
_.A(w_r,HY);w_r.prototype.getAssociations=function(){return[]};
w_r.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var Ha_=new _.uK("ypcOffersEndpoint");var ior=new _.uK("cardItemRenderer"),rGx=new _.uK("cardItemTextRenderer");var Sdr=new _.uK("commerceCartItemQuantityPickerRenderer");var F$N=new _.uK("linkCardRenderer");var ffj=new _.uK("quantityIncrementerButtonViewModel");var L$x=new _.uK("quantityIncrementerViewModel");var kSQ=new _.uK("themedImageViewModel");_.NZZ=new _.uK("ypcCancelRecurrenceEndpoint");var DCi=new _.uK("ypcCompleteTransactionEndpoint");_.HoP=new _.uK("ypcGetCartEndpoint");_.Uw=new _.uK("ypcGetOffersEndpoint");_.E_=new _.uK("ypcHandleTransactionEndpoint");var TZQ=new _.uK("ypcLogWalletAnalyticDataEndpoint");_.xCN=new _.uK("ypcRedeemCodeEndpoint");var BZi=new _.uK("ypcUpdateFopEndpoint");jV($B(1),m1(4));k0u((new MessageChannel).port2);var fux=function(){this.register=new Map},jLu=function(p,y,l){p=p+"_"+y;
Ji.register.has(p)?l=Ji.register.get(p):(l=l(),Ji.register.set(p,l));return l},v5O=function(p){p=_.c(p.register.values());
for(var y=p.next();!y.done;y=p.next())_.QG(y.value,"ABORTED")};
fux.prototype.clear=function(){v5O(this);this.register.clear()};
var Ji=new fux;var Ivo=Date.now().toString();var lmj=y6t();var hk6={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 X_P;X_P=1;_.Tc=function(p){this.veData=p};
_.Tp=function(p){return new _.Tc({trackingParams:p})};
_.fY=function(p,y,l,q,t,E){var e=X_P++;return new _.Tc({veType:p,veCounter:e,elementIndex:l,dataElement:y,youtubeData:q,jspbYoutubeData:t,loggingDirectives:E})};
_.J=_.Tc.prototype;
_.J.getAsJson=function(){var p={};this.veData.trackingParams!==void 0?p.trackingParams=this.veData.trackingParams:(p.veType=this.veData.veType,this.veData.veCounter!==void 0&&(p.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(p.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(p.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(p.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(p.isCounterfactual=!0);
return p};
_.J.getAsJspb=function(){var p=new JKQ;this.veData.trackingParams!==void 0?p.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.z6(p,2,this.veData.veType),this.veData.veCounter!==void 0&&_.z6(p,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.z6(p,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.jr(p,5,!0));if(this.veData.dataElement!==void 0){var y=this.veData.dataElement.getAsJspb();_.gu(p,7,y)}this.veData.youtubeData!==void 0&&_.gu(p,8,this.veData.jspbYoutubeData);
return p};
_.J.toString=function(){return JSON.stringify(this.getAsJson())};
_.J.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.J.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.e0("yt_logging_screen.getRootVeType",J6m);_.e0("yt_logging_screen.getCurrentCsn",_.B2);_.e0("yt_logging_screen.getCttAuthInfo",fx);_.e0("yt_logging_screen.setCurrentScreen",_.v2);var dCv=function(){this.events=new Map},Oov=function(p){var y=[];
p=_.c(p.events.values());for(var l=p.next();!l.done;l=p.next())y.push(l.value);return y};
dCv.prototype.clear=function(){this.events.clear()};var zHZ=function(){this.logTransport=new o5$;this.loggedEventRegister=new dCv;this.unloggedEventRegister=new dCv;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12311_flushTimer=new _.RG(this.flushInterval);this.JSC$12311_flushTimer.listen("tick",this.flush,!1,this)};
zHZ.prototype.flush=function(){if(this.eventsCount){var p={loggedEvents:Oov(this.loggedEventRegister),unloggedEvents:Oov(this.unloggedEventRegister)};if(_.n("export_player_version_to_ytconfig")){var y;(y=_.OY("PLAYER_CLIENT_VERSION"))?(y=y.split("-")[0].replace(/\./g,""),y=isNaN(Number(y))?"0":y):y="";var l=_.OY("PLAYER_CLIENT_VERSION");if(l){l=l.split("-");var q="";l.length>1&&(q=l[l.length-1]);l=Y0j(q.startsWith("canary_experiment")?"canary":q.startsWith("canary_control")?"control":"none")}else l=
"CLIENT_CANARY_STATE_UNKNOWN";p.dimensions={playerClientVersion:y,playerCanaryState:l}}this.logTransport.flush(p);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12311_flushTimer.enabled&&this.JSC$12311_flushTimer.stop()}};
var Yd$=function(p){c4==null&&(c4=new zHZ);var y=c4;var l=y.loggedEventRegister;p.dimensions=p.dimensions||{};p.dimensions.csn=_.B2()||"";var q=Rkt(p.dimensions).join(";");if(p.records!=null)if(l.events.has(q)){var t;(t=l.events.get(q).records)==null||t.push.apply(t,_.xq(p.records))}else l.events.set(q,p);y.JSC$12311_flushTimer.enabled||y.JSC$12311_flushTimer.start();y.eventsCount++;y.eventsCount>=100&&y.flush()};var o5$=function(){};
o5$.prototype.flush=function(p,y){_.n("enable_client_sli_logging")&&_.TX("sliEventBatch",p,{sendIsolatedPayload:!!y})};var c4;var pSP;pSP=function(p){var y=Iuv;p=p===void 0?{}:p;y=y.name;var l=$yL("SUCCESS");Yd$({dimensions:p,records:[{name:y,state:"SLI_STATE_END",status:l}]})};
_.bga=function(p,y,l,q){this.name=p;this.sliId=y;this.timeoutMs=l;this.statusOnTimeout=q;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.bga.prototype.getId=function(){return this.sliId};
_.gU=function(p,y){y=y===void 0?{}:y;p.ongoing||(p.ongoing=!0,p.dimensions=y,p.logSliId=Lmr(),Yd$({dimensions:p.dimensions,records:[{name:p.name,state:"SLI_STATE_START",sliId:p.logSliId}]}),p.timeoutMs>0&&(p.timeoutHandle=setTimeout(function(){_.QG(p,p.statusOnTimeout)},p.timeoutMs)))};
_.QG=function(p,y){p.ongoing&&(p.timeoutMs>0&&clearTimeout(p.timeoutHandle),p.ongoing=!1,y={dimensions:p.dimensions,records:[{name:p.name,status:$yL(y),state:"SLI_STATE_END",sliId:p.logSliId}]},Ji.register.delete(p.name+"_"+p.sliId),Yd$(y))};var Iuv=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var yCi=function(){HY.apply(this,arguments)};
_.A(yCi,HY);yCi.prototype.getAssociations=function(){return[]};
yCi.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var D_c=new _.uK("highlightTextDecoratorColorMapExtension");var kj5=new _.uK("styleRunColorMapExtension");var Vxl=_.c0(["data-"]),K4R={};var ig8={};var ey=function(p){this.wrappedPromise_=p===void 0?null:p;this.state_=0;this.JSC$12343_value_=null};
ey.prototype.then=function(p,y,l){return this.wrappedPromise_?this.wrappedPromise_.then(p,y,l):this.state_===1&&p?(p=p.call(l,this.JSC$12343_value_))&&typeof p.then==="function"?p:_.hi(p):this.state_===2&&y?(p=y.call(l,this.JSC$12343_value_))&&typeof p.then==="function"?p:_.lJx(p):this};
ey.prototype.getValue=function(){return this.JSC$12343_value_};
ey.prototype.isRejected=function(){return this.state_==2};
yQV(ey);_.lJx=function(p){var y=new ey;p=p===void 0?null:p;y.state_=2;y.JSC$12343_value_=p===void 0?null:p;return y};
_.hi=function(p){var y=new ey;p=p===void 0?null:p;y.state_=1;y.JSC$12343_value_=p===void 0?null:p;return y};var dya="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var qg$=["load","abort","error"],Cw=function(p,y,l){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12363_maxAspectRatio_=p;this.disableAnimation_=y===void 0?!1:y;this.disableExifRotation_=l===void 0?!1:l;this.JSC$12363_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12363_reject_=this.resolve_=null};
Cw.prototype.transform=function(p){var y=this;this.mime_=p.type;JH(qsB(p),this.dataUrlRead_,this.readError_,this);JH(lLi(p.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(l,q){y.resolve_=l;y.JSC$12363_reject_=q})};
Cw.prototype.dataUrlRead_=function(p){this.dataUrl_=p;this.angle_!=null&&sPx(this)};
Cw.prototype.exifRead_=function(p){if(this.disableExifRotation_)this.angle_=0;else{a:if(p=new DataView(p),p.byteLength<2||p.getUint16(0)!==65496)p=-2;else{for(var y=2,l=p.byteLength;y<l;){var q=p.getUint16(y),t=p.getUint16(y+2);if(q===65505){y+=4;q=p.getUint32(y);t=p.getUint16(y+4);if(q!==1165519206||t!==0)break;y+=6;q=p.getUint16(y)===18761;y+=p.getUint32(y+4,q);t=p.getUint16(y,q);y+=2;for(var E=0;E<t;E++){if(p.getUint16(y,q)===274){y+=8;p=p.getUint16(y,q);break a}y+=12}}else if(q>>8!==255)break;
else y+=t+2}p=-1}switch(p){case 8:this.angle_=270;break;case 3:this.angle_=180;break;case 6:this.angle_=90;break;default:this.angle_=0}}this.dataUrl_!=null&&sPx(this)};
Cw.prototype.readError_=function(){this.JSC$12363_reject_()};
var sPx=function(p){DS(p.JSC$12363_image_,qg$,p.completeTransform_,!1,p);p.JSC$12363_image_.src=_.XX(p.dataUrl_).toString();p.JSC$12363_image_.src!=v6.toString()&&p.JSC$12363_image_.src.substr(0,11)==="data:image/"||p.JSC$12363_reject_()};
Cw.prototype.completeTransform_=function(){if(this.JSC$12363_image_.src!=v6.toString()){var p=_.XX(this.dataUrl_),y=this.JSC$12363_image_.naturalHeight?this.JSC$12363_image_.naturalWidth/this.JSC$12363_image_.naturalHeight:null;this.invalidAspectRatio=y>this.JSC$12363_maxAspectRatio_||y<1/this.JSC$12363_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var l=this.JSC$12363_image_.naturalWidth,q=this.JSC$12363_image_.naturalHeight,t=y=0,E=this.JSC$12363_image_.naturalHeight?this.JSC$12363_image_.naturalWidth/
this.JSC$12363_image_.naturalHeight:null;E>this.JSC$12363_maxAspectRatio_?(l=this.JSC$12363_maxAspectRatio_*q,y=(l-this.JSC$12363_image_.naturalWidth)/2,this.cropped=!0):E<1/this.JSC$12363_maxAspectRatio_?(q=this.JSC$12363_maxAspectRatio_*l,t=(q-this.JSC$12363_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)E=l,l=q,q=E,E=y,y=t,t=E;switch(this.angle_){case 90:t-=l;break;case 180:y-=l;t-=q;break;case 270:y-=
q}this.cropped||this.angle_%360!==0?(p=document.createElement("canvas"),p.width=l||1,p.height=q||1,this.JSC$12363_image_.naturalWidth&&this.JSC$12363_image_.naturalHeight&&(l=p.getContext("2d"),l.rotate(Math.PI/180*this.angle_),l.drawImage(this.JSC$12363_image_,y,t,this.JSC$12363_image_.naturalWidth,this.JSC$12363_image_.naturalHeight)),this.transformedData=_.XX(p.toDataURL(this.mime_))):this.transformedData=p}else this.transformedData=p;this.resolve_(this)}};var uV=function(p,y){_.Ku.call(this,p);this.value=y};
_.A(uV,_.Ku);
var RB=function(p,y,l,q,t,E,e){e=e===void 0?!1:e;_.Fn.call(this);var C=this;this.JSC$12368_url_=p;this.channelId_=y;this.maxFileSizeMb_=l;this.JSC$12368_maxAspectRatio_=q;this.dropZoneEl_=t;this.rejectInvalidAspectRatio_=e;this.selectButtonEl_=E;this.JSC$12368_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new VW(this.dropZoneEl_);this.selectOverlay_=new ge(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12368_image_=this.transfer_=null;this.handler_=new _.W2(this);_.P9(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(E,"click",function(){C.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.A(RB,_.Fn);RB.prototype.disposeInternal=function(){for(var p=this.selectButtonEl_.nextSibling;p&&p.parentNode&&p.tagName=="INPUT";)p.parentNode.removeChild(p),p=this.selectButtonEl_.nextSibling;this.cancel();_.Fn.prototype.disposeInternal.call(this)};
RB.prototype.uploadPromise=function(){if(this.JSC$12368_image_==null)return null;this.uploadPromise_||tkV(this);return this.uploadPromise_};
RB.prototype.cancel=function(){EmN(this);this.JSC$12368_image_=null};
var EmN=function(p){p.transfer_&&p.transfer_.cancel();p.transfer_=null;p.uploadPromise_=null;p.resolve_=null;p.JSC$12368_reject_=null},tkV=function(p){EmN(p);
p.transfer_=_.bjr(p.JSC$12368_url_,{"X-YouTube-ChannelId":p.channelId_},p.JSC$12368_image_);p.handler_.listenOnce(p.transfer_,"l",p.JSC$12370_onUploadComplete_);p.handler_.listenOnce(p.transfer_,"n",p.onUploadError_);p.transfer_.run();p.uploadPromise_=new Promise(function(y,l){p.resolve_=y;p.JSC$12368_reject_=l})};
_.J=RB.prototype;_.J.onChange_=function(p){p.files.length&&(this.JSC$12368_image_=p.files[0],this.JSC$12368_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12368_image_=null,this.dispatchEvent(new uV("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(tkV(this),(new Cw(this.JSC$12368_maxAspectRatio_)).transform(this.JSC$12368_image_).then((0,_.FZ)(this.onPreview_,this),(0,_.FZ)(this.onPreviewError_,this))))};
_.J.onPreview_=function(p){if(p.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12368_image_=null),this.dispatchEvent(new uV("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;p.cropped&&this.dispatchEvent(new uV("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new uV("yt.comments.ImageUploadOverlay.CHANGE_EVENT",p.transformedData))};
_.J.onPreviewError_=function(){this.JSC$12368_image_=null;this.dispatchEvent(new uV("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.J.onHover_=function(p){p.stopPropagation();p.preventDefault();if(p.type==="dragover")p=!0;else if(p.type==="dragleave")p=!1;else return;this.dispatchEvent(new uV("yt.comments.ImageUploadOverlay.HOVER_EVENT",p))};
_.J.JSC$12370_onUploadComplete_=function(){var p=(0,_.Z0$)(this.transfer_.getResponseText());this.resolve_(p.encryptedBlobId)};
_.J.onUploadError_=function(){this.JSC$12368_reject_();EmN(this)};var JCi=function(p){p=p||{};var y={},l={};this.url=p.url||"";this.args=p.args||_.Ts.clone(y);this.assets=p.assets||{};this.attrs=p.attrs||_.Ts.clone(l);this.fallback=p.fallback||null;this.fallbackMessage=p.fallbackMessage||null;this.html5=!!p.html5;this.disable=p.disable||{};this.loaded=!!p.loaded;this.messages=p.messages||{}};
JCi.prototype.clone=function(){var p=new JCi,y;for(y in this)if(this.hasOwnProperty(y)){var l=this[y];_.tm(l)=="object"?p[y]=_.Ts.clone(l):p[y]=l}return p};var cCP,e8$,h8r,Cp,u0U,R8v,WsP,aJ$,m4U,U4N,$4O,jPv,bPP,nmi,GLU,PAr,ACB,ZPQ,Mkr,Vk$,gmx,QPP,KsM,wSB,iPP,rCP,Sgx,Fsi,Lsi,eXt,kLv,N3v,D4Z,HPM,T3i,x4Q,B3N,fJB,vmZ,XSi,cd_,d4i,OPx,omr,z8x,YgQ,IJB,p8$,yFU,loQ,qWB,swO,tEN,EGv,JFU,cFU,W4,ecQ,hcM,C1U,u7U,RcZ,WSv,aoB,mIM,UIU,$Ir,jwQ,b9x,nGP,GuU,P1N,AFU,Z9P,ME$,EM5,VEx,gGr,QwO,KSV,w8v,i9N,rFU,SWi,FSx,LSV,kuN,N4i,DIV,H9v,T4x,xIU,B4B,foZ,vGB,X8x,dIN,O9Q,oG$,zcr,YWv;cCP=["account/accounts_list"];e8$=["acknowledge_channel_tou_strike"];h8r=["notification/add_upcoming_event_reminder"];
_.CAM=["att/get"];Cp=["browse","music/browse","unplugged/browse"];u0U=["channel/claim_legacy_youtube_channel"];R8v=["history/clear_search_history"];WsP=["history/clear_watch_history"];aJ$=["comment/perform_comment_action"];m4U=["comment/get_comment_replies"];U4N=["ypc/commerce_action"];$4O=["backstage/create_post"];jPv=["live/create_broadcast"];bPP=["channel/create_channel"];nmi=["comment/create_comment_reply"];GLU=["comment/create_comment"];PAr=["live_chat/create_poll"];ACB=["playlist/create"];
ZPQ=["decorate_message"];Mkr=["live_chat/delete_message"];Vk$=["playlist/delete"];gmx=["video/delete"];QPP=["like/dislike"];KsM=["dismissal/dismiss"];wSB=["flag/flag"];iPP=["flow"];rCP=["account/account_menu"];Sgx=["playlist/get_add_to_playlist"];Fsi=["get_answer"];Lsi=["channel/get_channel_creation_form"];eXt=["offline/get_download_action"];kLv=["kids/get_kids_blocklist_picker"];N3v=["live_chat/get_item_context_menu"];D4Z=["live_chat/get_live_chat_message_buy_flow"];HPM=["live_chat/get_live_chat_replay"];
T3i=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];x4Q=["live_chat/get_live_chat_super_sticker_buy_flow"];B3N=["notification/get_notification_menu"];fJB=["playlist/get_settings_editor"];vmZ=["backstage/get_post_video_preview"];XSi=["account/get_profile_card"];cd_=["share/get_share_panel"];d4i=["share/get_sharing_provider_data"];OPx=["get_survey"];omr=["notification/get_unseen_count"];z8x=["get_user_mention_suggestions"];YgQ=["get_watch"];IJB=["guide"];
p8$=["feedback"];yFU=["kids/update_blacklist"];loQ=["like/like"];qWB=["live_chat/live_chat_action"];swO=["live_chat/manage_user"];tEN=["video_manager/metadata_update"];EGv=["live_chat/moderate"];JFU=["notification/modify_channel_preference"];cFU=["notification/opt_out"];W4=["get_panel","get_posts_by_host_panel"];ecQ=["player"];hcM=["browse/edit_playlist"];C1U=["notification/record_interactions"];u7U=["reel/reel_item_watch"];RcZ=["reel/reel_watch_sequence"];WSv=["like/removelike"];aoB=["notification/remove_upcoming_event_reminder"];
mIM=["flag/get_form"];UIU=["miniapp/report_value"];$Ir=["navigation/resolve_url"];jwQ=["channel/reveal_business_email"];b9x=["in_video/search"];nGP=["search","sfv/search","unplugged/search"];GuU=["live_chat/send_message"];P1N=["live_chat/send_live_chat_vote"];AFU=["account/set_setting"];Z9P=["submit_caption_correction"];ME$=["subscription/subscribe"];EM5=["get_transcript"];VEx=["resolve_location","unplugged/resolve_location"];gGr=["subscription/unsubscribe"];QwO=["backstage/update_post"];KSV=["channel_edit/update_channel_page_settings"];
w8v=["comment/update_comment_reply"];i9N=["comment/update_comment"];rFU=["comment/update_comments_settings"];SWi=["creator/update_creator_channel"];FSx=["pdg/update_enablement"];LSV=["updated_metadata"];kuN=["channel_edit/validate_channel_handle"];N4i=["verify_age"];DIV=["next","unplugged/watch_next"];H9v=["whitelist/edit"];T4x=["ypc/cancel_recurrence"];xIU=["ypc/complete_transaction"];B4B=["ypc/get_cart"];foZ=["ypc/get_fix_instrument_params"];vGB=["ypc/get_offers"];X8x=["ypc/get_payment_instruments_params"];
dIN=["ypc/handle_transaction"];O9Q=["ypc/log_payment_server_analytics"];oG$=["ypc/pause_subscription"];zcr=["ypc/redeem_code"];YWv=["ypc/resume_subscription"];var IoM=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,
74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,
50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,
49953,220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,
170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,
246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,
139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,
190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,
17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];var Vt=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.e0("yt.msgs_",Vt);var aB=new _.WE("ACTION_ROUTER_TOKEN");_.md=function(){this.autonavState_=_.n("kevlar_is_pupi_enabled")?2:Jcl()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.md.prototype.getState=function(){return this.autonavState_};
_.md.prototype.pause=function(p){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=p):this.autonavState_==1&&(this.disabledAutonavPauseReason_=p)};
_.md.prototype.setState=function(p,y,l){y&&(this.autoplayChangedByUser=!0);y=this.autonavState_===3||p===3;this.autonavState_!=p&&(this.autonavState_=p,p!=3&&_.cct(p==2),p=_.n("kevlar_is_pupi_enabled")?l||y:!0,_.pt.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,p,l))};
_.md.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Ua(_.md);var U_=function(){this.hasRun=!1};var $7={},jat=($7.auto_search="LATENCY_ACTION_AUTO_SEARCH",$7.ad_to_ad="LATENCY_ACTION_AD_TO_AD",$7.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",$7.app_startup="LATENCY_ACTION_APP_STARTUP",$7.browse="LATENCY_ACTION_BROWSE",$7.cast_splash="LATENCY_ACTION_CAST_SPLASH",$7.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",$7.channels="LATENCY_ACTION_CHANNELS",$7.chips="LATENCY_ACTION_CHIPS",$7.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",$7.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
$7.editor="LATENCY_ACTION_EDITOR",$7.embed="LATENCY_ACTION_EMBED",$7.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",$7.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",$7.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",$7.explore="LATENCY_ACTION_EXPLORE",$7.favorites="LATENCY_ACTION_FAVORITES",$7.home="LATENCY_ACTION_HOME",$7.inboarding="LATENCY_ACTION_INBOARDING",$7.landing="LATENCY_ACTION_LANDING",$7.learning="LATENCY_ACTION_LEARNING",
$7.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",$7.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",$7.library="LATENCY_ACTION_LIBRARY",$7.live="LATENCY_ACTION_LIVE",$7.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",$7.management="LATENCY_ACTION_MANAGEMENT",$7.mini_app="LATENCY_ACTION_MINI_APP_PLAY",$7.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",$7.onboarding="LATENCY_ACTION_ONBOARDING",$7.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
$7.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",$7.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",$7.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",$7.prebuffer="LATENCY_ACTION_PREBUFFER",$7.prefetch="LATENCY_ACTION_PREFETCH",$7.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",$7.profile_switcher="LATENCY_ACTION_LOGIN",$7.projects="LATENCY_ACTION_PROJECTS",$7.reel_watch="LATENCY_ACTION_REEL_WATCH",$7.results="LATENCY_ACTION_RESULTS",$7.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
$7.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",$7.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",$7.review="LATENCY_ACTION_REVIEW",$7.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",$7.search_ui="LATENCY_ACTION_SEARCH_UI",$7.search_suggest="LATENCY_ACTION_SUGGEST",$7.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",$7.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",$7.seek="LATENCY_ACTION_PLAYER_SEEK",$7.settings="LATENCY_ACTION_SETTINGS",$7.store="LATENCY_ACTION_STORE",
$7.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",$7.tenx="LATENCY_ACTION_TENX",$7.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",$7.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",$7.watch="LATENCY_ACTION_WATCH",$7.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",$7["watch,watch7"]="LATENCY_ACTION_WATCH",$7["watch,watch7_html5"]="LATENCY_ACTION_WATCH",$7["watch,watch7ad"]="LATENCY_ACTION_WATCH",$7["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",$7.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
$7.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",$7.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",$7.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",$7.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",$7.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",$7.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",$7.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",$7),STm=0;var HzR=function(p,y){Dm.call(this,1,arguments);this.timer=y};
_.A(HzR,Dm);var D6_=new YKu("aft-recorded",HzR);var Pmj=_.l_.ytLoggingGelSequenceIdObj_||{};_.e0("ytLoggingGelSequenceIdObj_",Pmj);var jy=_.l_.ytLoggingLatencyUsageStats_||{};_.e0("ytLoggingLatencyUsageStats_",jy);var bV=function(){this.cleanupJob=0},MCl=function(){bV.instance||(bV.instance=new bV);
return bV.instance};
_.J=bV.prototype;_.J.baseline=function(p,y,l){nw(this,"baseline_"+p)||_.TX("latencyActionBaselined",{clientActionNonce:p},{timestamp:y,cttAuthInfo:l})};
_.J.tick=function(p,y,l,q){nw(this,"tick_"+p+"_"+y)||_.TX("latencyActionTicked",{tickName:p,clientActionNonce:y},{timestamp:l,cttAuthInfo:q})};
_.J.info=function(p,y,l){var q=Object.keys(p).join("");nw(this,"info_"+q+"_"+y)||(p=Object.assign({},p),p.clientActionNonce=y,_.TX("latencyActionInfo",p,{cttAuthInfo:l}))};
_.J.jspbInfo=function(p,y,l){for(var q="",t=0;t<BR(p).length;t++)BR(p)[t]!==void 0&&(q=t===0?q.concat(""+t):q.concat("_"+t));nw(this,"info_"+q+"_"+y)||(_.Fq(p,2,y),y={cttAuthInfo:l},l=_.n("jspb_sparse_encoded_pivot")?new iG([{}]):new iG,_.Qa(l,7,Gcv,p),Act("latencyActionInfo",l,y))};
_.J.span=function(p,y,l){var q=Object.keys(p).join("");nw(this,"span_"+q+"_"+y)||(p.clientActionNonce=y,_.TX("latencyActionSpan",p,{cttAuthInfo:l}))};
var nw=function(p,y){jy[y]=jy[y]||{count:0};var l=jy[y];l.count++;l.time=(0,_.uM)();p.cleanupJob||(p.cleanupJob=_.rJ(_.TR,function(){var q=(0,_.uM)(),t;for(t in jy)jy[t]&&q-jy[t].time>6E4&&delete jy[t];p&&(p.cleanupJob=0)},5E3));
return l.count>5?(l.count===6&&Math.random()*1E5<1&&(l=new _.SM("CSI data exceeded logging limit with key",y.split("_")),y.indexOf("plev")>=0||_.vs(l)),!0):!1};var p5$,yVU;p5$=window;yVU=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.Ly=p5$.performance||p5$.mozPerformance||p5$.msPerformance||p5$.webkitPerformance||new yVU;var Nc5=!1,gd8=!1,TcR=(0,_.FZ)(_.Ly.clearResourceTimings||_.Ly.webkitClearResourceTimings||_.Ly.mozClearResourceTimings||_.Ly.msClearResourceTimings||_.Ly.oClearResourceTimings||_.rH,_.Ly);var lqU=window;lqU.ytcsi&&(lqU.ytcsi.infoGel=_.xw,lqU.ytcsi.tick=_.fy);var pGt=function(p){Dm.call(this,1,arguments);this.csn=p};
_.A(pGt,Dm);var qsj=new YKu("screen-created",pGt),mla=[],IZl=ar_,Ulg=0,zf=new Map,ygc=new Map,lr6=new Map;var k$l=Symbol("vf"),he=new WeakMap;var G_=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Ne=function(){G_.instance||(G_.instance=new G_);
return G_.instance};
_.J=G_.prototype;_.J.setClient=function(p){this.client=p};
_.J.JSC$12449_newScreen=function(){this.clear();this.csn=_.B2()};
_.J.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.J.reportShown=function(p,y,l){var q=this.JSC$12449_getTrackingParams(p),t=p.visualElement?p.visualElement:q;y=this.shownElements.has(t);var E=this.visibleState.get(t);this.shownElements.add(t);this.visibleState.set(t,!0);p.impressionLog&&!y&&p.impressionLog();if(q||p.visualElement)if(l=qI$(this,p,l))if(t=sbr(this,p),P4(this,p)||t){q=p.visualElement?p.visualElement:_.Tp(q);var e=p.interactionLoggingClientData;t||y?P4(this,p)&4?E||hdt(this.client,l,q,e):P4(this,p)&1&&!y&&Jgc(this.client,l,q,e):Jgc(this.client,
l,q,e)}};
_.J.reportHidden=function(p,y,l){var q=this.JSC$12449_getTrackingParams(p),t=p.visualElement?p.visualElement:q;y=this.hiddenElements.has(t);var E=this.visibleState.get(t);this.hiddenElements.add(t);this.visibleState.set(t,!1);if(E===!1)return!0;if(!q&&!p.visualElement)return!1;l=qI$(this,p,l);if(!l||!P4(this,p)&&sbr(this,p))return!1;q=p.visualElement?p.visualElement:_.Tp(q);P4(this,p)&8?CoR(this.client,l,q):P4(this,p)&2&&!y&&(p=this.client,y=oJ({cttAuthInfo:fx(l)||void 0},l),q={csn:l,ve:q.getAsJson(),
eventType:2},l==="UNDEFINED_CSN"?IJ("visualElementHidden",y,q):p?Dp("visualElementHidden",q,p,y):_.TX("visualElementHidden",q,y));return!0};
_.J.JSC$12449_getTrackingParams=function(p){var y=this.getData(p),l,q;if(_.n("il_use_view_model_logging_context")&&(y==null?0:(l=y.context)==null?0:(q=l.loggingContext)==null?0:q.loggingDirectives))return y.context.loggingContext.loggingDirectives.trackingParams||"";var t,E;if(y==null?0:(t=y.rendererContext)==null?0:(E=t.loggingContext)==null?0:E.loggingDirectives)return y.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(y==null?0:y.loggingDirectives)return y.loggingDirectives.trackingParams||
"";var e;return((e=p.veContainer)==null?0:e.trackingParams)?p.veContainer.trackingParams:(y==null?void 0:y.trackingParams)||""};
_.J.JSC$12449_elementShouldLogGesture=function(p,y){p=this.getData(p);return!!((Math.floor(Number(p&&p.loggingDirectives&&p.loggingDirectives.gestures&&p.loggingDirectives.gestures.types||""))||0)&y)};
_.J.JSC$12449_getNearestParentVe=function(p){var y=this.JSC$12449_getTrackingParams(p);return p.visualElement?p.visualElement:y?_.Tp(y):p.parentElement?this.JSC$12449_getNearestParentVe(p.parentElement):null};
var qI$=function(p,y,l){var q=_.B2(l);return p.csn===null||q===p.csn||l?q:(p=new _.SM("VisibilityLogger called before newScreen",{caller:y.tagName,previous_csn:p.csn,current_csn:q}),_.vs(p),null)};
G_.prototype.getData=function(p){var y,l=p.data||((y=p.props)==null?void 0:y.data);if(!l||p.isWebComponentWrapper){var q;l=(q=he.get(p))==null?void 0:q[k$l]}return l};
var sbr=function(p,y){var l;return!((l=p.getData(y))==null||!l.loggingDirectives)},P4=function(p,y){p=p.getData(y);
return Math.floor(Number(p&&p.loggingDirectives&&p.loggingDirectives.visibility&&p.loggingDirectives.visibility.types||""))||1};var Ai;Ai=function(){};
_.Sm=function(){Ai.instance||(Ai.instance=new Ai);return Ai.instance};
Ai.prototype.setClient=function(p){_.YZ(Ne().setClient).bind(Ne())(p)};
_.tKr=function(){_.Sm();_.YZ(Ne().JSC$12449_newScreen).bind(Ne())()};
Ai.prototype.clear=function(){_.YZ(Ne().clear).bind(Ne())()};
Ai.prototype.reportShown=function(p,y,l){_.YZ(Ne().reportShown).bind(Ne())(p,y,l)};
Ai.prototype.reportHidden=function(p,y,l){return _.YZ(Ne().reportHidden).bind(Ne())(p,y,l)};
var Fpo=function(p,y){return _.YZ(Ne().JSC$12449_getTrackingParams).bind(Ne())(y)},N_o=function(p,y){return _.YZ(Ne().JSC$12449_getNearestParentVe).bind(Ne())(y)};var ZU,E$r;ZU=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};
_.Ll=function(){ZU.instance||(ZU.instance=new ZU);return ZU.instance};
ZU.prototype.setClient=function(p){this.client=p};
E$r=function(p,y,l){l=l===void 0?{}:l;_.YZ(function(){var q,t,E,e=((q=_.G(y==null?void 0:y.commandMetadata,_.ul))==null?void 0:q.rootVe)||((t=_.G(y==null?void 0:y.commandMetadata,ycx))==null?void 0:(E=t.screenVisualElement)==null?void 0:E.uiType);if(e){q=_.G(y==null?void 0:y.commandMetadata,xvB);if(q==null?0:q.parentTrackingParams){var C=_.Tp(q.parentTrackingParams);if(q.parentCsn)var u=q.parentCsn}else l.clickedVisualElement?C=l.clickedVisualElement:y.clickTrackingParams&&(C=_.Tp(y.clickTrackingParams));
a:{q=_.G(y,_.Eb);t=_.G(y,XSo);if(q){if(t=ev8(q,"VIDEO")){q={token:t,videoId:q.videoId};break a}}else if(t&&(q=ev8(t,"PLAYLIST"))){q={token:q,playlistId:t.playlistId};break a}q=void 0}l=Object.assign({},{cttAuthInfo:q,parentCsn:u},l);if(_.n("expectation_logging")){var a;l.loggingExpectations=((a=_.G(y==null?void 0:y.commandMetadata,ycx))==null?void 0:a.loggingExpectations)||void 0}_.Mb(p,e,C,l)}else _.vs(new _.SM("Error: Trying to create a new screen without a rootVeType",y))})()};
_.Mb=function(p,y,l,q){q=q===void 0?{}:q;_.YZ(function(){IoM.includes(y)||(_.vs(new _.SM("createClientScreen() called with a non-page VE",y)),y=83769);q.isHistoryNavigation||(p.forwardHistoryStack=[],p.backHistoryStack.push({rootVe:y,key:q.key||""}));p.graftQueue=[];p.stateChangedQueue=[];q.dataPromises?JV$(p,y,l,q):cVr(p,y,l,q)})()};
_.eRU=function(p,y,l){l=l===void 0?0:l;_.YZ(function(){y.then(function(q){p.pendingScreenCreation.has(l)&&p.pendingScreenFn&&p.pendingScreenFn();var t=_.B2(l),E=_.xc(l);if(t&&E){var e={automatedLogEventSource:3},C;(q==null?0:(C=q.response)==null?0:C.trackingParams)&&Yw(p.client,t,E,_.Tp(q.response.trackingParams),!1,e);var u;(q==null?0:(u=q.playerResponse)==null?0:u.trackingParams)&&Yw(p.client,t,E,_.Tp(q.playerResponse.trackingParams),!1,e)}})})()};
ZU.prototype.graftServerVe=function(p,y,l){var q=this;return _.YZ(function(){var t=_.Tp(p);_.Vv(q,t,y,l);return t})()};
_.DSa=function(p,y,l,q){return _.n("enable_client_ve_spec")&&y.clientVeSpec?(y=_.fY(y.clientVeSpec.uiType,void 0,y.clientVeSpec.elementIndex,y.clientVeSpec.clientYoutubeData,void 0,y),_.Vv(p,y,l,q)?y:null):y.trackingParams?p.graftServerVe(y.trackingParams,l,q):null};
_.FH=function(p,y,l,q){return _.YZ(function(){if(!y.veType)return _.fT(new _.SM("Error: Trying to graft a client VE without a veType.")),null;if(y.visibilityTypes){var t=y.visibilityTypes.reduce(function(E,e){return E|e});
t={visibility:{types:String(t)}}}t=_.fY(y.veType,y.visualElement,y.elementIndex,y.clientYouTubeData,void 0,t);return _.Vv(p,t,l,q)?t:null})()};
_.Vv=function(p,y,l,q){q=q===void 0?0:q;return _.YZ(function(){if(p.pendingScreenCreation.has(q))return p.graftQueue.push([y,l]),!0;var t=_.B2(q),E=l||_.xc(q);if(t&&E){if(_.n("combine_ve_grafts")){var e=p.cachedVisualElements.get(E.toString());e?e.push(y):(p.cachedRootVisualElements.set(E.toString(),E),p.cachedVisualElements.set(E.toString(),[y]));p.attachTimeout||(p.attachTimeout=_.rJ(_.TR,function(){hRQ(p,t)},1200))}else Yw(p.client,t,E,y);
return!0}return!1})()};
_.gz=function(p,y,l){l=l===void 0?0:l;var q=p.recurringGrafts.get(l)||new Map;if(_.n("smarter_ve_dedupping"))for(var t=Array.from(q.keys()),E=0;E<t.length;E++){var e=void 0,C=void 0;var u=y;var a=t[E];a.isClientVe()&&u.isClientVe()?(e=u.getAsJson(),C=a.getAsJson(),u=e.veType!==C.veType||e.elementIndex!==C.elementIndex||e.dataElement!==C.dataElement||u.getLoggingDirectives()!==a.getLoggingDirectives()?!1:!0):u=a.veData.trackingParams!==void 0&&u.veData.trackingParams!==void 0?((C=u.veData)==null?void 0:
C.trackingParams)===((e=a.veData)==null?void 0:e.trackingParams):!1;if(u)return}else if(q.has(y))return;q.set(y,void 0);p.recurringGrafts.set(l,q);_.B2(l)==="UNDEFINED_CSN"||p.pendingScreenCreation.has(l)||_.Vv(p,y,void 0,l)};
_.Qv=function(p,y,l,q){q=_.B2(q===void 0?0:q);if(!q)return!1;Rdl(p.client,q,y,l);return!0};
_.Kw=function(p,y,l,q){if(!y)return!1;q=_.B2(q===void 0?0:q);if(!q)return!1;Rdl(p.client,q,_.Tp(y),l);return!0};
_.EZ=function(p,y){var l=y.getScreenLayer&&y.getScreenLayer();if(y.visualElement)return _.Qv(p,y.visualElement,void 0,l);y=Fpo(_.Sm(),y);return _.Kw(p,y,void 0,l)};
ZU.prototype.clickCommand=function(p,y,l){return _.Kw(this,p.clickTrackingParams,y,l===void 0?0:l)};
ZU.prototype.stateChanged=function(p,y,l){this.visualElementStateChanged(_.Tp(p),y,l===void 0?0:l)};
ZU.prototype.visualElementStateChanged=function(p,y,l){l=l===void 0?0:l;l===0&&this.pendingScreenCreation.has(l)?this.stateChangedQueue.push([p,y]):this.logStateChanged(p,y,l)};
ZU.prototype.logStateChanged=function(p,y,l){l=l===void 0?0:l;var q=_.B2(l);p=p||_.xc(l);return q&&p?(WGR(this.client,q,p,y),!0):!1};
var JV$=function(p,y,l,q){q=q===void 0?{}:q;p.pendingScreenCreation.add(q.layer||0);p.pendingScreenFn=function(){cVr(p,y,l,q);var e=_.xc(q.layer);if(e){for(var C=_.c(p.graftQueue),u=C.next();!u.done;u=C.next())u=u.value,_.Vv(p,u[0],u[1]||e,q.layer);e=_.c(p.stateChangedQueue);for(C=e.next();!C.done;C=e.next())C=C.value,p.logStateChanged(C[0],C[1])}};
l||_.B2(q.layer)||p.pendingScreenFn();if(q.dataPromises)for(var t=_.c(q.dataPromises),E=t.next();!E.done;E=t.next())_.eRU(p,E.value,q.layer);else _.Bs(Error("wf"))},cVr=function(p,y,l,q){q=q===void 0?{}:q;
var t=void 0;q.layer||(q.layer=0);t=q.parentLayer!==void 0?q.parentLayer:q.layer;var E=_.B2(t);t=_.xc(t);var e=l||t,C;e&&(q.parentCsn!==void 0?C={clientScreenNonce:q.parentCsn,visualElement:e}:E&&E!=="UNDEFINED_CSN"&&(C={clientScreenNonce:E,visualElement:e}));var u,a=_.OY("EVENT_ID");E==="UNDEFINED_CSN"&&a&&(u={servletData:{serializedServletEventId:a}});_.n("combine_ve_grafts")&&E&&hRQ(p,E);_.n("no_client_ve_attach_unless_shown")&&e&&E&&E0o(e,E);try{var m=_.q4m(p.client,y,C,q.csnToClone,q.cttAuthInfo,
u,q.implicitGestureType,void 0,q.loggingExpectations)}catch(P){_.X$(P,{rootVeType:y,rootVe:t,parentVisualElement:l,currentCsn:E,parentEl:C,csnToClone:q.csnToClone});_.Bs(P);return}_.v2(m,y,q.layer,q.cttAuthInfo);E&&E!=="UNDEFINED_CSN"&&t&&!CKj(E)&&CoR(p.client,E,t,!0);p.backHistoryStack[p.backHistoryStack.length-1]&&!p.backHistoryStack[p.backHistoryStack.length-1].csn&&(p.backHistoryStack[p.backHistoryStack.length-1].csn=m||"");_.xw({clientScreenNonce:m});_.tKr();var U=_.xc(q.layer);E&&E!=="UNDEFINED_CSN"&&
U&&(_.n("web_mark_root_visible")||_.n("music_web_mark_root_visible"))&&_.la(m,U);p.pendingScreenCreation.delete(q.layer||0);p.pendingScreenFn=void 0;var b;(b=p.recurringGrafts.get(q.layer))==null||b.forEach(function(P,Z){P?_.Vv(p,Z,P,q.layer):U&&_.Vv(p,Z,U,q.layer)});
Cxr(p)},Cxr=function(p){for(var y=0;y<p.afterNewScreenOneOffJobs.length;y++){var l=p.afterNewScreenOneOffJobs[y];
try{l()}catch(q){_.Bs(q)}}for(y=p.afterNewScreenOneOffJobs.length=0;y<p.afterNewScreenRecurringJobs.length;y++){l=p.afterNewScreenRecurringJobs[y];try{l()}catch(q){_.Bs(q)}}},hRQ=function(p,y){if(y===void 0)for(var l=ek8(),q=0;q<l.length;q++)l[q]!==void 0&&hRQ(p,l[q]);
else p.cachedVisualElements.forEach(function(t,E){(E=p.cachedRootVisualElements.get(E))&&s$6(p.client,y,E,t)}),p.cachedVisualElements.clear(),p.cachedRootVisualElements.clear(),p.attachTimeout=void 0};var wz=function(p){p=p===void 0?{layer:0}:p;this.hasRun=!1;this.createScreenConfig=p;p={};this.gAP=(p.response=!1,p.playerResponse=!1,p)};
_.A(wz,U_);wz.prototype.validate=function(p){return!(!p.data||!p.data.response&&!p.data.playerResponse)};
wz.prototype.handle=function(p){var y=_.Ll(),l=this.createScreenConfig.layer;p.data.response&&p.data.response.trackingParams&&!this.gAP.response&&(y.graftServerVe(p.data.response.trackingParams,void 0,l),this.gAP.response=!0);p.data.playerResponse&&p.data.playerResponse.trackingParams&&!this.gAP.playerResponse&&(y.graftServerVe(p.data.playerResponse.trackingParams,void 0,l),this.gAP.playerResponse=!0)};var iV=function(){this.sN=_.hs();this.hI=[];this.kDP=0};
iV.prototype.processChunk=function(p){if(p){for(var y=_.c(this.hI),l=y.next();!l.done;l=y.next())l=l.value,l.validate(p)&&(l.handle(p),l.hasRun=!0);_.fy("np"+this.kDP);this.kDP++}};var CW;var egt,u9B,aqx;_.wW=function(p,y,l,q,t,E,e){e=e===void 0?[]:e;this.buildCommandPayload=p;this.navigate=y;this.handleServiceRequest=l;this.sendAction=q;this.JSC$12491_screenManager=t;this.commandResolverMap=E;this.autoLogResolverAllowlist=e;this.pendingCommands=new Set;this.isTracingEnabled=!1;u9B(this)};
egt=function(p,y,l){var q=OD_,t=osR,E=_.Ll(),e=RRr;l=l===void 0?[]:l;_.wW.instance=new _.wW(p,y,q,t,E,e,l)};
u9B=function(p){if(!p.isTracingEnabled&&j$_("command")){var y=p.resolveCommand;p.resolveCommand=function(l,q){a:{for(t in l)if(Object.prototype.hasOwnProperty.call(l,t)){var t={commandType:t};break a}t={}}return GbR("command",t,y.bind(this,l,q))};
p.isTracingEnabled=!0}};
aqx=function(p,y,l){if(!p.commandResolverMap)return!1;var q=M1l(y,p.commandResolverMap);return q?((p.autoLogResolverAllowlist.some(function(t){return!!_.G(y,t)})||(l==null?0:l.forceClickLogging))&&WAM(p,y,l),q instanceof Promise?q.then(function(t){t.resolve(y,l)}):q.resolve(y,l),!0):!1};
_.wW.prototype.resolveCommand=function(p,y){var l=this,q=m0r(p);if(aqx(this,p,y))return!0;if(q)return U0U(this,p,y);if(!this.buildCommandPayload)return Poo(p,"Unhandled command by buildCommandPayload"),!1;var t=this.buildCommandPayload(p,y);if(y==null?0:y.commandController)t.commandController=y.commandController;if(t.type===0){if(!this.navigate)return Agg(p,"navigate"),!1;if(!$0M(t.command))return Poo(p,"Page requests need to specify a url"),!1;_.n("logging_avoid_blocking_during_navigation")&&_.DWl().transition("application_navigating");
p=this.navigate(t)||[];cQi(p).then(function(){l.pendingCommands.delete(t.command)});
return!0}if(t.type===1){if(!this.handleServiceRequest)return Agg(p,"handleServiceRequest"),!1;(y==null?0:y.forceClickLogging)&&WAM(this,t.command,y);p=this.handleServiceRequest(t);cQi(p).then(function(){l.pendingCommands.delete(t.command)});
return!0}if(t.type===2){if(!this.sendAction)return Agg(p,"sendAction"),!1;WAM(this,t.command,y);this.sendAction(t);return!0}return!1};
var WAM=function(p,y,l){if((l==null||!l.disableClickTracking)&&p.JSC$12491_screenManager)if(y.clickTrackingParams&&_.n("log_click_with_layer_from_element_in_command_handler")){var q;l=l==null?void 0:(q=l.form)==null?void 0:q.element;p.JSC$12491_screenManager.clickCommand(y,null,l&&l.getScreenLayer&&l.getScreenLayer())}else y.clickTrackingParams?p.JSC$12491_screenManager.clickCommand(y):!_.n("disable_clicked_visual_element_in_command_handler")&&(l==null?0:l.clickedVisualElement)&&_.Qv(p.JSC$12491_screenManager,
l.clickedVisualElement)},m0r=function(p){var y=!!_.G(p,_.AO),l;
p=((l=_.G(p,_.Mn))==null?void 0:l.signal)==="CLIENT_SIGNAL";return y||p},U0U=function(p,y,l){var q=_.G(y,_.AO);
if(q)var t=(q==null?void 0:q.commands)||[];else{var E;if(((E=_.G(y,_.Mn))==null?void 0:E.signal)==="CLIENT_SIGNAL"){var e;t=((e=_.G(y,_.Mn))==null?void 0:e.actions)||[]}}if(t){y=_.c(t);for(t=y.next();!t.done;t=y.next()){t=t.value;try{p.resolveCommand(t,l)}catch(C){C instanceof Error&&_.Bs(C)}}return!0}Poo(y,"Could not handle the meta command");return!1},$0M=function(p){var y;
return!((y=_.G(p==null?void 0:p.commandMetadata,_.ul))==null||!y.url)};var rz=function(){U_.apply(this,arguments)};
_.A(rz,U_);rz.prototype.validate=function(p){var y,l;return!this.hasRun&&!!((y=p.data.response)==null?0:(l=y.onResponseReceivedEndpoints)==null?0:l.length)};
rz.prototype.handle=function(p){var y=_.wW.instance;p=_.c(p.data.response.onResponseReceivedEndpoints);for(var l=p.next();!l.done;l=p.next())y.resolveCommand(l.value)};var jbx,bdQ,n$r;
jbx=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=_.PW();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.Sy=function(){bdQ||(bdQ=new jbx);return bdQ};
n$r=function(){var p=_.Sy();p.miniplayerButtonActivation=!1;p.userActivation=!1;p.playlistWatchPageActivation=!1;p.productDetailsPageActivation=!1;p.miniAppPageActivation=!1;p.playablesDestPageActivation=!1;p.lockupActivation=!1;p.showMiniplayerCommandActivation=!1;p.playlistSuggestionsShelfActivation=!1;p.mediaSessionPipActivation=!1;p.watchPipActivation=!1;p.watchWhileActivation=!1;p.shortsPipActivation=!1};
_.GOM=function(){var p=_.Sy(),y=p.mediaSessionPipActivation,l=p.watchPipActivation,q=p.watchWhileActivation,t=p.playlistWatchPageActivation,E=p.lockupActivation,e=p.showMiniplayerCommandActivation,C=p.navigatingAwayFromWatchDeletedVideo,u=p.shortsPipActivation,a=p.playlistSuggestionsShelfActivation,m=p.productDetailsPageActivation,U=p.miniAppPageActivation,b=p.playablesDestPageActivation;return!p.miniplayerButtonActivation&&!t&&!a&&!m&&!U&&!b&&!E&&!e&&!y&&!l&&!q&&!u||C};var cro;_.Fx=Rr("FEwhat_to_watch","/",3854);_.eYa=Rr("FEdownloads","/feed/downloads",42352);cro=Rr("FEmusic_offline","browse/FEmusic_offline",42352);var cI=function(p,y){y=y===void 0?[]:y;var l=l===void 0?[]:l;y=vCL.apply(null,[XZ_.apply(null,_.xq(y))].concat(_.xq(l)));this.store=zu_(p,void 0,y)};
cI.prototype.getState=function(){return this.store.getState()};
cI.prototype.dispatch=function(p){return this.store.dispatch(p)};
cI.prototype.subscribe=function(p){return this.store.subscribe(p)};
cI.prototype.replaceReducer=function(p){return this.store.replaceReducer(p)};
cI.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Lw=function(p,y,l){var q=y(p.getState());return p.subscribe(function(){var t=y(p.getState());if(t!==q){var E=q;q=t;l(t,E)}})};var Uv6;_.Fp=function(p,y,l){return _.$y({type:"REPLACE_ENTITY",payload:{entityPayload:l,entityType:p,key:y}})};
Uv6=function(p){return _.$y({type:"REPLACE_ENTITIES",payload:p})};
_.Ow=function(p,y,l,q){return _.$y({type:"UPDATE_ENTITY",payload:{entityPayload:l,entityType:p,key:y,mergeOption:q}})};var Dlj=function(p){var y=this;p=p===void 0?[]:p;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;p.forEach(function(l){y.append(l)})};
_.J=Dlj.prototype;_.J.getLength=function(){return this.totalLength};
_.J.append=function(p){var y=this.arrays.length===0?!1:(y=this.arrays[this.arrays.length-1])&&y.buffer===p.buffer&&y.byteOffset+y.length===p.byteOffset;y?(y=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(y.buffer,y.byteOffset,y.length+p.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(p);this.totalLength+=p.length};
_.J.split=function(p){for(var y=new Dlj,l=new Dlj,q=_.c(this.arrays),t=q.next();!t.done;t=q.next())t=t.value,p>=t.length?(y.append(t),p-=t.length):p?(y.append(new Uint8Array(t.buffer,t.byteOffset,p)),l.append(new Uint8Array(t.buffer,t.byteOffset+p,t.length-p)),p=0):l.append(t);return{headView:y,tailView:l}};
_.J.extract=function(p,y){return this.split(p).tailView.split(y).headView};
_.J.isFocused=function(p){return p>=this.arrayPos&&p<this.arrayPos+this.arrays[this.arrayIdx].length};
_.J.focus=function(p){if(!this.isFocused(p))for(p<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=p&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var PxP=function(p,y){p.focus(y);return p.arrays[p.arrayIdx][y-p.arrayPos]};(function(){var p=function(q){return new Uint8Array(q)},y=function(q){for(var t=new Uint8Array(q.length),E=0;E<q.length;E++)t[E]=q[E];
return t},l=new Uint8Array([1]);
return l.length===1&&l[0]===1?p:y})();
var rgj=Array(1024),inc=window.TextDecoder?new TextDecoder:void 0,FG_=window.TextEncoder?new TextEncoder:void 0;var NnR=function(p){this.arrayView=p;this.pos=0;this.pendingTagAndType=-1},j$=function(p){var y=PxP(p.arrayView,p.pos);
++p.pos;if(y<128)return y;for(var l=y&127,q=1;y>=128;)y=PxP(p.arrayView,p.pos),++p.pos,q*=128,l+=(y&127)*q;return l},Hnm=function(p,y){var l=p.pendingTagAndType;
for(p.pendingTagAndType=-1;p.pos+1<=p.arrayView.totalLength;){l<0&&(l=j$(p));var q=l>>3,t=l&7;if(q===y)return!0;if(q>y){p.pendingTagAndType=l;break}l=-1;switch(t){case 0:j$(p);break;case 1:p.pos+=8;break;case 2:q=j$(p);p.pos+=q;break;case 5:p.pos+=4}}return!1};var xl5=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=kb8(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},GU=function(p,y){y=p.pos+y;
if(!(p.buf.length>=y)){for(var l=p.buf.length*2;l<y;)l*=2;p.buf=kb8(l,p.wasm,p.buf.subarray(0,p.pos));p.view=new DataView(p.buf.buffer,p.buf.byteOffset,p.buf.byteLength)}},nW=function(p,y){if(y>268435455){GU(p,4);
for(var l=y&1073741823,q=0;q<4;q++)p.view.setUint8(p.pos,l&127|128),l>>=7,p.pos+=1;y=Math.floor(y/268435456)}for(GU(p,4);y>127;)p.view.setUint8(p.pos,y&127|128),y>>=7,p.pos+=1;p.view.setUint8(p.pos,y);p.pos+=1};for(var Bn6={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},Tna={},AVM=_.c(Object.entries(Bn6)),Zdr=AVM.next();!Zdr.done;Zdr=AVM.next()){var MKQ=_.c(Zdr.value),VKr=MKQ.next().value,g$P=MKQ.next().value,Qb$=VKr,KAO=g$P;KAO&&(Tna[KAO]=Qb$)};var v0t=function(p,y){p=p===void 0?{}:p;switch(y.type){case "ENTITY_LOADED":return y.payload.reduce(function(q,t){var E,e=(E=t.options)==null?void 0:E.persistenceOption;if(e&&e!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&e!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return q;if(!t.entityKey)return _.Bs(Error("Af")),q;if(t.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!t.payload)return t=new _.SM("REPLACE entity mutation is missing a payload",{entityKey:t.entityKey}),_.Bs(t),q;var C=(0,_.Ts.getAnyKey)(t.payload);
return dlt(q,C,t.entityKey,t.payload[C])}if(t.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{t=t.entityKey;try{var u=_.ba(t).entityType;C=dlt(q,u,t);break a}catch(U){if(U instanceof Error){t=new _.SM("Failed to deserialize entity key",{entityKey:t,originalMessage:U.message});_.Bs(t);C=q;break a}throw U;}C=void 0}return C}if(t.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!t.payload)return t=new _.SM("UPDATE entity mutation is missing a payload",{entityKey:t.entityKey}),_.Bs(t),q;C=(0,_.Ts.getAnyKey)(t.payload);
var a,m;return On8(q,C,t.entityKey,t.payload[C],(a=t.fieldMask)==null?void 0:(m=a.mergeOptions)==null?void 0:m.repeatedFieldsMergeOption)}return q},p);
case "REPLACE_ENTITY":var l=y.payload;return dlt(p,l.entityType,l.key,l.entityPayload);case "REPLACE_ENTITIES":return Object.keys(y.payload).reduce(function(q,t){var E=y.payload[t];return Object.keys(E).reduce(function(e,C){return dlt(e,t,C,E[C])},q)},p);
case "UPDATE_ENTITY":return l=y.payload,On8(p,l.entityType,l.key,l.entityPayload,l.mergeOption);default:return p}};var o0R;var w5P=!1,k7,Nb,DU,H4,T_,idU=function(p){_.Sr.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!w5P){var y,l=new Uint8Array(256),q=new Uint8Array(256);var t=1;for(y=0;y<256;y++)l[t]=y,q[y]=t,t^=t<<1^(t>>7&&283);k7=new Uint8Array(256);Nb=ZF(256);DU=ZF(256);H4=ZF(256);T_=ZF(256);for(var E=0;E<256;E++){t=E?q[255^l[E]]:0;t^=t<<1^t<<2^t<<3^t<<4;t=t&255^t>>>8^99;k7[E]=t;y=t<<1^(t>>7&&283);var e=y^t;Nb[E]=y<<24|t<<16|t<<8|e;DU[E]=e<<24|Nb[E]>>>8;H4[E]=t<<24|DU[E]>>>
8;T_[E]=t<<24|H4[E]>>>8}w5P=!0}t=ZF(44);for(l=0;l<4;l++)t[l]=p[4*l]<<24|p[4*l+1]<<16|p[4*l+2]<<8|p[4*l+3];for(q=1;l<44;l++)p=t[l-1],l%4||(p=(k7[p>>16&255]^q)<<24|k7[p>>8&255]<<16|k7[p&255]<<8|k7[p>>>24],q=q<<1^(q>>7&&283)),t[l]=t[l-4]^p;this.key=t};
_.A(idU,_.Sr);
idU.prototype.encrypt=function(p){var y=p.length;p=new Uint8Array(p.buffer.slice(p.byteOffset,p.byteOffset+y));for(var l=this.cipherBlock,q=0;q<y&&this.blockOffset<16;)p[q++]^=l[this.blockOffset++];for(var t=y-(y-q)%16;q<t;)rV$(this),p[q++]^=l[0],p[q++]^=l[1],p[q++]^=l[2],p[q++]^=l[3],p[q++]^=l[4],p[q++]^=l[5],p[q++]^=l[6],p[q++]^=l[7],p[q++]^=l[8],p[q++]^=l[9],p[q++]^=l[10],p[q++]^=l[11],p[q++]^=l[12],p[q++]^=l[13],p[q++]^=l[14],p[q++]^=l[15];if(q<y)for(rV$(this),this.blockOffset=0;q<y;)p[q++]^=
l[this.blockOffset++];return p};
var rV$=function(p){for(var y=p.key,l=p.counter[0]^y[0],q=p.counter[1]^y[1],t=p.counter[2]^y[2],E=p.counter[3]^y[3],e=3;e>=0&&!(p.counter[e]=-~p.counter[e]);e--);for(var C,u,a=4;a<40;)e=Nb[l>>>24]^DU[q>>16&255]^H4[t>>8&255]^T_[E&255]^y[a++],C=Nb[q>>>24]^DU[t>>16&255]^H4[E>>8&255]^T_[l&255]^y[a++],u=Nb[t>>>24]^DU[E>>16&255]^H4[l>>8&255]^T_[q&255]^y[a++],E=Nb[E>>>24]^DU[l>>16&255]^H4[q>>8&255]^T_[t&255]^y[a++],l=e,q=C,t=u;p=p.cipherBlock;e=y[40];p[0]=k7[l>>>24]^e>>>24;p[1]=k7[q>>16&255]^e>>16&255;p[2]=
k7[t>>8&255]^e>>8&255;p[3]=k7[E&255]^e&255;e=y[41];p[4]=k7[q>>>24]^e>>>24;p[5]=k7[t>>16&255]^e>>16&255;p[6]=k7[E>>8&255]^e>>8&255;p[7]=k7[l&255]^e&255;e=y[42];p[8]=k7[t>>>24]^e>>>24;p[9]=k7[E>>16&255]^e>>16&255;p[10]=k7[l>>8&255]^e>>8&255;p[11]=k7[q&255]^e&255;e=y[43];p[12]=k7[E>>>24]^e>>>24;p[13]=k7[l>>16&255]^e>>16&255;p[14]=k7[q>>8&255]^e>>8&255;p[15]=k7[t&255]^e&255};var SIU=!1;(function(){var p=function(q){return new Uint8Array(q)},y=function(q){for(var t=new Uint8Array(q.length),E=0;E<q.length;E++)t[E]=q[E];
return t},l=new Uint8Array([1]);
return l.length===1&&l[0]===1?p:y})();
var x7;var kOO=function(p){a:{if(!SIU&&!Jk){if(x7){var y=x7;break a}x7=(y=window.crypto)==null?void 0:y.subtle;var l,q,t;if(((l=x7)==null?0:l.importKey)&&((q=x7)==null?0:q.sign)&&((t=x7)==null?0:t.encrypt)){y=x7;break a}x7=void 0}y=void 0}y&&(this.nativeEncryptor=new FA$(p,y));this.encryptorPolyfill=new LAU(p)};
kOO.prototype.encrypt=function(p,y){var l=this,q;return _.h(function(t){switch(t.nextAddress){case 1:if(!l.nativeEncryptor){t.jumpTo(2);break}_.Ve(t,3);return t.yield(l.nativeEncryptor.encrypt(p,y),5);case 5:return t.return(t.yieldResult);case 3:q=_.i6(t),_.vs(q),SIU=!0,l.nativeEncryptor=void 0;case 2:return t.return(l.encryptorPolyfill.encrypt(p,y))}})};
kOO.prototype.decrypt=function(p,y){return this.encrypt(p,y)};
var FA$=function(p,y){this.JSC$12564_aesKey=p;this.subtleCrypto=y};
FA$.prototype.encrypt=function(p,y){var l=this,q;return _.h(function(t){if(t.nextAddress==1)return _.Ve(t,2),t.yield(N7P(l,p,y),4);if(t.nextAddress!=2)return t.return(t.yieldResult);q=_.i6(t);_.vs(q);SIU=!0;throw q;})};
var N7P=function(p,y,l){var q,t;return _.h(function(E){switch(E.nextAddress){case 1:if(p.cryptoKey){E.jumpTo(2);break}return E.yield(p.subtleCrypto.importKey("raw",p.JSC$12564_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:p.cryptoKey=E.yieldResult;case 2:return q={name:"AES-CTR",counter:l,length:128},E.yield(p.subtleCrypto.encrypt(q,p.cryptoKey,y),4);case 4:return t=E.yieldResult,E.return(new Uint8Array(t))}})},LAU=function(p){this.JSC$12567_aesKey=p};
LAU.prototype.encrypt=function(p,y){this.encryptor||(this.encryptor=new idU(this.JSC$12567_aesKey));for(var l=this.encryptor,q=0;q<4;q++)l.counter[q]=y[q*4]<<24|y[q*4+1]<<16|y[q*4+2]<<8|y[q*4+3];l.blockOffset=16;return this.encryptor.encrypt(p)};
LAU.prototype.decrypt=function(p,y){return this.encrypt(p,y)};var D0r={},Irl=CK("yt-idb-pref-storage",{objectStores:(D0r.prefs={addedAtVersion:1},D0r),shared:!1,upgrade:function(p,y){y(1)&&o7(O1(p,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.B4=function(p){this.token=p};
_.B4.getInstance=function(){return _.h(function(p){return p.return(new Promise(function(y){_.hk().then(function(l){l?(_.B4.instance||(_.B4.instance=new _.B4(l)),y(_.B4.instance)):y(void 0)})}))})};
_.B4.prototype.get=function(p){var y=this,l,q,t;return _.h(function(E){if(E.nextAddress==1)return E.yield(pYt(y.token),2);if(E.nextAddress!=3)return l=E.yieldResult,E.yield(l.get("prefs",p),3);q=E.yieldResult;if(!q)return E.return();t=(0,_.uM)();return q.expirationTimestampMs<=t?E.return():E.return(q.value)})};
_.B4.prototype.set=function(p,y,l){l=l===void 0?31536E3:l;var q=this,t,E,e;return _.h(function(C){if(C.nextAddress==1)return t=(0,_.uM)(),E={key:p,value:y,expirationTimestampMs:t+l*1E3},C.yield(pYt(q.token),2);e=C.yieldResult;return C.yield(e.put("prefs",E),0)})};
_.B4.prototype.remove=function(p){var y=this,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(pYt(y.token),2);l=q.yieldResult;return q.yield(l.delete("prefs",p),0)})};var fw={},HdN=(fw.INVALID_ENCODER_VERSION="Invalid encoder version",fw.KEY_CREATION_FAILED="Failed to create encoder key",fw.UNKNOWN_DECODE_ERROR="Failed to decode PES data",fw.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",fw.WRONG_DATA_TYPE="Encoder cannot process the data type",fw),Ms=function(p,y){y=y===void 0?{}:y;_.SM.call(this,HdN[p],Object.assign({},{name:"PESEncoderError",type:p},y));this.type=p;this.level="WARNING";Object.setPrototypeOf(this,Ms.prototype)};
_.A(Ms,_.SM);var v4=function(){};
v4.prototype.encode=function(p,y){try{return this.encodeImpl(p,y)}catch(l){s5j(l,l9a)}};
v4.prototype.decode=function(p,y){try{return this.decodeImpl(p,y)}catch(l){s5j(l,qxo)}};
var T7M=function(p,y,l){var q;return _.h(function(t){if(t.nextAddress==1)return _.Ve(t,2),t.yield(p.decodeAsyncImpl(y,l),4);if(t.nextAddress!=2)return t.return(t.yieldResult);q=_.i6(t);s5j(q,qxo);_.rR(t)})};
v4.prototype.decodeAsyncImpl=function(p,y){return Promise.resolve(this.decodeImpl(p,y))};var Xx=function(p,y){this.aesEncryptor=p;this.aesEncryptorAsync=y};
_.A(Xx,v4);Xx.prototype.encodeImpl=function(p,y){y=tV5(y);p=(new TextEncoder).encode(JSON.stringify(p));return this.aesEncryptor.encrypt(p,y)};
Xx.prototype.decodeImpl=function(p,y){if(!(p instanceof Uint8Array))throw yT6(1);var l=new TextDecoder;y=tV5(y);p=this.aesEncryptor.decrypt(p,y);return JSON.parse(l.decode(p))};
Xx.prototype.decodeAsyncImpl=function(p,y){var l=this,q,t,E;return _.h(function(e){if(e.nextAddress==1){if(!(p instanceof Uint8Array))throw yT6(1);q=new TextDecoder;t=tV5(y);return e.yield(l.aesEncryptorAsync.decrypt(p,t),2)}E=e.yieldResult;return e.return(JSON.parse(q.decode(E)))})};var EBg={accountLinkStatusEntity:RkU,booleanEntity:BYO,buttonEntity:qdv,captionTrack:Bnx,channelHandle:buQ,chipEntity:rSi,commerceAcquisitionClientPayloadEntity:Vsv,commerceCartListEntity:g5i,contextNoteFeedEntityPayload:r7i,contextNoteUserRatingEntityPayload:SVV,continuationTokenEntity:ZzO,downloadQualityPickerEntity:Wgx,downloadsPageRefreshTokenEntity:m6$,downloadsPageViewConfigurationEntity:STr,downloadStatusEntity:aZN,dismissState:SX$,sfvAudioItemCurrentlyPlayingEntity:GAP,emojiFountainDataEntity:p_r,
emojiCustomizationSetEntity:I1Z,fakeChannel:XPZ,fakePlaylist:dDM,fakePlaylistEntryCollection:O2U,fakeVideo:zNM,fakeVideoDescription:Y0B,featuredProductsEntity:yg$,flowStateEntity:ekU,iconBadgeEntity:Qix,interstitialInteractionStateEntity:QLZ,likeButtonAnimationEntity:FgM,liveChatPollStateEntity:kvr,liveViewerLeaderboardChatEntryPointStateEntity:s5B,liveViewerLeaderboardPointsEntity:tVr,liveReactionsDataEntity:yGv,logoEntity:VxM,macroMarkerEntity:Lg$,mainDownloadsLibraryEntity:U6v,mainDownloadsListEntity:$6i,
mainPlaylistDownloadStateEntity:bzU,mainPlaylistEntity:MCM,mainPlaylistVideoEntity:VCx,mainVideoDownloadStateEntity:ndr,mainVideoEntity:wzr,markersEngagementPanelSyncEntity:krU,markersVisibilityOverrideEntity:Ncr,musicAlbumReleaseDetail:uPr,musicAlbumReleaseDownloadMetadataEntity:Jg$,musicAlbumRelease:CoZ,musicAlbumReleaseUserDetail:RdM,musicArtistDetail:arN,musicArtist:WGZ,musicArtistUserDetail:mlO,musicDownloadsLibraryEntity:cgi,musicLibraryEdit:Ulv,musicLibraryStatusEntity:$lQ,musicPlaylist:j$N,
musicPlaylistDownloadMetadataEntity:edP,musicShare:n0N,musicTrackDetail:Poi,musicTrackDownloadMetadataEntity:hdV,musicTrack:GbZ,musicTrackUserDetail:Agv,offlineOrchestrationActionWrapperEntity:frv,offlineVideoPolicy:v0V,offlineVideoStreams:XGB,offlineabilityEntity:GrV,orchestrationWebSamplingEntity:PmB,pageHeaderEntity:f1P,pdpStateEntity:K$Q,pinnedProductEntity:lrx,playbackData:dlU,playerStateEntity:D6N,quantityIncrementerEntity:w_r,refresh:OnU,saveToPlaylistListEntity:BeP,selectedChipIndexEntityPayload:HzZ,
settingEntity:h2P,stringEntity:fvZ,suggestedFeedbackChipStateEntity:TcZ,transfer:o0Z,trendingOfferEntity:q4r,videoDownloadContextEntity:zdB,videoOverviewAsyncDataEntity:yCi,videoPlaybackPositionEntity:E5B,votingEntity:OIQ,ytMainChannelEntity:izP,youchatPendingResponseEntity:x6$,ytMainDownloadedVideoEntity:AcU,ytMainVideoEntity:rcx};var x0v,fq$,wN,W1R,a9m,d0M,o$B,OdV,X5i;x0v=function(p,y){this.JSC$12586_wrapped=p;this.JSC$12586_encoderRegistry=y;this.changedKeys={}};
fq$=function(p,y){return B7M(p.JSC$12586_encoderRegistry,y.version).decode(y.data,y.key)};
_.v$i=function(p,y,l){return p.JSC$12586_wrapped.objectStore("EntityStore").get(y).then(function(q){if(q){if(l&&q.entityType!==l)throw Error("Bf");return fq$(p,q)}})};
wN=function(p,y,l){return l?(l=l.map(function(q){return _.v$i(p,q,y)}),oK.all(l)):p.JSC$12586_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(y)).then(function(q){return q.map(function(t){return fq$(p,t)})})};
_.RF5=function(p,y,l){var q=frg(y),t=B7M(p.JSC$12586_encoderRegistry,1),E=Object.assign({},y);return p.JSC$12586_wrapped.objectStore("EntityStore").get(q).then(function(e){if(e){if(e.entityType!==l)throw Error("Bf");E.entityMetadata||(e=fq$(p,e),E.entityMetadata=e.entityMetadata)}}).then(function(){var e={key:q,
entityType:l,data:t.encode(E,q),version:1};return oK.all([p.JSC$12586_wrapped.objectStore("EntityStore").put(e),X5i(p,E,l)])}).then(function(){d0M(p,q,l);
return q})};
W1R=function(p,y){var l=_.ba(y).entityType;return oK.all([p.JSC$12586_wrapped.objectStore("EntityStore").delete(y),OdV(p,y)]).then(function(){d0M(p,y,l)})};
a9m=function(p,y,l,q){var t=B7M(p.JSC$12586_encoderRegistry,1);return _.v$i(p,y,q).then(function(E){if(E){E=wGt(E,l);var e={key:y,entityType:q,data:t.encode(E,y),version:1};return oK.all([p.JSC$12586_wrapped.objectStore("EntityStore").put(e),X5i(p,E,q)])}}).then(function(){d0M(p,y,q);
return y})};
d0M=function(p,y,l){var q=p.changedKeys[l];q||(q=new Set,p.changedKeys[l]=q);q.add(y)};
o$B=function(p,y,l){var q=frg(y);l=JT_(l);if(!l)return oK.resolve([]);l=new l(y);p=p.JSC$12586_wrapped.objectStore("EntityAssociationStore");y=[];l=_.c(l.getAssociations());for(var t=l.next();!t.done;t=l.next())y.push(p.put({parentEntityKey:q,childEntityKey:t.value}));return oK.all(y).then(function(E){return E.map(function(e){return e[1]})})};
OdV=function(p,y){return p.JSC$12586_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(y))};
X5i=function(p,y,l){var q=frg(y);return OdV(p,q).then(function(){return o$B(p,y,l)})};var zRx=function(){};
_.A(zRx,v4);zRx.prototype.encodeImpl=function(p){return p};
zRx.prototype.decodeImpl=function(p){if(p instanceof Uint8Array)throw yT6(0);return p};var hFu=function(){this.cacheMap={};this.cacheMap[0]=new zRx;if(!_.n("aes_pes_encoder_killswitch")){var p=this.cacheMap;try{var y=_.iv();var l=tV5(y);var q=new Xx(new LAU(l),new kOO(l))}catch(t){throw p=t instanceof Error?new Ms("KEY_CREATION_FAILED",{originalMessage:t.message}):new Ms("KEY_CREATION_FAILED"),_.Bs(p),p;}p[1]=q}},B7M=function(p,y){y=y===void 0?0:y;
p=p.cacheMap[y];if(!p)throw y=new Ms("INVALID_ENCODER_VERSION",{encoderVersion:y}),_.Bs(y),y;return p};var gN=function(p,y){_.Sr.call(this);this.token=p;this.JSC$12600_encoderRegistry=y;this.observers=[];p=new _.l_.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.iv());p.onmessage=this.handleMessage.bind(this);this.channel=p};
_.A(gN,_.Sr);_.KW=function(p,y,l){var q,t,E,e;return _.h(function(C){if(C.nextAddress==1)return C.yield(Y4g(p.token),2);if(C.nextAddress!=3)return q=C.yieldResult,C.yield(_.s1(q,["EntityStore","EntityAssociationStore"],y,function(u){t=new x0v(u,p.JSC$12600_encoderRegistry);return l(t)}),3);
E=C.yieldResult;t&&(e=t.changedKeys,Object.keys(e).length>0&&(p.channel.postMessage(e),YIV(p,e)));return C.return(E)})};
gN.prototype.observe=function(p){var y=this;this.observers.push(p);return function(){var l=y.observers.indexOf(p);l>=0&&y.observers.splice(l,1)}};
var G1L=function(p){var y;return _.h(function(l){if(l.nextAddress==1)return l.yield(_.KW(p,{mode:"readonly",enableRetries:!0},function(q){return q.JSC$12586_wrapped.objectStore("EntityStore").getAll()}),2);
y=l.yieldResult;return l.return(Promise.all(y.filter(function(q){return!!q}).map(function(q){var t,E;
return _.h(function(e){if(e.nextAddress==1){t=q.key;E=q.entityType;var C=e.yield;var u=T7M(B7M(p.JSC$12600_encoderRegistry,q.version),q.data,q.key);return C.call(e,u,2)}return e.return({key:t,entityType:E,data:e.yieldResult})})})))})};
gN.prototype.handleMessage=function(p){YIV(this,p.data)};
var YIV=function(p,y){p=_.c(p.observers);for(var l=p.next();!l.done;l=p.next())l=l.value,l(y)};
gN.prototype.disposeInternal=function(){this.channel.close()};
var cT6;var dz,pxO,Sxa;dz={};_.IqQ=(dz.mainVideoEntity="mainVideoEntityActionMetadata",dz.mainPlaylistEntity="mainPlaylistEntityActionMetadata",dz.musicTrack="musicTrackEntityActionMetadata",dz.musicPlaylist="musicPlaylistEntityActionMetadata",dz);pxO=new _.WE("DOWNLOADS_ENTITY_TYPE_MAP");_.DF=_.PV("","downloadsPageViewConfigurationEntity");Sxa=_.PV("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.WdR=_.PV("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.PV("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.PV("SMART_DOWNLOADS_ENABLED","settingEntity");_.PV("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var b58=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var VVo=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var lUm={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var O_,l16,Kci,jh5;O_=window;_.Ir=O_.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.ROt=O_.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.tB;l16=O_.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||LF;Kci=O_.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||QF$;_.yIr=O_.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.XmU;jh5=O_.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||o8N;qE({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 mBl=qXL(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(p){return p}}}),ZAo=qXL(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(p){return p}}}),JSm=new Map;var $BR=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],ut6;var lXr=function(p){return _.$y({type:"SET_EPHEMERAL_ACTION",payload:p})};var qQQ={ephemeralAction:null};var szP={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var HIL={sharedUi:function(p,y){p=p===void 0?szP:p;switch(y.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},p,{animatedThumbnailEnabled:y.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},p,{inlinePreviewEnabled:y.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},p,{currentPageType:y.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},p,{currentPageSubType:y.payload});default:return p}},
a11y:Ah({ephemeralAction:function(p,y){p=p===void 0?qQQ.ephemeralAction:p;switch(y.type){case "SET_EPHEMERAL_ACTION":return y.payload;default:return p}}})};var AS_={playlistId:"",inviteLinkURL:""};var tIU={};var iI8=Ah({continuationCommand:function(p,y){p=p===void 0?tIU:p;switch(y.type){case "SET_CONTINUATION_COMMAND":return y.payload.continuationCommand;default:return p}}});var M4L={currentFormId:"",commandsMap:{}};var rSo=Ah({isLeaderTab:function(p,y){p=p===void 0?!0:p;switch(y.type){case "SET_IS_LEADER_TAB":var l,q;return(q=y==null?void 0:(l=y.payload)==null?void 0:l.isLeaderTab)!=null?q:p;default:return p}}});var JIM;_.EkU=function(p){return _.$y({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:p}})};
JIM=function(p){return _.$y({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:p}})};var DBa=Ah({isDesktopSmallWidth:function(p,y){switch(y.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return y.payload.isDesktopSmallWidth;default:return p===void 0?!1:p}},
isShortsActive:function(p,y){switch(y.type){case "SET_IS_SHORTS_ACTIVE":return y.payload.isShortsActive;default:return p===void 0?!1:p}},
isWatchWhileMode:function(p,y){switch(y.type){case "SET_IS_WATCH_WHILE_MODE":return y.payload.isWatchWhileMode;default:return p===void 0?!1:p}},
playerState:function(p,y){switch(y.type){case "SET_PLAYER_STATE":return y.payload.playerState;default:return p===void 0?-1:p}},
isFullscreen:function(p,y){switch(y.type){case "SET_IS_FULLSCREEN":return y.payload.isFullscreen;default:return p===void 0?!1:p}},
isSmallScreenSqueezeback:function(p,y){switch(y.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return y.payload.isSmallScreenSqueezeback;default:return p===void 0?!1:p}},
isShortsPipActive:function(p,y){switch(y.type){case "SET_IS_SHORTS_PIP_ACTIVE":return y.payload.isShortsPipActive;default:return p===void 0?!1:p}},
isPlaybackStarted:function(p,y){switch(y.type){case "SET_IS_PLAYBACK_STARTED":return y.payload.isPlaybackStarted;default:return p===void 0?!1:p}}});var jij=function(){return function(p){return function(y){var l=p(y);_.$w(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[y],!0);return l}}};var cIQ,LUm;cIQ=new _.AB;_.PN=new _.WE("WATCH_PLAYER_PROMISE_TOKEN");_.ej$=new _.AB;_.hjU=new _.WE("SHORTS_PLAYER_PROMISE_TOKEN");LUm=new _.WE("");var boo=function(){return function(p){return function(y){y.type==="ENTITY_LOADED"&&_.WC().resolve(_.PN).then(function(l){var q;(q=l.dispatchReduxAction)==null||q.call(l,y)});
return p(y)}}};var CYZ={};var SXc=Ah({additionalContext:function(p,y){switch(y.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var l;return(l=y.payload)!=null?l:"";default:return p===void 0?"":p}},
impersonatedChannelUrl:function(p,y){switch(y.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var l;return(l=y.payload)!=null?l:"";default:return p===void 0?"":p}},
selectedVideoIds:function(p,y){p=p===void 0?CYZ:p;switch(y.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var l={};return Object.assign({},p,(l[y.payload]=!0,l));case "VIDEO_UNSELECTED":return y=y.payload,p=Object.assign({},p),delete p[y],p;default:return p}}});var FZt=Ah({parentClickTrackingParams:function(p,y){switch(y.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return y.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return p===void 0?"":p}}});var u2U=function(p){return _.$y({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:p})};var RjB={};var LZl=Ah({stepStates:function(p,y){p=p===void 0?RjB:p;switch(y.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var l=p,q=y.payload,t,E,e;p={};y={selectionStates:Object.assign({},(e=(t=l[q.stepId])==null?void 0:t.selectionStates)!=null?e:{},(p[q.token]={isSelected:q.isSelected},p)),userQuery:(E=l[q.stepId])==null?void 0:E.userQuery};t={};return Object.assign({},l,(t[q.stepId]=y,t));case "TALK_TO_RECS_UPDATE_USER_QUERY":return t=p,E=y.payload,e={selectionStates:Object.assign({},
(q=(l=t[E.stepId])==null?void 0:l.selectionStates)!=null?q:{}),userQuery:{userQuery:E.userQuery,token:E.userQueryToken}},l={},Object.assign({},t,(l[E.stepId]=e,l));default:return p}}});var WTi,aXv,UwM;WTi=function(p){return _.$y({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:p})};
aXv=function(p){return _.$y({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:p})};
_.fp=function(p){return _.$y({type:"SET_CURRENT_PAGE_TYPE",payload:p})};
_.mwr=function(p){return _.$y({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:p})};
UwM=function(p){return _.$y({type:"SET_CHIP_BAR_IS_STICKY",payload:p})};var ga6={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"};_.$wQ=function(p){return _.$y({type:"SET_PLAYER_STATE",payload:{playerState:p}})};var jzU=[],bHZ={width:0,height:0};var k7m=Ah({isTheaterMode:function(p,y){p=p===void 0?_.n("kevlar_disable_theater_mode_persistence")?!1:_.o4("START_IN_THEATER_MODE"):p;switch(y.type){case "SET_IS_THEATER_MODE":return y.payload.isTheaterMode;default:return p}},
isWatchActive:function(p,y){switch(y.type){case "SET_IS_WATCH_ACTIVE":return y.payload.isWatchActive;default:return p===void 0?!1:p}},
isLearningJourneyActive:function(p,y){switch(y.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return y.payload.isLearningJourneyActive;default:return p===void 0?!1:p}},
isWatchFullscreen:function(p,y){switch(y.type){case "SET_IS_WATCH_FULLSCREEN":return y.payload.isWatchFullscreen;default:return p===void 0?!1:p}},
isWatchNarrowWidth:function(p,y){switch(y.type){case "SET_IS_WATCH_NARROW_WIDTH":return y.payload.isWatchNarrowWidth;default:return p===void 0?!1:p}},
isWatchRetroMode:function(p,y){switch(y.type){case "SET_IS_WATCH_RETRO_MODE":return y.payload.isWatchRetroMode;default:return p===void 0?!1:p}},
isLiveChatCollapsed:function(p,y){switch(y.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return y.payload.isLiveChatCollapsed;default:return p===void 0?!1:p}},
openEngagementPanels:function(p,y){p=p===void 0?jzU:p;var l=[].concat(_.xq(p));switch(y.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return l.push(y.payload.panelToAdd),l;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return l.splice(l.indexOf(y.payload.panelToRemove),1),l;default:return p}},
playerState:function(p,y){switch(y.type){case "SET_PLAYER_STATE":return y.payload.playerState;default:return p===void 0?-1:p}},
watchScrollTop:function(p,y){switch(y.type){case "SET_WATCH_SCROLL_TOP":return y.payload.watchScrollTop;default:return p===void 0?0:p}},
watchWindowSize:function(p,y){p=p===void 0?bHZ:p;switch(y.type){case "SET_WATCH_WINDOW_SIZE":return y.payload.watchWindowSize;default:return p}}});var nkr={feedbackTokens:[]};var NBo=Ah({surveyFeedbackData:function(p,y){p=p===void 0?nkr:p;switch(y.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return y.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},p,y.payload);default:return p}}});var KZc={};var GSc=void 0;_.n("web_enable_redux_store_on_demand")||(GSc=n5u());var G3v=function(p,y,l){var q=this;this.listId=p;this.JSC$12734_updateCallback=y;this.isOfflineVideoCallback=l;_.ei().subscribe(function(){q.handleUpdate()})};
G3v.prototype.getPlaylistData=function(){var p=_.ei().getState().entities;if(this.listId&&this.listId!=="PPSV"){var y=f9R(p,this.listId,!0),l=_.PV(this.listId,"mainPlaylistEntity"),q,t;p=p==null?void 0:(q=p.mainPlaylistEntity)==null?void 0:(t=q[l])==null?void 0:t.title;return PQm(y,p,this.listId)}y=_.gBm(bwg(p));p=_.gBm(_.HV(p));p=y.concat(p);return PQm(p)};
G3v.prototype.getPlaylistId=function(){return this.listId};
G3v.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12734_updateCallback(this.listId,this.getPlaylistData(),{})};var oB=function(p,y,l,q){q=q===void 0?[]:q;this.JSC$12737_playlistNetworkManager=p;this.listId=y;this.JSC$12737_updateCallback=l;this.videoIds=q;this.pendingUpdates=[];this.currentIndex=0};
oB.prototype.JSC$12737_setCurrentIndex=function(p){this.currentIndex=p};
oB.prototype.setListId=function(p){this.listId=p};
var PYB=function(p,y){p.currentCreateRequest&&p.currentCreateRequest.cancel(y);p.currentUpdateRequest&&p.currentUpdateRequest.cancel(y);p.currentRefreshRequest&&p.currentRefreshRequest.cancel(y)};
oB.prototype.delete=function(){PYB(this,"PROXY DELETED")};
oB.prototype.addVideos=function(p,y,l){var q=this;l!==void 0?this.videoIds.splice.apply(this.videoIds,[l,0].concat(_.xq(p))):this.videoIds.push.apply(this.videoIds,_.xq(p));this.listId||this.currentCreateRequest?(p.forEach(function(t,E){t={addedVideoId:t,action:"ACTION_ADD_VIDEO"};l&&(t.addedVideoPosition=l+E);q.pendingUpdates.push(t)}),z_(this)):AIr(this,y.onCreateListCommand)};
var ZHM=function(p,y,l,q,t){P_R(p.videoIds,y,l);y>p.currentIndex&&l<=p.currentIndex?p.JSC$12737_setCurrentIndex(p.currentIndex+1):y===p.currentIndex?p.JSC$12737_setCurrentIndex(l):y<p.currentIndex&&l>=p.currentIndex&&p.JSC$12737_setCurrentIndex(p.currentIndex-1);p.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:q,movedSetVideoIdPredecessor:t});z_(p)},AIr=function(p,y){PYB(p,"OBSOLETE");
p.currentCreateRequest=MIN(p.JSC$12737_playlistNetworkManager,y,p.videoIds);_.DO(p.currentCreateRequest,function(){p.currentCreateRequest=void 0}).then(function(l){p.setListId(l.playlistId);
p.pendingUpdates.length>0?z_(p):VIQ(p)})},z_=function(p){if(p.pendingUpdates.length!==0&&(p.currentRefreshRequest&&p.currentRefreshRequest.cancel("OBSOLETE"),!p.currentUpdateRequest&&!p.currentCreateRequest)){var y=p.pendingUpdates.splice(0,p.pendingUpdates.length);
p.currentUpdateRequest=p.JSC$12737_playlistNetworkManager.updatePlaylist(p.listId,y);_.DO(p.currentUpdateRequest,function(){p.currentUpdateRequest=void 0}).then(function(){p.pendingUpdates.length>0?z_(p):VIQ(p)}).thenCatch(function(){p.pendingUpdates.unshift.apply(p.pendingUpdates,_.xq(y))})}},VIQ=function(p){p.currentRefreshRequest=_.gkr(p.JSC$12737_playlistNetworkManager,p.listId,p.currentIndex,p.videoIds[p.currentIndex]);
_.DO(p.currentRefreshRequest,function(){p.currentRefreshRequest=void 0}).then(function(y){p.JSC$12737_updateCallback(y.playlistId,y.playlistPanelRenderer,y.autoplayRenderer)})};
oB.prototype.size=function(){return this.videoIds.length};var QzV=function(p,y,l,q){q=q===void 0?[]:q;oB.call(this,p,y,l,q);this.JSC$12737_playlistNetworkManager=p;this.listId=y;this.JSC$12737_updateCallback=l;this.videoIds=q};
_.A(QzV,oB);_.Y7=function(p,y,l,q,t,E,e){t=t===void 0?[]:t;e=e===void 0?jJ:e;oB.call(this,p,y,l,t);this.JSC$12737_playlistNetworkManager=p;this.listId=y;this.JSC$12737_updateCallback=l;this.onAuthChange=q;this.videoIds=t;this.storage=E;this.cookieReader=e;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.ZR(_.TR,this.checkLoggedInStatusChange.bind(this),1E3)};
_.A(_.Y7,oB);_.J=_.Y7.prototype;_.J.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.ZR(_.TR,this.checkLoggedInStatusChange.bind(this),1E3)};
_.J.JSC$12737_setCurrentIndex=function(p){oB.prototype.JSC$12737_setCurrentIndex.call(this,p);this.store()};
_.J.delete=function(){_.TR.cancelJob(this.queueSapisIdJob);oB.prototype.delete.call(this)};
_.J.setListId=function(p){oB.prototype.setListId.call(this,p);this.store()};
_.J.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var KTO=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],wxU=["playerResponse","videoDetails"],iHZ=["response","currentVideoEndpoint","watchEndpoint","videoId"],rIV=["response","currentVideoEndpoint","watchEndpoint","playlistId"],SQr=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],FTU=["response","contents","twoColumnWatchNextResults","playlist","playlist"],LTM=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
k3r=["response","contents","twoColumnWatchNextResults"];var IB={},g5o=(IB.WEB_UNPLUGGED="^unplugged/",IB.WEB_UNPLUGGED_ONBOARDING="^unplugged/",IB.WEB_UNPLUGGED_OPS="^unplugged/",IB.WEB_UNPLUGGED_PUBLIC="^unplugged/",IB.WEB_CREATOR="^creator/",IB.WEB_KIDS="^kids/",IB.WEB_EXPERIMENTS="^experiments/",IB.WEB_MUSIC="^music/",IB.WEB_REMIX="^music/",IB.WEB_MUSIC_EMBEDDED_PLAYER="^music/",IB.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",IB);var C1t,MIN;C1t=function(p,y){this.networkManager=p;this.innertubeTransportService=y};
MIN=function(p,y,l){if(!_.G(y,_.s_))return _.vL(Error("Ff"));_.G(y,_.s_).videoIds=l;l={create_playlist_title:_.g$("QUEUE",void 0,"Queue")};return Msg(_.eo(p.innertubeTransportService,y,l),AGo)};
_.gkr=function(p,y,l,q){y={videoId:q,playlistId:y,playlistIndex:l};l=_.hB(DIV);return Msg(_.pI(p.innertubeTransportService,y,l),Vsg)};
C1t.prototype.updatePlaylist=function(p,y){return Msg(_.eo(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:p,actions:y}}),Zoo)};var N1M=function(p){this.storage=p},DwB;
N1M.prototype.store=function(p,y){y=y===void 0?0:y;if(this.storage&&p.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",p),this.storage.set("TLPQindex",String(y)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(l){}};
N1M.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
N1M.prototype.getPlaylistId=function(){if(!this.storage)return null;var p=null;try{p=this.storage.get("TLPQplaylist")}catch(y){}return p};var io5=["navigationEndpoint","watchEndpoint","videoId"],w_5=["nextButtonVideo","watchEndpoint","videoId"];_.vI=new _.WE("NETWORK_TOKEN");_.mm=new _.WE("PAGE_TOKEN");_.yh=new _.WE("PLAYLIST_TOKEN");var HHM;HHM=new _.WE("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.XC=new _.WE("INNERTUBE_TRANSPORT_TOKEN");var T1U,l2,B1x,fXx,XxU,dwU;T1U=new Set(["ci","cr","carml"]);l2=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12784_parkedJobs=new Map;this.parkedProcessors=new Map};
_.qB=function(){l2.instance||(l2.instance=new l2);return l2.instance};
l2.prototype.onAny=function(p){return _.xwx(this,p,2)};
l2.prototype.parkOrScheduleJob=function(p,y,l,q,t){_.sX(this,l)?_.B3().addJob(p,y,q):(t&&(p=B1x(p),fXx(this,p,y,l,t)),t=this.JSC$12784_parkedJobs.get(l),t||(this.JSC$12784_parkedJobs.set(l,[]),t=this.JSC$12784_parkedJobs.get(l)),t.push({job:p,priority:y,delay:q}))};
l2.prototype.addListener=function(p,y,l){l&&(y=B1x(y),fXx(this,y,0,p,l));l=this.parkedProcessors.get(p);l||(this.parkedProcessors.set(p,[]),l=this.parkedProcessors.get(p));l.push(y)};
l2.prototype.processSignal=function(p){if(!_.sX(this,p)){this.inProgressSignals.add(p);var y=this.JSC$12784_parkedJobs.get(p);if(y){y=_.c(y);for(var l=y.next();!l.done;l=y.next())l=l.value,_.B3().addJob(l.job,l.priority,l.delay);this.JSC$12784_parkedJobs.delete(p)}if(y=this.parkedProcessors.get(p)){y=_.c(y);for(l=y.next();!l.done;l=y.next())l=l.value,l();this.parkedProcessors.delete(p)}this.signals.push(p);this.inProgressSignals.delete(p)}};
_.sX=function(p,y){return T1U.has(y)||_.o4("IS_HOMEPAGE_COLD")||_.o4("IS_RESULTS_PAGE_COLD")||_.o4("IS_WATCH_PAGE_COLD")?p.signals.indexOf(y)>=0:!0};
B1x=function(p){var y=!1;return function(){y||(y=!0,p())}};
fXx=function(p,y,l,q,t){if(vk$.has(q))_.B3().addJob(y,l,t);else{var E=p.compoundSignals.get(q);E&&_.B3().addJob(function(){_.sX(p,q)||(E.isTimeoutConditionSatisfied?_.B3().addJob(y,l):E.timeoutConditionObservers.push(function(){_.B3().addJob(y,l)}))},l,t)}};
_.xwx=function(p,y,l){if(y.length>1){var q=[],t=Object.create(null);y=_.c(y);for(var E=y.next();!E.done;E=y.next())E=E.value,t[E]||(q.push(E),t[E]=!0);y=q}if(y.length===1)return y[0];E=y;q="";t=l===2?"|":"&";E.sort();E=_.c(E);for(var e=E.next();!e.done;e=E.next())q+=e.value+t;if(!p.compoundSignals.get(q)){t=0;E=[];e=_.c(y);for(var C=e.next();!C.done;C=e.next())C=C.value,t++,_.sX(p,C)||E.push(C);(l=l===2)&&t>E.length||!l&&!E.length?p.signals.push(q):XxU(p,q,l,y,E)}return q};
XxU=function(p,y,l,q,t){var E=t.length,e=function(){l||--E===0?p.processSignal(y):dwU(p,y)};
t=_.c(t);for(var C=t.next();!C.done;C=t.next())p.addListener(C.value,e);p.compoundSignals.set(y,{signals:q,isOnAny:l,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});dwU(p,y)};
dwU=function(p,y){if(!_.sX(p,y)){var l=p.compoundSignals.get(y);if(l&&!l.isTimeoutConditionSatisfied){for(var q=!1,t=0,E=0,e=_.c(l.signals),C=e.next();!C.done;C=e.next()){var u=C.value;C=!_.sX(p,u);vk$.has(u)?q=!0:(u=p.compoundSignals.get(u))?C&&!u.isTimeoutConditionSatisfied&&(E++,l.isInitialized||u.timeoutConditionObservers.push(function(){dwU(p,y)})):C&&t++}l.isInitialized=!0;
l.isOnAny?q&&(l.isTimeoutConditionSatisfied=!0):t===0&&E===0&&(l.isTimeoutConditionSatisfied=!0);if(l.isTimeoutConditionSatisfied)for(l=_.c(l.timeoutConditionObservers),q=l.next();!q.done;q=l.next())q=q.value,q()}}};
l2.prototype.processSignal=l2.prototype.processSignal;l2.prototype.parkOrScheduleJob=l2.prototype.parkOrScheduleJob;l2.prototype.onAny=l2.prototype.onAny;_.e0("ytsignals.getInstance",_.qB);l2.prototype.onAny=l2.prototype.onAny;l2.prototype.parkOrScheduleJob=l2.prototype.parkOrScheduleJob;l2.prototype.processSignal=l2.prototype.processSignal;var vk$=new Set(["eop","eocs","dl","pcl"]);_.IA=new _.WE("MINIPLAYER_SERVICE");var tS,OH$,okx;tS=function(p,y,l){var q=_.pt.getInstance();if(!DwB){var t=new lFu;var E=void 0,e=_.OY("ID_TOKEN");e&&t.isAvailable()&&(E=new NM(t,"yt-queue"+e));DwB=new N1M(E)}t=DwB;E=_.qB();this.JSC$12791_actionRouter=q;this.pageManager=p;this.playlistManager=y;this.JSC$12791_playlistNetworkManager=l;this.storage=t;this.signals=E;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.EX=function(){if(!OH$){var p=_.WC(),y=p.resolve(_.RK(_.mm)),l=p.resolve(_.RK(_.vI)),q=p.resolve(_.RK(_.yh));p=p.resolve(_.XC);OH$=new tS(y,q,new C1t(l,p))}return OH$};
okx=function(p,y,l){if(l){var q;if(((q=p.responsePlaylistData)==null?void 0:q.playlistId)!==l)return}p.responsePlaylistData&&(l=NZR(y,p.responsePlaylistData),p.responsePlaylistData=(0,_.Ts.unsafeClone)(p.responsePlaylistData),HoL(p.responsePlaylistData,l));l=p.temporaryItems.findIndex(function(t){return t.videoId===y});
l>-1&&p.temporaryItems.splice(l,1);_.JS(p,_.cF(p,p.response?p.response.autoplayRenderer:void 0))};
_.zjV=function(p,y){if(p.responsePlaylistData){var l=DCo(y,p.responsePlaylistData);HoL(p.responsePlaylistData,l);if(p.queueProxy){var q=p.queueProxy;l<0||(q.videoIds.splice(l,1),l<q.currentIndex&&q.JSC$12737_setCurrentIndex(q.currentIndex-1),q.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:y}),z_(q))}}_.JS(p,_.cF(p,p.response?p.response.autoplayRenderer:void 0))};
tS.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.JS(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
tS.prototype.setPlaylistData=function(p,y,l){this.temporaryItems=[];this.listId=p;this.responsePlaylistData=y;_.JS(this,_.cF(this,l))};
var YQQ=function(p){return(p==null?0:p.playlistId)?p.playlistId:"PPSV"},IXV=function(p){return p&&p.playlistId?p.playlistId==="PPSV"?!0:xvj(_.ei().getState().entities,p.playlistId):!1};
tS.prototype.isPlayingOfflineVideo=function(){return this.response?IXV(this.response):!1};
tS.prototype.closeMiniplayer=function(p){var y=this.queueProxy&&this.queueProxy.size()<=1,l=_.WC().resolve(_.IA);if(!this.queueProxy||y)this.queueProxy&&this.clearQueue(),l.close(!0);else{l.pipController.getWindow()&&window.focus();y=this.responsePlaylistData;var q=this.temporaryItems.length+(y&&y.contents?y.contents.length:0);y=_.g$("QUEUE_CLEARED_UNPLURALIZED")||_.Qt("QUEUE_CLEARED",q);y=_.uS(y);l=_.g$("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");q=_.g$("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.Qt("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",q);var t=_.g$("MINIPLAYER_CLOSE",void 0,"Close"),E=_.g$("CANCEL",void 0,"Cancel");_.oL(this.JSC$12791_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.EK(l),dialogMessages:[_.EK(q)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.EK(t),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
y]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.EK(E)}}}}}}],p)}};
_.cF=function(p,y){var l={},q=p.response;l.autoplayRenderer=y;if(!p.responsePlaylistData&&!p.temporaryItems.length)return!q||!q.hasRelatedVideoData&&_.n("kevlar_prefetch_data_augments_network_data")||(l.playerData={rvs:q.relatedVideoArgs,endScreenRenderer:q.endScreenRenderer}),l;l.playerData={};if(p.index===void 0)return _.Bs(Error("Hf")),l;l.panel=p.responsePlaylistData?(0,_.Ts.unsafeClone)(p.responsePlaylistData):{titleText:_.EK(_.g$("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
y=l.panel;if(y.contents)for(var t=_.c(p.temporaryItems),E=t.next();!E.done;E=t.next())y.contents.push({playlistPanelVideoRenderer:E.value});p.queueProxy&&q&&q.playingVideo&&q.playingVideoId&&!kSu(q.playingVideoId,l.panel)&&(y=q.playingVideo,t=l.panel,E=p.index,t.contents&&t.contents.splice(E===void 0?0:E,0,{playlistPanelVideoRenderer:y}));q&&q.playingVideoId&&(y=p.index,t=l.panel,y=!t.contents||y>=t.contents.length?void 0:t.contents[y].playlistPanelVideoRenderer,y&&y.videoId===q.playingVideoId||(y=
NZR(q.playingVideoId,l.panel),p.index=y!==-1?y:p.index?p.index-1:0));y=L$6(p.index+1,l.panel);t=void 0;p.index>0&&(t=L$6(p.index-1,l.panel));if(t||y)l.autoplayRenderer=rG6(y,t,l.autoplayRenderer);!y&&(q==null?0:q.relatedVideoArgs)&&(l.playerData.rvs=q.relatedVideoArgs);q=q?q.playlistIndexOffset:0;p.queueProxy?BZo(l.panel,p.index,q,F$_,!0,!0,!0):BZo(l.panel,p.index,q);l.playerData.playlistPanelRenderer=l.panel;return l};
tS.prototype.openToast=function(p){_.WC().resolve(_.IA).openToast(p,_.g$("ADDED_TO_QUEUE",void 0,"Added to queue"))};
tS.prototype.isMiniplayerActive=function(){return _.WC().resolve(_.IA).isMiniplayerActive()};
_.JS=function(p,y){p.playlistManager.setAutoplayRenderer(y.autoplayRenderer||null);p.playlistManager.setPlaylistData(y.panel||null);y.playerData&&p.playlistManager.setPlayerPlaybackControlData(y.playerData)};var v5a="#";var poO={},yPQ={},lgM={},qox={},sfx={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:(poO.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",poO),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:(yPQ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",yPQ),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:(lgM.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",lgM),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:(qox.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",qox),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 Vkc=[{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:sfx},{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:sfx}}];var U4_;_.PI=[[["MTMzNnFrY3R1YnBpa2luZCM=","cm12YXFwM250aXZhbHVlI2Rx"],"eHBvbjJpOGdtOUFEX1BMQUNFTUVOVF9LSU5EX1NUQVJUI2No"]];
U4_=[[["YTJqNWRhcHJpbWFyeSNhbHd4dW0=",null,null],[null,["d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI3dlZjcwemx4dHFjdHl0ZC10","eWxlLXNjb3BlI2JkMW42Z3V2bHhmbnN0"],null],["c3RoZWFkLWFkIzR4dHF0dXhuNWlmeG1h",["aXRhdmM2cXVldDN5dGQtcmljaC1ncmlkLXJlbmRlcmVyIzU="],null],[null,["aHd1NmVxMmh4bWV5dGQtcmljaC1ncmlkLXJlbmRlcmVyI2Y=","eWxlLXNjb3BlIzZ5cnNyYzM3OTByMHN0"],null],[null,["N29md2tiMXBueXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciNuYg==","eWxlLXNjb3BlI3Vkamp3cTV5YnhjOHN0"],null],[null,["I2pmYjJ5cWZ3OHE0bXl0ZC1hZC1zbG90LXJlbmRlcmVy"],
null]],[["cGxheWVyLWFkcyM1MWRsamY4Njd6bTk=",null,null]]];_.G5=["YmFja3MjMnUwdHdscHpqbXJmZ2xvYmFsQ2FsbA==","YWE1NDYzZ3lqcGN4b25BYm5vcm1hbGl0eURldGVjdGVkIw==","c2Z5cG9uQWRTa2lwIzJha3N5bTJo","ZSNvbmgxamk4dWhwaDFyYXdfcGxheWVyX3Jlc3BvbnM=","ZjlnOTBrYWRTbG90cyN4b2hrZjE="];_.e4="YmFja3MjMnUwdHdscHpqbXJmZ2xvYmFsQ2FsbA== YWE1NDYzZ3lqcGN4b25BYm5vcm1hbGl0eURldGVjdGVkIw== c2Z5cG9uQWRTa2lwIzJha3N5bTJo ZSNvbmgxamk4dWhwaDFyYXdfcGxheWVyX3Jlc3BvbnM= X3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI2NoMndydG56ZG54Y3dlYg== ZGw5M2FiX3NhX2VmIzllb2p5Z2s5 ZjlnOTBrYWRTbG90cyN4b2hrZjE=".split(" ");var hS;hS=function(p,y,l){this.jfe=p;this.isAsync=y;this.kKu=l};
_.D4R=[new hS("b.f_",!1,0),new hS("j.s_",!1,2),new hS("r.s_",!1,4),new hS("e.h_",!1,6),new hS("i.s_",!0,8),new hS("s.t_",!1,10),new hS("p.h_",!1,12),new hS("s.i_",!1,14),new hS("f.i_",!1,16),new hS("a.b_",!1,18),new hS("a.o_",!1),new hS("g.o_",!1,22),new hS("p.i_",!1,24),new hS("p.m_",!1),new hS("n.k_",!0,20),new hS("i.f_",!1),new hS("a.s_",!0),new hS("m.c_",!1),new hS("n.h_",!1,26),new hS("o.p_",!1),new hS("m.p_",!0,28),new hS("o.a_",!1),new hS("d.p_",!1),new hS("e.i_",!1)].reduce(function(p,y){p[y.jfe]=
y;return p},{});var tlV=function(){};
tlV.prototype.flush=function(p,y){p=p===void 0?[]:p;y=y===void 0?!1:y;if(_.n("enable_client_streamz_web")){p=_.c(p);for(var l=p.next();!l.done;l=p.next())l=Y3v(l.value),this.rootSpec&&_.gu(l,2,this.rootSpec),l={serializedIncrementBatch:_.HR(l.JSC$9542_serializeBinary())},_.TX("streamzIncremented",l,{sendIsolatedPayload:y})}};
var o5c=function(){};
_.A(o5c,tlV);var E_B=function(p){var y=new flQ;var l=new TuV;l=_.Fq(l,1,"botguard");p=_.Fq(l,2,p);this.rootSpec=_.Qa(y,1,vXQ,p)};
_.A(E_B,tlV);var ji,JPr=new Map;var nmo,Ydc,JCo,yCo,sP6,aJc,PA5,R8g;nmo=2;Ydc=2;JCo=2;yCo=2;sP6=2;aJc=2;PA5=2;R8g=new vPQ;var eZU,hZr,CDr;eZU=function(){this.ongoingFlowNonces=new Map};
_.Vq=function(){hZr||(hZr=new eZU);return hZr};
_.Za=function(p,y,l){return{eventType:{flowEventNamespace:p,flowEventType:y},metadata:l,statusCode:void 0,csn:void 0,can:void 0}};
_.T3o=function(p,y){var l=_.Vq(),q=CDr(l,y,!0);_.ME(l,p,y,q)};
_.ME=function(p,y,l,q){p={flowNonce:q||CDr(p,l),flowType:l,flowEventType:y.eventType};y.metadata&&(p.flowMetadata=y.metadata);y.statusCode!==void 0&&(p.flowEventStatus=y.statusCode);y.csn&&(p.csn=y.csn);y.can&&(p.can=y.can);_.TX("flowEvent",p,void 0)};
CDr=function(p,y,l){l=l===void 0?!1:l;var q=p.ongoingFlowNonces.get(y);if(!q||l)q=H2(16),p.ongoingFlowNonces.set(y,q);return q};_.uUO=new fzv;var vmR={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var CI=function(p,y,l,q,t,E,e){l=l===void 0?!1:l;q=q===void 0?!1:q;E=E===void 0?_.EX():E;this.hasRun=!1;this.eKJ=p;this.mB0=y;this.n02=l;this.fromHistory=q;this.previousVideoId=t;this.oud=E;this.tempData=e;this.g0G=new _.X9B};
_.A(CI,U_);CI.prototype.validate=function(p){return!(!p.data.playerResponse||p.data.page!=="watch"&&p.data.page!=="learning_journey_watch"&&p.data.page!=="shorts"||this.hasRun)};
CI.prototype.handle=function(p){var y=this,l=_.G(p.endpoint,_.Eb),q=_.G(p.endpoint,_.FC);if(_.n("kevlar_continue_playback_without_player_response")&&(l==null?0:l.videoId)&&this.previousVideoId&&(l==null?void 0:l.videoId)===this.previousVideoId&&(l==null?0:l.continuePlayback)&&!this.fromHistory)this.eKJ.resolve();else{var t={};l?t.watch_endpoint=l:q&&(t.watch_endpoint=q,q.endTimeSeconds&&(t.end=q.endTimeSeconds));p.data.page==="watch"?(p.data.filler||this.n02||(_.vW("cfg"),_.pt.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(t,RZi(this,p.endpoint)),_.n("enable_masthead_quartile_ping_fix")&&Object.assign(t,WBQ(this)),Object.assign(t,void 0),p.data.forceExternalPlaylist&&(t.external_list=!0)):p.data.page==="shorts"?_.pt.getInstance().triggerAction("yt-start-loading-shorts"):p.data.page==="learning_journey_watch"&&_.pt.getInstance().triggerAction("yt-start-loading-learning-journey");if(l=this.mB0()){try{l.loadVideoWithPlayerResponse(p.data.playerResponse,t),l.getPlayerPromise().then(this.eKJ.resolve)}catch(E){_.Bs(E),
this.eKJ.resolve()}this.hasRun=!0;l.getPlayerPromise().then(function(E){E.addEventListener("onAbnormalityDetected",function(){var e=p.data.playerResponse,C=E.getVideoData().cpn;PA5=0;_.cPM=C;if(C=N3g(e))y.g0G.increment("IN_PLAYER"),_.gC(5),_.n("ab_st_vid_ks")?E.pauseVideo(!0):E.stopVideo(),e.playabilityStatus=Object.assign({},e.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:C}}),e.videoDetails=void 0,_.pt.getInstance().triggerOptionalAction("yt-updated-playability-status",
e.playabilityStatus)})})}else _.vs(Error("Kf"))}};
var RZi=function(p,y){var l=_.G(y,_.Eb);if(y&&l&&l.playlistId&&l.videoId&&(p=p.oud,p.queueProxy?(p=p.queueProxy,l=p.listId===l.playlistId?p.attributionData.get(l.videoId):void 0):l=void 0,l))return{queue_info:l}},WBQ=function(p){var y;
if((y=p.tempData)==null?0:y.adpings)return{adpings:p.tempData.adpings}};var u2=function(p,y,l){this.hasRun=!1;this.ewr=p;this.hyj=y;this.fqP=l};
_.A(u2,U_);u2.prototype.validate=function(p){return!!_.Ts.getValueByKeys.apply(null,[p.data].concat(_.xq(k3r)))};
u2.prototype.handle=function(p){var y=this;this.ewr.promise.then(function(){var l=p.data;var q=_.Ts.getValueByKeys.apply(null,[l].concat(_.xq(KTO))),t=_.Ts.getValueByKeys.apply(null,[l].concat(_.xq(FTU))),E=_.Ts.getValueByKeys.apply(null,[l].concat(_.xq(iHZ)));var e=(e=_.Ts.getValueByKeys.apply(null,[l].concat(_.xq(wxU))))?{videoId:e.videoId,thumbnail:e.thumbnail,title:e.title?_.EK(e.title):void 0,shortBylineText:e.author?_.EK(e.author):void 0}:void 0;var C=void 0;_.n("web_get_playlist_id_from_current_endpoint_ks")||
(C=_.Ts.getValueByKeys.apply(null,[l].concat(_.xq(rIV))));var u=_.Ts.getValueByKeys.apply(null,[l].concat(_.xq(LTM))),a=_.Ts.getValueByKeys.apply(null,[l].concat(_.xq(SQr))),m=!!u||!!a&&!!a.results&&a.results.length>0,U=0;t&&t.currentIndex&&t.localCurrentIndex&&(U=t.currentIndex-t.localCurrentIndex);t&&t.playlistId&&(C=t.playlistId);l={rawResponse:l,autoplayRenderer:q,hasRelatedVideoData:m,playingVideo:e,playingVideoId:E,playlistPanelRenderer:t,playlistId:C,playlistIndex:t&&t.currentIndex,relatedVideoArgs:u,
endScreenRenderer:a,playlistIndexOffset:U};a:{q=y.fqP;t=y.hyj;q.response=l;if(IXV(l))q.downloadPlaylistProxy&&q.downloadPlaylistProxy.getPlaylistId()===YQQ(l)||(q.downloadPlaylistProxy=new G3v(YQQ(l),q.setPlaylistData.bind(q),q.isPlayingOfflineVideo.bind(q))),q.responsePlaylistData=q.downloadPlaylistProxy.getPlaylistData(),q.listId=YQQ(l),q.index=0;else if(l.playlistPanelRenderer&&l.playlistId&&l.autoplayRenderer)l.playlistId.startsWith("TLPQ")?q.queueProxy?q.listId===l.playlistId?(q.index=l.playlistIndex,
q.responsePlaylistData=l.playlistPanelRenderer,q.queueProxy.JSC$12737_setCurrentIndex(q.index)):l.playingVideoId&&q.index!==void 0&&t.clientParams.autoSaveToQueue&&(q.index+=1,q.queueProxy.JSC$12737_setCurrentIndex(q.index),q.queueProxy.addVideos([l.playingVideoId],{},q.index)):(q.queueProxy=new _.Y7(q.JSC$12791_playlistNetworkManager,l.playlistId,q.setPlaylistData.bind(q),q.clearQueue.bind(q),_.TZu(l.playlistPanelRenderer),q.storage),q.responsePlaylistData=l.playlistPanelRenderer,q.listId=l.playlistId,
q.index=l.playlistIndex):(q.index=l.playlistIndex,q.listId!==l.playlistId&&q.clearQueue(),q.responsePlaylistData=l.playlistPanelRenderer,q.listId=l.playlistId,q.playlistProxy=new QzV(q.JSC$12791_playlistNetworkManager,l.playlistId,q.setPlaylistData.bind(q),_.TZu(l.playlistPanelRenderer)));else if(!q.queueProxy)q.responsePlaylistData=void 0;else if(l.playingVideoId&&t.clientParams.autoSaveToQueue){if(q.index===void 0){_.Bs(Error("Gf"));q.clearQueue();break a}q.queueProxy.videoIds.includes(l.playingVideoId)||
(q.index+=1,q.queueProxy.JSC$12737_setCurrentIndex(q.index),q.queueProxy.addVideos([l.playingVideoId],{},q.index))}_.JS(q,_.cF(q,q.response.autoplayRenderer))}})};var agx=function(p,y){y=y===void 0?_.EX():y;iV.call(this);this.hI.push(new u2(this.sN,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},y));this.hI.push(new CI(this.sN,p,!1,!1));_.n("web_response_commands_chunk_processor")&&this.hI.push(new rz)};
_.A(agx,iV);agx.prototype.processChunk=function(p){p&&p.data.player===void 0&&this.sN.resolve();iV.prototype.processChunk.call(this,p)};var Ru=function(p,y){p=p===void 0?{layer:0}:p;this.hasRun=!1;this.createScreenConfig=p;this.pch=y};
_.A(Ru,U_);Ru.prototype.validate=function(p){return!(this.hasRun||!p.endpoint)};
Ru.prototype.handle=function(p){var y=_.Ll(),l,q,t=(q=_.G((l=p.endpoint)==null?void 0:l.commandMetadata,_.ul))==null?void 0:q.rootVe;this.pch&&t?_.Mb(y,t,this.pch,this.createScreenConfig):E$r(y,p.endpoint,this.createScreenConfig);this.hasRun=!0};var WF=function(p,y){this.hasRun=!1;this.skP=p;this.previousVideoId=y};
_.A(WF,U_);WF.prototype.validate=function(p){return _.n("kevlar_continue_playback_without_player_response")&&(p=_.G(p.endpoint,_.Eb),(p==null?0:p.videoId)&&this.previousVideoId&&(p==null?void 0:p.videoId)===this.previousVideoId&&(p==null?0:p.continuePlayback))?!1:this.skP.kDP===0};
WF.prototype.handle=function(p){_.pt.getInstance().triggerAction("yt-stop-old-player",p.data,!0)};var mov=function(p){p=p===void 0?{layer:0}:p;iV.call(this);this.hI.push(new WF(this));this.hI.push(new Ru(p));this.hI.push(new wz(p))};
_.A(mov,iV);var UoO=function(){this.hasRun=this.hasRun=!1};
_.A(UoO,U_);UoO.prototype.validate=function(p){return!this.hasRun&&!(!p.data.csn||!p.data.rootVe)};
UoO.prototype.handle=function(p){this.hasRun=!0;_.v2(p.data.csn,p.data.rootVe,3)};var $oU=function(){U_.apply(this,arguments)};
_.A($oU,U_);$oU.prototype.validate=function(p){return!!p.data.preconnect};
$oU.prototype.handle=function(p){_.fy("bc");p=_.c(p.data.preconnect);for(var y=p.next();!y.done;y=p.next())y=y.value,(new Image).src=y};var jf$=function(p,y,l){l=l===void 0?{layer:0}:l;iV.call(this);this.hI.push(new CI(this.sN,p));this.hI.push(new Ru(l));this.hI.push(new wz(l))};
_.A(jf$,iV);var bZ$=function(p,y,l,q,t){l=l===void 0?{layer:0}:l;q=q===void 0?_.EX():q;iV.call(this);var E=!!y&&!!y.clientParams&&!!y.clientParams.miniplayer;E&&this.hI.push(new UoO);this.hI.push(new u2(this.sN,y,q));this.hI.push(new $oU);var e,C;this.hI.push(new CI(this.sN,p,E,!((e=y.clientParams)==null||!e.fromHistory),(C=y.clientParams)==null?void 0:C.previousVideoId,q,y.tempData));var u;this.hI.push(new WF(this,(u=y.clientParams)==null?void 0:u.previousVideoId));var a;(a=y.clientParams)!=null&&a.fromHistory||
(l.layer||(l=Object.assign({},l,{layer:E?3:0})),this.hI.push(new Ru(l,t)),this.hI.push(new wz(l)));_.n("web_response_commands_chunk_processor")&&this.hI.push(new rz)};
_.A(bZ$,iV);var au,PDO;au={};
_.n_Q=(au["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},au["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},au["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},au["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},au["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},au["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},au["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},au);_.mZ=new _.XL("yt-edu");_.G2V=function(){this.JSC$12892_eduDisplayedThisLoad_={}};
PDO=function(p){var y=_.G2V.getInstance();var l=_.UC("kevlar_tooltip_impression_cap");y=l&&parseInt(_.mZ.get(p+"-impression")||0,10)>=l||_.mZ.get(p+"-dismissed")?!1:(l=_.n_Q[p])&&!y.JSC$12892_eduDisplayedThisLoad_[l.setKey||p]&&(l.titleText&&_.g$(l.titleText)||l.bodyText&&_.g$(l.bodyText))?!0:!1;if(!y)return null;y=_.n_Q[p];if(!y)return null;l=y.bodyText?_.g$(y.bodyText):void 0;var q=y.titleText?_.g$(y.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:y.position,popup:{bubbleHintRenderer:{text:q?
_.EK(q):void 0,detailsText:l?_.EK(l):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.EK(_.g$("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:p}}]}}}}}}}},{eduImpressionAction:{key:p}}]};
_.Ua(_.G2V);var x4u=!1;for(var APx="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),ZZr=[],UX=6;UX>=1;UX--)ZZr.push({columnCount:UX,query:UX==1?0:UX*2*107-4+32,className:"grid-"+UX+"-columns",width:UX*2*107+"px"});_.VlB=function(p){this.actionRouter_=p=p===void 0?_.pt.getInstance():p;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.Mli(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.Mli=function(p){var y=p.miniGuideVisible_?72:0,l=p.documentWidth_-(p.guidePersistentAndVisible_?240:y);return ZZr.find(function(q){return l>q.query})};
_.Ua(_.VlB);var g_i=function(){var p=this;this.JSC$12904_keyboardInUse=!1;document.addEventListener("keydown",function(){p.onKeydown()});
document.addEventListener("mousedown",function(){p.JSC$12904_keyboardInUse=!1})},QfV;
g_i.prototype.isKeyBoardInUse=function(){return this.JSC$12904_keyboardInUse};
g_i.prototype.onKeydown=function(){this.JSC$12904_keyboardInUse=!0};var KBr,b2;_.$a=new _.XL("yt-mentions");_.j4=function(){};
KBr=function(p,y){return b2(y,"drag-to-reorder-edu-displayed")};
b2=function(p,y,l,q,t,E){l=l===void 0?"OPEN_POPUP_POSITION_TOP":l;if(y){if(_.$a.get(y))return;_.$a.set(y,!0,q)}if(t&&E!==void 0){y=Number(_.$a.get(t)||0);if(y>=E)return;_.$a.set(t,y+1)}return[{openPopupAction:{popupType:"HINT",position:l,popup:{bubbleHintRenderer:{detailsText:p,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Ua(_.j4);var wor,iZN,rPi;wor=function(p,y,l,q){this.JSC$12914_taskManager_=p;this.onFulfilled_=typeof y==="function"?y:null;this.onRejected_=typeof l==="function"?l:null;this.JSC$12914_context_=q};
iZN=function(p,y){p.onFulfilled_&&_.D6(p.JSC$12914_taskManager_,function(){p.onFulfilled_.call(p.JSC$12914_context_,y)})};
rPi=function(p,y){p.onRejected_&&_.D6(p.JSC$12914_taskManager_,function(){p.onRejected_.call(p.JSC$12914_context_,y)})};
_.nI=function(p){this.JSC$12917_taskManager_=p;this.callbacks_=[]};
_.nI.prototype.then=function(p,y,l){this.callbacks_.push(new wor(this.JSC$12917_taskManager_,p,y,l));return this};
_.nI.prototype.onSuccess=function(p){this.callbacks_.forEach(function(y){iZN(y,p)})};
_.nI.prototype.onFailure=function(p){this.callbacks_.forEach(function(y){rPi(y,p)})};
_.nI.prototype.cancel=function(){this.callbacks_.length=0};
yQV(_.nI);_.d4o=null;_.Xf=new _.WE("ACTIVITY_TOKEN");var G7=function(p,y){this.serviceId=new pCM(p,y)};
G7.prototype.toString=function(){return this.serviceId.toString()};var SoP=function(){this.internalMap={}};
_.J=SoP.prototype;_.J.contains=function(p){return Object.prototype.hasOwnProperty.call(this.internalMap,p)};
_.J.get=function(p){if(this.contains(p))return this.internalMap[p]};
_.J.set=function(p,y){this.internalMap[p]=y};
_.J.getKeys=function(){return Object.keys(this.internalMap)};
_.J.remove=function(p){delete this.internalMap[p]};var PF=function(){this.mappings=new SoP;this.errorCallbacks=new Set};
PF.prototype.getModuleId=function(p){return p.serviceId.getModuleId()};
PF.prototype.get=function(p){var y=this.mappings.get(p.toString());return FBB(this,y,p)};
PF.prototype.getMultipleAsync=function(){var p=_.oX.apply(0,arguments),y=this,l=p.map(function(u){return y.getModuleId(u)}),q=p.map(function(u){return y.mappings.get(u.toString())}).filter(function(u){return u});
if(q.length===p.length)return _.PW(q.map(function(u,a){return FBB(y,u,p[a])}));
var t=H9().loadMultiple(l);q=_.Ni(l.map(function(u){return t[u]}));
var E=document.hidden,e=-1,C=_.UC("get_async_timeout_ms",-1);C>-1&&(e=setTimeout(function(){_.vs(new _.SM("Module timeout.",l,E,document.hidden))},C));
return _.DO(q.then(function(){return p.map(function(u){return FBB(y,y.mappings.get(u.toString()),u)})}).thenCatch(function(u){for(var a=_.c(y.errorCallbacks),m=a.next();!m.done;m=a.next())m=m.value,m(u);
throw u;}),function(){clearTimeout(e)})};
PF.prototype.registerService=function(p,y){this.mappings.set(p.toString(),{type:"mapping",value:y});return p};
var FBB=function(p,y,l){switch(y.type){case "mapping":return y.value;case "factory":return y=y.value(),p.mappings.set(l.toString(),{type:"mapping",value:y}),y;default:return _.qL(y)}};
PF.prototype.onLoadError=function(p){var y=this;this.errorCallbacks.add(p);return function(){y.errorCallbacks.delete(p)}};
_.AS=new PF;var IJj=/^[a-zA-Z0-9_\-]{11}$/;var p8c=_.Sz(function(){var p,y;return(y=(p=window).matchMedia)==null?void 0:y.call(p,"(prefers-reduced-motion: reduce)").matches});var LBB=_.Sz(function(){if(window.MediaSource&&typeof window.MediaSource.isTypeSupported==="function")return window.MediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');if(window.ManagedMediaSource&&typeof window.ManagedMediaSource.isTypeSupported==="function")return window.ManagedMediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');var p=_.I4("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");p||(p=_.gg("VIDEO"),_.e0("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
p));return!!(p&&p.canPlayType&&p.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var EGg=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Z1;Z1=function(){this.tokenJars={};if(this.cookiesEnabled=_.ws()){var p=_.Q$.get("CONSISTENCY",void 0);p&&k2$(this,{encryptedTokenJarContents:p})}};
_.cFt=function(){Z1.instance||(Z1.instance=new Z1);return Z1.instance};
Z1.prototype.handleResponse=function(p,y){if(!y)throw Error("Qf");var l,q;y=((l=y.innerTubeRequest.context)==null?void 0:(q=l.request)==null?void 0:q.consistencyTokenJars)||[];var t;(p=(t=p.responseContext)==null?void 0:t.consistencyTokenJar)&&this.replace(y,p)};
Z1.prototype.replace=function(p,y){p=_.c(p);for(var l=p.next();!l.done;l=p.next())delete this.tokenJars[l.value.encryptedTokenJarContents];k2$(this,y)};
var k2$=function(p,y){if(y.encryptedTokenJarContents&&(p.tokenJars[y.encryptedTokenJarContents]=y,typeof y.expirationSeconds==="string")){var l=Number(y.expirationSeconds);setTimeout(function(){delete p.tokenJars[y.encryptedTokenJarContents]},l*1E3);
p.cookiesEnabled&&_.Kh("CONSISTENCY",y.encryptedTokenJarContents,l,void 0,!0)}};var NhV,MB;NhV=window.location.hostname.split(".").slice(-2).join(".");_.BI=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var p=_.OY("LOCATION_PLAYABILITY_TOKEN");_.OY("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Dox(this))&&(p=this.localStorage.get("yt-location-playability-token"));p&&(this.locationPlayabilityToken=p,this.mostRecentPosition=void 0)};
_.BI.getInstance=function(){MB=_.I4("yt.clientLocationService.instance");MB||(MB=new _.BI,_.e0("yt.clientLocationService.instance",MB));return MB};
_.BI.prototype.setLocationOnInnerTubeContext=function(p){p.client||(p.client={});if(this.mostRecentPosition)p.client.locationInfo||(p.client.locationInfo={}),p.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),p.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),p.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),p.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)p.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.BI.prototype.handleResponse=function(p){var y;p=(y=p.responseContext)==null?void 0:y.locationPlayabilityToken;p!==void 0&&(this.locationPlayabilityToken=p,this.mostRecentPosition=void 0,_.OY("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Dox(this))&&this.localStorage.set("yt-location-playability-token",p,15552E3):_.Kh("YT_CL",JSON.stringify({loctok:p}),15552E3,NhV,!0))};
var Dox=function(p){return p.localStorage===void 0?new _.XL("yt-client-location"):p.localStorage};
_.BI.prototype.clearLocationPlayabilityToken=function(p){p==="TVHTML5"?(this.localStorage=Dox(this))&&this.localStorage.remove("yt-location-playability-token"):_.dnL("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.BI.prototype.getCurrentPositionFromGeolocation=function(){var p=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Rf"));var y=!1,l=1E4;_.OY("INNERTUBE_CLIENT_NAME")==="MWEB"&&(y=!0,l=15E3);return new Promise(function(q,t){navigator.geolocation.getCurrentPosition(function(E){p.mostRecentPosition=E;q(E)},function(E){t(E)},{enableHighAccuracy:y,
maximumAge:0,timeout:l})})};
_.BI.prototype.createUnpluggedLocationInfo=function(p){var y={};p=p.coords;if(p==null?0:p.latitude)y.latitudeE7=Math.floor(p.latitude*1E7);if(p==null?0:p.longitude)y.longitudeE7=Math.floor(p.longitude*1E7);if(p==null?0:p.accuracy)y.locationRadiusMeters=Math.round(p.accuracy);return y};
_.BI.prototype.createLocationInfo=function(p){var y={};p=p.coords;if(p==null?0:p.latitude)y.latitudeE7=Math.floor(p.latitude*1E7);if(p==null?0:p.longitude)y.longitudeE7=Math.floor(p.longitude*1E7);return y};var HZi=function(){};
_.J=HZi.prototype;
_.J.JSC$12984_getRequest=function(p,y,l){y=y===void 0?{}:y;l=l===void 0?cKr:l;var q=y;if(this.isNavigationCommand()){var t,E=(t=_.G(p==null?void 0:p.commandMetadata,_.ul))==null?void 0:t.url;q=_.ecu(p.clickTrackingParams,!0,!1,E,this.JSC$12984_getClientScreen(q))}else q=_.ecu(p.clickTrackingParams,!1,this.includeCsn);q={context:q};if(t=this.getExtension(p))return this.JSC$12984_buildRequest(q,t,y),t=this.getApiUrl(p),E=Object.assign({},{command:p},this.getRequestConfig(p,y)),q={input:t,requestShell:sb(t),
innerTubeRequest:q,config:E},q.config.authStrategy?q.config.authStrategy.identity=l:q.config.authStrategy={identity:l},(p=this.JSC$12984_getRequestKey(p,y))&&!q.config.requestKey&&(q.config.requestKey=p),q;p=new _.SM("Error: Failed to create Request from Command.",p);_.Bs(p)};
_.J.getApiUrl=function(p){var y=_.hB(this.getApiPaths(p)),l;(p=(l=_.G(p.commandMetadata,_.ul))==null?void 0:l.apiUrl)&&(y=p);return kv5(L4t(y))};
_.J.isNavigationCommand=function(){return!1};
_.J.JSC$12984_getClientScreen=function(){};
_.J.JSC$12984_getRequestKey=function(){};
_.J.getRequestConfig=function(){};
_.Jh.Object.defineProperties(HZi.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var Vh=function(){};
_.A(Vh,HZi);Vh.prototype.JSC$12991_getStoreKey=function(){};
Vh.prototype.JSC$12984_getRequestKey=function(p,y){y=y===void 0?{}:y;return this.JSC$12991_getStoreKey(p,y)};var xoP;_.gB=function(p,y,l){var q=l&&l>0?l:0;l=q?Date.now()+q*1E3:0;if((q=q?(0,_.ThZ)():xoP())&&window.JSON){typeof y!=="string"&&(y=JSON.stringify(y,void 0));try{q.set(p,y,l)}catch(t){q.remove(p)}}};
_.Qh=function(p){var y=xoP(),l=(0,_.ThZ)();if(!y&&!l||!window.JSON)return null;try{var q=y.get(p)}catch(t){}if(typeof q!=="string")try{q=l.get(p)}catch(t){}if(typeof q!=="string")return null;try{q=JSON.parse(q,void 0)}catch(t){}return q};
_.KI=function(p){try{var y=xoP(),l=(0,_.ThZ)();y&&y.remove(p);l&&l.remove(p)}catch(q){}};
_.ThZ=_.Sz(function(){try{var p=new yeR;var y=p.isAvailable()?p:null}catch(l){return null}return y?new _.mX(y):null});
xoP=_.Sz(function(){var p=new lFu;return p.isAvailable()?new _.mX(p):null});var bW=new _.WE("ENTITY_STATE_TOKEN"),wB=new _.WE("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Bhi=XMLHttpRequest.prototype.fetch,fgU=Bhi&&Bhi.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Jk?!0:!1;var i2=function(p){this.JSC$12996_storeWithEntities=p};
_.A(i2,Vh);_.J=i2.prototype;_.J.getApiPaths=function(){return ecQ};
_.J.getExtension=function(p){return _.G(p,_.Eb)||_.G(p,_.FC)||_.G(p,eFB)};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$12991_getStoreKey=function(p){if((_.n("kevlar_cache_on_ttl_player")||_.n("mweb_enable_shorts_innertube_player_prefetch")||_.n("mweb_use_new_history_manager")||_.n("web_shorts_prefetch_service_enabled"))&&(p=this.getExtension(p))&&p.videoId){var y={videoId:p.videoId};p.playlistId&&(y.playlistId=p.playlistId);p.playerParams&&(y.params=p.playerParams);return _.tO("player",y)}};
_.J.JSC$12984_getClientScreen=function(p){var y;return((y=p.contentPlaybackContext)==null?void 0:y.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.J.JSC$12984_buildRequest=function(p,y,l){if(_.n("enable_interstitial_entity_check")){var q=this.JSC$12996_storeWithEntities;if(y.videoId)for(var t=_.c(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),E=t.next();!E.done;E=t.next()){E=E.value;var e;var C=void 0,u=void 0,a=y.videoId,m=E;(e=q)?(a=_.PV(a+m,"interstitialInteractionStateEntity"),e=(C=(u=_.Ae(e.getState().entities,"interstitialInteractionStateEntity",a))==null?void 0:u.primaryButtonClicked)!=null?C:!1):e=!1;if(e)switch(E){case "CONTENT_CHECK_REQUIRED":y.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":y.racyCheckOk=!0}}}y.videoId&&(p.videoId=y.videoId);y.playlistId&&(p.playlistId=y.playlistId);y.index!==void 0&&(p.playlistIndex=y.index+1);y.playerParams&&(p.params=y.playerParams);"startTimeSeconds"in y&&y.startTimeSeconds&&(_.n("enable_player_request_builder_start_time_floor")?p.startTimeSecs=Math.floor(y.startTimeSeconds):p.startTimeSecs=y.startTimeSeconds);l.contentPlaybackContext&&(p.playbackContext={contentPlaybackContext:l.contentPlaybackContext});l.prefetchPlaybackContext&&
(p.playbackContext=Object.assign({},p.playbackContext,{prefetchPlaybackContext:l.prefetchPlaybackContext}),p.context.request||(p.context.request={}),p.context.request.isPrefetch=!0);p.playbackContext||(p.playbackContext={});q=LBB();p.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!q,supportXhr:fgU};l.overrideMutedAtStart&&(p.overrideMutedAtStart=l.overrideMutedAtStart);p.racyCheckOk=!!y.racyCheckOk;p.contentCheckOk=!!y.contentCheckOk;!_.n("captions_prefs_killswitch")&&(l=(l=_.Qh("yt-player-caption-language-preferences"))?
l:[],l==null?0:l.length)&&(p.captionParams={viewerSelectedCaptionLangs:l})};
_.J.getRequestConfig=function(p){p=this.JSC$12991_getStoreKey(p);var y;p&&(y={storeStrategy:{storeKey:p}});_.n("web_log_player_watch_next_ticks")&&(y=y||{},y.requestTick="ps_s",y.responseTick="ps_r");return y};
i2[RL]=[bW];var rB=function(){};
_.A(rB,Vh);_.J=rB.prototype;_.J.getApiPaths=function(){return DIV};
_.J.getExtension=function(p){return _.G(p,_.Eb)};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$12991_getStoreKey=function(p){if((p=this.getExtension(p))&&p.videoId){var y={videoId:p.videoId};p.playlistId&&(y.playlistId=p.playlistId);p.index&&(y.index=p.index);p.params&&(y.params=p.params);return _.tO("next",y)}};
_.J.JSC$12984_getClientScreen=function(p){var y;return((y=p.contentPlaybackContext)==null?void 0:y.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.J.JSC$12984_buildRequest=function(p,y,l){y.videoId&&(p.videoId=y.videoId);y.playlistId&&(p.playlistId=y.playlistId);y.params&&(p.params=y.params);y.index!==void 0&&(p.playlistIndex=y.index);p.racyCheckOk=!(!l.racyCheckOk&&!y.racyCheckOk);p.contentCheckOk=!!y.contentCheckOk;l.contentPlaybackContext&&(p.autonavState=l.contentPlaybackContext.autonavState,p.playbackContext={vis:l.contentPlaybackContext.vis,lactMilliseconds:l.contentPlaybackContext.lactMilliseconds});l.prefetchPlaybackContext&&(p.context.request||
(p.context.request={}),p.context.request.isPrefetch=!0);_.n("captions_hats_killswitch")||(y=_.w$().getFlag(65),y=y!=null?!y:!1,l=!!_.Qh("yt-player-sticky-caption"),p.captionsRequested=y&&l)};
_.J.getRequestConfig=function(p){p=this.JSC$12991_getStoreKey(p);var y;p&&(y={storeStrategy:{storeKey:p}});_.n("web_log_player_watch_next_ticks")&&(y=y||{},y.requestTick="wn_s",y.responseTick="wn_r");return y};
var S4=function(){};
_.A(S4,Vh);S4.prototype.getApiPaths=function(){return DIV};
S4.prototype.getExtension=function(p){return _.G(p,_.qr)};
S4.prototype.JSC$12984_buildRequest=function(p,y){y.token&&(p.continuation=y.token)};var Ft=function(p,y){this.playerRequestBuilder=p;this.watchNextRequestBuilder=y};
_.A(Ft,Vh);Ft.prototype.getApiPaths=function(){return YgQ};
Ft.prototype.getExtension=function(p){return _.G(p,_.Eb)};
Ft.prototype.isNavigationCommand=function(){return!0};
Ft.prototype.JSC$12984_buildRequest=function(p,y,l){p.playerRequest={};this.playerRequestBuilder.JSC$12984_buildRequest(p.playerRequest,y,l);_.n("web_streaming_watch")&&(p.watchNextRequest={},this.watchNextRequestBuilder.JSC$12984_buildRequest(p.watchNextRequest,y,l))};
Ft[RL]=[i2,rB];var v_V;_.LI=new _.WE("SHORTS_CONTROLLER_TOKEN");v_V=new _.WE("SHORTS_STATE_STORE_TOKEN");var ka=function(p,y){var l=_.oX.apply(2,arguments);p=p===void 0?0:p;_.SM.call(this,y,l);this.errorType=p;Object.setPrototypeOf(this,this.constructor.prototype)};
_.A(ka,_.SM);var XoM,doM,o_i,I$c,l8,$K6,pTi,IgV,E2B,qNU,lnU;XoM=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(p){return p+"="}).join("|"));
doM=RegExp(".*\\?.*playnext=1.*");_.NB=function(p,y,l,q){this.watchEndpointMap=p;this.reelWatchEndpointMap=y;this.innerTubeTransportService=l;this.fetchPbj=q};
o_i=function(p,y,l){var q=_.WC().resolve(_.RK(OZQ));_.NB.instance=new _.NB(p,y,l,q)};
_.zZQ=function(p,y){var l=_.UC("web_pbj_log_warning_rate",0);l=l>0&&Math.random()<l;var q;if((q=_.G(y.commandMetadata,_.ul))==null||!q.rootVe)return l&&_.vs(Error("Tf")),!1;var t;q=(t=_.G(y.commandMetadata,_.ul))==null?void 0:t.url;if(!q)return l&&_.vs(Error("Uf")),!1;if(doM.test(q))return!0;if(XoM.test(q))return l&&_.vs(Error("Vf`"+q)),!1;if(_.G(y,_.Eb)){if(!(p.watchEndpointMap.watchNext&&p.watchEndpointMap.player||_.n("kevlar_fetch_initial_data_op_watch_client")))return l&&_.vs(Error("Mf")),!1;
p=_.UC("web_pbj_log_warning_rate",0);p=p>0&&Math.random()<p;_.G(y,_.Eb)?z86(y)?y=!0:(p&&_.vs(Error("Nf")),y=!1):(p&&_.vs(Error("Mf")),y=!1);return y}if(_.G(y,_.FC))return Ygu(y);if(_.G(y,_.I5))return!0;p=_.cN(p.innerTubeTransportService,y);!p&&l&&_.Bs(Error("Wf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(y)});return p};
I$c=function(p,y,l,q,t,E){y={url:y};if(l==null?0:l.itct)y.parentTrackingParams=l.itct;var e=_.hB($Ir);return _.pI(p.innerTubeTransportService,y,e).then(function(C){(C=C.endpoint)||(C=_.Fx);(l==null?0:l.itct)&&C&&!C.trackingParams&&(C.trackingParams=l.itct);var u=rC(C);return l8(p,C,l,q,u,t,E)})};
l8=function(p,y,l,q,t,E,e,C){C=C===void 0?{}:C;if(p.fetchPbj&&!_.zZQ(p,y)&&!_.n("force_one_platform")){C=p.fetchPbj(y);var u=_.PW(C.then(function(f){if(!f)throw Error("Xf");e(u)||E(y,f);return f}));
return u}var a,m,U={rootVe:(a=_.G(y.commandMetadata,_.ul))==null?void 0:a.rootVe,url:(m=_.G(y.commandMetadata,_.ul))==null?void 0:m.url,endpoint:y,page:t};if(_.G(y,_.Eb)){var b,P={contentPlaybackContext:_.NE(l,(b=_.G(y.commandMetadata,_.ul))==null?void 0:b.url,q)},Z=_.hs();_.n("web_streaming_watch")&&window.TextDecoderStream?(C=Yov(p.innerTubeTransportService,y,P,function(f){!U.response&&f.content&&(U.response=f.content);!U.playerResponse&&f.player&&(U.playerResponse=f.player);E(y,U)}),a=NIu(y),a.length&&
(U.preconnect=a,E(y,U)),IgV(C,Z,U).catch(function(f){f instanceof ka&&f.errorType===2&&pTi(p,y,P,U,E,e,Z)})):pTi(p,y,P,U,E,e,Z);
return Z.promise}if(_.G(y,_.FC)){var K;if(((K=_.G(y,_.FC))==null?void 0:K.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var F=_.hs();_.y$Q(_.WC().resolve(_.LI),y).then(function(f){lnU(p,l,q,t,E,F,f)});
return F.promise}C=_.PW();var L;a={contentPlaybackContext:_.NE(l,(L=_.G(y.commandMetadata,_.ul))==null?void 0:L.url,q)};(L=p.reelWatchEndpointMap.player)&&(L=L().JSC$12984_getRequest(y,a))&&(C=_.pI(p.innerTubeTransportService,L.innerTubeRequest,L.input,y.clickTrackingParams,L.config));L=_.PW();(m=p.reelWatchEndpointMap.reelItemWatch)&&(m=m().JSC$12984_getRequest(y))&&(L=_.pI(p.innerTubeTransportService,m.innerTubeRequest,m.input,y.clickTrackingParams,m.config));m=_.PW();(b=p.reelWatchEndpointMap.reelWatchSequence)&&
_.G(y,_.FC).sequenceParams&&(a=b().JSC$12984_getRequest(y,a))&&(m=_.pI(p.innerTubeTransportService,a.innerTubeRequest,a.input,y.clickTrackingParams,a.config));a=_.PW(U);b=_.hs();qNU(y,a,C,L,m,E,e,b);return b.promise}var T;if(_.G(y,XSo)&&((T=_.G(y.commandMetadata,_.ul))==null?0:T.url))return C=JFt(_.YP(f0().location.href),_.YP(_.G(y.commandMetadata,_.ul).url)).toString(),I$c(p,C,l,q,E,function(){return!1});
if(_.G(y,_.I5))return E(y,U),_.PW(U);if(_.cN(p.innerTubeTransportService,y)){C=Object.assign({},{tempData:l,disableCache:l.disableCache},C);var O=_.eo(p.innerTubeTransportService,y,C).then(function(f){U.response=f;e(O)||E(y,U);return U});
return O}return _.PW(U)};
_.tav=function(p,y,l,q){if(_.G(y,_.Eb)||_.G(y,_.FC)&&(_.n("mweb_enable_shorts_innertube_player_prefetch")||_.n("kevlar_enable_shorts_prefetch_in_sequence"))||_.G(y,eFB)&&_.n("web_enable_prefetching_videos_on_home")){var t,E={contentPlaybackContext:_.NE(l,(t=_.G(y.commandMetadata,_.ul))==null?void 0:t.url,q),prefetchPlaybackContext:lou(l)},e,C,u;if(((e=_.G(y,_.Eb))==null?void 0:(C=e.watchEndpointSupportedPrefetchConfig)==null?void 0:(u=C.prefetchHintConfig)==null?void 0:u.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(l=
p.watchEndpointMap.watchNext)if(E=l().JSC$12984_getRequest(y,E))return Promise.resolve(_.pI(p.innerTubeTransportService,E.innerTubeRequest,E.input,void 0,E.config).then(function(U){return U}))}else if(l=p.watchEndpointMap.player)if(E=l().JSC$12984_getRequest(y,E))return Promise.resolve(_.pI(p.innerTubeTransportService,E.innerTubeRequest,E.input,void 0,E.config).then(function(U){return U}))}else if(_.cN(p.innerTubeTransportService,y)){var a={tempData:l},m=sqB(p.innerTubeTransportService,y);
return m?new Promise(function(U,b){var P,Z;return _.h(function(K){if(K.nextAddress==1)return K.yield(m,2);if(K.nextAddress!=4)return P=K.yieldResult,P.JSC$12991_getStoreKey(y,a)?K.yield(_.eo(p.innerTubeTransportService,y,a),4):(b(new _.SM("Prefetching request builder with no store key.",y)),K.jumpTo(0));Z=K.yieldResult;U(Z);_.rR(K)})}):Promise.reject(new _.SM("Prefetching unregistered request builder.",y))}return Promise.reject(new _.SM("No request builder available to prefetch endpoint.",y))};
$K6=function(p,y){var l,q,t;if(_.G(y,_.Eb)){var E=p.watchEndpointMap.watchNext;E&&(l=E());(p=p.watchEndpointMap.player)&&(q=p())}else if(_.G(y,_.FC))(E=p.reelWatchEndpointMap.reelItemWatch)&&(l=E()),(E=p.reelWatchEndpointMap.player)&&(q=E()),(p=p.reelWatchEndpointMap.reelWatchSequence)&&(t=p());else{a:{p=Eit(y,p.innerTubeTransportService.endpointMap);if(p!==void 0)if(typeof p.then==="function")_.Bs(new _.SM("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",y));else break a;
p=void 0}p&&(l=p)}var e,C,u;return{content:(e=l)==null?void 0:e.JSC$12991_getStoreKey(y),player:(C=q)==null?void 0:C.JSC$12991_getStoreKey(y),reelSequence:(u=t)==null?void 0:u.JSC$12991_getStoreKey(y)}};
pTi=function(p,y,l,q,t,E,e){var C=_.PW(),u=p.watchEndpointMap.player;_.n("web_streaming_player")&&(u=k9(Ft));u&&(u=u().JSC$12984_getRequest(y,l))&&(C=_.pI(p.innerTubeTransportService,u.innerTubeRequest,u.input,y.clickTrackingParams,u.config));u=_.PW();var a=p.watchEndpointMap.watchNext;a&&(l=a().JSC$12984_getRequest(y,l))&&(u=_.pI(p.innerTubeTransportService,l.innerTubeRequest,l.input,y.clickTrackingParams,l.config));p=_.PW(q);E2B(y,p,C,u,t,E,e)};
IgV=function(p,y,l){return _.h(function(q){if(q.nextAddress==1)return q.yield(p,2);y.resolve(l);_.rR(q)})};
E2B=function(p,y,l,q,t,E,e){var C,u,a,m,U;_.h(function(b){switch(b.nextAddress){case 1:return b.yield(y,2);case 2:C=b.yieldResult;if(E(e.promise))return e.resolve(C),b.return();t(p,C);u=NIu(p);if(!u.length){b.jumpTo(3);break}return b.yield(y,4);case 4:C.preconnect=u,t(p,C);case 3:return _.Ve(b,5),b.yield(l,7);case 7:a=b.yieldResult;_.pK(b,6);break;case 5:return m=_.i6(b),e.reject(m),b.return();case 6:if(a===void 0)return C.reload=!0,t(p,C),e.resolve(C),b.return();if(E(e.promise))return e.resolve(C),
b.return();C.playerResponse=a;t(p,C);_.Ve(b,8);return b.yield(q,10);case 10:U=b.yieldResult;_.pK(b,9);break;case 8:_.i6(b);case 9:if(U===void 0)return C.response={responseContext:{}},e.resolve(C),b.return();if(E(e.promise))return e.resolve(C),b.return();C.response=U;t(p,C);e.resolve(C);_.rR(b)}})};
qNU=function(p,y,l,q,t,E,e,C){var u,a,m,U,b,P;_.h(function(Z){switch(Z.nextAddress){case 1:return Z.yield(y,2);case 2:u=Z.yieldResult;if(e(C.promise))return C.resolve(u),Z.return();E(p,u);a=NIu(p);if(!a.length){Z.jumpTo(3);break}return Z.yield(y,4);case 4:u.preconnect=a,E(p,u);case 3:return _.Ve(Z,5),Z.yield(l,7);case 7:m=Z.yieldResult;_.pK(Z,6);break;case 5:return U=_.i6(Z),C.reject(U),Z.return();case 6:if(m===void 0)return u.reload=!0,E(p,u),C.resolve(u),Z.return();if(e(C.promise))return C.resolve(u),
Z.return();u.playerResponse=m;E(p,u);_.Ve(Z,8);return Z.yield(q,10);case 10:b=Z.yieldResult;_.pK(Z,9);break;case 8:_.i6(Z);case 9:if(b===void 0)return u.response={responseContext:{}},C.resolve(u),Z.return();if(e(C.promise))return C.resolve(u),Z.return();u.response=b;E(p,u);_.Ve(Z,11);return Z.yield(t,13);case 13:P=Z.yieldResult;_.pK(Z,12);break;case 11:_.i6(Z);case 12:if(e(C.promise))return C.resolve(u),Z.return();u.reelWatchSequenceResponse=P;E(p,u);C.resolve(u);_.rR(Z)}})};
lnU=function(p,y,l,q,t,E,e){var C,u,a,m,U,b;_.h(function(P){if((C=e)==null||!C.replacementEndpoint)return E.reject(),P.return();u=e.replacementEndpoint;(a=_.G(u,_.FC))?(e.sequenceContinuation&&(a.sequenceParams=e.sequenceContinuation),m=_.WC().resolve(_.LI),U=a.sequenceParams,J$B(m,u)&&delete a.sequenceParams,b=l8(p,u,y,l,q,t,function(){return!1}),b.then(function(Z){return _.h(function(K){if(K.nextAddress==1)return c$U(m,{reelWatchEndpoint:{sequenceParams:U}},Z),K.yield(0,2);
E.resolve(Z);_.rR(K)})})):E.reject();
_.rR(P)})};_.elQ=function(p){if(p.validatedFragments_.length==0)return null;if(!p.mergedPrefetchedData_){for(var y=[],l=_.c(p.validatedFragments_),q=l.next();!q.done;q=l.next()){q=_.c(p.fragmentConfiguration_[q.value].graftedKeys);for(var t=q.next();!t.done;t=q.next())(t=p.prefetchedData_[t.value].trackingParams)&&y.push(t)}p.mergedPrefetchedData_={};Object.assign(p.mergedPrefetchedData_,p.prefetchedData_,{clientSideGrafts:y})}return p.mergedPrefetchedData_};var hlZ;_.D1=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
hlZ=function(p,y,l){if(_.OP6(y))return p.prefetchCache_.get(_.om5(y,l))};_.HF=new _.WE("NAVIGATION_TOKEN");var CFU=function(p){var y=this;var l=l===void 0?u78():l;var q=q===void 0?_.WC().resolve(_.HF):q;this.onePickCommand=p;this.JSC$13094_playlistNetworkManager=l;this.navigationManager=q;this.videoPickerBuilder=_.hcl("yt-addtoplaylist");_.bhV(RK$(WHP(u$r(this.videoPickerBuilder.setTitle(p.modalTitle).setSize(1E3).addView(mMZ()).addView(a3$())).addView("youtube"),p.selectButtonLabel)),function(t){y.handleAction(t)})};
CFU.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
CFU.prototype.handleAction=function(p){var y=this;if(p&&this.onePickCommand.listId&&p.action==="picked"&&p.docs){var l=[];p.docs.forEach(function(q){l.push({addedVideoId:q.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13094_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,l).then(function(){_.n("playlist_add_video_hard_reload_killswitch")?y.navigationManager.reload():ugr(y.navigationManager)})}};var RlZ=function(){if(this.constructor===RlZ)throw new TypeError("Yf");};
_.J=RlZ.prototype;_.J.dispose=function(){};
_.J.disconnect=function(){};
_.J.reconnect=function(){};
_.J.observe=function(p,y,l){return{element:p,option:l}};
_.J.unobserveByKey=function(){};var RcR=function(p,y){y=y===void 0?0:y;RlZ.call(this);this.viewroot=p;this.defaultPrescanHeight=y;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),p?{root:p,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.A(RcR,RlZ);_.J=RcR.prototype;_.J.dispose=function(){this.disconnect();this.handlers.clear()};
_.J.disconnect=function(p){this.isConnected=!1;this.pauseObservingUntilReconnect=p===void 0?!1:p;this.observer.disconnect();p=_.c(this.prescanObservers.values());for(var y=p.next();!y.done;y=p.next())y.value.disconnect()};
_.J.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var p=_.c(this.handlers),y=p.next();!y.done;y=p.next()){var l=_.c(y.value);y=l.next().value;var q=l.next().value;l=!1;q=_.c(q.keys());for(var t=q.next();!t.done;t=q.next())if((t=t.value)&&t.state==="prescan"){l=!0;break}l&&Wxi(this,y).observe(y);this.observer.observe(y)}}};
_.J.handleObserveEvent=function(p){p=_.c(p);for(var y=p.next();!y.done;y=p.next()){y=y.value;var l=this.handlers.get(y.target);if(l){var q=y.isIntersecting;l=_.c(l);for(var t=l.next();!t.done;t=l.next()){var E=_.c(t.value);t=E.next().value;E=E.next().value;t&&(t.state==="visible"&&q||t.state==="hidden"&&!q)&&(E(y.target,t.state),t.calledOnce&&this.unobserveByKey({element:y.target,option:t}))}}}};
_.J.handlePrescanEvent=function(p){p=_.c(p);for(var y=p.next();!y.done;y=p.next()){y=y.value;var l=this.handlers.get(y.target);if(l&&y.isIntersecting){l=_.c(l);for(var q=l.next();!q.done;q=l.next()){var t=_.c(q.value);q=t.next().value;t=t.next().value;q&&q.state==="prescan"&&(t(y.target,q.state),q.calledOnce&&this.unobserveByKey({element:y.target,option:q}))}}}};
_.J.observe=function(p,y,l){var q=(q=this.handlers.get(p))&&q.has(l)?{element:p,option:l}:void 0;if(q)return q;q={element:p,option:l};this.handlers.has(p)||this.handlers.set(p,new Map);var t=this.handlers.get(p);t&&!t.has(l)&&t.set(l,y);this.pauseObservingUntilReconnect||(l.state==="prescan"&&Wxi(this,p).observe(p),this.observer.observe(p));return q};
_.J.unobserveByKey=function(p){var y=this.handlers.get(p.element);if(y&&y.has(p.option)){y.delete(p.option);if(p&&p.option.state==="prescan")for(var l=_.c(this.prescanObservers.values()),q=l.next();!q.done;q=l.next())q.value.unobserve(p.element);y.size===0&&(this.handlers.delete(p.element),this.observer.unobserve(p.element))}};
var Wxi=function(p,y){var l=p.defaultPrescanHeight;y.hasAttribute("prescan-height")&&(y=Number(y.getAttribute("prescan-height")),isNaN(y)||(l=y));if(p.prescanObservers.has(l))return p.prescanObservers.get(l);y="-0.1px -0.1px "+l+"px -0.1px";y=new IntersectionObserver(p.handlePrescanEvent.bind(p),p.viewroot?{root:p.viewroot,rootMargin:y}:{rootMargin:y});p.prescanObservers.set(l,y);return y};var anO=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],m3$=function(){var p,y=this;this.JSC$13111_actionRouter=p=p===void 0?_.pt.getInstance():p;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return y.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return y.visibilityObservedElementHandlerKeys}}},U3U,jqU,GJO;
m3$.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.n("kevlar_use_vimio_behavior")&&_.OY("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=WSg())};
m3$.prototype.dispose=function(){this.visibilityMonitor&&_.SJ(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
m3$.prototype.handleVisibilityRefreshed=function(){for(var p=_.c(this.targetMap.entries()),y=p.next();!y.done;y=p.next()){var l=_.c(y.value);y=l.next().value;l=l.next().value;_.$3N(this,y,l)}};
_.n2$=function(p,y,l){jqU(p,l);var q=_.bEV(p,y);q.element=l;p.targetedElements.set(l,y);_.$3N(p,y,q)};
jqU=function(p,y){var l=p.targetedElements.get(y);if(l){var q=p.targetMap.get(l);q&&(delete q.element,p.targetMap.set(l,q));p.targetedElements.delete(y);p.visibilityObserver&&p.visibilityObservedElementHandlerKeys&&(l=p.visibilityObservedElementHandlerKeys.get(y))&&(p.visibilityObserver.unobserveByKey(l),p.visibilityObservedElementHandlerKeys.delete(y))}};
_.$3N=function(p,y,l){var q=l.action,t=l.element;t&&q&&(anO.includes(y)||_.OY("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||p.visibilityMonitor&&p.visibilityMonitor.isNodeVisible(t)?GJO(p,y,l):p.visibilityObserver&&(p.visibilityObservedElementHandlerKeys||(p.visibilityObservedElementHandlerKeys=new WeakMap),q=p.visibilityObserver.observe(t,function(){GJO(p,y,l);p.visibilityObservedElementHandlerKeys.delete(t)},{calledOnce:!0,
state:"visible"}),p.visibilityObservedElementHandlerKeys.set(t,q)))};
GJO=function(p,y,l){var q=l.action;(l=l.element)&&q&&(_.oL(p.JSC$13111_actionRouter,[q],l),p.targetMap.delete(y),p.targetedElements.delete(l),p.triggeredTargets.add(y))};
_.bEV=function(p,y){var l=p.targetMap.get(y);l||(l={},p.targetMap.set(y,l));return l};
_.T7=function(){U3U||(U3U=new m3$);return U3U};var PFi=document.createElement("div");PFi.style.touchAction="pan-down";var aoj=PFi.style.touchAction==="pan-down";var A$O,ZEV;A$O=function(){this.hammerFn=upx();this.JSC$13119_screenManager=_.Ll();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.fY(83615);_.gz(this.JSC$13119_screenManager,this.ve);mIl()};
_.xa=function(){ZEV||(ZEV=new A$O);return ZEV};
A$O.prototype.registerTouchEvents=function(p,y,l){var q=_.oX.apply(3,arguments),t=this.hammerFn(p,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});l&&t.set({touchAction:l});this.nodeManagerMapping.set(p,t);var E=
UIt(y);q=_.c(q);for(var e=q.next();!e.done;e=q.next()){e=e.value;if(e.includes("swipe")||e.includes("pinch")||e.includes("pan"))e.includes("swipe")?t.get("swipe").set({enable:!0,direction:E,velocity:.2}):e.includes("pinch")?t.get("pinch").set({enable:!0}):e.includes("pan")&&(t.get("pan").set({enable:!0,direction:E}),t.get("swipe").set({enable:!0,direction:E,velocity:.2}),t.get("swipe").recognizeWith("pan"));Ma$(this,p,t,e)}};
var Ma$=function(p,y,l,q){l.on(q,function(t){if(q.includes("pinch"))p.lastPinchTime=Date.now();else if(q.includes("swipe")&&Date.now()-p.lastPinchTime<400)return;t.pointerType!=="mouse"&&(t=q==="doubletap"?{coordinates:t.center}:q.includes("pan")?t:q.includes("swipe")?{target:t.target}:{},y.dispatchEvent(new CustomEvent(q,{bubbles:!0,composed:!0,detail:t})))})};
A$O.prototype.unregisterTouchEvents=function(p){var y=_.oX.apply(1,arguments),l=this.nodeManagerMapping.get(p);if(l){y=_.c(y);for(var q=y.next();!q.done;q=y.next())l.off(q.value);this.nodeManagerMapping.delete(p);p.style.touchAction="unset"}};var VaN=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var $I5=null;var g2Q=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},LSt=function(){g2Q.instance||(g2Q.instance=new g2Q);
return g2Q.instance},ku_=function(p){var y=p.networkEvents;
p.networkEvents=[];return _.n("enable_network_monitoring")?y:[]};var Qqr;Qqr={};_.KxB=CK("yt-serviceworker-metadata",{objectStores:(Qqr.auth={addedAtVersion:1},Qqr["resource-manifest-assets"]={addedAtVersion:2},Qqr),shared:!0,upgrade:function(p,y){y(1)&&O1(p,"resource-manifest-assets");y(2)&&O1(p,"auth")},
version:2});var AFt=self.location.origin+"/";Z9L([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//,/\/music_integrations\/_\/js\//,/\/music_integrations\/_\/ss\//]);Z9L([/purge_shell=1/]);var wTN=void 0;wTN=wTN===void 0?[]:wTN;for(var iEv=[],r$N=_.c(yKv),SNN=r$N.next();!SNN.done;SNN=r$N.next())iEv.push({key:SNN.value});for(var FxV=_.c(wTN),LxO=FxV.next();!LxO.done;LxO=FxV.next())iEv.push(LxO.value);var kJO,dC=_.l_==null?void 0:(kJO=_.l_.performance)==null?void 0:kJO.memory,gGm=!1,N4o={},w8g={},OK={},oU=navigator;var BF=function(p){this.JSC$13163_expiringStorage=new Lh(p)};
BF.prototype.set=function(p,y,l){l=l!==void 0?Date.now()+l:void 0;this.JSC$13163_expiringStorage.set(p,y,l)};
BF.prototype.get=function(p){return this.JSC$13163_expiringStorage.get(p)};
BF.prototype.remove=function(p){this.JSC$13163_expiringStorage.remove(p)};var X86=_.c0(["https://www.youtube.com/",""]),dI_=_.c0(["https://studio.youtube.com/",""]),Iol="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",oGc=null,sbm;var NvV=_.c0(["https://www.youtube.com/iframe_api"]),fI=function(){this.playerResolver_=_.hs();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.rH;this.playbackDurationSeconds_=0},D3V=function(p){var y=function(){return window.YT&&typeof window.YT.ready==="function"};
if(y())return _.PW(window.YT);var l=_.hs(),q=_.gg("SCRIPT");q.onload=q.onreadystatechange=function(){q.readyState&&q.readyState!="loaded"&&q.readyState!="complete"||(q.onload=_.rH,q.onreadystatechange=_.rH,q.onerror=_.rH,y()?l.resolve(window.YT):l.reject(new _.SM("Failed to load the iframe player library","script.onload",q.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
q.onerror=function(t){q.onload=_.rH;q.onreadystatechange=_.rH;q.onerror=_.rH;l.reject(new _.SM("Failed to load the iframe player library","script.onerror",t&&t.target&&t.target.src))};
_.e_(q,_.bz(NvV));p.insertBefore(q,p.firstChild);return l.promise},HEQ=function(p,y,l){var q,t;
_.h(function(E){switch(E.nextAddress){case 1:return p.playbackEndedCallback_=l,_.Ve(E,2),E.yield(D3V(y.parentElement||null),4);case 4:q=E.yieldResult;_.pK(E,3);break;case 2:return t=_.i6(E),t instanceof _.SM&&t.args&&t.args[0]=="script.onerror"?_.vs(t):_.Bs(t),E.return();case 3:q.ready(function(){return new q.Player(y,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:p.onPlayerReady_.bind(p),onStateChange:p.onPlayerStateChange_.bind(p),
onCueRangeExit:p.onCueRangeExit_.bind(p)}})}),_.rR(E)}})};
_.J=fI.prototype;_.J.getPlayerPromise=function(){return this.playerPromise_};
_.J.onPlayerReady_=function(p){this.playerResolver_.resolve(p.target)};
_.J.onPlayerStateChange_=function(p){if(p.data==YT.PlayerState.PLAYING){p=p.target;var y=p.getCurrentTime();p.addCueRange("playback",y,y+this.playbackDurationSeconds_)}};
_.J.onCueRangeExit_=function(p){p.data=="playback"&&(p.target.stopVideo(),this.playbackEndedCallback_())};
_.J.stopVideo=function(){this.playerPromise_.then(function(p){p.stopVideo()})};
var TvN=function(p){p.playerVars_&&p.playerPromise_.then(function(y){typeof y.cueVideoByPlayerVars!="function"?_.vs(new _.SM("vmh: player API not ready","cueVideoByPlayerVars",typeof y.cueVideoByPlayerVars)):y.cueVideoByPlayerVars(p.playerVars_)})};
fI.prototype.playVideo=function(){var p=this;this.playerVars_&&this.playerPromise_.then(function(y){typeof y.loadVideoByPlayerVars!="function"?(y=new _.SM("vmh: player API not ready","loadVideoByPlayerVars",typeof y.loadVideoByPlayerVars),_.Bs(y)):y.loadVideoByPlayerVars(p.playerVars_)})};
var x3M=function(p,y,l,q,t){y&&(l===void 0&&(l=0),q===void 0&&(q=0),p.playbackDurationSeconds_=q/1E3,p.playerVars_={adformat:"17_8",videoId:y,suggestedQuality:"hd720",startSeconds:l/1E3,player_params:t})};
fI.prototype.mute=function(){this.playerPromise_.then(function(p){p.mute()})};
fI.prototype.unMute=function(){this.playerPromise_.then(function(p){p.unMute()})};var BvU=function(p,y){var l=oG();p||(p="unknown");y||(y="unknown");p="MAIN_APP_WEB_PAGE_TYPE_"+p.toUpperCase();p in JcM||(p="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");y="MAIN_APP_WEB_REQUEST_TYPE_"+y.toUpperCase();y in ccU||(y="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.gU(l,{mainAppWeb:{pageType:p,requestType:y,isShellLoad:_.o4("IS_SHELL_LOAD",!1)}})},fnQ={start:function(){_.gU(Gvj(),{mainAppWeb:_.qH()})},
success:function(){_.QG(Gvj(),"SUCCESS")},
failure:function(){_.QG(Gvj(),"FAILURE")},
cancelled:function(){_.QG(Gvj(),"CANCELLED")}};var v2v,XTx,u9j;v2v=_.c0(["/sw.js"]);XTx=_.c0(["/sw.js?0"]);_.d3Q=_.bz(v2v);u9j=_.bz(XTx);var OEr=function(){var p=Error.apply(this,arguments);this.message=p.message;"stack"in p&&(this.stack=p.stack)};
_.A(OEr,Error);_.Es.prototype.load=function(p){this.megabloxUrl_=_.OY("YPC_MB_URL");_.zc(this.megabloxUrl_,(0,_.FZ)(function(){p&&p()},this))};
_.oMo=function(p,y,l,q,t,E,e,C,u,a,m){_.WAl(u);p.load((0,_.FZ)(function(){try{var U=E?E:_.OY("HL"),b=_.OY("SESSION_INDEX");_.lZR("client",function(){thr("59",{helpCenterPath:"/youtube",locale:U,window:window}).JSC$9912_loadChatSupport({authuser:String(b)})})}catch(P){throw ss(10,m,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),t&&t(P),_.Bs(P),P;
}o2Q(this,y,l,q,t,E,e,C,u,a,m)},p))};
_.Es.prototype.openFixFlowDialog=function(p,y,l,q){this.load((0,_.FZ)(function(){try{zlr(this,_.I4("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(p).withIntegratorCallback(y).load(l,q)}catch(t){throw _.Bs(t),t;}},this))};
var zlr=function(p,y,l,q){var t=y.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.n("enable_window_constrained_buy_flow_dialog")&&(t=t.usingPopupStyle(_.I4("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));q&&(t=t.usingCloseCallback(q));y.bootstrap.fromPaymentsUrl(p.megabloxUrl_);p=y.bootstrap.asMashupMode(t);l=l?l:_.OY("HL");p.usingGaiaIndex(_.OY("SESSION_INDEX")).usingLocale(l).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.n("enable_google_payments_buyflow_material2_style_web")?
p.usingStyle(":m2;pc=#444;ac=#065fd4"):p.usingStyle(":md;pc=#444;ac=#065fd4");return p},o2Q=function(p,y,l,q,t,E,e,C,u,a,m){try{var U=_.I4("payments.business.integration");
if(!U)throw new OEr("payments.business.integration is undefined");var b=U.standaloneContextAuthId.forUserId(),P=zlr(p,U,E,function(){m05(!1);C&&C()});
e&&P.usingServerAnalyticsEventHandler(e);var Z=P.inStandaloneContext(b).buyFlow(function(K){if(K&&(!K.integratorData||K.integratorData===""||K.error))if(K.error!=null)if(String(K.error)==="-1")_.aq6(u);else{var F=String(K.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";ss(10,m,F,K.debugCode);_.tx(F,u,K.debugCode);F=new _.SM("PAYMENT_ERROR_MESSAGE::"+K.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+K.internalErrorDetails);
_.Bs(F)}else ss(10,m,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.tx("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",u,"EMPTY_INTEGRATOR_DATA"),_.Bs(Error("cg"));l&&(m05(!1),l(K))}).withEncryptedParameters(y);
a&&Z.withClientParameters(JnL(_.oNa(a)));Z.load(function(){ss(24,m);_.X_("ttc",void 0,"commerce_transaction");fZl("commerce_transaction");q&&(q(),m05(!0))},function(K){if(K==null?0:K.debugCode)var F=K==null?void 0:K.debugCode;
else if(!K||(K==null?0:K.debugCode))F="EMPTY_LOAD_FAILURE_ERROR",_.Bs(Error(F));else{F="EMPTY_LOAD_FAILURE_DEBUG_CODE";var L=new _.SM("LOAD_FAILURE:"+K.message," DEBUG_CODE:"+F);_.Bs(L)}ss(10,m,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",F);_.tx("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",u,F);_.Bs(K);t&&t(K)})}catch(K){throw K instanceof OEr&&(ss(10,m,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),t&&t(K)),_.Bs(K),K;
}};var YNU;YNU=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.Xgo=function(p,y){y=y===void 0?!1:y;p=YNU.test(p)?_.FX(p):null;!y&&window.payments||!p?(p=_.hs(),y=p.promise,p.resolve()):y=_.f3$(p,{attributes:{"data-payments-main":"",id:"payment-lib"}});return y};var Inv;Inv=_.c0(["//www.googletagmanager.com/gtm.js?id=",""]);_.vF=function(p,y){_.bj(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:y}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.OY("GL")}),y=_.gg("SCRIPT"),y.async=!0,_.e_(y,_.bz(Inv,p)),y.id="gtm",p=document.getElementsByTagName("script"),p.length==0?document.head.appendChild(y):(p=p[0],p.parentNode.insertBefore(y,p)))};
_.Xt=function(p){if(p=JSON.parse(p))window.dataLayer=window.dataLayer||[],window.dataLayer.push(p)};var ppP,yti;ppP=_.c0(["https://clients2.google.com/gr/gr_sync.js"]);_.fMt=function(){};
_.fMt.prototype.init=function(){if(yti()){var p=_.hs();p.resolve();return p.promise}return _.f3$(_.bz(ppP)).then(function(){if(!yti())throw Error("dg");},function(){throw Error("eg");
})};
_.vML=function(){if(!yti())return"";var p=window.google.gr;p.init({async:{schedule:"sync"},merchantId:"youtube"});p.start();p=p.finish();return p==null?"":p};
yti=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.w=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.A(_.w,PolymerFakeBaseClassWithoutHtml);_.FA=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.A(_.FA,PolymerFakeBaseClassWithoutHtml);var U0t=window.ShadyDOM;var YIt,o$j,pxa,yIm,qQu,szL,dB,$8;YIt=_.n("enable_shadydom_free_scoped_query_methods");o$j=_.n("enable_shadydom_free_scoped_node_methods");pxa=_.n("enable_shadydom_free_scoped_readonly_properties_batch_one");yIm=_.n("enable_shadydom_free_parent_node");qQu=_.n("enable_shadydom_free_children");szL=_.n("enable_shadydom_free_last_child");dB=window.ShadyDOM;_.Pm=dB&&dB.noPatch&&dB.wrap?dB.wrap:dB?function(p){return dB.patch(p)}:function(p){return p};
$8=function(p){if(p instanceof ShadowRoot)this.host=(0,_.Pm)(p.host),this.root=p;else if(p.$$){this.host=(0,_.Pm)(p);var y;this.root=(y=p.root)!=null?y:this.host}else if(p.polymerController){this.host=(0,_.Pm)(p);var l;this.root=(l=this.host.shadowRoot)!=null?l:this.host}else this.root=this.host=(0,_.Pm)(p)};
zR6();Iqu();tI8();Ek8();lXm();var lDN={querySelector:function(p,y){y=jb6(y,hx(p));p=_.Cv(p);return ut(p).prototype.querySelector.call(p,y)},
querySelectorAll:function(p,y){y=jb6(y,hx(p));p=_.Cv(p);return ut(p).prototype.querySelectorAll.call(p,y)}},qiN={appendChild:function(p,y){var l=hx(p),q=_.eR(y);
return _.d0l(_.Cv(p),l?_.mr(y,l,q):y)},
cloneNode:function(p,y){var l=_.eR(p);p=_.Cv(p);y=ut(p).prototype.cloneNode.call(p,y);return l?Us(y,l):y},
contains:function(p,y){var l=hx(p),q=_.eR(y);return l!==q?!1:Odt(p,y)},
insertBefore:function(p,y,l){var q=hx(p),t=_.eR(y);p=_.Cv(p);y=q?_.mr(y,q,t):y;return ut(p).prototype.insertBefore.call(p,y,l)},
removeChild:function(p,y){var l=hx(p);p=_.Cv(p);y=l?Us(y,l):y;return ut(p).prototype.removeChild.call(p,y)},
replaceChild:function(p,y,l){var q=hx(p),t=_.eR(y);y=q?_.mr(y,q,t):t?Us(y,t):y;l=q?Us(l,q):l;p=_.Cv(p);return ut(p).prototype.replaceChild.call(p,y,l)},
getRootNode:function(p,y){y=y===void 0?{composed:!0}:y;var l;if(((l=y)!=null?l:{}).composed)p=KAa(p);else{y=p;for(p=n$5(p);p;)y=p,p=PxL(p);p=y}return p}},cIu=pxa?{firstChild:T7l,
nextSibling:N7L,previousSibling:Hd_,firstElementChild:x0g,lastElementChild:fqc,nextElementSibling:kOa,previousElementSibling:D0m,childNodes:v$o}:{};yIm&&(cIu.parentNode=LAt);qQu&&(cIu.children=X5o);szL&&(cIu.lastChild=B7l);YIt&&JIl(lDN);o$j&&JIl(qiN);ejc();var hj8=function(p){this.node=p instanceof ShadowRoot?p.host:p};
CYR();u2t();var aXg=new WeakMap;var Uwl=Symbol("wd");var G3g=new Set(["tap","track","down","up"]),PYj=_.n("pbcm_fi_query_decorators");var OX=function(){return _.FA.apply(this,arguments)||this};
_.A(OX,_.FA);_.J=OX.prototype;_.J.getState=function(){return this.store.getState()};
_.J.dispatch=function(p){this.store.dispatch(p)};
_.J.beforeRegister=function(){if(this&&typeof this==="object"){var p;var y=!!this.useSignals||!((p=this.polymerController)==null||!p.useSignals)}else y=!1;if(!y&&this.properties)for(y=_.c(Object.keys(this.properties)),p=y.next();!p.done;p=y.next()){var l=p.value;p=this.properties[l];if(p.selector){if(p.computed)throw Error("kg");l=["reduxPropertiesRecomputeTrigger",'"'+l+'"'].concat(_.xq(p.selectorArgs||[])).join(",");p.computed="recomputeReduxSelector("+l+")"}}};
_.J.attached=function(){var p=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){p.reduxPropertiesRecomputeTrigger++}));
_.n("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.J.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.J.recomputeReduxSelector=function(p,y){var l=_.oX.apply(2,arguments),q=this.properties[y].selector;if(!q)throw Error("ig`"+y);return q.apply(null,[this.store.getState()].concat(_.xq(l)))};
_.J.select=function(p){var y=_.oX.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return p.apply(null,[this.store.getState()].concat(_.xq(y)))};
_.Jh.Object.defineProperties(OX.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
OX.prototype.recomputeReduxSelector=OX.prototype.recomputeReduxSelector;_.H([_.Q(),_.x("design:type",Number)],OX.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.H([_.Lv()],OX);var ou=[],VIu={},oM=function(){return eY.apply(this,arguments)||this};
_.A(oM,eY);oM.prototype._addPropertyEffect=function(p,y,l){if(y==="__observeEffects"&&l){var q,t=(q=l.info.method)!=null?q:l.info.methodName;if(t){var E=this[t];this[t]=function(){ou.push(t);try{E==null||E.apply(this,arguments)}finally{ou.pop()}}}}_.N6._addPropertyEffect.apply(this,[p,
y,l])};
oM.prototype._setPendingProperty=function(p,y,l){if(ou.length){var q=ou[ou.length-1],t;(t=VIu[this.is])!=null&&t.has(q)||(gk5(this.is,q),_.TX("polymerPropertyChangedInObserver",{componentName:this.is,observerName:q}))}return _.N6._setPendingProperty.apply(this,[p,y,l])};
_.H([sCo()],oM);var Qzt=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),wxt,DL={};_.n("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=DL);var x8=function(){return _.FA.apply(this,arguments)||this};
_.A(x8,_.FA);x8.prototype._setUnmanagedPropertyToNode=function(p,y,l){p.loggingStatus&&(p.loggingStatus.isDeclarativeExternal=!0);if(l!==p[y]||typeof l==="object")p[y]=l;p.is&&p.polymerController&&p.polymerController!==p&&Hm(p.is,y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");p.loggingStatus&&(p.loggingStatus.isDeclarativeExternal=!1)};
_.H([_.Lv()],x8);KTa()&&(OM.prototype._setUnmanagedPropertyToNode=(new x8)._setUnmanagedPropertyToNode);_.vkc={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(p){},set polymerController(p){}}]};var Os=function(){var p=eY.apply(this,arguments)||this;p.json=function(){};
return p};
_.A(Os,eY);Os.prototype.equals=function(p,y){return p===y};
Os.prototype.isEmpty=function(p){var y;(y=!p)||(y=_.zl(p)&&p.length===0);return y};
_.H([sCo()],Os);var sOr=function(p){p=yHm(p);I$.call(this,p)};
_.A(sOr,I$);sOr.prototype.addProvider=function(p){p=p.key?p:yHm([p])[0];var y=this.keyIdToIndex.get(p.key.id);if(y){if(LTl(p,this.providers[y]))throw Error("lg`"+p.key.displayName);}else I$.prototype.addProvider.call(this,p)};
var t9i=new sOr([]);var E4M=!1;var xw6={};E4M||(T1t(),E4M=!0);
xw6.InjectBehavior={initializeInjection:function(){var p=this.provide;try{if((p=p!=null?p:[])&&p.length>0)for(var y=yHm(p),l=_.c(y),q=l.next();!q.done;q=l.next())t9i.addProvider(q.value);var t=new Set;k3m(this.behaviors||[],t);y={};for(var E=_.c(t),e=E.next();!e.done;e=E.next()){var C=e.value;C.inject&&Object.assign(y,C.inject)}this.inject&&Object.assign(y,this.inject);for(var u=_.c(Object.keys(y)),a=u.next();!a.done;a=u.next()){var m=a.value,U=y[m];try{this[m]=t9i.resolve(U)}catch(b){throw b;}}}catch(b){throw Error(b.message);
}}};var fX6;var Xx8=/\bclass\b/.test(function(){}.toString()),ok6=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var JtQ=function(p){this.wasDefined=!0;Array.isArray(p)||p instanceof Array?(this.JSC$13292_getImpl=p[0],this.JSC$13292_setImpl=p[1]):this.JSC$13292_getImpl=p};
_.J=JtQ.prototype;_.J.getWithPath=function(p){return IXt(this.JSC$13292_getImpl(),p)};
_.J.setWithPath=function(p,y){var l=this;if(p.length)throw Error("mg");if(!this.JSC$13292_setImpl)throw Error("ng");Vc(function(){l.JSC$13292_setImpl(y)})};
_.J.notifyPath=function(){throw Error("og");};
_.J.notifySplices=function(){throw Error("pg");};
_.J.getChangeRecordSignal=function(p,y){var l=this;if(p.length)throw Error("qg");return function(){var q=l.getWithPath(p);return{path:y!=null?y:"",base:q,value:q}}};
_.J.getSplicesSignal=function(){throw Error("rg");};
_.J.getPathMutationSignal=function(){throw Error("sg");};
_.J.pop=function(){throw Error("tg");};
_.J.push=function(){throw Error("ug");};
_.J.splice=function(){throw Error("vg");};
_.J.unshift=function(){throw Error("wg");};var z7=function(p){var y=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(p)||p instanceof Array?(this.JSC$13297_getImpl=p[0],this.JSC$13297_setImpl=p[1]):this.JSC$13297_getImpl=p;this.wasDefined=!1;bb(function(){y.wasDefined=y.JSC$13297_getImpl()!==void 0})};
z7.prototype.getWithPath=function(p){return IXt(this.JSC$13297_getImpl(),p)};
z7.prototype.setWithPath=function(p,y){var l=this;if(p[p.length-1]!=="*"&&p[p.length-1]!=="splices"){if(p.length===0){if(!this.JSC$13297_setImpl)throw Error("xg");this.wasDefined||(this.wasDefined=y!==void 0);Vc(function(){l.JSC$13297_setImpl(y)})}else{for(var q=bb(function(){return l.getWithPath([])}),t=0;t<p.length-1;t++){if(!q)return;
q=q[p[t]]}t=p[p.length-1];q&&(q[t]=y);this.wasDefined||(this.wasDefined=p.length>1||y!==void 0)}ctU(this,p,{pathComponents:p,value:y})}};
z7.prototype.notifyPath=function(p,y){p.length===0?y&&this.setWithPath(p,y.value):ctU(this,p,{pathComponents:p,value:y==null?void 0:y.value,fallbackWhenUndefined:y==null?void 0:y.value})};
var ctU=function(p,y,l,q){if(p.setMutationSignal){var t=++p.mutationIndex,E=[p.observedPath],e=p.observedPath,C;y.length===0&&(C=e);for(var u=0;u<y.length;u++){var a=e.subPaths[y[u]];if(!a)break;E.push(a);e=a;u===y.length-1&&(C=a)}for(y=!1;E.length;)e=E.shift(),e.data={index:t,mutation:l,spliceMutationIndex:q},y||(y=e===C),y&&E.push.apply(E,_.xq(Object.values(e.subPaths)));Vc(function(){p.setMutationSignal(t)})}};
z7.prototype.notifySplices=function(p,y){var l=this,q=bb(function(){return l.getWithPath(p)}),t=[].concat(_.xq(p),["splices"]);
ctU(this,t,{pathComponents:t,value:{indexSplices:y}});if(q==null?0:q.length)y=this.mutationIndex,t=[].concat(_.xq(p),["length"]),ctU(this,t,{pathComponents:t,value:q.length},y)};
var eev=function(p,y,l,q,t,E){p.notifySplices(l,[{index:q,addedCount:t,removed:E,object:y,type:"splice"}])},hev=function(p,y){p=p.observedPath;
for(var l=0;l<y.length;l++){var q=y[l],t=p.subPaths[q];t||(t={pathComponents:y.slice(0,l+1),subPaths:{}},p.subPaths[q]=t);p=t}},uOx=function(p,y,l){hev(p,y);
if(!p.getMutationSignal){var q=_.c(_.nr(p.mutationIndex,void 0,"HavCgf"));p.getMutationSignal=q.next().value;p.setMutationSignal=q.next().value}var t=p.getMutationSignal;return _.MA(function(){t();return l(CP$(p,y))},void 0,"BYaPo")};
z7.prototype.getChangeRecordSignal=function(p,y){var l=this,q=this.mutationIndex,t;return uOx(this,p,function(E){if(E&&E.index>q){var e=E.mutation;q=E.index;t=void 0}E=bb(function(){return l.getWithPath(p)});
if(e){var C=e.pathComponents[e.pathComponents.length-1],u=[].concat(_.xq(e.pathComponents));if(C==="splices"||C==="length")return{base:E,path:(y?[y].concat(_.xq(u)):u).join("."),value:e.value};var a=p.length>u.length?p:u,m;return{base:E!=null?E:e.fallbackWhenUndefined,path:(y?[y].concat(_.xq(a)):a).join("."),value:(m=bb(function(){return l.getWithPath(a)}))!=null?m:e.fallbackWhenUndefined}}t||(t={base:E,
path:(y?[y].concat(_.xq(p)):p).join("."),value:E});return t})};
z7.prototype.getSplicesSignal=function(p){var y=this.mutationIndex,l;return uOx(this,p,function(q){if(q&&q.index>y&&q.spliceMutationIndex!==y){var t=q.mutation;y=q.index;l=void 0}return t&&t.pathComponents[t.pathComponents.length-1]==="splices"?l=q=t.value:l})};
z7.prototype.getPathMutationSignal=function(p){var y=this;hev(this,p);if(!this.getMutationSignal){var l=_.c(_.nr(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=l.next().value;this.setMutationSignal=l.next().value}var q=this.getMutationSignal,t=this.mutationIndex,E;return _.MA(function(){q();var e=CP$(y,p);if(e&&e.index>t&&e.mutation&&poa(e.mutation.pathComponents,p)){var C=e.mutation;t=e.index}if(!E||t!==E.index){var u,a;e=(a=bb(function(){return y.getWithPath(p)}))!=null?a:(u=C)==null?
void 0:u.fallbackWhenUndefined;
E={index:t,value:e}}return E},void 0,"Aumsyf")};
var CP$=function(p,y){p=p.observedPath;y=_.c(y);for(var l=y.next();!l.done;l=y.next())p=p.subPaths[l.value];return p.data};
z7.prototype.pop=function(p){var y=this,l=bb(function(){return y.getWithPath(p)});
if(!(l instanceof Array))throw Error("yg");var q=l.length>0,t=l.pop();q&&eev(this,l,p,l.length,0,[t]);return t};
z7.prototype.push=function(p){var y=_.oX.apply(1,arguments),l=this,q=bb(function(){return l.getWithPath(p)});
if(!(q instanceof Array))throw Error("zg");var t=q.length,E=q.push.apply(q,_.xq(y));y.length&&eev(this,q,p,t,y.length,[]);return E};
z7.prototype.splice=function(p,y,l){var q=_.oX.apply(3,arguments),t=this,E=bb(function(){return t.getWithPath(p)});
if(!(E instanceof Array))throw Error("Ag");y<0?y=E.length-Math.floor(-y):y&&(y=Math.floor(y));var e=E.splice.apply(E,[y,l].concat(_.xq(q)));(q.length||e.length)&&eev(this,E,p,y,q.length,e);return e};
z7.prototype.unshift=function(p){var y=_.oX.apply(1,arguments),l=this,q=bb(function(){return l.getWithPath(p)});
if(!(q instanceof Array))throw Error("Bg");var t=q.unshift.apply(q,_.xq(y));y.length&&eev(this,q,p,0,y.length,[]);return t};var Rei=!0,WEO=!1,kJa=!1,aDB=!1,eZ8=!1,muv=0;aDB=!1;muv=0;Rei=!0;eZ8=WEO=kJa=!1;var Ya=function(p,y,l){this.model=p;this.unknownSignalResolver=y;this.options=l;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];y=_.c(CDm());p=y.next().value;y=y.next().value;this.owner=p;this.disposeImpl=y};
Ya.prototype.dispose=function(){if(!this.isDisposed){for(var p=_.c(this.childSignalProxies),y=p.next();!y.done;y=p.next())y.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var Uui=function(p,y){p=_.JU(p.owner);try{y()}finally{_.JU(p)}};
Ya.prototype.effect=function(p){Uui(this,function(){_.fr(p)})};
var $ui=function(p,y){p.options!=null||(p.options={});var l;(l=p.options).immutableProps!=null||(l.immutableProps=new Set);p.options.immutableProps.add(y)},LBj=function(p,y){y=""+y;
jOZ(p,y);var l,q;if((l=p.options)==null?0:(q=l.immutableProps)==null?0:q.has(y))return!0;var t;if((t=p.model.__signalCache)==null?0:t.has(y))l=p.model.__signalCache.get(y),Array.isArray(l)&&$ui(p,y);var E,e,C;return(C=(E=p.options)==null?void 0:(e=E.immutableProps)==null?void 0:e.has(y))!=null?C:!1},bsU=function(p,y){var l;
p.unknownSignalResolver&&(l=p.unknownSignalResolver(y));var q,t;((q=p.options)==null?0:(t=q.immutableProps)==null?0:t.has(y))?l!=null||(l=new JtQ(_.nr(p.model[y],void 0,"bgwlkd"))):l!=null||(l=new z7(_.nr(p.model[y],void 0,"V1hou")));var E=p.model.hostElement;Object.defineProperty(p.model,y,{get:function(){rIt(E,y);return l.getWithPath([])},
set:function(e){T9(E,y);p.setWithPath([y],e)},
configurable:!0});return l},jOZ=function(p,y){var l,q,t;
((l=p.model.__signalCache)==null||!l.has(y))&&((q=p.options)==null?0:(t=q.externalSignalProps)==null?0:t.has(y))&&p.model[y]},pl=function(p,y){y=""+y;
var l=p.signalCache[y];if(l!==void 0)return l;l=!1;jOZ(p,y);var q;if((q=p.model.__signalCache)==null?0:q.has(y))if(l=p.model.__signalCache.get(y),Array.isArray(l))l=!0,$ui(p,y);else return p.signalCache[y]=p.model.__signalCache.get(y).signal,p.signalCache[y];var t,E;q=(E=(t=p.options)==null?void 0:t.reactivityMode)!=null?E:0;var e,C;if(!((e=p.options)==null?0:(C=e.reactiveProps)==null?0:C.has(y))&&!l&&q===1)throw Error("Cg`"+y);t=l?n4U(p,y):bsU(p,y);return p.signalCache[y]=t},n4U=function(p,y){var l=
Object.getOwnPropertyDescriptor(p.model.constructor.prototype,y),q=function(){return p.model[y]};
return new JtQ(l&&l.get&&!l.set?q:[q,function(t){p.model[y]=t}])};
Ya.prototype.getWithPath=function(p){var y=_.c(p);p=y.next().value;y=qA(y);rIt(this.model.hostElement,""+p);return pl(this,p).getWithPath(y)};
Ya.prototype.setWithPath=function(p,y){if(p.length){T9(this.model.hostElement,p.join("."));var l=_.c(p);p=l.next().value;l=qA(l);pl(this,p).setWithPath(l,y)}};
Ya.prototype.getPathMutationSignal=function(p){var y=_.c(p);p=y.next().value;y=qA(y);return pl(this,p).getPathMutationSignal(y)};
Ya.prototype.notifyPath=function(p,y){var l=_.c(p);p=l.next().value;l=qA(l);pl(this,p).notifyPath(l,y)};
var GFv=function(p,y){if(y.type==="literal")return function(){return{rootWasDefined:!0,value:y.value}};
var l=Y8(y.path),q=_.c(l),t=q.next().value;q=qA(q);var E,e;if(y.type==="path"&&(l.length===1||((E=p.options)==null?0:(e=E.immutableProps)==null?0:e.has(t))))return function(){var U=p.getWithPath(l.slice(0,1)),b=IXt(U,l.slice(1));U=U!==void 0;hZm()&&(U=pl(p,l[0]).wasDefined);return{rootWasDefined:U,value:b}};
var C=pl(p,t);if(y.type==="path"){var u=C.getPathMutationSignal(q);return function(){var U=hZm()?C.wasDefined:vQ(p.owner,function(){return C.getWithPath([])})!==void 0;
var b,P=(b=u())==null?void 0:b.value;return{rootWasDefined:U,value:P}}}if(y.type==="splices"){var a=C.getSplicesSignal(q);
return function(){var U=a();return{rootWasDefined:hZm()?C.wasDefined:U!==void 0,value:U}}}var m=C.getChangeRecordSignal(q,""+t);
return function(){var U=m();return{rootWasDefined:hZm()?C.wasDefined:U!==void 0,value:U}}},E_j=function(p,y,l){var q=l.map(function(C){return GFv(p,C)}),t=l.length===0,E=[],e=l.length!==1||l[0].type!=="path"?!1:!0;
p.effect(function(){for(var C=q.length,u=[],a=!!E.length,m=0;m<C;m++){var U=q[m](),b=U.rootWasDefined;U=U.value;t||(t=b);u[m]=U;e&&(u[m+C]=a?E[m]:u[m],E[m]=U)}t&&vQ(p.owner,function(){return void y.apply(null,_.xq(u))})})},yPu=function(p,y,l,q,t){var E=pl(p,y);
t!==void 0&&E.setWithPath([],t);E_j(p,function(){var e=_.oX.apply(0,arguments);T9(p.model.hostElement,y,!0);E.setWithPath([],l.apply(null,_.xq(e)))},q)};
Ya.prototype.arrayPush=function(p){var y=_.oX.apply(1,arguments),l=_.c(p),q=l.next().value;l=qA(l);q=pl(this,q);return q.push.apply(q,[l].concat(_.xq(y)))};
Ya.prototype.arraySplice=function(p,y,l){var q=_.oX.apply(3,arguments),t=_.c(p),E=t.next().value;t=qA(t);E=pl(this,E);return E.splice.apply(E,[t,y,l].concat(_.xq(q)))};
Ya.prototype.arrayUnshift=function(p){var y=_.oX.apply(1,arguments),l=_.c(p),q=l.next().value;l=qA(l);q=pl(this,q);return q.unshift.apply(q,[l].concat(_.xq(y)))};
Ya.prototype.notifySplices=function(p,y){var l=_.c(p);p=l.next().value;l=qA(l);pl(this,p).notifySplices(l,y)};var Uoa=/([^\s]+?)\(([\s\S]*)\)/,WBu=/\.([^.]+)$/,jfc=/\\,/g,uUa=/&comma;/g,RZo=/\\(.)/g,$o8=[],ag6={"*":"wildcard",splices:"splices"};var Qft=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"),ZZm=/[A-Z]/,PPV=["class","hidden","id","on-dom-change"],wom=new Set([].concat(_.xq(PPV),
["if","notify-dom-change","restamp"])),iZ_=new Set([].concat(_.xq(PPV),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),rPo=new Set(["restamp"]);var ist=new Set(["className","id"]);var Nht=Symbol(),v_t=window;var pTo=window;var J$j=0,qNt=0,yZ=[],E2j=0,ln8=!1,tag=document.createTextNode("");(new window.MutationObserver(sqj)).observe(tag,{characterData:!0});var qe=new Map,ly=0,Atr=function(p){this.mappedHandleId=p},elu=function(p,y,l,q){this.mappedHandleId=p;
var t=this;this.mappedHandleId=p;this.callback=y;this.waitTime=l;this.schedulerPriority=q;this.handleId=_.TR.addJob(function(){t.callback();qe.delete(t.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.A(elu,Atr);elu.prototype.cancel=function(){_.TR.cancelJob(this.handleId);qe.delete(this.mappedHandleId)};
var hlR=function(p,y){this.mappedHandleId=p;var l=this;this.mappedHandleId=p;this.callback=y;this.handleId=c$8(function(){l.callback();qe.delete(l.mappedHandleId)})};
_.A(hlR,Atr);hlR.prototype.cancel=function(){var p=this.handleId-qNt;p<0||yZ.length<=p||(yZ[p]=null);qe.delete(this.mappedHandleId)};var Wxo=function(){};
Wxo.prototype.cancel=function(){this.jobHandle!==void 0&&(CFt(this.jobHandle),this.jobHandle=void 0)};
Wxo.prototype.run=function(p,y,l){var q=this;this.cancel();this.callback=p;this.jobHandle=_.sU(function(){p();q.callback=void 0},y,l)};
Wxo.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var ug5=new WeakMap;var Zsr=Cz(function(p){for(var y=p,l=0;l<3;l++)y=Object.getPrototypeOf(y);delete y.prototype.connectedCallback;var q=function(){return p.apply(this,arguments)||this};
_.A(q,p);q.prototype._attachDom=function(t){if(!t)return null;var E=(0,_.Pm)(this.hostElement);E.attachShadow({mode:"open",shadyUpgradeFragment:t});E.shadowRoot.appendChild(t);return E.shadowRoot};
q.prototype._takeAttributes=function(){for(var t=this.hostElement.attributes,E=0;E<t.length;E++){var e=t[E],C=void 0,u=void 0;(u=(C=this).__attributeReaction)==null||u.call(C,e.name,null,e.value)}};
q.prototype._readyClients=function(){p.prototype._readyClients.call(this);this.root=this};
q.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);p.prototype.connectedCallback.call(this)};
_.Jh.Object.defineProperties(q,{template:{configurable:!0,enumerable:!0,get:function(){return q.prototype._template}}});
return q}),M9M=Cz(function(p){var y=function(){return p.apply(this,arguments)||this};
_.A(y,p);y.prototype.created=function(){if(this.__notifyEffects)for(var l=_.c(Object.values(this.__notifyEffects)),q=l.next();!q.done;q=l.next()){q=_.c(q.value);for(var t=q.next();!t.done;t=q.next())t.value.fn=$3_}if(this.__reflectEffects)for(l=_.c(Object.values(this.__reflectEffects)),q=l.next();!q.done;q=l.next())for(q=_.c(q.value),t=q.next();!t.done;t=q.next())t.value.fn=jqt};
y.prototype._addEventListenerToNode=function(l,q,t){l=EU(l);Te(l,q,t)||p.prototype._addEventListenerToNode.call(this,l,q,t)};
y.prototype._removeEventListenerFromNode=function(l,q,t){l=EU(l);xH(l,q,t)||p.prototype._removeEventListenerFromNode.call(this,l,q,t)};
y.prototype._propertiesChanged=function(l,q,t){if(this.__dataToNotify&&this.__notifyEffects)for(var E=_.c(Object.keys(this.__dataToNotify)),e=E.next();!e.done;e=E.next()){e=e.value;var C=U38(e);this.__notifyEffects[C]||delete this.__dataToNotify[e]}else this.__dataToNotify=null;p.prototype._propertiesChanged.call(this,l,q,t)};
y.prototype.fire=function(l,q,t){q=q===void 0?{}:q;var E;return _.Ub(EU((E=t==null?void 0:t.node)!=null?E:this),l,q,t)};
y.prototype._ensureAttribute=function(l,q){var t=EU(this);t.hasAttribute(l)||IM(t,q,l)};
y.prototype.isLightDescendant=function(l){var q=EU(this);return EU(q)!==l&&_.jR(q).contains(l)&&_.jR(q).getRootNode()===_.jR(l).getRootNode()};
return y});
_.k0.ready=function(){var p;((p=this.hostElement)!=null?p:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var y;((y=this.hostElement)!=null?y:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.vG._subscribeIronResize=function(p){var y;((y=p.hostElement)!=null?y:p).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.vG._unsubscribeIronResize=function(p){var y;((y=p.hostElement)!=null?y:p).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var GJa=[Array,Boolean,Date,Number,Object,String],cL=function(p,y,l,q){this.polySiInfo=p;this.polySiParams=y;this.polySiContext=l;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;q||this instanceof HTMLElement&&(q=this);if(!q)throw Error("Jg");this.allowedProps=y.allowedProps;this.hostElement=q;this.is=p.is;this.upgradeDisabled=!!y.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");p=new Set(y.reactiveSchemas.filter(function(t){return t.type!==
"observe"}).map(function(t){return t.propertyKey}));
this.signalProxy=new Ya(this,void 0,{reactiveProps:p,reactivityMode:y.reactivityMode});this.__dataHasAccessor={};y=_.c(y.reactiveSchemas);for(p=y.next();!p.done;p=y.next())p=p.value,p.type==="signal"&&(this.__dataHasAccessor[p.propertyKey]=!0);this.upgradeDisabled||V9Z(this)};
cL.prototype.getExtraMethodsToForward=function(){return[]};
var V9Z=function(p){p.polySiContext.didRegister||(p.registered(),p.polySiContext.didRegister=!0);p.polySiContext.finalizedTemplate||(p.polySiContext.finalizedTemplate={},p.polySiParams.templateGetter&&(p.polySiContext.finalizedTemplate.processedTemplate=y$u(p.polySiParams.templateGetter,p.polySiParams.is)));g4Q(p);var y=p.hostElement;y.loggingStatus!=null||(y.loggingStatus={});y.loggingStatus.isInitializing=!0;bb(function(){return void p.created()});
y.loggingStatus.isInitializing=!1;p.isPolySiElementConnected&&QON(p)},QON=function(p){p.didCallReady||(bb(function(){return void p.ready()}),p.didCallReady=!0);
p.isAttached=!0;p.attached()};
_.J=cL.prototype;_.J.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||QON(this)};
_.J.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.J.attributeChangedCallback=function(p,y,l){if(this.upgradeDisabled)p==="disable-upgrade"&&l===null&&(this.upgradeDisabled=!1,V9Z(this));else if(y!==l){var q=_.Vl(p),t=this.polySiContext.typesForSignals[q];if(t&&(!this.reflecting||_.n("polysi_attribute_changed_serializing_killswitch"))){switch(t){case Object:try{var E=JSON.parse(l)}catch(C){E=l}break;case Array:try{E=JSON.parse(l)}catch(C){E=null}break;case Date:E=isNaN(l)?String(l):Number(l);E=new Date(E);break;case Boolean:E=l!==null;break;case Number:E=
Number(l);break;default:E=l}this[q]=E}q=_.c(this.polySiParams.behaviors);for(t=q.next();!t.done;t=q.next())E=void 0,(E=t.value.attributeChanged)==null||E.call(this,p,y,l);var e;(e=this.attributeChanged)==null||e.call(this,p,y,l)}};
_.J.attributeChangedCallbackWrapper=function(p,y,l){this.attributeChangedCallback(p,y,l)};
_.J.setPropertiesFromInitialAttributeValues=function(){for(var p=0;p<this.hostElement.attributes.length;p++){var y=this.hostElement.attributes[p];(y.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(y.name))&&this.attributeChangedCallback(y.name,null,y.value)}};
_.J.created=function(){this.provide=this.polySiParams.provide;var p;(p=this.initializeInjection)==null||p.call(this);p=_.c(this.polySiParams.reactiveSchemas);for(var y=p.next();!y.done;y=p.next())y=y.value,y.type==="signal"&&(this.mutablePropNames.add(y.propertyKey),pl(this.signalProxy,y.propertyKey));n2c(this,this.polySiInfo,this.polySiParams.behaviors);p=_.c(this.polySiParams.reactiveSchemas);for(y=p.next();!y.done;y=p.next())y=y.value,y.type==="signal"&&y.value!==void 0&&(this.signalProxy.model[y.propertyKey]=
typeof y.value==="function"?y.value.call(this):y.value);if(this.polySiParams.signalProperties)for(p=_.c(this.polySiParams.signalProperties),y=p.next();!y.done;y=p.next()){y=y.value;var l=void 0;((l=this.__signalCache)==null?0:l.has(y))||(this.signalProxy.model[y]=void 0)}aDB||KEi(this);bEt(this);p=_.c(this.polySiParams.behaviors);for(y=p.next();!y.done;y=p.next())l=void 0,(l=y.value.created)==null||l.call(this);var q;(q=this.polySiInfo.created)==null||q.call(this)};
_.J.registered=function(){var p=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var y=Object.getPrototypeOf(this);y.addReactiveSchema=function(C){p.polySiParams.reactiveSchemas.push(C)};
for(var l=_.c(this.polySiParams.behaviors),q=l.next();!q.done;q=l.next()){var t=void 0;(t=q.value.beforeRegister)==null||t.call(y)}var E;(E=this.polySiInfo.beforeRegister)==null||E.call(y);y.addReactiveSchema=A$a;l=_.c(this.polySiParams.behaviors);for(q=l.next();!q.done;q=l.next())t=void 0,(t=q.value.registered)==null||t.call(y);var e;(e=this.polySiInfo.registered)==null||e.call(y)};
_.J.ready=function(){var p;(p=this.beforeReady)==null||p.call(this);aDB&&KEi(this);var y;if(p=(y=this.polySiContext.finalizedTemplate)==null?void 0:y.processedTemplate){p=Igt(p.template,p.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:p.hasInsertionPoint,thisCtx:this});y=p.nodesById;p=p.root;var l=this.hostElement;var q=q===void 0?!1:q;l=(0,_.Pm)(l);if(!l.attachShadow)throw Error("Cd");if(!l.shadowRoot||q)l.attachShadow({mode:"open",shadyUpgradeFragment:p}),l.shadowRoot.appendChild(p);
this.root=l.shadowRoot;this.$=y}wpV(this);q=_.c(this.polySiParams.behaviors);for(y=q.next();!y.done;y=q.next())p=void 0,(p=y.value.ready)==null||p.call(this);var t;(t=this.polySiInfo.ready)==null||t.call(this)};
_.J.attached=function(){for(var p=_.c(this.polySiParams.behaviors),y=p.next();!y.done;y=p.next()){var l=void 0;(l=y.value.attached)==null||l.call(this)}var q;(q=this.polySiInfo.attached)==null||q.call(this)};
_.J.detached=function(){for(var p=_.c(this.polySiParams.behaviors),y=p.next();!y.done;y=p.next()){var l=void 0;(l=y.value.detached)==null||l.call(this)}var q;(q=this.polySiInfo.detached)==null||q.call(this)};
var g4Q=function(p){for(var y=_.c(p.polySiParams.behaviors),l=y.next();!l.done;l=y.next())if(l=l.value,l.listeners)for(var q in l.listeners)Yog(p,p.hostElement,q,l.listeners[q]);if(p.polySiInfo.listeners)for(var t in p.polySiInfo.listeners)Yog(p,p.hostElement,t,p.polySiInfo.listeners[t])},Yog=function(p,y,l,q,t){p=YQu(p,q,t);
Te(y,l,p)||y.addEventListener(l,p);return p},KEi=function(p){for(var y=_.c(p.polySiParams.reactiveSchemas),l=y.next();!l.done;l=y.next())l=l.value,l.type==="compute"||l.type==="computeWithMethod"?lgl(p.signalProxy,l,p):l.type==="redux"?tlt(p.signalProxy,l,p.store):l.type==="signal"&&l.readOnly&&sf6(p.signalProxy,l)},wpV=function(p){for(var y=_.c(p.polySiParams.reactiveSchemas),l=y.next(),q={};!l.done;q={schema$jscomp$12:void 0},l=y.next())q.schema$jscomp$12=l.value,q.schema$jscomp$12.type==="notify"?
JP5(p.signalProxy,q.schema$jscomp$12,p.hostElement):q.schema$jscomp$12.type==="observe"?cPl(p.signalProxy,q.schema$jscomp$12,p):q.schema$jscomp$12.type==="reflect"&&p.signalProxy.effect(function(E){return function(){var e=p.signalProxy.getWithPath([E.schema$jscomp$12.propertyKey]);
p.reflecting=!0;n_u(p.hostElement,E.schema$jscomp$12.propertyKey,e,!0);p.reflecting=!1}}(q));
if(p.reflectedAttributes)for(y=_.c(Object.entries(p.reflectedAttributes)),q=y.next(),l={};!q.done;l={key$jscomp$907:void 0,value$jscomp$9034:void 0},q=y.next()){var t=_.c(q.value);q=t.next().value;t=t.next().value;l.key$jscomp$907=q;l.value$jscomp$9034=t;p.signalProxy.effect(function(E){return function(){p.reflecting=!0;n_u(p.hostElement,E.key$jscomp$907,(0,E.value$jscomp$9034)(),!0);p.reflecting=!1}}(l))}};
_.J=cL.prototype;_.J._setPendingProperty=function(p,y){this.set(p,y);return!1};
_.J._enableProperties=function(){};
_.J._setPendingPropertyOrPath=function(p,y){this.notifyPath(p,y);return!1};
_.J._addPropertyEffect=function(){};
_.J._stampTemplate=function(){throw Error("Kg");};
_.J.fire=function(p,y,l){y=y===void 0?{}:y;l=l===void 0?{}:l;var q,t,E={bubbles:(q=l.bubbles)!=null?q:!0,cancelable:!!l.cancelable,composed:(t=l.composed)!=null?t:!0},e;return _.Ub(ZEt((e=l.node)!=null?e:this.hostElement),p,y,E)};
_.J.get=function(p,y){var l=Y8(p);return y?IXt(y,l):p==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(l)};
_.J.linkPaths=function(){};
_.J.listen=function(p,y,l){p=ZEt(p);this.boundListeners!=null||(this.boundListeners=new WeakMap);var q=this.boundListeners.get(p);q||(q={},this.boundListeners.set(p,q));var t=y+l;q[t]||(q[t]=Yog(this,p,y,l))};
_.J.notifyPath=function(p,y){this.signalProxy.notifyPath(Y8(p),arguments.length===2?{value:y}:void 0)};
_.J.canNotifyPath=function(p){return this.mutablePropNames.has(p)&&!LBj(this.signalProxy,p)};
_.J.notifySplices=function(p,y){this.signalProxy.notifySplices(Y8(p),y)};
_.J.pop=function(p){var y=this.signalProxy;p=Y8(p);var l=_.c(p);p=l.next().value;l=qA(l);return pl(y,p).pop(l)};
_.J.push=function(p){var y=_.oX.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[Y8(p)].concat(_.xq(y)))};
_.J.set=function(p,y,l){if(l)throw Error("Lg");p==="hidden"?this.hostElement.hidden=!!y:this.signalProxy.setWithPath(Y8(p),y)};
_.J.setProperties=function(p){p=_.c(Object.entries(p));for(var y=p.next();!y.done;y=p.next()){var l=_.c(y.value);y=l.next().value;l=l.next().value;this[y]=l}};
_.J.splice=function(p,y,l){var q=_.oX.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[Y8(p),y,l].concat(_.xq(q)))};
_.J.unlinkPaths=function(){};
_.J.unlisten=function(p,y,l){p=ZEt(p);if(this.boundListeners){var q=this.boundListeners.get(p);if(q){l=y+l;var t=q[l];t&&(xH(p,y,t)||p.removeEventListener(y,t),delete q[l])}}};
_.J.unshift=function(p){var y=_.oX.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[Y8(p)].concat(_.xq(y)))};
_.Jh.Object.defineProperties(cL.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 Lxa=[Array,Boolean,Date,Number,Object,String];var D3t=!1;var Iu=function(){var p=HTMLElement.apply(this,arguments)||this;p.restamp=!1;p.notifyDomChange=!1;p.JSC$13405_didCallConnected=!1;p.JSC$13405_renderDebouncer=null;p.disableTemplateUpdateSignalImpl=em()?void 0:_.nr(!1,void 0,"Ofhkwb");var y;p.getDisableTemplateUpdate=(y=p.disableTemplateUpdateSignalImpl)==null?void 0:y[0];var l;p.setDisableTemplateUpdate=(l=p.disableTemplateUpdateSignalImpl)==null?void 0:l[1];return p};
_.A(Iu,HTMLElement);var isU=function(p){p.conditionSignalImpl!=null||(p.conditionSignalImpl=new z7(_.nr(!1,void 0,"gE52Fb")));return p.conditionSignalImpl};
_.J=Iu.prototype;_.J.showHideChildren=function(p){rtB(this,p,this.if)};
_.J.attributeChangedCallback=function(p,y,l){if(this.JSC$13405_didCallConnected)throw Error("Pg`"+p);p==="notify-dom-change"?this.notifyDomChange=l!==null:p==="restamp"&&(this.restamp=l!==null)};
_.J.debounceRender=function(){this.JSC$13405_renderDebouncer=_.Gr(this.JSC$13405_renderDebouncer,ft,this.JSC$13405_renderImpl.bind(this));_.Pz(this.JSC$13405_renderDebouncer)};
_.J.disconnectedCallback=function(){var p=(0,_.Pm)(this).parentNode;(!p||p.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in p&&!p.host)&&Sii(this)};
_.J.connectedCallback=function(){var p=this;this.JSC$13405_didCallConnected=!0;Rei?HEu():this.style.display="none";this.parentSignalProxy.effect(function(){isU(p).getWithPath([]);p.debounceRender()})};
_.J.render=function(){_.Vp()};
_.J.JSC$13405_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var p=this.if,y=!1;if(p){this.hasInstance()||(FEU(this),y=!0);a:{var l=(0,_.Pm)(this).parentNode;if(this.hasInstance()){var q=this.instance.children;if((q==null?0:q.length)&&(0,_.Pm)(this).previousSibling!==q[q.length-1])for(var t=0;t<q.length;t++)(0,_.Pm)(l).insertBefore(q[t],this)}else{if(!l){l=!1;break a}LEr(this,l)}l=!0}if(!l)return}else this.restamp&&Sii(this);rtB(this,!1,p);p&&!y&&FEU(this);WEO&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.J.hasInstance=function(){return!!this.instance};
var LEr=function(p,y){var l=p.parentSignalProxy;if(em()){var q=_.c(_.nr(!0,void 0,"jQ0Qb"));var t=q.next().value;q=q.next().value;l=p.parentSignalProxy}else{var E;var e=new Ya((E=kF$(p))!=null?E:{},function(u){var a=pl(p.parentSignalProxy,u).getChangeRecordSignal([]);u=_.nr(void 0,void 0,"oT9mkc");var m=new z7(u);e.effect(function(){if(p.getDisableTemplateUpdate&&!p.getDisableTemplateUpdate()){var U=a();m.notifyPath(Y8(U.path),{value:U.value})}});
return m});
p.parentSignalProxy.childSignalProxies.push(e);var C=l=e}l=Igt(p.templateInfo,p.templateInfo.nodeInfoList,l,{eventListenerHost:p.eventListenerHost,hasInsertionPoint:p.templateInfo.hasInsertionPoint,thisCtx:p.eventListenerHost,enabledSignal:em()?t:void 0,getModel:function(){return kF$(p)}}).root;
p.instance={root:l,children:[],hidden:!1,signalProxy:C,getTemplateUpdatesEnabled:t,setTemplateUpdatesEnabled:q};C=_.c(l.childNodes);for(t=C.next();!t.done;t=C.next())p.instance.children.push(t.value);(0,_.Pm)(y).insertBefore(p.instance.root,p)},kF$=function(p){if((p=p.parentSignalProxy.model)&&!p.hostElement){var y={},l;
for(l in p)p.hasOwnProperty(l)&&(y[l]=p[l]);return y}},Sii=function(p){if(p.instance){var y=p.instance.children;
if(y.length){var l=(0,_.Pm)(y[0]).parentNode;if(l){l=(0,_.Pm)(l);for(var q=0;q<y.length;q++)l.removeChild(y[q])}}em()?p.instance.setTemplateUpdatesEnabled(!1):p.instance.signalProxy.dispose();p.instance=void 0}},rtB=function(p,y,l){y=y||!l;
p.instance&&p.instance.hidden!==y&&(p.instance.hidden=y,Nvt(y,p.instance.children))},FEU=function(p){if(em()){var y=p.instance;
y&&vQ(p.parentSignalProxy.owner,function(){return!y.getTemplateUpdatesEnabled()})&&y.setTemplateUpdatesEnabled(!0)}else p.setDisableTemplateUpdate(!1)};
_.Jh.Object.defineProperties(Iu.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var p=this;return vQ(this.parentSignalProxy.owner,function(){return isU(p).getWithPath([])})},
set:function(p){p||(em()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));isU(this).setWithPath([],!!p)}}});
_.Jh.Object.defineProperties(Iu,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Iu);var NSr=[],po=function(){var p=HTMLElement.apply(this,arguments)||this;p.as="item";p.indexAs="index";p.itemsIndexAs="itemsIndex";p.targetFramerate=20;p.notifyDomChange=!1;p.isDetached=!1;p.JSC$13412_renderDebouncer=null;p.instances=[];p.chunkingId=null;p.chunkCount=null;p.shouldMeasureChunk=!1;p.shouldContinueChunking=!1;p.renderStartTime=null;p.JSC$13412_didCallConnected=!1;return p};
_.A(po,HTMLElement);var Dui=function(p){p.itemSignalImpl!=null||(p.itemSignalImpl=new z7(_.nr(NSr,void 0,"YBrqgf")));return p.itemSignalImpl},Hsi=function(p,y){Array.isArray(y)||(y=NSr);
Dui(p).setWithPath([],y)};
_.J=po.prototype;_.J.showHideChildren=function(p){for(var y=_.c(this.instances),l=y.next();!l.done;l=y.next())Nvt(p,l.value.children)};
_.J.notifyPath=function(p,y){p=Y8(p);p[0]==="items"&&(p.length===1?Hsi(this,y):Dui(this).setWithPath(p.slice(1),y))};
_.J.canNotifyPath=function(p){return p==="items"};
_.J.attributeChangedCallback=function(p,y,l){if(this.JSC$13412_didCallConnected)throw Error("Qg`"+p);p==="as"?this.as=l:p==="index-as"?this.indexAs=l:p==="items-index-as"?this.itemsIndexAs=l:p==="initial-count"?this.initialCount=Number(l):p==="notify-dom-change"?this.notifyDomChange=l!==null:p==="target-framerate"&&(this.targetFramerate=Number(l))};
_.J.disconnectedCallback=function(){this.isDetached=!0;for(var p=0;p<this.instances.length;p++)TS$(this,p);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.J.connectedCallback=function(){var p=this,y=Dui(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var t=y(),E=Y8(t.path);if(E[0]===void 0||E[0]==="splices"||E[0]==="length")p.debounceRender();else{var e=E[0];if(e=p.instances[typeof e==="string"?Math.floor(Number(e)):e])E=[p.as].concat(_.xq(E.slice(1))),e.signalProxy.notifyPath(E,t)}});
this.JSC$13412_didCallConnected=!0;Rei?HEu():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var l=(0,_.Pm)((0,_.Pm)(this).parentNode),q=0;q<this.instances.length;q++)l.insertBefore(this.instances[q].root,this);this.chunkingId&&this.render()}};
_.J.debounceRender=function(){this.JSC$13412_renderDebouncer=_.Gr(this.JSC$13412_renderDebouncer,ft,this.JSC$13412_renderImpl.bind(this));_.Pz(this.JSC$13412_renderDebouncer)};
_.J.render=function(){this.debounceRender();_.Vp()};
_.J.JSC$13412_renderImpl=function(){var p=this;if(!this.parentSignalProxy.isDisposed){var y=this.items,l=xuO(this,y.length);BSV(this,y,l);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){p.chunkingId=null;if(p.shouldMeasureChunk){var q=performance.now()-p.renderStartTime;p.chunkCount=Math.round(Math.ceil(1E3/p.targetFramerate)/q*p.chunkCount)||1}p.shouldContinueChunking&&p.debounceRender()}));
WEO&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var xuO=function(p,y){var l=y,q=p.instances.length;if(p.initialCount){if(p.chunkCount){var t=Math.min(Math.max(y-q,0),p.chunkCount);l=Math.min(q+t,y)}else l=Math.min(y,p.initialCount),t=Math.max(l-q,0),p.chunkCount=t||1;p.shouldMeasureChunk=t===p.chunkCount;p.shouldContinueChunking=l<y;p.renderStartTime=performance.now()}return l},BSV=function(p,y,l){for(var q=0;q<l;q++){var t=p.instances[q],E=y[q];
t?(t.signalProxy.setWithPath([p.as],E),t.signalProxy.setWithPath([p.indexAs],q)):fD$(p,E,q)}for(y=p.instances.length-1;y>=q;y--)l=p,t=y,TS$(l,t),_.c(l.instances.splice(t,1)).next().value.signalProxy.dispose()},TS$=function(p,y){p=p.instances[y];
y=(0,_.Pm)(p.root);for(var l=0;l<p.children.length;l++)y.appendChild(p.children[l])},fD$=function(p,y,l){var q={};
y=Object.assign({},v4N(p),(q[p.as]=y,q[p.indexAs]=l,q[p.itemsIndexAs]=l,q));var t=new Ya(y,function(e){if(e!==p.as&&e!==p.indexAs){if(e===p.itemsIndexAs)return pl(t,p.indexAs);var C=pl(p.parentSignalProxy,e).getChangeRecordSignal([]);e=_.nr(void 0,void 0,"T21Pqc");var u=new z7(e);t.effect(function(){var a=C();u.notifyPath(Y8(a.path),{value:a.value})});
return u}});
p.parentSignalProxy.childSignalProxies.push(t);q=Igt(p.templateInfo,p.templateInfo.nodeInfoList,t,{eventListenerHost:p.eventListenerHost,getModel:function(){var e={};return Object.assign({},v4N(p),(e[p.as]=t.model[p.as],e[p.indexAs]=t.model[p.indexAs],e[p.itemsIndexAs]=t.model[p.indexAs],e))},
hasInsertionPoint:p.templateInfo.hasInsertionPoint,thisCtx:p.eventListenerHost,methodInvocationRequirement:muv,enabledSignal:p.stampingEnabled}).root;y={root:q,children:[],signalProxy:t};q=_.c(q.childNodes);for(var E=q.next();!E.done;E=q.next())y.children.push(E.value);q=(q=p.instances[l+1])?q.children[0]:p;(0,_.Pm)((0,_.Pm)(p).parentNode).insertBefore(y.root,q);p.instances[l]=y},v4N=function(p){if((p=p.parentSignalProxy.model)&&!p.hostElement){var y={},l;
for(l in p)p.hasOwnProperty(l)&&(y[l]=p[l]);return y}};
po.prototype.itemForElement=function(p){var y=this,l=this.instances.find(function(q){return q.children.includes(p)});
if(l)return vQ(this.parentSignalProxy.owner,function(){return l.signalProxy.getWithPath([y.as])})};
po.prototype.indexForElement=function(p){var y=this.instances.findIndex(function(l){return l.children.includes(p)});
return y>=0?y:void 0};
_.Jh.Object.defineProperties(po.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var p=this;return vQ(this.parentSignalProxy.owner,function(){return Dui(p).getWithPath([])})},
set:function(p){Hsi(this,p)}},
delay:{configurable:!0,enumerable:!0,set:function(){}},
filter:{configurable:!0,enumerable:!0,set:function(){}},
observe:{configurable:!0,enumerable:!0,set:function(){}},
sort:{configurable:!0,enumerable:!0,set:function(){}},
__instances:{configurable:!0,enumerable:!0,get:function(){return this.instances}}});
_.Jh.Object.defineProperties(po,{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",po);var Xpi,duN;_.yF=new _.WE("STATE_STORE_TOKEN");Xpi=new _.WE("SELECT_TOKEN");duN=new _.WE("DISPATCH_TOKEN");var XT6={getSelectFn:function(){var p;return(p=_.WC().resolve(_.RK(Xpi)))!=null?p:Tv_},
getDispatchFn:function(){var p;return(p=_.WC().resolve(_.RK(duN)))!=null?p:_.hl().dispatch.bind(_.hl())},
getAppStore:function(){return _.WC().resolve(_.yF)}},x3l,v2g=!1;var WL={traceAllComponents:_.n("web_tracing_all_components"),exportToCsi:_.n("web_tracing_export_to_csi"),exportBreadcrumbs:_.n("web_enable_tracing"),bufferSize:_.UC("web_max_tracing_events"),enabledSpansArray:_.jM("web_tracing_enabled_spans")};var yto=function(){};var YNt=void 0;var OsZ=function(){};
OsZ.prototype.hasAttribute=function(p){if(p==="dir")return!1;if(p==="disable-upgrade"){var y,l;return(l=(y=this.hostElement)==null?void 0:y.hasAttribute("disable-upgrade"))!=null?l:!1}throw Error("Rg`"+p);};
OsZ.prototype.attributeChangedCallbackWrapper=function(p,y,l){if(p==="disable-upgrade"&&this.__isUpgradeDisabled&&l===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var q;((q=this.hostElement)!=null?q:this).isConnected&&this.connectedCallback()}else y===l||this.__isReflecting||this.attributeChangedCallback(p,y,l)};
OsZ.prototype.getExtraMethodsToForward=function(){for(var p=this,y=[],l=_.c(o4P),q=l.next(),t={};!q.done;t={tagName$jscomp$54:void 0,name$jscomp$572:void 0},q=l.next())t.name$jscomp$572=q.value,q=void 0,t.name$jscomp$572==="_setPendingProperty"?(t.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),q=function(E){return function(e,C,u){Hm(E.tagName$jscomp$54,e,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return p._setPendingProperty(e,C,u)}}(t)):q=function(E){return function(){return p[E.name$jscomp$572].apply(p,
_.xq(_.oX.apply(0,arguments)))}}(t),y.push([t.name$jscomp$572,
q]);return y};
for(var sO5=M9M(Zsr((0,_.kd)(OsZ))),ctt=["disabled","disable-upgrade"],zeN=(0,_.kd)(function(){}),YiQ=new Set(Object.getOwnPropertyNames(zeN.prototype)),Reo=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.xq(YiQ))),heg=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),o4P=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),IDi=new Set([].concat(_.xq(heg),_.xq(o4P),_.xq(YiQ))),pki=_.c(IDi),y4x=pki.next();!y4x.done;y4x=pki.next())Qzt.add(y4x.value);var uO6={created:function(){bEt(this);this.initializeInjection()}};var GFg=!1,jm=window.ShadyDOM,KEo=["appendChild","insertBefore","removeChild","replaceChild"],QO_=[Node];jm&&QO_.push(jm.Wrapper);var LEm,kFc,Hso={};var Gp=new Set,by="",TSc="";var nl,PL=new Set;var ze_=new Set("context didCallReady is info params signalProxy".split(" ")),IDo="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),pko="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var ldM=Ah({entities:XGj}),qGB=new cI(ldM);var sHi=function(){return _.FA.apply(this,arguments)||this};
_.A(sHi,_.FA);_.Jh.Object.defineProperties(sHi.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return qGB}}});
_.H([_.Lv()],sHi);_.lQ=[OX.prototype,sHi.prototype];_.qC={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var p=this,y={};setTimeout(function(){var l;return _.Ub((l=p.hostElement)!=null?l:p,"yt-live-chat-add-tooltip-target",y)},0);
this.handler_=y.handler},
detached:function(){if(this.handler_){var p;this.handler_.removeElementFromSupportingTooltips((p=this.hostElement)!=null?p:this)}this.handler_=null}}};_.Kl=new _.WE("ICON_MANAGER_TOKEN");var tt$=[48,20,18,16,15,13,12],GIg=new Map,mpu=new Set,Rh5=new Set,adt=new Set,uVm=new Set,Wp_=new Set,$p_=new Promise(function(p){var y=!1,l=!1,q=!1,t=[],E=function(e){if("detail"in e)if(e=e.detail,e.name==="yt-icons")Upt(e),y=!0;else if(e.name==="yt-sys-icons")Upt(e),l=!0;else{var C;((C=e.name)==null?0:C.includes("yt-sys-icons"))&&e.size!==24&&(Upt(e,!0),t.push(e.size),t.length===tt$.length&&(q=!0))}y&&l&&q&&(window.removeEventListener("iron-iconset-added",E),p())};
window.addEventListener("iron-iconset-added",E)}),bmo=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"]]);_.sd={};_.sd.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.JB,computeHref_:function(p,y){y=y===void 0?!1:y;if(!p||p.commandExecutorCommand)return null;var l=Mo5(p,y);return y||l!==null?l?_.n("enable_polymer_resin")?_.XX(l).toString():l:null:(_.vs(new _.SM("computeHref was null",this.is,p)),null)},
computeOptionalHref_:function(p){return this.computeHref_(p,!0)},
computeNofollow_:function(p){return p?Urc(p)?"nofollow":null:null},
computeIcon_:function(p){return p&&p.iconType?_.QZ(p.iconType):""},
resolveCommand:function(p,y,l){y=y===void 0?{}:y;return _.iy(p,this.hostElement,y,l===void 0?!1:l)}};var J4r,tG;_.EeZ={};J4r=null;
tG={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_=WSg(this.viewroot));_.sU(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var p=this;this.unobserve_();if(_.n("kevlar_vimio_use_shared_monitor"))Vta(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 y=[];this.visibilityOptionVisible_&&y.push(this.visibilityObserver.observe(this.hostElement,function(){return p.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&y.push(this.visibilityObserver.observe(this.hostElement,function(){return p.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&y.push(this.visibilityObserver.observe(this.hostElement,function(){return p.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=y}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){Pnt(this,this.visibilityObserver)},
markDirtyVisibilityObserver:function(){this.localVisibilityObserver_&&this.configureVisibilityObserver_()},
getVisibilityObserverForChild:function(){return this.visibilityObserverForChild_?this.visibilityObserverForChild_:this.localVisibilityObserver_},
get visibilityObserver(){if(this.localVisibilityObserver_)return this.localVisibilityObserver_;var p=_.dV(this.parentNode,function(l){var q,t=(q=l.polymerController)!=null?q:l;return!!t.getVisibilityObserverForChild&&t.getVisibilityObserverForChild()},!0);
if(p){var y;this.localVisibilityObserver_=((y=p.polymerController)!=null?y:p).getVisibilityObserverForChild()}else J4r||(J4r=WSg()),this.localVisibilityObserver_=J4r;return this.localVisibilityObserver_},visibilityCallback:function(p){p?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.n("kevlar_use_vimio_behavior")||(tG={});tG&&!_.n("kevlar_use_vimio_behavior")&&(delete tG.attached,delete tG.detached);_.EeZ.YtVisibilityObserverBehavior=[tG];var c4B={};c4B.YtVisualElementBehavior=[_.EeZ.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.n("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.n("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var p=this.getScreenLayer&&this.getScreenLayer(),y=this.getVisibilityLogger();y&&y.reportShown(this,void 0,p)}},
onHidden:function(){if(_.n("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.n("kevlar_vimio_use_shared_monitor")){var p=this.getScreenLayer&&this.getScreenLayer(),y=this.getVisibilityLogger();y&&y.reportHidden(this,void 0,p)}},
getVisibilityLogger:function(){return _.n("kevlar_use_vimio_behavior")?_.Sm():null},
shouldSkipLogging:function(){if(_.OY("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var p=this.getParentRenderer&&this.getParentRenderer();if(!p)return!1;var y,l=(y=p.polymerController)!=null?y:p;if(!l.data)return!1;p=this.data.trackingParams;p=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:p;var q;y=(q=l.data)==null?void 0:q.trackingParams;var t,E;y=((t=l.data)==null?0:t.loggingDirectives)?(E=l.data)==null?void 0:E.loggingDirectives.trackingParams:y;return p&&y&&p===
y}}];var KpR=new Map,xg;var L0R=function(p){this.layer=p},Kp=function(p){return p.layer!==void 0?p.layer:p.parent?Kp(p.parent):p.layer=0};var Lpu;_.X={};Lpu=0;_.X.YtRendererBehavior=[_.sd.YtComponentBehavior,c4B.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_:_.n("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var p,y;(y=(p=this.monitorScrollElement)!=null?p:this.hostElement)==null||y.removeEventListener("scroll",_.MH(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();geo(this.hostElement);jqU(_.T7(),this.hostElement);he.delete(this.hostElement)},
registerRenderer:function(p){var y;((y=p.polymerController)!=null?y:p).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(p),this.markDirty())},
unregisterRenderer_:function(p){this.useVimio_||(this.childCache_.delete(p),this.markDirty())},
attached:function(){var p=this,y=this.getParentRenderer();if(y){var l,q,t;(q=(l=(t=y.polymerController)!=null?t:y).registerRenderer)==null||q.call(l,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var E,e;(e=(E=this.monitorScrollElement)!=null?E:this.hostElement)==null||e.addEventListener("scroll",_.MH(this,this.onScroll))}_.TR.addJob(function(){wk8(p.hostElement)},8);
l=new L0R(this.screenLayer||void 0);(y=he.get(y))&&y.layerNode&&(l.parent=y.layerNode);y={};$lu(this.hostElement,(y.isRenderer=!0,y.layerNode=l,y[k$l]=this.data,y))},
getParentRenderer:function(){for(var p=this.hostElement.parentNode,y,l;p&&((y=he.get(p))==null||!y.isRenderer)&&!((l=p.polymerController)!=null?l:p).isRenderer_;)p=p.parentNode||p.host;return p},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.n("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.o4("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.n("debug_web_ve_data")&&this.data.trackingParams){var p="";try{p=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(l){_.Bs(l)}if(p){var y=B$_(p,1);y!==void 0&&(this.hostElement.dataset.veIndex=String(y));p=B$_(p,2);
p!==void 0&&(this.hostElement.dataset.ve=String(p))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.n("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Tp(this.data.loggingDirectives.trackingParams)),this.visualElement=_.FH(_.Ll(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var p=this.data.targetId;_.n2$(_.T7(),p,this.hostElement)}else jqU(_.T7(),this.hostElement)},
onScroll:function(){var p=Date.now();p-this.lastHandledScroll_<50||(this.lastHandledScroll_=p,this.markDirty())},
markDirty:function(){_.n("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():kI8(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var p=this.getParentRenderer();if(p&&(p=he.get(p))&&p.layerNode)return Kp(p.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.xq(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var p=0;p<this.data.impressionEndpoints.length;p++)this.sendImpression(this.data.impressionEndpoints[p]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(p){p.clickTrackingParams&&delete p.clickTrackingParams;var y,l;(p==null?0:(y=p.commandMetadata)==null?0:(l=y.webCommandMetadata)==null?0:l.sendPost)?_.ny(this.hostElement,[p,{impression:!0}]):_.Gf(this.hostElement,[p],this.hostElement)},
logExplicitClick:function(p){var y=_.B2(this.getScreenLayer());if(y){var l,q=(l=p.polymerController)!=null?l:p;p=q.visualElement;q=q.trackingParams||q.clickTrackingParams;!p&&q&&(p=_.Tp(q));p&&_.te(y,p)}}}];var ehO={},Ed=function(){return _.FA.apply(this,arguments)||this};
_.A(Ed,_.FA);Ed.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Ed.prototype.onPdgItemBehaviorClick=Ed.prototype.onPdgItemBehaviorClick;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ed.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Ed.prototype,"data",void 0);_.H([_.VU("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Ed.prototype,"onPdgItemBehaviorClick",null);_.H([_.Lv()],Ed);ehO.YtPdgLiveChatItemBehavior=[Ed.prototype,_.X.YtRendererBehavior];var hhM;var CnO;_.JG={};_.JG.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var c_=function(){var p=eY.apply(this,arguments)||this;p.switchTemplateAtRegistration=!1;return p};
_.A(c_,eY);c_.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||Twa(this),_.ana(this,"doRender"),this.doRender())};
c_.prototype.debounceRender=function(){this.templatingFn&&_.tl(this,"doRender",this.doRender)};
c_.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.Bs(Error("ah"))};
c_.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.H([sCo()],c_);var uVr=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,es={},vea=(es[1]={filterString:null,isUnwrappable:null,unwrap:null},es[2]={filterString:function(p,y,l){return Mr(l)},
isUnwrappable:function(p){return p instanceof IX},
unwrap:function(p){return ye(p)}},es[3]={filterString:function(p,y,l){return uVr.test(l)?l:v6.toString()},
isUnwrappable:function(p){return TB(p)},
unwrap:function(p){return _.xX(p)}},es[4]={filterString:function(){return v6.toString()},
isUnwrappable:function(p){return p instanceof SZ},
unwrap:function(p){return _.LO(p).toString()}},es[5]={filterString:function(p,y,l){return l},
isUnwrappable:function(p){return typeof p==="string"},
unwrap:function(p){return p.toString()}},es[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(p){return p instanceof _.E8},
unwrap:function(p){return OO8(p)}},es[8]={filterString:function(p,y,l){l=String(l).toLowerCase();
return onm(p,y,l)?l:"zClosurez"},
isUnwrappable:null,unwrap:null},es[10]={filterString:null,isUnwrappable:null,unwrap:null},es);cK[oe["default"]]=dpu;var Om6=[];var C5m=zhR("A"),uGl=zhR("BUTTON"),TT=zhR("DIV"),RaL=zhR("LABEL");(function(){var p=JM;JM=function(y){p==null||p(y);XH(function(){for(var l=0;l<y.length;l++)oe8(y[l])})}})();var Rhr=function(){var p=_.FA.apply(this,arguments)||this;p.hasUnmounted=!1;return p};
_.A(Rhr,_.FA);_.J=Rhr.prototype;_.J.beforeRegister=function(){var p=this.doIdomRender;this.templatingFn?_.Bs(Error("$g")):(this.templatingFn=p,this.switchTemplateAtRegistration=!0,fdl(this))};
_.J.attached=function(){};
_.J.detached=function(){oe8(this.hostElement)};
_.J.renderIdom=function(){throw Error("ch");};
_.J.doIdomRender=function(){var p=this;NiL(this.hostElement,function(){p.renderIdom()})};
_.H([_.Lv()],Rhr);var WpN=[c_.prototype,Rhr.prototype];var adV,mpQ=function(){return adV!==void 0?adV:adV=document.createElement("template")};
document.head.appendChild(mpQ().content);var UpU;var $pN,jHZ=function(){return $pN!==void 0?$pN:$pN=document.createElement("template")};
document.head.appendChild(jHZ().content);var bmi;var neP=document.head,GIv=neP.appendChild,PnV;if(bmi===void 0){var A4N=document.createElement("template");_.M(A4N,"\x3c!--css-build:shady--\x3e");A4N.content.insertBefore(jHZ().content.cloneNode(!0),A4N.content.firstChild);bmi=A4N}PnV=bmi;GIv.call(neP,PnV.content);var Zmi,MtV=function(){return Zmi!==void 0?Zmi:Zmi=document.createElement("template")};
document.head.appendChild(MtV().content);var VtO;var gei=document.head,QHi=gei.appendChild,KpZ;if(VtO===void 0){var wkU=document.createElement("template");_.M(wkU,"\x3c!--css-build:shady--\x3e");wkU.content.insertBefore(MtV().content.cloneNode(!0),wkU.content.firstChild);VtO=wkU}KpZ=VtO;QHi.call(gei,KpZ.content);var imr=document.head,r4x=imr.appendChild,SGV;if(UpU===void 0){var Fpi=document.createElement("template");_.M(Fpi,"\x3c!--css-build:shady--\x3e");Fpi.content.insertBefore(mpQ().content.cloneNode(!0),Fpi.content.firstChild);UpU=Fpi}SGV=UpU;r4x.call(imr,SGV.content);var LpQ,kIU=function(){return LpQ!==void 0?LpQ:LpQ=document.createElement("template")};
document.head.appendChild(kIU().content);var NwQ;_.hb=new _.WE("DARK_THEME_TOKEN");var T0j=new _.uK("accessibilityProperties");var Hf_=new _.uK("layoutProperties");var x_g=new _.uK("imageType");var DpM={};if("ytAttributedStringLinkHoverColor"in DpM)throw Error("fh`ytAttributedStringLinkHoverColor");(function(p,y){DpM[p]="value"in y&&"unit"in y?l5j(p,y):function(l){try{return y(l)}catch(q){throw Error("dh`"+p+"`"+q.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var HmP=function(p){var y=this;this.holdTime=p===void 0?500:p;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(l){var q=new CustomEvent("LONG_PRESS"),t;(t=l.changedTouches[0].target)==null||t.dispatchEvent(q)};
this.ontouchstart=function(l){y.longPressTimeout=_.Xp(_.TR,function(){y.onlongpress(l);y.longPressOccurred=!0},y.holdTime)};
this.ontouchmove=function(){_.TR.cancelJob(y.longPressTimeout);y.longPressTimeout=NaN;y.longPressOccurred=!1;y.moveOccurred=!0};
this.ontouchend=function(l){if(y.longPressTimeout&&!y.longPressOccurred&&!y.moveOccurred){var q;(q=l.changedTouches[0].target)==null||q.dispatchEvent(new Event("click"))}_.TR.cancelJob(y.longPressTimeout);y.longPressTimeout=NaN;y.longPressOccurred=!1;y.moveOccurred=!1}};var Pit=function(p,y){HmP.call(this,y);var l=this;this.callback=p;this.onlongpress=function(q){var t;(t=l.callback)==null||t.call(l,q)}};
_.A(Pit,HmP);var A_m=function(p,y){var l=Object.assign({},y);p=_.c(new Map([["ontouchstart",p.ontouchstart],["ontouchend",p.ontouchend],["ontouchmove",p.ontouchmove]]));for(var q=p.next(),t={};!q.done;t={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},q=p.next()){var E=_.c(q.value);q=E.next().value;E=E.next().value;t.eventName$jscomp$101=q;t.eventHandler$jscomp$1=E;y[t.eventName$jscomp$101]=function(e){return function(C){var u;(u=l[e.eventName$jscomp$101])==null||u.call(l,C);(0,e.eventHandler$jscomp$1)(C)}}(t)}};_.aK=new _.WE("COMMAND_HANDLER_TOKEN");var scu=new _.uK("parallelCommand");var J_6=new _.uK("performOnceCommand");var ElR=new _.uK("serialCommand");var c_t=void 0;var TwO=function(){this.data=[];this.consumer=null};
TwO.prototype.push=function(p){this.consumer?this.consumer(p):this.data.push(p)};var mV={};_.nr(mV,void 0,"sgPmTd");_.nr(null,void 0,"jypsq");_.nr(null,void 0,"mWiOof");var dc8=new TwO;var m_R=[MjU,VjU,g6B,KLU,QgO,Z8V,wtM,i8B];var N0L=new _.uK("bracketTextDecorator");var c$=new _.uK("highlightTextDecorator");_.up=new _.WE("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var r_u=function(){},xp$;
(xp$=window.requestIdleCallback)==null||xp$.bind(window);var Fv_={calledOnce:!1,state:"visible"},Shj={calledOnce:!1,state:"hidden"};var Bwv=new _.WE("ICON_WIZ_COMPONENT_TOKEN");_.DR=_.aF(function(p){var y=p.icon;var l=p.active;var q=p.className;var t=p.style;var E=p.dataSelected;var e=p.dataDisabled;var C=p.role;var u=p.animateIcon;var a=p.themeOverride;var m=p.ariaHidden;var U=p.ariaExpanded;var b=p.ariaLabel;var P=p.tabindex;var Z=p.id;var K=p.size;var F=p.iconFilter;return _.R(_.W,{cond:y,then:function(){var L=_.WC().resolve(Bwv);return _.R(L,{icon:y,dataSelected:E,dataDisabled:e,animateIcon:u,themeOverride:a,ariaExpanded:U,tabindex:P,id:Z,active:l,size:K,role:C,className:q,
ariaHidden:m,ariaLabel:b,style:function(){return t!=null&&t()||K==null||!K()?t==null?void 0:t():"width: "+(K==null?void 0:K())+"px;height: "+((K==null?void 0:K())+"px;")},
iconFilter:F})}})},"b");
_.DR.idomCompat=!0;var tgo=window.devicePixelRatio||1;var eCj=new Map([["yt_outline_bag_black_24","bag"]]);var hG=function(p){var y=this;this.margin=.1;this.whenInViewportWithMargin=p;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){y.requestScan()});
window.addEventListener("touchend",function(){y.requestScan()});
window.addEventListener("updateui",function(){y.requestScan()});
var l=new _.hy((0,_.FZ)(this.requestScan,this),100);window.addEventListener("scroll",function(){l.fire()},!0);
window.addEventListener("resize",(0,_.FZ)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){y.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.FZ)(this.requestScan,this))};
hG.prototype.observe=function(p){this.observationTargets.includes(p)||this.observationTargets.push(p)};
hG.prototype.unobserve=function(p){this.observationTargets=this.observationTargets.filter(function(y){return y!==p})};
hG.prototype.requestScan=function(){var p=this;this.scanRequested||(XH(function(){fdM(p)}),this.scanRequested=!0)};
var fdM=function(p){var y=(1+p.margin)*(document.documentElement.clientHeight||window.innerHeight);p.observationTargets=p.observationTargets.filter(function(l){var q=l.getBoundingClientRect();(q=y>q.top&&!!q.height)&&p.whenInViewportWithMargin(l);return!q&&l.parentNode});
p.scanRequested=!1};
hG.prototype.disconnect=function(){this.observationTargets=[]};var veO,dpQ;veO=_.c(_.nr(W9t(),void 0,"O3X2wd"));_.XkM=veO.next().value;dpQ=veO.next().value;window.addEventListener("resize",function(){dpQ(W9t())});var Omx={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},oeU=void 0,zhZ=window.innerWidth,YGx=window.innerHeight;window.addEventListener("resize",function(){oeU=void 0});var Idx;if("IntersectionObserver"in window)Idx=Ukm();else{if(oeU===void 0){var pMN;pMN="matchMedia"in window?window.matchMedia(Omx.landscape+","+Omx.portrait).matches:void 0;oeU=pMN!==void 0?pMN:zhZ>=930&&YGx>=550||zhZ>=550&&YGx>=930}Idx=oeU?{observe:function(p){XH(function(){var y;(y=p.onViewportEntered)==null||y.call(p)})},
unobserve:function(){}}:new hG(function(p){XH(function(){var y;
(y=p.onViewportEntered)==null||y.call(p)})})}var aj5=Idx;var y_r=_.aF(function(p){var y=!1,l=_.sM("img",function(q){_.TP(function(){y=!0;q.onload=null})});
_.NA(function(){var q,t=(q=p.data)==null?void 0:q.call(p),E,e=(E=p.getSrc)==null?void 0:E.call(p).cb,C;q=(C=p.config)==null?void 0:C.call(p);if(C=l.value)if(E=function(a,m){if(!y)return e?e(a,m):a},bkR(C,q),_.n("web_image_dont_reload_same_src")&&jVt(C,t,E))_.n("web_image_dont_reload_same_src_simulate_load")&&C.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var u;$kl(C,t||null,E,q,(u=p.lazy)==null?void 0:u.call(p))}},"v0I2p");
return _.R("img",{el:l})},"c");
y_r.idomCompat=!0;_.W$=_.aF(function(p){var y=function(){var l,q=p.data(),t,E,e,C,u,a,m,U,b,P,Z,K,F,L,T,O,f,v,z,sc,hR,Wt,AR,Qu,jj,x6,L8,Y6,AZ;var cU={contentMode:(t=p.contentMode)==null?void 0:t.call(p),loadedClass:(E=p.loadedClass)==null?void 0:E.call(p),isPreloaded:(e=p.isPreloaded)==null?void 0:e.call(p),notifyOnLoaded:(C=p.notifyOnLoaded)==null?void 0:C.call(p),notifyOnUnloaded:(u=p.notifyOnUnloaded)==null?void 0:u.call(p),preferredThumbnail:(a=p.preferredThumbnail)==null?void 0:a.call(p),preserveHeight:(m=p.preserveHeight)==
null?void 0:m.call(p),preserveWidth:(U=p.preserveWidth)==null?void 0:U.call(p),objectPosition:(b=p.objectPosition)==null?void 0:b.call(p),targetWidth:(P=p.targetWidth)==null?void 0:P.call(p),targetHeight:(Z=p.targetHeight)==null?void 0:Z.call(p),shouldShowPlaceholder:(K=p.shouldShowPlaceholder)==null?void 0:K.call(p),useWidth:(F=p.useWidth)==null?void 0:F.call(p),isToggled:(L=p.isToggled)==null?void 0:L.call(p),alt:(T=p.alt)==null?void 0:T.call(p),className:(O=p.className)==null?void 0:O.call(p),
onerror:p.onerror,onload:p.onload,style$:((f=p.style$)==null?void 0:f.call(p))||((v=p.style)==null?void 0:v.call(p)),color:(z=p.color)==null?void 0:z.call(p),width:(sc=p.width)==null?void 0:sc.call(p),height:(hR=p.height)==null?void 0:hR.call(p),"aria-hidden$":(Y6=(Wt=p["aria-hidden$"])==null?void 0:Wt.call(p))!=null?Y6:(AR=p.ariaHidden)==null?void 0:AR.call(p),draggable:(Qu=p.draggable)==null?void 0:Qu.call(p),"data-disabled$":(AZ=(jj=p["data-disabled$"])==null?void 0:jj.call(p))!=null?AZ:(x6=p.dataDisabled)==
null?void 0:x6.call(p),size:(L8=p.size)==null?void 0:L8.call(p)};return Pug(q,cU,(l=p.hideOn404)==null?void 0:l.call(p))};
return _.R(_.L6,null,_.R(_.Sc,{when:function(){var l;return((l=y())==null?void 0:l.type)==="image"}},function(){return _.R(y_r,{data:function(){return y().image},
getSrc:{cb:function(l,q){var t=y().image.sources,E=y().config.isPreloaded,e=y().config.useWidth,C=y().config.targetWidth,u=y().config.targetHeight,a=y().config.preferredThumbnail;return _.Eu8(q,t,E,e,C,u,a)||""}},
config:function(){var l=y().config,q;for(q in l)l[q]===void 0&&delete l[q];return l},
lazy:p.renderLazy})}),_.R(_.Sc,{when:function(){var l;
return((l=y())==null?void 0:l.type)==="icon"}},function(){return _.R(_.DR,{icon:function(){return y().iconName},
role:function(){return y().config.role},
className:function(){return y().config.className},
style:function(){return y().config.style$+";width: "+(y().config.width+"px;height: ")+(y().config.height+"px;color: ")+(y().config.color+";")},
ariaLabel:function(){return y().config["aria-label$"]},
ariaHidden:function(){return y().config["aria-hidden$"]},
dataDisabled:function(){return y().config["data-disabled$"]},
active:function(){return y().config.isToggled},
size:function(){return y().config.size}})}))},"d");
_.W$.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var l5B=function(p){return function(y){return _.R(ly6,null,function(){var l=y.data(),q=_.BQ(y.config);return _.R(EM,null,function(){return void p(l,q)})})}}(gug),Mg5=_.aF(function(p){var y=function(q){var t,E=_.mR(function(b){t=xJ(function(){for(var P=_.c(m()),Z=P.next();!Z.done;Z=P.next()){Z=QVo(Z.value);
Z=typeof Z==="string"?document.createTextNode(Z):Z;if(!(Z instanceof Node)){P=new _.SM("Part is not a node",Z,typeof Z);_.Bs(P);break}b.appendChild(Z)}})}),e=U5(function(){return f5_(q())},{isEqual:Zkl}),C=_.uy(p.config),u=function(){var b,P=e();
return!((b=C())==null||!b.ariaLabel)||!(P.commandRuns&&P.commandRuns.length!==0||P.paragraphStyleRuns&&P.paragraphStyleRuns.length!==0)},a=U5(C,{isEqual:wwL}),m=function(){var b=B0u(e(),a());
XMR(b,a());return e().content?I56(e().content,b).parts:[]},U=!0;
_.NA(function(){e();a();if(U)U=!1;else{var b=m();Promise.resolve().then(function(){var P=E.value;if(P){P.innerText="";var Z;(Z=t)==null||Z();t=_.kZ(P,function(){return _.R(K9m,{parts:b})})}})}},"YlhjWd");
return _.R("span",{el:E,class:function(){return e()&&Qcl(e(),C())},
dir:function(){var b;return((b=C())==null?0:b.userInput)?"auto":void 0},
"aria-label":function(){var b;return u()?(b=C())==null?void 0:b.ariaLabel:void 0},
role:function(){return u()?"text":void 0}})},l;
return((l=p.config)==null?0:l.renderedFromFormattedString)?y(p.text):_.R(_.W,{cond:p.text,then:y})},"e");
Mg5.idomCompat=!0;_.CF=_.aF(function(p){var y=_.uy(p.text),l=ikt(p);p.renderedFromFormattedString!==void 0&&(l.renderedFromFormattedString=!0);return _.n("attr_string_reactive")?_.R(Mg5,{text:y,config:l}):_.R(_.W,{cond:function(){var q;return y()&&((q=f5_(y()))==null?void 0:q.content)},
then:function(){return _.R(l5B,{data:p.text,config:l})},
debugInstance:"Apcuac"})},"f");
_.CF.idomCompat=!0;var F9j=function(p,y,l){y=y===void 0?"unknown":y;l=l===void 0?{}:l;_.SM.call(this,p+" ("+y+")",Object.assign({},{name:"YtWcwError",tagName:y},l));Object.setPrototypeOf(this,this.constructor.prototype)};
_.A(F9j,_.SM);_.TGo=new WeakMap;_.Hkg=!1;var Dkt,xk8,NGc;_.Co=Symbol("hh");_.jw=Symbol("ih");Dkt=Symbol("jh");xk8=new Set(Object.getOwnPropertyNames(Element.prototype));NGc=Symbol("kh");var qhP=_.aF(function(p){return _.R("yt-attributed-string",{"aria-label":p.ariaLabel,hidden:p.hidden,id:p.id,class:p.className,"force-default-style":p.forceDefaultStyle},_.R(_.CF,{text:p.data,ariaLabel:p.ariaLabel,ellipsisTruncate:p.ellipsisTruncate,isOverlay:p.isOverlay,linkInheritColor:p.linkInheritColor,noPreWrap:p.noPreWrap,noWrap:p.noWrap,userInput:p.userInput,noEndpoints:p.noEndpoints,headerRuns:p.headerRuns}))},"g");
_.n("web_wiz_attributed_string")&&_.bp(qhP,"yt-attributed-string",{props:{ariaHidden:_.Co,ariaLabel:_.Co,className:_.Co,ellipsisTruncate:_.Co,isOverlay:_.Co,linkInheritColor:_.Co,noEndpoints:_.Co,noStyleRuns:_.Co,noLinkColor:_.Co,noPreWrap:_.Co,noWrap:_.Co,skipOnClick:_.Co,userInput:_.Co,headerRuns:_.Co,id:_.Co,data:_.Co,hidden:_.Co,forceDefaultStyle:_.Co,text:_.jw,stopPropagation:_.jw,disableUpgrade:_.jw,disable:_.jw,slot:_.jw}});var uQ=function(){return _.w.apply(this,arguments)||this};
_.A(uQ,_.w);uQ.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},gug(this.data,this.config))};
_.H([_.V(WpN),_.x("design:type",Object)],uQ.prototype,"ytIdomTemplatingBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],uQ.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],uQ.prototype,"ariaLabel",void 0);_.H([_.Q(),_.x("design:type",Boolean)],uQ.prototype,"disable",void 0);_.H([_.Q(),_.x("design:type",Boolean)],uQ.prototype,"ellipsisTruncate",void 0);_.H([_.Q(),_.x("design:type",Boolean)],uQ.prototype,"isOverlay",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],uQ.prototype,"linkInheritColor",void 0);_.H([_.Q(),_.x("design:type",Boolean)],uQ.prototype,"noPreWrap",void 0);_.H([_.Q(),_.x("design:type",Boolean)],uQ.prototype,"noWrap",void 0);_.H([_.Q(),_.x("design:type",Boolean)],uQ.prototype,"userInput",void 0);_.H([_.Q(),_.x("design:type",Boolean)],uQ.prototype,"noEndpoints",void 0);_.H([_.Q(),_.x("design:type",Array)],uQ.prototype,"headerRuns",void 0);
_.H([_.z9({is:"yt-attributed-string",disableElementRegistration:!0})],uQ);
_.n("web_wiz_attributed_string")||_.D(uQ,"yt-attributed-string",function(){if(NwQ===void 0){var p=document.createElement("template");_.M(p,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-attributed-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_attributed_string.yt.attributed.string.css.js--\x3e");p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
p.content.insertBefore(kIU().content.cloneNode(!0),p.content.firstChild);NwQ=p}p=NwQ;return p},{mode:2});var scQ,t7P,ou6;scQ=function(){this.firstThumbnailLoaded=!1};
_.ElZ=function(){t7P||(t7P=new scQ);return t7P};
ou6=function(p){var y=_.ElZ();y.firstThumbnailLoaded||(y.firstThumbnailLoaded=!0,_.fy("ftl",p))};
scQ.prototype.reset=function(){this.firstThumbnailLoaded=!1};var fjo=0,Okj=new WeakMap,Xwj=0,P$=new Set;var J_x,c_U=function(){return J_x!==void 0?J_x:J_x=document.createElement("template")};
document.head.appendChild(c_U().content);var ez$;var pva,lPg,Ri;_.MW=_.l_.caches;Ri=function(){};
Ri.prototype.open=function(p){return _.MW.open(hzQ(p))};
Ri.prototype.has=function(p){return _.MW.has(hzQ(p))};
Ri.prototype.delete=function(p){return _.MW.delete(hzQ(p))};
Ri.prototype.match=function(p,y){var l=this,q,t,E,e,C,u;return _.h(function(a){switch(a.nextAddress){case 1:return a.yield(l.keys(),2);case 2:q=a.yieldResult,t=_.c(q),E=t.next();case 3:if(E.done){a.jumpTo(5);break}e=E.value;return a.yield(l.open(e),6);case 6:return C=a.yieldResult,a.yield(C.match(p,y),7);case 7:if(u=a.yieldResult)return a.return(u);E=t.next();a.jumpTo(3);break;case 5:return a.return()}})};
var qlo=function(){};
_.A(qlo,Ri);var hzQ=function(p){if(p.includes(":"))throw Error("nh`"+p);return p+":"+_.iv("CacheStorage get")};
qlo.prototype.keys=function(){var p,y,l,q,t,E,e,C,u;return _.h(function(a){if(a.nextAddress==1)return p=[],y=_.iv("CacheStorage keys"),a.yield(_.MW.keys(),2);l=a.yieldResult;q=_.c(l);for(t=q.next();!t.done;t=q.next())E=t.value,e=_.IjR(E),C=e.originalName,u=e.datasyncId,u===y&&p.push(C);return a.return(p)})};var W_=function(){var p=_.w.apply(this,arguments)||this;p.objectURL=null;p.loadTime=Infinity;return p};
_.A(W_,_.w);_.J=W_.prototype;_.J.renderIdom=function(){YeR(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&nut(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.J.objectFitToContentMode=function(p){switch(p){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.J.logThumbnailFailureVe=function(){var p=_.fY(197497);_.Vv(_.Ll(),p);var y=_.B2();y&&p&&y&&_.qs(y,[p])};
_.J.loadImageFromCacheIfExists=function(p){var y=this,l=p.target;(l==null?0:l.src)&&t3g(l.src).then(function(q){y.objectURL=_.du(q).toString();y.setSrc(l,y.objectURL)}).catch(function(){})};
_.J.onError=function(p){var y=this;if(_.n("web_use_cache_for_image_fallback")){var l=p.target;l&&t3g(l.src).then(function(q){y.objectURL=_.du(q).toString();y.setSrc(l,y.objectURL)}).catch(function(){_.n("kevlar_woffle_log_thumbnail_failure_ve")&&y.logThumbnailFailureVe();
_.n("kevlar_woffle_fallback_image")&&y.setSrc(l,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.J.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.J.setConfig=function(){var p=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(y){p.loadImageFromCacheIfExists(y);p.revokeObjectURL();zCc(p.hostElement)},
onerror:function(y){p.onError(y)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.n("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.J.setSrc=function(p,y){y&&(p.src=y)};
_.H([_.V(WpN),_.x("design:type",Object)],W_.prototype,"ytIdomTemplatingBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],W_.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",String)],W_.prototype,"alt",void 0);_.H([_.Q(),_.x("design:type",Boolean)],W_.prototype,"ftlEligible",void 0);_.H([_.Q(),_.x("design:type",Number)],W_.prototype,"height",void 0);_.H([_.Q(),_.x("design:type",Boolean)],W_.prototype,"notifyOnLoaded",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],W_.prototype,"notifyOnUnloaded",void 0);_.H([_.Q(),_.x("design:type",String)],W_.prototype,"objectFit",void 0);_.H([_.Q(),_.x("design:type",String)],W_.prototype,"objectPosition",void 0);_.H([_.Q(),_.x("design:type",String)],W_.prototype,"preferredThumbnail",void 0);_.H([_.Q(),_.x("design:type",Boolean)],W_.prototype,"preserveHeight",void 0);_.H([_.Q(),_.x("design:type",Boolean)],W_.prototype,"preserveWidth",void 0);
_.H([_.Q({value:!0}),_.x("design:type",Boolean)],W_.prototype,"useWidth",void 0);_.H([_.Q({value:function(){return!_.o4("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.x("design:type",Boolean)],W_.prototype,"shouldRenderLazy",void 0);_.H([_.Q(),_.x("design:type",Number)],W_.prototype,"width",void 0);_.H([_.z9({is:"yt-image",disableElementRegistration:!0})],W_);
_.D(W_,"yt-image",function(){if(ez$===void 0){var p=document.createElement("template");_.M(p,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_image.yt.image.css.js--\x3e");p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);p.content.insertBefore(c_U().content.cloneNode(!0),p.content.firstChild);
ez$=p}p=ez$;return p},{mode:2});var ai=function(){return _.w.apply(this,arguments)||this};
_.A(ai,_.w);ai.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var p=_.yM(this.data.onVisibleCommand);p&&this.ytComponentBehavior.resolveCommand(p)}};
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],ai.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ai.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.JG.YtVisibilityBehavior),_.x("design:type",Object)],ai.prototype,"ytVisibilityBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ai.prototype,"data",void 0);_.H([_.z9({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],ai);
_.D(ai,"yt-bumper-user-edu-content-view-model",function(){if(CnO===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bumper-user-edu-content-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_bumper_user_edu_content_view_model.yt.bumper.user.edu.content.view.model.css.js--\x3e<div id="bumper-content" class="style-scope yt-bumper-user-edu-content-view-model">\n  <yt-image id="icon" data="[[data.image]]" height="16" class="style-scope yt-bumper-user-edu-content-view-model"></yt-image>\n  <div id="message-block" class="style-scope yt-bumper-user-edu-content-view-model">\n    <yt-attributed-string id="message" data="[[data.text]]" class="style-scope yt-bumper-user-edu-content-view-model"></yt-attributed-string>\n  </div>\n</div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;hhM===void 0&&(hhM=document.createElement("template"));var q=hhM;l.call(y,q.content.cloneNode(!0),p.content.firstChild);CnO=p}p=CnO;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var CiM;var uhi,Rz$=function(){if(uhi!==void 0)return uhi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-name="[[is]] countdown" target-timestamp="[[endTimestamp]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;CiM===void 0&&(CiM=document.createElement("template"));var q=CiM;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return uhi=p};var Wvr;_.m$={};Wvr=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"]);_.m$.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var p=this.getContext_();return p?p.getTaskManager():_.TR},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var p=_.Ub(this.hostElement,"yt-get-context-provider",{});p.detail&&p.detail.contextProvider?this.cachedProviderNode_=p.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return Wvr.has(this.hostElement.localName)},
getNetworkManager:function(){var p=this.getContext_();if(p)return p.getNetworkManager()}};var CJR,a5r,U_N,m_Z;_.Ud=function(p){var y=a5r.get(p);if(y&&(y=y.pop()))return m_Z++,y;U_N++;try{var l=document.createElement(p)}catch(q){throw new _.SM("ElementPool failed to create element",p,q.message);}return l};
CJR=function(p){var y=p.is;if(y){var l=a5r.get(y);l||(l=[],a5r.set(y,l));var q=_.OY("ELEMENT_POOL_CONFIG")||{};l.length>=(q[y]!==void 0?q[y]:_.OY("ELEMENT_POOL_DEFAULT_CAP",0))||l.push(p)}else _.vs(new _.SM("Element pool should only handle custom elements:",p.nodeName))};
a5r=new Map;U_N=0;m_Z=0;var VM=new WeakMap,him=new WeakMap;var jcZ;_.$5=function(p,y,l){l=l===void 0?_.B3():l;this.JSC$13677_defaultPriority=p;this.signal=y;this.scheduler=l;this.nextJobDescriptor=0;this.JSC$13677_parkedJobs=[];this.scheduledJobs=new Map};
_.js=function(p,y){if(y){var l=_.qB();p.signal&&!_.sX(l,p.signal)?(l.addListener(p.signal,function(){p.processSignal()}),p.JSC$13677_parkedJobs.push({job:y,
priority:void 0})):$_r(p,y)}};
jcZ=function(p,y){if(y!==p.JSC$13677_defaultPriority){p.JSC$13677_defaultPriority=y;for(var l=_.c(p.scheduledJobs.values()),q=l.next();!q.done;q=l.next())q=q.value,p.scheduler.cancelJob(q.jobId),q.jobId=p.scheduler.addJob(q.jobWrapper,y)}};
_.$5.prototype.flushJobs=function(){jcZ(this,10);this.processSignal()};
_.$5.prototype.cancel=function(){for(var p=_.c(this.scheduledJobs),y=p.next();!y.done;y=p.next()){var l=_.c(y.value);y=l.next().value;l=l.next().value;this.scheduler.cancelJob(l.jobId);this.scheduledJobs.delete(y)}this.JSC$13677_parkedJobs=[]};
_.$5.prototype.processSignal=function(){for(var p=_.c(this.JSC$13677_parkedJobs),y=p.next();!y.done;y=p.next())y=y.value,$_r(this,y.job,y.priority);this.JSC$13677_parkedJobs=[]};
var $_r=function(p,y,l){l=l||p.JSC$13677_defaultPriority;if(l===10)Ab(y);else{var q=p.nextJobDescriptor++,t=function(){y();p.scheduledJobs.delete(q)},E=p.scheduler.addJob(t,l);
p.scheduledJobs.set(q,{jobWrapper:t,jobId:E,priority:l})}};_.uX(aPR);var mzl={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};tYR({beforeVisit:function(p){if(Gp.has(p.type)){var y;(y=p.props).idomKey!=null||(y.idomKey=p.type)}else p.type.TAG_NAME&&(by=p.type.TAG_NAME)},
afterRender:function(p,y){var l;by=(l=y==null?void 0:y.type)!=null?l:""},
didPatch:function(){by=""}});var bfN;_.bQ={};bfN={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.bQ.YtRendererstamperBehavior=[_.m$.YtTaskEmitterBehavior,{mappings:null,stampDom:null,rendererStamperLogger_:null,beforeRegister:function(){this.configureRendererStamper&&typeof this.configureRendererStamper==="function"&&(this.stampDom?this.stampDom=Object.assign({},this.stampDom,this.configureRendererStamper()):this.stampDom=this.configureRendererStamper());this.stampDom&&this.addStampDomObservers_()},
created:function(){this.deferredBindingTasks_=[];this.renderJobsMap_=Object.create(null);this.hasDataPath_=Object.create(null);this.stampDom&&this.addStampDomObserverFns_();this.telemetry_={};this.resetTelemetry_()},
resetTelemetry_:function(){this.telemetry_.create=0;this.telemetry_.reuse=0},
addStampDomObservers_:function(){if(this.useSignals)for(var p in this.stampDom){var y=this.stampDom[p];y&&y.id&&this.addReactiveSchema({type:"observe",method:{methodName:Jzg(y.id),args:[{type:"wildcard",path:p}]}})}else{(p=(this.constructor.generatedFrom||this).observers)||(p=[]);for(y in this.stampDom){var l=this.stampDom[y];l&&l.id&&p.push(Jzg(l.id)+"("+y+".*)")}this.constructor.generatedFrom.observers=p}},
addStampDomObserverFns_:function(){for(var p in this.stampDom){var y=this.stampDom[p];y.id?(this[Jzg(y.id)]=this.rendererStamperObserver_.bind(this,p,y.id),this.hasDataPath_[p]=!1):(y=new _.SM("Bad rendererstamper config",this.is+":"+p),_.Bs(y))}},
rendererStamperObserver_:function(p,y,l){if(l.path==p){if(l.value===void 0&&!this.hasDataPath_[p])return;this.hasDataPath_[p]=l.value!==void 0}this.rendererStamperApplyChangeRecord_(p,y,l)},
rendererStamperApplyChangeRecord_:function(p,y,l){var q=this.renderJobsMap_[y],t=null;p==l.path?(l=l.value,_.zl(l)||(l=l===void 0||l===null?[]:[l]),p=this.stampDom[p],p.mapping&&(t=this.stampDomArray_.bind(this,l,y,p.mapping,p.reuseComponents,p.events,p.stamperStableList)),q&&q.cancel(),l=p.usePageScheduler?this.getTaskManager():void 0,q||p.initialRenderPriority==void 0)?p.renderPriority==void 0||q||(q=new _.$5(p.renderPriority,p.waitForSignal,l),this.renderJobsMap_[y]=q):(q=new _.$5(p.initialRenderPriority,
p.waitForSignal,l),this.renderJobsMap_[y]=q,t=function(E,e){E();jcZ(e,10)}.bind(this,t,q)):t=p+".splices"==l.path?this.stampDomArraySplices_.bind(this,p,y,l.value):this.forwardRendererStamperChanges_.bind(this,p,y,l);
q?_.js(q,t):t()},
forwardRendererStamperChanges_:function(p,y,l){var q=l.path.slice(p.length+1),t=this.getStampContainer_(y),E=q.indexOf("."),e=q.substring(0,E),C=!1,u=0,a=parseInt(e,0);if(e[0]=="#"){C=parseInt(e.substring(1),0);a=this.get(p);var m=this.get([p,e]);a[C]==m?u=C:u=a.indexOf(m);C=!0}else isNaN(a)||(u=a,C=!0);C&&(q=q.substring(e.length+1),E=q.indexOf("."));e=_.FK(t).children[u];var U;if(t=(U=e==null?void 0:e.polymerController)!=null?U:e)q="data"+q.slice(E),typeof t.notifyPath!=="function"?_.vs(new _.SM("notifyPath missing",
this.is+": "+p+", "+y)):l.value?t.notifyPath(q,l.value):t.notifyPath(q)},
stampDomArraySplices_:function(p,y,l){if(l&&l.indexSplices){var q=this.getStampContainer_(y);if(q){for(var t=_.FK(q),E=ei8(this.stampDom[p].reuseComponents),e=l.indexSplices.length,C=0;C<e;C++){for(var u=l.indexSplices[C],a=t.children[u.index],m=u.removed.length;m>0;m--)a&&a.parentElement&&(_.FK(a.parentElement).removeChild(a),E&&CJR(a),a=t.children[u.index]);m=this.stampDom[p].mapping;for(var U=u.index+u.addedCount,b=document.createDocumentFragment(),P=E,Z=u.index;Z<U;Z++){var K=u.object[Z],F=Eb6(m,
K);if(F){var L=m[F];K=K[F];F=this.getComponentName_(L,K);var T=a?VM.has(a):!1;P&&a&&a.is==F&&T?(F=a,this.telemetry_.reuse++,a=a.nextElementSibling):P&&a&&T?(F=this.createComponent_(L,K,E),T=_.FK(a).nextElementSibling,t.insertBefore(F,T),Rij(this.is,t,a,E),a=T):(P=!1,F=this.createComponent_(L,K,E),b.appendChild(F));this.deferRenderStamperBinding_(F,L,K)}else L=new _.SM("Unimplemented type",p,y,q.tagName,Object.keys(K)[0]),_.Bs(L)}t.insertBefore(b,a)}this.flushRenderStamperComponentBindings_();this.stampDom[p].events&&
_.Ub(this.hostElement,"yt-rendererstamper-finished",{container:q})}else p=new _.SM("Container object not found",y,this.hostElement?this.hostElement.is:""),_.Bs(p)}},
stampDomArray_:function(p,y,l,q,t,E){var e=this.getStampContainer_(y);if(e)if(y=_.FK(e),q=ei8(q),p){var C=0,u=0,a;if(E=E===void 0?_.o4("STAMPER_STABLE_LIST",!1):E||!1)for(a=y.firstElementChild;a&&!VM.has(a)&&p.length>u;){E=p[u];var m=Eb6(l,E);if(m){if(this.getComponentName_(l[m],E[m])!=a.is){var U=this.createComponent_(l[m],E[m],q),b=_.FK(a).nextElementSibling;b?y.insertBefore(U,b):y.appendChild(U);Rij(this.is,y,a,q);a=U}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(a,l[m],E[m]);C++;
u++;a=_.FK(a).nextElementSibling}else u++}WKc(this.is,y,C,q);C=a;if(p.length>u){E=document.createDocumentFragment();for(m=p.length;u<m;u++)if(U=p[u],b=Eb6(l,U))a=this.createComponent_(l[b],U[b],q),this.deferRenderStamperBinding_(a,l[b],U[b]),E.appendChild(a);C&&_.FK(C).parentNode&&a&&!VM.has(a)?y.insertBefore(E,C):y.appendChild(E)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();t&&_.Ub(this.hostElement,"yt-rendererstamper-finished",{container:e})}else WKc(this.is,y,0,
q);else p=new _.SM("Container object not found",y,this.hostElement?this.hostElement.is:""),_.Bs(p)},
getStampContainer_:function(p){return this.$&&this.$[p]||_.jR(this.hostElement).querySelector("#"+p)},
getComponentName_:function(p,y){return typeof p==="string"?p:p.matcher?p.matcher.call(this,y):p.component},
createComponent_:function(p,y,l){p=this.getComponentName_(p,y);try{var q=PL.has(p)||Gp.has(p);if(l&&!q){var t=_.Ud(p);try{_.Ax(t)}catch(E){l="Failed to clear styles for "+p+".",E.message&&(l+=" Original error: "+E.message),_.vs(new _.SM(l))}}else t=document.createElement(p)}catch(E){return t="YtRendererStamperBehavior failed to create "+p+".",E.message&&(t+=" Original description: "+E.message),E.message="YtRendererStamperBehavior failed to create element",_.X$(E,t),bfN.hasOwnProperty(p)?_.vs(E):_.Bs(E),
document.createElement("SPAN")}this.telemetry_.create++;return t},
deferRenderStamperBinding_:function(p,y,l){this.deferredBindingTasks_.push({component:p,typeOrConfig:y,data:l})},
flushRenderStamperComponentBindings_:function(){for(var p=0,y=this.deferredBindingTasks_.length;p<y;p++){var l=this.deferredBindingTasks_[p];if(!l)break;var q=void 0,t=void 0,E=void 0,e=void 0,C=l.component,u=l.typeOrConfig;l=l.data;var a=(e=C.polymerController)!=null?e:C;e=C.loggingStatus;try{e&&(e.isRendererStamper=!0);if(typeof u!=="string"){for(E in u.attributes)u.attributes[E]===!0?C.setAttribute(E,""):u.attributes[E]===!1?C.removeAttribute(E):C.setAttribute(E,u.attributes[E]);for(t in u.params)a[t]=
u.params[t],C!==a&&Hm(C.localName,t,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(q in u.properties){var m=u.properties[q];if(m){var U=cz_(m);a[q]=this.get(U);C!==a&&Hm(C.localName,q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(q==="on-tap"||q==="on-click"){var b=this.get(U);C.addEventListener("click",b);him.set(C,{property:q,listener:{type:"element",eventName:"click",handler:b}})}}else{var P=new _.SM("Undefined property binding",q);_.Bs(P)}}}if(u.classListBinding){var Z=cz_(u.classListBinding),
K=Z?this[Z]:null;if(K)for(q=0;q<K.length;q++)_.nv(C,K[q],!0)}a.data=l}finally{e&&(e.isRendererStamper=!1)}if(q=VM.get(C))C.hidden=!1,VM.delete(C),_.TR.cancelJob(q)}this.deferredBindingTasks_.length=0}}];_.no={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(p){for(var y=_.pt.getInstance(),l=_.c(Object.keys(p)),q=l.next();!q.done;q=l.next()){var t=q.value;q=p[t];if(this&&this[q]){var E=y.actionRoutingMap.get(t);E||(E=new Map,y.actionRoutingMap.set(t,E));y.registerActionHandler(this,t,this[q].bind(this),E)}else t=Error("id"),t.params=q,_.zi(t)}},
unregisterActionMap:function(p){_.lX(_.pt.getInstance(),p,this)}}]};var KY=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_"+(_.n("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.n("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.n("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",
path:_.n("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.n("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,
autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.n("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var QM;var wD=new Map;var gbj=window.matchMedia("(forced-colors: active)").matches;var nlV;var GjV;var PiV=new _.WE("LOTTIE_LOADER_TOKEN");_.GS=_.aF(function(p){var y=p.data;var l=p.className;var q=p.animationName;var t=p.animationRef;var E=p.elRefForInterop;var e=_.tK("lottie-component"),C;_.TP(function(){var a;return void((a=C)==null?void 0:a.destroy())});
var u;_.NA(function(){var a=_.BQ(q);if(a!==u){u=a;var m=Object.assign({},{animationName:a,animationRef:_.BQ(t)},_.BQ(y));try{_.WC().resolve(PiV)().then(function(P){var Z;(Z=C)==null||Z.destroy();var K,F;Z=(F=E==null?void 0:(K=E())==null?void 0:K.value)!=null?F:e.value;K=m.animationRef;F=m.listeners;P=P.loadAnimation(Object.assign({},{container:Z},m.animationConfig));K&&(K.lottieEl=P);if(F)for(Z=_.c(Object.entries(F)),K=Z.next();!K.done;K=Z.next())F=_.c(K.value),K=F.next().value,(F=F.next().value)&&
P.addEventListener(K,F);C=P})}catch(P){a=P;
var U="LottieComponent error.";a.message&&(U+=" Original description: "+a.message);_.X$(a,U);_.vs(a);var b;((b=m.listeners)==null?0:b.error)&&m.listeners.error(a)}}},"lbhvPc");
return _.R(MY5,{cond:function(){return!(E==null?0:E())},
then:function(){return _.R("lottie-component",{class:_.ip("ytLottieComponentHost",l),el:e})}})},"h");_.bp(_.aF(function(p){return _.R("ytd-lottie-player",{id:p.id,hidden:p.hidden,class:p.className,"aria-label":p.ariaLabel,style:"display: block;"},_.R(_.GS,{data:p.data,animationName:function(){var y;return((y=p.data().animationConfig)==null?void 0:y.name)||""},
animationRef:function(){return p.data().animationRef}}))},"i"),"ytd-lottie-player",{props:{data:_.Co,
id:_.Co,hidden:_.Co,className:_.Co,ariaLabel:_.Co}});var P_=function(){var p=_.w.apply(this,arguments)||this;p.animationRef={};p.delhiIconsEnabled=_.n("enable_web_delhi_icons");return p};
_.A(P_,_.w);_.J=P_.prototype;
_.J.handlePropertyChange=function(){var p=this.animatedIcon,y=this.active,l=this.isDarkTheme;if(p){var q=this.previousActive!==y;this.previousActive=y;this.animationRef.lottieEl?q&&this.toggleAnimation(y,p.totalFrames):y?this.initializeAnimationAsToggled(p.lottiePlayerProps,p.totalFrames):this.initializeAnimationAsUntoggled(p.lottiePlayerProps);p.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=p.type;this.lottiePlayerProps=this.computeLottiePlayerProps(p,l)}};
_.J.computeLottiePlayerProps=function(p,y){var l=this.deepCloneLottiePlayerProps(p);y?(y=p.nameDarkTheme,p=p.pathDarkTheme):(y=p.name,p=p.path);l.animationConfig.name=y;(y=wD.get(p))?l.animationConfig.animationData=y:l.animationConfig.path=p;return l};
_.J.initializeAnimationAsToggled=function(p,y){p.animationConfig.initialSegment=[y-1,y]};
_.J.initializeAnimationAsUntoggled=function(p){p.animationConfig.initialSegment=void 0};
_.J.toggleAnimation=function(p,y){if(p){var l;(l=this.animationRef.lottieEl)==null||l.playSegments([0,y],!0)}else{var q;(q=this.animationRef.lottieEl)==null||q.playSegments([0,1],!0)}};
_.J.deepCloneLottiePlayerProps=function(p){var y=Object.assign({},p.lottiePlayerProps.animationConfig);p=Object.assign({},p.lottiePlayerProps);p.animationConfig=y;return p};
P_.prototype.handlePropertyChange=P_.prototype.handlePropertyChange;_.H([_.Q(),_.x("design:type",Object)],P_.prototype,"animatedIcon",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],P_.prototype,"active",void 0);_.H([_.Q(),_.x("design:type",Boolean)],P_.prototype,"isDarkTheme",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],P_.prototype,"animatedIconType",void 0);_.H([_.Q(),_.x("design:type",Boolean)],P_.prototype,"previousActive",void 0);
_.H([_.Q(),_.x("design:type",Object)],P_.prototype,"lottiePlayerProps",void 0);_.H([_.Q(),_.x("design:type",Object)],P_.prototype,"animationRef",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],P_.prototype,"delhiIconsEnabled",void 0);_.H([_.gd("animatedIcon","active","isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],P_.prototype,"handlePropertyChange",null);_.H([_.z9({is:"yt-animated-icon",disableElementRegistration:!0})],P_);
_.D(P_,"yt-animated-icon",function(){if(GjV===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;nlV===void 0&&(nlV=document.createElement("template"));var q=nlV;l.call(y,q.content.cloneNode(!0),p.content.firstChild);GjV=p}p=GjV;return p},{mode:2});var A_r;var Zf$;var Sl5=_.aF(function(p){var y=_.tK("span"),l=Bu(function(){return{value:null}});
_.TP(function(){var t;(t=l.value)==null||t.cancel()});
var q=_.MA(p.data,{equals:function(t,E){return t.iconName===E.iconName&&t.iconStyle===E.iconStyle&&t.iconSize===E.iconSize&&t.iconSetName===E.iconSetName&&t.iconSelected===E.iconSelected}},"aoiXAb");
_.NA(function(){var t,E=(t=p.options)==null?void 0:t.call(p);rzc(y,l,q(),E)},"QXgxJd");
return _.R("span",{class:"yt-icon-shape",el:y})},"j");
Sl5.idomCompat=!0;var UqR=["youtube_fill","youtube_outline"];var M7U=new _.Tb({type:"iconset",value:void 0}),AG=function(){var p=_.w.apply(this,arguments)||this;p.isDarkTheme=document.documentElement.hasAttribute("dark");p.iconName="";p.iconsetName="yt-icons";p.iconset=null;p.missingIconSet=!1;p.iconType=null;p.iconShapeDataSignal=_.nr(void 0,void 0,"RQ9kUb");p.renderingOptionsSignal=_.nr({iconWidth:"100%",iconHeight:"100%",iconFilter:p.iconFilter},void 0,"qtx8Ef");p.wizHasRendered=!1;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.A(AG,_.w);AG.prototype.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&(this.isDarkTheme=p)};
AG.prototype.handlePropertyChange=function(){var p=this,y,l,q,t,E,e,C,u,a,m,U,b,P,Z,K,F,L;return _.h(function(T){switch(T.nextAddress){case 1:if(y=!p.icon&&!p.iconName||!p.isAttached)return T.return();l=p;q=l.icon;t=l.size;E=l.defaultToFilled;e=l.active;C=l.targetContainer;p.toggleContainerClass(C);_.n("kevlar_use_wil_icons")&&q&&(u=Cna(q),p.iconType=u.length?u[1]:null);if(q){T.jumpTo(2);break}p.iconsetName="";p.iconName="";return T.yield(p.renderIcon(C,q),3);case 3:return T.return();case 2:a=V7P(q);
m=Cna(a);m.length&&(p.iconsetName=m[0],p.iconName=m[1]);if(!_.n("kevlar_use_wil_icons")){T.jumpTo(4);break}U=AG;b=gli;P=p.iconType;Z=p.active;K=p.defaultToFilled;F=p.size;L=p.iconsetName;return T.yield(QcM(),6);case 6:return T.yield(b.call(U,P,Z,K,F,L,T.yieldResult),5);case 5:p.iconShapeData=T.yieldResult;case 4:if(p.shouldRenderIconShape(C)){T.jumpTo(7);break}return T.yield(p.determineIconSet(a,e,E,t,C),7);case 7:return T.yield(p.renderIcon(C,q),0)}})};
AG.prototype.toggleContainerClass=function(p){p?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var V7P=function(p){return!_.n("default_to_innertube_icon")||p.indexOf(":")>0?p:_.QZ(p)};
_.J=AG.prototype;_.J.determineIconSet=function(p,y,l,q){var t=this;return _.h(function(E){return E.nextAddress==1?_.n("kevlar_system_icons")||_.OY("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.OY("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?E.yield(t.switchToYtSysIconset(p,y,l,q),3):E.jumpTo(2):E.nextAddress!=2?E.return():E.yield(t.useYtSysIconsetForMissingIcons(p,y,l,q),0)})};
_.J.switchToYtSysIconset=function(p,y,l,q){var t=this,E,e,C,u,a,m,U;return _.h(function(b){switch(b.nextAddress){case 1:if(!p||t.iconsetName!=="yt-icons"&&t.iconsetName!=="yt-sys-icons"){b.jumpTo(0);break}E=Cna(p);e=E[1];e=_.neL(e);_.n("enable_polymer_icons_replace_underscores_dash")&&e.includes("_filled")&&(e=e.replace(/_filled/g,"-filled"));return b.yield(gW(e,!0),3);case 3:return C=b.yieldResult,b.yield(gW(e,!1),4);case 4:if((u=b.yieldResult)||y&&C)t.iconsetName="yt-sys-icons";t.iconName=t.getIconName(e,
y,l,u,C);if(q===24){b.jumpTo(0);break}a="yt-sys-icons"+q+":"+t.iconName;return b.yield(gW(a,!1,!0),6);case 6:return m=b.yieldResult,b.yield(gW(a,!0,!0),7);case 7:U=b.yieldResult;t.iconName=t.getIconName(e,y,l,m,U);if(!y&&m||y&&U)t.iconsetName="yt-sys-icons"+q;_.rR(b)}})};
_.J.getIconName=function(p,y,l,q,t){p.includes("-filled")&&(p=p.replace("-filled",""));return t&&(y||l)?p+"-filled":p};
_.J.useYtSysIconsetForMissingIcons=function(p,y,l,q){var t=this,E,e;return _.h(function(C){if(C.nextAddress==1)return t.iconsetName!=="yt-icons"?C.jumpTo(0):C.yield(gW(t.iconName,!1,!1,!0),3);if(C.nextAddress!=4)return E=C.yieldResult,C.yield(gW(t.iconName,!1),4);e=C.yieldResult;if(E||!e)return C.jumpTo(0);t.iconsetName="yt-sys-icons";return C.yield(t.switchToYtSysIconset(p,y,l,q),0)})};
_.J.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var QcM=function(){return _.h(function(p){try{return p.return(_.WC().resolve(_.Kl))}catch(y){return p.return(new Promise(function(l){_.qB().parkOrScheduleJob(function(){l(_.WC().resolve(_.Kl))},2,"ci")}))}})},gli=function(p,y,l,q,t,E){q=q===void 0?24:q;
if(p){p=p.toLowerCase();var e=p.endsWith("_filled")||p.endsWith("-filled");y={iconName:p,iconStyle:(y===void 0?0:y)||(l===void 0?0:l)||e?"youtube_fill":"youtube_outline",iconSize:q,iconSetName:t===void 0?"yt-icons":t};l=!!E.resolveIcon(y);l||(y.iconSize=void 0,l=!!E.resolveIcon(y));!l&&e&&(y.iconName=p.substring(0,p.length-7),y.iconSize=q,l=!!E.resolveIcon(y),l||(y.iconSize=void 0,l=!!E.resolveIcon(y)));l||(y.iconStyle=void 0,l=!!E.resolveIcon(y));l||_.vs(new _.SM("Icon not supported",{iconName:y.iconName,
iconStyle:y.iconStyle,iconSize:y.iconSize,iconType:p}));return l?y:void 0}};
_.J=AG.prototype;_.J.shouldRenderIconShape=function(p){if(!_.n("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;p=this.getContainer(p);return!Qtl(p,this.icon)};
_.J.renderIcon=function(p,y){var l=this,q,t,E,e,C,u,a,m;return _.h(function(U){switch(U.nextAddress){case 1:if(y&&l.icon!==y)return U.return();q=l.getContainer(p);t=Qtl(q,l.icon);if(l.shouldRenderIconShape(p)&&l.iconType)return l.applyIconShape(t,q),U.return();l.removeIconShape();if(!q)return U.return();l.iconName===""&&l.iconset&&q&&(l.removeStaticIcon(l.iconset,q),t&&l.removeAnimatedIcon(q));if(l.iconName===""&&l.iconset||!l.iconsetName||!M7U)return U.return();l.iconset=M7U.byKey(l.iconsetName);
if(!l.iconset)return l.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.MH(l,l.onIconsetAdded)),U.return();l.missingIconSet&&(l.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.MH(l,l.onIconsetAdded)));e=(E=t||l.isAnimatedIcon?V3u(l.icon):void 0)&&!E.lazyLoad;u=E&&((C=E)==null?void 0:C.lazyLoad)&&(E.lottiePlayerProps.animationConfig.animationData?!0:wD.get(l.isDarkTheme?E.pathDarkTheme:E.path)?!0:!1);if(e||u)return l.applyAnimatedIcon(q,E,l.iconset),U.return();if(u||
(a=E)==null||!a.lazyLoad){U.jumpTo(2);break}m=wvo(E,l.isDarkTheme);l.applyStaticIcon(l.iconset,q,l.iconName,p,t);return U.yield(m,3);case 3:return U.yield(l.renderIcon(l.targetContainer,l.icon),4);case 4:return U.return();case 2:l.applyStaticIcon(l.iconset,q,l.iconName,p,t),_.rR(U)}})};
_.J.getContainer=function(p){var y,l=(y=KAa(this.hostElement))==null?void 0:y.host;y=!!l&&!!l.polymerController;if(!p||y)return p?this.getTargetContainer(p,l):this.hostElement};
_.J.getTargetContainer=function(p,y){var l=_.jR(y).querySelector("#"+p);l||(p=new _.SM("yt-icon container missing",y.is,p),_.Bs(p));return l};
_.J.applyStaticIcon=function(p,y,l,q,t){t&&this.removeAnimatedIcon(y);this.removeIconShape();t=t&&!!this.iconType&&!!this.iconShapeData&&_.n("kevlar_use_wil_icons");try{t?this.applyIconShape(!1,y):p.applyIcon(y,l)}catch(E){this.handleError(E,q,y)}};
_.J.applyIconShape=function(p,y){this.iconset&&y&&(this.removeStaticIcon(this.iconset,y),p&&this.removeAnimatedIcon(y));p={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var l=_.c(this.iconShapeDataSignal);y=l.next().value;l=l.next().value;var q=_.c(this.renderingOptionsSignal),t=q.next().value;q=q.next().value;l(this.iconShapeData);q(p);if(!this.wizHasRendered)for(this.wizHasRendered=!0,p=_.c(FKg(y,t)).next().value;p.firstChild;)_.jR(this.hostElement).appendChild(p.firstChild)};
_.J.removeIconShape=function(){if(_.n("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.J.removeStaticIcon=function(p,y){p.removeIcon(y)};
_.J.applyAnimatedIcon=function(p,y,l){this.removeStaticIcon(l,p);this.removeIconShape();var q;l=this.animatedIconElement&&((q=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:q.type)===y.type;if(this.animatedIconElement&&l){this.animatedIconElement.polymerController.animatedIcon=y;var t;((t=this.animatedIconElement)==null?void 0:t.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(p),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=y,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.n("kevlar_use_wil_icons")?p.insertBefore(this.animatedIconElement,p.childNodes[0]):(p=_.jR(p),p.insertBefore(this.animatedIconElement,p.childNodes[0]))};
_.J.removeAnimatedIcon=function(p){_.n("kevlar_use_wil_icons")?this.animatedIconElement&&p.contains(this.animatedIconElement)&&p.removeChild(this.animatedIconElement):(p=_.jR(p),this.animatedIconElement&&p.contains(this.animatedIconElement)&&p.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.J.handleError=function(p,y,l){_.X$(p,this.iconName,y,l);y=Qtl(l,this.icon);var q=!1;window.location.href.includes("JpymaW6Lh2w")?q=!0:l._svgIcon&&(l=(l=l._svgIcon.parentNode)?l.tagName:"unknown",_.X$(p,l),l==="YT-ICON"&&p.name==="NotFoundError"?q=!0:p.name==="NotFoundError"&&y&&(q=!0));q?_.vs(p):_.Bs(p)};
_.Jh.Object.defineProperties(AG,{template:{configurable:!0,enumerable:!0,get:function(){if(Zf$===void 0){var p=document.createElement("template");_.M(p,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--\x3e");p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;
A_r===void 0&&(A_r=document.createElement("template"));var q=A_r;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Zf$=p}p=Zf$;return p}}});
AG.prototype.handlePropertyChange=AG.prototype.handlePropertyChange;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],AG.prototype,"actionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",String)],AG.prototype,"icon",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],AG.prototype,"active",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],AG.prototype,"defaultToFilled",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],AG.prototype,"isAnimatedIcon",void 0);
_.H([_.Q({value:24}),_.x("design:type",Number)],AG.prototype,"size",void 0);_.H([_.Q({value:""}),_.x("design:type",String)],AG.prototype,"targetContainer",void 0);_.H([_.Q(),_.x("design:type",Object)],AG.prototype,"animatedIconElement",void 0);_.H([_.Q(),_.x("design:type",Object)],AG.prototype,"isDarkTheme",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],AG.prototype,"ariaHidden",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],AG.prototype,"ariaLabel",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],AG.prototype,"role",void 0);_.H([_.Q(),_.x("design:type",String)],AG.prototype,"style",void 0);_.H([_.Q(),_.x("design:type",String)],AG.prototype,"iconFilter",void 0);_.H([_.gd("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],AG.prototype,"handlePropertyChange",null);_.H([_.z9({is:"yt-icon",noInjection:!0})],AG);var KvN;var wMP=function(){var p=document.body,y=p.appendChild;if(KvN===void 0){var l=document.createElement("template");_.M(l,'\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>');
KvN=l}l=KvN;y.call(p,l.content)};
document.body?wMP():window.addEventListener("DOMContentLoaded",wMP);var ifv,r_Q=function(){return ifv!==void 0?ifv:ifv=document.createElement("template")};
document.head.appendChild(r_Q().content);var ShB,FvN=function(){return ShB!==void 0?ShB:ShB=document.createElement("template")};
document.head.appendChild(FvN().content);var Lvr;_.Zu=new _.WE("KEY_MANAGER_TOKEN");var HQc={duration:1E3,easing:"ease",fill:"forwards"};_.uX(Dzt);var xzm={duration:1E3,easing:"ease",fill:"forwards"},D_$=_.aF(function(p){var y=_.sM("animated-rolling-character"),l=void 0,q=function(){var t,E;return cW((t=p.character)==null?void 0:t.call(p))||cW((E=p.previousCharacter)==null?void 0:E.call(p))};
_.NA(function(){if(p.marginMultiplier()){var t;(t=l)==null||t.cancel();if(q()){var E;t=((E=p.previousCharacter)==null?0:E.call(p))?Number(p.previousCharacter())+10:p.rollUp()?0:30;var e;if((e=p.shouldAnimate)==null||!e.call(p)){var C,u;t-=TLc((C=p.character)==null?void 0:C.call(p),(u=p.previousCharacter)==null?void 0:u.call(p),p.rollUp(),t)}}else{t=p.rollUp()?0:2;var a;(a=p.shouldAnimate)!=null&&a.call(p)||(E=t,e=p.rollUp()?-1:1,t=E-e)}y.value.style.marginTop="-"+t*p.marginMultiplier()+"px";var m;
if((m=p.shouldAnimate)==null?0:m.call(p)){var U,b;l=BLt(y.value,(U=p.character)==null?void 0:U.call(p),(b=p.previousCharacter)==null?void 0:b.call(p),p.rollUp(),t,q(),p.marginMultiplier())}else{var P;y.value.style.display=((P=p.character)==null?0:P.call(p))?"":"none"}}},"vt9b9b");
return _.R("animated-rolling-character",{el:y,class:"animated-rolling-character-wiz"},_.R(_.W,{cond:q,then:function(){return _.R(kjr,null)},
else:function(){return _.R(N0P,{character:p.character})}}))},"k");
D_$.idomCompat=!0;var fP5=_.n("web_enable_sink_animated_rolling_character_and_number")?D_$:Dzt,HfN=_.n("web_enable_sink_animated_rolling_character_and_number")?D_$:_.Sw(Dzt),kjr=_.aF(function(){for(var p=[],y=1;y<30;y++)p.push(_.R("div",null,y%10));return _.R(_.a4,null,_.R("div",null,"\u00a0"),p,_.R("div",null,"\u00a0"))},"l"),N0P=_.aF(function(p){var y=p.character;
return _.R(_.a4,null,_.R("div",null,"\u00a0"),_.R(_.W,{cond:function(){return!(y==null?0:y())||_.ej(y==null?void 0:y())},
then:function(){return _.R("div",null,"\u00a0")},
else:function(){return _.R("div",null,y)}}),_.R("div",null,"\u00a0"))},"m");_.uX(vbR);var T0B=_.aF(function(p){var y=void 0,l=void 0,q=function(){var E;return((E=p.fontSizeMultiplier)==null?0:E.call(p))?p.heightPx()*p.fontSizeMultiplier():p.heightPx()},t=_.MA(function(){if(!p.numberText())return[];
var E,e,C=((E=p.forceRollUp)==null?void 0:E.call(p))||!l||!((e=p.numberValue)==null?0:e.call(p))||l<p.numberValue(),u,a=p.numberText();E=q();e=!((u=p.shouldAnimate)==null||!u.call(p));u=[];var m=0,U=0,b=(y?y.replace(/\D/g,"").length:0)-(a?a.replace(/\D/g,"").length:0),P=y?y.split(/(\d)/).filter(Boolean):[];for(a=a.split(/(\d)/).filter(Boolean);b<0;){var Z=a[U];u.push({character:Z,rollUp:C,marginMultiplier:E,shouldAnimate:e});U++;cW(Z)&&b++}for(;m<b;)Z=P[m],u.push({previousCharacter:Z,rollUp:C,marginMultiplier:E,
shouldAnimate:e}),m++,cW(Z)||b++;for(;U<a.length;)b=a[U],Z=P[m],cW(b)===cW(Z)?(U++,m++):cW(b)?(m++,b=void 0):cW(Z)&&(U++,Z=void 0),u.push({character:b,previousCharacter:Z,rollUp:C,marginMultiplier:E,shouldAnimate:e});y=p.numberText();var K;l=(K=p.numberValue)==null?void 0:K.call(p);return u},void 0,"B9AmNd");
return _.R("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return p.numberText()?["height: "+q()+"px;","line-height: "+p.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.R(_.rT,{each:t,keyBy:"INDEX"},function(E){return _.R(HfN,{character:function(){return E().character},
previousCharacter:function(){return E().previousCharacter},
marginMultiplier:function(){return E().marginMultiplier},
rollUp:function(){return E().rollUp},
shouldAnimate:function(){return E().shouldAnimate}})}))},"n");
T0B.idomCompat=!0;_.hac=_.n("web_enable_sink_animated_rolling_character_and_number")?T0B:vbR;_.x_v=_.n("web_enable_sink_animated_rolling_character_and_number")?T0B:_.Sw(vbR);var Xv5={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.sw=_.aF(function(p){var y=_.sM("a",p.ref),l=p.aTagConfig?p.aTagConfig:_.MA(function(){var q,t,E,e,C;var u=(C=_.yM((E=p.command)==null?void 0:E.call(p)))!=null?C:(e=p.command)==null?void 0:e.call(p);return _.qW({innertubeCommand:u,skipOnClick:(q=p.skipOnClick)==null?void 0:q.call(p),defaultTarget:(t=p.target)==null?void 0:t.call(p)})||{}},void 0,"I5WLmc");
_.NA(function(){y.value._data=l()._data;y.value.params=l().params},"STb8Se");
return _.R("a",{el:y,href:function(){return l().href$},
rel:function(){return l().rel$},
class:function(){var q,t;return(t=l().className)!=null?t:(q=p.className)==null?void 0:q.call(p)},
style:function(){var q;if((q=p.style)==null?0:q.call(p))return p.style();var t;return((t=p.disabled)==null?0:t.call(p))?"pointer-events:none":""},
"aria-haspopup":function(){return!!l()["aria-haspopup$"]},
"force-new-state":LY(function(){return l()["force-new-state$"]}),
title:LY(function(){var q,t;return(t=l().title$)!=null?t:(q=p.title)==null?void 0:q.call(p)}),
role:LY(function(){var q;return((q=p.role)==null?void 0:q.call(p))||l().role$}),
target:LY(function(){return l().target$}),
dir:LY(function(){var q;return((q=p.dir)==null?void 0:q.call(p))||l().dir}),
tabindex:function(){var q;return l().tabindex$?Number(l().tabindex$):(q=p.tabIndex)==null?void 0:q.call(p)},
"aria-hidden":function(){var q,t;return(t=l()["aria-hidden$"])!=null?t:(q=p.ariaHidden)==null?void 0:q.call(p)},
"aria-label":function(){var q,t;return(t=l()["aria-label$"])!=null?t:(q=p.ariaLabel)==null?void 0:q.call(p)},
"aria-current":p.ariaCurrent,"aria-disabled":p.disabled,"aria-labelledby":p.ariaLabelledby,"aria-describedby":p.ariaDescribedby,"aria-selected":p.ariaSelected,"tab-identifier":p.tabIdentifier,"on:pointerdown":_.Ff(function(q){var t,E;return void((E=(t=l()).onpointerdown)==null?void 0:E.call(t,q))}),
"on:click":_.Ff(function(q){var t,E;(E=(t=l()).onclick)==null||E.call(t,q);var e;(e=p.onClick)==null||e.call(p,q)}),
"on:focusin":_.Ff(function(q){var t;(t=p.onFocusin)==null||t.call(p,q)}),
"on:focusout":_.Ff(function(q){var t;(t=p.onFocusout)==null||t.call(p,q)})},p.children)},"o");var B0Q=function(p,y){this.fillAnimation=new Animation(zig(p),document.timeline);this.strokeAnimation=new Animation(Ylc(y),document.timeline)};
B0Q.prototype.play=function(){var p,y;(y=(p=this.fillAnimation).play)==null||y.call(p);var l,q;(q=(l=this.strokeAnimation).play)==null||q.call(l)};
B0Q.prototype.cancel=function(){var p,y;(y=(p=this.fillAnimation).cancel)==null||y.call(p);var l,q;(q=(l=this.strokeAnimation).cancel)==null||q.call(l)};_.xS=_.aF(function(p){var y=p.model;var l=p.pointerDownEvent;var q=p.pointerUpEvent;var t=p.pointerLeaveEvent;p=_.sM("div");var E=_.NW({"border-radius":function(){return y().borderRadius}}),e=_.sM("div"),C=_.sM("div"),u=_.c(_.kS(function(){return(q==null?0:q())||(t==null?0:t())?!1:!(l==null||!l())||!1})),a=u.next().value,m=u.next().value,U=void 0,b=function(){!U&&C.value&&e.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(U=new B0Q(C.value,e.value));
var T;(T=U)==null||T.play()},P=function(){var T;
(T=U)==null||T.cancel()},Z=function(){var T;
(T=U)==null||T.cancel()};
_.NA(function(){(q==null?0:q())&&b()},"YjVIpd");
_.NA(function(){(l==null?0:l())&&P()},"UrXvqb");
_.NA(function(){(t==null?0:t())&&Z()},"QK6L8b");
u=_.Ff(function(){b();m(!1)});
var K=_.Ff(function(){P();m(!0)}),F=_.Ff(function(){Z();
m(!1)});
_.TP(function(){if(U){var T;(T=U)==null||T.cancel();U=void 0}});
var L={};a=_.ip("yt-spec-touch-feedback-shape",function(){return IP6(y().color)},(L["yt-spec-touch-feedback-shape--focused"]=function(){return!!y().focused&&!y().disabled},L["yt-spec-touch-feedback-shape--circular"]=function(){return!!y().circular},L["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!y().isExtended},L["yt-spec-touch-feedback-shape--down"]=a,L["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!y().triggerEvents},L));
return _.R("yt-touch-feedback-shape",{style:_.NW({"border-radius":"inherit"})},_.R("div",{el:p,class:a,style:_.NW({"margin-top":function(){return y().customTopExtend?"-"+y().customTopExtend+"px":void 0}}),
"on:mousedown":K,"on:mouseup":u,"on:pointerleave":F,"on:touchstart":K,"on:touchend":u,"aria-hidden":!0},_.R("div",{class:"yt-spec-touch-feedback-shape__stroke",style:E,el:e}),_.R("div",{class:"yt-spec-touch-feedback-shape__fill",style:E,el:C})))},"p");
_.xS.idomCompat=!0;var f5N={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 MC=_.mL();MC=MC.toLowerCase();if(_.C8(MC,"android")){var vlr=MC.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);vlr&&parseFloat(vlr[1])<100||MC.match("("+Object.keys(f5N).join("|")+")")};var XMZ=_.aF(function(p){return _.R(_.W,{cond:p.aTagConfig,then:function(y){return _.R(_.sw,{aTagConfig:y,disabled:p.disabled,className:p.className,style:p.style,title:p.title,ariaLabel:p.ariaLabel,ariaCurrent:function(){var l,q;return((l=p.toggleable)==null?void 0:l.call(p))&&((q=p.toggled)==null?void 0:q.call(p))},
ref:p.ref},p.children)},
else:function(){return _.R("button",{el:_.mR(p.ref),"on:click":_.Ff(function(y){var l;return(l=p.onClick)==null?void 0:l.call(p,y)}),
class:p.className,title:p.title,style:p.style,disabled:p.disabled,"aria-pressed":function(){var y,l;return((y=p.toggleable)==null?0:y.call(p))?!((l=p.toggled)==null||!l.call(p)):void 0},
"aria-label":p.ariaLabel,"aria-disabled":p.visiblyDisabled,"aria-hidden":p.ariaHidden,tabindex:p.tabIndex},p.children)}})},"q"),OfU=_.aF(function(p){var y=p.data;
var l=p.hasIconLeading;var q=p.hasIconLeadingTrailing;var t=p.hasIconTrailing;var E=p.iconButton;var e=p.iconClassName;var C=p.secondaryIconClassName;var u=p.icon;var a=p.secondaryIcon;var m=p.textContentClassName;return _.R(VF,{className:"",style:"display: inherit; justify-content: center"},_.R(_.W,{debugInstance:"V4z1Uc",cond:function(){return u&&(l()||q()||(E==null?void 0:E()))},
then:function(){return _.R(VF,null,_.R("div",{class:e,"aria-hidden":"true"},u==null?void 0:u()))}}),_.R(_.W,{debugInstance:"ok3btb",
cond:function(){return(y().buttonText||y().animatedTextProps||y().formattedButtonText)&&!(E==null?0:E())},
then:function(){return _.R(VF,null,_.R(d_r,{className:m,iconPosition:function(){return y().iconPosition},
text:function(){return y().buttonText},
oneOffCustomTextWrap:function(){return y().oneOffCustomTextWrap},
formattedButtonText:function(){return y().formattedButtonText},
animatedTextProps:function(){return y().animatedTextProps}}))}}),_.R(_.W,{debugInstance:"DO5Rz",
cond:t,then:function(){return _.R(VF,null,_.R("div",{class:e},u==null?void 0:u()))}}),_.R(_.W,{debugInstance:"bnojSc",
cond:q,then:function(){return _.R(VF,null,_.R("div",{class:C},a==null?void 0:a()))}}),_.R(_.W,{debugInstance:"HN3kad",
cond:function(){return!y().disabled&&!0},
then:function(){return _.R(_.xS,{model:function(){return{color:sym(y())}}})}}))},"r"),d_r=_.aF(function(p){var y=function(){var l,q;
return((l=p.iconPosition)==null?void 0:l.call(p))==="icon-with-label"||((q=p.oneOffCustomTextWrap)==null?void 0:q.call(p))};
return _.R("div",{class:p.className,"aria-hidden":function(){var l,q,t;return((l=p.ariaHidden)==null?void 0:l.call(p))&&(!((q=p.animatedTextProps)==null||!q.call(p))||!((t=p.formattedButtonText)==null||!t.call(p)))}},_.R(_.L6,null,_.R(_.Sc,{when:function(){var l;
return(l=p.animatedTextProps)==null?void 0:l.call(p)}},function(){return _.R(_.x_v,{numberText:function(){return p.animatedTextProps().numberText},
numberValue:function(){return p.animatedTextProps().numberValue},
heightPx:function(){return p.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return p.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return p.animatedTextProps().shouldAnimate},
forceRollUp:function(){return p.animatedTextProps().forceRollUp}})}),_.R(_.Sc,{when:function(){var l;
return(l=p.formattedButtonText)==null?void 0:l.call(p)}},function(){return _.R(_.CF,{text:function(){return Object.assign({},p.formattedButtonText(),{lineBreakMode:y()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":p.formattedButtonText().lineBreakMode,
alignment:y()?"TEXT_ALIGNMENT_CENTER":p.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!y()}})}),_.R(_.Sc,{when:function(){var l,q;
return((l=p.iconPosition)==null?void 0:l.call(p))==="icon-with-label"&&((q=p.text)==null?void 0:q.call(p))}},function(){return _.R(_.CF,{text:function(){return{content:p.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.R(_.FF,null,function(){return p.text})))},"s"),ol$=_.aF(function(p){return _.R(_.W,{debugInstance:"kM7Sgc",
cond:p.hasLabel,then:function(){var y;return _.R("label",{class:p.className},p.children,(y=p.textContent)==null?void 0:y.call(p))},
else:function(){return p.children}})},"t"),VF=_.aF(function(p){return p.children},"u");var zWt=hU("stamper-context");var zzZ=function(){var p=_.c(_.nr(void 0,void 0,"X7d4l"));this.state=p.next().value;this.setState=p.next().value;p=_.c(_.nr(void 0,void 0,"CfI23e"));this.schedulerJobID=p.next().value;this.setSchedulerJobID=p.next().value},$7a=function(p,y){var l=U7L,q=_.TR.addJob(function(){l.setState({text:y.text,
location:y.location,anchor:p,offset:y.offset})},4,y.delay);
l.setSchedulerJobID(q)},jyl=function(){var p=U7L,y=p.schedulerJobID();
y&&(_.TR.cancelJob(y),p.setSchedulerJobID(void 0));p.setState(void 0)};
zzZ.prototype.notify=function(p,y){var l;((l=this.state())==null?void 0:l.anchor)===p&&this.setState({text:y.text,location:y.location,anchor:p,offset:y.offset})};var U7L;U7L=new zzZ;_.YhO=_.aF(function(){var p=HTMLElement.prototype.hasOwnProperty("popover");return _.R("yt-tooltip",{class:"ytTooltipContainerHost"},function(){var y=U7L.state();return p&&(y==null?void 0:y.text)})},"v");_.uI=_.aF(function(p){var y=p.data;var l=p.icon;var q=p.iconName;var t=p.secondaryIcon;var E=p.secondaryIconName;var e=p.focusedOverride;var C=p.clientOnlyWizTooltipsEnabled;_.aT6();var u=py8(y),a=u.size,m=u.style;p=u.disabled;var U=u.onTap,b=u.alignByText,P=u.aTagConfig,Z=u.customColors,K=u.segmentedPosition,F=u.toggled,L=u.toggleable,T=u.accessibilityLabel,O=u.onToggle,f=u.iconPosition,v=u.oneOffCustomTextWrap,z=u.disableTextEllipsis,sc=u.disableBackdropFilter,hR=u.tooltipText,Wt=u.ariaHidden,AR=
u.tabIndex,Qu=u.buttonText,jj=u.formattedButtonText,x6=u.animatedTextProps,L8=qBR(y,l,t,q,E,e),Y6=L8.type;l=L8.shouldFocus;q=L8.hasIconLeading;t=L8.hasIconTrailing;var AZ=L8.hasIconLeadingTrailing,cU=L8.hasIconOnly;E=L8.hasIconOnly40;var Xo=L8.hasIconWithLabel;e=L8.iconButton;var U$=L8.visiblyDisabled;u=L8.overrideSmallSizeIcon;var WU=L8.iconToRender;L8=L8.secondaryIconToRender;var VQ=_.c(bGg(hR)).next().value,b9={},kx={};return _.R(ol$,{className:_.ip("yt-spec-button-shape-with-label",(b9["yt-spec-button-shape-with-label--is-overlay"]=
function(){return m()==="overlay"||m()==="overlay-dark"},b9)),
hasLabel:Xo,textContent:function(){return _.R(d_r,{text:Qu,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:v,iconPosition:f,formattedButtonText:jj,animatedTextProps:x6})}},_.R(XMZ,{aTagConfig:P,
className:_.ip("yt-spec-button-shape-next",function(){return ERL(Y6())},function(){return U$()?void 0:J9l(m())},function(){return c95(a())},(kx["yt-spec-button-shape-next--disabled"]=U$,kx["yt-spec-button-shape-next--focused"]=l,kx["yt-spec-button-shape-next--icon-trailing"]=t,kx["yt-spec-button-shape-next--icon-leading"]=q,kx["yt-spec-button-shape-next--icon-leading-trailing"]=AZ,kx["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return AZ()&&!(Qu()||jj())},kx["yt-spec-button-shape-next--icon-button"]=
function(){return cU()||Xo()},kx["yt-spec-button-shape-next--icon-only-default"]=E,kx["yt-spec-button-shape-next--align-by-text"]=b,kx["yt-spec-button-shape-next--segmented-start"]=function(){return K()==="start"},kx["yt-spec-button-shape-next--segmented-end"]=function(){return K()==="end"},kx["yt-spec-button-shape-next--override-small-size-icon"]=u,kx["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=v,kx["yt-spec-button-shape-next--disable-text-ellipsis"]=z,kx["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!sc()&&tet()},kx)),
style:function(){return eaj(Z()).style},
onClick:function(JR){U==null||U(JR);L()&&(O==null||O(JR))},
disabled:p,ariaLabel:T,toggleable:L,toggled:F,title:function(){return(C==null?0:C())||!hR()?"":hR()},
visiblyDisabled:U$,ariaHidden:Wt,tabIndex:AR,ref:function(JR){(C==null?0:C())&&VQ(JR)}},_.R(OfU,{data:y,
hasIconLeading:q,hasIconLeadingTrailing:AZ,hasIconTrailing:t,iconButton:e,icon:WU,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:L8})))},"w");
_.uI.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var I5x=_.aF(function(p){var y=p.data;var l=p.id;var q=p.className;var t=p.iconName;var E=p.secondaryIconName;p=_.c(_.nr(!1,void 0,"uDRWyd"));var e=p.next().value,C=p.next().value,u=function(){var m=_.WC().resolve(_.RK(_.Zu));m&&C(m.isKeyBoardInUse())},a=function(){C(!1)};
p=_.sM("yt-button-shape",function(m){if(_.WC().resolve(_.RK(_.Zu)))return m.addEventListener("focusin",u),m.addEventListener("focusout",a),function(){m.removeEventListener("focusin",u);m.removeEventListener("focusout",a)}});
return _.R("yt-button-shape",{el:p,id:l,class:q},_.R(_.W,{cond:y,then:function(){return _.R(_.uI,{data:y,iconName:t,secondaryIconName:E,focusedOverride:e})}}))},"x");
_.n("web_wiz_button_shape")&&_.bp(I5x,"yt-button-shape",{props:{data:_.Co,id:_.Co,className:_.Co,iconName:_.Co,secondaryIconName:_.Co,clientOnlyWizTooltipsEnabled:_.Co},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var gZ=function(){var p=_.w.apply(this,arguments)||this;p.keyboardFocused=!1;return p};
_.A(gZ,_.w);gZ.prototype.onFocus=function(){var p=_.WC().resolve(_.RK(_.Zu));p&&(this.keyboardFocused=p.isKeyBoardInUse())};
gZ.prototype.onBlur=function(){this.keyboardFocused=!1};
gZ.prototype.renderIdom=function(){var p=this;if(this.data){var y=H$(this.data,!!this.iconName,this.data.ignoreIconSizeOverride),l=lTu(this.data);this.data.focused=this.keyboardFocused;Wk8(this.data,function(){var q;OU("yt-icon",{icon:p.iconName,active:(q=p.data)==null?void 0:q.toggled,size:y,style:"width: "+y+"px; height: "+y+"px;",iconFilter:l},sY)},function(){var q;
OU("yt-icon",{icon:p.secondaryIconName,active:(q=p.data)==null?void 0:q.toggled,size:y,style:"width: "+y+"px; height: "+y+"px;",iconFilter:l},sY)});
_.Ub(this.hostElement,"yt-renderidom-finished")}};
_.Jh.Object.defineProperties(gZ,{template:{configurable:!0,enumerable:!0,get:function(){if(Lvr===void 0){var p=document.createElement("template");_.M(p,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);p.content.insertBefore(FvN().content.cloneNode(!0),p.content.firstChild);p.content.insertBefore(r_Q().content.cloneNode(!0),p.content.firstChild);Lvr=p}p=Lvr;return p}}});
gZ.prototype.onBlur=gZ.prototype.onBlur;gZ.prototype.onFocus=gZ.prototype.onFocus;_.H([_.V(WpN),_.x("design:type",Object)],gZ.prototype,"ytIdomTemplatingBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],gZ.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",String)],gZ.prototype,"iconName",void 0);_.H([_.Q(),_.x("design:type",String)],gZ.prototype,"secondaryIconName",void 0);_.H([_.Q(),_.x("design:type",Object)],gZ.prototype,"keyboardFocused",void 0);
_.H([_.VU("focusin"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gZ.prototype,"onFocus",null);_.H([_.VU("focusout"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gZ.prototype,"onBlur",null);_.H([_.z9({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.n("web_wiz_button_shape")})],gZ);_.bp(_.aF(function(p){function y(){l().seconds&&E(z25({seconds:Number(l().seconds)-Date.now()/1E3}))}
var l=p.targetTimestamp;p=p.className;var q=_.c(_.nr("",void 0,"U1Q8Ae")),t=q.next().value,E=q.next().value;_.Hu(function(){y();var e=setInterval(function(){y()},1E3);
_.TP(function(){clearInterval(e)})});
return _.R("yt-countdown",{class:_.ip("ytCountDownHost",p)},_.R("div",null,t))},"y"),"yt-countdown",{props:{targetTimestamp:_.Co,
className:_.jw}});_.wZ=_.aF(function(p){var y=p.data;var l=p.className;var q=p.style;var t=p.useOutlinedIcon;var E=p.buttonOverrides;var e=p.animatedTextProps;var C=p.onClick;var u=p.target;var a=_.sM("button-view-model",function(T){T.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var O=y().targetId;O&&_.n2$(_.T7(),O,T);return function(){jqU(_.T7(),T)}}),m=function(){return y().iconName},U,b=(U=_.WC().resolve(_.RK(_.hb)))==null?void 0:U(),P=function(){var T=y();
var O=E==null?void 0:E(),f=e==null?void 0:e(),v=u==null?void 0:u();if(T){var z=ZGt(T.type);var sc=!!T.title||!!T.titleFormatted;var hR=!(!T.iconName&&!T.iconImage);sc=hR&&!sc?"icon-only":hR?T.iconTrailing||T.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;sc==="icon-only-40"&&(z="text");var Wt,AR=(Wt=O==null?void 0:O.disabled)!=null?Wt:T.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||T.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";Wt=Object;hR=Wt.assign;var Qu=T.title,
jj=T.titleFormatted;f=f&&f.numberText&&!isNaN(Number(f.numberValue))?f:void 0;var x6=T.accessibilityText,L8=A9L(T.style),Y6=Mej(T.state),AZ=Vec(T.buttonSize);v=P5_(T,a,AR,C,v);AR=AR&&!T.onDisabledTap;var cU=_.yM(T==null?void 0:T.onTap);var Xo={};cU&&(Xo.clickedVisualElement=GDl(T,cU));cU=_.qW({elementsCommand:T.onTap,forceNewState:!0,additionalCommandArgs:Xo});cU=s5(cU)?cU:void 0;var U$=T.customFontColor,WU=T.customBackgroundColor;Xo=T.customBorderColor;var VQ=T.customDarkThemeFontColor,b9=T.customDarkThemeBackgroundColor,
kx=T.customDarkThemeBorderColor;U$=b&&VQ?VQ:U$;WU=b&&b9?b9:WU;Xo=b&&kx?kx:Xo;Xo={color:U$?_.Y9(U$):void 0,backgroundColor:WU?_.Y9(WU):void 0,borderColor:Xo?_.Y9(Xo):void 0};T=hR.call(Wt,{},{buttonText:Qu,formattedButtonText:jj,animatedTextProps:f,accessibilityLabel:x6,style:L8,type:z,state:Y6,size:AZ,iconPosition:sc,onTap:v,disabled:AR,aTagConfig:cU,customColors:Xo,tooltipText:T.tooltip},O)}else T={style:"mono",type:"text",state:"active",size:"M"};T.focused=F();return T},Z=function(){return H$(P(),
!!y().iconName)};
p=_.c(_.nr(!1,void 0,"bl7g4"));U=p.next().value;var K=p.next().value,F=U;p=_.Ff(function(){var T=_.WC().resolve(_.RK(_.Zu));T&&K(T.isKeyBoardInUse());return!1});
U=_.Ff(function(){K(!1);return!1});
_.NA(function(){var T,O=_.G(y==null?void 0:(T=y())==null?void 0:T.onVisible,_.pY);O&&_.lp(O,{disableClickTracking:!0})},"MLqBF");
var L=_.n("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.R("button-view-model",{el:a,class:_.ip("yt-spec-button-view-model",l),"on:focusin":p,"on:focusout":U},_.R(_.W,{cond:function(){var T;return(y==null?0:(T=y())==null?0:T.iconImage)?{sources:[y().iconImage]}:void 0},
then:function(T){return _.R(_.uI,{data:P,icon:function(){return _.R(_.W$,{data:T,alt:"",targetWidth:Z,targetHeight:Z,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:L})},
else:function(){return _.R(_.uI,{data:P,icon:function(){return _.R(_.DR,{icon:m,active:function(){return(t==null?0:t())?!1:P().toggled},
animateIcon:function(){var T;return!!(q==null?0:(T=q())==null?0:T.animateIcon)},
size:Z})},
clientOnlyWizTooltipsEnabled:L})}}))},"z");
_.wZ.idomCompat={callbacks:{onClick:!0}};_.bp(_.aF(function(p){return _.R("yt-button-view-model",{id:p.id,class:_.ip(p.scopingClassName,p.classes),icon:function(){var y;return(y=p.icon)==null?void 0:y.call(p)},
"dialog-dismiss":function(){var y;return((y=p.dialogDismiss)==null?0:y.call(p))?"":void 0}},_.R(_.wZ,{data:function(){var y;
return(y=p.data)==null?void 0:y.call(p)},
className:function(){var y;return(y=p.className)==null?void 0:y.call(p)},
style:function(){var y;return(y=p.style)==null?void 0:y.call(p)},
useOutlinedIcon:function(){var y;return(y=p.useOutlinedIcon)==null?void 0:y.call(p)},
buttonOverrides:function(){var y;return(y=p.buttonOverrides)==null?void 0:y.call(p)},
animatedTextProps:function(){var y;return(y=p.animatedTextProps)==null?void 0:y.call(p)},
onClick:function(y){var l;return(l=p.onClick)==null?void 0:l.call(p,y)}}))},"A"),"yt-button-view-model",{props:{data:_.Co,
className:_.Co,style:_.Co,useOutlinedIcon:_.Co,buttonOverrides:_.Co,animatedTextProps:_.Co,onClick:_.jw,scopingClassName:_.Co,id:_.Co,icon:_.Co,dialogDismiss:_.Co,classes:_.Co,target:_.jw}});var iQ=function(){var p=_.w.apply(this,arguments)||this;p.isGoalActive=!0;return p};
_.A(iQ,_.w);iQ.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
iQ.prototype.progressBarChanged=function(){var p=_.jR(this.hostElement).querySelector("#progress-bar-progress"),y,l,q,t=(q=Number((y=this.creatorGoalState)==null?void 0:y.currentGoalCount)/Number((l=this.creatorGoalState)==null?void 0:l.totalGoalCount)*100)!=null?q:0,E;p.style.width=((E=Math.min(t,100))!=null?E:0)+"%"};
iQ.prototype.goalStateChanged=function(){var p;this.isGoalActive=((p=this.creatorGoalState)==null?void 0:p.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var y;p={"--yt-progress-bar-color":Nwu((y=this.creatorGoalState)==null?void 0:y.progressBarColor)};_.Ax(this.hostElement,p)};
iQ.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Jh.Object.defineProperties(iQ.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var p;return this.isGoalActive&&!((p=this.creatorGoalState)==null||!p.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.creatorGoalState)==null?0:p.endTimestampMs){var y;p=Number((y=this.creatorGoalState)==null?void 0:y.endTimestampMs)/1E3;return{seconds:String(p)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.creatorGoalState)==null?0:p.themedTargetImage){var y;p=_.G((y=this.creatorGoalState)==null?void 0:y.themedTargetImage,kSQ);return this.isAppDarkTheme()?p==null?void 0:p.imageDark:p==null?void 0:p.imageLight}}}});
_.Jh.Object.defineProperties(iQ,{template:{configurable:!0,enumerable:!0,get:function(){return Rz$()}}});
iQ.prototype.goalStateChanged=iQ.prototype.goalStateChanged;iQ.prototype.progressBarChanged=iQ.prototype.progressBarChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],iQ.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.lQ),_.x("design:type",Object)],iQ.prototype,"ytLiveChatReduxBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],iQ.prototype,"ytRendererBehavior",void 0);
_.H([_.Q({selectorArgs:["data.creatorGoalEntityKey"],selector:function(p,y){return _.Ae(p.entities,"creatorGoalEntity",y)}}),
_.x("design:type",Object)],iQ.prototype,"creatorGoalState",void 0);_.H([_.Q(),_.x("design:type",Object)],iQ.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],iQ.prototype,"isGoalActive",void 0);_.H([_.g("creatorGoalState","isGoalActive"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],iQ.prototype,"shouldShowCountdown",null);_.H([_.g("creatorGoalState"),_.x("design:type",Object),_.x("design:paramtypes",[])],iQ.prototype,"endTimestamp",null);
_.H([_.g("creatorGoalState"),_.x("design:type",Object),_.x("design:paramtypes",[])],iQ.prototype,"targetIconThemedImage",null);_.H([_.gd("creatorGoalState.currentGoalCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iQ.prototype,"progressBarChanged",null);_.H([_.gd("creatorGoalState.creatorGoalState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iQ.prototype,"goalStateChanged",null);
_.H([_.z9({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],iQ);_.D(iQ,"yt-creator-goal-progress-flow-view-model",function(){return Rz$()},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var pwv;var y5U;var rZ=function(){return _.w.apply(this,arguments)||this};
_.A(rZ,_.w);rZ.prototype.attached=function(){var p,y,l;if(this==null?0:(p=this.data)==null?0:(y=p.pdgPurchasedBumperLoggingDirectives)==null?0:(l=y.loggingDirectives)==null?0:l.trackingParams){var q,t,E;KkR(this==null?void 0:(q=this.data)==null?void 0:(t=q.pdgPurchasedBumperLoggingDirectives)==null?void 0:(E=t.loggingDirectives)==null?void 0:E.trackingParams)}};
rZ.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],rZ.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],rZ.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],rZ.prototype,"data",void 0);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],rZ);
_.D(rZ,"yt-live-chat-item-bumper-view-model",function(){if(y5U===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-bumper-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_item_bumper_view_model.yt.live.chat.item.bumper.view.model.css.js--\x3e<div id="bumper" class="style-scope yt-live-chat-item-bumper-view-model">\n  <div id="content" class="style-scope yt-live-chat-item-bumper-view-model"></div>\n</div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;pwv===void 0&&(pwv=document.createElement("template"));var q=pwv;l.call(y,q.content.cloneNode(!0),p.content.firstChild);y5U=p}p=y5U;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var lji;var qeO;_.RW=function(p,y){this.data=p;this.actions=y;this.data=p;this.actions=y};
_.ts=function(){};_.Ss={};_.Ss.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(p,y){wyo(this.hostElement,p,y)},
getNavigationEndpointPopupAction:function(p){return iGu(p,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(p,y){r9L(this.hostElement,p,y,this.openPopupConfig)}};var BKg=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.FW={};
_.FW.YtEndpointBehavior=[_.Ss.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.OY("openPopupConfig");(this.useClickHandler=_.o4("useClickHandler",!1))?this.hostElement.addEventListener("click",ZL(this,this.onEndpointClick_)):(Te(this.hostElement,"tap",ZL(this,this.onEndpointTap_)),Te(this.hostElement,"touchend",ZL(this,this.onEndpointTouchEnd_)));Te(this.hostElement,"touchstart",ZL(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
ZL(this,this.onEndpointTapStart_))},
onEndpointClick_:function(p){Lkg(this.hostElement,p,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(p){var y=this.hostElement,l=this.openPopupConfig,q=this.disableCommandHandlerOverride;q=q===void 0?!1:q;var t=SB6(p);if(t){t.href&&yU(t.href);var E=p.detail;var e=E.sourceEvent;E=E.preventer;e=e.button!==void 0?e.button===0&&!v$(e):E?!v$(E):!0;t.data&&e&&Fku(y,t,p,l,q)}},
onEndpointTouchEnd_:function(p){v$(p)||SB6(p)&&p.preventDefault()},
onEndpointTapStart_:function(p){TKc(p)}}];var fT8="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),Xyj=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var sVU={};sVU.YtPlaintextBehavior=[_.Ln,{properties:{plaintextOnly:{type:Boolean,value:!1}},detached:function(){this.plaintextOnly&&(this.hostElement.removeEventListener("paste",this.onPaste_),this.removeOwnKeyBindings())},
attached:function(){this.plaintextOnly&&(this.hostElement.addEventListener("paste",this.onPaste_),this.addOwnKeyBinding("ctrl+b meta+b ctrl+i meta+i","preventRichTextFormatting_"))},
onPaste_:function(p){p.preventDefault();p=p.clipboardData.getData("text/plain");document.execCommand("insertText",!1,p)},
preventRichTextFormatting_:function(p){_.gl&&(p=p.detail.keyboardEvent,p.stopImmediatePropagation(),p.preventDefault())}}];var tgi;var EuU;var Lo=function(){var p=_.w.apply(this,arguments)||this;p.ignoreShadyDom=!1;p.hasChange_=!1;p.hasSetTitle_=!1;p.useIOObserverForVisibilityLogging_=_.n("kevlar_use_vimio_behavior")&&_.OY("INNERTUBE_CLIENT_NAME")==="WEB";p.ytFormattedStringObserverHandlerKeys_=void 0;return p};
_.A(Lo,_.w);_.J=Lo.prototype;_.J.created=function(){this.useIOObserverForVisibilityLogging_=_.n("kevlar_use_vimio_behavior")&&_.OY("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.J.ready=function(){_.OY("HTML_DIR")==="rtl"?this.useMixedDirectionFormattedStrings?this.hostElement.dir="rtl":this.respectHtmlDir||(this.hostElement.dir="auto"):this.respectLangDir&&(this.hostElement.dir="auto",this.hostElement.style.textAlign="left");this.enableContentEditableChanged_()};
_.J.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.J.detached=function(){this.unobserveIOObservers_()};
_.J.clearContents_=function(){for(var p=this.getRoot(),y=p.lastChild;y&&y.tagName!=="STYLE";){try{p.removeChild(y)}catch(l){break}y=p.lastChild}};
_.J.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var p=_.c(this.ytFormattedStringObserverHandlerKeys_),y=p.next();!y.done;y=p.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(y.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.J.resetForAttributedString=function(){var p=this.getRoot();!p.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),p.appendChild(this.ytAttributedStringElementRef))};
_.J.resetForFormattedString=function(){var p=this.getRoot(),y=p.querySelector("yt-attributed-string");y&&(this.ytAttributedStringElementRef=p.removeChild(y))};
_.J.textChanged=function(){this.textChanged_(this.text)};
_.J.textChanged_=function(p){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!p||!p.runs&&!p.simpleText;if(_.n("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var y=this.hostElement.firstChild;y&&y.nodeName==="FONT";){var l=y;y=y.nextSibling;this.hostElement.removeChild(l)}y=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
l=p.simpleText;var q;!l&&((q=p.runs)==null?void 0:q.length)===1&&this.isSimpleString_(p.runs[0])&&(l=p.runs[0].text);l!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.OY("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(l!==void 0){try{y.textContent=l}catch(t){}y.textContent||(this.isEmpty=!0)}else p=p.runs,l!==void 0&&(p=[{text:l}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),p&&this.updateText_(p),
y.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.J.ellipsisTruncateChanged_=function(){!this.ellipsisTruncate||this.hostElement.title&&!this.hasSetTitle_?this.hasSetTitle_&&(this.hostElement.removeAttribute("title"),this.hasSetTitle_=!1):(this.hostElement.title=this.getRawText(),this.hasSetTitle_=!0)};
_.J.computeAriaLabel_=function(p){return p};
_.J.computeEllipsisTruncateStyling=function(p,y){return p&&!y};
_.J.computeUseAttributedString=function(p){return _.n("web_replace_formatted_with_attributed_string")&&y_m(p)&&!this.disableAttributedString&&!this.enableContentEditable};
_.J.setNodeStyle_=function(p,y){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.n("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?y.removeAttribute("dir"):y.setAttribute("dir","auto");y.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");y.style.color="";var l=null;this.noStyles||(p.bold&&(y.classList.add("bold"),l="bold"),p.deemphasize&&(y.classList.add("deemphasize"),l="deemphasize"),p.italics&&y.classList.add("italic"),
p.strikethrough&&y.classList.add("strikethrough"),p.errorUnderline&&(y.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),p.bracket&&y.classList.add("bracket"),p.textColor&&(y.style.color=_.z5(p.textColor)));l!==y.getAttribute("style-target")&&(l?y.setAttribute("style-target",l):y.removeAttribute("style-target"))};
_.J.setUpVisibilityLogging_=function(p,y){var l=this;this.setNodeTrackingParams_(p,y);var q;((q=y.data)==null?0:q.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(p=this.ytRendererBehavior.visibilityObserver.observe(y,function(t){var E=l.ytRendererBehavior.getVisibilityLogger();E&&E.reportShown(t)},this.ytRendererBehavior.visibilityOptionVisible_),y=this.ytRendererBehavior.visibilityObserver.observe(y,function(t){var E=l.ytRendererBehavior.getVisibilityLogger();
E&&E.reportHidden(t)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(p),this.ytFormattedStringObserverHandlerKeys_.push(y))};
_.J.setNodeTrackingParams_=function(p,y){y.data||(y.data={});if((p=p.loggingDirectives?p.loggingDirectives.trackingParams:null)||y.data.trackingParams)y.data.trackingParams=p};
_.J.computeHasLinkOnly_=function(p){return!(!p||p.length!==1||this.noEndpoints||!p[0].navigationEndpoint)};
_.J.getRoot=function(){var p=this.buildScopeDomOptions();return this.enableContentEditable?_.jR(_.jR(this.hostElement,p).querySelector("[contenteditable]")):_.jR(this.hostElement,p)};
_.J.fixContenteditableScope=function(){var p=function(y){y&&(y.nodeType===1&&y.classList&&(y.classList.add("style-scope"),y.classList.add("yt-formatted-string")),y.childNodes&&y.childNodes.forEach(function(l){p(l)}))};
p(this.getRoot())};
_.J.updateText_=function(p){for(var y=p.length,l=this.getRoot(),q=l.firstChild;q&&q.nodeName==="STYLE";)q=q.nextSibling;for(var t=0;t<y&&q;){var E=p[t],e=_.n("remove_cr_char")&&E.text?E.text.replace("\r",""):E.text;if(this.isSimpleString_(E)&&!this.useMixedDirectionFormattedStrings)if(q.nodeName==="#text"){q.textContent!=e&&(q.textContent=e);t++;q=q.nextSibling;continue}else break;if(_.G(E,Yg))break;else if(!this.noEndpoints&&E.navigationEndpoint){if(q.nodeName!=="A")break;this.setDataOnAnchor_(q,
E.navigationEndpoint)}else if(q.nodeName!=="SPAN")break;this.setNodeStyle_(E,q);this.setUpVisibilityLogging_(E,q);q.textContent!=e&&(q.textContent=e);t++;q=q.nextSibling}if(q)for(E=l.lastChild,q=t?q.previousSibling:null;E&&E!=q;){try{l.removeChild(E)}catch(C){break}E=l.lastChild}t!==y&&this.addTextNodes_(p,t)};
_.J.addTextNodes_=function(p,y){for(var l=document.createDocumentFragment(),q=p.length;y<q;y++){var t=p[y],E=_.n("remove_cr_char")&&t.text?t.text.replace("\r",""):t.text;if(this.isSimpleString_(t)&&!this.useMixedDirectionFormattedStrings)l.appendChild(document.createTextNode(E));else{var e=_.G(t,Yg);if(e){if(e.image){var C=document.createElement("img");e.isCustomEmoji||C.classList.add("small-emoji");C.classList.add("emoji");e.isCustomEmoji&&(C.dataset.emojiId=e.emojiId);C.src=_.nY(e.image.thumbnails,
this.emojiSize);(t=this.get("image.accessibility.accessibilityData.label",e))?C.alt=t:e.shortcuts&&e.shortcuts.length>0?C.alt=e.shortcuts[0]:e.emojiId&&(C.alt=e.emojiId);l.appendChild(C);this.hasEmoji=!0}}else!this.noEndpoints&&t.navigationEndpoint?(C=document.createElement("a"),C.classList.add("yt-simple-endpoint"),C.setAttribute("spellcheck","false"),this.setDataOnAnchor_(C,t.navigationEndpoint)):C=document.createElement("span"),this.setNodeStyle_(t,C),this.setUpVisibilityLogging_(t,C),C.appendChild(document.createTextNode(E)),
l.appendChild(C)}}this.getRoot().appendChild(l)};
_.J.isSimpleString_=function(p){return(this.noEndpoints||!p.navigationEndpoint)&&!_.G(p,Yg)&&(this.noStyles||!(p.bold||p.deemphasize||p.italics||p.strikethrough||p.errorUnderline||p.bracket||p.textColor))&&!p.loggingDirectives};
_.J.getRawText=function(){return _.JB(this.text)};
_.J.getFirstRunText=function(){var p;if(((p=this.text)==null?0:p.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.J.setFirstRunText=function(p){var y;((y=this.text)==null?0:y.runs)&&this.text.runs[0]&&(this.text.runs[0].text=p,this.textChanged_(this.text))};
_.J.setDataOnAnchor_=function(p,y){var l=this;!_.n("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(y)||this.isSignalServiceEndpoint_(y)?(p.onclick=this.serviceEndpointHandler_(y),YX(p,"#")):a6c({text:this.text,command:y},function(){VoL(p,y,l.target)})};
_.J.isServiceEndpoint_=function(p){var y;return!((y=_.G(p==null?void 0:p.commandMetadata,_.ul))==null||!y.sendPost)};
_.J.isSignalServiceEndpoint_=function(p){return!!_.G(p,_.Mn)};
_.J.serviceEndpointHandler_=function(p){var y=this;return function(l){_.ny(y.hostElement,[p]);l.preventDefault()}};
_.J.overrideAriaLabelChanged_=function(){var p=this.getRoot();this.enableContentEditable&&p&&p.setAttribute("aria-label",this.overrideAriaLabel)};
_.J.enableContentEditableChanged_=function(){var p=this,y=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),y=_.jR(this.hostElement,y),!y.lastChild||y.lastChild instanceof HTMLElement&&y.lastChild.id!=="contenteditable-root"){var l=document.createElement("div");l.id="contenteditable-root";l.setAttribute("contenteditable","true");l.setAttribute("dir","auto");l.onfocus=function(){p.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
y.appendChild(l);this.overrideAriaLabel&&l.setAttribute("aria-label",this.overrideAriaLabel)}}else l=_.bt(this.hostElement).firstChild,l instanceof HTMLElement&&l.id==="contenteditable-root"&&_.jR(this.hostElement,y).removeChild(l)};
_.J.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.J.getNodesForVisibilityLogging_=function(){return _.nq(this.getRoot().childNodes,function(p){var y;return!((y=p.data)==null||!y.trackingParams)})};
_.J.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.J.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var p=this.ytRendererBehavior.getVisibilityLogger();p&&this.getNodesForVisibilityLogging_().forEach(function(y){p.reportShown(y)})}};
_.J.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var p=this.ytRendererBehavior.getVisibilityLogger();p&&this.getNodesForVisibilityLogging_().forEach(function(y){p.reportHidden(y)})}};
_.Jh.Object.defineProperties(Lo.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.n("enable_mixed_direction_formatted_strings")}}});
Lo.prototype.enableContentEditableChanged_=Lo.prototype.enableContentEditableChanged_;Lo.prototype.overrideAriaLabelChanged_=Lo.prototype.overrideAriaLabelChanged_;Lo.prototype.ellipsisTruncateChanged_=Lo.prototype.ellipsisTruncateChanged_;Lo.prototype.textChanged=Lo.prototype.textChanged;_.H([_.V(sVU.YtPlaintextBehavior),_.x("design:type",Object)],Lo.prototype,"ytPlaintextBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Lo.prototype,"ytComponentBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Lo.prototype,"text",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Lo.prototype,"noEndpoints",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Lo.prototype,"noStyles",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Lo.prototype,"isDarkTheme",void 0);
_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Lo.prototype,"splitLines",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Lo.prototype,"forceDefaultStyle",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Lo.prototype,"ellipsisTruncate",void 0);_.H([_.Q(),_.x("design:type",Object)],Lo.prototype,"ignoreShadyDom",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.x("design:type",Boolean)],Lo.prototype,"ellipsisTruncateStyling",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.x("design:type",String)],Lo.prototype,"ariaLabel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Lo.prototype,"isEmpty",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.x("design:type",Boolean)],Lo.prototype,"hasLinkOnly_",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Lo.prototype,"hasEmoji",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Lo.prototype,"disableAttributedString",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Lo.prototype,"isOverlay",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Lo.prototype,"linkInheritColor",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],Lo.prototype,"noPreWrap",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Lo.prototype,"userInput",void 0);_.H([_.Q({value:16}),_.x("design:type",Number)],Lo.prototype,"emojiSize",void 0);_.H([_.Q(),_.x("design:type",String)],Lo.prototype,"target",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Lo.prototype,"enableContentEditable",void 0);_.H([_.Q(),_.x("design:type",String)],Lo.prototype,"overrideAriaLabel",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],Lo.prototype,"respectHtmlDir",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Lo.prototype,"respectLangDir",void 0);_.H([_.g("plaintextOnly"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Lo.prototype,"useMixedDirectionFormattedStrings",null);_.H([_.Q({computed:"computeUseAttributedString(text)"}),_.x("design:type",Boolean)],Lo.prototype,"useYtAttributedString",void 0);
_.H([_.gd("text"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Lo.prototype,"textChanged",null);_.H([_.gd("ellipsisTruncate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Lo.prototype,"ellipsisTruncateChanged_",null);_.H([_.gd("overrideAriaLabel"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Lo.prototype,"overrideAriaLabelChanged_",null);
_.H([_.gd("enableContentEditable"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Lo.prototype,"enableContentEditableChanged_",null);_.H([_.z9({is:"yt-formatted-string",disableElementRegistration:!0})],Lo);
_.D(Lo,"yt-formatted-string",function(){if(EuU===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_formatted_string.yt.formatted.string.css.js--\x3e<yt-attributed-string data="[[text]]" disable="[[!useYtAttributedString]]" disable-upgrade="[[!useYtAttributedString]]" ellipsis-truncate="[[ellipsisTruncate]]" hidden="[[!useYtAttributedString]]" is-overlay="[[isOverlay]]" link-inherit-color="[[linkInheritColor]]" no-pre-wrap="[[!splitLines]]" user-input="[[userInput]]" class="style-scope yt-formatted-string"></yt-attributed-string>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;tgi===void 0&&(tgi=document.createElement("template"));var q=tgi;l.call(y,q.content.cloneNode(!0),p.content.firstChild);EuU=p}p=EuU;return p});var J5M;var c5U;var eCB;var hCN;var k5=function(){var p=_.w.apply(this,arguments)||this;p.focused=!1;p.disabled=!1;p.isOverlay=!1;return p};
_.A(k5,_.w);k5.prototype.triggerDown=function(){if(!this.disabled){_.nv(this.hostElement,"down",!0);var p;(p=this.currentAnimation)==null||p.cancel()}};
k5.prototype.triggerUp=function(){if(!this.disabled){_.nv(this.hostElement,"down",!1);var p=this.fillElement;var y=this.strokeElement;typeof GroupEffect==="function"?(p=new GroupEffect([zig(p),Ylc(y)]),p=new Animation(p,document.timeline)):p=new B0Q(p,y);this.currentAnimation=p;var l;(l=this.currentAnimation)==null||l.play()}};
_.H([_.rd(".stroke"),_.x("design:type",HTMLElement)],k5.prototype,"strokeElement",void 0);_.H([_.rd(".fill"),_.x("design:type",HTMLElement)],k5.prototype,"fillElement",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],k5.prototype,"focused",void 0);_.H([_.Q(),_.x("design:type",Object)],k5.prototype,"disabled",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],k5.prototype,"isOverlay",void 0);_.H([_.z9({is:"yt-interaction",disableElementRegistration:!0})],k5);
_.D(k5,"yt-interaction",function(){if(hCN===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-interaction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_interaction.yt.interaction.css.js--\x3e<div class="stroke style-scope yt-interaction"></div><div class="fill style-scope yt-interaction"></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;eCB===void 0&&(eCB=document.createElement("template"));var q=eCB;l.call(y,q.content.cloneNode(!0),p.content.firstChild);hCN=p}p=hCN;return p},{mode:2});var NC=function(){return _.w.apply(this,arguments)||this};
_.A(NC,_.w);_.J=NC.prototype;_.J.ready=function(){var p=this,y=_.jR(this.hostElement).querySelector("#button");y.addEventListener("focus",function(){QfV||(QfV=new g_i);p.keyboardFocused=QfV.isKeyBoardInUse()});
y.addEventListener("blur",function(){p.keyboardFocused=!1;p.rippleUp_()})};
_.J.computeTabIndex_=function(p){return p?-1:0};
_.J.computeButtonAriaPressed_=function(p){if(this.toggleable)return p?"true":"false"};
_.J.rippleDown_=function(){_.jR(this.hostElement).querySelector("#interaction").triggerDown()};
_.J.rippleUp_=function(){_.jR(this.hostElement).querySelector("#interaction").triggerUp()};
_.J.onPressedChanged_=function(){var p=_.bt(_.jR(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.bt(_.jR(this.hostElement).querySelector("#button")).children[0];p&&(p.active=this.pressed)};
NC.prototype.onPressedChanged_=NC.prototype.onPressedChanged_;NC.prototype.rippleUp_=NC.prototype.rippleUp_;NC.prototype.rippleDown_=NC.prototype.rippleDown_;_.H([_.Q(),_.x("design:type",String)],NC.prototype,"label",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],NC.prototype,"disabled",void 0);_.H([_.Q(),_.x("design:type",Boolean)],NC.prototype,"pressed",void 0);_.H([_.Q(),_.x("design:type",Object)],NC.prototype,"toggleable",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],NC.prototype,"untabbable",void 0);_.H([_.Q(),_.x("design:type",Boolean)],NC.prototype,"keyboardFocused",void 0);_.H([_.VU("down"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NC.prototype,"rippleDown_",null);_.H([_.VU("up"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NC.prototype,"rippleUp_",null);
_.H([_.gd("pressed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NC.prototype,"onPressedChanged_",null);_.H([_.z9({is:"yt-icon-button",disableElementRegistration:!0})],NC);
_.D(NC,"yt-icon-button",function(){if(c5U===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_icon_button.yt.icon.button.css.js--\x3e<button id="button" aria-label$="[[label]]" aria-pressed$="[[computeButtonAriaPressed_(pressed)]]" disabled$="[[disabled]]" tabindex$="[[computeTabIndex_(untabbable)]]" class="style-scope yt-icon-button"><slot class="style-scope yt-icon-button"></slot></button><yt-interaction id="interaction" class="circular style-scope yt-icon-button" focused="[[keyboardFocused]]"></yt-interaction>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;J5M===void 0&&(J5M=document.createElement("template"));var q=J5M;l.call(y,q.content.cloneNode(!0),p.content.firstChild);c5U=p}p=c5U;return p},{mode:2});var Cu$=_.c0(["aria-"]),Du={};Du.YtRenderButtonBehavior=[_.X.YtRendererBehavior,_.FW.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!!_.WC().resolve(_.RK(_.Zu))&&_.n("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var p=this.computeHref_(this.endpoint,!0);p?YX(this.elements_.endpoint,p):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){p=this.buttonClass.split(" ");p=_.c(p);for(var y=p.next();!y.done;y=p.next())y=y.value,_.nv(this.hostElement,y,!0),this.elements_.button&&_.nv(this.elements_.button,y,!0),this.elements_.text&&_.nv(this.elements_.text,y,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(p=null,this.buttonAccessibility&&(p=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=p:p?_.CC([_.$I(Cu$)],this.elements_.button,"aria-label",p):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var p=_.WC().resolve(_.RK(_.Zu));p&&(this.keyboardFocused=p.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.Ud("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,_.FK(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.FK(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(p,y){if(y)for(p=y.split(" "),p=_.c(p),y=p.next();!y.done;y=p.next())y=y.value,_.nv(this.hostElement,y,!1),this.elements_.button&&_.nv(this.elements_.button,y,!1),this.elements_.text&&_.nv(this.elements_.text,y,!1)},
buttonIconChanged_:function(p){this.elements_.icon?p?(this.elements_.icon.icon=p,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.FK(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.G9(this.hostElement,"is-paper-button-with-icon",!1)):p&&this.stampType_&&this.stampType_=="paper_button"&&this.addIconElementToPaperButton_()},
addIconElementToPaperButton_:function(){this.elements_.icon=this.getIcon_();this.setIconActive_(this.elements_.icon);this.elements_.button&&(this.iconPositionType&&this.iconPositionType!="BUTTON_ICON_POSITION_TYPE_LEFT_OF_TEXT"?this.iconPositionType=="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"&&_.FK(this.elements_.button).appendChild(this.elements_.icon):_.FK(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.G9(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(p){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,p){var y=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(p){case "yt_icon_button_with_label":y=!0;_.nv(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();p=_.FK(this.elements_.button).firstElementChild;
this.elements_.icon=p;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.FK(this.elements_.endpoint).appendChild(this.elements_.button);_.FK(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.Ud("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;_.FK(this.elements_.button).appendChild(this.elements_.text);_.FK(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":y=!0,this.elements_.button=this.getYtIconButton_(),p=_.FK(this.elements_.button).firstElementChild,this.elements_.icon=p,this.setIconActive_(this.elements_.icon),
_.FK(this.elements_.endpoint).appendChild(this.elements_.button)}_.G9(this.hostElement,"is-icon-button",y);_.G9(this.hostElement,"is-paper-button",!y);_.G9(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 l;_.jR((l=this.container.hostElement)!=null?l:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.FK(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(p){if(p!=void 0||this.disabled)this.disabled=p,this.elements_.button&&(this.elements_.button.disabled=p)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(p){_.n("kevlar_system_icons")&&p&&this.data&&(this.data.isSelected!==void 0?p.active=this.data.isSelected:this.data.isToggled!==void 0&&(p.active=this.data.isToggled))},
observeBasicPalette_:function(p){_.dD(this.hostElement,p)},
disabledChanged_:function(p){this.data&&this.set("data.isDisabled",p)},
onYtButtonTap_:function(p){if(this.disabled)p.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.ny(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(p=this.disableCommandHandlerOverride,!this.data||!this.data.command||p||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.n("handle_service_request_actions")||_.ny(this.hostElement,[this.serviceEndpoint]),
_.Ub(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.n("handle_service_request_actions")?(p=[],this.serviceEndpoint&&p.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&p.push(this.data.command),p.length&&_.Gf(this.hostElement,p,this.hostElement)):this.data&&this.data.command&&(p=this.data.command,p.accountUnlinkCommand||p.accountLinkCommand||p.insertAdCommand||p.insertHighlightMarkerCommand||
p.createLivestreamHighlightClipCommand||p.getVideoUploadFeedbackCommand||p.musicDeletePrivatelyOwnedEntityCommand||p.ypcCancelRecurrenceEndpoint||p.getMultiSelectCommandEndpoint?_.ny(this.hostElement,[p]):_.Gf(this.hostElement,[p],this.hostElement))}},
computeStampType_:function(){return this.forceIconButton&&this.buttonText&&this.buttonIcon?"yt_icon_button_with_label":this.buttonText?"paper_button":this.buttonIcon?"yt-icon-button":null},
emptyContainer_:function(){for(var p,y=_.jR((p=this.container.hostElement)!=null?p:this.container);y.lastChild&&y.lastChild.tagName!="STYLE";)try{y.removeChild(y.lastChild)}catch(l){break}},
getYtIconButton_:function(){var p=this.reuseEnabled_()?_.Ud("yt-icon-button"):document.createElement("yt-icon-button"),y=_.FK(p).firstElementChild;if(y&&y.is!="yt-icon"){for(y=_.FK(p);y.lastChild;)y.removeChild(y.lastChild);y=null}y||(y=this.getIcon_(),this.setIconActive_(y),_.FK(p).appendChild(y));return p},
reuseEnabled_:function(){return _.n("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.Ud("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.Ud("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.uuM={};
_.uuM.YtButtonBehavior=[Du.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var p=this.data;p&&(this._setEndpoint(this.computeEndpoint_(p)),this._setServiceEndpoint(this.computeServiceEndpoint_(p)),this._setCommand(this.computeCommand_(p)),this._setButtonIcon(this.computeButtonIcon_(p)),this._setButtonText(this.computeButtonText_(p,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(p)),this._setButtonTooltip(this.computeTooltip_(p)),this._setButtonClass(this.computeButtonClass_(p)),this._setIconPositionType(this.computeIconPositionType_(p)),this.updateRenderedElements())},
setPressedState:function(p){var y;if((y=this.elements_)==null?0:y.button)this.elements_.button.pressed=!!p},
computeIconPositionType_:function(p){return p&&p.iconPosition||null},
computeEndpoint_:function(p){var y=p&&p.navigationEndpoint,l=this.get("data.command.commandMetadata.webCommandMetadata.url"),q=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return y?y:p&&p.command&&p.command.modalEndpoint?p.command:l&&!q&&p.command?p.command:null},
computeServiceEndpoint_:function(p){var y=p&&p.serviceEndpoint,l=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return y?y:l&&p.command?p.command:null},
computeCommand_:function(p){return p&&p.command||null},
computeButtonIcon_:function(p){return p&&p.icon&&p.icon.iconType?_.QZ(p.icon.iconType):null},
computeButtonText_:function(p,y){return!y&&p&&p.text||null},
computeAccessibility_:function(p){return this.get("accessibilityData.accessibilityData",p)||p&&p.accessibility||(p&&p.text?{label:this.getSimpleString(p.text)}:null)},
computeTooltip_:function(p){return p?p.isDisabled&&p.disabledTooltip||p.tooltip||null:null},
computeButtonClass_:function(p){var y=p&&p.style?p.style.toLowerCase().replace(/_/g,"-")+" ":"";y+=p&&p.size?p.size.toLowerCase().replace(/_/g,"-")+" ":"";p.colorData&&p.colorData.basicColorPaletteData&&p.colorData.basicColorPaletteData.borderColor&&(y+="palette-with-border");return y.trim()}}];var O5={};var RCB;var W9U;var ajr,mki=function(){return ajr!==void 0?ajr:ajr=document.createElement("template")};
document.head.appendChild(mki().content);var Ukr;var $kM,jVV=function(){return $kM!==void 0?$kM:$kM=document.createElement("template")};
document.head.appendChild(jVV().content);var bkZ;var nuV,GGN=function(){return nuV!==void 0?nuV:nuV=document.createElement("template")};
document.head.appendChild(GGN().content);var Puv;var A5N=document.head,ZkM=A5N.appendChild,Mgr;if(Puv===void 0){var VgO=document.createElement("template");_.M(VgO,"\x3c!--css-build:shady--\x3e");VgO.content.insertBefore(GGN().content.cloneNode(!0),VgO.content.firstChild);Puv=VgO}Mgr=Puv;ZkM.call(A5N,Mgr.content);var guv=document.head,QVi=guv.appendChild,K9r;if(bkZ===void 0){var wwP=document.createElement("template");_.M(wwP,"\x3c!--css-build:shady--\x3e");wwP.content.insertBefore(jVV().content.cloneNode(!0),wwP.content.firstChild);bkZ=wwP}K9r=bkZ;QVi.call(guv,K9r.content);var ikU=document.head,r5N=ikU.appendChild,SeV;if(Ukr===void 0){var F9B=document.createElement("template");_.M(F9B,"\x3c!--css-build:shady--\x3e");F9B.content.insertBefore(mki().content.cloneNode(!0),F9B.content.firstChild);Ukr=F9B}SeV=Ukr;r5N.call(ikU,SeV.content);var L9N;_.ox("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");L9N=_.n("web_button_rework")&&_.o4("BUTTON_REWORK")||_.n("web_button_rework_with_live");_.H_=function(){return _.w.apply(this,arguments)||this};
_.A(_.H_,_.w);_.H_.prototype.created=function(){this.openPopupConfig=_.OY("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.H_.prototype.onYtNavigate_=function(p){var y=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(p.detail.endpoint);y&&(this.ytOpenPopupBehavior.openPopup(y),p.stopPropagation(),p.preventDefault())};
_.Jh.Object.defineProperties(_.H_,{template:{configurable:!0,enumerable:!0,get:function(){if(W9U===void 0){var p=document.createElement("template");_.M(p,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_button_renderer.yt.button.renderer.css.js--\x3e");p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
var y=p.content,l=y.insertBefore;RCB===void 0&&(RCB=document.createElement("template"));var q=RCB;l.call(y,q.content.cloneNode(!0),p.content.firstChild);W9U=p}p=W9U;return p}}});
_.H_.prototype.onYtNavigate_=_.H_.prototype.onYtNavigate_;_.H([_.V(_.Ss.YtOpenPopupBehavior),_.x("design:type",Object)],_.H_.prototype,"ytOpenPopupBehavior",void 0);_.H([_.V(_.uuM.YtButtonBehavior),_.x("design:type",Object)],_.H_.prototype,"ytButtonBehavior",void 0);_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],_.H_.prototype,"onYtNavigate_",null);
_.H([_.z9({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:L9N})],_.H_);var kGi;var NG$=_.n("web_button_rework")&&_.o4("BUTTON_REWORK")||_.n("web_button_rework_with_live"),TS=function(){var p=_.w.apply(this,arguments)||this;p.isPressed=!1;p.forceIconButton=!1;p.forceIconOnly=!1;p.forceModernIconButton=!1;p.skipCommandHandling=!1;p.alignByText=!1;p.fitToVisibleBounds=!0;p.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};p.onTap=function(y){_.Ub(p.hostElement,"yt-service-request-sent-button-renderer",y)};
return p};
_.A(TS,_.w);_.J=TS.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.J.onClick=function(p){var y,l=this.disabled||((y=this.data)==null?void 0:y.isDisabled);y=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");l&&y&&p.stopPropagation()};
_.J.computeIcon=function(){var p,y,l=(p=this.data)==null?void 0:(y=p.icon)==null?void 0:y.iconType;if(l)return _.QZ(l)};
_.J.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.J.handleUpdateButtonAction=function(p){p=_.G(p,EDQ);var y=_.G(p==null?void 0:p.updatedButton,_.yv);if(this.data&&p&&y){var l=this.data;l.targetId&&p.targetId&&l.targetId===p.targetId&&(this.data=y)}};
_.Jh.Object.defineProperties(TS.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var p=this;if(this.data){var y=IT8({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Ub(p.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Ub(p.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});y.alignByText=this.alignByText;return y}}}});
_.Jh.Object.defineProperties(TS,{template:{configurable:!0,enumerable:!0,get:function(){if(kGi===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computeIcon(data)]]"></yt-button-shape><tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>');kGi=p}p=kGi;return p}}});
TS.prototype.onClick=TS.prototype.onClick;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],TS.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],TS.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],TS.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],TS.prototype,"isPressed",void 0);
_.H([_.Q(),_.x("design:type",Object)],TS.prototype,"forceIconButton",void 0);_.H([_.Q(),_.x("design:type",Object)],TS.prototype,"forceIconOnly",void 0);_.H([_.Q(),_.x("design:type",Object)],TS.prototype,"forceModernIconButton",void 0);_.H([_.Q(),_.x("design:type",Object)],TS.prototype,"skipCommandHandling",void 0);_.H([_.Q(),_.x("design:type",Object)],TS.prototype,"alignByText",void 0);_.H([_.Q(),_.x("design:type",Object)],TS.prototype,"buttonTooltipPosition",void 0);
_.H([_.Q(),_.x("design:type",Object)],TS.prototype,"fitToVisibleBounds",void 0);_.H([_.Q({computed:"computeTooltip(data)"}),_.x("design:type",Object)],TS.prototype,"tooltip",void 0);_.H([_.Q(),_.x("design:type",Object)],TS.prototype,"overrides",void 0);_.H([_.Q(),_.x("design:type",Boolean)],TS.prototype,"disabled",void 0);_.H([_.VU("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],TS.prototype,"onClick",null);
_.H([_.g("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.x("design:type",Object),_.x("design:paramtypes",[])],TS.prototype,"computedButtonShape",null);_.H([_.z9({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!NG$,cssBuildOptOut:!0}),_.z9({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!NG$,cssBuildOptOut:!0})],TS);var DkU;var Hkv;var x5=function(){var p=_.w.apply(this,arguments)||this;p.empty_=!0;p.loadTime=Infinity;p.pendingPaint=!1;p.hasChange_=!1;p.oldThumbnail_=null;p.oldDelayedSrc_="";p.objectURL_=null;return p};
_.A(x5,_.w);_.J=x5.prototype;_.J.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.J.ready=function(){var p=this.shouldShowPlaceholder_();_.nv(this.hostElement,"no-transition",!0);p&&this.hostElement.classList.add("with-placeholder")};
_.J.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.J.isThumbPreloaded_=function(p){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",p)};
_.J.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||TGi};
_.J.computeThumbnailSrc_=function(p){return p&&p.thumbnails?_.nY(p.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.J.computeAlt_=function(){var p=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&p||""};
_.J.thumbnailChanged_=function(){var p=_.c([this.thumbnail,this.oldThumbnail_]),y=p.next().value;p=p.next().value;this.oldThumbnail_=y;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(p=this.computeThumbnailSrc_(p),this.computeThumbnailSrc_(y)===p))return;_.n("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(y)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):y&&_.o4("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.th(this,this.onReload_):_.th(this,this.onShow_):this.resetImage_();y&&(this.hostElement.style.opacity=""+y.opacity)}};
_.J.delayedSrcChanged_=function(){var p=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===p||this.resetImage_()};
_.J.setSrc_=function(p){p?(_.jR(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.jR(this.hostElement).querySelector("#img").src=p):(_.jR(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.J.resetImage_=function(){YeR(this.hostElement);this.empty_=!0;this.setSrc_(TGi);this.ytRendererBehavior.invalidate(!1)};
_.J.observePlaceholderColor_=function(){var p=this.thumbnail&&this.thumbnail.placeholderColor;p?this.hostElement.style.backgroundColor=_.z5(p):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.J.onLoad_=function(){_.jR(this.hostElement).querySelector("#img").src&&_.jR(this.hostElement).querySelector("#img").src!==TGi&&(zCc(this.hostElement),this.notifyOnLoaded&&_.Ub(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.J.onError_=function(){var p=this;if(_.n("web_use_cache_for_image_fallback"))t3g(_.jR(this.hostElement).querySelector("#img").src).then(function(y){p.objectURL_=_.du(y).toString();p.setSrc_(p.objectURL_)}).catch(function(){_.n("kevlar_woffle_fallback_image")&&p.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.J.onPrescanVisible=function(){this.onShow_()};
_.J.onVisible=function(){if(_.n("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.J.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var p=this.computeSrc_();p!==_.jR(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(p))}};
_.J.onReload_=function(){this.empty_=!1;var p=this.computeSrc_();p!==_.jR(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(p))};
_.J.shouldShowPlaceholder_=function(){return _.n("kevlar_thumbnail_bg")};
x5.prototype.observePlaceholderColor_=x5.prototype.observePlaceholderColor_;x5.prototype.delayedSrcChanged_=x5.prototype.delayedSrcChanged_;x5.prototype.thumbnailChanged_=x5.prototype.thumbnailChanged_;_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],x5.prototype,"alt",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],x5.prototype,"ariaHidden",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],x5.prototype,"ariaLabel",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],x5.prototype,"hidden",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],x5.prototype,"id",void 0);_.H([_.V(_.JG.YtVisibilityBehavior),_.x("design:type",Object)],x5.prototype,"ytVisibilityBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],x5.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",String)],x5.prototype,"delayedSrc",void 0);
_.H([_.Q(),_.x("design:type",Object)],x5.prototype,"thumbnail",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],x5.prototype,"loaded",void 0);_.H([_.Q(),_.x("design:type",Boolean)],x5.prototype,"notifyOnLoaded",void 0);_.H([_.Q(),_.x("design:type",Number)],x5.prototype,"height",void 0);_.H([_.Q(),_.x("design:type",Number)],x5.prototype,"width",void 0);_.H([_.Q({value:function(){return"width"}}),
_.x("design:type",String)],x5.prototype,"dimension",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],x5.prototype,"fit",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],x5.prototype,"fitHeight",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],x5.prototype,"fitWidth",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],x5.prototype,"objectFit",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],x5.prototype,"objectPosition",void 0);_.H([_.Q(),_.x("design:type",String)],x5.prototype,"preferredThumbnail",void 0);_.H([_.Q({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.x("design:type",String)],x5.prototype,"alt_",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],x5.prototype,"sharedTooltipText",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],x5.prototype,"ftlEligible",void 0);_.H([_.Q({value:void 0}),_.x("design:type",String)],x5.prototype,"observeHiddenOption",void 0);_.H([_.Q({value:"observe_once"}),_.x("design:type",String)],x5.prototype,"observePrescanOption",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],x5.prototype,"roundedContainer",void 0);
_.H([_.k8("thumbnail"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x5.prototype,"thumbnailChanged_",null);_.H([_.k8("delayedSrc"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x5.prototype,"delayedSrcChanged_",null);_.H([_.gd("thumbnail.placeholderColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x5.prototype,"observePlaceholderColor_",null);
_.H([_.z9({is:"yt-img-shadow",disableElementRegistration:!0})],x5);var TGi=_.o4("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.Al()(x5,"yt-img-shadow",function(){if(Hkv===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-shadow--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_shadow.yt.img.shadow.css.js--\x3e<img id="img" rounded-container="[[roundedContainer]]" alt$="[[alt_]]" height="[[height]]" width="[[width]]" on-load="onLoad_" on-error="onError_" draggable="false" class="style-scope yt-img-shadow">');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;DkU===void 0&&(DkU=document.createElement("template"));var q=DkU;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Hkv=p}p=Hkv;return p},{callbackProps:["onTap"],
allowedProps:"alt ariaHidden ariaLabel delayedSrc dimension fit fitHeight fitWidth height hidden id loaded notifyOnLoaded objectFit objectPosition preferredThumbnail roundedContainer sharedTooltipText thumbnail width".split(" "),mode:2});var y8c;_.B_=new _.WE("SCREEN_MANAGER_TOKEN");y8c=new _.WE("LOG_INITIAL_SCREEN_TOKEN");_.fo=_.aF(function(p){function y(sc){return _.G(sc,_.xo)}
function l(){var sc=q().isTogglingDisabled||K()&&q().toggledIsTogglingDisabled,hR=sc||b()?K():!K();F(hR);T(!1);if(!sc){var Wt;(Wt=e)==null||Wt(!!hR)}var AR;((AR=E)==null?0:AR())||_.Kw(_.WC().resolve(_.B_),q().trackingParams);var Qu;if(!hR||!y(q().defaultButtonViewModel)||(Qu=E)!=null&&Qu()){var jj;!y(q().toggledButtonViewModel)||((jj=E)==null?0:jj())||_.Kw(_.WC().resolve(_.B_),y(q().toggledButtonViewModel).trackingParams)}else _.Kw(_.WC().resolve(_.B_),y(q().defaultButtonViewModel).trackingParams)}
var q=p.data,t=p.buttonShapeOverrides,E=p.disableExplicitClickLogging,e=p.onToggle,C=p.style,u=p.useOutlinedIcon,a=p.className,m=function(){var sc,hR;return K()?(sc=p.animatedTextPropsToggled)==null?void 0:sc.call(p):(hR=p.animatedTextPropsDefault)==null?void 0:hR.call(p)},U=_.MA(function(){return m()?Object.assign({},m(),{shouldAnimate:L()}):void 0},void 0,"ZKEa0b"),b=function(){var sc;
return((sc=v())==null?void 0:sc.isToggled)!==void 0},P=_.c(_.kS(function(){var sc,hR,Wt;
return b()?(sc=v())==null?void 0:sc.isToggled:(Wt=t==null?void 0:(hR=t())==null?void 0:hR.toggled)!=null?Wt:q().isToggled})),Z=P.next().value;
P=P.next().value;var K=Z,F=P;P=_.c(_.kS(function(){var sc,hR;return(sc=p.animatedTextPropsToggled)==null?void 0:(hR=sc.call(p))==null?void 0:hR.shouldAnimate}));
Z=P.next().value;P=P.next().value;var L=Z,T=P;Z=_.c(_.nr(!1,void 0,"S11hid"));var O=Z.next().value,f=Z.next().value,v=_.yS(function(sc){var hR;a:{var Wt=q().entityKey,AR=q().toggledStateEntitySelectorType;if(AR)switch(AR){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!Wt)break;var Qu;sc=(Qu=_.Ae(sc.entities,"sfvAudioItemCurrentlyPlayingEntity",Wt))!=null?Qu:void 0;Qu=(hR=sc==null?void 0:sc.sfvAudioItemPlaybackState)!=null?hR:void 0;if(Qu==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){hR=
{isToggled:!0};break a}if(Qu){hR={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":hR={isToggled:_.yo8(sc).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":hR={isToggled:_.yo8(sc).includes("engagement-panel-live-chat-item-section")};break a;default:_.vs(new _.SM("Error: entitySelectorType defined but not matched in selector.",sc,AR))}hR=void 0}return hR}),z=function(){return Object.assign({},t==null?
void 0:t(),{onToggle:l,
toggleable:!0,toggled:K(),focused:O()})};
return _.R("toggle-button-view-model",{"on:focusin":_.Ff(function(){var sc=_.WC().resolve(_.RK(_.Zu));sc&&f(sc.isKeyBoardInUse());return!1}),
"on:focusout":_.Ff(function(){f(!1);return!1})},_.R(_.W,{cond:function(){return K()?y(q().toggledButtonViewModel):y(q().defaultButtonViewModel)},
then:function(sc){return _.R(_.wZ,{data:sc,className:a,style:C,useOutlinedIcon:u,buttonOverrides:z,animatedTextProps:U})}}))},"B");
_.fo.idomCompat={callbacks:{onToggle:!0}};_.bp(_.aF(function(p){return _.R("yt-toggle-button-view-model",{class:function(){var y;return(y=p.scopingClassName)==null?void 0:y.call(p)}},_.R(_.fo,{data:function(){var y;
return(y=p.data)==null?void 0:y.call(p)},
buttonShapeOverrides:function(){var y;return(y=p.overrides)==null?void 0:y.call(p)},
animatedTextPropsDefault:function(){var y;return(y=p.animatedTextPropsDefault)==null?void 0:y.call(p)},
animatedTextPropsToggled:function(){var y;return(y=p.animatedTextPropsToggled)==null?void 0:y.call(p)},
disableExplicitClickLogging:function(){var y;return(y=p.disableExplicitClickLogging)==null?void 0:y.call(p)},
onToggle:function(y){var l;return(l=p.onToggle)==null?void 0:l.call(p,y)},
style:function(){var y;return(y=p.style)==null?void 0:y.call(p)},
useOutlinedIcon:function(){var y;return(y=p.useOutlinedIcon)==null?void 0:y.call(p)},
className:function(){var y;return(y=p.className)==null?void 0:y.call(p)}}))},"C"),"yt-toggle-button-view-model",{props:{data:_.Co,
buttonShapeOverrides:_.Co,overrides:_.Co,animatedTextPropsDefault:_.Co,animatedTextPropsToggled:_.Co,disableExplicitClickLogging:_.Co,onToggle:_.jw,style:_.Co,useOutlinedIcon:_.Co,className:_.Co,scopingClassName:_.Co}});var v_=function(){return _.w.apply(this,arguments)||this};
_.A(v_,_.w);v_.prototype.onTap=function(p){p.stopPropagation();p=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.Ow("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:p})):this.ytLiveChatReduxBehavior.dispatch(_.Fp("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:p}))};
_.Jh.Object.defineProperties(v_.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.engagementState)==null?void 0:p.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var p=_.G(this.data.toggleButton,_.BN),y;if(Number(((y=this.likeCountState)==null?void 0:y.likeCountIfIndifferentNumber)||"0")===0){var l;y=((l=this.data.likeCountPlaceholder)==null?void 0:l.content)||""}else{var q,t,E;y=((q=this.likeCountState)==null?void 0:(t=q.likeCountIfIndifferent)==null?void 0:t.content)||((E=this.data.likeCountPlaceholder)==null?void 0:E.content)||""}var e,C;l=((e=this.likeCountState)==null?void 0:(C=
e.likeCountIfLiked)==null?void 0:C.content)||"1";e=_.G(p.toggledButtonViewModel,_.xo);return Object.assign({},p,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.G(p.defaultButtonViewModel,_.xo),{title:y})},toggledButtonViewModel:{buttonViewModel:Object.assign({},e,{title:l})}})}}}});
v_.prototype.onTap=v_.prototype.onTap;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],v_.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],v_.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.lQ),_.x("design:type",Object)],v_.prototype,"ytLiveChatReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],v_.prototype,"data",void 0);
_.H([_.Q({selectorArgs:["data.likeCountEntityKey"],selector:l88}),_.x("design:type",Object)],v_.prototype,"likeCountState",void 0);_.H([_.Q({selectorArgs:["data.engagementStateKey"],selector:gRl}),_.x("design:type",Object)],v_.prototype,"engagementState",void 0);_.H([_.g("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],v_.prototype,"isLiked",null);
_.H([_.g("data","likeCountState","isLiked"),_.x("design:type",Object),_.x("design:paramtypes",[])],v_.prototype,"toggleButton",null);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],v_.prototype,"onTap",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],v_);
_.D(v_,"yt-live-chat-like-button-view-model",function(){if(qeO===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-like-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_like_button_view_model.yt.live.chat.like.button.view.model.css.js--\x3e<yt-toggle-button-view-model data="[[toggleButton]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-like-button-view-model">\n</yt-toggle-button-view-model>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;lji===void 0&&(lji=document.createElement("template"));var q=lji;l.call(y,q.content.cloneNode(!0),p.content.firstChild);qeO=p}p=qeO;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var xkU;var BGr;var XW=function(){return _.w.apply(this,arguments)||this};
_.A(XW,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],XW.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],XW.prototype,"data",void 0);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],XW);
_.D(XW,"yt-live-chat-paid-message-footer-renderer",function(){if(BGr===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_footer_renderer.yt.live.chat.paid.message.footer.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-paid-message-footer-renderer">\n  <div id="icon" hidden$="[[!data.icon]]" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-icon>\n  </div>\n  <div id="text" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-formatted-string>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;xkU===void 0&&(xkU=document.createElement("template"));var q=xkU;l.call(y,q.content.cloneNode(!0),p.content.firstChild);BGr=p}p=BGr;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var fji;var vur;var XwB;var dkU,OkB=function(){if(dkU!==void 0)return dkU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-reply-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_reply_button_view_model.yt.live.chat.reply.button.view.model.css.js--\x3e<yt-button-view-model data="[[buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-reply-button-view-model">\n</yt-button-view-model>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;XwB===void 0&&(XwB=document.createElement("template"));var q=XwB;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return dkU=p};var dZ=function(){return _.w.apply(this,arguments)||this};
_.A(dZ,_.w);dZ.prototype.onTap=function(p){p.stopPropagation()};
_.Jh.Object.defineProperties(dZ.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var p=_.G(this.data.replyButton,_.xo),y,l,q,t,E,e,C,u=Number(((y=this.replyCountState)==null?void 0:y.replyCountNumber)||"0")===0?(l=this.data)==null?void 0:(q=l.replyCountPlaceholder)==null?void 0:q.content:((t=this.replyCountState)==null?void 0:(E=t.replyCount)==null?void 0:E.content)||((e=this.data)==null?void 0:(C=e.replyCountPlaceholder)==null?void 0:C.content)||"",a;return Object.assign({},
p,{title:u,accessibilityText:(a=this.replyCountState)==null?void 0:a.replyButtonAccessibilityText})}}}});
_.Jh.Object.defineProperties(dZ,{template:{configurable:!0,enumerable:!0,get:function(){return OkB()}}});
dZ.prototype.onTap=dZ.prototype.onTap;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],dZ.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.lQ),_.x("design:type",Object)],dZ.prototype,"ytLiveChatReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],dZ.prototype,"data",void 0);
_.H([_.Q({selectorArgs:["data.replyCountEntityKey"],selector:function(p,y){return _.Ae(p.entities,"replyCountEntity",y)}}),
_.x("design:type",Object)],dZ.prototype,"replyCountState",void 0);_.H([_.g("data","replyCountState"),_.x("design:type",Object),_.x("design:paramtypes",[])],dZ.prototype,"buttonViewModel",null);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],dZ.prototype,"onTap",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],dZ);
_.D(dZ,"yt-live-chat-reply-button-view-model",function(){return OkB()},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var oux;var zC$;var Od=function(){var p=_.w.apply(this,arguments)||this;p.ariaLabel="";return p};
_.A(Od,_.w);
Od.prototype.dataChanged=function(){for(var p=(0,_.Pm)(_.jR(this.hostElement).querySelector("#image"));p.firstChild;)p.removeChild(p.firstChild);if(this.data)if(this.data.icon){var y=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(y.polymerController.icon="yt-sys-icons:shield-filled",y.polymerController.defaultToFilled=!0):y.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();p.appendChild(y)}else if(this.data.customThumbnail){y=document.createElement("img");
var l=_.BG5(this.data.customThumbnail.thumbnails,16);l?(y.src=l,p.appendChild(y),y.setAttribute("alt",this.hostElement.ariaLabel||"")):_.vs(new _.SM("Could not compute URL for thumbnail",this.data.customThumbnail))}};
Od.prototype.identity=function(p){return p};
Od.prototype.computeType=function(p){return Me(p||void 0)};
Od.prototype.dataChanged=Od.prototype.dataChanged;_.H([_.Q(),_.x("design:type",Object)],Od.prototype,"data",void 0);_.H([_.Q({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.x("design:type",Object)],Od.prototype,"ariaLabel",void 0);_.H([_.Q({computed:"computeType(data)",reflectToAttribute:!0}),_.x("design:type",String)],Od.prototype,"type",void 0);
_.H([_.Q({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.x("design:type",String)],Od.prototype,"sharedTooltipText",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.n("live_chat_enable_new_moderator_badge")}}),
_.x("design:type",Boolean)],Od.prototype,"enableNewModeratorBadge",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Od.prototype,"dataChanged",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Od);
_.D(Od,"yt-live-chat-author-badge-renderer",function(){if(zC$===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_badge_renderer.yt.live.chat.author.badge.renderer.css.js--\x3e<div id="image" class="style-scope yt-live-chat-author-badge-renderer"></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;oux===void 0&&(oux=document.createElement("template"));var q=oux;l.call(y,q.content.cloneNode(!0),p.content.firstChild);zC$=p}p=zC$;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var YeZ;var IjZ;var oi=function(){return _.w.apply(this,arguments)||this};
_.A(oi,_.w);_.J=oi.prototype;_.J.configureRendererStamper=function(){return{badgesBeforeChip:{id:"prepend-chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesOutsideChip:{id:"chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesInsideChip:{id:"chip-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}}}};
_.J.computeBadgesInsideChip=function(p){return p?p.filter(function(y){return Me(y.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.J.computeBadgesOutsideChip=function(p){return this.prependChatBadges||!p?[]:p.filter(function(y){y=Me(y.liveChatAuthorBadgeRenderer);return y!=="verified"&&y!=="owner"})};
_.J.computeBadgesBeforeChip=function(p){return this.prependChatBadges&&p?p.filter(function(y){y=Me(y.liveChatAuthorBadgeRenderer);return y!=="verified"&&y!=="owner"}):[]};
_.J.computeIsHighlighted=function(p,y){var l=!!qGj(p,"owner"),q=!!qGj(p,"verified");p=!!qGj(p,"moderator");return(l||q&&!p)&&!y};
_.J.computeAuthorType=function(p){return ldl(p)};
_.J.computeAuthorClass=function(p,y){return y?(p?p+" ":"")+"single-line":p};
_.J.onSeedColorChanged=function(){_.n("live_chat_author_name_color_usernames")||_.n("live_chat_seed_color_usernames")||_.n("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):_.n("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
oi.prototype.onSeedColorChanged=oi.prototype.onSeedColorChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],oi.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],oi.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],oi.prototype,"authorName",void 0);_.H([_.Q(),_.x("design:type",Array)],oi.prototype,"authorBadges",void 0);
_.H([_.Q({computed:"computeAuthorType(authorBadges)"}),_.x("design:type",String)],oi.prototype,"authorType",void 0);_.H([_.Q({computed:"computeAuthorClass(authorType, singleLine)"}),_.x("design:type",String)],oi.prototype,"authorClass",void 0);_.H([_.Q({computed:"computeBadgesInsideChip(authorBadges)"}),_.x("design:type",Array)],oi.prototype,"badgesInsideChip",void 0);_.H([_.Q({computed:"computeBadgesOutsideChip(authorBadges)"}),_.x("design:type",Array)],oi.prototype,"badgesOutsideChip",void 0);
_.H([_.Q({computed:"computeBadgesBeforeChip(authorBadges)"}),_.x("design:type",Array)],oi.prototype,"badgesBeforeChip",void 0);_.H([_.Q({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.x("design:type",Boolean)],oi.prototype,"isHighlighted",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],oi.prototype,"singleLine",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],oi.prototype,"disableHighlighting",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],oi.prototype,"dashboardMoneyFeed",void 0);_.H([_.Q({value:_.n("live_chat_prepend_badges"),reflectToAttribute:!0}),_.x("design:type",Boolean)],oi.prototype,"prependChatBadges",void 0);_.H([_.Q(),_.x("design:type",String)],oi.prototype,"authorNameColor",void 0);_.H([_.rd("#author-name"),_.x("design:type",HTMLDivElement)],oi.prototype,"username",void 0);
_.H([_.gd("authorNameColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oi.prototype,"onSeedColorChanged",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],oi);
_.D(oi,"yt-live-chat-author-chip",function(){if(IjZ===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-chip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_chip.yt.live.chat.author.chip.css.js--\x3e<span id="prepend-chat-badges" class="style-scope yt-live-chat-author-chip"></span><span id="author-name" dir="auto" class$="[[authorClass]] style-scope yt-live-chat-author-chip">[[getSimpleString(authorName)]]<span id="chip-badges" class="style-scope yt-live-chat-author-chip"></span></span><span id="chat-badges" class="style-scope yt-live-chat-author-chip"></span>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;YeZ===void 0&&(YeZ=document.createElement("template"));var q=YeZ;l.call(y,q.content.cloneNode(!0),p.content.firstChild);IjZ=p}p=IjZ;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var pvO;var yzM;var zS=function(){var p=_.w.apply(this,arguments)||this;p.debounceCommand=_.Fd(function(y){p.ytComponentBehavior.resolveCommand(y)},1500);
return p};
_.A(zS,_.w);zS.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var p=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",y,l,q=this.isHearted?(y=this.data)==null?void 0:y.unheartCommand:(l=this.data)==null?void 0:l.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.Ow("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:p}));(p=_.yM(q))&&this.debounceCommand(p)}};
_.Jh.Object.defineProperties(zS.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var p,y;if(!((p=this.data)==null?0:(y=p.creatorThumbnail)==null?0:y.sources))return{};p={thumbnails:[]};y={};y.url=this.data.creatorThumbnail.sources[0].url;p.thumbnails.push(y);return p}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.engagementState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((y=this.engagementState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.engagementState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((y=this.engagementState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.engagementState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return((p=this.engagementState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((y=this.engagementState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((l=this.engagementState)==null?void 0:l.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}}});
zS.prototype.onTap=zS.prototype.onTap;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],zS.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],zS.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.lQ),_.x("design:type",Object)],zS.prototype,"ytLiveChatReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],zS.prototype,"data",void 0);
_.H([_.Q({selectorArgs:["data.engagementStateKey"],selector:gRl}),_.x("design:type",Object)],zS.prototype,"engagementState",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],zS.prototype,"thumbnailDetails",null);_.H([_.g("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zS.prototype,"isHearted",null);_.H([_.g("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zS.prototype,"isEditable",null);
_.H([_.g("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zS.prototype,"showCreatorView",null);_.H([_.g("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zS.prototype,"showButton",null);_.H([_.g("data","isHearted"),_.x("design:type",String),_.x("design:paramtypes",[])],zS.prototype,"label",null);_.H([_.g("data","isHearted"),_.x("design:type",Object),_.x("design:paramtypes",[])],zS.prototype,"heartHoverText",null);
_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zS.prototype,"onTap",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],zS);
_.D(zS,"yt-live-chat-creator-heart-view-model",function(){if(yzM===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-creator-heart-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_creator_heart_view_model.yt.live.chat.creator.heart.view.model.css.js--\x3e<yt-icon-button id="creator-heart-button" hidden="[[!showButton]]" label="[[label]]" title="[[heartHoverText]]" class="style-scope yt-live-chat-creator-heart-view-model">\n  <template is="dom-if" if="[[showCreatorView]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-image id="unhearted" data="[[data.unheartedIcon]]" height="24" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n  <template is="dom-if" if="[[isHearted]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-img-shadow id="creator-thumbnail" thumbnail="[[thumbnailDetails]]" class="style-scope yt-live-chat-creator-heart-view-model"></yt-img-shadow>\n    <yt-image id="hearted-border" data="[[data.heartedIcon]]" height="16" preserve-height="true" width="16" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n    <yt-image id="hearted" data="[[data.heartedIcon]]" height="14" preserve-height="true" width="14" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n</yt-icon-button>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;pvO===void 0&&(pvO=document.createElement("template"));var q=pvO;l.call(y,q.content.cloneNode(!0),p.content.firstChild);yzM=p}p=yzM;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var Y5=function(){};
_.A(Y5,Vh);Y5.prototype.JSC$12984_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:sb("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Y5.prototype.getApiPaths=function(){return[]};
Y5.prototype.getExtension=function(){};
Y5.prototype.JSC$12984_buildRequest=function(){};var lPv={},qli=(lPv.GET_DATASYNC_IDS=L4(Y5),lPv);var stN,t3v,Ebx,Yov,Ii,eiU,sqB,czN,Jzv;stN="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");t3v=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Js=function(p,y,l,q,t,E,e,C,u){this.endpointMap=p;this.networkManager=y;this.authService=l;this.responseProcessorMap=q;this.innertubeResponseStore=t;this.contextProcessors=E;this.asyncContextProcessors=e;this.localInnertubeRouter=C;this.requestSequencer=u;this.inflightRequests=new Map;p.signalEndpointMap||(p.signalEndpointMap={});p.signalEndpointMap=Object.assign({},qli,p.signalEndpointMap)};
Ebx=function(p,y,l,q,t,E,e,C,u){if(_.Js.instance!==void 0){if(q=_.Js.instance,p=[p!==q.endpointMap,y!==q.networkManager,l!==q.authService,t!==q.innertubeResponseStore,E!==q.contextProcessors,e!==q.asyncContextProcessors,C!==q.localInnertubeRouter],p.some(function(a){return a}))throw new _.SM("InnerTubeTransportService is already initialized",p);
}else _.Js.instance=new _.Js(p,y,l,q,t,E,e,C,u)};
_.eo=function(p,y,l){var q=q===void 0?cKr:q;var t=sqB(p,y);return t?new _.Ps(function(E,e){var C,u,a,m,U;return _.h(function(b){switch(b.nextAddress){case 1:return b.yield(t,2);case 2:C=b.yieldResult;u=C.JSC$12984_getRequest(y,l,q);if(!u){e(new _.SM("Error: Failed to build request for command.",y));b.jumpTo(0);break}yU(u.input);m=((a=u.requestShell)==null?void 0:a.mode)==="cors"?"cors":void 0;if(p.authService.syncHeaders){U=Jzv(u.config,m);b.jumpTo(4);break}return b.yield(czN(u.config,m),5);case 5:U=
b.yieldResult;case 4:E(eiU(p,u,U)),_.rR(b)}})}):_.vL(new _.SM("Error: No request builder found for command.",y))};
Yov=function(p,y,l,q){var t=t===void 0?cKr:t;var E,e,C,u,a,m,U,b,P,Z,K,F,L,T,O,f,v,z;return _.h(function(sc){switch(sc.nextAddress){case 1:E=tG8(y,p.endpointMap);if(!E)throw new _.SM("Error: No streaming request builder found for command",y);e=E.JSC$12984_getRequest(y,l,t);if(!e)throw new _.SM("Failed to build YtRequest for streaming Command",y);if((C=p.localInnertubeRouter)==null||!C.shouldPreferLocalResponse(e.input,e.innerTubeRequest)){sc.jumpTo(2);break}return sc.yield(p.localInnertubeRouter.localInnertubeResponse(e.input,
e.innerTubeRequest),3);case 3:return u=sc.yieldResult,a={},u.playerResponse&&(Ii(p,u.playerResponse,e),a.player=u.playerResponse,(m=q)==null||m(a,u)),u.watchNextResponse&&(Ii(p,u.watchNextResponse,e),a.content=u.watchNextResponse,(U=q)==null||U(a,u)),sc.return(a);case 2:P=((b=e.requestShell)==null?void 0:b.mode)==="cors"?"cors":void 0;if(p.authService.syncHeaders){Z=Jzv(e.config,P);sc.jumpTo(4);break}return sc.yield(czN(e.config,P),5);case 5:Z=sc.yieldResult;case 4:return L=(F=(K=e.requestShell)==
null?void 0:K.headers)!=null?F:{},e.requestShell=Object.assign({},e.requestShell,{headers:Object.assign({},L,Z)}),T=Object.assign({},e.requestShell),O=JSON.stringify(e.innerTubeRequest),e.requestShell.method==="POST"&&(T=Object.assign({},T,{body:O})),f=function(hR,Wt){Ii(p,Wt.playerResponse||Wt.watchNextResponse||Wt.reelItemWatchResponse||Wt.reelWatchSequenceResponse,e);q==null||q(hR,Wt)},v={},sc.yield(hir(p.networkManager,e.input,T,f),6);
case 6:return v=sc.yieldResult,((z=e.config)==null?0:z.responseTick)&&_.fy(e.config.responseTick),sc.return(v)}})};
_.pI=function(p,y,l,q,t){t=t===void 0?{authStrategy:{identity:cKr}}:t;var E=E===void 0?!0:E;var e=function(){};
e=YTj(odt(l));y.context||(y.context=_.ecu(q,E));return new _.Ps(function(C){var u,a,m,U,b;return _.h(function(P){if(P.nextAddress==1)return u=L4t(l),a=_.ll(u),p.authService.syncHeaders?(m=Jzv(t,a),P.jumpTo(2)):P.yield(czN(t,a),3);P.nextAddress!=2&&(m=P.yieldResult);U=kv5(L4t(l));b={input:U,requestShell:sb(U),innerTubeRequest:y,config:t};C(eiU(p,b,m,e));_.rR(P)})})};
Ii=function(p,y,l){var q;if(y&&!(y==null?0:(q=y.sequenceMetaData)==null?0:q.skipProcessing)&&p.responseProcessorMap){q=_.c(stN);for(var t=q.next();!t.done;t=q.next())t=t.value,p.responseProcessorMap[t]&&p.responseProcessorMap[t].handleResponse(y,l)}};
eiU=function(p,y,l,q){q=q===void 0?function(){}:q;
var t,E,e,C,u,a,m,U,b,P,Z,K,F,L,T,O,f,v,z,sc,hR,Wt,AR,Qu,jj,x6,L8,Y6,AZ,cU,Xo,U$,WU,VQ,b9,kx,JR,s$,PU,Uu;return _.h(function(jB){switch(jB.nextAddress){case 1:e=(t=y.config)==null?void 0:(E=t.storeStrategy)==null?void 0:E.storeKey;if(!(e&&p.innertubeResponseStore&&p.innertubeResponseStore.has(e))||((C=y.config)==null?0:(u=C.storeStrategy)==null?0:u.disableCache)){jB.jumpTo(2);break}return jB.yield(p.innertubeResponseStore.get(e),3);case 3:if((a=jB.yieldResult)&&!a.isExpired())return jB.return(Promise.resolve(_.$z(a)));
case 2:if(!((m=y)==null?0:(U=m.innerTubeRequest)==null?0:U.context)){jB.jumpTo(4);break}b=y.innerTubeRequest.context;if(!(p.asyncContextProcessors&&p.asyncContextProcessors.length>0)){jB.jumpTo(5);break}P=[];Z=_.c(p.asyncContextProcessors);for(K=Z.next();!K.done;K=Z.next())F=K.value,L=F.processContext(y),L.wrappedPromise_&&P.push(L.wrappedPromise_);if(!(P.length>0)){jB.jumpTo(5);break}return jB.yield(Promise.all(P),5);case 5:T=_.c(p.contextProcessors||[]),O=T.next();case 8:if(O.done){jB.jumpTo(4);
break}f=O.value;return jB.yield(f.processContext(b),9);case 9:O=T.next();jB.jumpTo(8);break;case 4:if((v=p.localInnertubeRouter)==null||!v.shouldPreferLocalResponse(y.input,y.innerTubeRequest)){jB.jumpTo(12);break}return jB.yield(p.localInnertubeRouter.localInnertubeResponse(y.input,y.innerTubeRequest),13);case 13:return z=jB.yieldResult,Ii(p,z,y),jB.return(z);case 12:return(Wt=(hR=y.config)==null?void 0:hR.requestKey)&&p.inflightRequests.has(Wt)?sc=p.inflightRequests.get(Wt):(AR=JSON.stringify(y.innerTubeRequest),
x6=(jj=(Qu=y.requestShell)==null?void 0:Qu.headers)!=null?jj:{},y.requestShell=Object.assign({},y.requestShell,{headers:Object.assign({},x6,l)}),L8=Object.assign({},y.requestShell),y.requestShell.method==="POST"&&(L8=Object.assign({},L8,{body:AR})),((Y6=y.config)==null?0:Y6.requestTick)&&_.fy(y.config.requestTick),AZ=function(){return p.networkManager.fetch(y.input,L8,y.config)},sc=p.requestSequencer?CJZ(p.requestSequencer,y,AZ):AZ(),Wt&&p.inflightRequests.set(Wt,sc)),jB.yield(sc,14);
case 14:(cU=jB.yieldResult)&&_.n("web_streaming_player")&&Array.isArray(cU)&&(cU=cU[0].playerResponse);if(cU&&"error"in cU&&((Xo=cU)==null?0:(U$=Xo.error)==null?0:U$.details))for(WU=cU.error.details,VQ=_.c(WU),b9=VQ.next();!b9.done;b9=VQ.next())kx=b9.value,(JR=kx["@type"])&&t3v.indexOf(JR)>-1&&(delete kx["@type"],cU=kx);Wt&&p.inflightRequests.has(Wt)&&p.inflightRequests.delete(Wt);((s$=y.config)==null?0:s$.responseTick)&&_.fy(y.config.responseTick);if(cU||(PU=p.localInnertubeRouter)==null||!PU.canProvideFallbackResponse(y.input,
y.innerTubeRequest)){jB.jumpTo(15);break}return jB.yield(p.localInnertubeRouter.localFallbackInnertubeResponse(y.input,y.innerTubeRequest),16);case 16:cU=jB.yieldResult;case 15:return Ii(p,cU,y),((Uu=y.config)==null?0:Uu.processorTick)&&_.fy(y.config.processorTick),q(),jB.return(cU||void 0)}})};
_.cN=function(p,y){return sQ5(y,p.endpointMap)};
sqB=function(p,y){p=Eit(y,p.endpointMap);if(p!==void 0)return Promise.resolve(p)};
czN=function(p,y){var l,q,t,E;return _.h(function(e){if(e.nextAddress==1){t=(l=p)==null?void 0:(q=l.authStrategy)==null?void 0:q.sessionIndex;var C=e.yield;var u=_.PW(eAt({sessionIndex:t}));return C.call(e,u,2)}E=e.yieldResult;return e.return(Promise.resolve(Object.assign({},Jot(y),E)))})};
Jzv=function(p,y){var l;p=p==null?void 0:(l=p.authStrategy)==null?void 0:l.sessionIndex;l=eAt({sessionIndex:p});return Object.assign({},Jot(y),l)};var ubZ,RiB,WK$,aPZ,mzM,UzN,bQO,nbN,lA,GyU,PJr,jtO,AzP;ubZ=0;RiB=/tone[1-5]/;WK$=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");aPZ="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
mzM=Number.MAX_SAFE_INTEGER;UzN=RegExp("\ufe0f","g");_.pP=function(p){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;p&&_.$zx(this,p)};
_.$zx=function(p,y){try{_.Z3(y,{context:p,onSuccess:function(q,t){Array.isArray(t)?p.load(t):(q=new _.SM("Emoji manager JSON response was not an array!",{response:t}),_.Bs(q))},
onError:function(q){q=new _.SM("Failed to retrieve emoji manager initial JSON data!",{url:y,statusCode:_.bv(q).toString()});_.vs(q)}})}catch(q){var l=new _.SM("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:y});
_.vs(l)}};
_.pP.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.pP.prototype.load=function(p,y){if(y)if(p.length)p=p.concat(y.emojis);else{this.emojis=y.emojis;this.emojiMap=y.emojiMap;this.emojiShortcutMap=y.emojiShortcutMap;this.emojiShortcutCharMap=jtO(y);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=y.emojiRegex;return}this.emojis=[].concat(_.xq(new Set(this.emojis.concat(p))));this.hasInitializedShortcutCharMap=!1;p=Array(this.emojis.length);for(y=0;y<this.emojis.length;y++){var l=this.emojis[y];if(l.emojiId){this.emojiMap[l.emojiId]=l;this.emojiMap[l.emojiId].index=
y;for(var q=0;l.shortcuts&&q<l.shortcuts.length;q++)this.emojiShortcutMap[l.shortcuts[q].toLocaleLowerCase()]=l;p[y]=l.isCustomEmoji&&l.shortcuts?l.shortcuts[0]:l.emojiId}}p.sort(function(t,E){return E.length-t.length});
if(p.length)try{this.emojiRegex=new RegExp(p.join("|").replace("*","\\*"),"gi")}catch(t){this.emojiRegex=/$./}else this.emojiRegex=/$./};
bQO=function(p,y){y=_.c(y);for(var l=y.next();!l.done;l=y.next()){var q=l.value;if(q.emojiId&&p.emojiMap[q.emojiId]){l=Object.assign({},p.emojiMap[q.emojiId],q);p.emojiMap[q.emojiId]=l;var t=void 0;l.index&&((t=p.emojis[l.index])==null?void 0:t.emojiId)===q.emojiId&&(p.emojis[l.index]=l);q=void 0;if((q=l.shortcuts)==null?0:q.length)for(p.hasInitializedShortcutCharMap=!1,q=_.c(l.shortcuts),t=q.next();!t.done;t=q.next())p.emojiShortcutMap[t.value.toLocaleLowerCase()]=l}}};
nbN=function(p){var y,l;_.h(function(q){if(q.nextAddress==1)return q.yield(_.B4.getInstance(),2);if(q.nextAddress!=3)return(y=q.yieldResult)?q.yield(y.get("ytlc-emoji-pref"),3):q.return();(l=q.yieldResult)&&bQO(p,Object.keys(l).map(function(t){return{emojiId:t,stickyPrefId:l[t]}}).filter(function(t){return!!t.emojiId&&!!t.stickyPrefId}));
_.rR(q)})};
_.yD=function(p,y,l){return(p=p.emojiMap[y])&&(!p.isLocked||l!==void 0&&l)?p:void 0};
lA=function(p,y,l){l=_.yD(p,y,l===void 0?!1:l);var q=y.match("\u200d");l&&p.skinTone!==0&&(p=(q==null?void 0:q.length)===1?_.yD(p,y.replace("\u200d",WK$[p.skinTone]+"\u200d")):_.yD(p,y+WK$[p.skinTone]))&&(l=p);return l};
GyU=function(p,y){var l=p.emojiMap[y];return(l==null?0:l.stickyPrefId)?p.emojiMap[l.stickyPrefId]:lA(p,y)};
_.Qn=function(p,y){p=p.emojiShortcutMap[y.toLocaleLowerCase()];return!p||p.isLocked?null:p};
PJr=function(p,y,l){return jtO(p,l===void 0?!1:l)[y]||{}};
jtO=function(p,y){y=y===void 0?!1:y;if(!p.hasInitializedShortcutCharMap){p.hasInitializedShortcutCharMap=!0;for(var l=0;l<p.emojis.length;l++){var q=p.emojis[l];if(!(q.isLocked||y&&q.isCustomEmoji&&q.emojiId&&!p.pickerCustomEmojiIds.includes(q.emojiId)))for(var t=0;q.shortcuts&&t<q.shortcuts.length;t++){var E=q.shortcuts[t];E.startsWith(":_")&&q.isCustomEmoji&&(p.emojiShortcutCharMap[":_"]==null&&(p.emojiShortcutCharMap[":_"]=Object.create(null)),p.emojiShortcutCharMap[":_"][E]=q);if(!(E.length<3||
!q.isCustomEmoji&&RiB.test(E))){var e=E.substr(0,3).toLocaleLowerCase();p.emojiShortcutCharMap[e]==null&&(p.emojiShortcutCharMap[e]=Object.create(null));p.emojiShortcutCharMap[e][E]=q}}}}return p.emojiShortcutCharMap};
_.pP.prototype.createEmoji=function(p,y){y=y===void 0?!0:y;var l=document.createElement("img");p.isCustomEmoji||l.classList.add("small-emoji");l.classList.add("emoji");l.classList.add("yt-formatted-string");l.src=p.image?_.nY(p.image.thumbnails,this.emojiSize)||"":"";var q=void 0;p.image&&p.image.accessibility&&p.image.accessibility.accessibilityData&&(q=p.image.accessibility.accessibilityData.label);l.alt=q?q:(p.isCustomEmoji&&p.shortcuts?p.shortcuts[0]:p.emojiId)||"";p.isCustomEmoji&&(l.dataset.emojiId=
p.emojiId);_.P0&&(l.setAttribute("contenteditable","false"),l.setAttribute("unselectable","on"));y&&(p.shortcuts&&p.shortcuts.length&&l.setAttribute("shared-tooltip-text",p.shortcuts[0]),l.id="emoji-"+ubZ++);return l};
_.pP.prototype.createDocumentFragment=function(p,y,l,q){y=y===void 0?!1:y;l=l===void 0?!0:l;q=q===void 0?!1:q;p=p.replace(UzN,"");for(var t=document.createDocumentFragment(),E=0,e,C=0;(e=this.emojiRegex.exec(p))!=null;){var u=_.yD(this,e[0])||_.Qn(this,e[0]);!u||u.isCustomEmoji&&!y||(u=this.createEmoji(u,l),E!==e.index&&t.appendChild(document.createTextNode(p.substring(E,e.index))),t.appendChild(u),E=e.index+e[0].length,C++)}if(!q||C)return t.appendChild(document.createTextNode(p.substr(E))),t};
AzP=function(p,y,l){var q,t,E,e,C,u,a,m,U;return _.h(function(b){if(b.nextAddress==1){if(!y.emojiId||!p.emojiMap[y.emojiId])return b.return();q=Object.assign({},p.emojiMap[y.emojiId],{stickyPrefId:l});p.emojiMap[y.emojiId]=q;y.index&&((t=p.emojis[y.index])==null?void 0:t.emojiId)===y.emojiId&&(p.emojis[y.index]=q);if((E=y.shortcuts)==null?0:E.length)for(p.hasInitializedShortcutCharMap=!1,e=_.c(y.shortcuts),C=e.next();!C.done;C=e.next())u=C.value,p.emojiShortcutMap[u.toLocaleLowerCase()]=q;return b.yield(_.B4.getInstance(),
2)}if(b.nextAddress!=4)return(a=b.yieldResult)?b.yield(a.get("ytlc-emoji-pref"),4):b.jumpTo(0);U=(m=b.yieldResult)!=null?m:{};U[y.emojiId]=l;return b.yield(a.set("ytlc-emoji-pref",U,mzM),0)})};
_.q4=new _.pP;var V3Q;_.sg={};
V3Q={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.n("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:_.n("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 sK(7),shouldSupportInlineActionButtons:function(){return!1},
shouldSupportWholeItemClick:function(){return!1},
beforeRegister:function(){if(this.supportsInlineActionButtons||this.shouldSupportInlineActionButtons())this.stampDom||(this.stampDom={}),this.stampDom["data.inlineActionButtons"]={id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}}},
ready:function(){var p=_.jR(this.hostElement||this).querySelector("#inline-action-button-container");p&&p.setAttribute("aria-hidden","true");this.menuButton=_.jR(this.hostElement).querySelector("#menu-button")},
attached:function(){var p=this.menuButton;p&&(p.addEventListener("focusin",_.MH(this,this.onMenuButtonFocus_)),p.addEventListener("focusout",_.MH(this,this.onMenuButtonBlur_)))},
detached:function(){var p=this.menuButton;p&&(p.removeEventListener("focusin",_.MH(this,this.onMenuButtonFocus_)),p.removeEventListener("focusout",_.MH(this,this.onMenuButtonBlur_)))},
identity:_.Dt,truthy:function(p){return!!p},
computeTimestampString:function(p){return p?p.timestampText?this.getSimpleString(p.timestampText):this.TIME_FORMATTER.format(new Date(p.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(p){return p},
computeMenuVisible_:function(p,y){return p||y},
computeHasInlineActionButtons:function(p){if(!p)return!1;var y,l;return!((y=p.inlineActionButtons)==null||!y.length)||!((l=p.additionalInlineActionButtons)==null||!l.length)},
createDocumentFragmentFromString:function(p){var y=_.q4.createDocumentFragment.bind(_.q4),l;if((l=this.participantsManager)==null||!l.viewerRegex)return y(p);l=document.createDocumentFragment();for(var q=0,t;(t=this.participantsManager.viewerRegex.exec(p))!=null;){if(t.index>0){var E=":"+t[0]+":";if((_.yD(_.q4,E)||_.Qn(_.q4,E))&&p.indexOf(E)===t.index-1)continue}l.appendChild(y(p.substring(q,t.index)));q=document.createElement("span");q.appendChild(y(t[0]));q.classList.add("mention");l.appendChild(q);
q=t.index+t[0].length}l.appendChild(y(p.substring(q)));return l},
createDocumentFragment:function(p){var y=document.createDocumentFragment();if(p.simpleText)return y.appendChild(this.createDocumentFragmentFromString(p.simpleText)),y;if(!p.runs)return y;for(var l=0;l<p.runs.length;l++){var q=p.runs[l];if(q.emoji)y.appendChild(_.q4.createEmoji(q.emoji));else if(q.text)if(q.navigationEndpoint){var t=document.createElement("a");t.classList.add("yt-simple-endpoint");VoL(t,q.navigationEndpoint);_.jR(t).appendChild(this.createDocumentFragmentFromString(q.text));y.appendChild(t)}else y.appendChild(this.createDocumentFragmentFromString(q.text))}return y},
hasModerationOverlayVisible:function(){var p;return((p=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:p.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(p){p.composedPath().some(function(y){return(y=y instanceof Element?y:null)?y.tagName&&(y.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||y.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.n("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(p)},
colorFromDecimal:function(p){return Nwu(p)},
markAsDeleted:function(p,y){this.set("data.deletedStateMessage",p);this.set("data.showOriginalContentMessage",y)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(p){if(this.data.contextMenuEndpoint){var y=_.WC().resolve(_.vI),l=this.data.contextMenuEndpoint,q;(q=_.Js.instance)&&_.cN(q,l)?(y=ZQU(y,l),q=_.pI(q,{},y)):q=_.M3N(y,l);q.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);p&&p.stopPropagation()}},
handleGetContextMenuResponse_:function(p){var y=_.Js.instance;y&&_.cN(y,{liveChatEndpoint:{}})||(p=p.response);p.liveChatItemContextMenuSupportedRenderers&&p.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(p.liveChatItemContextMenuSupportedRenderers.menuRenderer);p.actions&&_.$w(this.hostElement,"yt-live-chat-actions",[p.actions])},
handleGetContextMenuError:function(p){if(p instanceof Error||p instanceof Object||p instanceof String)var y=p;_.Bs(new _.SM("Error encountered calling GetLiveChatItemContextMenu",y))},
showContextMenu_:function(p){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:p}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Ub(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Ub(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.sg.YtLiveChatItemBehavior=[V3Q,_.sd.YtComponentBehavior,_.Ss.YtOpenPopupBehavior];_.tC=function(){};var gbB;var QtM;var KKU;var wvi;var Eg=function(){var p=_.w.apply(this,arguments)||this;p.active=!1;p.identity=_.Dt;return p};
_.A(Eg,_.w);Eg.prototype.dataChanged=function(){this.active=!1};
Eg.prototype.onClick=function(){_.Ub(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
Eg.prototype.dataChanged=Eg.prototype.dataChanged;_.H([_.Q(),_.x("design:type",Object)],Eg.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Eg.prototype,"active",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Eg.prototype,"dataChanged",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],Eg);
_.D(Eg,"yt-live-chat-text-input-field-suggestion",function(){if(wvi===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_suggestion.yt.live.chat.text.input.field.suggestion.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-click="onClick" class="style-scope yt-live-chat-text-input-field-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[data.image.thumbnails.0.url]]" author$="[[data.author]]" class="style-scope yt-live-chat-text-input-field-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;KKU===void 0&&(KKU=document.createElement("template"));var q=KKU;l.call(y,q.content.cloneNode(!0),p.content.firstChild);wvi=p}p=wvi;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});_.JC=function(p,y,l){return CustomEvent.call(this,p,{detail:{value:y,path:l}})||this};
_.A(_.JC,CustomEvent);_.cS=function(){var p=_.w.apply(this,arguments)||this;p.viewerName=null;p.actionMap={"yt-live-chat-actions":"onChatMessage_"};p.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];p.PARTICIPANT_TIME_USEC_=3E8;return p};
_.A(_.cS,_.w);_.J=_.cS.prototype;_.J.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.J.addParticipant=function(p){var y=_.n6o(this.participants,p,function(q,t){q=q[Object.keys(q)[0]];t=t[Object.keys(t)[0]];q=String(_.JB(q.authorName)).toLowerCase();t=String(_.JB(t.authorName)).toLowerCase();return q<t?-1:q==t?0:1}.bind(this));
if(y>=0){var l=this.participants[y];l[Object.keys(l)[0]].timestampUsec&&this.splice("participants",y,1,p)}else this.splice("participants",-y-1,0,p);p=p[Object.keys(p)[0]];y=_.JB(p.authorName).toLocaleLowerCase();l=y.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(l)||(this.allParticipantsCharMap_[l]={});this.allParticipantsCharMap_[l][y]=p};
_.J.getAuthorsFromPrefix=function(p){return this.allParticipantsCharMap_.hasOwnProperty(p)?this.allParticipantsCharMap_[p]:null};
_.J.computeViewerRegex_=function(p){if(!p)return null;p=p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var y=p.indexOf("@")===0&&_.n("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(y+p.replace(/ /g,"\\s*")+"|^"+p.replace(/ /g,"\\s*")+"$|^"+p.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+p.replace(/ /g,"\\s*")+"$|(?<=\\s)"+p.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.J.checkForStaleParticipants_=function(){var p=this;this.trimOldParticipants_();this.asyncHandle_&&CFt(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.sU(function(){p.checkForStaleParticipants_()},3E4))};
_.J.onChatMessage_=function(p){var y=this,l=Date.now()*1E3;p.forEach(function(q){if(q=_.G(q,r6$)){q=q.item;var t=Object.keys(q)[0];y.SUPPORTED_ITEM_TYPES_.indexOf(t)!=-1&&q[t].timestampUsec>=l-y.PARTICIPANT_TIME_USEC_&&y.addParticipant(q)}},this);
this.checkForStaleParticipants_()};
_.J.trimOldParticipants_=function(){for(var p=Date.now()*1E3,y=this.participants.length-1;y>=0;y--){var l=this.participants[y];l=l[Object.keys(l)[0]];l.timestampUsec&&l.timestampUsec<p-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",y,1)}};
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],_.cS.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],_.cS.prototype,"viewerName",void 0);_.H([_.Q({computed:"computeViewerRegex_(viewerName)"}),_.x("design:type",Object)],_.cS.prototype,"viewerRegex",void 0);_.H([_.Q({value:function(){return[]},
notify:!0}),_.x("design:type",Array)],_.cS.prototype,"participants",void 0);_.H([_.z9({is:"yt-live-chat-participants-manager",noInjection:!0})],_.cS);var iQx=/.*([:@#].*?)$/,ek=/\u00a0/g,rz$=String.fromCharCode(160),Slr={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"},hC=function(){var p=_.w.apply(this,arguments)||this;p.disabled=!1;p.liveChatRichMessageInput=null;p.messageInput=null;p.isValidWithNoInputText=!1;p.suggestions=[];p.emojiManager=_.q4;p.inputMethodEditorActive=
!1;p.suggestionIndex=-1;p.JSC$13989_lastSuggestionRange=null;return p};
_.A(hC,_.w);_.J=hC.prototype;_.J.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.J.attached=function(){_.Aj&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.J.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.J.dataChanged=function(){if(!this.ignoreColorMapping){var p=!1,y={},l;for(l in Slr)this.data&&this.data.hasOwnProperty(l)&&(y[Slr[l]]=this.colorFromDecimal(this.data[l]),p=!0);p&&_.Ax(this.hostElement,y)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.J.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.J.colorFromDecimal=function(p){p=Math.floor(Number(p));return"rgba("+[p>>16&255,p>>8&255,p&255,(p>>24&255)/255].join()+")"};
_.J.preventDrag=function(p){p.dataTransfer&&(p.dataTransfer.dropEffect="none");p.preventDefault()};
_.J.preventResize=function(p){p.returnValue=!1};
_.J.onInputChange=function(){var p=this.characterCount,y=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&y&&y.remove();if(!y&&this.characterCount>this.maxCharacterLimit){var l=window.getSelection();if(l){var q=l.getRangeAt(0);l.removeAllRanges();l.addRange(q)}}if(l=this.getCurrentRange())q=this.calculateTextBeforeRange(l),this.completeEmojisInRange(l,q,!0)||this.updateSuggestions(l,q);q=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(q);
_.Ub(this.hostElement,"yt-live-chat-message-input-change",q);y&&this.characterCount===0&&y.remove();l&&l.commonAncestorContainer.parentElement.id==="input"&&l.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>p):l&&!l.collapsed&&l.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(p=this.input.childNodes.length-1;p>=0;p--)this.input.childNodes[p].nodeName==="BR"&&this.input.childNodes[p].remove()};
_.J.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.J.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var p=this.getCurrentRange();p&&p.commonAncestorContainer.parentElement.id==="input"&&p.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.J.mergeOverflowText=function(p){if(p){var y=document.createRange();y.selectNodeContents(p);y=y.extractContents();this.input.insertBefore(y,p)}};
_.J.checkRangeAtEndOfInput=function(){var p=this.getCurrentRange();if(p){var y=_.jR(this.hostElement).querySelector("#overflow-text"),l=document.createRange();y&&y.previousSibling?y.previousSibling instanceof HTMLImageElement?l.selectNode(y.previousSibling):l.selectNodeContents(y.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?l.selectNode(this.input.lastChild):l.selectNodeContents(this.input.lastChild));l.collapse(!1);return l.isPointInRange(p.startContainer,
p.startOffset)}return!1};
_.J.handleOverflowText=function(p){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var y=_.jR(this.hostElement).querySelector("#overflow-text"),l=this.getCurrentRange();this.input.normalize();p=this.checkRangeAtEndOfInput()&&p;this.mergeOverflowText(y);for(var q,t=0,E=0,e,C=this.input.childNodes,u=0;u<C.length;u++){var a=C[u];a instanceof Text?(E+=a.textContent.length,E>this.maxCharacterLimit&&(q=a,t=this.maxCharacterLimit+a.textContent.length-E)):a instanceof HTMLImageElement&&
(q=void 0,E=a.dataset.emojiId&&((q=this.data)==null?0:q.emojiCharacterCount)?E+this.data.emojiCharacterCount:E+a.alt.length,q=this.input,t=u);if(E>this.maxCharacterLimit&&q){e=document.createRange();e.collapse(!1);y?(E=this.input.lastChild.previousSibling,E instanceof Text?e.setEnd(this.input.lastChild.previousSibling,E.textContent.length):E instanceof HTMLImageElement&&e.setEnd(this.input,this.input.childNodes.length-1)):e.selectNodeContents(this.input);e.setStart(q,t);break}}e&&(q=!1,l&&(p=e.isPointInRange(l.startContainer,
l.startOffset-1)),y||(y=document.createElement("span"),y.id="overflow-text",y.textContent="",y.setAttribute("contenteditable","true"),_.jR(_.jR(this.hostElement).querySelector("#input")).appendChild(y),q=!0),y&&(l=e.extractContents(),y.insertBefore(l,y.firstChild),p&&y.firstChild&&(l=document.createRange(),q?l.setStartAfter(y.lastChild):l.setStartAfter(y.firstChild),l.collapse(!0),y=window.getSelection(),y.removeAllRanges(),y.addRange(l))))}};
_.J.checkForDuplicateSpans=function(){for(var p=0;p<this.input.childNodes.length;p++){var y=this.input.childNodes[p];if(y.nodeName==="SPAN"){var l=document.createRange();l.selectNodeContents(y);l=l.extractContents();this.input.insertBefore(l,y);y.remove()}}this.handleOverflowText(!0)};
_.J.getCurrentRange=function(){var p=window.getSelection();return p&&p.rangeCount?p.getRangeAt(0).cloneRange():null};
_.J.getInputRange=function(){var p=this.getCurrentRange();if(p){for(var y=p.commonAncestorContainer,l=!1,q=_.jR(this.hostElement).querySelector("#input");y;){if(y===q){l=!0;break}y=y.parentNode}l||(p=null)}p||(p=this.getRangeAtEnd());return p};
_.J.getRangeAtEnd=function(){var p=document.createRange(),y=_.jR(this.hostElement).querySelector("#input").lastChild;!y||y.nodeName!=="#text"&&y.nodeName!=="SPAN"?(p.selectNodeContents(_.jR(this.hostElement).querySelector("#input")),p.collapse(!1)):y.nodeName==="#text"?p.setStart(y,y.textContent.length):p.setStart(y,y.childNodes.length);return p};
_.J.getChatParticipantSuggestions=function(p,y,l,q){var t=_.n("live_chat_enable_handles_web_text_input_update");if(y)for(var E in y)if(E.indexOf(p)===0||t&&E.indexOf(l+p)===0){var e=y[E],C=_.JB(e.authorName);q.push({suggestion:{author:!0,authorType:l,image:e.authorPhoto,alt:C,text:C}});if(q.length>=64)break}};
_.J.getSuggestions=function(p){var y=[],l=p.substring(0,3),q=PJr(_.q4,l,!0);if(q)for(var t in q)if(t.toLocaleLowerCase().indexOf(p)===0){var E=q[t];if(E&&E.emojiId){if(E=GyU(_.q4,E.emojiId)){var e=void 0,C=void 0,u=void 0,a=void 0,m=((e=E.image)==null?0:(C=e.accessibility)==null?0:(u=C.accessibilityData)==null?0:u.label)||E.isCustomEmoji?(a=E.shortcuts)==null?void 0:a[0]:E.emojiId;y.push({suggestion:{emoji:!0,image:E.image,alt:m,text:t,textToInsertWhenSelected:E.isCustomEmoji?t:m}})}if(y.length>=
64)break}}if(!this.participantsManager)return null;if(l.indexOf("@")===0||l.indexOf("#")===0)q=l.charAt(0),p=p.substring(1),t=_.n("live_chat_enable_handles_web_text_input_update"),l.indexOf("@")===0&&t&&(t=this.participantsManager.getAuthorsFromPrefix(l.substring(0,2)),this.getChatParticipantSuggestions(p,t,q,y)),l=l.substring(1),l=this.participantsManager.getAuthorsFromPrefix(l),this.getChatParticipantSuggestions(p,l,q,y);return y?y.sort(function(U,b){return b.suggestion.text<U.suggestion.text?-1:
b.suggestion.text===U.suggestion.text?0:1}):null};
_.J.insertSuggestion=function(p){var y=_.n("live_chat_enable_handles_web_text_input_update"),l=p.authorType;y=p.text.indexOf(l)===0&&y?p.text+rz$:l+p.text+rz$;p.emoji?this.insertTextAtRange(this.JSC$13989_lastSuggestionRange,p.textToInsertWhenSelected||""):p.author&&this.insertTextAtRange(this.JSC$13989_lastSuggestionRange,y)};
_.J.updateSuggestionsAtCaret=function(){var p=this.getCurrentRange();p&&this.updateSuggestions(p,this.calculateTextBeforeRange(p))};
_.J.offsetStartOfRangeBy=function(p,y){for(;y>0;)if(p.startOffset-y>=0){p.setStart(p.startContainer,p.startOffset-y);break}else{y=p.startContainer instanceof HTMLImageElement?y-p.startContainer.alt.length:y-p.startOffset;var l=p.startContainer.previousSibling;if(!l){p.setStart(p.startContainer,0);break}if(_.n("live_chat_require_space_for_autocomplete_emoji")){var q=void 0,t=void 0;p.setStart(l,((q=l)==null?void 0:(t=q.textContent)==null?void 0:t.length)||0)}else p.setStart(l,l.childNodes.length||
0)}};
_.J.updateSuggestions=function(p,y){var l=this;this.JSC$13989_lastSuggestionRange&&(this.JSC$13989_lastSuggestionRange.detach(),this.JSC$13989_lastSuggestionRange=null);if((y=iQx.exec(y))&&y.length&&(y=y[y.length-1].toLocaleLowerCase(),y.length>2&&(this.offsetStartOfRangeBy(p,y.length),this.JSC$13989_lastSuggestionRange=p,(p=this.getSuggestions(y))&&p.length))){this.suggestions=p;_.th(this,function(){_.jR(l.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(p.length-1);return}this.dropdown.opened=!1};
_.J.completeEmojisInRange=function(p,y,l){var q=y.replace(/[\s\xa0]+$/,"");y=y.length-q.length;q=q.split(" ");q=q[q.length-1].trim().toLocaleLowerCase();var t=q.lastIndexOf(":");if(l&&!y&&t!==q.length-1)return!1;t!==-1&&(l=q.lastIndexOf(":",t-1),l!==-1&&(q=q.substring(l)));if((l=_.Qn(_.q4,q))&&l.emojiId){l=GyU(_.q4,l.emojiId)||null;this.offsetStartOfRangeBy(p,q.length+y);var E,e,C,u;q=(((E=l)==null?0:E.isCustomEmoji)?(e=l)==null?void 0:(C=e.shortcuts)==null?void 0:C[0]:(u=l)==null?void 0:u.emojiId)||
"";y&&(q+=rz$);this.insertTextAtRange(p,q);this.dropdown.opened=!1;return!0}return!1};
_.J.onSuggestion=function(p){this.insertSuggestion(p.detail);this.dropdown.opened=!1};
_.J.onKeyPress=function(p){p.keyCode===13&&(p.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Ub(this.hostElement,"yt-live-chat-send-message"))};
_.J.completeEmojis=function(){var p=document.createRange(),y=_.jR(this.hostElement).querySelector("#input").lastChild;y?p.setStart(y,y.childNodes.length):(p.selectNodeContents(_.jR(this.hostElement).querySelector("#input")),p.collapse(!1));this.completeEmojisInRange(p,this.calculateTextBeforeRange(p),_.n("live_chat_require_space_for_autocomplete_emoji"))};
_.J.maybePreventTextFormatting=function(p){!_.gl||!p.ctrlKey&&!p.metaKey||p.keyCode!==66&&p.keyCode!==73||(p.stopImmediatePropagation(),p.preventDefault())};
_.J.onKeyDown=function(p){this.maybePreventTextFormatting(p);if(this.dropdown.opened)switch(p.keyCode){case 27:this.dropdown.opened=!1;p.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;p.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);p.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),p.preventDefault()}};
_.J.onKeyUp=function(p){switch(p.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.P0)this.onInputChange()};
_.J.changeSuggestionIndex=function(p){if(this.dropdown.opened){var y=_.jR(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<y.children.length&&(y.children[this.suggestionIndex].active=!1);var l=this.suggestions.length;this.suggestionIndex=(p+l)%l;p=y.children[this.suggestionIndex];p.active=!0;y.scrollTop=p.offsetTop}};
_.J.onInputPaste=function(p){p.preventDefault();(p=p.clipboardData)&&p.types&&(p=p.getData("text/plain")||"",p=p.replace(/\n/g,""),this.insertText(p));(p=this.getCurrentRange())&&p.commonAncestorContainer.parentElement.id==="input"&&p.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.J.onFocus=function(){this._setFocused(!0)};
_.J.onBlur=function(){this._setFocused(!1)};
_.J.insertText=function(p){this.insertTextAtRange(this.getInputRange(),p)};
_.J.insertTextAtRange=function(p,y){if(p&&(p.collapsed||p.deleteContents(),y=_.q4.createDocumentFragment(y,!0,!1))){for(var l=_.c((y==null?void 0:y.childNodes)||[]),q=l.next();!q.done;q=l.next()){q=q.value;var t=void 0,E=void 0,e=void 0,C=void 0,u=void 0;(e=(t=window)==null?void 0:(E=t.ShadyCSS)==null?void 0:E.ScopingShim)==null||(u=(C=e).scopeNode)==null||u.call(C,q,this.hostElement.localName)}l=y.lastChild;p.insertNode(y);this.focused||this.input.focus();if(this.focused){p=p.cloneRange();p.selectNodeContents(l);
p.collapse(!1);if(y=window.getSelection())y.removeAllRanges(),y.addRange(p);p.commonAncestorContainer.parentElement.id==="input"&&p.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}p=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(p);_.Ub(this.hostElement,"yt-live-chat-message-input-change",p)}};
_.J.setLiveChatRichMessageInput=function(p){_.jR(_.jR(this.hostElement).querySelector("#input")).textContent="";if(p&&p.textSegments){for(var y=0;y<p.textSegments.length;y++){var l=p.textSegments[y];l.text?_.jR(_.jR(this.hostElement).querySelector("#input")).appendChild(_.q4.createDocumentFragment(l.text,!0,!1)):l.emojiId&&(l=_.yD(_.q4,l.emojiId))&&_.jR(_.jR(this.hostElement).querySelector("#input")).appendChild(_.q4.createEmoji(l,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.J.setText=function(p){this.setLiveChatRichMessageInput(p?{textSegments:[{text:p}]}:null)};
_.J.calculateTextBeforeRange=function(p){var y="",l=p.startContainer;if(l&&l instanceof Text){var q;y=((q=l.textContent)==null?void 0:q.substring(0,p.startOffset))||"";l=l.previousSibling}for(;l&&l instanceof Text;)y=l.textContent+y,l=l.previousSibling;return y.replace(ek," ")};
_.J.calculateLiveChatRichMessageInput=function(){for(var p=[],y="",l=_.jR(_.jR(this.hostElement).querySelector("#input")).childNodes,q=0;q<l.length;q++){var t=l[q];t instanceof Text?y+=t.textContent:t instanceof HTMLImageElement&&(t.dataset.emojiId?(y&&(p.push({text:y.replace(ek," ")}),y=""),p.push({emojiId:t.dataset.emojiId})):y+=t.alt)}y&&p.push({text:y.replace(ek," ")});if(l=_.jR(this.hostElement).querySelector("#overflow-text")){y="";l=l.childNodes;for(q=0;q<l.length;q++)t=l[q],t instanceof Text?
y+=t.textContent:t instanceof HTMLImageElement&&(t.dataset.emojiId?(y&&(p.push({text:y.replace(ek," ")}),y=""),p.push({emojiId:t.dataset.emojiId})):y+=t.alt);y&&p.push({text:y.replace(ek," ")})}return{textSegments:p}};
_.J.computeCharacterCount=function(p){if(!p||!p.textSegments)return 0;for(var y=0,l=0;l<p.textSegments.length;l++){var q=p.textSegments[l];if(q.text)y+=q.text.length;else if(q.emojiId){var t=void 0;if((t=this.data)==null?0:t.emojiCharacterCount)y+=this.data.emojiCharacterCount;else{var E=t=void 0,e=void 0;y+=((E=_.yD(_.q4,(t=q)==null?void 0:t.emojiId))==null?void 0:(e=E.shortcuts)==null?void 0:e[0].length)||0}}}return y};
_.J.characterCountChanged=function(){_.Ub(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.J.focusedChanged=function(){this.hostElement.dispatchEvent(new _.JC("focused-changed",this.focused))};
_.J.focus=function(){this.setFocus(!1)};
_.J.focusAtEnd=function(){this.setFocus(!0)};
_.J.setFocus=function(p){p=p?this.getRangeAtEnd():this.getInputRange();_.jR(this.hostElement).querySelector("#input").focus();var y=window.getSelection();y&&(y.removeAllRanges(),y.addRange(p))};
_.J.insertEmoji=function(p){var y,l=((p==null?0:p.isCustomEmoji)?(y=p.shortcuts)==null?void 0:y[0]:p==null?void 0:p.emojiId)||"";this.insertText(l)};
_.J.computeText=function(p){if(!p||!p.textSegments)return"";for(var y="",l=0;l<p.textSegments.length;l++){var q=p.textSegments[l];if(q.text)y+=q.text;else if(q.emojiId){var t=void 0,E=void 0,e=void 0;y+=((E=_.yD(_.q4,(t=q)==null?void 0:t.emojiId))==null?void 0:(e=E.shortcuts)==null?void 0:e[0])||""}}return y};
_.J.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Jh.Object.defineProperties(hC.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
hC.prototype.focusedChanged=hC.prototype.focusedChanged;hC.prototype.characterCountChanged=hC.prototype.characterCountChanged;hC.prototype.onSuggestion=hC.prototype.onSuggestion;hC.prototype.onMessageSet=hC.prototype.onMessageSet;hC.prototype.dataChanged=hC.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],hC.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],hC.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],hC.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],hC.prototype,"disabled",void 0);_.H([_.g("disabled"),_.x("design:type",Number),_.x("design:paramtypes",[])],hC.prototype,"inputTabIndex",null);_.H([_.g("data.maxCharacterLimit"),_.Q({readOnly:!0,notify:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],hC.prototype,"maxCharacterLimit",null);
_.H([_.g("liveChatRichMessageInput"),_.Q({readOnly:!0,notify:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],hC.prototype,"characterCount",null);_.H([_.g("maxCharacterLimit, characterCount"),_.Q({readOnly:!0,notify:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],hC.prototype,"remainingCharacterCount",null);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],hC.prototype,"isChatMessageInput",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],hC.prototype,"inputExpanded",void 0);_.H([_.Q({readOnly:!0,notify:!0}),_.x("design:type",Object)],hC.prototype,"liveChatRichMessageInput",void 0);_.H([_.Q(),_.x("design:type",Object)],hC.prototype,"messageInput",void 0);_.H([_.Q(),_.x("design:type",Boolean)],hC.prototype,"ignoreColorMapping",void 0);_.H([_.g("characterCount"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],hC.prototype,"hasText",null);
_.H([_.Q(),_.x("design:type",Object)],hC.prototype,"isValidWithNoInputText",void 0);_.H([_.g("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.Q(),_.x("design:type",Boolean),_.x("design:paramtypes",[])],hC.prototype,"isInputValid",null);_.H([_.Q({readOnly:!0,value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],hC.prototype,"focused",void 0);_.H([_.Q(),_.x("design:type",Array)],hC.prototype,"suggestions",void 0);
_.H([_.Q(),_.x("design:type",_.pP)],hC.prototype,"emojiManager",void 0);_.H([_.Q(),_.x("design:type",_.cS)],hC.prototype,"participantsManager",void 0);_.H([_.Q(),_.x("design:type",Boolean)],hC.prototype,"noUnderline",void 0);_.H([_.Q(),_.x("design:type",Object)],hC.prototype,"inputMethodEditorActive",void 0);_.H([_.rd("#dropdown"),_.x("design:type",Object)],hC.prototype,"dropdown",void 0);_.H([_.rd("#input"),_.x("design:type",HTMLElement)],hC.prototype,"input",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hC.prototype,"dataChanged",null);_.H([_.gd("messageInput"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hC.prototype,"onMessageSet",null);_.H([_.VU("yt-live-chat-select-suggestion"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],hC.prototype,"onSuggestion",null);
_.H([_.gd("characterCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hC.prototype,"characterCountChanged",null);_.H([_.gd("focused"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hC.prototype,"focusedChanged",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],hC);
_.FKv=_.D(hC,"yt-live-chat-text-input-field-renderer",function(){if(QtM===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_renderer.yt.live.chat.text.input.field.renderer.css.js--\x3e<label id="label" class="style-scope yt-live-chat-text-input-field-renderer">[[getSimpleString(data.placeholder)]]</label>\n<div id="input" aria-label$="[[getSimpleString(data.placeholder)]]" aria-invalid$="[[!isInputValid]]" contenteditable="" tabindex$="[[inputTabIndex]]" on-blur="onBlur" on-dragenter="preventDrag" on-dragleave="preventDrag" on-dragover="preventDrag" on-drop="preventDrag" on-focus="onFocus" on-input="onInputChange" on-keydown="onKeyDown" on-keypress="onKeyPress" on-keyup="onKeyUp" on-paste="onInputPaste" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n<div id="underline" hidden$="[[noUnderline]]" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="unfocused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n  <div id="focused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n</div>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="24" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="dropdown-content" class="dropdown-content style-scope yt-live-chat-text-input-field-renderer" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;gbB===void 0&&(gbB=document.createElement("template"));var q=gbB;l.call(y,q.content.cloneNode(!0),p.content.firstChild);QtM=p}p=QtM;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var CP=function(){var p=_.w.apply(this,arguments)||this;p.buttonOverrides={style:"overlay",type:"filled"};p.allowAnimations=!1;p.modern=_.n("web_button_rework_with_live");p.noPadding=!1;return p};
_.A(CP,_.w);_.J=CP.prototype;_.J.shouldSupportInlineActionButtons=function(){return!0};
_.J.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{liveChatPaidMessageFooterRenderer:"yt-live-chat-paid-message-footer-renderer"}},"data.buyButton":{id:"lower-buy-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.buyFlowButton":{id:"buy-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}},
"data.pdgLikeButton":{id:"like-button",mapping:{pdgLikeViewModel:{component:"yt-live-chat-like-button-view-model"}}},"data.replyButton":{id:"reply-button",mapping:{pdgReplyButtonViewModel:{component:"yt-live-chat-reply-button-view-model"}}},"data.leaderboardBadge":{id:"leaderboard-badge",mapping:{buttonViewModel:{component:"yt-button-view-model"}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}}}};
_.J.ready=function(){var p=document.querySelector("yt-live-chat-app");p&&p.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.J.attached=function(){this.allowAnimations=!1};
_.J.dataChanged=function(){if(this.data){var p={"--yt-live-chat-paid-message-primary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyBackgroundColor),"--yt-live-chat-paid-message-secondary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerBackgroundColor),"--yt-live-chat-paid-message-header-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerTextColor),"--yt-live-chat-paid-message-timestamp-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.timestampColor),
"--yt-live-chat-paid-message-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyTextColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.authorNameTextColor),"--yt-live-chat-text-input-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.textInputBackgroundColor)};_.Ax(this.hostElement,p);this.allowAnimations=!0}};
_.J.messageChanged=function(){var p,y=(p=this.data)==null?void 0:p.message;p=_.jR(_.jR(this.hostElement).querySelector("#message"));p.textContent="";y&&p.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(y))};
_.J.computeShowOnlyHeader=function(p,y){return!p||p.pdgLikeButton||p.replyButton||p.buyFlowButton?!1:this.isEmpty(p,y)&&!p.footer};
_.J.computeShowFooterDivider=function(p,y,l){return p?!!p.footer&&!this.isEmpty(p,y)&&!l:!1};
_.J.computeIsUserEditable=function(p){return!!p.inputField};
_.J.computeHasHeartButton=function(p){return(p==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(p==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(p==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.J.computeNoveltyImage=function(p){if(p.headerOverlayImage&&p.headerOverlayImage.thumbnails.length){var y=p.headerOverlayImage.thumbnails[0],l,q;if((l=p.pdgPurchasedNoveltyLoggingDirectives)==null?0:(q=l.loggingDirectives)==null?0:q.trackingParams){var t,E;KkR((t=p.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(E=t.loggingDirectives)==null?void 0:E.trackingParams)}return y.width||0}return 0};
_.J.computeAuthorPhotoSize=function(p){return(p==null?0:p.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.J.inputFocus=function(){var p=_.jR(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");p&&p.focus()};
_.J.inputInsertEmoji=function(p){var y=_.jR(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");y&&y.insertEmoji(p)};
_.J.inputMessage=function(){var p=_.jR(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),y;return p&&((y=this.data)==null?0:y.inputField)?(p.completeEmojis(),_.sZ(p.liveChatRichMessageInput)):null};
_.J.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.J.isEmpty=function(p,y){return p?p.empty||!(p.message||p.inputField||y):!0};
_.J.onLowerBuyButtonClick=function(){var p,y=_.G((p=this.data)==null?void 0:p.buyButton,_.yv);y&&y.trackingParams&&!HmL(y.command)&&(p=_.Tp(y.trackingParams))&&(y=_.B2())&&_.te(y,p)};
_.J.shouldSupportWholeItemClick=function(){return!0};
_.Jh.Object.defineProperties(CP.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?0:p.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
CP.prototype.isDeletedChanged=CP.prototype.isDeletedChanged;CP.prototype.messageChanged=CP.prototype.messageChanged;CP.prototype.dataChanged=CP.prototype.dataChanged;_.H([_.V(ehO.YtPdgLiveChatItemBehavior),_.x("design:type",Object)],CP.prototype,"ytPdgLiveChatItemBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.lQ),_.x("design:type",Object)],CP.prototype,"ytLiveChatReduxBehavior",void 0);
_.H([_.V(_.sg.YtLiveChatItemBehavior),_.x("design:type",_.tC)],CP.prototype,"ytLiveChatItemBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],CP.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],CP.prototype,"data",void 0);_.H([_.Q({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:gRl}),_.x("design:type",Object)],CP.prototype,"engagementState",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.x("design:type",Boolean)],CP.prototype,"isUserEditable",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.x("design:type",Boolean)],CP.prototype,"hasHeartButton",void 0);_.H([_.Q({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.x("design:type",Boolean)],CP.prototype,"showOnlyHeader",void 0);
_.H([_.Q({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.x("design:type",Boolean)],CP.prototype,"showFooterDivider",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Object)],CP.prototype,"allowAnimations",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],CP.prototype,"dashboardMoneyFeed",void 0);_.H([_.Q({computed:"computeNoveltyImage(data)"}),_.x("design:type",Number)],CP.prototype,"noveltyWidth",void 0);
_.H([_.Q({computed:"computeAuthorPhotoSize(data)"}),_.x("design:type",Number)],CP.prototype,"authorPhotoSize",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],CP.prototype,"modern",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],CP.prototype,"noPadding",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CP.prototype,"dataChanged",null);
_.H([_.gd("data.message"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CP.prototype,"messageChanged",null);_.H([_.g("data","dashboardMoneyFeed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],CP.prototype,"hideLowerBumper",null);_.H([_.gd("isDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CP.prototype,"isDeletedChanged",null);
_.H([_.k({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],CP);
_.D(CP,"yt-live-chat-paid-message-renderer",function(){if(vur===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_renderer.yt.live.chat.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="header" class="style-scope yt-live-chat-paid-message-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="author-photo" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n    </template>\n    <template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-message-renderer">\n      </yt-img-shadow>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="single-line" class="style-scope yt-live-chat-paid-message-renderer">\n          <div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-live-chat-author-chip>\n          </div>\n          <div id="leaderboard-badge" class="leaderboard-badge style-scope yt-live-chat-paid-message-renderer"></div>\n          <div id="purchase-amount-column" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-img-shadow id="currency-img" height="16" hidden$="[[!data.currencyImage.thumbnailDetails]]" thumbnail="[[data.currencyImage.thumbnailDetails]]" width="16" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-img-shadow>\n            <div id="purchase-amount" class="style-scope yt-live-chat-paid-message-renderer">\n              <yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n            </div>\n          </div>\n        </div>\n      </div>\n      <span id="timestamp" class="style-scope yt-live-chat-paid-message-renderer">[[timestampString]]</span>\n      <div id="gradient-container" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="gradient" class="style-scope yt-live-chat-paid-message-renderer"></div>\n      </div>\n      <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-message-renderer">\n          <yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="creator-heart-button" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-paid-message-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-paid-message-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" message-input="[[messageInput]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-paid-message-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n    <div id="footer" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="action-buttons" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="like-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="reply-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="buy-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="lower-buy-button" hidden$="[[!data.buyButton]]" on-click="onLowerBuyButtonClick" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-paid-message-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;fji===void 0&&(fji=document.createElement("template"));var q=fji;l.call(y,q.content.cloneNode(!0),p.content.firstChild);vur=p}p=vur;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var LKB;var kyB;var uA=function(){var p=_.FA.apply(this,arguments)||this;p._noAccessors=!0;return p};
_.A(uA,_.FA);uA.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.OY("openPopupConfig")};
_.H([_.V(_.Ss.YtOpenPopupBehavior),_.x("design:type",Object)],uA.prototype,"ytOpenPopupBehavior",void 0);_.H([_.Lv()],uA);_.RP=[_.Ss.YtOpenPopupBehavior,uA.prototype];var NLU;var CX=[_.wC,aOV,_.YB,_.iS,_.Eb,_.Fti,_.FC,_.f9Z,_.dU,VGo];_.n("web_watch_get_updated_metadata_response_processing")&&CX.push(_.e2N);_.n("web_continuation_response_processing")&&CX.push(_.qr);var AY_=new _.WE("RESPONSE_RECEIVED_COMMANDS"),Pe5=new _.WE("RESPONSE_RECEIVED_COMMANDS");var m9_="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),a86=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],WDg=["GET_UNSEEN_NOTIFICATION_COUNT"];var WS=function(){var p=_.FA.apply(this,arguments)||this;p._noAccessors=!0;p.serviceEndpointHandlers=[];return p};
_.A(WS,_.FA);WS.prototype.created=function(){var p=this;this.endpointHandlerActionMap={"yt-service-request":function(y,l,q,t){var E;return R0a(p.hostElement,y,l,q,t,p.serviceEndpointHandlers,(E=p.onEntitiesUpdated)==null?void 0:E.bind(p))}}};
WS.prototype.attached=function(){_.y2(_.pt.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
WS.prototype.detached=function(){_.lX(_.pt.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.H([_.Lv()],WS);_.DzV=[WS.prototype];var HQ$,TL$=function(){return HQ$!==void 0?HQ$:HQ$=document.createElement("template")};
document.head.appendChild(TL$().content);var xzr;var BLU=document.head,fPr=BLU.appendChild,vbZ;if(xzr===void 0){var Xvr=document.createElement("template");_.M(Xvr,"\x3c!--css-build:shady--\x3e");Xvr.content.insertBefore(TL$().content.cloneNode(!0),Xvr.content.firstChild);xzr=Xvr}vbZ=xzr;fPr.call(BLU,vbZ.content);var dzZ,OQv=function(){return dzZ!==void 0?dzZ:dzZ=document.createElement("template")};
document.head.appendChild(OQv().content);var obN;var ziv=document.head,Yl$=ziv.appendChild,IPx;if(obN===void 0){var pyU=document.createElement("template");_.M(pyU,"\x3c!--css-build:shady--\x3e");pyU.content.insertBefore(OQv().content.cloneNode(!0),pyU.content.firstChild);obN=pyU}IPx=obN;Yl$.call(ziv,IPx.content);var y9U;_.ox("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.ox("sharingRendererButtons","buttonRenderer","ytd-button-renderer");y9U=_.n("web_button_rework")&&_.o4("BUTTON_REWORK")||_.n("web_button_rework_with_live");_.aP=function(){var p=_.w.apply(this,arguments)||this;p.isPressed=!1;p.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return p};
_.A(_.aP,_.w);_.J=_.aP.prototype;_.J.created=function(){this.showTooltips=!0};
_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.onHintIdChanged=function(){var p=this,y,l,q=(y=this.ytButtonBehavior.data)==null?void 0:(l=y.hint)==null?void 0:l.hintRenderer;if(q&&q.hintId){y=_.jN(this.hostElement,"yt-get-opened-popups-action");y=(y&&y.length===1?y[0]:[]).length>0;var t=null;q.hintId!=="sponsor-pre-purchase"||y?q.hintId.startsWith("sponsor-post-purchase")&&!y?t=PDO("membership-manage"):q.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!y&&(t=PDO("membership-freebie-join")):t=PDO("membership-join");t&&_.TR.addLowPriorityJob(function(){for(var E=
_.c(t),e=E.next();!e.done;e=E.next())p.ytComponentBehavior.resolveCommand(e.value)})}};
_.J.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.J.onYtNavigate=function(p){var y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(p.detail.endpoint);y&&(p.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(y))};
_.J.onYtServiceRequestSent=function(p,y){this.handleServiceRequestActions(y);_.Ub(this.hostElement,"yt-service-request-sent-button-renderer")};
_.J.onServiceRequestCompleted=function(p,y){this.handleServiceRequestActions(y);_.Ub(this.hostElement,"yt-service-request-completed-button-renderer")};
_.J.updateButton=function(p){var y;if(p=(y=_.G(p,EDQ))==null?void 0:y.updatedButton)this.ytButtonBehavior.data=_.G(p,_.yv)};
_.J.handleUpdateButtonAction=function(p){var y=this.ytButtonBehavior.data;y.targetId&&p.updateButtonAction.targetId&&y.targetId===p.updateButtonAction.targetId&&this.updateButton(p)};
_.J.handleServiceRequestActions=function(p){if(p=p.actions)for(var y=0;y<p.length;y++)this.updateButton(p[y])};
_.Jh.Object.defineProperties(_.aP,{template:{configurable:!0,enumerable:!0,get:function(){if(NLU===void 0){var p=document.createElement("template");_.M(p,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);NLU=p}p=NLU;return p}}});
_.aP.prototype.onServiceRequestCompleted=_.aP.prototype.onServiceRequestCompleted;_.aP.prototype.onYtServiceRequestSent=_.aP.prototype.onYtServiceRequestSent;_.aP.prototype.onYtNavigate=_.aP.prototype.onYtNavigate;_.aP.prototype.onPressedStateChanged=_.aP.prototype.onPressedStateChanged;_.aP.prototype.onHintIdChanged=_.aP.prototype.onHintIdChanged;_.H([_.Q(),_.x("design:type",Object)],_.aP.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],_.aP.prototype,"isPressed",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],_.aP.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.uuM.YtButtonBehavior),_.x("design:type",Object)],_.aP.prototype,"ytButtonBehavior",void 0);_.H([_.V(_.RP),_.x("design:type",Object)],_.aP.prototype,"ytdOpenPopupBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],_.aP.prototype,"ytComponentBehavior",void 0);
_.H([_.V(Du.YtRenderButtonBehavior),_.x("design:type",Object)],_.aP.prototype,"ytRenderButtonBehavior",void 0);_.H([_.gd("data.hint.hintRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],_.aP.prototype,"onHintIdChanged",null);_.H([_.gd("isPressed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],_.aP.prototype,"onPressedStateChanged",null);
_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],_.aP.prototype,"onYtNavigate",null);_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],_.aP.prototype,"onYtServiceRequestSent",null);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],_.aP.prototype,"onServiceRequestCompleted",null);_.H([_.k({is:"ytd-button-renderer",disableElementRegistration:y9U})],_.aP);var ms=function(){var p=_.w.apply(this,arguments)||this;p.modern=_.n("web_button_rework_with_live");p.buttonOverrides={style:"overlay",type:"filled"};return p};
_.A(ms,_.w);_.J=ms.prototype;_.J.configureRendererStamper=function(){return{"data.buyButton":{id:"buy-flow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}}}};
_.J.ready=function(){var p=document.querySelector("yt-live-chat-app");p&&p.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.J.dataChanged=function(){if(this.data&&this.data.sticker){var p=_.nY(this.data.sticker.thumbnails,this.stickerWidth);p||_.KDt(p).thenCatch(function(){_.vs(new _.SM("Failed to load Super Sticker with url",p))})}};
_.J.computeAuthorPhotoSize=function(p){return(p==null?0:p.isV2Style)?32:40};
_.J.computeIsV2Style=function(p){return(p==null?0:p.isV2Style)?!0:!1};
_.J.onStickerLoaded=function(p){var y,l,q;(y=_.cm(p))==null||(l=y.parentNode)==null||(q=l.classList)==null||q.add("sticker-loaded")};
_.J.computeNoveltyImageWidth=function(p){var y,l;if(p==null?0:(y=p.headerOverlayImage)==null?0:(l=y.thumbnails)==null?0:l.length){y=p.headerOverlayImage.thumbnails[0];var q,t;if((q=p.pdgPurchasedNoveltyLoggingDirectives)==null?0:(t=q.loggingDirectives)==null?0:t.trackingParams){var E,e;KkR((E=p.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(e=E.loggingDirectives)==null?void 0:e.trackingParams)}return y.width||0}return 0};
_.J.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.J.updateStickerStyles=function(){var p=this.data;p&&(p={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(p.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(p.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(p.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(p.authorNameTextColor)},
_.Ax(this.hostElement,p))};
_.J.onBuyButtonClick=function(){var p,y=_.G((p=this.data)==null?void 0:p.buyButton,_.yv);y&&!HmL(y.command)&&this.ytRendererBehavior.logExplicitClick(y)};
_.J.shouldSupportWholeItemClick=function(){return!0};
_.Jh.Object.defineProperties(ms.prototype,{stickerWidth:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
stickerHeight:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
hasHeartButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.creatorHeartButton}},
hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?0:p.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
ms.prototype.updateStickerStyles=ms.prototype.updateStickerStyles;ms.prototype.isDeletedChanged=ms.prototype.isDeletedChanged;ms.prototype.onStickerLoaded=ms.prototype.onStickerLoaded;ms.prototype.dataChanged=ms.prototype.dataChanged;_.H([_.V(ehO.YtPdgLiveChatItemBehavior),_.x("design:type",Object)],ms.prototype,"ytPdgLiveChatItemBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],ms.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.sg.YtLiveChatItemBehavior),_.x("design:type",_.tC)],ms.prototype,"ytLiveChatItemBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ms.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ms.prototype,"data",void 0);
_.H([_.Q({computed:"computeAuthorPhotoSize(data)"}),_.x("design:type",Number)],ms.prototype,"authorPhotoSize",void 0);_.H([_.Q(),_.x("design:type",Boolean)],ms.prototype,"isDeleted",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],ms.prototype,"dashboardMoneyFeed",void 0);_.H([_.Q({computed:"computeNoveltyImageWidth(data)"}),_.x("design:type",Number)],ms.prototype,"noveltyWidth",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],ms.prototype,"modern",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.x("design:type",Boolean)],ms.prototype,"isV2Style",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ms.prototype,"dataChanged",null);_.H([_.VU("yt-img-shadow-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ms.prototype,"onStickerLoaded",null);
_.H([_.g("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],ms.prototype,"stickerWidth",null);_.H([_.g("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],ms.prototype,"stickerHeight",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ms.prototype,"hasHeartButton",null);_.H([_.g("data","dashboardMoneyFeed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ms.prototype,"hideLowerBumper",null);
_.H([_.gd("isDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ms.prototype,"isDeletedChanged",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ms.prototype,"updateStickerStyles",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],ms);
_.D(ms,"yt-live-chat-paid-sticker-renderer",function(){if(kyB===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-sticker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_sticker_renderer.yt.live.chat.paid.sticker.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-info" tabindex="0" class="style-scope yt-live-chat-paid-sticker-renderer"><template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-paid-sticker-renderer" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]"></yt-img-shadow></template><template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></template><template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></template><div id="content" class="style-scope yt-live-chat-paid-sticker-renderer"><span id="timestamp" hidden$="[[!data.timestampUsec]]" class="style-scope yt-live-chat-paid-sticker-renderer">[[timestampString]]</span><div id="content-primary-column" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-live-chat-author-chip></div><span id="price-column" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-formatted-string id="purchase-amount-chip" text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string></span></div></div></div><div id="sticker-container" hidden$="[[!data.sticker]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="sticker" height="[[stickerHeight]]" hidden$="[[!data.sticker]]" notify-on-loaded="" tabindex="0" thumbnail="[[data.sticker]]" width="[[stickerWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></div><yt-formatted-string id="dashboard-deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></yt-icon-button></div><div id="gradient-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="gradient" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="creator-heart-button" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="buy-flow-button" hidden$="[[!data.buyButton]]" on-click="onBuyButtonClick" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="inline-action-button-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;LKB===void 0&&(LKB=document.createElement("template"));var q=LKB;l.call(y,q.content.cloneNode(!0),p.content.firstChild);kyB=p}p=kyB;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var lTQ;var qBZ;var syr,teU=function(){return syr!==void 0?syr:syr=document.createElement("template")};
document.head.appendChild(teU().content);var ERP,J9M=function(){return ERP!==void 0?ERP:ERP=document.createElement("template")};
document.head.appendChild(J9M().content);var c9r;var eaB,ha$=function(){return eaB!==void 0?eaB:eaB=document.createElement("template")};
document.head.appendChild(ha$().content);var C5r;var uGM=document.head,RaP=uGM.appendChild,WkU;if(C5r===void 0){var aTx=document.createElement("template");_.M(aTx,"\x3c!--css-build:shady--\x3e");aTx.content.insertBefore(ha$().content.cloneNode(!0),aTx.content.firstChild);C5r=aTx}WkU=C5r;RaP.call(uGM,WkU.content);var m7v=document.head,U7P=m7v.appendChild,$7O;if(c9r===void 0){var Ug=document.createElement("template");_.M(Ug,"\x3c!--css-build:shady--\x3e");Ug.content.insertBefore(J9M().content.cloneNode(!0),Ug.content.firstChild);Ug.content.insertBefore(teU().content.cloneNode(!0),Ug.content.firstChild);c9r=Ug}$7O=c9r;U7P.call(m7v,$7O.content);var $m=function(){var p=_.FA.apply(this,arguments)||this;p.focusedIndex=0;p.verticalOffset=0;p.verticalAlign="top";p.dynamicAlign=!0;return p};
_.A($m,_.FA);$m.prototype.emojiUrl=function(p){p=_.yD(this.emojiManager,p);if(!p)return"";var y;p=(y=p.image)==null?void 0:y.thumbnails;return _.nY(p,24)||""};
var jyM=function(p){var y;p.emojiVariants&&(y=p.data)!=null&&y.target&&_.th(p,function(){p.set("verticalOffset",-1*p.hostElement.clientHeight);var l=_.jR(p.hostElement).querySelector("img");l&&l.focus()})};
_.J=$m.prototype;_.J.onKeyboardEnter=function(){};
_.J.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.J.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.J.onKeyDown=function(p){switch(p.keyCode){case 13:this.onKeyboardEnter();p.preventDefault();break;case 40:this.changeFocus(1);p.preventDefault();break;case 38:this.changeFocus(-1);p.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.J.onYtEmojiSelect=function(p){var y=this,l,q,t,E,e,C,u,a;return _.h(function(m){if(m.nextAddress==1)return q=(l=y.data)==null?void 0:l.emoji,e=((t=q)==null?void 0:t.stickyPrefId)||((E=q)==null?void 0:E.emojiId),u=(C=p.detail)==null?void 0:C.emojiId,e&&u&&e!==u?m.yield((a=y.emojiManager)==null?void 0:AzP(a,q,u),2):m.return();_.$w(y.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[q,u]);_.rR(m)})};
_.J.changeFocus=function(p){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+p+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(p=_.jR(this.hostElement).querySelector("#variants"))&&p.children[this.focusedIndex].focus())};
_.Jh.Object.defineProperties($m.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
$m.prototype.onYtEmojiSelect=$m.prototype.onYtEmojiSelect;$m.prototype.onKeyDown=$m.prototype.onKeyDown;$m.prototype.onEmojiVariantsChanged=$m.prototype.onEmojiVariantsChanged;$m.prototype.onVerticalOffsetOrPositionTargetChanged=$m.prototype.onVerticalOffsetOrPositionTargetChanged;_.H([_.V(_.JT),_.x("design:type",Object)],$m.prototype,"ironOverlayBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],$m.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",_.pP)],$m.prototype,"emojiManager",void 0);
_.H([_.Q(),_.x("design:type",Object)],$m.prototype,"emojiVariants",void 0);_.H([_.Q(),_.x("design:type",Object)],$m.prototype,"focusedIndex",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],$m.prototype,"positionTarget",null);_.H([_.Q({reflectToAttribute:!0}),_.g("verticalOffset","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],$m.prototype,"isPositioned",null);_.H([_.Q(),_.x("design:type",Object)],$m.prototype,"verticalOffset",void 0);
_.H([_.Q(),_.x("design:type",Object)],$m.prototype,"verticalAlign",void 0);_.H([_.Q(),_.x("design:type",Object)],$m.prototype,"dynamicAlign",void 0);_.H([_.gd("verticalOffset","positionTarget"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$m.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.H([_.gd("emojiVariants"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$m.prototype,"onEmojiVariantsChanged",null);
_.H([_.VU("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],$m.prototype,"onKeyDown",null);_.H([_.VU("yt-emoji-select"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype",Promise)],$m.prototype,"onYtEmojiSelect",null);_.H([_.Lv()],$m);var bGv=[$m.prototype];var nRU;var GDM;var P5N=/medium-light|medium-dark|light|medium|dark/,A9P=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,ZGU=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),jk=function(){var p=_.w.apply(this,arguments)||this;p.userSelection={left:null,right:null};p.scrollAction="lock";p.isEmojiDraftInProgress=!1;return p};
_.A(jk,_.w);_.J=jk.prototype;_.J.onClick=function(p){p=_.cm(p);p instanceof HTMLImageElement&&this.selectOrUpdateEmoji(p)};
_.J.selectOrUpdateEmoji=function(p){var y=p.getAttribute("selection");y&&(y==="default"?_.Ub(this.hostElement,"yt-emoji-select",_.yD(this.emojiManager,p.id)):y==="left"?this.userSelection=Object.assign({},this.userSelection,{left:p.src}):y==="right"?this.userSelection=Object.assign({},this.userSelection,{right:p.src}):y==="user"&&this.userSelection.left&&this.userSelection.right&&_.Ub(this.hostElement,"yt-emoji-select",_.yD(this.emojiManager,p.id)))};
_.J.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.J.onMultiSelectorThumbnailRowChanged=function(){var p,y,l;((p=this.data)==null?0:(y=p.emoji)==null?0:(l=y.multiSelectorThumbnailRow)==null?0:l.length)&&this.openSelector()};
_.J.getThumbnailFromEmojiRow=function(p){var y,l;return(p==null?void 0:(y=p.thumbnails)==null?void 0:(l=y[0])==null?void 0:l.url)||""};
_.J.getEmojiAltTextForPartialSelector=function(p){var y;return((y=this.getThumbnailFromEmojiRow(p).match(A9P))==null?void 0:y[0])||""};
_.J.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.J.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.J.getRowSelection=function(p){return["left","right"][p]};
_.J.getIdFromComposedEmoji=function(p){return(p==null?void 0:p.emojiId)||""};
_.J.getEmojiFromPartialSelections=function(p,y){if(!p&&!y)return null;var l,q,t=(l=this.data)==null?void 0:(q=l.emoji)==null?void 0:q.variantIds;if(!t||!t.length)return null;var E;p=(E=p.match(P5N))==null?void 0:E[0];var e;y=(e=y.match(P5N))==null?void 0:e[0];if(!p||!y)return null;var C=ZGU.get(p);e=ZGU.get(y);if(C===e){e=Array.from(ZGU.values()).filter(function(a){return a!==C}).join("|");
var u=new RegExp("^((?!("+e+")).)*"+C+"$")}else u=new RegExp(C+".*"+e);return(t=t.find(function(a){return u.test(a)}))&&_.yD(this.emojiManager,t)||null};
_.J.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var p,y=this.ytEmojiSelectorBehavior.emojiUrl(((p=this.data.emoji)==null?void 0:p.emojiId)||"");_.jR(this.hostElement).querySelector('[selection="user"]').src.includes(y)||(this.isEmojiDraftInProgress=!0)}};
_.J.onDomChange=function(){jyM(this.ytEmojiSelectorBehavior)};
_.J.getFocusableElements=function(){return _.jR(this.hostElement).querySelectorAll("img").filter(function(p){return p.getAttribute("role")==="option"})};
_.J.changeFocus=function(p){var y=this.getFocusableElements();y!=null&&y.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+p+y.length)%y.length,this.ytEmojiSelectorBehavior.focusedIndex<y.length&&(p=y[this.ytEmojiSelectorBehavior.focusedIndex])&&p.focus())};
_.J.onKeyboardEnter=function(){var p=this.getFocusableElements();p!=null&&p.length&&(p=p[this.ytEmojiSelectorBehavior.focusedIndex])&&p instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(p),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Jh.Object.defineProperties(jk.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var p=this,y,l,q;return this.emojiManager&&((y=this.data)==null?0:(l=y.emoji)==null?0:(q=l.variantIds)==null?0:q.length)?this.data.emoji.variantIds.map(function(t){return!!t&&_.yD(p.emojiManager,t)}).filter(function(t){return!!t}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var p,y=(p=this.userSelection)==null?void 0:p.left,l;p=(l=this.userSelection)==null?void 0:l.right;return y&&p?this.getEmojiFromPartialSelections(y,p):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.composedEmojiSelection)==null?0:p.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var y;p=(y=this.userSelection)==null?void 0:y.left;var l;y=(l=this.userSelection)==null?void 0:l.right;if(!p&&!y){var q;return this.ytEmojiSelectorBehavior.emojiUrl(((q=this.data.emoji)==null?void 0:q.emojiId)||"")}return p&&!y?p:!p&&y?y:""}}});
jk.prototype.onMultiSelectorThumbnailRowChanged=jk.prototype.onMultiSelectorThumbnailRowChanged;jk.prototype.onClick=jk.prototype.onClick;_.H([_.V(_.JT),_.x("design:type",Object)],jk.prototype,"ironOverlayBehavior",void 0);_.H([_.V(bGv),_.x("design:type",Object)],jk.prototype,"ytEmojiSelectorBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],jk.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",_.pP)],jk.prototype,"emojiManager",void 0);
_.H([_.Q(),_.x("design:type",Object)],jk.prototype,"userSelection",void 0);_.H([_.Q(),_.x("design:type",Object)],jk.prototype,"scrollAction",void 0);_.H([_.Q(),_.x("design:type",Object)],jk.prototype,"isEmojiDraftInProgress",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],jk.prototype,"emojiVariants",null);_.H([_.g("data","userSelection"),_.x("design:type",Object),_.x("design:paramtypes",[])],jk.prototype,"composedEmojiSelection",null);
_.H([_.VU("click"),_.x("design:type",Function),_.x("design:paramtypes",[MouseEvent]),_.x("design:returntype")],jk.prototype,"onClick",null);_.H([_.gd("data.emoji.multiSelectorThumbnailRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jk.prototype,"onMultiSelectorThumbnailRowChanged",null);_.H([_.g("data","userSelection","composedEmojiSelection"),_.x("design:type",String),_.x("design:paramtypes",[])],jk.prototype,"draftEmojiUrl",null);
_.H([_.z9({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],jk);
_.D(jk,"yt-emoji-multi-person-selector",function(){if(GDM===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-multi-person-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_multi_person_selector.yt.emoji.multi.person.selector.css.js--\x3e<div id="options" class="style-scope yt-emoji-multi-person-selector">\n  <template is="dom-repeat" id="repeat" items="[[data.emoji.multiSelectorThumbnailRow]]" notify-dom-change="" as="row" index-as="rowIndex" on-dom-change="onDomChange" class="style-scope yt-emoji-multi-person-selector">\n    <div class="variant-thumbnail-row style-scope yt-emoji-multi-person-selector">\n      <template is="dom-repeat" id="thumbnail-row-repeat" items="[[row.thumbnails]]" as="thumbnail" class="style-scope yt-emoji-multi-person-selector">\n        \n        <img height="24" role="option" alt="[[getEmojiAltTextForPartialSelector(thumbnail)]]" src$="[[getThumbnailFromEmojiRow(thumbnail)]]" tabindex="-1" width="24" selection$="[[getRowSelection(rowIndex)]]" class="style-scope yt-emoji-multi-person-selector">\n      </template>\n    </div>\n  </template>\n</div>\n<div id="selections" class="style-scope yt-emoji-multi-person-selector">\n\n  <img id="[[data.emoji.emojiId]]" class="default-selection style-scope yt-emoji-multi-person-selector" alt="[[data.emoji.emojiId]]" height="36" role="option" src$="[[emojiUrl(data.emoji.emojiId)]]" tabindex="-1" width="36" selection="default">\n  <img id$="[[getIdFromComposedEmoji(composedEmojiSelection)]]" class="user-selection style-scope yt-emoji-multi-person-selector" is-draft$="[[isEmojiDraftInProgress]]" alt="[[getEmojiAltTextForDraftEmoji(composedEmojiSelection)]]" height="36" role$="[[getDraftEmojiAriaRole(composedEmojiSelection)]]" src$="[[draftEmojiUrl]]" selection="user" tabindex="-1" width="36" on-load="onUserSelectionSrcLoad">\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;nRU===void 0&&(nRU=document.createElement("template"));var q=nRU;l.call(y,q.content.cloneNode(!0),p.content.firstChild);GDM=p}p=GDM;return p},{mode:2});var MeB;var Ve$;var bA=function(){var p=_.w.apply(this,arguments)||this;p.tooltip_=null;return p};
_.A(bA,_.w);_.J=bA.prototype;_.J.dataChanged_=function(){var p;if((p=this.data)==null?0:p.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.jR(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Pm)(this.tooltip_).textContent=this.data.tooltip};
_.J.computeTargetId=function(){var p;return((p=this.data)==null?void 0:p.targetId)||""};
_.J.computeId_=function(p){return p};
_.J.computeIcon_=function(p){return _.QZ(p)};
_.J.onTap_=function(){this.active=!this.active;_.Ub(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.J.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JC("active-changed",this.active))};
_.Jh.Object.defineProperties(bA.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var p,y;if((p=this.data)==null?0:(y=p.icon)==null?0:y.iconType)return this.data.icon.iconType==="SUPER_STICKER";var l,q;return((l=this.data)==null?void 0:(q=l.icon)==null?void 0:q.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
bA.prototype.activeChangedForBinding=bA.prototype.activeChangedForBinding;bA.prototype.dataChanged_=bA.prototype.dataChanged_;_.H([_.V(_.qC.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],bA.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],bA.prototype,"data",void 0);_.H([_.Q({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.x("design:type",String)],bA.prototype,"id",void 0);
_.H([_.Q({computed:"computeTargetId(data.targetId)"}),_.x("design:type",String)],bA.prototype,"targetId",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],bA.prototype,"active",void 0);_.H([_.Q({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.x("design:type",String)],bA.prototype,"icon",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bA.prototype,"dataChanged_",null);
_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],bA.prototype,"iconFilled",null);_.H([_.gd("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bA.prototype,"activeChangedForBinding",null);_.H([_.z9({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],bA);
_.D(bA,"yt-emoji-picker-category-button-renderer",function(){if(Ve$===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_button_renderer.yt.emoji.picker.category.button.renderer.css.js--\x3e<yt-icon-button id="button" label="[[data.accessibility.accessibilityData.label]]" on-tap="onTap_" class="style-scope yt-emoji-picker-category-button-renderer">\n  <yt-icon default-to-filled="[[iconFilled]]" icon="[[icon]]" class="style-scope yt-emoji-picker-category-button-renderer"></yt-icon>\n</yt-icon-button>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;MeB===void 0&&(MeB=document.createElement("template"));var q=MeB;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Ve$=p}p=Ve$;return p},{mode:2});var gRM;var QyB;var nP=function(){var p=_.w.apply(this,arguments)||this;p.ariaLabel=null;p.ariaActivedescendant=null;p.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};p.JSC$14054_ignoreNextFocus_=!1;p.longPressTimeoutId=-1;return p};
_.A(nP,_.w);_.J=nP.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.J.emojiChanged_=function(){this.changeFocus_(0,!1);for(var p=_.Ll(),y=0;y<this.emoji.length;y++){var l={veType:88013,elementIndex:y},q=this.emoji[y];q.isCustomEmoji&&(q=document.querySelector(("#"+q.emojiId).replace("/","\\/")))&&(l=_.FH(p,l))&&(q.visualElement=l)}};
_.J.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.J.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.J.emojiSkinToneChanged_=function(p){this.skinTone=p};
_.J.dataChanged=function(){this.data&&this.data.emojiData&&bQO(this.emojiManager,this.data.emojiData)};
_.J.emojiUrl=function(p){p=this.getEmoji(p);if(!p)return"";var y;p=(y=p.image)==null?void 0:y.thumbnails;return _.nY(p,24)||""};
_.J.emojiAlt=function(p){var y=this.get("image.accessibility.accessibilityData.label",p);return y?y:p.isCustomEmoji?p.shortcuts[0]:p.emojiId};
_.J.emojiAriaLabel=function(p){return p.shortcuts?p.shortcuts[0]:""};
_.J.emojiAriaSelected=function(p,y,l){return p&&l==y?"true":"false"};
_.J.getEmoji=function(p){if(this.emojiManager)return this.shouldUseStickyPreferences?GyU(this.emojiManager,p):lA(this.emojiManager,p)};
_.J.computeId_=function(p){return p.categoryId||""};
_.J.computeEmoji=function(p){var y=this;return this.emojiManager?p.emojiIds?p.emojiIds.map(function(l){return l?_.yD(y.emojiManager,l):null}).filter(wrL):p.emojiData?p.emojiData.map(function(l){var q=!!l.emojiId&&_.yD(y.emojiManager,l.emojiId);
return q?Object.assign({},q,l):null}).filter(wrL):[]:[]};
_.J.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.J.computeAriaLabel_=function(p){return _.JB(p)};
_.J.computeAriaActivedescendant_=function(p,y){return p&&p[y]?p[y].emojiId||"":""};
_.J.handleLongPressEmojiWithVariants=function(p,y){this.changeFocusToEmoji(p.emojiId,!1);this.openVariantSelector(p,y)};
_.J.onMouseDown=function(p){var y=this;this.hostElement!==document.activeElement&&(this.JSC$14054_ignoreNextFocus_=!0);if(p.button===0){var l=_.cm(p);if(l instanceof HTMLImageElement){var q=_.jR(this.hostElement).querySelector("#repeat").itemForElement(l);this.emojiContainsVariants(q)&&(this.longPressTimeoutId=setTimeout(function(){y.handleLongPressEmojiWithVariants(q,l)},500))}}};
_.J.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.J.onFocus=function(){this.JSC$14054_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14054_ignoreNextFocus_=!1};
_.J.onBlur_=function(){this.showFocus=!1};
_.J.emojiContainsVariants=function(p){return!!(p&&p.variantIds&&p.variantIds.length)};
_.J.onClick=function(p){clearTimeout(this.longPressTimeoutId);p=_.cm(p);if(p instanceof HTMLImageElement){var y=p.id;this.changeFocusToEmoji(y,!1);var l=this.getEmoji(y),q;if(q=this.shouldUseStickyPreferences&&this.emojiContainsVariants(l)){var t;q=!((t=this.emojiManager.emojiMap[y])!=null&&t.stickyPrefId)}q?(t=_.jR(this.hostElement).querySelector("#repeat").itemForElement(p),this.openVariantSelector(t,p)):_.Ub(this.hostElement,"yt-emoji-select",l)}};
_.J.isActiveEmojiWithVariants=function(p,y){return p&&y?y.stickyPrefId?p===y.stickyPrefId:p===y.emojiId:!1};
_.J.onCloseEmojiVariantSelector=function(p){this.activeEmojiWithVariantsId===p&&(this.activeEmojiWithVariantsId="")};
_.J.onMouseOver_=function(p){p=_.cm(p);p instanceof HTMLImageElement&&_.Ub(this.hostElement,"yt-emoji-hover",_.yD(this.emojiManager,p.id))};
_.J.changeFocus_=function(p,y){this.focusedIndex=(this.focusedIndex+p+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(p=this.emoji[this.focusedIndex],y&&(this.showFocus=!0,_.jR(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Ub(this.hostElement,"yt-emoji-hover",p)))};
_.J.changeFocusToEmoji=function(p,y){if(p){var l=this.emoji.findIndex(function(q){return q.emojiId===p});
l!==-1&&this.changeFocus_(l-this.focusedIndex,y)}};
_.J.onKeyDown_=function(p){switch(p.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var y=this.emoji[this.focusedIndex];if(y&&y.emojiId){if(this.emojiContainsVariants(y)){var l=_.jR(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(y,l)}else _.Ub(this.hostElement,"yt-emoji-select",lA(this.emojiManager,y.emojiId)),this.hostElement.focus();p.preventDefault()}}break;case 40:this.changeFocus_(1,!0);p.preventDefault();break;case 38:this.changeFocus_(-1,!0),
p.preventDefault()}};
_.J.onEmojiStickyPreferenceChanged=function(p,y){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&p.emojiId&&p.variantIds&&p.variantIds.includes(y)&&this.activeEmojiWithVariantsId!==y&&this.setStickyEmojiPreference(p.emojiId,y)};
_.J.openVariantSelector=function(p,y){this.activeEmojiWithVariantsId=p.stickyPrefId||p.emojiId||"";_.Ub(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:p,target:y})};
_.J.setStickyEmojiPreference=function(p,y){if(this.data){var l=this.emoji.findIndex(function(t){return t.emojiId===p});
if(l!==-1){var q=this.emoji[l];q.stickyPrefId=y;this.set("emoji."+l,Object.assign({},q));this.activeEmojiWithVariantsId=y}}};
nP.prototype.onKeyDown_=nP.prototype.onKeyDown_;nP.prototype.onMouseOver_=nP.prototype.onMouseOver_;nP.prototype.onClick=nP.prototype.onClick;nP.prototype.onBlur_=nP.prototype.onBlur_;nP.prototype.onFocus=nP.prototype.onFocus;nP.prototype.onMouseUp=nP.prototype.onMouseUp;nP.prototype.onMouseDown=nP.prototype.onMouseDown;nP.prototype.dataChanged=nP.prototype.dataChanged;nP.prototype.disableIncrementalLoadingChanged_=nP.prototype.disableIncrementalLoadingChanged_;nP.prototype.emojiManagerChanged_=nP.prototype.emojiManagerChanged_;
nP.prototype.emojiChanged_=nP.prototype.emojiChanged_;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],nP.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],nP.prototype,"data",void 0);_.H([_.Q({computed:"computeId_(data)"}),_.x("design:type",String)],nP.prototype,"id",void 0);_.H([_.Q({computed:"computeEmoji(data)"}),_.x("design:type",Array)],nP.prototype,"emoji",void 0);_.H([_.Q(),_.x("design:type",Number)],nP.prototype,"skinTone",void 0);
_.H([_.Q(),_.x("design:type",_.pP)],nP.prototype,"emojiManager",void 0);_.H([_.Q(),_.x("design:type",Boolean)],nP.prototype,"disableIncrementalLoading",void 0);_.H([_.Q({value:0}),_.x("design:type",Number)],nP.prototype,"focusedIndex",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],nP.prototype,"showFocus",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.x("design:type",Object)],nP.prototype,"ariaLabel",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.x("design:type",Object)],nP.prototype,"ariaActivedescendant",void 0);_.H([_.Q({value:60}),_.x("design:type",Number)],nP.prototype,"domRepeatTargetFramerate",void 0);_.H([_.Q({value:1}),_.x("design:type",Number)],nP.prototype,"domRepeatInitialCount",void 0);_.H([_.Q({value:""}),_.x("design:type",String)],nP.prototype,"activeEmojiWithVariantsId",void 0);
_.H([_.Q({value:!1}),_.x("design:type",Boolean)],nP.prototype,"shouldUseStickyPreferences",void 0);_.H([_.gd("emoji"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nP.prototype,"emojiChanged_",null);_.H([_.gd("emojiManager"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nP.prototype,"emojiManagerChanged_",null);
_.H([_.gd("disableIncrementalLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nP.prototype,"disableIncrementalLoadingChanged_",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nP.prototype,"dataChanged",null);_.H([_.VU("mousedown"),_.x("design:type",Function),_.x("design:paramtypes",[Object]),_.x("design:returntype")],nP.prototype,"onMouseDown",null);
_.H([_.VU("mouseup"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nP.prototype,"onMouseUp",null);_.H([_.VU("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nP.prototype,"onFocus",null);_.H([_.VU("blur"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nP.prototype,"onBlur_",null);
_.H([_.VU("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],nP.prototype,"onClick",null);_.H([_.VU("mouseover"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],nP.prototype,"onMouseOver_",null);_.H([_.VU("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],nP.prototype,"onKeyDown_",null);
_.H([_.z9({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],nP);
_.D(nP,"yt-emoji-picker-category-renderer",function(){if(QyB===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_renderer.yt.emoji.picker.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-category-renderer"></yt-formatted-string><div class$="[[data.categoryType]] style-scope yt-emoji-picker-category-renderer" id="emoji" role="listbox" aria-label="[[computeAriaLabel_(data.title)]]"><template is="dom-repeat" id="repeat" items="[[emoji]]" initial-count="[[domRepeatInitialCount]]" target-framerate="[[domRepeatTargetFramerate]]" class="style-scope yt-emoji-picker-category-renderer"><img id="[[item.emojiId]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" contains-variants$="[[emojiContainsVariants(item)]]" height="24" is-active-emoji-with-variants$="[[isActiveEmojiWithVariants(activeEmojiWithVariantsId, item)]]" loading$="[[emojiLoading()]]" role="option" src$="[[emojiUrl(item.emojiId, skinTone)]]" width="24" class="style-scope yt-emoji-picker-category-renderer"></template></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;gRM===void 0&&(gRM=document.createElement("template"));var q=gRM;l.call(y,q.content.cloneNode(!0),p.content.firstChild);QyB=p}p=QyB;return p},{mode:2});var KkZ;var wyi;var iGQ;var r9P;var GL=function(){var p=_.w.apply(this,arguments)||this;p.ariaLabel=null;p.ariaActivedescendant=null;p.getFormattedStringRawText=_.JB;p.JSC$14060_ignoreNextFocus_=!1;return p};
_.A(GL,_.w);_.J=GL.prototype;_.J.attached=function(){this.hostElement.hasAttribute("aria-live")||this.hostElement.setAttribute("aria-live","polite");this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.emojiUrl=function(p){var y,l;p=(y=lA(this.emojiManager,p,!0))==null?void 0:(l=y.image)==null?void 0:l.thumbnails;return _.nY(p,24)||""};
_.J.emojiAlt=function(p){var y=this.get("image.accessibility.accessibilityData.label",p);return y?y:p.isCustomEmoji?p.shortcuts[0]:p.emojiId};
_.J.emojiId=function(p){return"emoji"+p};
_.J.computeId_=function(p){return p.categoryId||""};
_.J.computeAriaActivedescendant_=function(p){return this.emoji&&p<this.emoji.length?this.emojiId(p):""};
_.J.emojiChanged_=function(){this.changeFocus_(0,!1);for(var p=_.Ll(),y=0;y<this.emoji.length;y++){var l={veType:88013,elementIndex:y},q=this.emoji[y];q.isCustomEmoji&&(q=document.querySelector(("#"+q.emojiId).replace("/","\\/")))&&(l=_.FH(p,l))&&(q.visualElement=l)}};
_.J.computeEmoji_=function(p){var y=this;return this.emojiManager?p.emojiIds.map(function(l){return _.yD(y.emojiManager,l,!0)}).filter(iM_):[]};
_.J.titleOffsetChanged_=function(){var p=this.hostElement.getBoundingClientRect(),y=_.jR(this.hostElement).querySelector("#title").getBoundingClientRect();p=Math.max(0,Math.min(this.titleOffset,p.height-y.height));_.jR(this.hostElement).querySelector("#title").style.top=p+"px"};
_.J.onEmojiMouseOver_=function(p){_.Ub(this.hostElement,"yt-emoji-hover",p.model.item)};
_.J.onEmojiTap_=function(p){this.data.command&&(p=NK_(_.WC().resolve(_.RK(Yn)),this.data.command,p),_.Ub(this.hostElement,"yt-navigate",p))};
_.J.emojiAriaLabel=function(p){return p.shortcuts[0]};
_.J.emojiAriaSelected=function(p,y,l){return p&&l==y?"true":"false"};
_.J.changeFocus_=function(p,y){var l=this.emoji.length;this.focusedIndex=(this.focusedIndex+p+l)%l;p=this.emoji[this.focusedIndex];if(y){var q;(q=_.jR(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||q.scrollIntoView(!1);_.Ub(this.hostElement,"yt-emoji-hover",p)}};
_.J.onMouseDown_=function(){this.JSC$14060_ignoreNextFocus_=!0};
_.J.onFocus_=function(){this.JSC$14060_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14060_ignoreNextFocus_=!1};
_.J.onBlur_=function(){this.showFocus=!1};
_.J.onKeyDown_=function(p){switch(p.keyCode){case 13:this.onEmojiTap_(p);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);p.preventDefault();break;case 38:this.changeFocus_(-1,!0),p.preventDefault()}};
GL.prototype.onKeyDown_=GL.prototype.onKeyDown_;GL.prototype.onBlur_=GL.prototype.onBlur_;GL.prototype.onFocus_=GL.prototype.onFocus_;GL.prototype.onMouseDown_=GL.prototype.onMouseDown_;GL.prototype.onEmojiTap_=GL.prototype.onEmojiTap_;GL.prototype.titleOffsetChanged_=GL.prototype.titleOffsetChanged_;GL.prototype.emojiChanged_=GL.prototype.emojiChanged_;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],GL.prototype,"ytComponentBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],GL.prototype,"data",void 0);_.H([_.Q({computed:"computeId_(data)"}),_.x("design:type",String)],GL.prototype,"id",void 0);_.H([_.Q({computed:"computeEmoji_(data)"}),_.x("design:type",Array)],GL.prototype,"emoji",void 0);_.H([_.Q({value:0}),_.x("design:type",Number)],GL.prototype,"titleOffset",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.x("design:type",Object)],GL.prototype,"ariaLabel",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.x("design:type",Object)],GL.prototype,"ariaActivedescendant",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],GL.prototype,"showFocus",void 0);_.H([_.Q({value:0}),_.x("design:type",Number)],GL.prototype,"focusedIndex",void 0);_.H([_.Q(),_.x("design:type",_.pP)],GL.prototype,"emojiManager",void 0);
_.H([_.gd("emoji"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GL.prototype,"emojiChanged_",null);_.H([_.gd("titleOffset"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GL.prototype,"titleOffsetChanged_",null);_.H([_.VU("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],GL.prototype,"onEmojiTap_",null);
_.H([_.VU("mousedown"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GL.prototype,"onMouseDown_",null);_.H([_.VU("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GL.prototype,"onFocus_",null);_.H([_.VU("blur"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GL.prototype,"onBlur_",null);
_.H([_.VU("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],GL.prototype,"onKeyDown_",null);_.H([_.z9({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],GL);
_.D(GL,"yt-emoji-picker-upsell-category-renderer",function(){if(r9P===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-upsell-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_upsell_category_renderer.yt.emoji.picker.upsell.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-upsell-category-renderer"></yt-formatted-string><div id="emoji" class="style-scope yt-emoji-picker-upsell-category-renderer"><template is="dom-repeat" id="repeat" items="[[emoji]]" class="style-scope yt-emoji-picker-upsell-category-renderer"><div class="style-scope yt-emoji-picker-upsell-category-renderer"><img id="[[emojiId(index)]]" on-mouseover="onEmojiMouseOver_" shared-tooltip-text$="[[data.emojiTooltip]]" src$="[[emojiUrl(item.emojiId)]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" role="option" class="style-scope yt-emoji-picker-upsell-category-renderer"><svg viewBox="0 0 24 24" class="style-scope yt-emoji-picker-upsell-category-renderer"><path id="lock-border" d="M18.3809524 6.80952784c1.6455246.45922361 2.8571428 1.97242785 2.8571428 3.76190076v9.5238095C21.2380952 22.2474266 19.4855219 24 17.3333333 24H5.9047619C3.75257336 24 2 22.2474266 2 20.0952381v-9.5238095c0-1.78947291 1.21161828-3.30267715 2.85714286-3.76190076v-.04762308C4.85714286 3.02876383 7.88590669 0 11.6190476 0c3.7331409 0 6.7619048 3.02876383 6.7619048 6.76190476v.04762308z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path><path d="M17.3333333 8.66666667c1.0476191 0 1.9047619.85714285 1.9047619 1.90476193v9.5238095c0 1.047619-.8571428 1.9047619-1.9047619 1.9047619H5.9047619C4.85714286 22 4 21.1428571 4 20.0952381v-9.5238095c0-1.04761908.85714286-1.90476193 1.9047619-1.90476193h.95238096V6.76190476C6.85714286 4.13333333 8.99047619 2 11.6190476 2c2.6285714 0 4.7619048 2.13333333 4.7619048 4.76190476v1.90476191h.9523809zm-5.7142857 8.57142853c1.0476191 0 1.9047619-.8571428 1.9047619-1.9047619 0-1.047619-.8571428-1.9047619-1.9047619-1.9047619-1.047619 0-1.90476189.8571429-1.90476189 1.9047619 0 1.0476191.85714289 1.9047619 1.90476189 1.9047619zm2.952381-8.57142853V6.76190476c0-1.62857143-1.3238096-2.95238095-2.952381-2.95238095-1.62857141 0-2.95238093 1.32380952-2.95238093 2.95238095v1.90476191h5.90476193z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path></svg></div></template></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;iGQ===void 0&&(iGQ=document.createElement("template"));var q=iGQ;l.call(y,q.content.cloneNode(!0),p.content.firstChild);r9P=p}p=r9P;return p},{mode:2});var SBx;var FkQ;var PS=function(){var p=_.w.apply(this,arguments)||this;p.scrollAction="lock";p.verticalAlign="top";return p};
_.A(PS,_.w);_.J=PS.prototype;_.J.onClick=function(p){p=_.cm(p);p instanceof HTMLImageElement&&_.Ub(this.hostElement,"yt-emoji-select",_.yD(this.emojiManager,p.id))};
_.J.openSelector=function(){this.ironOverlayBehavior.open()};
_.J.onDomChange=function(){jyM(this.ytEmojiSelectorBehavior)};
_.J.computeIsFamilySelector=function(p){var y;return(p==null?void 0:(y=p.emoji)==null?void 0:y.emojiId)==="\ud83d\udc6a"};
_.J.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var p=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];p&&p.emojiId&&(_.Ub(this.hostElement,"yt-emoji-select",_.yD(this.emojiManager,p.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Jh.Object.defineProperties(PS.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var p=this,y,l,q;return this.emojiManager&&((y=this.data)==null?0:(l=y.emoji)==null?0:(q=l.variantIds)==null?0:q.length)?this.data.emoji.variantIds.map(function(t){return!!t&&_.yD(p.emojiManager,t)}).filter(function(t){return!!t}):[]}}});
PS.prototype.onClick=PS.prototype.onClick;_.H([_.V(_.JT),_.x("design:type",Object)],PS.prototype,"ironOverlayBehavior",void 0);_.H([_.V(bGv),_.x("design:type",Object)],PS.prototype,"ytEmojiSelectorBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],PS.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",_.pP)],PS.prototype,"emojiManager",void 0);_.H([_.Q(),_.x("design:type",Object)],PS.prototype,"scrollAction",void 0);_.H([_.Q(),_.x("design:type",Object)],PS.prototype,"verticalAlign",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.x("design:type",Boolean)],PS.prototype,"isFamilySelector",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],PS.prototype,"emojiVariants",null);_.H([_.VU("click"),_.x("design:type",Function),_.x("design:paramtypes",[MouseEvent]),_.x("design:returntype")],PS.prototype,"onClick",null);_.H([_.z9({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],PS);
_.D(PS,"yt-emoji-variant-selector",function(){if(FkQ===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-variant-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_variant_selector.yt.emoji.variant.selector.css.js--\x3e<div role="listbox" id="variants" class="style-scope yt-emoji-variant-selector">\n    <template is="dom-repeat" id="repeat" items="[[emojiVariants]]" notify-dom-change="" on-dom-change="onDomChange" class="style-scope yt-emoji-variant-selector">\n      \n      <img id="[[item.emojiId]]" alt="[[item.emojiId]]" height="24" role="option" tabindex="-1" src$="[[emojiUrl(item.emojiId)]]" width="24" class="style-scope yt-emoji-variant-selector">\n    </template>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;SBx===void 0&&(SBx=document.createElement("template"));var q=SBx;l.call(y,q.content.cloneNode(!0),p.content.firstChild);FkQ=p}p=FkQ;return p},{mode:2});var Lkv=/:/g,kDO=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],AC=function(){var p=_.w.apply(this,arguments)||this;p.emojiVariantSelector=null;p.emojiMultiPersonSelector=null;p.identity=_.Dt;p.lastAnimationTime_=0;p.animationStart_=null;p.animationEnd_=null;return p};
_.A(AC,_.w);_.J=AC.prototype;
_.J.configureRendererStamper=function(){return{categories:{id:"categories",mapping:{emojiPickerCategoryRenderer:{component:"yt-emoji-picker-category-renderer",properties:{disableIncrementalLoading:"[[disableIncrementalLoading]]",emojiManager:"[[emojiManager]]",shouldUseStickyPreferences:"[[shouldUseStickyPreferences]]"}},emojiPickerUpsellCategoryRenderer:{component:"yt-emoji-picker-upsell-category-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},categoryButtons:{id:"category-buttons",mapping:{emojiPickerCategoryButtonRenderer:"yt-emoji-picker-category-button-renderer"}},
emojiVariantSelector:{id:"emoji-variant-selector",mapping:{ytEmojiVariantSelector:{component:"yt-emoji-variant-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1},emojiMultiPersonSelector:{id:"emoji-multi-person-selector",mapping:{ytEmojiMultiPersonSelector:{component:"yt-emoji-multi-person-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1}}};
_.J.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.q4)};
_.J.attached=function(){_.P0&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&nbN(this.emojiManager)};
_.J.dataChanged=function(){var p;if((p=this.data)==null?0:p.categories){p=this.emojiManager;var y=this.getCustomEmojiIds();p.pickerCustomEmojiIds=[].concat(_.xq(aPZ),_.xq(y))}};
_.J.getCustomEmojiIds=function(){var p,y=(p=this.data.categories)==null?void 0:p.find(function(E){var e;return((e=E.emojiPickerCategoryRenderer)==null?void 0:e.categoryId)&&kDO.includes(E.emojiPickerCategoryRenderer.categoryId)}),l;
p=(l=this.data.categories)==null?void 0:l.find(function(E){return E.emojiPickerUpsellCategoryRenderer});
var q,t;return[y==null?void 0:(q=y.emojiPickerCategoryRenderer)==null?void 0:q.emojiIds,p==null?void 0:(t=p.emojiPickerUpsellCategoryRenderer)==null?void 0:t.emojiIds].flat().filter(function(E){return!!E})};
_.J.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.J.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.J.updateCategoriesAndPlaceholderInternal=function(p,y){var l=this;p&&y&&(this.categories=p.categories||[],this.categoryButtons=p.categoryButtons||[],this.resetPlaceholder(),this.search="",_.sU(function(){l.updateButtons_()}))};
_.J.computeId_=function(p){return p.id||""};
_.J.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(p){return p.emojiPickerCategoryRenderer&&p.emojiPickerCategoryRenderer.emojiData}):!1};
_.J.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.J.onShowEmojiVariantSelector=function(p){var y=p.detail.emojiData;y.variantIds&&y.variantIds.length&&(y.multiSelectorThumbnailRow&&y.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:y,target:p.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:y,target:p.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.J.onIronOverlayClosed=function(p){var y=GyU(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");y&&p.composedPath&&(p.composedPath().includes(_.jR(this.hostElement).querySelector("#emoji-variant-selector"))||p.composedPath().includes(_.jR(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.$w(this.hostElement,"yt-close-emoji-variant-selector",[y.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.J.onEmojiVariantSelectorMouseup=function(p){var y=p.target.firstChild;this.variantSelectorOpened&&y&&_.sU(function(){y.noCancelOnOutsideClick=!1},100)};
_.J.onEmojiVariantSelectorMousedown=function(p){p=p.target.firstChild;this.variantSelectorOpened&&p&&(p.noCancelOnOutsideClick=!1)};
_.J.onSelectCategory_=function(p){var y=this.search!="";this.search="";for(var l=_.jR(this.hostElement).querySelector("#categories").children,q=0;q<l.length;q++){var t=l[q];if(t.id==p.detail.categoryId){y?(_.jR(this.hostElement).querySelector("#categories").scrollTop=t.offsetTop,this.updateButtons_()):(this.animationStart_=_.jR(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=t.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.J.onEmojiHover_=function(p){this.placeholder=p.detail.shortcuts?p.detail.shortcuts[0]:""};
_.J.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.J.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.J.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.J.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.J.computeSearchCategory_=function(p){p=p.replace(Lkv,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();p=p.split(" ");for(var y=[],l=this.emojiManager.emojis,q=0;q<l.length;q++){var t=l[q];if(t.searchTerms)for(var E=0;E<t.searchTerms.length;E++){for(var e=t.searchTerms[E].toLocaleLowerCase(),C=!1,u=0;u<p.length;u++)if(e.indexOf(p[u])!=-1){C=!0;break}if(C&&(!t.isCustomEmoji||!t.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(t.emojiId))){y.push(t.emojiId);
break}}}return{categoryId:-1,emojiIds:y}};
_.J.computeSearchEmptyMessage_=function(p,y){return p&&y&&y.emojiIds&&y.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.J.computeSearching_=function(p){return this.emojiManager&&p.replace(Lkv,"").length>1};
_.J.computeSkinToneHidden=function(){var p;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((p=this.data)==null||!p.hideSkinTonePicker)};
_.J.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.J.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.J.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.J.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.J.selectSkinTone_=function(p){p=Number(p.target.getAttribute("tone"));this.set("emojiManager.skinTone",p);_.$w(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[p]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.J.skinToneChanged_=function(){_.jR(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var p=_.jR(this.hostElement).querySelector("#dropdown-content").children,y=0;y<p.length;y++)y===this.skinTone?p[y].setAttribute("selected",""):p[y].removeAttribute("selected")};
_.J.animateScroll_=function(p){this.lastAnimationTime_||(this.lastAnimationTime_=p);p-=this.lastAnimationTime_;p<200?(_.jR(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*p/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.jR(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.J.searchChanged_=function(){this.updateButtons_()};
_.J.updateButtons_=function(){var p=null;if(!this.search)for(var y=_.jR(this.hostElement).querySelector("#categories").scrollTop,l=_.jR(this.hostElement).querySelector("#categories").children,q=0;q<l.length;q++){var t=l[q];t.offsetTop<=y&&(p=t.id)}y=_.jR(this.hostElement).querySelector("#category-buttons").children;for(l=0;l<y.length;l++)q=y[l],q.active=q.id===p};
AC.prototype.searchChanged_=AC.prototype.searchChanged_;AC.prototype.skinToneChanged_=AC.prototype.skinToneChanged_;AC.prototype.onEmojiHover_=AC.prototype.onEmojiHover_;AC.prototype.onSelectCategory_=AC.prototype.onSelectCategory_;AC.prototype.onShowEmojiVariantSelector=AC.prototype.onShowEmojiVariantSelector;AC.prototype.updateCategoriesAndPlaceholder_=AC.prototype.updateCategoriesAndPlaceholder_;AC.prototype.dataChanged=AC.prototype.dataChanged;
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],AC.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],AC.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],AC.prototype,"data",void 0);_.H([_.Q({value:function(){return[]}}),
_.x("design:type",Array)],AC.prototype,"categories",void 0);_.H([_.Q({value:function(){return[]}}),
_.x("design:type",Array)],AC.prototype,"categoryButtons",void 0);_.H([_.Q({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.x("design:type",Boolean)],AC.prototype,"disableScroll",void 0);_.H([_.Q({computed:"computeId_(data)",reflectToAttribute:!0}),_.x("design:type",String)],AC.prototype,"id",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],AC.prototype,"selected",void 0);
_.H([_.Q({value:!1}),_.x("design:type",Boolean)],AC.prototype,"disableIncrementalLoading",void 0);_.H([_.Q(),_.x("design:type",String)],AC.prototype,"placeholder",void 0);_.H([_.Q({value:""}),_.x("design:type",String)],AC.prototype,"search",void 0);_.H([_.Q({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.x("design:type",Boolean)],AC.prototype,"searching",void 0);_.H([_.Q({computed:"computeSearchCategory_(search)"}),_.x("design:type",Object)],AC.prototype,"searchCategory",void 0);
_.H([_.Q({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.x("design:type",Object)],AC.prototype,"searchEmptyMessage",void 0);_.H([_.Q({computed:"identity(emojiManager.skinTone)"}),_.x("design:type",Number)],AC.prototype,"skinTone",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],AC.prototype,"skinToneOpened",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],AC.prototype,"variantSelectorOpened",void 0);
_.H([_.Q({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.x("design:type",Boolean)],AC.prototype,"skinToneHidden",void 0);_.H([_.Q(),_.x("design:type",_.pP)],AC.prototype,"emojiManager",void 0);_.H([_.Q(),_.x("design:type",Object)],AC.prototype,"emojiVariantSelector",void 0);_.H([_.Q(),_.x("design:type",Object)],AC.prototype,"emojiMultiPersonSelector",void 0);
_.H([_.Q({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.x("design:type",Boolean)],AC.prototype,"shouldUseStickyPreferences",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AC.prototype,"dataChanged",null);_.H([_.gd("data","selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AC.prototype,"updateCategoriesAndPlaceholder_",null);
_.H([_.VU("yt-show-emoji-variant-selector"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],AC.prototype,"onShowEmojiVariantSelector",null);_.H([_.VU("yt-emoji-picker-select-category"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],AC.prototype,"onSelectCategory_",null);_.H([_.VU("yt-emoji-hover"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],AC.prototype,"onEmojiHover_",null);
_.H([_.gd("skinTone"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AC.prototype,"skinToneChanged_",null);_.H([_.gd("search"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AC.prototype,"searchChanged_",null);_.H([_.z9({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],AC);
_.D(AC,"yt-emoji-picker-renderer",function(){if(wyi===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_renderer.yt.emoji.picker.renderer.css.js--\x3e<div id="search-panel" class="style-scope yt-emoji-picker-renderer"><tp-yt-paper-input id="search" no-label-float="" placeholder="[[placeholder]]" use-v2-underline="" value="{{search}}" on-blur="onSearchBoxBlur_" on-focus="onSearchBoxFocused_" class="style-scope yt-emoji-picker-renderer"></tp-yt-paper-input><yt-icon-button id="clear-search" hidden="[[!search]]" label="[[data.clearSearchLabel]]" on-tap="clearSearch" class="style-scope yt-emoji-picker-renderer"><yt-icon icon="close" class="style-scope yt-emoji-picker-renderer"></yt-icon></yt-icon-button><button id="skin-tone" aria-label$="[[getSimpleString(data.pickSkinToneText)]]" hidden="[[skinToneHidden]]" on-mouseout="resetPlaceholder" on-mouseover="showSkinTonePlaceholder" on-tap="openSkinToneSelector" selected="" class="style-scope yt-emoji-picker-renderer"></button><tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" horizontal-align="right" horizontal-offset="8" no-auto-focus="" opened="{{skinToneOpened}}" vertical-align="top" vertical-offset="8" class="style-scope yt-emoji-picker-renderer"><div id="dropdown-content" class="dropdown-content style-scope yt-emoji-picker-renderer" slot="dropdown-content"><button aria-label$="[[data.skinToneGenericLabel]]" on-tap="selectSkinTone_" tone="0" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneLightLabel]]" on-tap="selectSkinTone_" tone="1" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLightLabel]]" on-tap="selectSkinTone_" tone="2" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLabel]]" on-tap="selectSkinTone_" tone="3" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumDarkLabel]]" on-tap="selectSkinTone_" tone="4" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneDarkLabel]]" on-tap="selectSkinTone_" tone="5" class="style-scope yt-emoji-picker-renderer"></button></div></tp-yt-iron-dropdown></div><div id="category-buttons" class="style-scope yt-emoji-picker-renderer"></div><yt-emoji-picker-category-renderer id="search-category" data="[[searchCategory]]" emoji-manager="[[emojiManager]]" should-use-sticky-preferences="[[shouldUseStickyPreferences]]" skin-tone="[[skinTone]]" class="style-scope yt-emoji-picker-renderer"></yt-emoji-picker-category-renderer><yt-formatted-string id="search-empty" hidden="[[!searchEmptyMessage]]" text="[[searchEmptyMessage]]" class="style-scope yt-emoji-picker-renderer"></yt-formatted-string><div id="categories-wrapper" class="style-scope yt-emoji-picker-renderer"><div id="categories" on-mouseout="onMouseoutCategories" on-scroll="onScroll_" class="style-scope yt-emoji-picker-renderer"></div></div><div id="emoji-variant-selector" hidden="[[!emojiVariantSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div><div id="emoji-multi-person-selector" hidden="[[!emojiMultiPersonSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;KkZ===void 0&&(KkZ=document.createElement("template"));var q=KkZ;l.call(y,q.content.cloneNode(!0),p.content.firstChild);wyi=p}p=wyi;return p},{mode:2});var ZJ=function(){var p=_.w.apply(this,arguments)||this;p.emojiManager=_.q4;p.isDarkTheme=document.documentElement.hasAttribute("dark");p.selectedIndex=1;p.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return p};
_.A(ZJ,_.w);_.J=ZJ.prototype;_.J.handleEmojiCustomizationVisible=function(p){this.emojiPickerRenderer.selected=p;this.selectedIndex=1;p?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.J.emojiCustomizationSetChanged=function(){var p;(p=this.data)!=null&&p.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.eB(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.J.updateSaveButtonState=function(p){var y;(y=this.data)!=null&&y.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.Fp("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:p}))};
_.J.emojiUrl=function(p){p=_.yD(this.emojiManager,p);if(!p)return"";var y;p=(y=p.image)==null?void 0:y.thumbnails;return _.nY(p,24)||""};
_.J.emojiAlt=function(p){var y=_.yD(this.emojiManager,p);if(!y)return p;var l,q,t,E=(y==null?void 0:(l=y.image)==null?void 0:(q=l.accessibility)==null?void 0:(t=q.accessibilityData)==null?void 0:t.label)||"";return E?E:y.isCustomEmoji?y.shortcuts[0]:y.emojiId||p};
_.J.emojiAriaLabel=function(p){var y,l;return((y=_.yD(this.emojiManager,p))==null?void 0:(l=y.shortcuts)==null?void 0:l[0])||p};
_.J.onEmojiClick=function(p){p.model.index!==0&&(this.selectedIndex=p.model.index)};
_.J.onEmojiSelect=function(p){p=p.detail;var y,l;((y=this.data)==null?0:y.emojiCustomizationSetEntityKey)&&((l=this.emojiCustomizationSet)==null?0:l.emojiId)&&p.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,p.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.Fp("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,p.emojiId,this.selectedIndex)}))};
_.J.canEditEmoji=function(p,y,l){p=p.indexOf(y);return p===l||p===0||l===0?!1:!0};
_.J.getUpdatedEmojiIdList=function(p,y,l){var q=p.indexOf(y);p=[].concat(_.xq(p));q>=0&&(p[q]=p[l]);p[l]=y;return p};
_.Jh.Object.defineProperties(ZJ,{template:{configurable:!0,enumerable:!0,get:function(){if(qBZ===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-customization-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_customization_panel_view_model.yt.emoji.customization.panel.view.model.css.js--\x3e<yt-attributed-string id="description-text" data="[[data.descriptionText]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-attributed-string>\n<div id="fab-container" class="style-scope yt-emoji-customization-panel-view-model">\n  <div id="expanded-buttons" class="style-scope yt-emoji-customization-panel-view-model">\n    <template is="dom-repeat" id="repeat" items="[[emojiCustomizationSet.emojiId]]" class="style-scope yt-emoji-customization-panel-view-model">\n      <button class="reaction-button style-scope yt-emoji-customization-panel-view-model" emoji-selected$="[[equals(selectedIndex, index)]]" on-click="onEmojiClick" disabled$="[[equals(index, 0)]]">\n        <img id="[[index]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" height="24" role="option" src$="[[emojiUrl(item)]]" width="24" class="style-scope yt-emoji-customization-panel-view-model">\n      </button>\n    </template>\n  </div>\n</div>\n<yt-button-view-model data="[[data.resetButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-emoji-customization-panel-view-model">\n</yt-button-view-model>\n<yt-emoji-picker-renderer data="[[data.emojiPicker.emojiPickerRenderer]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-emoji-picker-renderer>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;lTQ===void 0&&(lTQ=document.createElement("template"));var q=lTQ;l.call(y,q.content.cloneNode(!0),p.content.firstChild);qBZ=p}p=qBZ;return p}}});
ZJ.prototype.onEmojiSelect=ZJ.prototype.onEmojiSelect;_.H([_.V(_.lQ),_.x("design:type",Object)],ZJ.prototype,"ytLiveChatReduxBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],ZJ.prototype,"ytActionHandlerBehavior",void 0);_.H([_.rd("yt-emoji-picker-renderer"),_.x("design:type",Object)],ZJ.prototype,"emojiPickerRenderer",void 0);
_.H([_.Q({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(p,y){return _.Ae(p.entities,"emojiCustomizationSetEntity",y)},
observer:"emojiCustomizationSetChanged"}),_.x("design:type",Object)],ZJ.prototype,"emojiCustomizationSet",void 0);_.H([_.Q(),_.x("design:type",Object)],ZJ.prototype,"originalEmojiSet",void 0);_.H([_.Q(),_.x("design:type",_.pP)],ZJ.prototype,"emojiManager",void 0);_.H([_.Q(),_.x("design:type",Object)],ZJ.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],ZJ.prototype,"isDarkTheme",void 0);_.H([_.Q(),_.x("design:type",Object)],ZJ.prototype,"selectedIndex",void 0);
_.H([_.VU("yt-emoji-select"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ZJ.prototype,"onEmojiSelect",null);_.H([_.z9({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],ZJ);var NKN;var D7O;var HGU;var TK$;var M4=function(){var p=_.w.apply(this,arguments)||this;p.authorBadges=[];return p};
_.A(M4,_.w);_.J=M4.prototype;_.J.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.J.configureRendererStamper=function(){return{"data.inlineActionButtons":{id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}},"data.beforeContentButtons":{id:"before-content-buttons",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.J.dataChanged=function(){var p=ldl(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",p)};
_.J.updateMessage=function(){var p=this.data.message,y=_.jR(_.jR(this.hostElement).querySelector("#message"));y.textContent="";p&&y.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(p))};
_.J.shouldSupportWholeItemClick=function(){return!0};
_.J.onShowOriginalClick=function(p){p.preventDefault();this.showOriginal=!0};
_.J.computeShowBar=function(p,y,l){return p&&y||l};
_.J.computeAuthorBadges=function(p){return p.authorBadges||[]};
_.J.computeAuthorIsOwner=function(p){return!!qGj(p.authorBadges,"owner")};
_.J.computeAuthorNameColor=function(p){var y;if(_.n("live_chat_author_name_color_usernames")&&(p==null?0:(y=p.authorName)==null?0:y.simpleText))return _.eha(_.hhl(p.authorName.simpleText));if(_.n("live_chat_seed_color_usernames")&&(p==null?0:p.authorSeedColorArgb))return _.eha(_.VZ(p.authorSeedColorArgb));if(_.n("live_chat_colored_usernames"))return"#cc0000";var l;return _.n("live_chat_simple_color_usernames")&&(p==null?0:(l=p.authorName)==null?0:l.simpleText)&&(p==null?0:p.authorUsernameColorLight)&&
(p==null?0:p.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.VZ(p.authorUsernameColorDark):_.VZ(p.authorUsernameColorLight):""};
M4.prototype.updateMessage=M4.prototype.updateMessage;M4.prototype.dataChanged=M4.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sg.YtLiveChatItemBehavior),_.x("design:type",_.tC)],M4.prototype,"ytLiveChatItemBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],M4.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],M4.prototype,"data",void 0);
_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],M4.prototype,"showOriginal",void 0);_.H([_.Q({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.x("design:type",Boolean)],M4.prototype,"isDimmed",void 0);_.H([_.Q({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.x("design:type",Boolean)],M4.prototype,"showBar",void 0);
_.H([_.Q({computed:"computeAuthorBadges(data)"}),_.x("design:type",Array)],M4.prototype,"authorBadges",void 0);_.H([_.Q({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],M4.prototype,"authorIsOwner",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],M4.prototype,"inCollapsedBanner",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],M4.prototype,"inBanner",void 0);
_.H([_.Q({value:_.n("live_chat_hide_avatars"),reflectToAttribute:!0}),_.x("design:type",Boolean)],M4.prototype,"avatarHidden",void 0);_.H([_.Q({computed:"computeAuthorNameColor(data)"}),_.x("design:type",String)],M4.prototype,"authorNameColor",void 0);_.H([_.Q(),_.x("design:type",_.cS)],M4.prototype,"participantsManager",void 0);_.H([_.Q({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.x("design:type",Object)],M4.prototype,"filledButtonOverrides",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],M4.prototype,"dataChanged",null);_.H([_.gd("data.message"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],M4.prototype,"updateMessage",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],M4);
_.D(M4,"yt-live-chat-text-message-renderer",function(){if(TK$===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_message_renderer.yt.live.chat.text.message.renderer.css.js--\x3e<yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-text-message-renderer" height="24" thumbnail="[[data.authorPhoto]]" width="24"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-text-message-renderer"><span id="timestamp" class="style-scope yt-live-chat-text-message-renderer">[[timestampString]]</span><yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" class="style-scope yt-live-chat-text-message-renderer"></yt-live-chat-author-chip>\u200b<div id="before-content-buttons" class="style-scope yt-live-chat-text-message-renderer"></div>\u200b<span id="message" dir="auto" class="style-scope yt-live-chat-text-message-renderer"></span><span id="deleted-state" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.deletedStateMessage)]]</span><a id="show-original" href="#" on-click="onShowOriginalClick" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.showOriginalContentMessage)]]</a></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-text-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-text-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-text-message-renderer"></yt-icon></yt-icon-button></div><div id="inline-action-button-container" class="style-scope yt-live-chat-text-message-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-text-message-renderer"></div></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;HGU===void 0&&(HGU=document.createElement("template"));var q=HGU;l.call(y,q.content.cloneNode(!0),p.content.firstChild);TK$=p}p=TK$;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var VD=function(){var p=_.w.apply(this,arguments)||this;p.tonalButtonOverrides={type:"tonal",style:"overlay"};return p};
_.A(VD,_.w);
VD.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]]"}}}}}};
VD.prototype.shouldSupportInlineActionButtons=function(){return!0};
VD.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Jh.Object.defineProperties(VD.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sg.YtLiveChatItemBehavior),_.x("design:type",_.tC)],VD.prototype,"ytLiveChatItemBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],VD.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],VD.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",_.cS)],VD.prototype,"participantsManager",void 0);
_.H([_.Q(),_.x("design:type",Object)],VD.prototype,"tonalButtonOverrides",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("data.infoDialogButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],VD.prototype,"hasInfoDialogButton",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],VD);
_.D(VD,"yt-live-chat-auto-mod-message-renderer",function(){if(D7O===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-auto-mod-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_auto_mod_message_renderer.yt.live.chat.auto.mod.message.renderer.css.js--\x3e<div id="explanation" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <yt-icon id="warning-icon" hidden$="[[hasInfoDialogButton]]" icon="warning" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-icon>\n  <div id="button" hidden$="[[!hasInfoDialogButton]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <yt-formatted-string text="[[data.headerText]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-formatted-string>\n</div>\n<div id="auto-moderated-item" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="moderation-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <div id="additional-inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;NKN===void 0&&(NKN=document.createElement("template"));var q=NKN;l.call(y,q.content.cloneNode(!0),p.content.firstChild);D7O=p}p=D7O;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var x7U;var BKv;var fTU;var vR$=function(){return _.w.apply(this,arguments)||this};
_.A(vR$,_.w);_.H([_.Q(),_.x("design:type",Object)],vR$.prototype,"data",void 0);_.H([_.k({is:"ytd-factoid-renderer",disableElementRegistration:!0})],vR$);
_.D(vR$,"ytd-factoid-renderer",function(){if(fTU!==void 0)return fTU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-factoid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="factoid style-scope ytd-factoid-renderer" role="text" aria-label="[[data.accessibilityText]]">\n  <yt-formatted-string class="factoid-value style-scope ytd-factoid-renderer" text="[[data.value]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="factoid-label style-scope ytd-factoid-renderer" text="[[data.label]]">\n  </yt-formatted-string>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return fTU=p},{mode:1});var g3=function(){return _.w.apply(this,arguments)||this};
_.A(g3,_.w);g3.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.H([_.Q(),_.x("design:type",Object)],g3.prototype,"data",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],g3.prototype,"ytRendererstamperBehavior",void 0);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],g3);
_.D(g3,"yt-live-chat-channel-activity-reputation-renderer",function(){if(BKv===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-channel-activity-reputation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_channel_activity_reputation_renderer.yt.live.chat.channel.activity.reputation.renderer.css.js--\x3e<div id="factoids" class="style-scope yt-live-chat-channel-activity-reputation-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;x7U===void 0&&(x7U=document.createElement("template"));var q=x7U;l.call(y,q.content.cloneNode(!0),p.content.firstChild);BKv=p}p=BKv;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var XyB;var d7N;var QD=function(){return _.w.apply(this,arguments)||this};
_.A(QD,_.w);QD.prototype.ready=function(){var p=document.querySelector("yt-live-chat-app");p&&p.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Boolean)],QD.prototype,"menuFocused",void 0);_.H([_.Q(),_.x("design:type",Object)],QD.prototype,"data",void 0);_.H([_.V(_.sg.YtLiveChatItemBehavior),_.x("design:type",_.tC)],QD.prototype,"ytLiveChatItemBehavior",void 0);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],QD);
_.D(QD,"yt-live-chat-donation-announcement-renderer",function(){if(d7N===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-donation-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_donation_announcement_renderer.yt.live.chat.donation.announcement.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="content-header" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="author-name" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.authorName)]]</div><div id="text" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.text)]]</div></div><div id="timestamp" class="style-scope yt-live-chat-donation-announcement-renderer">[[timestampString]]</div><yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-formatted-string></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-icon></yt-icon-button></div></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;XyB===void 0&&(XyB=document.createElement("template"));var q=XyB;l.call(y,q.content.cloneNode(!0),p.content.firstChild);d7N=p}p=d7N;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var OGN;var oRU,zaZ=function(){if(oRU!==void 0)return oRU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-empty-feed-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_empty_feed_view_model.yt.live.chat.empty.feed.view.model.css.js--\x3e<yt-image id="image" alt="empty_feed_image" data="[[data.emptyFeedImage]]" height="100" preserve-height="" preserve-width="" width="178" class="style-scope yt-live-chat-empty-feed-view-model">\n</yt-image>\n<yt-attributed-string id="message" data="[[data.message]]" class="style-scope yt-live-chat-empty-feed-view-model"></yt-attributed-string>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;OGN===void 0&&(OGN=document.createElement("template"));var q=OGN;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return oRU=p};var KP=function(){return _.w.apply(this,arguments)||this};
_.A(KP,_.w);_.Jh.Object.defineProperties(KP,{template:{configurable:!0,enumerable:!0,get:function(){return zaZ()}}});
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],KP.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],KP.prototype,"data",void 0);_.H([_.z9({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],KP);_.D(KP,"yt-live-chat-empty-feed-view-model",function(){return zaZ()},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var YBO;var ITU;var w3=function(){return _.w.apply(this,arguments)||this};
_.A(w3,_.w);w3.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"}}}}}};
_.Jh.Object.defineProperties(w3.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var p,y;return{runs:[{text:(p=this.data)==null?void 0:(y=p.channelName)==null?void 0:y.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var p=[],y;if((y=this.data)==null||!y.channelBadges)return p;var l;y=_.c((l=this.data)==null?void 0:l.channelBadges);for(l=y.next();!l.done;l=y.next()){l=_.G(l.value,fmN);var q=void 0,t=void 0;if((q=l)==null?0:(t=q.badgeImage)==null?0:t.sources)q=void 0,t={liveChatAuthorBadgeRenderer:{tooltip:l.tooltip,accessibility:{accessibilityData:{label:(q=_.G(l.rendererContext,_.L5))==null?void 0:q.label}}}},l.badgeImage.sources[0].clientResource?t.liveChatAuthorBadgeRenderer.icon=
{iconType:l.badgeImage.sources[0].clientResource.imageName}:t.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:l.badgeImage.sources},p.push(t)}return p}}});
_.H([_.Q(),_.x("design:type",Object)],w3.prototype,"data",void 0);_.H([_.g("data.channelName"),_.x("design:type",Object),_.x("design:paramtypes",[])],w3.prototype,"channelName",null);_.H([_.g("data.channelBadges"),_.x("design:type",Array),_.x("design:paramtypes",[])],w3.prototype,"channelBadges",null);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],w3.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],w3);
_.D(w3,"yt-live-chat-identity-view-model",function(){if(ITU===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-identity-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_identity_view_model.yt.live.chat.identity.view.model.css.js--\x3e<div id="avatar" class="style-scope yt-live-chat-identity-view-model"></div>\n<div id="channel_info" class="style-scope yt-live-chat-identity-view-model">\n  <yt-live-chat-author-chip id="channel_name" author-badges="[[channelBadges]]" author-name="[[channelName]]" class="style-scope yt-live-chat-identity-view-model">\n  </yt-live-chat-author-chip>\n  <div id="channel_metadata" class="style-scope yt-live-chat-identity-view-model">\n    <yt-attributed-string id="create_time" data="[[data.channelCreateTime]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n    <yt-attributed-string id="subscriber_count" data="[[data.channelSubscriberCount]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n  </div>\n</div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;YBO===void 0&&(YBO=document.createElement("template"));var q=YBO;l.call(y,q.content.cloneNode(!0),p.content.firstChild);ITU=p}p=ITU;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var prB;var yoU;var l8U;var qyQ;var iA=function(){var p=_.w.apply(this,arguments)||this;p.hidden=!1;p.supportsInlineActionButtons=!0;return p};
_.A(iA,_.w);iA.prototype.ready=function(){var p;((p=document.querySelector("yt-live-chat-app"))==null?0:p.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
iA.prototype.dataChanged=function(p){var y=(0,_.Pm)(_.jR(this.hostElement).querySelector("#detail-text"));y.textContent="";(p==null?0:p.detailText)&&y.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(p.detailText))};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],iA.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sg.YtLiveChatItemBehavior),_.x("design:type",_.tC)],iA.prototype,"ytLiveChatItemBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],iA.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q({observer:"dataChanged"}),_.x("design:type",Object)],iA.prototype,"data",void 0);
_.H([_.Q({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.x("design:type",Object)],iA.prototype,"hidden",void 0);_.H([_.k({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],iA);
_.D(iA,"yt-live-chat-legacy-paid-message-renderer",function(){if(qyQ===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-legacy-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_legacy_paid_message_renderer.yt.live.chat.legacy.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-img-shadow>\n  <div id="content" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <div id="content-primary-column" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <div id="author-name" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.authorName)]]</div>\n      <div id="event-text" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.eventText)]]</div>\n      <div id="detail-text" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n    </div>\n    <div id="timestamp" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[timestampString]]</div>\n  </div>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <yt-icon icon="more_vert" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;l8U===void 0&&(l8U=document.createElement("template"));var q=l8U;l.call(y,q.content.cloneNode(!0),p.content.firstChild);qyQ=p}p=qyQ;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var sQr;var tGU;var EiU={},r3=function(){return _.FA.apply(this,arguments)||this};
_.A(r3,_.FA);r3.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
r3.prototype.onLiveChatMembershipItemBehaviorClick=r3.prototype.onLiveChatMembershipItemBehaviorClick;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],r3.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],r3.prototype,"data",void 0);_.H([_.VU("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],r3.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.H([_.Lv()],r3);
EiU.YtLiveChatMembershipItemBehavior=[r3.prototype,_.X.YtRendererBehavior];var Sk=function(){var p=_.w.apply(this,arguments)||this;p.supportsInlineActionButtons=!0;p.hasPrimaryHeaderText=!1;p.showOnlyHeader=!1;p.authorBadges=[];p.modern=_.n("web_button_rework_with_live");p.buttonOverrides={style:"overlay",type:"filled"};return p};
_.A(Sk,_.w);_.J=Sk.prototype;_.J.shouldSupportInlineActionButtons=function(){return!0};
_.J.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.J.ready=function(){var p=document.querySelector("yt-live-chat-app");p&&p.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.J.messageChanged=function(){var p=this.data.message,y=(0,_.Pm)(_.jR(this.hostElement).querySelector("#message"));y.textContent="";p&&y.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(p))};
_.J.computeHasPrimaryHeaderText=function(p){return!(!p||!p.headerPrimaryText)};
_.J.computeShowOnlyHeader=function(p,y){return this.isMessageEmpty(p,y)};
_.J.computeAuthorBadges=function(p){return p.authorBadges||[]};
_.J.isMessageEmpty=function(p,y){return!p||p.empty?!0:!p.message&&!p.inputField&&!y};
_.J.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.J.getInputElement=function(){return _.jR(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.J.inputFocus=function(){var p=this.getInputElement();p&&p.focus()};
_.J.inputInsertEmoji=function(p){var y=this.getInputElement();y&&y.insertEmoji(p)};
_.J.inputMessage=function(){var p=this.getInputElement();return p&&this.data.inputField?(p.completeEmojis(),_.sZ(p.liveChatRichMessageInput)):null};
_.J.onFooterButtonClick=function(){this.data.footerButton&&_.Ub(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.J.shouldSupportWholeItemClick=function(){return!0};
Sk.prototype.isDeletedChanged=Sk.prototype.isDeletedChanged;Sk.prototype.messageChanged=Sk.prototype.messageChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Sk.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sg.YtLiveChatItemBehavior),_.x("design:type",_.tC)],Sk.prototype,"ytLiveChatItemBehavior",void 0);_.H([_.V(EiU.YtLiveChatMembershipItemBehavior),_.x("design:type",Object)],Sk.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Sk.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Sk.prototype,"data",void 0);_.H([_.Q({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.x("design:type",Object)],Sk.prototype,"hasPrimaryHeaderText",void 0);_.H([_.Q({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.x("design:type",Object)],Sk.prototype,"showOnlyHeader",void 0);
_.H([_.Q({computed:"computeAuthorBadges(data)"}),_.x("design:type",Array)],Sk.prototype,"authorBadges",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Sk.prototype,"modern",void 0);_.H([_.gd("data.message"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Sk.prototype,"messageChanged",null);_.H([_.gd("isDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Sk.prototype,"isDeletedChanged",null);
_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],Sk);
_.D(Sk,"yt-live-chat-membership-item-renderer",function(){if(tGU===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-membership-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_membership_item_renderer.yt.live.chat.membership.item.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="header" class="style-scope yt-live-chat-membership-item-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-membership-item-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-membership-item-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-membership-item-renderer">\n        <div id="header-content-inner-column" class="style-scope yt-live-chat-membership-item-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n            <yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" class="style-scope yt-live-chat-membership-item-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="header-primary-text" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerPrimaryText)]]</div>\n        </div>\n        <div id="header-subtext" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerSubtext)]]</div>\n      </div>\n      <div id="timestamp" class="style-scope yt-live-chat-membership-item-renderer">[[timestampString]]</div>\n    </div>\n    <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-icon icon="more_vert" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-membership-item-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-membership-item-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-membership-item-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-membership-item-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-membership-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div id="footer-button" hidden$="[[!data.footerButton]]" on-click="onFooterButtonClick" class="style-scope yt-live-chat-membership-item-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-membership-item-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;sQr===void 0&&(sQr=document.createElement("template"));var q=sQr;l.call(y,q.content.cloneNode(!0),p.content.firstChild);tGU=p}p=tGU;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var JoV;var coU;var F0=function(){return _.w.apply(this,arguments)||this};
_.A(F0,_.w);F0.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],F0.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],F0.prototype,"data",void 0);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],F0);
_.D(F0,"yt-live-chat-mode-change-message-renderer",function(){if(coU===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-mode-change-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_mode_change_message_renderer.yt.live.chat.mode.change.message.renderer.css.js--\x3e<div id="contents" class="style-scope yt-live-chat-mode-change-message-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-icon>\n  <div id="text-container" class="style-scope yt-live-chat-mode-change-message-renderer">\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-mode-change-message-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;JoV===void 0&&(JoV=document.createElement("template"));var q=JoV;l.call(y,q.content.cloneNode(!0),p.content.firstChild);coU=p}p=coU;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var e0v;var h0U;var LP=function(){return _.w.apply(this,arguments)||this};
_.A(LP,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sg.YtLiveChatItemBehavior),_.x("design:type",_.tC)],LP.prototype,"ytLiveChatItemBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],LP.prototype,"data",void 0);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],LP);
_.D(LP,"yt-live-chat-moderation-message-renderer",function(){if(h0U===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-moderation-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_moderation_message_renderer.yt.live.chat.moderation.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-moderation-message-renderer">\n  <span id="timestamp" class="style-scope yt-live-chat-moderation-message-renderer">[[timestampString]]</span>\n  <yt-formatted-string id="message" text="[[data.message]]" class="style-scope yt-live-chat-moderation-message-renderer"></yt-formatted-string>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;e0v===void 0&&(e0v=document.createElement("template"));var q=e0v;l.call(y,q.content.cloneNode(!0),p.content.firstChild);h0U=p}p=h0U;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var CeB;var uQi;var km=function(){var p=_.w.apply(this,arguments)||this;p.modern=_.n("web_button_rework");return p};
_.A(km,_.w);km.prototype.onClick=function(){var p;if((p=this.data)!=null&&p.onClickCommand){var y;_.wW.instance.resolveCommand((y=this.data)==null?void 0:y.onClickCommand)}};
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],km.prototype,"modern",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.lQ),_.x("design:type",Object)],km.prototype,"ytLiveChatReduxBehavior",void 0);_.H([_.V(_.sg.YtLiveChatItemBehavior),_.x("design:type",_.tC)],km.prototype,"ytLiveChatItemBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],km.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],km.prototype,"data",void 0);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],km);
_.D(km,"yt-live-chat-offer-click-count-message-renderer",function(){if(uQi===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-offer-click-count-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_offer_click_count_message_renderer.yt.live.chat.offer.click.count.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n  <div id="icon-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="icon" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-icon icon="yt-icons:trending_up" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="metadata-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="message-title" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-formatted-string>\n    </div>\n    <div id="product-title-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">[[data.productTitle]]</div>\n    <div id="cta-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <a id="cta-endpoint" href$="[[computeHref_(data.onClickCommand)]]" on-click="onClick" data="[[data.onClickCommand]]" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n        [[data.ctaTitle]]\n        <yt-icon class="hover-icon style-scope yt-live-chat-offer-click-count-message-renderer" icon="open_in_new"></yt-icon>\n      </a>\n    </div>\n  </div>\n</div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;CeB===void 0&&(CeB=document.createElement("template"));var q=CeB;l.call(y,q.content.cloneNode(!0),p.content.firstChild);uQi=p}p=uQi;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var R0O;var WDv=function(){return _.w.apply(this,arguments)||this};
_.A(WDv,_.w);_.H([_.Q(),_.x("design:type",Object)],WDv.prototype,"data",void 0);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],WDv);
_.D(WDv,"yt-live-chat-placeholder-item-renderer",function(){if(R0O===void 0){var p=document.createElement("template");_.M(p,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-placeholder-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);R0O=p}p=R0O;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var a8x;var m9N;var U9P=new sK(7),N4=function(){var p=_.w.apply(this,arguments)||this;p.data={};return p};
_.A(N4,_.w);N4.prototype.dataChanged=function(){var p;((p=this.data)==null?0:p.class)&&_.nv(this.hostElement,this.data.class,!0);var y;((y=this.oldData)==null?0:y.class)&&_.nv(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
N4.prototype.computeTimestampString=function(p){return U9P.format(new Date(p/1E3))};
N4.prototype.dataChanged=N4.prototype.dataChanged;_.H([_.Q(),_.x("design:type",Object)],N4.prototype,"data",void 0);_.H([_.Q({computed:"computeTimestampString(data.timestampUsec)"}),_.x("design:type",String)],N4.prototype,"timestampString",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],N4.prototype,"dataChanged",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],N4);
_.D(N4,"yt-live-chat-server-error-message",function(){if(m9N===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-server-error-message--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_server_error_message.yt.live.chat.server.error.message.css.js--\x3e<span id="timestamp" class="style-scope yt-live-chat-server-error-message">[[timestampString]]</span>\n<span id="message" class="style-scope yt-live-chat-server-error-message">[[data.message]]</span>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;a8x===void 0&&(a8x=document.createElement("template"));var q=a8x;l.call(y,q.content.cloneNode(!0),p.content.firstChild);m9N=p}p=m9N;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var $9Q;var jQM;var DJ=function(){var p=_.w.apply(this,arguments)||this;p.defaultToFilledIcon=!1;return p};
_.A(DJ,_.w);DJ.prototype.computeHasPrimaryColorIcon=function(p){return p==="SPARK"||p==="SPONSORSHIP_STAR"};
DJ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sg.YtLiveChatItemBehavior),_.x("design:type",_.tC)],DJ.prototype,"ytLiveChatItemBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],DJ.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],DJ.prototype,"defaultToFilledIcon",void 0);_.H([_.Q(),_.x("design:type",Object)],DJ.prototype,"data",void 0);
_.H([_.Q({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.x("design:type",Boolean)],DJ.prototype,"hasPrimaryColorIcon",void 0);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],DJ);
_.D(DJ,"yt-live-chat-viewer-engagement-message-renderer",function(){if(jQM===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-viewer-engagement-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_viewer_engagement_message_renderer.yt.live.chat.viewer.engagement.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon id="icon" default-to-filled="[[defaultToFilledIcon]]" icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon><div id="content" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><div id="message-container" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-formatted-string id="message" split-lines="" text="[[data.message]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-formatted-string></div><div id="action-button" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></div></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon></yt-icon-button></div></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;$9Q===void 0&&($9Q=document.createElement("template"));var q=$9Q;l.call(y,q.content.cloneNode(!0),p.content.firstChild);jQM=p}p=jQM;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var bMr;var HS=function(){var p=_.w.apply(this,arguments)||this;p.modernUpdate=!1;p.buttonStyle="overlay";p.buttonType="filled";return p};
_.A(HS,_.w);HS.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
HS.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],HS.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],HS.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],HS.prototype,"modernUpdate",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],HS.prototype,"buttonStyle",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],HS.prototype,"buttonType",void 0);
_.H([_.k({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],HS);
_.D(HS,"ytd-ad-hover-text-button-renderer",function(){if(bMr!==void 0)return bMr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-hover-text-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="info-button" data="[[data.button.buttonRenderer]]" hidden="[[!data.button]]" overrides="[[computeButtonOverride(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n</ytd-button-renderer>\n<tp-yt-paper-tooltip id="ad-info-tooltip" for="info-button" hidden="[[!data.hoverText]]" position="[[computeTooltipPosition(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n  [[getSimpleString(data.hoverText)]]\n</tp-yt-paper-tooltip>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return bMr=p},{mode:1});var niU;var TL=function(){var p=_.w.apply(this,arguments)||this;p.buttonOverrides={size:"XS"};p.modern=_.n("web_button_rework");return p};
_.A(TL,_.w);TL.prototype.onHelpTap=function(p){this.data&&this.data.informationDialog&&(_.Ub(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),p.preventDefault(),p.stopPropagation())};
_.H([_.Q(),_.x("design:type",Object)],TL.prototype,"buttonOverrides",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],TL.prototype,"modern",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],TL.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],TL.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],TL);
_.D(TL,"ytd-live-chat-purchased-product-message-renderer",function(){if(niU!==void 0)return niU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-purchased-product-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div id="container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n  <a id="product-container" class="yt-simple-endpoint style-scope ytd-live-chat-purchased-product-message-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" data-offer-version-id$="[[data.debugOfferVersionId]]">\n    <div id="product-image" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <yt-img-shadow class="no-transition style-scope ytd-live-chat-purchased-product-message-renderer" thumbnail="[[data.thumbnail]]"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <div id="purchased-message" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <yt-formatted-string text="[[data.purchasedMessage]]" class="style-scope ytd-live-chat-purchased-product-message-renderer"></yt-formatted-string>\n      </div>\n      <div id="product-title-container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <div id="product-title" show-icon$="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">[[data.productTitle]]\n          <template is="dom-if" if="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n            <yt-icon class="hover-icon style-scope ytd-live-chat-purchased-product-message-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </div>\n    </div>\n  </a>\n  <div id="information-icon" on-tap="onHelpTap" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    <ytd-button-renderer id="info-button" data="[[data.informationButton.buttonRenderer]]" hidden="[[!data.informationButton]]" overrides="[[buttonOverrides]]" role="tooltip" tab-index="1" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return niU=p},{mode:1});var G8i;var Per;var xm=function(){var p=_.w.apply(this,arguments)||this;p.isContainerDeleted=!1;return p};
_.A(xm,_.w);xm.prototype.onContextMenuClick=function(p){this.ytLiveChatItemBehavior.showContextMenu(p)};
xm.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))};
xm.prototype.isContainerDeletedChanged=xm.prototype.isContainerDeletedChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sg.YtLiveChatItemBehavior),_.x("design:type",_.tC)],xm.prototype,"ytLiveChatItemBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],xm.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],xm.prototype,"isContainerDeleted",void 0);
_.H([_.Q(),_.x("design:type",String)],xm.prototype,"deletedStateMessage",void 0);_.H([_.gd("isContainerDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xm.prototype,"isContainerDeletedChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],xm);
_.D(xm,"ytd-sponsorships-live-chat-header-renderer",function(){if(Per!==void 0)return Per;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <div id="header-content-primary-column" hidden$="[[isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="header-content-inner-column" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" single-line="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.primaryText)]]</div>\n        </div>\n        <div id="secondary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.secondaryText)]]</div>\n      </div>\n      <div id="header-content-deleted-state" hidden$="[[!isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="deleted-primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[deletedStateMessage]]</div>\n      </div>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.image]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-img-shadow class="rhs-image style-scope ytd-sponsorships-live-chat-header-renderer" height="104" thumbnail="[[data.image]]" width="104">\n    </yt-img-shadow>\n  </template>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Per=p},{mode:1});var BS=function(){var p=_.w.apply(this,arguments)||this;p.modern=_.n("web_button_rework_with_live");p.buttonOverrides={style:"overlay",type:"filled"};return p};
_.A(BS,_.w);BS.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]]"}}}}}};
BS.prototype.onCtaButtonClick=function(){var p,y=_.G((p=this.data)==null?void 0:p.optInPrompt,_.yv);if(p=this.maybeGetButtonCommand(y)){var l;(l=_.Ll())==null||l.clickCommand(p)}};
BS.prototype.maybeGetButtonCommand=function(p){return!p||!p.command||_.G(p.command,bwv)===void 0&&_.G(p.command,jBZ)===void 0?null:p.command};
BS.prototype.shouldHideOptinPrompt=function(p,y){return!p||y};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],BS.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sg.YtLiveChatItemBehavior),_.x("design:type",_.tC)],BS.prototype,"ytLiveChatItemBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],BS.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],BS.prototype,"modern",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],BS);
_.D(BS,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(G8i!==void 0)return G8i;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-purchase-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-sponsorships-live-chat-header-renderer id="header" data="[[data.header.liveChatSponsorshipsHeaderRenderer]]" deleted-state-message="[[getSimpleString(data.deletedStateMessage)]]" is-container-deleted="[[isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer">\n</ytd-sponsorships-live-chat-header-renderer>\n<div id="opt-in-prompt" on-click="onCtaButtonClick" hidden="[[shouldHideOptinPrompt(data.optInPrompt, isDeleted)]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return G8i=p},{mode:1});var AoU;var fP=function(){return _.w.apply(this,arguments)||this};
_.A(fP,_.w);fP.prototype.onContextMenuClick=function(p){this.ytLiveChatItemBehavior.showContextMenu(p)};
fP.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))};
fP.prototype.isDeletedChanged=fP.prototype.isDeletedChanged;_.H([_.V(_.sg.YtLiveChatItemBehavior),_.x("design:type",_.tC)],fP.prototype,"ytLiveChatItemBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],fP.prototype,"data",void 0);_.H([_.gd("isDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fP.prototype,"isDeletedChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],fP);
_.D(fP,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(AoU!==void 0)return AoU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return AoU=p},{mode:1});var vS=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return p};
_.A(vS,_.w);_.J=vS.prototype;
_.J.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatAutoModMessageRenderer:"yt-live-chat-auto-mod-message-renderer",liveChatPaidMessageRenderer:"yt-live-chat-paid-message-renderer",liveChatLegacyPaidMessageRenderer:"yt-live-chat-legacy-paid-message-renderer",liveChatMembershipItemRenderer:"yt-live-chat-membership-item-renderer",liveChatTextMessageRenderer:"yt-live-chat-text-message-renderer",liveChatPaidStickerRenderer:"yt-live-chat-paid-sticker-renderer",liveChatDonationAnnouncementRenderer:"yt-live-chat-donation-announcement-renderer",
liveChatModeChangeMessageRenderer:"yt-live-chat-mode-change-message-renderer",liveChatModerationMessageRenderer:"yt-live-chat-moderation-message-renderer",liveChatOfferClickCountMessageRenderer:"yt-live-chat-offer-click-count-message-renderer",liveChatPlaceholderItemRenderer:"yt-live-chat-placeholder-item-renderer",liveChatPurchasedProductMessageRenderer:"ytd-live-chat-purchased-product-message-renderer",liveChatSponsorshipsGiftPurchaseAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",
liveChatSponsorshipsGiftRedemptionAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",liveChatViewerEngagementMessageRenderer:"yt-live-chat-viewer-engagement-message-renderer",serverErrorMessage:"yt-live-chat-server-error-message"}}}};
_.J.handleLiveChatAction=function(p){_.G(p,F4M)?this.handleMarkChatItemAsDeletedAction(_.G(p,F4M)):_.G(p,SAV)&&this.handleRemoveChatItemAction(_.G(p,SAV))};
_.J.handleLiveChatActions=function(p){p.forEach(this.handleLiveChatAction,this)};
_.J.handleMarkChatItemAsDeletedAction=function(p){var y=this,l;((l=this.data)==null?0:l.items)&&this.data.items.forEach(function(q,t){var E=Object.keys(q)[0];Object.values(q)[0].id===p.targetItemId&&y.markAsDeleted("data.items",t,E,p.deletedStateMessage,p.showOriginalContentMessage)})};
_.J.handleRemoveChatItemAction=function(p){var y=this,l;((l=this.data)==null?0:l.items)&&this.data.items.forEach(function(q,t){Object.values(q)[0].id===p.targetItemId&&y.splice("data.items",t,1)})};
_.J.markAsDeleted=function(p,y,l,q,t){p=[p,y,l].join(".");this.set(p+".deletedStateMessage",q);this.set(p+".showOriginalContentMessage",t)};
_.H([_.Q(),_.x("design:type",Object)],vS.prototype,"data",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],vS.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],vS.prototype,"ytActionHandlerBehavior",void 0);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],vS);
_.D(vS,"yt-live-chat-item-display-list-renderer",function(){if(yoU===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_list_renderer.yt.live.chat.item.display.list.renderer.css.js--\x3e<div id="items" class="style-scope yt-live-chat-item-display-list-renderer"></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;prB===void 0&&(prB=document.createElement("template"));var q=prB;l.call(y,q.content.cloneNode(!0),p.content.firstChild);yoU=p}p=yoU;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var ZMQ;var MGP,VGi=function(){if(MGP!==void 0)return MGP;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_renderer.yt.live.chat.item.display.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-item-display-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;ZMQ===void 0&&(ZMQ=document.createElement("template"));var q=ZMQ;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return MGP=p};var X0=function(){var p=_.w.apply(this,arguments)||this;p.isHeader=!1;return p};
_.A(X0,_.w);X0.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Jh.Object.defineProperties(X0,{template:{configurable:!0,enumerable:!0,get:function(){return VGi()}}});
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],X0.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],X0.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],X0.prototype,"isHeader",void 0);_.H([_.z9({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],X0);_.D(X0,"yt-live-chat-item-display-renderer",function(){return VGi()},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var giU,QQZ,Syr,ror;
giU={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}};QQZ={home:"eohps",search:"eosps",watch:"eowps"};_.KDV=["watch","search","home"];
_.d3=function(){this.JSC$14171_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14171_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.OY("PRECONSTRUCTION_DELAY",0);this.signals_=_.qB();this.targetPage_=""};
_.d3.prototype.init=function(p,y){p=p===void 0?"":p;y=y===void 0?null:y;if(this.JSC$14171_isInitialized_)this.abort();else if(this.JSC$14171_isInitialized_=!0,p&&_.wrP(this,p),y){var l=_.sX(this.signals_,"pcl")?0:10,q=function(){for(var t=0,E;E=_.KDV[t++];)E!=p&&E!=y&&this.pendingPages_.push(E);_.iMN(this)}.bind(this);
this.signals_.parkOrScheduleJob(q,l,"pcl")}};
_.d3.prototype.abort=function(){this.fragmentJobId_&&(_.TR.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);ror(this)};
_.wrP=function(p,y){p.JSC$14171_isInitialized_&&!p.targetPage_&&(p.targetPage_=y,Syr(p,y),p.isInitialPass_=!1,Syr(p,y),p.signals_.processSignal(QQZ[p.targetPage_]),ror(p),_.iMN(p))};
_.iMN=function(p){p.pendingPages_.length&&!p.pagePreparerJobId_&&(p.pagePreparerJobId_=_.rJ(_.TR,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.wrP(this,this.pendingPages_.shift())}.bind(p),p.DEFAULT_DELAY_))};
Syr=function(p,y){if(y=giU[y])for(var l in y){var q=!1,t=l;l.charAt(0)=="~"&&(q=!0,t=l.substring(1));var E=y[l];E=typeof E=="object"?E:{count:E};y[l]=E;E.componentName=t;E.count>0&&(p.isInitialPass_?q||p.isSeenDuringInitialPass_[t]||(p.JSC$14171_queue_.push({componentName:t,count:1,signals:E.signals}),p.isSeenDuringInitialPass_[t]=!0,E.count--):p.JSC$14171_queue_.push(E))}};
ror=function(p){p.JSC$14171_queue_.length=0;p.targetPage_="";p.isInitialPass_=!0;p.signals_.processSignal("eop")};
_.d3.getInstance=function(){return _.m8(_.d3)};var FDM=function(){this.signals=_.qB();this.init()};
FDM.prototype.startPreconstruction=function(){_.d3.getInstance().init(_.o4("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
FDM.prototype.init=function(){LDU(this);window.Polymer&&XsO&&B3_();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var p=_.l_.ytcsi;if(p&&p.gt&&(p=p.gt())&&p.tick&&(p.tick.aft>0||p.tick.pbs>0)&&(_.o4("IS_HOMEPAGE_COLD")||_.o4("IS_RESULTS_PAGE_COLD")||_.o4("IS_WATCH_PAGE_COLD"))){k8O(this);break a}yxo(D6_,this.onNotifications,this)}};
var LDU=function(p){var y=function(){p.signals.processSignal("dl")};
document.readyState==="complete"?(_.ph(Error("th"),"WARNING"),y()):_.Kco(window,"load",y)};
FDM.prototype.onNotifications=function(p){p.timer||(_.o4("IS_HOMEPAGE_COLD")||_.o4("IS_RESULTS_PAGE_COLD")||_.o4("IS_WATCH_PAGE_COLD"))&&k8O(this)};
var k8O=function(p){p.signals.parkOrScheduleJob(function(){p.signals.processSignal("eocs")},10,"eor")};
new FDM;var Og,N8U=function(){return _.FA.apply(this,arguments)||this};
_.A(N8U,_.FA);_.J=N8U.prototype;_.J.enableActiveViewMeasurement=function(p){if(this.isActiveViewEnabled(p)){var y=this.getUrlPrefixesFromCommand(p.viewableCommands);p=this.getUrlPrefixesFromCommand(p.endOfSessionCommands);if(!Og){var l=_.UC("custom_active_view_tos_timeout_ms");Og=l>0&&l!==36E5?new qRm(this.getVersion(),l):new qRm(this.getVersion())}tut(Og,this.hostElement);E38(Og,this.hostElement,y,p)}};
_.J.stopActiveViewMeasurement=function(){Og&&tut(Og,this.hostElement)};
_.J.isActiveViewEnabled=function(p){return!!p&&(this.hasAtLeastOneUrl(p.viewableCommands)||this.hasAtLeastOneUrl(p.endOfSessionCommands))};
_.J.hasAtLeastOneUrl=function(p){return!!p&&p.length>0&&p[0].loggingUrls!=null&&p[0].loggingUrls.length>0};
_.J.getVersion=function(){var p=_.OY("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(p==null?void 0:p.length)===2?p[1]:null};
_.J.getUrlPrefixesFromCommand=function(p){if(!p)return[];var y=[];p=_.c(p);for(var l=p.next();!l.done;l=p.next())if(l=l.value,l.loggingUrls){l=_.c(l.loggingUrls);for(var q=l.next();!q.done;q=l.next())q=q.value,q.baseUrl&&y.push(q.baseUrl)}return y};
_.H([_.Lv()],N8U);var oP=[N8U.prototype];var D9$=function(){return _.FA.apply(this,arguments)||this};
_.A(D9$,_.FA);_.Jh.Object.defineProperties(D9$.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.n("enable_entity_store_from_dependency_injection")?_.hl():_.ei()}}});
_.H([_.Lv()],D9$);_.zL=[OX.prototype,D9$.prototype];var HMU=["ytd-rich-shelf-renderer"],Ym=function(){var p=_.FA.apply(this,arguments)||this;p._noAccessors=!0;p.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";p.followUpDialogPromise=null;p.followUpDialogPromiseResolve=null;p.followUpDialogPromiseReject=null;return p};
_.A(Ym,_.FA);_.J=Ym.prototype;_.J.dismissibleItemIsDismissedChanged_=function(p){_.n("kevlar_fluid_dismiss")&&(p?_.Ub(this.hostElement,"yt-dismissible-item-dismissed"):_.Ub(this.hostElement,"yt-dismissible-item-undismissed"))};
_.J.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.J.dismissibleItemReset_=function(){var p=this;this.isDismissed&&(this.isHideEnclosingAction=this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0);this.followUpDialogPromiseReject&&(this.followUpDialogPromise.thenCatch(function(){}),this.followUpDialogPromiseReject());
this.followUpDialogPromise=new _.Ps(function(y,l){p.followUpDialogPromiseResolve=y;p.followUpDialogPromiseReject=l});
_.Ub(this.hostElement,"yt-enable-lockup-interaction")};
_.J.dismissibleItemOnYtServiceRequestSent_=function(p,y){y.actions&&this.dismissibleItemProcessActions(y.actions,p)};
_.J.dismissibleItemOnRequestSent=function(p){if(_.n("web_button_rework"))for(var y=_.c(p.detail),l=y.next();!l.done;l=y.next()){var q=void 0;(l=(q=_.G(l.value,_.Mn))==null?void 0:q.actions)&&this.dismissibleItemProcessActions(l,p)}};
_.J.dismissibleItemOnCommandSent=function(p,y){y&&this.dismissibleItemProcessActions(y,p)};
_.J.setAndGetDismissedContentId=function(p){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+p};
_.J.replayDismissAction=function(p){this.dismissibleItemProcessActions([p])};
_.J.dismissibleItemProcessActions=function(p,y){for(var l=0;l<p.length;l++){var q=p[l],t=void 0;((t=_.G(q,_.AO))==null?0:t.commands)&&this.dismissibleItemProcessActions(_.G(q,_.AO).commands,y);if(_.G(q,_.Nv)){if(t=_.G(q,_.Nv),!t.replaceParentSection||HMU.includes(this.hostElement.nodeName.toLowerCase()))_.n("web_see_fewer_shorts_reactive_dismissal")&&t.groupDismissal&&rom(this,t.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(t),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Fp("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:q})),q=void 0,(q=y)==null||q.stopPropagation()}else if(_.G(q,LC$))this.dismissibleItemHandleHideEnclosingAction_(),q=void 0,(q=y)==null||q.stopPropagation();else if(_.G(q,t2i))_.n("web_see_fewer_shorts_reactive_dismissal")&&(q=_.G(q,t2i),t=void 0,((t=q)==null?0:t.targetGroupId)&&rom(this,{targetGroupId:q.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Fp("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),q=void 0,(q=y)==null||q.stopPropagation();else if(_.G(q,_.Mn))(q=_.G(q,_.Mn).actions)&&_.Gf(this.hostElement,q,this.hostElement),q=void 0,(q=y)==null||q.stopPropagation();else{var E=t=void 0;((t=_.G(q,_.zX))==null?void 0:t.signal)!=="TELL_US_WHY"||((E=_.G(q,_.zX))==null?0:E.targetId)&&_.n("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),q=void 0,(q=y)==null||q.stopPropagation())}}};
_.J.dismissibleItemOnYtServiceRequestCompleted_=function(p,y){var l=this.get("feedbackResponses.0.followUpDialog",y.data);l?this.followUpDialogPromiseResolve(l):y.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(y.actions,p)};
_.J.dismissibleItemHandleReplaceEnclosingAction_=function(p){this.dismissedRenderer=p.item;this.isDismissed=!0;var y=null;(y=_.jR(this.hostElement).querySelector("#dismissed"))&&_.th(this,function(){_.EL(y)});
_.Ub(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.J.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.J.dismissibleItemHandleUndoFeedbackAction_=function(){_.Ub(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.J.dismissibleItemHandleTellUsWhySignalAction_=function(){var p=this;this.followUpDialogPromise.then(function(y){p.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:y}})})};
Ym.prototype.dismissibleItemOnYtServiceRequestCompleted_=Ym.prototype.dismissibleItemOnYtServiceRequestCompleted_;Ym.prototype.dismissibleItemOnCommandSent=Ym.prototype.dismissibleItemOnCommandSent;Ym.prototype.dismissibleItemOnRequestSent=Ym.prototype.dismissibleItemOnRequestSent;Ym.prototype.dismissibleItemOnYtServiceRequestSent_=Ym.prototype.dismissibleItemOnYtServiceRequestSent_;Ym.prototype.dismissibleItemDataChanged_=Ym.prototype.dismissibleItemDataChanged_;
Ym.prototype.dismissibleItemIsDismissedChanged_=Ym.prototype.dismissibleItemIsDismissedChanged_;_.H([_.V(_.RP),_.x("design:type",Object)],Ym.prototype,"ytdOpenPopupBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Ym.prototype,"ytdReduxBehavior",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ym.prototype,"isDismissed",void 0);_.H([_.Q(),_.x("design:type",Object)],Ym.prototype,"dismissedRenderer",void 0);
_.H([_.gd("isDismissed"),_.x("design:type",Function),_.x("design:paramtypes",[Boolean]),_.x("design:returntype")],Ym.prototype,"dismissibleItemIsDismissedChanged_",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ym.prototype,"dismissibleItemDataChanged_",null);
_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],Ym.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.H([_.VU("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ym.prototype,"dismissibleItemOnRequestSent",null);
_.H([_.VU("yt-dismissible-item-action"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Array]),_.x("design:returntype")],Ym.prototype,"dismissibleItemOnCommandSent",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],Ym.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.H([_.Lv()],Ym);_.IP=[_.RP,_.zL,Ym.prototype];var p9=function(){var p=_.FA.apply(this,arguments)||this;p.disableGridStateAware=!1;p.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};p.currentGridClass="";return p};
_.A(p9,_.FA);p9.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.th(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var p=this.gridStateAwareGetElement();_.nv(p,"grid",!0)}};
p9.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
p9.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.jR(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
p9.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var p="grid-disabled";else{p=_.VlB.getInstance();var y=this.get("pageSubtype");p=y&&APx.includes(y)?"grid-disabled":p.currentSnapState_?p.currentSnapState_.className:null}(y=this.gridStateAwareGetElement())&&p!==this.currentGridClass&&(p&&_.nv(y,p,!0),this.currentGridClass&&_.nv(y,this.currentGridClass,!1),this.currentGridClass=p)};
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],p9.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",String)],p9.prototype,"gridStateAwareSizingElementSelector",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],p9.prototype,"disableGridStateAware",void 0);_.H([_.Lv()],p9);_.yd=[p9.prototype,_.no.YtActionHandlerBehavior];_.l1=new _.WE("GUIDE_TOKEN");var sW;_.qI={};sW=function(){var p=_.FA.apply(this,arguments)||this;p.guideStateActionMap={"ytd-update-guide-state-action":"handleGuideStateAction","ytd-update-mini-guide-state-action":"handleMiniGuideStateAction","ytd-update-guide-opened-action":"handleGuideOpenedAction","ytd-update-active-endpoint-action":"handleActiveEndpointAction"};return p};
_.A(sW,_.FA);_.J=sW.prototype;_.J.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.J.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var p=_.WC().resolve(_.RK(_.l1));p&&(this.guidePersistentAndVisible=p.getGuidePersistentAndVisible(),this.activeEndpoint=p.getActiveEndpoint(),this.guideOpened=p.getGuideOpened(),this.miniGuideVisible=p.getMiniGuideVisible())};
_.J.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.J.handleGuideStateAction=function(p){this.guidePersistentAndVisible=p};
_.J.handleMiniGuideStateAction=function(p){this.miniGuideVisible=p};
_.J.handleGuideOpenedAction=function(p){this.guideOpened=p};
_.J.handleActiveEndpointAction=function(p){this.activeEndpoint=p};
sW.prototype.onActiveEndpointChange=sW.prototype.onActiveEndpointChange;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],sW.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],sW.prototype,"guidePersistentAndVisible",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],sW.prototype,"miniGuideVisible",void 0);_.H([_.Q(),_.x("design:type",Object)],sW.prototype,"activeEndpoint",void 0);
_.H([_.gd("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sW.prototype,"onActiveEndpointChange",null);_.H([_.Q(),_.x("design:type",Boolean)],sW.prototype,"guideOpened",void 0);_.H([_.Lv()],sW);_.qI.YtdGuideStateAwareBehavior=[];_.qI.YtdGuideStateAwareBehavior.push(sW.prototype,_.no.YtActionHandlerBehavior);var T8i=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],tF=function(){var p=_.FA.apply(this,arguments)||this;p.hoverJobId=0;p.JSC$14202_touched=!1;return p};
_.A(tF,_.FA);_.J=tF.prototype;_.J.created=function(){this.useExpandableTooltip=!T8i.includes(this.is)};
_.J.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.J.detached=function(){this.useExpandableTooltip=!1};
_.J.lockupOnDown=function(p){this.interactionElement&&!_.WN(_.Jx(p),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.J.lockupOnUp=function(p){this.interactionElement&&!_.WN(_.Jx(p),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.J.onTouchStart=function(){this.JSC$14202_touched=!0};
_.J.lockupOnMouseEnter=function(){var p=this,y=_.UC("kevlar_lockup_hover_delay",-1);this.JSC$14202_touched&&y>=0?(_.TR.cancelJob(this.hoverJobId),this.hoverJobId=_.TR.addJob(function(){p.lockupIsHovered=!0},8,y),this.JSC$14202_touched=!1):this.lockupIsHovered=!0};
_.J.lockupOnMouseLeave=function(){this.hoverJobId&&(_.TR.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.J.lockupOnPopupClosed=function(p,y){var l;((l=y.popupRenderer)==null?void 0:l.is)==="ytd-menu-popup-renderer"&&(p=y.popupRenderer.veData,y=_.B2(),p&&y&&_.st(y,[p]))};
_.J.lockupOnLockupRequested=function(p){var y=p.detail.videoIds[0],l;p.detail&&y===((l=this.data)==null?void 0:l.videoId)&&(p.detail.returnValue=[this.data])};
_.J.lockupOnYtServiceRequestSent=function(p,y){if(p=y.actions)for(var l=0;l<p.length;l++){var q=p[l];if(q.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&y.ajaxPromise){var t=void 0,E=(t=_.G(y.endpoint,_.YB))==null?void 0:t.playlistId;t=void 0;q=(t=q.removedVideoId)!=null?t:"";okx(_.EX(),q,E)}else q.action==="ACTION_REMOVE_VIDEO"&&y.ajaxPromise&&(E=void 0,q=(E=q.setVideoId)!=null?E:"",_.zjV(_.EX(),q))}};
_.J.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.J.lockupOnLockupEnabled=function(){if(!this.$){var p=_.WC().resolve(_.mm).getCurrentPage(),y=this.getParentRenderer?this.getParentRenderer():void 0;_.vs(new _.SM("component not ready",this.is,this.isAttached,p==null?void 0:p.is,y==null?void 0:y.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
tF.prototype.lockupOnLockupEnabled=tF.prototype.lockupOnLockupEnabled;tF.prototype.lockupOnLockupDisabled=tF.prototype.lockupOnLockupDisabled;tF.prototype.lockupOnYtServiceRequestSent=tF.prototype.lockupOnYtServiceRequestSent;tF.prototype.lockupOnLockupRequested=tF.prototype.lockupOnLockupRequested;tF.prototype.lockupOnPopupClosed=tF.prototype.lockupOnPopupClosed;tF.prototype.lockupOnMouseLeave=tF.prototype.lockupOnMouseLeave;tF.prototype.lockupOnMouseEnter=tF.prototype.lockupOnMouseEnter;
tF.prototype.onTouchStart=tF.prototype.onTouchStart;tF.prototype.lockupOnUp=tF.prototype.lockupOnUp;tF.prototype.lockupOnDown=tF.prototype.lockupOnDown;_.H([_.Q(),_.x("design:type",Object)],tF.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Boolean)],tF.prototype,"lockupIsHovered",void 0);_.H([_.Q(),_.x("design:type",Boolean)],tF.prototype,"lockupTouchTriggered",void 0);_.H([_.Q(),_.x("design:type",Boolean)],tF.prototype,"useExpandableTooltip",void 0);
_.H([_.rd("#interaction"),_.x("design:type",Object)],tF.prototype,"interactionElement",void 0);_.H([_.VU("down"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],tF.prototype,"lockupOnDown",null);_.H([_.VU("up"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],tF.prototype,"lockupOnUp",null);
_.H([_.VU("touchstart"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tF.prototype,"onTouchStart",null);_.H([_.VU("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tF.prototype,"lockupOnMouseEnter",null);_.H([_.VU("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tF.prototype,"lockupOnMouseLeave",null);
_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],tF.prototype,"lockupOnPopupClosed",null);_.H([_.VU("yt-lockup-requested"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],tF.prototype,"lockupOnLockupRequested",null);
_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],tF.prototype,"lockupOnYtServiceRequestSent",null);_.H([_.VU("yt-disable-lockup-interaction"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tF.prototype,"lockupOnLockupDisabled",null);
_.H([_.VU("yt-enable-lockup-interaction"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tF.prototype,"lockupOnLockupEnabled",null);_.H([_.Lv()],tF);_.EW=[tF.prototype];_.x9Q={YtdReduxBehavior:[]};_.x9Q.YtdReduxBehavior.push.apply(_.x9Q.YtdReduxBehavior,_.zL);var JF=function(){var p=_.FA.apply(this,arguments)||this;p._noAccessors=!0;p.disableNowPlaying=!1;p.disableTooltips=!1;p.useHoveredProperty=!1;p.hovered=!1;p.isThumbnailHovered_=!1;p.addBackground=_.n("kevlar_thumbnail_bg");p.nowPlaying=!1;p.disableRounding=!1;p.size="small";return p};
_.A(JF,_.FA);_.J=JF.prototype;_.J.computeThumbnailOverlaySidePanelWidth_=function(p,y){return p-y};
_.J.computeSize=function(p,y){if(!this.disableRounding){if(!p&&!y)return"small";p=Math.max(p||0,y||0);return p>=256?"large":p>=96?"medium":"small"}};
_.J.computeFinalHoveredState_=function(p,y,l){return this.nowPlaying?!1:_.n("kevlar_thumbnail_fluid")&&p?y:l};
_.J.computeHoverOverlays_=function(p,y){return p&&y?y:void 0};
_.J.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.J.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.J.checkMiniplayer_=function(){var p;if(((p=this.data)==null?0:p.playlistSetVideoId)&&_.n("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{p=_.Sy();var y=p.currentEndpoint;!this.disableNowPlaying&&y&&_.G(y,_.Eb)&&this.data?(y=_.G(y,_.Eb),this.nowPlaying=this.data.playlistId?y.playlistId===this.data.playlistId:y.videoId===this.data.videoId,this.isVideoPlaying=p==null?void 0:p.isVideoPlaying):this.nowPlaying=!1}};
JF.prototype.checkMiniplayer_=JF.prototype.checkMiniplayer_;JF.prototype.onMouseLeave_=JF.prototype.onMouseLeave_;JF.prototype.onMouseEnter_=JF.prototype.onMouseEnter_;JF.prototype.computeHoverOverlays_=JF.prototype.computeHoverOverlays_;JF.prototype.computeFinalHoveredState_=JF.prototype.computeFinalHoveredState_;JF.prototype.computeSize=JF.prototype.computeSize;JF.prototype.computeThumbnailOverlaySidePanelWidth_=JF.prototype.computeThumbnailOverlaySidePanelWidth_;
_.H([_.V(_.zL),_.x("design:type",Object)],JF.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],JF.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Number)],JF.prototype,"height",void 0);_.H([_.Q(),_.x("design:type",Boolean)],JF.prototype,"bottomSidePanel",void 0);_.H([_.Q(),_.x("design:type",Number)],JF.prototype,"width",void 0);_.H([_.Q(),_.x("design:type",Object)],JF.prototype,"disableNowPlaying",void 0);
_.H([_.Q({selector:_.vV}),_.x("design:type",Boolean)],JF.prototype,"miniplayerIsActive",void 0);_.H([_.Q(),_.x("design:type",Object)],JF.prototype,"disableTooltips",void 0);_.H([_.Q(),_.x("design:type",Object)],JF.prototype,"useHoveredProperty",void 0);_.H([_.Q(),_.x("design:type",Object)],JF.prototype,"hovered",void 0);_.H([_.Q(),_.x("design:type",Object)],JF.prototype,"isThumbnailHovered_",void 0);
_.H([_.Q({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.x("design:type",Boolean)],JF.prototype,"finalHoveredState_",void 0);_.H([_.Q({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.x("design:type",Number)],JF.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],JF.prototype,"addBackground",void 0);
_.H([_.Q({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.x("design:type",Object)],JF.prototype,"hoverOverlays_",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],JF.prototype,"nowPlaying",void 0);_.H([_.Q(),_.x("design:type",Boolean)],JF.prototype,"isVideoPlaying",void 0);_.H([_.Q(),_.x("design:type",Object)],JF.prototype,"disableRounding",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.x("design:type",Object)],JF.prototype,"size",void 0);_.H([_.VU("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JF.prototype,"onMouseEnter_",null);_.H([_.VU("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JF.prototype,"onMouseLeave_",null);
_.H([_.gd("data","disableNowPlaying","miniplayerIsActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JF.prototype,"checkMiniplayer_",null);_.H([_.Lv()],JF);var B8O=[JF.prototype];_.c8={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(p,y){return p+":"+_.qO(y)},
getPlayerListener_:function(p,y,l){p=this.getPlayerListenerKey_(p,y);y=this.playerListeners_.get(p);l&&this.playerListeners_.delete(p);return y},
savePlayerListener_:function(p,y){var l=y.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(p,y),l);return l},
listenToPlayerEvent:function(p,y,l){l=this.savePlayerListener_(y,l);p.addEventListener(y,l)},
listenToPlayerEvents:function(p,y){y.forEach(function(l,q){this.listenToPlayerEvent(p,q,l)}.bind(this))},
unlistenFromPlayerEvent:function(p,y,l){l=this.getPlayerListener_(y,l,!0);p.removeEventListener(y,l)},
unlistenFromPlayerEvents:function(p,y){y.forEach(function(l,q){this.unlistenFromPlayerEvent(p,q,l)}.bind(this))}}};
_.eE=function(){};_.f8v=new _.WE("PLAYER_API_TOKEN");var HM8=!1,f8g,x9u=!1,Xrg;var nX=function(p,y,l,q,t){_.Sr.call(this);var E=this;this.playerId=y;this.webPlayerContextConfig=q;this.wT2=t;this.kIc=!1;this.api={};this.q1h=this.kfk=null;this.ziZ=new _.V$;this.n3={};this.ysu=this.teP=this.elementId=this.z6e=this.config=null;this.pJ7=!1;this.dM=this.nDZ=null;this.yOP={};this.w0Z=["onReady"];this.lastError=null;this.zyf=NaN;this.dwX={};this.uZ7=0;this.wK=this.targetElement=p;_.P9(this,this.ziZ);vir(this);l?this.uZ7=setTimeout(function(){E.loadNewVideoConfig(l)},0):q&&(Xrv(this),
d9U(this))};
_.A(nX,_.Sr);nX.prototype.getId=function(){return this.playerId};
nX.prototype.loadNewVideoConfig=function(p){if(!this.isDisposed()){this.uZ7&&(clearTimeout(this.uZ7),this.uZ7=0);var y=p||{};y instanceof JCi||(y=new JCi(y));this.config=y;this.setConfig(p);d9U(this);this.isReady()&&OMQ(this)}};
var Xrv=function(p){var y;p.webPlayerContextConfig?y=p.webPlayerContextConfig.rootElementId:y=p.config.attrs.id;p.elementId=y||p.elementId;p.elementId==="video-player"&&(p.elementId=p.playerId,p.webPlayerContextConfig?p.webPlayerContextConfig.rootElementId=p.playerId:p.config.attrs.id=p.playerId);var l;((l=p.wK)==null?void 0:l.id)===p.elementId&&(p.elementId+="-player",p.webPlayerContextConfig?p.webPlayerContextConfig.rootElementId=p.elementId:p.config.attrs.id=p.elementId)};
nX.prototype.setConfig=function(p){this.z6e=p;this.config=oiN(p);Xrv(this);if(!this.teP){var y;this.teP=z0O(this,((y=this.config.args)==null?void 0:y.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var l;if((l=this.config)==null?0:l.attrs)p=this.config.attrs,(y=p.width)&&this.wK&&(this.wK.style.width=YC(Number(y)||y,!0)),(p=p.height)&&this.wK&&(this.wK.style.height=YC(Number(p)||p,!0))};
var OMQ=function(p){if(p.config&&p.config.loaded!==!0)if(p.config.loaded=!0,!p.config.args||p.config.args.autoplay!=="0"&&p.config.args.autoplay!==0&&p.config.args.autoplay!==!1){var y;p.api.loadVideoByPlayerVars((y=p.config.args)!=null?y:null)}else p.api.cueVideoByPlayerVars(p.config.args)},I8Q=function(p){var y=!0,l=p.getPlayerElement();
l&&p.config&&(y=l.dataset.version===YyO(p));return y&&!!_.I4("yt.player.Application.create")},d9U=function(p){if(!p.isDisposed()&&!p.pJ7){var y=I8Q(p);
if(y&&(p.getPlayerElement()?"html5":null)==="html5")p.ysu="html5",p.isReady()||pOO(p);else if(yaQ(p),p.ysu="html5",y&&p.dM&&p.targetElement)p.targetElement.appendChild(p.dM),pOO(p);else{p.config&&(p.config.loaded=!0);var l=!1;p.nDZ=function(){l=!0;var q=lxQ(p,"player_bootstrap_method")?_.I4("yt.player.Application.createAlternate")||_.I4("yt.player.Application.create"):_.I4("yt.player.Application.create");var t=p.config?oiN(p.config):void 0;q&&q(p.targetElement,t,p.webPlayerContextConfig,p.wT2);pOO(p)};
p.pJ7=!0;y?p.nDZ():(_.zc(YyO(p),p.nDZ),(y=qJx(p))&&EdR(y||""),soM(p)&&!l&&_.e0("yt.player.Application.create",null))}}};
nX.prototype.getPlayerElement=function(){var p=_.bj(document,this.elementId);!p&&this.wK&&this.wK.querySelector&&(p=this.wK.querySelector("#"+this.elementId));return p};
var pOO=function(p){if(!p.isDisposed()){var y=p.getPlayerElement(),l=!1;y&&y.getApiInterface&&y.getApiInterface()&&(l=!0);if(l){p.pJ7=!1;if(!lxQ(p,"html5_remove_not_servable_check_killswitch")){var q;if((y==null?0:y.isNotServable)&&p.config&&(y==null?0:y.isNotServable((q=p.config.args)==null?void 0:q.video_id)))return}tQZ(p)}else p.zyf=setTimeout(function(){pOO(p)},50)}},tQZ=function(p){vir(p);
p.kIc=!0;var y=p.getPlayerElement();if(y){p.kfk=ErZ(p,y,"addEventListener");p.q1h=ErZ(p,y,"removeEventListener");var l=y.getApiInterface();l=l.concat(y.getInternalApiInterface());for(var q=p.api,t=0;t<l.length;t++){var E=l[t];q[E]||(q[E]=ErZ(p,y,E))}}for(var e in p.n3)p.n3.hasOwnProperty(e)&&p.kfk&&p.kfk(e,p.n3[e]);OMQ(p);p.teP&&p.teP(p.api);p.ziZ.publish("onReady",p.api)},ErZ=function(p,y,l){var q=y[l];
return function(){var t=_.oX.apply(0,arguments);try{return p.lastError=null,q.apply(y,t)}catch(E){if(l!=="sendAbandonmentPing")throw E.params=l,p.lastError=E,t=new _.SM("PlayerProxy error in method call",{error:E,method:l,playerId:p.playerId}),t.level="WARNING",t;}}},vir=function(p){p.kIc=!1;
if(p.q1h)for(var y in p.n3)p.n3.hasOwnProperty(y)&&p.q1h(y,p.n3[y]);for(var l in p.dwX)p.dwX.hasOwnProperty(l)&&clearTimeout(Number(l));p.dwX={};p.kfk=null;p.q1h=null;y=p.api;for(var q in y)y.hasOwnProperty(q)&&(y[q]=null);y.addEventListener=function(t,E){p.addEventListener(t,E)};
y.removeEventListener=function(t,E){p.removeEventListener(t,E)};
y.destroy=function(){p.dispose()};
y.getLastError=function(){return p.getLastError()};
y.getPlayerType=function(){return p.getPlayerType()};
y.getCurrentVideoConfig=function(){return p.z6e};
y.loadNewVideoConfig=function(t){p.loadNewVideoConfig(t)};
y.isReady=function(){return p.isReady()}};
nX.prototype.isReady=function(){return this.kIc};
nX.prototype.addEventListener=function(p,y){var l=this;this.isDisposed();var q=z0O(this,y);q&&(_.Tl(this.w0Z,p)||this.n3[p]||(y=JaZ(this,p),this.kfk&&this.kfk(p,y)),this.ziZ.subscribe(p,q),p==="onReady"&&this.isReady()&&setTimeout(function(){q(l.api)},0))};
nX.prototype.removeEventListener=function(p,y){this.isDisposed()||(y=z0O(this,y))&&this.ziZ.unsubscribe(p,y)};
var z0O=function(p,y){var l=y;if(typeof y==="string"){if(p.yOP[y])return p.yOP[y];l=function(){var q=_.oX.apply(0,arguments),t=_.I4(y);if(t)try{t.apply(_.l_,q)}catch(E){throw q=new _.SM("PlayerProxy error when executing callback",{error:E}),q.level="ERROR",q;}};
p.yOP[y]=l}return l?l:null},JaZ=function(p,y){var l=function(q){var t=function(){p.isDisposed();
if(!p.isDisposed())try{p.ziZ.publish(y,q!=null?q:void 0)}catch(C){var e=new _.SM("PlayerProxy error when creating global callback",{error:C.message,event:y,playerId:p.playerId,data:q,originalStack:C.stack,componentStack:C.componentStack});e.level="WARNING";throw e;}};
if(lxQ(p,"web_player_publish_events_immediately"))t();else{var E=setTimeout(function(){t();_.Ts.remove(p.dwX,String(E))},0);
_.Ts.add(p.dwX,String(E),!0)}};
return p.n3[y]=l};
nX.prototype.getPlayerType=function(){return this.ysu||(this.getPlayerElement()?"html5":null)};
nX.prototype.getLastError=function(){return this.lastError};
var yaQ=function(p){p.cancel();vir(p);p.ysu=null;p.config&&(p.config.loaded=!1);var y=p.getPlayerElement();y&&(I8Q(p)||!soM(p)?p.dM=y:(y&&y.destroy&&y.destroy(),p.dM=null));p.targetElement&&_.fj(p.targetElement)};
nX.prototype.cancel=function(){this.nDZ&&_.r6c(YyO(this),this.nDZ);clearTimeout(this.zyf);this.pJ7=!1};
nX.prototype.disposeInternal=function(){yaQ(this);if(this.dM&&this.config&&this.dM.destroy)try{this.dM.destroy()}catch(y){var p=new _.SM("PlayerProxy error during disposal",{error:y});p.level="ERROR";throw p;}this.yOP=null;for(p in this.n3)this.n3.hasOwnProperty(p)&&delete this.n3[p];this.z6e=this.config=this.api=null;delete this.targetElement;delete this.wK;_.Sr.prototype.disposeInternal.call(this)};
var soM=function(p){var y,l;p=(y=p.config)==null?void 0:(l=y.args)==null?void 0:l.fflags;return!!p&&p.indexOf("player_destroy_old_version=true")!==-1},YyO=function(p){return p.webPlayerContextConfig?p.webPlayerContextConfig.jsUrl:(p=p.config.assets)?p.js:""},qJx=function(p){return p.webPlayerContextConfig?p.webPlayerContextConfig.cssUrl:(p=p.config.assets)?p.css:""},lxQ=function(p,y){if(p.webPlayerContextConfig)var l=p.webPlayerContextConfig.serializedExperimentFlags;
else{var q;if((q=p.config)==null?0:q.args)l=p.config.args.fflags}return(l||"").split("&").includes(y+"=true")},oiN=function(p){for(var y={},l=_.c(Object.keys(p)),q=l.next();!q.done;q=l.next()){q=q.value;
var t=p[q];y[q]=typeof t==="object"?_.Ts.clone(t):t}return y};var Yya={},z0a="player_uid_"+(Math.random()*1E9>>>0);var hF=function(p,y,l,q,t,E){y=y===void 0?document.createElement("div"):y;this.webPlayerContextConfig=p;this.container=y;this.commandResolver=l;this.apiResolver=yau();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.AB;q||E?caU(this):epU(this);this.pendingPlayerResponse=q;this.pendingWatchNextResponse=t;this.pendingPlayerVars=E;hpP(this)};
hF.prototype.loadVideoWithPlayerResponse=function(p,y,l){this.loadVideo(p,y,l)};
hF.prototype.loadVideoWithPlayerVars=function(p){return this.loadVideo(void 0,void 0,p)};
hF.prototype.destroy=function(p){if(p=_.bj(document,p))p=z0a+"_"+_.qO(p),(p=Yya[p])&&p.dispose()};
var u1r=function(p,y){var l;_.h(function(q){if(q.nextAddress==1)return p.pendingWatchNextResponse=y,p.synchronousApi?(l=p.synchronousApi,q.jumpTo(2)):q.yield(p.api,3);q.nextAddress!=2&&(l=q.yieldResult);Cqi(p,l);p.pendingWatchNextResponse&&(l.updateVideoData({raw_watch_next_response:p.pendingWatchNextResponse}),p.pendingWatchNextResponse=void 0);_.rR(q)})},Cqi=function(p,y){var l;
if(!(y==null?0:(l=y.isReady)==null?0:l.call(y))){var q;_.vs(new _.SM("playerApi is falsey",{synchronousApi:p.synchronousApi,apiResolved:p.apiResolver.resolved,playerApiUndefined:y===void 0,playerApiNull:y===null,playerApiReady:(y==null?void 0:(q=y.isReady)==null?void 0:q.call(y))===!0,playerApiMethods:y?Object.keys(y):[]}))}},RpB=function(p,y){if(typeof p[y]==="function")return p[y]()},WUU=function(p){var y=window,l,q=(l=y.ytplayer)==null?void 0:l.bootstrapPlayerContainer;
if((l=q==null?void 0:q.firstElementChild)&&_.lR(l,"html5-video-player")){var t,E,e=(t=y.ytplayer)==null?void 0:(E=t.bootstrapWebPlayerContextConfig)==null?void 0:E.contextId;t=p.webPlayerContextConfig.contextId;if(e&&e===t){q!==p.container&&(q=!1,RpB(l,"getPlayerState")===2&&(q=!0),p.container.appendChild(l),q||RpB(l,"playVideo"));var C;if((C=y.ytplayer)==null?0:C.bootstrapPlayerResponse)p.bootstrapPlayerResponse=y.ytplayer.bootstrapPlayerResponse}}},hpP=function(p){var y,l,q,t,E;
_.h(function(e){if(e.nextAddress==1)return p.pageReadyOrDataAvailable?e.jumpTo(2):e.yield(p.pageReadyOrDataAvailableResolver.promise,2);if(e.nextAddress!=4)return!_.n("kevlar_player_unified_player_loading")||T8o()&&B8a()?e.jumpTo(4):e.yield(OMu(),4);WUU(p);if(p.pendingPlayerResponse||p.pendingPlayerVars)y=oi_(p.pendingPlayerResponse,p.pendingWatchNextResponse,p.pendingPlayerVars),p.pendingPlayerResponse&&p.pendingPlayerResponse===p.bootstrapPlayerResponse&&(y.loaded=!0),p.bootstrapPlayerResponse=
void 0;l=pOa(p.container,y,p.webPlayerContextConfig);((q=y)==null?0:q.loaded)&&p.pendingWatchNextResponse?(u1r(p,p.pendingWatchNextResponse),p.pendingPlayerResponse=void 0,p.pendingPlayerVars=void 0):axQ(p);t=function(C){l.removeEventListener("onReady",t);p.synchronousApi=C;p.apiResolver.resolve(C)};
l.addEventListener("onReady",t);p.commandResolver!==void 0&&(E=p.commandResolver,l.addEventListener("innertubeCommand",function(C){E(C)}));
_.rR(e)})};
hF.prototype.loadVideo=function(p,y,l){var q=this,t,E,e,C,u,a,m,U,b;return _.h(function(P){if(P.nextAddress==1)return q.pendingPlayerResponse=p,q.pendingWatchNextResponse=y,q.pendingPlayerVars=l,caU(q),q.synchronousApi?(t=q.synchronousApi,P.jumpTo(2)):P.yield(q.api,3);P.nextAddress!=2&&(t=P.yieldResult);Cqi(q,t);e=new Promise(function(Z){E=Z});
C=function(){var Z=t.getPlayerResponse();Z&&(t.removeEventListener("onVideoDataChange",C),E(Z))};
t.addEventListener("onVideoDataChange",C);if(q.pendingPlayerResponse||q.pendingPlayerVars)q.pendingPlayerResponse&&q.pendingPlayerResponse===q.bootstrapPlayerResponse?(E(q.pendingPlayerResponse),q.pendingWatchNextResponse&&u1r(q,q.pendingWatchNextResponse)):(u=oi_(q.pendingPlayerResponse,q.pendingWatchNextResponse,q.pendingPlayerVars),(b=(a=q.pendingPlayerResponse)==null?void 0:(m=a.playerConfig)==null?void 0:(U=m.playbackStartConfig)==null?void 0:U.startPaused)?t.cueVideoByPlayerVars(u.args):t.loadVideoByPlayerVars(u.args)),
axQ(q),q.bootstrapPlayerResponse=void 0;return P.return(e)})};
var epU=function(p){if(document.readyState==="complete"||document.readyState==="interactive")caU(p);else{var y=function(){document.removeEventListener("DOMContentLoaded",y);caU(p)};
document.addEventListener("DOMContentLoaded",y)}},caU=function(p){p.pageReadyOrDataAvailable=!0;
p.pageReadyOrDataAvailableResolver.resolve()},axQ=function(p){p.pendingPlayerResponse=void 0;
p.pendingWatchNextResponse=void 0;p.pendingPlayerVars=void 0};
_.Jh.Object.defineProperties(hF.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var C9=function(p){dI.call(this,p===void 0?"document_active":p);var y=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(l){y.transition("document_disposed",{event:l})});
window.addEventListener("beforeunload",function(l){y.transition("document_disposed_preventable",{event:l})});
window.addEventListener("unload",function(l){y.transition("document_disposed",{event:l});y.hasRun=new Map})};
_.A(C9,dI);
C9.prototype.runPreventableDispose=function(p,y){if(!this.hasRun.get("document_disposed_preventable")){p(y==null?void 0:y.event);var l,q;if((y==null?0:(l=y.event)==null?0:l.defaultPrevented)||(y==null?0:(q=y.event)==null?0:q.returnValue)){y.event.returnValue||(y.event.returnValue=!0);y.event.defaultPrevented||y.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")};
C9.prototype.runDispose=function(p,y){this.hasRun.get("document_disposed")?this.transition("document_active"):(p(y==null?void 0:y.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
C9.prototype.runFlush=function(p,y){p(y==null?void 0:y.event);this.transition("document_active")};
C9.prototype.runActive=function(){};var u1=function(p){dI.call(this,p===void 0?"document_visibility_unknown":p);var y=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(l){document.visibilityState==="visible"?y.transition("document_visible",{event:l}):y.transition("document_hidden",
{event:l})});
_.n("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(l){y.transition("document_backgrounded",{event:l})}),window.addEventListener("focus",function(l){y.transition("document_foregrounded",{event:l})}))};
_.A(u1,dI);u1.prototype.runVisible=function(p,y){p(y==null?void 0:y.event);_.n("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
u1.prototype.runHidden=function(p,y){p(y==null?void 0:y.event);_.n("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
u1.prototype.runBackgrounded=function(p,y){p(y==null?void 0:y.event)};
u1.prototype.runForegrounded=function(p,y){p(y==null?void 0:y.event)};var Rw=function(){this.teardownLifecycle=new C9;this.visibilityLifecycle=new u1};
Rw.prototype.install=function(){var p=_.oX.apply(0,arguments),y=this;p.forEach(function(l){y.teardownLifecycle.install(l)});
p.forEach(function(l){y.visibilityLifecycle.install(l)})};var W8=function(){Rw.call(this);var p={};this.install((p.document_disposed={callback:this.abortSlisAndFlush},p));_.n("combine_ve_grafts")&&(p={},this.install((p.document_disposed={callback:this.flushInteractionLoggingAttachVes},p)));p={};this.install((p.flush_logs={callback:this.logFinalPayload},p));_.n("web_log_cfg_cee_ks")||_.rJ(_.TR,mTv)};
_.A(W8,Rw);var lxu=function(){W8.loggingInstance||(W8.loggingInstance=new W8);return W8.loggingInstance};
W8.prototype.logFinalPayload=function(){if(_.n("web_fp_via_jspb")){var p=new ncQ,y=_.B2();y&&_.Fq(p,1,y);y=_.n("jspb_sparse_encoded_pivot")?new iG([{}]):new iG;_.Qa(y,380,Gcv,p);Act("finalPayload",y);_.n("web_fp_via_jspb_and_json")&&_.TX("finalPayload",{csn:_.B2()})}else _.TX("finalPayload",{csn:_.B2()})};
W8.prototype.abortSlisAndFlush=function(){v5O(Ji);c4!=null&&c4.flush()};
W8.prototype.flushInteractionLoggingAttachVes=function(){hRQ(_.Ll())};
var mTv=function(){var p=_.OY("CLIENT_EXPERIMENT_EVENTS");if(p){var y=Nm8();p=_.c(p);for(var l=p.next();!l.done;l=p.next())l=l.value,y(l)&&_.TX("genericClientExperimentEvent",{eventType:l});delete _.XF.CLIENT_EXPERIMENT_EVENTS}};var UT$={};
UT$.YtPlayerBehavior=[_.c8.YtPlayerListenerBehavior,{properties:{watchNextData:{type:Object,observer:"watchNextDataChanged_"},context:{type:String},playerId:{type:String},disableTouchGestures:{type:Boolean}},listeners:{pinchout:"onPinchOut_",pinchin:"onPinchIn_",touchstart:"onTouchStart_"},created:function(){var p=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.AB;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;qJ6(function(){p.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.BK(this,"pan-down"),_.n("kevlar_pinch_fullscreen")&&_.xa().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.n("kevlar_pinch_fullscreen")&&_.xa().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(p,y,l){var q=this;G4(this.useUnifiedPlayer_());if(this.mainAppPlayer_)G4(!1,"MainAppPlayer already created.");else{var t=_.n("kevlar_player_container_query_killswitch")?this.$.container:_.jR(this.hostElement).querySelector("#container");this.mainAppPlayer_=new hF(this.getWebPlayerContextConfig_(),t,function(E){return _.iy(E,q.hostElement)},p,y,l);
this.mainAppPlayer_.api.then(function(E){q.player_=E;q.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&cIQ.resolve(E)})}},
loadVideoWithPlayerResponse:function(p,y){var l=this;if(this.useUnifiedPlayer_()){var q=this.watchNextData,t,E=(t=p.videoDetails)==null?void 0:t.videoId,e,C,u;(t=(e=this.watchNextData)==null?void 0:(C=e.currentVideoEndpoint)==null?void 0:(u=C.watchEndpoint)==null?void 0:u.videoId)&&E!=t&&(q=void 0,_.n("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(p,q,y):this.createMainAppPlayer_(p,q,y);this.mainAppPlayer_.api.then(function(){_.Ub(l.hostElement,
"yt-player-updated")})}else this.update(k8a(p,y))},
loadVideoWithPlayerVars:function(p){var y=this;this.useUnifiedPlayer_()?(_.n("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(p):this.createMainAppPlayer_(void 0,void 0,p),this.mainAppPlayer_.api.then(function(){_.Ub(y.hostElement,"yt-player-updated")})):this.update({args:p})},
update:function(p){var y=this;if(this.useUnifiedPlayer_())G4(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(p);var l=xyg(p.args);l&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==l&&Object.assign(p.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(p).then(function(q){_.Ub(y.hostElement,"yt-player-updated",_.n("kevlar_player_updated_obsolete_player_killswitch")?
q:void 0)})}_.fT(new _.SM("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(p){var y=this,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(y.getPlayerPromise(),2);l=q.yieldResult;if(!l)throw Error("vh");p&&y.updatePlayerPlaylist_(p);_.rR(q)})},
acquireApi_:function(p){var y=this;if(this.useUnifiedPlayer_())G4(!1,"Invalid method call in kevlar_unified_player.");else return _.TR.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(G4(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(l){y.shouldAutoplay_(p)?l.loadVideoByPlayerVars(p.args):l.cueVideoByPlayerVars(p.args)})):this.initPlayerPromise_=this.initPlayerContainer_(p),this.initPlayerPromise_},
initPlayerContainer_:function(p){var y=this;if(this.useUnifiedPlayer_())G4(!1,"Invalid method call in kevlar_unified_player.");else return G4(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.vs(Error("wh")),G4(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.n("kevlar_player_container_query_killswitch")?this.$.container:_.jR(this.hostElement).querySelector("#container"),OMu().then(function(){var l=y.initPlayer_(p);y.playerResolver_.resolve(l);
return l})},
onPlayerReady_:function(p,y){this.useUnifiedPlayer_()?G4(!1,"Invalid method call in kevlar_unified_player."):(p.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&cIQ.resolve(p),y(p))},
maybeCallApiMethodOnElement_:function(p,y){if(typeof p[y]==="function")return p[y]()},
maybeAdoptBootstrapPlayer_:function(){var p=window,y,l=(y=p.ytplayer)==null?void 0:y.bootstrapPlayerContainer;if((y=l==null?void 0:l.firstElementChild)&&y.classList.contains("html5-video-player")){var q,t,E=(q=p.ytplayer)==null?void 0:(t=q.bootstrapWebPlayerContextConfig)==null?void 0:t.contextId;q=this.getWebPlayerContextConfig_().contextId;if(E&&E===q){l!==this.playerContainer_&&(l=!1,this.maybeCallApiMethodOnElement_(y,"getPlayerState")===2&&(l=!0),this.playerContainer_.appendChild(y),l||this.maybeCallApiMethodOnElement_(y,
"playVideo"));var e;if((e=p.ytplayer)==null?0:e.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=p.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(p){var y=this;if(this.useUnifiedPlayer_())G4(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(l){y.maybeAdoptBootstrapPlayer_();var q=p?N8t(p):void 0;q&&q==y.bootstrapPlayerResponse_&&(p.loaded=!0);q=y.playerContainer_;var t=y.getWebPlayerContextConfig_();q=pOa(q,p,t);y.player_=q;y.onPlayerReadyEvent_=y.onPlayerReady_.bind(y,y.player_,l);y.player_.addEventListener("onReady",y.onPlayerReadyEvent_);y.player_.addEventListener("innertubeCommand",
y.onPlayerInnerTubeCommand_.bind(y));_.n("enable_web_shorts_captions_language_command")&&y.player_.addEventListener("captionschanged",y.storePlayerCaptionLanguage_.bind(y))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(p){p.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(p){p.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var p=_.WC().resolve(_.mm).getCurrentPage();p&&p.getScrollTop()<=0?_.BK(this,"pan-down"):_.BK(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(p){p.isFullscreen()||p.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(p){p.isFullscreen()&&p.toggleFullscreen()})},
updatePlayerPlaylist_:function(p){var y=this,l,q,t;return _.h(function(E){if(E.nextAddress==1)return l=_.WC().resolve(_.RK(_.yh)),q=!!(l&&l.playlistComponent&&l.playlistComponent.loopOn),E.yield(y.getPlayerPromise(),2);var e=t=E.yieldResult,C=e.updatePlaylist,u=[];if(_.n("kevlar_player_playlist_use_local_index")){var a,m;var U=(m=(a=p.localCurrentIndex)!=null?a:p.currentIndex)!=null?m:0}else{var b;U=(b=p.currentIndex)!=null?b:0}if(p.contents)for(a=0;a<p.contents.length;a++)if((m=p.contents[a])&&m.playlistPanelVideoRenderer)if(Sdm(m)){m=
m.playlistPanelVideoRenderer;b="";m.shortBylineText&&(b=_.JB(m.shortBylineText));var P="";m.title?P=_.JB(m.title):m.unplayableText&&(P=_.JB(m.unplayableText));u.push({author:b,title:P,encrypted_id:m.videoId})}else a<U&&--U;C.call(e,{index:U,list:p.playlistId?p.playlistId:"",loop:q,playlist_title:p.title,playlist_length:u.length,video:u,fetch:0,external_list:"1",title:p.title?p.title:"",playlist_author:p.ownerName?_.JB(p.ownerName):void 0});_.rR(E)})},
focusOnPlayer:function(){_.th(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var p=this.playerContainer_.querySelector(".html5-video-player");p&&(_.aw(_.WC().resolve(_.Xf)),p.focus())}})},
preparePlayer:function(){var p=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(y){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")y();else{var l=function(){document.removeEventListener("DOMContentLoaded",l);y()};
document.addEventListener("DOMContentLoaded",l)}})).then(function(){return OMu()}).then(function(){p.initPlayerPromise_||p.preparePlayerJobId_||(p.preparePlayerJobId_=_.rJ(_.TR,function(){p.initPlayerPromise_||(p.initPlayerPromise_=p.initPlayerContainer_())}))}):_.fT(new _.SM("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(p){this.useUnifiedPlayer_()?G4(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(p)||(p.args.autoplay="0")},
shouldAutoplay_:function(p){if(this.useUnifiedPlayer_())G4(!1,"Invalid method call in kevlar_unified_player.");else{var y=this.get("args.el",p);return y&&y!="detailpage"&&this.isMiniplayerActive_()||y&&(y=="sponsorshipsoffer"||y=="handlesclaiming")&&this.get("args.autoplay",p)=="0"?!1:(p=N8t(p))&&this.get("playerConfig.playbackStartConfig.startPaused",p)?!1:!0}},
isMiniplayerActive_:function(){return _.WC().resolve(_.IA).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var p=this.getPlayer();if(p){var y=p.getPlayerState();_.n("kevlar_player_check_ad_state_on_stop")&&(y=p.getPlayerState(p.getPresentingPlayerType()));y!=5&&p.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(p,y,l){l=l===void 0?!1:l;var q=this,t,E,e,C;return _.h(function(u){if(u.nextAddress==1)return y||(y=q.hostElement),t=q.useUnifiedPlayer_()?!!q.mainAppPlayer_:!!q.initPlayerPromise_,t?u.yield(q.getPlayerPromise(),2):(l?p.insertBefore(y,p.firstChild):p.appendChild(y),u.return());E=u.yieldResult;e=E.getPlayerState(E.getPresentingPlayerType());C=!1;if(e==-1||e==1||e==3)C=!0;l?p.insertBefore(y,p.firstChild):p.appendChild(y);C&&E.playVideo();E.setSize(NaN,NaN);_.rR(u)})},
watchNextDataChanged_:function(p){var y=this;p&&(this.useUnifiedPlayer_()&&_.n("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&u1r(this.mainAppPlayer_,p):this.getPlayerPromise().then(function(l){l.updateVideoData(y.computeWatchNextPlayerVars_(p))}))},
computeWatchNextPlayerVars_:function(p){if(this.useUnifiedPlayer_()&&_.n("kevlar_unified_player_update_watch_next_killswitch"))G4(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:p}},
maybeSendAbandonmentPing_:function(){var p=this.getPlayer();p&&p.getPlayerState()!=5&&p.getPlayerState()!=0&&p.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var p=_.OY("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(p=Object.assign({},p),p.rootElementId=this.playerId);p.serializedExperimentIds&&p.serializedExperimentFlags||_.vs(Error("xh"));return p},
hasWebPlayerContextConfig_:function(){return!!_.OY("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(p){this.useUnifiedPlayer_()?G4(!1,"Invalid method call in kevlar_unified_player."):_.iy(p,this.hostElement)},
storePlayerCaptionLanguage_:function(){this.getPlayerPromise().then(function(p){var y=_.WC().resolve(_.LI);p=p==null?void 0:p.getOption("captions","track");var l=_.PV("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(p){var q,t=(q=_.So(_.qyu,l)())==null?void 0:q.value,E;q=typeof(p==null?void 0:p.translationLanguage)==="object"&&((E=p.translationLanguage)==null?void 0:E.languageName)||p.displayName||"";t!==q&&y.store.dispatch(_.Fp("stringEntity",l,{key:l,value:q.toString()}))}else y.store.dispatch(_.Fp("stringEntity",
l,{key:l,value:"CAPTIONS_UNAVAILABLE"}))})},
useUnifiedPlayer_:function(){var p=_.n("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.n("kevlar_unified_player")||p}}];var $TM={};$TM.YtPlaylistPanelBehavior=[_.X.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(p){p=p.detail;if(p.actions.loop!=void 0||p.actions["yt-icons:loop"]!=void 0)this.loopOn=p.actions.loop||p.actions["yt-icons:loop"];if(p.actions.shuffle!=void 0||p.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=p.actions.shuffle||p.actions["yt-icons:shuffle"]},
setMenuData_:function(p){if(!p||!p.playlistButtons||p.isInfinite)return null;for(var y=p.playlistButtons.menuRenderer.topLevelButtons,l=y.length,q=0;q<l;q++)if(y[q].toggleButtonRenderer){var t=y[q].toggleButtonRenderer;t.defaultIcon.iconType=="LOOP"&&this.loopOn?t.isToggled=this.loopOn:t.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(t.isToggled=this.shuffleOn)}return p.playlistButtons}}];var joZ=function(p){aG.call(this,p,132);this.isDocument=p===document.documentElement};
_.A(joZ,aG);joZ.prototype.calculateScrollDelta=function(p,y,l){var q=0;p<y?q=p<y-100?-48:-8:p>y+l&&(q=p>y+l+100?48:8);return q};
joZ.prototype.JSC$11278_onMouseMove=function(p){this.isDocument||(p.clientX=p.event_.pageX,p.clientY=p.event_.pageY);aG.prototype.JSC$11278_onMouseMove.call(this,p)};var mS=function(){var p=_.FA.apply(this,arguments)||this;p._noAccessors=!0;p.scrollElement=document.documentElement;p.JSC$14261_dragListGroup=null;p.dragScrollSupport=null;p.onDraggerCreated=function(y){var l=y.JSC$11274_dragger;l.scrollTarget_=p.scrollElement;y=y.draggerEl;l&&y.menuOpened&&l.setEnabled(!1)};
p.onDragStart=function(y){var l=y.draggerEl;y=y.currDragItem;var q=Object.assign({},y==null?void 0:y.data);q.trackingParams=void 0;l.data=q;l.style.position="absolute";l.style.width=(y==null?void 0:y.clientWidth)+"px";l.style.zIndex="2030";l.onDrag&&l.onDrag();_.n("web_owner_document_fallback_killswitch")?(y=document.querySelector("ytd-app"))&&_.jR(y).appendChild(l):(y=_.vJ(l),(q=y.querySelector("ytd-app"))?_.jR(q).appendChild(l):y.body.appendChild(l));p.dragScrollSupport=new joZ(p.scrollElement);
p.dragScrollSupport.horizontalScrolling_=!1;l=p.dragScrollSupport;l.constrainScroll_=!!l.margin_&&!1};
p.onDrop=function(y){p.handleDrop(y);p.dragScrollSupport&&(_.er(p.dragScrollSupport),p.dragScrollSupport=null)};
p.onReorderableScroll=function(){if(p.JSC$14261_dragListGroup){var y=p.JSC$14261_dragListGroup;aLP(y,y.currDragItem_)}};
return p};
_.A(mS,_.FA);mS.prototype.detached=function(){_.b$v(this)};
_.b$v=function(p){p.JSC$14261_dragListGroup&&(_.SJ(p.JSC$14261_dragListGroup,E8M,p.onDragStart),_.SJ(p.JSC$14261_dragListGroup,hbQ,p.onDragStart),p.JSC$14261_dragListGroup.dispose(),p.JSC$14261_dragListGroup=null);p.dragScrollSupport&&(_.er(p.dragScrollSupport),p.dragScrollSupport=null);p.scrollElement.removeEventListener("scroll",p.onReorderableScroll)};
_.nrv=function(p,y,l,q){q=q===void 0?"":q;_.b$v(p);l&&(p.scrollElement=l);p.JSC$14261_dragListGroup=new yB;p.JSC$14261_dragListGroup.hysteresisDistance_=2;uAU(p.JSC$14261_dragListGroup,y);p.JSC$14261_dragListGroup.draggerElClasses_=Rg("dragging").split(" ");q&&RbN(p.JSC$14261_dragListGroup,function(t){var E=t||document,e=null;E.getElementsByClassName?e=E.getElementsByClassName(q)[0]:e=XUP("*",q,t);return e||t});
_.BL(p.JSC$14261_dragListGroup,sMx,p.onDraggerCreated);_.BL(p.JSC$14261_dragListGroup,E8M,p.onDragStart);_.BL(p.JSC$14261_dragListGroup,hbQ,p.onDrop);p.JSC$14261_dragListGroup.init();p.scrollElement.addEventListener("scroll",p.onReorderableScroll,{passive:!0})};
mS.prototype.handleDrop=function(){};
_.Jh.Object.defineProperties(mS.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.H([_.Q({value:100}),_.x("design:type",Number)],mS.prototype,"scrollMargin",void 0);_.H([_.Lv()],mS);_.GNi=[mS.prototype];_.UW={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(p,y,l){var q=this.getClickTarget_(y);if(q&&this.isClickAllowed_(q)){y.preventDefault();p=(0,_.Ts.unsafeClone)(p);var t=this.getContainerBoundingRect();y=this.getRelativeClickXy_(y,t);this.expandEndpointUrlMacros_(p,{NX:y[0],NY:y[1],NB:q.code});l&&this.truncateWebCommendMetadataUrl_(p);_.Ub(this.hostElement,"yt-navigate",{endpoint:p})}},
getClickTarget_:function(p){if(!this.clickTargetMap)return null;p=_.Jx(p)||[];p=_.c(p);for(var y=p.next();!y.done;y=p.next()){y=y.value;if(y===_.jR(this.hostElement).querySelector("#menu"))break;if(y=this.clickTargetMap.get(y.id))return y}return null},
getRelativeClickXy_:function(p,y){var l=p.detail.x,q=p.detail.y;_.n("use_on_click_for_desktop_display_ad")&&p.clientX!=null&&p.clientY!=null&&(l=p.clientX,q=p.clientY);p=Math.round(l-y.left);y=Math.round(q-y.top);return p<0||y<0?[null,null]:[p,y]},
getContainerBoundingRect:function(){return _.jR(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(p,y){for(var l=_.c(p.loggingUrls||[]),q=l.next();!q.done;q=l.next())q=q.value,q.baseUrl&&(q.baseUrl=Ngc(q.baseUrl,y));p.urlEndpoint&&p.urlEndpoint.url&&(p.urlEndpoint.url=Ngc(p.urlEndpoint.url,y));p.commandMetadata&&p.commandMetadata.webCommandMetadata&&p.commandMetadata.webCommandMetadata.url&&(p.commandMetadata.webCommandMetadata.url=Ngc(p.commandMetadata.webCommandMetadata.url,y))},
truncateWebCommendMetadataUrl_:function(p){if(p.commandMetadata&&p.commandMetadata.webCommandMetadata&&p.commandMetadata.webCommandMetadata.url){var y=p.commandMetadata.webCommandMetadata.url,l=y.indexOf("&pp=");if(l>0){var q=y.indexOf("&",l+1);p.commandMetadata.webCommandMetadata.url=q>l&&q<y.length?y.slice(0,l)+y.slice(q):y.slice(0,l)}}},
configureClickTargets:function(p,y,l){this.containerId=p;this.clickTargetMap=new Map;p=_.c(y);for(y=p.next();!y.done;y=p.next())if(y=y.value,y.location){var q=l.get(y.location);q&&(_.nv(_.jR(this.hostElement).querySelector("#"+q),"yt-simple-endpoint",this.isClickAllowed_(y)),this.clickTargetMap.set(q,y))}},
isClickAllowed_:function(p){return p.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||p.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||p.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||p.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.$G={};
_.$G.YtLazyListBehavior=[_.m$.YtTaskEmitterBehavior,{_noAccessors:!0,properties:{initialCount:{type:Number,value:4},targetFramerate:{type:Number,value:20},minChunkSize:{type:Number,value:1},autoFill:{type:Boolean,value:!1},disableAutoFill:{type:Boolean,value:!1},shownItems:Array,shownCount:{type:Number,value:0},canShowMore:{type:Boolean,notify:!0,reflectToAttribute:!0,observer:"onCanShowMoreUpdated_"},renderDelay:Number,targetFrameTime_:{type:Number,computed:"computeFrameTime_(targetFramerate)"},canScheduleJobs:{type:Boolean,
value:!0,observer:"canScheduleJobsChanged_"}},itemsPath:"data.items",beforeRegister:function(){if(this.itemsPath)if(this.getItemsPath&&this.getItemsPath instanceof Function&&(this.itemsPath=this.getItemsPath()),this.useSignals)this.addReactiveSchema({type:"observe",method:{methodName:"deepLazyListObserver_",args:[{type:"wildcard",path:this.itemsPath}]}});else{var p=(this.constructor.generatedFrom||this).observers;p||(p=[]);p.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
p}},
created:function(){this.boundRenderChunk_=this.renderChunk_.bind(this);this.items_=null;this.lazyListRenderJobId_=this.chunkCount_=this.lastChunkTime_=this.length_=0;this.nonDeferredItemCount=-1;this.renderElementsOutsideVisibleArea_=null;this.partiallyRenderedItems_=new WeakSet},
fillRemainingListItems:function(){this.fillRange_(this.shownCount,this.length_)},
renderDeferredElements:function(){var p=this.renderElementsOutsideVisibleArea_;p&&(jcZ(p,4),p.processSignal())},
deepLazyListObserver_:function(p){var y=this;if(p){var l=p.value||[];if(this.itemsPath==p.path){var q=this.nonDeferredItemCount;p=0;q>-1&&l.length>q&&(p=_.OY("REMAINING_DOVA_DEFERRED_CHUNKS",-1));p>0?(q>0&&(q=l.slice(0,q),this.setInitialItemsOnDataChanged(q)),(q=this.renderElementsOutsideVisibleArea_)?q.cancel():(q=this.renderElementsOutsideVisibleArea_=new _.$5(2,"eocs"),_.Kco(window,"scroll",function(){return y.renderDeferredElements()})),_.js(q,function(){y.setInitialItemsOnDataChanged(l)}),_.dT("REMAINING_DOVA_DEFERRED_CHUNKS",
p-1)):this.setInitialItemsOnDataChanged(l)}else if(this.itemsPath+".splices"==p.path)this.onItemsUpdated_(l);
else q="shownItems"+p.path.substr(this.itemsPath.length),this.useSignals&&q==="shownItems.length"||this.notifyPath(q,p.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(p){p&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(p),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(p){p=p.indexSplices;for(var y=0,l=p.length;y<l;y++){var q=p[y];if(q.index<this.shownCount&&(q.removed&&this.splice("shownItems",q.index,q.removed.length),q.addedCount)){var t=q.object.slice(q.index,q.index+q.addedCount);q=["shownItems",q.index,0];q.push.apply(q,t);this.splice.apply(this,q)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(p){this.cancelPendingTasks_();p||(p=[]);this.items_=p;this.length_=this.items_.length;this.shownItems=this.items_.slice(0,this.initialCount);this.shownCount=this.shownItems.length;this.canShowMore=this.shownCount<this.length_;this.autoFill&&(_.o4("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.th(this,this.tryRenderChunk_)))},
fillRange_:function(p,y){this.canShowMore&&this.items_&&(p=this.items_.slice(p,y),p.unshift("shownItems"),this.push.apply(this,p),this.shownCount=y,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var p=this;this.canShowMore&&_.tl(this,"renderChunk",function(){p.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.o4("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.D6(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var p=this.renderElementsOutsideVisibleArea_;p&&(p.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var p=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(p-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=p;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(p){return Math.ceil(1E3/p)},
onCanShowMoreUpdated_:function(p){this.data&&this.items_!==null&&(p?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(p){!this.shouldUseTaskManager()&&this.data&&(!p&&this.canShowMore?(_.ana(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):p&&this.partiallyRenderedItems_.has(this.items_)&&(_.n("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var n9;_.jE={};
n9=function(){var p=_.FA.apply(this,arguments)||this;p.atStart=!0;p.atEnd=!0;p.startIndex=0;p.endIndex=0;p.scrollCount=0;p.initialStartIndex=0;p.disableScrollEventListener=!1;p.useFloorScrolling=!1;p.isSearch=!1;p.dragging=!1;p.dragMouseStart=0;p.dragOffsetStart=0;p.disableWheelScroll=!1;p.centerListItems=!1;p.offset=0;p.minComponentWidth=0;p.marginWidthRight=0;p.marginWidthLeft=0;p.setButtonsStateRequested=!1;p.itemsVisibilityObserver=null;p.fullyVisibleItemsIndices=[];p.JSC$14272_onWheelScroll=function(y){if(p.isSearch&&
!p.disableWheelScroll&&_.n("desktop_enable_dmpanel_wheel_scroll")){var l=y.shiftKey?Math.abs(y.deltaY)>Math.abs(y.deltaX)?y.deltaY:y.deltaX:y.deltaX;l!==0&&(y.preventDefault(),p.ytLazyListBehavior.fillRemainingListItems(),p.offset+=l,b1(p),p.reposition_())}};
p.onPointerDown=function(y){Pqi(p)&&(p.dragMouseStart=y.clientX,p.dragOffsetStart=p.offset,p.dragging=!0)};
p.onPointerMove=function(y){Pqi(p)&&p.dragging&&(p.ytLazyListBehavior.fillRemainingListItems(),p.offset=p.dragOffsetStart-(y.clientX-p.dragMouseStart),b1(p),p.reposition_())};
p.onPointerUp=function(){Pqi(p)&&(p.dragging=!1)};
return p};
_.A(n9,_.FA);var Aax=function(p){var y=_.jR(p.hostElement).querySelector("#items").children;if(!y)return 0;var l=0;p=_.c(p.fullyVisibleItemsIndices);for(var q=p.next();!q.done;q=p.next())l+=y[q.value].clientWidth;return l},Pqi=function(p){return p.isSearch&&_.n("desktop_enable_dmpanel_click_drag_scroll")};
n9.prototype.created=function(){this.cachedViewportWidth=_.OY("initialInnerWidth")||window.innerWidth;this.JSC$14272_cachedViewportHeight=_.OY("initialInnerHeight")||window.innerHeight;_.OY("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.dT("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
n9.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.n("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();Z$Z(this)};
n9.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.n("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var p;(p=this.itemsVisibilityObserver)==null||p.disconnect();this.itemsVisibilityObserver=null;var y;(y=this.itemsObserver)==null||y.disconnect()};
var Z$Z=function(p){var y=_.jR(p.hostElement).querySelector("#scroll-container");if(y){if(!p.itemsVisibilityObserver){var l=window.getComputedStyle(y).marginRight;p.itemsVisibilityObserver=new IntersectionObserver(function(q){MQ$(p,q)},{root:y,
rootMargin:l,threshold:.98})}if(y=_.jR(p.hostElement).querySelector("#items"))p.itemsObserver=new fFO(y,function(q){VQU(p,q)})}},VQU=function(p,y){grv(p)&&(Array.from(y.addedNodes).filter(function(l){return l.nodeType===Node.ELEMENT_NODE}).forEach(function(l){p.itemsVisibilityObserver&&p.itemsVisibilityObserver.observe(l)}),Array.from(y.removedNodes).filter(function(l){return l.nodeType===Node.ELEMENT_NODE}).forEach(function(l){p.itemsVisibilityObserver&&p.itemsVisibilityObserver.unobserve(l)}))},
MQ$=function(p,y){var l=new Set(p.fullyVisibleItemsIndices);
y=_.c(y);for(var q=y.next();!q.done;q=y.next()){q=q.value;var t=q.target.parentElement;t?(t=Array.from(t.children).indexOf(q.target),q.isIntersecting?l.add(t):l.has(t)&&l.delete(t)):_.vs(new _.SM("Parent element not found",q.target.nodeName))}p.fullyVisibleItemsIndices=Array.from(l).sort(function(E,e){return E-e});
l.size===0?_.vs(new _.SM("No visible entries in horizontal list")):(p.startIndex=p.fullyVisibleItemsIndices[0],p.endIndex=p.fullyVisibleItemsIndices[p.fullyVisibleItemsIndices.length-1])},grv=function(p){p.data?p=(p=p.data)&&p.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===p.itemSizeConstraint:!1:p=!1;
return p};
_.J=n9.prototype;_.J.addScrollEventListeners=function(){var p=_.jR(this.hostElement).querySelector("#scroll-container");p.style.touchAction="pan-y";p.addEventListener("wheel",this.JSC$14272_onWheelScroll);p.addEventListener("pointerdown",this.onPointerDown);p.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.J.removeScrollEventListeners=function(){var p=_.jR(this.hostElement).querySelector("#scroll-container");p.removeEventListener("wheel",this.JSC$14272_onWheelScroll);p.removeEventListener("pointerdown",this.onPointerDown);p.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.J.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.th(this,this.setStartIndex,[this.initialStartIndex])};
_.J.reposition_=function(){var p=_.OY("HTML_DIR")=="rtl"?"":"-",y=_.jR(this.hostElement).querySelector("#items");y&&(y.style.transform="translateX("+p+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.J.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.th(this,this.setButtonsState_))};
_.J.setButtonsState_=function(){this.setButtonsStateRequested=!1;var p=_.jR(this.hostElement).querySelector("#items").firstElementChild;if(p){this.minComponentWidth||(this.minComponentWidth=Qor(this,p));p=_.jR(this.hostElement).querySelector("#scroll-container").clientWidth;var y=_.jR(this.hostElement).querySelector("#items").clientWidth,l=this.get(this.ytLazyListBehavior.itemsPath,this);if(l){var q=Math.round(p/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=
Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+q,l.length)-1)}this.ytLazyListBehavior.canShowMore?y+this.minComponentWidth>=this.offset+p&&(this.atEnd=!1):this.atEnd=this.offset+p>=y-20?!0:!1;this.atStart=this.offset<=20}};
_.J.setStartIndex=function(p){if(!this.minComponentWidth){var y=_.jR(this.hostElement).querySelector("#items").firstElementChild;if(!y)return;this.minComponentWidth=Qor(this,y)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*p;b1(this);this.reposition_()};
_.J.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Vp();var p=_.jR(this.hostElement).querySelector("#scroll-container").clientWidth;_.n("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=Qor(this,_.jR(this.hostElement).querySelector("#items").firstElementChild));p=this.useFloorScrolling?Math.floor(p/this.minComponentWidth)||1:Math.round(p/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&KUv(this);this.offset+=grv(this)?
Aax(this):p*this.minComponentWidth;b1(this);this.reposition_();this.scrollCount++};
_.J.prevClick_=function(){var p=_.jR(this.hostElement).querySelector("#scroll-container").clientWidth;p=this.useFloorScrolling?Math.floor(p/this.minComponentWidth)||1:Math.round(p/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=grv(this)?Aax(this):this.minComponentWidth*this.scrollCount-1):this.offset-=grv(this)?Aax(this):p*this.minComponentWidth;this.centerListItems&&KUv(this);b1(this);this.reposition_()};
_.J.onIronResize_=function(){this.resizeSupportEnabled&&_.th(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.J.onItemsTransitionEnd_=function(p){_.cm(p)===_.jR(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.J.onChildElementFocus_=function(p){p=p.target.closest("#items > *");var y=_.jR(this.hostElement).querySelector("#scroll-container");if(y.contains(p)){if(_.n("web_horizontal_list_behavior_focus_killswitch"))if(p.offsetLeft<this.offset)this.offset=Math.abs(p.offsetLeft)<p.clientWidth?0:p.offsetLeft;else if(p.offsetLeft+p.clientWidth>this.offset+y.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Vp(),this.offset=p.offsetLeft+p.clientWidth-y.clientWidth;else return;else{var l=_.jR(this.hostElement).querySelector("#items"),
q=_.OY("HTML_DIR")==="rtl",t=q?l.clientWidth-p.offsetLeft:p.offsetLeft;l=q?l.clientWidth-(p.offsetLeft+p.clientWidth):p.offsetLeft+p.clientWidth;var E=q?t>this.offset+y.clientWidth:t<this.offset,e=q?l<this.offset:l>this.offset+y.clientWidth,C=q?E:e;if(q?e:E)y=q?l:t,this.offset=Math.abs(y)<p.clientWidth?0:y;else if(C)this.ytLazyListBehavior.fillRemainingListItems(),_.Vp(),this.offset=(q?t:l)-y.clientWidth;else return}b1(this);this.reposition_()}};
_.J.observeShownItems_=function(){this.reset()};
_.J.checkComponentWidthResize=function(){var p=_.jR(this.hostElement).querySelector("#items").firstElementChild;p&&(p=Qor(this,p),this.centerListItems||p!==this.minComponentWidth)&&(this.minComponentWidth=p,this.offset=p*this.scrollCount,this.centerListItems&&KUv(this),b1(this),this.reposition_())};
var Qor=function(p,y){var l=window.getComputedStyle(y).marginRight;l=Math.floor(Number(l.replace("px","")));var q=window.getComputedStyle(y).marginLeft;q=Math.floor(Number(q.replace("px","")));p.centerListItems&&!p.marginWidthRight&&(p.marginWidthRight=l,p.marginWidthLeft=q);return p.resizeSupportEnabled?y.getBoundingClientRect().width+l:y.offsetWidth+l},b1=function(p){var y=_.jR(p.hostElement).querySelector("#scroll-container").clientWidth,l=_.jR(p.hostElement).querySelector("#items").clientWidth;
p.offset<0?p.offset=0:p.offset+y>=l&&(p.offset=l-y)},KUv=function(p){p.offset-=(_.jR(p.hostElement).querySelector("#scroll-container").clientWidth+p.marginWidthRight-p.minComponentWidth)/2-p.marginWidthLeft};
_.Jh.Object.defineProperties(n9.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var p=_.OY("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(p==-1)p=this.JSC$14272_cachedViewportHeight,p=p>1320?5:p>1020?4:p>730?3:p>430?2:1;else if(p==0)return 0;_.dT("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",p-1);p=_.OY("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(p>-1)return p;p=this.cachedViewportWidth;p=p>1600?6:p>1400?5:p>1300?4:p>1090?5:p>870?4:p>660?3:2;_.dT("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
p);return p},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.n("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
n9.prototype.observeShownItems_=n9.prototype.observeShownItems_;n9.prototype.onChildElementFocus_=n9.prototype.onChildElementFocus_;n9.prototype.onItemsTransitionEnd_=n9.prototype.onItemsTransitionEnd_;n9.prototype.onIronResize_=n9.prototype.onIronResize_;n9.prototype.prevClick_=n9.prototype.prevClick_;n9.prototype.nextClick_=n9.prototype.nextClick_;n9.prototype.setButtonsState_=n9.prototype.setButtonsState_;n9.prototype.requestButtonsStateUpdate_=n9.prototype.requestButtonsStateUpdate_;
n9.prototype.reposition_=n9.prototype.reposition_;n9.prototype.reset=n9.prototype.reset;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.$G.YtLazyListBehavior),_.x("design:type",Object)],n9.prototype,"ytLazyListBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],n9.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],n9.prototype,"atStart",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],n9.prototype,"atEnd",void 0);_.H([_.Q(),_.x("design:type",Object)],n9.prototype,"startIndex",void 0);_.H([_.Q(),_.x("design:type",Object)],n9.prototype,"endIndex",void 0);_.H([_.Q({value:6}),_.x("design:type",Number)],n9.prototype,"initialCount",void 0);_.H([_.Q(),_.x("design:type",Object)],n9.prototype,"scrollCount",void 0);_.H([_.Q(),_.x("design:type",Object)],n9.prototype,"initialStartIndex",void 0);
_.H([_.Q(),_.x("design:type",Object)],n9.prototype,"disableScrollEventListener",void 0);_.H([_.Q(),_.x("design:type",Object)],n9.prototype,"supportComponentResize",void 0);_.H([_.Q({value:function(){var p=this;return function(){return p.prevClick_()}}}),
_.x("design:type",Function)],n9.prototype,"boundPrevClick",void 0);_.H([_.Q({value:function(){var p=this;return function(){return p.nextClick_()}}}),
_.x("design:type",Function)],n9.prototype,"boundNextClick",void 0);_.H([_.Q(),_.x("design:type",Object)],n9.prototype,"useFloorScrolling",void 0);_.H([_.Q(),_.x("design:type",Object)],n9.prototype,"isSearch",void 0);_.H([_.Q(),_.x("design:type",Object)],n9.prototype,"dragging",void 0);_.H([_.Q(),_.x("design:type",Object)],n9.prototype,"dragMouseStart",void 0);_.H([_.Q(),_.x("design:type",Object)],n9.prototype,"dragOffsetStart",void 0);
_.H([_.Q(),_.x("design:type",Object)],n9.prototype,"disableWheelScroll",void 0);_.H([_.Q(),_.x("design:type",Object)],n9.prototype,"centerListItems",void 0);_.H([_.VU("iron-resize"),_.gd("guideOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],n9.prototype,"onIronResize_",null);_.H([_.VU("transitionend"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],n9.prototype,"onItemsTransitionEnd_",null);
_.H([_.VU("focusin"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],n9.prototype,"onChildElementFocus_",null);_.H([_.gd("shownItems"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],n9.prototype,"observeShownItems_",null);_.H([_.Lv()],n9);_.jE.YtdHorizontalListBehavior=[];_.jE.YtdHorizontalListBehavior.push(_.vG,_.X.YtRendererBehavior,_.$G.YtLazyListBehavior,_.qI.YtdGuideStateAwareBehavior,n9.prototype);var tQR=["APP_STATE","PI"];var wOU=_.c0(["about:blank"]),i$P={pushState:window.history.pushState,replaceState:window.history.replaceState};var Gu=function(p){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=p;this.internalPushState=p.pushState.bind(p);this.internalReplaceState=p.replaceState.bind(p)};
Gu.prototype.init=function(){this.initialized=!0};
Gu.prototype.pushState=function(p,y){this.initialized||this.init();this.internalPushState&&this.internalPushState(p,"",y)};
Gu.prototype.replaceState=function(p,y){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(p,"",y)};
Gu.prototype.getState=function(){return this.history&&this.history.state};var raB=function(p){var y=function(){var l=p.apply(this,arguments)||this;l.boundHistoryPushState=!1;l.boundHistoryReplaceState=!1;l.debugInfo={};return l};
_.A(y,p);y.prototype.init=function(){var l=_.gg("IFRAME");_.l6(l,_.bz(wOU));l.sandbox="allow-same-origin";l.style.display="none";this.iframe=l;document.body.appendChild(l);this.bindHistoryStateFunctions();p.prototype.init.call(this)};
y.prototype.bindHistoryStateFunctions=function(){var l=this,q=[],t;this.iframe&&((t=this.iframe.contentWindow)==null?0:t.history)&&(t=this.iframe.contentWindow.history)&&(q.push(t),Object.getPrototypeOf(t)&&q.push(Object.getPrototypeOf(t)));window.history&&q.push(window.history);t=window.history;Object.getPrototypeOf(t)&&q.push(Object.getPrototypeOf(t));q.push(i$P);t=function(e){for(var C=null,u=0;u<q.length;u++){var a=q[u][e];if(typeof a==="function"){C=a.bind(window.history);l.debugInfo[e]=u;break}}return C};
if(!this.boundHistoryReplaceState){var E=t("replaceState");E&&(this.internalReplaceState=E,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(t=t("pushState"))&&(this.internalPushState=t,this.boundHistoryPushState=!0)};
return y}(Gu),SJU=function(){return raB.call(this,window.history)||this};
_.A(SJU,raB);SJU.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var P8=function(p){this.browserHistory=p;this.initialized=!1};
P8.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
P8.prototype.pushState=function(p,y){this.initialized||this.init();this.browserHistory.pushState(p,y)};
P8.prototype.replaceState=function(p,y){this.initialized||this.init();this.browserHistory.replaceState(p,y)};
P8.prototype.handlePopstate=function(p){return p.state};_.FUQ=function(p,y,l,q,t){this.endpoint=p;this.forward=y;this.historyEntry=l;this.JSC$29853_savedComponentState=q;this.legacyBorder=t===void 0?!1:t};var LUr=function(p,y){this.rootData=p;this.scrollTop=y};var H3=new _.WE("PAGE_REQUEST_TOKEN"),OZQ=new _.WE("FETCH_PBJ_TOKEN");_.AF=new _.WE("EPHEMERAL_STORE_TOKEN");_.Zo=function(p){this.data=Object.assign({},p);var y;(y=this.data.innertubeResponse)==null||delete y.frameworkUpdates};
_.Zo.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.uM)()};
_.$z=function(p){return Object.assign({},p.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var kNQ=function(){this.maxSize=100;this.timeToDataCache=new Map};
kNQ.prototype.get=function(p){var y=this.timeToDataCache.get(p);y&&(this.timeToDataCache.delete(p),this.timeToDataCache.set(p,y));if(y&&y.rootData&&(_.n("web_use_response_store_for_history_cache")||_.n("mweb_use_new_history_manager"))){var l=_.WC().resolve(_.AF),q=N2P(y),t=!!q;if(q){if(q.content){var E=MI(l,q.content);t&&E?y.rootData.response=_.$z(E):t=!1}q.player&&(E=MI(l,q.player),t&&E?y.rootData.playerResponse=_.$z(E):t=!1);q.reelSequence&&(l=MI(l,q.reelSequence),t&&l?y.rootData.reelWatchSequenceResponse=
_.$z(l):t=!1)}t||(this.timeToDataCache.delete(p),y=void 0)}return y};
kNQ.prototype.set=function(p,y){if(y.rootData&&(_.n("web_use_response_store_for_history_cache")||_.n("mweb_use_new_history_manager"))){var l=N2P(y),q=Object.assign({},y.rootData);l&&(l.content&&y.rootData.response&&(DTx(this,l.content,y.rootData.response),q.response=null),l.player&&y.rootData.playerResponse&&(DTx(this,l.player,y.rootData.playerResponse),q.playerResponse=null),l.reelSequence&&y.rootData.reelWatchSequenceResponse&&(DTx(this,l.reelSequence,y.rootData.reelWatchSequenceResponse),q.reelWatchSequenceResponse=
null));y=new LUr(q,y.scrollTop)}this.timeToDataCache.has(p)?this.timeToDataCache.delete(p):this.timeToDataCache.size>=this.maxSize&&(l=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(l.value));this.maxSize!==0&&this.timeToDataCache.set(p,y)};
kNQ.prototype.clear=function(){this.timeToDataCache.clear()};
var N2P=function(p){var y=_.WC().resolve(_.RK(H3)),l;if((l=p.rootData)==null?0:l.endpoint)return y==null?void 0:$K6(y,p.rootData.endpoint);var q;_.vs(new _.SM("History snapshot response data does not contain endpoint",(q=p.rootData)==null?void 0:q.url));return null},DTx=function(p,y,l){if(p.maxSize>0){var q;
(p=(q=l.responseContext)==null?void 0:q.maxAgeSeconds)&&Number(p)>0&&(q=_.WC().resolve(_.AF),l=Z6(l,p),q.put(y,new _.Zo(l)))}};var H$i=function(p,y,l){this.endpoint=y;this.JSC$29858_savedComponentState=l===void 0?null:l;this.entryTime=p};var Cqo=1;var Vd=function(p){var y=function(){var l=p.apply(this,[].concat(_.xq(_.oX.apply(0,arguments))))||this;l.historyEntryTime=0;l.historySnapshotCache=l.createHistoryCache();return l};
_.A(y,p);y.prototype.createHistoryCache=function(){return new kNQ};
y.prototype.saveAndReplace=function(l,q,t){var E=window.location.href;var e=e===void 0?{}:e;var C=(C=this.browserHistory.getState())&&C.entryTime?C.entryTime:u1m();l=this.createNewHistoryEntry(l,e,C);this.saveSnapshot(C,q,t);this.replaceState(l,E||window.location.href)};
y.prototype.saveAndPush=function(l,q,t,E,e){e=e===void 0?{}:e;this.saveSnapshot(this.historyEntryTime,t,E);t=this.historySnapshotCache;E=this.historyEntryTime;var C=t.timeToDataCache.keys();C=_.c(C);for(var u=C.next();!u.done;u=C.next())u=u.value,u>E&&t.timeToDataCache.delete(u);q=this.createNewHistoryEntry(q,e);this.pushState(q,l)};
y.prototype.saveSnapshot=function(l,q,t){this.historySnapshotCache.set(l,new LUr(q,t))};
y.prototype.createNewHistoryEntry=function(l,q,t){t=t===void 0?u1m():t;return new H$i(t,l,q)};
y.prototype.handlePopstate=function(l){var q=p.prototype.handlePopstate.call(this,l),t=null,E=null,e=!1,C=null;q&&q.entryTime&&(C=this.historySnapshotCache.get(q.entryTime)||null,e=q.entryTime>this.historyEntryTime,this.historyEntryTime=q.entryTime,t=q.endpoint,E=q.JSC$29858_savedComponentState);this.handleHistoryCacheLoad(new _.FUQ(t,e,C,E),l);return q};
y.prototype.pushState=function(l,q){Number(l==null?void 0:l.entryTime)>=0&&(this.historyEntryTime=l.entryTime);p.prototype.pushState.call(this,l,q)};
y.prototype.replaceState=function(l,q){Number(l==null?void 0:l.entryTime)>=0&&(this.historyEntryTime=l.entryTime);p.prototype.replaceState.call(this,l,q)};
y.prototype.handleHistoryCacheLoad=function(){};
return y}(P8),T2r=function(){var p=Vd.call(this,new SJU)||this;
p.dispatchElement=null;p.entryIndex=0;return p};
_.A(T2r,Vd);_.J=T2r.prototype;_.J.init=function(p){p=p===void 0?!0:p;Vd.prototype.init.call(this);this.initialized||(p||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.J.handlePopstate=function(p){var y=null;p.state||(y="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return Vd.prototype.handlePopstate.call(this,p);var l=new CustomEvent("yt-history-pop",{cancelable:!0});_.$w(this.dispatchElement,"yt-history-pop",[l,{errorMsg:y}]);_.jN(this.dispatchElement,"yt-close-all-popups-action");if(!l.defaultPrevented){l=_.WC().resolve(_.mm);y=l.getCurrentData();var q=l.getCurrentPage();l=0;q?(q=_.$w(this.dispatchElement,"yt-get-page-offset",
[q]),q.length>0&&(l=q[0])):_.vs(new _.SM("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:y?y.page:"undefined"}));y&&(y.csn=_.B2());this.saveSnapshot(this.historyEntryTime,y,l)}return Vd.prototype.handlePopstate.call(this,p)};
_.J.handleHistoryCacheLoad=function(p,y){p.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.c(_.jN(this.dispatchElement,"yt-history-will-navigate",[y])).next().value||_.$w(this.dispatchElement,"yt-history-load",[y,p]))};
_.J.pushState=function(p,y){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var l=new _.SM("history.pushState is not a function",this.getDebugString());_.Bs(l)}Vd.prototype.pushState.call(this,p,y)};
_.J.replaceState=function(p,y){if(!this.browserHistory.boundHistoryReplaceState){var l=new _.SM("history.replaceState is not a function",this.getDebugString());_.Bs(l)}Vd.prototype.replaceState.call(this,p,y)};
_.J.saveAndPush=function(p,y,l,q,t){t=t===void 0?{}:t;l&&(l.csn=_.B2());Vd.prototype.saveAndPush.call(this,p,y,l,q,t)};
_.J.getDebugString=function(){var p=[];this.initialized&&p.push("i");this.browserHistory.boundHistoryReplaceState&&p.push("bhr");this.browserHistory.boundHistoryPushState&&p.push("bhs");"replaceState"in this.browserHistory.debugInfo&&p.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&p.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&p.push("ei:"+String(this.entryIndex));return p.join(",")};
_.g4=function(p,y){p.init(!0);var l=p.browserHistory.getState();p.replaceState(l,As(y))};
T2r.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Qd=new _.WE("DESKTOP_HISTORY_MANAGER_TOKEN");var xTr=[10,20,30,40,50,60],K9=function(){this.currentPartitionIndex=0},B2Q=function(p){pSP({mainAppWeb:_.qH(),
survivalSli:{partitionMinute:p,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},fxi=function(p){pSP({mainAppWeb:_.qH(),
survivalSli:{partitionMinute:p,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},vrP=function(p){return p.currentPartitionIndex>=0&&p.currentPartitionIndex<xTr.length?xTr[p.currentPartitionIndex]:-1},XOM=function(p){return p.currentPartitionIndex>0&&p.currentPartitionIndex-1<xTr.length?xTr[p.currentPartitionIndex-1]:-1};
K9.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var p=XOM(this);p>0&&fxi(p);p=vrP(this);p>0&&B2Q(p);dTN(this)}};
var dTN=function(p){var y=vrP(p);if(y>0){var l=XOM(p);l<0&&(l=0);p.intervalId=_.TR.addJob(function(){var q=XOM(p);q>0&&fxi(q);q=vrP(p);q>0&&B2Q(q);dTN(p)},3,(y-l)*6E4);
p.currentPartitionIndex+=1}else p.currentPartitionIndex=-1};var O$O=function(){this.skipNextNavigation=!1},orr=function(p,y,l){if(!y)return!1;
if(p.skipNextNavigation)return p.skipNextNavigation=!1;if(_.G(l,_.Id))return!1;var q,t,E;if((q=_.G(l,_.wC))==null?0:(t=q.browseEndpointContextSupportedConfigs)==null?0:(E=t.browseEndpointContextMainConfig)==null?0:E.skipConfirmation)return!1;var e;return((e=_.G(y.commandMetadata,_.ul))==null?void 0:e.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
O$O.prototype.showConfirmationDialog=function(p,y){this.navigateParams=y;this.customConfirmationCommand?_.WC().resolve(_.aK).resolveCommand(this.customConfirmationCommand):(y={openPopupAction:{popup:{confirmDialogRenderer:{title:_.EK(_.g$("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.EK(_.g$("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.EK(_.g$("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.EK(_.g$("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.pt.getInstance().triggerAction("yt-open-popup-action",y,p))};
O$O.prototype.cancelPendingNavigation=function(){var p;((p=this.navigateParams)==null?void 0:p.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var zpZ=function(){},Ixx=function(p,y,l,q,t,E,e){l=l===void 0?{}:l;
e=e===void 0?{}:e;var C=_.NB.instance,u,a=(u=_.G(y,_.Id))==null?void 0:u.url;return a?I$c(C,a,l,window.location.href,function(m,U){YJM(p,m,U,!1,!0,l,E,q)},function(){return!1}):l8(C,y,l,window.location.href,rC(y),function(m,U){YJM(p,m,U,!1,!0,l,E,q)},t,e)},YJM=function(p,y,l,q,t,E,e,C){if(!p.JSC$14330_chunkHandler)if(l.page==="watch"||l.page==="learning_journey_watch")if(t||q){if(_.n("kevlar_continue_playback_without_player_response")){var u;
var a=(u=_.G(C,_.Eb))==null?void 0:u.videoId}p.JSC$14330_chunkHandler=new bZ$(_.$o,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:q,previousVideoId:a},tempData:E},e)}else p.JSC$14330_chunkHandler=new agx(_.$o);else l.page==="shorts"&&t&&!q?p.JSC$14330_chunkHandler=new jf$(_.$o,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:E},e):p.JSC$14330_chunkHandler=new mov(e);p.JSC$14330_chunkHandler.processChunk({endpoint:y,data:l});return p.JSC$14330_chunkHandler.sN.promise},
pqU=function(p,y,l,q,t){(l=_.elQ(l))&&YJM(p,y,l,!1,!0,q,void 0,t)};var yXr=function(){this.pendingNavigationPromise=null};
_.J=yXr.prototype;_.J.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.J.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.J.addEventListener=function(){throw Error("yh");};
_.J.dispatchEvent=function(){throw Error("yh");};
_.J.removeEventListener=function(){throw Error("yh");};var lCB=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],w4=function(){_.Fn.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];qOO(this)};
_.A(w4,_.Fn);w4.prototype.verifyUser=function(){var p=qOO(this),y=p.logout;if(!p.sessionChange)return!0;this.dispatchEvent("ytsessionchange");y&&this.dispatchEvent("ytuserinvalid");return!1};
var qOO=function(p){var y=lCB.map(function(t){var E;return(E=_.Q$.get(t))!=null?E:""}),l=y.some(function(t,E){return p.sessionCookies&&p.sessionCookies[E]!==""&&t===""}),q=y.some(function(t,E){return p.sessionCookies&&p.sessionCookies[E]!==t});
p.sessionCookies=y;return{logout:l,sessionChange:q}};
w4.prototype.clearTimeout=function(){this.scheduledJobId&&(_.TR.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var UTc=new _.WE("POSTMESSAGE_TUNNEL_TOKEN");var WUt=["/parent_tools","/file_download","/artist_roster"],b$g=[MjU,VjU,g6B,KLU,QgO,Z8V,wtM,i8B];var s0r=new _.WE("APP_ROOT");var i1=new _.WE("NAVIGATION_CONFIRMATION_SERVICE");var tvZ="/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(" "),Epr=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
r4=function(p,y){this.pendingNavigationPromise=null;this.JSC$14348_clientRoot=p;this.historyManager=y;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 zpZ;this.debugString=p.is;p={"yt-signal-action-history-back":this.handleSignalActionHistoryBack,"yt-signal-action-reload-page":this.handleSignalActionReloadPage.bind(this),
"yt-signal-action-soft-reload-page":this.handleSignalActionSoftReloadPage.bind(this),"yt-signal-action-reset-warm-loads":this.handleSignalActionResetWarmLoads.bind(this),"yt-signal-action-close-window":this.handleSignalActionCloseWindow};_.y2(_.pt.getInstance(),p,this.JSC$14348_clientRoot)},CT$,uSU,RMM,WMU,hMO;
_.A(r4,yXr);r4.prototype.reload=function(){_.lt(window.location.href)};
var ugr=function(p){p.currentEndpoint&&_.G(p.currentEndpoint,_.FC)?p.reload():p.currentEndpoint&&p.navigate(p.currentEndpoint,!0,void 0,{disableCache:!0})};
r4.prototype.navigate=function(p,y,l,q,t,E,e,C){y=y===void 0?!1:y;l=l===void 0?{}:l;q=q===void 0?{}:q;var u=_.WC().resolve(i1),a;if(!e&&orr(u,(a=this.currentEndpoint)!=null?a:void 0,p))return u.showConfirmationDialog(this.JSC$14348_clientRoot.parentElement,{endpoint:p,reload:y,params:l,tempData:q,requestType:t,createScreenConfig:E}),!1;var m=_.qB();_.sX(m,"eocs")||m.parkOrScheduleJob(function(){m.processSignal("eocs")},10,"eor");
e=rC(p);u=q.autonav==="1";a=_.B2();w4.instance||(w4.instance=new w4);var U=w4.instance.verifyUser(),b;if(_.n("enable_dark_theme_only_on_shorts")){var P=document.documentElement.hasAttribute("dark"),Z=_.HI(!0)==="USER_INTERFACE_THEME_DARK";if(e==="shorts"){if(!P)if(_.n("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var K;_.lt((K=_.G(p==null?void 0:p.commandMetadata,_.ul))==null?void 0:K.url,void 0,void 0,window.top)}}else{var F;_.lt(_.EC((F=_.G(p==null?
void 0:p.commandMetadata,_.ul))==null?void 0:F.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.n("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!P){var L;_.lt(_.EC((L=_.G(p==null?void 0:p.commandMetadata,_.ul))==null?void 0:L.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(Z!==P){var T;_.lt(_.EC((T=_.G(p==null?void 0:p.commandMetadata,_.ul))==null?void 0:T.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(e==="watch"){if(JXP(_.WC().resolve(_.IA),
p)&&(U||_.n("fix_miniplayer_navigation_killswitch")))return!1;_.n("block_all_player_prefetch_requests")||(b=hlZ(_.m8(_.D1),p,u))}else{var O,f=(O=_.G(this.currentEndpoint,_.Eb))==null?void 0:O.videoId;f&&_.B4.getInstance().then(function(Qu){Qu&&Qu.set("yt-miniplayer-shown-video-id",f)})}b&&(l.frags=b.missingFragments_.join(","));
K=null;var v;F=(v=_.G(p==null?void 0:p.commandMetadata,_.ul))==null?void 0:v.ignoreNavigation;if(!F)if(_.n("kevlar_command_url")){var z;K=(z=_.G(p==null?void 0:p.commandMetadata,_.ul))==null?void 0:z.url}else K=_.mru(p,l);if(K&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&K==this.lastNavigationUrl)return _.xw({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.QG(oG(),"CANCELLED")}K&&(this.lastNavigationUrl=K);HPl();_.dT("IS_HOMEPAGE_COLD",
!1);_.dT("IS_RESULTS_PAGE_COLD",!1);_.dT("IS_WATCH_PAGE_COLD",!1);p.loggingUrls&&p.loggingUrls.forEach(function(Qu){Qu.baseUrl&&_.pT(Qu.baseUrl)});
_.Aa6(p,E?E.layer:0)&&_.n("kevlar_flush_logs_on_away_navigation")&&_.xn();if(nrg(p))return!1;BvU(e,t);if(!K)return F||_.vs(new _.SM("Can't construct url for endpoint",p)),_.QG(oG(),"FAILURE"),!1;_.Rpj();v=p&&_.G(p,_.wC)&&_.G(p,_.wC).browseId.startsWith("UC");l=(z=_.n("enable_dark_theme_only_on_shorts")&&e==="shorts"?!1:_.T5()&&document.documentElement.hasAttribute("dark")!==_.Da())?{themeRefresh:1}:{};z&&!_.ws()&&_.HI()==="USER_INTERFACE_THEME_DARK"&&(l.theme="dark");v=z||cXv(K)&&!v&&!_.n("kevlar_disable_url_allowlist");
U||(v=!0);if(v||_.OY("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var sc;var hR=(sc=window.top)==null?void 0:sc.location.href}catch(Qu){var Wt;hR=(Wt=Qu)==null?void 0:Wt.message}_.vs(new _.SM("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:hR}))}p=_.n("kevlar_redirect_on_window_killswitch")?window.top:window;yU(K);_.lt(_.EC(K,l),void 0,void 0,p);_.QG(oG(),"ABORTED");return!1}_.n("kevlar_early_popup_close")&&_.$w(this.JSC$14348_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14330_chunkHandler=void 0;var AR;hR=rC((AR=this.currentEndpoint)!=null?AR:void 0);(AR=e==="shorts"&&hR==="shorts")||_.Bct();_.YZ(Qa_)("nr",void 0);u&&_.xw({webInfo:{navigationReason:"an"}});p.clickTrackingParams&&(q.itct=p.clickTrackingParams,q.csn=a);YWg(q);q.endpoint=JSON.stringify(p);_.n("enable_unknown_lact_fix_on_html5")&&(_.WC().resolve(_.Xf),q.lact=_.Rd());_.Ts.isEmpty(q)||_.hO(K,q);!_.n("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(E=Object.assign({},{layer:0},E,{parentLayer:3}));this.pendingNavigationPromise=E=Ixx(this.pageFetcher,p,q,this.currentEndpoint,this.JSC$14348_isNetworkPromiseStale.bind(this),E,C);E=E.then(this.handleNavigateSuccess.bind(this,E,p,b,q),this.handleNavigateFail.bind(this,E,p));_.Sy().navigationFinishPromise=E;y={endpoint:p,pageType:e,url:As(K),reload:!!y,noProgressBar:AR};t&&(y.type=t);this.fireEvent("yt-navigate-start",y);b&&pqU(this.pageFetcher,p,b,q,this.currentEndpoint);
return!0};
r4.prototype.JSC$14348_isNetworkPromiseStale=function(p){return p!=this.pendingNavigationPromise};
var eMr=function(p,y,l,q,t){var E=rC(y);y={endpoint:y,pageType:E};t&&(y.errorMessage=t);_.vs(l);y.navigationDoneMs=_.fy("nd");y.navigationErrorReason=q;p.fireEvent("yt-navigate-error",y)};
r4.prototype.handleNavigateFail=function(p,y,l){var q=void 0;l instanceof _.lW&&(q=l,WmL(l));if(this.JSC$14348_isNetworkPromiseStale(p))return _.vL(q);_.QG(oG(),"FAILURE");eMr(this,y,l,"101");return _.vL(l)};
r4.prototype.handleNavigateSuccess=function(p,y,l,q,t){if(this.JSC$14348_isNetworkPromiseStale(p))return _.PW();this.pendingNavigationPromise=null;if(!t)return y=new _.SM("Missing data in response for navigation endpoint",y),_.vL(y);if(t.reload)return window.location.reload(!0),_.PW();l&&(p={},_.Ts.extend(p,_.elQ(l),t),t=p);var E,e;l=(E=t)==null?void 0:(e=E.timing)==null?void 0:e.responseStart;l!=null&&_.fy("srt",l);_.fy("pdc");var C,u;E=(C=t)==null?void 0:(u=C.timing)==null?void 0:u.info;E!=null&&
(C=_.YZ(_.rc6)(E),_.xw(C));_.QG(oG(),"SUCCESS");hMO(this,y,t,1,q);return _.PW()};
var cXv=function(p){var y=p;_.n("kevlar_no_redirect_to_classic_2_ks")||(y=(new _.JO(p)).getPath());if(y==="/"||y==="/red")return!1;var l=!0;tvZ.forEach(function(q){p.indexOf(q)===0&&(l=!1)});
Epr.forEach(function(q){var t=q.url;_.n(q.expFlag)&&p.indexOf(t)===0&&(l=!1)});
return l};
r4.prototype.publishPageData=function(p){this.fireEvent("yt-page-data-fetched",{pageData:p})};
CT$=function(p,y,l,q,t,E){var e=null;y.page!=="watch"&&y.page!=="learning_journey_watch"||q?y.filler||_.$w(p.JSC$14348_clientRoot,"yt-stop-old-player",[y]):e=YJM(p.pageFetcher,t,y,l,!1,E,void 0,p.currentEndpoint);if(e)return e.then(p.publishPageData.bind(p,y));p.publishPageData(y);return _.PW()};
uSU=function(p,y,l){var q=null;if(!l)return q=new _.SM("Empty data",p.debugString,y);var t=l.response;if(!t)return q;var E={endpointType:rC(y)||"unknown"};t.responseContext?(t=t.responseContext.errors)&&(q=new _.SM("Errors in response context",p.debugString,y,t,E)):q=t.error||t.errorMetadata?new _.SM("Errors in response",p.debugString,y,t.error,t.errorMetadata,E):new _.SM("responseContext missing",p.debugString,y,Object.keys(t).sort().join(","),E);var e,C,u,a;if(p=l==null?void 0:(e=l.response)==null?
void 0:(C=e.responseContext)==null?void 0:(u=C.webResponseContextExtensionData)==null?void 0:(a=u.webResponseContextDebugData)==null?void 0:a.debugErrorMessages)for(e=0;e<p.length;e++);return q};
RMM=function(p){var y,l,q,t;return p==null?void 0:(y=p.response)==null?void 0:(l=y.responseContext)==null?void 0:(q=l.errors)==null?void 0:(t=q.error)==null?void 0:t["0"]};
WMU=function(p,y){var l;if(l=y.url&&!y.url.startsWith("/clip"))l=y.url,l=!_.n("webfe_parse_debug_param_in_resolveurl_service")&&p.searchDebugUrlMatcher.test(l)||Gfj(l)?!0:!1;if(l)Gfj(y.url)&&_.tJ(window.location.href).themeRefresh?(y=_.Cy(y.url,"themeRefresh"),_.g4(p.historyManager,y)):y.url&&!ept(y.url)&&_.g4(p.historyManager,y.url);else if(y.endpoint){var q,t,E;(l=(q=y.endpoint)==null?void 0:(t=q.commandMetadata)==null?void 0:(E=t.webCommandMetadata)==null?void 0:E.url)&&!ept(l)&&_.g4(p.historyManager,
l);l&&y.url&&l!=y.url&&!y.url.match("playnext=1")&&new _.SM("Response url mismatch in response data",p.debugString,l,y.url)}};
_.aCQ=function(p,y,l,q,t,E,e,C){E=E===void 0?!1:E;var u=_.WC().resolve(i1),a;if(!C&&orr(u,(a=p.currentEndpoint)!=null?a:void 0,y))return u.showConfirmationDialog(p.JSC$14348_clientRoot.parentElement,{endpoint:y,data:l,navigationType:q,tempData:t,isMiniplayer:E,isForwardHistoryNavigation:e==null?void 0:e.forward}),_.PW();p.pageFetcher.JSC$14330_chunkHandler=void 0;return hMO(p,y,l,q,t,E)};
hMO=function(p,y,l,q,t,E){E=E===void 0?!1:E;p.isMiniplayerExpansion=E;var e=q===2;p.currentEndpoint=y;p.numNavigations++;p.numNavigations&&(N4o.navigationCount=p.numNavigations);_.dT("NUM_NAV",p.numNavigations);var C=uSU(p,y,l);if(C)return eMr(p,y,C,"102",RMM(l)),_.vL(C);var u,a,m,U;C=l.rootVe||(l==null?void 0:(u=l.response)==null?void 0:(a=u.responseContext)==null?void 0:(m=a.webResponseContextExtensionData)==null?void 0:(U=m.ytConfigData)==null?void 0:U.rootVisualElementType);!e&&l&&WMU(p,l);var b,
P;u=l==null?void 0:(b=l.response)==null?void 0:(P=b.responseContext)==null?void 0:P.maxAgeSeconds;if(!e&&!isNaN(u)){var Z;_.n("kevlar_use_response_ttl_to_invalidate_cache")?Z=(0,_.uM)()+1E3*u:_.n("kevlar_always_invalidate_cache")&&(Z=0);isNaN(Z)||(l.expirationTime=Z)}_.m8(_.D1).prefetchCache_.clear();e||l.page!=="watch"||l.type!=="reduced"&&q!==1?q=CT$(p,l,e,!!E,y,t):(p.publishPageData(l),q=_.PW());t=q.then(function(){var K=rC(y);K={endpoint:y,pageType:K,fromHistory:e,response:l};K.navigationDoneMs=
_.fy("nd");p.fireEvent("yt-navigate-finish",K)});
l.csn&&C&&l.clientSideGrafts&&q.then(p.attachClientSideGrafts.bind(p,l,_.xc()));return t};
_.J=r4.prototype;_.J.attachClientSideGrafts=function(p,y){p.clientSideGrafts&&y&&p.clientSideGrafts.forEach(function(l){if(y&&l){var q=_.Tp(l);_.n("combine_ve_grafts")?_.Ll().graftServerVe(l,y):_.pW(p.csn,y,q)}})};
_.J.handleSignalActionHistoryBack=function(){window.history.back()};
_.J.handleSignalActionCloseWindow=function(){window.close()};
_.J.handleSignalActionReloadPage=function(){this.reload()};
_.J.handleSignalActionSoftReloadPage=function(){ugr(this)};
_.J.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.J.fireEvent=function(p,y){p=new CustomEvent(p,{bubbles:!0,cancelable:!1,composed:!0,detail:y});this.dispatchEvent(p)};
_.J.addEventListener=function(p,y){this.JSC$14348_clientRoot.addEventListener(p,y)};
_.J.dispatchEvent=function(p){return this.JSC$14348_clientRoot.dispatchEvent(p)};
_.J.removeEventListener=function(p,y){this.JSC$14348_clientRoot.removeEventListener(p,y)};
r4[RL]=[s0r,_.Qd];_.qkm=new G7("browse","h8y2qb");_.ssg=new G7("search","JzFVk");_.tnm=new G7("shorts","xwEKAe");_.EEt=new G7("watchFixie","nmfa2d");_.JYl=new G7("watchFlexy","CF909");_.cYa=new G7("watchGrid","Tm0L3c");_.eTo=new G7("watchLearningJourney","L3n37");var mXM;var UXU=function(){return _.w.apply(this,arguments)||this};
_.A(UXU,_.w);_.Jh.Object.defineProperties(UXU,{template:{configurable:!0,enumerable:!0,get:function(){if(mXM===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-player">\n  \n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);mXM=p}p=mXM;return p}}});
_.H([_.V(UT$.YtPlayerBehavior),_.x("design:type",Object)],UXU.prototype,"ytPlayerBehavior",void 0);_.H([_.k({is:"ytd-player"})],UXU);var $XV;var j0N;var bVO;var SE=function(){var p=_.w.apply(this,arguments)||this;p.forceModernIconButton=!1;p.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return p};
_.A(SE,_.w);SE.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]]"}}}}}};
SE.prototype.handleAccountLinkingStateChangedCommand=function(p){if(p=_.G(p,uaB)){var y,l=(y=this.data)==null?void 0:y.providerKey;y=p.providerKey;l&&y&&l.id===y.id&&l.subject===y.subject&&(p=p.linked,p!==void 0&&(this.set("data.linked",p),this.notifyPath("data.linked"),_.n("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(p)))}};
SE.prototype.setPlayerAccountLinkState=function(p){var y=new tCi;EdZ(y,qTP(new lZZ,p));var l=_.$o();l&&l.getPlayerPromise().then(function(q){q.setAccountLinkState(_.HR(y.JSC$12053_serializeBinary(),4));q.updateAccountLinkingConfig(p)})};
SE.prototype.handleShowAccountLinkDialog=function(){var p=this.get("button.buttonRenderer.command");p&&_.Zb([p],this.hostElement)};
_.Jh.Object.defineProperties(SE.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}}}});
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],SE.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],SE.prototype,"ytRendererBehavior",void 0);_.H([_.V([_.no.YtActionHandlerBehavior]),_.x("design:type",Object)],SE.prototype,"actionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],SE.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],SE.prototype,"overrides",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],SE.prototype,"forceModernIconButton",void 0);_.H([_.Q({value:"bottom"}),_.x("design:type",String)],SE.prototype,"buttonTooltipPosition",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],SE.prototype,"forceIconButton",void 0);_.H([_.Q(),_.x("design:type",Boolean)],SE.prototype,"disableTextTransform",void 0);
_.H([_.g("data","data.linked","data.isWarning"),_.x("design:type",Object),_.x("design:paramtypes",[])],SE.prototype,"button",null);_.H([_.k({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],SE);
_.D(SE,"ytd-account-link-button-renderer",function(){if(bVO!==void 0)return bVO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-link-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-account-link-button-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return bVO=p},{mode:1});var npx;var GaB=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],F7=function(){return _.w.apply(this,arguments)||this};
_.A(F7,_.w);F7.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
F7.prototype.updateButtonActiveState=function(){var p=this,y=!!GaB.find(function(l){return p.currentState===l});
this.button&&(this.button.isPressed=y)};
_.Jh.Object.defineProperties(F7.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.playlistLoopStateEntity)==null?void 0:p.state)||((y=this.data)==null?void 0:y.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var p=void 0,y;if(this.currentState&&((y=this.data)==null?0:y.states)){y=_.c(this.data.states);for(var l=y.next();!l.done;l=y.next()){l=_.G(l.value,_.wPV);var q=void 0;if(((q=l)==null?void 0:q.state)===this.currentState){p=l;break}}}return p}}});
F7.prototype.updateButtonActiveState=F7.prototype.updateButtonActiveState;_.H([_.V(_.zL),_.x("design:type",Object)],F7.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],F7.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.Q({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.wOt}),_.x("design:type",Object)],F7.prototype,"playlistLoopStateEntity",void 0);_.H([_.Q(),_.x("design:type",Object)],F7.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Boolean)],F7.prototype,"forceIconOnly",void 0);_.H([_.rd("ytd-button-renderer"),_.x("design:type",_.aP)],F7.prototype,"button",void 0);
_.H([_.g("data","playlistLoopStateEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],F7.prototype,"currentState",null);_.H([_.gd("currentButtonStateRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],F7.prototype,"updateButtonActiveState",null);_.H([_.g("currentState"),_.x("design:type",Object),_.x("design:paramtypes",[])],F7.prototype,"currentButtonStateRenderer",null);
_.H([_.k({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],F7);
_.D(F7,"ytd-playlist-loop-button-renderer",function(){if(npx!==void 0)return npx;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-loop-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-playlist-loop-button-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return npx=p},
{mode:1});var PTN;var AXN=_.g$("DOWNLOAD",{},"Download"),ZVZ=_.g$("DOWNLOADING",{},"Downloading"),MvP=_.g$("DOWNLOADED",{},"Downloaded"),VvU=_.g$("RETRY",{},"Retry"),L9=function(){var p=_.w.apply(this,arguments)||this;p.forceIconButton=!1;p.forceIconOnly=!1;p.overrides=!1;p.buttonTooltipPosition=!1;p.styleActionButton=!1;p.disableTextTransform=!1;p.downloadProgress=0;p.isDownloadComplete=!1;p.isHidden=!0;p.transferState="TRANSFER_STATE_UNKNOWN";p.isVideoDeletedByUser=!1;p.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return p};
_.A(L9,_.w);_.J=L9.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.dataChanged=function(){var p;(p=this.data)!=null&&p.text||(p=_.Ot(_.ei().getState(),this.videoId),this.updateButtonState(p))};
_.J.computeVideoId=function(p){return p};
_.J.showHideButton=function(){this.updateButtonVisibility()};
_.J.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.J.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.J.updateButtonState=function(p){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==ZVZ||!_.rN(p))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(p){case "TRANSFER_STATE_UNKNOWN":p=AXN;var y="OFFLINE_DOWNLOAD";var l="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":p=VvU;y="OFFLINE_DOWNLOAD";l="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":p=MvP;y="OFFLINE_PIN";l="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":p=
ZVZ;y="OFFLINE_DOWNLOADING_ZERO";l="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":p=VvU;y="OFFLINE_DOWNLOAD";l="ACTION_RETRY";break;default:p=AXN,y="OFFLINE_DOWNLOAD",l="ACTION_ADD"}this.isVideoDeletedByUser&&(p=AXN,y="OFFLINE_DOWNLOAD",l="ACTION_ADD");var q=Object.assign({},this.data);q.text=_.EK(p);q.tooltip=p;q.icon={iconType:y};q.size="SIZE_DEFAULT";q.style="STYLE_DEFAULT";_.G(q.command,_.wi)&&(_.G(q.command,_.wi).action=l);this.set("data",q)}};
_.J.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var p="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?p="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?p="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?p="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?p="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?p="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(p="OFFLINE_PIN",this.isDownloadComplete=!0);var y;p!==((y=this.data.icon)==null?void 0:y.iconType)&&(y=Object.assign({},this.data),y.text=_.EK(ZVZ),y.tooltip=ZVZ,y.icon={iconType:p},_.G(y.command,_.wi)&&(_.G(y.command,_.wi).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",y))}};
L9.prototype.updateProgress=L9.prototype.updateProgress;L9.prototype.onTransferStateChanged=L9.prototype.onTransferStateChanged;L9.prototype.showHideButton=L9.prototype.showHideButton;L9.prototype.dataChanged=L9.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],L9.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],L9.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],L9.prototype,"forceIconButton",void 0);
_.H([_.Q(),_.x("design:type",Object)],L9.prototype,"forceIconOnly",void 0);_.H([_.Q(),_.x("design:type",Object)],L9.prototype,"overrides",void 0);_.H([_.Q(),_.x("design:type",Object)],L9.prototype,"buttonTooltipPosition",void 0);_.H([_.Q(),_.x("design:type",Object)],L9.prototype,"styleActionButton",void 0);_.H([_.Q(),_.x("design:type",Object)],L9.prototype,"disableTextTransform",void 0);
_.H([_.Q({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.x("design:type",String)],L9.prototype,"videoId",void 0);_.H([_.Q(),_.x("design:type",Object)],L9.prototype,"data",void 0);_.H([_.Q({selector:zU,selectorArgs:["videoId"]}),_.x("design:type",Object)],L9.prototype,"downloadProgress",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],L9.prototype,"isDownloadComplete",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],L9.prototype,"isHidden",void 0);_.H([_.Q({selector:_.Ot,selectorArgs:["videoId"]}),_.x("design:type",String)],L9.prototype,"transferState",void 0);_.H([_.Q({selector:_.v7j,selectorArgs:["videoId"]}),_.x("design:type",Object)],L9.prototype,"isVideoDeletedByUser",void 0);_.H([_.Q({selector:Dbu,selectorArgs:["videoId"]}),_.x("design:type",Object)],L9.prototype,"offlineabilityState",void 0);
_.H([_.Q({value:!0}),_.x("design:type",Boolean)],L9.prototype,"showTooltips",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],L9.prototype,"sendCommandWhenDisabled",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],L9.prototype,"disabled",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],L9.prototype,"dataChanged",null);
_.H([_.k8("offlineabilityState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],L9.prototype,"showHideButton",null);_.H([_.k8("transferState","isVideoDeletedByUser"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],L9.prototype,"onTransferStateChanged",null);_.H([_.k8("downloadProgress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],L9.prototype,"updateProgress",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],L9);
_.D(L9,"ytd-download-button-renderer",function(){if(PTN!==void 0)return PTN;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-button-renderer"></ytd-button-renderer>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return PTN=p},{mode:2});var gp$;var Q0P,KM$=function(){if(Q0P!==void 0)return Q0P;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]">\n</yt-button-shape>\n<tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>\n');return Q0P=p};var wqN=_.n("web_button_rework")&&_.o4("BUTTON_REWORK")||_.n("web_button_rework_with_live"),iVx=_.UC("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,kG=function(){var p=_.w.apply(this,arguments)||this;p.isPressed=!1;p.forceIconButton=!1;p.forceIconOnly=!1;p.forceModernIconButton=!1;p.alignByText=!1;p.isShorts=!1;p.animatedText=!1;p.shouldAnimate=!1;p.JSC$14385_browserSupportsAnimation=_.n("web_supports_animations_api");p.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};p.onTap=function(){var y;if((y=p.data)==null||!y.defaultNavigationEndpoint){var l;y=!((l=p.data)==null?0:l.isToggled);var q;if((q=p.data)==null||!q.preventAutoToggle){p.shouldAnimate=!1;p.disableTextUpdateJobId&&_.TR.cancelJob(p.disableTextUpdateJobId);p.disableTextUpdateJobId=_.TR.addLowPriorityJob(function(){p.disableTextUpdateJobId=void 0},iVx);
var t;p.set("data.isToggled",!((t=p.data)==null?0:t.isToggled));l=p.getInnertubeIcon();q={toggled:y,actions:{}};l&&(q.actions[l.toLowerCase()]=y);_.Ub(p.hostElement,"yt-toggle-button",q)}}};
return p};
_.A(kG,_.w);_.J=kG.prototype;_.J.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.TR.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.toggle=function(p){var y;this.set("data.isToggled",p!==void 0?p:!((y=this.data)==null?0:y.isToggled))};
_.J.handleUpdateToggleButtonStateCommand=function(p){if(this.data){p=_.G(p,GCx);var y,l,q,t=(y=this.data)==null?void 0:(l=y.toggleButtonSupportedData)==null?void 0:(q=l.toggleButtonIdData)==null?void 0:q.id;t&&p&&t===(p==null?void 0:p.buttonId)&&this.set("data.isToggled",p.toggled)}};
_.J.handleUpdateToggleButtonTextAction=function(p){if(this.data){p=_.G(p,cGr);var y,l,q,t=(y=this.data)==null?void 0:(l=y.toggleButtonSupportedData)==null?void 0:(q=l.toggleButtonIdData)==null?void 0:q.id;t&&p&&t===(p==null?void 0:p.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=p.defaultNumericalValue,this.set("data.defaultText",p.defaultText),this.set("data.toggledText",p.toggledText),this.shouldAnimate=!1)}};
_.J.getInnertubeIcon=function(){var p=this.data;if(p){var y,l,q=((y=p.defaultIcon)==null?0:y.iconType)?(l=p.defaultIcon)==null?void 0:l.iconType:null,t,E;y=((t=p.toggledIcon)==null?0:t.iconType)?(E=p.toggledIcon)==null?void 0:E.iconType:q;return p.isToggled?y:q}};
_.J.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Jh.Object.defineProperties(kG.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var p={renderer:this.data,element:this.hostElement,toggled:!!this.data.isToggled,onTapCallback:this.onTap,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceModernIconButton:this.forceModernIconButton,forceDisabled:this.disabled,nextVersion:!0,useAnimatedText:this.animatedText&&this.JSC$14385_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var y=p.renderer;var l=p.element;var q=p.toggled;var t=p.onTapCallback;var E=p.commandClientArgs;var e=p.overrides;var C=p.forceIcon;var u=p.forceModernIconButton;var a=p.forceDisabled;var m=p.useAnimatedText;var U=p.animatedTextProps;p=FUu(y,q);C=!y.defaultIcon||!C&&y.defaultText?y.defaultIcon?"leading":void 0:u?"icon-only":"icon-only-40";C==="icon-only-40"&&(p.type="text");var b;u=Object;var P=u.assign,Z;a:switch((Z=
y.style)==null?void 0:Z.styleType){case "STYLE_COMPACT_GRAY":Z={size:"S"};break a;default:Z={size:"M"}}var K=!!q;var F=(F=q&&y.toggledText||y.defaultText)?_.zp(F):void 0;m?(m=_.JB(q&&y.toggledText||y.defaultText))&&U&&!isNaN(Number(U.numberValue))?(U.numberText=m,q&&(U.numberValue+=1),m=U):m=void 0:m=void 0;var L,T,O,f;var v=(U=((T=q?y.toggledAccessibilityData||((v=y.toggledText)==null?void 0:v.accessibility):y.accessibilityData||((L=y.defaultText)==null?void 0:L.accessibility))==null?void 0:(O=T.accessibilityData)==
null?void 0:O.label)||((f=y.accessibility)==null?void 0:f.label))?U:_.JB(q&&y.toggledText||y.defaultText);a=a===void 0?y.isDisabled:a;l=SJt(y,q,t,l,E);q=raj(y,q);q!=null&&q.length?(q=_.qW({innertubeCommand:Wvm(q),forceNewState:!0}),q=s5(q)?q:void 0):q=void 0;y=P.call(u,{},p,Z,{iconPosition:C},e,{focused:!1,toggled:K,toggleable:!0,formattedButtonText:F,animatedTextProps:m,accessibilityLabel:v,disabled:a,onTap:l,aTagConfig:q},d7_((b=y.colorData)==null?void 0:b.basicColorPaletteData));y.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(y.type="filled");return y}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var p=this.getInnertubeIcon();if(p)return _.QZ(p)}}});
kG.prototype.resetAnimation=kG.prototype.resetAnimation;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],kG.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],kG.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],kG.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Object)],kG.prototype,"isPressed",void 0);_.H([_.Q(),_.x("design:type",Object)],kG.prototype,"forceIconButton",void 0);_.H([_.Q(),_.x("design:type",Object)],kG.prototype,"forceIconOnly",void 0);_.H([_.Q(),_.x("design:type",Object)],kG.prototype,"forceModernIconButton",void 0);_.H([_.Q(),_.x("design:type",Object)],kG.prototype,"alignByText",void 0);_.H([_.Q(),_.x("design:type",Object)],kG.prototype,"overrides",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],kG.prototype,"disabled",void 0);_.H([_.Q(),_.x("design:type",Object)],kG.prototype,"isShorts",void 0);_.H([_.Q(),_.x("design:type",Object)],kG.prototype,"buttonTooltipPosition",void 0);_.H([_.Q(),_.x("design:type",Object)],kG.prototype,"animatedText",void 0);_.H([_.Q(),_.x("design:type",String)],kG.prototype,"textNumberValue",void 0);_.H([_.Q({computed:"computeTooltip(data, data.isToggled)"}),_.x("design:type",Object)],kG.prototype,"tooltip",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kG.prototype,"resetAnimation",null);_.H([_.g("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.x("design:type",Object),_.x("design:paramtypes",[])],kG.prototype,"computedButtonShape",null);_.H([_.g("data.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],kG.prototype,"computedIcon",null);
_.H([_.k({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],kG);wqN&&_.D(kG,"ytd-toggle-button-renderer",KM$,{mode:_.ZS("kevlar_poly_si_batch_j081")?1:2});var WQt=_.aF(function(p){function y(a){var m;return _.h(function(U){if(U.nextAddress==1)return(m=!kNu(a,C())||!C().enabled)?U.jumpTo(2):U.yield(xTm(),3);U.nextAddress!=2&&(m=U.yieldResult);if(m)return U.return();l();setTimeout(function(){e(!1)},1500);
_.rR(U)})}
function l(){setTimeout(function(){e(!0);var a;(a=q.lottieEl)==null||a.goToAndPlay(0)},150)}
var q=_.QS(),t=_.c(_.nr(!1,void 0,"JJXzp")),E=t.next().value,e=t.next().value,C=_.uy(p.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.xZ(function(){var a,m;((a=p.settings)==null?void 0:(m=a.call(p))==null?void 0:m.uniqueId)==="this is not intended behavior"&&_.vs(new _.SM("Smartimation Settings is undefined"))});
_.NA(function(){C().experimentEnabled&&(C().enabled?N2L(y):(e(!1),DT6(y)),_.TP(function(){DT6(y)}))},"FRiAUe");
_.NA(function(){C().timings.join("");C().experimentEnabled&&(H$o(C()),_.TP(function(){T2m(C())}))},"VKiJOe");
var u=_.MA(function(){var a=q,m=C().uniqueId+"-border",U,b;var P="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((b=(U=_.WC().resolve(_.RK(_.hb)))==null?void 0:U())!=null&&b?"dark":"light")+"_v2.json";return{animationRef:a,animationConfig:{name:m,autoplay:!1,loop:!1,path:P}}},void 0,"tgykab");
t={};return _.R("yt-smartimation",{class:_.ip(p.className,"smartimation",(t["smartimation--experiment-enabled"]=function(){return C().experimentEnabled},t["smartimation--active-border"]=E,t["smartimation--enable-masking"]=B2u(),t))},_.R(_.W,{cond:function(){return C().experimentEnabled},
then:function(){return _.R("div",{class:"smartimation__border"},_.R(_.GS,{className:"smartimation__border-gradient",data:u,animationName:function(){return u().animationConfig.name}}))}}),_.R("div",{class:"smartimation__content"},p.children))},"D");
WQt.idomCompat=!0;_.bp(WQt,"yt-smartimation",{props:{className:_.Co,settings:_.Co}});var NI=function(){var p=_.w.apply(this,arguments)||this;p.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};p.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};p.shouldEnableSmartimation=!1;return p};
_.A(NI,_.w);NI.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
NI.prototype.onDataChanged=function(){var p,y;this.shouldEnableSmartimation=(((p=this.data)==null?void 0:(y=p.timedAnimationData)==null?void 0:y.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
NI.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var p=_.G(this.data.likeButton,_.lV),y=_.G(this.data.dislikeButton,_.lV);return!!((p==null?0:p.isToggled)||(y==null?0:y.isToggled))};
NI.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]]"}}}}}};
_.Jh.Object.defineProperties(NI.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var p,y,l=((p=this.data)==null?void 0:(y=p.timedAnimationData)==null?void 0:y.animationTiming)||[];return{uniqueId:"like-dislike",timings:l,enabled:this.shouldEnableSmartimation,experimentEnabled:l.length>0}}}});
NI.prototype.onDataChanged=NI.prototype.onDataChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],NI.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],NI.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],NI.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],NI.prototype,"likeButtonOverride",void 0);_.H([_.Q(),_.x("design:type",Object)],NI.prototype,"dislikeButtonOverride",void 0);
_.H([_.g("shouldEnableSmartimation"),_.x("design:type",Object),_.x("design:paramtypes",[])],NI.prototype,"smartimationSettings",null);_.H([_.gd("data"),_.VU("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NI.prototype,"onDataChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],NI);
_.D(NI,"ytd-segmented-like-dislike-button-renderer",function(){if(gp$!==void 0)return gp$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-segmented-like-dislike-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-buttons-wrapper" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-like-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div><div id="segmented-dislike-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div></div></yt-smartimation>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return gp$=p},{mode:1});var rXv;var SOx;(SOx=document.body)==null||SOx.setAttribute("rounded-container","");var FM$={};FM$.YtToggleButtonBehavior=[_.no.YtActionHandlerBehavior,Du.YtRenderButtonBehavior,{_noAccessors:!0,properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.isToggled)","stateChanged_(data.defaultText)","stateChanged_(data.toggledText)","stateChanged_(forceIconOnly)"],created:function(){this.toggleButtonActionMap_={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction_","yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand_"}},
attached:function(){this.registerActionMap(this.toggleButtonActionMap_)},
detached:function(){this.unregisterActionMap(this.toggleButtonActionMap_)},
onYtToggleButtonTapHandler:function(){},
onYtButtonTapHandler:function(){var p=this.data.isToggled;if(!this.isModal_(p)){if(!this.data.preventAutoToggle){this.toggle();var y={toggled:this.data.isToggled,actions:{}};y.actions[this.buttonIcon]=this.data.isToggled;_.Ub(this.hostElement,"yt-toggle-button",y)}y=this.data.defaultServiceEndpoint||null;var l=this.data.toggledServiceEndpoint||null;if(y&&l||y&&this.data.preventAutoToggle)p=p?l:y,y=this.disableCommandHandlerOverride,_.n("killswitch_toggle_button_behavior_resolve_command")||y?_.ny(this.hostElement,
[p]):_.iy(p,this.hostElement),_.Ub(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:p})}},
stateChanged_:function(){var p=this.data;if(p){var y=p.isToggled;this._setEndpoint(this.computeEndpoint_(p));this._setServiceEndpoint(this.computeServiceEndpoint_(p));this._setButtonIcon(this.computeButtonIcon_(p,y));this._setButtonText(this.computeButtonText_(p,y));this._setButtonAccessibility(this.computeAccessibility_(p,y));this._setButtonTooltip(this.computeTooltip_(p,y));this._setButtonClass(this.computeButtonClass_(p,y));this._setIconPositionType(this.computeIconPositionType_(p));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=y):this.elements_.button.setAttribute("aria-pressed",y));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=y)}},
shouldSetIconActiveState_:function(){return _.n("kevlar_system_icons")},
toggle:function(p){this.set("data.isToggled",p!==void 0?p:!this.data.isToggled);_.n("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(p){if(p){var y,l;return!!((y=this.data)==null?0:(l=y.toggledServiceEndpoint)==null?0:l.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(p){return p&&p.defaultNavigationEndpoint||null},
computeButtonIcon_:function(p,y){var l=p&&p.defaultIcon?_.QZ(p.defaultIcon.iconType):null;p=p&&p.toggledIcon?_.QZ(p.toggledIcon.iconType):l;return y?p:l},
handleUpdateToggleButtonStateCommand_:function(p){p=p.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==p.buttonId&&this.toggle(p.toggled)},
computeButtonText_:function(p,y){return p?y&&p.toggledText||p.defaultText||null:null},
computeAccessibility_:function(p,y){return p?(y?this.get("toggledAccessibilityData.accessibilityData",p):this.get("accessibilityData.accessibilityData",p))||p.accessibility||null:null},
computeTooltip_:function(p,y){return p?y&&p.toggledTooltip||p.defaultTooltip||null:null},
computeButtonClass_:function(p,y){if(!p)return"";var l="",q=p.toggledStyle||p.style;if(y=y?q:p.style){y.styleType&&(y=y.styleType);try{l+=y.toLowerCase().replace(/_/g,"-")+" "}catch(t){_.X$(t,y,typeof y),_.vs(t)}}if(p=p.size){p.sizeType&&(p=p.sizeType);try{l+=p.toLowerCase().replace(/_/g,"-")+" "}catch(t){_.X$(t,p,typeof p),_.vs(t)}}return l.trim()},
computeIconPositionType_:function(p){return p&&p.iconPosition||null},
computeServiceEndpoint_:function(p){var y=p&&p.serviceEndpoint,l=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return y?y:l&&p.command?p.command:null},
handleUpdateToggleButtonTextAction_:function(p){p=p.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==p.buttonId&&(this.set("data.defaultText",p.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",p.toggledText),this.notifyPath("data.toggledText"))}}];_.ox("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var LM$=_.n("web_button_rework")&&_.o4("BUTTON_REWORK")||_.n("web_button_rework_with_live"),Do=function(){var p=_.w.apply(this,arguments)||this;p.systemIcons=_.n("kevlar_system_icons");p.roundedContainer=!0;return p};
_.A(Do,_.w);Do.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Do.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var p=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var y={toggled:!!this.data.isToggled,actions:{}};y.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var l,q;y.actions.playlistId=(l=this.data.defaultServiceEndpoint)==null?void 0:(q=l.playlistEditEndpoint)==null?void 0:q.playlistId;_.Ub(this.hostElement,"yt-toggle-button",y)}(p=p?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(p)}};
Do.prototype.onYtNavigate=function(p){var y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(p.detail.endpoint);y&&(p.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(y))};
_.Jh.Object.defineProperties(Do,{template:{configurable:!0,enumerable:!0,get:function(){if(rXv===void 0){var p=document.createElement("template");_.M(p,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);rXv=p}p=rXv;return p}}});
Do.prototype.onYtNavigate=Do.prototype.onYtNavigate;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Do.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.RP),_.x("design:type",Object)],Do.prototype,"ytdOpenPopupBehavior",void 0);_.H([_.V(FM$.YtToggleButtonBehavior),_.x("design:type",Object)],Do.prototype,"ytToggleButtonBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],Do.prototype,"data",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],Do.prototype,"showTooltips",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Do.prototype,"systemIcons",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Do.prototype,"roundedContainer",void 0);_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Do.prototype,"onYtNavigate",null);
_.H([_.k({is:"ytd-toggle-button-renderer",disableElementRegistration:LM$})],Do);var kaZ;_.H8=new _.WE("PANEL_CONTROLLER_TOKEN");_.Tu=new _.WE("SHEET_CONTROLLER_TOKEN");_.xG=new _.WE("DIALOG_CONTROLLER_TOKEN");kaZ=new _.WE("DIALOG_CONTAINER_TOKEN");var Ix6=_.g$("DOWNLOAD",{},"Download"),pq8=_.g$("DOWNLOADING",{},"Downloading"),yX5=_.g$("DOWNLOADED",{},"Downloaded"),lCj=_.g$("RETRY",{},"Retry");var s0m=[],tvR=!1;var NpQ=_.aF(function(p){var y=CTc,l=function(){return""},q=JXL(p.data),t=cXg(p.data),E=eMm(p.data),e=hMa(p.data);
y=function(){var C=p.data(),u=zpR(C,q(),t(),E(),e()),a=!!C.videoId,m=u.text;return{title:a?m:void 0,tooltip:a?void 0:m,accessibilityText:m,onTap:u.onTap,iconName:u.iconType,style:C.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:u.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:C.buttonSize}};
l={};l=_.ip("ytDownloadButtonViewModelHost",(l.ytDownloadButtonViewModelIsHidden=function(){var C=p.data(),u=e();return C.playlistId||u()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||u()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},l));
return _.R("download-button-view-model",{class:l},_.R(_.wZ,{data:y}))},"E");
NpQ.idomCompat=!0;var HVN=_.aF(function(p){var y=p.backgroundLottieRef;var l=p.foregroundLottieRef;var q=p.children;var t=p.wrapperClass;var E=p.disableAnimation;p=function(){return(_.n("web_animated_actions")||_.n("web_animated_actions_v2"))&&!(E==null?0:E())};
return _.R("yt-animated-action",{class:_.ip("animated-action__container",t)},_.R("div",{class:"animated-action__content-with-background"},_.R(_.W,{cond:p,then:function(){return _.R(DXx,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:y==null?void 0:y(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(uS8()?"dark":"light")+"_v5.json"}}}})}}),q),_.R(_.W,{cond:p,
then:function(){return _.R(DXx,{lottiePlayerProps:function(){return{animationRef:l==null?void 0:l(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(uS8()?"dark":"light")+"_v4.json"}}}})}}))},"F");
HVN.idomCompat=!0;var DXx=_.aF(function(p){var y=p.wrapperClass;var l=p.lottieClass;var q=p.lottiePlayerProps;return _.R("div",{class:_.ip("animated-action__lottie",y),"aria-hidden":"true"},_.R(_.GS,{className:l,data:q,animationName:function(){return q().animationConfig.name}}))},"G");var RMl={isOpen:!1};var aCu={isAllowed:!1};var UXt={errorMessage:"",title:"",privacy:"",isDisabled:!0};var j0_={isOpen:!1};var np6={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var TpM={response:void 0};var PT_=function(p,y){p=p===void 0?TpM:p;switch(y.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},p,{response:y.payload});default:return p}};var xXv={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var AX_=function(p,y){p=p===void 0?xXv:p;switch(y.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},p,{nextDisabled:y.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},p,{nextCommand:y.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},p,{footerSubmissionData:y.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},p,{isImpersonationValid:y.payload});default:return p}};var BpU={reportFormData:void 0,reportDetailsFormData:void 0};var ZVR=function(p,y){p=p===void 0?BpU:p;switch(y.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},p,{reportFormData:y.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},p,{reportDetailsFormData:y.payload});default:return p}};var fC$=void 0;_.n("mweb_enable_redux_store_on_demand")||(fC$=new cI(MvL()));var B8=_.n("enable_web_delhi_icons");var vpQ=_.aF(function(p){p=_.RF(p,{themeOverride:void 0,animationRef:{}});var y=p.animatedIconType,l=p.active,q=p.themeOverride,t=p.animationRef;p=p.staticIconFn;var E=_.c(_.nr(void 0,void 0,"P5a72b")),e=E.next().value,C=E.next().value,u=function(){a:{var F=y();var L=q==null?void 0:q();var T;L=(L==null?void 0:L.useDarkTheme)||((T=_.WC().resolve(_.RK(_.hb)))==null?void 0:T());switch(F){case "LIKE":fC$||(fC$=new cI(MvL()));F=(F=PJ5(fC$.getState()))&&F.animationLightUrl&&F.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:L?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:L?F.animationDarkUrl:F.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(F){L=F;break a}L="animated_like_icon_"+(L?"dark":"light")+"_"+(B8?"v5":"v4");L={lottiePlayerProps:{animationConfig:{name:L,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+L+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(B8?" animated-like-icon-delhi":"")}}},totalFrames:B8?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":L={lottiePlayerProps:{animationConfig:{name:L?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(L?"dark":"light")+(B8?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(B8?" animated-subscribe-icon-delhi":"")}}},totalFrames:B8?120:79,lazyLoad:!1};break a}L=
void 0}return L},a=function(){var F,L;
return(L=(F=u())==null?void 0:F.lottiePlayerProps.animationConfig.name)!=null?L:""},m=function(){if(u()){var F=u().lottiePlayerProps.animationConfig.path;
return wD.get(F)||e()}};
E=_.c(_.nr(!1,void 0,"h6xR3c"));var U=E.next().value;E=E.next().value;var b=gpc(E),P=function(){var F=u(),L,T,O;return(O=F==null?void 0:(L=F.lottiePlayerProps.animationConfig)==null?void 0:(T=L.rendererSettings)==null?void 0:T.className)!=null?O:""},Z=void 0,K=void 0;
_.NA(function(){var F=u(),L=a(),T=m(),O=U(),f=l();if(F&&(K!==L&&(K=L,Z=f,L=t(),b.animationConfig=F.lottiePlayerProps.animationConfig,b.animationRef=L,T&&(b.animationConfig.animationData=T,b.animationConfig.path=void 0),L=F.lottiePlayerProps.animationConfig.path,!wD.get(L)&&F.lazyLoad&&L&&Vv8(L,C)),!(O||F.lazyLoad&&!T))){if(T=!t().lottieEl)f?(O=F.totalFrames,b.animationConfig.initialSegment=[O-1,O]):b.animationConfig.initialSegment=void 0;if(Z!==f&&!T)if(T=t(),f){var v;(v=T.lottieEl)==null||v.playSegments([0,
F.totalFrames],!0)}else{var z;(z=T.lottieEl)==null||z.playSegments([0,1],!0)}Z=f}},"YCYOCe");
return _.R("animated-icon",{class:"ytAnimatedIconHost"},_.R(_.W,{cond:function(){var F,L;return!((F=u())==null||!F.lottiePlayerProps.animationConfig.path||((L=u())==null?0:L.lazyLoad)&&!m()||U())},
then:function(){return _.R(_.GS,{data:b,animationName:a,className:P,animationRef:t})},
else:p}))},"H");_.f9=_.aF(function(p){var y=_.sM("yt-subscribe-button-view-model"),l=_.sM("div"),q=_.sM("div"),t=_.QS(),E=_.QS(),e=_.QS(),C=_.So(Z$R,function(){return p.data().stateEntityStoreKey}),u=_.So(MQc,function(){var Xo,U$;
return(U$=(Xo=p.data().notificationStateEntityStoreKeys)==null?void 0:Xo.subsNotificationStateKey)!=null?U$:""}),a=function(){return!p.data().enableSubscribeButtonPostClickAnimation},m=_.c(_.nr(0,void 0,"eTsWvc")),U=m.next().value,b=m.next().value;
m=_.c(_.nr(0,void 0,"dniDQ"));var P=m.next().value,Z=m.next().value;m=_.c(_.nr(!1,void 0,"EluPic"));var K=m.next().value,F=m.next().value;m=_.c(_.nr(!1,void 0,"r0jnre"));var L=m.next().value,T=m.next().value;m=_.c(_.nr(!1,void 0,"KMvoQe"));var O=m.next().value,f=m.next().value,v;m=_.c(_.nr(!1,void 0,"aSENce"));var z=m.next().value,sc=m.next().value,hR=function(){T(!0);_.D6(_.TR,function(){T(!1)},1500)};
_.NA(function(){var Xo=L();bb(function(){Xo&&!a()&&C()&&Npu(t,E,e)})},"LgmX6c");
_.NA(function(){var Xo=C();bb(function(){if(!a()&&Xo){var U$;((U$=p.animateWidth)==null?0:U$.call(p))&&kaR(y.value,!!Xo.subscribed,U(),P());var WU,VQ;((WU=v)==null?0:WU.subscribed)||!Xo.subscribed||Xo.key!==((VQ=v)==null?void 0:VQ.key)||hR();v=Xo}})},"iZzoUb");
m=_.MA(function(){var Xo,U$,WU,VQ=p.data(),b9=!((Xo=C())==null||!Xo.subscribed);Xo=!((U$=p.isOverlay)==null||!U$.call(p));U$=K()?y:void 0;var kx=(WU=u())==null?void 0:WU.state;WU=z();LMc(VQ,kx);return wq_({model:VQ,subscribed:b9,isOverlay:Xo,element:U$,notificationState:kx,disableTextEllipsis:!0,focused:WU})},void 0,"yGQGue");
var Wt=function(){var Xo;if(!a()&&((Xo=p.animateWidth)==null?0:Xo.call(p))&&(l==null?0:l.value)&&(q==null?0:q.value)&&!O()){Xo=C();var U$=_.c((Xo==null?0:Xo.subscribed)?[l,q]:[q,l]),WU=U$.next().value;U$=U$.next().value;WU=Math.ceil(WU.value.getBoundingClientRect().width);U$=Math.ceil(U$.value.getBoundingClientRect().width);b(WU);Z(U$);kaR(y.value,!(Xo==null||!Xo.subscribed),WU,U$);f(!0)}},AR=_.Ff(function(Xo){Wt();
var U$=C();U$&&(Xo.detail.endpoint.subscribeEndpoint||Xo.detail.endpoint.unsubscribeEndpoint)&&rXg(y.value,!U$.subscribed,U$)}),Qu=function(){var Xo=_.WC().resolve(_.RK(_.Zu));
Xo&&sc(Xo.isKeyBoardInUse())},jj=function(){sc(!1)};
_.qt("yt-player-subscribe",function(Xo){var U$=C();U$&&Xo===p.data().channelId&&rXg(y.value,!0,U$)});
_.qt("yt-player-unsubscribe",function(Xo){var U$=C();U$&&Xo===p.data().channelId&&rXg(y.value,!1,U$)});
_.qt("yt-update-subscribe-button-action",function(Xo){Xo=_.G(Xo,JHr);var U$=C();U$&&Xo&&Xo.channelId===p.data().channelId&&rXg(y.value,!!Xo.subscribed,U$)});
_.xZ(function(){y.value&&(y.value.addEventListener("focusin",Qu),y.value.addEventListener("focusout",jj));var Xo=_.rJ(_.TR,function(){Wt()});
F(!0);_.TP(function(){_.TR.cancelJob(Xo);y.value&&(y.value.removeEventListener("focusin",Qu),y.value.removeEventListener("focusout",jj))})});
var x6=function(){var Xo,U$,WU;if(WU=!((Xo=C())==null||!Xo.subscribed))Xo=!!p.data().disableNotificationBell,WU=(U$=u())==null?void 0:U$.state,WU=!Xo&&!!WU;return WU},L8=function(){var Xo;
return!((Xo=C())==null?0:Xo.subscribed)},Y6=function(){var Xo,U$;
if(U$=L8()){U$=!!p.data().disableNotificationBell;var WU=(Xo=u())==null?void 0:Xo.state;U$=!U$&&!!WU}return U$},AZ={},cU={};
return _.R("yt-subscribe-button-view-model",{class:_.ip(p.className,"yt-subscribe-button-view-model-wiz",(AZ["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var Xo,U$;return!((Xo=C())==null||!Xo.subscribed)&&((U$=p.animateWidth)==null?void 0:U$.call(p))&&L()},AZ["yt-subscribe-button-view-model-wiz--hidden"]=function(){var Xo;
return!((Xo=C())==null?0:Xo.subscribed)&&p.data().hideWhenUnsubscribed},AZ)),
el:y,"on:yt-service-request-sent":AR},_.R(HVN,{backgroundLottieRef:t,foregroundLottieRef:E,wrapperClass:_.ip("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(cU["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var Xo;return((Xo=p.animateWidth)==null?void 0:Xo.call(p))&&L()},cU["yt-subscribe-button-view-model-wiz__static-width"]=function(){var Xo;
return!((Xo=p.animateWidth)==null?0:Xo.call(p))},cU)),
disableAnimation:a},_.R("div",{el:l,class:"yt-subscribe-button-view-model-wiz__container"},_.R(_.uI,{data:m,icon:function(){return _.R(_.W,{cond:x6,then:function(){var Xo=function(){var U$;return iV6((U$=u())==null?void 0:U$.state)};
return _.R(_.W,{cond:function(){return a()||Xo()!=="NOTIFICATIONS_NONE"},
then:function(){return _.R(_.DR,{icon:Xo})},
else:function(){return _.R(vpQ,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:e})}})}})},
secondaryIconName:function(){return x6()?"EXPAND":void 0}}))),_.R("div",{el:q,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.R(_.W,{cond:function(){var Xo;return((Xo=p.animateWidth)==null?void 0:Xo.call(p))&&!a()&&!O()},
then:function(){return _.R(_.uI,{data:_.MA(function(){var Xo;return wq_({model:p.data(),subscribed:L8(),isOverlay:!((Xo=p.isOverlay)==null||!Xo.call(p)),element:y,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var Xo;return Y6()?iV6((Xo=u())==null?void 0:Xo.state):void 0},
secondaryIconName:function(){return Y6()?"EXPAND":void 0}})}})))},"I");
_.f9.idomCompat=!0;var DX6=new _.WE("RENDERER_STAMPER_OPTIONS_TOKEN");var Xqx=_.aF(function(p){var y=p.data;var l=_.So(Z$R,function(){return y().subscriptionStateEntityKey});
return _.R(_.W,{cond:function(){var q=y(),t=l();return!q.hideWhenUnsubscribed||(t==null?0:t.subscribed)?_.G(y().button,_.xo):void 0},
then:function(q){return _.R("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.R(_.wZ,{data:q,buttonOverrides:function(){return{toggled:!0}}}))}})},"J");
Xqx.idomCompat=!0;var opj=_.T4({buttonViewModel:_.wZ,subscribeButtonViewModel:_.f9,downloadButtonViewModel:NpQ,toggleButtonViewModel:_.fo,subscribePlusButtonViewModel:Xqx});_.uX(YO_);var COu=new _.WE("RENDERER_LOGGER_TOKEN");var vN;_.fX=new vg$;vN=new Map;var cvo="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),hDt=["notificationTextRenderer","notificationMultiActionRenderer"],eDl="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
Jvt=ICo(function(p){return _.BQ(p==null?void 0:p.targetId)}).useUpdatableData;var EKg=0;_.di.debugName="EjJbCe";var dXr=_.aF(function(p){return _.R(_.di,{data:function(){return p.actionRow().actions}},{buttonViewModel:function(y){var l=y.data;
return _.R(X7,{isRow:p.isRow,isIconOnlyButton:function(){return uMt(l())},
useIntrinsicWidth:p.useIntrinsicWidth},_.R(_.wZ,{data:l}))},
subscribeButtonViewModel:function(y){return _.R(X7,{isRow:p.isRow},_.R(_.f9,{data:y.data,isOverlay:!1,animateWidth:function(){return!p.isRow()}}))},
downloadButtonViewModel:function(y){var l=y.data;return _.R(X7,{isRow:p.isRow,isIconOnlyButton:function(){return!!l().playlistId}},_.R(NpQ,{data:l}))},
toggleButtonViewModel:function(y){var l=y.data;return _.R(X7,{isRow:p.isRow,isIconOnlyButton:function(){var q=l();return uMt(_.G(q.isToggled?q.toggledButtonViewModel:q.defaultButtonViewModel,_.xo))}},_.R(_.fo,{data:l}))},
subscribePlusButtonViewModel:function(y){return _.R(X7,{isRow:p.isRow},_.R(Xqx,{data:y.data}))}})},"K"),X7=_.aF(function(p){var y={};
return _.R("div",{class:_.ip("yt-flexible-actions-view-model-wiz__action",(y["yt-flexible-actions-view-model-wiz__action--row-action"]=p.isRow,y["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=p.useIntrinsicWidth,y["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,y["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=p.isIconOnlyButton,y))},p.children)},"L"),OVN=_.aF(function(p){var y=function(){var q;
return((q=p.layout)==null?void 0:q.call(p))===1},l={};
return _.R("yt-flexible-actions-view-model",{class:_.ip("yt-flexible-actions-view-model-wiz",p.className,(l["yt-flexible-actions-view-model-wiz--inline"]=function(){return!y()},l["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return p.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},l))},_.R(_.rT,{each:function(){return p.data().actionsRows||[]}},function(q){return _.R(_.W,{cond:y,
then:function(){return _.R("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.R(dXr,{actionRow:q,isRow:y,useIntrinsicWidth:function(){return!!p.data().respectActionIntrinsicWidth}}))},
else:function(){return _.R(dXr,{actionRow:q,isRow:y})}})}))},"M"),d4=_.n("web_enable_sink_yt_flexible_actions_view_model")?OVN:_.Sw(YO_);
OVN.idomCompat=!0;_.bp(d4,"yt-flexible-actions-view-model",{props:{data:_.Co,layout:_.Co,justifyContentOverride:_.Co,className:_.Co}});_.OW=_.aF(function(p){var y=_.So(lj,function(){var t;return(t=p.data().dislikeEntityKey)!=null?t:""}),l=_.MA(function(){var t=y();
return t?t.likeStatus==="DISLIKE":_.G(p.data().toggleButtonViewModel,_.BN).isToggled},void 0,"B2tgKf"),q=_.MA(function(){return Object.assign({},_.G(p.data().toggleButtonViewModel,_.BN),{isToggled:l()})},void 0,"otfIbf");
return _.R("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.R(_.fo,{data:q,buttonShapeOverrides:p.buttonShapeOverrideables,onToggle:function(t){var E=y();E&&t!==(E.likeStatus==="DISLIKE")&&E.key&&_.Cl(_.Ow("likeStatusEntity",E.key,{likeStatus:t?"DISLIKE":"INDIFFERENT",hadUserInteraction:t}))}}))},"N");
_.OW.idomCompat=!0;_.ow=_.aF(function(p){var y=_.n("web_supports_animations_api"),l=U5(function(b){var P=a();if(!b){var Z,K;return{numberText:(K=P==null?void 0:(Z=P.likeCountIfIndifferent)==null?void 0:Z.content)!=null?K:"",numberValue:Number(P==null?void 0:P.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var F;Z=(P==null?void 0:(F=P.likeCountIfIndifferent)==null?void 0:F.content)!==b.numberText;if(C()||!Z)return b;var L;return{numberText:(P==null?void 0:(L=P.likeCountIfIndifferent)==null?void 0:L.content)||
"",numberValue:Number(P==null?void 0:P.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!P}}),q=U5(function(b){var P=a();
if(!b){var Z,K;return{numberText:(K=P==null?void 0:(Z=P.likeCountIfLiked)==null?void 0:Z.content)!=null?K:"",numberValue:Number(P==null?void 0:P.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var F;Z=(P==null?void 0:(F=P.likeCountIfIndifferent)==null?void 0:F.content)!==b.numberText;if(C()||!Z)return b;var L;return{numberText:(P==null?void 0:(L=P.likeCountIfLiked)==null?void 0:L.content)||"",numberValue:Number(P==null?void 0:P.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!P}}),t=_.c(_.nr(void 0,
void 0,"xYSlUe")),E=t.next().value,e=t.next().value,C=E,u=_.So(lj,function(){var b,P;
return(P=(b=p.data())==null?void 0:b.likeStatusEntityKey)!=null?P:""}),a=_.So(l88,function(){var b,P;
return((b=p.likeCountEntity)==null?void 0:(P=b.call(p))==null?void 0:P.key)||""}),m=_.MA(function(){var b;
return((b=u())==null?void 0:b.likeStatus)==="LIKE"},void 0,"DG5Osd"),U=function(){var b;
return y&&!((b=p.likeCountEntity)==null||!b.call(p))};
return _.R("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.R(_.fo,{data:function(){var b=Object,P=b.assign,Z;var K=_.G((Z=p.data())==null?void 0:Z.toggleButtonViewModel,_.BN);return P.call(b,{},K||{},{isToggled:m()})},
buttonShapeOverrides:p.buttonShapeOverrideables,animatedTextPropsDefault:function(){return U()?l():void 0},
animatedTextPropsToggled:function(){return U()?q():void 0},
onToggle:function(b){RDu(b,u(),C(),e)},
style:function(){var b;return((b=p.disableIconAnimation)==null?0:b.call(p))?void 0:{animateIcon:"true"}}}))},"O");
_.ow.idomCompat=!0;var opB=_.aF(function(p){var y=function(){return _.G(p.data().likeButtonViewModel,_.o5)},l=function(){var t;
return((t=y())==null?void 0:t.likeStatusEntityKey)||""},q=_.MA(function(){var t,E;
var e=(E=_.So(lj,l)())!=null?E:(t=y())==null?void 0:t.likeStatusEntity;t=p.data();var C;t=(t==null?void 0:(C=t.timedAnimationData)==null?void 0:C.animationTiming)||[];return{uniqueId:"like-dislike",timings:t,enabled:(e==null?void 0:e.likeStatus)==="INDIFFERENT"&&t.length>0,experimentEnabled:t.length>0}},void 0,"hGh9Td");
return _.R("segmented-like-dislike-button-view-model",{class:_.ip("ytSegmentedLikeDislikeButtonViewModelHost",p.className),"button-renderer":!0},_.R(WQt,{settings:q},_.R("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.R(_.W,{cond:y,then:function(t){return _.R(_.ow,{data:t,likeCountEntity:function(){return p.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.R(_.W,{cond:function(){return _.G(p.data().dislikeButtonViewModel,_.Ox)},
then:function(t){return _.R(_.OW,{data:t,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"P");
opB.idomCompat=!0;_.bp(opB,"segmented-like-dislike-button-view-model",{props:{data:_.Co,className:_.Co}});var zMx=_.aF(function(p){var y=p.data;var l=p.className;var q=p.setMinWidth;var t=p.forceIconOnly;var E=_.sM("account-link-button-view-model"),e=_.So(_.WFL,function(){var b;return(b=y().accountLinkStatusEntityKey)!=null?b:""}),C=_.So(_.WFL,function(){var b;
return(b=y().accountLinkStatusSecondaryEntityKey)!=null?b:""}),u=function(){if(!_.n("web_account_link_secondary_killswitch")){var b,P;
return((b=e())==null?void 0:b.linked)||((P=C())==null?void 0:P.linked)}var Z;return(Z=e())==null?void 0:Z.linked};
_.NA(function(){var b=e();if(b){var P=EdZ(new tCi,qTP(new lZZ,!!b.linked));_.VS().then(function(Z){Z&&(Z.setAccountLinkState(_.HR(P.JSC$12053_serializeBinary(),4)),Z.updateAccountLinkingConfig(!!b.linked))})}},"b9pSsf");
var a=function(){return _.G(y().toggleButtonViewModel,_.BN)};
_.qt("yt-signal-action-show-account-link-dialog",function(){if(a()){var b=u()?a().toggledButtonViewModel:a().defaultButtonViewModel;b=_.G(b,_.xo);var P;if((P=e())==null?0:P.isWarning){P=_.G(y().warningButtonViewModel,_.xo);if(!P){_.ph(Error("Ah"));return}b=P}var Z;(P=_.yM((Z=b)==null?void 0:Z.onTap))&&_.Zb([P],E.value)}else _.ph(Error("Bh"))});
var m=function(){var b=a();return Object.assign({},b,{isToggled:u()})},U=function(){return(t==null?0:t())?{iconPosition:"icon-only"}:{}};
return _.R("account-link-button-view-model",{class:_.ip("ytwAccountLinkButtonViewModelHost",l,function(){return(q==null?0:q())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:E,"button-renderer":!0},_.R("div",null,_.R(_.W,{cond:function(){var b;if((b=e())==null?0:b.isWarning)return(b=_.G(y().warningButtonViewModel,_.xo))||_.ph(Error("Ah")),b},
then:function(b){return _.R(_.wZ,{data:b,buttonOverrides:U})},
else:function(){return _.R(_.fo,{data:m,buttonShapeOverrides:U})}})))},"Q");_.bp(zMx,"account-link-button-view-model",{props:{data:_.Co,className:_.jw,setMinWidth:_.jw,forceIconOnly:_.jw}});_.ox("menuRenderer","menuRenderer","ytd-menu-renderer");
var YON={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"}},
ICi=_.n("web_fix_missing_action_buttons")?100:200,zu=function(){var p=_.w.apply(this,arguments)||this;p.safeArea=!_.n("kevlar_flex_menu_safe_area_killswitch");p.tonalOverride=!1;p.threeDotSize="M";p.isOverlay=!1;p.useOverlayDark=!1;p.topLevelIconsOnly=!1;p.JSC$14519_lastWidth=0;p.maybeUpdateFlexibleMenu=function(){_.n("web_fix_missing_action_buttons")?requestAnimationFrame(p.maybeUpdateFlexibleMenuImpl):p.maybeUpdateFlexibleMenuImpl()};
p.maybeUpdateFlexibleMenuImpl=function(){var y;if((y=p.data)!=null&&y.flexibleItems){p.maybeFlushDebouncer();y=p.hostElement.clientWidth;var l=y>p.JSC$14519_lastWidth,q,t=((q=p.topLevelButtonsContainer)==null?void 0:q.scrollHeight)||0,E;q=((E=p.flexibleItemButtonsContainer)==null?void 0:E.scrollHeight)||0;E=p.hostElement.scrollHeight>Math.max(t,q)+8;l?(p.resetFlexibleItems(),p.JSC$14519_lastWidth=p.hostElement.clientWidth,p.maybeUpdateFlexibleMenu()):E&&(p.shrinkFlexibleMenu(),p.JSC$14519_lastWidth=
y)}};
p.computeThreeDotButtonShape=function(){if(p.tonalOverride)return Object.assign({},{onTap:function(){p.onOverflowTap()},
iconPosition:"icon-only",style:p.isOverlay?p.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:p.threeDotSize,state:"active",accessibilityLabel:p.computeAccessibilityLabel(p.data)},p.threeDotButtonOverride)};
p.onOverflowTap=function(){if(p.data.fetchMenuCommand)_.WC().resolve(_.aK).resolveCommand(p.data.fetchMenuCommand,{form:{element:p.hostElement}});else if(p.data.isDisabled&&p.data.disabledCommand)_.iy(p.data.disabledCommand,p.hostElement);else{var y=p.createMenuRendererVe(),l={items:p.items};p.data.menuPopupAccessibility&&(l.menuPopupAccessibility=p.data.menuPopupAccessibility);p.data.footer&&(l.footer=p.data.footer);y={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:l},veData:y}};
_.WC().resolve(_.Tu).openSheet({openPopupActionCommand:y},p.hostElement)}};
return p};
_.A(zu,_.w);_.J=zu.prototype;_.J.updateButtonOverrides=function(){if(!_.n("menu_renderer_label_update_upkillswitch")){var p=_.jR(this.hostElement).querySelector("yt-button-view-model");p&&(p.buttonOverrides=this.buttonOverrides)}};
_.J.computeHasItems=function(){var p;return((p=this.topLevelButtonData)==null?void 0:p.length)||this.hasFlexibleItems};
_.J.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.J.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Ax(this.hostElement,{"--ytd-menu-renderer-button-color":_.z5(this.data.iconColor)}))};
_.J.onStamperFinished=function(){this.JSC$14519_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.J.setupFlexibleMenu=function(){var p=this,y;(y=this.data)!=null&&y.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.hy(this.maybeUpdateFlexibleMenu,ICi,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){p.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.J.maybeFlushDebouncer=function(){if(_.n("web_replace_formatted_with_attributed_string")){var p;(p=this.topLevelButtons)==null||p.forEach(function(l){var q;(l=(q=l.getElementsByTagName("yt-attributed-string"))==null?void 0:q[0])&&m3c(l)});
var y;(y=this.flexibleItemButtons)==null||y.forEach(function(l){var q;(l=(q=l.getElementsByTagName("yt-attributed-string"))==null?void 0:q[0])&&m3c(l)})}};
_.J.resetFlexibleItems=function(){var p;if((p=this.data)!=null&&p.flexibleItems){_.n("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var y;this.flexAsTopLevelButtons=(y=this.data.flexibleItems)==null?void 0:y.map(function(l){return _.G(l,_.i5i).topLevelButton});
_.n("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.J.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.J.shrinkFlexibleMenu=function(){var p;(p=this.flexAsTopLevelButtons)!=null&&p.length&&(this.flexAsTopLevelButtons=[].concat(_.xq(this.flexAsTopLevelButtons.slice(0,-1))))};
_.J.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:YON,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:YON,events:!0}}};
_.J.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.J.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.J.detached=function(){this.icon="MORE_VERT"};
_.J.computeTopLevelButtonData=function(p){if(!p)return[];var y;p=(y=p==null?void 0:p.topLevelButtons)!=null?y:[];return _.Ts.unsafeClone([].concat(_.xq(p)))};
_.J.computeItems=function(p,y){if(!p)return[];var l=[];if(y){var q=(p.flexibleItems||[]).map(function(e){return _.G(e,_.i5i)});
q=_.c(q);for(var t=q.next();!t.done;t=q.next())t=t.value,y.includes(t.topLevelButton)||(t=t.menuItem)&&l.push(t)}var E;p=(E=p==null?void 0:p.items)!=null?E:[];return[].concat(_.xq(l),_.xq(p))};
_.J.computeMenuActive=function(p,y){return p||y};
_.J.onPopupOpened=function(){this.overlayOpen=!0;_.Ub(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.J.onPopupClosed=function(){this.overlayOpen=!1;_.Ub(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.J.onPopupCanceled=function(){this.overlayOpen=!1;_.Ub(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.J.computeAccessibilityLabel=function(p){return this.get("accessibility.accessibilityData.label",p)};
_.J.isHidden=function(p,y){return this.tonalOverride||!p?!0:p.fetchMenuCommand||p.isDisabled&&p.disabledCommand?!1:!(y==null?0:y.length)};
_.J.isModernOverflowHidden=function(p,y){return this.tonalOverride&&p?p.fetchMenuCommand?!1:!(y==null?0:y.length):!0};
_.J.createMenuRendererVe=function(){var p=this.data.trackingParams,y=_.B2(),l=_.xc();return p&&y&&l?(p=_.Tp(p),l=_.fY(7591),_.n("combine_ve_grafts")?_.Vv(_.Ll(),l,p):_.pW(y,p,l),l):null};
_.Jh.Object.defineProperties(zu.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.flexAsTopLevelButtons)==null||!p.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
zu.prototype.onPopupCanceled=zu.prototype.onPopupCanceled;zu.prototype.onPopupClosed=zu.prototype.onPopupClosed;zu.prototype.onPopupOpened=zu.prototype.onPopupOpened;zu.prototype.tonalOverrideChanged=zu.prototype.tonalOverrideChanged;zu.prototype.resetFlexibleItems=zu.prototype.resetFlexibleItems;zu.prototype.setupFlexibleMenu=zu.prototype.setupFlexibleMenu;zu.prototype.iconButtonColorChanged=zu.prototype.iconButtonColorChanged;zu.prototype.updateButtonOverrides=zu.prototype.updateButtonOverrides;
_.H([_.V(_.RP),_.x("design:type",Object)],zu.prototype,"ytdOpenPopupBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],zu.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],zu.prototype,"ytRendererstamperBehavior",void 0);_.H([_.rd("#button-shape"),_.x("design:type",HTMLElement)],zu.prototype,"buttonShape",void 0);_.H([_.rd("#button"),_.x("design:type",Object)],zu.prototype,"button",void 0);
_.H([_.Q(),_.x("design:type",Object)],zu.prototype,"data",void 0);_.H([_.Q({computed:"computeTopLevelButtonData(data)"}),_.x("design:type",Array)],zu.prototype,"topLevelButtonData",void 0);_.H([_.Q(),_.x("design:type",Array)],zu.prototype,"flexAsTopLevelButtons",void 0);_.H([_.Q({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.x("design:type",Array)],zu.prototype,"items",void 0);_.H([_.Q({value:"MORE_VERT"}),_.x("design:type",String)],zu.prototype,"icon",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],zu.prototype,"safeArea",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.x("design:type",Boolean)],zu.prototype,"menuActive",void 0);_.H([_.Q(),_.x("design:type",Boolean)],zu.prototype,"menuFocused",void 0);_.H([_.Q({value:"bottom"}),_.x("design:type",String)],zu.prototype,"buttonTooltipPosition",void 0);_.H([_.Q(),_.x("design:type",Boolean)],zu.prototype,"overlayOpen",void 0);
_.H([_.Q({value:!0}),_.x("design:type",Boolean)],zu.prototype,"forceIconButton",void 0);_.H([_.Q(),_.x("design:type",Boolean)],zu.prototype,"styleActionButton",void 0);_.H([_.Q(),_.x("design:type",Boolean)],zu.prototype,"disableTextTransformOnButtons",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],zu.prototype,"tonalOverride",void 0);_.H([_.Q(),_.x("design:type",Object)],zu.prototype,"threeDotSize",void 0);
_.H([_.Q(),_.x("design:type",Object)],zu.prototype,"threeDotButtonOverride",void 0);_.H([_.Q(),_.x("design:type",Object)],zu.prototype,"isOverlay",void 0);_.H([_.Q(),_.x("design:type",Object)],zu.prototype,"useOverlayDark",void 0);_.H([_.Q({computed:"computeButtonOverride(tonalOverride)"}),_.x("design:type",Object)],zu.prototype,"buttonOverride",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],zu.prototype,"hasCustomIconColor",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("flexAsTopLevelButtons"),_.x("design:type",Object),_.x("design:paramtypes",[])],zu.prototype,"hasFlexibleItems",null);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.x("design:type",Boolean)],zu.prototype,"hasItems",void 0);_.H([_.Q(),_.x("design:type",Object)],zu.prototype,"topLevelIconsOnly",void 0);
_.H([_.gd("topLevelIconsOnly"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zu.prototype,"updateButtonOverrides",null);_.H([_.g("topLevelIconsOnly"),_.x("design:type",Object),_.x("design:paramtypes",[])],zu.prototype,"buttonOverrides",null);_.H([_.rd("#top-level-buttons-computed"),_.x("design:type",HTMLElement)],zu.prototype,"topLevelButtonsContainer",void 0);_.H([_.SR(".top-level-buttons > *"),_.x("design:type",Array)],zu.prototype,"topLevelButtons",void 0);
_.H([_.rd("#flexible-item-buttons"),_.x("design:type",HTMLElement)],zu.prototype,"flexibleItemButtonsContainer",void 0);_.H([_.SR("#flexible-item-buttons > *"),_.x("design:type",Array)],zu.prototype,"flexibleItemButtons",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zu.prototype,"iconButtonColorChanged",null);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zu.prototype,"setupFlexibleMenu",null);_.H([_.k8("topLevelIconsOnly"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zu.prototype,"resetFlexibleItems",null);_.H([_.gd("tonalOverride"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zu.prototype,"tonalOverrideChanged",null);
_.H([_.VU("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zu.prototype,"onPopupOpened",null);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zu.prototype,"onPopupClosed",null);_.H([_.VU("yt-popup-canceled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zu.prototype,"onPopupCanceled",null);
_.D(zu,"ytd-menu-renderer",function(){if(j0N===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-level-buttons-computed" class="top-level-buttons style-scope ytd-menu-renderer"></div><div id="flexible-item-buttons" hidden="[[!flexAsTopLevelButtons]]" class="style-scope ytd-menu-renderer"></div><yt-icon-button id="button" class="dropdown-trigger style-scope ytd-menu-renderer" hidden="[[isHidden(data, items)]]" label="[[computeAccessibilityLabel(data)]]" style-target="button" on-click="onOverflowTap"><yt-icon icon="[[icon]]" class="style-scope ytd-menu-renderer"></yt-icon></yt-icon-button><yt-button-shape id="button-shape" data="[[computeThreeDotButtonShape(data, isOverlay, threeDotButtonOverride)]]" disable-upgrade$="[[!tonalOverride]]" hidden$="[[isModernOverflowHidden(data, items, tonalOverride)]]" icon-name="[[icon]]" class="style-scope ytd-menu-renderer"></yt-button-shape>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);j0N=p}p=j0N;return p},{mode:_.ZS("kevlar_poly_si_batch_j030")?1:2});var pd$;var yvP;_.YG=_.aF(function(p){var y=p.data;var l=function(){if(y().icon)a:{var q={iconName:y().icon};for(var t=_.WC().resolve(_.Kl),E=_.c([12,24]),e=E.next();!e.done;e=E.next()){var C=e.value;e=Object.assign({},q,{iconStyle:"youtube_fill",iconSize:C});C=Object.assign({},q,{iconStyle:"youtube_outline",iconSize:C});if(t.resolveIcon(e)){q=e;break a}if(t.resolveIcon(C)){q=C;break a}}q=void 0}else q=void 0;return q};
p={};return _.R("badge-shape",{class:_.ip("badge-shape-wiz",function(){return bAg(y().type)},(p["badge-shape-wiz--overlay"]=function(){return y().isOverlay},p["badge-shape-wiz--ads-include-dot"]=function(){return y().adsIncludeDot},p["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(y().type){case 16:case 17:case 18:var q=!0;
break a;default:q=!1}return q},p["badge-shape-wiz--status-badge"]=function(){a:switch(y().type){case 11:case 12:case 13:case 14:case 15:var q=!0;
break a;default:q=!1}return q},p["badge-shape-wiz--no-text"]=function(){return!y().text},p["badge-shape-wiz--modern"]=function(){return y().modern||_.n("web_modern_badge_shape")},p)),
style:_.NW({"background-color":function(){var q;return(q=y().customColors)==null?void 0:q.backgroundColor}}),
role:function(){return y().accessibilityText?"img":void 0},
"aria-label":function(){return y().accessibilityText}},_.R(_.W,{cond:function(){return y().animation},
then:function(q){return _.R(_.GS,{className:"badge-shape-wiz__icon",data:q,animationName:function(){return q().animationConfig.name||""}})}}),_.R(_.W,{cond:function(){var q;
return l()&&!((q=y())==null?0:q.animation)},
then:function(){return _.R("div",{class:"badge-shape-wiz__icon"},_.R(Sl5,{data:function(){return l()}}))}}),_.R("div",{class:"badge-shape-wiz__text"},function(){var q;
return(q=y())==null?void 0:q.text}))},"R");
_.YG.idomCompat=!0;_.bp(_.YG,"badge-shape",{props:{data:_.Co}});var Iw=function(){var p=_.w.apply(this,arguments)||this;p.systemIcons=_.n("kevlar_system_icons");p.animated=_.n("animated_live_badge_icon");p.useBadgeShape=_.n("web_badge_shape_defrag");return p};
_.A(Iw,_.w);_.J=Iw.prototype;_.J.addTooltips=function(){for(var p=_.jR(this.hostElement).querySelectorAll(".badge"),y=0,l;l=p[y++];){var q=this.repeatElement.itemForElement(l);l=_.jR(l);l.lastChild&&l.lastChild.is==="tp-yt-paper-tooltip"&&l.removeChild(l.lastChild);if(q=q.metadataBadgeRenderer&&q.metadataBadgeRenderer.tooltip){var t=_.Ud("tp-yt-paper-tooltip");(0,_.Pm)(t).textContent=q;t.setAttribute("position","top");t.setAttribute("aria-hidden","true");l.appendChild(t)}}};
_.J.badgesChanged=function(){var p=this;_.qB().parkOrScheduleJob(function(){p.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.J.standaloneRoundedBadgeChanged=function(){var p=this.useRoundedBadge?this.useRoundedBadge:void 0;p&&(this.useRoundedBadge=p)};
_.J.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.J.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.J.computeStyle=function(p){_.n("enable_html5_teal_ad_badge")&&p==="BADGE_STYLE_TYPE_AD"&&(p="badge-style-type-ad-alternate");_.n("kevlar_ytb_live_badges")&&p==="BADGE_STYLE_TYPE_LIVE_NOW"&&(p="badge-style-type-live-now-alternate");return p?p.toLowerCase().replace(/_/g,"-"):""};
_.J.computeRole=function(p){return this.computeAriaLabel(p)?"img":"status"};
_.J.computeAriaLabel=function(p){var y;return(p==null?void 0:(y=p.accessibilityData)==null?void 0:y.label)||(p==null?void 0:p.label)};
_.J.computeBadgeShape=function(p){var y;if(p){var l,q=$5m(p.style),t=j1R(p.style),E=p.label,e=((l=p.accessibilityData)==null?void 0:l.label)||p.label;p=(y=p.icon)==null?void 0:y.iconType;y={type:q,brNzRatingBadgeType:t,text:E,accessibilityText:e,icon:p!=="PREMIUM"?p:void 0}}else y={};return y};
_.J.updateComputedBadges=function(p,y,l){var q=this;(y=y?[y]:l?[l]:void 0)?this.computedBadges=y:this.computedBadges=p==null?void 0:p.filter(function(t){var E;if((E=t.metadataBadgeRenderer)==null?0:E.groups){E=!1;t=_.c(t.metadataBadgeRenderer.groups);for(var e=t.next();!e.done;e=t.next()){e=e.value;var C=void 0;E=E||((C=q.hiddenBadgeGroups)==null?void 0:C.includes(e))}return!E}return!0})};
_.J.useFilledIcons=function(p){return _.n("kevlar_system_icons")&&(p==="AUDIO_BADGE"||p==="CHECK_CIRCLE_THICK"||p==="OFFICIAL_ARTIST_BADGE"||p==="SPONSORSHIP_STAR"||p==="PERSON_RADAR_FILLED"||p==="PERSON_RADAR")};
_.J.computeBadgeShapeStyle=function(p){return this.useBadgeShape?p==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||p==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.J.computeIcon=function(p){var y,l;p=p==null?void 0:(y=p.metadataBadgeRenderer)==null?void 0:(l=y.icon)==null?void 0:l.iconType;if(p!=="PREMIUM"&&p)return _.QZ(p)};
_.J.computeStandaloneBadge=function(p){var y;p=p==null?void 0:(y=p.icon)==null?void 0:y.iconType;return p==="PREMIUM_STANDALONE"||p==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
Iw.prototype.hiddenBadgeGroupsChanged=Iw.prototype.hiddenBadgeGroupsChanged;Iw.prototype.standaloneBadgeChanged=Iw.prototype.standaloneBadgeChanged;Iw.prototype.standaloneRoundedBadgeChanged=Iw.prototype.standaloneRoundedBadgeChanged;Iw.prototype.badgesChanged=Iw.prototype.badgesChanged;_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Iw.prototype,"hidden",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Iw.prototype,"componentBehavior",void 0);
_.H([_.Q(),_.x("design:type",Array)],Iw.prototype,"badges",void 0);_.H([_.Q(),_.x("design:type",Object)],Iw.prototype,"topStandaloneBadge",void 0);_.H([_.Q(),_.x("design:type",Object)],Iw.prototype,"bottomStandaloneBadge",void 0);_.H([_.Q(),_.x("design:type",Object)],Iw.prototype,"computedBadges",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Iw.prototype,"mediumFontAdBadge",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Iw.prototype,"useRoundedBadge",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Iw.prototype,"largeFontAdBadge",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Iw.prototype,"overlayAd",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Iw.prototype,"overlayPremium",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Iw.prototype,"noDotAdBadge",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Iw.prototype,"collectionTruncate",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Iw.prototype,"isThumbnailBadge",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Iw.prototype,"wrapBadges",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Iw.prototype,"systemIcons",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Iw.prototype,"animated",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Iw.prototype,"useBadgeShape",void 0);_.H([_.Q({value:[]}),_.x("design:type",Array)],Iw.prototype,"hiddenBadgeGroups",void 0);_.H([_.rd("#repeat"),_.x("design:type",XA)],Iw.prototype,"repeatElement",void 0);_.H([_.k8("badges"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iw.prototype,"badgesChanged",null);
_.H([_.k8("useRoundedBadge"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iw.prototype,"standaloneRoundedBadgeChanged",null);_.H([_.k8("topStandaloneBadge","bottomStandaloneBadge"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iw.prototype,"standaloneBadgeChanged",null);_.H([_.k8("hiddenBadgeGroups"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iw.prototype,"hiddenBadgeGroupsChanged",null);
_.H([_.k({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Iw);
var lBr=_.Al()(Iw,"ytd-badge-supported-renderer",function(){if(yvP===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);yvP=p}p=yvP;return p},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.ZS("kevlar_poly_si_batch_j053")?1:2});var pd=function(){var p=_.w.apply(this,arguments)||this;p.iconType="STAR";p.standardizeIconSize=_.n("kevlar_system_icons");p.mediaHoverOverlayInitialVisibility=_.n("enable_top_landscape_image_button_command_web");p.noBottomMargin=!1;p.thumbnailObjectFit="CONTAIN";p.thumbnailFitHeight=!0;p.actionMap={"yt-mute-ad-action":"handleMuteAd"};return p};
_.A(pd,_.w);_.J=pd.prototype;
_.J.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"},params:{mediumFontAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.image":{id:"media",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.image.thumbnail]]",width:"[[mediaThumbnailWidth]]",fitHeight:"[[thumbnailFitHeight]]",objectFit:"[[thumbnailObjectFit]]"}}}},
"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",
notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.dataChanged=function(){this.clickCommand=this.get("data.clickCommand.commandExecutorCommand.commands.0");this.clickCommand||(this.clickCommand=this.get("data.clickCommand"));this.clickCommand&&(this.updateMediaBackgroundImage(),this.ytSparklesClickLocationBehavior.configureClickTargets("root",pd.JSC$14531_DEFAULT_CLICK_LOCATION_BEHAVIOR,pd.JSC$14531_CLICK_LOCATION_ID_MAP))};
_.J.onTap=function(p){if(!_.n("use_on_click_for_desktop_display_ad"))this.onTapOrClick(p)};
_.J.onClick=function(p){if(_.n("use_on_click_for_desktop_display_ad"))this.onTapOrClick(p)};
_.J.onTapOrClick=function(p){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,p,!1)};
_.J.updateMediaBackgroundImage=function(){var p=this.get("data.image.thumbnail.thumbnails");p&&(p=_.nY(p,0))&&_.Ax(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+p+")"})};
_.J.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var p=0;p<this.data.impressionEndpoints.length;p++){var y=this.data.impressionEndpoints[p];y.clickTrackingParams&&delete y.clickTrackingParams;_.WC().resolve(_.aK).resolveCommand(y,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var l;((l=this.data)==null?0:l.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.J.handleMuteAd=function(){};
_.J.attached=function(){var p=this;_.n("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&p.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){_.n("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Jh.Object.defineProperties(pd.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.titleText)return"";var y;return _.g$("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((y=this.data)==null?void 0:y.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?0:p.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?0:p.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?0:p.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?0:p.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?0:p.fifthLine)?this.data.fifthLine:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
computePriceHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getPrice}},
computeThirdLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getThirdLine}},
computeFourthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFourthLine}},
computeFifthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFifthLine}},
hasEnergyIcon:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
pd.prototype.onClick=pd.prototype.onClick;pd.prototype.onTap=pd.prototype.onTap;pd.prototype.dataChanged=pd.prototype.dataChanged;
pd.JSC$14531_CLICK_LOCATION_ID_MAP=_.n("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"]]);
pd.JSC$14531_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.n("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"}];_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],pd.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],pd.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.IP),_.x("design:type",Object)],pd.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],pd.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.UW.YtSparklesClickLocationBehavior),_.x("design:type",Object)],pd.prototype,"ytSparklesClickLocationBehavior",void 0);_.H([_.V(oP),_.x("design:type",Object)],pd.prototype,"ytdActiveViewBehavior",void 0);_.H([_.V([_.no.YtActionHandlerBehavior]),_.x("design:type",Object)],pd.prototype,"actionHandlerBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],pd.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],pd.prototype,"clickCommand",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.BV}),_.x("design:type",Boolean)],pd.prototype,"miniMode",void 0);_.H([_.Q(),_.x("design:type",String)],pd.prototype,"iconType",void 0);_.H([_.g("data.titleText"),_.x("design:type",String),_.x("design:paramtypes",[])],pd.prototype,"titleAriaLabel",null);
_.H([_.g("data.rating"),_.x("design:type",Object),_.x("design:paramtypes",[])],pd.prototype,"getRating",null);_.H([_.g("data.price"),_.x("design:type",Object),_.x("design:paramtypes",[])],pd.prototype,"getPrice",null);_.H([_.g("data.thirdLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],pd.prototype,"getThirdLine",null);_.H([_.g("data.fourthLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],pd.prototype,"getFourthLine",null);
_.H([_.g("data.fifthLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],pd.prototype,"getFifthLine",null);_.H([_.g("getRating"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pd.prototype,"computeRatingHidden",null);_.H([_.g("getPrice"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pd.prototype,"computePriceHidden",null);_.H([_.g("getThirdLine"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pd.prototype,"computeThirdLineHidden",null);
_.H([_.g("getFourthLine"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pd.prototype,"computeFourthLineHidden",null);_.H([_.g("getFifthLine"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pd.prototype,"computeFifthLineHidden",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data.energyIcon"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pd.prototype,"hasEnergyIcon",null);
_.H([_.g("computePriceHidden","computeRatingHidden"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pd.prototype,"computeSecondaryTextHidden",null);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],pd.prototype,"standardizeIconSize",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],pd.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],pd.prototype,"noBottomMargin",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("data.layout"),_.x("design:type",String),_.x("design:paramtypes",[])],pd.prototype,"layout",null);_.H([_.g("data.layout"),_.x("design:type",Object),_.x("design:paramtypes",[])],pd.prototype,"mediaThumbnailWidth",null);_.H([_.g("layout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pd.prototype,"useRoundedBadge",null);_.H([_.Q(),_.x("design:type",String)],pd.prototype,"thumbnailObjectFit",void 0);
_.H([_.Q(),_.x("design:type",Object)],pd.prototype,"thumbnailFitHeight",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pd.prototype,"dataChanged",null);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],pd.prototype,"onTap",null);_.H([_.VU("click"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],pd.prototype,"onClick",null);
_.H([_.k({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],pd);
_.D(pd,"ytd-display-ad-renderer",function(){if(pd$!==void 0)return pd$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-display-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-display-ad-renderer">\n  <div id="root" class="style-scope ytd-display-ad-renderer">\n    <div id="media-container" aria-hidden="true" class="style-scope ytd-display-ad-renderer">\n      <div id="media-background" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-badge" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-hover-overlay" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div class="title style-scope ytd-display-ad-renderer">\n      <a class="yt-display-ad-renderer-endpoint title-link style-scope ytd-display-ad-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(clickCommand)]]">\n        <yt-formatted-string class="title-text style-scope ytd-display-ad-renderer" text="[[data.titleText]]" title="[[getSimpleString(data.titleText)]]">\n        </yt-formatted-string>\n      </a>\n      <div id="menu" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" title="[[getSimpleString(data.bodyText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <div id="badge" class="badge style-scope ytd-display-ad-renderer"></div>\n      <yt-formatted-string id="secondary-text" hidden="[[computeSecondaryTextHidden]]" text="[[data.secondaryText]]" title="[[getSimpleString(data.secondaryText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-display-ad-renderer">[[getRating]]</span>\n      <yt-icon id="icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-display-ad-renderer"></yt-icon>\n      <yt-formatted-string id="price" hidden="[[computePriceHidden]]" text="[[getPrice]]" class="style-scope ytd-display-ad-renderer"></yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="third-line" hidden="[[computeThirdLineHidden]]" text="[[data.thirdLine]]" title="[[getSimpleString(data.thirdLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fourth-line" hidden="[[computeFourthLineHidden]]" text="[[data.fourthLine]]" title="[[getSimpleString(data.fourthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fifth-line" hidden="[[computeFifthLineHidden]]" text="[[data.fifthLine]]" title="[[getSimpleString(data.fifthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <yt-img-shadow id="energy-icon" height="14" hidden="[[!data.energyIcon]]" thumbnail="[[data.energyIcon]]" class="style-scope ytd-display-ad-renderer"></yt-img-shadow>\n    </div>\n    <div id="call-to-action" class="style-scope ytd-display-ad-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-display-ad-renderer">\n  <div id="dismissed-content" class="style-scope ytd-display-ad-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return pd$=p},{mode:1});var qpv;var s1r;var tSx;var nKa=new Map;var EKv=!1;var yg=function(){var p=_.w.apply(this,arguments)||this;p.DEFAULT_TOOLTIP_OFFSET="10";p.TOOLTIP_OFFSET_NO_BANNER="-8";p.badges=null;p.noEndpoints=!1;p.wrapText=!1;p.forceVerified=!1;p.tooltipPosition="top";p.compactStyle=!1;p.height=0;p.lineHeight=0;return p};
_.A(yg,_.w);_.J=yg.prototype;_.J.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.J.attached=function(){var p=this;this.observer=new MutationObserver(function(y,l){p.handleResized();l.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.J.detached=function(){this.observer&&this.observer.disconnect()};
_.J.logTooltipEvent=function(){_.n("kevlar_wiz_tooltip_event_killswitch")||EKv||(_.GQl("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),EKv=!0)};
_.J.handleWindowResized=function(){this.handleResized()};
_.J.onChannelNameChanged=function(){this.verified?this.handleResized():(this.textEl&&this.textEl.style.removeProperty("width"),this.textContainerEl&&(this.textContainerEl.style.removeProperty("padding"),this.textContainerEl.style.removeProperty("margin-right"),this.textContainerEl.style.removeProperty("margin-left")))};
_.J.onHeightChanged=function(){if(this.verified){var p=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.OY("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=p:this.textContainerEl.style.marginRight=p}};
_.J.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.OY("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.J.handleResized=function(){var p=this;this.verified&&_.TR.addLowPriorityJob(function(){p.fitBackgroundToText();var y=getComputedStyle(p.hostElement).lineHeight;y&&(y=y.match(/\d+/))&&y.length&&(p.lineHeight=Number(y[0]));p.height=p.lineHeight&&!p.wrapText?p.lineHeight:p.textEl.offsetHeight})};
_.J.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var p=document.createRange(),y=_.jR(this.textEl).children;y.length>0?p.selectNodeContents(y[0]):p.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(p.getBoundingClientRect().width)+"px"}};
_.J.computeChannelBadgeStyle=function(p){var y;if((p==null?0:(y=p.runs)==null?0:y.length)&&p.runs[0].textColor)return"--ytd-badge-icon-color:"+_.z5(p.runs[0].textColor)+";"};
_.Jh.Object.defineProperties(yg.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"?_.EK(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var p=this.get("badges.0.metadataBadgeRenderer.tooltip");if(p)return p}return _.JB(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
yg.prototype.onLineHeightChanged=yg.prototype.onLineHeightChanged;yg.prototype.onHeightChanged=yg.prototype.onHeightChanged;yg.prototype.onChannelNameChanged=yg.prototype.onChannelNameChanged;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],yg.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],yg.prototype,"badges",void 0);_.H([_.Q(),_.x("design:type",Object)],yg.prototype,"channelName",void 0);
_.H([_.Q(),_.x("design:type",Object)],yg.prototype,"noEndpoints",void 0);_.H([_.Q(),_.x("design:type",Object)],yg.prototype,"wrapText",void 0);_.H([_.Q(),_.x("design:type",Object)],yg.prototype,"forceVerified",void 0);_.H([_.Q(),_.x("design:type",Object)],yg.prototype,"tooltipPosition",void 0);_.H([_.Q(),_.x("design:type",String)],yg.prototype,"tooltip",void 0);_.H([_.Q(),_.x("design:type",Boolean)],yg.prototype,"hasChannelArt",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],yg.prototype,"compactStyle",void 0);_.H([_.rd("#text-container"),_.x("design:type",HTMLElement)],yg.prototype,"textContainerEl",void 0);_.H([_.rd("#text"),_.x("design:type",Object)],yg.prototype,"textEl",void 0);_.H([_.rd("#verified-tooltip"),_.x("design:type",HTMLElement)],yg.prototype,"verifiedTooltip",void 0);_.H([_.Q(),_.x("design:type",Object)],yg.prototype,"height",void 0);
_.H([_.Q(),_.x("design:type",Object)],yg.prototype,"lineHeight",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("badges","forceVerified"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],yg.prototype,"verified",null);_.H([_.g("badges","verified"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],yg.prototype,"hideBadges",null);_.H([_.g("channelName"),_.x("design:type",Object),_.x("design:paramtypes",[])],yg.prototype,"formattedName",null);
_.H([_.g("badges","verified","formattedName"),_.x("design:type",String),_.x("design:paramtypes",[])],yg.prototype,"tooltipText",null);_.H([_.g("hasChannelArt"),_.x("design:type",String),_.x("design:paramtypes",[])],yg.prototype,"tooltipOffset",null);_.H([_.gd("channelName"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yg.prototype,"onChannelNameChanged",null);
_.H([_.gd("height"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yg.prototype,"onHeightChanged",null);_.H([_.gd("lineHeight","height"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yg.prototype,"onLineHeightChanged",null);_.H([_.k({is:"ytd-channel-name",disableElementRegistration:!0})],yg);
_.D(yg,"ytd-channel-name",function(){if(tSx!==void 0)return tSx;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return tSx=p},{mode:_.ZS("kevlar_poly_si_batch_j036")?1:2});var lx=function(){var p=_.w.apply(this,arguments)||this;p.standardizeIconSize=_.n("kevlar_system_icons");return p};
_.A(lx,_.w);lx.prototype.basicPaletteChanged=function(){var p;(p=this.data.color)!=null&&p.basicColorPaletteData&&_.dD(this.hostElement,this.data.color.basicColorPaletteData)};
lx.prototype.useFilledIcons=function(p){return _.n("kevlar_system_icons")&&(p==="CHECK_CIRCLE_THICK"||p==="OFFICIAL_ARTIST_BADGE")};
_.Jh.Object.defineProperties(lx.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return this.data.authorCreator||((p=this.data)==null?void 0:(y=p.color)==null?void 0:(l=y.basicColorPaletteData)==null?void 0:l.backgroundColor)}}});
lx.prototype.basicPaletteChanged=lx.prototype.basicPaletteChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],lx.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],lx.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],lx.prototype,"standardizeIconSize",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("data.authorUnifiedVerified"),_.x("design:type",Object),_.x("design:paramtypes",[])],lx.prototype,"verified",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],lx.prototype,"creator",null);_.H([_.gd("data.color.basicColorPaletteData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lx.prototype,"basicPaletteChanged",null);_.H([_.k({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],lx);
_.D(lx,"ytd-author-comment-badge-renderer",function(){if(s1r!==void 0)return s1r;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-author-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="name" class="yt-simple-endpoint style-scope ytd-author-comment-badge-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n  <ytd-channel-name id="channel-name" channel-name="[[data.authorText]]" force-verified="[[verified]]" tooltip="[[data.iconTooltip]]" class="style-scope ytd-author-comment-badge-renderer">\n  </ytd-channel-name>\n</a>\n<yt-icon id="icon" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" size="12" class="style-scope ytd-author-comment-badge-renderer">\n</yt-icon>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return s1r=p},{mode:1});var JvU;var q0=function(){return _.w.apply(this,arguments)||this};
_.A(q0,_.w);q0.prototype.computeThumbnailWidth=function(p){if(p==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],q0.prototype,"data",void 0);_.H([_.Q({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],q0.prototype,"icon",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],q0.prototype,"surface",void 0);
_.H([_.Q({reflectToAttribute:!0,value:_.n("enable_shrink_image_size_on_web_posts_singleton")}),_.x("design:type",Boolean)],q0.prototype,"searchSxsUx",void 0);_.H([_.k({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],q0);
_.D(q0,"ytd-backstage-image-renderer",function(){if(JvU!==void 0)return JvU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[data.command]]" class="style-scope ytd-backstage-image-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-backstage-image-renderer" href$="[[computeHref_(data.command)]]" data="[[data.commmand]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.command]]" class="style-scope ytd-backstage-image-renderer">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="generated-image-identifier" class="generated-image-identifier style-scope ytd-backstage-image-renderer" hidden="[[!data.generatedImageMetadata]]">\n        <yt-icon class="generated-image-icon style-scope ytd-backstage-image-renderer" icon="[[computeIcon_(data.generatedImageMetadata.icon)]]"></yt-icon>\n        <span class="generated-image-label style-scope ytd-backstage-image-renderer">[[data.generatedImageMetadata.label]]</span>\n      </div>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return JvU=p},{mode:1});var cvi;var sI=function(){var p=_.w.apply(this,arguments)||this;p.isLoading=!1;p.selectedItemIndex=-1;return p};
_.A(sI,_.w);_.J=sI.prototype;_.J.computeIsChannelOwner=function(p){if(!p)return!0;p=p[0];return!(p&&(p.signinEndpoint||p.selectServiceEndpoint))};
_.J.computeIsImagePoll=function(p){return(p==null?void 0:p.type)==="POLL_TYPE_IMAGE"};
_.J.computeIsTotalVotesDisabled=function(p){return!(p==null?0:p.totalVotes)};
_.J.thumbnailSrc=function(p){var y,l,q,t;return(p==null?0:(y=p.thumbnails)==null?0:(l=y[0])==null?0:l.url)?_.XX((q=p.thumbnails)==null?void 0:(t=q[0])==null?void 0:t.url):void 0};
_.J.progressWidth=function(p){return"width:"+(p?p*100:0)+"%;"};
_.J.textAreaWidth=function(p){return this.isImagePoll?null:"width:"+(p?p*100:0)+"%;"};
_.J.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.J.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var p=this.data.choices,y=0;y<p.length;y++)if(p[y].selected){this.selectedItemIndex=y;break}};
_.J.onPopupClosed=function(p,y){p=Number(this.pollVotes.selected);y.confirmed&&(this.selectChoice(p,!1),_.$w(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.J.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.J.onYtCommentPollRevert=function(p,y){y&&(this.selectChoice(y.selectedChoiceIndex,!0),this.set("data.totalVotes",y.totalVotes))};
_.J.onYtServiceRequestSent=function(p,y){if(y.actions)for(p=0;p<y.actions.length;p++){var l=y.actions[p];_.G(l,TA)&&this.set("data.totalVotes",_.G(l,TA).totalVotes)}};
_.J.onYtServiceRequestCompleted=function(p){var y=this.get("detail.data.actionResults.0.feedback",p);p=this.get("detail.data.actionResults.0.status",p);if(y==="FEEDBACK_DESELECT"||y==="FEEDBACK_SELECT")this.isLoading=!1,p==="STATUS_FAILED"?_.Ub(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.J.getEndpoint=function(p,y){return y===p?this.data.choices[y].deselectServiceEndpoint||null:this.data.choices[p].selectServiceEndpoint||null};
_.J.selectChoice=function(p,y){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var l=0;l<this.data.choices.length;l++){var q;if(p===this.selectedItemIndex){var t=!1;var E=q=null}else q=(t=l===p)?this.data.choices[l].voteRatioIfSelected:this.data.choices[l].voteRatioIfNotSelected,E=t?this.data.choices[l].votePercentageIfSelected:this.data.choices[l].votePercentageIfNotSelected;this.set("data.choices."+l+".voteRatio",q);
this.set("data.choices."+l+".votePercentage",E);this.set("data.choices."+l+".selected",t)}y||(this.isLoading=!0,(y=this.getEndpoint(p,this.selectedItemIndex))&&_.WC().resolve(_.aK).resolveCommand(y,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===p?-1:p};
_.Jh.Object.defineProperties(sI.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
sI.prototype.onYtServiceRequestCompleted=sI.prototype.onYtServiceRequestCompleted;sI.prototype.onYtServiceRequestSent=sI.prototype.onYtServiceRequestSent;sI.prototype.onYtCommentPollRevert=sI.prototype.onYtCommentPollRevert;sI.prototype.onPopupClosed=sI.prototype.onPopupClosed;sI.prototype.dataChanged=sI.prototype.dataChanged;_.H([_.V(_.hT),_.x("design:type",Object)],sI.prototype,"paperItemBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],sI.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.RP),_.x("design:type",Object)],sI.prototype,"ytdOpenPopupBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],sI.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],sI.prototype,"isLoading",void 0);_.H([_.Q({computed:"computeIsChannelOwner(data.choices)"}),_.x("design:type",Boolean)],sI.prototype,"isChannelOwner",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.x("design:type",Boolean)],sI.prototype,"isImagePoll",void 0);_.H([_.Q({computed:"computeIsTotalVotesDisabled(data)"}),_.x("design:type",Boolean)],sI.prototype,"isTotalVotesDisabled",void 0);_.H([_.Q(),_.x("design:type",Object)],sI.prototype,"previousPollInfo",void 0);_.H([_.Q(),_.x("design:type",Object)],sI.prototype,"selectedItemIndex",void 0);_.H([_.rd("#poll-votes"),_.x("design:type",Object)],sI.prototype,"pollVotes",void 0);
_.H([_.g("isChannelOwner"),_.x("design:type",Object),_.x("design:paramtypes",[])],sI.prototype,"endpointStyle",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sI.prototype,"dataChanged",null);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],sI.prototype,"onPopupClosed",null);
_.H([_.VU("yt-comment-poll-revert"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],sI.prototype,"onYtCommentPollRevert",null);_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],sI.prototype,"onYtServiceRequestSent",null);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],sI.prototype,"onYtServiceRequestCompleted",null);_.H([_.k({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],sI);
_.D(sI,"ytd-backstage-poll-renderer",function(){if(cvi!==void 0)return cvi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return cvi=p},{mode:2});var eDM;var hDV={autoplay:!1,loop:!1},COQ={simpleText:""},tV=function(){var p=_.w.apply(this,arguments)||this;p.isLoading=!1;p.usesPanelLockup=!1;p.selectedItemIndex=-1;p.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},hDV,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});p.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},hDV,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});p.correctnessAnimationProps=[];p.correctnessAnimationRefs=[];return p};
_.A(tV,_.w);_.J=tV.prototype;_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.J.computeIsChannelOwner=function(p){if(!p)return!0;p=p[0];return!(p&&(p.signinEndpoint||p.selectServiceEndpoint))};
_.J.computeIsTotalVotesDisabled=function(p){return!(p==null?0:p.totalVotes)};
_.J.computeIsImageQuiz=function(p){return(p==null?void 0:p.type)==="POLL_TYPE_IMAGE"};
_.J.onExplanationChanged=function(){this.expander.reset()};
_.J.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var p=this.data.choices;if(p){this.maybeInitializeQuizLotties(p);for(var y=0;y<p.length;y++)if(p[y].isSelected||this.isChannelOwner&&p[y].isCorrect){this.selectedItemIndex=y;return}this.selectedItemIndex=-1}}};
_.J.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var p=this.selectedItemIndex,y=Number(this.quizVotes.selected);this.selectChoice(y);this.sendVoteAction(y,p);this.quizVotes.selected=-1;var l;p=!((l=this.data)==null?0:l.enableAnimation);this.maybePlayAnswerAnimations(p)}};
_.J.onYtCommentPollRevert=function(p,y){y&&(this.selectChoice(y.selectedChoiceIndex),this.set("data.totalVotes",y.totalVotes))};
_.J.onYtServiceRequestSent=function(p,y){if(y.actions)for(p=_.c(y.actions),y=p.next();!y.done;y=p.next())(y=_.G(y.value,TA))&&this.set("data.totalVotes",y.totalVotes)};
_.J.onYtServiceRequestCompleted=function(p){var y=this.get("detail.data.actionResults.0.feedback",p);p=this.get("detail.data.actionResults.0.status",p);if(y==="FEEDBACK_DESELECT"||y==="FEEDBACK_SELECT")this.isLoading=!1,p==="STATUS_FAILED"?_.Ub(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.J.getAnimationPropsForChoiceIndex=function(p,y){return y[p]};
_.J.maybePlayAnswerAnimations=function(p){p=p===void 0?!1:p;var y;if((y=this.data)!=null&&y.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){y=_.c(this.correctnessAnimationRefs);for(var l=y.next();!l.done;l=y.next()){var q=void 0,t=void 0;(q=l.value)==null||(t=q.lottieEl)==null||t.stop()}if(!(this.selectedItemIndex<0)){y=0;p&&(y=this.isCorrect?37:25);var E,e;(E=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(e=E.lottieEl)==null||e.goToAndPlay(p?y:0,!0);if(!(this.isCorrect||
(E=this.data.choices.findIndex(function(m){return m.isCorrect}),E<0))){var C,u;
(u=(C=this.correctnessAnimationRefs[E])==null?void 0:C.lottieEl)==null||u.goToAndPlay(37,!0);var a;C=(a=this.fadeContainers)==null?void 0:a.item(E);!p&&C&&this.fadeIn(C)}}}};
_.J.thumbnailSrc=function(p){var y,l,q,t;return(p==null?0:(y=p.thumbnails)==null?0:(l=y[0])==null?0:l.url)?_.XX((q=p.thumbnails)==null?void 0:(t=q[0])==null?void 0:t.url):void 0};
_.J.a11yVotedText=function(p,y){var l,q,t=((l=this.data)==null?void 0:(q=l.correctVotedText)==null?void 0:q.simpleText)||"",E,e;l=((E=this.data)==null?void 0:(e=E.votedText)==null?void 0:e.simpleText)||"";if(!y)return"";var C,u;if((C=this.data)==null?0:(u=C.choices)==null?0:u[p].isCorrect)return t;var a,m;return((a=this.data)==null?0:(m=a.choices)==null?0:m[p].isSelected)?l:""};
_.J.getEndpoint=function(p,y){return y===p?this.data.choices[p].deselectServiceEndpoint||null:this.data.choices[p].selectServiceEndpoint||null};
_.J.sendVoteAction=function(p,y){if(p=this.getEndpoint(p,y))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(p)};
_.J.selectChoice=function(p){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var y=0;y<this.data.choices.length;y++)this.set("data.choices."+y+".isSelected",p===this.selectedItemIndex?!1:y===p);this.selectedItemIndex=this.selectedItemIndex===p?-1:p};
_.J.maybeInitializeQuizLotties=function(p){var y=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=p.map(function(l){return{animationConfig:l.isCorrect?y.baseCorrectLottiePlayerAnimationConfig:y.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){y.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(l){return l.animationRef||{}})};
_.J.fadeIn=function(p){p.classList.add("fade-in");_.ZR(_.TR,function(){p.classList.remove("fade-in")},900)};
_.Jh.Object.defineProperties(tV.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.n("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.JB(this.explanation).length>0&&this.showCorrectAnswer}},
showCorrectAnswer:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
isQuizAnsweringDisabled:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isQuizAnsweringDisabled?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}},
isAttempted:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.data)==null?void 0:(y=p.choices)==null?void 0:y.some(function(l){return l.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null||!p.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?COQ:this.data.choices[this.selectedItemIndex].explanation||COQ}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null||!p.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
tV.prototype.onYtServiceRequestCompleted=tV.prototype.onYtServiceRequestCompleted;tV.prototype.onYtServiceRequestSent=tV.prototype.onYtServiceRequestSent;tV.prototype.onYtCommentPollRevert=tV.prototype.onYtCommentPollRevert;tV.prototype.dataChanged=tV.prototype.dataChanged;tV.prototype.onExplanationChanged=tV.prototype.onExplanationChanged;_.H([_.V(_.hT),_.x("design:type",Object)],tV.prototype,"paperItemBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],tV.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],tV.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.m$.YtTaskEmitterBehavior),_.x("design:type",Object)],tV.prototype,"ytTaskEmitterBehavior",void 0);_.H([_.V(_.RP),_.x("design:type",Object)],tV.prototype,"ytdOpenPopupBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],tV.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Object)],tV.prototype,"isLoading",void 0);_.H([_.Q(),_.x("design:type",Object)],tV.prototype,"usesPanelLockup",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.x("design:type",Boolean)],tV.prototype,"isChannelOwner",void 0);_.H([_.Q({computed:"computeIsTotalVotesDisabled(data)"}),_.x("design:type",Boolean)],tV.prototype,"isTotalVotesDisabled",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.x("design:type",Boolean)],tV.prototype,"isImageQuiz",void 0);_.H([_.Q(),_.x("design:type",Object)],tV.prototype,"previousQuizInfo",void 0);_.H([_.Q(),_.x("design:type",Object)],tV.prototype,"selectedItemIndex",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("data","usesPanelLockup"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],tV.prototype,"shouldUseModernUi",null);
_.H([_.SR(".fade-container"),_.x("design:type",Object)],tV.prototype,"fadeContainers",void 0);_.H([_.Q(),_.x("design:type",Array)],tV.prototype,"correctnessAnimationProps",void 0);_.H([_.g("explanation","showCorrectAnswer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],tV.prototype,"showExplanation",null);_.H([_.g("isChannelOwner","isAttempted"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],tV.prototype,"showCorrectAnswer",null);
_.H([_.g("isChannelOwner","isAttempted","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],tV.prototype,"isQuizAnsweringDisabled",null);_.H([_.g("isQuizAnsweringDisabled"),_.x("design:type",Object),_.x("design:paramtypes",[])],tV.prototype,"endpointStyle",null);_.H([_.g("data","selectedItemIndex"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],tV.prototype,"isAttempted",null);
_.H([_.g("data","selectedItemIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],tV.prototype,"explanation",null);_.H([_.g("data","selectedItemIndex"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],tV.prototype,"isCorrect",null);_.H([_.rd("ytd-expander"),_.x("design:type",Object)],tV.prototype,"expander",void 0);_.H([_.rd("#quiz-votes"),_.x("design:type",Object)],tV.prototype,"quizVotes",void 0);
_.H([_.gd("explanation"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tV.prototype,"onExplanationChanged",null);_.H([_.gd("data","isChannelOwner"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tV.prototype,"dataChanged",null);_.H([_.VU("yt-comment-quiz-revert"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],tV.prototype,"onYtCommentPollRevert",null);
_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],tV.prototype,"onYtServiceRequestSent",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],tV.prototype,"onYtServiceRequestCompleted",null);_.H([_.k({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],tV);
_.D(tV,"ytd-backstage-quiz-renderer",function(){if(eDM!==void 0)return eDM;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return eDM=p},{mode:1});var uMU;var EI=function(){return _.w.apply(this,arguments)||this};
_.A(EI,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],EI.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],EI.prototype,"data",void 0);_.H([_.k({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],EI);
_.D(EI,"ytd-post-uploaded-video-renderer",function(){if(uMU!==void 0)return uMU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-uploaded-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-post-uploaded-video-renderer">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-post-uploaded-video-renderer">\n  </yt-img-shadow>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return uMU=p},{mode:1});var RDQ;var JV=function(){return _.w.apply(this,arguments)||this};
_.A(JV,_.w);JV.prototype.useFilledIcons=function(p){return p==="SPONSORSHIP_STAR"};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],JV.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],JV.prototype,"data",void 0);_.H([_.k({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],JV);
var WFP=_.Al()(JV,"ytd-sponsors-only-badge-renderer",function(){if(RDQ===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsors-only-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" class="style-scope ytd-sponsors-only-badge-renderer">\n</yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer">\n  <tp-yt-paper-tooltip for="label" class="style-scope ytd-sponsors-only-badge-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n  </tp-yt-paper-tooltip>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);RDQ=p}p=RDQ;return p},{allowedProps:["data"],
mode:1});var aBP;var c5=function(){return _.w.apply(this,arguments)||this};
_.A(c5,_.w);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],c5.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],c5.prototype,"data",void 0);_.H([_.k({is:"ytd-child-video-renderer",disableElementRegistration:!0})],c5);
_.D(c5,"ytd-child-video-renderer",function(){if(aBP!==void 0)return aBP;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-child-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-child-video-renderer" id="title" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"><yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-child-video-renderer"></yt-formatted-string><div id="length" class="style-scope ytd-child-video-renderer">[[getSimpleString(data.lengthText)]]</div></a>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return aBP=p},{mode:1});var m5Q;var U5U;var eK=function(){var p=_.w.apply(this,arguments)||this;p.size=0;p.enableWebModernCollectionsV2=_.n("web_modern_collections_v2");p.fallbackImageSize={height:void 0,width:9999};p.webModernCollections=!1;return p};
_.A(eK,_.w);_.J=eK.prototype;_.J.computeBlurredImageSize=function(p){return p?{height:p*2,width:p*2}:this.fallbackImageSize};
_.J.computeImageSize=function(p){return p?{height:p,width:p}:this.fallbackImageSize};
_.J.computeObjectFit=function(p){return p?"FILL":"CONTAIN"};
_.J.computePreserve=function(p){return p?!0:!1};
_.J.setBackground=function(){var p,y;_.n("web_modern_collections_v2")&&((p=this.data)==null?0:(y=p.thumbnail)==null?0:y.sampledThumbnailColor)&&(p=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+p.red+","+p.green+","+p.blue+",1)")};
eK.prototype.setBackground=eK.prototype.setBackground;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],eK.prototype,"ytRendererBehavior",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],eK.prototype,"watchFeedThumbnail",void 0);_.H([_.Q(),_.x("design:type",Object)],eK.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],eK.prototype,"size",void 0);
_.H([_.Q({computed:"computeBlurredImageSize(size)"}),_.x("design:type",Object)],eK.prototype,"blurredImageSize",void 0);_.H([_.Q({computed:"computeImageSize(size)"}),_.x("design:type",Object)],eK.prototype,"imageSize",void 0);_.H([_.Q({computed:"computePreserve(size)"}),_.x("design:type",String)],eK.prototype,"preserve",void 0);_.H([_.Q({computed:"computeObjectFit(size)"}),_.x("design:type",String)],eK.prototype,"objectFit",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],eK.prototype,"enableWebModernCollectionsV2",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],eK.prototype,"webModernCollections",void 0);_.H([_.gd("data.thumbnail.sampledThumbnailColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eK.prototype,"setBackground",null);_.H([_.k({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],eK);
_.D(eK,"ytd-playlist-custom-thumbnail-renderer",function(){if(U5U!==void 0)return U5U;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[webModernCollections]]" class="style-scope ytd-playlist-custom-thumbnail-renderer">\n    <div class="blurred-image-wrapper style-scope ytd-playlist-custom-thumbnail-renderer" style$="[[backgroundStyle]]">\n        <yt-image class="blurred-image style-scope ytd-playlist-custom-thumbnail-renderer" alt="hidden" aria-hidden="true" data="[[data.thumbnail]]" ftl-eligible="" height="[[blurredImageSize.height]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[blurredImageSize.width]]">\n        </yt-image>\n    </div>\n</template>\n<yt-image class="custom-thumbnail style-scope ytd-playlist-custom-thumbnail-renderer" alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[imageSize.height]]" object-fit="[[objectFit]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[imageSize.width]]">\n</yt-image>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return U5U=p},{mode:1});var $5r;var hV=function(){return _.w.apply(this,arguments)||this};
_.A(hV,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],hV.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],hV.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Number)],hV.prototype,"width",void 0);_.H([_.k({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],hV);
_.D(hV,"ytd-playlist-video-thumbnail-renderer",function(){if($5r!==void 0)return $5r;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" width="[[width]]" class="style-scope ytd-playlist-video-thumbnail-renderer">\n</yt-image>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return $5r=p},{mode:1});var j1Z;var Cd=function(){return _.w.apply(this,arguments)||this};
_.A(Cd,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Cd.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Cd.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Number)],Cd.prototype,"width",void 0);_.H([_.k({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Cd);
_.D(Cd,"ytd-show-custom-thumbnail-renderer",function(){if(j1Z!==void 0)return j1Z;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" width="[[width]]" class="style-scope ytd-show-custom-thumbnail-renderer">\n</yt-image>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return j1Z=p},{mode:1});var bAv;var ux=function(){return _.w.apply(this,arguments)||this};
_.A(ux,_.w);ux.prototype.useFilledIcons=function(p){return p==="MUSIC"||p==="COURSE"};
ux.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=IU(this.overlayColor,"0.8");else if(this.overlayColor){var p=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+p.red+","+p.green+","+p.blue+",0.8)"}};
_.Jh.Object.defineProperties(ux.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)}}});
ux.prototype.overlayColorChanged=ux.prototype.overlayColorChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ux.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ux.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],ux.prototype,"overlayColor",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("data.icon","data.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],ux.prototype,"overlayStyle",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("data.icon","data.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],ux.prototype,"overlayTextStyle",null);_.H([_.gd("overlayColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ux.prototype,"overlayColorChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],ux);
_.D(ux,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(bAv!==void 0)return bAv;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-bottom-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-icon>\n<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-formatted-string>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return bAv=p},{mode:1});var nKO;var Rb=function(){var p=_.w.apply(this,arguments)||this;p.active=!1;return p};
_.A(Rb,_.w);Rb.prototype.computeIsSpinnerHidden=function(p){return(p==null?void 0:p.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
Rb.prototype.computeOverlayIcon=function(p){return(p==null?void 0:p.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(p==null?void 0:p.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Rb.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Rb.prototype,"active",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Rb);
_.D(Rb,"ytd-thumbnail-overlay-downloading-renderer",function(){if(nKO!==void 0)return nKO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-downloading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[computeOverlayIcon(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[active]]" hidden="[[computeIsSpinnerHidden(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></tp-yt-paper-spinner-lite>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return nKO=p},{mode:1});var GQM;var W5=function(){return _.w.apply(this,arguments)||this};
_.A(W5,_.w);_.Jh.Object.defineProperties(W5.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],W5.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],W5.prototype,"data",void 0);_.H([_.g("data.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],W5.prototype,"text",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],W5);
_.D(W5,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(GQM!==void 0)return GQM;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-hover-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-hover-text-renderer"></yt-icon>\n<span class="style-scope ytd-thumbnail-overlay-hover-text-renderer">[[text]]</span>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return GQM=p},{mode:1});var POU,AvQ=function(){if(POU!==void 0)return POU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-equalizer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg xmlns="http://www.w3.org/2000/svg" id="equalizer" viewBox="0 0 55 95" class="style-scope ytd-thumbnail-overlay-equalizer">\n  <g class="style-scope ytd-thumbnail-overlay-equalizer">\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="0"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="20"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="40"></rect>\n  </g>\n</svg>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return POU=p};var ab=function(){return _.w.apply(this,arguments)||this};
_.A(ab,_.w);_.Jh.Object.defineProperties(ab,{template:{configurable:!0,enumerable:!0,get:function(){return AvQ()}}});
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],ab.prototype,"animateEqualizer",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],ab);_.Al()(ab,"ytd-thumbnail-overlay-equalizer",function(){return AvQ()},{allowedProps:["animateEqualizer"],
mode:1});var ZAi;var mA=function(){var p=_.w.apply(this,arguments)||this;p.nowPlayingBadge=_.n("web_now_playing_badge");p.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return p};
_.A(mA,_.w);mA.prototype.activeChanged=function(){var p=this;_.n("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.th(this,function(){_.Ub(p.hostElement,"yt-playlist-lockup-now-playing-active",p)})};
mA.prototype.onMiniplayerPlayStateChanged=function(p){var y,l=(y=_.G(_.Sy().currentEndpoint,_.Eb))==null?void 0:y.videoId;this.isVideoPlaying=p&&(_.n("web_limit_now_playing_animation_killswitch")||this.videoId===l)};
mA.prototype.activeChanged=mA.prototype.activeChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],mA.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],mA.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],mA.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Boolean)],mA.prototype,"isVideoPlaying",void 0);_.H([_.Q(),_.x("design:type",String)],mA.prototype,"videoId",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],mA.prototype,"equalizerOnly",void 0);_.H([_.Q(),_.x("design:type",Boolean)],mA.prototype,"isActive",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],mA.prototype,"nowPlayingBadge",void 0);_.H([_.gd("isActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mA.prototype,"activeChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],mA);
_.D(mA,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(ZAi!==void 0)return ZAi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-now-playing-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="overlay-text" hidden="[[equalizerOnly]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">[[getSimpleString(data.text)]]</span>\n<ytd-thumbnail-overlay-equalizer animate-equalizer="[[isVideoPlaying]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">\n</ytd-thumbnail-overlay-equalizer>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return ZAi=p},{mode:1});var MSr;var UI=function(){return _.w.apply(this,arguments)||this};
_.A(UI,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],UI.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],UI.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],UI);
_.D(UI,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(MSr!==void 0)return MSr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-playback-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.texts]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"></yt-formatted-string></template>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return MSr=p},{mode:_.ZS("kevlar_poly_si_batch_j025")?1:2});var VSi;var $$=function(){return _.w.apply(this,arguments)||this};
_.A($$,_.w);$$.prototype.onDurationChanged=function(){var p,y;_.jR(this.hostElement).querySelector("#progress").style.width=((y=(p=this.data)==null?void 0:p.percentDurationWatched)!=null?y:0)+"%"};
$$.prototype.onDurationChanged=$$.prototype.onDurationChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],$$.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],$$.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],$$.prototype,"isLive",void 0);_.H([_.gd("data.percentDurationWatched"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$$.prototype,"onDurationChanged",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],$$);
_.D($$,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(VSi!==void 0)return VSi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-resume-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress" class="style-scope ytd-thumbnail-overlay-resume-playback-renderer"></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return VSi=p},{mode:1});var gKU;var jK=function(){var p=_.w.apply(this,arguments)||this;p.bottomPanel=!1;p.richGridOverlay=!1;p.watchFeedOverlay=!1;p.isCompact=!1;return p};
_.A(jK,_.w);jK.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Jh.Object.defineProperties(jK.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.data)==null?void 0:(y=p.icon)==null?void 0:y.iconType)==="PLAY_ALL"&&_.n("kevlar_system_icons")}}});
jK.prototype.widthChanged=jK.prototype.widthChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],jK.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],jK.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Number)],jK.prototype,"width",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],jK.prototype,"bottomPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],jK.prototype,"richGridOverlay",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],jK.prototype,"watchFeedOverlay",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],jK.prototype,"isCompact",void 0);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jK.prototype,"isIconFilled",null);_.H([_.gd("width","watchFeedOverlay"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jK.prototype,"widthChanged",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],jK);
_.D(jK,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(gKU!==void 0)return gKU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-side-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-formatted-string>\n<yt-icon default-to-filled="[[isIconFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-icon>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return gKU=p},{mode:1});var Q1$;var KFr=["CLIP","SHORTS"],bx=function(){var p=_.w.apply(this,arguments)||this;p.animated=_.n("animated_live_badge_icon");p.hasIcon=!1;p.updateTimerIntervalId=0;p.timeSinceLive=0;return p};
_.A(bx,_.w);_.J=bx.prototype;_.J.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.J.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.J.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.J.hasIconOrText=function(){var p,y;return!!(((p=this.data)==null?0:p.icon)||((y=this.data)==null?0:y.text))};
_.J.initializeLiveBadgeTimer=function(){var p=this,y,l=(y=this.liveBadgeData)==null?void 0:y.startTimestampSec;if(l&&this.canShowLiveBadgeTimer()){var q;y=Number((q=this.liveBadgeData)==null?void 0:q.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(l);this.updateTimerIntervalId=_.Go(function(){p.canShowLiveBadgeTimer()?p.timeSinceLive++:(p.timeSinceLive=0,window.clearInterval(p.updateTimerIntervalId))},y)}else this.timeSinceLive=0};
_.J.canShowLiveBadgeTimer=function(){var p=Date.now(),y,l;return p<(Number((y=this.liveBadgeData)==null?void 0:y.endTimestampSec)-1)*1E3&&p>Number((l=this.liveBadgeData)==null?void 0:l.startTimestampSec)*1E3};
_.Jh.Object.defineProperties(bx.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var p=this.data;var y=this.timeSinceLive;var l,q,t,E;a:{var e=p.style;if(e===void 0)e=16;else switch(e){case "LIVE":e=17;break a;default:e=16}}y={type:e,text:y?z25({seconds:y}):_.JB(p.text),accessibilityText:(l=p.text)==null?void 0:(q=l.accessibility)==null?void 0:(t=q.accessibilityData)==null?void 0:t.label,icon:(E=p.icon)==null?void 0:E.iconType}}else y={};return y}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.liveBadgeData}},
overlayType:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.type)return this.data.type.replace("THUMBNAIL_OVERLAY_TIME_STATUS_TYPE_","")}},
useFilledIcon:{configurable:!0,enumerable:!0,get:function(){return KFr.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
bx.prototype.initializeLiveBadgeTimer=bx.prototype.initializeLiveBadgeTimer;bx.prototype.dataChanged=bx.prototype.dataChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],bx.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],bx.prototype,"data",void 0);_.H([_.Q({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],bx.prototype,"icon",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],bx.prototype,"animated",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.x("design:type",Boolean)],bx.prototype,"hideTimeStatus",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],bx.prototype,"hasIcon",void 0);_.H([_.Q(),_.x("design:type",Object)],bx.prototype,"timeSinceLive",void 0);_.H([_.g("data","timeSinceLive"),_.x("design:type",Object),_.x("design:paramtypes",[])],bx.prototype,"badgeShapeData",null);
_.H([_.g("data","overlayType"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],bx.prototype,"hideBadgeShape",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bx.prototype,"dataChanged",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data.style"),_.x("design:type",Object),_.x("design:paramtypes",[])],bx.prototype,"overlayStyle",null);
_.H([_.g("data.liveBadgeData"),_.x("design:type",Object),_.x("design:paramtypes",[])],bx.prototype,"liveBadgeData",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data.type"),_.x("design:type",Object),_.x("design:paramtypes",[])],bx.prototype,"overlayType",null);_.H([_.g("overlayType","overlayStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],bx.prototype,"useFilledIcon",null);
_.H([_.k8("liveBadgeData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bx.prototype,"initializeLiveBadgeTimer",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],bx);
_.D(bx,"ytd-thumbnail-overlay-time-status-renderer",function(){if(Q1$!==void 0)return Q1$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-time-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer badges="[[data.badges]]" is-thumbnail-badge="" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></ytd-badge-supported-renderer><div class="thumbnail-overlay-badge-shape style-scope ytd-thumbnail-overlay-time-status-renderer" hidden="[[hideBadgeShape]]"><badge-shape data="[[badgeShapeData]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></badge-shape></div><div id="time-status" hidden="[[hideTimeStatus]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"><yt-icon active="[[useFilledIcon]]" disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" size="16" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></yt-icon><span id="text" aria-label$="[[data.text.accessibility.accessibilityData.label]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer">\n    [[getSimpleString(data.text)]]\n  </span></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Q1$=p},{mode:_.ZS("kevlar_poly_si_batch_j035")?1:2});var wdV;var nd=function(){return _.w.apply(this,arguments)||this};
_.A(nd,_.w);nd.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"}}}}};
nd.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(p){if(this.hasPlaybackProgressBar)return{percentDurationWatched:p.percentDurationWatched}};
nd.prototype.computeHasPlaybackProgressBar=function(p){return!!p.percentDurationWatched&&p.percentDurationWatched>0};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],nd.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],nd.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],nd.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.x("design:type",Boolean)],nd.prototype,"hasPlaybackProgressBar",void 0);
_.H([_.k({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],nd);
_.D(nd,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(wdV!==void 0)return wdV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-show-watch-forward-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n  <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <div id="button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n    <div id="primary-action-button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      <div id="primary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n      <ytd-thumbnail-overlay-resume-playback-renderer id="playback-progress" data="[[computeThumbnailOverlayResumePlaybackRenderer(data)]]" hidden$="[[!hasPlaybackProgressBar]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      </ytd-thumbnail-overlay-resume-playback-renderer>\n    </div>\n    <div id="secondary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return wdV=p},{mode:1});var iA$;var rvi=_.aF(function(p){var y=p.data;var l=p.children;var q=function(){return!!y().doubleStack},t=function(){return!!y().includeStackHeight};
return _.R("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!y().experimentEnabled}},_.R(_.W,{cond:y,
then:function(){var E={};return _.R(_.a4,null,_.R(_.W,{cond:t,then:function(){var e={};return _.R("div",{class:_.ip("collections-stack-wiz__spacer",(e["collections-stack-wiz__spacer--double-stack"]=q,e))})}}),_.R("div",{class:_.ip((E["collections-stack-wiz__relative-stack"]=t,E))},_.R(_.W,{cond:q,
then:function(){var e={};return _.R("div",{class:_.ip("collections-stack-wiz__collection-stack2",function(){return y().customClassName2ndStack},(e["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return y().enableResponsiveMode},e)),
style:_.NW({"background-color":function(){return Avu(y())}})})}}),_.R("div",{class:_.ip("collections-stack-wiz__collection-stack1",function(){return y().customClassName1stStack},function(){return PO8(y().thumbnailSize?y().thumbnailSize:"medium")}),
style:_.NW({"background-color":function(){return Avu(y())}})}),l))}}))},"S");_.bp(rvi,"yt-collections-stack",{props:{data:_.Co}});var GO=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};p.webModernCollections=!1;p.isSearch=!1;p.isDoubleStack=!1;p.thumbnailSize="medium";p.enableWebModernCollectionsV2=_.n("web_modern_collections_v2");return p};
_.A(GO,_.w);_.J=GO.prototype;
_.J.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:"ytd-thumbnail-overlay-now-playing-renderer",tvfilmShowWatchForwardOverlayRenderer:"ytd-tvfilm-show-watch-forward-overlay-renderer"}},hoverOverlays_:{id:"hover-overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer"}},
"data.thumbnailRenderer":{id:"playlist-thumbnails",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",properties:{width:"[[width]]"}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",properties:{size:"[[customThumbnailSize]]",watchFeedThumbnail:"[[watchFeedThumbnail]]",webModernCollections:"[[webModernCollections]]"}},showCustomThumbnailRenderer:{component:"ytd-show-custom-thumbnail-renderer",properties:{width:"[[width]]"}}}}}};
_.J.getThumbnailDetails=function(p){if(p!=null&&p.thumbnailRenderer){var y=p.thumbnailRenderer,l;if((l=y.playlistVideoThumbnailRenderer)==null?0:l.thumbnail)return y.playlistVideoThumbnailRenderer.thumbnail;var q;if((q=y.playlistCustomThumbnailRenderer)==null?0:q.thumbnail)return y.playlistCustomThumbnailRenderer.thumbnail;p=p.thumbnailRenderer;var t;if((t=p.showCustomThumbnailRenderer)==null?0:t.thumbnail)return p.showCustomThumbnailRenderer.thumbnail}};
_.J.computeOverlayColor=function(p){var y,l;if((y=this.getThumbnailDetails(p))==null?0:(l=y.darkColorPalette)==null?0:l.section2Color)return this.getThumbnailDetails(p).darkColorPalette.section2Color;var q;return(q=this.getThumbnailDetails(p))==null?void 0:q.sampledThumbnailColor};
_.J.computeWebModernCollections=function(p){if(p==null||!p.thumbnailOverlays)return!1;p=_.c(p.thumbnailOverlays);for(var y=p.next();!y.done;y=p.next()){var l=void 0;if((l=y.value)==null?0:l.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.J.computeNavigationEndpoint=function(p){return Q$6(p==null?void 0:p.navigationEndpoint)};
_.Jh.Object.defineProperties(GO.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var p=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:p==null?void 0:p.sampledThumbnailColor,vibrantColorPalette:p==null?void 0:p.vibrantColorPalette,darkColorPalette:p==null?void 0:p.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],GO.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(B8O),_.x("design:type",Object)],GO.prototype,"ytdThumbnailBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],GO.prototype,"componentBehavior",void 0);
_.H([_.Q({value:!1}),_.x("design:type",Boolean)],GO.prototype,"watchFeedThumbnail",void 0);_.H([_.Q(),_.x("design:type",Number)],GO.prototype,"customThumbnailSize",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],GO.prototype,"hideAria",void 0);_.H([_.Q(),_.x("design:type",Object)],GO.prototype,"data",void 0);_.H([_.Q({computed:"computeOverlayColor(data)"}),_.x("design:type",Object)],GO.prototype,"overlayColor",void 0);
_.H([_.Q({computed:"computeWebModernCollections(data)"}),_.x("design:type",Object)],GO.prototype,"webModernCollections",void 0);_.H([_.Q({computed:"computeNavigationEndpoint(data)"}),_.x("design:type",Object)],GO.prototype,"computedNavigationEndpoint",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],GO.prototype,"isSearch",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],GO.prototype,"isDoubleStack",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],GO.prototype,"thumbnailSize",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],GO.prototype,"enableWebModernCollectionsV2",void 0);_.H([_.g("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.x("design:type",Object),_.x("design:paramtypes",[])],GO.prototype,"collectionStack",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],GO);
_.D(GO,"ytd-playlist-thumbnail",function(){if(iA$!==void 0)return iA$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-playlist-thumbnail"></yt-collections-stack>\n<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-playlist-thumbnail" aria-hidden="[[hideAria]]" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" tabindex="-1">\n  <div id="playlist-thumbnails" class="style-scope ytd-playlist-thumbnail"></div>\n  <yt-formatted-string id="length" hidden="[[!data.lengthText]]" text="[[data.lengthText]]" class="style-scope ytd-playlist-thumbnail">\n  </yt-formatted-string>\n  <div id="overlays" class="style-scope ytd-playlist-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-playlist-thumbnail"></div>\n</a>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return iA$=p},{mode:_.ZS("kevlar_poly_si_batch_j025")?1:2});var SpQ;var P5=function(){var p=_.w.apply(this,arguments)||this;p.noEndpoints=!1;p.amsterdamPostMvp=_.n("web_amsterdam_post_mvp_playlists");p.badges=[];p.transferState="TRANSFER_STATE_UNKNOWN";return p};
_.A(P5,_.w);_.J=P5.prototype;_.J.getMetadata=function(p){if(!p)return[];var y=[],l=p.shortViewCountText||p.viewCountText;l&&y.push(_.JB(l));p.publishedTimeText&&y.push(_.JB(p.publishedTimeText));p.upcomingEventData&&p.upcomingEventData.upcomingEventText&&y.push(_.OZ(_.JB(p.upcomingEventData.upcomingEventText),Number(p.upcomingEventData.startTime)));return y};
_.J.observeDataForBylineSeparator=function(){this.data&&_.nv(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.J.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.z5(this.metadataColor)};
_.J.getSimpleString=function(p){return _.JB(p)};
_.J.isBylineHidden=function(p){return this.noByline||!((p==null?0:p.longBylineText)||(p==null?0:p.shortBylineText))};
_.J.isMetadataHidden=function(p){var y;return((y=this.getMetadata(p))==null?void 0:y.length)===0};
_.J.isBylineMetadataSeparatorHidden=function(p){return this.isMetadataHidden(p)||!this.shouldShowVideoInfo};
_.J.isLongByline=function(p,y){return y&&!(p==null||!p.longBylineText)};
_.Jh.Object.defineProperties(P5.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var p;return this.amsterdamPostMvp&&!((p=this.data)==null||!p.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.n("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
P5.prototype.metadataColorChanged=P5.prototype.metadataColorChanged;P5.prototype.observeDataForBylineSeparator=P5.prototype.observeDataForBylineSeparator;_.H([_.V(_.zL),_.x("design:type",Object)],P5.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],P5.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],P5.prototype,"noEndpoints",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],P5.prototype,"isSlimShort",void 0);
_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],P5.prototype,"radioMeta",void 0);_.H([_.Q({selector:_.pX}),_.x("design:type",Object)],P5.prototype,"isGridViewEnabled",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],P5.prototype,"richMeta",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],P5.prototype,"amsterdamPostMvp",void 0);_.H([_.Q(),_.x("design:type",Boolean)],P5.prototype,"noByline",void 0);
_.H([_.Q({computed:"isLongByline(data, radioMeta)"}),_.x("design:type",Boolean)],P5.prototype,"longByline",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],P5.prototype,"truncateMetadataLine",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],P5.prototype,"miniMode",void 0);_.H([_.Q(),_.x("design:type",Number)],P5.prototype,"metadataColor",void 0);_.H([_.Q(),_.x("design:type",Array)],P5.prototype,"badges",void 0);
_.H([_.Q({selector:_.Ot,selectorArgs:["data.videoId"]}),_.x("design:type",String)],P5.prototype,"transferState",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],P5.prototype,"isDownloading",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],P5.prototype,"typographyBump",void 0);_.H([_.rd("#metadata-line"),_.x("design:type",HTMLElement)],P5.prototype,"metadataLine",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],P5.prototype,"observeDataForBylineSeparator",null);_.H([_.gd("metadataColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],P5.prototype,"metadataColorChanged",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],P5.prototype,"shouldShowVideoInfo",null);
_.H([_.g("badges"),_.x("design:type",String),_.x("design:paramtypes",[])],P5.prototype,"inlineBadgeClass",null);_.H([_.g("longByline"),_.x("design:type",String),_.x("design:paramtypes",[])],P5.prototype,"longBylineClass",null);_.H([_.g("data","longByline"),_.x("design:type",Object),_.x("design:paramtypes",[])],P5.prototype,"bylineText",null);_.H([_.g("isGridViewEnabled","data"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],P5.prototype,"watchFeedBigThumbs",null);
_.H([_.k({is:"ytd-video-meta-block",disableElementRegistration:!0})],P5);
_.D(P5,"ytd-video-meta-block",function(){if(SpQ!==void 0)return SpQ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return SpQ=p},{mode:_.ZS("kevlar_poly_si_batch_j080")?1:2});_.ox("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var AV=function(){var p=_.w.apply(this,arguments)||this;p.displayItemCount=2;p.isBackstagePlaylist=!1;p.isPostCompactPlaylist=!1;p.shouldShowChannelThumbnail=!1;p.useModernCollectionsV2=_.n("web_modern_collections_v2");return p};
_.A(AV,_.w);_.J=AV.prototype;_.J.computeFirstVideos=function(p,y){return p===void 0||y===void 0?[]:p.slice(0,y)};
_.J.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var p=this.data.thumbnailRenderer;p.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",p.playlistVideoThumbnailRenderer.thumbnail);p.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",p.playlistCustomThumbnailRenderer.thumbnail)}};
_.J.computeThumbnailHeight=function(p,y,l,q,t){return q?t==="BIG"?280:t==="MASSIVE"?337:234:l?240:y?72:p?118:138};
_.J.computeThumbnailWidth=function(p,y,l,q,t){return q?t==="MEDIUM"?450:t==="BIG"?500:t==="MASSIVE"?600:420:l?360:y?128:p?210:246};
_.J.computeUseBiggerThumbs=function(p){return p&&_.n("enable_desktop_search_bigger_thumbs")};
_.J.computeShouldShowChannelThumbnail=function(p,y){return p&&!(y==null||!y.channelThumbnail)};
_.Jh.Object.defineProperties(AV.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
AV.prototype.dataChanged=AV.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],AV.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.EW),_.x("design:type",Object)],AV.prototype,"ytdLockupBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],AV.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],AV.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],AV.prototype,"displayItemCount",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],AV.prototype,"isBackstagePlaylist",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],AV.prototype,"isPostCompactPlaylist",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],AV.prototype,"isSearch",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.x("design:type",Boolean)],AV.prototype,"useBiggerThumbs",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.$h("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],AV.prototype,"biggerThumbsStyle",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],AV.prototype,"isDownloads",void 0);_.H([_.Q({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.x("design:type",Object)],AV.prototype,"shouldShowChannelThumbnail",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],AV.prototype,"useModernCollectionsV2",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AV.prototype,"dataChanged",null);_.H([_.g("isSearch"),_.x("design:type",String),_.x("design:paramtypes",[])],AV.prototype,"stackThumbnailSize",null);_.H([_.k({is:"ytd-playlist-renderer",disableElementRegistration:!0})],AV);
_.D(AV,"ytd-playlist-renderer",function(){if(m5Q===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch)]]" data="[[data]]" height="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" hovered="[[lockupIsHovered]]" is-double-stack="[[isSearch]]" thumbnail-size="[[stackThumbnailSize]]" use-hovered-property="" width="[[computeThumbnailWidth(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-playlist-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-playlist-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <template is="dom-if" if="[[shouldShowChannelThumbnail]]" restamp="" class="style-scope ytd-playlist-renderer">\n      <div id="channel-info" class="style-scope ytd-playlist-renderer">\n        <a id="channel-thumbnail" hidden="[[!data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnail.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-playlist-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-playlist-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-playlist-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </template>\n    <ytd-video-meta-block id="meta" data="[[data]]" hidden="[[shouldShowChannelThumbnail]]" class="style-scope ytd-playlist-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="allowlisted-metadata-badges style-scope ytd-playlist-renderer" badges="[[data.allowlistedMetadataBadges]]" hidden="[[!data.allowlistedMetadataBadges]]">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="description-text" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ul id="list" hidden="[[isPostCompactPlaylist]]" class="style-scope ytd-playlist-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-playlist-renderer">\n      <li class="style-scope ytd-playlist-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-playlist-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n  <yt-formatted-string id="view-more" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-playlist-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-playlist-renderer"></yt-interaction>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);m5Q=p}p=m5Q;return p},{mode:1});var FFO;var LFO;var Zq=function(){var p=_.w.apply(this,arguments)||this;p.collections=!!_.n("web_modern_collections_v2");p.startX=0;return p};
_.A(Zq,_.w);Zq.prototype.onEndpointMouseDown=function(p){this.startX=p.clientX};
Zq.prototype.onEndpointClick=function(p){this.startX!==p.clientX&&(p.preventDefault(),p.stopPropagation())};
Zq.prototype.computeObjectFit=function(p){return p==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||p==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||p==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
Zq.prototype.computeCardStyle=function(p){return p?p.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Jh.Object.defineProperties(Zq.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var p,y;return this.collections&&((p=this.data)==null?void 0:(y=p.searchRefinementCardRendererStyle)==null?void 0:y.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}}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Zq.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Zq.prototype,"data",void 0);_.H([_.Q({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.x("design:type",Number)],Zq.prototype,"objectFit",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.x("design:type",String)],Zq.prototype,"cardStyle",void 0);
_.H([_.Q({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],Zq.prototype,"roundContainer",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Zq.prototype,"collections",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Zq.prototype,"isAlbumCard",null);_.H([_.g("data","collections","isAlbumCard"),_.x("design:type",Object),_.x("design:paramtypes",[])],Zq.prototype,"collectionStack",null);
_.H([_.k({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],Zq);
_.D(Zq,"ytd-search-refinement-card-renderer",function(){if(LFO!==void 0)return LFO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-refinement-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-search-refinement-card-renderer" data="[[data.searchEndpoint]]" href$="[[computeHref_(data.searchEndpoint)]]" on-mousedown="onEndpointMouseDown" on-click="onEndpointClick" draggable="false">\n  <div id="card-thumbnail" class="style-scope ytd-search-refinement-card-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-search-refinement-card-renderer"></yt-collections-stack>\n    <yt-img-shadow object-fit="[[objectFit]]" rounded-container="[[isAlbumCard]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-search-refinement-card-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="card-title" class="style-scope ytd-search-refinement-card-renderer">\n    <div class="style-scope ytd-search-refinement-card-renderer">[[getSimpleString(data.query)]]</div>\n  </div>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return LFO=p},{mode:1});var kQ$;var M0=function(){var p=_.w.apply(this,arguments)||this;p.isRichGrid=!1;return p};
_.A(M0,_.w);_.H([_.Q(),_.x("design:type",Object)],M0.prototype,"data",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],M0.prototype,"componentBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],M0.prototype,"ytdReduxBehavior",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],M0.prototype,"isRichGrid",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.BV}),_.x("design:type",Boolean)],M0.prototype,"miniMode",void 0);
_.H([_.k({is:"ytd-game-details-renderer",disableElementRegistration:!0})],M0);
_.D(M0,"ytd-game-details-renderer",function(){if(kQ$!==void 0)return kQ$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint focus-on-expand style-scope ytd-game-details-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n  <yt-img-shadow height="290" object-fit="COVER" thumbnail="[[data.boxArt]]" width="210" class="style-scope ytd-game-details-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="auto-generated" hidden="[[!data.autoGenerated]]" text="[[data.autoGenerated]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="live-viewers-count" hidden="[[!data.liveViewersText]]" text="[[data.liveViewersText]]" class="style-scope ytd-game-details-renderer">\n  </yt-formatted-string>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return kQ$=p},{mode:1});var NkP;var D5B;var Vg=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return p};
_.A(Vg,_.w);_.J=Vg.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.currentStateData=function(p){var y=p||this.data;return y&&y.states&&y.currentStateId!=null?y.states.find(function(l){return l.stateId===y.currentStateId})||null:null};
_.J.currentStateRendererData=function(p){return(p=this.currentStateData(p))&&p.state&&p.state.buttonRenderer?p.state.buttonRenderer:null};
_.J.stateChanged=function(){this&&this.data&&(this.ytRenderButtonBehavior._setEndpoint(null),this.ytRenderButtonBehavior._setServiceEndpoint(this.computeServiceEndpoint(this.data)),this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data)),this.ytRenderButtonBehavior._setButtonText(null),this.ytRenderButtonBehavior._setButtonAccessibility(this.computeAccessibility(this.data)),this.ytRenderButtonBehavior._setButtonClass(this.computeButtonClass(this.data)),this.ytRenderButtonBehavior.updateRenderedElements())};
_.J.computeButtonIcon=function(p){p=this.currentStateRendererData(p);var y;return(p==null?0:(y=p.icon)==null?0:y.iconType)?p.icon.iconType.toLowerCase():null};
_.J.computeAccessibility=function(p){return(p=this.currentStateRendererData(p))&&p.accessibilityData?p.accessibilityData.accessibilityData||null:null};
_.J.computeButtonClass=function(p){var y=this.currentStateRendererData(p);if(!y)return"";p="";var l=y.style;l&&(p+=l.toLowerCase().replace(/_/g,"-")+" ");(y=y.size)&&(p+=y.toLowerCase().replace(/_/g,"-")+" ");return p.trim()};
_.J.computeServiceEndpoint=function(p){if(!p)return null;var y=p&&p.serviceEndpoint,l=this.get("command.commandMetadata.webCommandMetadata.sendPost",p);return y?y:l&&p.command?p.command:null};
_.J.computeBellMenuItemParams=function(p){var y;p=(y=_.G(p==null?void 0:p.command,_.AO))==null?void 0:y.commands;if(!p||p.length===0)return null;y=_.G(p[0],_.xB);var l,q;return(y==null?0:(l=y.popup)==null?0:(q=l.menuPopupRenderer)==null?0:q.items)?y.popup.menuPopupRenderer.items.map(function(t){return t.menuServiceItemRenderer.trackingParams}):null};
_.J.handleBellMenuOpenSelectedAction=function(p){var y=p.trackingParams,l=this.computeBellMenuItemParams(this.data);this.data&&y&&l&&l.includes(y)&&this.ytRenderButtonBehavior._setButtonIcon(p.icon.iconType.toLowerCase())};
_.J.onYtServiceRequestCompleted=function(p,y){(p=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",y))&&this.set("data",p)};
_.J.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.J.resetState=function(){this.set("data.currentStateId",3)};
_.J.onYtButtonTapHandler=function(){if(this.data){var p=this.currentStateRendererData(this.data);p&&this.ytRendererBehavior.logExplicitClick(p)}};
Vg.prototype.onYtServiceRequestError=Vg.prototype.onYtServiceRequestError;Vg.prototype.onYtServiceRequestCompleted=Vg.prototype.onYtServiceRequestCompleted;Vg.prototype.stateChanged=Vg.prototype.stateChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Vg.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.V(Du.YtRenderButtonBehavior),_.x("design:type",Object)],Vg.prototype,"ytRenderButtonBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Vg.prototype,"data",void 0);_.H([_.k8("data","data.currentStateId"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Vg.prototype,"stateChanged",null);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],Vg.prototype,"onYtServiceRequestCompleted",null);_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Vg.prototype,"onYtServiceRequestError",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Vg);
_.D(Vg,"ytd-subscription-notification-toggle-button-renderer",function(){if(D5B!==void 0)return D5B;var p=document.createElement("template");_.M(p,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return D5B=p},{mode:1});var HAU;var g7=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};p.tapHandler=function(){if(p.data){var y=p.currentStateRendererData();y&&p.ytRendererBehavior.logExplicitClick(y)}};
return p};
_.A(g7,_.w);_.J=g7.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.currentStateData=function(){var p=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(y){return y.stateId===p.data.currentStateId})||null:null};
_.J.currentStateRendererData=function(){var p=this.currentStateData();return p&&p.state&&p.state.buttonRenderer?p.state.buttonRenderer:null};
_.J.computeAccessibilityLabel=function(){var p,y,l;return(p=this.currentStateRendererData())==null?void 0:(y=p.accessibilityData)==null?void 0:(l=y.accessibilityData)==null?void 0:l.label};
_.J.computeBellMenuItemParams=function(){var p,y,l=(y=_.G((p=this.data)==null?void 0:p.command,_.AO))==null?void 0:y.commands;if(!l||l.length===0)return null;p=_.G(l[0],_.xB);var q,t;return(p==null?0:(q=p.popup)==null?0:(t=q.menuPopupRenderer)==null?0:t.items)?p.popup.menuPopupRenderer.items.map(function(E){return E.menuServiceItemRenderer.trackingParams}):null};
_.J.handleBellMenuOpenSelectedAction=function(p){var y=p.trackingParams,l=this.computeBellMenuItemParams();if(this.data&&y&&l&&l.includes(y)&&(p==null||!p.isDisabled)){var q;((q=_.G(p.serviceEndpoint,_.Mn))==null?void 0:q.signal)!=="CLIENT_SIGNAL"&&(this.icon=p.icon.iconType)}};
_.J.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.J.onYtServiceRequestCompleted=function(p,y){if(p=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",y))this.icon=void 0,this.set("data",p)};
_.J.onYtServiceRequestError=function(){this.icon=void 0};
_.Jh.Object.defineProperties(g7.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var p=this.data,y=this.textLabel,l=this.hostElement,q=this.computeAccessibilityLabel(),t=this.tapHandler,E=this.isOverlay?"overlay":"mono",e=(p==null?0:p.disableButton)?"disabled":"active";y=y?_.zp(y):void 0;return{style:E,type:"tonal",state:e,size:"M",focused:!1,formattedButtonText:y,iconPosition:"leading-trailing",onTap:MS5(p,t,l),accessibilityLabel:q}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var p=this.currentStateRendererData(),y,l,q=(l=this.icon)!=null?l:p==null?void 0:(y=p.icon)==null?void 0:y.iconType;if(q)return _.QZ(q)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var p,y,l=(p=this.data)==null?void 0:(y=p.secondaryIcon)==null?void 0:y.iconType;if(l)return _.QZ(l)}}});
g7.prototype.onYtServiceRequestError=g7.prototype.onYtServiceRequestError;g7.prototype.onYtServiceRequestCompleted=g7.prototype.onYtServiceRequestCompleted;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],g7.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],g7.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],g7.prototype,"textLabel",void 0);
_.H([_.Q(),_.x("design:type",String)],g7.prototype,"icon",void 0);_.H([_.Q(),_.x("design:type",Boolean)],g7.prototype,"isOverlay",void 0);_.H([_.g("data.*","textLabel"),_.x("design:type",Object),_.x("design:paramtypes",[])],g7.prototype,"computedButtonShape",null);_.H([_.g("data.*","icon"),_.x("design:type",Object),_.x("design:paramtypes",[])],g7.prototype,"computedIcon",null);_.H([_.g("data.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],g7.prototype,"computedSecondaryIcon",null);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],g7.prototype,"onYtServiceRequestCompleted",null);_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],g7.prototype,"onYtServiceRequestError",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],g7);
_.D(g7,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(HAU!==void 0)return HAU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return HAU=p},{mode:_.ZS("kevlar_poly_si_batch_j081")?1:2});var Tk$;_.bp(HVN,"yt-animated-action",{props:{backgroundLottieRef:_.Co,foregroundLottieRef:_.Co,wrapperClass:_.Co,disableAnimation:_.Co},unsafeExternallySettableAttributes:new Set(["key"])});var Qg=function(){var p=_.w.apply(this,arguments)||this;p.animatedActionEnabled=_.n("web_animated_actions");p.foregroundLottieRef={};p.backgroundLottieRef={};p.forceIconOnly=!1;p.showTextWhileAnimating=!1;p.keyboardFocused=!1;p.isAnimating=!1;p.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return p};
_.A(Qg,_.w);_.J=Qg.prototype;_.J.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.J.configureRendererStamper=function(){return{"data.notificationPreferenceToggleButton":{id:"notification-preference-toggle-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{forceIconOnly:"[[forceIconOnly]]"}}}},"data.notificationPreferenceButton":{id:"notification-preference-button",mapping:{subscriptionNotificationToggleButtonRenderer:{component:"ytd-subscription-notification-toggle-button-renderer-next",properties:{textLabel:"[[subscribedButtonText]]",
forceIconOnly:"[[forceIconOnly]]",isOverlay:"[[overlayButton]]"}}}}}};
_.J.attached=function(){this.keyboardFocused=!1};
_.J.onYtServiceRequestSent=function(p,y){(this.get("endpoint.subscribeEndpoint",y)||this.get("endpoint.unsubscribeEndpoint",y))&&this.updateSubscriptionState(!this.subscribed)};
_.J.onYtServiceRequestCompleted=function(p,y){(p=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",y.data))&&this.bellButton&&(this.bellButton.data=p)};
_.J.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Ax(this.hostElement)};
_.J.onPlayerSubscribe=function(p){this.isCompactRed()||p!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.J.onPlayerUnsubscribe=function(p){this.isCompactRed()||p!==this.data.channelId||this.updateSubscriptionState(!1)};
_.J.handleUpdateSubscribeButtonAction=function(p){p=_.G(p,JHr);var y;p&&p.channelId===((y=this.data)==null?void 0:y.channelId)&&this.updateSubscriptionState(!!p.subscribed)};
_.J.computeButtonStyle=function(p){return this.get("style.styleType",p)||null};
_.J.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.J.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.J.updateSubscriptionState=function(p){if(p!==this.subscribed){this.set("data.subscribed",p);var y,l=(y=this.data)==null?void 0:y.subscribedEntityKey;l&&this.ytdReduxBehavior.dispatch(_.Fp("subscriptionStateEntity",l,{key:l,subscribed:p}));this.isCompactRed()||_.Ub(this.hostElement,"yt-subscription-changed",p);p||(_.$w(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!p),p&&this.hasBellButton&&this.startAnimation())}};
_.J.startAnimation=function(){var p=this;if(!this.isAnimating){var y=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var l;(l=this.backgroundLottieRef.lottieEl)==null||l.goToAndPlay(0);var q;(q=this.foregroundLottieRef.lottieEl)==null||q.goToAndPlay(0);_.TR.addJob(function(){p.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.TR.addJob(function(){p.updateContainerToFitContent(!!p.subscribed,!0)},2,1500);
_.TR.addJob(function(){p.isAnimating=!1},2,y)}};
_.J.maybeAnimateBellIcon=function(){var p=_.bt(this.hostElement).querySelector("yt-animated-icon");if(p){var y;(y=p.animationRef.lottieEl)==null||y.goToAndPlay(0)}};
_.J.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.J.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.J.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var p;this.unsubscribedWidth=(p=this.subscribeButtonShape)==null?void 0:p.getBoundingClientRect().width}var y;this.subscribedWidth=(y=this.bellButton)==null?void 0:y.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.J.updateContainerToFitContent=function(p,y){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(p?(p=this.subscribedWidth,y=this.isAnimating&&!y,this.subscribedIconOnlyWidth===void 0||y||(p=this.subscribedIconOnlyWidth),this.hostElement.style.width=p+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.J.clearContainerSize=function(){this.hostElement.style.width=""};
_.J.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.J.maybeSetSubscribedButtonIconOnlyWidth=function(){var p=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var y;p.subscribedIconOnlyWidth=(y=p.bellButton)==null?void 0:y.getBoundingClientRect().width;requestAnimationFrame(function(){if(p.bellButton){var l;p.bellButton.textLabel=
(l=p.data)==null?void 0:l.subscribedButtonText}})})))};
_.Jh.Object.defineProperties(Qg.prototype,{hasBellButton:{configurable:!0,enumerable:!0,get:function(){return!!this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)}},
subscribedButtonText:{configurable:!0,enumerable:!0,get:function(){if(this.showTextWhileAnimating&&(this.isAnimating||!this.subscribed)){var p;return(p=this.data)==null?void 0:p.subscribedButtonText}var y;return this.forceIconOnly?void 0:(y=this.data)==null?void 0:y.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var p,y,l=((p=this.data)==null?void 0:(y=p.timedAnimationData)==null?void 0:y.animationTiming)||[];return{uniqueId:"subscribe",timings:l,enabled:l.length>0&&!this.subscribed,experimentEnabled:l.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var p;return!this.subscribed&&((p=this.data)==null?void 0:p.hideWhenUnsubscribed)||!this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
subscribeButtonInvisible:{configurable:!0,enumerable:!0,get:function(){return this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
unsubscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){return!this.animatedActionEnabled&&!this.subscribed}},
buttonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var p={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var y=p.renderer;var l=p.element;var q=p.subscribed;var t=p.commandController;var E=p.isOverlay;p=p.stopPropagation;var e=KFm(y,q);E&&(e.style="overlay");E=Object;var C=E.assign,u;a:switch((u=y.style)==null?void 0:u.styleType){case "COMPACT_GRAY":case "COMPACT_RED":u={size:"S"};break a;default:u={size:"M"}}var a=Q1c(y,
q);var m=(m=q?y.subscribedButtonText:y.unsubscribedButtonText)?_.zp(m):void 0;return C.call(E,{},e,u,{focused:!1,toggled:q,accessibilityLabel:a,formattedButtonText:m,onTap:gK8(y,q,l,t,p)})}}}});
Qg.prototype.onMouseDown=Qg.prototype.onMouseDown;Qg.prototype.onDataChanged=Qg.prototype.onDataChanged;Qg.prototype.observedSubscribed=Qg.prototype.observedSubscribed;Qg.prototype.onYtServiceRequestCompleted=Qg.prototype.onYtServiceRequestCompleted;Qg.prototype.onYtServiceRequestSent=Qg.prototype.onYtServiceRequestSent;Qg.prototype.maybeUpdateBellButtonText=Qg.prototype.maybeUpdateBellButtonText;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Qg.prototype,"ytComponentBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Qg.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Qg.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Qg.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Qg.prototype,"data",void 0);
_.H([_.Q({selectorArgs:["data.subscribedEntityKey"],selector:Z$R}),_.x("design:type",Object)],Qg.prototype,"subscriptionStateEntity",void 0);_.H([_.Q({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Qg.prototype,"subscribed",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Qg.prototype,"branded",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Qg.prototype,"animatedActionEnabled",void 0);
_.H([_.Q(),_.x("design:type",Object)],Qg.prototype,"foregroundLottieRef",void 0);_.H([_.Q(),_.x("design:type",Object)],Qg.prototype,"backgroundLottieRef",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Qg.prototype,"overlayButton",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.x("design:type",Object)],Qg.prototype,"buttonStyle",void 0);_.H([_.Q(),_.x("design:type",Object)],Qg.prototype,"forceIconOnly",void 0);
_.H([_.Q(),_.x("design:type",Object)],Qg.prototype,"showTextWhileAnimating",void 0);_.H([_.Q({value:function(){return!!_.WC().resolve(_.RK(_.Zu))&&_.n("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.x("design:type",Boolean)],Qg.prototype,"useKeyboardFocused",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Qg.prototype,"keyboardFocused",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Qg.prototype,"isAnimating",void 0);_.H([_.g("data.notificationPreferenceButton.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],Qg.prototype,"hasBellButton",null);
_.H([_.gd("subscribedButtonText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qg.prototype,"maybeUpdateBellButtonText",null);_.H([_.g("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],Qg.prototype,"subscribedButtonText",null);_.H([_.g("data.timedAnimationData.animationTiming","subscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],Qg.prototype,"smartimationSettings",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],Qg.prototype,"subscribeButtonHidden",null);_.H([_.Q({reflectToAttribute:!0}),_.g("subscribed","hasBellButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],Qg.prototype,"subscribeButtonInvisible",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("subscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],Qg.prototype,"unsubscribeButtonHidden",null);_.H([_.rd("ytd-subscription-notification-toggle-button-renderer-next"),_.x("design:type",Object)],Qg.prototype,"bellButton",void 0);_.H([_.rd("#subscribe-button-shape"),_.x("design:type",HTMLElement)],Qg.prototype,"subscribeButtonShape",void 0);
_.H([_.g("overlayButton","subscribed","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Qg.prototype,"buttonShape",null);_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],Qg.prototype,"onYtServiceRequestSent",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],Qg.prototype,"onYtServiceRequestCompleted",null);
_.H([_.gd("subscribed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qg.prototype,"observedSubscribed",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qg.prototype,"onDataChanged",null);_.H([_.VU("mousedown"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Qg.prototype,"onMouseDown",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],Qg);
_.D(Qg,"ytd-subscribe-button-renderer",function(){if(Tk$!==void 0)return Tk$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscribe-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-subscribe-button-renderer">\n  <yt-button-shape id="subscribe-button-shape" data="[[buttonShape]]" hidden$="[[subscribeButtonHidden]]" invisible$="[[subscribeButtonInvisible]]" class="style-scope ytd-subscribe-button-renderer">\n  </yt-button-shape>\n  <div id="notification-preference-toggle-button" hidden="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  <yt-animated-action background-lottie-ref="[[backgroundLottieRef]]" foreground-lottie-ref="[[foregroundLottieRef]]" key="yt-animated-action" class="style-scope ytd-subscribe-button-renderer">\n    <div id="notification-preference-button" hidden="[[unsubscribeButtonHidden]]" invisible$="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  </yt-animated-action>\n</yt-smartimation>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Tk$=p},{mode:1});var Kd=function(){var p=_.w.apply(this,arguments)||this;p.isRichGrid=!1;return p};
_.A(Kd,_.w);Kd.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"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Kd.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Kd.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Kd.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Kd.prototype,"isRichGrid",void 0);_.H([_.k({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Kd);
_.D(Kd,"ytd-game-card-renderer",function(){if(NkP!==void 0)return NkP;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="game" class="style-scope ytd-game-card-renderer"></div>\n<div id="subscribe-button" class="style-scope ytd-game-card-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return NkP=p},{mode:1});var w7={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.n("defer_menus")&&!VaN?0:void 0,waitForSignal:"eocs"};var x5r;var Bk$;var ix=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return p};
_.A(ix,_.w);_.J=ix.prototype;_.J.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.J.onSeriesReminderStateEntityChange=function(){var p,y,l;((p=this.eventReminderStateEntity)==null?0:p.key)&&((y=this.seriesReminderStateEntity)==null?void 0:y.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((l=this.eventReminderStateEntity)==null?void 0:l.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.Fp("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.J.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.J.onYtServiceRequestError=function(){var p;this.updateReminderStateEntitiesFromButtonState((p=this.data)==null?void 0:p.currentState)};
_.J.handleUpdateUpcomingEventReminderButtonStateCommand=function(p){if(p=_.G(p,M4P)){var y,l=(y=this.data)==null?void 0:y.targetId;l&&p.targetId===l&&_.sU(this.updateReminderStateEntitiesFromButtonState.bind(this,p.state))}};
_.J.getButtonStateFromReminderState=function(){var p;if(((p=this.seriesReminderStateEntity)==null?void 0:p.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var y;if(((y=this.eventReminderStateEntity)==null?void 0:y.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var l,q;if(((l=this.seriesReminderStateEntity)==null?void 0:l.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((q=this.eventReminderStateEntity)==
null?void 0:q.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var t;return(t=this.data)==null?void 0:t.currentState};
_.J.updateReminderStateEntitiesFromButtonState=function(p){if(p){switch(p){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":p="UPCOMING_EVENT_REMINDER_STATE_NONE";var y="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":p="UPCOMING_EVENT_REMINDER_STATE_SINGLE";y="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":p="UPCOMING_EVENT_REMINDER_STATE_NONE";y="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var l;
((l=this.eventReminderStateEntity)==null?0:l.key)&&this.ytdReduxBehavior.dispatch(_.Fp("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:p})));var q;((q=this.seriesReminderStateEntity)==null?0:q.key)&&this.ytdReduxBehavior.dispatch(_.Fp("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:y})))}};
_.Jh.Object.defineProperties(ix.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var p=this.getButtonStateFromReminderState(),y,l;if(p&&((y=this.data)==null?0:(l=y.states)==null?0:l.length))for(y=_.c(this.data.states),l=y.next();!l.done;l=y.next()){l=l.value;var q=void 0;if(((q=_.G(l,V4O))==null?void 0:q.state)===p)return _.G(l,V4O)}}}});
ix.prototype.onYtServiceRequestError=ix.prototype.onYtServiceRequestError;ix.prototype.onYtServiceRequestCompleted=ix.prototype.onYtServiceRequestCompleted;ix.prototype.onSeriesReminderStateEntityChange=ix.prototype.onSeriesReminderStateEntityChange;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],ix.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ix.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ix.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],ix.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ix.prototype,"data",void 0);_.H([_.Q({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:VQt}),_.x("design:type",Object)],ix.prototype,"eventReminderStateEntity",void 0);
_.H([_.Q({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(p,y){return _.Ae(p.entities,"sportsSeriesReminderStateEntity",y)}}),
_.x("design:type",Object)],ix.prototype,"seriesReminderStateEntity",void 0);_.H([_.g("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],ix.prototype,"currentButtonStateRenderer",null);_.H([_.gd("seriesReminderStateEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ix.prototype,"onSeriesReminderStateEntityChange",null);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ix.prototype,"onYtServiceRequestCompleted",null);_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ix.prototype,"onYtServiceRequestError",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],ix);
_.D(ix,"ytd-upcoming-event-reminder-button-renderer",function(){if(Bk$!==void 0)return Bk$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-upcoming-event-reminder-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-upcoming-event-reminder-button-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
return Bk$=p},{mode:1});var fBB;var r7=function(){return _.w.apply(this,arguments)||this};
_.A(r7,_.w);r7.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Jh.Object.defineProperties(r7.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(_.n("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],r7.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],r7.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],r7.prototype,"shelfDismissal",void 0);_.H([_.g("data.responseText"),_.x("design:type",Object),_.x("design:paramtypes",[])],r7.prototype,"text",null);
_.H([_.g("data.responseText"),_.x("design:type",Object),_.x("design:paramtypes",[])],r7.prototype,"textAriaLabel",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],r7);
_.D(r7,"ytd-notification-multi-action-renderer",function(){if(fBB!==void 0)return fBB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-multi-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="text" aria-label$="[[textAriaLabel]]" class="style-scope ytd-notification-multi-action-renderer">[[text]]</span>\n<div id="buttons" class="style-scope ytd-notification-multi-action-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return fBB=p},{mode:1});var vKM;var SK=function(){return _.w.apply(this,arguments)||this};
_.A(SK,_.w);SK.prototype.ready=function(){var p=this;_.jR(this.hostElement).querySelector("#undo").addEventListener("tap",function(){p.onUndoTap()})};
SK.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.WC().resolve(_.aK).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],SK.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],SK.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],SK);
_.D(SK,"ytd-notification-text-renderer",function(){if(vKM!==void 0)return vKM;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.successResponseText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n<yt-formatted-string id="undo" text="[[data.undoText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return vKM=p},{mode:1});var Xdx;var F9=function(){var p=_.w.apply(this,arguments)||this;p.mouseOverDelayJobId=0;p.fadeInImageDelayJobId=0;p.startTimeMs=-1;p.loadingStartTimeMs=-1;p.loadingEndTimeMs=-1;p.hasVideoPreview=!1;return p};
_.A(F9,_.w);_.J=F9.prototype;_.J.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.J.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.J.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.J.showThumbnail=function(){var p=this;this.csn=_.B2();_.vW("fmth");_.TR.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.ZR(_.TR,function(){p.loadingStartTimeMs=(0,_.uM)();var y=_.jR(p.hostElement).querySelector("#thumbnail");y.complete?p.displayMouseOverImage():y.addEventListener("load",_.MH(p,p.displayMouseOverImage))},150):_.nv(_.jR(this.hostElement).querySelector("#play"),"show",!0)};
_.J.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.J.onTap=function(){this.removeVideoPreview()};
_.J.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var p=this.videoId,y=this.csn,l=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,q=this.startTimeMs,t=this.hasVideoPreview,E=_.Tp(this.trackingParams),e={isMovingThumbnail:t};t&&q>0&&(l>0&&(e.movingThumbnailLoadingDurationMs=Math.round(l)),e.durationHoveredMs=Math.round((0,_.uM)()-q));p&&(e.videoId=p);_.Et(y,E,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:e});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.J.removeVideoPreview=function(){_.TR.cancelJob(this.mouseOverDelayJobId);_.TR.cancelJob(this.fadeInImageDelayJobId);var p=_.jR(this.hostElement).querySelector("#thumbnail");_.nv(p,"fade-in",!1);p.removeEventListener("load",_.MH(this,this.displayMouseOverImage));p=_.jR(this.hostElement).querySelector("#play");_.nv(p,"fade-in",!1);_.nv(p,"show",!1)};
_.J.displayMouseOverImage=function(){var p=_.jR(this.hostElement).querySelector("#thumbnail"),y=_.jR(this.hostElement).querySelector("#play");this.isImageAvailable(p)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.uM)(),this.startTimeMs=(0,_.uM)(),this.fadeInImageDelayJobId=_.ZR(_.TR,function(){_.nv(p,"fade-in",!0)},50)):_.nv(y,"fade-in",!0)};
_.J.computeThumbnail=function(p,y){var l;p&&p.movingThumbnailDetails&&p.movingThumbnailDetails.thumbnails&&y?l=_.nY(p.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):l=y?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(l)return _.XX(l)};
_.J.isImageAvailable=function(p){return!(!p.src||p.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||p.naturalWidth===120)};
F9.prototype.onTap=F9.prototype.onTap;F9.prototype.dataChanged=F9.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],F9.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],F9.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],F9.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],F9.prototype,"csn",void 0);_.H([_.Q(),_.x("design:type",Object)],F9.prototype,"trackingParams",void 0);
_.H([_.Q(),_.x("design:type",String)],F9.prototype,"videoId",void 0);_.H([_.Q(),_.x("design:type",Boolean)],F9.prototype,"isAttachedAndDataSet",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],F9.prototype,"dataChanged",null);_.H([_.VU("click"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],F9.prototype,"onTap",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],F9);
_.D(F9,"ytd-moving-thumbnail-renderer",function(){if(Xdx!==void 0)return Xdx;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-moving-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img id="thumbnail" alt="" src$="[[computeThumbnail(data, isAttachedAndDataSet)]]" class="style-scope ytd-moving-thumbnail-renderer">\n<yt-icon id="play" icon="play_all" class="style-scope ytd-moving-thumbnail-renderer"></yt-icon>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Xdx=p},{mode:1});var d5$;_.GK=function(p){this.hostElement=p;this.eventSink=null;this.eventList=[]};
_.GK.prototype.shouldForward=function(){var p,y;return(y=(p=this.eventSink)==null?void 0:p.isConnected)!=null?y:document.body.contains(this.eventSink)};
_.GK.prototype.start=function(p,y){this.eventSink&&this.stop();for(var l=0;l<p.length;l++)this.hostElement.addEventListener(p[l],_.MH(this,this.forwardEvent));var q;this.eventSink=(q=y.hostElement)!=null?q:y;this.eventList=p};
_.GK.prototype.stop=function(){for(var p=0;p<this.eventList.length;p++)this.hostElement.removeEventListener(this.eventList[p],_.MH(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.GK.prototype.forwardEvent=function(p,y){this.shouldForward()&&(p.stopPropagation(),this.eventSink instanceof Element?_.Ub(this.eventSink,p.type,y):_.vs(new _.SM("eventSink is not an element")))};_.Ld={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.GK(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(p,y){this.forwarder_.start(p,y)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var k$=function(){return _.w.apply(this,arguments)||this};
_.A(k$,_.w);_.J=k$.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");this.tooltip.position=_.OY("HTML_DIR")==="rtl"?"right":"left"};
_.J.dataChanged=function(){this.popupOpen=!1};
_.J.computeAriaLabel=function(p){return _.G(p,QCO).label};
_.J.onTap=function(p){p.stopPropagation();p.preventDefault();this.data.command&&_.WC().resolve(_.aK).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.J.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.J.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
k$.prototype.onPopupClosed=k$.prototype.onPopupClosed;k$.prototype.onPopupOpened=k$.prototype.onPopupOpened;k$.prototype.onTap=k$.prototype.onTap;k$.prototype.dataChanged=k$.prototype.dataChanged;_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],k$.prototype,"eventForwardingBehavior",void 0);_.H([_.V(_.dn),_.x("design:type",Object)],k$.prototype,"ironButtonState",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],k$.prototype,"componentBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],k$.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,value:-1}),_.x("design:type",Number)],k$.prototype,"tabindex",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.x("design:type",Object)],k$.prototype,"ariaLabel",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],k$.prototype,"disableTooltips",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],k$.prototype,"popupOpen",void 0);
_.H([_.Q(),_.x("design:type",Element)],k$.prototype,"eventSink",void 0);_.H([_.rd("#tooltip"),_.x("design:type",Object)],k$.prototype,"tooltip",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],k$.prototype,"dataChanged",null);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],k$.prototype,"onTap",null);
_.H([_.VU("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],k$.prototype,"onPopupOpened",null);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],k$.prototype,"onPopupClosed",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],k$);
_.D(k$,"ytd-thumbnail-overlay-button-renderer",function(){if(d5$!==void 0)return d5$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" on-click="onTap" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return d5$=p},{mode:1});var OAQ;var N0=function(){return _.w.apply(this,arguments)||this};
_.A(N0,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],N0.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],N0.prototype,"disableAnimation",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],N0.prototype,"rounded",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],N0.prototype,"transparentBackground",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],N0.prototype,"noPadding",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],N0);
_.D(N0,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(OAQ!==void 0)return OAQ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-endorsement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="inner-background" class="style-scope ytd-thumbnail-overlay-endorsement-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></yt-formatted-string>\n  <span id="bottom-right-corner" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></span>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return OAQ=p},{mode:1});var oKO;var Dq=function(){return _.w.apply(this,arguments)||this};
_.A(Dq,_.w);Dq.prototype.computeIconPosition=function(p){return this.get("iconPosition",p)||null};
Dq.prototype.computeIconStyle=function(p){return this.get("iconStyle",p)||null};
Dq.prototype.computeIsIconStyleFilled=function(p){if(!p)return!1;var y;return p.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((y=p.icon)==null?void 0:y.iconType)==="ERROR_BLACK"};
_.H([_.Q(),_.x("design:type",Object)],Dq.prototype,"data",void 0);_.H([_.Q({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.x("design:type",Object)],Dq.prototype,"iconPosition",void 0);_.H([_.Q({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.x("design:type",Object)],Dq.prototype,"iconStyle",void 0);_.H([_.Q({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Dq.prototype,"iconStyleFilled",void 0);
_.H([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],Dq);
_.D(Dq,"ytd-thumbnail-overlay-icon-renderer",function(){if(oKO!==void 0)return oKO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-icon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[iconStyleFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-icon-renderer"></yt-icon>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return oKO=p},{mode:1});var zDU;var H5=function(){return _.w.apply(this,arguments)||this};
_.A(H5,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],H5.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],H5.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],H5);
_.D(H5,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(zDU!==void 0)return zDU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-inline-unplayable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-inline-unplayable-renderer"></yt-icon>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return zDU=p},{mode:1});var Yp$;var TO=function(){var p=_.w.apply(this,arguments)||this;p.isPreviewLoading=!1;return p};
_.A(TO,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],TO.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],TO.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],TO.prototype,"isPreviewLoading",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],TO);
_.D(TO,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(Yp$!==void 0)return Yp$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-loading-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="style-scope ytd-thumbnail-overlay-loading-preview-renderer">[[getSimpleString(data.text)]]</span>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Yp$=p},{mode:1});var IBO;var x$=function(){return _.w.apply(this,arguments)||this};
_.A(x$,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],x$.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],x$.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],x$);
_.D(x$,"ytd-thumbnail-overlay-pinking-renderer",function(){if(IBO!==void 0)return IBO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-pinking-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg class="pinking-left style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="left-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="0,0 1,0 5,4 1,8 0,8"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#left-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n<svg class="pinking-right style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="right-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="4,0 0,4 4,8 5,8 5,0"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#right-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return IBO=p},{mode:1});var pBN;var B5=function(){var p=_.w.apply(this,arguments)||this;p.disableTooltips=!1;p.isLoading=!1;p.useExpandableTooltip=!1;p.toggled=!1;p.hovered=!1;p.mouseoverDelayJobId=0;p.toggleDelayJobId=0;p.expandAnimationDelayJobId=0;return p};
_.A(B5,_.w);_.J=B5.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");_.jR(this.hostElement).querySelector("#tooltip").position=_.OY("HTML_DIR")==="rtl"?"right":"left"};
_.J.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.TR.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.TR.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.TR.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.J.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.TR.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.TR.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.TR.cancelJob(this.expandAnimationDelayJobId)};
_.J.computeIcon=function(p,y,l){return(p=l?y:p)&&p.iconType?_.QZ(p.iconType):void 0};
_.J.computeAriaLabel=function(p,y,l){return _.G(l?y:p,QCO).label};
_.J.computeTooltip=function(p,y,l){return l?y:p};
_.J.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.J.computeIconOnHover=function(p,y){if((p==null?0:p.iconType)&&!y)return _.QZ(p.iconType)};
_.J.onTap=function(p){var y=this;p.stopPropagation();p.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(p=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(p),this.useExpandableTooltip&&(this.toggleDelayJobId=_.ZR(_.TR,function(){y.hovered=!1;y.data&&!y.data.toggledServiceEndpoint&&(y.expandAnimationDelayJobId=_.ZR(_.TR,function(){y.set("data.isToggled",
!1)},200))},2E3))};
_.J.onMouseenter=function(){var p=this;this.mouseoverDelayJobId=_.ZR(_.TR,function(){p.hovered=!0},300)};
_.J.onMouseleave=function(){_.TR.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.J.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.J.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.J.onServiceRequestCompleted=function(p,y){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(y)||this.set("data.isToggled",!this.data.isToggled)};
_.J.serviceRequestWasSuccessful=function(p){return _.G(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.YB)?p.data.status==="STATUS_SUCCEEDED":!0};
B5.prototype.onServiceRequestCompleted=B5.prototype.onServiceRequestCompleted;B5.prototype.onPopupClosed=B5.prototype.onPopupClosed;B5.prototype.onPopupOpened=B5.prototype.onPopupOpened;B5.prototype.onMouseleave=B5.prototype.onMouseleave;B5.prototype.dataChanged=B5.prototype.dataChanged;_.H([_.V(_.dn),_.x("design:type",Object)],B5.prototype,"ironButtonState",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],B5.prototype,"ytComponentBehavior",void 0);
_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],B5.prototype,"ytEventForwardingBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],B5.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.x("design:type",Object)],B5.prototype,"ariaLabel",void 0);_.H([_.Q(),_.x("design:type",Object)],B5.prototype,"disableTooltips",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],B5.prototype,"popupOpen",void 0);_.H([_.Q(),_.x("design:type",Object)],B5.prototype,"isLoading",void 0);_.H([_.Q(),_.x("design:type",Element)],B5.prototype,"eventSink",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],B5.prototype,"useExpandableTooltip",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.x("design:type",Object)],B5.prototype,"toggled",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],B5.prototype,"hovered",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.x("design:type",Object)],B5.prototype,"iconOnHover",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B5.prototype,"dataChanged",null);
_.H([_.VU("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B5.prototype,"onMouseleave",null);_.H([_.VU("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B5.prototype,"onPopupOpened",null);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B5.prototype,"onPopupClosed",null);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],B5.prototype,"onServiceRequestCompleted",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],B5);
_.D(B5,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(pBN!==void 0)return pBN;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"><div id="label" on-click="onTap" hidden="[[disableTooltips]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n    [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n  </div></div><yt-icon id="icon-on-hover-element" icon="[[iconOnHover]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><yt-icon id="icon" icon="[[computeIcon(data.untoggledIcon, data.toggledIcon, data.isToggled)]]" on-click="onTap" on-mouseenter="onMouseenter" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n  [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n</tp-yt-paper-tooltip>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return pBN=p},{mode:_.ZS("kevlar_poly_si_batch_j053")?1:2});var yuZ;var lcr=_.aF(function(p){var y=p.data;var l=p.thumbnailSize;var q=function(){return y().enableSegmentView};
return _.R("yt-thumbnail-overlay-progress-bar-view-model",{class:_.ip("ytThumbnailOverlayProgressBarHost",function(){return wdt(l==null?void 0:l())})},_.R(_.W,{cond:q,
then:function(){return _.R("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.R("div",{class:_.rD("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+y().startPercent+"%"}}),_.R("div",{class:_.rD("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+y().segmentDurationPercent+"%"}},_.R("div",{class:_.rD("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.R("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.R("div",null," ",function(){return y().segmentLabel})),_.R("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.R("div",{class:_.rD("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.R(_.W,{cond:function(){return!q()&&y().startPercent},
then:function(){var t={};return _.R("div",{class:_.rD("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(t.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.n("web_enable_modern_progress_bar_overlay"),t))},_.R("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+y().startPercent+"%"}}))}}))},"T");
lcr.idomCompat=!0;var q9V=_.aF(function(p){var y=_.QS(),l=_.yS(function(t){var E,e,C;a:{var u=(E=p.data())==null?void 0:E.animationActivationTargetId;E=((e=p.data())==null?void 0:e.animationActivationEntityKey)||"";e=(C=p.data())==null?void 0:C.animationActivationEntitySelectorType;if(E&&u)switch(e){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":t=_.Ae(t.entities,"playerStateEntity",E);C=_.WC().resolve(_.RK(_.IA));u=!!(t&&t.videoId===u&&(C==null?0:C.isMiniplayerActive()));u={activated:u,playAnimation:u&&
t.playerState==="PLAYER_STATE_PLAYING"};break a}u=void 0}return u});
_.NA(function(){var t;if((t=l())==null?0:t.activated){var E;if((E=l())==null?0:E.playAnimation){var e;(e=y.lottieEl)==null||e.goToAndPlay(0)}else{var C;(C=y.lottieEl)==null||C.goToAndStop(0)}}},"MDTl2e");
var q=function(){var t,E=!((t=l())==null||!t.activated);if(p.data()){t=p.data();var e=void 0;t.icon&&(e=_.qea(t.icon),e=hC_(e));var C=void 0,u;if((u=t.backgroundColor)==null?0:u.lightTheme){var a;C={backgroundColor:IU((a=t.backgroundColor)==null?void 0:a.lightTheme,"0.8")}}if(t.text||e||E){if(E&&t.lottieData&&y){a=t.lottieData;var m,U,b;u={animationConfig:{name:a.url,path:a.url,autoplay:(m=a.settings)==null?void 0:m.autoplay,loop:(b=(U=a.settings)==null?void 0:U.loop)!=null?b:!0},animationRef:y}}else u=
void 0;if(E)m=16;else b:switch(t.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":m=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":m=18;break b;default:m=16}E={type:m,text:E&&t.animatedText?t.animatedText:t.text,icon:e,customColors:C,animation:u}}else E=void 0}else E=void 0;return E};
return _.R("yt-thumbnail-badge-view-model",{class:_.ip("yt-thumbnail-badge-view-model-wiz",p.class)},_.R(_.W,{cond:q,then:function(){return _.R(_.YG,{data:function(){return q()}})}}))},"U");var sjP=_.aF(function(p){var y={},l={};return _.R("yt-thumbnail-bottom-overlay-view-model",{class:_.ip("ytThumbnailBottomOverlayViewModelHost",(y.ytThumbnailBottomOverlayViewModelHostBackground=function(){return p.data().enableGradientBackground},y))},_.R(_.di,{data:function(){return p.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(q){return _.R(lcr,{data:q.data,
thumbnailSize:p.thumbnailSize})}}),_.R("div",{class:_.ip("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var q;
return iAc((q=p.thumbnailSize)==null?void 0:q.call(p))},(l.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var q;
return(q=p.isClip)==null?void 0:q.call(p)},l.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var q;
return!_.n("web_enable_modern_progress_bar_overlay")&&((q=p.thumbnailSize)==null?void 0:q.call(p))==="small"},l))},_.R(_.di,{data:function(){return p.data().badge}},{thumbnailBadgeViewModel:function(q){return _.R(q9V,{data:q.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.R(_.di,{data:function(){return p.data().badges}},{thumbnailBadgeViewModel:function(q){return _.R(q9V,{data:q.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"V");
sjP.idomCompat=!0;_.bp(sjP,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.jw,thumbnailSize:_.jw,isClip:_.jw}});var x5m={calledOnce:!1,state:"visible"},Bkc={calledOnce:!1,state:"hidden"};var fd=_.aF(function(p){var y=p.data;var l=p.className;p=p.alwaysShow;var q=_.FFa(),t={};return _.R("thumbnail-hover-overlay-view-model",{el:_.mR(_.yn(function(){return y().rendererContext})),
class:_.ip("ytThumbnailHoverOverlayViewModelHost",l,(t.ytThumbnailHoverOverlayViewModelHostForceHover=p,t)),"aria-label":function(){var E;return(E=_.G(y().rendererContext,_.L5))==null?void 0:E.label},
role:function(){return _.IW(y().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.IW(y().rendererContext)!==void 0?0:void 0},
"on:keypress":q},_.R("div",{class:_.ip("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(y().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var E="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:E="ytThumbnailHoverOverlayViewModelStyleCover"}return E})},_.R(_.W,{cond:function(){return y().icon},
then:function(E){return _.R(_.W$,{data:E,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.R(_.W,{cond:function(){return y().text},
then:function(E){return _.R(_.CF,{text:E,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"W");
fd.idomCompat=!0;var tUi=_.aF(function(p){var y=p.data;return _.R(_.di,{data:function(){return y==null?void 0:y().overlays}},{thumbnailHoverOverlayViewModel:fd})},"X");
tUi.idomCompat=!0;var ELi={};var JuN=_.aF(function(p){var y=p.data;var l=p.image;var q=p.state;var t=p.iconType;var E=p.overlays;var e=p.isOverlay;var C=_.tK("div");p=_.c(_.nr(!0,void 0,"sUzEZ"));var u=p.next().value,a=p.next().value,m=function(){return!!y().onTap},U=_.uy(t,"LIVE");
_.NA(function(){var P=y();requestAnimationFrame(function(){if(C.value===null)var Z=!0;else{var K=C.value;Z=P.badgeText;var F=Xd6(P.size);Z in ELi?K=ELi[Z]:(K=K.clientWidth,ELi[Z]=K);(Z=K>F)?C.value.style.display="none":C.value.style.visibility="visible"}a(Z)})},"SpVcNb");
var b=function(){var P={};return P["yt-spec-avatar-shape__image"]=!0,P["yt-spec-avatar-shape__image--ads-app"]=y().type===1,P};
return _.R("yt-avatar-shape",null,_.R("div",{el:_.mR(OAu(m,{keydown:function(P){if(P.key==="Enter"){var Z;(Z=P.currentTarget)==null||Z.click()}},
click:function(P){var Z,K;return void((K=(Z=y()).onTap)==null?void 0:K.call(Z,P))}})),
class:function(){var P={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},Z=y();P=(P[Z.clusterLayoutConfig?Ypc(Z.clusterLayoutConfig):IBa(Z.size)]=!0,P["yt-spec-avatar-shape__button--tappable"]=m(),P);(Z=y().avatarButtonCustomClassName)&&(P[Z]=!0);return _.rD(P)},
"aria-label":function(){return m()?y().accessibilityText:""},
role:function(){return m()?"button":void 0},
tabindex:function(){return m()?0:void 0}},_.R("div",{class:function(){var P,Z=y(),K=q==null?void 0:q(),F=e==null?void 0:e(),L=!((P=Z.decorations)==null||!P.includes(2)||Z.size!=="medium"&&Z.size!=="large"),T=Z.size==="tiny"||Z.size==="extra-small",O,f,v,z,sc={};
P=(sc["yt-spec-avatar-shape--live-ring"]=!!(((O=Z.decorations)==null?0:O.includes(0))&&yuR(Z.size)),sc["yt-spec-avatar-shape--stories-watched"]=L&&!(K==null||!K.storiesWatched),sc["yt-spec-avatar-shape--stories-unwatched"]=L&&!(K==null?0:K.storiesWatched),sc["yt-spec-avatar-shape--background-border"]=lcm(Z.decorations)&&!T,sc["yt-spec-avatar-shape--background-border-thin"]=lcm(Z.decorations)&&T,sc["yt-spec-avatar-shape__on-select-border"]=!((f=Z.decorations)==null||!f.includes(4)),sc["yt-spec-avatar-shape__white-border"]=
!((v=Z.decorations)==null||!v.includes(5)),sc["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((z=Z.decorations)==null?0:z.includes(5))&&T),sc["yt-spec-avatar-shape--is-overlay"]=!!F,sc);return _.rD(P)},
style:function(){a:{var P=y().clusterLayoutConfig;if(P){b:{var Z=P.numAvatarsInCluster;var K=P.avatarIndex;if(K!==Z-1){switch(P.clusterSize){case "small":P="32";break;case "medium":P="36";break;case "40":P="40";break;default:Z=void 0;break b}Z="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+P+"x"+P+"_avatars_"+Z+"_index_"+K+".svg"}else Z=void 0}if(Z){Z=_.NW({"-webkit-mask-image":"url("+Z+")","mask-image":"url("+Z+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}Z=void 0}return Z}},_.R("div",{class:function(){var P={};
var Z=y();P=(P[Z.clusterLayoutConfig?oKa(Z.clusterLayoutConfig):zDt(Z.size)]=!0,P["yt-spec-avatar-shape--no-margin"]=lcm(y().decorations),P);return _.rD(P)}},_.R(_.W$,{data:l,
alt:function(){return!m()&&y().accessibilityText?y().accessibilityText:""},
targetWidth:function(){return pB_(y().size)},
targetHeight:function(){return pB_(y().size)},
className:function(){return _.rD(b())}}),_.R(_.W,{cond:function(){var P;
return((P=y().decorations)==null?void 0:P.includes(0))&&yuR(y().size)},
then:function(){return _.R("div",{class:function(){var P={};P=(P["yt-spec-avatar-shape__live-badge"]=!0,P["yt-spec-avatar-shape__live-badge--badge-small"]=y().size==="small",P["yt-spec-avatar-shape__live-badge--badge-medium"]=y().size==="medium"||y().size==="48",P["yt-spec-avatar-shape__live-badge--badge-large"]=y().size==="large",P["yt-spec-avatar-shape__live-badge--badge-extra-large"]=y().size==="extra-large"||y().size==="extra-extra-large"||y().size==="giant",P);return _.rD(P)}},_.R(_.W,{cond:function(){return y().badgeText},
then:function(P){return _.R("div",{class:"yt-spec-avatar-shape__badge-text",el:C},P)}}),_.R(_.W,{cond:u,
then:function(){return _.R("div",{class:"yt-spec-avatar-shape__badge-icon"},_.R(_.DR,{icon:U,size:function(){a:switch(y().size){case "extra-large":var P=16;break a;default:P=13}return P}}))}}))}}),_.R(_.W,{cond:function(){var P,Z;
return((P=y().decorations)==null?void 0:P.includes(1))||((Z=y().decorations)==null?void 0:Z.includes(0))&&!yuR(y().size)},
then:function(){return _.R("div",{class:function(){var P=y(),Z,K,F={};var L=(F["yt-spec-avatar-shape__live-dot"]=!((Z=P.decorations)==null||!Z.includes(0)||yuR(P.size)),F["yt-spec-avatar-shape__new-content"]=!((K=P.decorations)==null||!K.includes(1)),F);return _.rD(L)}})}}),_.R(_.W,{cond:function(){return!!E},
then:function(){return _.R("div",{class:function(){var P={};P=Object.assign((P["yt-spec-avatar-shape__image-overlays"]=!0,P),b());return _.rD(P)}},E==null?void 0:E())}})))))},"Y");
JuN.idomCompat={callbacks:{overlays:!0}};_.v5=_.aF(function(p){function y(){l().endpoint&&_.tb(l().endpoint)}
var l=p.data;var q=p.decorations;var t=p.avatarButtonCustomClassName;var E=p.isOverlay;var e=p.clusterLayoutConfig;return _.R("avatar-view-model",null,_.R(_.W,{cond:function(){return l().image},
then:function(C){return _.R(JuN,{data:function(){return sjL({data:l(),onTap:l().endpoint?y:void 0,decorations:q==null?void 0:q(),badgeText:void 0,accessibilityText:l().accessibilityText,avatarButtonCustomClassName:t==null?void 0:t(),clusterLayoutConfig:e==null?void 0:e()})},
image:C,iconType:"RADAR_LIVE",overlays:function(){return _.R(tUi,{data:l})},
isOverlay:E})}}))},"Z");
_.v5.idomCompat=!0;_.X9=_.aF(function(p){var y=p.data;p=p.className;var l=_.tK("yt-decorated-avatar-view-model"),q=function(){return _.G(y().avatar,_.lI)},t=_.MA(function(){var E,e=y(),C=q(),u=_.IW(y().rendererContext),a=(E=l.value)!=null?E:void 0,m;
if(C){a={data:e,avatar:C,onTap:u,element:a};E=a.data;e=a.avatar;C=a.onTap;u=a.element;a=a.commandController;C=C?cu_(C,u,a):void 0;u=[];E.liveData&&u.push(0);var U;a=(U=E.liveData)==null?void 0:U.liveBadgeText;U=(m=_.G(E.rendererContext,_.L5))==null?void 0:m.label;m=sjL({data:e,onTap:C,decorations:u,badgeText:a,accessibilityText:U?U:E.a11yLabel})}else m={size:"medium"};return m},void 0,"H8tk9d");
return _.R("yt-decorated-avatar-view-model",{class:_.ip("yt-decorated-avatar-view-model-wiz",p),el:l},_.R(_.W,{cond:function(){var E;return(E=q())==null?void 0:E.image},
then:function(E){return _.R(JuN,{data:t,image:E,iconType:"RADAR_LIVE",overlays:function(){return _.R(tUi,{data:q})}})}}))},"$");
_.X9.idomCompat=!0;_.d7=_.aF(function(p){var y=function(){var C;return Object.assign({},p.data(),(C=p.overrides)==null?void 0:C.call(p))},l=function(){return _.pF(y().rendererContext)},q=function(){var C=y().avatars,u,a;
return(a=(u=(C==null?0:C[0])?_.G(C[0],_.lI):void 0)==null?void 0:u.avatarImageSize)!=null?a:"AVATAR_SIZE_UNKNOWN"},t=function(){return Ju_(y())},E=function(){if(y().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var C=void 0;
else if((C=p.decorations)==null?0:C.call(p))C=p.decorations();else{C=y();var u=0;C.avatars&&(u+=C.avatars.length);C.decoratedText&&(u+=1);C=u>1?[3]:[]}return C},e={};
return _.R("yt-avatar-stack-view-model",{el:_.mR(_.yn(function(){return y().rendererContext})),
class:_.ip("yt-avatar-stack-view-model-wiz",p.className,(e["yt-avatar-stack-view-model-wiz--tappable"]=l,e["yt-avatar-stack-view-model-wiz--is-overlay"]=p.isOverlay,e["yt-avatar-stack-view-model-wiz--medium-text"]=p.useMediumText,e)),tabindex:function(){return l()?0:void 0},
role:function(){return l()?"link":void 0},
"aria-label":function(){var C,u;return(u=(C=_.G(y().rendererContext,_.L5))==null?void 0:C.label)!=null?u:""}},_.R(_.W,{cond:function(){var C;
return y().avatars&&!((C=p.hideAvatar)==null?0:C.call(p))},
then:function(){return _.R("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.R(_.W,{cond:function(){return y().decoratedText},
then:function(C){var u={};return _.R("div",{class:_.ip("yt-avatar-stack-view-model-wiz__text-container",(u["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return q()==="AVATAR_SIZE_XXS"||q()==="AVATAR_SIZE_XS"},u["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var a;
return((a=p.isOverlay)==null?void 0:a.call(p))&&(q()==="AVATAR_SIZE_XXS"||q()==="AVATAR_SIZE_XS")},u)),
style:_.NW({width:function(){return t().avatarSizeInPx+"px"},
height:function(){return t().avatarSizeInPx+"px"}})},_.R(_.CF,{text:C,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.R("div",{style:function(){return _.NW(t().avatarStackStyle)()},
class:function(){return t().avatarStackClass}},_.R(_.di,{data:function(){return t().avatars.reverse()}},{avatarViewModel:function(C,u){return _.R("div",{style:function(){var a,m;
return _.NW((m=(a=t()).avatarStyle)==null?void 0:m.call(a,u()))()},
class:function(){return t().avatarClass}},_.R(_.v5,{data:C.data,
decorations:E,avatarButtonCustomClassName:function(){return t().avatarButtonCustomClassName},
isOverlay:p.isOverlay,clusterLayoutConfig:function(){var a,m;return(m=(a=t()).clusterLayoutConfig)==null?void 0:m.call(a,u())}}))},
decoratedAvatarViewModel:function(C,u){return _.R("div",{style:function(){var a,m;return _.NW((m=(a=t()).avatarStyle)==null?void 0:m.call(a,u()))()},
class:function(){return t().avatarClass}},_.R(_.X9,{data:C.data}))}})))}}),_.R(_.W,{cond:function(){return y().text},
then:function(C){return _.R(_.CF,{text:C,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"aa");
_.d7.idomCompat=!0;_.bp(_.aF(function(p){var y=p.data;var l=p.thumbnailSize;return _.R("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.R("div",{class:_.ip("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return e4c(l==null?void 0:l())})},_.R(_.di,{data:function(){return y().avatarStack}},{avatarStackViewModel:function(q){return _.R(_.d7,{data:q.data,
decorations:[5]})}})))},"ba"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.Co,
thumbnailSize:_.Co}});var cuN=_.aF(function(p){p=_.RF(p,{hidden:!1});var y=p.data;return _.R("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:p.hidden},_.R(_.CF,{text:function(){return y().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.R(_.W,{cond:function(){return y().subtitle},
then:function(){return _.R(_.CF,{text:function(){return y().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"ca");
cuN.idomCompat=!0;_.bp(cuN,"yt-thumbnail-overlay-title-view-model",{props:{data:_.Co,hidden:_.Co}});var e4$=_.aF(function(p){p=_.RF(p,{isClip:!1});var y=p.data,l=p.thumbnailSize,q={};return _.R("yt-thumbnail-overlay-badge-view-model",{class:_.ip("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(y().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var t="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:t="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return t},function(){return h4u(l==null?void 0:l())},(q["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
p.isClip,q))},_.R(_.di,{data:function(){return y().thumbnailBadges}},{thumbnailBadgeViewModel:function(t){return _.R(q9V,{data:t.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"da");
e4$.idomCompat=!0;_.bp(e4$,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.Co,thumbnailSize:_.Co,isClip:_.Co}});_.uX(Cdu);_.gD(Cdu,"yt-page-indicator-view-model",{propNames:["data"]});var OI=function(){var p=_.w.apply(this,arguments)||this;p.eventSink=function(){return p};
p.disableInteraction=!1;p.noRoundedCorners=!1;p.isPreviewLoading=!1;p.isOriginalAspectRatio=!1;p.computedObjectFit=!1;p.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return p};
_.A(OI,_.w);_.J=OI.prototype;
_.J.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.n("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.J.onImageLoaded=function(){this.loaded=!0};
_.J.onImageUnloaded=function(){this.loaded=!1};
_.J.computeRichThumbnail=function(p,y,l,q){if(p&&y&&!q&&!_.n("disable_moving_thumbs_handling")&&!l)return y};
_.J.computeImageWidth=function(p,y){return y||9999};
_.J.computeIsOriginalAspectRatio=function(p){return p};
_.J.computeIsLive=function(p){if(p==null?0:p.badges)for(var y=0;y<p.badges.length;y++){var l=p.badges[y];if(l.metadataBadgeRenderer&&l.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(p==null?0:p.thumbnailOverlays)for(y=0;y<p.thumbnailOverlays.length;y++)if(l=p.thumbnailOverlays[y],l.thumbnailOverlayTimeStatusRenderer&&l.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.J.computeObjectFit=function(p,y){return y||(p?"CONTAIN":"")};
_.J.computeNavigationEndpoint=function(p,y,l){return p?y:l};
_.J.computeHasClip=function(p){p=_.c(p||[]);for(var y=p.next();!y.done;y=p.next())if(y.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.J.computeOverlayColor=function(p){var y;return(p==null?0:(y=p.darkColorPalette)==null?0:y.section2Color)?p.darkColorPalette.section2Color:p==null?void 0:p.sampledThumbnailColor};
_.Jh.Object.defineProperties(OI.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return FDl(this.width)}}});
OI.prototype.onImageUnloaded=OI.prototype.onImageUnloaded;OI.prototype.onImageLoaded=OI.prototype.onImageLoaded;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],OI.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],OI.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(B8O),_.x("design:type",Object)],OI.prototype,"ytdThumbnailBehavior",void 0);
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],OI.prototype,"componentBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],OI.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],OI.prototype,"data",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],OI.prototype,"circular",void 0);
_.H([_.Q({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.x("design:type",Object)],OI.prototype,"richThumbnail",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.x("design:type",Boolean)],OI.prototype,"hasClip",void 0);_.H([_.Q(),_.x("design:type",Object)],OI.prototype,"eventSink",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],OI.prototype,"queued",void 0);
_.H([_.Q({value:!1}),_.x("design:type",Boolean)],OI.prototype,"richGridThumbnail",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],OI.prototype,"useExpandableTooltip",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],OI.prototype,"useUntranslatedNavigationEndpoint",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],OI.prototype,"disableInteraction",void 0);
_.H([_.Q({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.x("design:type",Object)],OI.prototype,"computedNavigationEndpoint",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],OI.prototype,"nowPlayingEqualizerOnly",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],OI.prototype,"hidePlaybackStatus",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],OI.prototype,"objectFit",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],OI.prototype,"noRoundedCorners",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],OI.prototype,"watchFeedThumbnail",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],OI.prototype,"isPreviewLoading",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.x("design:type",Object)],OI.prototype,"isOriginalAspectRatio",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.x("design:type",Object)],OI.prototype,"computedObjectFit",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.x("design:type",Boolean)],OI.prototype,"isLiveVideo",void 0);
_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],OI.prototype,"loaded",void 0);_.H([_.Q({computed:"computeOverlayColor(data.thumbnail)"}),_.x("design:type",Object)],OI.prototype,"overlayColor",void 0);_.H([_.Q({selector:_.g7_}),_.x("design:type",Boolean)],OI.prototype,"inlinePreviewIsEnabled",void 0);_.H([_.Q(),_.x("design:type",Number)],OI.prototype,"width",void 0);
_.H([_.g("inlinePreviewIsEnabled"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OI.prototype,"isPreviewDisabled",null);_.H([_.g("width"),_.x("design:type",String),_.x("design:paramtypes",[])],OI.prototype,"thumbnailSize",null);_.H([_.VU("image-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OI.prototype,"onImageLoaded",null);
_.H([_.VU("image-unloaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OI.prototype,"onImageUnloaded",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-thumbnail"})],OI);
var h4Q=_.Al()(OI,"ytd-thumbnail",function(){if(yuZ===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint inline-block style-scope ytd-thumbnail" aria-hidden="true" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" rel="[[computeNofollow_(computedNavigationEndpoint)]]" tabindex="-1">\n  <yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[height]]" notify-on-loaded="" notify-on-unloaded="" object-fit="[[computedObjectFit]]" width="[[computeImageWidth(data, width)]]" class="style-scope ytd-thumbnail">\n  </yt-image>\n  \n  <div id="overlays" class="style-scope ytd-thumbnail"></div>\n  <div id="mouseover-overlay" class="style-scope ytd-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-thumbnail"></div>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);yuZ=p}p=yuZ;return p},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var acg=function(p){var y=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14794_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14794_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(l){CdQ(y,l)};
this.onLockupMouseLeaveFn=function(l){l=l.relatedTarget;var q,t;((q=document.getElementsByTagName("ytd-video-preview"))==null?0:(t=q.item(0))==null?0:t.contains(l))||(y.terminateVideoPreview(),ob(y))};
this.onThumbnailMouseDownFn=function(){y.terminateVideoPreview();ob(y)};
this.onTouchStart=function(){y.JSC$14794_touched=!0};
this.mediaRenderer=p.mediaRenderer;this.thumbnailElement=p.thumbnailElement;this.lockupElement=p.lockupElement;this.videoPreviewOptsInput=p.videoPreviewOpts;u5U(this);zO(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)):
_.vs(Error("Ch")):_.vs(Error("Dh")):R4O(this)},W3=function(p){R4O(p);
var y;(y=p.lockupElement)==null||y.removeEventListener("mouseenter",p.onMouseMoveFn);var l;(l=p.lockupElement)==null||l.removeEventListener("mouseleave",p.onLockupMouseLeaveFn);var q;(q=p.lockupElement)==null||q.removeEventListener("touchstart",p.onTouchStart);var t;(t=p.thumbnailElement)==null||t.removeEventListener("mousedown",p.onThumbnailMouseDownFn);ob(p)},u5U=function(p){p.inlinePreviewIsEnabledForUser=_.ei().getState().ui.inlinePreviewIsEnabled;
p.unsubscribeFromInlinePreviewIsEnabled=_.Lw(_.ei(),_.g7_,function(y){(p.inlinePreviewIsEnabledForUser=y)||ob(p)});
p.JSC$14794_unsubscribeFromInlinePreviewIsActive=_.Lw(_.ei(),_.Vyj,function(y){(p.inlinePreviewIsActive=y)||ob(p)})},R4O=function(p){p.unsubscribeFromInlinePreviewIsEnabled();
p.unsubscribeFromInlinePreviewIsEnabled=function(){};
p.JSC$14794_unsubscribeFromInlinePreviewIsActive();p.JSC$14794_unsubscribeFromInlinePreviewIsActive=function(){}},CdQ=function(p,y){y.buttons>0||(y=_.UC("kevlar_lockup_hover_delay",-1),p.JSC$14794_touched&&y>=0?(_.TR.cancelJob(p.videoPreviewJobId),p.videoPreviewJobId=_.ZR(_.TR,function(){WWr(p)},y),p.JSC$14794_touched=!1):WWr(p))},Adj=function(p){p.videoPreviewJobId=_.ZR(_.TR,function(){var y,l,q,t;
return _.h(function(E){if(E.nextAddress==1){if(!zO(p))return E.return();y=p.getVideoPreviewOpts();if(!y)return E.return();y.isAutoplay=!0;return(q=(l=_.jN(p.mediaRenderer.hostElement,"yt-open-video-preview-action",[y]))&&l[0])?E.yield(l[0],3):E.jumpTo(2)}E.nextAddress!=2&&(q=E.yieldResult===1);q&&R4a((t=p.mediaRenderer)==null?void 0:t.data);_.rR(E)})})},WWr=function(p){!p.previewTriggered&&zO(p)&&(p.inlinePreviewIsActive&&p.terminateVideoPreview(),p.previewTriggered=!0,p.mediaRenderer.isInlinePreviewTriggered=
!0,_.TR.cancelJob(p.videoPreviewJobId),p.videoPreviewJobId=_.ZR(_.TR,function(){var y,l,q,t;
return _.h(function(E){if(E.nextAddress==1){if(!zO(p))return E.return();y=p.getVideoPreviewOpts();return y?(q=(l=_.jN(p.mediaRenderer.hostElement,"yt-open-video-preview-action",[y]))&&l[0])?E.yield(l[0],3):E.jumpTo(2):E.return()}E.nextAddress!=2&&(q=E.yieldResult===1);q&&R4a((t=p.mediaRenderer)==null?void 0:t.data);_.rR(E)})}))};
acg.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var p,y;if((y=(p=this.videoPreviewOptsInput)==null?void 0:p.videoPreviewData)!=null)p=y;else if(p=this.mediaRenderer.data)if(u58(p))p={inlinePlaybackEndpoint:_.yM(p.inlinePlayerData.onVisible),navigationEndpoint:_.yM(p.onTap),thumbnail:"image"in p?p.image:p.thumbnail,thumbnailOverlays:void 0,accessibilityText:WWm(p)};else if("multipleInlinePlaybackEndpoint"in p){var l=_.G(_.G(p.multipleInlinePlaybackEndpoint,H2r),TYZ);if(l!=
null&&l.playerDescriptors){y=[];l=_.c(l.playerDescriptors);for(var q=l.next();!q.done;q=l.next())q=q.value,y.push({inlinePlaybackEndpoint:q.inlinePlaybackEndpoint,navigationEndpoint:q.navigationEndpoint,thumbnail:q.thumbnail,thumbnailOverlays:q.thumbnailOverlays,accessibilityText:WWm(p)});p=y}else p=void 0}else p={inlinePlaybackEndpoint:p.inlinePlaybackEndpoint,navigationEndpoint:p.navigationEndpoint,thumbnail:p.thumbnail,thumbnailOverlays:p.thumbnailOverlays,accessibilityText:WWm(p)};else p=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:p,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var zO=function(p){var y;if(y=p.inlinePreviewIsEnabledForUser)y=(p=p.mediaRenderer.data)?"inlinePlaybackEndpoint"in p&&p.inlinePlaybackEndpoint||u58(p)&&p.inlinePlayerData||"multipleInlinePlaybackEndpoint"in p&&p.multipleInlinePlaybackEndpoint?!0:!1:!1;return y};
acg.prototype.terminateVideoPreview=function(){_.$w(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var ob=function(p){_.TR.cancelJob(p.videoPreviewJobId);p.inlinePreviewIsActive=!1;p.previewTriggered=!1;p.mediaRenderer.isInlinePreviewTriggered=!1};var acv=_.c0(["#"]),Y$=function(){var p=_.w.apply(this,arguments)||this;p.isDisabled=!1;return p};
_.A(Y$,_.w);_.J=Y$.prototype;_.J.configureRendererStamper=function(){return{"data.menu":w7,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.getMetadata=function(p){var y=[];if(p.metadataText&&Object.keys(p.metadataText).length>0){var l=this.ytRendererBehavior.getSimpleString(p.metadataText);p.upcomingEventData&&p.upcomingEventData.upcomingEventText&&(l=_.OZ(l,Number(p.upcomingEventData.startTime)));y.push(l)}else p.shortViewCountText&&y.push(this.ytRendererBehavior.getSimpleString(p.shortViewCountText)),p.publishedTimeText&&y.push(this.ytRendererBehavior.getSimpleString(p.publishedTimeText)),p.upcomingEventData&&p.upcomingEventData.upcomingEventText&&
(l=this.ytRendererBehavior.getSimpleString(p.upcomingEventData.upcomingEventText),y.push(_.OZ(l,Number(p.upcomingEventData.startTime))));return y};
_.J.calculateBylineText=function(p){return p.shortBylineText?p.shortBylineText:p.bylineText?p.bylineText:null};
_.J.calculateIsDisabled=function(p){return!!p.isDisabled};
_.J.computeHrefWithDefault=function(p){return this.ytComponentBehavior.computeHref_(p)||_.Tut(acv)};
_.J.onDetailsTap=function(p){var y=this.data&&this.data.navigationEndpoint;y&&!_.WN(_.Jx(p)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.n("kevlar_grid_video_renderer_killswitch")?_.Ub(this.hostElement,"yt-navigate",{endpoint:y}):this.ytComponentBehavior.resolveCommand(y))};
_.J.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14799_inlinePreviewHoverListener=qG({mediaRenderer:this,lockupElement:_.jR(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.jR(this.hostElement).querySelector("ytd-thumbnail")})};
_.J.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$14799_inlinePreviewHoverListener)==null||W3(p)};
_.J.computeThumbnailWidth=function(p,y){return y&&y>0?y:p?360:210};
_.J.computeShowChannelThumbnail=function(p,y){var l;return y&&!!(p==null?0:(l=p.channelThumbnailSupportedRenderers)==null?0:l.channelThumbnailWithLinkRenderer)};
_.Jh.Object.defineProperties(Y$.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$14799_inlinePreviewHoverListener)==null?0:zO(p))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Y$.prototype.dataChanged=Y$.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Y$.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Y$.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Y$.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],Y$.prototype,"ytdDismissibleItemBehavior",void 0);
_.H([_.V(_.EW),_.x("design:type",Object)],Y$.prototype,"ytdLockupBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Y$.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Y$.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Y$.prototype,"noEndpoints",void 0);_.H([_.Q({computed:"calculateBylineText(data)"}),_.x("design:type",Object)],Y$.prototype,"bylineText",void 0);
_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Y$.prototype,"isSearch",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Y$.prototype,"isDownloading",void 0);_.H([_.Q({reflectToAttribute:!0,value:0}),_.x("design:type",Number)],Y$.prototype,"width",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.x("design:type",Object)],Y$.prototype,"isDisabled",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Y$.prototype,"dataChanged",null);_.H([_.g("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Y$.prototype,"isHovered",null);_.H([_.k({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],Y$);
_.D(Y$,"ytd-grid-video-renderer",function(){if(x5r!==void 0)return x5r;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return x5r=p},{mode:_.ZS("kevlar_poly_si_batch_j047")?1:2});var m2O;var Ib=function(){var p=_.w.apply(this,arguments)||this;p.roundedContainer=!0;p.skipRoundingTop=!1;p.disableTopPadding=!1;p.amsterdamEnabled=_.n("enable_desktop_amsterdam_info_panels");return p};
_.A(Ib,_.w);Ib.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ib.prototype.onClick=function(p){var y,l=(y=this.data)==null?void 0:y.sourceEndpoint;!_.WN(_.Jx(p),this.hostElement,["A".toString()])&&l&&_.Ub(this.hostElement,"yt-navigate",{endpoint:l})};
_.Jh.Object.defineProperties(Ib.prototype,{showMetadataAtTop:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!!this.data.sourceAtTop}},
showMetadataBelowTitle:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!this.data.sourceAtTop}},
hasMenu:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var p,y;return(y=(p=this.data)==null?void 0:p.paragraphMaxLines)!=null?y:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Ib.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Ib.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Ib.prototype,"showVerticalDividers",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Ib.prototype,"roundedContainer",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Ib.prototype,"skipRoundingTop",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Ib.prototype,"disableTopPadding",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ib.prototype,"amsterdamEnabled",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ib.prototype,"showMetadataAtTop",null);
_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ib.prototype,"showMetadataBelowTitle",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data.menu"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ib.prototype,"hasMenu",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data.truncateParagraphs"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ib.prototype,"truncateParagraphs",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("data.paragraphMaxLines"),_.x("design:type",Number),_.x("design:paramtypes",[])],Ib.prototype,"paragraphMaxLines",null);_.H([_.Q({type:_.n("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.g("data.background"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ib.prototype,"background",null);_.H([_.k({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],Ib);
_.D(Ib,"ytd-info-panel-content-renderer",function(){if(m2O!==void 0)return m2O;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-info-panel-content-renderer" on-click="onClick">\n  <yt-icon class="inline-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <div class="text-content style-scope ytd-info-panel-content-renderer">\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataAtTop]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <a class="yt-simple-endpoint title-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.title]]" href$="[[computeHref_(data.sourceEndpoint)]]" data="[[data.sourceEndpoint]]">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-info-panel-content-renderer"></yt-formatted-string>\n      <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n      </yt-icon>\n    </a>\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataBelowTitle]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div class="paragraphs style-scope ytd-info-panel-content-renderer">\n      <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.runs]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-formatted-string class="paragraph style-scope ytd-info-panel-content-renderer" text="[[item]]">\n          </yt-formatted-string>\n          <div class="inline-source style-scope ytd-info-panel-content-renderer" hidden="[[!data.inlineSource]]">\n            <yt-formatted-string force-default-style="" text="[[data.inlineSource]]" class="style-scope ytd-info-panel-content-renderer">\n            </yt-formatted-string>\n            <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n            </yt-icon>\n          </div>\n        </div>\n      </template>\n      <template is="dom-repeat" items="[[data.attributedParagraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.content]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-attributed-string id="paragraph" class="attributed-paragraph style-scope ytd-info-panel-content-renderer" data="[[item]]">\n          </yt-attributed-string>\n        </div>\n      </template>\n      <div class="disclaimer-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.disclaimer]]">\n        <a class="yt-simple-endpoint style-scope ytd-info-panel-content-renderer" href$="[[computeHref_(data.sourceEndpoint)]]" target="_blank" data="[[data.sourceEndpoint]]">\n          <yt-formatted-string class="disclaimer style-scope ytd-info-panel-content-renderer" text="[[data.disclaimer]]">\n          </yt-formatted-string>\n          <yt-icon class="inline-link-icon inline-disclaimer-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineDisclaimerIcon.iconType]]" hidden="[[!data.inlineDisclaimerIcon]]" icon="[[data.inlineDisclaimerIcon.iconType]]">\n          </yt-icon>\n        </a>\n      </div>\n    </div>\n  </div>\n  <yt-img-shadow class="thumbnail style-scope ytd-info-panel-content-renderer" hidden="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n</div>\n<div id="menu" class="style-scope ytd-info-panel-content-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return m2O=p},{mode:_.ZS("kevlar_poly_si_batch_j076")?1:2});var U2O;var $2Z;var jjN;var bcP;var pH=function(){return _.w.apply(this,arguments)||this};
_.A(pH,_.w);pH.prototype.computeStyle=function(p){return p};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],pH.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],pH.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],pH.prototype,"style_",void 0);_.H([_.z9({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],pH);
_.D(pH,"yt-channel-thumbnail-with-link-renderer",function(){if(bcP===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-channel-thumbnail-with-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_channel_thumbnail_with_link_renderer.yt.channel.thumbnail.with.link.renderer.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" title="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  </yt-img-shadow>\n</a>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;jjN===void 0&&(jjN=document.createElement("template"));var q=jjN;l.call(y,q.content.cloneNode(!0),p.content.firstChild);bcP=p}p=bcP;return p},{mode:2});var yo=function(){var p=_.w.apply(this,arguments)||this;p.modernTypography=_.n("web_modern_typography");return p};
_.A(yo,_.w);yo.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"}}}};
yo.prototype.computeTitleStyle=function(p){return p||null};
yo.prototype.computeAvatarStyle=function(p){return p||null};
yo.prototype.computeShowNavigationButton=function(p,y){return!(p==null||!p.navigationButton||y)};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],yo.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],yo.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.x("design:type",String)],yo.prototype,"titleStyle",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.x("design:type",String)],yo.prototype,"avatarStyle",void 0);_.H([_.Q(),_.x("design:type",Boolean)],yo.prototype,"hideNavigationButton",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],yo.prototype,"isModernSd",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],yo.prototype,"modernTypography",void 0);
_.H([_.k({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],yo);
_.D(yo,"ytd-rich-list-header-renderer",function(){if($2Z!==void 0)return $2Z;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="title-row style-scope ytd-rich-list-header-renderer">\n  <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n  <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-rich-list-header-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n      </yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-rich-list-header-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <div id="image-container" class="style-scope ytd-rich-list-header-renderer">\n        <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n        <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n          <span id="title" class="style-scope ytd-rich-list-header-renderer">[[getSimpleString(data.title)]]</span>\n          <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </a>\n  </template>\n  <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-list-header-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="title-annotation" hidden="[[!data.titleAnnotation]]" text="[[data.titleAnnotation]]" class="style-scope ytd-rich-list-header-renderer">\n  </yt-formatted-string>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-list-header-renderer"></div>\n  <div id="navigation-button" hidden="[[!computeShowNavigationButton(data, hideNavigationButton)]]" class="style-scope ytd-rich-list-header-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return $2Z=p},{mode:_.ZS("kevlar_poly_si_batch_j058")?1:2});var sQ=function(){return _.w.apply(this,arguments)||this};
_.A(sQ,_.w);sQ.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]]"}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],sQ.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],sQ.prototype,"data",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],sQ.prototype,"isSearch",void 0);_.H([_.k({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],sQ);
_.D(sQ,"ytd-preview-card-renderer",function(){if(U2O!==void 0)return U2O;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-preview-card-renderer"></div>\n<div id="contents" class="style-scope ytd-preview-card-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return U2O=p},{mode:1});var nLZ;var tI=function(){return _.w.apply(this,arguments)||this};
_.A(tI,_.w);tI.prototype.configureRendererStamper=function(){return{"data.menu":w7}};
tI.prototype.dataChanged=function(){var p=this.get("colorExtractionPalette.section1Color",this.data);p=_.z5(p);_.Ax(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":p})};
tI.prototype.computeCardStyle=function(p){return this.get("style.value",p)||null};
tI.prototype.dataChanged=tI.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],tI.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],tI.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],tI.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.x("design:type",String)],tI.prototype,"cardStyle",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tI.prototype,"dataChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],tI);
_.D(tI,"ytd-compact-channel-recommendation-card-renderer",function(){if(nLZ!==void 0)return nLZ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-channel-recommendation-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="card-body" class="yt-simple-endpoint style-scope ytd-compact-channel-recommendation-card-renderer" href$="[[computeHref_(data.channelEndpoint)]]" title$="[[getSimpleString(data.channelTitle)]]" aria-label$="[[getSimpleString(data.channelTitle)]]" data="[[data.channelEndpoint]]">\n  <div id="banner" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <yt-img-shadow id="channel-art" object-fit="COVER" thumbnail="[[data.backgroundImage]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n    <svg id="avatar-protection" viewBox="0 0 210 56" preserveAspectRatio="none" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n      <path id="lower-overlay" d="M 0 -12 L 126 56 L 0 56 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n      <path id="upper-overlay" d="M 0 -12 L 74 28 L 0 68 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n    </svg>\n    <yt-img-shadow id="avatar" thumbnail="[[data.channelAvatar]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n  </div>\n  <div id="channel-info" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <span id="title" class="style-scope ytd-compact-channel-recommendation-card-renderer">[[getSimpleString(data.channelTitle)]]</span>\n  </div>\n</a>\n<div id="subscribe-container" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  <ytd-subscribe-button-renderer id="subscribe" data="[[data.subscribeButton.subscribeButtonRenderer]]" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  </ytd-subscribe-button-renderer>\n</div>\n<div id="menu" class="style-scope ytd-compact-channel-recommendation-card-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return nLZ=p},{mode:1});var Gn$;var PdU;var EQ=function(){var p=_.w.apply(this,arguments)||this;p.alignAuto=!1;p.collapsed=!0;p.isToggled=!1;p.alwaysCollapsed=!1;p.canToggle=!0;p.collapsedHeight=80;p.disableToggle=!1;p.alwaysToggleable=!1;p.reversed=!1;p.shouldUseNumberOfLines=!1;p.recomputeOnResize=!1;p.canToggleJobId=0;p.lastReversed=!1;return p};
_.A(EQ,_.w);_.J=EQ.prototype;_.J.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.J.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.J.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var p=_.jR(this.hostElement),y=p.childNodes,l=document.createDocumentFragment(),q=p.childNodes.length-1;q>=0;q--)_.jR(l).appendChild(y[q]);_.n("enable_shadydom_free_scoped_node_methods")?_.bt(this.hostElement).appendChild(l):p.appendChild(l)}};
_.J.ready=function(){var p=this;_.sU(function(){p.initChildrenObserver()},1)};
_.J.detached=function(){this.detachObserver()};
_.J.toggle=function(p,y){this.canToggle&&(this.isToggled=y,_.Ub(this.hostElement,"yt-refit"),p&&p.stopPropagation())};
_.J.reset=function(){this.childrenChanged()};
_.J.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.J.computeIsMoreVisible=function(p,y){return p&&!y};
_.J.computeShouldUseNumberOfLines=function(p){try{return!!p&&window.CSS.supports("-webkit-line-clamp","1")}catch(y){}return!1};
_.J.computeIsLessVisible=function(p,y){return p&&y};
_.J.observeCollapsedHeightAndMaxLines=function(){var p=this.collapsedHeight,y=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Ax(this.hostElement,{"--ytd-expander-max-lines":""+y,"--ytd-expander-collapsed-height":""}):_.Ax(this.hostElement,{"--ytd-expander-collapsed-height":p+"px","--ytd-expander-max-lines":""})};
_.J.handleMoreTap=function(p){this.disableToggle||(_.Ub(this.hostElement,"yt-expander-more-tapped"),this.toggle(p,!0))};
_.J.handleLessTap=function(p){_.Ub(this.hostElement,"yt-expander-less-tapped");this.toggle(p,!1)};
_.J.initChildrenObserver=function(){var p=this;this.observer=new MutationObserver(function(){p.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.J.childrenChanged=function(){var p=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Ab(function(){p.canToggleJobId=0;p.calculateCanCollapse()})}))};
_.J.calculateCanCollapse=function(){this.canToggle=this.shouldUseNumberOfLines?this.alwaysToggleable||this.isToggled||this.content&&this.content.offsetHeight<this.content.scrollHeight:this.alwaysToggleable||this.isToggled||this.content&&this.content.scrollHeight>this.collapsedHeight};
_.J.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.J.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JC("collapsed-changed",this.collapsed))};
_.J.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JC("is-toggled-changed",this.isToggled))};
_.J.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JC("can-toggle-changed",this.canToggle))};
_.Jh.Object.defineProperties(EQ.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
EQ.prototype.canToggleChangedForBinding=EQ.prototype.canToggleChangedForBinding;EQ.prototype.isToggledChangedForBinding=EQ.prototype.isToggledChangedForBinding;EQ.prototype.collapsedChangedForBinding=EQ.prototype.collapsedChangedForBinding;EQ.prototype.observeCollapsedHeightAndMaxLines=EQ.prototype.observeCollapsedHeightAndMaxLines;EQ.prototype.onIronResize=EQ.prototype.onIronResize;EQ.prototype.reversedChanged=EQ.prototype.reversedChanged;EQ.prototype.toggledChanged=EQ.prototype.toggledChanged;
EQ.prototype.alwaysToggleableChanged=EQ.prototype.alwaysToggleableChanged;_.H([_.V(_.vG),_.x("design:type",Object)],EQ.prototype,"ironResizableBehavior",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],EQ.prototype,"alignAuto",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],EQ.prototype,"collapsed",void 0);_.H([_.Q(),_.x("design:type",Object)],EQ.prototype,"isToggled",void 0);_.H([_.Q(),_.x("design:type",Object)],EQ.prototype,"alwaysCollapsed",void 0);
_.H([_.Q(),_.x("design:type",Object)],EQ.prototype,"canToggle",void 0);_.H([_.Q(),_.x("design:type",Object)],EQ.prototype,"collapsedHeight",void 0);_.H([_.Q(),_.x("design:type",Object)],EQ.prototype,"disableToggle",void 0);_.H([_.Q(),_.x("design:type",Object)],EQ.prototype,"alwaysToggleable",void 0);_.H([_.Q(),_.x("design:type",Object)],EQ.prototype,"reversed",void 0);_.H([_.Q(),_.x("design:type",Number)],EQ.prototype,"maxNumberOfLines",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.x("design:type",Object)],EQ.prototype,"shouldUseNumberOfLines",void 0);_.H([_.Q(),_.x("design:type",Object)],EQ.prototype,"recomputeOnResize",void 0);_.H([_.rd("#content"),_.x("design:type",HTMLDivElement)],EQ.prototype,"content",void 0);_.H([_.k8("alwaysToggleable"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EQ.prototype,"alwaysToggleableChanged",null);
_.H([_.k8("isToggled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EQ.prototype,"toggledChanged",null);_.H([_.g("canToggleJobId"),_.x("design:type",Object),_.x("design:paramtypes",[])],EQ.prototype,"isResetting",null);_.H([_.gd("reversed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EQ.prototype,"reversedChanged",null);
_.H([_.VU("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EQ.prototype,"onIronResize",null);_.H([_.gd("maxNumberOfLines","collapsedHeight"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EQ.prototype,"observeCollapsedHeightAndMaxLines",null);_.H([_.gd("collapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EQ.prototype,"collapsedChangedForBinding",null);
_.H([_.gd("isToggled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EQ.prototype,"isToggledChangedForBinding",null);_.H([_.gd("canToggle"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EQ.prototype,"canToggleChangedForBinding",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-expander"})],EQ);
_.D(EQ,"ytd-expander",function(){if(PdU!==void 0)return PdU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-expander">\n  \n  <slot id="container" name="content" class="style-scope ytd-expander"></slot>\n</div>\n<slot name="sticky" class="style-scope ytd-expander"></slot>\n<tp-yt-paper-button id="less" aria-expanded="true" hidden="[[!computeIsLessVisible(canToggle, isToggled)]]" noink="" on-tap="handleLessTap" class="style-scope ytd-expander">\n  <slot name="less-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<tp-yt-paper-button id="more" aria-expanded="false" hidden="[[!computeIsMoreVisible(canToggle, isToggled)]]" noink="" on-tap="handleMoreTap" class="style-scope ytd-expander">\n  <slot name="more-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<slot name="sticky-secondary" class="style-scope ytd-expander"></slot>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return PdU=p},{mode:1});var JI=function(){return _.w.apply(this,arguments)||this};
_.A(JI,_.w);JI.prototype.computeIsCarousel=function(p){return!!p.isCarousel};
JI.prototype.observeLightsourcePalette=function(){var p,y=(p=this.data)==null?void 0:p.vibrantsourceColorPaletteData;y&&_.dD(this.hostElement,y)};
JI.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
JI.prototype.observeLightsourcePalette=JI.prototype.observeLightsourcePalette;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],JI.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],JI.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],JI.prototype,"data",void 0);_.H([_.Q({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],JI.prototype,"isCarousel",void 0);
_.H([_.gd("data.vibrantsourceColorPaletteData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JI.prototype,"observeLightsourcePalette",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],JI);
_.D(JI,"ytd-media-upsell-renderer",function(){if(Gn$!==void 0)return Gn$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Gn$=p},{mode:2});var AuP;var cx=function(){var p=_.w.apply(this,arguments)||this;p.JSC$14827_playerEvents=new Map;p.listeningToPlayer=!1;p.startX=0;p.active=!1;p.shouldShowButtons=_.n("web_buttons_hidden_killswitch");p.isHighlighted=!1;p.useHighlightStyling=_.n("web_enable_deeper_metadata_highlight_styling");p.modern=_.n("kevlar_modern_sd");p.enableProblemWalkthrough=_.n("problem_walkthrough_sd");return p};
_.A(cx,_.w);_.J=cx.prototype;
_.J.configureRendererStamper=function(){return{"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.repeatButton":{id:"repeat-button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.thumbnailOverlay":{id:"overlay",mapping:{thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",params:{isVideoPlaying:!0}}}}}};
_.J.created=function(){this.JSC$14827_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.J.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.MH(this,this.onRepeatButtonToggle));_.n("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.MH(this,this.onActiveUpdate))};
_.J.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.MH(this,this.onRepeatButtonToggle));_.n("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.MH(this,this.onActiveUpdate))};
_.J.onDataChanged=function(){this.removePlayerListeners()};
_.J.onColorPaletteChange=function(){var p={},y;if(_.HI()==="USER_INTERFACE_THEME_DARK"&&((y=this.data)==null?0:y.darkColorPalette)){var l=this.data.darkColorPalette;p["--ytd-macro-markers-list-item-background-color"]=_.Y9(this.get("section2Color",l))}else{var q;_.HI()==="USER_INTERFACE_THEME_LIGHT"&&((q=this.data)==null?0:q.lightColorPalette)&&(l=this.data.lightColorPalette,p["--ytd-macro-markers-list-item-background-color"]=_.Y9(this.get("section3Color",l)))}l?(p["--ytd-macro-markers-list-item-title-color"]=
_.Y9(this.get("primaryTitleColor",l)),p["--ytd-macro-markers-list-item-secondary-color"]=_.Y9(this.get("secondaryTitleColor",l)),p["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Y9(this.get("section1Color",l)),this.customButtonProperties={customColors:{color:_.Y9(this.get("primaryTitleColor",l))}},this.useColorSampling=!0):(p["--ytd-macro-markers-list-item-background-color"]="initial",p["--ytd-macro-markers-list-item-title-color"]="initial",p["--ytd-macro-markers-list-item-secondary-color"]=
"initial",p["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Ax(this.hostElement,p)};
_.J.onEndpointMouseDown=function(p){this.startX=p.clientX};
_.J.onEndpointClick=function(p){var y=this,l,q,t;return _.h(function(E){if(E.nextAddress==1){if(y.startX!==p.clientX)return p.preventDefault(),E.return();y.data&&y.ytRendererBehavior.logExplicitClick(y.data);if(!y.seekWithAnimationOnClick)return E.jumpTo(0);if(p.button!==0||p.shiftKey||p.altKey||p.metaKey||p.ctrlKey||_.WN(_.Jx(p),y.hostElement,["BUTTON".toString()]))return E.return();p.stopPropagation();p.preventDefault();return y.data?E.yield(_.jo().getPlayerPromise(),3):E.return()}l=E.yieldResult;
t=(q=_.G(y.data.onTap,_.Eb))==null?void 0:q.startTimeSeconds;t!==void 0&&l.seekToTimeWithAnimation(t*1E3,_.JB(y.data.title));_.rR(E)})};
_.J.computeLayout=function(p){return p};
_.J.computeIsHighlighted=function(p){return!!p};
_.J.computeCarouselType=function(p){return p};
_.J.hideModernCarousel=function(p){return this.modern&&this.hideThumbnail(p)};
_.J.hideThumbnail=function(p){return this.enableProblemWalkthrough&&p!==null&&p==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.J.onRepeatButtonToggle=function(p){var y=this;p.detail.toggled&&_.jo().getPlayerPromise().then(function(l){y.ytPlayerListenerBehavior.listenToPlayerEvents(l,y.JSC$14827_playerEvents);y.listeningToPlayer=!0})};
_.J.onLoopRangeChange=function(p){var y=_.jR(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(y){var l=y.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",y.polymerController.data);if(l){var q=Number(l.endTimeMs);if(Number(l.startTimeMs)!==(p==null?void 0:p.startTimeMs)||q!==(p==null?void 0:p.endTimeMs))y.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.J.removePlayerListeners=function(){var p=this;this.listeningToPlayer&&_.jo().getPlayerPromise().then(function(y){p.ytPlayerListenerBehavior.unlistenFromPlayerEvents(y,p.JSC$14827_playerEvents);p.listeningToPlayer=!1})};
_.J.onActiveUpdate=function(p){this.active=p.detail.active};
cx.prototype.onColorPaletteChange=cx.prototype.onColorPaletteChange;cx.prototype.onDataChanged=cx.prototype.onDataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],cx.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.c8.YtPlayerListenerBehavior),_.x("design:type",_.eE)],cx.prototype,"ytPlayerListenerBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],cx.prototype,"data",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],cx.prototype,"useCustomColors",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],cx.prototype,"active",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],cx.prototype,"shouldShowButtons",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.x("design:type",String)],cx.prototype,"layout",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.x("design:type",Object)],cx.prototype,"isHighlighted",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],cx.prototype,"useHighlightStyling",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],cx.prototype,"modern",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],cx.prototype,"enableProblemWalkthrough",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.x("design:type",String)],cx.prototype,"carouselType",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],cx.prototype,"useColorSampling",void 0);_.H([_.Q(),_.x("design:type",Boolean)],cx.prototype,"seekWithAnimationOnClick",void 0);_.H([_.Q(),_.x("design:type",Object)],cx.prototype,"customButtonProperties",void 0);
_.H([_.rd("#repeat-button"),_.x("design:type",HTMLElement)],cx.prototype,"repeatButton",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cx.prototype,"onDataChanged",null);_.H([_.gd("data.lightColorPalette","data.darkColorPalette"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cx.prototype,"onColorPaletteChange",null);_.H([_.k({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],cx);
_.D(cx,"ytd-macro-markers-list-item-renderer",function(){if(AuP!==void 0)return AuP;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return AuP=p},{mode:1});var Zcr;var MUO;var eI=function(){var p=_.w.apply(this,arguments)||this;p.modernTypography=_.n("web_modern_typography");return p};
_.A(eI,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],eI.prototype,"ytRendererBehavior",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],eI.prototype,"modernTypography",void 0);_.H([_.Q(),_.x("design:type",Object)],eI.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],eI);
_.D(eI,"ytd-title-and-button-list-header-renderer",function(){if(MUO!==void 0)return MUO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-title-and-button-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-title-and-button-list-header-renderer"></yt-formatted-string>\n\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return MUO=p},{mode:1});var VUP;var gLU=new _.WE("BUTTON_RENDERER_WIZ_TOKEN"),QjU=new _.WE("BUTTON_RENDERER_TOKEN");_.hI=_.aF(function(p){var y=_.WC().resolve(_.RK(gLU));if(y)return _.R(y,Object.assign({},p));var l=_.WC().resolve(QjU);return l?_.R(ly6,null,function(){return _.R(EM,null,function(){var q,t,E,e,C,u,a,m,U,b,P,Z;return void l(p.data(),{onButtonClickCallback:p.onButtonClickCallback,shouldShowIcons:(q=p.shouldShowIcons)==null?void 0:q.call(p),icon:(t=p.icon)==null?void 0:t.call(p),processAllEndpoints:(E=p.processAllEndpoints)==null?void 0:E.call(p),preventDefault:(e=p.preventDefault)==null?void 0:e.call(p),
stopPropagation:(C=p.stopPropagation)==null?void 0:C.call(p),disableButtonRendererClickHandling:(u=p.disableButtonRendererClickHandling)==null?void 0:u.call(p),className:(a=p.className)==null?void 0:a.call(p),buttonOverrides:(m=p.buttonOverrides)==null?void 0:m.call(p),forceModernIconButton:(U=p.forceModernIconButton)==null?void 0:U.call(p),isSubscribe:(b=p.isSubscribe)==null?void 0:b.call(p),alignByText:(P=p.alignByText)==null?void 0:P.call(p),forceDisabled:(Z=p.forceDisabled)==null?void 0:Z.call(p)})})}):
_.R(_.a4,null)},"ea");
_.hI.idomCompat=!0;var KWB=_.aF(function(p){var y=p.data,l=_.uy(p.useSquareAspectRatio,!1);return _.R("dismissed-mini-game-card-view-model",null,_.R(_.W,{cond:function(){var q,t;return(q=y().responseText)==null?void 0:(t=q.runs)==null?void 0:t.length},
then:function(){var q={};return _.R("div",{class:_.ip("yt-mini-game-card-view-model__dismissed-card",(q["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!l()},q["yt-mini-game-card-view-model--dismissed-square-card"]=l,q))},_.R("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.R(_.W,{cond:function(){return y().responseText.runs[0].text},
then:function(t){return _.R("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:t},t)}}),_.R(_.di,{data:function(){return y().buttons}},{buttonRenderer:_.hI,
buttonViewModel:_.wZ})))}}))},"fa");var knr=_.aF(function(p){p=_.RF(p,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var y=p.data,l=p.useFullWidth,q=p.isDesktopWeb,t=p.addSearchResultTopMargin,E=function(){return y().layout},e=function(){return y().title},C=function(){return y().metadataText?y().metadataText:y().genre},u=function(){return y().channelName},a=function(){return y().image},m=function(){return y().colorPalette},U=function(){return y().actionButton},b=function(){return y().overflowButton},
P=function(){return y().avatar},Z=function(){var T={};
T=_.ip("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(T["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return q()},T));
return _.R("div",{class:T},_.R(wBN,{imageData:a,colorPalette:m}),_.R(icr,{onTap:function(){return y().onTap},
imageData:a,accessibilityText:function(){return y().accessibilityText},
overlayBadgeText:function(){return y().overlayBadgeText},
iconName:function(){return y().iconName},
unplayableInlinePlaybackIconName:function(){return y().unplayableInlinePlaybackIconName},
isDesktopWeb:q}),_.R(_.W,{cond:function(){return!q()},
then:function(){return _.R(_.a4,null,_.R(ruO,{layout:E,colorPalette:m,isDesktopWeb:q,overflowButton:b,avatar:P,onTap:function(){return y().onTap},
genre:C,title:e,channelName:u}),_.R(S9M,{actionButton:U}))}}))},K=function(){var T={};
T=_.ip((T["yt-mini-game-card-view-model--search-result-desktop"]=function(){return q()},T["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!q()},T["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return t()},T));
return _.R("div",{class:T},Z(),_.R(FWU,{description:function(){return y().description},
isDesktopWeb:q,title:e,genre:C,onTap:function(){return y().onTap},
actionButton:U,overflowButton:b,avatar:P,channelName:u}))},F=function(){var T={};
T=_.ip("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(T["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return q()},T["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return q()&&y().width===135},T["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return q()},T["yt-mini-game-card-view-model--big-metadata-font"]=function(){return y().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},T["yt-mini-game-card-view-model--use-full-width"]=
function(){return l()},T["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!U()},T));
return _.R("div",{class:T},_.R(LWx,{colorPalette:m,isDesktopWeb:q,onTap:function(){return y().onTap},
accessibilityText:function(){return y().accessibilityText},
overlayBadgeText:function(){return y().overlayBadgeText},
iconName:function(){return y().iconName},
unplayableInlinePlaybackIconName:function(){return y().unplayableInlinePlaybackIconName},
actionButton:U,imageData:a}),_.R(ruO,{layout:E,colorPalette:m,isDesktopWeb:q,overflowButton:b,avatar:P,onTap:function(){return y().onTap},
genre:C,title:e,channelName:u}))},L=function(){var T={};
T=_.ip("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(T["yt-mini-game-card-view-model--square-card-desktop"]=function(){return q()},T["yt-mini-game-card-view-model--use-full-width"]=function(){return l()},T));
return _.R("div",{class:T},_.R(icr,{onTap:function(){return y().onTap},
imageData:a,accessibilityText:function(){return y().accessibilityText},
overlayBadgeText:function(){return y().overlayBadgeText},
iconName:function(){return y().iconName},
unplayableInlinePlaybackIconName:function(){return y().unplayableInlinePlaybackIconName},
isDesktopWeb:q}),_.R(ruO,{layout:E,colorPalette:m,isDesktopWeb:q,overflowButton:b,avatar:P,onTap:function(){return y().onTap},
genre:C,title:e,channelName:u}))};
return _.R("mini-game-card-view-model",{class:p.className},_.R(_.L6,null,_.R(_.Sc,{when:function(){return E()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return F()}),_.R(_.Sc,{when:function(){return E()==="MINI_APP_LAYOUT_SQUARE"}},function(){return L()}),_.R(_.Sc,{when:function(){return E()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return K()})))},"ga");
knr.idomCompat=!0;var S9M=_.aF(function(p){var y=_.uy(p.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.R(_.di,{data:p.actionButton},{buttonViewModel:function(l){return _.R("div",{class:y},_.R(_.wZ,{data:l.data}))}})},"ha"),icr=_.aF(function(p){var y=p.onTap;
var l=p.imageData;var q=p.accessibilityText;var t=p.overlayBadgeText;var E=p.iconName;var e=p.unplayableInlinePlaybackIconName;p=p.isDesktopWeb;return _.R(_.sw,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:y},_.R(_.W$,{data:l,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(q==null?void 0:q())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.R(NEr,{overlayBadgeText:t,iconName:E,unplayableInlinePlaybackIconName:e,isDesktopWeb:p}))},"ia"),NEr=_.aF(function(p){var y=p.overlayBadgeText;
var l=p.iconName;var q=p.unplayableInlinePlaybackIconName;var t=p.isDesktopWeb;return _.R("div",{class:"yt-mini-game-card-view-model__badge-container"},_.R(_.W,{cond:l,then:function(E){return _.R("div",{class:"yt-mini-game-card-view-model__badge"},_.R("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.R(_.DR,{icon:E,className:"yt-mini-game-card-view-model__icon",size:12}),_.R("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},y)))}}),_.R(_.W,{cond:function(){return!l()&&
y()},
then:function(){return _.R("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},y)}}),_.R(_.W,{cond:function(){return q()&&t()},
then:function(){return _.R("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.R(_.DR,{icon:q,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ja"),wBN=_.aF(function(p){var y=p.colorPalette;
var l=p.imageData;var q=function(){return y().vibrantColorPalette?y().vibrantColorPalette.section2Color:y().sectionTwoColor};
return _.R(_.a4,null,_.R("div",{class:"yt-mini-game-card-view-model__background-base",style:_.NW({"background-color":function(){return IU(q(),"1")}})}),_.R("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.NW({"background-image":function(){return"url("+l().sources[0].url+")"}})}),_.R("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.NW({background:function(){return"linear-gradient(180deg,\n    "+IU(q(),".8")+" 0%,\n    "+IU(q(),".4")+" 25%,\n    "+IU(y().vibrantColorPalette?y().vibrantColorPalette.section4Color:y().sectionFourColor,".8")+" 100%)"}})}))},"ka"),ruO=_.aF(function(p){var y=p.layout;
var l=p.colorPalette;var q=p.overflowButton;var t=p.avatar;var E=p.onTap;var e=p.title;var C=p.channelName;var u=p.genre;var a=function(){var m;return y()!=="MINI_APP_LAYOUT_SQUARE"&&((m=l())==null?0:m.textPrimaryColor)?"color: "+IU(l().textPrimaryColor,".7"):""};
return _.R("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.R(_.W,{cond:t,then:function(){return _.R("div",{class:"yt-mini-game-card-view-model__avatar"},_.R(_.di,{data:t},{avatarViewModel:_.v5}))}}),_.R(_.sw,{command:E,
className:"yt-mini-game-card-view-model__metadata-details"},_.R("h3",{class:"yt-mini-game-card-view-model__title",title:e},e),_.R(_.W,{cond:t,then:function(){return _.R("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.R("span",{class:"yt-mini-game-card-view-model__genre",title:C,style:a},C),_.R("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:a},u))},
else:function(){return _.R("span",{class:"yt-mini-game-card-view-model__genre",title:u},u)}})),_.R("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.R(_.di,{data:q},{buttonViewModel:function(m){var U=m.data;
return _.R(_.wZ,{data:function(){return Object.assign({},U(),{customFontColor:y()==="MINI_APP_LAYOUT_SINGLETON"?U().customFontColor:void 0})}})}})))},"la"),LWx=_.aF(function(p){var y=p.colorPalette;
var l=p.isDesktopWeb;var q=p.onTap;var t=p.accessibilityText;var E=p.overlayBadgeText;var e=p.iconName;var C=p.unplayableInlinePlaybackIconName;var u=p.actionButton;p=p.imageData;return _.R("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.R(wBN,{imageData:p,colorPalette:y}),_.R(icr,{onTap:q,imageData:p,accessibilityText:t,overlayBadgeText:E,iconName:e,unplayableInlinePlaybackIconName:C,isDesktopWeb:l}),_.R(_.W,{cond:function(){return u==null?void 0:u()},
then:function(){return _.R(S9M,{actionButton:u})}}))},"ma"),FWU=_.aF(function(p){var y=p.description;
var l=p.isDesktopWeb;var q=p.title;var t=p.genre;var E=p.onTap;var e=p.actionButton;var C=p.overflowButton;var u=p.avatar;p=p.channelName;var a={};a=_.ip("yt-mini-game-card-view-model--search-result-metadata-wrapper",(a["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=l,a["yt-mini-game-card-view-model--show-unplayable-on-hover"]=l,a["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!l()},a));
var m={};m=_.ip("yt-mini-game-card-view-model__search-result-info-row",(m["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!l()},m));
return _.R("div",{class:a},_.R("div",{class:m},_.R(_.sw,{command:E,className:"yt-mini-game-card-view-model__metadata-details"},_.R("h3",{class:"yt-mini-game-card-view-model__title",title:q},q),_.R("span",{class:"yt-mini-game-card-view-model__genre",title:t},t)),_.R(S9M,{actionButton:e,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.R("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.R(_.di,{data:C},{buttonViewModel:_.wZ}))),_.R("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.R("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.R("div",{class:"yt-mini-game-card-view-model__avatar"},_.R(_.di,{data:u},{avatarViewModel:function(U){var b=U.data;return _.R(_.v5,{data:function(){return Object.assign({},b(),{avatarImageSize:l()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.R(_.sw,{command:E,
className:"yt-mini-game-card-view-model__description"},_.R("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},p)),_.R(_.sw,{command:E,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.R("div",null)))),_.R(_.W,{cond:l,then:function(){return _.R(_.sw,{command:E,className:"yt-mini-game-card-view-model__description"},y)}}))},"na");_.bp(knr,"mini-game-card-view-model",{props:{data:_.Co,className:_.Co,useFullWidth:_.Co,isDesktopWeb:_.Co,addSearchResultTopMargin:_.Co}});_.bp(KWB,"dismissed-mini-game-card-view-model",{props:{data:_.Co,useSquareAspectRatio:_.Co}});var CH=function(){var p=_.w.apply(this,arguments)||this;p.isSearch=!1;p.isRichGrid=!1;return p};
_.A(CH,_.w);_.J=CH.prototype;_.J.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.J.dismissibleItemOnYtServiceRequestSent=function(p,y){y.actions&&this.dismissibleItemProcessActions(p,y.actions)};
_.J.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.J.dataChanged=function(){this.dismissibleItemReset()};
_.J.dismissibleItemProcessActions=function(p,y){for(var l=0;l<y.length;l++){var q=y[l];_.G(q,_.Nv)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.G(q,_.Nv)),p.stopPropagation())}};
_.J.dismissibleItemHandleReplaceEnclosingAction=function(p){this.dismissedRenderer=p.item;this.isDismissed=!0};
_.Jh.Object.defineProperties(CH.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var p;return!!this.data&&!((p=this.dismissedRenderer)==null?0:p.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.dismissedRenderer)==null||!p.notificationMultiActionRenderer)}}});
CH.prototype.dataChanged=CH.prototype.dataChanged;CH.prototype.dismissibleItemOnRequestSent=CH.prototype.dismissibleItemOnRequestSent;CH.prototype.dismissibleItemOnYtServiceRequestSent=CH.prototype.dismissibleItemOnYtServiceRequestSent;_.H([_.Q(),_.x("design:type",Object)],CH.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],CH.prototype,"isSearch",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],CH.prototype,"isDismissed",void 0);
_.H([_.Q(),_.x("design:type",Object)],CH.prototype,"dismissedRenderer",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],CH.prototype,"isRichGrid",void 0);_.H([_.g("data.layout"),_.x("design:type",Object),_.x("design:paramtypes",[])],CH.prototype,"useSquareAspectRatio",null);_.H([_.g("data","dismissedRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],CH.prototype,"showCard",null);
_.H([_.g("data","dismissedRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],CH.prototype,"showDismissed",null);_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],CH.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.H([_.VU("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],CH.prototype,"dismissibleItemOnRequestSent",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CH.prototype,"dataChanged",null);_.H([_.z9({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],CH);
_.D(CH,"ytd-mini-game-card-view-model",function(){if(VUP!==void 0)return VUP;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return VUP=p},{mode:_.ZS("kevlar_poly_si_batch_j081")?1:2});var D2U;var HcU;var uY=function(){return _.c2.apply(this,arguments)||this};
_.A(uY,_.c2);uY.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
uY.prototype.getContinuationUrl=function(p){var y={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(y.itct=this.data.clickTrackingParams);return _.JJ(p,y)};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],uY.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],uY.prototype,"data",void 0);_.H([_.z9({is:"yt-reload-continuation",noInjection:!0})],uY);var TEx;var x2$;var Rz=function(){var p=_.w.apply(this,arguments)||this;p.notificationData={};return p};
_.A(Rz,_.w);_.J=Rz.prototype;_.J.isMenuExpanded=function(p){return p&&p.length<=1?"undefined":"false"};
_.J.dataChanged_=function(){this.selected=void 0;var p=this.computeSelectedIndex_(this.data);p>=0&&(this.selected=p);p=this.data&&this.data.length>1;_.nv(this.hostElement,"has-items",p);_.jR(this.hostElement).querySelector("#label").tabIndex=p?0:-1};
_.J.onDropdownOpen=function(){var p=_.B2();if(this.parentTrackingParams&&this.data){var y=_.Tp(this.parentTrackingParams);this.data.forEach(function(l){p&&y&&l.trackingParams&&(l=_.Tp(l.trackingParams),_.pW(p,y,l),_.qs(p,[l]))})}else this.parentTrackingParams||_.vs(new _.SM("No parent tracking params passed in for yt-dropdown-menu."))};
_.J.hasNotification=function(p){var y;if(p.targetId&&((y=this.notificationData)==null?0:y.targetId)){var l;return p.targetId===((l=this.notificationData)==null?void 0:l.targetId)}};
_.J.computeSelectedIndex_=function(p){if(p)for(var y=0,l=p.length;y<l;y++)if(p[y].selected)return y;return-1};
_.J.computeLabel_=function(p){return this.data&&p!=void 0?this.data[p].title:""};
_.J.computeShowIcon_=function(p,y){return!y&&!!p};
_.J.computeVerticalOffset_=function(p){return p?36:0};
_.J.computeEndpoint_=function(p){return p.endpoint||p.navigationEndpoint};
_.J.onLabelClick_=function(p){this.data&&this.data.length<=1?p.stopPropagation():this.menuExpanded="true"};
_.J.onIronActivate_=function(p){p=p.detail.item;var y=_.jR(this.hostElement).querySelector("#repeat").itemForElement(p);if(y&&y.trackingParams){var l=_.B2(),q=_.Tp(y.trackingParams);l&&_.te(l,q)}if(y&&y.serviceEndpoint)_.n("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(y.serviceEndpoint):_.ny(this.hostElement,[y.serviceEndpoint]),_.Ub(this.hostElement,"yt-playlist-reloading");else a:{if((y=p.querySelector("yt-supported-renderers"))&&
(y=y.rendererElement)&&y.is=="yt-reload-continuation"){y.trigger();break a}(p=p.querySelector("yt-reload-continuation"))&&p.trigger()}};
_.J.onTap_=function(p){p.preventDefault()};
_.J.onItemTap_=function(p){this.ytEndpointBehavior.onEndpointTap_(p)};
_.J.onLinkFocus_=function(p){try{var y=p.target}catch(q){}if(y){var l=y.querySelector("tp-yt-paper-item");l&&_.tl(this,"focus",function(){l.focus()})}};
_.J.onMenuClose_=function(){this.menuExpanded="false"};
_.J.isLabelIconActive_=function(p){return p==="true"};
_.J.computeHasSubtitle_=function(p){return!!p};
_.J.computeHrefForItem_=function(p){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(p))};
_.J.updateSelectedFromBinding=function(p){this.selected=p.detail.value};
_.Jh.Object.defineProperties(Rz.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
Rz.prototype.onMenuClose_=Rz.prototype.onMenuClose_;Rz.prototype.onTap_=Rz.prototype.onTap_;Rz.prototype.onIronActivate_=Rz.prototype.onIronActivate_;Rz.prototype.onDropdownOpen=Rz.prototype.onDropdownOpen;Rz.prototype.dataChanged_=Rz.prototype.dataChanged_;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Rz.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.FW.YtEndpointBehavior),_.x("design:type",Object)],Rz.prototype,"ytEndpointBehavior",void 0);
_.H([_.Q(),_.x("design:type",Array)],Rz.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Rz.prototype,"parentTrackingParams",void 0);_.H([_.Q(),_.x("design:type",Object)],Rz.prototype,"selected",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Rz.prototype,"useLabel",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Rz.prototype,"useComputedAriaLabel",void 0);_.H([_.Q(),_.x("design:type",String)],Rz.prototype,"icon",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],Rz.prototype,"iconLabel",void 0);_.H([_.Q(),_.x("design:type",String)],Rz.prototype,"ariaLabel",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Rz.prototype,"disabled",void 0);_.H([_.Q({computed:"isMenuExpanded(data)"}),_.x("design:type",String)],Rz.prototype,"menuExpanded",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Rz.prototype,"closeOnActivate",void 0);
_.H([_.Q({reflectToAttribute:!0,value:_.n("web_modern_buttons")}),_.x("design:type",Boolean)],Rz.prototype,"modernButtons",void 0);_.H([_.Q(),_.x("design:type",Object)],Rz.prototype,"notificationData",void 0);_.H([_.g("ariaLabel, selected"),_.Q(),_.x("design:type",String),_.x("design:paramtypes",[])],Rz.prototype,"computedAriaLabel",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Rz.prototype,"dataChanged_",null);
_.H([_.VU("paper-dropdown-open"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Rz.prototype,"onDropdownOpen",null);_.H([_.VU("iron-activate"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Rz.prototype,"onIronActivate_",null);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Rz.prototype,"onTap_",null);
_.H([_.VU("iron-overlay-closed"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Rz.prototype,"onMenuClose_",null);_.H([_.z9({is:"yt-dropdown-menu",disableElementRegistration:!0})],Rz);
_.D(Rz,"yt-dropdown-menu",function(){if(x2$===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;TEx===void 0&&(TEx=document.createElement("template"));var q=TEx;l.call(y,q.content.cloneNode(!0),p.content.firstChild);x2$=p}p=x2$;return p},{mode:2});var Wx=function(){var p=_.w.apply(this,arguments)||this;p.hasNotification=!1;return p};
_.A(Wx,_.w);Wx.prototype.computeId=function(p){return p};
Wx.prototype.computeHorizontalAlign=function(p){return p?"right":"left"};
Wx.prototype.computeAccessibilityLabel=function(p){var y,l;return((y=p.accessibility)==null?void 0:(l=y.accessibilityData)==null?void 0:l.label)||null};
Wx.prototype.notificationDataChanged=function(){var p;this.hasNotification=!!this.notificationData&&!((p=this.data)==null?0:p.icon)};
Wx.prototype.notificationDataChanged=Wx.prototype.notificationDataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.qC.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],Wx.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Wx.prototype,"data",void 0);_.H([_.Q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.x("design:type",String)],Wx.prototype,"id",void 0);
_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Wx.prototype,"isRightAligned",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Wx.prototype,"disabled",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Wx.prototype,"closeOnActivate",void 0);_.H([_.Q(),_.x("design:type",Object)],Wx.prototype,"notificationData",void 0);_.H([_.Q(),_.x("design:type",Object)],Wx.prototype,"hasNotification",void 0);
_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Wx.prototype,"useComputedAriaLabel",void 0);_.H([_.gd("notificationData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wx.prototype,"notificationDataChanged",null);_.H([_.z9({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],Wx);
_.D(Wx,"yt-sort-filter-sub-menu-renderer",function(){if(HcU===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;D2U===void 0&&(D2U=document.createElement("template"));var q=D2U;l.call(y,q.content.cloneNode(!0),p.content.firstChild);HcU=p}p=HcU;return p},{mode:2});var BEM=_.Sw(m2a);_.uX(m2a);_.bp(BEM,"place-data-view-model",{props:{data:_.Co}});var fcU=new _.WE("INLINE_PLAYBACK_HOOK_TOKEN");var vLP=function(p){this.setActiveSlideIndex=p;this.jobIds=[];this.isSlideshowPlaying=!1},OcM=function(p,y){p.isSlideshowPlaying||(p.isSlideshowPlaying=!0,XB$(p),d2i(p,y,0))},XB$=function(p){_.ZR(_.TR,function(){p.setActiveSlideIndex(0)},1)},d2i=function(p,y,l){p.jobIds.push(_.ZR(_.TR,function(){var q=l<y-1?l+1:0;
p.setActiveSlideIndex(q);d2i(p,y,q)},1800))};var oLv=new _.WE("IMAGE_ON_LOAD_HANDLER_TOKEN");var z4$=_.aF(function(p){return _.R("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.R(_.W,{cond:function(){var y;return(y=p.data())==null?void 0:y.thumbnail},
then:function(y){return _.R(_.W$,{data:y,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"oa");_.Y9P=_.aF(function(p){var y=p.data;var l=p.lockupExperiments;p={};return _.R("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.R("div",{class:_.ip("ytThumbnailOverlayButtonViewModelButton",(p.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var q;return l&&((q=l())==null?void 0:q.useLegacySizedIconButton)},p))},_.R(_.di,{data:function(){return y().overlayButton}},{buttonViewModel:function(q){return _.R(_.wZ,{data:q.data,
buttonOverrides:function(){var t;return l&&((t=l())==null?0:t.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"pa");
_.Y9P.idomCompat=!0;var IcZ=_.aF(function(p){return _.R("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.Ff(function(y){y.preventDefault();return!1})},_.R(_.di,{data:function(){return p.data().buttons}},{toggleButtonViewModel:function(y){return _.R("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.R(_.fo,{data:y.data}))}}))},"qa");
IcZ.idomCompat=!0;var pAU=_.aF(function(p){var y=function(){var l;return((l=_.G(p.data().rendererContext,_.L5))==null?void 0:l.label)||""};
return _.R("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.R(_.W,{cond:function(){return p.data().image},
then:function(){return _.R("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.R(_.W$,{data:function(){return p.data().image},
alt:y}))}}),_.R(_.W,{cond:function(){return p.data().text},
then:function(){return _.R("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return p.data().text})}}))},"ra");_.az=_.aF(function(p){var y=[],l=function(){var b,P;return FDl((b=p.width)==null?void 0:b.call(p),(P=p.height)==null?void 0:P.call(p))},q=_.WC().resolve(_.RK(oLv)),t=_.sM("yt-thumbnail-view-model",function(){y.push("elRef.value set");
var b;(b=p.playbackRef)==null||b.call(p,{thumbnailElRef:t,thumbnail:p.data().image,thumbnailOverlays:p.data().overlays,thumbnailSize:l()})});
_.xZ(function(){y.push("onInit");_.TP(function(){y.push("onCleanup")})});
var E=_.yS($2R),e=function(){var b,P;return(P=(b=p.aspectRatio)==null?void 0:b.call(p))!=null?P:0},C=function(){return(p.data().image?_.ljo(p.data().image):e())<=1&&e()===0},u=function(){return C()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},a=function(){t.value||_.vs(new _.SM("Thumbnail elRef.value is null",y.join("\n")));
q&&t.value&&q(t.value)},m=function(){var b,P;
return((b=p.hovered)==null?void 0:b.call(p))&&l()!=="large"&&((P=p.data().overlays)==null?void 0:P.some(function(Z){return _.G(Z,dBi)}))},U={};
return _.R("yt-thumbnail-view-model",{class:_.ip("yt-thumbnail-view-model",p.className,function(){return nLR(e())},function(){var b,P;
a:{var Z=l(),K=(b=p.disableRounding)==null?void 0:b.call(p);b=(P=p.isClip)==null?void 0:P.call(p);if(!K&&!b)switch(Z){case "large":P="yt-thumbnail-view-model--large";break a;case "small":P="yt-thumbnail-view-model--small";break a;default:P="yt-thumbnail-view-model--medium";break a}P=void 0}return P},(U["yt-thumbnail-view-model--cinematic"]=C,U)),
style:_.NW({"background-color":function(){var b,P=C()?(b=p.data().backgroundColor)==null?void 0:b.lightTheme:void 0;return P?IU(P,"1"):void 0}}),
el:t},_.R(_.W,{cond:C,then:function(){return _.R("div",{class:"yt-thumbnail-view-model__blurred-image"},_.R(_.W$,{data:function(){return p.data().image},
alt:"",contentMode:u,targetWidth:p.width,onload:a}))}}),_.R("div",{class:"yt-thumbnail-view-model__image"},_.R(_.W$,{data:function(){return p.data().image},
alt:"",contentMode:u,targetWidth:p.width,onload:a}),null),_.R(_.di,{data:function(){return m()?void 0:p.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:cuN,thumbnailOverlayBadgeViewModel:function(b){return _.R(e4$,{data:b.data,thumbnailSize:l,isClip:p.isClip})},
thumbnailBottomOverlayViewModel:function(b){return _.R(sjP,{data:b.data,thumbnailSize:l,isClip:p.isClip})},
thumbnailOverlayFullViewModel:pAU,thumbnailOverlayButtonViewModel:function(b){return _.R(_.Y9P,{data:b.data,lockupExperiments:p.lockupExperiments})}}),_.R(_.di,{data:function(){var b;
return((b=p.hovered)==null?0:b.call(p))?p.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(b){return _.R(fd,{data:b.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:IcZ}),_.R(_.di,{data:function(){var b;return((b=p.hovered)==null?0:b.call(p))&&E()?p.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:z4$}),_.R(_.W,{cond:p.isClip,then:function(){return _.R("div",{class:"yt-pinking"},_.R("svg",{class:"yt-pinking__pinking-left"},_.R("defs",null,_.R("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.R("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.R("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.R("svg",{class:"yt-pinking__pinking-right"},_.R("defs",null,_.R("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.R("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.R("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"sa");
_.az.idomCompat={callbacks:{playbackRef:!0}};var yfU=_.aF(function(p){var y=_.c(_.nr(-1,void 0,"IOLZ0b")),l=y.next().value,q=y.next().value;_.xZ(function(){var t=new vLP(q);OcM(t,p.data().thumbnails.length);_.TP(function(){if(t.isSlideshowPlaying){t.isSlideshowPlaying=!1;for(var E=t.jobIds,e=0,C=E.length;e<C;e++)_.TR.cancelJob(E[e]);t.jobIds.length=0}})});
return _.R("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.R(_.di,{data:function(){return p.data().thumbnails}},{thumbnailViewModel:function(t,E){return _.R("div",{class:function(){var e=!p.data().primaryThumbnail,C=E(),u=l(),a=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
e&&C===0&&a.push("yt-collection-thumbnail-slideshow--first-slide");C<=u&&a.push("yt-collection-thumbnail-slideshow--show-slide");return a.join(" ")}},_.R(_.az,{data:t.data,
disableRounding:p.disableRounding}))}}))},"ta");
yfU.idomCompat=!0;var Gnc=new _.WE("DWELL_DETECTOR_REGISTRY_TOKEN");var qvv=_.aF(function(p){var y=Pdt(p.triggeringElement),l=function(){return!!p.data().primaryThumbnail},q=function(){var E,e=(E=p.data())==null?void 0:E.maxHeight,C;
E=(C=p.maxHeight)==null?void 0:C.call(p);return e!=null&&E!=null?Math.min(e,E):E!=null?E:e},t=function(){var E=q();
if(E){var e;if(l()&&(e=p.includeStackHeight)!=null&&e.call(p)){var C;e=((C=p.doubleStack)==null?0:C.call(p))?8:4}else e=0;E=E-e-1;if(!(E<0)){C=Math;e=C.ceil;var u,a;var m=Sym((a=(u=p.aspectRatio)==null?void 0:u.call(p))!=null?a:0);return e.call(C,E*m)}}};
return _.R("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true",style:_.NW({height:function(){return q()?q()+"px":void 0},
width:function(){return t()?t()+"px":void 0}})},_.R(lwU,{stackEnabled:l,
thumbnailSize:function(){var E,e;return FDl((E=p.width)==null?void 0:E.call(p),(e=p.height)==null?void 0:e.call(p))},
doubleStack:p.doubleStack,stackColor:function(){return p.data().stackColor},
includeStackHeight:p.includeStackHeight},_.R(_.di,{data:function(){return p.data().primaryThumbnail}},{thumbnailViewModel:function(E){var e={};
return _.R(_.az,{data:E.data,width:p.width,height:p.height,aspectRatio:p.aspectRatio,disableRounding:p.disableRounding,className:_.ip((e["yt-collection-thumbnail-view-model--has-stacks"]=l,e)),hovered:p.hovered,playbackRef:p.playbackRef})}}),_.R(_.W,{cond:function(){var E;
return y()&&((E=p.data().thumbnails)==null?void 0:E.length)},
then:function(){return _.R("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.R(yfU,{data:p.data,disableRounding:function(){return!l()}}))}})))},"ua");
qvv.idomCompat={callbacks:{playbackRef:!0}};
var lwU=_.aF(function(p){var y=p.children;var l=p.stackEnabled;var q=p.thumbnailSize;var t=p.doubleStack;var E=p.stackColor;var e=p.includeStackHeight;var C,u=(C=_.WC().resolve(_.RK(_.hb)))==null?void 0:C();return _.R(_.W,{cond:l,then:function(){return _.R(rvi,{data:function(){var a,m;return{experimentEnabled:!0,thumbnailSize:q(),doubleStack:t==null?void 0:t(),color:u?E==null?void 0:(a=E())==null?void 0:a.darkTheme:E==null?void 0:(m=E())==null?void 0:m.lightTheme,enableResponsiveMode:!1,includeStackHeight:e==
null?void 0:e()}}},y)},
else:function(){return y}})},"va");var sDZ=new _.WE("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var UQ;_.mT={calledOnce:!0,state:"visible"};UQ={calledOnce:!0,state:"hidden"};_.$k=_.aF(function(p){var y=p.data;var l=p.customCommandResolver;var q=p.className;var t=p.delayedClassName;var E=p.animationEntityKey;var e=p.isCompactWidth;var C=_.uy(E,""),u=_.So(nb_,C),a=function(){var hR,Wt;return(Wt=(hR=u())==null?void 0:hR.value)!=null?Wt:!1},m=function(){_.Cl(_.Fp("booleanEntity",C(),{key:C(),
value:!0}));T=void 0};
p=_.c(_.kS(a));var U=p.next().value,b=p.next().value;p=_.c(_.kS(a));var P=p.next().value,Z=p.next().value;p=_.c(_.kS(function(){var hR;return a()?(hR=y().styleTransitionConfig)==null?void 0:hR.destinationStyle:void 0}));
var K=p.next().value,F=p.next().value,L=function(){var hR=Object.assign({},y(),K()&&{style:K()}),Wt,AR,Qu=hR.label,jj=(Wt=hR.interaction)==null?void 0:(AR=Wt.accessibility)==null?void 0:AR.label;Wt=hR.iconImage?hR.label&&hR.label.content?hR.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:Qu,accessibilityLabel:jj,style:VUL(hR.style),type:gLt(hR.style),state:"active",size:MUa(hR.size),iconPosition:Wt,disabled:!1,aTagConfig:Zcm(hR,l)}},T;
p=_.Ct({visibilityCallback:function(hR){var Wt,AR=(Wt=y().interaction)==null?void 0:Wt.onFirstVisible;hR&&AR&&_.tb(AR)},
showOption:_.mT});var O=function(){return H$(L(),!!y().iconImage)};
E={};q=_.ip(function(){return"ytwAdButtonViewModelHost"},function(){return y().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var hR=!!y().delayedAppearanceConfig,Wt=U();
return hR?Wt?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var hR=!!y().delayedAppearanceConfig,Wt=P();
return hR?Wt?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!y().delayedAppearanceConfig||U()?t==null?void 0:t():""},(E.ytwAdButtonViewModelHostCompactWidth=function(){return e==null?void 0:e()},E),q!=null?q:"");
var f=function(){var hR,Wt=(hR=y().delayedAppearanceConfig)==null?void 0:hR.delayedInvisibleSeconds;Wt&&(T=_.D6(_.TR,function(){b(!0);v()},Wt*1E3))},v=function(){var hR,Wt=(hR=y().delayedAppearanceConfig)==null?void 0:hR.delayedVisibleSeconds;
Wt&&(T=_.D6(_.TR,function(){Z(!0);z()},Wt*1E3))},z=function(){var hR,Wt=(hR=y().styleTransitionConfig)==null?void 0:hR.styleTransitionSeconds,AR,Qu=(AR=y().styleTransitionConfig)==null?void 0:AR.destinationStyle;
Wt&&Qu?T=_.D6(_.TR,function(){F(Qu);m()},Wt*1E3):m()},sc=function(){var hR;
return(hR=y().delayedAppearanceConfig)==null?void 0:hR.transitionDurationSeconds};
_.xZ(function(){f()});
_.TP(function(){T&&_.TR.cancelJob(T)});
return _.R("ad-button-view-model",{class:q,el:_.mR(p),style:_.NW({"transition-duration":function(){return sc()?sc()+"s":void 0}})},_.R(_.W,{cond:L,
then:function(){return _.R(_.uI,{data:L,icon:function(){return _.R(_.W,{cond:function(){return y().iconImage},
then:function(hR){return _.R(_.W$,{data:hR,alt:"",targetWidth:O,targetHeight:O,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"wa");var tHi=_.aF(function(p){var y=p.data;p=_.Ct({visibilityCallback:function(q){var t,E=(t=y().interaction)==null?void 0:t.onFirstVisible;q&&E&&_.tb(E)},
showOption:_.mT});var l={};return _.R("ad-button-group-view-model",{class:_.ip("ytwAdButtonGroupViewModelHost",(l.ytwAdButtonGroupViewModelHostCompactWidth=function(){return y().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},l)),
el:_.mR(p)},_.R("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.R(_.di,{data:function(){return y().secondaryAdButton}},{adButtonViewModel:function(q){return _.R(_.$k,{data:q.data})}})),_.R("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.R(_.di,{data:function(){return y().primaryAdButton}},{adButtonViewModel:function(q){return _.R(_.$k,{data:q.data})}})))},"xa");var EYV=_.aF(function(p){var y=function(){var l;return((l=p.data())==null?void 0:l.answers)||[]};
return _.R("yt-survey-icons",{class:"ytSurveyIconsHost"},_.R("div",{class:"ytSurveyIconsHeader"},_.R("div",{class:"ytSurveyIconsTitle"},function(){var l;return(l=p.data())==null?void 0:l.text}),_.R("div",null,_.R(_.uI,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var l;(l=p.onDismiss)==null||l.call(p)}}},
iconName:"DISMISSAL"}))),_.R("div",null,_.R("div",{class:"ytSurveyIconsAnswers"},_.R(_.rT,{each:function(){return y()},
keyBy:"INDEX"},function(l,q){return _.R("div",null,_.R(_.uI,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var t;(t=p.onSelect)==null||t.call(p,l(),q)}}},
icon:function(){return _.R(_.DR,{icon:function(){var t,E;return(t=l())==null?void 0:(E=t.icon)==null?void 0:E.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.R("div",{class:"ytSurveyIconsAnswersText"},_.R("div",null,function(){return y().length?y()[0].text:""}),_.R("div",null,function(){return y().length?y()[y().length-1].text:""}))))},"ya");var JfM=_.aF(function(p){var y=_.mR(_.yn(function(){var u;return(u=p.data())==null?void 0:u.rendererContext},void 0,void 0,void 0,!0)),l=_.c(_.nr(!1,void 0,"YxWRNc")),q=l.next().value,t=l.next().value,E=_.So(aBL,function(){var u;
return(u=p.data().keys)==null?void 0:u.surveyEntityKey}),e=_.So(m5u,function(){var u;
return(u=p.data().keys)==null?void 0:u.surveyStateEntityKey});
_.qt("ytd-slimline-survey-show-action",function(){t(!1)});
var C=function(){var u,a;var m=(u=e())==null?void 0:(a=u.questionStack)==null?void 0:a[0];if(m!==void 0){var U,b;return(U=E())==null?void 0:(b=U.questions)==null?void 0:b[m]}};
l={};return _.R("yt-slimline-survey-view-model",{el:y,class:_.ip("ytSlimlineSurveyViewModelHost",(l.ytSlimlineSurveyViewModelCollapsed=function(){return q()},l))},_.R("div",{class:"ytSlimlineSurveyViewModelContainer"},_.R(_.W,{cond:function(){var u;
return((u=C())==null?void 0:u.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.R(EYV,{data:function(){return C()},
onSelect:function(u,a){var m,U;return _.h(function(b){t(!0);if(U=(m=p.data())==null?void 0:m.onSelectRating)_.tb(U),_.Cl(WTi(a));_.rR(b)})},
onDismiss:function(){t(!0);var u;var a=(u=E())==null?void 0:u.dismissalFeedbackToken;u=a?{feedbackEndpoint:{feedbackToken:a}}:void 0;u&&_.lp(u,{form:{element:y.value}})}})}})))},"za");var cfv=_.aF(function(p){return _.R("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.R(_.di,{data:function(){var y;return(y=p.data())==null?void 0:y.attachments}},{flexibleActionsViewModel:function(y){return _.R("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.R(OVN,{data:y.data,
layout:function(){var l;return((l=p.lockupStyle())==null?void 0:l.arrangement)===1?0:1},
justifyContentOverride:function(){var l;return((l=p.lockupStyle())==null?void 0:l.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(y){return _.R("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.R(JfM,{data:y.data}))},
expandableMetadataViewModel:function(y){y=y.data;var l;return _.R("div",{class:_.ip("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(l=_.WC().resolve(_.RK(sDZ)))==null?void 0:l({data:y}))},
adButtonGroupViewModel:function(y){return _.R("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.R(tHi,{data:y.data}))},
adButtonViewModel:function(y){return _.R("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.R(_.$k,{data:y.data,isCompactWidth:!0}))}}))},"Aa");var S9l=_.UC("rich_grid_min_item_width",310),icm=_.UC("rich_grid_max_item_width",500);var eqV=_.aF(function(p){var y=p.data;return _.R("br-nz-badge-shape",{class:_.ip(function(){return x2c(y().brNzRatingBadgeType)}),
role:function(){return y().accessibilityText?"img":void 0},
"aria-label":function(){return y().accessibilityText}},function(){var l;
return(l=y())==null?void 0:l.text})},"Ba");_.jI=_.aF(function(p){var y=function(){var l=p.data(),q,t;if(l){var E=!((q=p.workaroundShortsIsThumbnailBadge)==null||!q.call(p));q=(t=p.modern)==null?void 0:t.call(p);a:switch(l.badgeStyle){case "BADGE_OVERLAY":t=!0;break a;default:t=!1}l={type:E?16:BEl(l.badgeStyle),brNzRatingBadgeType:fc8(l.badgeStyle),text:l.badgeText,icon:l.iconName,isOverlay:t,modern:q||_.n("web_modern_badge_view_model"),accessibilityText:l.accessibilityLabel}}else l=void 0;return l};
return _.R("yt-badge-view-model",{class:_.ip("yt-badge-view-model-wiz",p.class)},_.R(_.L6,null,_.R(_.Sc,{when:function(){var l;return!((l=y())==null||!l.brNzRatingBadgeType)}},function(){return _.R(eqV,{data:function(){return y()}})}),_.R(_.Sc,{when:function(){return!!y()&&!y().brNzRatingBadgeType}},function(){return _.R(_.YG,{data:function(){return y()}})})))},"Ca");
_.jI.idomCompat=!0;var XBc,vLL;XBc=16/9;vLL=2/3;_.bY=_.aF(function(p){var y=p.data;var l=p.className;var q=p.imageSizeConfig;var t=p.notifyOnLoaded;var E=function(){return y().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},e=function(){var b;
return _.pF((b=y())==null?void 0:b.rendererContext)};
p={};p=(p["yt-content-preview-image-view-model-wiz"]=!0,p["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return E()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},p["yt-content-preview-image-view-model-wiz--tappable"]=function(){return e()},p);
var C=function(){var b,P;return(P=(b=_.G(y().rendererContext,_.L5))==null?void 0:b.label)!=null?P:""},u=function(){return Ocl(y())},a=function(){var b=d2o(E(),y().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",q==null?void 0:q(),oLg(u()),y().layoutWidth,y().layoutHeight),P=Object.assign({},b);
b.width&&(P.width=Math.round(b.width));b.height&&(P.height=Math.round(b.height));b.maxWidth&&(P.maxWidth=Math.round(b.maxWidth));b.maxHeight&&(P.maxHeight=Math.round(b.maxHeight));return P},m=_.MA(function(){return a().height},void 0,"Cn10Ce"),U=_.MA(function(){return a().width},void 0,"laoove");
return _.R("yt-content-preview-image-view-model",{el:_.mR(_.yn(function(){var b;return(b=y())==null?void 0:b.rendererContext})),
role:function(){return e()?"link":void 0},
tabindex:function(){return e()?0:void 0},
class:_.ip(l,p,function(){var b=E();var P=q==null?void 0:q();b=b==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||b==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||b==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||b==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(P==null?void 0:P.size)!=null&&P.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(P==null?void 0:P.size)!=null&&P.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 b}),
style:function(){var b=a(),P=[];b.width&&P.push("width: "+b.width+"px");b.height&&P.push("height: "+b.height+"px");b.maxWidth&&P.push("max-width: "+b.maxWidth+"px");b.maxHeight&&P.push("max-height: "+b.maxHeight+"px");b.fullWidth&&P.push("width: 100%");return P.join(";")}},_.R(_.W,{cond:u,
then:function(b){return _.R(_.W$,{data:b,alt:C,"data-disabled$":function(){return!C()},
notifyOnLoaded:t,targetWidth:U,targetHeight:m,preserveWidth:function(){return!!U()},
preserveHeight:function(){return!!m()}})}}),_.R(_.di,{data:function(){var b;
return(b=y())==null?void 0:b.overlays}},{thumbnailHoverOverlayViewModel:fd,
thumbnailOverlayButtonViewModel:_.Y9P}))},"Da");
_.bY.idomCompat=!0;var CZi=_.aF(function(p){var y=p.data;var l=p.className;var q=p.useSmallLayout;p=p.useMediumText;var t={};p=(t["yt-attribution-view-model-wiz"]=!0,t["yt-attribution-view-model-wiz--medium-text"]=p,t);return _.R("yt-attribution-view-model",{el:_.mR(_.yn(function(){var E;return(E=y())==null?void 0:E.rendererContext})),
class:_.ip(l,p)},_.R(_.W,{cond:function(){return _.pF(y().rendererContext)},
then:function(){return _.R("button",{class:"yt-attribution-view-model-wiz--tappable"},_.R(hqi,{data:y,useSmallLayout:q}))},
else:function(){return _.R(hqi,{data:y,useSmallLayout:q})}}))},"Ea"),hqi=_.aF(function(p){var y=p.data;
var l=p.useSmallLayout;var q=function(){return{size:(l==null?0:l())?16:24}};
return _.R(_.a4,null,_.R(_.di,{data:function(){return y().contentPreviewImage}},{contentPreviewImageViewModel:function(t){return _.R(_.bY,{data:t.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:q})}}),_.R(_.di,{data:function(){return y().badge}},{badgeViewModel:function(t){return _.R(_.jI,{data:t.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.R(_.W,{cond:function(){return y().text},
then:function(){return _.R(_.CF,{text:function(){return y().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.R(_.W,{cond:function(){return y().suffix},
then:function(){return _.R(_.CF,{text:function(){return y().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Fa");
CZi.idomCompat=!0;var uYN,Rqx,W_v,awP,mgi;uYN=_.aF(function(p){var y=p.delimiter;var l=p.max;var q=p.index;var t=p.isStandalone;return _.R(_.W,{cond:function(){return l()-1>q()},
then:function(){var E={};return _.R("span",{class:_.ip("yt-content-metadata-view-model-wiz__delimiter",(E["yt-content-metadata-view-model-wiz__delimiter--standalone"]=t,E)),"aria-hidden":!0},y)}})},"Ga");
Rqx=_.aF(function(p){var y=p.metadataPart;var l=p.maxLines;return _.R(_.CF,{text:function(){return y().text},
linkInheritColor:!0,className:function(){return z4c(l())},
userInput:!0})},"Ha");
W_v=_.aF(function(p){var y=p.metadataPart;var l=p.maxLines;return _.R(_.W,{cond:function(){return y().tooltip},
then:function(q){return _.R("span",{title:q,role:"tooltip"},_.R(Rqx,{metadataPart:y,maxLines:l}))},
else:function(){return _.R(Rqx,{metadataPart:y,maxLines:l})}})},"Ia");
awP=_.aF(function(p){var y=p.metadataPart;var l=p.isOverlay;var q=p.useMediumText;var t=p.hideAvatar;var E=function(){return y().maxLines!==void 0?y().maxLines:1};
return _.R(_.a4,null,_.R(_.di,{data:function(){return y().avatarStack}},{avatarStackViewModel:function(e){return _.R(_.d7,{data:e.data,
isOverlay:l,useMediumText:q,hideAvatar:t})},
badgeViewModel:_.jI}),_.R(_.W,{cond:function(){return y().leadingIcon},
then:function(e){return _.R(_.DR,{className:"yt-content-metadata-view-model-wiz__leading-icon",icon:function(){return e().name},
size:function(){return e().width}})}}),_.R(_.W,{cond:function(){return y().text},
then:function(){return _.R(W_v,{metadataPart:y,maxLines:E})}}),_.R(_.W,{cond:function(){return y().icon},
then:function(e){return _.R(_.DR,{className:"yt-content-metadata-view-model-wiz__icon",icon:function(){return e().name},
size:function(){return e().width}})}}))},"Ja");
mgi=_.aF(function(p){var y=p.metadataRow;var l=p.isInline;var q=p.delimiter;var t=p.isOverlay;var E=p.useMediumText;var e=p.extensions;var C=function(){var a,m=e==null?void 0:(a=e())==null?void 0:a.lockupMetadata;a=y();var U,b;return!!((m==null?0:(U=m.byline)==null?0:U.hideAvatar)&&((b=_.G(a,DBO))==null?void 0:b.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},u=function(){return y().metadataParts||[]};
p={};return _.R("div",{class:_.ip("yt-content-metadata-view-model-wiz__metadata-row",(p["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=l,p["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var a,m=e==null?void 0:(a=e())==null?void 0:a.lockupMetadata;a=y();var U,b;return!!((m==null?0:(U=m.byline)==null?0:U.addPadding)&&((b=_.G(a,DBO))==null?void 0:b.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},p["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
function(){var a;
return!!(e==null?0:(a=e())==null?0:a.lockupMetadata)&&y().badges&&!y().metadataParts},p))},_.R(_.di,{data:function(){return y().badges}},{badgeViewModel:function(a){return _.R("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.R(_.jI,{data:a.data}))}}),_.R(_.rT,{each:u},function(a,m){return _.R(_.a4,null,_.R(awP,{metadataPart:a,
isOverlay:t,useMediumText:E,hideAvatar:C}),_.R(uYN,{delimiter:q,max:function(){return u().length},
index:m,isStandalone:!1}))}),_.R(_.W,{cond:function(){return y().isSpacerRow&&!l()},
then:function(){return _.R("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ka");
_.nH=_.aF(function(p){p=_.RF(p,{layout:0,isOverlay:!1});var y=p.data,l=p.layout,q=p.isOverlay,t=p.useMediumText,E=p.extensions,e=function(){return l()===0},C=function(){var a;
return((a=y().metadataRows)==null?void 0:a.filter(function(m){var U,b=E==null?void 0:(U=E())==null?void 0:U.lockupMetadata,P,Z;U=!!((b==null?0:(P=b.description)==null?0:P.hideDescription)&&((Z=_.G(m,DBO))==null?void 0:Z.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var K,F;return!((b==null?0:(K=b.spacer)==null?0:K.hideSpacer)&&((F=_.G(m,DBO))==null?void 0:F.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||U)}))||[]},u={};
return _.R("yt-content-metadata-view-model",{class:_.ip(p.className,"yt-content-metadata-view-model-wiz",(u["yt-content-metadata-view-model-wiz--inline"]=e,u["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.pF(y().rendererContext)},u["yt-content-metadata-view-model-wiz--medium-text"]=t,u)),
el:_.mR(_.yn(function(){return y().rendererContext}))},_.R(_.rT,{each:C},function(a,m){return _.R(_.a4,null,_.R(mgi,{metadataRow:a,
isInline:e,delimiter:function(){return y().delimiter},
isOverlay:q,useMediumText:t,extensions:E}),_.R(_.W,{cond:function(){return e()&&!a.isSpacerRow},
then:function(){return _.R(uYN,{delimiter:function(){return y().delimiter},
max:function(){return C().length},
index:m,isStandalone:!0})}}))}))},"La");
_.nH.idomCompat=!0;var Ugx=_.aF(function(p){var y={};return _.R("yt-lockup-metadata-view-model",{class:_.ip("yt-lockup-metadata-view-model-wiz",function(){a:{var l=p.lockupStyle();if(l==null?0:l.isOverlay)l="yt-lockup-metadata-view-model-wiz--overlay";else switch(l==null?void 0:l.arrangement){case 1:l="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:l="yt-lockup-metadata-view-model-wiz--vertical"}}return l},function(){a:{var l=p.lockupStyle();
if(l==null?0:l.isTiny)l="yt-lockup-metadata-view-model-wiz--tiny";else switch(l==null?void 0:l.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":l="yt-lockup-metadata-view-model-wiz--compact";break a;default:l="yt-lockup-metadata-view-model-wiz--standard"}}return l},(y["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var l;
return(l=p.lockupStyle())==null?void 0:l.isOverlay},y["yt-lockup-metadata-view-model-wiz--card"]=function(){var l;
return(l=p.lockupStyle())==null?void 0:l.isCard},y["yt-lockup-metadata-view-model-wiz--centered"]=function(){var l;
return(l=p.lockupStyle())==null?void 0:l.isCentered},y["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var l;
return(l=p.lockupStyle())==null?void 0:l.typographyBump},y["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var l;
return(l=p.lockupStyle())==null?void 0:l.useLegacyTypography},y["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var l;
return(l=p.lockupStyle())==null?void 0:l.useRichGridLegacyTypography},y))},_.R(_.di,{data:function(){return p.data().image}},{avatarStackViewModel:function(l){return _.R("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.R(_.d7,{data:l.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(l){return _.R("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.R(_.v5,{data:l.data}))},
decoratedAvatarViewModel:function(l){return _.R("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.R(_.X9,{data:l.data}))}}),_.R("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.R("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var l;return(l=p.data().title)==null?void 0:l.content}},_.R(_.W,{cond:function(){return p.data().title},
then:function(l){return _.R(_.sw,{command:p.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:p.lockupAccessibilityLabel},_.R(_.CF,{text:l,userInput:!0}))}})),_.R("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.R(_.di,{data:function(){return p.data().metadata}},{contentMetadataViewModel:function(l){return _.R(_.nH,{data:l.data,
layout:1,useMediumText:function(){var q,t;return((q=p.lockupStyle())==null?void 0:q.typographyBump)||((t=p.lockupStyle())==null?void 0:t.useRichGridLegacyTypography)},
extensions:function(){var q,t,E,e;return{lockupMetadata:{byline:{hideAvatar:((q=p.lockupStyle())==null?void 0:q.arrangement)===0,addPadding:((t=p.lockupStyle())==null?void 0:t.arrangement)===1},description:{hideDescription:!((E=p.lockupStyle())==null||!E.compactMetadata)},spacer:{hideSpacer:!((e=p.lockupStyle())==null||!e.compactMetadata)}}}}})}})),_.R(_.di,{data:function(){return p.data().attribution}},{attributionViewModel:function(l){return _.R("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},
_.R(CZi,{data:l.data,
useSmallLayout:!0}))}})),_.R("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.R(_.di,{data:function(){return p.data().menuButton}},{buttonViewModel:function(l){return _.R(_.wZ,{data:l.data,
buttonOverrides:function(){var q;return((q=p.lockupStyle())==null?0:q.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ma");
Ugx.idomCompat=!0;var $gv=_.aF(function(p){var y=_.sM("notification-multi-action-renderer");_.Hu(function(){requestAnimationFrame(function(){_.EL(y.value)})});
var l={},q={},t={};return _.R("notification-multi-action-renderer",{class:_.ip("ytNotificationMultiActionRendererHost",(l.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var E;return(E=p.useLegacyShelfStyle)==null?void 0:E.call(p)},l)),
el:y},_.R("span",{"aria-live":"polite",class:_.ip("ytNotificationMultiActionRendererTextContainer",(q.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var E;return(E=p.useLegacyShelfStyle)==null?void 0:E.call(p)},q))},_.R(_.CF,{text:function(){return p.data().responseText}})),_.R("div",{class:_.ip("ytNotificationMultiActionRendererButtonContainer",(t.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var E;
return(E=p.useLegacyShelfStyle)==null?void 0:E.call(p)},t))},_.R(_.di,{data:function(){var E;
return(E=p.data().buttons)==null?void 0:E.map(function(e){if(e=e.buttonRenderer){var C,u=Object,a=u.assign,m=(C=e.icon)==null?void 0:C.iconType;C=(C=e.command||e.serviceEndpoint||e.navigationEndpoint)?{innertubeCommand:C}:void 0;e={buttonViewModel:a.call(u,{},{iconName:m,onTap:C,trackingParams:e.trackingParams,titleFormatted:e.text?_.zp(e.text):void 0},Y9L(e))}}else e=void 0;return e}).filter(function(e){return!!e})}},{buttonViewModel:function(E,e){return _.R("div",null,_.R(_.wZ,{data:E.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var C;return((C=p.useModernStyles)==null?0:C.call(p))?{type:e()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Na");var jDx=_.aF(function(p){var y=_.sM("notification-text-renderer");_.Hu(function(){requestAnimationFrame(function(){_.EL(y.value)})});
return _.R("notification-text-renderer",{el:y,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.R(_.CF,{text:function(){return p.data().successResponseText}}))},"Oa");_.G3=_.aF(function(p){var y=_.So(i$L,function(){var q;return IcR((q=p.contentId)==null?void 0:q.call(p))}),l=function(){var q;
return _.G((q=y())==null?void 0:q.command,_.Nv)};
return _.R(_.W,{cond:function(){var q;if(!(q=l())){var t;q=_.G((t=y())==null?void 0:t.command,LC$)}return q},
then:function(){return _.R(_.W,{cond:l,then:function(){var q={};return _.R("div",{class:_.ip("ytDismissibleItemReplacedContent",function(){var t;return pA8((t=p.aspectRatio)==null?void 0:t.call(p))})},_.R("div",{class:_.ip((q.ytDismissibleItemAspectRatioContainer=function(){var t;
return((t=p.aspectRatio)==null?void 0:t.call(p))!==void 0},q))},_.R(_.di,{data:function(){var t;
return(t=l())==null?void 0:t.item}},{notificationMultiActionRenderer:function(t){return _.R($gv,{data:t.data,
useModernStyles:p.useModernStyle,useLegacyShelfStyle:p.useLegacyShelfStyle})},
notificationTextRenderer:jDx})))}})},
else:p.children})},"Pa");_.baP=_.aF(function(p){var y=p.data;var l=p.customCommandResolver;p=_.mR(_.Ct({visibilityCallback:function(E){var e,C=(e=y().interaction)==null?void 0:e.onFirstVisible;E&&C&&_.tb(C)},
showOption:_.mT}));var q=function(){var E;return((E=y().interaction)==null?0:E.onTap)?function(e){var C;AuL(e,(C=y().interaction)==null?void 0:C.onTap,l)}:void 0},t=function(){var E,e=y(),C=q(),u=(E=_.G(y().rendererContext,_.L5))==null?void 0:E.label;
a:switch(e.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":E=1;break a;default:E=0}return{size:qvg(e.size),type:E,onTap:C,accessibilityText:u}};
return _.R("ad-avatar-view-model",{class:function(){var E;return((E=y().interaction)==null?0:E.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:p},_.R(_.W,{cond:function(){return y().image},
then:function(E){return _.R(JuN,{data:t,image:E})}}))},"Qa");_.Px=_.aF(function(p){var y=_.RF(p,{hasDot:!1});p=Object.assign({},y);var l=y.data,q=y.hasDot;y=y.customCommandResolver;var t=(delete p.data,delete p.hasDot,delete p.customCommandResolver,p);p=function(){return l().style};
p!==void 0&&p!==null||_.ph(Error("Eh"));p=_.Ew(function(){return l().interaction},y);
return _.R("ad-badge-view-model",{class:_.ip(function(){var E;return((E=l().interaction)==null?0:E.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var E=t.adRenderingContextType();
l();return E==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:_.mR(p)},_.R(_.YG,{data:function(){var E;l();return{type:2,text:(E=l().label)==null?void 0:E.content,adsIncludeDot:q(),isOverlay:l().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ra");var nYv;_.AI=_.aF(function(p){var y=p.data;var l=p.customCommandResolver;var q=p.adRenderingContextType;return _.R("ad-details-line-view-model",{class:function(){var t;return((t=y().interaction)==null?0:t.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.mR(_.Ct({visibilityCallback:function(t){var E,e=(E=y().interaction)==null?void 0:E.onFirstVisible;t&&e&&_.tb(e)},
showOption:_.mT}),_.Ew(function(){return y().interaction},l))},_.R(_.W,{cond:function(){return y().style},
then:function(t){return _.R(_.rT,{each:function(){var E;return((E=y())==null?void 0:E.attributes)||[]},
keyBy:"INDEX"},function(E){return _.R(nYv,{attribute:E,style:t,adRenderingContextType:function(){return q()}})})}}))},"Sa");
nYv=_.aF(function(p){var y=p.attribute;var l=p.style;var q=p.adRenderingContextType;return _.R(_.W,{cond:function(){return y().text},
then:function(t){return _.R(_.CF,{text:t,className:function(){var E=q();l();return E==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ta");var GEx=_.aF(function(p){var y=p.data;var l=p.typographyBump;var q=function(){return y().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
p={};return _.R(_.a4,null,_.R("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.R(_.CF,{text:function(){return y().headline},
className:_.ip("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(p.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return q==null?void 0:q()},p.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(l==null?void 0:l())&&!(q==null?0:q())},p)),
linkInheritColor:!0}),_.R(_.W,{cond:function(){return y().description},
then:function(t){var E={};return _.R(_.CF,{text:t,className:_.ip("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(E.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return q==null?void 0:q()},E.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(l==null?void 0:l())&&!(q==null?0:q())},E)),
linkInheritColor:!0})}}),_.R(_.W,{cond:function(){return y().secondaryDescription},
then:function(t){var E={};return _.R(_.CF,{text:t,className:_.ip("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(E.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return l==null?void 0:l()},E)),
linkInheritColor:!0})}}),_.R("div",{class:function(){return q()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.R(_.W,{cond:function(){return y().adAvatar},
then:function(){return _.R("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.R(_.di,{data:function(){return y().adAvatar}},{adAvatarViewModel:_.baP}))}}),_.R(_.di,{data:function(){return y().adBadge}},{adBadgeViewModel:function(t){return _.R(_.Px,{data:t.data,
hasDot:function(){return!!y().adDetailsLine},
adRenderingContextType:function(){return y().adRenderingContextType}})}}),_.R(_.di,{data:function(){return y().adDetailsLine}},{adDetailsLineViewModel:function(t){return _.R(_.AI,{data:t.data,
adRenderingContextType:function(){return y().adRenderingContextType}})}}))),_.R("div",{class:function(){return q()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.R(_.di,{data:function(){return y().menu}},{buttonViewModel:function(t){return _.R(_.wZ,{data:t.data,
buttonOverrides:function(){a:switch(y().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var E="S";break a;default:E="M"}return{size:E}}})}})))},"Ua"),PZi=_.aF(function(p){var y=p.data;
var l=p.noBottomMargin;var q=p.useVideoLockupTopPadding;var t=p.typographyBump;p={};p=_.ip("ytwFeedAdMetadataViewModelHostMetadata",(p.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return l==null?void 0:l()},p.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return q==null?void 0:q()},p));
var E=function(){return y().adBadge};
E!==void 0&&E!==null||_.ph(Error("Fh"));E={};var e={};return _.R(_.a4,null,_.R(_.W,{cond:function(){return y().adAvatar},
then:function(){return _.R("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.R(_.di,{data:function(){return y().adAvatar}},{adAvatarViewModel:function(C){return _.R(_.baP,{data:C.data})}}))}}),_.R("div",{class:p},_.R("div",{class:_.ip("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(E.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return t==null?void 0:t()},E.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(t==
null?void 0:t())&&_.n("web_enable_typography_bump_v2")},E))},_.R(_.CF,{text:function(){return y().headline},
linkInheritColor:!0})),_.R(_.W,{cond:function(){return y().description},
then:function(C){return _.R(_.CF,{text:C,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.R("div",{class:function(){return y().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.n("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.R(_.di,{data:function(){return y().adBadge}},
{adBadgeViewModel:function(C){return _.R(_.Px,{data:C.data,
hasDot:function(){return!!y().adDetailsLine},
adRenderingContextType:function(){return y().adRenderingContextType}})}}),_.R(_.di,{data:function(){return y().adDetailsLine}},{adDetailsLineViewModel:function(C){return _.R(_.AI,{data:C.data,
adRenderingContextType:function(){return y().adRenderingContextType}})}})),_.R(_.W,{cond:function(){return y().secondaryDescription},
then:function(C){return _.R(_.CF,{text:C,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.R("div",{class:_.ip("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(e.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return q==null?void 0:q()},e))},_.R(_.di,{data:function(){return y().menu}},{buttonViewModel:_.wZ})))},"Va"),AfP=_.aF(function(p){var y=p.data;
var l=p.noBottomMargin;var q=p.listenToTapEvent;var t=p.setTouchEndHandler;var E=p.useVideoLockupTopPadding;var e=p.typographyBump;p=_.Ct({visibilityCallback:function(U){var b,P=(b=y().interaction)==null?void 0:b.onFirstVisible;U&&P&&_.tb(P)},
showOption:_.mT});var C=_.Ew(function(){return y().interaction},void 0,function(){return q==null?void 0:q()}),u=_.c(_.nr(!1,void 0,"p7Js8e")),a=u.next().value,m=u.next().value;
u=_.Ff(function(U){(t==null?0:t())&&!a()&&(U.currentTarget.click(),m(!0),setTimeout(function(){m(!1)},100));
return!1});
return _.R("feed-ad-metadata-view-model",{class:function(){var U;return((U=y().interaction)==null?0:U.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.mR(p,C),"on:touchend":u},_.R(_.L6,null,_.R(_.Sc,{when:function(){return y().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.R(GEx,{data:y,
typographyBump:e})}),_.R(_.Sc,{when:function(){return y().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.R(PZi,{data:y,
noBottomMargin:l,useVideoLockupTopPadding:E,typographyBump:e})})))},"Wa");var Zar;_.ZX=_.aF(function(p){return _.R("yt-lockup-view-model",{class:_.ip(p.className)},_.R(_.G3,{contentId:function(){return p.data().contentId},
useModernStyle:!0,aspectRatio:function(){var y,l;return((y=p.containerType)==null?void 0:y.call(p))!==3?Hc8(p.data().contentType,(l=p.force16By9ThumbnailAspectRatio)==null?void 0:l.call(p)):void 0}},function(){return _.R(Zar,Object.assign({},p))}))},"Xa");
Zar=_.aF(function(p){p=_.RF(p,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var y=p.data,l=p.containerLayoutConfig,q=p.containerType,t=p.sizing,E=p.protectBackground,e=p.typographyBump,C=p.force16By9ThumbnailAspectRatio,u=p.thumbnailFixedWidth,a=p.thumbnailTargetWidth,m=p.lockupExperiments,U=p.elementsPerRow;
p=_.mR(_.yn(function(){var jj;return(jj=y())==null?void 0:jj.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var b=_.yS(jj_),P=_.WC().resolve(_.RK(fcU)),Z=P?{}:void 0,K=function(){var jj,x6,L8;return(L8=(x6=_.G((jj=y())==null?void 0:jj.rendererContext,_.L5))==null?void 0:x6.label)!=null?L8:void 0},F=function(){var jj=l==null?void 0:l(),x6;
if(jj==null?0:jj.containerType){var L8=(x6=y())==null?void 0:x6.contentType;x6=m();var Y6=e(),AZ=a(),cU=E();jj=Object.assign({},TE6(knm(jj),FWt(jj.responsiveSize),Y6,L8,jj.force16By9ThumbnailAspectRatio,AZ,cU,x6),{thumbnailFixedWidth:jj.contentPreviewWidth})}else jj=TE6(q(),t(),e(),(L8=y())==null?void 0:L8.contentType,C(),a(),E(),m());return jj};
P&&Z&&P({enabled:function(){return b()},
itemPlaybackModel:function(){return y().itemPlayback},
thumbnailElRef:function(){return Z.thumbnailElRef},
containerElRef:p,options:function(){var jj,x6=(jj=_.G(y().metadata,HIP))==null?void 0:jj.endorsement;jj=Z.thumbnailOverlays||[];x6&&jj.push(x6);var L8,Y6;return{thumbnail:Z.thumbnail,thumbnailOverlays:jj,accessibilityText:K(),thumbnailSize:Z.thumbnailSize,enableRounding:F().isCollection,containPlayerWithinThumbnail:F().isCollection,trackingParams:(L8=_.G(y().rendererContext,_.kg))==null?void 0:(Y6=L8.loggingDirectives)==null?void 0:Y6.trackingParams}}});
var L=0;P=_.c(_.nr(!1,void 0,"GH4i8d"));var T=P.next().value,O=P.next().value;P=_.c(_.nr(!1,void 0,"hS52Ob"));var f=P.next().value,v=P.next().value;P=_.Ff(function(){var jj=b()&&y().itemPlayback;f()?(_.TR.cancelJob(L),L=_.TR.addJob(function(){O(!jj)},8,32)):O(!jj);
return!0});
var z=_.Ff(function(){L&&(_.TR.cancelJob(L),L=0);O(!1)});
_.TP(function(){L&&(_.TR.cancelJob(L),L=0)});
var sc=lwt(function(){v(!0)}),hR=sc.touchFeedbackEvents,Wt=sc.touchFeedbackOnPointerUp,AR=sc.touchFeedbackOnPointerDown;
sc=sc.touchFeedbackOnPointerLeave;var Qu={};return _.R("div",{el:p,class:_.ip("yt-lockup-view-model-wiz",function(){a:{var jj=F();if(jj.isOverlay)jj="yt-lockup-view-model-wiz--overlay";else switch(jj.arrangement){case 1:jj="yt-lockup-view-model-wiz--horizontal";break a;default:jj="yt-lockup-view-model-wiz--vertical"}}return jj},function(){a:{var jj=F();
if(jj.isOverlay)jj="yt-lockup-view-model-wiz--overlay";else{switch(jj.collectionStackNumber){case 1:jj="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:jj="yt-lockup-view-model-wiz--collection-stack-2";break a}jj=void 0}}return jj},(Qu["yt-lockup-view-model-wiz--card"]=function(){return F().isCard},Qu["yt-lockup-view-model-wiz--compact"]=function(){return F().isTiny||F().sizing!=="STANDARD"},Qu["yt-lockup-view-model-wiz--protect-background"]=E,Qu["yt-lockup-view-model-wiz--add-margins"]=
function(){return F().addMarginForFullbleed},Qu["yt-lockup-view-model-wiz--centered"]=function(){return F().isCentered},Qu["yt-lockup-view-model-wiz--fullbleed"]=function(){return F().fullbleed},Qu["yt-lockup-view-model-wiz--single-column-grid"]=function(){return U()===1&&q()===2},Qu["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var jj;
return(jj=m())==null?void 0:jj.useRichGridLegacyMargin},Qu)),
"on:mousedown":AR,"on:mouseleave":z,"on:mouseup":Wt,"on:mouseover":P,"on:touchstart":AR,"on:touchend":Wt,"on:pointerleave":sc},_.R(_.sw,{command:function(){var jj;return _.IW((jj=y())==null?void 0:jj.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return u()&&F().arrangement===1?"width: "+u():""}},_.R(_.di,{data:function(){var jj;
return(jj=y())==null?void 0:jj.contentImage}},{thumbnailViewModel:function(jj){return _.R(_.az,{data:jj.data,
aspectRatio:function(){return F().aspectRatio},
disableRounding:function(){return F().disableRounding},
width:a,hovered:T,isClip:function(){var x6;return((x6=y())==null?void 0:x6.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:U2a(Z),lockupExperiments:function(){return m()}})},
collectionThumbnailViewModel:function(jj){return _.R(qvv,{data:jj.data,aspectRatio:function(){return F().aspectRatio},
disableRounding:function(){return F().disableRounding},
width:a,doubleStack:function(){return F().collectionStackNumber===2},
hovered:T,playbackRef:U2a(Z)})},
decoratedAvatarViewModel:_.X9})),_.R("div",{class:"yt-lockup-view-model-wiz__metadata"},_.R(_.di,{data:function(){var jj;return(jj=y())==null?void 0:jj.metadata}},{lockupMetadataViewModel:function(jj){return _.R(Ugx,{data:jj.data,
lockupStyle:F,lockupCommand:function(){var x6;return _.IW((x6=y())==null?void 0:x6.rendererContext)},
lockupAccessibilityLabel:function(){return K()}})},
feedAdMetadataViewModel:function(jj){return _.R(AfP,{data:jj.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:e})}}),_.R(_.di,{data:function(){var jj;
return(jj=y())==null?void 0:jj.attachmentSlot}},{lockupAttachmentsViewModel:function(jj){return _.R(cfv,{data:jj.data,
lockupStyle:F})}})),_.R(_.xS,{model:function(){a:{switch(F().collectionStackNumber){case 1:var jj=8;
break a;case 2:jj=12;break a}jj=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:jj}},
pointerDownEvent:hR.pointerDownEvent,pointerUpEvent:hR.pointerUpEvent,pointerLeaveEvent:hR.pointerLeaveEvent}))},"Ya");
_.ZX.idomCompat=!0;_.bp(_.ZX,"yt-lockup-view-model",{props:{data:_.Co,containerLayoutConfig:_.Co,containerType:_.Co,sizing:_.Co,protectBackground:_.Co,typographyBump:_.Co,thumbnailFixedWidth:_.Co,thumbnailTargetWidth:_.Co,force16By9ThumbnailAspectRatio:_.Co,className:_.Co,lockupExperiments:_.Co,elementsPerRow:_.Co}});var Jfl;_.uX(uY_);var mgo,MHU=_.aF(function(p){var y=_.RF(p,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),l=y.text,q=y.alwaysShowTruncationText;p=y.truncationText;var t=y.onTextClick,E=y.maxLines,e=y.disableTextMask,C=y.textStyle,u=y.accessibilityLabel,a=y.textSize,m=y.alwaysTruncateAtMaxLines,U=y.expandOnClick;y=_.c(_.nr(!1,void 0,"Qz8MWe"));var b=y.next().value,P=y.next().value;y=_.Ff(function(){U()&&P(!b());t==null||t()});
var Z=function(){a:switch(a()){case "medium":var z=2;break a;case "large":z=2.2;break a;default:z=1.8}return z},K=baL(l,function(){return b()?Infinity:E()},Z,e,m),F=K.isTruncated;
l=K.displayText;m=K.contentRef;var L=K.hiddenRef,T=K.placeholderTruncationTextRef,O=K.hiddenTruncationTextRef;K=K.truncationTextRef;var f={},v={};return _.R("truncated-text",{class:_.ip((f["truncated-text-wiz"]=!0,f["truncated-text-wiz--overlay"]=function(){return C()==="overlay"},f["truncated-text-wiz--medium-text"]=function(){return a()==="medium"},f["truncated-text-wiz--large-text"]=function(){return a()==="large"},f["truncated-text-wiz--primary-text"]=function(){return C()==="primary-text"},f)),
"on:click":y,style:function(){return"line-height: "+Z()+"rem;"}},_.R("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:m,style:function(){return b()?"":"max-height: "+E()*Z()+"rem;"}},_.R(_.CF,{text:l}),_.R("button",{"aria-disabled":!0,
disabled:!0,class:"truncated-text-wiz__inline-button",el:T,style:function(){return"line-height: "+Z()+"rem;"}},_.R(_.CF,{text:p}))),_.R("truncated-text-content",{class:_.ip("truncated-text-wiz__truncated-text-content","truncated-text-wiz__truncated-text-content--hidden-text-content"),
el:L,style:function(){return b()?"":"max-height: "+E()*Z()+"rem;"},
"aria-hidden":"true"},_.R(_.CF,{text:l}),_.R("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:O,style:function(){return"line-height: "+Z()+"rem;"}},_.R(_.CF,{text:p}))),_.R("button",{"aria-label":u,
class:_.ip((v["truncated-text-wiz__absolute-button"]=function(){return!e()},v["truncated-text-wiz__bottom-button"]=function(){return e()},v["truncated-text-wiz--hidden"]=function(){return!(!b()&&(q!=null&&q()||F()))},v)),
el:K,style:function(){return"line-height: "+Z()+"rem;"}},_.R(_.CF,{text:p})))},"Za"),QDL=_.n("web_enable_sink_truncated_text")?MHU:uY_,VHN=_.n("web_enable_sink_truncated_text")?MHU:_.Sw(QDL,{callbacks:{onTextClick:!0}});
MHU.idomCompat={callbacks:{onTextClick:!0}};_.uX(GE6);var K_6=_.T4({buttonViewModel:_.wZ});_.uX(VH_);_.uX(Zam);_.uX(MHt);var K_x=_.aF(function(p){var y=p.data;p=p.className;var l=_.MA(function(){return iam(y())},void 0,"Db3J3e");
return _.R("yt-video-attribute-view-model",{class:p},_.R("div",{class:function(){var q=y();a:switch(q.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var t="yt-video-attribute-view-model--vertical";break a;default:t="yt-video-attribute-view-model--horizontal"}a:switch(q.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(q.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var e=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":e="yt-video-attribute-view-model--image-avatar";break a;default:e=""}a:switch(q.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var C="yt-video-attribute-view-model--metadata-header";break a;default:C=""}a:switch(q.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var u="yt-video-attribute-view-model--container-card";break a;default:u=""}return["yt-video-attribute-view-model",t,E,
e,C,u,iam(q)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.NW({"background-color":function(){var q=y();if(q.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var t="";else{t=q.lightColorPalette;q=q.darkColorPalette;var E,e=((E=_.WC().resolve(_.RK(_.hb)))==null?0:E())&&q?q:t;t=(t=e==null?void 0:e.section2Color)?_.Y9(t):""}return t}})},_.R(_.W,{cond:function(){return l()||!_.n("web_video_attribute_view_model_a11y_fix")},
then:function(){return _.R(_.sw,{className:"yt-video-attribute-view-model__content-container",command:l,role:"group",ariaLabel:function(){return y().title}},_.R(_.W,{cond:function(){return y().heroText||y().image},
then:function(){return _.R(gYU,{data:y})}}),_.R(QDP,{data:y,
sizeSmall:function(){return y().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))},
else:function(){return _.R("div",{class:"yt-video-attribute-view-model__content-container"},_.R(_.W,{cond:function(){return y().heroText||y().image},
then:function(){return _.R(gYU,{data:y})}}),_.R(QDP,{data:y,
sizeSmall:function(){return y().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))}})))},"ab");
K_x.idomCompat=!0;var wAO=_.n("web_enable_sink_yt_video_attribute_view_model")?K_x:_.Sw(VH_),gYU=_.aF(function(p){var y=p.data;var l,q=(l=_.WC().resolve(_.RK(_.hb)))==null?void 0:l(),t=function(){return q&&y().darkThemeImage?y().darkThemeImage:y().image},E=_.MA(function(){return rf_(y())},void 0,"Mkm2tb");
return _.R("div",{class:"yt-video-attribute-view-model__hero-section"},_.R(_.L6,null,_.R(_.Sc,{when:t},function(){return _.R(_.W$,{data:function(){return t()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.R(_.Sc,{when:function(){return y().heroText}},function(){return _.R("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.R("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return y().heroText}))})),_.R(_.W,{cond:function(){return y().overflowMenuOnTap},
then:function(){return _.R("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.R(_.uI,{data:E,iconName:"MORE_VERT"}))}}))},"bb");
gYU.idomCompat=!0;var QDP=_.aF(function(p){var y=p.data;p=p.sizeSmall;var l=function(){return y().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},q=_.MA(function(){return s5(_.qW({innertubeCommand:iam(y())}))?"link":"group"},void 0,"tvI7S"),t={};
return _.R("div",{class:_.ip("yt-video-attribute-view-model__metadata",(t["yt-video-attribute-view-model--small-font"]=p,t)),role:q},_.R("h1",{class:"yt-video-attribute-view-model__title"},function(){return y().title}),_.R(_.W,{cond:function(){return y().subtitle},
then:function(){return _.R("h4",{class:"yt-video-attribute-view-model__subtitle"},_.R(_.W,{cond:l,then:function(){return _.R(VHN,{text:function(){return wAa(y().subtitle)},
truncationText:function(){return wAa(y().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.R("span",null,function(){return y().subtitle})}}))}}),_.R(_.W,{cond:function(){return y().secondarySubtitle},
then:function(E){return _.R("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.R(_.CF,{text:function(){var e=E();if(e!=null&&e.attachmentRuns){for(var C=[],u=_.c(e.attachmentRuns),a=u.next();!a.done;a=u.next())a=a.value,a.element&&C.push(Object.assign({},a,{element:Object.assign({},a.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));e=Object.assign({},e,{attachmentRuns:C})}return e}}))}}),_.R(_.di,
{data:function(){return y().buttonViewModel}},{buttonViewModel:function(E){return _.R(_.wZ,{data:E.data,
className:"yt-video-attribute-view-model__button"})}}))},"cb");
QDP.idomCompat=!0;_.bp(wAO,"yt-video-attribute-view-model",{props:{data:_.Co,className:_.Co}});var Mw=function(){var p=_.w.apply(this,arguments)||this;p.useHighlightStyling=_.n("web_enable_deeper_metadata_highlight_styling");p.isSearch=!1;p.JSC$15037_lastScrollContainerWidth=NaN;p.pageLoadingFromNavigation=!1;p.currentIndex=0;p.supportComponentResize=!1;return p};
_.A(Mw,_.w);_.J=Mw.prototype;
_.J.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-horizontal-card-list-renderer lockup",containerType:4,sizing:"COMPACT"}},searchRefinementCardRenderer:"ytd-search-refinement-card-renderer",compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",videoCardRenderer:"ytd-grid-video-renderer",gameCardRenderer:"ytd-game-card-renderer",miniGameCardViewModel:"ytd-mini-game-card-view-model",mediaUpsellRenderer:"ytd-media-upsell-renderer",
infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",params:{showVerticalDividers:!0}},previewCardRenderer:{component:"ytd-preview-card-renderer",properties:{isSearch:"[[isSearch]]"}},macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"}},placeDataViewModel:"place-data-view-model",videoAttributeViewModel:{component:"yt-video-attribute-view-model",properties:{className:"[[is]]"}}}},"data.header":{id:"header",
mapping:{titleAndButtonListHeaderRenderer:"ytd-title-and-button-list-header-renderer",richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",properties:{hideNavigationButton:"[[hideNavigationButton]]",isModernSd:"[[modernChapters]]"}}}},"data.sortFilter":{id:"sort-filter",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.button":{id:"header-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.previousButton":{id:"left-arrow-button",
mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},attributes:{arrow:!0}}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},attributes:{arrow:!0}}}},"data.footerButton":{id:"footer-section",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},dismissedRenderer:{id:"dismissed",
mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.J.attached=function(){document.addEventListener("yt-page-type-changed",_.MH(this,this.onPageChange))};
_.J.detached=function(){document.removeEventListener("yt-page-type-changed",_.MH(this,this.onPageChange))};
_.J.getItemsPath=function(){return"data.cards"};
_.J.onIronResize=function(){this.updateListStyles()};
_.J.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var p;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(p=this.data)==null?void 0:p.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.n("problem_walkthrough_sd")&&!!this.centerItems};
_.J.computeCardListStyle=function(p){return p||null};
_.J.computeEmpty=function(p){return!this.get("cards.length",p)};
_.J.computeThumbnailStyle=function(p){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",p)||null};
_.J.computeHasSubtitle=function(p){return!!this.get("header.richListHeaderRenderer.subtitle",p)};
_.J.computeInitialCountNumber=function(p){return this.hasSquareMiniApp&&p==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&p==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:p==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:p==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:p==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&p==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.J.computeUseFloorScrolling=function(p){return p==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.J.computeHasGameCard=function(p){return(p=this.get("cards",p))?p.some(function(y){return y.gameCardRenderer}):!1};
_.J.computeCenterHeaderTitle=function(p){return!(p==null||!p.centerHeaderTitle)};
_.J.computeHasPortraitMiniApp=function(p){return(p=p==null?void 0:p.cards)?p.some(function(y){return y.miniGameCardViewModel&&y.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.J.computeHasSquareMiniApp=function(p){return(p=p==null?void 0:p.cards)?p.some(function(y){return y.miniGameCardViewModel&&y.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.J.computeHasSkinnyWidthPortraitMiniApp=function(p){return(p=p==null?void 0:p.cards)?p.some(function(y){return y.miniGameCardViewModel&&y.miniGameCardViewModel.width===135}):!1};
_.J.computeCenterItems=function(p){return!!p};
_.J.computeHasInfoPanel=function(p){var y;return p==null?void 0:(y=p.cards)==null?void 0:y.some(function(l){return l.infoPanelContentRenderer})};
_.J.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.J.getItemByIndex=function(p){var y=this.items.children;return y&&y.length>p?y[p]:void 0};
_.J.onPageChange=function(){var p=this;this.pageLoadingFromNavigation=!0;_.TR.addJob(function(){p.pageLoadingFromNavigation=!1;_.jN(p.hostElement,"yt-terminate-video-preview-action")},8)};
_.J.updateListStyles=function(){if(_.n("problem_walkthrough_sd")&&this.JSC$15037_scrollContainer!==void 0){var p=this.JSC$15037_scrollContainer.clientWidth;p!==this.JSC$15037_lastScrollContainerWidth&&(this.JSC$15037_lastScrollContainerWidth=p,_.Ax(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(p*.8,415)+"px"}),_.Ub(this.hostElement,"iron-resize"))}};
_.Jh.Object.defineProperties(Mw.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.n("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return!!((p=this.data)==null?0:(y=p.cards)==null?0:(l=y[0])==null?0:l.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return!!((p=this.data)==null?0:(y=p.cards)==null?0:(l=y[0])==null?0:l.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return _.n("enable_desktop_amsterdam_info_panels")&&!!((p=this.data)==null?0:(y=p.cards)==null?0:(l=y[0])==null?0:l.infoPanelContentRenderer)}}});
Mw.prototype.dataChanged=Mw.prototype.dataChanged;Mw.prototype.onIronResize=Mw.prototype.onIronResize;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Mw.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.jE.YtdHorizontalListBehavior),_.x("design:type",Object)],Mw.prototype,"ytdHorizontalListBehavior",void 0);
_.H([_.V(_.IP),_.x("design:type",Object)],Mw.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Mw.prototype,"data",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Mw.prototype,"useCustomColors",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Mw.prototype,"useHighlightStyling",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.x("design:type",Object)],Mw.prototype,"cardListStyle",void 0);_.H([_.Q({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.x("design:type",Boolean)],Mw.prototype,"empty",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.x("design:type",Boolean)],Mw.prototype,"hasSubtitle",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.x("design:type",Boolean)],Mw.prototype,"thumbnailStyle",void 0);_.H([_.Q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.x("design:type",Boolean)],Mw.prototype,"hasGameCard",void 0);_.H([_.Q({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.x("design:type",Boolean)],Mw.prototype,"centerHeaderTitle",void 0);
_.H([_.Q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.x("design:type",Boolean)],Mw.prototype,"hasPortraitMiniApp",void 0);_.H([_.Q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.x("design:type",Boolean)],Mw.prototype,"hasSquareMiniApp",void 0);_.H([_.Q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.x("design:type",Boolean)],Mw.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.H([_.Q({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.x("design:type",Boolean)],Mw.prototype,"hasInfoPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Mw.prototype,"isSearch",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Mw.prototype,"inlineStructuredDescription",void 0);_.H([_.rd("#scroll-container"),_.x("design:type",HTMLDivElement)],Mw.prototype,"JSC$15037_scrollContainer",void 0);
_.H([_.Q({computed:"computeInitialCountNumber(data.style.type)"}),_.x("design:type",Number)],Mw.prototype,"initialCount",void 0);_.H([_.Q({computed:"computeUseFloorScrolling(data.style.type)"}),_.x("design:type",Boolean)],Mw.prototype,"useFloorScrolling",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.x("design:type",Boolean)],Mw.prototype,"centerItems",void 0);_.H([_.Q(),_.x("design:type",Object)],Mw.prototype,"pageLoadingFromNavigation",void 0);
_.H([_.Q(),_.x("design:type",Object)],Mw.prototype,"currentIndex",void 0);_.H([_.Q(),_.x("design:type",Number)],Mw.prototype,"scrollCount",void 0);_.H([_.Q(),_.x("design:type",Object)],Mw.prototype,"supportComponentResize",void 0);_.H([_.rd("#items"),_.x("design:type",HTMLDivElement)],Mw.prototype,"items",void 0);_.H([_.VU("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mw.prototype,"onIronResize",null);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mw.prototype,"dataChanged",null);_.H([_.Q({reflectToAttribute:!0}),_.g("inlineStructuredDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Mw.prototype,"hideNavigationButton",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Mw.prototype,"modernChapters",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Mw.prototype,"hasVideoAttributeViewModels",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Mw.prototype,"modernInfoPanels",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],Mw);
_.D(Mw,"ytd-horizontal-card-list-renderer",function(){if(Zcr!==void 0)return Zcr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-horizontal-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-horizontal-card-list-renderer">\n<div id="header-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <h2 id="header" hidden$="[[!data.header]]" class="style-scope ytd-horizontal-card-list-renderer"></h2>\n  <div id="sort-filter" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  <div id="header-button" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="shelf-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atStart]]">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="prevClick_" hidden="[[data.previousButton]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="left-arrow-button" hidden="[[!data.previousButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown" class="style-scope ytd-horizontal-card-list-renderer">\n    <div id="items" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atEnd]]">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="nextClick_" hidden="[[data.nextButton]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="right-arrow-button" hidden="[[!data.nextButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n</div>\n<div id="footer-section" hidden="[[!data.footerButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-horizontal-card-list-renderer"></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Zcr=p},{mode:_.ZS("kevlar_poly_si_batch_j072")?1:2});var iar=_.aF(function(p){var y=p.data;var l={};return _.R("video-summary-content-view-model",{class:_.ip("video-summary-content-view-model-wiz",p.className,(l["video-summary-content-view-model-wiz--is-search"]=p.isSearch,l))},_.R(_.rT,{each:function(){var q=[],t=y().paragraphs;if(t==null||!t.length)return[];for(var E=0;E<t.length;E++){var e=_.G(t[E],fZM),C=void 0;E>0&&(C=_.G(t[E-1],fZM));C&&!!C.marker===!!e.marker?q[q.length-1].paragraphs.push(e):q.push({isList:!!e.marker,paragraphs:[e]})}return q},
keyBy:"INDEX"},function(q){return _.R(_.W,{cond:function(){return q().isList},
then:function(){return _.R("ul",{class:"video-summary-content-view-model-wiz__list"},_.R(_.rT,{each:function(){return q().paragraphs},
keyBy:"INDEX"},function(t){return _.R("li",{class:"video-summary-content-view-model-wiz__list-item"},_.R(_.CF,{text:function(){return t().text}}))}))},
else:function(){return _.R(_.rT,{each:function(){return q().paragraphs},
keyBy:"INDEX"},function(t){return _.R("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.R(_.CF,{text:function(){return t().text}}))})}})}),_.R(_.W,{cond:function(){return!!_.G(y().likeButtonViewModel,_.o5)&&!!_.G(y().dislikeButtonViewModel,_.Ox)},
then:function(){return _.R("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.R("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.R(_.ow,{data:function(){return _.G(y().likeButtonViewModel,_.o5)},
disableIconAnimation:!0})),_.R(_.OW,{data:function(){return _.G(y().dislikeButtonViewModel,_.Ox)}}))}}))},"db");
iar.idomCompat=!0;_.bp(iar,"video-summary-content-view-model",{props:{data:_.Co,isSearch:_.Co,className:_.Co}});var Vo=function(){var p=_.w.apply(this,arguments)||this;var y,l;p.isExpanded=(l=(y=p.data)==null?void 0:y.isExpanded)!=null?l:!1;p.disableExpand=!1;p.showProminentLabel=!1;p.showRightSideLabel=!0;p.toggleExpandableContent=function(q){p.disableExpand||(q.stopPropagation(),_.aW(_.Jx(q),p.hostElement,["info","expanded-subtitle"])||(p.isExpanded=!p.isExpanded,p.ytRendererBehavior.logExplicitClick(p.data),p.JSC$15048_cardList&&!_.n("expandable_metadata_a11y_fix_ks")&&_.th(p,function(){_.tp(p.hostElement)})))};
p.useSquareThumbnail=!1;p.contentHiddenWithDisplayNone=_.n("web_expandable_metadata_content_hidden_with_display_none");p.startX=0;return p};
_.A(Vo,_.w);_.J=Vo.prototype;_.J.computeUseSquareThumbnail=function(){var p;return(p=this.data)==null?void 0:p.useSquareThumbnail};
_.J.configureRendererStamper=function(){return{"data.expandedContent":{id:"content",mapping:{horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]",useCustomColors:"[[useCustomColors]]"}},horizontalListRenderer:{component:"yt-horizontal-list-renderer",properties:{isSearch:"[[isSearch]]"},params:{isExpandableContent:!0}},videoSummaryContentViewModel:{component:"video-summary-content-view-model",params:{isExpandableContent:!0},properties:{isSearch:"[[isSearch]]"}},
lockupViewModel:{component:"yt-lockup-view-model",params:{isExpandableContent:!0,className:"ytd-expandable-metadata-renderer lockup",thumbnailFixedWidth:"168px",containerType:3,sizing:"COMPACT"}}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.infoButton":{id:"info",
mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.expandedMenuFooter":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}}}};
_.J.dataChanged=function(){if(this.data){var p,y;this.isExpanded=(y=(p=this.data)==null?void 0:p.isExpanded)!=null?y:!1;var l,q,t,E;if(p=this.isDarkTheme()?(l=this.data)==null?void 0:(q=l.colorData)==null?void 0:q.darkColorPalette:(t=this.data)==null?void 0:(E=t.colorData)==null?void 0:E.lightColorPalette){var e,C;if((e=this.data)==null?0:(C=e.colorData)==null?0:C.vibrantColorPalette)p.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.dD(this.hostElement,p)}}};
_.J.isExpandedChanged=function(){this.isExpanded&&this.JSC$15048_cardList&&_.Ub(this.JSC$15048_cardList,"iron-resize")};
_.J.computeIsExpanded=function(p){return!!p.isExpanded};
_.J.computeShowProminentLabel=function(p,y){var l;return!!(p==null?0:(l=p.header)==null?0:l.showLeadingCollapsedLabel)&&!y};
_.J.computeShowRightSideLabel=function(p,y){var l;return!(p==null?0:(l=p.header)==null?0:l.showLeadingCollapsedLabel)&&!y};
_.J.captureContentClick=function(p){if(!this.disableExpand)if(_.n("expandable_metadata_fix_killswitch")){var y=p.target;_.ULx(y,"ytd-macro-markers-list-item-renderer")||p.stopPropagation();(y==null?void 0:y.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.aW(_.Jx(p),this.hostElement,["items"])||_.WN(_.Jx(p),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.J.timestampClick=function(p){p.stopPropagation();var y,l;(p=(y=this.data)==null?void 0:(l=y.header)==null?void 0:l.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(p)};
_.J.onDown=function(p){p.stopPropagation();this.startX=p.detail?p.detail.x:0};
_.J.onUp=function(p){this.skipKeyInteraction(p)&&p.stopPropagation()};
_.J.skipKeyInteraction=function(p){var y=p.target;if((y==null?void 0:y.id)==="scroll-container"||(y==null?void 0:y.id)==="items"||p.detail&&p.detail.x!==this.startX)return!0;p=_.Jx(p);p=_.c(p);for(y=p.next();!y.done;y=p.next()){y=y.value;if(y===this.hostElement)break;if(y.hasAttribute&&y.hasAttribute("skip-key-interaction"))return!0}return!1};
_.J.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Jh.Object.defineProperties(Vo.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var p;return!!_.G((p=this.data)==null?void 0:p.expandedContent,BcV)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var p;return!!_.G((p=this.data)==null?void 0:p.expandedContent,_.TBN)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var p,y;return!((p=this.data)==null||!p.useCustomColors)&&!((y=this.data)==null||!y.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var p,y;return!!((p=this.data)==null?0:(y=p.header)==null?0:y.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var p,y;return!!((p=this.data)==null?0:(y=p.header)==null?0:y.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var p,y;return!!((p=this.data)==null?0:(y=p.header)==null?0:y.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.n("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
Vo.prototype.onUp=Vo.prototype.onUp;Vo.prototype.onDown=Vo.prototype.onDown;Vo.prototype.isExpandedChanged=Vo.prototype.isExpandedChanged;Vo.prototype.dataChanged=Vo.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Vo.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Vo.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Vo.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Vo.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Vo.prototype,"isExpanded",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Vo.prototype,"disableExpand",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Vo.prototype,"isSearch",void 0);
_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Vo.prototype,"isWatch",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.x("design:type",Object)],Vo.prototype,"showProminentLabel",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.x("design:type",Object)],Vo.prototype,"showRightSideLabel",void 0);
_.H([_.Q({value:!1,reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Vo.prototype,"hasVideoSummary",null);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Vo.prototype,"hasLockupViewModel",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data","isWatch"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Vo.prototype,"useCustomColors",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("data","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Vo.prototype,"showInfoButton",null);_.H([_.g("data","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Vo.prototype,"showTimestamp",null);_.H([_.g("data","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Vo.prototype,"showExpandedSubtitle",null);
_.H([_.g("data","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Vo.prototype,"showThumbnail",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Vo.prototype,"useVppShoppingDestinationStyle",null);_.H([_.Q(),_.x("design:type",Object)],Vo.prototype,"toggleExpandableContent",void 0);_.H([_.rd("ytd-horizontal-card-list-renderer"),_.x("design:type",Object)],Vo.prototype,"JSC$15048_cardList",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.x("design:type",Object)],Vo.prototype,"useSquareThumbnail",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Vo.prototype,"contentHiddenWithDisplayNone",void 0);_.H([_.g("isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Vo.prototype,"contentHidden",null);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Vo.prototype,"dataChanged",null);_.H([_.gd("isExpanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Vo.prototype,"isExpandedChanged",null);_.H([_.VU("down"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Vo.prototype,"onDown",null);
_.H([_.VU("up"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Vo.prototype,"onUp",null);_.H([_.k({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],Vo);
_.D(Vo,"ytd-expandable-metadata-renderer",function(){if(FFO!==void 0)return FFO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[contentHidden]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return FFO=p},{mode:1});var rfN,SvU=function(){if(rfN!==void 0)return rfN;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return rfN=p};_.bp(_.d7,"yt-avatar-stack-view-model",{props:{className:_.Co,data:_.Co,overrides:_.Co,isOverlay:_.Co,useMediumText:_.Co,decorations:_.Co,hideAvatar:_.Co}});_.ox("itemSectionRenderer","videoRenderer","ytd-video-renderer");var g1=function(){var p=_.w.apply(this,arguments)||this;p.disableExpand=!1;p.shouldShowChannelInfo=!1;p.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return p};
_.A(g1,_.w);_.J=g1.prototype;_.J.computeUseSearchUi=function(){var p,y;return this.isSearch||((p=this.data)==null?void 0:(y=p.style)==null?void 0:y.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.J.computeUseThreeLineTitle=function(){var p;return((p=this.data)==null?void 0:p.maxTitleLines)===3};
_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.n("polymer_video_renderer_defer_menu")&&!VaN?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}}}};
_.J.attached=function(){_.nv(this.hostElement,"blue-links",_.n("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.G9(_.jR(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var p=this.get("data.buttons.buttonRenderer.serviceEndpoint"),y;p&&((y=_.G(p.commandMetadata,_.BY))==null?0:y.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(p);this.updateInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15053_inlinePreviewHoverListener=qG({mediaRenderer:this,lockupElement:this.JSC$15053_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.J.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$15053_inlinePreviewHoverListener)==null||W3(p)};
_.J.onTextWrapperClick=function(p){var y,l,q=this.hideTranslation?(y=this.data)==null?void 0:y.untranslatedNavigationEndpoint:(l=this.data)==null?void 0:l.navigationEndpoint;y=_.aW(_.Jx(p),this.hostElement,["expandable-metadata"]);!q||y&&!_.n("expandable_metadata_fix_killswitch")||_.WN(_.Jx(p),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.Ub(this.hostElement,"yt-navigate",{endpoint:q})};
_.J.computeThumbnailWidth=function(p,y,l,q,t){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:q?t==="MASSIVE"?600:t==="BIG"?500:t==="MEDIUM"?450:420:l?360:y?128:p?210:246};
_.J.computeUseBiggerThumbs=function(p){return p&&_.n("enable_desktop_search_bigger_thumbs")};
_.J.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.J.computeVideoStyle=function(){if(_.n("enable_video_style")){var p,y;return(p=this.data)==null?void 0:(y=p.style)==null?void 0:y.value}};
_.J.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.J.handleHideItemSectionVideosByIdCommand=function(p){var y;p=(y=_.G(p,u6P))==null?void 0:y.videoId;this.data&&this.data.videoId===p&&(this.isHidden=!0)};
_.J.getMetadataSnippetContainerClass=function(p){return p?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.J.computeTitleText=function(p,y,l){return p?l:y};
_.J.computeDescriptionSnippet=function(p,y,l){return p?l:y};
_.J.computeSnippetText=function(p,y,l){return p?l:y};
_.J.computeNavigationEndpoint=function(p,y){return p?y==null?void 0:y.untranslatedNavigationEndpoint:y==null?void 0:y.navigationEndpoint};
_.J.hideInlineTitleIcon=function(p,y){return p||!y};
_.Jh.Object.defineProperties(g1.prototype,{hideTranslation:{configurable:!0,enumerable:!0,get:function(){return this.searchVideoResultEntity?!!this.searchVideoResultEntity.hasOptedOutTranslation:!1}},
hiddenBadgeGroups:{configurable:!0,enumerable:!0,get:function(){if(this.searchVideoResultEntity){var p;return(p=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?p:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return!!(this==null?0:(p=this.data)==null?0:(y=p.channelThumbnailSupportedRenderers)==null?0:(l=y.channelThumbnailWithLinkRenderer)==null?0:l.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var p;return!!_.G((p=this.data)==null?void 0:p.avatar,xBi)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$15053_inlinePreviewHoverListener)==null?0:zO(p))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Jh.Object.defineProperties(g1,{template:{configurable:!0,enumerable:!0,get:function(){return SvU()}}});
g1.prototype.dataChanged=g1.prototype.dataChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],g1.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],g1.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],g1.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],g1.prototype,"ytdDismissibleItemBehavior",void 0);
_.H([_.V(_.EW),_.x("design:type",Object)],g1.prototype,"ytdLockupBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],g1.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],g1.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],g1.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],g1.prototype,"isBackstageVideo",void 0);
_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],g1.prototype,"isPostCompactVideo",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],g1.prototype,"isHistory",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],g1.prototype,"isRichGridVideoPost",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],g1.prototype,"isHidden",void 0);
_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],g1.prototype,"isSearch",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.x("design:type",Boolean)],g1.prototype,"useSearchUi",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.x("design:type",Boolean)],g1.prototype,"useThreeLineTitle",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.x("design:type",Boolean)],g1.prototype,"useBiggerThumbs",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.x("design:type",Object)],g1.prototype,"videoStyle",void 0);_.H([_.Q({computed:"computeDisableExpand(videoStyle)"}),_.x("design:type",Object)],g1.prototype,"disableExpand",void 0);
_.H([_.Q({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.x("design:type",Object)],g1.prototype,"shouldShowChannelInfo",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.$h("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],g1.prototype,"biggerThumbsStyle",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.x("design:type",String)],g1.prototype,"inlineTitleIcon",void 0);_.H([_.Q({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.x("design:type",Object)],g1.prototype,"computedNavigationEndpoint",void 0);_.H([_.Q({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(p,y){return _.Ae(p.entities,"searchVideoResultEntity",y)}}),
_.x("design:type",Object)],g1.prototype,"searchVideoResultEntity",void 0);_.H([_.rd("ytd-thumbnail"),_.x("design:type",HTMLElement)],g1.prototype,"thumbnail",void 0);_.H([_.rd("#dismissible"),_.x("design:type",HTMLElement)],g1.prototype,"JSC$15053_dismissibleMedia",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],g1.prototype,"dataChanged",null);
_.H([_.g("searchVideoResultEntity"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],g1.prototype,"hideTranslation",null);_.H([_.g("searchVideoResultEntity"),_.x("design:type",Array),_.x("design:paramtypes",[])],g1.prototype,"hiddenBadgeGroups",null);_.H([_.g("data","useAvatar"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],g1.prototype,"shouldShowChannelThumbnail",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],g1.prototype,"useAvatar",null);
_.H([_.g("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],g1.prototype,"isHovered",null);_.H([_.k({is:"ytd-video-renderer",disableElementRegistration:!0})],g1);_.D(g1,"ytd-video-renderer",function(){return SvU()},{mode:_.ZS("kevlar_poly_si_batch_j047")?1:2});var Qo=function(){var p=_.w.apply(this,arguments)||this;p.editDialog=null;p.roundedContainer=!0;p.isLoading=!1;p.isRichGrid=!1;p.isRichGridRepost=!1;p.reduceSidePaddings=_.n("reduce_side_paddings_in_shelf");p.JSC$15060_spinnerEl=null;return p};
_.A(Qo,_.w);_.J=Qo.prototype;
_.J.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",properties:{isPostCompactVideo:"[[usesCompactLockup]]",
isRichGridVideoPost:"[[isRichGrid]]"}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isPostCompactPlaylist:"[[usesCompactLockup]]"}},uploadedVideoRenderer:{component:"ytd-post-uploaded-video-renderer"}}},"data.voteButton":{id:"vote-button",mapping:{buttonRenderer:"ytd-button-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},
dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.contentTextChanged=function(){this.expander.reset()};
_.J.dataChanged=function(){var p=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var y=0,l=this.data.actions&&this.data.actions.length;y<l;y++)this.openEditDialog(_.G(this.data.actions[y],VJO));if((y=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(y=this.get("buttonRenderer.hint.hintRenderer.hintId",y))&&y.startsWith("share-post-hint")){var q=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(q){_.j4.getInstance();var t=b2(_.EK(_.g$("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.TR.addLowPriorityJob(function(){_.Gf(p.hostElement,t,q)})}}}};
_.J.updatePoll=function(p){p>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.J.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15060_spinnerEl||(this.JSC$15060_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.jR(this.hostElement).appendChild(this.JSC$15060_spinnerEl));this.JSC$15060_spinnerEl&&(this.JSC$15060_spinnerEl.active=this.isLoading)};
_.J.onYtNavigate=function(p){var y=this.get("updateCommentDialogEndpoint",p.detail.endpoint);y&&(this.openEditDialog(y),p.stopPropagation())};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null};
_.J.onYtCommentPollRevert=function(p,y){y&&this.updatePoll(y.selectedChoiceIndex)};
_.J.onYtServiceRequestSent=function(p,y){var l;y.endpoint&&(_.G(y.endpoint,p4Z)||_.G(y.endpoint,I9x)&&((l=_.G(y.endpoint,I9x))==null||!l.clientActions))&&(this.isLoading=!0);if(y.actions)for(p=0;p<y.actions.length;p++)l=y.actions[p],_.G(l,TA)&&(l=this.get("updateBackstagePollAction.selectedChoiceIndex",l),l==void 0&&(l=-1),this.updatePoll(l))};
_.J.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.J.openEditDialog=function(p){p&&p.dialog&&(this.editDialog=p.dialog,p=this.editDialogEl.firstElementChild)&&(p.focus(),p.openDialog&&p.openDialog())};
_.J.computeIsPostHidden=function(p,y){return!!p||y};
_.J.computeSurfaceType=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.J.computeUsesCompactLockup=function(p){return p==="BACKSTAGE_SURFACE_TYPE_HOME"||p==="BACKSTAGE_SURFACE_TYPE_SEARCH"||p==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||p==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||p==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||p==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.J.computeShowWithoutToolbar=function(p){return!p.actionButtons&&!p.actionMenu};
_.J.computePostAttachment=function(p){if(p.backstageAttachment){if(_.G(p.backstageAttachment,rTQ))return"poll";if(_.G(p.backstageAttachment,Uvx))return"quiz";if(_.G(p.backstageAttachment,_.qb))return"video";if(_.G(p.backstageAttachment,$vV))return"uploaded-videos";if(_.G(p.backstageAttachment,YfZ))return p.contentText?"image":"image-only";if(_.G(p.backstageAttachment,RFr))return"playlist"}return"none"};
_.J.computePostTabIndex=function(p){return p?0:-1};
_.J.computeButtonTooltipPosition=function(p){return this.computeUsesCompactLockup(p)?"top":"bottom"};
_.J.computeHasText=function(p){return!(p==null||!p.contentText)};
_.J.onTap=function(p){var y,l;if(((y=this.data)==null?0:y.navigationEndpoint)&&((l=this.data)==null?void 0:l.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var q;((q=this.data)==null?0:q.navigationEndpoint)&&!_.WN(_.Jx(p)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Ub(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Jh.Object.defineProperties(Qo.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.voteCount)||_.EK("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.G(this.data.backstageAttachment,rTQ))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.G(this.data.backstageAttachment,$vV))}}});
Qo.prototype.onYtServiceRequestCompleted=Qo.prototype.onYtServiceRequestCompleted;Qo.prototype.onYtServiceRequestSent=Qo.prototype.onYtServiceRequestSent;Qo.prototype.onYtCommentPollRevert=Qo.prototype.onYtCommentPollRevert;Qo.prototype.onYtCommentboxDismiss=Qo.prototype.onYtCommentboxDismiss;Qo.prototype.onYtNavigate=Qo.prototype.onYtNavigate;Qo.prototype.isLoadingChanged=Qo.prototype.isLoadingChanged;Qo.prototype.dataChanged=Qo.prototype.dataChanged;Qo.prototype.contentTextChanged=Qo.prototype.contentTextChanged;
_.H([_.V(_.IP),_.x("design:type",Object)],Qo.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Qo.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Qo.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Qo.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Qo.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Object)],Qo.prototype,"editDialog",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Qo.prototype,"roundedContainer",void 0);_.H([_.Q(),_.x("design:type",Object)],Qo.prototype,"isLoading",void 0);_.H([_.Q({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.x("design:type",String)],Qo.prototype,"surface",void 0);
_.H([_.Q({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Qo.prototype,"usesCompactLockup",void 0);_.H([_.Q({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Qo.prototype,"showWithoutToolbar",void 0);_.H([_.Q({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.x("design:type",String)],Qo.prototype,"attachment",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Qo.prototype,"isRichGrid",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Qo.prototype,"isRichGridRepost",void 0);_.H([_.Q({reflectToAttribute:!0,value:_.n("use_better_post_dismissals")}),_.x("design:type",Boolean)],Qo.prototype,"useBetterPostDismissals",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Qo.prototype,"reduceSidePaddings",void 0);
_.H([_.Q({computed:"computeHasText(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Qo.prototype,"hasText",void 0);_.H([_.rd("#expander"),_.x("design:type",Object)],Qo.prototype,"expander",void 0);_.H([_.rd("#action-buttons"),_.x("design:type",Object)],Qo.prototype,"actionButtons",void 0);_.H([_.rd("#edit-dialog"),_.x("design:type",HTMLElement)],Qo.prototype,"editDialogEl",void 0);
_.H([_.gd("data.contentText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qo.prototype,"contentTextChanged",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qo.prototype,"dataChanged",null);_.H([_.gd("isLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qo.prototype,"isLoadingChanged",null);
_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Qo.prototype,"onYtNavigate",null);_.H([_.VU("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qo.prototype,"onYtCommentboxDismiss",null);_.H([_.VU("yt-comment-poll-revert"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],Qo.prototype,"onYtCommentPollRevert",null);
_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],Qo.prototype,"onYtServiceRequestSent",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],Qo.prototype,"onYtServiceRequestCompleted",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Qo.prototype,"voteCount",null);
_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Qo.prototype,"commentCount",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Qo.prototype,"hasPoll",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Qo.prototype,"hasUploadedVideo",null);_.H([_.k({is:"ytd-post-renderer",disableElementRegistration:!0})],Qo);
_.D(Qo,"ytd-post-renderer",function(){if(qpv!==void 0)return qpv;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" role="link" hidden="[[computeIsPostHidden(editDialog, isLoading)]]" tabindex="[[computePostTabIndex(data.navigationEndpoint)]]" on-tap="onTap" class="style-scope ytd-post-renderer">\n  <div id="header" class="style-scope ytd-post-renderer">\n    <div id="author-thumbnail" class="style-scope ytd-post-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" tabindex="-1">\n        <yt-img-shadow fit="" height="32" thumbnail="[[data.authorThumbnail]]" width="32" class="style-scope ytd-post-renderer">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="author" class="style-scope ytd-post-renderer">\n      <a id="author-text" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n        <span class="style-scope ytd-post-renderer">[[getSimpleString(data.authorText)]]</span>\n      </a>\n      <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-post-renderer"></span>\n    </div>\n    <span id="author-divider" class="style-scope ytd-post-renderer">\u2022</span>\n    <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-post-renderer">\n    </yt-formatted-string>\n    <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-post-renderer"></span>\n  </div>\n  <div id="body" class="style-scope ytd-post-renderer">\n    <div id="post-text" class="style-scope ytd-post-renderer">\n\n      \n      <ytd-expander id="expander" hidden="[[usesCompactLockup]]" class="style-scope ytd-post-renderer">\n        <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n        <span class="more-button style-scope ytd-post-renderer" slot="more-button">\n          [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n        </span>\n        <span class="less-button style-scope ytd-post-renderer" slot="less-button">\n          [[getSimpleString(data.collapseButton.buttonRenderer.text)]]\n        </span>\n      </ytd-expander>\n      <yt-formatted-string id="home-content-text" slot="content" hidden="[[!usesCompactLockup]]" split-lines="[[!usesCompactLockup]]" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n    </div>\n    <div id="attachments" class="style-scope ytd-post-renderer">\n      <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-post-renderer"></div>\n      \n      <div id="answer-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.quizRenderer.totalVotes)]]\n      </div>\n      <div id="vote-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.pollRenderer.totalVotes)]]\n      </div>\n      <div id="vote-button" class="style-scope ytd-post-renderer"></div>\n      <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" role="group" class="style-scope ytd-post-renderer">\n      </ytd-backstage-poll-renderer>\n    </div>\n  </div>\n  <div id="toolbar" hidden="[[showWithoutToolbar]]" class="style-scope ytd-post-renderer">\n    <ytd-comment-action-buttons-renderer id="action-buttons" button-tooltip-position="[[computeButtonTooltipPosition(data.surface)]]" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply_]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" use-comment-icon="" vote-count="[[voteCount]]" class="style-scope ytd-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n    <div id="action-menu" class="style-scope ytd-post-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-post-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return qpv=p},{mode:1});var F_B;var L_O;var KH=function(){return _.w.apply(this,arguments)||this};
_.A(KH,_.w);KH.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],KH.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],KH.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.jE.YtdHorizontalListBehavior),_.x("design:type",Object)],KH.prototype,"ytdHorizontalListBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],KH.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],KH.prototype,"data",void 0);
_.H([_.Q({value:"$.items.children"}),_.x("design:type",String)],KH.prototype,"itemsPath",void 0);_.H([_.Q({value:1}),_.x("design:type",Number)],KH.prototype,"initialCount",void 0);_.H([_.Q(),_.x("design:type",String)],KH.prototype,"surface",void 0);_.H([_.k({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],KH);
_.D(KH,"ytd-post-multi-image-renderer",function(){if(L_O!==void 0)return L_O;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-multi-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shelf-container" class="style-scope ytd-post-multi-image-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="prevClick_" hidden="[[atStart]]">\n         <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n      </div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown_" class="style-scope ytd-post-multi-image-renderer">\n    <div id="items" class="style-scope ytd-post-multi-image-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return L_O=p},{mode:_.ZS("kevlar_poly_si_batch_j079")?1:2});var kEZ={"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"}}},w1=function(){var p=_.w.apply(this,arguments)||this;p.hasInlineCommentSection=!1;p.editDialog=null;p.isLoading=!1;p.shouldHideAuthor=!1;p.shouldShowVideoTime=!1;
p.isInEngagementPanel=!1;p.hideBorder=!1;p.usesFullLockup=!1;p.shouldShowMenuInCompactView=!1;p.JSC$15076_spinnerEl=null;p.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return p};
_.A(w1,_.w);_.J=w1.prototype;_.J.configureRendererStamper=function(){return kEZ};
_.J.computeIsPollHeaderEnabled=function(p){return(p==null?void 0:p.pollMetadataIcon)!=null};
_.J.getPublishTimeStampString=function(p,y){y=new Date((Number(y)-60*((new Date).getTimezoneOffset()-(new Date(Number(y)*1E3)).getTimezoneOffset()))*1E3);y=(new sK(10)).format(y);if(p&&p.runs&&p.runs.length)for(var l=0;l<p.runs.length;l++)p.runs[l].text&&(p.runs[l].text=p.runs[l].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",y));return p};
_.J.created=function(){this.JSC$15076_spinnerEl=null};
_.J.contentTextChanged=function(){this.expander.reset()};
_.J.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var p;if((p=this.data)==null?0:p.actions){p=_.c(this.data.actions);for(var y=p.next();!y.done;y=p.next())this.openEditDialog(_.G(y.value,VJO))}};
_.J.handleSignalActionOpenPostCommentDialogAction=function(){_.jR(this.hostElement).querySelector("#action-buttons").reply()};
_.J.updatePoll=function(p,y){y&&this.set("data.pollMetadataVoteCountText",y);this.hasInlineCommentSection&&(p=p>=0,y=_.jR(this.hostElement).querySelector("#action-buttons"),p?y.reply():y.hideReplyDialog())};
_.J.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15076_spinnerEl||(this.JSC$15076_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.jR(this.hostElement).appendChild(this.JSC$15076_spinnerEl));this.JSC$15076_spinnerEl&&(this.JSC$15076_spinnerEl.active=this.isLoading)};
_.J.onYtNavigate=function(p){var y=this.get("updateCommentDialogEndpoint",p.detail.endpoint);y&&(this.openEditDialog(y),p.stopPropagation())};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null};
_.J.onYtCommentPollRevert=function(p,y){y&&this.updatePoll(y.selectedChoiceIndex,y.totalVotes)};
_.J.onYtServiceRequestSent=function(p,y){p.stopPropagation();p=_.G(y.endpoint,I9x);if(_.G(y.endpoint,p4Z)||p&&!p.clientActions)this.isLoading=!0;if(y.actions)for(p=0;p<y.actions.length;p++){var l=y.actions[p],q=_.G(l,TA);q&&(l=this.get("updateBackstagePollAction.selectedChoiceIndex",l),l===void 0&&(l=-1),this.updatePoll(l,q.totalVotes))}};
_.J.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.J.openEditDialog=function(p){p&&p.dialog&&(this.editDialog=p.dialog,p=this.editDialogElement.firstElementChild)&&(p.focus(),p.openDialog&&p.openDialog())};
_.J.computeIsBodyHidden=function(p,y){return!!p||y};
_.Jh.Object.defineProperties(w1.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var p,y;if((p=this.data)==null?0:(y=p.pollMetadataIcon)==null?0:y.iconType)return _.QZ(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.voteCount)||_.EK("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.G(this.data.backstageAttachment,rTQ))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.G(this.data.backstageAttachment,Uvx))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.G(this.data.backstageAttachment,$vV))}}});
w1.prototype.onYtServiceRequestCompleted=w1.prototype.onYtServiceRequestCompleted;w1.prototype.onYtServiceRequestSent=w1.prototype.onYtServiceRequestSent;w1.prototype.onYtCommentPollRevert=w1.prototype.onYtCommentPollRevert;w1.prototype.onYtCommentboxDismiss=w1.prototype.onYtCommentboxDismiss;w1.prototype.onYtNavigate=w1.prototype.onYtNavigate;w1.prototype.isLoadingChanged=w1.prototype.isLoadingChanged;w1.prototype.dataChanged=w1.prototype.dataChanged;w1.prototype.contentTextChanged=w1.prototype.contentTextChanged;
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],w1.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],w1.prototype,"rendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],w1.prototype,"rendererstamperBehavior",void 0);_.H([_.rd("#contentTextExpander"),_.x("design:type",Object)],w1.prototype,"expander",void 0);
_.H([_.rd("#edit-dialog"),_.x("design:type",Element)],w1.prototype,"editDialogElement",void 0);_.H([_.Q(),_.x("design:type",Object)],w1.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],w1.prototype,"hasInlineCommentSection",void 0);_.H([_.Q(),_.x("design:type",Object)],w1.prototype,"editDialog",void 0);_.H([_.Q(),_.x("design:type",Object)],w1.prototype,"isLoading",void 0);
_.H([_.Q({computed:"computeIsPollHeaderEnabled(data)"}),_.x("design:type",Boolean)],w1.prototype,"isPollHeaderEnabled",void 0);_.H([_.Q(),_.x("design:type",Object)],w1.prototype,"shouldHideAuthor",void 0);_.H([_.Q(),_.x("design:type",Object)],w1.prototype,"shouldShowVideoTime",void 0);_.H([_.Q(),_.x("design:type",Object)],w1.prototype,"isInEngagementPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],w1.prototype,"hideBorder",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],w1.prototype,"usesFullLockup",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],w1.prototype,"shouldShowMenuInCompactView",void 0);_.H([_.g("isInEngagementPanel"),_.x("design:type",Number),_.x("design:paramtypes",[])],w1.prototype,"postTextMaxLines",null);_.H([_.g("data.icon.iconType"),_.x("design:type",Object),_.x("design:paramtypes",[])],w1.prototype,"pollIcon",null);
_.H([_.gd("data.contentText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w1.prototype,"contentTextChanged",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w1.prototype,"dataChanged",null);_.H([_.gd("isLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w1.prototype,"isLoadingChanged",null);
_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],w1.prototype,"onYtNavigate",null);_.H([_.VU("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w1.prototype,"onYtCommentboxDismiss",null);_.H([_.VU("yt-comment-poll-revert"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],w1.prototype,"onYtCommentPollRevert",null);
_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],w1.prototype,"onYtServiceRequestSent",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],w1.prototype,"onYtServiceRequestCompleted",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],w1.prototype,"voteCount",null);
_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],w1.prototype,"commentCount",null);_.H([_.g("data.backstageAttachment"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],w1.prototype,"hasPoll",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],w1.prototype,"hasQuiz",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],w1.prototype,"hasUploadedVideo",null);
_.H([_.k({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],w1);
_.D(w1,"ytd-backstage-post-renderer",function(){if(F_B!==void 0)return F_B;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return F_B=p},{mode:1});var NOx;var iY=function(){var p=_.w.apply(this,arguments)||this;p.editDialog=null;p.showExpandButton=!1;p.isRichGrid=!1;p.usesFullLockup=!1;return p};
_.A(iY,_.w);_.J=iY.prototype;_.J.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.originalPost":{id:"original-post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}},postRenderer:{component:"ytd-post-renderer",properties:{isRichGridRepost:"[[isRichGrid]]"}}}},editDialog:{id:"repost-edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}}};
_.J.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.J.computeShowExpandButton=function(p){return this.usesCompactLockup||p&&p.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.J.computeUsesCompactLockup=function(p){return!!p.condensedContent};
_.J.computeShowFullContentText=function(p){return!p};
_.J.onYtNavigate=function(p){p=this.get("updateCommentDialogEndpoint",p.detail.endpoint);this.openEditDialog(p)};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null};
_.J.openEditDialog=function(p){p&&p.dialog&&(this.editDialog=p.dialog,p=this.repostEditDialogEl.firstElementChild)&&(p.focus(),p.openDialog&&p.openDialog())};
_.J.onTap=function(p){if(this.data){var y=null;this.usesCompactLockup&&!_.WN(_.Jx(p)||[],this.hostElement,["YT-IMG-SHADOW"])?y=this.get("navigationEndpoint",this.data):p.target===this.moreButtonEl&&(y=this.get("navigationEndpoint",p.target.data));y&&_.Ub(this.hostElement,"yt-navigate",{endpoint:y})}};
iY.prototype.onYtCommentboxDismiss=iY.prototype.onYtCommentboxDismiss;iY.prototype.onYtNavigate=iY.prototype.onYtNavigate;iY.prototype.dataChanged=iY.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],iY.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],iY.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],iY.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Object)],iY.prototype,"editDialog",void 0);_.H([_.Q({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],iY.prototype,"usesCompactLockup",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],iY.prototype,"showExpandButton",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],iY.prototype,"isRichGrid",void 0);
_.H([_.Q({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.x("design:type",Boolean)],iY.prototype,"showFullContentText",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],iY.prototype,"usesFullLockup",void 0);_.H([_.rd("#more"),_.x("design:type",Object)],iY.prototype,"moreButtonEl",void 0);_.H([_.rd("#repost-content-text"),_.x("design:type",HTMLElement)],iY.prototype,"repostContentTextEl",void 0);
_.H([_.rd("#repost-edit-dialog"),_.x("design:type",HTMLElement)],iY.prototype,"repostEditDialogEl",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iY.prototype,"dataChanged",null);_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],iY.prototype,"onYtNavigate",null);
_.H([_.VU("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iY.prototype,"onYtCommentboxDismiss",null);_.H([_.k({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],iY);
_.D(iY,"ytd-shared-post-renderer",function(){if(NOx!==void 0)return NOx;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shared-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="repost-context" hidden="[[editDialog]]" on-tap="onTap" class="style-scope ytd-shared-post-renderer">\n  <div id="repost-author-thumbnail" class="style-scope ytd-shared-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-shared-post-renderer"></yt-img-shadow>\n    </a>\n  </div>\n  <div id="repost-main" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <div id="repost-header" class="style-scope ytd-shared-post-renderer">\n      <div id="repost-header-author" class="style-scope ytd-shared-post-renderer">\n        <a id="repost-author-text" class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n          <span class="style-scope ytd-shared-post-renderer">[[getSimpleString(data.displayName)]]</span>\n        </a>\n        <yt-formatted-string id="repost-published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-shared-post-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <yt-formatted-string id="repost-content-text" force-default-style="" split-lines="[[!showFullContentText]]" text="[[data.content]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n    <tp-yt-paper-button id="more" data="[[data.expandButton.buttonRenderer]]" hidden="[[!showExpandButton]]" noink="" class="style-scope ytd-shared-post-renderer">\n      [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n    </tp-yt-paper-button>\n  </div>\n  <div id="repost-main-compact" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <yt-formatted-string id="condensed-repost-content-text" ellipsis-truncate="" force-default-style="" text="[[data.condensedContent]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="divider-line-container" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n  <div id="divider-line" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="repost-edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post" hidden="[[data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post-deleted-message" hidden="[[!data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer">\n  [[data.originalPostDeletedMessage]]\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return NOx=p},{mode:1});var Dgv;var HaN;var r1=function(){return _.w.apply(this,arguments)||this};
_.A(r1,_.w);r1.prototype.attached=function(){var p=this;this.networkStatusManager||(this.networkStatusManager=new _.lG,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){p.onlineHandler()}))};
r1.prototype.detached=function(){var p=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){p.onlineHandler()}),delete this.networkStatusManager)};
r1.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],r1.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],r1.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],r1.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],r1);
_.D(r1,"ytd-reload-page-button-renderer",function(){if(HaN!==void 0)return HaN;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reload-page-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer data="[[data]]" class="style-scope ytd-reload-page-button-renderer"></ytd-button-renderer>');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
return HaN=p},{mode:1});var TO$={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"},SI=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.A(SI,_.w);_.J=SI.prototype;_.J.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.J.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.J.computeHasBodyText=function(p){return!!p.bodyText};
_.J.computeButtons=function(p){var y=[];p.ctaButton&&y.push(p.ctaButton);p.secondaryButton&&y.push(p.secondaryButton);return y};
_.J.computeRendererStyle=function(p){return p.style?p.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():p.icon?"":"no-icon"};
_.J.getIconName=function(p,y){y=y===void 0?!1:y;if(p===void 0)return"";p=this.get("icon.iconType",p);var l;_.n("enable_hlp_client_icon_pick")?l=this.getThemedIcon(p,y):l=p;(y=TO$[l])||(y="yt-icons");return[y,l].join(":")};
_.J.getThemedIcon=function(p,y){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(p)?y?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(p)?y?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":p};
_.J.isThumbnail=function(p){return!!p.thumbnail};
_.J.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.J.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],SI.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],SI.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],SI.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],SI.prototype,"data",void 0);
_.H([_.Q({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.x("design:type",String)],SI.prototype,"rendererStyle",void 0);_.H([_.Q({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.x("design:type",String)],SI.prototype,"iconName",void 0);_.H([_.Q({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],SI.prototype,"thumbnail",void 0);_.H([_.Q({computed:"computeButtons(data)"}),_.x("design:type",Array)],SI.prototype,"buttons",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],SI.prototype,"isDarkTheme",void 0);_.H([_.Q({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],SI.prototype,"hasBodyText",void 0);_.H([_.k({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],SI);
_.D(SI,"ytd-background-promo-renderer",function(){if(Dgv!==void 0)return Dgv;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-background-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="image style-scope ytd-background-promo-renderer" hidden="[[!data.icon]]" icon="[[iconName]]"></yt-icon>\n<yt-img-shadow class="image style-scope ytd-background-promo-renderer" height="[[data.thumbnail.thumbnails.height]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnail.thumbnails.width]]">\n</yt-img-shadow>\n<div class="promo-message style-scope ytd-background-promo-renderer">\n  <div class="promo-title style-scope ytd-background-promo-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string class="promo-body-text style-scope ytd-background-promo-renderer" split-lines="" text="[[data.bodyText]]">\n  </yt-formatted-string>\n</div>\n<div id="buttons" hidden="[[!data.ctaButton]]" class="style-scope ytd-background-promo-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Dgv=p},{mode:1});var xgU;var F2=function(){var p=_.w.apply(this,arguments)||this;p.collections=_.n("web_modern_collections_v2");return p};
_.A(F2,_.w);_.Jh.Object.defineProperties(F2.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q,t,E;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(p=this.data)==null?void 0:(y=p.thumbnail)==null?void 0:y.sampledThumbnailColor,vibrantColorPalette:(l=this.data)==null?void 0:(q=l.thumbnail)==null?void 0:q.vibrantColorPalette,darkColorPalette:(t=this.data)==null?void 0:(E=t.thumbnail)==null?void 0:E.darkColorPalette,experimentEnabled:this.collections}}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],F2.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],F2.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],F2.prototype,"collections",void 0);_.H([_.g("data","collections"),_.x("design:type",Object),_.x("design:paramtypes",[])],F2.prototype,"collectionStack",null);_.H([_.k({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],F2);
_.D(F2,"ytd-compact-station-renderer",function(){if(xgU!==void 0)return xgU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-station-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="flex-container style-scope ytd-compact-station-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-station-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-station-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" width="118" class="style-scope ytd-compact-station-renderer"></ytd-thumbnail>\n  </div>\n  <a class="yt-simple-endpoint style-scope ytd-compact-station-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.title)]]\n    </h3>\n    <div id="flex-item" class="style-scope ytd-compact-station-renderer">\n      <p id="description" title$="[[getSimpleString(data.description)]]" class="style-scope ytd-compact-station-renderer">\n        [[getSimpleString(data.description)]]\n      </p>\n    </div>\n    <p id="video-count-text" class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.videoCountText)]]\n    </p>\n  </a>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return xgU=p},{mode:1});var BOr;var LH=function(){var p=_.w.apply(this,arguments)||this;p.isRichGrid=!1;return p};
_.A(LH,_.w);LH.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]]"}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],LH.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],LH.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],LH.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],LH.prototype,"isRichGrid",void 0);_.H([_.k({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],LH);
_.D(LH,"ytd-grid-channel-renderer",function(){if(BOr!==void 0)return BOr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel" class="style-scope ytd-grid-channel-renderer">\n  <a id="channel-info" class="yt-simple-endpoint style-scope ytd-grid-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow height="103" thumbnail="[[data.thumbnail]]" width="103" class="style-scope ytd-grid-channel-renderer"> </yt-img-shadow>\n    <span id="title" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="thumbnail-attribution" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.subscriberCountText)]]</span>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-channel-renderer">\n    </ytd-badge-supported-renderer>\n  </a>\n  <div id="subscribe" hidden="[[!data.subscribeButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n  <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return BOr=p},{mode:1});var fwQ;var kk=function(){return _.w.apply(this,arguments)||this};
_.A(kk,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],kk.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],kk.prototype,"data",void 0);_.H([_.k({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],kk);
_.D(kk,"ytd-grid-movie-playlist-renderer",function(){if(fwQ!==void 0)return fwQ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail width="210" data="[[data]]" bottom-side-panel="" class="style-scope ytd-grid-movie-playlist-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-playlist-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-playlist-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-playlist-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer id="badges" badges="[[data.ownerBadges]]" hidden="[[!data.ownerBadges]]" class="style-scope ytd-grid-movie-playlist-renderer">\n</ytd-badge-supported-renderer>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return fwQ=p},{mode:1});var vYQ;var Nw=function(){var p=_.w.apply(this,arguments)||this;p.downloadProgress=0;p.transferState="TRANSFER_STATE_UNKNOWN";p.modernButtons=_.n("web_modern_buttons");p.useModernCollectionsV2=_.n("web_modern_collections_v2");return p};
_.A(Nw,_.w);Nw.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
Nw.prototype.configureRendererStamper=function(){return{"data.menu":w7}};
Nw.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
Nw.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.n("woffle_playlist_renderer_killswitch")){var p,y=G7j(this.entityInfo,this.transferState,this.downloadProgress,(p=this.data)==null?void 0:p.playlistId,this.isOnline);p=y.viewPlaylistText;var l=y.badges;y=y.thumbnailOverlays;this.isDownloads=!!p||!!l;this.set("data.viewPlaylistText",p);l&&l.length>0&&this.set("data.badges",l);y&&y.length>0&&this.set("data.thumbnailOverlays",
y)}};
_.Jh.Object.defineProperties(Nw.prototype,{downloadState:{configurable:!0,enumerable:!0,get:function(){return this.transferState&&this.transferState!=="TRANSFER_STATE_UNKNOWN"?this.transferState==="TRANSFER_STATE_COMPLETE"?"DOWNLOADED":"DOWNLOADING":""}},
menuHidden:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null?0:p.menu)}}});
Nw.prototype.transferStateChanged=Nw.prototype.transferStateChanged;Nw.prototype.dataChanged=Nw.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Nw.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.EW),_.x("design:type",Object)],Nw.prototype,"ytdLockupBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Nw.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Nw.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.Q({selector:_.Ld_,selectorArgs:["data.playlistId"]}),_.x("design:type",Object)],Nw.prototype,"downloadProgress",void 0);_.H([_.Q({selector:_.or,selectorArgs:["data.playlistId"]}),_.x("design:type",Object)],Nw.prototype,"transferState",void 0);_.H([_.Q({selector:Fdt,selectorArgs:["data.playlistId"]}),_.x("design:type",Object)],Nw.prototype,"entityInfo",void 0);_.H([_.Q({selector:_.dN}),_.x("design:type",Boolean)],Nw.prototype,"isOnline",void 0);
_.H([_.Q(),_.x("design:type",Object)],Nw.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Nw.prototype,"downloadRenderData",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Nw.prototype,"modernButtons",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Nw.prototype,"isDownloads",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Nw.prototype,"useModernCollectionsV2",void 0);
_.H([_.g("transferState"),_.Q({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],Nw.prototype,"downloadState",null);_.H([_.g("data"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Nw.prototype,"menuHidden",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Nw.prototype,"dataChanged",null);
_.H([_.k8("transferState","downloadProgress","isOnline"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Nw.prototype,"transferStateChanged",null);_.H([_.k({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],Nw);
_.D(Nw,"ytd-grid-playlist-renderer",function(){if(vYQ!==void 0)return vYQ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="118" data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-playlist-renderer">\n  <h3 class="style-scope ytd-grid-playlist-renderer">\n    <a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-playlist-renderer">\n  </ytd-badge-supported-renderer>\n  <div id="menu" class="style-scope ytd-grid-playlist-renderer"></div>\n  <yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-grid-playlist-renderer">\n  </yt-formatted-string>\n  <yt-interaction id="interaction" class="extended style-scope ytd-grid-playlist-renderer"></yt-interaction>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return vYQ=p},{mode:1});var XAr;var DX=function(){var p=_.w.apply(this,arguments)||this;p.collections=_.n("web_modern_collections_v2");return p};
_.A(DX,_.w);DX.prototype.configureRendererStamper=function(){return{"data.menu":w7,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Jh.Object.defineProperties(DX.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q,t,E;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(p=this.data)==null?void 0:(y=p.thumbnail)==null?void 0:y.sampledThumbnailColor,vibrantColorPalette:(l=this.data)==null?void 0:(q=l.thumbnail)==null?void 0:q.vibrantColorPalette,darkColorPalette:(t=this.data)==null?void 0:(E=t.thumbnail)==null?void 0:E.darkColorPalette,experimentEnabled:this.collections}}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],DX.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],DX.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.V(_.EW),_.x("design:type",Object)],DX.prototype,"ytdLockupBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],DX.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],DX.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],DX.prototype,"collections",void 0);_.H([_.g("data","collections"),_.x("design:type",Object),_.x("design:paramtypes",[])],DX.prototype,"collectionStack",null);_.H([_.k({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],DX);
_.D(DX,"ytd-grid-radio-renderer",function(){if(XAr!==void 0)return XAr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-grid-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-grid-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div id="details" class="style-scope ytd-grid-radio-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-grid-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-grid-radio-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-radio-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-radio-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <ytd-video-meta-block class="grid style-scope ytd-grid-radio-renderer" data="[[data]]" radio-meta=""></ytd-video-meta-block>\n    </a>\n    <div id="menu" class="style-scope ytd-grid-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-grid-radio-renderer">\n  <div id="dismissed-content" class="style-scope ytd-grid-radio-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-radio-renderer"></yt-interaction>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return XAr=p},{mode:1});var dg$;var Hx=function(){var p=_.w.apply(this,arguments)||this;p.useModernCollectionsV2=_.n("web_modern_collections_v2");return p};
_.A(Hx,_.w);Hx.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Hx.prototype.computeNavigationEndpoint=function(p){return Q$6(p==null?void 0:p.navigationEndpoint)};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Hx.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.EW),_.x("design:type",Object)],Hx.prototype,"ytdLockupBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Hx.prototype,"data",void 0);_.H([_.Q({computed:"computeNavigationEndpoint(data)"}),_.x("design:type",Object)],Hx.prototype,"computedNavigationEndpoint",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Hx.prototype,"useModernCollectionsV2",void 0);_.H([_.k({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Hx);
_.D(Hx,"ytd-grid-show-renderer",function(){if(dg$!==void 0)return dg$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="210" class="style-scope ytd-grid-show-renderer"></ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-show-renderer">\n  <a id="title" class="yt-simple-endpoint style-scope ytd-grid-show-renderer" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]">\n    <h3 class="style-scope ytd-grid-show-renderer">\n      <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="grid style-scope ytd-grid-show-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n  </ytd-badge-supported-renderer>\n  <div id="offer-button" class="style-scope ytd-grid-show-renderer"></div>\n  <div id="menu" class="style-scope ytd-grid-show-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-show-renderer"></yt-interaction>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return dg$=p},{mode:1});var OaU;_.T3=function(p){this.playerClient=p};
_.oYr=function(p,y,l){l=l===void 0?{}:l;return p.playerClient.setOption("ad",y,l)};
_.T3.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.T3.prototype.executeCommand=function(p,y){this.getOptions().includes("executeCommand")?_.oYr(this,"executeCommand",{command:p,layoutId:y}):_.Rk("Calling executeCommand when adModule is not loaded")};var xk=function(){return _.w.apply(this,arguments)||this};
_.A(xk,_.w);xk.prototype.getLayoutId=function(){var p=_.I4("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.layoutId:null};
xk.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var p=_.$o(),y=this.getLayoutId(),l=this.data.clickthroughEndpoint;p&&y&&_.n("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?p.getPlayerPromise().then(function(q){(new _.T3(q)).executeCommand(l,y)}):_.Ub(this.hostElement,"yt-navigate",{endpoint:l})}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],xk.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],xk.prototype,"data",void 0);_.H([_.k({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],xk);
_.D(xk,"ytd-shopping-companion-item-renderer",function(){if(OaU!==void 0)return OaU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shopping-companion-item-container" on-tap="onTap" class="style-scope ytd-shopping-companion-item-renderer">\n  <div id="card" class="style-scope ytd-shopping-companion-item-renderer">\n    <yt-img-shadow id="image" thumbnail="[[data.image]]" class="style-scope ytd-shopping-companion-item-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-shopping-companion-item-renderer">\n      <span id="headline" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.headline)]]</span>\n      <span id="price" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.priceText)]]</span>\n    </div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return OaU=p},{mode:1});var zq$;var Bx=function(){var p=_.w.apply(this,arguments)||this;p.isExpandableContent=!1;return p};
_.A(Bx,_.w);_.Jh.Object.defineProperties(Bx.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return((p=this.data)==null?void 0:p.price)||((y=this.data)==null?void 0:(l=y.dealsData)==null?void 0:l.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var p,y;if((p=this.data)!=null&&p.dealsData&&((y=this.data)==null||!y.priceReplacementText)){p=this.data.dealsData;var l,q,t;return((l=p.salesData)==null?void 0:l.originalPrice)||((q=p.priceDropData)==null?void 0:q.referencePrice)||((t=p.promotionData)==null?void 0:t.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var p,y;return(p=this.data)==null?void 0:(y=p.dealsData)==null?void 0:y.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Bx.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Bx.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Bx.prototype,"isExpandableContent",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bx.prototype,"showCta",null);
_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bx.prototype,"ctaText",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bx.prototype,"hasPriceTopPosition",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bx.prototype,"hasPriceBottomPosition",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bx.prototype,"useNewStyle",null);
_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bx.prototype,"showPriceReplacementText",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bx.prototype,"priceValue",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bx.prototype,"showDeal",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bx.prototype,"showAffiliateDisclaimer",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bx.prototype,"useSaleStyle",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bx.prototype,"useFromBrandCtaStyle",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bx.prototype,"useFromVendorCtaStyle",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bx.prototype,"useShoppingCollectionCtaStyle",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],Bx);
_.D(Bx,"ytd-vertical-product-card-renderer",function(){if(zq$!==void 0)return zq$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-product-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a id="product-card-renderer-container" class="yt-simple-endpoint style-scope ytd-vertical-product-card-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]" aria-label="[[data.accessibilityTitle]]">\n  <div id="card-with-protection" data-offer-version-id$="[[data.debugOfferVersionId]]" class="style-scope ytd-vertical-product-card-renderer">\n    <div id="product-image" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n      <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-vertical-product-card-renderer"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-vertical-product-card-renderer">\n      <div id="product-name" class="product-info-row style-scope ytd-vertical-product-card-renderer">[[data.title]]</div>\n\n      <template is="dom-if" restamp="" if="[[hasPriceTopPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <div id="variants-description" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n        [[data.variantsDescription]]\n      </div>\n\n      <template is="dom-if" restamp="" if="[[showCta]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <yt-formatted-string class="cta-row style-scope ytd-vertical-product-card-renderer" text="[[ctaText]]">\n          </yt-formatted-string>\n          <template is="dom-if" restamp="" if="[[data.showOpenInNewIcon]]" class="style-scope ytd-vertical-product-card-renderer">\n            <yt-icon class="cta-row hover-icon style-scope ytd-vertical-product-card-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[hasPriceBottomPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[showAffiliateDisclaimer]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <div id="affiliate-disclaimer" class="style-scope ytd-vertical-product-card-renderer">[[data.affiliateDisclaimer]]</div>\n        </div>\n      </template>\n    </div>\n  </div>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return zq$=p},{mode:1});var YvU;var fH=function(){return _.w.apply(this,arguments)||this};
_.A(fH,_.w);fH.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],fH.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],fH.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.EW),_.x("design:type",Object)],fH.prototype,"ytdLockupBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],fH.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],fH);
_.D(fH,"ytd-grid-movie-renderer",function(){if(YvU!==void 0)return YvU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-movie-renderer">\n</ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <span class="grid-movie-renderer-metadata style-scope ytd-grid-movie-renderer" hidden="[[!data.metadata]]">\n    [[getSimpleString(data.metadata)]]\n  </span>\n  \n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer class="badges style-scope ytd-grid-movie-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n</ytd-badge-supported-renderer>\n<div id="offer-button" class="style-scope ytd-grid-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-movie-renderer"></yt-interaction>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return YvU=p},{mode:1});var IwN;var vx=function(){var p=_.w.apply(this,arguments)||this;p.rounded=!0;p.itemStyle="small-item";return p};
_.A(vx,_.w);vx.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var p,y,l,q,t=(y=_.G((p=this.data)==null?void 0:p.buttonCommand,_.kB))==null?void 0:(l=y.item)==null?void 0:(q=l.notificationTextRenderer)==null?void 0:q.successResponseText;t&&_.Svt(this.hostElement,t)}};
_.Jh.Object.defineProperties(vx.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.data)==null?void 0:p.isProductPlaceholder)!==void 0&&((y=this.data)==null?void 0:y.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],vx.prototype,"rounded",void 0);_.H([_.Q(),_.x("design:type",Object)],vx.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],vx.prototype,"itemStyle",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],vx.prototype,"hasPrice",null);
_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],vx.prototype,"hasPriceReplacementText",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],vx.prototype,"hasAdditionalFeesText",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],vx.prototype,"hasAffiliateDisclaimer",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],vx.prototype,"isProductPlaceholder",null);
_.H([_.Q(),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],vx.prototype,"hideOpenInNewIcon",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],vx.prototype,"ariaLabel",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],vx);
_.D(vx,"ytd-merch-shelf-item-renderer",function(){if(IwN!==void 0)return IwN;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a class="yt-simple-endpoint style-scope ytd-merch-shelf-item-renderer" href$="[[computeHref_(data.buttonCommand)]]" data="[[data.buttonCommand]]" aria-label$="[[ariaLabel]]" data-offer-version-id$="[[data.debugOfferVersionId]]" on-click="showSnackbarIfPlaceholder">\n  <div class="product-item style-scope ytd-merch-shelf-item-renderer">\n    <yt-img-shadow class="product-item-image style-scope ytd-merch-shelf-item-renderer" height="90" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="90"></yt-img-shadow>\n    <template is="dom-if" restamp="" if="[[isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper product-placeholder-item-info-center style-scope ytd-merch-shelf-item-renderer">\n          <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[!isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-info-wrapper-row-1 style-scope ytd-merch-shelf-item-renderer">\n            <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n            <template is="dom-if" restamp="" if="[[hasPrice]]" class="style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-price-wrapper style-scope ytd-merch-shelf-item-renderer">\n                <template is="dom-if" restamp="" if="[[hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.priceReplacementText]]</div>\n                </template>\n                <template is="dom-if" restamp="" if="[[!hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.price]]</div>\n                  <div class="product-item-additional-fees-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAdditionalFeesText]]">\n                    [[data.additionalFeesText]]\n                  </div>\n                </template>\n              </div>\n            </template>\n            <div no-price$="[[!hasPrice]]" class="cta-item-hide link-item-hide product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">\n                [[data.vendorName]]\n                <yt-icon class="product-item-merchant-icon product-item-merchant-icon--inline style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n              </div>\n              \n              <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n            </div>\n          </div>\n          <div class="small-item-hide large-item-hide product-item-info-wrapper-row-2 style-scope ytd-merch-shelf-item-renderer">\n            <div class="affiliate-disclaimer-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAffiliateDisclaimer]]">\n              [[data.affiliateDisclaimer]]\n            </div>\n            <div class="product-item-description style-scope ytd-merch-shelf-item-renderer">[[data.description]]</div>\n          </div>\n        </div>\n      </div>\n      <div class="small-item-hide large-item-hide link-item-hide product-item-button-wrapper style-scope ytd-merch-shelf-item-renderer" hidden="[[isProductPlaceholder]]">\n        <div class="product-item-button style-scope ytd-merch-shelf-item-renderer">[[data.buttonText]]</div>\n        <div class="product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">[[data.vendorName]]</div>\n          <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n        </div>\n      </div>\n    </template>\n  </div>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return IwN=p},{mode:1});var pbr=_.aF(function(p){return _.R("button-card-view-model",{el:_.mR(_.yn(function(){return p.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return p.data().title},
role:"button"},_.R(_.xS,{model:{}}),_.R("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.R("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.R(_.W,{cond:function(){return p.data().image},
then:function(y){return _.R(_.W$,{data:y,alt:function(){var l;return(l=p.data().title)!=null?l:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.R("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return p.data().title})))},"eb");_.n("web_button_view_model_wcw_registration_killswitch")||_.bp(pbr,"button-card-view-model",{props:{data:_.Co}});_.bp(_.aF(function(p){p=_.RF(p,{className:void 0});var y=p.data;p=p.className;var l=_.MA(function(){return y().onTapCommand},void 0,"NprDr");
return _.R("ytd-shopping-item-card",{class:_.ip("ytdShoppingItemCardHost",p)},_.R(_.sw,{command:l,className:"ytdShoppingItemCardHostLink"},_.R("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.R(_.di,{data:function(){return y().thumbnailViewModel}},{thumbnailViewModel:function(q){return _.R(_.az,{data:q.data,
aspectRatio:3})}})),_.R("div",null,_.R("p",{class:"ytdShoppingItemCardHostItemTitle"},_.R(_.CF,{text:function(){return y().itemTitle}})),_.R("p",{class:"ytdShoppingItemCardHostPrice"},_.R(_.CF,{text:function(){return y().priceOrStatus}})))))},"fb"),"ytd-shopping-item-card",{props:{data:_.Co,
className:_.Co}});var yNB={isAdsVideo:!0},l4Q={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},qRr={showPlayerControls:!1,videoPreviewDurationMs:15E3},sS$={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.n("web_shorts_imp_fullwidth_killswitch")};var ak=null,F_j={};var NO6="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(" "),X2={},Dgg=(X2.FEwhat_to_watch="home",X2.FEhashtag="hashtag",X2.FEtrending="trending",X2.FEhistory="history",X2.SPunlimited="premium",X2.FEmemberships_and_purchases="paid_memberships",X2.SPredeem_code="redeem",X2.SPverify_location="locate",X2.SPminor_moment="minor_moment",
X2.FEmini_app_container="mini_app",X2.FEnews_destination="news",X2.SPopen_in_app="open_in_app",X2.FEexplore="explore",X2.FEsubscriptions="subscriptions",X2.FEsfv_audio_pivot="sfv_audio_pivot",X2.FEplaylist_aggregation="playlist_aggregation",X2);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");_.PW("init");var tuV=function(){},ewU=_.aF(function(p){var y=p.data;
var l=p.inlineMetadata;var q=p.aspectRatio;var t=p.scrimStyle;var E=p.className;var e=p.useDefaultStyle;var C=new tuV,u=_.n("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",a=_.MA(function(){return(e==null?0:e())?u==="SHORTS_LOCKUP_STYLE_SLIM":y().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"gDCMs"),m=_.MA(function(){return _.BQ(l)||a()||!1},void 0,"x8cr8b"),U=function(){return(t==null?void 0:t())!==void 0?t==null?void 0:t():1},b=_.MA(function(){return y().belowThumbnailMetadata||
!m()},void 0,"Q84Mmb");
p=_.Ct({visibilityCallback:function(v){var z=y().onFirstVisible;v&&z&&_.tb(z)},
showOption:{calledOnce:!0,state:"visible"}});var P=_.mR(),Z={};Z=_.ip(function(){return a(),"shortsLockupViewModelHostThumbnailContainer"},(Z.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.BQ(q)===1},Z.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.BQ(q)===2},Z.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!a()},Z.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.n("web_shorts_2_by_3_lockups_study")&&
!_.n("desktop_search_enable_two_by_three_shorts_aspect_ratio")},Z));
var K,F=function(){if(C){var v;(v=K)==null||W3(v);var z;C.hostElement&&((z=C.data)==null?0:z.inlinePlayerData)&&(K=qG({mediaRenderer:C,lockupElement:C.hostElement,thumbnailElement:P.value,videoPreviewOpts:sS$}))}};
_.NA(function(){C&&(C.data=y(),F())},"RII9Hf");
var L=_.MA(function(){return y().thumbnail},void 0,"QlEII"),T=_.MA(function(){return y().badge},void 0,"ODd68c"),O=_.MA(function(){return y().onTap},void 0,"lgNBIc"),f={};
return _.R("ytm-shorts-lockup-view-model",{el:_.mR(function(v){C&&(C.hostElement=v)},F,p),
class:_.ip("shortsLockupViewModelHost",E)},_.R(_.a4,null,_.R(_.sw,{command:O,className:_.ip("shortsLockupViewModelHostEndpoint",(f.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!b()},f),"reel-item-endpoint",""),
ariaHidden:function(){return!m()},
tabIndex:function(){return m()?0:-1}},_.R("div",{el:P,
class:Z},_.R(_.W,{cond:L,then:function(){return _.R(_.W$,{data:function(){var v;return(v=L==null?void 0:L())!=null?v:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.R(_.W,{cond:m,
then:function(){return _.R(E3U,{data:y,scrimStyle:U,useDefaultStyle:e})}}),_.R(_.di,{data:T},{badgeViewModel:function(v){return _.R(_.jI,{data:v.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.R(_.W,{cond:function(){return m()&&y().menuOnTap},
then:function(){return _.R(JNN,{data:y,inlineMetadata:!0})}}),_.R(_.W,{cond:b,
then:function(){return _.R(cNM,{data:y,useDefaultStyle:e,inlineMetadata:m})}})))},"gb"),E3U=_.aF(function(p){var y=p.data;
var l=p.scrimStyle;var q=p.useDefaultStyle;var t=_.n("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",E=q&&_.n("web_hide_primary_text_for_pivot_panel"),e=_.MA(function(){return(q==null?0:q())?t==="SHORTS_LOCKUP_STYLE_SLIM":y().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"cCbMlb");
p={};p=_.ip("shortsLockupViewModelHostInlineMetadata",(p.shortsLockupViewModelHostMetadataRounded=function(){return!e()},p.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(l==null?void 0:l())===3&&!_.n("enable_shorts_lockup_new_scrim")},p.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(l==null?void 0:l())===3&&_.n("enable_shorts_lockup_new_scrim")},p.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(l==null?void 0:l())===2||(l==null?void 0:
l())===4},p.shortsLockupViewModelHostShowOverPlayer=function(){return!0},p),"image-overlay-text");
var C={};return _.R("div",{class:p},_.R("h3",{class:_.ip("shortsLockupViewModelHostMetadataTitle",(C.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(l==null?void 0:l())===4},C)),
"aria-label":function(){return y().accessibilityText}},_.R(_.W,{cond:function(){var u;
return!((u=y().overlayMetadata)==null||!u.primaryText)&&!E},
then:function(){return _.R(_.CF,{text:function(){var u;return(u=y().overlayMetadata)==null?void 0:u.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.R(_.W,{cond:function(){var u;
return(u=y().overlayMetadata)==null?void 0:u.secondaryText},
then:function(){return _.R(hw$,{data:y,scrimStyle:l,className:void 0})}}))},"hb"),cNM=_.aF(function(p){var y=p.data;
var l=p.useDefaultStyle;var q=p.inlineMetadata;var t=_.n("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",E=_.MA(function(){return(l==null?0:l())?t==="SHORTS_LOCKUP_STYLE_SLIM":y().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"KburAe");
p=_.ip(function(){return E()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var e=_.mR(),C,u=_.Ff(function(Z){if(_.Yo(_.z4(Z),e.value,["AVATAR-VIEW-MODEL"]))return!1;var K;(K=C)==null||K.click();return!1}),a=_.MA(function(){return y().belowThumbnailMetadata||y().overlayMetadata},void 0,"c3tkld"),m=function(){return y().menuOnTap&&!q()},U=function(){var Z;
return(Z=a())==null?void 0:Z.avatar},b={},P={};
return _.R("div",{class:_.ip(p,(b.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!U()},b.shortsLockupViewModelHostOutsideMetadataHasMenu=m,b)),
"on:click":u,el:e},_.R(_.di,{data:U},{avatarViewModel:function(Z){return _.R("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.R(_.v5,{data:Z.data}))}}),_.R("div",null,_.R("h3",{class:_.ip("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(P.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var Z,K;
return!((Z=a())==null?0:(K=Z.primaryText)==null?0:K.content)},P)),
"aria-label":function(){return y().accessibilityText}},_.R(_.sw,{ref:function(Z){return void(C=Z)},
command:function(){return y().onTap},
className:_.ip("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var Z,K;return(Z=a())==null?void 0:(K=Z.primaryText)==null?void 0:K.content}},_.R(_.W,{cond:function(){var Z;
return(Z=a())==null?void 0:Z.primaryText},
then:function(Z){return _.R(_.CF,{text:Z,noEndpoints:!0,noStyleRuns:!0})}}))),_.R(_.W,{cond:function(){var Z;
return(Z=a())==null?void 0:Z.secondaryText},
then:function(Z){return _.R("div",{class:_.ip("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead"),"aria-hidden":"true"},_.R(_.CF,{text:Z,noStyleRuns:!0}))}})),_.R(_.W,{cond:m,
then:function(){return _.R(JNN,{data:y,inlineMetadata:!1})}}))},"ib"),hw$=_.aF(function(p){var y=p.data;
var l=p.scrimStyle;p=p.className;var q={};return _.R("div",{class:_.ip((q.shortsLockupViewModelHostMetadataSubhead=function(){return(l==null?void 0:l())!==4},q.shortsLockupViewModelHostMetadataSubheadNew=_.n("enable_shorts_lockup_new_scrim"),q.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(l==null?void 0:l())===4},q),p),
"aria-hidden":"true"},_.R(_.CF,{text:function(){var t;return(t=y().overlayMetadata)==null?void 0:t.secondaryText},
noStyleRuns:!0}))},"jb"),JNN=_.aF(function(p){var y=p.data;
var l=p.inlineMetadata;p={};p=_.ip((p.shortsLockupViewModelHostInlineMetadataMenu=function(){return l()},p.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!l()},p.shortsLockupViewModelHostShowOverPlayer=function(){return!0},p),"image-overlay-text");
return _.R("div",{class:p},_.R(_.uI,{data:function(){return{style:l()?"overlay":"mono",accessibilityLabel:y().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(q){q.preventDefault();q.stopPropagation();var t=_.qW({elementsCommand:y().menuOnTap,forceNewState:!0});if(t==null?0:t.onclick)t.onclick(q)}}},
iconName:"MORE_VERT"}))},"kb");var CCr=_.aF(function(p){var y=p.data;var l=p.inlineMetadata;var q=p.aspectRatio;var t=p.scrimStyle;var E=p.className;var e=p.useDefaultStyle;p=_.MA(function(){var C=y().entityId;return C?C.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.R("ytm-shorts-lockup-view-model-v2",{class:_.ip("shortsLockupViewModelHost",E)},_.R(_.G3,{contentId:p,aspectRatio:function(){return(q==null?void 0:q())===1?1:(q==null?void 0:q())===2?2:4}},function(){return _.R(ewU,{data:y,
inlineMetadata:l,aspectRatio:q,scrimStyle:t,className:E,useDefaultStyle:e})}))},"lb");_.bp(CCr,"ytm-shorts-lockup-view-model-v2",{props:{data:_.jw,inlineMetadata:_.jw,aspectRatio:_.jw,scrimStyle:_.jw,className:_.jw,useDefaultStyle:_.jw}});var uki=16/9*210,d1=function(){var p=_.w.apply(this,arguments)||this;p.isExpandableContent=!1;p.hideShelfHeader=!1;p.engagementPanel=!1;p.buttonClasses=["arrow"];p.isSearch=!1;p.disableScrollEventListener=!1;p.containsLockup=!1;p.overrideArrowPositionForProductCard=!1;p.overrideArrowPositionForShoppingItemCard=!1;p.overrideArrowPositionForReelItems=!1;p.overrideArrowPositionForGridMovie=!1;p.overrideArrowPositionToCenter=!1;p.isSearchPostShelf=!1;p.overrideArrowPositionForMixedShelf=!1;p.overrideArrowPositionForMixedShelfShortsOnly=
!1;p.hasBigThumbsReelItems=!1;p.shouldUseMixedListHeight=!1;p.shouldUseShortsListHeight=!1;p.gridVideoWidth=0;p.isSearchVodShelf=!1;p.disableWheelScroll=!1;p.sizing="COMPACT";p.shortsLockupAspectRatio=0;return p};
_.A(d1,_.w);_.J=d1.prototype;
_.J.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"yt-horizontal-list-renderer lockup",containerType:4},properties:{force16By9ThumbnailAspectRatio:"[[data.force16By9ThumbnailAspectRatio]]",sizing:"[[sizing]]"}},backgroundPromoRenderer:"ytd-background-promo-renderer",compactStationRenderer:"ytd-compact-station-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",shoppingItemCardViewModel:{component:"ytd-shopping-item-card",
params:{className:"yt-horizontal-list-renderer"}},gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]",width:"[[gridVideoWidth]]"}},merchShelfItemRenderer:"ytd-merch-shelf-item-renderer",shoppingCompanionCarouselItemRenderer:"ytd-shopping-companion-item-renderer",displayAdRenderer:"ytd-display-ad-renderer",
compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",postRenderer:"ytd-post-renderer",reelItemRenderer:{component:"ytd-reel-item-renderer",properties:{isSearch:"[[isSearch]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",params:{className:"yt-horizontal-list-renderer"},properties:{aspectRatio:"[[shortsLockupAspectRatio]]"}},sharedPostRenderer:"ytd-shared-post-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",
properties:{isExpandableContent:"[[isExpandableContent]]"}},buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonCardViewModel:{component:"button-card-view-model"}}},"data.previousButton":{id:"left-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},classListBinding:"[[buttonClasses]]"}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"},classListBinding:"[[buttonClasses]]"}}}}};
_.J.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.n("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.J.computeInitialCountNumber=function(p){if(!p)return 6;var y=p.items.some(function(E){return!!E.topicRecommendationsChipRenderer}),l=p.items.some(function(E){return!!E.displayAdRenderer}),q=this.computeShouldListItemsHaveEqualHeight(p),t=p.items.some(function(E){return!!E.gridPlaylistRenderer});
p=p.items.some(function(E){return!!E.shoppingItemCardViewModel});
return y?9:l?8:t||q?10:p?7:6};
_.J.computeContainsPost=function(p){return!!p&&!!p.items&&p.items.some(function(y){return!!y.postRenderer})};
_.J.computeContainsLockup=function(){if(_.n("web_horizontal_list_lockup_arrow_killswitch"))return!1;var p,y;return(p=this.data)==null?void 0:(y=p.items)==null?void 0:y.some(function(l){return!!l.lockupViewModel})};
_.J.maybeUpdateLockupAspectRatio=function(){var p,y;if(this.computeContainsLockup()&&((p=this.data)==null?0:(y=p.items)==null?0:y.length)){var l;p=Hc8((l=this.data.items[0].lockupViewModel)==null?void 0:l.contentType,this.data.force16By9ThumbnailAspectRatio);l=LDt(p);l=this.computeLockupWidth()/l;_.Ax(this.hostElement,{"--yt-horizontal-list-content-height":l+"px"})}};
_.J.computeOverrideArrowPositionForProductCard=function(p){if(this.isExpandableContent)return!1;var y;return!!(p==null?0:(y=p.items)==null?0:y.some(function(l){return!!l.verticalProductCardRenderer}))};
_.J.computeOverrideArrowPositionForShoppingItemCard=function(p){var y;return!!(p==null?0:(y=p.items)==null?0:y.some(function(l){return!!l.shoppingItemCardViewModel}))};
_.J.computeOverrideArrowPositionForReelItemRenderer=function(p){return this.containsReelItemRenderer(p)};
_.J.computeHasBigThumbsReelItems=function(p,y){return p&&this.containsReelItemRenderer(y)};
_.J.computeShouldListItemsHaveEqualHeight=function(p){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(p==null?void 0:p.itemSizeConstraint)};
_.J.computeShouldListItemsHaveShortsHeight=function(p){return this.computeShouldListItemsHaveEqualHeight(p)&&!this.containsGridVideoRenderer(p)};
_.J.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.J.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.J.containsReelItemRenderer=function(p){var y;return!!(p==null?0:(y=p.items)==null?0:y.some(function(l){return!(!l.reelItemRenderer&&!l.shortsLockupViewModel)}))};
_.J.containsGridVideoRenderer=function(p){var y;return!!(p==null?0:(y=p.items)==null?0:y.some(function(l){return!!l.gridVideoRenderer||!!l.lockupViewModel}))};
_.J.computeContainsGridMovieRenderer=function(p){var y;return!!(p==null?0:(y=p.items)==null?0:y.some(function(l){return!!l.gridMovieRenderer}))};
_.J.computeOverrideArrowPositionToCenter=function(p){return this.computeIsSearchPostShelf(p)};
_.J.computeIsSearchPostShelf=function(p){var y;return!!(p==null?0:(y=p.items)==null?0:y.some(function(l){var q,t;return((t=(q=l.postRenderer)==null?void 0:q.surface)!=null?t:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.J.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(p){var y;return!!(p==null?0:(y=p.items)==null?0:y.some(function(l){var q,t,E;return((E=(q=l.backgroundPromoRenderer)==null?void 0:(t=q.style)==null?void 0:t.value)!=null?E:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.J.computeIsSearchVodShelf=function(p,y){return p&&this.containsGridVideoRenderer(y)};
_.J.computeDisableWheelScroll=function(p,y){return this.computeIsSearchVodShelf(p,y)};
_.J.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.J.computeShortsLockupAspectRatio=function(){return 1};
_.J.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Ax(this.hostElement,{"--ytd-reel-item-thumbnail-height":uki+"px"})};
d1.prototype.dataChanged=d1.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],d1.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],d1.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.jE.YtdHorizontalListBehavior),_.x("design:type",Object)],d1.prototype,"ytdHorizontalListBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],d1.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Object)],d1.prototype,"isExpandableContent",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],d1.prototype,"hideShelfHeader",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],d1.prototype,"engagementPanel",void 0);_.H([_.Q(),_.x("design:type",Array)],d1.prototype,"buttonClasses",void 0);_.H([_.Q(),_.x("design:type",Object)],d1.prototype,"isSearch",void 0);
_.H([_.Q(),_.x("design:type",Object)],d1.prototype,"disableScrollEventListener",void 0);_.H([_.Q({computed:"computeInitialCountNumber(data)"}),_.x("design:type",Number)],d1.prototype,"initialCount",void 0);_.H([_.Q({computed:"computeContainsPost(data)"}),_.x("design:type",Boolean)],d1.prototype,"supportComponentResize",void 0);_.H([_.Q({computed:"computeContainsPost(data)"}),_.x("design:type",Boolean)],d1.prototype,"containsPost",void 0);
_.H([_.Q({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.x("design:type",Object)],d1.prototype,"containsLockup",void 0);_.H([_.Q({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],d1.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.H([_.Q({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.x("design:type",Object)],d1.prototype,"overrideArrowPositionForProductCard",void 0);_.H([_.Q({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.x("design:type",Object)],d1.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.H([_.Q({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.x("design:type",Object)],d1.prototype,"overrideArrowPositionForReelItems",void 0);_.H([_.Q({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.x("design:type",Object)],d1.prototype,"overrideArrowPositionForGridMovie",void 0);
_.H([_.Q({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.x("design:type",Object)],d1.prototype,"overrideArrowPositionToCenter",void 0);_.H([_.Q({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.x("design:type",Object)],d1.prototype,"isSearchPostShelf",void 0);_.H([_.Q({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.x("design:type",Object)],d1.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.H([_.Q({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.x("design:type",Object)],d1.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.H([_.Q({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.x("design:type",Object)],d1.prototype,"hasBigThumbsReelItems",void 0);
_.H([_.Q({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.x("design:type",Object)],d1.prototype,"shouldUseMixedListHeight",void 0);_.H([_.Q({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.x("design:type",Object)],d1.prototype,"shouldUseShortsListHeight",void 0);_.H([_.Q({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.x("design:type",Object)],d1.prototype,"gridVideoWidth",void 0);
_.H([_.Q({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.x("design:type",Object)],d1.prototype,"isSearchVodShelf",void 0);_.H([_.Q({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.x("design:type",Object)],d1.prototype,"disableWheelScroll",void 0);_.H([_.Q({computed:"computeSizing(isSearch)"}),_.x("design:type",Object)],d1.prototype,"sizing",void 0);
_.H([_.Q({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.x("design:type",Object)],d1.prototype,"shortsLockupAspectRatio",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],d1.prototype,"dataChanged",null);
_.D(d1,"yt-horizontal-list-renderer",function(){if($XV===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-horizontal-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n<div id="scroll-outer-container" class="style-scope yt-horizontal-list-renderer">\n  <div id="scroll-container" class="style-scope yt-horizontal-list-renderer">\n    <div id="items" class="style-scope yt-horizontal-list-renderer"></div>\n  </div>\n</div>\n<div id="right-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);$XV=p}p=$XV;return p},{mode:1});var RwO;var WeV=[10,12,14,16,18,20,24,28,32,36],a4Q=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],OQ=function(){var p=_.w.apply(this,arguments)||this;p.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";p.hideOverflow=!1;p.useRoboto=!1;p.fontClass="";p.overflown=!1;p.actionMap={"yt-window-resized":"resize"};return p};
_.A(OQ,_.w);_.J=OQ.prototype;
_.J.attached=function(){var p=this;switch(this.fontFamily){case "PROMO_FONT_FAMILY_ROBOTO_BOLD":this.useRoboto=!0;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD":this.useRoboto=!1;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_MEDIUM":this.useRoboto=!1;this.fontWeight=500;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_SEMIBOLD":this.useRoboto=!1;this.fontWeight=600;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_LIGHT":this.useRoboto=!1;this.fontWeight=400;break;default:this.useRoboto=
!1,this.fontWeight=700}this.setParentConstraints();_.th(this,function(){p.resize()});
if(!_.P0){var y,l,q;(y=document)==null||(l=y.fonts)==null||(q=l.ready)==null||q.then(function(){p.resize()})}};
_.J.dataChanged=function(){this.resize()};
_.J.guideIsExpandedChanged=function(){this.resize()};
_.J.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var p=this.getMaxNumLines(),y=this.getMinFont(),l=this.getMaxFont(),q=this.useRoboto?WeV:a4Q;for(q=q.filter(function(E){return E<=l&&E>=y});q.length>1;){var t=Math.floor(q.length/2);
this.updateFontSize(q[t]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=p)q=q.slice(t,q.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>p)q=q.slice(0,t);else break}this.updateFontSize(q[q.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(p)}};
_.J.handleOverflow=function(p){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>p&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",p.toString()))};
_.J.updateFontSize=function(p){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+p;this.textNode.classList.add(this.fontClass)};
_.J.getMaxFont=function(){var p=this.useRoboto?WeV:a4Q;p=p[p.length-1];return this.maxFontSize&&this.maxFontSize<=p?this.maxFontSize:p};
_.J.getMinFont=function(){var p=(this.useRoboto?WeV:a4Q)[0];return this.minFontSize&&this.minFontSize>=p?this.minFontSize:p};
_.J.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.J.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.J.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.JB(this.text).split("\n").length-1:Infinity};
_.J.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Gh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
OQ.prototype.guideIsExpandedChanged=OQ.prototype.guideIsExpandedChanged;OQ.prototype.dataChanged=OQ.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],OQ.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],OQ.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],OQ.prototype,"actionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],OQ.prototype,"text",void 0);
_.H([_.Q(),_.x("design:type",String)],OQ.prototype,"fontFamily",void 0);_.H([_.Q(),_.x("design:type",Number)],OQ.prototype,"maxWidth",void 0);_.H([_.Q(),_.x("design:type",Number)],OQ.prototype,"maxHeight",void 0);_.H([_.Q(),_.x("design:type",Number)],OQ.prototype,"maxFontSize",void 0);_.H([_.Q(),_.x("design:type",Number)],OQ.prototype,"minFontSize",void 0);_.H([_.Q(),_.x("design:type",Number)],OQ.prototype,"maxLines",void 0);_.H([_.Q(),_.x("design:type",Object)],OQ.prototype,"hideOverflow",void 0);
_.H([_.Q({selector:_.PVc}),_.x("design:type",Boolean)],OQ.prototype,"guideIsExpanded",void 0);_.H([_.rd("#container"),_.x("design:type",HTMLElement)],OQ.prototype,"containerNode",void 0);_.H([_.rd("#text"),_.x("design:type",HTMLElement)],OQ.prototype,"textNode",void 0);_.H([_.k8("text"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OQ.prototype,"dataChanged",null);
_.H([_.k8("guideIsExpanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OQ.prototype,"guideIsExpandedChanged",null);_.H([_.k({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],OQ);
_.D(OQ,"yt-dynamic-sizing-formatted-string",function(){if(RwO!==void 0)return RwO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dynamic-sizing-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="dynamic-text-container style-scope yt-dynamic-sizing-formatted-string">\n  <yt-formatted-string id="text" disable-attributed-string="" text="[[text]]" class="style-scope yt-dynamic-sizing-formatted-string"></yt-formatted-string>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return RwO=p},{mode:1});var mxQ;_.UxQ=function(p){_.p8.call(this,p)};
_.A(_.UxQ,_.p8);var $xi=function(p){_.p8.call(this,p)};
_.A($xi,_.UxQ);var oz=function(){return _.w.apply(this,arguments)||this};
_.A(oz,_.w);oz.prototype.onTapSuspendedChannel=function(){var p;if((p=this.data)!=null&&p.serviceEndpoint){var y,l;(p=(l=_.G((y=this.data)==null?void 0:y.serviceEndpoint,_.Id))==null?void 0:l.url)?_.lt(p,void 0,void 0,window.top):(y=new $xi("Did not handle suspended account tap. No appealUrl."),_.Bs(y))}else y=new $xi("Did not handle suspended account tap. No serviceEndpoint."),_.Bs(y)};
oz.prototype.onTap=function(){var p=this,y=_.Ll(),l,q=(l=_.FH(y,{veType:7116}))!=null?l:void 0;_.EZ(y,{visualElement:q});_.pv();this.saveRoleText();var t;if((t=this.data)==null?0:t.youtubeSuspended)this.onTapSuspendedChannel();else{var E=!1,e,C;(y=(C=_.G((e=this.data)==null?void 0:e.serviceEndpoint,_.E7v))==null?void 0:C.supportedTokens)&&y.forEach(function(u){if(u.accountSigninToken)if(E=!0,p.onAccountItemTap)p.onAccountItemTap(u.accountSigninToken.signinUrl);else _.lt(u.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!E){if(e=this.get("serviceEndpoint",this.data))E=!0,this.ytComponentBehavior.resolveCommand(e);E||_.fT(new $xi("Did not handle account switch tap. No token."))}}};
oz.prototype.saveRoleText=function(){if(this.data){var p=this.data,y=p.channelDelegationRole;if(y){var l,q=(l=_.G(p==null?void 0:p.serviceEndpoint,_.E7v))==null?void 0:l.supportedTokens;if(!q){var t,E,e,C;q=(t=_.G(p==null?void 0:p.serviceEndpoint,_.xB))==null?void 0:(E=t.popup)==null?void 0:(e=E.confirmDialogRenderer)==null?void 0:(C=e.confirmButton)==null?void 0:C.buttonRenderer;var u;q=(u=_.G(q==null?void 0:q.command,_.AO))==null?void 0:u.commands;if(!q)return;var a;q=(a=_.G(q[1],_.E7v))==null?
void 0:a.supportedTokens}if(q){u=void 0;a=_.c(q);for(q=a.next();!q.done;q=a.next())if(q=q.value,q.datasyncIdToken){u=q.datasyncIdToken.datasyncIdToken;break}if(u){var m;a:{if(_.foR()&&(a=_.qtl(u+"::pom"))){a=new BF(a);break a}a=void 0}(m=a)==null||m.set("role_text",y);if((sbm?sbm:window.location).href.indexOf("studio")!==-1&&(m=vGj())){a=m.src?(new URL(m.src)).origin:"*";var U;(U=m.contentWindow)==null||U.postMessage({action:"save_pom_role",datasyncId:u,roleText:y},a)}}}}}};
_.Jh.Object.defineProperties(oz.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var p,y,l=(p=this.data)==null?void 0:(y=p.accountPhoto)==null?void 0:y.thumbnails;return l&&l.length>0&&(l[0].height===36||l[0].height===48)?l[0].height:40}}});
oz.prototype.onTap=oz.prototype.onTap;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],oz.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],oz.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!1}),_.x("design:type",Function)],oz.prototype,"onAccountItemTap",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],oz.prototype,"enableRingForActiveAccount",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],oz.prototype,"thumbnailSize",null);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oz.prototype,"onTap",null);_.H([_.k({is:"ytd-account-item-renderer",disableElementRegistration:!0})],oz);
_.D(oz,"ytd-account-item-renderer",function(){if(mxQ!==void 0)return mxQ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-icon-item class="style-scope ytd-account-item-renderer">\n  <yt-img-shadow slot="item-icon" height="[[thumbnailSize]]" item-icon="" thumbnail="[[data.accountPhoto]]" width="[[thumbnailSize]]" class="style-scope ytd-account-item-renderer">\n  </yt-img-shadow>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-account-item-renderer">\n    <yt-formatted-string id="channel-title" text="[[data.accountName]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string respect-lang-dir="" secondary="" text="[[data.channelHandle]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string secondary="" text="[[data.accountByline]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item-body>\n  <yt-icon id="selected" hidden="[[!data.isSelected]]" icon="yt-icons:check" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <yt-icon id="studio-redirect" aria-label$="[[getSimpleString(data.studioRedirectVisualHint)]]" hidden="[[!data.isRedirectToStudio]]" icon="yt-icons:open_in_new" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-tooltip for="studio-redirect" hidden="[[!data.isRedirectToStudio]]" position="left" class="style-scope ytd-account-item-renderer">\n    [[getSimpleString(data.studioRedirectVisualHint)]]\n  </tp-yt-paper-tooltip>\n</tp-yt-paper-icon-item>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return mxQ=p},{mode:1});var jSU;var z3=function(){return _.w.apply(this,arguments)||this};
_.A(z3,_.w);z3.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.WC().resolve(_.aK).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],z3.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],z3.prototype,"data",void 0);_.H([_.k({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],z3);
_.D(z3,"ytd-identity-chip-renderer",function(){if(jSU!==void 0)return jSU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-identity-chip-renderer">\n  <h3 id="header-text" class="style-scope ytd-identity-chip-renderer">[[data.headerText]]</h3>\n</div>\n<div id="content-row" class="style-scope ytd-identity-chip-renderer">\n  <div id="info-div" class="style-scope ytd-identity-chip-renderer">\n    <img id="avatar-image" alt="" src$="[[data.avatarUrl]]" class="style-scope ytd-identity-chip-renderer">\n    <div id="name-handle-div" class="style-scope ytd-identity-chip-renderer">\n      <p id="name" class="style-scope ytd-identity-chip-renderer">[[data.name]]</p>\n      <p id="handle" hidden="[[!data.handle]]" dir="auto" class="style-scope ytd-identity-chip-renderer"><span class="style-scope ytd-identity-chip-renderer">@</span>[[data.handle]]</p>\n    </div>\n  </div>\n  <div id="edit-icon" class="style-scope ytd-identity-chip-renderer">\n    <yt-icon-button id="edit-icon-button" aria-label$="[[data.onTapLabel]]" on-click="onClickEditIcon" class="style-scope ytd-identity-chip-renderer">\n      <yt-icon id="edit-icon" icon="yt-icons:edit" class="style-scope ytd-identity-chip-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return jSU=p},{mode:1});var bbU;var n3x;var Ggr;var PCx;var Yk=function(){var p=_.w.apply(this,arguments)||this;p.richItemMinWidth=_.UC("wn_grid_min_item_width",310);p.isShorts=!1;p.isWatchNext=!1;p.isExploreHub=!1;return p};
_.A(Yk,_.w);_.Jh.Object.defineProperties(Yk.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var p=[],y=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Ax(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var l;if(((l=this.data)==null?0:l.rows)&&y)for(y*=this.data.rows,l=0;l<y;l++)p.push({});return p}}});
_.H([_.V(_.zL),_.x("design:type",Object)],Yk.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Yk.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Yk.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.fW,value:3}),_.x("design:type",Number)],Yk.prototype,"itemsPerRow",void 0);_.H([_.Q({selector:_.G_m,value:6}),_.x("design:type",Number)],Yk.prototype,"slimItemsPerRow",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Number)],Yk.prototype,"richItemMinWidth",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.BV}),_.x("design:type",Boolean)],Yk.prototype,"miniMode",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Yk.prototype,"isShorts",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Yk.prototype,"isWatchNext",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Yk.prototype,"isExploreHub",void 0);
_.H([_.g("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.x("design:type",Array),_.x("design:paramtypes",[])],Yk.prototype,"cardItems",null);_.H([_.k({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Yk);
_.ANv=_.Al()(Yk,"ytd-ghost-grid-renderer",function(){if(PCx===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-grid style-scope ytd-ghost-grid-renderer">\n  <template is="dom-repeat" items="[[cardItems]]" class="style-scope ytd-ghost-grid-renderer">\n    <div class="ghost-card style-scope ytd-ghost-grid-renderer">\n      <div class="rich-thumbnail skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n      <div class="details style-scope ytd-ghost-grid-renderer">\n        <div class="channel-avatar skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        <div class="details-text-shell style-scope ytd-ghost-grid-renderer">\n          <div class="rich-video-title text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n          <div class="video-meta rich-video-meta text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </template>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);PCx=p}p=PCx;return p},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.bp(_.aF(function(p){var y=_.RF(p,{numberOfComments:3}).numberOfComments,l=_.RF(p,{isInitialLoad:!1}).isInitialLoad,q=_.RF(p,{engagementPanel:!1}).engagementPanel,t=function(){return Math.min(Number(y==null?void 0:y())||20,20)};
return _.R("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.R(_.W,{cond:function(){return!(q==null?0:q())&&(l==null?void 0:l())},
then:function(){return _.R("div",{class:"ytGhostCommentsComments"},_.R("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.R("div",{class:_.ip("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.R("div",{class:_.ip("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.R("div",{class:"ytGhostCommentsGhostCard"},_.R("div",{class:"ytGhostCommentsAvatar"},_.R("div",{class:"ytGhostCommentsCircle"})),_.R("div",{class:"ytGhostCommentsComments"},_.R("div",{class:"ytGhostCommentsMeta"},
_.R("div",{class:_.ip("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.R("div",{class:_.ip("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.R("div",{class:"ytGhostCommentsComments"},_.R(_.rT,{each:function(){return Array((t==null?void 0:t())||3)}},function(){return _.R("div",{class:"ytGhostCommentsGhostCard"},_.R("div",{class:"ytGhostCommentsAvatar"},_.R("div",{class:"ytGhostCommentsCircle"})),_.R("div",{class:"ytGhostCommentsHost"},_.R("div",{class:"ytGhostCommentsMeta"},
_.R("div",{class:_.ip("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.R("div",{class:_.ip("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.R("div",{class:_.ip("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.R("div",{class:"ytGhostCommentsGhostLikeDislike"},_.R("div",{class:_.ip("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.R("div",{class:_.ip("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"mb"),"yt-ghost-comments",{props:{numberOfComments:_.Co,
isInitialLoad:_.Co,engagementPanel:_.Co}});_.ox("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var Iz=function(){var p=_.w.apply(this,arguments)||this;p.isOverridable=!1;p.spinnerActive=!1;p.showButton=!1;p.isCommentsSection=!1;p.engagementPanel=!0;p.isShortsGrid=!1;p.isShortsPage=!1;p.isWatchPage=!1;p.ghostCardExperimentEnabled=_.n("show_ghost_comments_shorts_watch")||_.n("show_ghost_comments_desktop_watch");p.originalShowButton=!1;p.endOfList=!1;return p};
_.A(Iz,_.w);_.J=Iz.prototype;_.J.resetIntersectionObserver=function(){var p;(p=this.observer)==null||p.disconnect();this.observer=void 0};
_.J.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var p,y;((p=this.data)==null?void 0:p.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((y=this.data)==null?0:y.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.J.initializeIntersectionObserver=function(){var p=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(y){y=_.c(y);for(var l=y.next();!l.done;l=y.next())l.value.isIntersecting&&(p.triggerContinuation(),p.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.J.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.J.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var p;((p=this.data)==null?0:p.continuationEndpoint)&&(p=_.G(this.data.continuationEndpoint,_.qr))&&this.ytdReduxBehavior.dispatch(_.$y({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:p}}))};
_.J.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.J.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.J.onServiceRequestCompleted=function(p,y){if(!_.n("kevlar_hide_spinner_on_empty_continuation_killswitch")){var l;(l=y.actions)!=null&&l.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.J.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.J.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.J.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.J.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var p=3;if(this.engagementPanel){var y,l,q;p=Math.floor(((((y=this.hostElement)==null?void 0:(l=y.parentElement)==null?void 0:(q=l.parentElement)==null?void 0:q.scrollHeight)||108)-108)/108);p=this.isInitialLoad?Math.max(p,3):3}y=[].concat(_.xq(this.hostElement.querySelectorAll("yt-ghost-comments")));y=_.c(y);for(l=y.next();!l.done;l=y.next())l=l.value,l.numberOfComments=p,l.isInitialLoad=this.isInitialLoad,l.engagementPanel=
this.engagementPanel}};
_.J.detached=function(){this.resetIntersectionObserver()};
_.Jh.Object.defineProperties(Iz.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.n("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.n("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
Iz.prototype.numberOfGhostCommentsChanged=Iz.prototype.numberOfGhostCommentsChanged;Iz.prototype.continuationTriggerOffsetChanged=Iz.prototype.continuationTriggerOffsetChanged;Iz.prototype.showButtonChanged=Iz.prototype.showButtonChanged;Iz.prototype.onYtServiceRequestCompletedForButtonRenderer=Iz.prototype.onYtServiceRequestCompletedForButtonRenderer;Iz.prototype.onServiceRequestCompleted=Iz.prototype.onServiceRequestCompleted;Iz.prototype.onYtServiceRequestSentForButtonRenderer=Iz.prototype.onYtServiceRequestSentForButtonRenderer;
Iz.prototype.observeData=Iz.prototype.observeData;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Iz.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Iz.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.JG.YtVisibilityBehavior),_.x("design:type",Object)],Iz.prototype,"ytVisibilityBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Iz.prototype,"ytComponentBehavior",void 0);
_.H([_.V(_.zL),_.x("design:type",Object)],Iz.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Iz.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Iz.prototype,"isOverridable",void 0);_.H([_.Q(),_.x("design:type",Object)],Iz.prototype,"spinnerActive",void 0);_.H([_.Q(),_.x("design:type",Object)],Iz.prototype,"showButton",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Iz.prototype,"isCommentsSection",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Iz.prototype,"engagementPanel",void 0);_.H([_.Q(),_.x("design:type",Object)],Iz.prototype,"isShortsGrid",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.My_}),_.x("design:type",Object)],Iz.prototype,"isShortsPage",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.XT}),_.x("design:type",Object)],Iz.prototype,"isWatchPage",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Iz.prototype,"ghostCardExperimentEnabled",void 0);
_.H([_.Q(),_.x("design:type",Number)],Iz.prototype,"continuationTriggerOffset",void 0);_.H([_.Q(),_.x("design:type",Object)],Iz.prototype,"endOfList",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Iz.prototype,"isInitialLoad",void 0);_.H([_.rd("ytd-button-renderer"),_.x("design:type",_.aP)],Iz.prototype,"buttonRenderer",void 0);_.H([_.Q(),_.x("design:type",Object)],Iz.prototype,"buttonOverrides",void 0);
_.H([_.Q(),_.g("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.x("design:type",Object),_.x("design:paramtypes",[])],Iz.prototype,"isShortsCommentsSection",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iz.prototype,"observeData",null);
_.H([_.VU("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iz.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],Iz.prototype,"onServiceRequestCompleted",null);
_.H([_.VU("yt-service-request-completed-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iz.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.H([_.k8("showButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iz.prototype,"showButtonChanged",null);
_.H([_.k8("continuationTriggerOffset"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iz.prototype,"continuationTriggerOffsetChanged",null);_.H([_.gd("isInitialLoad","engagementPanel"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iz.prototype,"numberOfGhostCommentsChanged",null);_.H([_.k({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Iz);
_.D(Iz,"ytd-continuation-item-renderer",function(){if(Ggr!==void 0)return Ggr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-continuation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ghost-cards" class="style-scope ytd-continuation-item-renderer"></div>\n<div id="ghost-comment-section" class="style-scope ytd-continuation-item-renderer"></div>\n<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" hidden="[[showButton]]" class="style-scope ytd-continuation-item-renderer">\n</tp-yt-paper-spinner>\n<div id="button" hidden="[[!showButton]]" class="style-scope ytd-continuation-item-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Ggr=p},{mode:1});var Zbi;var pZ=function(){var p=_.w.apply(this,arguments)||this;p.downloadProgress=0;p.transferState="TRANSFER_STATE_UNKNOWN";p.downloadState="DOWNLOAD_STATE_UNKNOWN";p.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";p.offlineVideoPolicyExpirationTimestamp=0;p.downloadedVideoPlaybackPosition=0;return p};
_.A(pZ,_.w);pZ.prototype.dataChanged=function(){var p;this.videoData=_.G((p=this.data)==null?void 0:p.renderer,Nex);this.transferStateChanged()};
pZ.prototype.downloadProgressChanged=function(){if(this.entityInfo){var p=Object.assign({},this.videoData),y=P28(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),l=y.publishedTimeText,q=y.badges;p.shortViewCountText=y.shortViewCountText;p.publishedTimeText=l;p.badges=q;this.set("videoData",p)}};
pZ.prototype.transferStateChanged=function(){if(this.entityInfo){var p=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",y=_.rN(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!ia(this.entityInfo.policyEntity),l=Object.assign({},this.videoData),q=P28(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),t=q.publishedTimeText,E=q.badges;l.shortViewCountText=
q.shortViewCountText;l.publishedTimeText=t;l.badges=E;l.isDisabled=y;l.isWatched=this.downloadedVideoPlaybackPosition>0;l.navigationEndpoint=y?void 0:V1j(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var e;p&&((e=this.videoData)==null?0:e.videoId)&&!_.n("dl_resume_click_killswitch")&&(l.isDisabled=!1,l.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});l.thumbnailOverlays=nau(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",l)}};
pZ.prototype.transferStateChanged=pZ.prototype.transferStateChanged;pZ.prototype.downloadProgressChanged=pZ.prototype.downloadProgressChanged;pZ.prototype.dataChanged=pZ.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],pZ.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],pZ.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],pZ.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Object)],pZ.prototype,"videoData",void 0);_.H([_.Q({selector:zU,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],pZ.prototype,"downloadProgress",void 0);_.H([_.Q(),_.x("design:type",Number)],pZ.prototype,"relativeDateReference",void 0);_.H([_.Q({selector:_.Ot,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],pZ.prototype,"transferState",void 0);
_.H([_.Q({selector:X4t,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],pZ.prototype,"downloadState",void 0);_.H([_.Q({selector:w4m,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],pZ.prototype,"offlinePolicyAction",void 0);_.H([_.Q({selector:iwL,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],pZ.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.H([_.Q({selector:Yy,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],pZ.prototype,"downloadedVideoPlaybackPosition",void 0);_.H([_.Q({selector:S_t,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],pZ.prototype,"entityInfo",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],pZ.prototype,"isDownloading",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pZ.prototype,"dataChanged",null);
_.H([_.k8("downloadProgress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pZ.prototype,"downloadProgressChanged",null);_.H([_.k8("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pZ.prototype,"transferStateChanged",null);
_.H([_.k({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],pZ);
_.D(pZ,"ytd-downloaded-video-grid-video-renderer",function(){if(Zbi!==void 0)return Zbi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-downloaded-video-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-grid-video-renderer id="video" data="[[videoData]]" is-downloading="[[isDownloading]]" class="style-scope ytd-downloaded-video-grid-video-renderer"></ytd-grid-video-renderer>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Zbi=p},{mode:_.ZS("kevlar_poly_si_batch_j025")?1:2});var Muv;var yT=function(){};
yT.prototype.resolve=function(p,y){var l=this;return _.h(function(q){return q.yield(l.resolveCommand(p,y),0)})};var VuM,lD;VuM=ICo(function(p){return p.targetId},{shouldPersist:!1});
lD=VuM.updateData;_.g3B=VuM.useUpdatableData;var QSN,Kev;QSN=ICo(function(p){return p.targetId});
Kev=QSN.updateData;_.wbP=QSN.useUpdatableData;var ibB=xgt.bind(null,lD),rNN=xgt.bind(null,Kev);(function(p,y,l){var q=_.G(l==null?void 0:l.updatedRenderer,_.W1Z);return q?p({targetId:y},function(){return q}):!1}).bind(null,lD);var qo=function(){};
_.A(qo,yT);qo.prototype.resolveCommand=function(p){var y;return _.h(function(l){y=_.G(p,_.ZMu);if(!y)return l.return();ibB(y.targetId,y);_.rR(l)})};var so=function(){var p=_.FA.apply(this,arguments)||this;p.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return p};
_.A(so,_.FA);_.J=so.prototype;_.J.configureContinuationPathMap=function(){return{}};
_.J.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.J.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.J.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.J.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.J.handleAppendContinuationItemsAction=function(p){var y=_.G(p,_.xir);if(this.data&&this.data.targetId&&y&&this.continuationPathMap&&y.targetId===this.data.targetId){var l=bX8(p),q=l&&this.continuationPathMap[l];if(q&&l)if(p=this.get(q,this.data)){a:{for(l=0;l<p.length;l++){var t=p[l],E=void 0,e=!!_.G((E=_.G(t,V2N))==null?void 0:E.content,_.SxO);if(_.G(t,_.aA)||e)break a}l=p.length}q="data."+q;y.continuationItems?l===p.length-1?(this.pop(q),this.push.apply(this,[q].concat(_.xq(y.continuationItems)))):
l===p.length?this.push.apply(this,[q].concat(_.xq(y.continuationItems))):this.splice.apply(this,[q,l,1].concat(_.xq(y.continuationItems))):this.splice(q,l,1);(_.n("web_enable_voting_animation")||_.n("enable_music_web_cairo_voting_animation"))&&_.Ub(this.hostElement,"yt-append-continuation-items-action-finished");_.Ub(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.vs(new _.SM("append continuation items does not exist",l));else _.vs(new _.SM("append continuation path does not exist",
l))}};
_.J.handleReloadContinuationItemsCommand=function(p){var y=_.G(p,_.ZMu);if(this.data&&y){if(_.n("web_client_explore_hub")||_.n("web_explore_hub_on_hover")||_.n("web_client_explore_hub_on_hover"))try{_.WC().resolve(qo).resolveCommand(p)}catch(E){}if(this.data.targetId&&this.continuationPathMap&&y.targetId===this.data.targetId&&(!_.n("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||y.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var l,q=(l=y.slot)==null?void 0:
l.replace("RELOAD_CONTINUATION_SLOT_","");l=(p=bX8(p)+"-"+(q==null?void 0:q.toLowerCase()))&&this.continuationPathMap[p];if(!l||!p||!q)_.vs(new _.SM("reload continuation path does not exist",p));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(y)){if(y.replaceWithFirstItem){var t;this.set("data."+l,((t=y.continuationItems)==null?0:t.length)?y.continuationItems[0]:{})}else this.set("data."+l,y.continuationItems?y.continuationItems:[]);this.continuationIsReloading=
!1;_.Ub(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.J.handleShowReloadUiCommand=function(p){p=_.G(p,s2$);var y;((y=this.data)==null?0:y.targetId)&&(p==null?0:p.targetId)&&p.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
so.prototype.observeData=so.prototype.observeData;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],so.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],so.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],so.prototype,"data",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],so.prototype,"continuationIsReloading",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],so.prototype,"observeData",null);_.H([_.Lv()],so);_.tP=[_.sd.YtComponentBehavior,_.no.YtActionHandlerBehavior,so.prototype];_.Eo={};_.Eo.YtNextContinuationBehavior=[_.m$.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",_.MH(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.MH(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(p,y){p.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,y,{}):(p={locationRetrieved:function(l){this.makeNextContinuationRequest_(l,y,{})}.bind(this)},_.Ub(this.hostElement,"yt-retrieve-location",p))},
makeNextContinuationRequest_:function(p,y,l){_.vW("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();p=y(p);var q;this.canUseContextualNetworkManager_()&&(q=this.getNetworkManager());q||(q=_.WC().resolve(_.vI));y=_.Js.instance;if(_.OY("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&y){q=_.hB([p.startsWith("/")?p.substr(1):p]);var t,E;l=_.pI(y,{},q,l==null?void 0:(t=l.context)==null?void 0:(E=t.clickTracking)==null?void 0:E.clickTrackingParams).then(function(e){return{response:e}})}else l=
this.nextContinuation.usePost?q.postData(p,l):q.fetchData(p);
l.then(this.updateNextContinuationData_.bind(this,p));this.pendingContinuationRequest_=l;this.startListeningForNavigate_()},
updateNextContinuationData_:function(p,y){var l=this;_.vW("ncl");this.pendingContinuationRequest_=void 0;if(y){var q={};this.nextContinuation&&(q=this.nextContinuation);if(y.response&&y.response.continuationContents&&y.response.continuationContents[q.continuationType]){p=y.response.continuationContents[q.continuationType];var t=q.header||"data.header",E=p[q.responseHeaderKey||"header"];E&&this.set(t,E);t=q.contentsArray||"data.contents";E=this.getContents_(p,q.responseContentsKey||"contents")||[];
this.pathExists_(t)?(E.unshift(t),this.push.apply(this,E)):this.set(t,E);E&&(BOm(_.Ll(),y.response,this.hostElement,function(e){_.$w(l.hostElement,"yt-store-grafted-ve-action",[e])}),_.Ub(this.hostElement,"yt-next-continuation-data-updated",{continuationData:y,
page:this,contentsArray:t}));this.set(q.continuationsArray||"data.continuations",p[q.responseContinuationsKey||"continuations"]||[])}else y.reload?_.vs(new _.SM("Reloading from continuation is unsupported")):y.responseContext&&y.responseContext.errors||(delete y.xsrf_token,delete y.timing,delete y.endpoint,delete y.csn,y.responseContext&&delete y.responseContext.serviceTrackingParams,t={request:_.EC(p,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(y).sort()},y.response&&(t.responseContentKeys=
Object.keys(y.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(t.continuationType=this.nextContinuation.continuationType.substr(0,256)),y=new _.SM("Malformed continuation",t),p.indexOf("/comment_service_ajax")==0?_.vs(y):_.Bs(y)),this.set(q.continuationsArray||"data.continuations",[])}else _.fT(new _.SM("Missing continuation response",p))},
getContents_:function(p,y){y=y.split(".");return _.Ts.getValueByKeys(p,y)},
pathExists_:function(p){var y=this;p=p.toString().split(".");for(var l=0;l<p.length;l++)if(y=y[p[l]],y===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var SRU;var FeN;var JP=function(){var p=_.w.apply(this,arguments)||this;p.triggered_=!1;return p};
_.A(JP,_.w);_.J=JP.prototype;_.J.attached=function(){this.maybeTriggerAutoload()};
_.J.detached=function(){this.hasBeenTriggered_=!1};
_.J.onPrescanVisible=function(){this.onShow()};
_.J.onShow=function(){this.showButton||this.trigger()};
_.J.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Ub(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.J.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.J.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.J.computeLabel_=function(p,y){return p===void 0?null:p.label||!y?p.label:this.showMoreText_};
_.J.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.J.getContinuationUrl=function(p){var y={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(y.itct=this.data.clickTrackingParams);return _.JJ(p,y)};
_.J.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
JP.prototype.showButtonChanged_=JP.prototype.showButtonChanged_;JP.prototype.observeData_=JP.prototype.observeData_;_.H([_.V(_.JG.YtVisibilityBehavior),_.x("design:type",Object)],JP.prototype,"ytVisibilityBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],JP.prototype,"data",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],JP.prototype,"showButton",void 0);
_.H([_.Q({value:!1}),_.x("design:type",Boolean)],JP.prototype,"showIcon",void 0);_.H([_.Q({computed:"computeLabel_(data, showButton)"}),_.x("design:type",Object)],JP.prototype,"label",void 0);_.H([_.Q({value:_.EK(_.g$("SHOW_MORE",void 0,"Show More"))}),_.x("design:type",Object)],JP.prototype,"showMoreText_",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],JP.prototype,"spinnerActive_",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],JP.prototype,"hasBeenTriggered_",void 0);
_.H([_.Q({value:void 0}),_.x("design:type",String)],JP.prototype,"observeVisibleOption",void 0);_.H([_.Q({value:void 0}),_.x("design:type",String)],JP.prototype,"observeHiddenOption",void 0);_.H([_.Q({value:"observe_once"}),_.x("design:type",Object)],JP.prototype,"observePrescanOption",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JP.prototype,"observeData_",null);
_.H([_.gd("showButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JP.prototype,"showButtonChanged_",null);_.H([_.z9({is:"yt-next-continuation",disableElementRegistration:!0})],JP);
_.D(JP,"yt-next-continuation",function(){if(FeN===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-next-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.continuations.yt_next_continuation.yt.next.continuation.css.js--\x3e\n<template is="dom-if" if="[[!showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-spinner id="spinner" active="[[spinnerActive_]]" class="style-scope yt-next-continuation"></tp-yt-paper-spinner>\n</template>\n<template is="dom-if" if="[[showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-button on-tap="trigger" class="style-scope yt-next-continuation">\n    <yt-icon hidden$="[[!showIcon]]" icon="subdirectory_arrow_right" class="style-scope yt-next-continuation"></yt-icon>\n    <yt-formatted-string text="[[label]]" class="style-scope yt-next-continuation"></yt-formatted-string>\n  </tp-yt-paper-button>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;SRU===void 0&&(SRU=document.createElement("template"));var q=SRU;l.call(y,q.content.cloneNode(!0),p.content.firstChild);FeN=p}p=FeN;return p},{mode:2});var LeB;var kgM;var co=function(){return _.w.apply(this,arguments)||this};
_.A(co,_.w);co.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],co.prototype,"data",void 0);_.H([_.z9({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],co);
_.D(co,"yt-music-pass-small-feature-info-renderer",function(){if(kgM===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-small-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_small_feature_info_renderer.yt.music.pass.small.feature.info.renderer.css.js--\x3e<yt-img-shadow thumbnail="[[data.icon]]" width="84" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-img-shadow>\n<yt-formatted-string id="header" respect-html-dir="" text="[[data.header]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" respect-html-dir="" text="[[data.description]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;LeB===void 0&&(LeB=document.createElement("template"));var q=LeB;l.call(y,q.content.cloneNode(!0),p.content.firstChild);kgM=p}p=kgM;return p},{mode:2});_.ox("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var el=function(){var p=_.w.apply(this,arguments)||this;p.isCollapsible=!1;p.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return p};
_.A(el,_.w);_.J=el.prototype;_.J.computeIsCollapsible=function(p){return!!(((p==null?0:p.showMoreText)||(p==null?0:p.visibleRowCount))&&(p==null?0:p.isCollapsible))};
_.J.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-grid-renderer lockup",containerType:2,sizing:"COMPACT",force16By9ThumbnailAspectRatio:!0}},continuationItemRenderer:"ytd-continuation-item-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",
playlistRenderer:"ytd-playlist-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:"ytd-grid-video-renderer",downloadedVideoGridVideoRenderer:"ytd-downloaded-video-grid-video-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",musicPassSmallFeatureInfoRenderer:"yt-music-pass-small-feature-info-renderer",gameCardRenderer:"ytd-game-card-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",noInjection:!0}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:"yt-next-continuation"}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.J.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.J.onIronResize=function(){var p=this;_.tl(this,"updateGridInitItems",function(){p.maybeUpdateInitialItemsDisplayed()})};
_.J.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var p=this.getVisibleWidth();p!==0&&(p=Math.floor(p/214)*(this.data.visibleRowCount||2),p!==this.initialCount&&(this.initialCount=p,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.J.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.J.computeExpandVisible=function(p,y,l,q){return p&&y&&l&&!!q&&!!q.showMoreText};
_.J.computeShowMoreButton=function(p){return{text:p,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.J.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.J.initCollapsed=function(){var p=this;this.ytLazyListBehavior.canShowMore=!1;var y;(this.collapsed=!((y=this.data)==null||!y.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.th(this,function(){_.jN(p.hostElement,"yt-refit-popups-action")})};
_.J.fillRestIfNotCollapsible=function(){var p=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!p||this.ytLazyListBehavior.fillRemainingListItems()};
_.J.computeViewAllHidden=function(p,y){return p||!y.viewAllEndpoint};
el.prototype.fillRestIfNotCollapsible=el.prototype.fillRestIfNotCollapsible;el.prototype.initCollapsed=el.prototype.initCollapsed;el.prototype.onIronResize=el.prototype.onIronResize;el.prototype.persistentGuideChanged=el.prototype.persistentGuideChanged;_.H([_.V(_.vG),_.x("design:type",Object)],el.prototype,"ironResizableBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],el.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],el.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.$G.YtLazyListBehavior),_.x("design:type",Object)],el.prototype,"ytLazyListBehavior",void 0);_.H([_.V(_.Eo.YtNextContinuationBehavior),_.x("design:type",Object)],el.prototype,"ytNextContinuationBehavior",void 0);_.H([_.V(_.qI.YtdGuideStateAwareBehavior),_.x("design:type",Object)],el.prototype,"ytdGuideStateAwareBehavior",void 0);
_.H([_.V(_.tP),_.x("design:type",Object)],el.prototype,"ytContinuationHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],el.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Boolean)],el.prototype,"collapsed",void 0);_.H([_.Q(),_.x("design:type",Number)],el.prototype,"initialCount",void 0);_.H([_.Q({computed:"computeShowMoreButton(data.showMoreText)"}),_.x("design:type",Object)],el.prototype,"showMoreButton",void 0);
_.H([_.Q({computed:"computeIsCollapsible(data)"}),_.x("design:type",Object)],el.prototype,"isCollapsible",void 0);_.H([_.rd("#items"),_.x("design:type",HTMLElement)],el.prototype,"items",void 0);_.H([_.k8("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],el.prototype,"persistentGuideChanged",null);_.H([_.VU("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],el.prototype,"onIronResize",null);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],el.prototype,"initCollapsed",null);_.H([_.k8("canShowMore"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],el.prototype,"fillRestIfNotCollapsible",null);_.H([_.k({is:"ytd-grid-renderer",disableElementRegistration:!0})],el);
_.D(el,"ytd-grid-renderer",function(){if(Muv!==void 0)return Muv;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.title]]" class="style-scope ytd-grid-renderer">\n  <h3 class="channel-link style-scope ytd-grid-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-grid-renderer"></yt-formatted-string>\n  </h3>\n</template>\n<div id="items" class="style-scope ytd-grid-renderer"></div>\n<ytd-button-renderer id="show-more-button" align-by-text="" data="[[showMoreButton]]" hidden="[[!computeExpandVisible(isCollapsible, collapsed, canShowMore, data)]]" on-tap="onExpandTap" class="style-scope ytd-grid-renderer">\n</ytd-button-renderer>\n<yt-formatted-string id="view-all" hidden="[[computeViewAllHidden(canShowMore, data)]]" text="[[data.viewAllText]]" class="style-scope ytd-grid-renderer">\n</yt-formatted-string>\n<div id="continuations" class="style-scope ytd-grid-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Muv=p},{mode:_.ZS("kevlar_poly_si_batch_j025")?1:2});var hP=function(){return _.w.apply(this,arguments)||this};
_.A(hP,_.w);
hP.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"}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],hP.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],hP.prototype,"data",void 0);_.H([_.k({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],hP);
_.D(hP,"ytd-carousel-ad-renderer",function(){if(n3x!==void 0)return n3x;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-carousel-ad-renderer">\n  <div id="badge" class="style-scope ytd-carousel-ad-renderer"></div>\n  <h3 id="title-text" class="style-scope ytd-carousel-ad-renderer">\n    <yt-formatted-string text="[[data.adMetadata.displayAdRenderer.titleText]]" class="style-scope ytd-carousel-ad-renderer">\n    </yt-formatted-string>\n  </h3>\n  <div id="menu" class="style-scope ytd-carousel-ad-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-carousel-ad-renderer"></div>\n<div id="footer" class="style-scope ytd-carousel-ad-renderer">\n  <yt-formatted-string id="footer-string" text="[[data.adMetadata.displayAdRenderer.footerString]]" title="[[getSimpleString(data.adMetadata.displayAdRenderer.footerString)]]" class="style-scope ytd-carousel-ad-renderer">\n  </yt-formatted-string>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return n3x=p},{mode:1});var NjU;var CZ=function(){return _.w.apply(this,arguments)||this};
_.A(CZ,_.w);_.J=CZ.prototype;_.J.configureRendererStamper=function(){return{"data.content.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.content.adBadge]]"}}}},"data.content.closeButton":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,CZ.JSC$15250_CLICK_LOCATION_ID_MAP))};
_.J.onSitelinkTap=function(p){p.stopPropagation();var y,l,q=p==null?void 0:(y=p.model)==null?void 0:(l=y.item)==null?void 0:l.onTap;q&&this.ytSparklesClickLocationBehavior.handleClick(q,p,!1)};
_.J.onTap=function(p){var y=this.data&&this.data.content&&this.data.content.navigationEndpoint;y&&this.ytSparklesClickLocationBehavior.handleClick(y,p,!1)};
_.J.sendImpression=function(){if(this.data&&this.data.content)for(var p=_.c(this.data.content.impressionEndpoints||[]),y=p.next();!y.done;y=p.next()){y=_.c(y.value.loggingUrls||[]);for(var l=y.next();!l.done;l=y.next())l=l.value,l.baseUrl&&y6(l.baseUrl,l.attributionSrcMode)}};
CZ.prototype.onTap=CZ.prototype.onTap;CZ.prototype.dataChanged=CZ.prototype.dataChanged;CZ.JSC$15250_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"]]);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],CZ.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],CZ.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.UW.YtSparklesClickLocationBehavior),_.x("design:type",Object)],CZ.prototype,"ytSparklesClickLocationBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],CZ.prototype,"data",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CZ.prototype,"dataChanged",null);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],CZ.prototype,"onTap",null);_.H([_.k({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],CZ);
_.D(CZ,"ytd-promoted-sparkles-text-search-renderer",function(){if(NjU!==void 0)return NjU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-text-search-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n  <div id="main-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <h3 id="title" aria-label$="[[data.content.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.content.title)]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-img-shadow id="favicon" hidden="[[!data.content.favicon]]" thumbnail="[[data.content.favicon]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-img-shadow>\n        [[getSimpleString(data.content.title)]]\n    </h3>\n    <yt-formatted-string id="description" no-endpoints="[[noEndpoints]]" text="[[data.content.descriptionText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    </yt-formatted-string>\n    <div id="sitelinks-table" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <template id="sitelinks-dom-repeat" is="dom-repeat" items="[[data.content.sitelinks]]" as="item" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-formatted-string id="sitelinks" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" role="link" text="[[item.title]]" on-click="onSitelinkTap" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="format-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <div id="ad-badge" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n      <yt-formatted-string id="display-url" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" text="[[data.content.websiteText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="right-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <div id="menu" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n    <div id="call-to-action" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return NjU=p},{mode:1});var DxP;var uD=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-mute-ad-action":"handleMuteAd"};return p};
_.A(uD,_.w);_.J=uD.prototype;
_.J.configureRendererStamper=function(){return{"data.menu":{id:_.n("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.J.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.J.computeHasAdBadge=function(p){return!(p==null||!p.adBadge)};
_.J.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",uD.JSC$15259_DEFAULT_AD_BADGE_RENDERER),_.nv(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,uD.JSC$15259_CLICK_LOCATION_ID_MAP))};
_.J.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var p;(((p=this.data)==null?void 0:p.impressionCommands)||[]).forEach(function(y){y=_.c(y.loggingUrls||[]);for(var l=y.next();!l.done;l=y.next())l=l.value,l.baseUrl&&y6(l.baseUrl,l.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.J.onTap=function(p){var y,l=(y=this.data)==null?void 0:y.navigationEndpoint,q;(y=(q=this.data)==null?void 0:q.thumbnailNavigationEndpoint)&&_.aW(_.Jx(p),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(y,p,!1):l&&this.ytSparklesClickLocationBehavior.handleClick(l,p,!1)};
_.J.handleMuteAd=function(){this.collapsed=!0};
_.J.attached=function(){var p=this;_.n("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&p.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){_.n("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Jh.Object.defineProperties(uD.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var p;return!(((p=this.data)==null?void 0:p.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var p;return!(((p=this.data)==null?void 0:p.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}});
uD.prototype.dataChanged=uD.prototype.dataChanged;
uD.JSC$15259_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"]]);
uD.JSC$15259_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.g$("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],uD.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.H([_.V(oP),_.x("design:type",Object)],uD.prototype,"ytdActiveViewBehavior",void 0);
_.H([_.V([_.no.YtActionHandlerBehavior]),_.x("design:type",Object)],uD.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.UW.YtSparklesClickLocationBehavior),_.x("design:type",Object)],uD.prototype,"ytSparklesClickLocationBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],uD.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],uD.prototype,"collapsed",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.n("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],uD.prototype,"useBiggerThumbs",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.$h("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],uD.prototype,"biggerThumbsStyle",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.n("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.x("design:type",Boolean)],uD.prototype,"fixAlignmentSmallScreens",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.n("enable_desktop_search_bigger_thumbs_square")}}),
_.x("design:type",Boolean)],uD.prototype,"useBiggerThumbsSquare",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("data.mediaHoverOverlay"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uD.prototype,"hideHoverOverlay",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data.promotedSparklesWebStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uD.prototype,"webSearchLayout",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uD.prototype,"webSearchLayoutLandscape",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uD.prototype,"webSearchLayoutSquare",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("data.promotedSparklesWebStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uD.prototype,"sparklesCtaNoBackground",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data.actionButton"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uD.prototype,"hideActionButton",null);_.H([_.Q({computed:"computeButtonOverride(uiUpdate)"}),_.x("design:type",Object)],uD.prototype,"buttonOverride",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.x("design:type",Boolean)],uD.prototype,"hasNewAdBadge",void 0);_.H([_.g("data.promotedSparklesWebStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uD.prototype,"useRoundedBadge",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uD.prototype,"dataChanged",null);_.H([_.k({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],uD);
_.D(uD,"ytd-promoted-sparkles-web-renderer",function(){if(DxP!==void 0)return DxP;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-web-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sparkles-container" on-tap="onTap" class="style-scope ytd-promoted-sparkles-web-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="thumbnail-hover-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <div id="thumbnail-deep-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <yt-img-shadow id="thumbnail" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n        </yt-img-shadow>\n        <div id="media-badge-search" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n      </div>\n      <div id="media-hover-overlay" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n  </div>\n  <div id="sparkles-body-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="sparkles-body" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <h3 id="title" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.title)]]\n      </h3>\n      <div id="description" class="style-scope ytd-promoted-sparkles-web-renderer">\n        [[getSimpleString(data.description)]]\n      </div>\n      <div id="website-text-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <span id="ad-badge-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          </ytd-badge-supported-renderer>\n          <div id="ad-badge-new" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n        </span>\n        <div id="website-text" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.websiteText)]]\n        </div>\n      </div>\n      <div id="action-button" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n  </div>\n</div>\n<div id="old-menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return DxP=p},{mode:1});var HbP;var Rf=function(){var p=_.w.apply(this,arguments)||this;p.isInlinePreviewTriggered=!1;p.enableMonoStyle=_.n("enable_default_mono_cta_migration_web_client");return p};
_.A(Rf,_.w);_.J=Rf.prototype;_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.ctaRenderer":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.J.computeShowCta=function(p){return!(p==null||!p.ctaRenderer)};
_.J.onCtaClick=function(){var p,y,l,q=(p=this.data)==null?void 0:(y=p.ctaRenderer)==null?void 0:(l=y.buttonRenderer)==null?void 0:l.command;q&&this.ytComponentBehavior.resolveCommand(q)};
_.J.onWatchButtonClick=function(){var p,y,l,q=(p=this.data)==null?void 0:(y=p.watchButtonRenderer)==null?void 0:(l=y.buttonRenderer)==null?void 0:l.command;q&&this.ytComponentBehavior.resolveCommand(q)};
_.J.onTap=function(){};
_.J.dataChanged=function(){if(this.data){var p;_.n("enable_inline_muted_playback_on_web_search")&&((p=this.data)==null?0:p.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",Rf.JSC$15263_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Rf.JSC$15263_DEFAULT_CLICK_LOCATION_BEHAVIOR,Rf.JSC$15263_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(p=this.thumbnail.getElementsByTagName("a"),p.length>0&&(p=p.namedItem("thumbnail"))&&p.removeAttribute("href"))}};
_.J.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var p=_.c(this.data.impressionUrls),y=p.next();!y.done;y=p.next())y=y.value,tm5(y,Jlg(y));this.data.impressionsFired=!0}};
_.J.maybeComputeHref=function(){return null};
_.J.computeIsShortDR=function(p){return!(p==null||!p.watchButtonRenderer)&&!(p==null||!p.ctaRenderer)&&!!this.enableShortDR};
_.J.computeIsNewUiOrShortDr=function(p){return!!this.enableUiUpdate||this.computeIsShortDR(p)};
_.J.computeIsNewUiAndNotShortDr=function(p){return!!this.enableUiUpdate&&!this.computeIsShortDR(p)};
_.J.computeHideAvatar=function(p){return!((p==null?0:p.channelThumbnail)&&this.computeIsNewUiOrShortDr(p))};
_.J.onClick=function(p){var y,l=(y=this.data)==null?void 0:y.navigationEndpoint;if(this.enableShortDR&&l&&(_.G(l,_.Eb)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(l,p,!!_.G(l,_.Eb)),p.stopPropagation();else if(l&&_.G(l,_.Eb))this.ytSparklesClickLocationBehavior.handleClick(l,p,!0),p.stopPropagation();else if(l){var q,t;((q=this.data)==null?0:q.navigationEndpoint)&&((t=this.data)==null?0:t.adPlaybackContextParams)&&Og6(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(l)}};
_.J.computeButtonOverride=function(p){if(this.computeIsNewUiOrShortDr(p))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.J.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.J.onThumbnailContainerClick=function(p){this.onClick(p)};
_.J.computeThumbnailWidth=function(p,y){return p?y==="MASSIVE"?600:y==="BIG"?500:y==="MEDIUM"?450:420:360};
_.J.attached=function(){var p=this,y;_.n("enable_inline_muted_playback_on_web_search")&&((y=this.data)==null?0:y.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.n("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&p.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){var p;_.n("enable_inline_muted_playback_on_web_search")&&((p=this.data)==null?0:p.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.n("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15264_inlinePreviewHoverListener=qG({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:yNB})};
_.J.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$15264_inlinePreviewHoverListener)==null||W3(p)};
Rf.prototype.dataChanged=Rf.prototype.dataChanged;Rf.prototype.onTap=Rf.prototype.onTap;Rf.JSC$15263_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.g$("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};Rf.JSC$15263_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Rf.JSC$15263_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"}];_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Rf.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Rf.prototype,"ytRendererBehavior",void 0);_.H([_.V(oP),_.x("design:type",Object)],Rf.prototype,"ytdActiveViewBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Rf.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.UW.YtSparklesClickLocationBehavior),_.x("design:type",Object)],Rf.prototype,"ytSparklesClickLocationBehavior",void 0);
_.H([_.rd("#main-container"),_.x("design:type",HTMLElement)],Rf.prototype,"mainContainer",void 0);_.H([_.Q(),_.x("design:type",Object)],Rf.prototype,"isInlinePreviewTriggered",void 0);_.H([_.Q(),_.x("design:type",Object)],Rf.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.n("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],Rf.prototype,"useBiggerThumbs",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.n("enable_video_display_compact_button_group_for_desktop_search")}}),
_.x("design:type",Boolean)],Rf.prototype,"enableShortDR",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.n("enable_vac_ui_update_for_desktop_search")}}),
_.x("design:type",Boolean)],Rf.prototype,"enableUiUpdate",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.$h("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],Rf.prototype,"biggerThumbsStyle",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.x("design:type",Boolean)],Rf.prototype,"showCta",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.x("design:type",Boolean)],Rf.prototype,"isShortDr",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.x("design:type",Boolean)],Rf.prototype,"isShortDrOrNewUi",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.x("design:type",Boolean)],Rf.prototype,"isNewUiAndNotShortDr",void 0);_.H([_.Q({computed:"computeButtonOverride(data)"}),_.x("design:type",Object)],Rf.prototype,"buttonOverride",void 0);_.H([_.Q({computed:"computeSecondaryButtonOverride(data)"}),_.x("design:type",Object)],Rf.prototype,"secondaryButtonOverride",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Rf.prototype,"enableMonoStyle",void 0);
_.H([_.rd("ytd-thumbnail"),_.x("design:type",HTMLElement)],Rf.prototype,"thumbnail",void 0);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Rf.prototype,"onTap",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Rf.prototype,"dataChanged",null);_.H([_.k({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],Rf);
_.D(Rf,"ytd-promoted-video-renderer",function(){if(HbP!==void 0)return HbP;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" on-click="onThumbnailContainerClick" class="style-scope ytd-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div id="metadata-container" class="style-scope ytd-promoted-video-renderer">\n    <div id="text-container" class="style-scope ytd-promoted-video-renderer">\n      <a id="endpoint" class="yt-simple-endpoint style-scope ytd-promoted-video-renderer" data="[[data.navigationEndpoint]]" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick">\n        <div id="meta" class="style-scope ytd-promoted-video-renderer">\n          <div id="title-wrapper" class="style-scope ytd-promoted-video-renderer">\n            \n            <h3 id="video-title" aria-label$="[[data.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-video-renderer">\n              [[getSimpleString(data.title)]]\n            </h3>\n          </div>\n          \n          <span id="description-text" hidden="[[!computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n          <div id="byline" class="style-scope ytd-promoted-video-renderer">\n            <div id="channel-thumbnail-container" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" hidden="[[computeHideAvatar(data)]]" class="style-scope ytd-promoted-video-renderer">\n                <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" class="style-scope ytd-promoted-video-renderer">\n                </yt-img-shadow>\n            </div>\n            <div id="ad-badge-container" hidden="[[!data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              <ytd-badge-supported-renderer top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <ytd-video-meta-block id="ad-badge-metablock" data="[[data]]" class="style-scope ytd-promoted-video-renderer"></ytd-video-meta-block>\n          </div>\n        </div>\n        <span id="description-text" hidden="[[computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n        <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n      </a>\n      <div id="button-container" class="style-scope ytd-promoted-video-renderer">\n        <template is="dom-if" if="[[computeIsShortDR(data)]]" class="style-scope ytd-promoted-video-renderer">\n          <ytd-button-renderer id="secondary-button" data="[[data.watchButtonRenderer.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data)]]" on-click="onWatchButtonClick" class="style-scope ytd-promoted-video-renderer">\n          </ytd-button-renderer>\n        </template>\n        <div id="call-to-action" on-click="onCtaClick" class="style-scope ytd-promoted-video-renderer"></div>\n      </div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-video-renderer"></div>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return HbP=p},{mode:1});var Tjv;var Wo=function(){var p=_.w.apply(this,arguments)||this;p.useRoundedBadge=!0;p.sitelinkIds=[];return p};
_.A(Wo,_.w);_.J=Wo.prototype;
_.J.configureRendererStamper=function(){return{"data.menu":{id:_.n("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.J.dataChanged=function(){var p;(p=this.data)!=null&&p.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Wo.JSC$15269_CLICK_LOCATION_ID_MAP)};
_.J.onTap=function(p){var y,l=(y=this.data)==null?void 0:y.navigationCommand;l&&!_.aW(_.Jx(p),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(l,p,!1)};
_.J.onSitelinkTap=function(p){var y,l,q=p==null?void 0:(y=p.model)==null?void 0:(l=y.item)==null?void 0:l.onTap;q&&this.ytSparklesClickLocationBehavior.handleClick(q,p,!1)};
_.J.configureSitelinkClickTargets=function(){var p=this,y,l,q=(y=this.data)==null?void 0:(l=y.clickLocationTargets)==null?void 0:l.find(function(t){return t.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
q&&_.jR(this.hostElement).querySelectorAll(".sitelink").forEach(function(t){_.nv(t,"yt-simple-endpoint",!0);p.sitelinkIds.push(t.id);var E,e;(E=p.ytSparklesClickLocationBehavior)==null||(e=E.clickTargetMap)==null||e.set(t.id,q)})};
_.J.sendImpression=function(){var p,y,l=((p=this.data)==null?void 0:(y=p.impressionCommand)==null?void 0:y.loggingUrls)||[];p=_.c(l);for(y=p.next();!y.done;y=p.next())y=y.value,y.baseUrl&&y6(y.baseUrl,y.attributionSrcMode)};
_.J.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Jh.Object.defineProperties(Wo.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
Wo.prototype.onTap=Wo.prototype.onTap;Wo.prototype.dataChanged=Wo.prototype.dataChanged;Wo.JSC$15269_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"]]);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Wo.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.UW.YtSparklesClickLocationBehavior),_.x("design:type",Object)],Wo.prototype,"ytSparklesClickLocationBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Wo.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Wo.prototype,"showFavicon",null);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.n("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],Wo.prototype,"useBiggerThumbs",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.$h("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],Wo.prototype,"biggerThumbsStyle",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.n("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.x("design:type",Boolean)],Wo.prototype,"enableThumbnailScalingFix",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wo.prototype,"dataChanged",null);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Wo.prototype,"onTap",null);_.H([_.k({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],Wo);
_.D(Wo,"ytd-text-image-no-button-layout-renderer",function(){if(Tjv!==void 0)return Tjv;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-image-no-button-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n  <div id="text-image-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="media-hover-overlay" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n    <div id="text-image" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-img-shadow id="text-image-favicon" hidden="[[!showFavicon]]" thumbnail="[[data.favicon]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-img-shadow>\n      <h3 id="text-image-title" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.title)]]</h3>\n    </div>\n    <div id="media-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="metadata-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="metadata-body" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-formatted-string id="headline" ellipsis-truncate="" no-endpoints="" text="[[data.headline]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <yt-formatted-string id="description" ellipsis-truncate="" no-endpoints="" text="[[data.description]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <div id="details-line" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <div id="ad-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n        <div id="website-text" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.websiteText)]]</div>\n      </div>\n      <div id="sitelinks-carousel" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <template is="dom-repeat" items="[[data.sitelinks]]" as="item" on-dom-change="configureSitelinkClickTargets" class="style-scope ytd-text-image-no-button-layout-renderer">\n          <div class="sitelink-container style-scope ytd-text-image-no-button-layout-renderer">\n            <yt-formatted-string id="sitelink-[[index]]" class="sitelink style-scope ytd-text-image-no-button-layout-renderer" ellipsis-truncate="" no-endpoints="" role="link" text="[[item.title]]" on-click="onSitelinkTap"></yt-formatted-string>\n          </div>\n        </template>\n      </div>\n    </div>\n    <div id="new-menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Tjv=p},{mode:_.ZS("kevlar_poly_si_batch_j028")?1:2});var xxQ;var af=function(){var p=_.w.apply(this,arguments)||this;p.isInlinePlaybackState=!1;p.uiUpdate=_.n("web_modern_buttons");p.hideCta=_.n("hide_cta_for_home_web_video_ads");p.noBottomMargin=!1;p.animateInTimeStamp=_.UC("hide_cta_for_home_web_video_ads_animate_in_time");p.animateInCta=!1;p.isHovered=!1;p.enableMonoStyle=_.n("enable_default_mono_cta_migration_web_client");p.player=null;p.JSC$15276_playerEvents=new Map;p.JSC$15276_preventProgressSaveTimer=null;p.delayedCtaJobId=null;return p};
_.A(af,_.w);_.J=af.prototype;_.J.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.adCtaButton":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.J.attached=function(){this.JSC$15276_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15276_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.n("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.J.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15276_playerEvents)};
_.J.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",af.JSC$15275_DEFAULT_CLICK_LOCATION_BEHAVIOR,af.JSC$15275_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.J.hoverChanged=function(){var p=this;this.delayedCtaJobId&&(_.TR.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.n("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.D6(_.TR,function(){p.buttonContainer.classList.add("show-delayed-buttons")},_.UC("delayed_cta_on_web_delay_milliseconds")))};
_.J.setPlayer=function(){var p=this,y;return _.h(function(l){if(l.nextAddress==1)return(y=_.jN(p.hostElement,"yt-get-inline-preview-player-action"))&&y[0]?l.yield(y[0].getPlayerPromise(),3):l.jumpTo(0);p.player=l.yieldResult;p.ytPlayerListenerBehavior.listenToPlayerEvents(p.player,p.JSC$15276_playerEvents);_.rR(l)})};
_.J.onPlaybackStart=function(){var p=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15276_preventProgressSaveTimer=_.ZR(_.TR,function(){p.JSC$15276_preventProgressSaveTimer=null},1E4))};
_.J.onVideoProgress=function(p){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&p>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.J.resetPreventProgressSaveTimer=function(){_.TR.cancelJob(this.JSC$15276_preventProgressSaveTimer);this.JSC$15276_preventProgressSaveTimer=null};
_.J.getSimpleString=function(p){return _.JB(p)};
_.J.onClick=function(p){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var y,l=(y=this.data)==null?void 0:y.navigationEndpoint,q;y=(q=this.data)==null?void 0:q.channelEndpoint;var t,E;(q=(E=_.G((t=this.data)==null?void 0:t.adCtaButton,_.yv))==null?void 0:E.command)&&_.aW(_.Jx(p),this.hostElement,["call-to-action"])?_.n("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(q,p,!1):y&&_.aW(_.Jx(p),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(y,p,!1):!_.aW(_.Jx(p),this.hostElement,["secondary-button"])&&l&&(_.n("enable_short_dr_for_desktop_launchable")?(t=!!_.G(l,_.Eb),this.isInlinePlaybackState&&t&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(l,p,t)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(l,p,!0)))}};
_.J.updateWatchEndpointStartTime=function(){var p,y;this.player&&((p=this.data)==null?0:p.inlinePlaybackEndpoint)&&((y=this.data)==null?0:y.navigationEndpoint)&&!this.JSC$15276_preventProgressSaveTimer&&(p=Math.floor(this.player.getCurrentTime()),_.G(this.data.navigationEndpoint,_.Eb).startTimeSeconds=p,_.G(this.data.inlinePlaybackEndpoint,_.Eb).startTimeSeconds=p)};
_.J.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.J.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.Jh.Object.defineProperties(af.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.n("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var p,y;return!((p=this.data)==null||!p.watchButton)&&!((y=this.data)==null||!y.adCtaButton)}}});
af.prototype.hoverChanged=af.prototype.hoverChanged;af.prototype.dataChanged=af.prototype.dataChanged;
af.JSC$15275_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"]]);
af.JSC$15275_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"}];
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],af.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],af.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.UW.YtSparklesClickLocationBehavior),_.x("design:type",Object)],af.prototype,"ytSparklesClickLocationBehavior",void 0);
_.H([_.V(_.c8.YtPlayerListenerBehavior),_.x("design:type",_.eE)],af.prototype,"ytPlayerListenerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],af.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],af.prototype,"isInlinePlaybackState",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],af.prototype,"miniMode",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],af.prototype,"uiUpdate",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],af.prototype,"hideCta",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],af.prototype,"noBottomMargin",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],af.prototype,"animateInCta",void 0);_.H([_.Q({computed:"computeButtonOverride(uiUpdate)"}),_.x("design:type",Object)],af.prototype,"buttonOverride",void 0);
_.H([_.Q({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.x("design:type",Object)],af.prototype,"secondaryButtonOverride",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],af.prototype,"isHovered",void 0);_.H([_.rd("#button-container"),_.x("design:type",HTMLElement)],af.prototype,"buttonContainer",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],af.prototype,"typographyBump",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("typographyBump"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],af.prototype,"typographyBumpV2",null);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],af.prototype,"enableMonoStyle",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],af.prototype,"dataChanged",null);
_.H([_.gd("isHovered"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],af.prototype,"hoverChanged",null);_.H([_.g("data"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],af.prototype,"isButtonGroup",null);_.H([_.k({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],af);
_.D(af,"ytd-ad-inline-playback-meta-block",function(){if(xxQ!==void 0)return xxQ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-inline-playback-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ad-inline-playback-metadata" on-click="onClick" class="style-scope ytd-ad-inline-playback-meta-block">\n  <div id="meta-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <div id="channel-thumbnail-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <a id="avatar-link" class="yt-simple-endpoint style-scope ytd-ad-inline-playback-meta-block" hidden="[[!data.channelThumbnail]]" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" tabindex="-1">\n        <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" width="48" class="style-scope ytd-ad-inline-playback-meta-block">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="info-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <div id="title-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="video-title" text="[[data.title]]" title="[[getSimpleString(data.title)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="menu" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n      <div id="description-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="description" text="[[data.description]]" title="[[getSimpleString(data.description)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="byline-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <div id="badge" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n        <ytd-channel-name id="short-byline-text" channel-name="[[data.shortBylineText]]" no-endpoints="true" wrap-text="true" class="style-scope ytd-ad-inline-playback-meta-block"></ytd-channel-name>\n      </div>\n      <div id="secondary-description-container" aria-hidden="true" hidden="[[!data.secondaryDescription]]" "="" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="secondary-description" text="[[data.secondaryDescription]]" title="[[getSimpleString(data.secondaryDescription)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n    </div>\n  </div>\n  <div id="button-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <template is="dom-if" if="[[data.watchButton.buttonRenderer]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      <ytd-button-renderer id="secondary-button" data="[[data.watchButton.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data.watchButton.buttonRenderer)]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      </ytd-button-renderer>\n    </template>\n    <div id="call-to-action" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return xxQ=p},{mode:_.ZS("kevlar_poly_si_batch_j065")?1:2});var BjB;var mB=function(){var p=_.w.apply(this,arguments)||this;p.noBottomMargin=!1;p.isInlinePreviewTriggered=!1;p.JSC$15281_activeViewMeasurementDataResolver=_.hs();return p};
_.A(mB,_.w);_.J=mB.prototype;_.J.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.attached=function(){var p=this;this.updateInlinePreviewHoverListeners();this.JSC$15281_activeViewMeasurementDataResolver.promise.then(function(y){p.ytdActiveViewBehavior.enableActiveViewMeasurement(y,15)});
_.n("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&p.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){this.clearInlinePreviewHoverListeners();_.n("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15281_inlinePreviewHoverListener=qG({mediaRenderer:this,lockupElement:this.JSC$15281_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:yNB})};
_.J.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$15281_inlinePreviewHoverListener)==null||W3(p)};
_.J.onDataChanged=function(){var p;((p=this.data)==null?0:p.activeView)&&this.JSC$15281_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",mB.JSC$15280_DEFAULT_CLICK_LOCATION_BEHAVIOR,mB.JSC$15280_CLICK_LOCATION_ID_MAP);this.thumbnail&&(p=this.thumbnail.getElementsByTagName("a"),p.length>0&&(p=p.namedItem("thumbnail"))&&p.removeAttribute("href"));var y;if((y=this.data)==
null?0:y.forceImpAutoplay){var l;(l=this.JSC$15281_inlinePreviewHoverListener)==null||Adj(l)}};
_.J.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.J.onThumbnailContainerClick=function(p){if(this.data&&this.data.navigationEndpoint){var y,l=(y=this.data)==null?void 0:y.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(l,p,!!_.G(l,_.Eb));p.stopPropagation()}};
_.J.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.J.impressionLog=function(){var p=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var y,l,q=(l=_.G((y=this.data)==null?void 0:y.onImpression,_.AO))==null?void 0:l.commands;q&&(q.forEach(function(t){t.clickTrackingParams&&delete t.clickTrackingParams;p.ytComponentBehavior.resolveCommand(t)}),this.data.impressionsFired=!0)}};
_.Jh.Object.defineProperties(mB.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$15281_inlinePreviewHoverListener)==null?0:zO(p))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
mB.prototype.onTypographyBumpChanged=mB.prototype.onTypographyBumpChanged;mB.prototype.onDataChanged=mB.prototype.onDataChanged;mB.JSC$15280_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);mB.JSC$15280_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"}];
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],mB.prototype,"ytComponentBehavior",void 0);_.H([_.V(oP),_.x("design:type",Object)],mB.prototype,"ytdActiveViewBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],mB.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],mB.prototype,"ytdDismissibleItemBehavior",void 0);
_.H([_.V(_.EW),_.x("design:type",Object)],mB.prototype,"ytdLockupBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],mB.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.UW.YtSparklesClickLocationBehavior),_.x("design:type",Object)],mB.prototype,"ytSparklesClickLocationBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],mB.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],mB.prototype,"noBottomMargin",void 0);
_.H([_.Q(),_.x("design:type",Object)],mB.prototype,"isInlinePreviewTriggered",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.BV}),_.x("design:type",Boolean)],mB.prototype,"miniMode",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],mB.prototype,"typographyBump",void 0);_.H([_.rd("ytd-thumbnail"),_.x("design:type",HTMLElement)],mB.prototype,"thumbnail",void 0);_.H([_.rd("#dismissible"),_.x("design:type",HTMLElement)],mB.prototype,"JSC$15281_dismissibleMedia",void 0);
_.H([_.rd("ytd-ad-inline-playback-meta-block"),_.x("design:type",HTMLElement)],mB.prototype,"adInlinePlaybackMetaBlock",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mB.prototype,"onDataChanged",null);_.H([_.k8("typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mB.prototype,"onTypographyBumpChanged",null);
_.H([_.g("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],mB.prototype,"isHovered",null);_.H([_.k({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],mB);
_.D(mB,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(BjB!==void 0)return BjB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" typography-bump="[[typographyBump]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return BjB=p},{mode:1});var f4x;var Uo=function(){var p=_.w.apply(this,arguments)||this;p.isInlinePreviewTriggered=!1;p.JSC$15284_activeViewMeasurementDataResolver=_.hs();return p};
_.A(Uo,_.w);_.J=Uo.prototype;_.J.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.attached=function(){var p=this;this.updateInlinePreviewHoverListeners();this.JSC$15284_activeViewMeasurementDataResolver.promise.then(function(y){p.ytdActiveViewBehavior.enableActiveViewMeasurement(y,15)})};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15284_inlinePreviewHoverListener=qG({mediaRenderer:this,lockupElement:this.JSC$15284_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:yNB})};
_.J.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$15284_inlinePreviewHoverListener)==null||W3(p)};
_.J.onDataChanged=function(){var p;((p=this.data)==null?0:p.activeView)&&this.JSC$15284_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Uo.JSC$15283_DEFAULT_CLICK_LOCATION_BEHAVIOR,Uo.JSC$15283_CLICK_LOCATION_ID_MAP);this.thumbnail&&(p=this.thumbnail.getElementsByTagName("a"),p.length>0&&(p=p.namedItem("thumbnail"))&&p.removeAttribute("href"))};
_.J.onThumbnailContainerClick=function(p){if(this.data&&this.data.navigationEndpoint){var y,l=(y=this.data)==null?void 0:y.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(l,p,!0);p.stopPropagation()}};
_.J.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.J.impressionLog=function(){var p=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var y,l,q=(l=_.G((y=this.data)==null?void 0:y.onImpression,_.AO))==null?void 0:l.commands;q&&(q.forEach(function(t){t.clickTrackingParams&&delete t.clickTrackingParams;_.WC().resolve(_.aK).resolveCommand(t,{form:{element:p.hostElement}})}),this.data.impressionsFired=!0)}};
_.Jh.Object.defineProperties(Uo.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$15284_inlinePreviewHoverListener)==null?0:zO(p))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Uo.prototype.onDataChanged=Uo.prototype.onDataChanged;Uo.JSC$15283_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Uo.JSC$15283_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"}];_.H([_.V(oP),_.x("design:type",Object)],Uo.prototype,"ytdActiveViewBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Uo.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],Uo.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.V(_.EW),_.x("design:type",Object)],Uo.prototype,"ytdLockupBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Uo.prototype,"ytdReduxBehavior",void 0);
_.H([_.V(_.UW.YtSparklesClickLocationBehavior),_.x("design:type",Object)],Uo.prototype,"ytSparklesClickLocationBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Uo.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Uo.prototype,"isInlinePreviewTriggered",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.BV}),_.x("design:type",Boolean)],Uo.prototype,"miniMode",void 0);_.H([_.rd("ytd-thumbnail"),_.x("design:type",HTMLElement)],Uo.prototype,"thumbnail",void 0);
_.H([_.rd("#dismissible"),_.x("design:type",HTMLElement)],Uo.prototype,"JSC$15284_dismissibleMedia",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Uo.prototype,"onDataChanged",null);_.H([_.g("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Uo.prototype,"isHovered",null);_.H([_.k({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],Uo);
_.D(Uo,"ytd-video-display-full-buttoned-renderer",function(){if(f4x!==void 0)return f4x;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" class="style-scope ytd-video-display-full-buttoned-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-renderer"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return f4x=p},{mode:1});var GY=function(p,y,l,q){q=q===void 0?!1:q;_.p8.call(this,p);this.adsClientErrorMessage=l;this.aggressivelySample=q;this.args=[];y&&this.args.push(y)};
_.A(GY,_.p8);var bI=function(p,y,l,q){q=q===void 0?!1:q;_.p8.call(this,p);this.adsClientErrorMessage=l;this.aggressivelySample=q;this.args=[];y&&this.args.push(y)};
_.A(bI,_.p8);var v3Z=function(p){_.Sr.call(this);var y=this;this.initializationFunction=p;this.instance=null;this.addOnDisposeCallback(function(){_.er(y.instance);y.instance=null})};
_.A(v3Z,_.Sr);v3Z.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.Rk("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var Yv8=function(){var p=new Map;[].forEach(function(y){p.set(y.JSC$30163_getType(),y)});
this.getters=p};new Promise(function(){});var XA5=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"]]),fwu=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"}]]),Xbi=function(p){this.experimentApiProvider=p;p=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=p<.1};var $_=function(p,y,l,q){_.Sr.call(this);this.adsControlFlowEventListeners=y;this.adEventLogger=l;this.experimentApiProvider=q;this.adsControlFlowManagerHelper=p(this,this,this,this,this);_.P9(this,this.adsControlFlowManagerHelper);p=_.c(y);for(y=p.next();!y.done;y=p.next())_.P9(this,y.value)};
_.A($_,_.Sr);var dxO=function(p,y,l,q){jl(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",y,l,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,q);p=_.c(p.adsControlFlowEventListeners);for(q=p.next();!q.done;q=p.next())dxO(q.value,y,l)};
_.J=$_.prototype;_.J.onOpportunityProcessedExternallyManaged=function(p,y,l,q){jl(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",p,l,y,void 0,void 0,void 0,void 0,void 0,void 0,void 0,q)};
_.J.onSlotReceivedExternallyManaged=function(p,y){bD(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",p,y)};
_.J.onSlotEntered=function(p){if(nZ(this.adsControlFlowManagerHelper,p)!=null){bD(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",p);this.adsControlFlowManagerHelper.onSlotEntered(p);for(var y=_.c(this.adsControlFlowEventListeners),l=y.next();!l.done;l=y.next())l.value.onSlotEntered(p);if(nZ(this.adsControlFlowManagerHelper,p)!=null&&nZ(this.adsControlFlowManagerHelper,p).isOccupyingSlotType()&&G2(this.adsControlFlowManagerHelper,p)&&!ObV(this.adsControlFlowManagerHelper,p)){var q;Po(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",p,(q=G2(this.adsControlFlowManagerHelper,p))!=null?q:void 0);p=nZ(this.adsControlFlowManagerHelper,p);p.slotLifecycleStage!=="entered"&&AP(p.slot,p.slotLifecycleStage,"enterLayoutForSlot");p.slotLifecycleStage="rendering";p.registeredLayoutRenderingAdapter.startRendering(p.layout)}}};
_.J.onSlotExited=function(p){if(nZ(this.adsControlFlowManagerHelper,p)!=null){bD(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",p);this.adsControlFlowManagerHelper.onSlotExited(p);for(var y=_.c(this.adsControlFlowEventListeners),l=y.next();!l.done;l=y.next())l.value.onSlotExited(p);nZ(this.adsControlFlowManagerHelper,p)!=null&&nZ(this.adsControlFlowManagerHelper,p).markedForUnscheduleAfterOutboundAdapterRequests&&o3M(this,p)}};
_.J.onLayoutReceivedExternallyManaged=function(p,y,l){p.managerLayer!=="core"&&Po(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",p,y,l)};
var zwr=function(p,y,l){if(nZ(p.adsControlFlowManagerHelper,y)!=null){Po(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",y,l);p=_.c(p.adsControlFlowEventListeners);for(var q=p.next();!q.done;q=p.next())zwr(q.value,y,l)}};
$_.prototype.onLayoutExited=function(p,y,l){if(nZ(this.adsControlFlowManagerHelper,p)!=null){Po(this.adEventLogger,vYu(l),p,y);this.adsControlFlowManagerHelper.onLayoutExited(p,y);for(var q=_.c(this.adsControlFlowEventListeners),t=q.next();!t.done;t=q.next())t.value.onLayoutExited(p,y,l);(l=G2(this.adsControlFlowManagerHelper,p))&&y.layoutId===l.layoutId&&YR$(this,p)}};
$_.prototype.disposeInternal=function(){var p=I4P(this.adsControlFlowManagerHelper);p=_.c(p);for(var y=p.next();!y.done;y=p.next())o3M(this,y.value);_.Sr.prototype.disposeInternal.call(this)};
var o3M=function(p,y){if(nZ(p.adsControlFlowManagerHelper,y)!=null)if(nZ(p.adsControlFlowManagerHelper,y).JSC$30193_isSlotExitRequested()||nZ(p.adsControlFlowManagerHelper,y).JSC$30193_isLayoutExitRequested())nZ(p.adsControlFlowManagerHelper,y).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(nZ(p.adsControlFlowManagerHelper,y).isOccupyingSlotType())nZ(p.adsControlFlowManagerHelper,y).markedForUnscheduleAfterOutboundAdapterRequests=!0,YR$(p,y);else if(nZ(p.adsControlFlowManagerHelper,y).JSC$30193_isSlotFillRequested())nZ(p.adsControlFlowManagerHelper,
y).markedForUnscheduleAfterOutboundAdapterRequests=!0,nZ(p.adsControlFlowManagerHelper,y)!=null&&(bD(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",y),y=nZ(p.adsControlFlowManagerHelper,y),y.fulfillmentLifecycleStage="fill_cancel_requested",y.registeredFulfillmentAdapter.cancelSlotFilling());else{var l=G2(p.adsControlFlowManagerHelper,y),q;p.experimentApiProvider.get();(q=_.n("h5_enable_layout_unscheduling_events"))&&(l?pDQ(p,y,l):_.Rk(Error("Ih"),y,l,void 0,!1));bD(p.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",y);var t=nZ(p.adsControlFlowManagerHelper,y),E=y.slotEntryTrigger,e=t.registeredSlotEntryTriggerAdapters.get(E.triggerId);e&&(e.unregisterTrigger(E),t.registeredSlotEntryTriggerAdapters.delete(E.triggerId));E=_.c(y.slotFulfillmentTriggers);for(e=E.next();!e.done;e=E.next()){e=e.value;var C=t.registeredFulfillmentTriggerAdapters.get(e.triggerId);C&&(C.unregisterTrigger(e),t.registeredFulfillmentTriggerAdapters.delete(e.triggerId))}E=_.c(y.slotExpirationTriggers);
for(e=E.next();!e.done;e=E.next())if(e=e.value,C=t.registeredExpirationTriggerAdapters.get(e.triggerId))C.unregisterTrigger(e),t.registeredExpirationTriggerAdapters.delete(e.triggerId);t.hasLayout()&&(E=t.layout,KZ(t,E.layoutExitNormalTriggers),KZ(t,E.layoutExitSkipTriggers),KZ(t,E.layoutExitMuteTriggers),KZ(t,E.layoutExitUserInputSubmittedTriggers),KZ(t,E.layoutExitUserCancelledTriggers));t.registeredFulfillmentAdapter=void 0;t.registeredSlotAdapter!=null&&(t.registeredSlotAdapter.release(),t.registeredSlotAdapter=
void 0);t.registeredLayoutRenderingAdapter!=null&&(t.registeredLayoutRenderingAdapter.release(),t.registeredLayoutRenderingAdapter=void 0);t=p.adsControlFlowManagerHelper;nZ(t,y)&&(t=yri(t,y.slotType+"_"+y.slotPhysicalPosition))&&t.delete(y.slotId);bD(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",y);p=_.c(p.adsControlFlowEventListeners);for(t=p.next();!t.done;t=p.next())t=t.value,t.onSlotUnscheduled(y),l&&!q&&pDQ(t,y,l)}},pDQ=function(p,y,l){Po(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
y,l);
Po(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",y,l);p=_.c(p.adsControlFlowEventListeners);for(var q=p.next();!q.done;q=p.next())q=q.value,l&&pDQ(q,y,l)},YR$=function(p,y){if(nZ(p.adsControlFlowManagerHelper,y)!=null&&nZ(p.adsControlFlowManagerHelper,y).isOccupyingSlotType()){var l=G2(p.adsControlFlowManagerHelper,y);
if(l&&ObV(p.adsControlFlowManagerHelper,y)){if(nZ(p.adsControlFlowManagerHelper,y)!=null){var q=p.adEventLogger,t;var E=((t=fwu.get("abandoned"))==null?void 0:t.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";Po(q,E,y,l);p=nZ(p.adsControlFlowManagerHelper,y);p.slotLifecycleStage!=="rendering"&&AP(p.slot,p.slotLifecycleStage,"exitLayout");p.slotLifecycleStage="rendering_stop_requested";p.registeredLayoutRenderingAdapter.stopRendering(l,"abandoned")}}else{bD(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
y);try{q=nZ(p.adsControlFlowManagerHelper,y);if(!q)throw new bI("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");q.slotLifecycleStage!=="enter_requested"&&q.slotLifecycleStage!=="entered"&&q.slotLifecycleStage!=="rendering"&&AP(q.slot,q.slotLifecycleStage,"exitSlot");q.slotLifecycleStage="exit_requested";if(q.registeredSlotAdapter===void 0)throw q.slotLifecycleStage="scheduled",new bI("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
q.registeredSlotAdapter.exit()}catch(e){e instanceof bI&&e.adsClientErrorMessage?(l2Q(p.adEventLogger,e.adsClientErrorMessage,y),_.Rk(e,y,void 0,void 0,e.aggressivelySample)):(l2Q(p.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",y),_.Rk(e,y))}}}};var wh=function(p,y,l,q,t,E){_.Sr.call(this);this.registry=p;this.experimentApiProvider=E;this.slotMap=new Map};
_.A(wh,_.Sr);var yri=function(p,y){return(p=p.slotMap.get(y))?p:new Map},nZ=function(p,y){return yri(p,y.slotType+"_"+y.slotPhysicalPosition).get(y.slotId)},I4P=function(p){var y=[];
p.slotMap.forEach(function(l){l=_.c(l.values());for(var q=l.next();!q.done;q=l.next())y.push(q.value.slot)});
return y};
wh.prototype.onSlotEntered=function(p){p=nZ(this,p);p.slotLifecycleStage!=="enter_requested"&&AP(p.slot,p.slotLifecycleStage,"onSlotEntered");p.slotLifecycleStage="entered"};
var ObV=function(p,y){p=nZ(p,y);return p.hasLayout()&&p.isRendering()},G2=function(p,y){(p=nZ(p,y))?p.hasLayout()&&!p.layout&&_.Rk("Unexpected empty layout",y):_.Rk("Unexpected undefined slotState",y);
return(p==null?void 0:p.layout)||null};
wh.prototype.onSlotExited=function(p){p=nZ(this,p);p.slotLifecycleStage!=="exit_requested"&&AP(p.slot,p.slotLifecycleStage,"onSlotExited");p.slotLifecycleStage="scheduled"};
wh.prototype.onLayoutExited=function(p,y){p=nZ(this,p);p.isPrimaryLayout(y)&&(p.slotLifecycleStage!=="rendering_stop_requested"&&AP(p.slot,p.slotLifecycleStage,"onLayoutExited"),p.slotLifecycleStage="entered")};
var KZ=function(p,y){y=_.c(y);for(var l=y.next();!l.done;l=y.next()){l=l.value;var q=p.registeredLayoutExitTriggerAdapters.get(l.triggerId);q&&(q.unregisterTrigger(l),p.registeredLayoutExitTriggerAdapters.delete(l.triggerId))}},AP=function(p,y,l){_.Rk("Slot stage was "+y+" when calling method "+l,p)};var sRB=function(p){_.Sr.call(this);this.deps=p;this.JSC$15334_adsControlFlowManager=qFO(this)};
_.A(sRB,_.Sr);var qFO=function(p){var y=new $_(function(l,q,t,E){return new wh(p.deps.registry,l,q,t,E,p.deps.experimentApiProvider)},new Set(zqc(p.deps.registry).concat(p.deps.listeners)),p.deps.adEventLogger,p.deps.experimentApiProvider);
_.P9(p,y);return y};var t8i=function(){};var EWU=function(p,y){_.Sr.call(this);this.experimentApiProvider=p;this.eventLoggingSettingsProvider=y;this.eventCount=0;this.premiumAdSeenEventLogger=_.WC().resolve(_.RK(t8i))};
_.A(EWU,_.Sr);EWU.prototype.logEvent=function(p){jl(this,p)};
var bD=function(p,y,l,q){jl(p,y,void 0,void 0,void 0,l,void 0,void 0,void 0,l.adSlotLoggingData,void 0,void 0,q)},Po=function(p,y,l,q,t){jl(p,y,void 0,void 0,void 0,l,q?q:void 0,void 0,void 0,l.adSlotLoggingData,q?q.adLayoutLoggingData:void 0,void 0,t);
l=_.WC().resolve(_.RK(SF))==null?void 0:kn();y=l==null?void 0:l.adsSeenHotConfig;l=l==null?void 0:l.adsHotConfig;(y==null?0:y.logOnAdsSeen)&&(l==null?0:l.webEnablePremiumAdsSeenLogging)&&Jr$(p,q?q:void 0,t)},l2Q=function(p,y,l){jl(p,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,l,void 0,void 0,void 0,l.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:y})},jl=function(p,y,l,q,t,E,e,C,u,a,m,U,b){b=b===void 0?0:b;
cri(p.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+y,"slot:",E,"layout:",e,"ping:",C,"Opportunity:",{opportunityType:l,associatedSlotId:q,slotsFromOpportunity:t,triggerBundle:u,adSlotLoggingData:a,adLayoutLoggingData:m});try{var P=function(){p.experimentApiProvider.get();if(y!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){y||_.Rk("Empty PACF event type",E,e);var Z=p.eventLoggingSettingsProvider.get();var K;(K=Z.alwaysIncludeDebugData)||(Z.experimentApiProvider.get(),K=
!1);Z=K;K={eventType:y,eventOrder:++p.eventCount};var F={};E&&(F.slotData=Oa8(Z,E));if(e){var L={type:e.layoutType,controlFlowManagerLayer:XA5.get(e.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Z&&(L.debugData={layoutId:e.layoutId});F.layoutData=L}C&&(F.pingData={pingDispatchStatus:C.dispatchStatus,serializedAdPingMetadata:C.ping.serializedAdPingMetadata,pingIndex:C.index});u&&(F.triggerData=dgc(u.trigger,u.category));l&&(F.opportunityData=oY5(Z,l,q,t));K.adClientData=F;a&&(K.serializedSlotAdServingData=
a.serializedSlotAdServingDataEntry);m&&(K.serializedAdServingData=m.serializedAdServingDataEntry);U&&(K.errorInfo=U);_.TX("adsClientStateChange",{adsClientEvent:K})}};
b&&b>0?_.rJ(_.B3(),function(){return P()},b):P()}catch(Z){cri(p.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.rJ(_.B3(),function(){_.Rk(Z instanceof Error?Z:String(Z),E,e,{pacf_message:"exception during pacf logging"})})}},Jr$=function(p,y,l){if(y){var q=y.adLayoutLoggingData;
_.rJ(_.B3(),function(){if(p.premiumAdSeenEventLogger!=null){var t=Date.now().toString();q&&_.TX("adsSeenClientLogging",{adsSeenClientLogging:{serializedAdServingDataEntry:q.serializedAdServingDataEntry},eventTimeMs:t})}},l!=null?l:0)}};var eYO=function(p,y){EWU.call(this,p,y)};
_.A(eYO,EWU);var hYU=function(){},cri=function(p,y){return _.n(y)};var uBZ=function(){var p=new C7r;this.JSC$15360_adsControlFlowManager=(new sRB(p)).JSC$15334_adsControlFlowManager},C7r=function(){_.Sr.call(this);
var p=this;this.experimentApiProvider=new v3Z(function(){return new hYU});
var y=new v3Z(function(){return new Xbi(p.experimentApiProvider)});
this.adEventLogger=new eYO(this.experimentApiProvider,y);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.A(C7r,_.Sr);var RY$=function(){},WzM,iD=function(){WzM||(WzM=new RY$);
return WzM},rh=function(p){if(!p.JSC$15371_externallyManagedSlotAdapterCallback){var y=(new uBZ).JSC$15360_adsControlFlowManager;
p.JSC$15371_externallyManagedSlotAdapterCallback=y}return p.JSC$15371_externallyManagedSlotAdapterCallback},a2x=function(p,y,l){var q=y.opportunityType,t=Error("Jh");
if(q!==void 0){var E=rh(p);dxO(E,q,void 0,l)}else _.Rk(t,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});E=[];if(y.adSlotAndLayoutMetadata!==void 0){y=_.c(y.adSlotAndLayoutMetadata);for(var e=y.next();!e.done;e=y.next()){var C=e.value;if(e=C.adSlotMetadata)if(E.push(e),p.onSlotReceivedExternallyManaged(e,l),C.adLayoutMetadata){C=_.c(C.adLayoutMetadata);for(var u=C.next();!u.done;u=C.next())p.onLayoutReceivedExternallyManaged(e,u.value,l)}else l>0&&_.Rk("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
q,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else l>0&&_.Rk("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+q,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else l>0&&_.Rk("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+q,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(q!==void 0)p.onOpportunityProcessedExternallyManaged(q,E,void 0,l);else _.Rk(t,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
RY$.prototype.onSlotReceivedExternallyManaged=function(p,y){p=nF(p);if(p instanceof bI)_.Rk(p,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else rh(this).onSlotReceivedExternallyManaged(p,y)};
RY$.prototype.onLayoutReceivedExternallyManaged=function(p,y,l){p=nF(p);y=Iw_(y);if(p instanceof bI)_.Rk(p,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(y instanceof GY)_.Rk(y,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else rh(this).onLayoutReceivedExternallyManaged(p,y,l)};
RY$.prototype.onOpportunityProcessedExternallyManaged=function(p,y,l,q){var t=[];y=_.c(y);for(var E=y.next();!E.done;E=y.next())E=nF(E.value),E instanceof bI?_.Rk(E,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):t.push(E);rh(this).onOpportunityProcessedExternallyManaged(p,t,l,q)};
var m8U=function(p,y){y=nF(y);if(y instanceof bI)_.Rk(y,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var l=rh(p);bD(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",y);l=_.c(l.adsControlFlowEventListeners);for(var q=l.next();!q.done;q=l.next())q=nZ(q.value,y),q.slotLifecycleStage!=="not_scheduled"&&AP(q.slot,q.slotLifecycleStage,"onSlotScheduled"),q.slotLifecycleStage="scheduled";p=rh(p);bD(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",y);p=_.c(p.adsControlFlowEventListeners);
for(l=p.next();!l.done;l=p.next())l.value.onSlotEntered(y)}},U8U=function(p,y){y=nF(y);
if(y instanceof bI)_.Rk(y,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var l=rh(p);bD(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",y);l=_.c(l.adsControlFlowEventListeners);for(var q=l.next();!q.done;q=l.next())q.value.onSlotExited(y);p=rh(p);bD(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",y);p=_.c(p.adsControlFlowEventListeners);for(l=p.next();!l.done;l=p.next())l.value.onSlotUnscheduled(y)}},$8N=function(p,y,l){y=nF(y);
l=Iw_(l);if(y instanceof bI)_.Rk(y,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(l instanceof GY)_.Rk(l,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var q=rh(p);Po(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",y,l);q=_.c(q.adsControlFlowEventListeners);for(var t=q.next();!t.done;t=q.next())t.value.onLayoutScheduled(y,l);p=rh(p);Po(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",y,l);p=_.c(p.adsControlFlowEventListeners);
for(q=p.next();!q.done;q=p.next())zwr(q.value,y,l)}},Sl=function(p,y,l){y=nF(y);
l=Iw_(l);if(y instanceof bI)_.Rk(y,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(l instanceof GY)_.Rk(l,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var q=rh(p);Po(q.adEventLogger,vYu("normal"),y,l);q=_.c(q.adsControlFlowEventListeners);for(var t=q.next();!t.done;t=q.next())t.value.onLayoutExited(y,l,"normal");p=rh(p);p=_.c(p.adsControlFlowEventListeners);for(q=p.next();!q.done;q=p.next())pDQ(q.value,y,l)}};_.FU=_.aF(function(p){var y=_.RF(p,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});p=Object.assign({},y);var l=y.data;y=y.customCommandResolver;var q=(delete p.data,delete p.customCommandResolver,p);p=_.Ct({visibilityCallback:function(C,u){var a,m=(a=l().interaction)==null?void 0:a.onFirstVisible;C&&(m&&_.tb(m),q.setOnErrorHandler()&&pb5(u))},
showOption:_.mT});y=_.Ew(function(){return l().interaction},y,function(){var C;
return(C=q.listenToTapEvent)==null?void 0:C.call(q)});
var t=_.c(_.nr(!1,void 0,"nqIeMd")),E=t.next().value,e=t.next().value;t=_.Ff(function(C){var u;((u=q.setTouchEndHandler)==null?0:u.call(q))&&!E()&&(C.currentTarget.click(),e(!0),setTimeout(function(){e(!1)},100));
return!1});
return _.R("ad-image-view-model",{class:function(){var C,u=[((C=l().interaction)==null?0:C.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],a;((a=q.isGridViewEnabled)==null?0:a.call(q))&&u.push("ytwAdImageViewModelHostInGridView");return u.join(" ")},
el:_.mR(p,y),"on:touchend":t},_.R("div",{class:"ytwAdImageViewModelHostImageContainer"},_.R(_.W$,{data:function(){var C;return{sources:l().imageSources,contentMode:(C=l().imageProperties)==null?void 0:C.contentMode}},
alt:function(){var C,u;return((C=l().interaction)==null?void 0:(u=C.accessibility)==null?void 0:u.label)||""},
targetHeight:q.targetHeight,targetWidth:q.targetWidth,preserveHeight:q.preserveHeight,preserveWidth:q.preserveWidth,useWidth:q.useWidth,style:function(){var C,u;return"vertical-align: bottom;"+(((C=l().background)==null?0:C.color)?"background-color:"+_.z5((u=l().background)==null?void 0:u.color)+";":"")},
className:function(){return q.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var C,u;return(u=(C=q.setDraggable)==null?void 0:C.call(q))!=null?u:void 0}})))},"nb");var jRU=_.aF(function(p){var y=p.data,l=p.listenToTapEvent,q=function(){};
return _.R("ad-button-hover-overlay-view-model",{"on:click":_.Ff(function(t){if(_.n("enable_web_home_top_landscape_image_layout_legacy_click_command")){var E,e=(E=y().interaction)==null?void 0:E.onTap;e&&_.Ub(t.currentTarget,"yt-navigate",{endpoint:_.yM(e)})}}),
class:function(){var t;return((t=y().interaction)==null?0:t.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.mR(_.Ct({visibilityCallback:function(t){var E,e=(E=y().interaction)==null?void 0:E.onFirstVisible;t&&e&&_.tb(e)},
showOption:_.mT}),_.Ew(function(){return y().interaction},void 0,function(){return!_.n("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(l==null?void 0:l())}))},function(){return _.n("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.R(_.di,{data:function(){return y().button}},{adButtonViewModel:function(t){return _.R(_.$k,{data:t.data,
customCommandResolver:q})}}):_.R(_.di,{data:function(){return y().button}},{adButtonViewModel:_.$k})}())},"ob");var Pn;_.bp(_.aF(function(p){var y=p.data;p=_.Ct({visibilityCallback:function(C,u){if(C){var a;(C=(a=y().interaction)==null?void 0:a.onFirstVisible)&&_.tb(C);var m;if(a=(m=y().adLayoutData)==null?void 0:m.activeViewData)Ay(u,a),_.n("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Zy(u)})}else _.n("stop_av_measurement_on_detach")&&Zy(u)},
showOption:_.mT,hideOption:UQ});var l=_.Ew(function(){return y().interaction},void 0,function(){return!0}),q=_.c(_.nr(!1,void 0,"K1MNM")),t=q.next().value,E=q.next().value;
q=_.Ff(function(){E(!0)});
var e=_.Ff(function(){E(!1)});
return _.R("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.mR(p,JN_,l),"on:mouseenter":q,"on:mouseleave":e},_.R("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.NW({"max-width":function(){return _.n("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.R("div",{class:function(){var C;
a:{var u;switch((C=_.G(y().thumbnailImage,dZV))==null?void 0:(u=C.imageProperties)==null?void 0:u.renderingAspect){case "RENDERING_ASPECT_SQUARE":C="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":C="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}C=void 0}return C}},_.R(_.di,{data:function(){return y().thumbnailImage}},{adImageViewModel:function(C){return _.R(_.FU,
{data:C.data,
listenToTapEvent:!0,setTouchEndHandler:_.n("enable_top_landscape_image_experiment_dom_id_web")})}})),_.R("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.R(_.W,{cond:function(){var C,u,a;
return(C=_.G(y().thumbnailImage,dZV))==null?void 0:(u=C.imageProperties)==null?void 0:(a=u.overlayIcon)==null?void 0:a.iconImage},
then:function(C){return _.R(_.W$,{data:C,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.R("div",{class:function(){return t()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.R(_.di,{data:function(){return y().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(C){return _.R(jRU,
{data:C.data,
listenToTapEvent:!0})}}))),_.R("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.R(_.di,{data:function(){return y().feedAdMetadata}},{feedAdMetadataViewModel:function(C){return _.R(AfP,{data:C.data,
listenToTapEvent:!0,setTouchEndHandler:_.n("enable_top_landscape_image_experiment_dom_id_web")})}})))},"pb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.Co}});_.bp(_.aF(function(p){var y=p.data;p=_.Ct({visibilityCallback:function(C,u){if(C){var a;(C=(a=y().interaction)==null?void 0:a.onFirstVisible)&&_.tb(C);var m;if(a=(m=y().adLayoutData)==null?void 0:m.activeViewData)Ay(u,a),_.n("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Zy(u)})}else _.n("stop_av_measurement_on_detach")&&Zy(u)},
showOption:_.mT,hideOption:UQ});var l=_.yS(_.pX),q=_.Ew(function(){return y().interaction}),t={},E={},e={};
return _.R("square-image-layout-view-model",{class:_.ip("ytwSquareImageLayoutViewModelHost",(t.ytwSquareImageLayoutViewModelHostColumn=l,t)),el:_.mR(p,cNl,q)},_.R("div",{class:_.ip("ytwSquareImageLayoutViewModelHostImage",(E.ytwSquareImageLayoutViewModelHostColumnImage=l,E))},function(){return _.R(_.di,{data:function(){return y().adImage}},{adImageViewModel:function(C){return _.R(_.FU,{data:C.data,
isGridViewEnabled:l,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.R("div",{class:_.ip("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(e.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=l,e))},_.R(_.di,{data:function(){return y().feedAdMetadata}},{feedAdMetadataViewModel:AfP}),function(){return _.R(_.di,{data:function(){return y().adButton}},{adButtonViewModel:function(C){var u={};
return _.R(_.$k,{data:C.data,className:_.ip((u.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,u.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=l,u))})}})}()))},"qb"),"square-image-layout-view-model",{props:{data:_.Co}});_.bp(_.aF(function(p){var y=p.data;var l=p.noBottomMargin;var q=p.typographyBump;p=_.Ct({visibilityCallback:function(U,b){if(U){var P;(U=(P=y().interaction)==null?void 0:P.onFirstVisible)&&_.tb(U);var Z;if(P=(Z=y().adLayoutData)==null?void 0:Z.activeViewData)Ay(b,P),_.n("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Zy(b)})}else _.n("stop_av_measurement_on_detach")&&Zy(b)},
showOption:_.mT,hideOption:UQ});var t=_.Ew(function(){return y().interaction},void 0,function(){return _.n("enable_web_home_top_landscape_image_layout_level_click")}),E=function(){return y().interaction};
E!==void 0&&E!==null||_.ph(Error("Kh"));var e=function(){var U,b,P;return(U=_.G(y().thumbnailImage,dZV))==null?void 0:(b=U.background)==null?void 0:(P=b.backgroundImageSource)==null?void 0:P.imageSources};
E=_.c(_.nr(!1,void 0,"pZPLOd"));var C=E.next().value,u=E.next().value;E=_.Ff(function(){u(!0)});
var a=_.Ff(function(){u(!1)}),m=function(){return C()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.R("top-landscape-image-layout-view-model",{class:function(){var U;return((U=y().interaction)==null?0:U.onTap)&&_.n("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.mR(p,ew8,t),"on:mouseenter":E,"on:mouseleave":a},_.R("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.R(_.W,{cond:function(){return e()&&e().length>0},
then:function(){return _.R("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.NW({top:"0","background-image":function(){return"url("+String(e()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.R(_.W,{cond:function(){return!!y().adButtonHoverOverlay},
then:function(){return _.R("div",{class:m},_.R(_.di,{data:function(){return y().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:jRU}))}}),_.R("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.R(_.di,{data:function(){return y().thumbnailImage}},{adImageViewModel:function(U){return _.R(_.FU,{data:U.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.n("enable_web_home_top_landscape_image_layout_level_click")})}})),_.R("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.R(_.W$,{data:{sources:[{clientResource:{imageName:_.n("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.R("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.R(_.di,{data:function(){return y().feedAdMetadata}},{feedAdMetadataViewModel:function(U){return _.R(AfP,{data:U.data,
noBottomMargin:function(){return l==null?void 0:l()},
listenToTapEvent:function(){return _.n("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return q==null?void 0:q()}})}})))},"rb"),"top-landscape-image-layout-view-model",{props:{data:_.Co,
noBottomMargin:_.Co,typographyBump:_.Co}});_.bp(_.aF(function(p){var y=p.data;var l=p.typographyBump;return _.R("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.mR(_.Ct({visibilityCallback:function(q,t){if(q){var E;(q=(E=y().interaction)==null?void 0:E.onFirstVisible)&&_.tb(q);var e;E=(e=y().adLayoutData)==null?void 0:e.activeViewData;!_.n("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&E&&Ay(t,E)}},
showOption:_.mT,hideOption:UQ}))},_.R("div",null,_.R(_.di,{data:function(){return y().videoLockup}},{lockupViewModel:function(q){return _.R(_.ZX,{data:q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:l})}})))},"sb"),"video-display-button-group-layout-view-model",{props:{data:_.Co,
noBottomMargin:_.Co,typographyBump:_.Co}});_.bp(_.aF(function(p){var y=p.data;var l=p.className;var q=p.typographyBump;return _.R("video-display-compact-button-group-layout-view-model",{el:_.mR(_.Ct({visibilityCallback:function(t,E){if(t){var e;(t=(e=y().interaction)==null?void 0:e.onFirstVisible)&&_.tb(t);var C;(e=(C=y().adLayoutData)==null?void 0:C.activeViewData)&&Ay(E,e)}},
showOption:_.mT})),class:_.ip("videoDisplayCompactButtonGroupLayoutViewModelHost",l)},_.R(_.di,{data:function(){return y().videoLockup}},{lockupViewModel:function(t){return _.R(_.ZX,{data:t.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:q})}}))},"tb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.Co,
className:_.Co,typographyBump:_.Co}});_.bp(_.aF(function(p){var y=p.data;var l=p.className;var q=p.typographyBump;return _.R("video-display-compact-buttoned-layout-view-model",{el:_.mR(_.Ct({visibilityCallback:function(t,E){if(t){var e;(t=(e=y().interaction)==null?void 0:e.onFirstVisible)&&_.tb(t);var C;(e=(C=y().adLayoutData)==null?void 0:C.activeViewData)&&Ay(E,e)}},
showOption:_.mT})),class:_.ip("videoDisplayCompactButtonedLayoutViewModelHost",l)},_.R(_.di,{data:function(){return y().videoLockup}},{lockupViewModel:function(t){return _.R(_.ZX,{data:t.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:q})}}))},"ub"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.Co,
className:_.Co,typographyBump:_.Co}});_.bp(_.aF(function(p){var y=p.data;var l=p.className;var q=p.typographyBump;var t=function(){return y().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},E=_.yS(_.pX);
p=_.Ct({visibilityCallback:function(a,m){if(a){var U=y();a=U.adLayoutData;var b;(U=(b=U.interaction)==null?void 0:b.onFirstVisible)&&_.tb(U);(b=a==null?void 0:a.activeViewData)&&Ay(m,b)}},
showOption:_.mT});var e=_.MA(function(){return{containerType:t()&&E()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"BXJVJ"),C=_.MA(function(){return t()&&E()?"":t()?"168px":"50%"},void 0,"ikSkm"),u=_.MA(function(){return t()&&E()?9999:void 0},void 0,"M8rucc");
return _.R("video-display-compact-layout-view-model",{el:_.mR(p),class:_.ip("videoDisplayCompactLayoutViewModelHost",l)},_.R(_.di,{data:function(){return y().videoLockup}},{lockupViewModel:function(a){return _.R(_.ZX,{data:a.data,
containerLayoutConfig:e,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:C,thumbnailTargetWidth:u,typographyBump:q})}}))},"vb"),"video-display-compact-layout-view-model",{props:{data:_.Co,
className:_.Co,typographyBump:_.Co}});_.bp(_.aF(function(p){var y=p.data;var l=p.typographyBump;return _.R("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.mR(_.Ct({visibilityCallback:function(q,t){if(q){var E;(q=(E=y().interaction)==null?void 0:E.onFirstVisible)&&_.tb(q);var e;E=(e=y().adLayoutData)==null?void 0:e.activeViewData;!_.n("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&E&&Ay(t,E)}},
showOption:_.mT,hideOption:UQ}))},_.R("div",null,_.R(_.di,{data:function(){return y().videoLockup}},{lockupViewModel:function(q){return _.R(_.ZX,{data:q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:l})}})))},"wb"),"video-display-full-layout-view-model",{props:{data:_.Co,
noBottomMargin:_.Co,typographyBump:_.Co}});_.ber=_.aF(function(p){var y=p.data;p=_.sM("ad-card-badge-view-model");return _.R("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:p},_.R(_.W,{cond:function(){return y().imageBadge},
then:function(l){return _.R(_.W$,{data:l,alt:""})}}))},"xb");var nWx=_.aF(function(p){var y=p.data;var l=p.customCommandResolver;return _.R("carousel-ad-card-image-view-model",{class:function(){var q;return((q=y().interaction)==null?0:q.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.mR(_.Ct({visibilityCallback:function(q){var t,E=(t=y().interaction)==null?void 0:t.onFirstVisible;q&&E&&_.tb(E)},
showOption:_.mT}),_.Ew(function(){return y().interaction},l)),
"aria-label":function(){var q,t;return(q=y().interaction)==null?void 0:(t=q.accessibility)==null?void 0:t.label}},_.R(_.di,{data:function(){return y().adImage}},{adImageViewModel:function(q){return _.R(_.FU,{data:q.data,
customCommandResolver:l})}}),_.R("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.R(_.di,{data:function(){return y().badge}},{adCardBadgeViewModel:_.ber})),_.R(_.xS,{model:{color:4}}))},"yb");var GmQ=_.aF(function(p){var y=_.c(_.nr(0,void 0,"o9Bzd")),l=y.next().value;y.next();var q=y.next().value,t=_.c(_.nr(!1,void 0,"KLdzYe"));y=t.next().value;var E=t.next().value,e;_.TP(function(){clearTimeout(e)});
t=_.Ff(function(){var a;((a=p.animate)==null?0:a.call(p))?(E(!0),e=setTimeout(function(){E(!1);C()},200)):C();
return!1});
var C=function(){q(function(a){return(a+p.numShownItems())%p.data().length})},u={};
return _.R("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.R("div",{class:_.ip("ytwHorizontalCarouselCarouselWrapper")},_.R("div",{class:_.ip("ytwHorizontalCarouselCarouselInnerWrapper",(u.ytwHorizontalCarouselAnimating=y,u))},_.R(_.rT,{each:p.data,keyBy:"INDEX"},function(a,m){return _.R("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.NW({"flex-basis":function(){return"calc((100% - (8px * "+(p.numShownItems()-1)+")) / "+p.numShownItems()+")"},
order:function(){var U=m-l();U<0&&(U+=p.data().length);return U}})},p.children(a,m))}))),_.R("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":t},p.nextButton()))},"zb");var P7$=_.aF(function(p){var y=p.data;var l=p.customCommandResolver;var q=p.expansive;return _.R("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.mR(_.Ct({visibilityCallback:function(t){var E,e=(E=y().interaction)==null?void 0:E.onFirstVisible;t&&e&&_.tb(e)},
showOption:_.mT}))},_.R(GmQ,{data:function(){var t;return((t=y())==null?void 0:t.carouselAdCards)||[]},
nextButton:function(){return _.R(_.di,{data:function(){return y().nextButton}},{buttonViewModel:function(t){var E=t.data;
return _.R(_.wZ,{data:function(){return(q==null?0:q())?Object.assign({},E(),{style:"mono"}):E()},
className:_.n("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(t){return _.R(_.di,{data:t},{carouselAdCardImageViewModel:function(E){return _.R(nWx,{data:E.data,customCommandResolver:l})}})}))},"Ab");var ArM=_.aF(function(p){var y=p.data;var l=p.customCommandResolver;var q=p.className;var t=p.buttonClassName;var E=p.animationEntityKey;var e=p.expansive;return _.R("carousel-button-view-model",{class:_.ip("ytwCarouselButtonViewModelHost",q)},_.R(_.di,{data:function(){return y().carousel}},{carouselAdCardCollectionViewModel:function(C){return _.R(P7$,{data:C.data,
customCommandResolver:l,expansive:e})}}),_.R(_.di,{data:function(){return y().button}},{adButtonViewModel:function(C){var u=C.data;
return _.R(_.$k,{data:function(){return(e==null?0:e())?Object.assign({},u(),{style:"AD_BUTTON_STYLE_TONAL"}):u()},
className:t,customCommandResolver:l,animationEntityKey:E})}}))},"Bb");_.Ze$=_.aF(function(p){var y=p.data;p=p.className;var l=_.sM("pivot-button-view-model");_.xZ(function(){var q;((q=y())==null?0:q.backgroundColor)&&l.value.setAttribute("data-background-color",String(y().backgroundColor))});
return _.R("pivot-button-view-model",{el:l,class:_.ip("ytwPivotButtonViewModelHost",p)},_.R(_.sw,{command:function(){var q=y();q=q.onClickCommand?_.yM(q.onClickCommand):q.contentDescription?_.uS(q.contentDescription):void 0;return q},
ariaLabel:function(){return y().contentDescription}},_.R(_.W,{cond:function(){return y().thumbnail},
then:function(q){return _.R(_.W$,{data:q,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.R(_.W,{cond:function(){return y().icon},
then:function(q){return _.R(_.DR,{icon:function(){return q().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Cb");_.M8$=_.aF(function(p){var y=p.data;var l=p.buttonShapeOverrideables;return _.R("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.R(_.di,{data:function(){return y().buttonViewModels}},{buttonViewModel:function(q){return _.R(_.wZ,{data:q.data,
buttonOverrides:l})},
likeButtonViewModel:function(q){return _.R(_.ow,{data:q.data,buttonShapeOverrideables:l})},
dislikeButtonViewModel:function(q){return _.R(_.OW,{data:q.data,buttonShapeOverrideables:l})},
toggleButtonViewModel:function(q){return _.R(_.fo,{data:q.data,buttonShapeOverrides:l})}}))},"Db");var V8P=_.aF(function(p){var y=p.avatar;var l=p.headline;var q=p.badge;var t=p.description;var E=p.expansive;p={};return _.R("yt-ad-metadata-shape",{class:_.ip("ytAdMetadataShapeHost",(p.ytAdMetadataShapeHostLarge=E,p))},_.R("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.R(_.W,{cond:y,then:function(e){return _.R(_.baP,{data:function(){return(E==null?0:E())?Object.assign({},e(),{size:"AD_AVATAR_SIZE_MPLUS"}):e()}})}}),_.R("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.R(_.CF,{text:l,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.R(_.W,{cond:q,then:function(e){return _.R(_.Px,{data:function(){return(E==null?0:E())?Object.assign({},e(),{style:"AD_BADGE_STYLE_STARK"}):e()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.R("h2",{class:"ytAdMetadataShapeHostDescription"},_.R(_.CF,{text:t,
linkInheritColor:!0})))},"Eb");var gWU=_.aF(function(p){var y=p.data;var l=p.onShow;var q=p.expansive;p=_.Ew(function(){return y().interaction});
_.xZ(function(){var E,e=(E=y().animatedRenderingConfig)==null?void 0:E.delayedSecondsToVisible;if(e){var C=setTimeout(l,e*1E3);_.TP(function(){clearTimeout(C)})}});
var t={};return _.R("reels-ad-card-buttoned-view-model",{class:_.ip(function(){var E;return((E=y().interaction)==null?0:E.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(t.ytwReelsAdCardButtonedViewModelHostExpansive=q,t)),
el:_.mR(p)},_.R(V8P,{avatar:function(){return _.G(y().avatar,vCP)},
headline:function(){return y().headline},
badge:function(){return _.G(y().adBadge,XZN)},
description:function(){return y().description},
expansive:q}),_.R(_.di,{data:function(){return y().ctaButton}},{adButtonViewModel:function(E){var e=E.data;
return _.R(_.$k,{data:function(){return(q==null?0:q())?Object.assign({},e(),{style:"AD_BUTTON_STYLE_FILLED"}):e()}})}}))},"Fb");var QRr=_.aF(function(p){var y=p.data;p=p.expansive;var l=_.n("web_ad_metadata_clickable")?_.Ew(function(){return y().interaction},void 0,function(){return _.n("web_ad_metadata_clickable")}):void 0,q={};
q=_.rD("ytwReelsAdMetadataViewModelHost",(q.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.n("web_ad_metadata_clickable"),q));return _.R("reels-ad-metadata-view-model",{class:q,el:_.mR(l)},_.R(V8P,{avatar:function(){return _.G(y().avatar,vCP)},
headline:function(){return y().headline},
badge:function(){return _.G(y().adBadge,XZN)},
description:function(){return y().description},
expansive:p}))},"Gb");var Kzv={iconPosition:"icon-with-label",size:"L"},wDO=_.aF(function(p){var y=p.data;var l=p.overlayDensity;p=_.sM("reels-player-overlay-layout-view-model");var q=_.uy(l,0),t=function(){var U;return(U=y().reelsAdCardButtonedEntityKey)!=null?U:""},E=function(){return t()+"/ad_button"},e=_.So(nb_,t),C=function(){var U,b;
return(b=(U=e())==null?void 0:U.value)!=null?b:!1},u=_.yS(hwc),a=function(){return Object.assign({},Kzv,(u()||q()===2)&&{style:"overlay-dark"})};
l={};var m={};return _.R("reels-player-overlay-layout-view-model",{class:_.ip("ytwReelsPlayerOverlayLayoutViewModelHost",(l.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!y().extension},l.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},l)),
"overlay-density":function(){return String(q())},
el:p},_.R("div",{class:_.ip("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(m.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},m))},_.R("div",{"aria-hidden":function(){return C()},
class:_.ip("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return C()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.NW({"transition-duration":function(){return Wet(y())}})},_.R(_.di,{data:function(){return y().adMetadata}},{reelsAdMetadataViewModel:function(U){return _.R(QRr,{data:U.data,
expansive:function(){return q()===1}})}}),_.R(_.W,{cond:function(){return y().extension},
then:function(U){return _.R("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.R(_.di,{data:U},{adButtonViewModel:function(b){return _.R(_.$k,{data:b.data,animationEntityKey:E,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(b){return _.R(ArM,{data:b.data,animationEntityKey:E,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return q()===1}})}}))}})),_.R("div",{"aria-hidden":function(){return!C()},
class:_.ip("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return C()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.NW({"transition-duration":function(){return Wet(y())}})},_.R(_.di,{data:function(){return y().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(U){return _.R(gWU,{data:U.data,
onShow:function(){_.Cl(_.Fp("booleanEntity",t(),{key:t(),value:!0}))},
expansive:function(){return q()===1}})}}))),_.R("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.R(_.di,{data:function(){return y().actions}},{reelActionBarViewModel:function(U){return _.R(_.M8$,{data:U.data,
buttonShapeOverrideables:a})}}),_.R(_.di,{data:function(){return y().menu}},{buttonViewModel:function(U){return _.R(_.wZ,{data:U.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},a(),{type:"tonal"})}})}}),_.R(_.di,{data:function(){return y().pivotButton}},{pivotButtonViewModel:function(U){return _.R(_.Ze$,{data:U.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Hb");_.bp(wDO,"reels-player-overlay-layout-view-model",{props:{data:_.Co,overlayDensity:_.Co}});var LZ=function(){var p=_.w.apply(this,arguments)||this;p.noBottomMargin=!1;p.overlayDensity=0;return p};
_.A(LZ,_.w);_.J=LZ.prototype;
_.J.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.n("enable_short_dr_for_desktop_launchable")?
{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",
properties:{overlayDensity:"[[overlayDensity]]"}}}}}};
_.J.ready=function(){var p=this;qJ6(function(){p.isAttached&&$F(p.JSC$15414_storedAdSlotMetadata,p.JSC$15414_storedAdLayoutMetadata,p.adSlotMetadata,p.adLayoutMetadata)&&Sl(iD(),p.JSC$15414_storedAdSlotMetadata,p.JSC$15414_storedAdLayoutMetadata)})};
_.J.attached=function(){$F(this.JSC$15414_storedAdSlotMetadata,this.JSC$15414_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&$8N(iD(),this.JSC$15414_storedAdSlotMetadata,this.JSC$15414_storedAdLayoutMetadata)};
_.J.detached=function(){$F(this.JSC$15414_storedAdSlotMetadata,this.JSC$15414_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Sl(iD(),this.JSC$15414_storedAdSlotMetadata,this.JSC$15414_storedAdLayoutMetadata)};
_.J.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.J.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15414_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15414_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15414_storedAdLayoutMetadata!==void 0&&this.JSC$15414_storedAdSlotMetadata!==void 0&&Sl(iD(),this.JSC$15414_storedAdSlotMetadata,this.JSC$15414_storedAdLayoutMetadata),$8N(iD(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15414_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15414_storedAdSlotMetadata=this.adSlotMetadata)};
_.Jh.Object.defineProperties(LZ.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.adLayoutMetadata}}});
LZ.prototype.onAdMetadataChanged=LZ.prototype.onAdMetadataChanged;LZ.prototype.onTypographyBumpChanged=LZ.prototype.onTypographyBumpChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],LZ.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],LZ.prototype,"rendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],LZ.prototype,"ytComponentBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],LZ.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],LZ.prototype,"noBottomMargin",void 0);_.H([_.Q(),_.x("design:type",Object)],LZ.prototype,"overlayDensity",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],LZ.prototype,"typographyBump",void 0);_.H([_.g("data.adLayoutMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],LZ.prototype,"adLayoutMetadata",null);_.H([_.Q(),_.x("design:type",Object)],LZ.prototype,"adSlotMetadata",void 0);
_.H([_.rd("ytd-video-display-full-buttoned-and-button-group-renderer"),_.x("design:type",HTMLElement)],LZ.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.H([_.gd("typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LZ.prototype,"onTypographyBumpChanged",null);_.H([_.gd("adLayoutMetadata","adSlotMetadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LZ.prototype,"onAdMetadataChanged",null);
_.H([_.k({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],LZ);
_.D(LZ,"ytd-in-feed-ad-layout-renderer",function(){if(bbU!==void 0)return bbU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-in-feed-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-in-feed-ad-layout-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return bbU=p},
{mode:_.ZS("kevlar_poly_si_batch_j028")?1:2});var ieO;var rrU;var k_=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return p};
_.A(k_,_.w);_.J=k_.prototype;_.J.computeHasLiveDescription=function(p){return!(p==null||!p.liveDescription)};
_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.J.onYtToggleButton=function(p){var y,l=(y=this.data)==null?void 0:y.videoReminderEntityKey;l&&this.ytdReduxBehavior.dispatch(_.Fp("upcomingEventReminderStateEntity",l,{key:l,state:p.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.J.attached=function(){this.updateChannelBanner()};
_.J.dataChanged=function(){this.updateChannelBanner()};
_.J.videoReminderStateChanged=function(){var p;this.videoReminderState&&_.G((p=this.data)==null?void 0:p.cta,_.lV)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.J.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var p=_.nY(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);p&&(p.startsWith("//")&&(p="https:"+p),this.hostElement.classList.add("channel-banner"),_.Ax(this.hostElement,{"--ytvmh-channel-banner":"url("+p+")"}))}else _.n("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.J.onPlayerReady=function(){this.onIronResize()};
_.J.maybeFlushDebouncer=function(){_.n("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(p){var y;p=(y=p.getElementsByTagName("yt-attributed-string"))==null?void 0:y[0];m3c(p==null?void 0:p.polymerController)})};
_.J.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var p=_.jR(this.hostElement).querySelector("#live-description"),y;p&&((y=this.data)==null?0:y.shortLiveDescription)&&p.clientWidth<p.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
k_.prototype.onIronResize=k_.prototype.onIronResize;k_.prototype.videoReminderStateChanged=k_.prototype.videoReminderStateChanged;k_.prototype.dataChanged=k_.prototype.dataChanged;k_.prototype.onYtToggleButton=k_.prototype.onYtToggleButton;_.H([_.V(_.vG),_.x("design:type",Object)],k_.prototype,"ironResizableBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],k_.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],k_.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],k_.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],k_.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],k_.prototype,"data",void 0);_.H([_.Q({selectorArgs:["data.videoReminderEntityKey"],selector:VQt}),_.x("design:type",Object)],k_.prototype,"videoReminderState",void 0);
_.H([_.Q({reflectToAttribute:!0,value:_.n("web_modern_buttons")}),_.x("design:type",Boolean)],k_.prototype,"rounded",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.x("design:type",Boolean)],k_.prototype,"hasLiveDescription",void 0);_.H([_.Q({reflectToAttribute:!0,value:_.n("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.x("design:type",Boolean)],k_.prototype,"resizableAdBannerSafariFix",void 0);
_.H([_.Q({reflectToAttribute:!0,value:_.n("align_three_dot_menu_with_title_description")}),_.x("design:type",Boolean)],k_.prototype,"menuFix",void 0);_.H([_.SR("yt-formatted-string"),_.x("design:type",Array)],k_.prototype,"formattedStrings",void 0);_.H([_.rd("#cta-button"),_.x("design:type",HTMLElement)],k_.prototype,"ctaButton",void 0);_.H([_.VU("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],k_.prototype,"onYtToggleButton",null);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],k_.prototype,"dataChanged",null);_.H([_.gd("videoReminderState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],k_.prototype,"videoReminderStateChanged",null);_.H([_.VU("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],k_.prototype,"onIronResize",null);
_.H([_.k({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],k_);
_.D(k_,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(rrU!==void 0)return rrU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return rrU=p},{mode:1});var SFV;var No=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};p.isLocked=!1;return p};
_.A(No,_.w);_.J=No.prototype;_.J.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.J.onExpandedChanged=function(){this.expanded&&_.jN(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.J.onMouseOver=function(){this.maybeExpand()};
_.J.onTap=function(){this.maybeExpand()};
_.J.onExpandableTileExpanding=function(p){p!==this&&(this.expanded=!1)};
_.J.onExpandableTileLockAndCollapse=function(p){this.isLocked=!0;p!==this&&(this.expanded=!1)};
_.J.onExpandableTileUnlock=function(){this.isLocked=!1};
No.prototype.onTap=No.prototype.onTap;No.prototype.onMouseOver=No.prototype.onMouseOver;No.prototype.onExpandedChanged=No.prototype.onExpandedChanged;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],No.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],No.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],No.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],No.prototype,"expanded",void 0);_.H([_.k8("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],No.prototype,"onExpandedChanged",null);_.H([_.VU("mouseover"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],No.prototype,"onMouseOver",null);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],No.prototype,"onTap",null);
_.H([_.k({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],No);
_.D(No,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(SFV!==void 0)return SFV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-thumbnail-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" data="[[data.navigationEndpoint]]" aria-hidden="true" tabindex="-1" id="endpoint">\n <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n   <div id="play-button" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n     \n     <svg width="100%" height="100%" viewBox="0 0 68 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n       <path id="play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,0.13,34,0,34,0S12.21,0.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" class="ytp-large-play-button-bg style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" fill="#212121" fill-opacity="0.8"></path>\n       <path d="M 45,24 27,14 27,34" fill="#FFFFFF" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer"></path>\n     </svg>\n   </div>\n </div>\n <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="424" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n </yt-img-shadow>\n    </a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return SFV=p},{mode:1});var Fzr;var Dg=function(){var p=_.w.apply(this,arguments)||this;p.buttonOverrides={style:"overlay"};p.useYtdPlayer=_.n("use_ytd_player_for_desktop_masthead");p.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};p.playbackFinished=!1;p.JSC$15426_playerManager=null;p.JSC$15426_mastheadCounter=new xFN;return p};
_.A(Dg,_.w);_.J=Dg.prototype;_.J.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.J.created=function(){this.JSC$15426_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15426_playerManager=new fI)};
_.J.ready=function(){var p=this;this.JSC$15426_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var y=_.jR(this.hostElement).querySelector("#player");this.useYtdPlayer?y.style.display="none":(this.ytdPlayer.style.display="none",HEQ(this.JSC$15426_playerManager,y,function(){p.onPlaybackEnded()}),_.jR(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var l;
((l=p.data)==null?0:l.navigationEndpoint)&&_.Ub(p.hostElement,"yt-navigate",{endpoint:p.data.navigationEndpoint})}))};
_.J.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15426_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.J.attached=function(){var p=this;_.sU(function(){p.maybePlayVideo()})};
_.J.maybePlayVideo=function(){var p=this;!(this.expanded&&this.isAttached&&this.data&&this.data.videoId)||this.playbackFinished||this.useYtdPlayer&&this.data.disableAutoPlayback||(this.hostElement.classList.add("video-playing"),this.lockAndCollapseExpandableTiles(),this.useYtdPlayer?this.ytdPlayer.play():(this.JSC$15426_playerManager.playVideo(),this.getPlayerPromise().then(function(){p.JSC$15426_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.J.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15426_playerManager.stopVideo()};
_.J.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var p,y={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((p=this.data.playbackStartMs)!=null?p:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(y);this.setupYtdPlayer()}else x3M(this.JSC$15426_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(TvN(this.JSC$15426_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.J.getPlayerPromise=function(){return this.JSC$15426_playerManager.getPlayerPromise()};
_.J.onYtToggleButton=function(p){this.useYtdPlayer?this.toggleMute(p.detail.toggled):p.detail.toggled?this.JSC$15426_playerManager.mute():this.JSC$15426_playerManager.unMute()};
_.J.onYtNavigate=function(p){var y=JVc(p.detail.endpoint),l=cVm(this.data.clickthroughReportingData);y&&l&&(p.detail.endpoint.watchEndpoint?p.detail.tempData=l:_.hO(y,l,30))};
_.J.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.J.onExpandedChanged=function(){this.expanded?(_.jN(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.J.onMouseOver=function(){this.maybeExpand()};
_.J.onTap=function(){this.maybeExpand()};
_.J.onExpandableTileExpanding=function(p){p!==this&&(this.stopVideo(),this.expanded=!1)};
_.J.onExpandableTileLockAndCollapse=function(p){p!==this&&(this.isLocked=!0,this.expanded=!1)};
_.J.onExpandableTileUnlock=function(){this.isLocked=!1};
_.J.lockAndCollapseExpandableTiles=function(){_.$w(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.J.unlockExpandableTiles=function(){_.$w(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.J.setupYtdPlayer=function(){var p=this,y;return _.h(function(l){if(l.nextAddress==1)return l.yield(p.ytdPlayer.getPlayerPromise(),2);y=l.yieldResult;y.addEventListener("onStateChange",function(q){p.onPlayerStateChange(q)});
y.addEventListener("onCueRangeExit",function(q){p.onCueRangeExit(q)});
_.rR(l)})};
_.J.onPlayerStateChange=function(p){if(p===1&&(p=this.ytdPlayer.getPlayer())){var y=p.getCurrentTime(),l,q,t=y+((q=(l=this.data)==null?void 0:l.playbackDurationMs)!=null?q:0)/1E3;p.addCueRange("playback",y,t);this.JSC$15426_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.J.onCueRangeExit=function(p){p==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.J.toggleMute=function(p){var y=this,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(y.ytdPlayer.getPlayerPromise(),2);l=q.yieldResult;p?l.mute():l.unMute();_.rR(q)})};
Dg.prototype.onTap=Dg.prototype.onTap;Dg.prototype.onMouseOver=Dg.prototype.onMouseOver;Dg.prototype.onExpandedChanged=Dg.prototype.onExpandedChanged;Dg.prototype.onYtNavigate=Dg.prototype.onYtNavigate;Dg.prototype.onYtToggleButton=Dg.prototype.onYtToggleButton;Dg.prototype.dataChanged=Dg.prototype.dataChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Dg.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Dg.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Dg.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Dg.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Dg.prototype,"expanded",void 0);_.H([_.Q(),_.x("design:type",Object)],Dg.prototype,"buttonOverrides",void 0);
_.H([_.Q(),_.x("design:type",Object)],Dg.prototype,"useYtdPlayer",void 0);_.H([_.rd("#ytd-player"),_.x("design:type",Object)],Dg.prototype,"ytdPlayer",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dg.prototype,"dataChanged",null);_.H([_.VU("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Dg.prototype,"onYtToggleButton",null);
_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Dg.prototype,"onYtNavigate",null);_.H([_.k8("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dg.prototype,"onExpandedChanged",null);_.H([_.VU("mouseover"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dg.prototype,"onMouseOver",null);
_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dg.prototype,"onTap",null);_.H([_.k({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],Dg);
_.D(Dg,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(Fzr!==void 0)return Fzr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-video-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n  <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <div id="mute-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="replay-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="player-container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-video-tile-renderer" data="[[data.navigationEndpoint]]"></a>\n    <div id="player" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    </ytd-player>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Fzr=p},{mode:1});var LzO;var Ho=function(){return _.w.apply(this,arguments)||this};
_.A(Ho,_.w);Ho.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ho.prototype.onShow=function(){var p=_.jR(this.hostElement).querySelector("#live-description"),y;p&&((y=this.data)==null?0:y.shortLiveDescription)&&p.clientWidth<p.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Ho.prototype.onYtToggleButton=function(p){var y,l=(y=this.data)==null?void 0:y.videoReminderEntityKey;l&&this.ytdReduxBehavior.dispatch(_.Fp("upcomingEventReminderStateEntity",l,{key:l,state:p.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Ho.prototype.videoReminderStateChanged=function(){var p;this.videoReminderState&&_.G((p=this.data)==null?void 0:p.cta,_.lV)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Ho.prototype.videoReminderStateChanged=Ho.prototype.videoReminderStateChanged;Ho.prototype.onYtToggleButton=Ho.prototype.onYtToggleButton;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Ho.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Ho.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Ho.prototype,"data",void 0);
_.H([_.Q({selectorArgs:["data.videoReminderEntityKey"],selector:VQt}),_.x("design:type",Object)],Ho.prototype,"videoReminderState",void 0);_.H([_.VU("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ho.prototype,"onYtToggleButton",null);_.H([_.gd("videoReminderState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ho.prototype,"videoReminderStateChanged",null);
_.H([_.k({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Ho);
_.D(Ho,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(LzO!==void 0)return LzO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="advertiser-info" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  </yt-formatted-string>\n  <div id="byline-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" overlay-ad="true" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-badge-supported-renderer>\n    <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n      <div id="live-description-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="cta-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-toggle-button-renderer>\n  </div>\n</div>\n<div id="menu" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return LzO=p},{mode:_.ZS("kevlar_poly_si_batch_j065")?1:2});var kmQ;var T2=function(){var p=_.w.apply(this,arguments)||this;p.useYtdPlayer=_.n("use_ytd_player_for_desktop_masthead");p.buttonOverrides={style:"overlay"};p.JSC$15434_playerManager=null;p.JSC$15434_mastheadCounter=new xFN;p.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return p};
_.A(T2,_.w);_.J=T2.prototype;_.J.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.J.created=function(){this.JSC$15434_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15434_playerManager=new fI)};
_.J.ready=function(){var p=this;this.JSC$15434_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var y;(y=this.embeddedPlayer)==null||y.remove()}else{var l;(l=this.ytdPlayer)==null||l.remove();HEQ(this.JSC$15434_playerManager,this.embeddedPlayer,function(){p.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){p.data&&p.data.navigationEndpoint&&_.Ub(p.hostElement,"yt-navigate",{endpoint:p.data.navigationEndpoint})})}};
_.J.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15434_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.J.dataChanged=function(){var p=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var y=!this.data.disableAutoPlayback,l,q={autoplay:y,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((l=this.data.playbackStartMs)!=null?l:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(y?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(q);this.setupYtdPlayer()}else x3M(this.JSC$15434_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(TvN(this.JSC$15434_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15434_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.$w(p.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");p.JSC$15434_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.J.getPlayerPromise=function(){return this.JSC$15434_playerManager.getPlayerPromise()};
_.J.onYtToggleButton=function(p){this.useYtdPlayer?this.toggleMute(p.detail.toggled):p.detail.toggled?this.JSC$15434_playerManager.mute():this.JSC$15434_playerManager.unMute()};
_.J.onYtNavigate=function(p){var y=JVc(p.detail.endpoint),l=cVm(this.data.clickthroughReportingData);y&&l&&(p.detail.endpoint.watchEndpoint?p.detail.tempData=l:_.hO(y,l,30))};
_.J.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15434_playerManager.stopVideo()};
_.J.setupYtdPlayer=function(){var p=this,y;return _.h(function(l){if(l.nextAddress==1)return l.yield(p.ytdPlayer.getPlayerPromise(),2);y=l.yieldResult;y.addEventListener("onStateChange",function(q){p.onPlayerStateChange(q)});
y.addEventListener("onCueRangeExit",function(q){p.onCueRangeExit(q)});
_.rR(l)})};
_.J.onPlayerStateChange=function(p){if(p===1&&(p=this.ytdPlayer.getPlayer())){var y=p.getCurrentTime(),l,q,t=y+((q=(l=this.data)==null?void 0:l.playbackDurationMs)!=null?q:0)/1E3;p.addCueRange("playback",y,t);_.$w(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15434_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.J.onCueRangeExit=function(p){p==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.J.toggleMute=function(p){var y=this,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(y.ytdPlayer.getPlayerPromise(),2);l=q.yieldResult;p?l.mute():l.unMute();_.rR(q)})};
_.Jh.Object.defineProperties(T2.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var p,y;if(!((p=this.data)==null?0:(y=p.accessibilityData)==null?0:y.label))return"Ad primary link";var l,q;return _.g$("AD_TITLE",{title:(l=this.data)==null?void 0:(q=l.accessibilityData)==null?void 0:q.label})}}});
T2.prototype.onYtMastheadHidden=T2.prototype.onYtMastheadHidden;T2.prototype.onYtNavigate=T2.prototype.onYtNavigate;T2.prototype.onYtToggleButton=T2.prototype.onYtToggleButton;T2.prototype.dataChanged=T2.prototype.dataChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],T2.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],T2.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],T2.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],T2.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],T2.prototype,"useYtdPlayer",void 0);_.H([_.rd("ytd-toggle-button-renderer"),_.x("design:type",Object)],T2.prototype,"muteButton",void 0);_.H([_.Q(),_.x("design:type",Object)],T2.prototype,"buttonOverrides",void 0);
_.H([_.g("data.accessibilityData.label"),_.x("design:type",String),_.x("design:paramtypes",[])],T2.prototype,"titleAriaLabel",null);_.H([_.rd("#replay-button"),_.x("design:type",Object)],T2.prototype,"replayButton",void 0);_.H([_.rd("#player-container"),_.x("design:type",Object)],T2.prototype,"playerContainer",void 0);_.H([_.rd("#player"),_.x("design:type",Object)],T2.prototype,"embeddedPlayer",void 0);_.H([_.rd("#ytd-player"),_.x("design:type",Object)],T2.prototype,"ytdPlayer",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],T2.prototype,"dataChanged",null);_.H([_.VU("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],T2.prototype,"onYtToggleButton",null);_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],T2.prototype,"onYtNavigate",null);
_.H([_.VU("yt-masthead-hidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],T2.prototype,"onYtMastheadHidden",null);_.H([_.k({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],T2);
_.D(T2,"ytd-video-masthead-ad-primary-video-renderer",function(){if(kmQ!==void 0)return kmQ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="overlay" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <div id="mute-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="replay-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<div id="player-container" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-primary-video-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"></a>\n  <div id="player" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  </ytd-player>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return kmQ=p},{mode:2});var Nov;var x_=function(){var p=_.w.apply(this,arguments)||this;p.collapsed=!1;p.impressionResolver=_.hs();p.JSC$15438_activeViewMeasurementDataResolver=_.hs();p.actionMap={"yt-mute-ad-action":"handleMuteAd"};return p};
_.A(x_,_.w);_.J=x_.prototype;_.J.configureRendererStamper=function(){return{"data.expandableTiles":{id:"expandable-tile-container",mapping:{videoMastheadAdExpandableThumbnailTileRenderer:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",videoMastheadAdExpandableVideoTileRenderer:"ytd-video-masthead-ad-expandable-video-tile-renderer"}},"data.showAdRenderer":{id:"show-ad",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.ready=function(){var p=this;_.jR(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){p.expandAd()});
this.hostElement.addEventListener("yt-action",function(y){if(y.detail.actionName==="yt-service-request"){var l=y.detail.args[1];l.videoMastheadAdMuteCommand&&(p.collapseAd(l.videoMastheadAdMuteCommand.encryptedMastheadId),y.stopPropagation())}})};
_.J.attached=function(){var p=this;_.sU(function(){p.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(y){if(!p.collapsed){y=_.c(y);for(var l=y.next();!l.done;l=y.next())l=l.value,y6(l.baseUrl,l.attributionSrcMode);p.data.impressionCommand=void 0}});
this.JSC$15438_activeViewMeasurementDataResolver.promise.then(function(y){p.ytdActiveViewBehavior.enableActiveViewMeasurement(y,15)});
_.n("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&p.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.dataChanged=function(){var p;((p=this.data.impressionCommand)==null?0:p.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var y;((y=this.data)==null?0:y.activeView)&&this.JSC$15438_activeViewMeasurementDataResolver.resolve(this.data.activeView);(p=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(p.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.J.computeWidescreen=function(p){var y;return!!(p&&((y=_.G(p,HjZ))==null?0:y.isWidescreen))};
_.J.computeExpandable=function(p){return!!(p&&p.length>0)};
_.J.onIronResize=function(){if(this.expandable){var p=_.jR(this.hostElement).querySelector("#expandable-tile-container :first-child");p&&!p.expanded&&(p.expanded=!0)}};
_.J.handleMuteAd=function(){this.collapseAd(null)};
_.J.restoreCollapsedState=function(p){this.collapsed=_.w$().get("HIDDEN_MASTHEAD_ID")===p};
_.J.collapseAd=function(p){if(p){var y=_.w$();y.set("HIDDEN_MASTHEAD_ID",p);y.save()}(p=_.jR(this.hostElement).querySelector("#video"))&&_.Ub(p,"yt-masthead-hidden");this.collapsed=!0};
_.J.expandAd=function(){var p=_.w$();p.set("HIDDEN_MASTHEAD_ID",!1);p.save();location.reload()};
_.J.detached=function(){_.n("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
x_.prototype.onIronResize=x_.prototype.onIronResize;x_.prototype.dataChanged=x_.prototype.dataChanged;_.H([_.V(_.vG),_.x("design:type",Object)],x_.prototype,"ironResizableBehavior",void 0);_.H([_.V(oP),_.x("design:type",Object)],x_.prototype,"ytdActiveViewBehavior",void 0);_.H([_.V(_.yd),_.x("design:type",Object)],x_.prototype,"ytdGridStateAwareBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],x_.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],x_.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],x_.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],x_.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.x("design:type",Boolean)],x_.prototype,"widescreen",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.x("design:type",Boolean)],x_.prototype,"expandable",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],x_.prototype,"collapsed",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x_.prototype,"dataChanged",null);
_.H([_.VU("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x_.prototype,"onIronResize",null);_.H([_.k({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],x_);
_.D(x_,"ytd-video-masthead-ad-v3-renderer",function(){if(Nov!==void 0)return Nov;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-v3-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n  <div id="video-overlay" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-primary-video-overlay-renderer data="[[data.primaryVideoOverlay.videoMastheadAdPrimaryVideoOverlayRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-primary-video-overlay-renderer>\n  </div>\n  <template is="dom-if" if="[[data.primaryVideo]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <div id="video-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <ytd-video-masthead-ad-primary-video-renderer id="video" data="[[data.primaryVideo.videoMastheadAdPrimaryVideoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      </ytd-video-masthead-ad-primary-video-renderer>\n    </div>\n  </template>\n  <div id="expandable-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-advertiser-info-renderer data="[[data.advertiserInfo.videoMastheadAdAdvertiserInfoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-advertiser-info-renderer>\n    <div id="compact-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <template is="dom-repeat" items="[[data.compactVideoTiles]]" as="tile" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        <ytd-thumbnail data="[[tile.videoMastheadAdCompactVideoTileRenderer]]" width="210" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        </ytd-thumbnail>\n      </template>\n    </div>\n  </div>\n  <div id="show-ad" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Nov=p},{mode:2});var Bo=function(){return _.w.apply(this,arguments)||this};
_.A(Bo,_.w);_.J=Bo.prototype;_.J.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.J.ready=function(){var p=this;qJ6(function(){p.isAttached&&$F(p.JSC$15443_storedAdSlotMetadata,p.JSC$15443_storedAdLayoutMetadata,p.adSlotMetadata,p.adLayoutMetadata)&&Sl(iD(),p.JSC$15443_storedAdSlotMetadata,p.JSC$15443_storedAdLayoutMetadata)})};
_.J.attached=function(){$F(this.JSC$15443_storedAdSlotMetadata,this.JSC$15443_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&$8N(iD(),this.JSC$15443_storedAdSlotMetadata,this.JSC$15443_storedAdLayoutMetadata)};
_.J.detached=function(){$F(this.JSC$15443_storedAdSlotMetadata,this.JSC$15443_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Sl(iD(),this.JSC$15443_storedAdSlotMetadata,this.JSC$15443_storedAdLayoutMetadata)};
_.J.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15443_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15443_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15443_storedAdLayoutMetadata!==void 0&&this.JSC$15443_storedAdSlotMetadata!==void 0&&Sl(iD(),this.JSC$15443_storedAdSlotMetadata,this.JSC$15443_storedAdLayoutMetadata),$8N(iD(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15443_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15443_storedAdSlotMetadata=this.adSlotMetadata)};
_.Jh.Object.defineProperties(Bo.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.adLayoutMetadata}}});
Bo.prototype.onAdMetadataChanged=Bo.prototype.onAdMetadataChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Bo.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Bo.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Bo.prototype,"data",void 0);_.H([_.g("data.adLayoutMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bo.prototype,"adLayoutMetadata",null);
_.H([_.Q(),_.x("design:type",Object)],Bo.prototype,"adSlotMetadata",void 0);_.H([_.gd("adLayoutMetadata","adSlotMetadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bo.prototype,"onAdMetadataChanged",null);_.H([_.k({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Bo);
_.D(Bo,"ytd-page-top-ad-layout-renderer",function(){if(ieO!==void 0)return ieO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-top-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-page-top-ad-layout-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return ieO=
p},{mode:_.ZS("kevlar_poly_si_batch_j070")?1:2});var D8x;var fZ=function(){var p=_.w.apply(this,arguments)||this;p.noBottomMargin=!1;p.overlayDensity=0;p.typographyBump=!1;return p};
_.A(fZ,_.w);_.J=fZ.prototype;
_.J.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.J.ready=function(){var p=this;qJ6(function(){p.isAttached&&p.adSlotMetadata&&U8U(iD(),p.adSlotMetadata)})};
_.J.attached=function(){if(this.adSlotMetadata){var p;if(this.adSlotMetadata===((p=this.data)==null?void 0:p.adSlotMetadata))m8U(iD(),this.adSlotMetadata);else{var y;_.vs(Error("Lh`"+this.adSlotMetadata+"`"+((y=this.data)==null?void 0:y.adSlotMetadata)))}}};
_.J.detached=function(){this.adSlotMetadata&&U8U(iD(),this.adSlotMetadata)};
_.J.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.J.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&U8U(iD(),this.adSlotMetadata),m8U(iD(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Jh.Object.defineProperties(fZ.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var p,y,l=_.G((p=this.data)==null?void 0:(y=p.fulfillmentContent)==null?void 0:y.fulfilledLayout,_.xZQ),q;return(p=(q=_.G(l==null?void 0:l.renderingContent,THV))==null?void 0:q.layout)?p.toLowerCase().replace(/_/g,"-"):""}}});
fZ.prototype.onAdSlotMetadataChanged=fZ.prototype.onAdSlotMetadataChanged;fZ.prototype.onTypographyBumpChanged=fZ.prototype.onTypographyBumpChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],fZ.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],fZ.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],fZ.prototype,"rendererBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],fZ.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],fZ.prototype,"noBottomMargin",void 0);_.H([_.Q(),_.x("design:type",Object)],fZ.prototype,"overlayDensity",void 0);_.H([_.Q(),_.x("design:type",Object)],fZ.prototype,"typographyBump",void 0);_.H([_.rd("ytd-in-feed-ad-layout-renderer"),_.x("design:type",HTMLElement)],fZ.prototype,"inFeedAdLayoutRenderer",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",String),_.x("design:paramtypes",[])],fZ.prototype,"layout",null);_.H([_.gd("typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fZ.prototype,"onTypographyBumpChanged",null);_.H([_.gd("data.adSlotMetadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fZ.prototype,"onAdSlotMetadataChanged",null);
_.H([_.k({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],fZ);
_.D(fZ,"ytd-ad-slot-renderer",function(){if(D8x!==void 0)return D8x;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="fulfilled-layout" class="style-scope ytd-ad-slot-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return D8x=p},{mode:_.ZS("kevlar_poly_si_batch_j077")?
1:2});var HeB;var vo=function(){return _.w.apply(this,arguments)||this};
_.A(vo,_.w);_.J=vo.prototype;_.J.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"},params:{noDotAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.J.maybeComputeHref=function(p){return _.n("enable_handle_watch_endpoint_click_for_vdc")?null:this.ytComponentBehavior.computeOptionalHref_(p)};
_.J.onTap=function(){_.n("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&Og6(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.J.onThumbnailContainerClick=function(p){this.onClick(p)};
_.J.onClick=function(p){if(_.n("enable_handle_watch_endpoint_click_for_vdc")){var y,l=(y=this.data)==null?void 0:y.navigationEndpoint;l&&_.G(l,_.Eb)&&(this.ytSparklesClickLocationBehavior.handleClick(l,p,!1),p.stopPropagation())}};
_.J.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var p=_.c(this.data.impressionUrls),y=p.next();!y.done;y=p.next())y=y.value,tm5(y,Jlg(y));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);_.n("enable_handle_watch_endpoint_click_for_vdc")&&(this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",vo.JSC$15451_DEFAULT_CLICK_LOCATION_BEHAVIOR,vo.JSC$15451_CLICK_LOCATION_ID_MAP),this.thumbnail&&(p=this.thumbnail.getElementsByTagName("a"),
p.length>0&&(p=p.namedItem("thumbnail"))&&p.removeAttribute("href")))}};
_.J.attached=function(){var p=this;_.n("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&p.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){_.n("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Jh.Object.defineProperties(vo.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.n("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.n("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
vo.prototype.dataChanged=vo.prototype.dataChanged;vo.prototype.onTap=vo.prototype.onTap;vo.JSC$15451_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
vo.JSC$15451_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"}];_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],vo.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);_.H([_.V(oP),_.x("design:type",Object)],vo.prototype,"ytdActiveViewBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],vo.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],vo.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.UW.YtSparklesClickLocationBehavior),_.x("design:type",Object)],vo.prototype,"ytSparklesClickLocationBehavior",void 0);
_.H([_.Q({selector:_.pX}),_.x("design:type",Object)],vo.prototype,"isGridViewEnabled",void 0);_.H([_.g("isGridViewEnabled"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],vo.prototype,"watchFeedBigThumbs",null);_.H([_.g("isGridViewEnabled"),_.Q({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],vo.prototype,"thumbnailWidth",null);_.H([_.Q(),_.x("design:type",Object)],vo.prototype,"data",void 0);
_.H([_.rd("ytd-thumbnail"),_.x("design:type",HTMLElement)],vo.prototype,"thumbnail",void 0);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vo.prototype,"onTap",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vo.prototype,"dataChanged",null);_.H([_.k({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],vo);
_.D(vo,"ytd-compact-promoted-video-renderer",function(){if(HeB!==void 0)return HeB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return HeB=p},{mode:1});var ToZ;_.ox("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var XU=function(){return _.w.apply(this,arguments)||this};
_.A(XU,_.w);XU.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],XU.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],XU.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],XU.prototype,"data",void 0);_.H([_.k({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],XU);
_.D(XU,"ytd-search-pyv-renderer",function(){if(ToZ!==void 0)return ToZ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-pyv-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-search-pyv-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return ToZ=p},{mode:1});var x8Q;_.ox("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var dh=function(){var p=_.w.apply(this,arguments)||this;p.roundedContainer=!0;p.JSC$15459_handleOpenPostCommentDialogActionAfterStamp=!1;p.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return p};
_.A(dh,_.w);_.J=dh.prototype;
_.J.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{shouldHideAuthor:"[[isInEngagementPanel]]",shouldShowVideoTime:"[[isInEngagementPanel]]",shouldShowMenuInCompactView:"[[isInEngagementPanel]]",isInEngagementPanel:"[[isInEngagementPanel]]",usesFullLockup:"[[usesFullLockup]]",hideBorder:"[[hideBorder]]"}},postRenderer:"ytd-post-renderer",sharedPostRenderer:{component:"ytd-shared-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}}}},
"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.J.onStampFinished=function(){this.JSC$15459_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.J.handleSignalActionOpenPostCommentDialogAction=function(){var p=_.jR(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");p?p.openDialog():this.JSC$15459_handleOpenPostCommentDialogActionAfterStamp=!0};
_.J.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.J.computeHideBorder=function(){return this.isInEngagementPanel};
_.J.computeIsCompact=function(){return this.isInEngagementPanel};
_.J.computeUsesCompactLockup=function(p){return p==="BACKSTAGE_SURFACE_TYPE_HOME"||p==="BACKSTAGE_SURFACE_TYPE_SEARCH"||p==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||p==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||p==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||p==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.J.computeUsesFullLockup=function(){var p,y=(p=this.data)==null?void 0:p.post,l;p=(l=_.G(y,IIM))==null?void 0:l.surface;var q;l=(q=_.G(y,lOr))==null?void 0:q.originalPost;var t;if(q=p||((t=_.G(l,IIM))==null?void 0:t.surface))return!this.computeUsesCompactLockup(q)&&this.useUpdatedRepostUi;var E;return((E=_.G(y,lOr))==null?void 0:E.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Jh.Object.defineProperties(dh.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var p,y;return((y=_.G((p=this.data)==null?void 0:p.post,IIM))==null?void 0:y.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.useUpdatedRepostUi}}});
dh.prototype.onYtCommentModerationPanelEmpty=dh.prototype.onYtCommentModerationPanelEmpty;dh.prototype.onStampFinished=dh.prototype.onStampFinished;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],dh.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],dh.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],dh.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],dh.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],dh.prototype,"roundedContainer",void 0);_.H([_.Q({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.x("design:type",Boolean)],dh.prototype,"hideBorder",void 0);_.H([_.Q({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.x("design:type",Boolean)],dh.prototype,"isCompact",void 0);
_.H([_.Q({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.x("design:type",Boolean)],dh.prototype,"usesFullLockup",void 0);_.H([_.VU("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dh.prototype,"onStampFinished",null);
_.H([_.VU("ytd-comment-moderation-panel-empty"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],dh.prototype,"onYtCommentModerationPanelEmpty",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],dh.prototype,"isInEngagementPanel",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],dh.prototype,"useUpdatedRepostUi",null);
_.H([_.k({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],dh);
_.D(dh,"ytd-backstage-post-thread-renderer",function(){if(x8Q!==void 0)return x8Q;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="post" hidden="[[!data.post]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comments-disabled" hidden="[[!data.commentsDisabledMessage]]" class="style-scope ytd-backstage-post-thread-renderer">[[getSimpleString(data.commentsDisabledMessage)]]</div>\n<div id="moderation-panel" hidden="[[!data.moderationPanel]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comment-dialog" hidden="[[!data.commentDialog]]" class="style-scope ytd-backstage-post-thread-renderer"></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return x8Q=p},{mode:1});var BoU;var Oo=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.A(Oo,_.w);Oo.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
Oo.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var p=this.data.thumbnail.thumbnails;this.isDarkTheme&&(p=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(p=_.nY(p,24,void 0,"height"))?p:void 0}};
Oo.prototype.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
Oo.prototype.computeHasText=function(){var p;return!((p=this.data)==null||!p.text)};
_.Jh.Object.defineProperties(Oo.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.XX(this.bannerImageUrl))+'");'}}});
Oo.prototype.computeHasText=Oo.prototype.computeHasText;Oo.prototype.computeBannerImageUrl=Oo.prototype.computeBannerImageUrl;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Oo.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Oo.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],Oo.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Oo.prototype,"isDarkTheme",void 0);_.H([_.Q(),_.x("design:type",String)],Oo.prototype,"bannerImageUrl",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.x("design:type",Boolean)],Oo.prototype,"hasText",void 0);_.H([_.gd("data","isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Oo.prototype,"computeBannerImageUrl",null);
_.H([_.gd("data.text"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Oo.prototype,"computeHasText",null);_.H([_.g("bannerImageUrl"),_.x("design:type",Object),_.x("design:paramtypes",[])],Oo.prototype,"bannerStyle",null);_.H([_.k({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],Oo);
_.D(Oo,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(BoU!==void 0)return BoU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-prefilled-post-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" hidden="[[!bannerImageUrl]]" style$="[[bannerStyle]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n</div>\n<div id="message" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n  <p id="title" hidden="[[!getSimpleString(data.title)]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.title)]]</p>\n  <p id="text" hidden="[[!hasText]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.text)]]</p>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return BoU=p},{mode:1});var f2Q;var of=function(){return _.w.apply(this,arguments)||this};
_.A(of,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],of.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],of.prototype,"data",void 0);_.H([_.k({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],of);
_.D(of,"ytd-backstage-zero-state-renderer",function(){if(f2Q!==void 0)return f2Q;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="backstage:artwork" class="style-scope ytd-backstage-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<span id="text" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.text)]]</span>\n<yt-formatted-string id="link" force-default-style="" text="[[data.link]]" class="style-scope ytd-backstage-zero-state-renderer"></yt-formatted-string>\n<span id="footer" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.footer)]]</span>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return f2Q=p},{mode:1});var vWV;var z2=function(){return _.w.apply(this,arguments)||this};
_.A(z2,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],z2.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],z2.prototype,"data",void 0);_.H([_.Q({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],z2.prototype,"icon",void 0);_.H([_.k({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],z2);
_.D(z2,"ytd-post-filter-zero-state-renderer",function(){if(vWV!==void 0)return vWV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-filter-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-container" class="style-scope ytd-post-filter-zero-state-renderer"><yt-icon id="icon" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-filter-zero-state-renderer"></yt-icon></div>\n<div id="title" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.subtitle)]]</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return vWV=p},{mode:1});var XDO;var d8Z={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},Y_=function(){return _.w.apply(this,arguments)||this};
_.A(Y_,_.w);Y_.prototype.configureRendererStamper=function(){return d8Z};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Y_.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Y_.prototype,"rendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Y_.prototype,"data",void 0);_.H([_.Q({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],Y_.prototype,"icon",void 0);_.H([_.k({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],Y_);
_.D(Y_,"ytd-post-scheduling-zero-state-renderer",function(){if(XDO!==void 0)return XDO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-scheduling-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-scheduling-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-post-scheduling-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<div id="schedule-button" class="style-scope ytd-post-scheduling-zero-state-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return XDO=p},{mode:1});var OeO;var If=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return p};
_.A(If,_.w);If.prototype.onTabsActivate=function(p){this.data&&this.data.tabs&&_.Ub(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[p.detail.selected].navigationEndpoint})};
If.prototype.shouldShowTotalCount=function(p){return p&&p.totalCount!==void 0};
If.prototype.handleUpdatePostsTotalCountAction=function(p){var y=this.get(["data.tabs",1,"totalCount"]),l=this.get("updatePostsTotalCountAction.updateType",p);p=this.get("updatePostsTotalCountAction.number",p);y!==void 0&&l!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&p&&(l==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(y)+p):l==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(y)-p))};
_.Jh.Object.defineProperties(If.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var p=0,y=this.data.tabs.length;p<y;p++)if(this.data.tabs[p].selected)return p;return 0}}});
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],If.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],If.prototype,"rendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],If.prototype,"data",void 0);_.H([_.g("data.tabs"),_.x("design:type",Number),_.x("design:paramtypes",[])],If.prototype,"selected",null);_.H([_.k({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],If);
_.D(If,"ytd-post-stream-filter-renderer",function(){if(OeO!==void 0)return OeO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-stream-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-container" class="style-scope ytd-post-stream-filter-renderer">\n  <tp-yt-paper-tabs selected="[[selected]]" on-iron-activate="onTabsActivate" class="style-scope ytd-post-stream-filter-renderer">\n    <template is="dom-repeat" items="[[data.tabs]]" class="style-scope ytd-post-stream-filter-renderer">\n      <tp-yt-paper-tab class="style-scope ytd-post-stream-filter-renderer">\n        [[getSimpleString(item.title)]]\n        <template is="dom-if" if="[[shouldShowTotalCount(item)]]" class="style-scope ytd-post-stream-filter-renderer">\n          <span class="posts-count style-scope ytd-post-stream-filter-renderer">[[item.totalCount]]</span>\n        </template>\n      </tp-yt-paper-tab>\n    </template>\n  </tp-yt-paper-tabs>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return OeO=p},{mode:1});var oWx;var pE=function(){return _.w.apply(this,arguments)||this};
_.A(pE,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],pE.prototype,"kevlarBehaviors",void 0);_.H([_.Q(),_.x("design:type",Object)],pE.prototype,"data",void 0);_.H([_.k({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],pE);
_.D(pE,"ytd-channel-age-gate-renderer",function(){if(oWx!==void 0)return oWx;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-age-gate-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-age-gate-renderer">\n  <div id="channel-container" class="style-scope ytd-channel-age-gate-renderer">\n    <div id="channel" class="style-scope ytd-channel-age-gate-renderer">[[data.channelTitle]]</div>\n    <yt-img-shadow thumbnail="[[data.avatar]]" width="144" class="style-scope ytd-channel-age-gate-renderer"></yt-img-shadow>\n  </div>\n  <div id="info" class="style-scope ytd-channel-age-gate-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <yt-formatted-string text="[[data.mainText]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <ytd-button-renderer align-by-text="" data="[[data.signInButton.buttonRenderer]]" class="style-scope ytd-channel-age-gate-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string text="[[data.secondaryText]]" class="style-scope ytd-channel-age-gate-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return oWx=p},{mode:1});var zYZ;_.ox("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var yr=function(){var p=_.w.apply(this,arguments)||this;p.data=null;return p};
_.A(yr,_.w);yr.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Jh.Object.defineProperties(yr.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return((p=this.data)==null?0:(y=p.title)==null?0:(l=y.runs)==null?0:l.length)?147:160}}});
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],yr.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],yr.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],yr.prototype,"imageSizePx",null);_.H([_.k({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],yr);
_.D(yr,"ytd-channel-owner-empty-state-renderer",function(){if(zYZ!==void 0)return zYZ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-owner-empty-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container ytd-channel-owner-empty-state-renderer style-scope ytd-channel-owner-empty-state-renderer">\n  <div class="illustration style-scope ytd-channel-owner-empty-state-renderer">\n    <yt-img-shadow height="[[imageSizePx]]" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-owner-empty-state-renderer">\n    <div class="header style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.title]]">\n      <h2 class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string id="title" class="header-title style-scope ytd-channel-owner-empty-state-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="description style-scope ytd-channel-owner-empty-state-renderer">\n      <yt-formatted-string id="description" class="description-text style-scope ytd-channel-owner-empty-state-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n      <div class="button-layer style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.uploadVideoButton]]">\n        <span id="upload-video-button" class="style-scope ytd-channel-owner-empty-state-renderer"></span>\n      </div>\n    <div class="learn-more style-scope ytd-channel-owner-empty-state-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-owner-empty-state-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return zYZ=p},{mode:1});var YFB;var I2U;var lF=function(){var p=_.w.apply(this,arguments)||this;p.boundSubmitSearch=function(){p.submitSearch()};
p.boundClearSearch=function(){p.clearSearch()};
return p};
_.A(lF,_.w);_.J=lF.prototype;_.J.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmitSearch]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundClearSearch]]"}}}}}};
_.J.toggleClearButton=function(){this.hideClearButton=gVo||!this.input.value};
_.J.submitOnEnterKeyUp=function(p){p.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.J.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.J.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.J.submit=function(){_.Ub(this.hostElement,"search-query-changed",this.input.value)};
lF.prototype.toggleClearButton=lF.prototype.toggleClearButton;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],lF.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],lF.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],lF.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],lF.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],lF.prototype,"hideClearButton",void 0);_.H([_.Q(),_.x("design:type",Object)],lF.prototype,"boundSubmitSearch",void 0);_.H([_.Q(),_.x("design:type",Object)],lF.prototype,"boundClearSearch",void 0);_.H([_.rd("#input"),_.x("design:type",Object)],lF.prototype,"input",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lF.prototype,"toggleClearButton",null);
_.H([_.k({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],lF);
_.D(lF,"ytd-channel-switcher-search-box-renderer",function(){if(I2U!==void 0)return I2U;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="input" auto-validate="true" autocomplete="off" error-message="[[getSimpleString(data.invalidQueryErrorMessage)]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="100" minlength="3" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-channel-switcher-search-box-renderer">\n  <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n  <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n</tp-yt-paper-input>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return I2U=p},{mode:1});var par;var q3=function(){var p=_.w.apply(this,arguments)||this;p.boundSubmit=function(){p.submit()};
return p};
_.A(q3,_.w);_.J=q3.prototype;_.J.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmit]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.J.ready=function(){var p=this;this.form.addEventListener("submit",function(y){return p.onSubmit(y)})};
_.J.onSubmit=function(p){p.preventDefault();return!1};
_.J.toggleClearButton=function(){this.hideClearButton=gVo||!this.input.value};
_.J.submitOnEnterKeyUp=function(p){p.keyCode===13&&this.submit()};
_.J.submit=function(){var p=this.data.endpoint,y=(0,_.Ts.unsafeClone)(p);_.G(y,_.wC)?_.G(y,_.wC).query=this.input.value:_.G(y,_.iS)&&(_.G(y,_.iS).query=this.input.value);var l=_.G(y.commandMetadata,_.ul);(l==null?0:l.url)?(l.url=_.OL(l.url,"query",this.input.value),_.Ub(this.hostElement,"yt-navigate",{endpoint:y})):_.G(y,FCO)?(_.G(y,FCO).channelSwitcherQuery=this.input.value,_.WC().resolve(_.aK).resolveCommand(y,{form:{element:this.hostElement}})):(p=Error("Mh`"+JSON.stringify(p)),_.Bs(p))};
_.J.getUrl=function(p){return this.get("commandMetadata.webCommandMetadata.url",p)};
q3.prototype.toggleClearButton=q3.prototype.toggleClearButton;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],q3.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],q3.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],q3.prototype,"hideClearButton",void 0);
_.H([_.Q(),_.x("design:type",Object)],q3.prototype,"boundSubmit",void 0);_.H([_.rd("#form"),_.x("design:type",HTMLFormElement)],q3.prototype,"form",void 0);_.H([_.rd("#input"),_.x("design:type",Object)],q3.prototype,"input",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],q3.prototype,"toggleClearButton",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],q3);
_.D(q3,"ytd-search-box-renderer",function(){if(par!==void 0)return par;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-search-box-renderer"></div>\n    <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-search-box-renderer"></div>\n  </tp-yt-paper-input>\n</form>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return par=p},{mode:2});var sN=function(){var p=_.w.apply(this,arguments)||this;p.showSearchBox=!0;return p};
_.A(sN,_.w);sN.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],sN.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],sN.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],sN.prototype,"showSearchBox",void 0);_.H([_.k({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],sN);
_.D(sN,"ytd-channel-switcher-header-renderer",function(){if(YFB!==void 0)return YFB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-channel-switcher-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-channel-switcher-header-renderer"></yt-formatted-string>\n</h2>\n<div id="search-box" hidden="[[!showSearchBox]]" class="style-scope ytd-channel-switcher-header-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return YFB=p},{mode:1});var y3r;var lfx;var t$=function(){var p=_.w.apply(this,arguments)||this;p.isDisplayed=!0;return p};
_.A(t$,_.w);_.J=t$.prototype;_.J.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.dataChanged=function(){this.isDisplayed=!0};
_.J.computeType=function(p){return p||"UNKNOWN"};
_.J.onYtServiceRequestCompleted=function(p){p.stopPropagation();this.isDisplayed=!1};
_.J.onClose=function(){this.isDisplayed=!1};
t$.prototype.onYtServiceRequestCompleted=t$.prototype.onYtServiceRequestCompleted;t$.prototype.dataChanged=t$.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],t$.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],t$.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],t$.prototype,"data",void 0);
_.H([_.Q({computed:"computeType(data.type)",reflectToAttribute:!0}),_.x("design:type",String)],t$.prototype,"type",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],t$.prototype,"isDisplayed",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],t$.prototype,"dataChanged",null);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],t$.prototype,"onYtServiceRequestCompleted",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],t$);
_.D(t$,"ytd-alert-with-button-renderer",function(){if(lfx!==void 0)return lfx;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-alert-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-alert-with-button-renderer"></yt-formatted-string>\n<div id="buttons" class="style-scope ytd-alert-with-button-renderer">\n  <div id="button" class="style-scope ytd-alert-with-button-renderer"></div>\n  <div id="dismiss-button" on-click="onClose" class="style-scope ytd-alert-with-button-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return lfx=p},{mode:1});var EN=function(){var p=_.w.apply(this,arguments)||this;p.noResult=!1;p.enableAlertBanner=!1;p.dismissedAlertBanner=!1;p.hideCreateChannelButton=!1;p.boundDismissAlertBanner=function(){p.dismissAlertBanner()};
p.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return p};
_.A(EN,_.w);_.J=EN.prototype;_.J.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.J.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.J.updateChannelSwitcherAction=function(p){var y;p=(y=_.G(p,M2P))==null?void 0:y.page;_.G(p,Z2$)!==void 0&&(this.data=_.G(p,Z2$))};
_.J.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{channelSwitcherHeaderRenderer:"ytd-channel-switcher-header-renderer"}},"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}},accountItemRenderer:"ytd-account-item-renderer",continuationItemRenderer:"ytd-continuation-item-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundDismissAlertBanner]]"}}}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.J.searchQueryChanged=function(p,y){if(this.data&&this.data.contents&&this.data.contents.length){p=[];var l=[];this.hideCreateChannelButton=this.noResult=!1;for(var q=document.querySelectorAll("ytd-account-item-renderer"),t=_.c(q),E=t.next();!E.done;E=t.next())E=E.value,l.push(E),E.style.display="block";this.resetRightBorder(l);if(y){this.hideCreateChannelButton=!0;for(l=1;l<this.data.contents.length;l++)if(E=this.data.contents[l],_.G(E,ijv)){var e=void 0,C=void 0;t=(e=_.G(E,ijv))==null?void 0:(C=
e.accountName)==null?void 0:C.simpleText;C=e=void 0;E=(e=_.G(E,ijv))==null?void 0:(C=e.channelHandle)==null?void 0:C.simpleText;(e=q[l-1])&&t&&_.u_(t,y)?p.push(e):_.n("enable_handle_search_on_channel_switcher")&&e&&E&&_.u_(E.toString(),y.toString())?p.push(e):e.style.display="none"}p.length===0&&(this.noResult=!0);this.resetRightBorder(p)}}};
_.J.resetRightBorder=function(p){for(var y=0;y<p.length;y++)p[y].style.borderRight=!this.hideCreateChannelButton&&(y+2)%3===0||this.hideCreateChannelButton&&(y+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.J.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.J.setShowSearchBox=function(p){if(p&&p.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var y=0;y<p.contents.length;y++)_.G(p.contents[y],_.aA)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.J.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Jh.Object.defineProperties(EN.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null?0:p.contents)}}});
EN.prototype.onContinuationItemsUpdated=EN.prototype.onContinuationItemsUpdated;EN.prototype.searchQueryChanged=EN.prototype.searchQueryChanged;EN.prototype.onDataChanged=EN.prototype.onDataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],EN.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],EN.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.tP),_.x("design:type",Object)],EN.prototype,"ytContinuationHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],EN.prototype,"data",void 0);_.H([_.rd("ytd-channel-switcher-header-renderer"),_.x("design:type",Object)],EN.prototype,"channelSwitcherHeaderRenderer",void 0);_.H([_.Q(),_.x("design:type",Object)],EN.prototype,"noResult",void 0);
_.H([_.Q(),_.x("design:type",Object)],EN.prototype,"enableAlertBanner",void 0);_.H([_.Q(),_.x("design:type",Object)],EN.prototype,"dismissedAlertBanner",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],EN.prototype,"hideCreateChannelButton",void 0);_.H([_.g("data.contents"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],EN.prototype,"isLoading",null);_.H([_.Q(),_.x("design:type",Object)],EN.prototype,"boundDismissAlertBanner",void 0);
_.H([_.Q({computed:"computeButtonOverride()"}),_.x("design:type",Object)],EN.prototype,"buttonOverride",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EN.prototype,"onDataChanged",null);_.H([_.VU("search-query-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,String]),_.x("design:returntype")],EN.prototype,"searchQueryChanged",null);
_.H([_.VU("yt-next-continuation-data-updated"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],EN.prototype,"onContinuationItemsUpdated",null);_.H([_.k({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],EN);
_.D(EN,"ytd-channel-switcher-page-renderer",function(){if(y3r!==void 0)return y3r;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-page-renderer"></div>\n<div id="body" class="style-scope ytd-channel-switcher-page-renderer">\n  <div class="spinner-container style-scope ytd-channel-switcher-page-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-switcher-page-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n  <div id="alert" hidden="[[!enableAlertBanner]]" class="style-scope ytd-channel-switcher-page-renderer">\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-channel-switcher-page-renderer"></yt-formatted-string>\n      <div id="dismiss-button" class="style-scope ytd-channel-switcher-page-renderer"></div>\n  </div>\n  <div id="contents" class="style-scope ytd-channel-switcher-page-renderer"></div>\n</div>\n<yt-formatted-string id="no-result" hidden="[[!noResult]]" text="[[data.noResult]]" class="style-scope ytd-channel-switcher-page-renderer">\n</yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return y3r=p},{mode:1});var qzi;var s3U;var J$=function(){var p=_.w.apply(this,arguments)||this;p.images=[];p.selectedImageIndex=0;return p};
_.A(J$,_.w);_.J=J$.prototype;
_.J.ready=function(){_.BL(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.BL(this.JSC$15504_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.BL(this.JSC$15504_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.BL(this.JSC$15504_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.J.onThumbnailClick=function(p){if(p=p.event_.detail)this.selectedImageIndex=this.images.indexOf(p)};
_.J.updateImageThumbnails=function(p){p=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:p.event_.detail});this.images.splice(this.selectedImageIndex,1,p);this.images=[].concat(_.xq(this.images))};
_.J.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Ub(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.J.saveImageRepositions=function(){this.selectedImageIndex=0;_.Ub(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Jh.Object.defineProperties(J$.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var p=this;return(this.images||[]).map(function(y,l){return{image:y,selected:l===p.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],J$.prototype,"ytRendererstamperBehavior",void 0);_.H([_.rd("ytd-backstage-image-preview-renderer"),_.x("design:type",Object)],J$.prototype,"JSC$15504_imagePreviewContainer",void 0);_.H([_.rd(".thumbnail-images-container"),_.x("design:type",HTMLElement)],J$.prototype,"thumbnailImagesContainer",void 0);_.H([_.Q(),_.x("design:type",Array)],J$.prototype,"images",void 0);
_.H([_.Q(),_.x("design:type",Object)],J$.prototype,"repositionInstructions",void 0);_.H([_.Q(),_.x("design:type",Object)],J$.prototype,"selectedImageIndex",void 0);_.H([_.g("images","selectedImageIndex"),_.x("design:type",Array),_.x("design:paramtypes",[])],J$.prototype,"thumbnailRendererDatas",null);_.H([_.g("images","selectedImageIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],J$.prototype,"selectedImageData",null);
_.H([_.k({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],J$);
_.D(J$,"ytd-backstage-multi-image-reposition-renderer",function(){if(s3U!==void 0)return s3U;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-reposition-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="image-reposition-container style-scope ytd-backstage-multi-image-reposition-renderer">\n  <div class="thumbnail-images-container style-scope ytd-backstage-multi-image-reposition-renderer">\n    <template is="dom-repeat" items="[[thumbnailRendererDatas]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n      <div class="image-thumbnail style-scope ytd-backstage-multi-image-reposition-renderer">\n        <ytd-backstage-multi-image-thumbnail-renderer id="thumbnail-renderer" data="[[item]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n        </ytd-backstage-multi-image-thumbnail-renderer>\n      </div>\n    </template>\n  </div>\n  <div class="image-reposition style-scope ytd-backstage-multi-image-reposition-renderer">\n    <ytd-backstage-image-preview-renderer edit-only-mode="" image-data="[[selectedImageData]]" instruction="[[repositionInstructions]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return s3U=p},{mode:1});var cT=function(p,y){_.Fn.call(this);this.uploadUrl=p;this.channelId=y;this.imagesUploadData=[]};
_.A(cT,_.Fn);cT.prototype.getAllUploadStatuses=function(){var p=this,y,l,q;return _.h(function(t){if(t.nextAddress==1)return t.yield(tLN(p),2);y=t.yieldResult;l=y.get("succeed");q=y.get("failed");return t.return(l.concat(q))})};
var J3Z=function(p){var y,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(tLN(p),2);y=q.yieldResult;l=y.get("failed");l.length>0&&EAv(p,l);return q.return(p.getAllUploadStatuses())})},tLN=function(p){var y,l,q,t,E,e,C;
return _.h(function(u){if(u.nextAddress==1)return y=new Map,u.yield(Promise.allSettled(p.imagesUploadData.map(function(a){return a.uploadPromise})),2);
l=u.yieldResult;q=[];t=_.c(l);for(E=t.next();!E.done;E=t.next())e=E.value,e.status==="fulfilled"&&q.push(e.value);C=p.imagesUploadData.map(function(a){return a.image}).filter(function(a){return q.every(function(m){return m.id!==a.id})});
y.set("succeed",q);y.set("failed",C);return u.return(y)})},EAv=function(p,y){y=_.c(y);
for(var l=y.next();!l.done;l=y.next()){var q=p;l=l.value;c3i(q,l.id)>=0&&q.cancel(l.id);var t=new ePO(l),E=_.bjr(q.uploadUrl,{"X-YouTube-ChannelId":q.channelId},l.imageBlob);t.transfer=E;t.uploadPromise=hPQ(E,l);q.imagesUploadData.push(t);E.run()}};
cT.prototype.cancel=function(p){var y=c3i(this,p);y!==-1&&((y=this.imagesUploadData[y].transfer)&&y.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(l){return l.image.id!==p}))};
var c3i=function(p,y){return p.imagesUploadData.findIndex(function(l){return l.image.id===y})},hPQ=function(p,y){return new Promise(function(l,q){p.listen("l",function(){var t=p.getResponseText();
t?(t=JSON.parse(t).encryptedBlobId,y.encryptedBlobId=t,l(y)):q("upload failed")});
p.listen("n",function(){q("upload failed")})})},ePO=function(p){this.image=p};var a4u=function(p,y,l,q,t){this.id=p;this.imageBlob=y;this.localImageSrc=l;this.naturalWidth=q;this.naturalHeight=t;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 Csv=[".jpeg",".jpg",".png"],ea=function(){var p=_.w.apply(this,arguments)||this;p.showImagesPreview=!1;p.pollOptions=[];p.errorMessage="";p.optionPlaceholderText="";p.optionDefaultText="";p.JSC$15515_imageId=0;p.maxFileSizeMb=0;p.maxAspectRatio=0;p.invalidFileSizeError="";p.invalidAspectRatioError="";p.invalidFileTypeError="";p.imageSelector=new ge(null,"single_file",Csv);return p};
_.A(ea,_.w);_.J=ea.prototype;_.J.ready=function(){_.BL(this.imageSelector,"j",this.onImageSelect,!1,this);_.BL(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.BL(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.J.dataChanged=function(){var p,y,l=_.G((p=this.data)==null?void 0:(y=p.cellTemplate)==null?void 0:y.onEmptyCellTap,V1B);if(l&&l.uploadUrl&&l.channelId){var q;this.maxFileSizeMb=((q=l.imageValidationInfo)==null?void 0:q.maxFileSizeMb)||0;var t;this.maxAspectRatio=((t=l.imageValidationInfo)==null?void 0:t.allowedMaxAspectRatio)||0;var E;this.invalidFileSizeError=this.getSimpleString((E=this.data)==null?void 0:E.invalidFileSizeError);var e;this.invalidAspectRatioError=this.getSimpleString((e=this.data)==
null?void 0:e.invalidAspectRatioError);var C;this.invalidFileTypeError=this.getSimpleString((C=this.data)==null?void 0:C.invalidFileTypeError);this.uploadManager=new cT(l.uploadUrl,l.channelId)}};
_.J.onEditorInfoChange=function(){this.optionPlaceholderText=_.JB(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.JB(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.J.observeAddImageError=function(){this.errorMessage!==""&&_.Ub(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.J.onPollOptionsChange=function(){for(var p=!1,y=[],l=0;l<this.pollOptions.length;l++){var q=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(l+1);this.pollOptions[l].placeholderText!==q?(p=!0,y.push(Object.assign({},this.pollOptions[l],{placeholderText:q}))):y.push(this.pollOptions[l])}p&&(this.pollOptions=y);this.isValid()?_.Ub(this.hostElement,"yt-commentbox-post-enable"):_.Ub(this.hostElement,"yt-commentbox-post-disable")};
_.J.createPollOptions=function(p){var y=[],l;p=(l=p==null?void 0:p.minPollOptions)!=null?l:0;for(l=0;l<p;l++)y.push(this.createPollOption());return y};
_.J.onImageSelect=function(p){var y=this,l,q,t,E,e,C;return _.h(function(u){if(u.nextAddress==1){if(y.selectedImageIndex===void 0)return u.jumpTo(0);l=p.files[0];y.errorMessage="";q=y.validateImage(l);if(q!=="")return y.errorMessage=q,u.return();t=new Cw(y.maxAspectRatio,!1,!0);return u.yield(t.transform(l),3)}if(u.nextAddress!=4)return E=u.yieldResult,E.transformedData?E.invalidAspectRatio?(y.errorMessage=y.invalidAspectRatioError,u.return()):u.yield(mxu(y.JSC$15515_imageId,p.files[0],E.transformedData),
4):(y.errorMessage=y.invalidFileTypeError,u.return());e=u.yieldResult;y.JSC$15515_imageId++;EAv(y.uploadManager,[e]);C=Object.assign({},y.pollOptions[y.selectedImageIndex],{image:e});y.pollOptions.splice(y.selectedImageIndex,1,C);y.refreshPollOptions();_.Ub(y.hostElement,"yt-backstage-poll-image-select");_.rR(u)})};
_.J.validateImage=function(p){return p.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.J.refreshPollOptions=function(){this.pollOptions=[].concat(_.xq(this.pollOptions))};
_.J.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.xq(this.pollOptions),[this.createPollOption()]))};
_.J.onRemovePollOption=function(p){var y=this.pollOptions[p.model.index];y&&y.image&&this.uploadManager.cancel(y.image.id);this.pollOptions.splice(p.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Ub(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.J.onTextInput=function(){this.refreshPollOptions()};
_.J.onImageButtonClick=function(p){this.selectedImageIndex=p.model.index;this.imageSelector.click()};
_.J.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.J.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.J.saveImageRepositions=function(p){p=p.event_.detail;for(var y=0,l=[],q=_.c(this.pollOptions),t=q.next();!t.done;t=q.next())t=t.value,t.image!==void 0?(t=Object.assign({},t,{image:p[y]}),l.push(t),y++):l.push(t);this.showImagesPreview=!1;this.pollOptions=[].concat(_.xq(l))};
_.J.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var p=0,y=_.c(this.pollOptions),l=y.next();!l.done;l=y.next())if(l=l.value,l.optionText.trim()!==""||l.image!==void 0){if(!l.image||this.hasCustomOptionText&&l.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;p++}return p>=Number(this.editorInfo.minPollOptions)};
_.J.getAllUploadStatuses=function(){var p=this,y,l,q,t;return _.h(function(E){if(E.nextAddress==1)return E.yield(p.uploadManager.getAllUploadStatuses(),2);y=E.yieldResult;l=_.c(y);for(q=l.next();!q.done;q=l.next())if(t=q.value,t.encryptedBlobId===void 0)return E.return(J3Z(p.uploadManager));return E.return(y)})};
_.J.getPostCreateOptions=function(){for(var p=[],y=_.c(this.pollOptions),l=y.next();!l.done;l=y.next())l=l.value,l.image!==void 0&&p.push({text:this.hasCustomOptionText?l.optionText:l.placeholderText,image:l.image});return p};
_.J.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.J.createButtonRenderer=function(p,y){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:p,accessibilityData:{accessibilityData:{label:this.getSimpleString(p)}},isDisabled:y}};
_.J.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.J.computeThumbnailRendererData=function(p){return p?{image:p,selected:!1}:void 0};
_.J.getSimpleString=function(p){return _.JB(p)};
_.J.updateOptionTextFromBinding=function(p){if(p.target){var y=Array.from(_.jR(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(p.target);if(y>=0){var l;this.pollOptions[y].optionText=(l=p.detail.value)!=null?l:""}}};
_.Jh.Object.defineProperties(ea.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var p,y;return this.pollOptions.length<((y=(p=this.editorInfo)==null?void 0:p.maxPollOptions)!=null?y:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(p){return p.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(p){return p.image}).map(function(p){return p.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(p){return p.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var p,y=(p=this.data)==null?void 0:p.addOptionButtonText;return y?this.createButtonRenderer(y,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var p,y=(p=this.data)==null?void 0:p.repositionImagesButtonLabel;return y?this.createButtonRenderer(y,!this.hasImages):void 0}}});
ea.prototype.onPollOptionsChange=ea.prototype.onPollOptionsChange;ea.prototype.observeAddImageError=ea.prototype.observeAddImageError;ea.prototype.onEditorInfoChange=ea.prototype.onEditorInfoChange;ea.prototype.dataChanged=ea.prototype.dataChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ea.prototype,"ytRendererstamperBehavior",void 0);_.H([_.rd("ytd-backstage-multi-image-reposition-renderer"),_.x("design:type",Object)],ea.prototype,"imageRepositionContainer",void 0);
_.H([_.Q(),_.x("design:type",Object)],ea.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],ea.prototype,"editorInfo",void 0);_.H([_.Q(),_.x("design:type",cT)],ea.prototype,"uploadManager",void 0);_.H([_.Q(),_.x("design:type",Object)],ea.prototype,"showImagesPreview",void 0);_.H([_.Q(),_.x("design:type",Array)],ea.prototype,"pollOptions",void 0);_.H([_.Q(),_.x("design:type",Object)],ea.prototype,"errorMessage",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ea.prototype,"dataChanged",null);_.H([_.k8("editorInfo"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ea.prototype,"onEditorInfoChange",null);_.H([_.gd("errorMessage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ea.prototype,"observeAddImageError",null);
_.H([_.k8("pollOptions"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ea.prototype,"onPollOptionsChange",null);_.H([_.g("pollOptions","editorInfo"),_.x("design:type",Object),_.x("design:paramtypes",[])],ea.prototype,"isAllowedToAddOption",null);_.H([_.g("pollOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],ea.prototype,"hasImages",null);
_.H([_.g("pollOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],ea.prototype,"imagesToReposition",null);_.H([_.g("pollOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],ea.prototype,"hasCustomOptionText",null);_.H([_.g("data","isAllowedToAddOption"),_.x("design:type",Object),_.x("design:paramtypes",[])],ea.prototype,"addOptionButton",null);_.H([_.g("data","hasImages"),_.x("design:type",Object),_.x("design:paramtypes",[])],ea.prototype,"repositionImagesButton",null);
_.H([_.k({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],ea);
_.D(ea,"ytd-backstage-image-poll-editor-renderer",function(){if(qzi!==void 0)return qzi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-poll-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[showImagesPreview]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  <template is="dom-repeat" items="[[pollOptions]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n    <div class="poll-option style-scope ytd-backstage-image-poll-editor-renderer">\n      <div class="image-thumbnail-container style-scope ytd-backstage-image-poll-editor-renderer">\n        <div class="image-thumbnail style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!item.image]]">\n          <ytd-backstage-multi-image-thumbnail-renderer data="[[computeThumbnailRendererData(item.image)]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n          </ytd-backstage-multi-image-thumbnail-renderer>\n        </div>\n        <div class="image-select-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[item.image]]">\n          <yt-icon-button class="add-image-icon-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onImageButtonClick">\n            <yt-icon class="add-image-icon style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:image"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <tp-yt-paper-input-container class="poll-option-input style-scope ytd-backstage-image-poll-editor-renderer" no-label-float="">\n        <tp-yt-iron-autogrow-textarea class="paper-input-input poll-option-input-text style-scope ytd-backstage-image-poll-editor-renderer" slot="input" maxlength$="[[editorInfo.maxPollOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onTextInput" on-value-changed="updateOptionTextFromBinding">\n        </tp-yt-iron-autogrow-textarea>\n        <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-backstage-image-poll-editor-renderer"></tp-yt-paper-input-char-counter>\n      </tp-yt-paper-input-container>\n      <yt-icon-button class="remove-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:delete"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </template>\n  <div class="button-container style-scope ytd-backstage-image-poll-editor-renderer">\n    <yt-button-renderer class="add-option style-scope ytd-backstage-image-poll-editor-renderer" data="[[addOptionButton]]" on-click="onAddPollOption">\n    </yt-button-renderer>\n    <yt-button-renderer class="reposition-images style-scope ytd-backstage-image-poll-editor-renderer" data="[[repositionImagesButton]]" on-click="onRepositionImages">\n    </yt-button-renderer>\n  </div>\n</div>\n\n\n<div class="image-reposition-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!showImagesPreview]]">\n  <ytd-backstage-multi-image-reposition-renderer images="[[imagesToReposition]]" reposition-instructions="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  </ytd-backstage-multi-image-reposition-renderer>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return qzi=p},{mode:2});var uJr={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 RPZ;var h$=function(){var p=_.w.apply(this,arguments)||this;p.a11yConfig=uJr;p.imageDisplayOffsetTop=0;p.imageDisplayOffsetLeft=0;p.pickerDisplayOffsetTop=0;p.pickerDisplayOffsetLeft=0;p.showPreviewContainer=!0;p.startPicker=!1;p.repositionOptional=!1;p.editOnlyMode=!1;p.savedImageDisplayOffsetTop=0;p.savedImageDisplayOffsetLeft=0;return p};
_.A(h$,_.w);_.J=h$.prototype;_.J.created=function(){_.lc.requestAvailability()};
_.J.ready=function(){};
_.J.onArrowKeysDown=function(p){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){p.detail.keyboardEvent.preventDefault();var y=0,l=0,q="";switch(p.detail.keyboardEvent.key){case "ArrowUp":Uxu(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?q=this.a11yConfig.reachBottomOfImage:y=this.imageHeight*.05*-1;break;case "ArrowDown":Uxu(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?q=this.a11yConfig.reachTopOfImage:
y=this.imageHeight*.05;break;case "ArrowLeft":Uxu(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?q=this.a11yConfig.reachRightOfImage:l=this.imageWidth*.05*-1;break;case "ArrowRight":Uxu(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?q=this.a11yConfig.reachLeftOfImage:l=this.imageWidth*.05}q&&_.g$(q)&&_.Ub(this.hostElement,"iron-announce",{text:_.g$(q)});if(l||y)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+y)),p=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),p=_.g$(this.a11yConfig.imageVerticalPosition,{x_percent:""+p,y_percent:""+(100-p)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+l)),p=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),p=_.g$(this.a11yConfig.imageHorizontalPosition,{x_percent:""+p,y_percent:""+(100-p)})),p&&_.Ub(this.hostElement,"iron-announce",{text:p})}};
_.J.getPreviewPosition=function(p,y,l,q){return Math.round(100*(p+y*.5-l)/q)};
_.J.calculateDisplayPosition=function(){var p=this.imageData.naturalWidth,y=this.imageData.naturalHeight;this.displayScale=Math.max(200/p,200/y);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var l=p*this.displayScale*this.imageData.previewCoordinates.left,q=y*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=y>p?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-l;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=p>y?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-q;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=p*this.displayScale;this.imageHeight=y*this.displayScale};
_.J.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.J.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.J.getSignedPosition=function(p,y,l){return y==="X"&&_.OY("HTML_DIR")==="rtl"?l==="-"?p+"px":p*-1+"px":l==="-"?p*-1+"px":p+"px"};
_.J.pickerMove=function(p){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var y=this.pickerOffsetX-p.clientX,l=this.pickerOffsetY-p.clientY;this.pickerOffsetX=p.clientX;this.pickerOffsetY=p.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
l)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-y))}};
_.J.pickerMoveStart=function(p){this.startPicker=!0;this.pickerOffsetX=p.clientX;this.pickerOffsetY=p.clientY};
_.J.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var p=this.generateCropPreview();p&&_.Ub(this.hostElement,"ytd-backstage-image-preview-coordinates-update",p)};
_.J.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Ub(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.J.deleteImage=function(){_.Ub(this.hostElement,"ytd-backstage-image-preview-delete")};
_.J.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.J.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var p=this.generateCropPreview();p&&_.Ub(this.hostElement,"ytd-backstage-image-preview-coordinates-save",p)};
_.J.getPreviewOffset=function(p,y,l){return y&&p?(l==="X"&&_.OY("HTML_DIR")==="rtl"?300/y*p:300/y*p*-1)+"px":"0px"};
_.J.getSimpleText=function(p){return p?_.JB(p):""};
_.J.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize)return{top:this.cropOffsetTop/this.imageHeight,right:(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,bottom:(this.cropOffsetTop+this.pickerSize)/this.imageHeight,left:this.cropOffsetLeft/this.imageWidth}};
_.Jh.Object.defineProperties(h$.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var p=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.g$(this.a11yConfig.imageVerticalPosition,{x_percent:""+p,y_percent:""+(100-p)})+"\n"+_.g$(this.a11yConfig.verticalRepositionInstruction)}p=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.g$(this.a11yConfig.imageHorizontalPosition,{x_percent:""+p,y_percent:""+(100-p)})+"\n"+_.g$(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){var p,y,l=(p=this.instruction)==null?void 0:(y=p.previewInstruction)==null?void 0:y.editButtonLabel;return l?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:l,accessibilityData:{accessibilityData:{label:this.getSimpleText(l)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q,t=this.editOnlyMode?(p=this.instruction)==null?void 0:(y=p.editInstruction)==null?void 0:y.saveImagesButtonLabel:(l=this.instruction)==null?void 0:(q=l.editInstruction)==null?void 0:q.saveButtonLabel;return t?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:t,accessibilityData:{accessibilityData:{label:this.getSimpleText(t)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var p,y,l=(p=this.instruction)==null?void 0:(y=p.previewInstruction)==null?void 0:y.deleteButtonLabel;return l?{size:"SIZE_SMALL",text:l,accessibilityData:{accessibilityData:{label:this.getSimpleText(l)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var p,y,l=(p=this.instruction)==null?void 0:(y=p.editInstruction)==null?void 0:y.cancelButtonLabel;p=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return l?{style:p,size:"SIZE_SMALL",text:l,accessibilityData:{accessibilityData:{label:this.getSimpleText(l)}}}: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"}}});
h$.prototype.onEditOnlyModeUpdate=h$.prototype.onEditOnlyModeUpdate;h$.prototype.onImageChange=h$.prototype.onImageChange;_.H([_.Q(),_.x("design:type",a4u)],h$.prototype,"imageData",void 0);_.H([_.Q(),_.x("design:type",Object)],h$.prototype,"instruction",void 0);_.H([_.Q(),_.x("design:type",Object)],h$.prototype,"a11yConfig",void 0);_.H([_.Q(),_.x("design:type",Number)],h$.prototype,"imageWidth",void 0);_.H([_.Q(),_.x("design:type",Number)],h$.prototype,"imageHeight",void 0);
_.H([_.Q(),_.x("design:type",Number)],h$.prototype,"displayScale",void 0);_.H([_.Q(),_.x("design:type",Object)],h$.prototype,"imageDisplayOffsetTop",void 0);_.H([_.Q(),_.x("design:type",Object)],h$.prototype,"imageDisplayOffsetLeft",void 0);_.H([_.Q(),_.x("design:type",Object)],h$.prototype,"pickerDisplayOffsetTop",void 0);_.H([_.Q(),_.x("design:type",Object)],h$.prototype,"pickerDisplayOffsetLeft",void 0);_.H([_.Q(),_.x("design:type",Object)],h$.prototype,"showPreviewContainer",void 0);
_.H([_.Q(),_.x("design:type",Object)],h$.prototype,"startPicker",void 0);_.H([_.Q(),_.x("design:type",Number)],h$.prototype,"pickerOffsetX",void 0);_.H([_.Q(),_.x("design:type",Number)],h$.prototype,"pickerOffsetY",void 0);_.H([_.Q(),_.x("design:type",Object)],h$.prototype,"repositionOptional",void 0);_.H([_.Q(),_.x("design:type",Object)],h$.prototype,"editOnlyMode",void 0);_.H([_.rd("#picker-container"),_.x("design:type",HTMLElement)],h$.prototype,"JSC$15528_pickerContainer",void 0);
_.H([_.rd("#picker"),_.x("design:type",HTMLElement)],h$.prototype,"picker",void 0);_.H([_.rd("#preview-clipper"),_.x("design:type",HTMLElement)],h$.prototype,"previewClipper",void 0);_.H([_.rd("#image-in-picker-background"),_.x("design:type",HTMLImageElement)],h$.prototype,"JSC$15528_imageInBackground",void 0);_.H([_.rd("#image-in-picker"),_.x("design:type",HTMLImageElement)],h$.prototype,"JSC$15528_imageInPicker",void 0);
_.H([_.rd("#image-in-preview-clipper"),_.x("design:type",HTMLImageElement)],h$.prototype,"JSC$15528_imageInPreviewClipper",void 0);_.H([_.g("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],h$.prototype,"altLabelForImage",null);_.H([_.g("imageHeight","imageWidth"),_.x("design:type",Number),_.x("design:paramtypes",[])],h$.prototype,"pickerSize",null);
_.H([_.g("imageHeight","imageWidth"),_.x("design:type",Object),_.x("design:paramtypes",[])],h$.prototype,"imageOrientationStyle",null);_.H([_.g("instruction"),_.x("design:type",Object),_.x("design:paramtypes",[])],h$.prototype,"editButton",null);_.H([_.g("instruction","editOnlyMode"),_.x("design:type",Object),_.x("design:paramtypes",[])],h$.prototype,"saveButton",null);_.H([_.g("instruction"),_.x("design:type",Object),_.x("design:paramtypes",[])],h$.prototype,"deleteButton",null);
_.H([_.g("instruction","editOnlyMode"),_.x("design:type",Object),_.x("design:paramtypes",[])],h$.prototype,"cancelButton",null);_.H([_.g("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.x("design:type",Number),_.x("design:paramtypes",[])],h$.prototype,"cropOffsetTop",null);_.H([_.g("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.x("design:type",Number),_.x("design:paramtypes",[])],h$.prototype,"cropOffsetLeft",null);
_.H([_.g("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],h$.prototype,"pickerBackgroundStyle",null);_.H([_.g("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],h$.prototype,"pickerDisplayStyle",null);_.H([_.g("cropOffsetLeft","cropOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],h$.prototype,"imageInPickerStyle",null);
_.H([_.g("cropOffsetLeft","cropOffsetTop","pickerSize"),_.x("design:type",String),_.x("design:paramtypes",[])],h$.prototype,"previewClipperStyle",null);_.H([_.k8("imageData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],h$.prototype,"onImageChange",null);_.H([_.k8("editOnlyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],h$.prototype,"onEditOnlyModeUpdate",null);
_.H([_.g("showPreviewContainer"),_.x("design:type",String),_.x("design:paramtypes",[])],h$.prototype,"pickerModeStyle",null);_.H([_.k({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],h$);
_.D(h$,"ytd-backstage-image-preview-renderer",function(){if(RPZ!==void 0)return RPZ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[pickerModeStyle]] style-scope ytd-backstage-image-preview-renderer">\n  <div id="preview-container" hidden="[[!showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="preview-clipper" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" style$="[[previewClipperStyle]]">\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="delete-button" data="[[deleteButton]]" on-click="deleteImage" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="edit-button" data="[[editButton]]" on-click="editCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n  <div id="edit-container" hidden="[[showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="picker-container" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" alt="[[altLabelForImage]]">\n      <div id="overlay" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope ytd-backstage-image-preview-renderer">\n      </div>\n      <div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope ytd-backstage-image-preview-renderer">\n        <img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt="">\n      </div>\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="cancel-button" data="[[cancelButton]]" on-click="cancelReposition" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="save-button" data="[[saveButton]]" on-click="saveCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope ytd-backstage-image-preview-renderer">\n</iron-a11y-keys>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return RPZ=p},{mode:1});var WfP;var afU={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 mcr;var UcZ;var CE=function(){var p=_.w.apply(this,arguments)||this;p.a11yConfig=afU;p.imageDisplayOffsetTop=0;p.imageDisplayOffsetLeft=0;p.pickerDisplayOffsetTop=0;p.pickerDisplayOffsetLeft=0;p.cropCoordinatesSaved=!1;p.previewSize=0;p.startPicker=!1;p.repositionOptional=!1;return p};
_.A(CE,_.w);_.J=CE.prototype;_.J.created=function(){_.lc.requestAvailability()};
_.J.ready=function(){};
_.J.onArrowKeysDown=function(p){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){p.detail.keyboardEvent.preventDefault();var y=0,l=0,q="";switch(p.detail.keyboardEvent.key){case "ArrowUp":$xo(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?q=this.a11yConfig.reachBottomOfImage:y=this.imageHeight*.05*-1;break;case "ArrowDown":$xo(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?q=this.a11yConfig.reachTopOfImage:
y=this.imageHeight*.05;break;case "ArrowLeft":$xo(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?q=this.a11yConfig.reachRightOfImage:l=this.imageWidth*.05*-1;break;case "ArrowRight":$xo(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?q=this.a11yConfig.reachLeftOfImage:l=this.imageWidth*.05}q&&_.g$(q)&&_.Ub(this.hostElement,"iron-announce",{text:_.g$(q)});if(l||y)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+y)),p=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),p=_.g$(this.a11yConfig.imageVerticalPosition,{x_percent:""+p,y_percent:""+(100-p)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+l)),p=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),p=_.g$(this.a11yConfig.imageHorizontalPosition,{x_percent:""+p,y_percent:""+(100-p)})),p&&_.Ub(this.hostElement,"iron-announce",{text:p})}};
_.J.getPreviewPosition=function(p,y,l,q){return Math.round(100*(p+y*.5-l)/q)};
_.J.displayImage=function(){var p=this.JSC$15539_pickerContainer.getBoundingClientRect().width,y=this.JSC$15539_pickerContainer.getBoundingClientRect().height,l=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),q=this.JSC$15539_imageInBackground.naturalWidth,t=this.JSC$15539_imageInBackground.naturalHeight;this.displayScale=Math.max(l/q,l/t);this.imageWidth=q*this.displayScale;this.imageHeight=t*this.displayScale;this.pickerDisplayOffsetLeft=(p-l)/2;this.pickerDisplayOffsetTop=
(y-l)/2;this.imageDisplayOffsetLeft=t>q?this.pickerDisplayOffsetLeft:(p-this.imageWidth)/2;this.imageDisplayOffsetTop=q>t?this.pickerDisplayOffsetTop:(y-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.J.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15539_imageInBackground.src=this.imageData.toString(),this.JSC$15539_imageInPicker.src=this.imageData.toString(),this.JSC$15539_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.J.getSignedPosition=function(p,y,l){return y==="X"&&_.OY("HTML_DIR")==="rtl"?l==="-"?p+"px":p*-1+"px":l==="-"?p*-1+"px":p+"px"};
_.J.pickerMove=function(p){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var y=this.pickerOffsetX-p.clientX,l=this.pickerOffsetY-p.clientY;this.pickerOffsetX=p.clientX;this.pickerOffsetY=p.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
l)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-y))}};
_.J.pickerMoveStart=function(p){this.startPicker=!0;this.pickerOffsetX=p.clientX;this.pickerOffsetY=p.clientY};
_.J.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.J.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Ub(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.J.getPreviewOffset=function(p,y,l,q){return y&&p&&l?(q==="X"&&_.OY("HTML_DIR")==="rtl"?l/y*p:l/y*p*-1)+"px":"0px"};
_.J.getSimpleText=function(p){return p?_.JB(p):""};
_.J.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var p=this.cropOffsetTop/this.imageHeight,y=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,l=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,q=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.jR(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Ub(this.hostElement,"yt-img-crop-coordinates-update",{top:p,right:y,bottom:l,left:q})}};
_.Jh.Object.defineProperties(CE.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var p=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.g$(this.a11yConfig.imageVerticalPosition,{x_percent:""+p,y_percent:""+(100-p)})+"\n"+_.g$(this.a11yConfig.verticalRepositionInstruction)}p=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.g$(this.a11yConfig.imageHorizontalPosition,{x_percent:""+p,y_percent:""+(100-p)})+"\n"+_.g$(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.previewInstruction&&this.instruction.previewInstruction.editButtonLabel)return{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:this.instruction.previewInstruction.editButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.previewInstruction.editButtonLabel)}}}}},
saveButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction&&this.instruction.editInstruction.saveButtonLabel)return{style:"STYLE_PRIMARY",size:"SIZE_SMALL",text:this.instruction.editInstruction.saveButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.editInstruction.saveButtonLabel)}}}}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,this.previewSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,this.previewSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.cropCoordinatesSaved?"preview":"edit"}},
learnMore:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction)return this.instruction.editInstruction.learnMore}},
learnMoreUrl:{configurable:!0,enumerable:!0,get:function(){if(this.learnMore&&this.learnMore.runs&&this.learnMore.runs[0]){var p,y=(p=this.learnMore.runs[0])==null?void 0:p.navigationEndpoint,l;return((l=_.G(y,_.Id))==null?void 0:l.url)||void 0}}}});
CE.prototype.onImageDataChange=CE.prototype.onImageDataChange;_.H([_.Q(),_.x("design:type",Object)],CE.prototype,"imageData",void 0);_.H([_.Q(),_.x("design:type",Object)],CE.prototype,"instruction",void 0);_.H([_.Q(),_.x("design:type",Object)],CE.prototype,"a11yConfig",void 0);_.H([_.Q(),_.x("design:type",Number)],CE.prototype,"imageWidth",void 0);_.H([_.Q(),_.x("design:type",Number)],CE.prototype,"imageHeight",void 0);_.H([_.Q(),_.x("design:type",Number)],CE.prototype,"displayScale",void 0);
_.H([_.Q(),_.x("design:type",Object)],CE.prototype,"imageDisplayOffsetTop",void 0);_.H([_.Q(),_.x("design:type",Object)],CE.prototype,"imageDisplayOffsetLeft",void 0);_.H([_.Q(),_.x("design:type",Object)],CE.prototype,"pickerDisplayOffsetTop",void 0);_.H([_.Q(),_.x("design:type",Object)],CE.prototype,"pickerDisplayOffsetLeft",void 0);_.H([_.Q(),_.x("design:type",Object)],CE.prototype,"cropCoordinatesSaved",void 0);_.H([_.Q(),_.x("design:type",Object)],CE.prototype,"previewSize",void 0);
_.H([_.Q(),_.x("design:type",Object)],CE.prototype,"startPicker",void 0);_.H([_.Q(),_.x("design:type",Number)],CE.prototype,"pickerOffsetX",void 0);_.H([_.Q(),_.x("design:type",Number)],CE.prototype,"pickerOffsetY",void 0);_.H([_.Q(),_.x("design:type",Object)],CE.prototype,"repositionOptional",void 0);_.H([_.rd("#picker-container"),_.x("design:type",HTMLElement)],CE.prototype,"JSC$15539_pickerContainer",void 0);_.H([_.rd("#picker"),_.x("design:type",HTMLElement)],CE.prototype,"picker",void 0);
_.H([_.rd("#image-in-picker-background"),_.x("design:type",HTMLImageElement)],CE.prototype,"JSC$15539_imageInBackground",void 0);_.H([_.rd("#image-in-picker"),_.x("design:type",HTMLImageElement)],CE.prototype,"JSC$15539_imageInPicker",void 0);_.H([_.rd("#image-in-preview-clipper"),_.x("design:type",HTMLImageElement)],CE.prototype,"JSC$15539_imageInPreviewClipper",void 0);_.H([_.rd("#full-image-as-preview"),_.x("design:type",HTMLImageElement)],CE.prototype,"imageAsPreview",void 0);
_.H([_.g("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],CE.prototype,"altLabelForImage",null);_.H([_.g("imageHeight","imageWidth"),_.x("design:type",Number),_.x("design:paramtypes",[])],CE.prototype,"pickerSize",null);_.H([_.g("imageHeight","imageWidth"),_.x("design:type",Object),_.x("design:paramtypes",[])],CE.prototype,"imageOrientationStyle",null);
_.H([_.g("instruction.previewInstruction.editButtonLabel"),_.x("design:type",Object),_.x("design:paramtypes",[])],CE.prototype,"editButton",null);_.H([_.g("instruction.editInstruction.saveButtonLabel"),_.x("design:type",Object),_.x("design:paramtypes",[])],CE.prototype,"saveButton",null);_.H([_.g("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.x("design:type",Number),_.x("design:paramtypes",[])],CE.prototype,"cropOffsetTop",null);
_.H([_.g("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.x("design:type",Number),_.x("design:paramtypes",[])],CE.prototype,"cropOffsetLeft",null);_.H([_.g("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],CE.prototype,"pickerBackgroundStyle",null);_.H([_.g("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],CE.prototype,"pickerDisplayStyle",null);
_.H([_.g("cropOffsetLeft","cropOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],CE.prototype,"imageInPickerStyle",null);_.H([_.g("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.x("design:type",String),_.x("design:paramtypes",[])],CE.prototype,"previewClipperStyle",null);_.H([_.gd("imageData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CE.prototype,"onImageDataChange",null);
_.H([_.g("cropCoordinatesSaved"),_.x("design:type",String),_.x("design:paramtypes",[])],CE.prototype,"pickerModeStyle",null);_.H([_.g("instruction.editInstruction.learnMore"),_.x("design:type",Object),_.x("design:paramtypes",[])],CE.prototype,"learnMore",null);_.H([_.g("learnMore"),_.x("design:type",Object),_.x("design:paramtypes",[])],CE.prototype,"learnMoreUrl",null);_.H([_.z9({is:"yt-img-crop-picker",disableElementRegistration:!0})],CE);
_.D(CE,"yt-img-crop-picker",function(){if(UcZ===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-crop-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_crop_picker.yt.img.crop.picker.css.js--\x3e<div id="left-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="picker-container" class="style-scope yt-img-crop-picker"><img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" on-load="displayImage" tabindex="0" alt="[[altLabelForImage]]"><div id="overlay" hidden="[[cropCoordinatesSaved]]" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope yt-img-crop-picker"></div><div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope yt-img-crop-picker"><img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt=""></div></div><div id="preview-container" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewDetails]]"></yt-formatted-string><div id="preview-clipper" class="style-scope yt-img-crop-picker"><img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" style$="[[previewClipperStyle]]" alt="[[getSimpleText(instruction.previewInstruction.previewHeader)]]"></div><yt-button-renderer id="edit-button" data="[[editButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div></div><div id="right-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="edit-instruction" hidden="[[cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.editInstruction.header]]"></yt-formatted-string><div class="details style-scope yt-img-crop-picker"><yt-formatted-string text="[[instruction.editInstruction.details]]" class="style-scope yt-img-crop-picker"></yt-formatted-string></div><div class="details style-scope yt-img-crop-picker" id="learnmore-text"><a class="yt-simple-endpoint style-scope yt-img-crop-picker" target="_blank" href$="[[learnMoreUrl]]"><span class="style-scope yt-img-crop-picker">[[getSimpleText(learnMore)]]</span><yt-icon id="open-in-new" icon="yt-icons:open_in_new" class="style-scope yt-img-crop-picker"></yt-icon></a></div></div><yt-button-renderer id="save-button" data="[[saveButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div><div id="preview-instruction" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageDetails]]"></yt-formatted-string></div><div id="full-image-container" class="style-scope yt-img-crop-picker"><img id="full-image-as-preview" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" alt="[[getSimpleText(instruction.previewInstruction.fullImageHeader)]]"></div></div></div><iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope yt-img-crop-picker"></iron-a11y-keys>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;mcr===void 0&&(mcr=document.createElement("template"));var q=mcr;l.call(y,q.content.cloneNode(!0),p.content.firstChild);UcZ=p}p=UcZ;return p},{mode:2});var uF=function(){var p=_.w.apply(this,arguments)||this;p.errorMessage="";p.hasPreview=!1;p.isBackstagePost=!1;p.dismissButtonOverrides={size:"XS"};return p};
_.A(uF,_.w);_.J=uF.prototype;_.J.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},"data.selectButton":{id:"select",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.detached=function(){this.removeOverlay()};
_.J.setPreview=function(p){_.jR(this.hostElement).querySelector("#preview-picker").imageData=p;this.hasPreview=!0;_.Ub(this.hostElement,"yt-backstage-image-select-preview")};
_.J.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var p=_.jR(this.hostElement).querySelector("#dropzone");p.classList.remove("dragover");p.classList.remove("error");_.Ub(this.hostElement,"yt-backstage-image-select-cancel")};
_.J.setupOverlay=function(){var p=this.imageUploadEndpoint;this.removeOverlay();if(p&&p.imageValidationInfo){var y=_.jR(this.hostElement).querySelector("#dropzone"),l=_.jR(this.hostElement).querySelector("#select");this.overlay=new RB(p.uploadUrl,p.channelId,p.imageValidationInfo.maxFileSizeMb,p.imageValidationInfo.allowedMaxAspectRatio,y,l,!0);_.BL(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.BL(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.BL(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.BL(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.BL(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.J.removeOverlay=function(){this.overlay&&(_.SJ(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.SJ(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.SJ(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.SJ(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.SJ(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.J.onDragOver=function(p){var y=_.jR(this.hostElement).querySelector("#dropzone");_.nv(y,"dragover",p.value)};
_.J.onPreview=function(p){this.setPreview(p.value)};
_.J.onImageError=function(p){if(p.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var y;p=(y=this.data)==null?void 0:y.fileSizeError}else if(p.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var l;p=(l=this.data)==null?void 0:l.invalidError}else if(p.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var q;p=(q=this.data)==null?void 0:q.invalidAspectRatioError}else return;this.errorMessage=_.JB(p);_.jR(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.J.onImageAlert=function(p){this.onImageError(p)};
_.J.uploadPromise=function(){var p=this,y=this.overlay&&this.overlay.uploadPromise();if(y)return y.catch(function(){throw Error(p.data?_.JB(p.data.uploadFailureError):"");})};
_.Jh.Object.defineProperties(uF.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var p,y;if((p=this.data)==null?0:(y=p.icon)==null?0:y.iconType)return _.QZ(this.data.icon.iconType)}}});
uF.prototype.setupOverlay=uF.prototype.setupOverlay;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],uF.prototype,"rendererStamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],uF.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],uF.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],uF.prototype,"imageUploadEndpoint",void 0);_.H([_.Q(),_.x("design:type",Object)],uF.prototype,"errorMessage",void 0);
_.H([_.Q(),_.x("design:type",RB)],uF.prototype,"overlay",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],uF.prototype,"hasPreview",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],uF.prototype,"isBackstagePost",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],uF.prototype,"selectionCancel",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],uF.prototype,"previewCancel",null);
_.H([_.g("data.icon.iconType"),_.x("design:type",Object),_.x("design:paramtypes",[])],uF.prototype,"icon",null);_.H([_.Q(),_.x("design:type",Object)],uF.prototype,"dismissButtonOverrides",void 0);_.H([_.gd("imageUploadEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uF.prototype,"setupOverlay",null);_.H([_.k({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],uF);
_.D(uF,"ytd-backstage-image-select-renderer",function(){if(WfP!==void 0)return WfP;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dropzone" hidden="[[hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-icon id="drop-icon" icon="[[icon]]" class="style-scope ytd-backstage-image-select-renderer"></yt-icon>\n  <span id="prompt" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <div id="select" class="style-scope ytd-backstage-image-select-renderer"></div>\n  <div class="messages style-scope ytd-backstage-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-image-select-renderer">\n      [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n<div id="image-preview" hidden="[[!hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-img-crop-picker id="preview-picker" instruction="[[data.imagePreviewSelectMetadata]]" reposition-optional="true" class="style-scope ytd-backstage-image-select-renderer">\n  </yt-img-crop-picker>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return WfP=p},{mode:1});var $cN;var j3r;var Rq=function(){var p=_.w.apply(this,arguments)||this;p.selected=!1;return p};
_.A(Rq,_.w);_.J=Rq.prototype;_.J.computeSelected=function(p){return p==null?void 0:p.selected};
_.J.computeTransform=function(p,y,l){var q,t,E=(t=(q=this.imageContainer)==null?void 0:q.getBoundingClientRect())!=null?t:{width:0,height:0};q=Math.max(E.width/y,E.height/l);l=l*q*p.top;return"translateX("+this.getSignedPosition(y*q*p.left,"X","-")+") translateY("+this.getSignedPosition(l,"Y","-")+")"};
_.J.getSignedPosition=function(p,y,l){return y==="X"&&_.OY("HTML_DIR")==="rtl"?l==="-"?p+"px":p*-1+"px":l==="-"?p*-1+"px":p+"px"};
_.J.onClick=function(){var p;_.Ub(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(p=this.data)==null?void 0:p.image)};
_.J.onKeyPress=function(p){if(p.keyCode===13)this.onClick()};
_.Jh.Object.defineProperties(Rq.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.data)==null?void 0:(y=p.image)==null?void 0:y.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)!=null&&p.image){var y;p=(y=this.data)==null?void 0:y.image;return p.previewCoordinates.top!==0||p.previewCoordinates.left!==0?(y=this.computeTransform(p.previewCoordinates,p.naturalWidth,p.naturalHeight),p.naturalHeight>=p.naturalWidth?"width:inherit;transform:"+y+";":"height:inherit;transform:"+y+";"):p.naturalHeight>=p.naturalWidth?"width:inherit;":"height:inherit;"}}}});
Rq.prototype.onKeyPress=Rq.prototype.onKeyPress;_.H([_.rd(".image-container"),_.x("design:type",HTMLElement)],Rq.prototype,"imageContainer",void 0);_.H([_.Q(),_.x("design:type",Object)],Rq.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.x("design:type",Object)],Rq.prototype,"selected",void 0);_.H([_.g("data.image"),_.x("design:type",Object),_.x("design:paramtypes",[])],Rq.prototype,"thumbnailUrl",null);
_.H([_.g("data.image","data.image.previewCoordinates"),_.x("design:type",Object),_.x("design:paramtypes",[])],Rq.prototype,"thumbnailStyle",null);_.H([_.VU("keypress"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Rq.prototype,"onKeyPress",null);_.H([_.k({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],Rq);
_.D(Rq,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(j3r!==void 0)return j3r;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-backstage-multi-image-thumbnail-renderer">\n  <div class="image-container style-scope ytd-backstage-multi-image-thumbnail-renderer" role="button" tabindex="0" on-click="onClick">\n    <img class="thumbnail-image style-scope ytd-backstage-multi-image-thumbnail-renderer" style$="[[thumbnailStyle]]" src$="[[thumbnailUrl]]" alt="">\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return j3r=p},{mode:2});var WT=function(p,y,l){l=l===void 0?!1:l;_.Fn.call(this);var q=this;this.dropZoneOverlay=new VW(p);this.selectOverlay=l?new ge(y,"multiple_file",["image/*"]):new ge(y,"single_file",["image/*"]);this.handler=new _.W2(this);_.P9(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(y,"click",function(){q.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.A(WT,_.Fn);WT.prototype.onChange=function(p){var y;(y=p.files)!=null&&y.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:p.files}))};var aq=function(){var p=_.w.apply(this,arguments)||this;p.addImageErrorMessage="";p.errorMessage="";p.images=[];p.selectedImageIndex=0;p.modern=_.n("web_modern_buttons");p.maxNumImagesPerPost=_.UC("max_num_images_per_post_web_ui");p.JSC$15554_imageId=0;return p};
_.A(aq,_.w);_.J=aq.prototype;_.J.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Ub(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.J.observeDragToReorder=function(){var p=this;if(this.showImagesPreview){var y,l=KBr(_.j4.getInstance(),(y=this.data)==null?void 0:y.dragToReorderTooltip);_.TR.addLowPriorityJob(function(){_.Gf(p.hostElement,l,p.thumbnailDragDropArea)})}};
_.J.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dataForAddImageButton:{id:"add-image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},thumbnailRenderers:{id:"thumbnail-drag-drop-area",mapping:{renderer:"ytd-backstage-multi-image-thumbnail-renderer"},events:!0,reuseComponents:!0,stamperStableList:!0}}};
_.J.computeThumbnail=function(p){return(p==null?void 0:p.localImageSrc)||void 0};
_.J.onRendererstamperFinished=function(){_.nrv(this.ytReorderableBehavior,_.jR(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.jR(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.J.handleDrop=function(p){var y=p.currDragItem;if(y!=null&&y.data){p=this.images[this.selectedImageIndex];var l=y.data.image,q=this.images.indexOf(l)||0;y=_.Ht(y.parentNode.children,y);this.images.splice(q,1);this.images.splice(y,0,l);this.images=[].concat(_.xq(this.images));this.selectedImageIndex=this.images.indexOf(p)}};
_.J.setUpImagePicker=function(){var p=this.imageUploadEndpoint;p&&p.imageValidationInfo&&(this.uploadManager=new cT(p.uploadUrl,p.channelId),this.initialPicker||(this.initialPicker=new WT(this.dropzone,this.selectLink,!0),_.BL(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new WT(this.addImageButtonContainer,this.addImageSelectButton),_.BL(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.BL(this.JSC$15554_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.BL(this.JSC$15554_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.BL(_.jR(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.J.detached=function(){this.initialPicker&&(_.SJ(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.SJ(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.J.onInitialSelectImages=function(p){var y=this;return _.h(function(l){return l.yield(y.onSelectImages(p,!1),0)})};
_.J.onAddImage=function(p){var y=this;return _.h(function(l){return l.yield(y.onSelectImages(p,!0),0)})};
_.J.onSelectImages=function(p,y){var l=this,q,t,E,e,C,u,a,m,U,b,P,Z,K,F,L,T,O,f,v,z;return _.h(function(sc){switch(sc.nextAddress){case 1:y?l.addImageErrorMessage="":(l.images=[],l.errorMessage="");q=p.detail;t=l.validateImages([].concat(_.xq(q)));if(t!=="")return y?l.addImageErrorMessage=t:l.errorMessage=t,sc.return();E=[].concat(_.xq(q)).map(function(hR){return(new Cw(l.maxAspectRatio,!1,!0)).transform(hR)});
return sc.yield(Promise.allSettled(E),2);case 2:e=sc.yieldResult,C=_.c(e.entries()),u=C.next();case 3:if(u.done){sc.jumpTo(5);break}a=u.value;m=_.c(a);U=m.next().value;b=m.next().value;P=U;Z=b;if(Z.status!=="fulfilled"){L=F=K=void 0;y?l.addImageErrorMessage=_.JB((K=l.data)==null?void 0:K.invalidError):l.errorMessage=l.errorMessage===""?_.JB((F=l.data)==null?void 0:F.invalidError):_.JB((L=l.data)==null?void 0:L.multiFileError);sc.jumpTo(4);break}T=Z.value;T.cropped&&_.Ub(l.hostElement,"yt-backstage-multi-image-cropped");
if(T.invalidAspectRatio){v=f=O=void 0;y?l.addImageErrorMessage=_.JB((O=l.data)==null?void 0:O.invalidAspectRatioError):l.errorMessage=l.errorMessage===""?_.JB((f=l.data)==null?void 0:f.invalidAspectRatioError):_.JB((v=l.data)==null?void 0:v.multiFileError);sc.jumpTo(4);break}return sc.yield(mxu(l.JSC$15554_imageId,p.detail[P],T.transformedData),8);case 8:z=sc.yieldResult,l.images.push(z),l.JSC$15554_imageId++;case 4:u=C.next();sc.jumpTo(3);break;case 5:if(l.errorMessage!==""||l.addImageErrorMessage!==
"")return sc.return();y?EAv(l.uploadManager,[l.images[l.images.length-1]]):EAv(l.uploadManager,l.images);l.images=[].concat(_.xq(l.images));l.selectedImageIndex=y?Math.max(l.images.length-1,0):0;_.Ub(l.hostElement,"yt-backstage-multi-image-select");_.rR(sc)}})};
_.J.onThumbnailClick=function(p){if(p=p.event_.detail)this.selectedImageIndex=this.images.indexOf(p)};
_.J.validateImages=function(p){if(p.length>this.maxNumImagesPerPost){var y;return _.JB((y=this.data)==null?void 0:y.multiImageExceedMaxImageCountError)}var l=1048576*this.maxFileSizeMb;p=p.filter(function(E){return E.size>l}).length;
if(p===0)return"";var q,t;p=p>1?(q=this.data)==null?void 0:q.multiFileError:(t=this.data)==null?void 0:t.fileSizeError;return _.JB(p)};
_.J.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.xq(this.images));this.selectedImageIndex=0};
_.J.repositionImage=function(p){this.images[this.selectedImageIndex].previewCoordinates=p.event_.detail;this.images=[].concat(_.xq(this.images))};
_.J.getAllUploadStatuses=function(){var p=this,y,l,q,t;return _.h(function(E){if(E.nextAddress==1)return E.yield(p.uploadManager.getAllUploadStatuses(),2);y=E.yieldResult;l=_.c(y);for(q=l.next();!q.done;q=l.next())if(t=q.value,t.encryptedBlobId===void 0)return E.return(J3Z(p.uploadManager));return E.return(y)})};
_.J.hasImages=function(){return this.images.length>0};
_.J.cancel=function(){for(var p=this.uploadManager,y=_.c(p.imagesUploadData),l=y.next();!l.done;l=y.next())p.cancel(l.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Ub(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Jh.Object.defineProperties(aq.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.imageUploadEndpoint)==null?void 0:(y=p.imageValidationInfo)==null?void 0:y.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.imageUploadEndpoint)==null?void 0:(y=p.imageValidationInfo)==null?void 0:y.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var p,y;if((p=this.data)==null?0:(y=p.icon)==null?0:y.iconType)return _.QZ(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.addImageButton}},
dropzoneClass:{configurable:!0,enumerable:!0,get:function(){return this.errorMessage===""?"":"error"}},
showImagesPreview:{configurable:!0,enumerable:!0,get:function(){return this.images.length>0&&this.errorMessage===""}},
containMaxImages:{configurable:!0,enumerable:!0,get:function(){return this.images.length>=this.maxNumImagesPerPost}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]||void 0}},
thumbnailRenderers:{configurable:!0,enumerable:!0,get:function(){var p=this;return(this.images||[]).map(function(y,l){return{renderer:{image:y,selected:l===p.selectedImageIndex}}})}}});
aq.prototype.setUpImagePicker=aq.prototype.setUpImagePicker;aq.prototype.onRendererstamperFinished=aq.prototype.onRendererstamperFinished;aq.prototype.observeDragToReorder=aq.prototype.observeDragToReorder;aq.prototype.observeAddImageError=aq.prototype.observeAddImageError;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],aq.prototype,"rendererStamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],aq.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.GNi),_.x("design:type",Object)],aq.prototype,"ytReorderableBehavior",void 0);_.H([_.rd("#dropzone"),_.x("design:type",HTMLElement)],aq.prototype,"dropzone",void 0);_.H([_.rd("#select-link"),_.x("design:type",HTMLElement)],aq.prototype,"selectLink",void 0);_.H([_.rd("#thumbnail-drag-drop-area"),_.x("design:type",HTMLElement)],aq.prototype,"thumbnailDragDropArea",void 0);_.H([_.rd("#add-image-button-container"),_.x("design:type",HTMLElement)],aq.prototype,"addImageButtonContainer",void 0);
_.H([_.rd("#add-image-button"),_.x("design:type",HTMLElement)],aq.prototype,"addImageSelectButton",void 0);_.H([_.rd("#image-preview-container"),_.x("design:type",Object)],aq.prototype,"JSC$15554_imagePreviewContainer",void 0);_.H([_.Q(),_.x("design:type",Object)],aq.prototype,"addImageErrorMessage",void 0);_.H([_.Q(),_.x("design:type",Object)],aq.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],aq.prototype,"errorMessage",void 0);
_.H([_.Q(),_.x("design:type",Object)],aq.prototype,"imageUploadEndpoint",void 0);_.H([_.Q(),_.x("design:type",Array)],aq.prototype,"images",void 0);_.H([_.Q(),_.x("design:type",WT)],aq.prototype,"initialPicker",void 0);_.H([_.Q(),_.x("design:type",WT)],aq.prototype,"addImagePicker",void 0);_.H([_.Q(),_.x("design:type",cT)],aq.prototype,"uploadManager",void 0);_.H([_.Q(),_.x("design:type",Object)],aq.prototype,"selectedImageIndex",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],aq.prototype,"modern",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],aq.prototype,"maxNumImagesPerPost",void 0);_.H([_.g("imageUploadEndpoint"),_.x("design:type",Number),_.x("design:paramtypes",[])],aq.prototype,"maxAspectRatio",null);_.H([_.g("imageUploadEndpoint"),_.x("design:type",Number),_.x("design:paramtypes",[])],aq.prototype,"maxFileSizeMb",null);
_.H([_.g("data.icon.iconType"),_.x("design:type",Object),_.x("design:paramtypes",[])],aq.prototype,"dropIcon",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],aq.prototype,"selectionCancel",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],aq.prototype,"previewCancel",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],aq.prototype,"dataForAddImageButton",null);
_.H([_.g("errorMessage"),_.x("design:type",String),_.x("design:paramtypes",[])],aq.prototype,"dropzoneClass",null);_.H([_.g("images"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],aq.prototype,"showImagesPreview",null);_.H([_.g("images"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],aq.prototype,"containMaxImages",null);_.H([_.gd("addImageErrorMessage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aq.prototype,"observeAddImageError",null);
_.H([_.gd("showImagesPreview"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aq.prototype,"observeDragToReorder",null);_.H([_.g("images","selectedImageIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],aq.prototype,"selectedImageData",null);_.H([_.g("images","selectedImageIndex"),_.x("design:type",Array),_.x("design:paramtypes",[])],aq.prototype,"thumbnailRenderers",null);
_.H([_.VU("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aq.prototype,"onRendererstamperFinished",null);_.H([_.gd("imageUploadEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aq.prototype,"setUpImagePicker",null);_.H([_.k({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],aq);
_.D(aq,"ytd-backstage-multi-image-select-renderer",function(){if($cN!==void 0)return $cN;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="dropzone" class$="[[dropzoneClass]] style-scope ytd-backstage-multi-image-select-renderer" hidden="[[showImagesPreview]]">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="drop-icon-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <yt-icon id="drop-icon" icon="[[dropIcon]]" class="style-scope ytd-backstage-multi-image-select-renderer"></yt-icon>\n  </div>\n  <span id="prompt" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <a id="select-link" class="style-scope ytd-backstage-multi-image-select-renderer">\n     [[getSimpleString(data.selectButton)]]\n  </a>\n  <div class="messages style-scope ytd-backstage-multi-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-multi-image-select-renderer">\n       [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-multi-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n\n\n<div id="multi-image-container" hidden="[[!showImagesPreview]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="thumbnail-images-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <div id="thumbnail-drag-drop-area" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    <div id="add-image-button-container" hidden="[[containMaxImages]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n       <div id="add-image-button" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    </div>\n  </div>\n  <div id="preview" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <ytd-backstage-image-preview-renderer id="image-preview-container" image-data="[[selectedImageData]]" instruction="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return $cN=p},{mode:1});var b3r;var nAN;var Gqr;var mx=function(){var p=_.w.apply(this,arguments)||this;p.boundCaptureFocus=function(y){p.onCaptureFocus(y)};
return p};
_.A(mx,_.w);_.J=mx.prototype;_.J.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.J.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.J.onCaptureFocus=function(p){_.Jx(p).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.J.getIconType=function(p){return p?"yt-icons:"+p.toLowerCase():null};
_.J.onSelect=function(){var p;if((p=this.data)==null?0:p.onSelectCommand)if(_.n("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var y;((y=_.G(this.data.onSelectCommand.commandMetadata,_.ul))==null?0:y.url)?_.Ub(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.WC().resolve(_.aK).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Jh.Object.defineProperties(mx.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.JB(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}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],mx.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],mx.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],mx.prototype,"data",void 0);_.H([_.rd("#item"),_.x("design:type",HTMLElement)],mx.prototype,"item",void 0);_.H([_.g("data.label"),_.x("design:type",String),_.x("design:paramtypes",[])],mx.prototype,"label",null);
_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],mx.prototype,"value",null);_.H([_.k({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],mx);
_.D(mx,"ytd-privacy-dropdown-item-renderer",function(){if(Gqr!==void 0)return Gqr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-privacy-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" on-click="onSelect" class="style-scope ytd-privacy-dropdown-item-renderer">\n  <yt-icon id="dropdown-icon" hidden="[[!data.icon.iconType]]" icon="[[getIconType(data.icon.iconType)]]" class="style-scope ytd-privacy-dropdown-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-privacy-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item-body>\n</tp-yt-paper-item>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Gqr=p},{mode:1});var UN=function(){var p=_.w.apply(this,arguments)||this;p.value="";p.label="";p.disabled=!1;return p};
_.A(UN,_.w);_.J=UN.prototype;_.J.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.J.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.J.dataChanged=function(){this.reset()};
_.J.valueChanged=function(){var p;if(this.value&&(p=this.data)!=null&&p.entries){p=_.c(this.data.entries);for(var y=p.next();!y.done;y=p.next())if((y=this.getRendererForEntry(y.value))&&this.getItemRendererValue(y)===this.value){this.label=this.ytComponentBehavior.getSimpleString(y.label);break}}};
_.J.setInitialLabel=function(){if(this.data&&this.data.entries)for(var p=_.c(this.data.entries),y=p.next();!y.done;y=p.next())if(y=this.getRendererForEntry(y.value)){if(y.isSelected){this.label=this.ytComponentBehavior.getSimpleString(y.label);break}this.data.label&&(this.label=this.data.label)}};
_.J.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var p=_.c(this.data.entries),y=p.next();!y.done;y=p.next()){y=this.getRendererForEntry(y.value);var l=void 0;if((l=y)==null?0:l.isSelected)return this.getItemRendererValue(y)||-1}return-1};
_.J.getItemRendererValue=function(p){return"stringValue"in p||"int32Value"in p?p.stringValue||p.int32Value||null:null};
_.J.getRendererForEntry=function(p){return p.dropdownItemRenderer||p.privacyDropdownItemRenderer||p.navigationDropdownItemRenderer||null};
_.J.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JC("value-changed",this.value))};
_.J.updateValueFromBinding=function(p){this.value=p.detail.value};
UN.prototype.valueChangedForBinding=UN.prototype.valueChangedForBinding;UN.prototype.valueChanged=UN.prototype.valueChanged;UN.prototype.dataChanged=UN.prototype.dataChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],UN.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],UN.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],UN.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],UN.prototype,"value",void 0);_.H([_.Q(),_.x("design:type",Object)],UN.prototype,"label",void 0);_.H([_.rd("#entries"),_.x("design:type",Object)],UN.prototype,"entries",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],UN.prototype,"disabled",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UN.prototype,"dataChanged",null);
_.H([_.k8("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UN.prototype,"valueChanged",null);_.H([_.gd("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UN.prototype,"valueChangedForBinding",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],UN);
_.D(UN,"ytd-flat-dropdown-renderer",function(){if(nAN!==void 0)return nAN;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return nAN=p},{mode:1});var Psr;var $2=function(){var p=_.w.apply(this,arguments)||this;p.quizOptions=[];p.explanationPlaceholderText="";p.optionPlaceholderText="";p.correctAnswerIndex=-1;p.isMarkAnswerTooltipShown=!1;p.timer=0;return p};
_.A($2,_.w);_.J=$2.prototype;_.J.dataChanged=function(){this.optionPlaceholderText=_.JB(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.JB(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.J.onMarkCorrectAnswer=function(p){var y,l=((y=this.quizOptions[this.correctAnswerIndex])==null?void 0:y.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[p.model.index]=Object.assign({},this.quizOptions[p.model.index],{explanationText:l,isCorrect:!0});this.correctAnswerIndex=p.model.index;this.quizOptions=[].concat(_.xq(this.quizOptions))};
_.J.updatePlaceholderTexts=function(){for(var p=!1,y=[],l=0;l<this.quizOptions.length;l++){var q=this.optionPlaceholderText+" "+(l+1),t=void 0;((t=this.quizOptions[l])==null?void 0:t.placeholderText)!==q?(p=!0,y.push(Object.assign({},this.quizOptions[l],{placeholderText:q}))):y.push(this.quizOptions[l])}p&&(this.quizOptions=y);this.isValid()?_.Ub(this.hostElement,"yt-commentbox-post-enable"):_.Ub(this.hostElement,"yt-commentbox-post-disable")};
_.J.getSimpleString=function(p){return _.JB(p)};
_.J.createQuizOptions=function(p){var y=[],l;p=(l=p==null?void 0:p.minQuizOptions)!=null?l:0;for(l=0;l<p;l++)y.push(this.createQuizOption());return y};
_.J.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.xq(this.quizOptions),[this.createQuizOption()]))};
_.J.onInput=function(){this.quizOptions=[].concat(_.xq(this.quizOptions))};
_.J.onExplanationInput=function(){_.Ub(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.J.onRemoveQuizOption=function(p){this.quizOptions.splice(p.model.index,1);p.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:p.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.xq(this.quizOptions));this.quizOptions.length===0&&_.Ub(this.hostElement,"yt-quiz-attachment-dismiss")};
_.J.updateHintRenderer=function(){var p=this;clearTimeout(this.timer);this.timer=setTimeout(function(){p.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.J.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var p=0,y=0,l=_.c(this.quizOptions),q=l.next();!q.done;q=l.next()){q=q.value;var t=void 0;if(((t=q.optionText)==null?void 0:t.trim())!==""||q.isCorrect){q.isCorrect&&y++;t=void 0;if(this.hasCustomOptionText&&((t=q.optionText)==null?void 0:t.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;p++}}return p>=
Number(this.editorInfo.minQuizOptions)&&y===1};
_.J.getPostCreateOptions=function(){for(var p=[],y=_.c(this.quizOptions),l=y.next();!l.done;l=y.next()){l=l.value;var q=void 0;((q=l.optionText)==null?void 0:q.trim())!==""&&p.push({pollOption:{text:l.optionText,explanation:l.explanationText},isCorrect:l.isCorrect})}return p};
_.J.getExplanationText=function(){var p;return((p=this.quizOptions[this.correctAnswerIndex])==null?void 0:p.explanationText)||""};
_.J.maybeDisplayMarkAnswerEduToolTip=function(){var p,y,l,q,t,E,e;this.shouldShowMarkAnswerTooltip()&&((p=this.editorInfo)==null?0:(y=p.markAnswerButton)==null?0:(l=y.buttonRenderer)==null?0:(q=l.hint)==null?0:(t=q.hintRenderer)==null?0:(E=t.content)==null?0:(e=E.bubbleHintRenderer)==null?0:e.text)&&(_.j4.getInstance(),p=b2(this.editorInfo.markAnswerButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,void 0,"OPEN_POPUP_POSITION_TOP",void 0,"mark-answer-button-edu-displayed-impression"),
this.isMarkAnswerTooltipShown=!0,(p==null?void 0:p.length)>0&&this.optionSelectors&&_.iy(p[0],this.optionSelectors[0]))};
_.J.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var p=0,y=_.c(this.quizOptions),l=y.next();!l.done;l=y.next()){l=l.value;var q=void 0;((q=l.optionText)==null?void 0:q.trim())!==""&&p++;if(l.isCorrect)return!1}return p<2?!1:!0};
_.J.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.J.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.J.updateOptionTextFromBinding=function(p){if(p.target){var y=Array.from(_.jR(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(p.target);if(y>=0){var l;this.quizOptions[y].optionText=(l=p.detail.value)!=null?l:""}}};
_.Jh.Object.defineProperties($2.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var p,y,l=(p=this.editorInfo)==null?void 0:(y=p.addOptionButton)==null?void 0:y.buttonRenderer;l&&(l.style="STYLE_SUGGESTIVE",l.size="SIZE_SMALL",l.isDisabled=!this.isAllowedToAddOption);return(l==null?0:l.text)?l:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var p,y;return this.quizOptions.length<((y=(p=this.editorInfo)==null?void 0:p.maxQuizOptions)!=null?y:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(p){var y;return(y=p.optionText)==null?void 0:y.trim()})}}});
$2.prototype.updatePlaceholderTexts=$2.prototype.updatePlaceholderTexts;$2.prototype.dataChanged=$2.prototype.dataChanged;_.H([_.Q(),_.x("design:type",Object)],$2.prototype,"editorInfo",void 0);_.H([_.Q(),_.x("design:type",Array)],$2.prototype,"quizOptions",void 0);_.H([_.Q(),_.x("design:type",Object)],$2.prototype,"explanationPlaceholderText",void 0);_.H([_.SR(".option-selector-button"),_.x("design:type",Array)],$2.prototype,"optionSelectors",void 0);
_.H([_.k8("editorInfo"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$2.prototype,"dataChanged",null);_.H([_.g("editorInfo","isAllowedToAddOption","quizOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],$2.prototype,"addAnswerButton",null);_.H([_.g("editorInfo","quizOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],$2.prototype,"isAllowedToAddOption",null);
_.H([_.k8("quizOptions"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$2.prototype,"updatePlaceholderTexts",null);_.H([_.g("quizOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],$2.prototype,"hasCustomOptionText",null);_.H([_.k({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],$2);
_.D($2,"ytd-backstage-quiz-editor-renderer",function(){if(Psr!==void 0)return Psr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Psr=p},{mode:2});var A3Q;var Z3Z=(LF.FIRSTDAYOFWEEK+1)%7;var MLM;var VLr=[],gAO=0,Q3V=0;gAO=0;Q3V=24;if(.25*(Q3V-gAO)<0)MLM=[];else{for(var Kfr=gAO;Kfr<Q3V;Kfr+=.25)VLr.push(Kfr);MLM=VLr}var waP=MLM.map(function(p){p=p*60*60;return{secondsSinceMidnight:p,text:(new sK(7)).format(new Date(0,0,0,0,0,p))}});var i3U;var ja=function(){var p=_.w.apply(this,arguments)||this;p.skipNextOpenDialog=!1;p.errorMessage="";return p};
_.A(ja,_.w);_.J=ja.prototype;_.J.attached=function(){var p=this,y=new MutationObserver(function(){p.JSC$15597_calendarMain.scrollHeight>0&&(y.disconnect(),p.calendarConfig&&p.calendarConfig.selectedDate&&p.scrollToDate())});
y.observe(this.JSC$15597_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){y.disconnect()},1E3)};
_.J.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.J.onDateTextChange=function(){if(this.calendarConfig){var p=this.validateDateText();p.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(p.details)):this.textbox.setAttribute("invalid","")}};
_.J.handleDayClick=function(p){p.model.day.date&&(this.commitDate(p.model.day.date),this.dialog.close())};
_.J.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var p=Vul(this.calendarConfig.selectedDate,this.renderData);p!==void 0&&this.JSC$15597_calendarMain.scrollToIndex(p)}};
_.J.scrollToNextMonth=function(){this.JSC$15597_calendarMain.scrollToIndex(this.JSC$15597_calendarMain.firstVisibleIndex+1)};
_.J.scrollToPrevMonth=function(){this.JSC$15597_calendarMain.firstVisibleIndex===0&&this.JSC$15597_calendarMain.scrollTo(0,0);this.JSC$15597_calendarMain.scrollToIndex(this.JSC$15597_calendarMain.firstVisibleIndex-1)};
_.J.onFormSubmit=function(p){p.preventDefault();this.calendarConfig&&(p=this.validateDateText(),p.isValid&&(this.commitDate(p.details),this.dialog.close()))};
_.J.onEscOrClickingOutside=function(p){p=p.detail.path&&!!p.detail.path.length&&p.detail.path[0];if(p.classList.contains("ytd-calendar-date-picker")){p===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var y=0;y<this.dropdownButton.children.length;y++)this.dropdownButton.children[y]===p&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}p=this.textbox.value!==this.dateText;y=this.validateDateText();p&&y.isValid&&this.commitDate(y.details);this.dialog.close();this.textbox.value=
this.dateText};
_.J.commitDate=function(p){this.calendarConfig&&(this.set("calendarConfig.selectedDate",p),_.Ub(this.hostElement,"ytd-calendar-date-selected",p))};
_.J.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var p=this.textbox.value;var y=new Date;p=(new Xbo(2)).parse(p,y,{validate:!0})===p.length?Zbo(y):void 0;if(!p)return this.errorMessage=_.g$("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};y=this.calendarConfig.start;var l=this.calendarConfig.end;if(bbt(p,y))return this.errorMessage=_.g$("ENTER_DATE_OR_LATER",{allowed_date:ANg(y)}),{isValid:!1,details:void 0};if(bbt(l,p))return this.errorMessage=
_.g$("ENTER_DATE_OR_EARLIER",{allowed_date:ANg(l)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:p}};
_.Jh.Object.defineProperties(ja.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?ANg(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var p=this.calendarConfig,y=[],l=0;l<7;l++)y.push(LF.NARROWWEEKDAYS[(l+Z3Z)%7]);l=[];for(var q=new Date(p.start.year,p.start.month);q.getFullYear()<p.end.year||q.getFullYear()===p.end.year&&q.getMonth()<=p.end.month;){var t=l,E=t.push,e=q.getFullYear(),C=q.getMonth(),u=p,a=void 0,m=[],U=Object.freeze({extraCssClass:"invisible",debugClass:""}),b=new Date(e,C),P=Zbo(b);b=b.getDay();for(var Z=Zbo(new Date);P.month===
C;){b!==Z3Z&&a||(a=Array.from({length:7}).fill(U),m.push(a));var K={date:{year:e,month:C,day:P.day},extraCssClass:"",debugClass:""};u.selectedDate&&K.date&&jSt(K.date,u.selectedDate)&&(K.extraCssClass+=" selected");if(bbt(P,u.start)||bbt(u.end,P))K.extraCssClass+=" disabled";jSt(P,Z)&&(K.extraCssClass+=" today");K.extraCssClass=K.extraCssClass.trim();a[(b-Z3Z+7)%7]=K;P=Gg5(P);b=(b+1)%7}E.call(t,{weeks:m,monthLabel:LF.SHORTMONTHS[C]+" "+e,year:e,month:C,monthLabelExtraCssClass:m[0][2]===U?"shift-down-label":
""});q.setMonth(q.getMonth()+1)}return{months:l,daysOfWeekLabel:y}}}}});
ja.prototype.onEscOrClickingOutside=ja.prototype.onEscOrClickingOutside;ja.prototype.scrollToDate=ja.prototype.scrollToDate;_.H([_.Q(),_.x("design:type",Object)],ja.prototype,"calendarConfig",void 0);_.H([_.Q(),_.x("design:type",Object)],ja.prototype,"skipNextOpenDialog",void 0);_.H([_.Q(),_.x("design:type",Object)],ja.prototype,"errorMessage",void 0);_.H([_.rd("#textbox"),_.x("design:type",HTMLInputElement)],ja.prototype,"textbox",void 0);
_.H([_.rd("#calendar-dialog"),_.x("design:type",Object)],ja.prototype,"dialog",void 0);_.H([_.rd("#calendar-main"),_.x("design:type",Object)],ja.prototype,"JSC$15597_calendarMain",void 0);_.H([_.rd("#date-picker"),_.x("design:type",HTMLElement)],ja.prototype,"dropdownButton",void 0);_.H([_.g("calendarConfig.selectedDate"),_.x("design:type",String),_.x("design:paramtypes",[])],ja.prototype,"dateText",null);
_.H([_.g("calendarConfig","calendarConfig.selectedDate"),_.x("design:type",Object),_.x("design:paramtypes",[])],ja.prototype,"renderData",null);_.H([_.gd("renderData","calendarConfig.selectedDate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ja.prototype,"scrollToDate",null);_.H([_.VU("iron-overlay-canceled"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ja.prototype,"onEscOrClickingOutside",null);
_.H([_.z9({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],ja);
_.D(ja,"ytd-calendar-date-picker",function(){if(i3U!==void 0)return i3U;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return i3U=p},{mode:2});var r3U=_.g$("UTC_OFFSET_FORMAT",{utc_offset:(new sK("Z")).format(new Date)}),Szr=(new Date).getTimezoneOffset()*-60,Ffv=new Date,LfN,kqr=qE(Ffv.getTimezoneOffset());LfN=MRU(g8B(kqr,Ffv));var Ntr=_.g$("LOCAL_TIME_GMT_LABEL",{gmt_text:LfN.replace("+0","+").replace("-0","-").replace(":00","")}),bF=function(){var p=_.w.apply(this,arguments)||this;p.selectedTimeIndex=0;p.selectedTimezoneIndex=0;p.timeOfDayOptions=waP;return p};
_.A(bF,_.w);_.J=bF.prototype;_.J.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var p=PC6();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=p,this.selectedTimeIndex=0;else{var y=Mug(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},p,{selectedDate:y.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(l){return l.secondsSinceMidnight===y.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.J.onDatePicked=function(p){this.selectedDate=p.detail};
_.J.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Ub(this.hostElement,"ytd-date-time-selection-cancelled")};
_.J.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var p=this.selectedDate;p=new Date(p.year,p.month,p.day);_.Ub(this.hostElement,"ytd-date-time-selection-update",Math.floor(p.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+p.getTimezoneOffset()*60))}};
_.J.getTimezoneFormat=function(p){return p.localizedDisplayText?p.localizedDisplayText:_.g$("TIMEZONE_FORMAT",{utc_offset_text:""+p.localizedUtcOffset,city_name:""+p.localizedName})};
_.J.updateSelectedTimeIndexFromBinding=function(p){this.selectedTimeIndex=p.detail.value};
_.J.updateSelectedTimezoneIndexFromBinding=function(p){this.selectedTimezoneIndex=p.detail.value};
_.Jh.Object.defineProperties(bF.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var p=this.data.timezoneOptions;var y={name:"Etc/Unknown",localizedName:_.g$("LOCAL_TIME_LABEL"),localizedUtcOffset:r3U,utcOffsetSec:""+Szr,localizedDisplayText:Ntr};p?p.length&&p[0].name!==y.name&&(p[0].localizedDisplayText||(y.localizedDisplayText=""),p.unshift(y)):p=[y];return p}}},
selectedTimezone:{configurable:!0,enumerable:!0,get:function(){if(this.timeZones&&!(this.selectedTimezoneIndex>=this.timeZones.length))return this.timeZones[this.selectedTimezoneIndex]}},
selectedTime:{configurable:!0,enumerable:!0,get:function(){return this.timeOfDayOptions[this.selectedTimeIndex]}}});
bF.prototype.onDateTimeTimezoneChange=bF.prototype.onDateTimeTimezoneChange;bF.prototype.onDatePicked=bF.prototype.onDatePicked;bF.prototype.updateDefaultSelectedValue=bF.prototype.updateDefaultSelectedValue;_.H([_.Q(),_.x("design:type",Object)],bF.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],bF.prototype,"calendarConfig",void 0);_.H([_.Q(),_.x("design:type",Object)],bF.prototype,"selectedDate",void 0);_.H([_.Q(),_.x("design:type",Object)],bF.prototype,"selectedTimeIndex",void 0);
_.H([_.Q(),_.x("design:type",Object)],bF.prototype,"selectedTimezoneIndex",void 0);_.H([_.rd("#time-listbox"),_.x("design:type",Object)],bF.prototype,"timeListBox",void 0);_.H([_.rd("#timezone-listbox"),_.x("design:type",Object)],bF.prototype,"timezoneListBox",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],bF.prototype,"rendererStamperBehavior",void 0);_.H([_.g("data.timezoneOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],bF.prototype,"timeZones",null);
_.H([_.k8("data","timeZones"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bF.prototype,"updateDefaultSelectedValue",null);_.H([_.g("selectedTimezoneIndex","timeZones"),_.x("design:type",Object),_.x("design:paramtypes",[])],bF.prototype,"selectedTimezone",null);_.H([_.g("selectedTimeIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],bF.prototype,"selectedTime",null);
_.H([_.VU("ytd-calendar-date-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],bF.prototype,"onDatePicked",null);_.H([_.gd("selectedTimezone","selectedTime","selectedDate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bF.prototype,"onDateTimeTimezoneChange",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],bF);
_.D(bF,"ytd-date-time-picker-renderer",function(){if(A3Q!==void 0)return A3Q;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return A3Q=p},{mode:1});var DcV;var nE=function(){var p=_.w.apply(this,arguments)||this;p.boundOnTapDismissButton=function(){p.dismissTapHandler()};
p.dismissButtonOverrides={size:"XS"};return p};
_.A(nE,_.w);nE.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}}}}}};
nE.prototype.dismissTapHandler=function(){_.Ub(this.hostElement,"yt-backstage-attachment-dismissed")};
nE.prototype.computeAttachmentType=function(p){return p?p.backstageImageRenderer?"image":p.videoRenderer?"video":"none":"none"};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],nE.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],nE.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],nE.prototype,"attachmentPreview",void 0);_.H([_.Q(),_.x("design:type",Object)],nE.prototype,"dismissButton",void 0);_.H([_.Q(),_.x("design:type",Object)],nE.prototype,"boundOnTapDismissButton",void 0);
_.H([_.Q(),_.x("design:type",Object)],nE.prototype,"dismissButtonOverrides",void 0);_.H([_.Q({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.x("design:type",String)],nE.prototype,"attachmentType",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],nE);
_.D(nE,"ytd-backstage-dismissable-attachment",function(){if(DcV!==void 0)return DcV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-dismissable-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="attachment-preview-container" class="style-scope ytd-backstage-dismissable-attachment">\n  <div id="attachment-preview" class="style-scope ytd-backstage-dismissable-attachment"></div>\n  <div id="dismiss-button" class="style-scope ytd-backstage-dismissable-attachment"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return DcV=p},{mode:1});var H3v;var GJ=function(){var p=_.w.apply(this,arguments)||this;p.selectedVideoId=void 0;p.picker=void 0;p.dismissButtonOverrides={size:"XS"};p.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return p};
_.A(GJ,_.w);_.J=GJ.prototype;_.J.onServiceRequestCompleted=function(p){p.stopPropagation()};
_.J.handleAddVideoPreviewAction=function(p){p=this.get("addVideoPreviewAction",p);this.onGetVideoPreviewSuccess(p)};
_.J.configureRendererStamper=function(){return{videoPreview:{id:"video-preview",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}}}},cancelButton:{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}}}};
_.J.onLaunchVideoPicker=function(p){var y=this,l=_.JB(this.get("addVideoLinkAction.title",p)),q=this.get("addVideoLinkAction.onePickHostId",p);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",p);q&&(this.picker||(l=_.bhV(_.hcl(q).setTitle(l).addView(mMZ()).addView(a3$()),function(t){y.onPickVideo(t)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",p)||l.addView("youtube"),this.picker=l.build()),this.picker.setVisible(!0))};
_.J.onPickVideo=function(p){if(p)if(p.action==="cancel")_.Ub(this.hostElement,"yt-video-link-button-cancel");else if(p.action==="picked"){p=p.docs;if(!p||p.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(p=(p==null?0:p.length)?p[0]:void 0)?p.id:void 0;this.setVideoPreview()}};
_.J.setVideoPreview=function(){var p=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){p.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.J.onGetVideoPreviewSuccess=function(p){if(p&&p.videoPreview&&p.cancelButton)this.videoPreview=p.videoPreview,this.cancelButton=p.cancelButton,_.Ub(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.J.onGetVideoPreviewError=function(){this.cancel()};
_.J.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Ub(this.hostElement,"yt-video-link-cancel")};
_.J.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
GJ.prototype.onServiceRequestCompleted=GJ.prototype.onServiceRequestCompleted;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],GJ.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],GJ.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],GJ.prototype,"videoPreview",void 0);_.H([_.Q(),_.x("design:type",Object)],GJ.prototype,"cancelButton",void 0);_.H([_.Q(),_.x("design:type",Object)],GJ.prototype,"getVideoPreviewCommand",void 0);_.H([_.Q(),_.x("design:type",Object)],GJ.prototype,"dismissButtonOverrides",void 0);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],GJ.prototype,"onServiceRequestCompleted",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],GJ);
_.D(GJ,"ytd-backstage-video-link-attachment",function(){if(H3v!==void 0)return H3v;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-video-link-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview" class="style-scope ytd-backstage-video-link-attachment"></div>\n<div id="cancel-button" on-tap="cancel" class="style-scope ytd-backstage-video-link-attachment"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return H3v=p},{mode:1});var TtZ;var xcM;var BtO;var PT=function(){return _.w.apply(this,arguments)||this};
_.A(PT,_.w);PT.prototype.dataChanged=function(){this.active=!1};
PT.prototype.onTap=function(){_.Ub(this.hostElement,"yt-select-emoji-suggestion",this.data)};
PT.prototype.identity=function(p){return p};
_.Jh.Object.defineProperties(PT.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q;if((p=this.data)==null?0:(y=p.image)==null?0:(l=y.thumbnails)==null?0:(q=l[0])==null?0:q.url)return p=this.data.image.thumbnails[0].url,p.startsWith("data:image/svg+xml")?H6(p):_.XX(p)}}});
PT.prototype.dataChanged=PT.prototype.dataChanged;_.H([_.Q(),_.x("design:type",Object)],PT.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],PT.prototype,"active",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],PT.prototype,"dataChanged",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],PT.prototype,"imageSrc",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],PT);
_.D(PT,"ytd-emoji-suggestion",function(){if(BtO!==void 0)return BtO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-tap="onTap" class="style-scope ytd-emoji-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[imageSrc]]" author$="[[data.author]]" class="style-scope ytd-emoji-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return BtO=p},{mode:1});var ffB=/.*([:@#].*?)$/,A$=function(){var p=_.w.apply(this,arguments)||this;p.suggestions=[];p.suggestionIndex=-1;p.JSC$15625_lastSuggestionRange=null;return p};
_.A(A$,_.w);_.J=A$.prototype;_.J.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.J.getSuggestions=function(p){var y=[],l=PJr(this.emojiManager,p.substr(0,3));if(l)for(var q in l)if(q.toLocaleLowerCase().indexOf(p)===0){var t=l[q];if(t&&t.emojiId){t=lA(this.emojiManager,t.emojiId);var E=void 0,e=void 0,C=void 0,u=void 0,a=((E=t)==null?0:E.isCustomEmoji)?(e=t)==null?void 0:(C=e.shortcuts)==null?void 0:C[0]:(u=t)==null?void 0:u.emojiId;E=void 0;y.push({suggestion:{image:(E=t)==null?void 0:E.image,alt:a,text:q}});if(y.length>=64)break}}return y?y.sort(function(m,U){return U.suggestion.text<
m.suggestion.text?-1:U.suggestion.text===m.suggestion.text?0:1}):null};
_.J.insertSuggestion=function(p){_.Ub(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15625_lastSuggestionRange,text:p.alt});this.dropdown.opened=!1};
_.J.updateSuggestionsAtCaret=function(p){this.updateSuggestions(p,this.retrieveTextBeforeRange(p))};
_.J.offsetStartOfRangeBy=function(p,y){p.startOffset>=y&&p.setStart(p.startContainer,p.startOffset-y)};
_.J.updateSuggestions=function(p,y){var l=this;this.JSC$15625_lastSuggestionRange&&(this.JSC$15625_lastSuggestionRange.detach(),this.JSC$15625_lastSuggestionRange=null);if((y=ffB.exec(y))&&y.length&&(y=y[y.length-1].toLocaleLowerCase(),y.length>2||y===":_")&&(this.offsetStartOfRangeBy(p,y.length),this.JSC$15625_lastSuggestionRange=p,(p=this.getSuggestions(y))&&p.length)){this.suggestions=p;_.th(this,function(){l.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(p.length-1);return}this.dropdown.opened=!1};
_.J.onKeyDown=function(p){if(this.dropdown.opened)switch(p.key){case "Escape":this.dropdown.opened=!1;p.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);p.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);p.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),p.preventDefault()}};
_.J.onKeyUp=function(p,y){switch(p.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(y);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(y)}};
_.J.onKeyPress=function(p){p.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),p.preventDefault())};
_.J.changeSuggestionIndex=function(p){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(p+this.suggestions.length)%this.suggestions.length,p=this.dropdownContent.children[this.suggestionIndex],p.active=!0,this.dropdownContent.scrollTop=p.offsetTop)};
_.J.retrieveTextBeforeRange=function(p){var y=p.startContainer;return y&&y.nodeType===Node.TEXT_NODE?y.textContent.substr(0,p.startOffset):""};
A$.prototype.onKeyPress=A$.prototype.onKeyPress;A$.prototype.onKeyUp=A$.prototype.onKeyUp;A$.prototype.onKeyDown=A$.prototype.onKeyDown;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],A$.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Array)],A$.prototype,"suggestions",void 0);_.H([_.Q(),_.x("design:type",_.pP)],A$.prototype,"emojiManager",void 0);_.H([_.Q(),_.x("design:type",Number)],A$.prototype,"verticalSuggestionsOffset",void 0);
_.H([_.rd("#dropdown"),_.x("design:type",Object)],A$.prototype,"dropdown",void 0);_.H([_.rd("#dropdown-content"),_.x("design:type",HTMLDivElement)],A$.prototype,"dropdownContent",void 0);_.H([_.VU("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],A$.prototype,"onKeyDown",null);_.H([_.VU("keyup"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent,Range]),_.x("design:returntype")],A$.prototype,"onKeyUp",null);
_.H([_.VU("keypress"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],A$.prototype,"onKeyPress",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-emoji-input"})],A$);
_.D(A$,"ytd-emoji-input",function(){if(xcM!==void 0)return xcM;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<slot name="input" class="style-scope ytd-emoji-input"></slot>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-emoji-input">\n  <div id="dropdown-content" class="dropdown-content style-scope ytd-emoji-input" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return xcM=p},{mode:2});var vAQ;var Zn=function(){var p=_.w.apply(this,arguments)||this;p.hasMaxOptions=!1;return p};
_.A(Zn,_.w);_.J=Zn.prototype;_.J.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.J.setPrefilledChoices=function(p){var y=this;this.set("pollOptions",[]);var l;for(l=0;l<Math.min(p.length,this.data.maxPollOptions);l++)this.push("pollOptions",p[l].substring(0,this.data.maxPollOptionChars));for(;l<this.data.minPollOptions;l++)this.push("pollOptions","");this.hasMaxOptions=l>=this.data.maxPollOptions;_.th(this,function(){for(var q=y.pollOptions,t=_.jR(y.hostElement).querySelectorAll(".poll-option-input"),E=0;E<t.length;E++)t[E].value=q[E]})};
_.J.focusChanged=function(){_.Ax(this.hostElement)};
_.J.onInput=function(){var p=this;_.tl(this,"onInput",function(){p.isValid()?_.Ub(p.hostElement,"yt-commentbox-post-enable"):_.Ub(p.hostElement,"yt-commentbox-post-disable")},300)};
_.J.setPollOptions=function(){var p=[],y,l=((y=this.data)==null?0:y.minPollOptions)?this.data.minPollOptions:0;for(y=0;y<l;y++)p.push("");return p};
_.J.addPollOption=function(){var p=this;_.Ub(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.TR.addLowPriorityJob(function(){var y;(y=_.jR(p.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||y.focus()})};
_.J.onRemovePollOption=function(p){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Ub(this.hostElement,"yt-poll-attachment-dismiss")):(p=this.repeat.indexForElement(p.target.parentNode),p!==null&&(this.splice("pollOptions",p,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Ub(this.hostElement,"yt-commentbox-post-enable"))))};
_.J.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.J.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var p=0,y=this.pollOptions.length;p<y;p++)if(this.pollOptions[p].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.J.getPollOptions=function(){return this.pollOptions};
_.J.setPollOptionsFromInputs=function(){for(var p=_.jR(this.hostElement).querySelectorAll(".poll-option-input"),y=0;y<p.length;y++)this.pollOptions[y]=p[y].value.trim()};
_.J.clearPollOptions=function(){var p=_.jR(this.hostElement).querySelectorAll(".poll-option-input");p=_.c(p);for(var y=p.next();!y.done;y=p.next())y.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.J.getSimpleString=function(p){return _.JB(p)};
_.J.updateValueFromBinding=function(p){if(p.target&&this.pollOptions){var y=Array.from(_.jR(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(p.target);if(y>=0){var l;this.pollOptions[y]=(l=p.detail.value)!=null?l:"";this.notifyPath("pollOptions."+y)}}};
Zn.prototype.dataChanged=Zn.prototype.dataChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Zn.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Zn.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Array)],Zn.prototype,"pollOptions",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Zn.prototype,"hasMaxOptions",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Zn.prototype,"enableCreationBox",void 0);
_.H([_.rd("#repeat"),_.x("design:type",XA)],Zn.prototype,"repeat",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Zn.prototype,"dataChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Zn);
_.D(Zn,"ytd-poll-attachment",function(){if(vAQ!==void 0)return vAQ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-poll-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="poll-options" class="style-scope ytd-poll-attachment">\n  <template is="dom-repeat" id="repeat" items="[[pollOptions]]" class="style-scope ytd-poll-attachment">\n    <div class="poll-option style-scope ytd-poll-attachment">\n      <yt-icon-button class="remove-button style-scope ytd-poll-attachment" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-poll-attachment" icon="yt-icons:close"></yt-icon>\n      </yt-icon-button>\n      <tp-yt-paper-input class="poll-option-input style-scope ytd-poll-attachment" char-counter="" maxlength$="[[data.maxPollOptionChars]]" no-label-float="" placeholder="[[getSimpleString(data.optionPlaceholderText)]]" use-v2-underline="" value="[[item]]" on-focused-changed="focusChanged" on-input="onInput" on-value-changed="updateValueFromBinding">\n      </tp-yt-paper-input>\n    </div>\n  </template>\n</div>\n<div id="add-option" hidden="[[hasMaxOptions]]" on-click="addPollOption" class="style-scope ytd-poll-attachment"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return vAQ=p},{mode:2});var XaP;var dcU;var O3r;var oAU;var M3=function(){return _.w.apply(this,arguments)||this};
_.A(M3,_.w);_.Jh.Object.defineProperties(M3.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],M3.prototype,"rendererBehaviors",void 0);_.H([_.Q(),_.x("design:type",Object)],M3.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],M3.prototype,"focused",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("focused"),_.x("design:type",Object),_.x("design:paramtypes",[])],M3.prototype,"ariaSelected",null);_.H([_.z9({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],M3);
_.D(M3,"yt-user-mention-suggestion-renderer",function(){if(oAU===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestion_renderer.yt.user.mention.suggestion.renderer.css.js--\x3e<yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-user-mention-suggestion-renderer">\n</yt-img-shadow>\n<div id="info" class="style-scope yt-user-mention-suggestion-renderer">\n  <div id="display-name" aria-label="[[data.displayName]]" class="style-scope yt-user-mention-suggestion-renderer">[[data.displayName]]</div>\n  <yt-formatted-string id="channel-info" text="[[data.details]]" class="style-scope yt-user-mention-suggestion-renderer">\n  </yt-formatted-string>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;O3r===void 0&&(O3r=document.createElement("template"));var q=O3r;l.call(y,q.content.cloneNode(!0),p.content.firstChild);oAU=p}p=oAU;return p},{mode:2});var zPB;var YzO;var Vr=function(){var p=_.w.apply(this,arguments)||this;p.focusedSuggestionIndex=-1;return p};
_.A(Vr,_.w);_.J=Vr.prototype;_.J.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.J.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.J.setFocusedSuggestionIndex=function(p){!this.data||!this.data.suggestions||p<0||p>=this.data.suggestions.length||(this.focusedSuggestionIndex=p,p=this.getSuggestionId(p),this._setFocusedSuggestionId(p))};
_.J.advanceSuggestion=function(p){this.focusedSuggestionIndex===-1||p!==-1&&p!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+p),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.J.ensureSuggestionVisible=function(p){p=this.getSuggestionId(p);p=_.jR(this.hostElement).querySelector("[id="+p+"]");p!=null&&(p.offsetTop<this.hostElement.scrollTop?p.scrollIntoView(!0):p.offsetTop+p.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&p.scrollIntoView(!1))};
_.J.getSuggestionId=function(p){return"user-mention-suggestion-"+p};
_.J.onSuggestionTap=function(p){var y=_.G(p.model.item,$bU);this.ytRendererBehavior.logExplicitClick(y);_.Ub(this.hostElement,"yt-user-mention-suggestion-selected",{data:y,index:p.model.index})};
_.J.onSuggestionMouseMove=function(p){p.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(p.model.index)};
_.J.isSuggestionFocused=function(p,y){return p===y};
_.J.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.J.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JC("focused-suggestion-id-changed",this.focusedSuggestionId))};
Vr.prototype.focusedSuggestionIdChangedForBinding=Vr.prototype.focusedSuggestionIdChangedForBinding;Vr.prototype.onDomChange=Vr.prototype.onDomChange;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Vr.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Vr.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Vr.prototype,"focusedSuggestionIndex",void 0);_.H([_.Q({readOnly:!0}),_.x("design:type",String)],Vr.prototype,"focusedSuggestionId",void 0);
_.H([_.VU("dom-change"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Vr.prototype,"onDomChange",null);_.H([_.gd("focusedSuggestionId"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Vr.prototype,"focusedSuggestionIdChangedForBinding",null);_.H([_.z9({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],Vr);
_.D(Vr,"yt-user-mention-suggestions-dropdown",function(){if(YzO===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestions-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestions_dropdown.yt.user.mention.suggestions.dropdown.css.js--\x3e\n<template is="dom-repeat" items="[[data.suggestions]]" index-as="index" notify-dom-change="" class="style-scope yt-user-mention-suggestions-dropdown">\n  <yt-user-mention-suggestion-renderer data="[[item.userMentionSuggestionRenderer]]" focused="[[isSuggestionFocused(index, focusedSuggestionIndex)]]" id$="[[getSuggestionId(index)]]" role="option" on-mousemove="onSuggestionMouseMove" on-tap="onSuggestionTap" class="style-scope yt-user-mention-suggestions-dropdown">\n  </yt-user-mention-suggestion-renderer>\n</template>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;zPB===void 0&&(zPB=document.createElement("template"));var q=zPB;l.call(y,q.content.cloneNode(!0),p.content.firstChild);YzO=p}p=YzO;return p},{mode:2});var gv=function(){var p=_.w.apply(this,arguments)||this;p.suggestionsResponse=null;p.activeMention=null;p.selectionChangeListener=p.onSelectionChange.bind(p);p.handlesEnabled=_.n("enable_handles_in_mention_suggest_posts");p.handlesInMentionSuggestionsEnabled=_.n("handles_in_mention_suggest_posts");p.zeroPrefixMentionSuggestionEnabled=_.n("enable_zero_prefix_mention_suggestion_web");p.pendingQuery=null;p.flowNonce=null;return p};
_.A(gv,_.w);_.J=gv.prototype;_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.J.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.J.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.J.hasSuggestions=function(p){return!!(p&&p.suggestions&&p.suggestions.length>0)};
_.J.onInput=function(){var p=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var y=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),l=this.activeMention.JSC$11230_getText().slice(-1)===" ",q=this.activeMention.JSC$11230_getText().slice(-2,-1)===" ",t="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11230_getText().slice(-2,
-1))>=0;t=this.zeroPrefixMentionSuggestionEnabled&&t;if(this.activeMention.isCollapsed()||(y||q||t)&&l)this.cancelActiveMention();else{var E=this.activeMention.JSC$11230_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.tl(this,"requestSuggestions",function(){p.requestSuggestions(E)},100)}}}};
_.J.onServiceRequestSent=function(p){p.stopPropagation()};
_.J.onServiceRequestCompleted=function(p){p.stopPropagation();p=p.detail.data;p.query&&(!this.pendingQuery||this.pendingQuery!==p.query)||!this.zeroPrefixMentionSuggestionEnabled&&p.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=p,this.hasSuggestions(p)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.J.onServiceRequestError=function(p){p.stopPropagation()};
_.J.onUserMentionSuggestionSelected=function(p){this.selectSuggestion(p.detail.data,p.detail.index)};
_.J.onSelectionChange=function(){if(this.activeMention){var p=_.wP(),y=this.activeMention.JSC$11230_containsRange(p);p=p&&this.containsHelper(this.dropdown,p.getContainer());y||p||this.cancelActiveMention()}};
_.J.containsHelper=function(p,y){var l;if(((l=window.ShadyDOM)==null?void 0:l.noPatch)===!0)return p.contains(y);for(;y;){if(y===p)return!0;y=y instanceof ShadowRoot?y.host:y.parentNode}return!1};
_.J.maybeStartSuggest=function(){var p=_.wP();if(p&&p.isCollapsed()){var y=p.JSC$11230_getStartNode(),l=p.JSC$11230_getStartOffset();if(y instanceof Text&&!(l<1)){var q=y.textContent;!(q=q&&q.charAt(l-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(q)<0||(this.activeMention=_.Ia(y,l-1,p.JSC$11230_getEndNode(),p.JSC$11230_getEndOffset()),this.flowNonce=H2(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.J.updateActiveMention=function(){if(this.activeMention){var p=_.wP();p&&p.isCollapsed()&&(this.activeMention=_.Ia(this.activeMention.JSC$11230_getStartNode(),this.activeMention.JSC$11230_getStartOffset(),p.JSC$11230_getEndNode(),p.JSC$11230_getEndOffset()))}};
_.J.requestSuggestions=function(p){if(this.activeMention){var y={suggestions_query:p};this.pendingQuery=p;_.ny(this.hostElement,[this.suggestionsEndpoint,y])}};
_.J.cancelActiveMention=function(){this.activeMention&&this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STOPPED");this.suggestionsResponse=this.pendingQuery=this.activeMention=null;this.dropdown.clearFocusedSuggestion()};
_.J.focusPreviousSuggestion=function(p){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),p.preventDefault())};
_.J.focusNextSuggestion=function(p){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),p.preventDefault())};
_.J.selectFocusedSuggestion=function(p){if(this.hasSuggestions(this.suggestionsResponse)){var y=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.G(y,$bU)&&(this.selectSuggestion(_.G(y,$bU),this.dropdown.focusedSuggestionIndex),p.preventDefault())}};
_.J.selectSuggestion=function(p,y){if(p){var l=this.activeMention;if(l){var q=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&p.handle?_.Of(q,"\u00a0\u2068@"+p.handle+"\u2069\u00a0"):this.handlesEnabled?_.Of(q,"\u00a0"+p.displayName+"\u00a0"):_.Of(q,"\u00a0@"+p.displayName+"\u00a0");YX(q,"/channel/"+p.channelId);q.classList.add("yt-formatted-string","yt-simple-endpoint");q.setAttribute("spellcheck","false");l.isCollapsed()||l.JSC$11230_removeContents();l.insertNode(q,!0);p=document.createTextNode(" ");
q.parentNode.insertBefore(p,q.nextSibling);window.getSelection().collapse(p,1);y={suggestionSelected:{suggestionIndex:y}};if(this.zeroPrefixMentionSuggestionEnabled){var t;y.suggestionSelected.isZeroPrefix=((t=this.suggestionsResponse)==null?void 0:t.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",y);this.cancelActiveMention();_.Ub(this.hostElement,"yt-mention-inserted")}}};
_.J.getPositionTarget=function(p){return p&&p.getBrowserRangeObject()};
_.J.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.J.onFocusedSuggestionIdChanged=function(p){var y=_.WTo(this.hostElement)[0];y&&(p.detail.value?y.setAttribute("aria-activedescendant",p.detail.value):y.removeAttribute("aria-activedescendant"))};
_.J.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.J.logGELEvent=function(p,y){p={eventType:p,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};y&&(p=Object.assign(p,y));_.TX("userMentionAutoCompleteBoxEvent",p)};
gv.prototype.onDomChange=gv.prototype.onDomChange;gv.prototype.onUserMentionSuggestionSelected=gv.prototype.onUserMentionSuggestionSelected;gv.prototype.onServiceRequestError=gv.prototype.onServiceRequestError;gv.prototype.onServiceRequestCompleted=gv.prototype.onServiceRequestCompleted;gv.prototype.onServiceRequestSent=gv.prototype.onServiceRequestSent;gv.prototype.onInput=gv.prototype.onInput;_.H([_.V(_.Ln),_.x("design:type",Object)],gv.prototype,"ironA11yKeysBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],gv.prototype,"suggestionsEndpoint",void 0);_.H([_.Q(),_.x("design:type",Object)],gv.prototype,"suggestionsResponse",void 0);_.H([_.Q(),_.x("design:type",Object)],gv.prototype,"activeMention",void 0);_.H([_.rd("#dropdown"),_.x("design:type",Object)],gv.prototype,"dropdown",void 0);_.H([_.rd("#iron-dropdown"),_.x("design:type",Object)],gv.prototype,"ironDropdown",void 0);
_.H([_.VU("input"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],gv.prototype,"onInput",null);_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],gv.prototype,"onServiceRequestSent",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],gv.prototype,"onServiceRequestCompleted",null);
_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],gv.prototype,"onServiceRequestError",null);_.H([_.VU("yt-user-mention-suggestion-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],gv.prototype,"onUserMentionSuggestionSelected",null);
_.H([_.VU("dom-change"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],gv.prototype,"onDomChange",null);_.H([_.z9({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],gv);
_.D(gv,"yt-user-mention-autosuggest-input",function(){if(dcU===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-autosuggest-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_autosuggest_input.yt.user.mention.autosuggest.input.css.js--\x3e<slot name="input" class="style-scope yt-user-mention-autosuggest-input"></slot>\n<tp-yt-iron-dropdown id="iron-dropdown" horizontal-align="auto" no-auto-focus="" no-overlap="true" opened="[[hasSuggestions(suggestionsResponse)]]" position-target="[[getPositionTarget(activeMention)]]" on-iron-overlay-opened="onDropdownOpened" class="style-scope yt-user-mention-autosuggest-input">\n  <yt-user-mention-suggestions-dropdown id="dropdown" class="dropdown-content style-scope yt-user-mention-autosuggest-input" slot="dropdown-content" data="[[suggestionsResponse]]" role="listbox" on-focused-suggestion-id-changed="onFocusedSuggestionIdChanged">\n  </yt-user-mention-suggestions-dropdown>\n</tp-yt-iron-dropdown>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;XaP===void 0&&(XaP=document.createElement("template"));var q=XaP;l.call(y,q.content.cloneNode(!0),p.content.firstChild);dcU=p}p=dcU;return p},{mode:2});var Qr=null;
_.fv({is:"ytd-commentbox",_template:function(){if(TtZ!==void 0)return TtZ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return TtZ=p},
behaviors:[_.vkc.YtHostElementBehavior,_.Ln,_.no.YtActionHandlerBehavior,_.sd.YtComponentBehavior,_.bQ.YtRendererstamperBehavior,_.x9Q.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+enter meta+enter":"submitIfNotBackstagePost_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{data:{type:Object,observer:"dataChanged_"},
placeholderFormattedText_:{type:Object,computed:"computePlaceholderText_(data, addedAttachment, prefilledAttachment_)"},aadcGuidelinesState_:{type:Object,selectorArgs:["data.aadcGuidelinesStateEntityKey"],selector:function(p,y){return _.Ae(p.entities,"aadcGuidelinesStateEntityPayload",y)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(p,y){return _.Ae(p.entities,"commentboxStateEntity",y)},
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 _.q4}},
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:_.n("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.n("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",_.MH(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(p){this.fire(p?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(p){this.set("submitButtonDisabled",void 0);this.clear();p&&this.computeIsEmojiButtonDisplayed_(p)&&(p=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&p.updateEmojiCategories()},
observePrefilledImage_:function(p,y,l){this.isValidPrefilledImage_(p,y,l)&&(this.prefilledAttachment_="image",this.prefilledImageData_=y,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(p,y){this.isValidPrefilledVideo_(p,y)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(p){p&&p.pollData&&p.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(p.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Vp();this.focus()},
detached:function(){document.removeEventListener("tap",_.MH(this,this.onTap_))},
created:function(){this.scheduledPublishTimeSec_=this.prefilledImageData_=this.imagePreviewCoordinates_=this.taggedVideoId_=this.selectedVideoId_=void 0;document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1;this.TEST_ONLY=void 0},
onEmojiButtonTap_:function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.$$("#emoji-picker > yt-emoji-picker-renderer").selected=!this.$$("#emoji-picker > yt-emoji-picker-renderer").selected},
onEmojiSelect_:function(p){p=p.detail;p=p.isCustomEmoji?p.shortcuts[0]:p.emojiId;var y=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(y,p);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var p=_.wP();if(p){p=p.getBrowserRangeObject();for(var y=p.commonAncestorContainer;y;){if(y===this.getEditableTextArea_())return p;y=y.parentNode}}p=this.getEditableTextArea_();p=_.Yd(p,p.childNodes.length);p.select();return p.getBrowserRangeObject()},
insertTextWithEmojis_:function(p,y,l){(y=this.emojiManager.createDocumentFragment(y,!0,!1,l===void 0?!0:l))&&y.childNodes.length!==0&&(p.collapsed||p.deleteContents(),l=y.lastChild,p.insertNode(y),_.dEx(l).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var p=_.wP();if(p){var y=p.JSC$11230_getStartNode(),l=p.JSC$11230_getEndNode();if(g3j(y)&&g3j(l)){var q=p.JSC$11230_getStartOffset(),t;if(_.VR&&y.nodeType===Node.ELEMENT_NODE&&(t=_.dOQ(y)))_.Yd(t,0).select();else{t=gP(y)?y:_.dV(y,gP);var E=gP(l)?l:_.dV(l,gP);if(t||E)if(p.isCollapsed()){if(y.nodeType===Node.TEXT_NODE){p=!0;q===y.length&&(p=!1);if(Qr==="end"||Qr==="right")p=!1;y=y.parentNode;p=[].concat(_.xq(y.parentNode.childNodes)).indexOf(y)+(p?0:1);_.Yd(y.parentNode,
p).select()}}else t?t.previousSibling&&t.previousSibling.length>0?_.Ia(l,p.JSC$11230_getEndOffset(),t.previousSibling,t.previousSibling.length-1).select():(y=document.createTextNode("\u200b"),t.parentNode.insertBefore(y,t),_.Ia(l,p.JSC$11230_getEndOffset(),y,0).select()):E&&(E.nextSibling&&E.nextSibling.length>0?_.Ia(y,p.JSC$11230_getStartOffset(),E.nextSibling,1).select():(l=document.createTextNode("\u200b"),E.parentNode.insertBefore(l,E.nextSibling),_.Ia(y,p.JSC$11230_getStartOffset(),l,l.length).select()));
Qr=null}}else Qr=null}else Qr=null},
leftKeyPressed_:function(){Qr="left"},
rightKeyPressed_:function(){Qr="right"},
endKeyPressed_:function(){Qr="end"},
maybeDeleteChip_:function(){var p=SR8(!0);if(p){var y=_.wP(),l=y.JSC$11230_getStartNode();y=y.JSC$11230_getStartOffset();_.X6(l,y,p,p.childNodes.length).select()}},
maybeBackspaceChip_:function(){var p=SR8(!1);if(p){var y=_.wP(),l=y.JSC$11230_getStartNode();y=y.JSC$11230_getStartOffset();_.X6(l,y,p,0).select()}},
maybeBackspaceChipWordMode_:function(p){var y=_.wP();if(y.isCollapsed()){var l=y.JSC$11230_getStartNode();y=y.JSC$11230_getStartOffset();var q=Fe_(l,y,!0);q&&(_.X6(l,y,q,0).select(),document.execCommand("delete"),p.preventDefault(),p.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(p){var y=_.wP();if(y.isCollapsed()){var l=y.JSC$11230_getStartNode();y=y.JSC$11230_getStartOffset();var q=Fe_(l,y,!1);q&&(_.X6(l,y,q,q.childNodes.length).select(),document.execCommand("delete"),p.preventDefault(),p.stopImmediatePropagation())}},
onTap_:function(p){if(!p.defaultPrevented&&(p.currentTarget.tagName==="YTD-COMMENTBOX"&&gP(p.target)&&p.preventDefault(),this.isEmojiPickerDisplayed)){var y=this.$$("#emojis"),l=this.$$("#emoji-button"),q=this.getEditableTextArea_();if((p=p.path?p.path:p.composedPath&&p.composedPath())&&!p.includes(y)&&!p.includes(q)&&!p.includes(l))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(p,y,l){return p==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&y!==void 0&&y.encryptedBlobId!==null&&y.sourceExternalVideoId!==null&&l!==void 0&&l.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(p,y){return p==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!y&&!!y.videoRenderer&&!!y.videoRenderer.videoId},
isValidPrefilledAttachment_:function(p,y,l){return this.isValidPrefilledImage_(p,y,l)||this.isValidPrefilledVideo_(p,l)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.n("enable_multi_image_post_creation")){var p=this.$$("ytd-backstage-multi-image-select-renderer");p&&p.hasImages()&&p.cancel()}else(p=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&p.cancel();(p=this.$["poll-attachment"])&&this.hasPoll_&&p.clearPollOptions();(p=this.$["image-poll-attachment"])&&this.hasImagePoll_&&p.resetPollOptions();(p=this.$["quiz-attachment"])&&this.hasQuiz_&&p.resetQuizOptions();
(p=this.$["video-link-attachment"])&&this.hasVideo_&&p.cancel();(p=this.$["access-restrictions-selector"].firstElementChild)&&p.reset();this.prefilledAttachment_!=="none"&&this.dismissPrefilledContent_();this.addedAttachment="none";this.prefilledImageData_=this.scheduledPublishTimeSec_=this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.submitButtonDisabled=!0;this.setTextAreaValue_(this.data.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.isExternalLinksBannerDisplayed=
this.isEmojiPickerDisplayed=this.receivedFocusPreviously_=!1;if(this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")this.onDateTimeSelectionCancelled_()},
getEditableTextArea_:function(){return _.jR(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.jR(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(p,y){p=Keg(p,this.emojiManager,y).cloneNode(!0);for(y=p.firstChild;y;)if(y.nodeType!==1)y=y.nextSibling;else switch(y.tagName){case "BR":var l=_.xC();_.lAU(l,y);y=l.nextSibling;break;case "DIV":(l=y.lastChild)&&y.nextSibling&&_.Xd(_.xC(),l);y.previousSibling&&(y.previousSibling.nodeType===1||y.previousSibling.nodeType===3&&!y.previousSibling.textContent.endsWith("\n"))&&_.vZ(_.xC(),y);l&&l.nodeName==="BR"&&_.Qy(l);l=y;y.hasChildNodes()?(y=y.firstChild,
_.quQ(l)):(y=y.nextSibling,_.Qy(l));break;default:y=y.nextSibling}return Lej(p)},
onAddImageError_:function(p){p.stopPropagation();this.errorMessage_=_.EK(p.detail)},
setTextAreaValue_:function(p){p||(p="");var y=this.getEditableFormattedString_();y.text="";this.getEditableTextArea_().innerText="";typeof p==="string"&&(p={runs:[{text:p}]});y.text=p},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Qr=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var p=this.getEditableTextArea_();p&&(_.Yd(p,p.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.OY("HTML_DIR")==="rtl"){var p=this.getEditableTextArea_(),y=this.getTextAreaValue()!==""?"auto":"rtl";p.setAttribute("dir",y)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var p;return zNl((p=this.$["quiz-attachment"])==null?void 0:p.getExplanationText())||zNl(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var p=null;if(this.isEmojiButtonDisplayed){var y=this.getInputRange_();y&&(p=this.emojiInput.retrieveTextBeforeRange(y))}this.insertText_(p,!0);this.updateCharCount_();this.setSubmitButton_();p=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=p.scrollHeight>p.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var p=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:p})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount_=this.getTextLength();this.aboveCharLimit_=!!this.charLimit_&&this.charCount_>this.charLimit_},
onPaste_:function(p){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(p)},
onPasteEmoji_:function(p){p.preventDefault();p.stopImmediatePropagation();p=p.clipboardData.getData("text/plain");this.insertText_(p,!1,!1)},
insertText_:function(p,y,l){y=y===void 0?!1:y;l=l===void 0?!0:l;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&p){var q=this.getInputRange_().cloneRange();this.emojiManager&&q&&(y&&this.emojiInput.offsetStartOfRangeBy(q,p.length),this.insertTextWithEmojis_(q,p,l),QS_(this.getEditableTextArea_().lastChild)||(q=this.getInputRange_().cloneRange()),q&&(this.emojiInput.updateSuggestions(q,p),this.updateSuggestionOffset_(q)))}},
setSubmitButton_:function(){if(this.data){var p=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",y=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(p||y){var l=this.getTextAreaValue().trim();y=l===this.previousText_;l=!l||this.aboveCharLimit_;p&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(l=this.aboveCharLimit_);this.submitButtonDisabled=
y||l||!this.getTextLength();p&&_.n("enable_post_scheduling")&&(this.submitButtonDisabled=y&&!this.scheduledPublishTimeSec_||l)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.JB,computeCreationBoxClass_:function(p){return p?"focused":"not-focused"},
computeFooterMessageClass_:function(p,y){return y?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(p,y){return y?y:p},
computeFooterMessageHidden_:function(p,y){return!y&&!p},
computePlaceholderText_:function(p,y,l){return(l==="video"||l==="image")&&(p==null?0:p.prefilledPlaceholderText)?p==null?void 0:p.prefilledPlaceholderText:y==="poll"||y==="image-poll"?p==null?void 0:p.pollPostPlaceholderText:y==="quiz"?p==null?void 0:p.quizPostPlaceholderText:y==="image"?p==null?void 0:p.imagePostPlaceholderText:p==null?void 0:p.placeholderText},
computeHideAttachmentButtons_:function(p,y,l,q){return p===void 0?!1:q&&this.getSimpleString(q)===this.getSimpleString(p.rateLimitErrorMessage)?!0:y!=="none"||l!=="none"||!p.videoLinkButton&&!p.pollButton&&!p.imagePollButton&&!p.quizButton&&!p.imageButton},
computeHideDismissableAttachment_:function(p){return p!=="image"&&p!=="video"},
computeHasVideo_:function(p){return p==="video"},
computeHasImage_:function(p){return p==="image"},
computeHasPoll_:function(p){return p==="poll"},
computeHasImagePoll_:function(p){return p==="image-poll"},
computeHasQuiz_:function(p){return p==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(p){return p&&p.backstageAttachment?p.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!p.backstageAttachment.quizRenderer&&!p.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(p){if(this.isValidPrefilledAttachment_(p.purpose,p.prefilledImageData,p.backstageAttachment))return p.backstageAttachment},
computeEditAttachment_:function(p){if(this.computePrefilledContent_(p)===void 0)return p.backstageAttachment},
computeAuthorThumbnailDimension_:function(p,y){return p&&!y?24:40},
computeImageUploadEndpoint_:function(p){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",p)},
computeRateLimitErrorCommands_:function(p){var y,l;return p==null?void 0:(y=p.advancedTierFeatures)==null?void 0:(l=y.rateLimit)==null?void 0:l.rateLimitCommands},
computeIsBackstageComment_:function(p){return!(!p||p!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(p){return this.get("submitButton.buttonRenderer.serviceEndpoint",p)||this.get("replyButton.buttonRenderer.serviceEndpoint",p)||this.get("postButton.buttonRenderer.serviceEndpoint",p)},
computeSubmitButtonOverride:function(){if(_.n("web_modern_buttons")){var p,y;return{segmentedPosition:this.dropdownSchedulePanel_||!((p=this.data)==null?0:(y=p.postOptionsMenu)==null?0:y.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.n("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(p,y){p=this.get("submitButton.buttonRenderer",p)||this.get("replyButton.buttonRenderer",p)||this.get("postButton.buttonRenderer",p);y&&(p=y);p&&(p=Object.assign({},p),p.serviceEndpoint=void 0,p.isDisabled=this.submitButtonDisabled);return p},
computeHasExternalLinksAccess_:function(p){if(_.n("enable_rfa_external_links")){var y,l,q;return(q=p==null?void 0:(y=p.advancedTierFeatures)==null?void 0:(l=y.externalLinks)==null?void 0:l.allowExternalLinks)!=null?q:!0}return!0},
computeIsEmojiButtonDisplayed_:function(p){return p.emojiButton&&p.emojiPicker&&p.emojiPicker.emojiPickerRenderer&&p.emojiPicker.emojiPickerRenderer.categories?p.emojiPicker.emojiPickerRenderer.categories.find(function(y){return y.emojiPickerCategoryRenderer?y.emojiPickerCategoryRenderer.emojiIds&&y.emojiPickerCategoryRenderer.emojiIds.length>0:y.emojiPickerUpsellCategoryRenderer?y.emojiPickerUpsellCategoryRenderer.emojis&&y.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(p){return p.charLimit?p.charLimit:null},
computeDropdownSchedulingPanel_:function(p,y){if(p==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&y)return y},
computeInlineSchedulingPanel_:function(p,y){if(p==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&y)return y},
computeHideAuthorThumbnail_:function(p,y){return p||this.computeUseIdentityChip_(y)},
computeHideIdentityChipRenderer_:function(p,y){return p||!this.computeUseIdentityChip_(y)},
computeUseIdentityChip_:function(p){return!!p&&!!p.identityChipRenderer},
getSharedPostId_:function(){return this.data.backstageAttachment&&this.data.backstageAttachment.postRenderer&&this.data.backstageAttachment.postRenderer.postId?this.data.backstageAttachment.postRenderer.postId:void 0},
onYtNavigate_:function(p){var y,l,q,t;(p==null?0:(y=p.detail)==null?0:(l=y.endpoint)==null?0:l.ypcGetOffersEndpoint)||(p==null?0:(q=p.detail)==null?0:(t=q.endpoint)==null?0:t.ypcOffersEndpoint)?(p.stopPropagation(),_.ny(this,[p.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",p)&&(p.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(p){this.addedAttachment="video";this.selectedVideoId_=p.detail.videoId},
commentboxStateEntityChanged_:function(p){var y=this;(p==null?void 0:p.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(p==null?void 0:p.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){y.focus()})},
onYtServiceRequestSent_:function(p,y){if(y.actions)for(p=_.c(y.actions),y=p.next();!y.done;y=p.next())y.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(p){this.isLoading=!1;var y=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",p),l,q,t,E=p==null?void 0:(l=p.detail)==null?void 0:(q=l.data)==null?void 0:(t=q.actionResult)==null?void 0:t.commentboxStateEntityKey;if(y)this.errorMessage_=y;else if(E){var e;this.dismissData_=p==null?void 0:(e=p.detail)==null?void 0:e.data;this.commentboxStateKey_=E}else{this.clear();var C;this.fire("yt-commentbox-dismiss",p==null?void 0:(C=p.detail)==
null?void 0:C.data)}},
onYtServiceRequestError_:function(p){p.stopPropagation();this.isLoading=!1;var y,l;if(((y=this.data)==null?void 0:y.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((l=this.data)==null?void 0:l.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(y=this.get("detail.error.args",p)||[],y.length>1&&y[1].message){this.handlePostsServiceRequestError_(y[1].message);return}(p=this.get("detail.error.message",p))?this.errorMessage_=this.data.errorMessage||_.EK(p):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(p){if(_.n("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var y=_.c(this.rateLimitErrorCommands),l=y.next();!l.done;l=y.next())if(l=l.value,l.errorLabel===p){_.iy(l.command,this.hostElement);return}this.errorMessage_=_.EK(p)},
submitIfNotBackstagePost_:function(p){if(!this.isBackstagePost)this.onSubmit_(p)},
onSubmit_:function(p){var y=this,l,q,t,E,e,C,u,a,m,U,b,P,Z,K,F;return _.h(function(L){switch(L.nextAddress){case 1:p.stopPropagation();if(!y.serviceEndpoint||!y.isValidInput_())return L.return();if(y.shouldShowPostAadcNotice_())return y.showPostAadcNotice_(),L.return();if(y.shouldShowCommentAadcNotice_())return y.showCommentAadcNotice_(),L.return();if(!(y.$$("ytd-backstage-multi-image-select-renderer")&&y.hasImage_&&_.n("enable_multi_image_post_creation"))){L.jumpTo(2);break}l=y.$$("ytd-backstage-multi-image-select-renderer");
return L.yield(l.getAllUploadStatuses(),3);case 3:q=L.yieldResult;if(!q)return L.return();t=_.c(q);for(E=t.next();!E.done;E=t.next())if(e=E.value,e.encryptedBlobId===void 0)return y.isLoading=!1,u=C=void 0,y.errorMessage_=(u=(C=y.imageUploadEndpoint_)==null?void 0:C.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?u:null,L.return();return L.return(y.submitForm_(void 0,void 0,void 0,void 0,l.images,y.taggedVideoId_));case 2:if(!y.hasImagePoll_||!y.$["image-poll-attachment"]){L.jumpTo(4);
break}return L.yield(y.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:a=L.yieldResult;if(!a)return L.return();m=_.c(a);for(U=m.next();!U.done;U=m.next())if(b=U.value,!b.encryptedBlobId)return y.isLoading=!1,P=void 0,y.errorMessage_=(P=y.data.errorMessage)!=null?P:null,L.return();case 4:K=(Z=y.$$("ytd-backstage-image-select-renderer"))&&Z.uploadPromise(),F=y.getSharedPostId_(),K?K.then(function(){y.submitForm_.apply(y,_.xq(_.oX.apply(0,arguments)))}).catch(function(T){y.isLoading=!1;
y.errorMessage_=_.EK(T.message)}):y.selectedVideoId_?y.submitForm_(void 0,y.selectedVideoId_):y.prefilledAttachment_==="image"?y.submitForm_(y.prefilledImageData_.encryptedBlobId,void 0,void 0,y.prefilledImageData_.sourceExternalVideoId,void 0,y.taggedVideoId_):y.prefilledAttachment_==="video"?y.submitForm_(void 0,y.data.backstageAttachment.videoRenderer.videoId):F?y.submitForm_(void 0,void 0,F):y.taggedVideoId_!==void 0?y.submitForm_(void 0,void 0,void 0,void 0,void 0,y.taggedVideoId_):y.submitForm_(),
_.rR(L)}})},
openSchedulingPanel:function(p){p&&p.scheduleButton&&p.scheduleButton.buttonRenderer&&(this.scheduleButton_=p.scheduleButton.buttonRenderer);p&&p.dateTimePicker&&this.set("data.schedulingDateTimePicker",p.dateTimePicker)},
openImagePollComponent:function(){this.addedAttachment="image-poll";this.$["image-poll-attachment"]&&this.$["image-poll-attachment"].resetPollOptions()},
openQuizComponent:function(){this.addedAttachment="quiz";this.$["quiz-attachment"]&&this.$["quiz-attachment"].resetQuizOptions()},
onCancel_:function(p){p.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(p){p.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(p){p.stopPropagation();p.detail.alertMessage&&(this.alertMessage_=p.detail.alertMessage)},
onImageSelected_:function(p){p.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(p){p.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(p){p.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(p.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(p){p.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(p){var y=this.$["video-link-attachment"];y&&y.onLaunchVideoPicker(p)},
onAttachmentDismiss_:function(p){p.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.n("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.n("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var p;if(this.addedAttachment==="image-poll"&&((p=this.$["image-poll-attachment"])==null||!p.isValid()))return!1;var y;if(this.addedAttachment==="quiz"&&((y=this.$["quiz-attachment"])==null||!y.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;p=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(p=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")p=!0;return p||!!this.getTextAreaValue().trim()},
submitForm_:function(p,y,l,q,t,E){var e=this.getTextAreaValue().trim(),C={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&e===this.previousText_&&(e=void 0);e!==void 0&&(C.comment_text=e);this.isLoading=!0;E!=void 0&&(C.tagged_video_id=E);p?(C.image_blob_id=p,this.imagePreviewCoordinates_&&(C.image_preview_coordinates=this.imagePreviewCoordinates_)):y?C.attached_video_id=y:l?C.shared_post_id=l:t&&t.length>0&&(C.images_data=t.map(function(u){return{encryptedBlobId:u.encryptedBlobId,
previewCoordinates:u.previewCoordinates}}));
q&&(C.source_video_id=q);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(C.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(C.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(C.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.n("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(C.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.n("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(C.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.ny(this,[this.serviceEndpoint,C])},
onIsInputFocusChanged_:function(p,y){p?this.fire("yt-autonav-pause-focus"):y!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(p){var y=this.getEditableTextArea_();[].concat(_.xq(p.dataTransfer.items)).forEach(function(l){l.kind==="string"&&l.type.match("^text/plain")&&l.getAsString(function(q){y.appendChild(document.createTextNode(q))})});
p.preventDefault()},
preventDefault_:function(p){p.preventDefault()},
onSuggestionInsert_:function(p){this.insertTextWithEmojis_(p.detail.range,p.detail.text)},
onEmojiSuggestionClick_:function(p){this.emojiInput.insertSuggestion(p.detail)},
computeSubmitButtonClass_:function(p,y){return!y||p?"":"with-options"},
updateSuggestionOffset_:function(p){if(this.emojiInput&&_.jR(this.emojiInput).querySelector("#dropdown")){var y=this.getEditableTextArea_().getBoundingClientRect().bottom,l=p.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(y-l)+5;y=this.getEditableTextArea_().getBoundingClientRect().left;p=p.getBoundingClientRect().left-y;_.jR(this.emojiInput).querySelector("#dropdown").style.marginLeft=p+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(p){if(_.n("enable_post_scheduling")&&this.data&&this.data.purpose){p=p.detail;if(Math.floor(Date.now()/1E3)>=p)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var y=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(y)||y!==p?this.scheduledPublishTimeSec_=p:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=p;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var p=["image-button","image-poll-button","poll-button"];_.n("enable_quiz_creation")&&p.push("quiz-button");_.n("auto_convert_posts_video_tag")||p.push("video-link-button");return p},
getButtonRenderer:function(p,y){if(p)switch(y){case "video-link-button":var l;return((l=p.videoLinkButton)==null?void 0:l.buttonRenderer)||void 0;case "image-button":var q;return((q=p.imageButton)==null?void 0:q.buttonRenderer)||void 0;case "poll-button":var t;return((t=p.pollButton)==null?void 0:t.buttonRenderer)||void 0;case "image-poll-button":var E;return((E=p.imagePollButton)==null?void 0:E.buttonRenderer)||void 0;case "quiz-button":var e;return((e=p.quizButton)==null?void 0:e.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var p;return(p=this.data)==null||!p.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var p,y;return!((p=this.data)==null||!p.openAadcDialog)&&!((y=this.aadcGuidelinesState_)==null||!y.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.OY("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var p;((p=this.data)==null?0:p.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.XL("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(p){p.clickTrackingParams&&_.Ll().clickCommand(p);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.$w(this,"yt-close-popup-action")},
onHideIdentityChip:function(p){var y;this.set("data.placeholderText",(y=p.hideIdentityChipAction)==null?void 0:y.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var KE=function(){var p=_.w.apply(this,arguments)||this;p.isOpen=!1;p.modern=_.n("web_modern_buttons");p.roundedContainer=!0;p.dropdownButtonOverride=_.n("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;p.inPopupContainer=!1;p.isCommentboxLoading=!1;var y=["image-button","image-poll-button","poll-button"];_.n("enable_quiz_creation")&&y.push("quiz-button");_.n("auto_convert_posts_video_tag")||y.push("video-link-button");p.attachmentButtonIds=y;p.actionMap={"yt-create-comment-action":"onCreateCommentAction",
"yt-create-poll-action":"onCreatePollAction","yt-add-video-link-action":"onAddVideoLinkAction","yt-show-scheduling-panel-command":"onShowSchedulingPanelCommand","yt-create-image-poll-command":"onCreateImagePollCommand","yt-create-quiz-command":"onCreateQuizCommand"};return p};
_.A(KE,_.w);_.J=KE.prototype;_.J.computeButtonOverride=function(){var p;return((p=this.data)==null?0:p.postOptionsMenu)&&_.n("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.J.configureRendererStamper=function(){var p={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.n("auto_convert_posts_video_tag")||(p["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return p};
_.J.ready=function(){var p=this,y=_.jR(this.hostElement).querySelector("#placeholder-area"),l=function(q){p.onOpen(q)};
y.addEventListener("tap",l);y.addEventListener("keypress",l)};
_.J.showButtonEduTooltip=function(){var p,y,l,q,t,E,e;if(_.n("enable_quiz_creation")&&((p=this.data)==null?0:(y=p.quizButton)==null?0:(l=y.buttonRenderer)==null?0:(q=l.hint)==null?0:(t=q.hintRenderer)==null?0:(E=t.content)==null?0:(e=E.bubbleHintRenderer)==null?0:e.text)&&(_.j4.getInstance(),p=b2(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(p==null?void 0:
p.length)>0)){this.ytComponentBehavior.resolveCommand(p[0],{form:{element:this.quizButton}});return}var C;if((C=this.data)==null?0:C.imagePollButtonTooltip)if(_.j4.getInstance(),C=b2(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(C==null?void 0:C.length)>0){this.ytComponentBehavior.resolveCommand(C[0],{form:{element:this.imagePollButton}});return}var u;_.n("enable_multi_image_post_creation")&&
((u=this.data)==null?0:u.multiImageButtonTooltip)&&(_.j4.getInstance(),u=b2(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(u==null?void 0:u.length)>0&&this.ytComponentBehavior.resolveCommand(u[0],{form:{element:this.imageButton}}))};
_.J.onCreatePollAction=function(p){_.G(p,ZuU)&&(this.JSC$15680_commentbox.addedAttachment="poll",this.openDialog())};
_.J.onAddVideoLinkAction=function(p){if(_.G(p,nvx))this.JSC$15680_commentbox.onAddVideoLink(p)};
_.J.onShowSchedulingPanelCommand=function(p){(p=_.G(p,oCx))&&this.openSchedulingPanel(p)};
_.J.onCreateImagePollCommand=function(p){_.G(p,a9r)&&(this.JSC$15680_commentbox.openImagePollComponent(),this.openDialog())};
_.J.onCreateQuizCommand=function(p){_.G(p,mvQ)&&(this.JSC$15680_commentbox.openQuizComponent(),this.openDialog())};
_.J.openSchedulingPanel=function(p){_.n("enable_post_scheduling")&&(this.openDialog(),this.JSC$15680_commentbox.openSchedulingPanel(p))};
_.J.onCreateCommentAction=function(p){this.get("createCommentAction.contents",p)&&(this.JSC$15680_commentbox.clear(),this.closeDialog())};
_.J.onOpen=function(p){p instanceof KeyboardEvent&&p.type==="keypress"&&p.keyCode!==13&&p.keyCode!==32||(this.data.prepareAccountEndpoint?_.Ub(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.J.onYtCommentboxDismiss=function(){this.closeDialog()};
_.J.onYtCommentboxLoadingStart=function(p){p.stopPropagation();this.isCommentboxLoading=!0};
_.J.onYtCommentboxLoadingEnd=function(p){p.stopPropagation();this.isCommentboxLoading=!1};
_.J.onYtVideoLinkButtonCancel=function(p){p.stopPropagation();this.onOpen(p)};
_.J.onYtVideoLinkSelected=function(p){p.stopPropagation();this.onOpen(p)};
_.J.onIronSelect=function(p){p.stopPropagation();p.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=p.detail.item.value&&(this.accessRestriction?(this.accessRestriction=p.detail.item.value,this.onOpen(p)):this.accessRestriction=p.detail.item.value)};
_.J.onYtNavigate=function(p){this.get("detail.endpoint.backstageImageUploadEndpoint",p)&&(this.JSC$15680_commentbox.addedAttachment="image",this.JSC$15680_commentbox.submitButtonDisabled=!0,this.onOpen(p))};
_.J.onRequestSent=function(p){if(_.n("web_button_rework"))for(var y=_.c(p.detail),l=y.next();!l.done;l=y.next())_.G(l.value,V1B)&&(this.JSC$15680_commentbox.addedAttachment="image",this.JSC$15680_commentbox.submitButtonDisabled=!0,this.onOpen(p))};
_.J.openDialog=function(){this.JSC$15680_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$15680_commentbox.focus()};
_.J.onPopupClosed=function(){_.j4.getInstance()};
_.J.computeCreationDisabled=function(p){return!!p};
_.J.computeIsCreationDialog=function(p){return!!p&&p==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.J.computeDisabledPostButton=function(p){if(!p)return null;p.isDisabled=!0;return p};
_.J.computeIsCreationDialogWithHeader=function(p){return!this.inPopupContainer&&!!p&&!!p.authorText&&p.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.J.computeIsHeaderHidden=function(p,y){return!p||y};
_.J.computeDropdownRendererClasses=function(p){return p?["text-secondary-style"]:[]};
_.J.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var p=_.jR(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;p&&p.reset()};
KE.prototype.onPopupClosed=KE.prototype.onPopupClosed;KE.prototype.onRequestSent=KE.prototype.onRequestSent;KE.prototype.onYtNavigate=KE.prototype.onYtNavigate;KE.prototype.onIronSelect=KE.prototype.onIronSelect;KE.prototype.onYtVideoLinkSelected=KE.prototype.onYtVideoLinkSelected;KE.prototype.onYtVideoLinkButtonCancel=KE.prototype.onYtVideoLinkButtonCancel;KE.prototype.onYtCommentboxLoadingEnd=KE.prototype.onYtCommentboxLoadingEnd;KE.prototype.onYtCommentboxLoadingStart=KE.prototype.onYtCommentboxLoadingStart;
KE.prototype.onYtCommentboxDismiss=KE.prototype.onYtCommentboxDismiss;KE.prototype.showButtonEduTooltip=KE.prototype.showButtonEduTooltip;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],KE.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],KE.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],KE.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],KE.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],KE.prototype,"isOpen",void 0);_.H([_.Q({computed:"computeButtonOverride(data)"}),_.x("design:type",Object)],KE.prototype,"buttonOverride",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],KE.prototype,"modern",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],KE.prototype,"roundedContainer",void 0);_.H([_.Q(),_.x("design:type",Object)],KE.prototype,"dropdownButtonOverride",void 0);_.H([_.Q({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.x("design:type",Boolean)],KE.prototype,"creationDisabled",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],KE.prototype,"enableCreationBox",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.x("design:type",Boolean)],KE.prototype,"isCreationDialog",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],KE.prototype,"inPopupContainer",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.x("design:type",Boolean)],KE.prototype,"isCreationDialogWithHeader",void 0);_.H([_.Q(),_.x("design:type",Object)],KE.prototype,"accessRestriction",void 0);
_.H([_.Q({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.x("design:type",Array)],KE.prototype,"dropdownRendererClasses",void 0);_.H([_.Q(),_.x("design:type",Object)],KE.prototype,"isCommentboxLoading",void 0);_.H([_.Q(),_.x("design:type",Array)],KE.prototype,"attachmentButtonIds",void 0);_.H([_.rd("#image-button"),_.x("design:type",HTMLElement)],KE.prototype,"imageButton",void 0);
_.H([_.rd("#image-poll-button"),_.x("design:type",HTMLElement)],KE.prototype,"imagePollButton",void 0);_.H([_.rd("#quiz-button"),_.x("design:type",HTMLElement)],KE.prototype,"quizButton",void 0);_.H([_.rd("#commentbox"),_.x("design:type",Object)],KE.prototype,"JSC$15680_commentbox",void 0);_.H([_.gd("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KE.prototype,"showButtonEduTooltip",null);
_.H([_.VU("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],KE.prototype,"onYtCommentboxDismiss",null);_.H([_.VU("yt-commentbox-loading-start"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],KE.prototype,"onYtCommentboxLoadingStart",null);
_.H([_.VU("yt-commentbox-loading-end"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],KE.prototype,"onYtCommentboxLoadingEnd",null);_.H([_.VU("yt-video-link-button-cancel"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],KE.prototype,"onYtVideoLinkButtonCancel",null);
_.H([_.VU("yt-video-link-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],KE.prototype,"onYtVideoLinkSelected",null);_.H([_.VU("iron-select"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],KE.prototype,"onIronSelect",null);_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],KE.prototype,"onYtNavigate",null);
_.H([_.VU("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],KE.prototype,"onRequestSent",null);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KE.prototype,"onPopupClosed",null);_.H([_.k({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],KE);
_.D(KE,"ytd-backstage-post-dialog-renderer",function(){if(b3r!==void 0)return b3r;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return b3r=p},{mode:1});var IfB;var p1O;var wv=function(){return _.w.apply(this,arguments)||this};
_.A(wv,_.w);_.J=wv.prototype;_.J.computeHeartButtonStyle=function(p){return(p==null?0:p.styleType)?p.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.J.onYtButtonTap=function(){if(this.data.isEnabled){var p=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(p=this.getEndpoint(p))&&_.WC().resolve(_.aK).resolveCommand(p,{form:{element:this.hostElement}})}else(p=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(p)};
_.J.toggle=function(p){this.set("data.isHearted",p!==void 0?p:!this.data.isHearted)};
_.J.getEndpoint=function(p){var y,l=(y=this.data)==null?void 0:y.heartEndpoint,q;y=(q=this.data)==null?void 0:q.unheartEndpoint;if(l&&y)return p?y:l};
_.J.computeButtonAccessibility=function(p,y){var l,q,t=p==null?void 0:(l=p.heartedAccessibility)==null?void 0:(q=l.accessibilityData)==null?void 0:q.label,E,e;p=p==null?void 0:(E=p.unheartedAccessibility)==null?void 0:(e=E.accessibilityData)==null?void 0:e.label;return y?t:p};
_.Jh.Object.defineProperties(wv.prototype,{heartTooltip:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.data.isHearted?this.data.heartedTooltip:this.data.unheartedTooltip}},
iconFilled:{configurable:!0,enumerable:!0,get:function(){var p;return _.n("kevlar_system_icons")&&!((p=this.data)==null||!p.isHearted)}}});
wv.prototype.onYtButtonTap=wv.prototype.onYtButtonTap;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.RP),_.x("design:type",Object)],wv.prototype,"ytdOpenPopupBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],wv.prototype,"data",void 0);_.H([_.g("data.isHearted"),_.x("design:type",Object),_.x("design:paramtypes",[])],wv.prototype,"heartTooltip",null);
_.H([_.g("data.isHearted"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],wv.prototype,"iconFilled",null);_.H([_.Q({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.x("design:type",String)],wv.prototype,"buttonAccessibility",void 0);_.H([_.Q({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.x("design:type",String)],wv.prototype,"heartButtonStyle",void 0);
_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wv.prototype,"onYtButtonTap",null);_.H([_.k({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],wv);
_.D(wv,"ytd-creator-heart-renderer",function(){if(p1O!==void 0)return p1O;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-creator-heart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="creator-heart-button" disabled="[[!data.isEnabled]]" label="[[buttonAccessibility]]" class="style-scope ytd-creator-heart-renderer">\n  <template is="dom-if" if="[[data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-img-shadow id="hearted-thumbnail" thumbnail="[[data.creatorThumbnail]]" class="style-scope ytd-creator-heart-renderer"></yt-img-shadow>\n    <yt-icon id="hearted-border" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n    <yt-icon id="hearted" default-to-filled="[[iconFilled]]" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n  <template is="dom-if" if="[[!data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-icon id="unhearted" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-creator-heart-renderer">[[heartTooltip]]</tp-yt-paper-tooltip>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return p1O=p},{mode:1});var iF=function(){var p=_.w.apply(this,arguments)||this;p.hasCreatorReply=!1;p.buttonOverrides={size:"S",iconPosition:"icon-only"};p.replyButtonOverrides={size:"S",type:"text"};p.forceIconButton=!_.n("web_modern_buttons");p.modern=_.n("web_modern_buttons");p.buttonTooltipPosition="bottom";p.systemIcons=_.n("kevlar_system_icons");p.replyDialog=null;return p};
_.A(iF,_.w);_.J=iF.prototype;
_.J.configureRendererStamper=function(){return{"data.creatorHeart":{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}},replyButtonBeginning:{id:"reply-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}},replyButtonEnd:{id:"reply-button-end",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0},properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]",overrides:"[[replyButtonOverrides]]",forceIconButton:"[[forceIconButton]]"}}}},
"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]"}}}}}};
_.J.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.J.dataChange=function(){this.replyDialog&&_.jR(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var p,y,l;this.isLiked=this.systemIcons&&!!((p=this.data)==null?0:(y=p.likeButton)==null?0:(l=y.toggleButtonRenderer)==null?0:l.isToggled)};
_.J.computeShowVoteCountBeginning=function(p,y){return p===void 0||y===void 0?!0:p.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!y&&this.ytRendererBehavior.getSimpleString(y)!=="0"};
_.J.computeShowVoteCountEnd=function(p,y){return p===void 0||y===void 0?!0:p.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!y&&this.ytRendererBehavior.getSimpleString(y)!=="0"};
_.J.computeShowCommentCount=function(p,y){return p===void 0||y===void 0?!0:p.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!y&&this.ytRendererBehavior.getSimpleString(y)!=="0"};
_.J.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.J.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.J.showReplyDialog=function(p){p&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.jR(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=p,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.J.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.J.onRequestSent=function(p){if(_.n("web_button_rework")){p=_.c(p.detail);for(var y=p.next();!y.done;y=p.next())(y=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",y.value))&&this.showReplyDialog(y)}};
_.J.onYtNavigate=function(p){var y,l;(p=(y=_.G(p.detail.endpoint,_.Q$x))==null?void 0:(l=y.dialog)==null?void 0:l.commentReplyDialogRenderer)&&this.showReplyDialog(p)};
_.J.onYtServiceRequestSent=function(p,y){p.stopPropagation();if(y.actions)for(p=0;p<y.actions.length;p++){var l=_.G(y.actions[p],wfx);l&&this.handleUpdateCommentVoteAction(l)}};
_.J.handleUpdateCommentVoteAction=function(p){this.voteCount=p.voteCount||_.EK("0");p.voteStatus==="LIKE"?this.JSC$15691_ytdDislikeToggleButtonRenderer.toggle(!1):p.voteStatus==="DISLIKE"?this.JSC$15691_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15691_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15691_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.J.computeReplyButtonHidden=function(p){return p};
_.J.computeReplyButtonBeginning=function(p){return(p==null?0:p.replyButton)&&p.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?p.replyButton:void 0};
_.J.computeReplyButtonEnd=function(p){return(p==null?0:p.replyButton)&&p.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?p.replyButton:void 0};
_.J.computeActionButtonStyle=function(p){return(p==null?0:p.style)?p.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.J.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.J.onYtToggleButton=function(p){var y,l;this.isLiked=this.systemIcons&&!!((y=p.detail)==null?0:(l=y.actions)==null?0:l.like)};
iF.prototype.onYtToggleButton=iF.prototype.onYtToggleButton;iF.prototype.onButtonTooltipPositionChanged=iF.prototype.onButtonTooltipPositionChanged;iF.prototype.onYtServiceRequestSent=iF.prototype.onYtServiceRequestSent;iF.prototype.onYtNavigate=iF.prototype.onYtNavigate;iF.prototype.onRequestSent=iF.prototype.onRequestSent;iF.prototype.onYtCommentboxDismiss=iF.prototype.onYtCommentboxDismiss;iF.prototype.dataChange=iF.prototype.dataChange;
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],iF.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],iF.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],iF.prototype,"voteCount",void 0);_.H([_.Q(),_.x("design:type",Object)],iF.prototype,"commentCount",void 0);_.H([_.Q(),_.x("design:type",Object)],iF.prototype,"replyThumbnail",void 0);
_.H([_.Q(),_.x("design:type",Object)],iF.prototype,"hasCreatorReply",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],iF.prototype,"enableCreationBox",void 0);_.H([_.Q({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.x("design:type",String)],iF.prototype,"actionButtonsStyle",void 0);_.H([_.Q({computed:"computeReplyButtonBeginning(data)"}),_.x("design:type",Object)],iF.prototype,"replyButtonBeginning",void 0);
_.H([_.Q({computed:"computeReplyButtonEnd(data)"}),_.x("design:type",Object)],iF.prototype,"replyButtonEnd",void 0);_.H([_.Q(),_.x("design:type",Object)],iF.prototype,"buttonOverrides",void 0);_.H([_.Q(),_.x("design:type",Object)],iF.prototype,"replyButtonOverrides",void 0);_.H([_.Q(),_.x("design:type",Object)],iF.prototype,"forceIconButton",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],iF.prototype,"useCommentIcon",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],iF.prototype,"modern",void 0);_.H([_.Q(),_.x("design:type",Object)],iF.prototype,"buttonTooltipPosition",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],iF.prototype,"systemIcons",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],iF.prototype,"isLiked",void 0);_.H([_.rd("ytd-button-renderer"),_.x("design:type",Object)],iF.prototype,"ytdReplyButtonRenderer",void 0);
_.H([_.rd("#like-button"),_.x("design:type",Object)],iF.prototype,"JSC$15691_ytdLikeToggleButtonRenderer",void 0);_.H([_.rd("#dislike-button"),_.x("design:type",Object)],iF.prototype,"JSC$15691_ytdDislikeToggleButtonRenderer",void 0);_.H([_.rd("#reply-dialog"),_.x("design:type",HTMLElement)],iF.prototype,"replyDialogElement",void 0);_.H([_.rd("#reply-button"),_.x("design:type",HTMLElement)],iF.prototype,"replyButtonElement",void 0);
_.H([_.rd("#reply-button-end"),_.x("design:type",HTMLElement)],iF.prototype,"replyButtonEndElement",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iF.prototype,"dataChange",null);_.H([_.VU("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],iF.prototype,"onYtCommentboxDismiss",null);
_.H([_.VU("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],iF.prototype,"onRequestSent",null);_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],iF.prototype,"onYtNavigate",null);
_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],iF.prototype,"onYtServiceRequestSent",null);_.H([_.gd("buttonTooltipPosition"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iF.prototype,"onButtonTooltipPositionChanged",null);
_.H([_.VU("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],iF.prototype,"onYtToggleButton",null);_.H([_.k({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],iF);
_.D(iF,"ytd-comment-action-buttons-renderer",function(){if(IfB!==void 0)return IfB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-action-buttons-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-action-buttons-renderer">\n  <div id="reply-button" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <span id="vote-count-left" hidden="[[!computeShowVoteCountBeginning(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.likeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!computeShowVoteCountEnd(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.dislikeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <div id="creator-heart" class="style-scope ytd-comment-action-buttons-renderer"></div>\n  <div id="share-button" hidden="[[!data.shareButton]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <div id="reply-button-end" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  \n  <span id="comment-count" hidden="[[!computeShowCommentCount(data, commentCount)]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(commentCount)]]\n  </span>\n</div>\n<div id="reply-dialog" class="style-scope ytd-comment-action-buttons-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return IfB=p},{mode:1});var yDU;var rv=function(){return _.w.apply(this,arguments)||this};
_.A(rv,_.w);rv.prototype.focus=function(){_.jR(this.hostElement).querySelector("#commentbox").focus()};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],rv.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],rv.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],rv.prototype,"zeroStepChannelCreationRenderer",void 0);_.H([_.k({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],rv);
_.D(rv,"ytd-comment-dialog-renderer",function(){if(yDU!==void 0)return yDU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" zero-step-channel-creation-renderer="[[zeroStepChannelCreationRenderer]]" class="style-scope ytd-comment-dialog-renderer">\n</ytd-commentbox>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return yDU=p},{mode:1});var lNN;var Sa=function(){var p=_.w.apply(this,arguments)||this;p.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.n("enable_web_delhi_icons")};p.replyButtonOverrides={size:"S",type:"text"};return p};
_.A(Sa,_.w);_.J=Sa.prototype;_.J.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.J.detached=function(){this.replyBox&&this.replyBox.remove()};
_.J.showReplyDialog=function(p){if(p){var y=this.replyBox;y||(y=document.createElement("ytd-comment-reply-dialog-renderer"),y.id="replybox",_.jR(this.replyDialogDiv).appendChild(y));y.data=p;this.replyDialogDiv.hidden=!1;y.openDialog()}};
_.J.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.J.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var p,y=_.G((p=this.toolbarSurface)==null?void 0:p.subscribersOnlyDisclaimerSnackbarCommand,_.pY);y&&_.Ub(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:y})}};
_.J.onYtServiceRequestSent=function(p,y){p.stopPropagation();if(y.actions)for(var l=0;l<y.actions.length;l++){var q=_.G(y.actions[l],wfx);q?this.handleUpdateCommentVoteAction(q):p.target===this.heartButton&&this.toggleHeartState()}};
_.J.handleUpdateCommentVoteAction=function(p){var y;(y=this.toolbarState)!=null&&y.key&&this.ytdReduxBehavior.dispatch(_.Ow("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:p.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":p.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.J.toggleHeartState=function(){var p;(p=this.toolbarState)!=null&&p.key&&this.ytdReduxBehavior.dispatch(_.Ow("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Jh.Object.defineProperties(Sa.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return(((p=this.toolbarState)==null?void 0:p.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(y=this.toolbarData)==null?void 0:y.likeCountLiked:(l=this.toolbarData)==null?void 0:l.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.toolbarSurface)==null?void 0:p.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.toolbarSurface)==null?void 0:p.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.toolbarSurface)==null?void 0:p.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.toolbarSurface)==null?void 0:p.prepareAccountCommand)!==void 0&&!_.n("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var p,y=_.G((p=this.toolbarSurface)==null?void 0:p.prepareAccountCommand,_.pY),l,q,t,E,e,C,u,a,m;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((l=this.toolbarSharedData)==null||!l.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((q=this.toolbarState)==null?void 0:q.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:y!=null?y:_.G((t=this.toolbarSurface)==null?void 0:t.likeCommand,_.pY),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:y!=null?y:_.G((E=this.toolbarSurface)==null?void 0:E.unlikeCommand,_.pY),defaultCommand:this.isVisiblyDisabled?_.G((e=this.toolbarSurface)==null?void 0:e.commentDisabledActionCommand,_.pY):void 0,defaultTooltip:(C=this.toolbarData)==null?void 0:C.likeInactiveTooltip,toggledTooltip:(u=this.toolbarData)==null?void 0:u.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(a=this.toolbarData)==null?void 0:a.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(m=this.toolbarSharedData)==null?void 0:m.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var p,y=_.G((p=this.toolbarSurface)==null?void 0:p.prepareAccountCommand,_.pY),l,q,t,E,e,C,u,a,m,U;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((l=this.toolbarSharedData)==null||!l.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((q=this.toolbarState)==null?void 0:q.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:y!=null?y:_.G((t=this.toolbarSurface)==null?void 0:t.dislikeCommand,_.pY),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:y!=null?y:_.G((E=this.toolbarSurface)==null?void 0:E.undislikeCommand,_.pY),defaultCommand:this.isVisiblyDisabled?_.G((e=this.toolbarSurface)==null?void 0:e.commentDisabledActionCommand,_.pY):void 0,defaultTooltip:(C=this.toolbarData)==null?void 0:C.dislikeInactiveTooltip,toggledTooltip:(u=this.toolbarData)==null?void 0:
u.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(a=this.toolbarSharedData)==null?void 0:a.dislikeReplyButtonA11y:(m=this.toolbarSharedData)==null?void 0:m.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 p,y,l;if(((p=this.toolbarState)==null?void 0:p.heartState)!==void 0&&((y=this.toolbarState)==null?void 0:y.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((l=this.toolbarState)==null?void 0:l.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var q,t,E,e,C,u,a,m,U,b,P,Z,K,F;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(q=this.toolbarData)==null?void 0:q.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((t=this.toolbarState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((E=this.toolbarState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((e=this.toolbarState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((C=this.toolbarState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.G((u=this.toolbarSurface)==null?void 0:u.heartCommand,
_.pY),unheartEndpoint:this.isVisiblyDisabled?void 0:_.G((a=this.toolbarSurface)==null?void 0:a.unheartCommand,_.pY),disabledEndpoint:this.isVisiblyDisabled?_.G((m=this.toolbarSurface)==null?void 0:m.commentDisabledActionCommand,_.pY):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(U=this.toolbarData)==null?void 0:U.heartActiveTooltip,unheartedTooltip:(b=this.toolbarData)==null?void 0:b.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((P=
this.toolbarState)==null?void 0:P.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(Z=this.toolbarSharedData)==null?void 0:Z.unheartButtonA11y:(K=this.toolbarSharedData)==null?void 0:K.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(F=this.toolbarSharedData)==null?void 0:F.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.toolbarSurface)==null||!p.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(p=this.commentStrings)==null?void 0:p.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.G((y=this.toolbarSurface)==null?void 0:y.replyCommand,_.pY),command:this.isVisiblyDisabled?_.G((l=this.toolbarSurface)==null?
void 0:l.commentDisabledActionCommand,_.pY):this.isSubsOnlyCommentsIneligibleUser?_.G((q=this.toolbarSurface)==null?void 0:q.subscribersOnlySnackbarCommand,_.pY):void 0}}}});
Sa.prototype.onYtServiceRequestSent=Sa.prototype.onYtServiceRequestSent;Sa.prototype.hideReplyDialogDiv=Sa.prototype.hideReplyDialogDiv;_.H([_.Q(),_.x("design:type",Object)],Sa.prototype,"commentStrings",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Sa.prototype,"isReply",void 0);_.H([_.Q(),_.x("design:type",Object)],Sa.prototype,"toolbarData",void 0);_.H([_.Q(),_.x("design:type",Object)],Sa.prototype,"toolbarSharedData",void 0);
_.H([_.Q(),_.x("design:type",String)],Sa.prototype,"toolbarStateKey",void 0);_.H([_.Q(),_.x("design:type",String)],Sa.prototype,"toolbarSurfaceKey",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Sa.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Sa.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Sa.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.RP),_.x("design:type",Object)],Sa.prototype,"ytdOpenPopupBehavior",void 0);_.H([_.rd("#reply-dialog"),_.x("design:type",HTMLElement)],Sa.prototype,"replyDialogDiv",void 0);_.H([_.rd("#replybox"),_.x("design:type",Object)],Sa.prototype,"replyBox",void 0);_.H([_.rd("ytd-creator-heart-renderer"),_.x("design:type",Object)],Sa.prototype,"heartButton",void 0);_.H([_.Q({selector:function(p,y){return _.Ae(p.entities,"engagementToolbarStateEntityPayload",y)},
selectorArgs:["toolbarStateKey"]}),_.x("design:type",Object)],Sa.prototype,"toolbarState",void 0);_.H([_.Q({selector:grg,selectorArgs:["toolbarSurfaceKey"]}),_.x("design:type",Object)],Sa.prototype,"toolbarSurface",void 0);_.H([_.Q(),_.x("design:type",Object)],Sa.prototype,"buttonOverrides",void 0);_.H([_.VU("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Sa.prototype,"hideReplyDialogDiv",null);
_.H([_.g("toolbarData","toolbarState"),_.x("design:type",String),_.x("design:paramtypes",[])],Sa.prototype,"likeCount",null);_.H([_.g("likeCount"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Sa.prototype,"showLikeCount",null);_.H([_.g("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Sa.prototype,"isVisiblyDisabled",null);_.H([_.g("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Sa.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.H([_.g("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Sa.prototype,"isSubsOnlyCommentsEligibleUser",null);_.H([_.g("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Sa.prototype,"hasPrepareAccountCommand",null);_.H([_.g("toolbarData","toolbarState","toolbarSurface"),_.x("design:type",Object),_.x("design:paramtypes",[])],Sa.prototype,"likeToggleButtonRenderer",null);
_.H([_.g("isReply","toolbarData","toolbarState","toolbarSurface"),_.x("design:type",Object),_.x("design:paramtypes",[])],Sa.prototype,"dislikeToggleButtonRenderer",null);_.H([_.g("toolbarData","toolbarState","toolbarSurface"),_.x("design:type",Object),_.x("design:paramtypes",[])],Sa.prototype,"creatorHeartSupportedRenderer",null);_.H([_.g("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Sa.prototype,"hasReplyCommand",null);
_.H([_.g("toolbarSurface","commentStrings","isVisiblyDisabled"),_.x("design:type",Object),_.x("design:paramtypes",[])],Sa.prototype,"replyButtonRenderer",null);_.H([_.Q(),_.x("design:type",Object)],Sa.prototype,"replyButtonOverrides",void 0);_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],Sa.prototype,"onYtServiceRequestSent",null);_.H([_.k({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Sa);
_.D(Sa,"ytd-comment-engagement-bar",function(){if(lNN!==void 0)return lNN;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return lNN=p},{mode:1});var qDP;var Fg=function(){return _.w.apply(this,arguments)||this};
_.A(Fg,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Fg.prototype,"data",void 0);_.H([_.k({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],Fg);
_.D(Fg,"ytd-comment-inline-thumbnail-renderer",function(){if(qDP!==void 0)return qDP;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-inline-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-comment-inline-thumbnail-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumbnail-container style-scope ytd-comment-inline-thumbnail-renderer" hidden="[[!data.thumbnail]]">\n    <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]" class="style-scope ytd-comment-inline-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</a>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return qDP=p},{mode:1});var shU;var LE=function(){return _.w.apply(this,arguments)||this};
_.A(LE,_.w);LE.prototype.onMessageTap=function(){if(this.onTapCommand){var p=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);p&&this.ytdOpenPopupBehavior.openPopup(p)}};
_.Jh.Object.defineProperties(LE.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return(p=this.data)==null?void 0:(y=p.button)==null?void 0:(l=y.buttonRenderer)==null?void 0:l.command}}});
_.H([_.V(_.RP),_.x("design:type",Object)],LE.prototype,"ytdOpenPopupBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],LE.prototype,"data",void 0);_.H([_.g("data.button.buttonRenderer.command"),_.x("design:type",Object),_.x("design:paramtypes",[])],LE.prototype,"onTapCommand",null);_.H([_.k({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],LE);
_.D(LE,"ytd-comment-pause-composer-renderer",function(){if(shU!==void 0)return shU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return shU=p},{mode:1});var tfO;var ENN;var k2=function(){var p=_.w.apply(this,arguments)||this;p.isOpen=!1;return p};
_.A(k2,_.w);_.J=k2.prototype;_.J.dataChanged=function(){this.isOpen=!1};
_.J.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Ub(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.J.focus=function(){this.JSC$15721_commentbox.focus()};
_.J.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.J.openDialog=function(){this.isOpen=!0;this.JSC$15721_commentbox.focus();this.JSC$15721_commentbox.maybeHeightChanged()};
k2.prototype.onYtCommentboxDismiss=k2.prototype.onYtCommentboxDismiss;k2.prototype.dataChanged=k2.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],k2.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],k2.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],k2.prototype,"isOpen",void 0);_.H([_.rd("#commentbox"),_.x("design:type",Object)],k2.prototype,"JSC$15721_commentbox",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],k2.prototype,"dataChanged",null);_.H([_.VU("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],k2.prototype,"onYtCommentboxDismiss",null);_.H([_.k({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],k2);
_.D(k2,"ytd-comment-reply-dialog-renderer",function(){if(ENN!==void 0)return ENN;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-reply-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-reply="" class="style-scope ytd-comment-reply-dialog-renderer">\n</ytd-commentbox>\n<div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-comment-reply-dialog-renderer">\n  <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-reply-dialog-renderer">\n  </yt-img-shadow>\n  <div id="placeholder-area" on-tap="onTap" on-keydown="onTap" class="style-scope ytd-comment-reply-dialog-renderer">\n    <yt-formatted-string id="placeholder-text" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-reply-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return ENN=p},{mode:1});var JDB;var N3=function(){return _.w.apply(this,arguments)||this};
_.A(N3,_.w);_.Jh.Object.defineProperties(N3.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var p,y,l=(p=this.data)==null?void 0:(y=p.icon)==null?void 0:y.iconType;return l?"yt-icons:"+l.toLowerCase():null}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],N3.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],N3.prototype,"data",void 0);_.H([_.Q(),_.g("data.icon"),_.x("design:type",Object),_.x("design:paramtypes",[])],N3.prototype,"icon",null);_.H([_.k({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],N3);
_.D(N3,"ytd-pinned-comment-badge-renderer",function(){if(JDB!==void 0)return JDB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pinned-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon hidden="[[!icon]]" icon="[[icon]]" size="12" class="style-scope ytd-pinned-comment-badge-renderer"></yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-pinned-comment-badge-renderer"></yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return JDB=p},{mode:1});var cD$;var etx={},htZ={input:!0,meta:!0,br:!0,link:!0,img:!0},Dn=null;etx.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(){Dn==null&&(Dn=document.createElement("tp-yt-paper-tooltip"),Dn.offset=8,Dn.fitToVisibleBounds=!0)},
onMouseOver_:function(p){if(p=_.dV(p.target,function(t){return t==this||t.getAttribute&&t.getAttribute("shared-tooltip-text")}.bind(this),!0)){var y=p.getAttribute("shared-tooltip-text");
if(y){var l=this,q=null;p!=this&&(p.tagName.toLowerCase()in htZ?l=p.parentElement:l=p,p.id&&(q=p.id));this.polymerController.createTooltipIfRequired_();if(Dn.parentElement!=l||Dn.for!=q)(0,_.Pm)(Dn).textContent=y,_.jR(l).appendChild(Dn),Dn.for=q,Dn.animationDelay=this.polymerController.sharedTooltipAnimationDelay,Dn.position=this.polymerController.sharedTooltipPosition}}}};var HT=function(){return _.w.apply(this,arguments)||this};
_.A(HT,_.w);HT.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]]"}}}}}};
HT.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
HT.prototype.colorChanged=function(){var p,y,l,q=(p=this.data)==null?void 0:(y=p.color)==null?void 0:(l=y.basicColorPaletteData)==null?void 0:l.foregroundBodyColor;q&&(this.rgbBadgeColor=_.z5(q));_.jR(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
HT.prototype.tooltipChanged=function(){var p;((p=this.data)==null?0:p.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
HT.prototype.tooltipChanged=HT.prototype.tooltipChanged;HT.prototype.colorChanged=HT.prototype.colorChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],HT.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],HT.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(etx.YtSharedTooltipBehavior),_.x("design:type",Object)],HT.prototype,"ytSharedTooltipBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],HT.prototype,"data",void 0);
_.H([_.Q({value:"#4285F4"}),_.x("design:type",String)],HT.prototype,"rgbBadgeColor",void 0);_.H([_.gd("data.color"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HT.prototype,"colorChanged",null);_.H([_.gd("data.tooltip"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HT.prototype,"tooltipChanged",null);_.H([_.k({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],HT);
_.D(HT,"ytd-sponsor-comment-badge-renderer",function(){if(cD$!==void 0)return cD$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsor-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n<div id="custom-badge" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return cD$=p},{mode:1});var CHi;var uvr;var TJ=function(){return _.w.apply(this,arguments)||this};
_.A(TJ,_.w);TJ.prototype.computeState=function(p){switch(p==null?void 0:p.stateIdentifier){case "TRI_STATE_IDENTIFIER_UNTOGGLED_STATE":return"untoggled";case "TRI_STATE_IDENTIFIER_TOGGLING_STATE":return"toggling";case "TRI_STATE_IDENTIFIER_TOGGLED_STATE":return"toggled";default:return"unknown"}};
TJ.prototype.updateStateIdentifier=function(p){if(this.viewModel.triStateKey){var y=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.Ow("triStateButtonStateEntityPayload",y,{key:y,stateIdentifier:p}))}};
TJ.prototype.onClick=function(){var p=this;if(this.data)switch(this.ytRendererBehavior.logExplicitClick(this.data),this.state){case "toggled":this.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE");break;case "untoggled":this.viewModel.transitionCommand?(this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLING_STATE"),this.ytComponentBehavior.resolveCommand(this.viewModel.transitionCommand,{commandController:{onSuccess:function(){p.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){p.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Jh.Object.defineProperties(TJ.prototype,{data:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case "untoggled":return this.viewModel.untoggledStateData;case "toggling":return this.viewModel.togglingStateData;case "toggled":return this.viewModel.toggledStateData}}},
buttonText:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.buttonText)||""}}});
_.H([_.Q(),_.x("design:type",Object)],TJ.prototype,"viewModel",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],TJ.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],TJ.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.H([_.Q({selector:Qo5,selectorArgs:["viewModel.triStateKey"]}),_.x("design:type",Object)],TJ.prototype,"triStateButtonStateEntity",void 0);
_.H([_.Q({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.x("design:type",String)],TJ.prototype,"state",void 0);_.H([_.g("viewModel","state"),_.x("design:type",Object),_.x("design:paramtypes",[])],TJ.prototype,"data",null);_.H([_.g("data"),_.x("design:type",String),_.x("design:paramtypes",[])],TJ.prototype,"buttonText",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],TJ);
_.D(TJ,"ytd-tri-state-button-view-model",function(){if(uvr!==void 0)return uvr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tri-state-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button noink="" on-click="onClick" class="style-scope ytd-tri-state-button-view-model">\n  [[buttonText]]\n</tp-yt-paper-button>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return uvr=p},{mode:1});var Rti;var WQV;var x2=function(){var p=_.w.apply(this,arguments)||this;p.defaultIconToFilled=!_.n("kevlar_fill_comment_chip_icon_killswitch");return p};
_.A(x2,_.w);x2.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
x2.prototype.dataChanged=function(){if(this.data){var p,y;((p=this.data.chipColorPalette)==null?0:p.backgroundColor)&&((y=this.data.chipColorPalette)==null?0:y.foregroundTitleColor)&&_.Ax(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Y9(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Y9(this.data.chipColorPalette.foregroundTitleColor)});var l;((l=this.data)==null?0:l.command)?(_.Ax(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Ax(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}};
x2.prototype.onTap=function(){var p;if(this.data&&(p=this.data)!=null&&p.command){var y;this.ytComponentBehavior.resolveCommand((y=this.data)==null?void 0:y.command)}};
x2.prototype.getIconSize=function(){return _.n("kevlar_fill_comment_chip_icon_killswitch")?24:12};
x2.prototype.onTap=x2.prototype.onTap;x2.prototype.dataChanged=x2.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],x2.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.Ln),_.x("design:type",Object)],x2.prototype,"ironA11yKeysBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],x2.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Object)],x2.prototype,"basePriceText",void 0);_.H([_.Q(),_.x("design:type",Object)],x2.prototype,"chipIcon",void 0);_.H([_.Q(),_.x("design:type",Object)],x2.prototype,"defaultIconToFilled",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x2.prototype,"dataChanged",null);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x2.prototype,"onTap",null);
_.H([_.z9({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],x2);
_.D(x2,"yt-pdg-comment-chip-renderer",function(){if(WQV===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-comment-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.pdg.yt_pdg_comment_chip_renderer.yt.pdg.comment.chip.renderer.css.js--\x3e<div id="comment-chip-container" class="style-scope yt-pdg-comment-chip-renderer"><yt-icon default-to-filled="[[defaultIconToFilled]]" icon="[[chipIcon.iconType]]" size="[[getIconSize()]]" class="style-scope yt-pdg-comment-chip-renderer"></yt-icon><span id="comment-chip-price" class="style-scope yt-pdg-comment-chip-renderer"> [[getSimpleString(basePriceText)]] </span></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;Rti===void 0&&(Rti=document.createElement("template"));var q=Rti;l.call(y,q.content.cloneNode(!0),p.content.firstChild);WQV=p}p=WQV;return p},{mode:2});var BT=function(){var p=_.w.apply(this,arguments)||this;p.useSmallAvatars=_.n("small_avatars_for_comments");p.webWatchCompactComments=_.n("web_watch_compact_comments");p.editDialog=null;return p};
_.A(BT,_.w);_.J=BT.prototype;_.J.onShow=function(){_.vW("cmv",void 0,"wn_comments")};
_.J.configureRendererStamper=function(){return{authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},linkedCommentBadge:{id:"linked-comment-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[linkedCommentBadge]]"}}}},pinnedCommentBadge:{id:"pinned-comment-badge",mapping:{renderer:"ytd-pinned-comment-badge-renderer"}},sponsorCommentBadge:{id:"sponsor-comment-badge",mapping:{renderer:"ytd-sponsor-comment-badge-renderer"}},
editDialog:{id:"edit-dialog",mapping:{commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.J.detached=function(){this.editDialog=null;this.expander.reset()};
_.J.updateBackgroundColor=function(){if(this.backgroundColor){var p={"--ytd-comment-paid-background-color":_.Y9(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Ax(this.hostElement,p)}else _.Ax(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.J.resetExpander=function(){var p;(p=this.expander)==null||p.reset()};
_.J.openEditDialog=function(p){p.dialog&&(this.editDialog=p.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.J.onYtNavigate=function(p){var y=p.detail.endpoint;if(y=_.G(y,_.KGU)||_.G(y,_.wGV))p.stopPropagation(),this.openEditDialog(y)};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null;_.Ax(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.J.onAuthorThumbnailClicked=function(){_.n("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.J.onYtCommentboxResize=function(p){var y;(p==null?0:(y=p.detail)==null?0:y.height)&&_.Ax(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":p.detail.height+"px"})};
_.Jh.Object.defineProperties(BT.prototype,{linked:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.linkedCommentText}},
linkedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.linked?{metadataBadgeRenderer:{label:this.viewModel.linkedCommentText,style:"BADGE_STYLE_TYPE_SIMPLE"}}:null}},
pinned:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.pinnedText}},
pinnedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.pinned?{renderer:{icon:{iconType:"KEEP"},label:{runs:[{text:this.viewModel.pinnedText}]}}}:null}},
authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var p,y=(p=this.commentEntity)==null?void 0:p.author;return y&&(y.isCreator||y.isVerified||y.isArtist)?{renderer:{authorEndpoint:y.channelPageEndpoint?_.G(y.channelPageEndpoint,_.pY):_.G(y.channelCommand,_.pY),authorText:{runs:[{text:y.displayName}]},color:y.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:y.isArtist?{iconType:"AUDIO_BADGE"}:
y.isVerified?{iconType:y.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:y.isArtist||y.isVerified?y.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var p,y=(p=this.commentEntity)==null?void 0:p.author;return y!=null&&y.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:y.sponsorBadgeUrl}]},tooltip:y.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var p;return _.G((p=this.commentSurfaceEntity)==null?void 0:p.pdgCommentChip,_.EBv)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var p;return this.voiceReplyContainerViewModel&&((p=this.voiceReplyContainerViewModel)==null?void 0:p.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var p;return _.G((p=this.commentSurfaceEntity)==null?void 0:p.voiceReplyContainerViewModel,HuM)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var p;return this.voiceReplyContainerViewModel&&(p=this.voiceReplyContainerViewModel)!=null&&p.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var p,y;return(y=(p=this.commentSurfaceEntity)==null?void 0:p.commentBackgroundColor)!=null?y:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.n("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var p,y;return(((p=this.commentEntity)==null?void 0:(y=p.properties)==null?void 0:y.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var p,y;if(_.n("enable_profile_cards_on_comments")&&((p=this.commentEntity)==null?0:(y=p.author)==null?0:y.profileCardEndpoint)&&this.viewModel.allowProfileCard){var l,q;return _.G((l=this.commentEntity)==null?void 0:(q=l.author)==null?void 0:q.profileCardEndpoint,_.pY)}var t,E;return _.G((t=this.commentEntity)==null?void 0:(E=t.avatar)==null?void 0:E.endpoint,_.pY)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var p,y;if(_.n("enable_profile_cards_on_comments")&&((p=this.commentEntity)==null?0:(y=p.author)==null?0:y.channelPageEndpoint)){var l,q;return _.G((l=this.commentEntity)==null?void 0:(q=l.author)==null?void 0:q.channelPageEndpoint,_.pY)}var t,E;return _.G((t=this.commentEntity)==null?void 0:(E=t.avatar)==null?void 0:E.endpoint,_.pY)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q,t=(p=this.commentEntity)==null?void 0:(y=p.avatar)==null?void 0:(l=y.image)==null?void 0:(q=l.sources)==null?void 0:q[0];return t?{thumbnails:[{url:t.url,width:t.width,height:t.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.commentEntity)==null?0:(y=p.author)==null?0:y.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.commentEntity)==null?void 0:(y=p.author)==null?void 0:y.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.commentEntity)==null?void 0:(y=p.properties)==null?void 0:y.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var p;return _.G((p=this.commentSurfaceEntity)==null?void 0:p.publishedTimeCommand,_.pY)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var p,y;if(((p=this.commentEntity)==null?0:p.translatedContent)&&((y=this.translateButtonState)==null?void 0:y.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var l;if((l=this.voiceReplyContainerViewModel)==null?0:l.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var q,t;return((q=this.commentEntity)==null?void 0:(t=q.properties)==null?void 0:t.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.commentSharedEntity)==null?void 0:(y=p.strings)==null?void 0:y.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.commentSharedEntity)==null?void 0:(y=p.strings)==null?void 0:y.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.commentEntity)==null||!p.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var p,y,l=(y=_.G((p=this.viewModel)==null?void 0:p.translateButton,DiN))!=null?y:{},q,t,E,e,C,u,a,m,U,b,P;return Object.assign({},l,{untoggledStateData:Object.assign({},l.untoggledStateData,{buttonText:(q=this.commentEntity)==null?void 0:(t=q.translateData)==null?void 0:t.text}),togglingStateData:Object.assign({},l.togglingStateData,{buttonText:(E=this.commentSharedEntity)==null?
void 0:(e=E.strings)==null?void 0:e.translatingText}),toggledStateData:Object.assign({},l.toggledStateData,{buttonText:(C=this.commentSharedEntity)==null?void 0:(u=C.strings)==null?void 0:u.seeOriginalText}),transitionCommand:((a=this.commentEntity)==null?0:a.translatedContent)?void 0:_.G((m=this.commentEntity)==null?void 0:(U=m.translateData)==null?void 0:U.translateComment,_.pY),triStateKey:(b=this.commentEntity)==null?void 0:(P=b.properties)==null?void 0:P.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return((y=_.G(_.G((p=this.toolbarSurface)==null?void 0:p.menuCommand,_.pY),in$))==null?void 0:(l=y.menu)==null?void 0:l.menuRenderer)||null}}});
BT.prototype.onYtCommentboxResize=BT.prototype.onYtCommentboxResize;BT.prototype.onYtCommentboxDismiss=BT.prototype.onYtCommentboxDismiss;BT.prototype.onYtNavigate=BT.prototype.onYtNavigate;BT.prototype.resetExpander=BT.prototype.resetExpander;BT.prototype.updateBackgroundColor=BT.prototype.updateBackgroundColor;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],BT.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],BT.prototype,"ytdReduxBehavior",void 0);
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],BT.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],BT.prototype,"ytRendererstamperBehavior",void 0);_.H([_.rd("#author-thumbnail > button"),_.x("design:type",HTMLElement)],BT.prototype,"authorThumbnailAnchor",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("viewModel"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],BT.prototype,"linked",null);
_.H([_.g("viewModel","linked"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"linkedCommentBadge",null);_.H([_.Q({reflectToAttribute:!0}),_.g("viewModel"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],BT.prototype,"pinned",null);_.H([_.g("viewModel","pinned"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"pinnedCommentBadge",null);
_.H([_.g("commentEntity","commentSharedEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"authorCommentBadge",null);_.H([_.Q({reflectToAttribute:!0}),_.g("authorCommentBadge"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"hasAuthorBadge",null);_.H([_.g("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"sponsorCommentBadge",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("sponsorCommentBadge"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"hasSponsorBadge",null);_.H([_.g("commentSurfaceEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"pdgCommentChipRenderer",null);_.H([_.Q({reflectToAttribute:!0}),_.g("voiceReplyContainerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"hasVoiceReply",null);
_.H([_.g("commentSurfaceEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"voiceReplyContainerViewModel",null);_.H([_.g("voiceReplyContainerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"voiceReplyUnavailableText",null);_.H([_.Q(),_.x("design:type",Object)],BT.prototype,"data",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"viewModel",null);
_.H([_.Q({selector:function(p,y){return _.Ae(p.entities,"commentSharedEntityPayload",y)},
selectorArgs:["viewModel.sharedKey"]}),_.x("design:type",Object)],BT.prototype,"commentSharedEntity",void 0);_.H([_.Q({selector:function(p,y){return _.Ae(p.entities,"commentEntityPayload",y)},
selectorArgs:["viewModel.commentKey"]}),_.x("design:type",Object)],BT.prototype,"commentEntity",void 0);_.H([_.Q({selector:function(p,y){return _.Ae(p.entities,"commentSurfaceEntityPayload",y)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.x("design:type",Object)],BT.prototype,"commentSurfaceEntity",void 0);_.H([_.Q({selector:grg,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.x("design:type",Object)],BT.prototype,"toolbarSurface",void 0);_.H([_.Q({selector:Qo5,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.x("design:type",Object)],BT.prototype,"translateButtonState",void 0);
_.H([_.g("commentSurfaceEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"backgroundColor",null);_.H([_.Q({reflectToAttribute:!0}),_.g("viewModel"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],BT.prototype,"optimalReadingWidthComments",null);_.H([_.rd("ytd-expander"),_.x("design:type",Object)],BT.prototype,"expander",void 0);
_.H([_.gd("backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BT.prototype,"updateBackgroundColor",null);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],BT.prototype,"useSmallAvatars",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],BT.prototype,"webWatchCompactComments",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"isReply",null);
_.H([_.g("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"authorThumbnailEndpoint",null);_.H([_.g("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"authorNameEndpoint",null);_.H([_.g("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"authorThumbnail",null);_.H([_.g("commentEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],BT.prototype,"authorTextClass",null);
_.H([_.g("commentEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],BT.prototype,"authorChannelName",null);_.H([_.g("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"publishedTime",null);_.H([_.g("commentSurfaceEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"publishedTimeCommand",null);
_.H([_.g("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"contentText",null);_.H([_.gd("contentText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BT.prototype,"resetExpander",null);_.H([_.g("commentEntity"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],BT.prototype,"shouldShowReadMoreInitially",null);
_.H([_.g("commentSharedEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],BT.prototype,"expandText",null);_.H([_.g("commentSharedEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],BT.prototype,"collapseText",null);_.H([_.g("commentEntity"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],BT.prototype,"shouldShowTranslateButton",null);
_.H([_.g("commentEntity","commentSharedEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"translateButton",null);_.H([_.g("toolbarSurface"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"overflowMenuRenderer",null);_.H([_.Q(),_.x("design:type",Object)],BT.prototype,"editDialog",void 0);_.H([_.rd("ytd-comment-dialog-renderer"),_.x("design:type",Object)],BT.prototype,"editCommentDialogContainer",void 0);
_.H([_.rd("ytd-comment-reply-dialog-renderer"),_.x("design:type",Object)],BT.prototype,"editReplyDialogContainer",void 0);_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],BT.prototype,"onYtNavigate",null);_.H([_.VU("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],BT.prototype,"onYtCommentboxDismiss",null);
_.H([_.VU("yt-commentbox-resize"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],BT.prototype,"onYtCommentboxResize",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-comment-view-model"})],BT);
_.D(BT,"ytd-comment-view-model",function(){if(CHi!==void 0)return CHi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return CHi=p},{mode:_.ZS("kevlar_poly_si_batch_j025")?1:2});var fE=function(){var p=_.w.apply(this,arguments)||this;p.modern=_.n("web_modern_buttons");p.commentThreadingEnabled=_.n("web_delhi_comment_threads");p.isWatchGrid=_.n("kevlar_watch_grid");p.buttonOverrides=p.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};p.JSC$15767_spinnerEl=null;return p};
_.A(fE,_.w);_.J=fE.prototype;_.J.configureContinuationPathMap=function(){return _.n("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.J.shouldShowExpandedThreads=function(p,y){return this.commentThreadingEnabled&&!y&&(p==null?void 0:p.length)>0};
_.J.shouldShowCollapsedThreads=function(p,y){return this.commentThreadingEnabled&&y&&p};
_.J.computeThreadRenderer=function(p){return _.G(p,iuM)};
_.J.computeIsContinuationItem=function(p){return!!this.computeContinuationItemRenderer(p)};
_.J.computeButtonRenderer=function(p){return _.G(p,_.yv)};
_.J.computeContinuationItemRenderer=function(p){return _.G(p,_.aA)};
_.J.configureRendererStamper=function(){return{"data.teaserContents":{id:"teaser-replies",mapping:{commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentViewModel:{component:"ytd-comment-view-model"},continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.J.attached=function(){this.isShowRepliesVisible=!0};
_.J.dataChanged=function(){var p=this.expanderContents;p&&(p.hidden=!0);this.isLoading=!1};
_.J.endsInContinuation=function(p){return!!p&&p.length>0&&!!this.computeContinuationItemRenderer(p[p.length-1])};
_.J.computeShouldShowHideRepliesButton=function(p,y){return!p&&y};
_.J.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.J.isLoadingChanged=function(){this.isLoading&&!this.JSC$15767_spinnerEl&&(this.JSC$15767_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.jR(this.expanderContents).appendChild(this.JSC$15767_spinnerEl));this.JSC$15767_spinnerEl&&(this.JSC$15767_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var p;(p=this.contents)==null||p.classList.remove("reloading")}};
_.J.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var p=_.G(this.data.viewReplies,_.yv);p&&this.ytRendererBehavior.logExplicitClick(p);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.J.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var p=_.G(this.data.hideReplies,_.yv);p&&this.ytRendererBehavior.logExplicitClick(p);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.J.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var p=_.jR(this.hostElement).querySelector("#expander-contents");p&&(p.hidden=this.isShowRepliesVisible)}};
_.J.computeAlign=function(){if(this.modern){var p;return!((p=this.data)==null?0:p.viewRepliesCreatorThumbnail)}};
_.Jh.Object.defineProperties(fE.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var p,y;return this.endsInContinuation((p=this.data)==null?void 0:p.contents)||this.commentThreadingEnabled&&this.endsInContinuation((y=this.data)==null?void 0:y.subThreads)}}});
fE.prototype.isShowMoreChanged=fE.prototype.isShowMoreChanged;fE.prototype.isLoadingChanged=fE.prototype.isLoadingChanged;fE.prototype.triggerFirstContinuation=fE.prototype.triggerFirstContinuation;fE.prototype.dataChanged=fE.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],fE.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],fE.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.tP),_.x("design:type",Object)],fE.prototype,"ytContinuationHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],fE.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],fE.prototype,"modern",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],fE.prototype,"commentThreadingEnabled",void 0);_.H([_.Q(),_.x("design:type",Boolean)],fE.prototype,"collapsed",void 0);
_.H([_.Q(),_.x("design:type",Function)],fE.prototype,"toggleCollapsed",void 0);_.H([_.Q(),_.x("design:type",Boolean)],fE.prototype,"isLoading",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],fE.prototype,"isShowRepliesVisible",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],fE.prototype,"useNewFormatting",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],fE.prototype,"isWatchGrid",void 0);_.H([_.Q(),_.x("design:type",Object)],fE.prototype,"buttonOverrides",void 0);
_.H([_.rd("#expander-contents"),_.x("design:type",HTMLElement)],fE.prototype,"expanderContents",void 0);_.H([_.rd("ytd-continuation-item-renderer"),_.x("design:type",Object)],fE.prototype,"continuationItemRenderer",void 0);_.H([_.rd("#contents"),_.x("design:type",HTMLElement)],fE.prototype,"contents",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fE.prototype,"dataChanged",null);
_.H([_.g("data.contents","data.subThreads.*"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],fE.prototype,"hasContinuation",null);_.H([_.VU("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fE.prototype,"triggerFirstContinuation",null);_.H([_.gd("isLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fE.prototype,"isLoadingChanged",null);
_.H([_.gd("isShowRepliesVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fE.prototype,"isShowMoreChanged",null);_.H([_.k({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],fE);
_.D(fE,"ytd-comment-replies-renderer",function(){if(tfO!==void 0)return tfO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n    <div class="threadline style-scope ytd-comment-replies-renderer">\n      <div class="connection style-scope ytd-comment-replies-renderer"></div>\n      <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n      <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n    </div>\n    <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button$="[[computeIsContinuationItem(item)]]">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-comment-thread-renderer>\n        </template>\n        <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-continuation-item-renderer>\n        </template>\n      </div>\n    </div>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </template>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return tfO=p},{mode:1});var aNU;var vT=function(){var p=_.w.apply(this,arguments)||this;p.isOpen=!1;p.commentDialog=null;p.useSmallAvatars=_.n("small_avatars_for_comments");p.useSmallAvatarsEngagementPanelOnly=_.n("small_avatars_for_comments_ep");p.placeholderFocusListener=null;p.hasOpenedDialog=!1;p.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return p};
_.A(vT,_.w);_.J=vT.prototype;_.J.configureRendererStamper=function(){return{"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},commentDialog:{id:"comment-dialog",mapping:{commentDialogRenderer:{component:"ytd-comment-dialog-renderer",properties:{zeroStepChannelCreationRenderer:"[[data.zeroStep.zeroStepChannelCreationRenderer]]"}}}}}};
_.J.ready=function(){var p=this,y=_.jR(this.hostElement).querySelector("#placeholder-area"),l=_.jR(this.hostElement).querySelector("#simplebox-placeholder"),q=function(t){t.stopPropagation();t instanceof KeyboardEvent&&t.type==="keypress"&&t.keyCode!==13&&t.keyCode!==32||p.openDialog()};
this.placeholderFocusListener=q;l.addEventListener("focus",this.placeholderFocusListener);y.addEventListener("tap",q);y.addEventListener("keypress",q)};
_.J.maybeRemoveFocusEventListener=function(){var p;(p=this.data)!=null&&p.prepareAccountEndpoint&&!_.n("web_comments_simplebox_modal_focus_on_tap_ks")&&(p=_.jR(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(p.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.J.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.J.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.n("web_comment_simplebox_resolve_polymer_command_ks")?_.wW.instance.resolveCommand(this.data.prepareAccountEndpoint):_.iy(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var p=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);p&&this.ytdOpenPopupBehavior.openPopup(p);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.jR(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.J.onYtCommentboxDismiss=function(p){p.stopPropagation();this.isOpen=!1};
_.J.onCreateCommentAction=function(p){this.get("createCommentAction.contents",p)&&(this.isOpen=!1)};
_.J.computeCommentDialog=function(p){return{placeholderText:p.placeholderText,authorThumbnail:p.authorThumbnail,submitButton:p.submitButton,imageButton:p.imageButton,cancelButton:p.cancelButton,emojiButton:p.emojiButton,emojis:p.emojis,emojiPicker:p.emojiPicker,aadcGuidelinesStateEntityKey:p.aadcGuidelinesStateEntityKey,openAadcDialog:p.openAadcDialog,unicodeEmojisUrl:p.unicodeEmojisUrl}};
_.J.onHideIdentityChip=function(p){_.G(p,MJO)&&this.set("data.placeholderText",_.G(p,MJO).placeholderText)};
vT.prototype.onYtCommentboxDismiss=vT.prototype.onYtCommentboxDismiss;vT.prototype.dataChanged=vT.prototype.dataChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],vT.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.RP),_.x("design:type",Object)],vT.prototype,"ytdOpenPopupBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],vT.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],vT.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],vT.prototype,"isOpen",void 0);_.H([_.Q(),_.x("design:type",Object)],vT.prototype,"commentDialog",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],vT.prototype,"engagementPanel",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],vT.prototype,"useSmallAvatars",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],vT.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],vT.prototype,"enableCreationBox",void 0);_.H([_.Q(),_.x("design:type",Boolean)],vT.prototype,"showCreateDialog",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vT.prototype,"dataChanged",null);_.H([_.VU("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],vT.prototype,"onYtCommentboxDismiss",null);_.H([_.k({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],vT);
_.D(vT,"ytd-comment-simplebox-renderer",function(){if(aNU!==void 0)return aNU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="author-thumbnail" fit="" height="40" hidden="[[isOpen]]" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-simplebox-renderer">\n</yt-img-shadow>\n<div id="placeholder-area" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <yt-formatted-string id="simplebox-placeholder" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-simplebox-renderer">\n  </yt-formatted-string>\n</div>\n<div id="attachments" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <div id="image-button" class="style-scope ytd-comment-simplebox-renderer"></div>\n</div>\n<div id="comment-dialog" hidden="[[!isOpen]]" class="style-scope ytd-comment-simplebox-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return aNU=p},{mode:1});var mjU;_.ox("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var Xg=function(){var p=_.w.apply(this,arguments)||this;p.addHoverEffect=_.n("swatcheroo_comments_hover_effect");p.useSmallAvatars=_.n("small_avatars_for_comments");p.threadHovered=!1;p.collapsed=!1;p.toggleCollapsed=function(){p.collapsed=!p.collapsed;p.collapsed&&_.n("web_comment_threading_scroll_on_collapse")&&_.$w(p.hostElement,"yt-scroll-to-watch-element",[p.commentElement])};
return p};
_.A(Xg,_.w);Xg.prototype.onTap=function(p){if(this.addHoverEffect&&!this.engagementPanel&&!_.WN(_.Jx(p)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var y;((y=window.getSelection())==null?0:y.toString().length)||_.iy({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
Xg.prototype.attached=function(){var p=this,y;(y=this.commentThreadHitbox)==null||y.addEventListener("mouseover",function(){p.threadHovered=!0});
var l;(l=this.commentThreadHitbox)==null||l.addEventListener("mouseout",function(){p.threadHovered=!1});
var q;(q=this.commentThreadHitbox)==null||q.addEventListener("click",function(){p.maybeToggleCollapsed()})};
Xg.prototype.maybeToggleCollapsed=function(){var p,y,l,q=(p=this.data)==null?void 0:(y=p.replies)==null?void 0:(l=y.commentRepliesRenderer)==null?void 0:l.subThreads;q&&(q.length===1&&_.G(q[0],_.aA)||this.toggleCollapsed())};
_.Jh.Object.defineProperties(Xg.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)!=null&&p.commentViewModel)return _.G(this.data.commentViewModel,N5v)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return _.n("web_delhi_comment_threads")&&!!((p=this.data)==null?0:(y=p.replies)==null?0:(l=y.commentRepliesRenderer)==null?0:l.subThreads)}}});
Xg.prototype.onTap=Xg.prototype.onTap;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Xg.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Xg.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Xg.prototype,"addHoverEffect",void 0);_.H([_.Q(),_.x("design:type",Object)],Xg.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Xg.prototype,"useSmallAvatars",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Xg.prototype,"isSubThread",void 0);_.H([_.rd(".thread-hitbox"),_.x("design:type",HTMLElement)],Xg.prototype,"commentThreadHitbox",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Xg.prototype,"threadHovered",void 0);_.H([_.rd("#comment"),_.x("design:type",HTMLElement)],Xg.prototype,"commentElement",void 0);
_.H([_.Q(),_.x("design:type",Object)],Xg.prototype,"collapsed",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Xg.prototype,"commentViewModel",null);_.H([_.g("data.replies"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Xg.prototype,"hasSubThreading",null);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Xg.prototype,"engagementPanel",void 0);
_.H([_.VU("tap"),_.VU("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Xg.prototype,"onTap",null);_.H([_.k({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Xg);
_.D(Xg,"ytd-comment-thread-renderer",function(){if(mjU!==void 0)return mjU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer collapsed="[[collapsed]]" data="[[data.replies.commentRepliesRenderer]]" toggle-collapsed="[[toggleCollapsed]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return mjU=p},{mode:_.ZS("kevlar_poly_si_batch_j025")?1:2});var Uj$;var dv=function(){var p=_.w.apply(this,arguments)||this;p.modernTypography=_.n("web_modern_typography");p.compactHeader=_.n("web_watch_compact_comments_header");p.hidePanelButton=!1;p.isPostSchedulingEnabled=_.n("enable_post_scheduling");p.hasFinishedStamping=!1;p.JSC$15785_handleOpenPostCommentDialogActionAfterStamp=!1;p.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return p};
_.A(dv,_.w);_.J=dv.prototype;
_.J.configureRendererStamper=function(){return{"data.createRenderer":{id:"simple-box",mapping:{commentSimpleboxRenderer:{component:"ytd-comment-simplebox-renderer",properties:{engagementPanel:"[[engagementPanel]]",showCreateDialog:"[[data.showCreateDialog]]"}}}},"data.pausedCommentsMessage":{id:"paused-comments-message",mapping:{messageRenderer:"ytd-comment-pause-composer-renderer"}},backstagePostDialog:{id:"backstage-post-dialog",mapping:{backstagePostDialogRenderer:{component:"ytd-backstage-post-dialog-renderer"}},events:!0},
"data.sortMenu":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.alerts":{id:"alert",mapping:{alertWithButtonRenderer:"ytd-alert-with-button-renderer"},renderPriority:0,waitForSignal:"eocs"},"data.zeroStateMessage":{id:"zero-state-message",mapping:{backstageZeroStateRenderer:"ytd-backstage-zero-state-renderer",postFilterZeroStateRenderer:"ytd-post-filter-zero-state-renderer"}},"data.prefilledCreateDialogHeaderMessage":{id:"prefilled-dialog-header",mapping:{backstagePrefilledPostDialogHeaderRenderer:"ytd-backstage-prefilled-post-dialog-header-renderer"}},
"data.postStreamFilter":{id:"post-stream-filter",mapping:{postStreamFilterRenderer:"ytd-post-stream-filter-renderer"}},"data.schedulingZeroStateMessage":{id:"scheduling-zero-state-message",mapping:{postSchedulingZeroStateRenderer:"ytd-post-scheduling-zero-state-renderer"}}}};
_.J.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.J.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15785_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.J.onYtServiceRequestSent=function(p,y){if(!_.n("kevlar_command_handler")&&y.actions)for(p=0;p<y.actions.length;p++){var l=y.actions[p];_.G(l,oCx)&&_.jR(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.G(l,oCx))}};
_.J.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var p;if(this.getPrefilledBackstagePostDialog((p=this.data)==null?void 0:p.actions)){_.jR(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var y=_.jR(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;y&&_.th(this,function(){y.focus();y.openDialog&&y.openDialog()})}}else this.hasActionsChange=!0};
_.J.computeIsBackstage=function(p){return p};
_.J.onYtCommentboxDismiss=function(){_.jR(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.J.removePrefilledDialog=function(p){if(p==null?0:p.actions){for(var y=p.actions.length-1;y>=0;y--){var l=void 0;((l=_.G(p.actions[y],g0i))==null?0:l.dialog)&&delete p.actions[y]}this.set("data",void 0);this.set("data",p)}};
_.J.getPrefilledBackstagePostDialog=function(p){if(p)for(var y=0;y<p.length;y++){var l=p[y],q=void 0;if((q=_.G(l,g0i))==null?0:q.dialog)return _.G(l,g0i).dialog}return null};
_.J.computeBackstagePostDialog=function(p){return p&&(this.getPrefilledBackstagePostDialog(p.actions)||p.createRenderer)};
_.J.dataChanged=function(){if(this.data){var p=this.data.customEmojis,y=this.data.unicodeEmojisUrl;_.q4.clear();y&&_.$zx(_.q4,y);p&&_.q4.load(p)}};
_.J.handleSignalActionOpenPostCommentDialogAction=function(){var p=_.jR(this.hostElement).querySelector("ytd-comment-simplebox-renderer");p?p.openDialog():this.JSC$15785_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Jh.Object.defineProperties(dv.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.n("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q,t,E,e;return!this.hidePanelButton&&_.n("kevlar_watch_comments_panel_button")&&((e=_.G((p=this.data)==null?void 0:(y=p.sortMenu)==null?void 0:(l=y.sortFilterSubMenuRenderer)==null?void 0:(q=l.subMenuItems)==null?void 0:(t=q[0])==null?void 0:(E=t.serviceEndpoint)==null?void 0:E.commandMetadata,_.ul))==null?void 0:e.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.g$("MINIPLAYER_EXPAND_LABEL"),text:_.EK(_.g$("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
dv.prototype.dataChanged=dv.prototype.dataChanged;dv.prototype.onYtCommentboxDismiss=dv.prototype.onYtCommentboxDismiss;dv.prototype.observePrefilledBackstagePostDialog=dv.prototype.observePrefilledBackstagePostDialog;dv.prototype.onYtServiceRequestSent=dv.prototype.onYtServiceRequestSent;dv.prototype.onStampFinished=dv.prototype.onStampFinished;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],dv.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],dv.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],dv.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],dv.prototype,"modernTypography",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],dv.prototype,"compactHeader",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],dv.prototype,"engagementPanel",void 0);_.H([_.Q(),_.x("design:type",Object)],dv.prototype,"hidePanelButton",void 0);_.H([_.Q({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.x("design:type",Boolean)],dv.prototype,"isBackstage",void 0);_.H([_.Q({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.x("design:type",Object)],dv.prototype,"backstagePostDialog",void 0);
_.H([_.Q(),_.x("design:type",Object)],dv.prototype,"isPostSchedulingEnabled",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("data","showCommentsPanelButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],dv.prototype,"useSpaceBetween",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data","hidePanelButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],dv.prototype,"showCommentsPanelButton",null);
_.H([_.g("data","showCommentsPanelButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],dv.prototype,"commentsPanelButtonData",null);_.H([_.VU("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dv.prototype,"onStampFinished",null);_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],dv.prototype,"onYtServiceRequestSent",null);
_.H([_.gd("data.actions"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dv.prototype,"observePrefilledBackstagePostDialog",null);_.H([_.VU("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],dv.prototype,"onYtCommentboxDismiss",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dv.prototype,"dataChanged",null);
_.H([_.k({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],dv);
_.D(dv,"ytd-comments-header-renderer",function(){if(Uj$!==void 0)return Uj$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Uj$=p},{mode:1});var $jU;var ON=function(){return _.w.apply(this,arguments)||this};
_.A(ON,_.w);_.H([_.Q(),_.x("design:type",Object)],ON.prototype,"data",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);_.H([_.k({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],ON);
_.D(ON,"ytd-destination-button-renderer",function(){if($jU!==void 0)return $jU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="destination-content-root" class="yt-simple-endpoint style-scope ytd-destination-button-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n  <yt-img-shadow id="destination-icon" height="32" thumbnail="[[data.iconImage]]" width="32" class="style-scope ytd-destination-button-renderer"></yt-img-shadow>\n  <div id="destination-label-wrapper" class="style-scope ytd-destination-button-renderer">\n     <yt-formatted-string id="destination-label" text="[[data.label]]" class="style-scope ytd-destination-button-renderer"></yt-formatted-string>\n  </div>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return $jU=p},{mode:1});var jhr;var oq=function(){var p=_.w.apply(this,arguments)||this;p.isRichGrid=!1;p.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};p.modernTypography=_.n("web_modern_typography");return p};
_.A(oq,_.w);_.J=oq.prototype;_.J.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.J.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.J.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.J.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var p;if((p=this.data)==null||!p.isExpanded){p=this.hostElement.clientWidth;var y;if(p&&(y=this.data)!=null&&y.destinationButtons){y=Math.floor((p+4)/214);p=this.data.destinationButtons.length;var l=Math.ceil(p/y);this.fullyVisibleRows=p%y===1&&l===2?1:Math.min(l,2);this.isShowMoreVisible=this.fullyVisibleRows<l}}}};
_.J.updateRichGridDestinationButtonsVisibility=function(){var p,y;if(this.isRichGrid&&((p=this.data)==null||!p.isExpanded)&&(y=this.data)!=null&&y.destinationButtons){p=this.richGridItemsPerRow+1;y=this.data.destinationButtons.length;var l=Math.ceil(y/p);this.fullyVisibleRows=y%p===1&&l===2?1:Math.min(l,2);this.isShowMoreVisible=this.fullyVisibleRows<l}};
_.J.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
oq.prototype.updateRichGridDestinationButtonsVisibility=oq.prototype.updateRichGridDestinationButtonsVisibility;_.H([_.Q(),_.x("design:type",Object)],oq.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Number)],oq.prototype,"fullyVisibleRows",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],oq.prototype,"isShowMoreVisible",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],oq.prototype,"isRichGrid",void 0);
_.H([_.Q({selector:_.fW,value:0}),_.x("design:type",Number)],oq.prototype,"richGridItemsPerRow",void 0);_.H([_.Q(),_.x("design:type",Object)],oq.prototype,"gridStateActionMap",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],oq.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],oq.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],oq.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],oq.prototype,"ytdReduxBehavior",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],oq.prototype,"modernTypography",void 0);_.H([_.gd("data","richGridItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oq.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.H([_.k({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],oq);
_.D(oq,"ytd-destination-shelf-renderer",function(){if(jhr!==void 0)return jhr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-destination-shelf-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="destination-buttons" class="style-scope ytd-destination-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-destination-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-destination-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return jhr=p},{mode:1});var b1M;var zJ=function(){return _.w.apply(this,arguments)||this};
_.A(zJ,_.w);zJ.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"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],zJ.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],zJ.prototype,"data",void 0);_.H([_.k({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],zJ);
_.D(zJ,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(b1M!==void 0)return b1M;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-cta-shelf-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="cta-renderer style-scope ytd-brandconnect-cta-shelf-card-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-brandconnect-cta-shelf-card-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-brandconnect-cta-shelf-card-renderer">\n    <p id="header-line" hidden="[[!data.headline]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.headline)]]\n    </p>\n    <p id="brand-name" hidden="[[!data.brandName]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.brandName)]]\n    </p>\n    <p id="description" hidden="[[!data.description]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.description)]]\n    </p>\n    <div id="action-button" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n  </div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return b1M=p},{mode:1});var nNx;var Y2=function(){var p=_.w.apply(this,arguments)||this;p.disableAnimation=!1;p.isSlimlineSurvey=!1;p.isSlimlineSurveyFollowUp=!1;p.isShortsStyle=!1;return p};
_.A(Y2,_.w);Y2.prototype.onTap=function(p){p.preventDefault();this.data&&_.Ub(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Jh.Object.defineProperties(Y2.prototype,{isAnimatedIcon:{configurable:!0,enumerable:!0,get:function(){return!this.disableAnimation&&(this.isSlimlineSurveyFollowUp||this.isShortsStyle)}},
iconSize:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle?36:24}},
isDarkTheme:{configurable:!0,enumerable:!0,get:function(){return this.isShortsStyle||document.documentElement.hasAttribute("dark")}},
icon:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q,t;return((p=this.data)==null?0:p.checked)?(y=this.data)==null?void 0:(l=y.onStateIcon)==null?void 0:l.iconType:(q=this.data)==null?void 0:(t=q.defaultStateIcon)==null?void 0:t.iconType}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Y2.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Y2.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Y2.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Y2.prototype,"disableAnimation",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Y2.prototype,"isSlimlineSurvey",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Y2.prototype,"isSlimlineSurveyFollowUp",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Y2.prototype,"isShortsStyle",void 0);_.H([_.g("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Y2.prototype,"isAnimatedIcon",null);
_.H([_.g("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.x("design:type",Number),_.x("design:paramtypes",[])],Y2.prototype,"iconSize",null);_.H([_.g("isShortsStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Y2.prototype,"isDarkTheme",null);_.H([_.g("data.checked"),_.x("design:type",Object),_.x("design:paramtypes",[])],Y2.prototype,"icon",null);_.H([_.k({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Y2);
_.D(Y2,"ytd-rating-survey-option-renderer",function(){if(nNx!==void 0)return nNx;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="rating-survey-button" label="[[getSimpleString(data.responseText)]]" pressed="[[data.checked]]" toggleable="" on-tap="onTap" class="style-scope ytd-rating-survey-option-renderer">\n    <yt-icon icon="[[icon]]" is-animated-icon="[[isAnimatedIcon]]" is-dark-theme="[[isDarkTheme]]" size="[[iconSize]]" class="style-scope ytd-rating-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return nNx=p},{mode:2});var GxU;var Iq=function(){var p=_.w.apply(this,arguments)||this;p.firstResponseText=null;p.lastResponseText=null;p.selectedNonStarOption=null;p.hideOptions=!1;p.hideUndoButton=!0;p.disableAnimation=!1;p.showResponseRangeText=!1;p.selectedRatingIndex=-1;p.isSlimlineSurvey=!1;p.isSlimlineSurveyFollowUp=!1;p.isShortsStyle=!1;p.slimlineSurveyRatingSelectedIndex=-1;return p};
_.A(Iq,_.w);_.J=Iq.prototype;_.J.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.J.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.J.onOptionChange=function(p,y){var l=this;p=y.onStateIcon&&y.defaultStateIcon&&y.onStateIcon.iconType===y.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(e,C){e.responseText===y.responseText?l.isSlimlineSurvey?(l.selectedRatingIndex=C,l.ytdReduxBehavior.dispatch(WTi(C))):(l.setSurveyOptionValue(C,!0,"checked"),l.setSurveyOptionValue(C,!0,"selected")):(l.setSurveyOptionValue(C,!1,"checked"),l.setSurveyOptionValue(C,
!1,"selected"))});
else if(p)this.selectedNonStarOption=y,this.hideOptions=!0;else{var q=this.ytRendererBehavior.getSimpleString(y.responseText),t=!0;this.getOptionRenderers().forEach(function(e,C){l.setSurveyOptionValue(C,t,"checked");l.setSurveyOptionValue(C,!1,"selected");l.ytRendererBehavior.getSimpleString(e.responseText)===q&&(t=!1,l.setSurveyOptionValue(C,!0,"selected"))})}p=y.responseEndpoint;
var E;y.followUpCommand&&(E=_.G(y.followUpCommand,pEv));this.isSlimlineSurvey?(this.resetComponent(),_.$w(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.$w(this.hostElement,"ytd-inline-survey-rating-select-action",[p,E])};
_.J.showSelectedOption=function(){var p=this;_.TR.addJob(function(){var y=p.getOptionRenderers()[p.slimlineSurveyRatingSelectedIndex];p.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),y)},8,100)};
_.J.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(p){var y;return(y=_.G(p,lmB))!=null?y:{}}):[]};
_.J.onUndoClick=function(){this.resetComponent();_.$w(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.J.setSurveyOptionValue=function(p,y,l){this.notifyPath("data.ratings."+p+".ratingSurveyOptionRenderer."+l);this.set("data.ratings."+p+".ratingSurveyOptionRenderer."+l,y)};
_.J.resetComponent=function(){var p=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var y=this.getOptionRenderers(),l,q;this.firstResponseText=(q=(l=y[0])==null?void 0:l.responseText)!=null?q:null;var t,E;this.lastResponseText=(E=(t=y[y.length-1])==null?void 0:t.responseText)!=null?E:null;y.forEach(function(e,C){p.setSurveyOptionValue(C,!1,"checked");p.setSurveyOptionValue(C,!1,"selected")})};
_.Jh.Object.defineProperties(Iq.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
Iq.prototype.onOptionChange=Iq.prototype.onOptionChange;Iq.prototype.dataChanged=Iq.prototype.dataChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Iq.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Iq.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Iq.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Iq.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Object)],Iq.prototype,"firstResponseText",void 0);_.H([_.Q(),_.x("design:type",Object)],Iq.prototype,"lastResponseText",void 0);_.H([_.Q(),_.x("design:type",Object)],Iq.prototype,"selectedNonStarOption",void 0);_.H([_.Q(),_.x("design:type",Object)],Iq.prototype,"hideOptions",void 0);_.H([_.Q(),_.x("design:type",Object)],Iq.prototype,"hideUndoButton",void 0);_.H([_.Q(),_.x("design:type",Object)],Iq.prototype,"disableAnimation",void 0);
_.H([_.Q(),_.x("design:type",Object)],Iq.prototype,"showResponseRangeText",void 0);_.H([_.Q(),_.x("design:type",Object)],Iq.prototype,"selectedRatingIndex",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Iq.prototype,"isSlimlineSurvey",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Iq.prototype,"isSlimlineSurveyFollowUp",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Iq.prototype,"isShortsStyle",void 0);_.H([_.Q({selector:function(p){return p.ui.slimlineSurveyRatingSelectedIndex}}),
_.x("design:type",Object)],Iq.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.H([_.g("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Iq.prototype,"isSingleSelect",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iq.prototype,"dataChanged",null);
_.H([_.VU("ytd-rating-survey-option-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],Iq.prototype,"onOptionChange",null);_.H([_.k({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],Iq);
_.D(Iq,"ytd-rating-survey-renderer",function(){if(GxU!==void 0)return GxU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selection-panel" class="style-scope ytd-rating-survey-renderer">\n  <div id="options" class="style-scope ytd-rating-survey-renderer">\n    <div id="ratings" hidden="[[hideOptions]]" class="style-scope ytd-rating-survey-renderer"></div>\n  </div>\n  <div id="selected-response-icon" hidden="[[!selectedNonStarOption]]" class="style-scope ytd-rating-survey-renderer">\n    <yt-icon icon="[[selectedNonStarOption.onStateIcon.iconType]]" class="style-scope ytd-rating-survey-renderer"></yt-icon>\n  </div>\n  <div id="bottom-text-container" hidden="[[!showResponseRangeText]]" class="style-scope ytd-rating-survey-renderer">\n    <div id="first-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[firstResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n    <div id="last-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[lastResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n  </div>\n</div>\n<ytd-button-renderer id="undo-button" data="[[data.undoButton.buttonRenderer]]" hidden="[[hideUndoButton]]" on-click="onUndoClick" class="style-scope ytd-rating-survey-renderer">\n</ytd-button-renderer>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return GxU=p},{mode:1});var PHQ;var ADv;var Z1Q;var Bjj=(LF.FIRSTDAYOFWEEK+1)%7,MfO=function(p,y,l,q){var t="";if(q.selection&&DxL(q.selection))rP(p,q.selection)&&(t+=" selected");else if(q.selection&&HbL(q.selection)){var E=q.selection.selectionState||"START_DATE";rP(p,q.selection.start)&&(t+=" period-start ",E==="START_DATE"&&(t+="selected"));rP(p,q.selection.end)&&(t+=" period-end ",E==="END_DATE"&&(t+="selected"));Sq(p,q.selection.start)||Sq(q.selection.end,p)||(t+=" highlighted")}if(Sq(y,q.start)||Sq(q.end,y))t+=" disabled";q.circleToday&&
rP(y,l)&&(t+=" today");return t};var ps=function(){return _.w.apply(this,arguments)||this};
_.A(ps,_.w);_.J=ps.prototype;_.J.attached=function(){var p=this;_.th(this,function(){p.JSC$15819_calendarMain.scrollHeight>0&&(p.calendarConfig.selection?p.scrollToDate(Tjg(p.calendarConfig.selection)):p.scrollToDate(p.calendarConfig.end))})};
_.J.updateSelection=function(p){p=f46(Object.assign({},this.calendarConfig,{selection:p}),MfO);this.splice.apply(this,["renderData.months",0,p.length].concat(_.xq(p)))};
_.J.scrollToDate=function(p){this.renderData&&(p=v3R(p,this.renderData),p!==void 0&&this.JSC$15819_calendarMain.scrollToIndex(p))};
_.J.scrollToNextMonth=function(){this.JSC$15819_calendarMain.scrollToIndex(this.JSC$15819_calendarMain.firstVisibleIndex+1)};
_.J.scrollToPrevMonth=function(){this.JSC$15819_calendarMain.firstVisibleIndex===0&&this.JSC$15819_calendarMain.scrollTo(0,0);this.JSC$15819_calendarMain.scrollToIndex(this.JSC$15819_calendarMain.firstVisibleIndex-1)};
_.J.handleDayClick=function(p){_.$w(this.hostElement,"ytd-calendar-date-clicked",[p.model.day.date])};
_.J.handleDayMouseDown=function(p){p.preventDefault();_.$w(this.hostElement,"ytd-calendar-date-mousedown",[p.model.day.date])};
_.J.handleDayMouseUp=function(p){_.$w(this.hostElement,"ytd-calendar-date-mouseup",[p.model.day.date])};
_.J.handleDayMouseEnter=function(p){p.preventDefault();_.$w(this.hostElement,"ytd-calendar-date-mouseenter",[p.model.day.date])};
_.J.handleDayMouseLeave=function(p){_.$w(this.hostElement,"ytd-calendar-date-mouseleave",[p.model.day.date])};
_.Jh.Object.defineProperties(ps.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var p=this.calendarConfig,y=MfO;y=y===void 0?MfO:y;for(var l=[],q=0;q<7;q++)l.push(LF.NARROWWEEKDAYS[(q+Bjj)%7]);return{months:f46(p,y),daysOfWeekLabel:l}}}});
_.H([_.Q(),_.x("design:type",Object)],ps.prototype,"calendarConfig",void 0);_.H([_.rd("#calendar-main"),_.x("design:type",Object)],ps.prototype,"JSC$15819_calendarMain",void 0);_.H([_.g("calendarConfig"),_.x("design:type",Object),_.x("design:paramtypes",[])],ps.prototype,"renderData",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],ps);
_.D(ps,"ytd-scrollable-calendar",function(){if(Z1Q!==void 0)return Z1Q;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-scrollable-calendar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="calendar-container style-scope ytd-scrollable-calendar">\n  <div class="calendar-header style-scope ytd-scrollable-calendar">\n    <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-scrollable-calendar">\n      <span class="calendar-header-day style-scope ytd-scrollable-calendar">[[dayLabel]]</span>\n    </template>\n  </div>\n\n  <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-scrollable-calendar">\n    <template class="style-scope ytd-scrollable-calendar">\n      <div class="calendar-month style-scope ytd-scrollable-calendar">\n        <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-scrollable-calendar">\n          [[month.monthLabel]]\n        </div>\n        <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-scrollable-calendar">\n          <div class="calendar-week style-scope ytd-scrollable-calendar">\n            <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-scrollable-calendar">\n              <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-scrollable-calendar" on-tap="handleDayClick" on-mouseenter="handleDayMouseEnter" on-mouseleave="handleDayMouseLeave" on-mousedown="handleDayMouseDown" on-mouseup="handleDayMouseUp">\n                [[day.date.day]]\n              </span>\n            </template> \n          </div>\n        </template> \n      </div>\n    </template>\n  </tp-yt-iron-list> \n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Z1Q=p},{mode:2});var VfZ;var gNr;var yX=function(){var p=_.w.apply(this,arguments)||this;p.hideCharCounter=!1;p.hideLabel=!1;p.noLabelFloat=!1;p.autoValidate=!0;p.invalid=!1;p.disabled=!1;p.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return p};
_.A(yX,_.w);_.J=yX.prototype;_.J.reset=function(p){this.value=p&&this.data?this.data.value=p:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.J.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.J.focusTextInput=function(){this.input.focus()};
_.J.validate=function(){if(!this.autoValidate)return!this.invalid;if(!this.input)return!1;if(this.isMultiline&&this.data&&this.value!=null&&this.data.validValueRegexp&&!RegExp("^"+this.data.validValueRegexp+"$").test(this.input.value))return this.input.autoValidate=!1,this.invalid=!0,!1;this.input.autoValidate=!0;return this.input.validate()};
_.J.valueChanged=function(){var p,y;if(((p=this.data)==null?0:p.value)||((y=this.data)==null?void 0:y.value)==="")this.value=this.data.value;else{var l;((l=this.data)==null?void 0:l.value)!==void 0||this.value||(this.value="")}};
_.J.computeLabel=function(p,y){return y?"":_.JB(p)};
_.J.computeAriaLabel=function(p,y){return y?_.JB(p):""};
_.J.computeErrorMessage=function(p,y,l,q){!p&&y?p=l||this.strings.REQUIRED_LABEL:(p=_.JB(q),p=_.C8(p,"&")?"document"in _.l_?Dar(p):H8r(p):p);return p};
_.J.computeType=function(p){return p==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.J.onTextValueChanged=function(p){this.value=p.detail.value;var y;(y=this.onValueChanged)==null||y.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.J.handleUpdateTextInputFormFieldRendererCommand=function(p){(p=_.G(p,nDQ))&&this.data&&this.data.id===p.id&&(p.invalid!==void 0&&(this.invalid=p.invalid),p.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",p.invalidValueErrorMessage))};
_.J.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JC("value-changed",this.value))};
_.J.updateInvalidFromBinding=function(p){this.invalid=p.detail.value};
_.Jh.Object.defineProperties(yX.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var p;return!((p=this.data)==null||!p.isMultiline)}}});
yX.prototype.valueChangedForBinding=yX.prototype.valueChangedForBinding;yX.prototype.valueChanged=yX.prototype.valueChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],yX.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],yX.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],yX.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",String)],yX.prototype,"value",void 0);_.H([_.Q(),_.x("design:type",String)],yX.prototype,"pattern",void 0);_.H([_.Q(),_.x("design:type",String)],yX.prototype,"errorMessage",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],yX.prototype,"componentStyle",void 0);_.H([_.Q(),_.x("design:type",Object)],yX.prototype,"hideCharCounter",void 0);
_.H([_.Q(),_.x("design:type",Object)],yX.prototype,"hideLabel",void 0);_.H([_.Q(),_.x("design:type",Object)],yX.prototype,"noLabelFloat",void 0);_.H([_.Q(),_.x("design:type",Function)],yX.prototype,"onValueChanged",void 0);_.H([_.Q(),_.x("design:type",Boolean)],yX.prototype,"isMultilineOverride",void 0);_.H([_.Q(),_.x("design:type",Object)],yX.prototype,"autoValidate",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],yX.prototype,"invalid",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],yX.prototype,"disabled",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],yX.prototype,"enableOverlayTheme",void 0);_.H([_.Q({value:{REQUIRED_LABEL:_.g$("REQUIRED_LABEL",void 0,"Required")}}),_.x("design:type",Object)],yX.prototype,"strings",void 0);_.H([_.rd("#input"),_.x("design:type",Object)],yX.prototype,"input",void 0);
_.H([_.g("data","isMultilineOverride"),_.x("design:type",Object),_.x("design:paramtypes",[])],yX.prototype,"isMultiline",null);_.H([_.k8("data.value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yX.prototype,"valueChanged",null);_.H([_.gd("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yX.prototype,"valueChangedForBinding",null);_.H([_.z9({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],yX);
_.D(yX,"yt-text-input-form-field-renderer",function(){if(gNr===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;VfZ===void 0&&(VfZ=document.createElement("template"));var q=VfZ;l.call(y,q.content.cloneNode(!0),p.content.firstChild);gNr=p}p=gNr;return p},{mode:2});var lP=function(){var p=_.w.apply(this,arguments)||this;p.data=void 0;p.selectionState="START_DATE";p.isStartDateInvalid=!1;p.isEndDateInvalid=!1;p.autoapply=!1;p.actionMap={"ytd-calendar-date-clicked":"handleCalendarDateClicked","ytd-calendar-date-mousedown":"handleCalendarDateMouseDown","ytd-calendar-date-mouseup":"handleCalendarDateMouseUp","ytd-calendar-date-mouseenter":"handleCalendarDateMouseEnter","ytd-calendar-date-mouseleave":"handleCalendarDateMouseLeave","yt-signal-action-submit-form":"handleCalendarSubmitDateRange"};
return p};
_.A(lP,_.w);_.J=lP.prototype;_.J.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.applyButton":{id:"apply-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.J.focus=function(){this.startDateInput.focus()};
_.J.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Fr(this.data.selection.start),end:Fr(this.data.selection.end)})};
_.J.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.J.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.qL(this.selectionState)}};
_.J.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.J.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.J.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.J.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var p=this.calendar.calendarConfig,y=p.end;p=dxa({start:p.start,end:this.endDate||y},this.startDateInput.value||"");this.isStartDateInvalid=!p.isValid;p.isValid&&(p=p.value,this.selection=this.endDate?{start:p,end:this.endDate}:p,this.calendar.scrollToDate(p));this.updateInvalidState()}};
_.J.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var p=this.calendar.calendarConfig,y=p.start;p=dxa({start:this.startDate||y,end:p.end},this.endDateInput.value||"");this.isEndDateInvalid=!p.isValid;p.isValid&&(p=p.value,this.selection={start:this.startDate,end:p},this.calendar.scrollToDate(p));this.updateInvalidState()}};
_.J.handleCalendarDateClicked=function(p){var y=this.selection&&Tjg(this.selection),l=this.selection&&xxu(this.selection);y&&!Sq(p,y)&&this.selectionState==="END_DATE"?(this.selection={start:y,end:p},this.selectionState="START_DATE"):(l&&!Sq(l,p)?this.selection={start:p,end:l}:this.selection=p,this.selectionState="END_DATE")};
_.J.handleCalendarDateMouseDown=function(p){this.selection&&!DxL(this.selection)&&(this.dragPivot=rP(p,this.selection.start)?this.selection.end:rP(p,this.selection.end)?this.selection.start:p)};
_.J.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.J.handleCalendarDateMouseEnter=function(p){this.dragPivot&&(this.selection={start:function(y,l){return Sq(y,l)?y:l}(this.dragPivot,p),
end:function(y,l){return Sq(y,l)?l:y}(this.dragPivot,p)},this.dragPivot||(this.selectionState="START_DATE"))};
_.J.handleCalendarDateMouseLeave=function(){};
_.J.handleCalendarSubmitDateRange=function(){this.selection&&!DxL(this.selection)&&_.$w(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.J.updateInvalidState=function(){var p=function(y,l){l?y.setAttribute("invalid",""):y.removeAttribute("invalid")};
p(this.startDateInput,this.isStartDateInvalid);p(this.endDateInput,this.isEndDateInvalid)};
_.J.updateDateStrings=function(){this.selection&&(DxL(this.selection)?Nj8(this.selection):(Nj8(this.selection.start),Nj8(this.selection.end)))};
_.J.updateCalendarSelection=function(p){this.calendar.updateSelection(Object.assign({},p,{selectionState:this.selectionState}))};
_.J.updateIsStartDateInvalidFromBinding=function(p){this.isStartDateInvalid=p.detail.value};
_.J.updateIsEndDateInvalidFromBinding=function(p){this.isEndDateInvalid=p.detail.value};
_.J.updateStartDateStringFromBinding=function(){};
_.J.updateEndDateStringFromBinding=function(){};
_.Jh.Object.defineProperties(lP.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Fr(this.data.dateRangeStart),end:Fr(this.data.dateRangeEnd),selection:{start:Fr(this.data.selection.start),end:Fr(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Tjg(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&xxu(this.selection)}}});
lP.prototype.resetTextboxes=lP.prototype.resetTextboxes;lP.prototype.observeSelection=lP.prototype.observeSelection;lP.prototype.dataChanged=lP.prototype.dataChanged;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],lP.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],lP.prototype,"ytRendererstamperBehavior",void 0);_.H([_.rd("#calendar"),_.x("design:type",Object)],lP.prototype,"calendar",void 0);
_.H([_.rd("#start-date"),_.x("design:type",Object)],lP.prototype,"startDateInput",void 0);_.H([_.rd("#end-date"),_.x("design:type",Object)],lP.prototype,"endDateInput",void 0);_.H([_.Q(),_.x("design:type",Object)],lP.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],lP.prototype,"selection",void 0);_.H([_.Q(),_.x("design:type",String)],lP.prototype,"selectionState",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],lP.prototype,"calendarConfig",null);
_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],lP.prototype,"errorMessage",null);_.H([_.g("selection"),_.x("design:type",Object),_.x("design:paramtypes",[])],lP.prototype,"startDate",null);_.H([_.g("selection"),_.x("design:type",Object),_.x("design:paramtypes",[])],lP.prototype,"endDate",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lP.prototype,"dataChanged",null);
_.H([_.gd("selection","selectionState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lP.prototype,"observeSelection",null);_.H([_.gd("selectionState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lP.prototype,"resetTextboxes",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],lP);
_.D(lP,"ytd-date-period-picker-renderer",function(){if(ADv!==void 0)return ADv;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-period-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="control-area" class="style-scope ytd-date-period-picker-renderer">\n  <form id="form" class="style-scope ytd-date-period-picker-renderer">\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="start-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.startDateField.textInputFormFieldRenderer]]" invalid="[[isStartDateInvalid]]" value="[[startDateString]]" on-blur="onDateInputBlur" on-focusin="onStartDateTapOrFocus" on-input="onStartDateTextChange" on-invalid-changed="updateIsStartDateInvalidFromBinding" on-tap="onStartDateTapOrFocus" on-value-changed="updateStartDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isStartDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="separator" class="style-scope ytd-date-period-picker-renderer">\u2013</div>\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="end-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.endDateField.textInputFormFieldRenderer]]" invalid="[[isEndDateInvalid]]" value="[[endDateString]]" on-blur="onDateInputBlur" on-focusin="onEndDateTapOrFocus" on-input="onEndDateTextChange" on-invalid-changed="updateIsEndDateInvalidFromBinding" on-tap="onEndDateTapOrFocus" on-value-changed="updateEndDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isEndDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n  </form>\n</div>\n\n<ytd-scrollable-calendar id="calendar" calendar-config="[[calendarConfig]]" class="style-scope ytd-date-period-picker-renderer">\n</ytd-scrollable-calendar>\n\n<div id="buttons" class="style-scope ytd-date-period-picker-renderer">\n  <div id="cancel-button" class="style-scope ytd-date-period-picker-renderer"></div>\n  <div id="apply-button" class="style-scope ytd-date-period-picker-renderer"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return ADv=p},{mode:1});var qu=function(){var p=_.w.apply(this,arguments)||this;var y={};p.actionMap=(y["ytd-date-period-picker-apply"]="handleDateRangeUpdated",y);return p};
_.A(qu,_.w);qu.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
qu.prototype.handleDateRangeUpdated=function(){};
_.H([_.Q(),_.x("design:type",Object)],qu.prototype,"data",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],qu.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],qu.prototype,"rendererstamperBehavior",void 0);_.H([_.k({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],qu);
_.D(qu,"ytd-report-history-section-header-renderer",function(){if(PHQ!==void 0)return PHQ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="header-content style-scope ytd-report-history-section-header-renderer">\n  <div id="time-range-dropdown" class="filter style-scope ytd-report-history-section-header-renderer"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return PHQ=p},{mode:1});var Qh$;var KQx;var w1P;var si=function(){return _.w.apply(this,arguments)||this};
_.A(si,_.w);_.Jh.Object.defineProperties(si.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.data)==null?0:(y=p.icon)==null?0:y.iconType)?_.QZ(this.data.icon.iconType):""}}});
_.H([_.Q(),_.x("design:type",Object)],si.prototype,"data",void 0);_.H([_.g("data"),_.x("design:type",String),_.x("design:paramtypes",[])],si.prototype,"icon",null);_.H([_.k({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],si);
_.D(si,"ytd-report-history-table-text-cell-renderer",function(){if(w1P!==void 0)return w1P;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-text-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="icon-wrapper style-scope ytd-report-history-table-text-cell-renderer" hidden="[[!icon]]">\n  <yt-icon icon="[[icon]]" class="style-scope ytd-report-history-table-text-cell-renderer"></yt-icon>\n</div>\n<div class="text style-scope ytd-report-history-table-text-cell-renderer">\n  <yt-formatted-string class="main-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.text]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="sub-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.shortByLineText]]">\n  </yt-formatted-string>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return w1P=p},{mode:1});var tt=function(){return _.w.apply(this,arguments)||this};
_.A(tt,_.w);tt.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],tt.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],tt.prototype,"data",void 0);_.H([_.k({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],tt);
_.D(tt,"ytd-report-history-table-reason-cell-renderer",function(){if(KQx!==void 0)return KQx;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-reason-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="latest-reason" class="style-scope ytd-report-history-table-reason-cell-renderer"></div>\n<div id="show-all-reasons" hidden="[[!data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer">\n  <yt-formatted-string text="[[data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer"></yt-formatted-string>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return KQx=p},{mode:1});var Ei=function(){return _.w.apply(this,arguments)||this};
_.A(Ei,_.w);Ei.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"}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Ei.prototype,"rendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Ei.prototype,"data",void 0);_.H([_.k({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],Ei);
_.D(Ei,"ytd-report-history-table-cell-renderer",function(){if(Qh$!==void 0)return Qh$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cell-container" class="style-scope ytd-report-history-table-cell-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
return Qh$=p},{mode:1});var i1Z;var Jt=function(){var p=_.w.apply(this,arguments)||this;p.columnType={type:"REPORT_HISTORY_COLUMN_TYPE",content:"REPORT_HISTORY_COLUMN_CONTENT",reason:"REPORT_HISTORY_COLUMN_REASON",status:"REPORT_HISTORY_COLUMN_STATUS",date:"REPORT_HISTORY_COLUMN_DATE"};return p};
_.A(Jt,_.w);Jt.prototype.onDataChanged=function(){var p;if((p=this.data)==null?0:p.style)this.componentStyle=this.getStyleName(this.data.style)};
Jt.prototype.getCellForColumn=function(p){return this.cells.find(function(y){var l;return((l=_.G(y==null?void 0:y.cell,txQ)||_.G(y==null?void 0:y.cell,sLM))==null?void 0:l.columnId)===p.type})};
Jt.prototype.getClassForColumn=function(p){switch(p){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Jt.prototype.getStyleName=function(p){switch(p){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Jh.Object.defineProperties(Jt.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var p;return(((p=this.data)==null?void 0:p.cells)||[]).map(function(y){return _.G(y,qAU)})}}});
Jt.prototype.onDataChanged=Jt.prototype.onDataChanged;_.H([_.Q(),_.x("design:type",Object)],Jt.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Array)],Jt.prototype,"columnRenderData",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],Jt.prototype,"componentStyle",void 0);_.H([_.g("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],Jt.prototype,"cells",null);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jt.prototype,"onDataChanged",null);_.H([_.k({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Jt);
_.D(Jt,"ytd-report-history-table-row-renderer",function(){if(i1Z!==void 0)return i1Z;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="row-container" class="style-scope ytd-report-history-table-row-renderer">\n  <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-report-history-table-row-renderer">\n    <div class$="[[column.classes]] cell-body style-scope ytd-report-history-table-row-renderer" role="cell" style$="[[column.style]]">\n      <ytd-report-history-table-cell-renderer class$="[[getClassForColumn(column.type)]] style-scope ytd-report-history-table-row-renderer" data="[[getCellForColumn(column)]]"></ytd-report-history-table-cell-renderer>\n    </div>\n  </template>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return i1Z=p},{mode:1});var rDU;var SDP;var Obt={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},o3l={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var cp=function(){return _.w.apply(this,arguments)||this};
_.A(cp,_.w);cp.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"}}}}}};
cp.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Jh.Object.defineProperties(cp.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?0:p.columns)?yro(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return I4L(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var p=this.tableSpec,y=Obt;y=y===void 0?o3l:y;y=pDu(p.columnDimensions,p.columnsToShow||[],y);p=0;y=_.c(y);for(var l=y.next();!l.done;l=y.next())l=l.value,p+=l.minWidth+l.paddingLeft+l.paddingRight;return p}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.H([_.V(_.tP),_.x("design:type",Object)],cp.prototype,"ytContinuationHandlerBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],cp.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],cp.prototype,"data",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],cp.prototype,"tableSpec",null);_.H([_.g("tableSpec"),_.x("design:type",Array),_.x("design:paramtypes",[])],cp.prototype,"columnRenderData",null);
_.H([_.g("tableSpec"),_.x("design:type",Number),_.x("design:paramtypes",[])],cp.prototype,"totalMinWidth",null);_.H([_.g("totalMinWidth"),_.x("design:type",String),_.x("design:paramtypes",[])],cp.prototype,"tableWidthStyle",null);_.H([_.k({is:"ytd-table-renderer",disableElementRegistration:!0})],cp);
_.D(cp,"ytd-table-renderer",function(){if(SDP!==void 0)return SDP;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-table-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="table-content" role="table" style$="[[tableWidthStyle]]" class="style-scope ytd-table-renderer">\n  <div id="table-header" role="row" class="style-scope ytd-table-renderer">\n    <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-table-renderer">\n      <div class$="[[column.classes]] cell-header style-scope ytd-table-renderer" style$="[[column.style]]" role="columnheader">\n        <h4 id="[[column.type]]-header-name" class="header-name style-scope ytd-table-renderer">\n          <span class="style-scope ytd-table-renderer">[[column.headerName]]</span>\n        </h4>\n        <div class="cell-header-icon style-scope ytd-table-renderer" hidden="[[!column.headerIcon]]">\n          <yt-icon icon="[[column.headerIcon]]" class="style-scope ytd-table-renderer"></yt-icon>\n        </div>\n      </div>\n    </template> \n  </div>\n  <div id="table-body" class="style-scope ytd-table-renderer">\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return SDP=p},{mode:1});var e9=function(){return _.w.apply(this,arguments)||this};
_.A(e9,_.w);e9.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}}}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],e9.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],e9.prototype,"data",void 0);_.H([_.k({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],e9);
_.D(e9,"ytd-report-reason-history-modal-renderer",function(){if(rDU!==void 0)return rDU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-reason-history-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="report-history-modal-body" class="style-scope ytd-report-reason-history-modal-renderer">\n  <h4 class="title style-scope ytd-report-reason-history-modal-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-report-reason-history-modal-renderer"></yt-formatted-string>\n  </h4>\n  <div id="content-info" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-report-reason-history-modal-renderer">\n    <div id="reasons-table" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div id="report-history-modal-footer" class="style-scope ytd-report-reason-history-modal-renderer">\n  <div id="done-button" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return rDU=p},{mode:1});var FQM;var LQx;var kxi;var ht=function(){return _.w.apply(this,arguments)||this};
_.A(ht,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ht.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ht.prototype,"data",void 0);_.H([_.k({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],ht);
_.D(ht,"ytd-profile-column-stats-entry-renderer",function(){if(kxi!==void 0)return kxi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.label)]]</div>\n<div id="value" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.value)]]</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return kxi=p},{mode:1});var NAx;var Cs=function(){return _.w.apply(this,arguments)||this};
_.A(Cs,_.w);Cs.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Cs.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Cs.prototype,"data",void 0);_.H([_.k({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],Cs);
_.D(Cs,"ytd-profile-column-stats-renderer",function(){if(NAx!==void 0)return NAx;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-stats-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return NAx=p},{mode:1});var Djx;var uP=function(){return _.w.apply(this,arguments)||this};
_.A(uP,_.w);_.Jh.Object.defineProperties(uP.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.useThumbnailSize)return 80;var y,l;p=(y=this.data)==null?void 0:(l=y.thumbnail)==null?void 0:l.thumbnails;var q;return p&&((q=p[0])==null?void 0:q.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.useThumbnailSize)return 80;var y,l;p=(y=this.data)==null?void 0:(l=y.thumbnail)==null?void 0:l.thumbnails;var q;return p&&((q=p[0])==null?void 0:q.height)||80}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],uP.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],uP.prototype,"componentStyle",void 0);_.H([_.g("data.useThumbnailSize"),_.x("design:type",Object),_.x("design:paramtypes",[])],uP.prototype,"thumbnailWidth",null);
_.H([_.g("data.useThumbnailSize"),_.x("design:type",Object),_.x("design:paramtypes",[])],uP.prototype,"thumbnailHeight",null);_.H([_.k({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],uP);
_.D(uP,"ytd-profile-column-user-info-renderer",function(){if(Djx!==void 0)return Djx;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-user-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="thumbnail" height="[[thumbnailHeight]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-profile-column-user-info-renderer">\n</yt-img-shadow>\n<div id="title" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.subtitle)]]</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Djx=p},{mode:1});var RO=function(){return _.w.apply(this,arguments)||this};
_.A(RO,_.w);RO.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]]"}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],RO.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],RO.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],RO.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],RO.prototype,"componentStyle",void 0);_.H([_.k({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],RO);
_.D(RO,"ytd-profile-column-renderer",function(){if(LQx!==void 0)return LQx;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return LQx=p},{mode:1});var Wp=function(){var p=_.w.apply(this,arguments)||this;p.componentStyle="NON_CENTERED_PROFILE";return p};
_.A(Wp,_.w);Wp.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Wp.prototype.getIcon=function(p){return p?"settings:"+p.toLowerCase():null};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Wp.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Wp.prototype,"data",void 0);_.H([_.k({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Wp);
_.D(Wp,"ytd-page-introduction-renderer",function(){if(FQM!==void 0)return FQM;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-introduction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-content" class="style-scope ytd-page-introduction-renderer">\n  <div id="introduction-text" class="style-scope ytd-page-introduction-renderer">\n    <div id="name" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.pageTitle)]]</div>\n    <div id="title" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.headerText)]]</div>\n    <yt-formatted-string id="text" split-lines="" text="[[data.bodyText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n    <ul class="introduction-bullet-items style-scope ytd-page-introduction-renderer" hidden="[[!data.bulletMessages]]">\n      <template is="dom-repeat" items="[[data.bulletMessages]]" as="bullet" class="style-scope ytd-page-introduction-renderer">\n        <li class="style-scope ytd-page-introduction-renderer">\n          <yt-formatted-string id="text" text="[[bullet]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string>\n        </li>\n      </template>\n    </ul>\n    <div class="introduction-additional-lines style-scope ytd-page-introduction-renderer" hidden="[[!data.additionalLines]]">\n      <template is="dom-repeat" items="[[data.additionalLines]]" as="line" class="style-scope ytd-page-introduction-renderer">\n        <p class="style-scope ytd-page-introduction-renderer"> <yt-formatted-string id="text" text="[[line]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string> </p>\n      </template>\n    </div>\n    <yt-formatted-string id="text" force-default-style="" text="[[data.footerText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n  </div>\n  <yt-icon hidden="[[!data.headerIcon]]" icon="[[getIcon(data.headerIcon.iconType)]]" class="style-scope ytd-page-introduction-renderer"></yt-icon>\n  <yt-img-shadow height="160" hidden="[[!data.headerImage]]" thumbnail="[[data.headerImage]]" class="style-scope ytd-page-introduction-renderer">\n  </yt-img-shadow>\n</div>\n<div id="report-stats" hidden="[[!data.reportStats]]" class="style-scope ytd-page-introduction-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return FQM=p},{mode:1});var H1v;var aO=function(){return _.w.apply(this,arguments)||this};
_.A(aO,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],aO.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],aO.prototype,"data",void 0);_.H([_.k({is:"ytd-report-description-renderer",disableElementRegistration:!0})],aO);
_.D(aO,"ytd-report-description-renderer",function(){if(H1v!==void 0)return H1v;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-description-vertical-line style-scope ytd-report-description-renderer"></div>\n<div class="report-description style-scope ytd-report-description-renderer">\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-upper-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-receipt style-scope ytd-report-description-renderer" text="[[data.receipt]]">\n    </yt-formatted-string>\n  </div>\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-lower-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-state style-scope ytd-report-description-renderer" text="[[data.state]]">\n    </yt-formatted-string>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return H1v=p},{mode:1});var TAV;var xjQ;var mE=function(){return _.w.apply(this,arguments)||this};
_.A(mE,_.w);mE.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],mE.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],mE.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],mE.prototype,"data",void 0);_.H([_.k({is:"ytd-video-report-renderer",disableElementRegistration:!0})],mE);
_.D(mE,"ytd-video-report-renderer",function(){if(xjQ!==void 0)return xjQ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-report-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-thumbnail style-scope ytd-video-report-renderer"></div>\n<div class="report-info style-scope ytd-video-report-renderer">\n  <yt-formatted-string class="report-title style-scope ytd-video-report-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="report-subtitle style-scope ytd-video-report-renderer" text="[[data.shortBylineText]]">\n  </yt-formatted-string>\n</div>\n<div id="description" class="style-scope ytd-video-report-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return xjQ=p},{mode:1});var BAB;_.ox("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.ox("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var Ui=function(){return _.w.apply(this,arguments)||this};
_.A(Ui,_.w);Ui.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
Ui.prototype.computeMessageStyle=function(p){return p};
Ui.prototype.computeButtonOverride=function(p){var y;if((p==null?0:(y=p.style)==null?0:y.value)&&p.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ui.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Ui.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Ui.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ui.prototype,"shelf",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ui.prototype,"panel",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.x("design:type",Boolean)],Ui.prototype,"componentStyle",void 0);_.H([_.Q({computed:"computeButtonOverride(data)"}),_.x("design:type",Object)],Ui.prototype,"buttonOverride",void 0);_.H([_.k({is:"ytd-message-renderer",disableElementRegistration:!0})],Ui);
_.D(Ui,"ytd-message-renderer",function(){if(BAB!==void 0)return BAB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return BAB=p},{mode:1});var $4=function(){return _.w.apply(this,arguments)||this};
_.A($4,_.w);$4.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"}}}};
$4.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
$4.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Jh.Object.defineProperties($4.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var p,y;return!!(((p=this.data)==null?0:p.header)&&((y=this.data)==null?0:y.table))}}});
$4.prototype.onRequestError=$4.prototype.onRequestError;_.H([_.V(_.tP),_.x("design:type",Object)],$4.prototype,"ytContinuationHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],$4.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],$4.prototype,"data",void 0);
_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],$4.prototype,"isUnifiedReportHistory",null);_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$4.prototype,"onRequestError",null);_.H([_.k({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],$4);
_.D($4,"ytd-report-history-section-renderer",function(){if(TAV!==void 0)return TAV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" hidden="[[isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer"></div>\n\n\n<div id="unified-report-history" hidden="[[!isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer">\n  <div id="header" class="style-scope ytd-report-history-section-renderer"></div>\n  <div class="table-container style-scope ytd-report-history-section-renderer">\n    <div id="history-table" class="style-scope ytd-report-history-section-renderer"></div>\n    <div class="spinner-container style-scope ytd-report-history-section-renderer" hidden="[[!continuationIsReloading]]">\n      <tp-yt-paper-spinner active="" class="style-scope ytd-report-history-section-renderer"></tp-yt-paper-spinner>\n    </div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return TAV=p},{mode:1});var fNx;var j9=function(){var p=_.w.apply(this,arguments)||this;p.answerExpanded=!1;return p};
_.A(j9,_.w);j9.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],j9.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],j9.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],j9.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],j9.prototype,"answerExpanded",void 0);_.H([_.k({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],j9);
_.D(j9,"ytd-handles-claiming-faq-renderer",function(){if(fNx!==void 0)return fNx;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="head style-scope ytd-handles-claiming-faq-renderer" on-click="toggleAnswer">\n  <span class="question style-scope ytd-handles-claiming-faq-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope ytd-handles-claiming-faq-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope ytd-handles-claiming-faq-renderer">\n    <yt-formatted-string class="answer style-scope ytd-handles-claiming-faq-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return fNx=p},{mode:1});var vNU;var X1O=function(){return _.w.apply(this,arguments)||this};
_.A(X1O,_.w);_.H([_.Q(),_.x("design:type",Object)],X1O.prototype,"data",void 0);_.H([_.k({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],X1O);
_.D(X1O,"ytd-handles-claiming-faq-section-renderer",function(){if(vNU!==void 0)return vNU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-faq-section-renderer">\n  <yt-formatted-string id="title" text="[[data.header]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.faqs]]" class="style-scope ytd-handles-claiming-faq-section-renderer">\n    <ytd-handles-claiming-faq-renderer data="[[item]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></ytd-handles-claiming-faq-renderer>\n  </template>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return vNU=p},{mode:1});var djr;var bP=function(){var p=_.w.apply(this,arguments)||this;p.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";p.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";p.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";p.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";p.leftSquiggly=p.leftSquigglyLight;p.rightSquiggly=p.rightSquigglyLight;
p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};p.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return p};
_.A(bP,_.w);_.J=bP.prototype;_.J.updateLeftSquigglyStyle=function(){_.Ax(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.J.updateRightSquigglyStyle=function(){_.Ax(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.J.ready=function(){var p=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(p)};
_.J.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&(this.set("isDarkTheme",p),p?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
bP.prototype.updateRightSquigglyStyle=bP.prototype.updateRightSquigglyStyle;bP.prototype.updateLeftSquigglyStyle=bP.prototype.updateLeftSquigglyStyle;_.H([_.Q(),_.x("design:type",Object)],bP.prototype,"data",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],bP.prototype,"isDarkTheme",void 0);_.H([_.Q(),_.x("design:type",String)],bP.prototype,"leftSquiggly",void 0);_.H([_.Q(),_.x("design:type",String)],bP.prototype,"rightSquiggly",void 0);
_.H([_.gd("leftSquiggly"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bP.prototype,"updateLeftSquigglyStyle",null);_.H([_.gd("rightSquiggly"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bP.prototype,"updateRightSquigglyStyle",null);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],bP.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],bP.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],bP.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],bP.prototype,"actionButtonOverride",void 0);_.H([_.k({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],bP);
_.D(bP,"ytd-handles-claiming-header-renderer",function(){if(djr!==void 0)return djr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="left-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n<div id="outer-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <yt-img-shadow id="profile-picture" height="150" thumbnail="[[data.profilePicture]]" width="150" class="style-scope ytd-handles-claiming-header-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <div id="action-button" class="style-scope ytd-handles-claiming-header-renderer">\n  </div>\n</div>\n<div id="right-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="right-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return djr=p},{mode:1});var O1Z;var ns=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};p.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";p.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";p.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";p.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
p.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";p.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";p.image0SquigglyBackground=p.image0LightSquigglyBackground;p.image1SquigglyBackground=p.image1LightSquigglyBackground;p.image3SquigglyBackground=p.image3LightSquigglyBackground;return p};
_.A(ns,_.w);_.J=ns.prototype;_.J.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.J.onDataChanged=function(){this.updateTitleAndImages()};
_.J.onThemeChanged=function(){this.updateTitleAndImages()};
_.J.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&(this.isDarkTheme=p)};
_.J.updateImage0SquigglyBackground=function(){_.Ax(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.J.updateImage1SquigglyBackground=function(){_.Ax(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.J.updateImage3SquigglyBackground=function(){_.Ax(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.J.updateTitleAndImages=function(){var p,y;((p=this.data)==null?void 0:(y=p.titleImages)==null?void 0:y.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))};
ns.prototype.updateImage3SquigglyBackground=ns.prototype.updateImage3SquigglyBackground;ns.prototype.updateImage1SquigglyBackground=ns.prototype.updateImage1SquigglyBackground;ns.prototype.updateImage0SquigglyBackground=ns.prototype.updateImage0SquigglyBackground;ns.prototype.onThemeChanged=ns.prototype.onThemeChanged;ns.prototype.onDataChanged=ns.prototype.onDataChanged;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],ns.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],ns.prototype,"isDarkTheme",void 0);_.H([_.Q(),_.x("design:type",Object)],ns.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],ns.prototype,"title0",void 0);_.H([_.Q(),_.x("design:type",Object)],ns.prototype,"title1",void 0);_.H([_.Q(),_.x("design:type",Object)],ns.prototype,"title2",void 0);_.H([_.Q(),_.x("design:type",Object)],ns.prototype,"title3",void 0);
_.H([_.Q(),_.x("design:type",Object)],ns.prototype,"title4",void 0);_.H([_.Q(),_.x("design:type",Object)],ns.prototype,"image0",void 0);_.H([_.Q(),_.x("design:type",Object)],ns.prototype,"image1",void 0);_.H([_.Q(),_.x("design:type",Object)],ns.prototype,"image2",void 0);_.H([_.Q(),_.x("design:type",Object)],ns.prototype,"image3",void 0);_.H([_.Q(),_.x("design:type",Object)],ns.prototype,"image4",void 0);_.H([_.Q(),_.x("design:type",String)],ns.prototype,"image0SquigglyBackground",void 0);
_.H([_.Q(),_.x("design:type",String)],ns.prototype,"image1SquigglyBackground",void 0);_.H([_.Q(),_.x("design:type",String)],ns.prototype,"image3SquigglyBackground",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ns.prototype,"onDataChanged",null);_.H([_.gd("isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ns.prototype,"onThemeChanged",null);
_.H([_.gd("image0SquigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ns.prototype,"updateImage0SquigglyBackground",null);_.H([_.gd("image1SquigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ns.prototype,"updateImage1SquigglyBackground",null);
_.H([_.gd("image3SquigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ns.prototype,"updateImage3SquigglyBackground",null);_.H([_.k({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],ns);
_.D(ns,"ytd-handles-claiming-title-images-section-renderer",function(){if(O1Z!==void 0)return O1Z;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-title-images-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-title-images-section-renderer"></yt-formatted-string>\n<div id="image-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n  <div id="left-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image0" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <div id="background-image1" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title0" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title0]]"></yt-formatted-string>\n    <yt-img-shadow id="image0" height="802.21" thumbnail="[[image0]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title1" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title1]]"></yt-formatted-string>\n    <yt-img-shadow id="image1" height="436.87" thumbnail="[[image1]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="right-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image3" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title2" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title2]]"></yt-formatted-string>\n    <yt-img-shadow id="image2" height="439.5" thumbnail="[[image2]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title3" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title3]]"></yt-formatted-string>\n    <yt-img-shadow id="image3" height="334.9" thumbnail="[[image3]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title4" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title4]]"></yt-formatted-string>\n    <yt-img-shadow id="image4" height="334.9" thumbnail="[[image4]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return O1Z=p},{mode:1});var oNO;var GF=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.A(GF,_.w);GF.prototype.ready=function(){var p=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(p)};
GF.prototype.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&this.set("isDarkTheme",p)};
GF.prototype.onCopyButtonClick=function(){var p=this,y,l,q;return _.h(function(t){return(y=p.data)!=null&&y.primaryChannelUrl?t.yield(navigator.clipboard.writeText(((l=p.data)==null?0:l.encodedChannelUrl)?p.data.encodedChannelUrl:"https://"+_.JB((q=p.data)==null?void 0:q.primaryChannelUrl)),0):t.jumpTo(0)})};
_.H([_.Q(),_.x("design:type",Object)],GF.prototype,"data",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],GF.prototype,"ytComponentBehavior",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],GF.prototype,"isDarkTheme",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],GF.prototype,"ytActionHandlerBehavior",void 0);_.H([_.k({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],GF);
_.D(GF,"ytd-handles-claiming-update-social-renderer",function(){if(oNO!==void 0)return oNO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-update-social-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-update-social-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <yt-formatted-string id="channel-info" text="[[data.primaryChannelInfoText]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="primary-url" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <yt-formatted-string id="primary-channel-url" text="[[data.primaryChannelUrl]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n    <yt-icon-button id="copy-icon-button" label="[[data.copyText]]" on-click="onCopyButtonClick" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <yt-icon id="copy-icon" icon="yt-icons:copy" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <yt-formatted-string id="social-title" text="[[data.socialTitle]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="socials-container" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <template is="dom-repeat" items="[[data.socialIcons]]" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <a id="social-icon" class="yt-simple-endpoint style-scope ytd-handles-claiming-update-social-renderer" href$="[[computeHref_(item.onTap)]]" data="[[item.onTap]]" tabindex="-1">\n        <yt-img-shadow height="48" thumbnail="[[item.icon]]" width="48" class="style-scope ytd-handles-claiming-update-social-renderer">\n        </yt-img-shadow>\n      </a>\n    </template>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return oNO=p},{mode:1});var ztN;var Pp=function(){var p=_.w.apply(this,arguments)||this;p.JSC$15913_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";p.JSC$15913_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};p.squigglyBackground=p.JSC$15913_squigglyBackgroundLight;return p};
_.A(Pp,_.w);Pp.prototype.updateSquigglyBackgroundStyle=function(){_.Ax(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Pp.prototype.ready=function(){var p=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",p);this.squigglyBackground=p?this.JSC$15913_squigglyBackgroundDark:this.JSC$15913_squigglyBackgroundLight};
Pp.prototype.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&(this.set("isDarkTheme",p),this.squigglyBackground=p?this.JSC$15913_squigglyBackgroundDark:this.JSC$15913_squigglyBackgroundLight)};
Pp.prototype.updateSquigglyBackgroundStyle=Pp.prototype.updateSquigglyBackgroundStyle;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Pp.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Pp.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Pp.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Pp.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Pp.prototype,"isDarkTheme",void 0);_.H([_.Q(),_.x("design:type",String)],Pp.prototype,"squigglyBackground",void 0);_.H([_.gd("squigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pp.prototype,"updateSquigglyBackgroundStyle",null);_.H([_.k({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Pp);
_.D(Pp,"ytd-handles-claiming-vanity-info-renderer",function(){if(ztN!==void 0)return ztN;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-vanity-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer"></div>\n    <div id="text-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="info-title" text="[[data.infoTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="vanity-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="vanity-title" text="[[data.vanityTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <div id="vanities" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n        <template is="dom-repeat" items="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n          <yt-formatted-string class="vanity style-scope ytd-handles-claiming-vanity-info-renderer" force-default-style="" link-inherit-color="" split-lines="" text="[[item]]"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n  </template>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return ztN=p},{mode:1});var YDU;var At=function(){var p=_.w.apply(this,arguments)||this;p.JSC$15916_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";p.JSC$15916_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";p.squigglyBackground=p.JSC$15916_squigglyBackgroundLight;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.A(At,_.w);_.J=At.prototype;_.J.ready=function(){var p=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(p)};
_.J.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&(this.set("isDarkTheme",p),this.squigglyBackground=p?this.JSC$15916_squigglyBackgroundDark:this.JSC$15916_squigglyBackgroundLight)};
_.J.updateSquigglyBackgroundStyle=function(){_.Ax(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.J.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.J.detached=function(){this.stop()};
_.J.stop=function(){this.playerElement.stop()};
_.J.setupVideoPlayer=function(){var p=this,y,l;return _.h(function(q){y=p.data.videoId;l="http://i1.ytimg.com/vi/"+y+"/maxresdefault.jpg";p.playerElement.loadVideoWithPlayerVars({video_id:y,iurlhq:l});_.rR(q)})};
At.prototype.onDataChanged=At.prototype.onDataChanged;At.prototype.updateSquigglyBackgroundStyle=At.prototype.updateSquigglyBackgroundStyle;_.H([_.Q({value:!1}),_.x("design:type",Boolean)],At.prototype,"isDarkTheme",void 0);_.H([_.Q(),_.x("design:type",String)],At.prototype,"squigglyBackground",void 0);_.H([_.rd("#player"),_.x("design:type",Object)],At.prototype,"playerElement",void 0);_.H([_.Q(),_.x("design:type",Object)],At.prototype,"data",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],At.prototype,"ytActionHandlerBehavior",void 0);_.H([_.gd("squigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],At.prototype,"updateSquigglyBackgroundStyle",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],At.prototype,"onDataChanged",null);
_.H([_.k({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],At);
_.D(At,"ytd-handles-claiming-video-item-renderer",function(){if(YDU!==void 0)return YDU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-video-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-video-item-renderer">\n  <div id="player-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_HANDLES_CLAIMING" player-id="handlesclaiming" class="style-scope ytd-handles-claiming-video-item-renderer">\n    </ytd-player>\n  </div>\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <div id="text-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n    </div>\n    <div id="pic-container" class="style-scope ytd-handles-claiming-video-item-renderer"></div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return YDU=p},{mode:1});var INP;var Mu=function(){var p=_.FA.apply(this,arguments)||this;p.dragging=!1;p.dragMouseStart=0;p.dragOffsetStart=0;p.containerWidthDiff=0;p.boundPrevClick=function(){p.set("offset",ZD(p,p.offset-(p.scrollDistance||320)))};
p.boundNextClick=function(){p.set("offset",ZD(p,p.offset+(p.scrollDistance||320)))};
p.boundScrollContainerMouseDown=function(y){p.dragMouseStart=y.clientX;p.dragOffsetStart=p.offset;p.dragging=!0};
p.boundScrollContainerDrag=function(y){p.dragging&&p.set("offset",ZD(p,p.dragOffsetStart-(y.clientX-p.dragMouseStart)))};
p.boundMouseUp=function(){p.onMouseUp()};
p.boundWheelScroll=function(y){var l=0;Math.abs(y.deltaX)>=Math.abs(y.deltaY)?l=y.deltaX:y.shiftKey&&(l=y.deltaY);l!==0&&(p.offset+=l,y.stopPropagation(),y.preventDefault())};
p.boundChipCloudChipScrollIntoView=function(y){(y=y.detail)&&p.scrollChipIntoView(y)};
return p};
_.A(Mu,_.FA);Mu.prototype.attached=function(){var p=_.jR(this.hostElement).querySelector("#scroll-container");p.addEventListener("wheel",this.boundWheelScroll);p.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);p.style.touchAction="pan-y";p.addEventListener("pointerdown",this.boundScrollContainerMouseDown);p.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
Mu.prototype.detached=function(){var p=_.jR(this.hostElement).querySelector("#scroll-container");p.removeEventListener("wheel",this.boundWheelScroll);p.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);p.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);p.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
Mu.prototype.reset=function(){this.set("offset",0);_.th(this,this.setContainerWidthDiff);VX(this)};
var ZD=function(p,y){return Math.min(Math.max(y,0),p.containerWidthDiff)};
Mu.prototype.onMouseUp=function(){this.dragging=!1};
Mu.prototype.transformContainer=function(){this.offset=ZD(this,this.offset);var p=_.OY("HTML_DIR")==="rtl"?"":"-";_.jR(this.hostElement).querySelector("#chips").style.transform="translateX("+p+this.offset+"px)";VX(this)};
var VX=function(p){_.th(p,p.setButtonsState)};
Mu.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=ZD(this,this.offset));this.atStart=this.offset<=0};
Mu.prototype.setContainerWidthDiff=function(){var p=_.jR(this.hostElement).querySelector("#scroll-container"),y=_.jR(this.hostElement).querySelector("#chips");p&&y&&(this.containerWidthDiff=y.clientWidth-p.clientWidth)};
Mu.prototype.scrollChipIntoView=function(p){var y=_.jR(this.hostElement).querySelector("#scroll-container");if(y){var l=this.atStart?0:106,q=this.atEnd?0:106;p.offsetLeft<this.offset+l?this.offset=ZD(this,p.offsetLeft-l):p.offsetLeft+p.clientWidth>this.offset+y.clientWidth-q&&(this.offset=ZD(this,p.offsetLeft+p.clientWidth+q-y.clientWidth))}};
Mu.prototype.transformContainer=Mu.prototype.transformContainer;_.H([_.Q({value:0}),_.x("design:type",Number)],Mu.prototype,"offset",void 0);_.H([_.Q({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],Mu.prototype,"atStart",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Mu.prototype,"atEnd",void 0);_.H([_.Q(),_.x("design:type",Number)],Mu.prototype,"scrollDistance",void 0);
_.H([_.gd("offset"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mu.prototype,"transformContainer",null);_.H([_.Lv()],Mu);var pgv;var ydM;var s_x=_.aF(function(p){var y=p.data;p=_.c(_.nr(!1,void 0,"HDMMr"));var l=p.next().value,q=p.next().value;p={};p=_.ip("ytChipShapeChip",function(){a:switch(y==null?void 0:y().state){case 0:var E="ytChipShapeActive";break a;case 1:E="ytChipShapeDisabled";break a;default:E="ytChipShapeInactive"}return E},function(){var E=y().type===1||y().type===2,e=y();
return E||e!=null&&e.startIcon?e==null||!e.startIcon||e!=null&&e.text?E?"ytChipShapeEndIconPadding":(e==null?0:e.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(p.ytChipShapeFocused=function(){var E;
return l()&&((E=y())==null?void 0:E.state)!==1},p));
var t=function(E){if((y==null?void 0:y().state)!==1){var e,C;(C=(e=y()).onTap)==null||C.call(e,E)}};
return _.R("chip-shape",{class:"ytChipShapeHost","on:focusin":_.Ff(function(){var E=_.WC().resolve(_.RK(_.Zu));if(E){q(E.isKeyBoardInUse());var e,C;(C=(e=y()).onFocusIn)==null||C.call(e)}return!1}),
"on:focusout":_.Ff(function(){q(!1);return!1})},_.R(lMB,{shouldWrapInButton:function(){return y().type!==2},
selected:function(){return y().state===0},
onClick:t,isDropdown:function(){return y().type===1},
accessibilityLabel:function(){return y().accessibilityLabel}},_.R("div",{class:p},_.R(_.W,{cond:function(){return y().startIcon},
then:function(){return _.R(_.DR,{icon:function(){var E;return(E=y())==null?void 0:E.startIcon},
className:function(){return y().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return y().text},_.R(qqU,{shape:y,
onClick:t}),_.R(_.xS,{model:{borderRadius:"8px"}}))))},"Ib");
s_x.idomCompat=!0;var lMB=_.aF(function(p){var y=_.Ff(function(l){p.onClick(l);return!1});
return _.R(_.W,{cond:p.shouldWrapInButton,then:function(){return _.R("button",{class:"ytChipShapeButtonReset","on:click":y,role:function(){return p.isDropdown()?"combobox":"tab"},
"aria-label":p.accessibilityLabel,"aria-selected":p.selected},p.children)},
else:function(){return p.children}})},"Jb"),qqU=_.aF(function(p){var y=p.shape;
var l=p.onClick;var q=_.Ff(function(t){l(t);return!1});
return _.R(_.L6,null,_.R(_.Sc,{when:function(){return y().type===1}},function(){return _.R(_.DR,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.R(_.Sc,{when:function(){return y().type===2}},function(){return _.R("button",{class:"ytChipShapeButtonReset",
"on:click":q},_.R(_.DR,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.R(_.Sc,{when:function(){return y().type===0}},function(){return _.R(_.a4,null)}))},"Kb");_.bp(s_x,"chip-shape",{props:{data:_.Co}});var gS=function(){var p=_.w.apply(this,arguments)||this;p.disableDeselectEvent=!1;p.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return p};
_.A(gS,_.w);_.J=gS.prototype;_.J.onSelectChipCommand=function(p){if(!this.selected&&this.data&&(p=_.G(p,uev),p.targetId&&p.targetId===this.data.targetId))this.onTap()};
_.J.onFilterChipTransformCommand=function(p){if(!this.selected&&this.data){var y;(p=(y=_.G(p,Evv))==null?void 0:y.chipUniqueId)&&p===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.J.dataChanged=function(){var p=this;_.th(this,function(){p.data&&p.data.isSelected&&!p.selected&&(p.scrollChipIntoView(),p.onTap())})};
_.J.computeChipStyle=function(p){return p!=null?p:"STYLE_DEFAULT"};
_.J.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.$w(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.$w(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.J.onFocus=function(){var p=_.WC().resolve(_.RK(_.Zu));p&&p.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.J.scrollChipIntoView=function(){_.Ub(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Jh.Object.defineProperties(gS.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return Jrc({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
gS.prototype.onFocus=gS.prototype.onFocus;gS.prototype.onTap=gS.prototype.onTap;gS.prototype.dataChanged=gS.prototype.dataChanged;_.H([_.V(_.Dr),_.x("design:type",Object)],gS.prototype,"ironButtonState",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],gS.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],gS.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],gS.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.Ln),_.x("design:type",Object)],gS.prototype,"ironA11yKeysBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],gS.prototype,"disableDeselectEvent",void 0);_.H([_.Q(),_.x("design:type",Object)],gS.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("data.icon"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],gS.prototype,"hasIcon",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("data.uniqueId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],gS.prototype,"isGnomeChip",null);_.H([_.Q({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.x("design:type",String)],gS.prototype,"chipStyle",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],gS.prototype,"selected",void 0);
_.H([_.g("data","selected"),_.x("design:type",Object),_.x("design:paramtypes",[])],gS.prototype,"chipShapeData",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gS.prototype,"dataChanged",null);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gS.prototype,"onTap",null);
_.H([_.VU("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gS.prototype,"onFocus",null);_.H([_.z9({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],gS);
_.D(gS,"yt-chip-cloud-chip-renderer",function(){if(ydM===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;pgv===void 0&&(pgv=document.createElement("template"));var q=pgv;l.call(y,q.content.cloneNode(!0),p.content.firstChild);ydM=p}p=ydM;return p},{mode:2});var QX=function(){var p=_.w.apply(this,arguments)||this;p.isDarkTheme=!1;p.notSticky=!1;p.transparentBackground=!1;p.shouldHide=!1;p.disableSticky=!1;p.fluidWidth=!1;p.isClipList=!1;p.defaultChipIndex=0;p.isPlaylist=!1;p.playlistVotingAnimationEnabled=_.n("web_enable_voting_animation");p.toolbarHeight=0;p.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return p};
_.A(QX,_.w);_.J=QX.prototype;
_.J.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.J.attached=function(){var p=this;document.addEventListener("scroll",_.MH(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var y;this.toolbarHeight=((y=document.querySelector("ytd-masthead"))==null?void 0:y.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(l){p.handleIntersect(l)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){p.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.J.detached=function(){var p;(p=this.intersectionObserver)==null||p.disconnect();var y;(y=this.resizeObserver)==null||y.disconnect();document.removeEventListener("scroll",_.MH(this,this.updateChipBarWidthAndTop))};
_.J.dataChanged=function(){var p=this,y,l,q;((q=_.G((y=this.data)==null?void 0:(l=y.contents)==null?void 0:l[0],L1M))==null?void 0:q.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var t=this.findSelectedChipIndex();this.selectedIndex!==t&&(this.selectedIndex=-1);_.th(this,function(){p.selectedIndex=t;p.updating=!1;p.ytScrollableChipCloudBehavior.reset()})};
_.J.findSelectedChipIndex=function(){var p;if((p=this.data)==null||!p.contents)return 0;p=this.data.contents;for(var y=0;y<p.length;y++){var l=void 0;if((l=_.G(p[y],L1M))==null?0:l.isSelected)return y}return 0};
_.J.computeStyle=function(p){return p};
_.J.handleChipCloudChipSelectAction=function(p){p=this.JSC$15937_chipsSelector.indexOf(p);p>-1&&this.JSC$15937_chipsSelector.selectIndex(p)};
_.J.handleChipCloudChipDeselectAction=function(){if(_.n("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var p,y,l,q=(l=_.G((p=this.data)==null?void 0:(y=p.contents)==null?void 0:y[0],L1M))==null?void 0:l.navigationEndpoint;q&&_.$w(this.hostElement,"yt-browse-section-list-reload-endpoint",[q]);this.JSC$15937_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.J.onGuideIsExpandedChanged=function(){var p=this.ytScrollableChipCloudBehavior;_.th(p,p.setContainerWidthDiff);VX(this.ytScrollableChipCloudBehavior)};
_.J.onResize=function(){var p=this.ytScrollableChipCloudBehavior;_.th(p,p.setContainerWidthDiff);VX(this.ytScrollableChipCloudBehavior)};
_.J.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.J.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.J.handleIntersect=function(p){this.notSticky=this.isChannelPageGrid||this.disableSticky||p[0].intersectionRatio===1};
_.J.updateDimensions=function(){var p=this.ytRendererBehavior.parentComponent;if(p){var y,l=(y=p.headerElement)!=null?y:p;_.Ax(this.hostElement,{"--ytd-rich-grid-chips-bar-width":l.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.J.updateSelectedIndexFromBinding=function(p){this.selectedIndex=p.detail.value};
_.J.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var p;(p=this.sortFilterHeaderRendererElement)==null||p.setAttribute("is-playlist-page-with-filters","")}};
_.J.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(UwM(!this.notSticky))};
_.Jh.Object.defineProperties(QX.prototype,{isChannelPageGrid:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_CHANNEL_PAGE_GRID"}},
isHashtagLandingPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_HASHTAG_LANDING_PAGE"}},
isPlaylistPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_PLAYLIST_PAGE"}},
isDisableDeselectEvent:{configurable:!0,enumerable:!0,get:function(){return this.isChannelPageGrid||this.isHashtagLandingPage||this.isPlaylistPage}},
sortFilterHeaderRendererData:{configurable:!0,enumerable:!0,get:function(){var p,y,l=(p=this.data)==null?void 0:(y=p.contents)==null?void 0:y.find(function(q){return _.G(q,TeM)});
return{sortFilterHeaderRenderer:_.G(l,TeM)}}}});
QX.prototype.dispatchChipBarIsSticky=QX.prototype.dispatchChipBarIsSticky;QX.prototype.isPlaylistPageChanged=QX.prototype.isPlaylistPageChanged;QX.prototype.updateChipBarWidthAndTop=QX.prototype.updateChipBarWidthAndTop;QX.prototype.onResize=QX.prototype.onResize;QX.prototype.onGuideIsExpandedChanged=QX.prototype.onGuideIsExpandedChanged;QX.prototype.dataChanged=QX.prototype.dataChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],QX.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],QX.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],QX.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.vG),_.x("design:type",Object)],QX.prototype,"ironResizableBehavior",void 0);_.H([_.V(),_.x("design:type",Mu)],QX.prototype,"ytScrollableChipCloudBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],QX.prototype,"ytdReduxBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],QX.prototype,"data",void 0);_.H([_.Q({value:0}),_.x("design:type",Number)],QX.prototype,"selectedIndex",void 0);_.H([_.Q({value:320}),_.x("design:type",Number)],QX.prototype,"scrollDistance",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],QX.prototype,"isDarkTheme",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],QX.prototype,"notSticky",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],QX.prototype,"transparentBackground",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.x("design:type",String)],QX.prototype,"componentStyle",void 0);_.H([_.Q({selector:_.PVc}),_.x("design:type",Boolean)],QX.prototype,"guideIsExpanded",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],QX.prototype,"shouldHide",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],QX.prototype,"disableSticky",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],QX.prototype,"fluidWidth",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],QX.prototype,"isClipList",void 0);_.H([_.Q(),_.x("design:type",Object)],QX.prototype,"defaultChipIndex",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],QX.prototype,"isPlaylist",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],QX.prototype,"playlistVotingAnimationEnabled",void 0);_.H([_.rd("#chips"),_.x("design:type",Object)],QX.prototype,"JSC$15937_chipsSelector",void 0);_.H([_.rd("ytd-sort-filter-header-renderer"),_.x("design:type",HTMLElement)],QX.prototype,"sortFilterHeaderRendererElement",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],QX.prototype,"updating",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QX.prototype,"dataChanged",null);_.H([_.gd("guideIsExpanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QX.prototype,"onGuideIsExpandedChanged",null);_.H([_.VU("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QX.prototype,"onResize",null);
_.H([_.k8("isChannelPageGrid","disableSticky","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QX.prototype,"updateChipBarWidthAndTop",null);_.H([_.g("componentStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],QX.prototype,"isChannelPageGrid",null);_.H([_.g("componentStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],QX.prototype,"isHashtagLandingPage",null);
_.H([_.gd("isPlaylistPage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QX.prototype,"isPlaylistPageChanged",null);_.H([_.g("componentStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],QX.prototype,"isPlaylistPage",null);_.H([_.g("componentStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],QX.prototype,"isDisableDeselectEvent",null);
_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],QX.prototype,"sortFilterHeaderRendererData",null);_.H([_.Q({reflectToAttribute:!0,selector:_.Kd6}),_.x("design:type",String)],QX.prototype,"frostedGlassMode",void 0);_.H([_.gd("notSticky"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QX.prototype,"dispatchChipBarIsSticky",null);_.H([_.k({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],QX);
_.D(QX,"ytd-feed-filter-chip-bar-renderer",function(){if(INP!==void 0)return INP;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return INP=p},{mode:1});var tAv;var EMr=_.aF(function(p){var y=p.data;var l=p.buttonIndex;var q=p.selectedIndex;var t=p.onSelect;var E=function(){return l()===q()},e=function(){var C,u;
return(u=(C=y().text)==null?void 0:C.content)!=null?u:""};
p=_.Spu();return _.R("yt-toggleable-image-button-view-model",{class:function(){var C={};C=(C["toggleable-image-button-view-model-wiz"]=!0,C[""]=!0,C["toggleable-image-button-view-model-wiz__semi-transparent"]=q()!==-1&&!E(),C);return _.rD(C)},
tabindex:0,"aria-label":e,"aria-pressed":E,role:"button","on:keydown":p,"on:click":_.Ff(function(){t(y().onSubmitCommand);return!1})},_.R(_.W,{cond:function(){return y().logo},
then:function(C){return _.R(_.W$,{data:C,className:function(){var u={};u=(u["toggleable-image-button-view-model-wiz__image"]=!0,u["toggleable-image-button-view-model-wiz__circular-radius"]=!(!y().backgroundColor||!y().backgroundColorDarkMode),u["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(E()&&y().backgroundColor&&y().backgroundColorDarkMode),u);return _.rD(u)},
alt:e,useWidth:!1,style:function(){if(E()&&y().backgroundColor&&y().backgroundColorDarkMode){var u=IU(Number(y().backgroundColorDarkMode),"1");var a=IU(Number(y().backgroundColor),"1");u="background: linear-gradient(180deg,"+u+","+a+") border-box;"}else u="";return u}})}}),_.R(_.xS,{model:{borderRadius:"16px"}}),_.R("p",{class:function(){var C={};
C=(C["toggleable-image-button-view-model-wiz__label"]=!0,C["toggleable-image-button-view-model-wiz__bold-text"]=E(),C);return _.rD(C)}},_.R(_.CF,{text:function(){return y().text}})))},"Lb");
EMr.idomCompat=!0;var cdN=_.aF(function(p){var y=p.data;p=_.c(_.nr({index:-1,command:{}},void 0,"Zcqtsb"));var l=p.next().value,q=p.next().value;return _.R("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.R("div",{class:"nudge-form-view-model-wiz__form-options"},_.R(_.di,{data:function(){return y().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(t,E){return _.R(EMr,{data:t.data,buttonIndex:E,selectedIndex:function(){return l().index},
onSelect:function(e){q({index:E(),command:e})}})}})),_.R(_.CF,{text:function(){return y().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.R("div",{class:"nudge-form-view-model-wiz__submit"},_.R(_.di,{data:function(){return y().submitButton}},{buttonViewModel:function(t){return _.R(JdM,{data:t.data,
isDisabled:function(){return l().index===-1},
onClick:function(){_.tb(l().command)}})}})))},"Mb");
cdN.idomCompat=!0;var JdM=_.aF(function(p){var y=_.MA(function(){return Object.assign({},p.data(),{state:p.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.R(_.wZ,{data:y,onClick:p.onClick})},"Nb");_.bp(cdN,"yt-nudge-form-view-model",{props:{data:_.Co}});var Ks=function(){var p=_.w.apply(this,arguments)||this;p.roundedContainer=!0;p.buttonUpdate=_.n("web_modern_buttons");p.isDarkMode=!1;p.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return p};
_.A(Ks,_.w);_.J=Ks.prototype;_.J.computeNudgeStyle=function(p){return p?"modernized-nudge":""};
_.J.handleDarkModeToggledAction=function(p){this.isDarkMode=p};
_.J.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.J.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{chipCloudChipRenderer:"yt-chip-cloud-chip-renderer",nudgeFormViewModel:"yt-nudge-form-view-model"}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",
mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.J.computeIsHorizontalButtons=function(p){return p?!!p.applyModernizedStyle&&!!p.enableHorizontalButtons&&!!p.secondaryButton:!1};
_.Jh.Object.defineProperties(Ks.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var p,y;return(y=(p=this.data)==null?void 0:p.backgroundStyle)!=null?y:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var p,y;return(y=(p=this.data)==null?void 0:p.contentsLocation)!=null?y:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null?0:p.lightIconImage)}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Ks.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],Ks.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Ks.prototype,"actionHandlerBehavior",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("isHideEnclosingAction"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ks.prototype,"isHidden",null);_.H([_.Q(),_.x("design:type",Object)],Ks.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Ks.prototype,"roundedContainer",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Ks.prototype,"buttonUpdate",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.x("design:type",String)],Ks.prototype,"nudgeStyle",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("data.trimStyle"),_.x("design:type",String),_.x("design:paramtypes",[])],Ks.prototype,"trimStyle",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data.backgroundStyle"),_.x("design:type",String),_.x("design:paramtypes",[])],Ks.prototype,"backgroundStyle",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("data.contentsLocation"),_.x("design:type",String),_.x("design:paramtypes",[])],Ks.prototype,"contentsLocation",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data.disableDropShadow"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ks.prototype,"noShadow",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data.lightIconImage"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ks.prototype,"noIcon",null);
_.H([_.Q({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.x("design:type",Boolean)],Ks.prototype,"isHorizontalButtons",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Object)],Ks.prototype,"isDarkMode",void 0);_.H([_.k({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Ks);
_.D(Ks,"ytd-feed-nudge-renderer",function(){if(tAv!==void 0)return tAv;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-nudge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismiss-button" class="style-scope ytd-feed-nudge-renderer"></div>\n  <div id="content-wrapper" class="style-scope ytd-feed-nudge-renderer">\n    <div id="header-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="image-container" hidden="[[!data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        <yt-img-shadow id="nudge-image" height="32" thumbnail="[[data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="text-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="title-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n      <div id="subtitle-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="subtitle" split-lines="" text="[[data.subtitle]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="contents" hidden="[[!data.contents]]" class="style-scope ytd-feed-nudge-renderer"></div>\n    <div id="button-container" hidden="[[!data.primaryButton]]" class="style-scope ytd-feed-nudge-renderer">\n      <div id="primary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n      <div id="secondary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismissed-content" class="style-scope ytd-feed-nudge-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return tAv=p},{mode:_.ZS("kevlar_poly_si_batch_j028")?1:2});var eXU;var hX$;var wS=function(){var p=_.w.apply(this,arguments)||this;p.collapsed=!1;p.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return p};
_.A(wS,_.w);wS.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"}}}};
wS.prototype.handleRatingSelect=function(){var p;((p=this.data)==null?0:p.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
wS.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],wS.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],wS.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],wS.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],wS.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.IP),_.x("design:type",Object)],wS.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],wS.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],wS.prototype,"collapsed",void 0);_.H([_.k({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],wS);
_.D(wS,"ytd-slimline-survey-renderer",function(){if(hX$!==void 0)return hX$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slimline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-slimline-survey-renderer">\n  <div id="content-wrapper" class="style-scope ytd-slimline-survey-renderer">\n    <div id="header-container" class="style-scope ytd-slimline-survey-renderer">\n      <div id="title-container" class="style-scope ytd-slimline-survey-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-slimline-survey-renderer"></yt-formatted-string>\n      </div>\n      <div id="dismiss-button" class="style-scope ytd-slimline-survey-renderer"></div>\n    </div>\n    <div id="rating-survey" class="style-scope ytd-slimline-survey-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-slimline-survey-renderer">\n  <div id="dismissed-content" class="style-scope ytd-slimline-survey-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return hX$=p},{mode:1});var CrM;var iP=function(){return _.w.apply(this,arguments)||this};
_.A(iP,_.w);iP.prototype.maybeGetBackgroundColor=function(p){return this.isDarkMode?p.section2Color:p.section3Color};
iP.prototype.colorPaletteChanged=function(){var p=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;p&&(p==null?0:p.secondaryTitleColor)&&this.maybeGetBackgroundColor(p)?(this.hostElement.style.backgroundColor=_.z5(this.maybeGetBackgroundColor(p)),this.hostElement.style.color=_.z5(p.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
iP.prototype.colorPaletteChanged=iP.prototype.colorPaletteChanged;_.H([_.V(_.zL),_.x("design:type",Object)],iP.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],iP.prototype,"data",void 0);_.H([_.Q({selector:function(p){return p.ui.darkModeIsEnabled}}),
_.x("design:type",Boolean)],iP.prototype,"isDarkMode",void 0);_.H([_.Q(),_.x("design:type",Object)],iP.prototype,"lightColorPalette",void 0);_.H([_.Q(),_.x("design:type",Object)],iP.prototype,"darkColorPalette",void 0);_.H([_.gd("darkColorPalette","lightColorPalette","data","isDarkMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iP.prototype,"colorPaletteChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],iP);
_.D(iP,"ytd-endorsement-header-renderer",function(){if(CrM!==void 0)return CrM;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-endorsement-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-endorsement-header-renderer"></yt-icon>\n<yt-formatted-string id="text" text="[[data.title]]" class="style-scope ytd-endorsement-header-renderer"></yt-formatted-string>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return CrM=p},{mode:1});_.bp(_.X9,"yt-decorated-avatar-view-model",{props:{data:_.Co,className:_.Co}});var rS=function(){var p=_.w.apply(this,arguments)||this;p.fullHeight=_.n("web_rich_grid_media_full_height");p.showChannelAvatar=!0;p.hasPlaylistThumbnail=!1;p.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};p.prepareThumbnailForPageTransition=function(){_.n("web_thumbnail_to_watch_transition")&&(p.thumbnail.style.viewTransitionName="thumbnail-to-watch",p.cleanupThumbnailAfterPageTransition(p.thumbnail))};
return p};
_.A(rS,_.w);_.J=rS.prototype;
_.J.configureRendererStamper=function(){return{lazyLoadMenu:w7,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.shouldLazyLoadMenu=function(){var p=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.n("kevlar_modern_downloads_page")||!p};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15962_inlinePreviewHoverListener=qG({mediaRenderer:this,lockupElement:this.JSC$15962_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.J.getVideoPreviewOpts=function(){var p={},y;if((y=this.data)==null?0:y.multipleInlinePlaybackEndpoint)p=qRr;this.isRadio&&(p=l4Q);return _.n("web_thumbnail_to_watch_transition")?Object.assign({},p,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):p};
_.J.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$15962_inlinePreviewHoverListener)==null||W3(p)};
_.J.getOwner=function(){var p,y,l;return((p=this.data)==null?void 0:(y=p.channelThumbnailSupportedRenderers)==null?void 0:y.channelThumbnailWithLinkRenderer)||_.G((l=this.data)==null?void 0:l.showProviderChannelThumbnail,Ui$)};
_.J.updateLockupSize=function(){var p;((p=this.getOwner())==null?0:p.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.J.getFeedbackEndpoint=function(p){if(_.G(p,_.dU))return p;var y,l;p=(l=(y=_.G(p,_.AO))==null?void 0:y.commands)!=null?l:[];y=_.c(p);for(l=y.next();!l.done;l=y.next())if(l=this.getFeedbackEndpoint(l.value))return l;return null};
_.J.computeNavigationEndpoint=function(p){return Q$6(p==null?void 0:p.navigationEndpoint)};
_.J.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var p=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(p)!==JSON.stringify(this.data)&&this.set("data",p)}};
_.J.onDataChanged=function(){var p=this,y=this.getOwner();if(y){this.set("data.owner",y);var l,q,t,E,e,C=((l=this.data)==null?void 0:(q=l.shortBylineText)==null?void 0:(t=q.runs)==null?void 0:(E=t[0])==null?void 0:E.text)||((e=y.name)==null?void 0:e.simpleText);this.set("data.owner.title",C)}var u,a,m,U,b,P;y=((u=this.data)==null?void 0:(a=u.thumbnailRenderer)==null?void 0:a.playlistVideoThumbnailRenderer)||((m=this.data)==null?void 0:(U=m.thumbnailRenderer)==null?void 0:U.playlistCustomThumbnailRenderer)||
((b=this.data)==null?void 0:(P=b.thumbnailRenderer)==null?void 0:P.showCustomThumbnailRenderer);var Z;((Z=this.data)==null?0:Z.thumbnail)||!y||this.set("data.thumbnail",y.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){p.updateLockupSize()});
var K;if(u=((K=this.data)==null?void 0:K.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(u);var F;((F=this.dismissActionToReplayEntity)==null?0:F.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.J.onHiddenChanged=function(){this.updateLockupSize()};
_.J.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.$w(this.hostElement,"yt-terminate-video-preview-action");else{var p;(p=this.videoTitleLink)==null||p.focus()}};
_.J.metadataColorChanged=function(){var p;if(this.metadataColor&&((p=this.videoTitle)==null?0:p.style))this.videoTitle.style.color=_.z5(this.metadataColor);else{var y,l;!this.metadataColor&&((y=this.videoTitle)==null?0:(l=y.style)==null?0:l.color)&&(this.videoTitle.style.color="")}};
_.J.onDetailsClick=function(p){var y=this.computedNavigationEndpoint;y&&(_.WN(_.Jx(p),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.Ub(this.hostElement,"yt-navigate",{endpoint:y}))};
_.J.cleanupThumbnailAfterPageTransition=function(p){_.Kco(document,"yt-page-type-changed",function(){p.style.viewTransitionName=""})};
_.J.onRendererTap=function(){this.prepareThumbnailForPageTransition();var p,y,l=((p=this.data)==null?void 0:p.serviceEndpoint)||this.getFeedbackEndpoint((y=this.data)==null?void 0:y.navigationEndpoint);l&&_.G(l,_.dU)&&this.ytComponentBehavior.resolveCommand(l)};
_.J.onMouseDown=function(p){var y=p.target,l=this.computedNavigationEndpoint,q;p=y.href||((q=_.G(l==null?void 0:l.commandMetadata,_.ul))==null?void 0:q.url);q=y.data||l;p&&q&&x78(p,q)};
_.J.computeVideoTitleText=function(){var p;if((p=this.data)==null?0:p.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.J.computeHasPlaylistThumbnail=function(p){var y,l,q,t,E;if((((y=p.thumbnailRenderer)==null?0:y.playlistVideoThumbnailRenderer)||((l=p.thumbnailRenderer)==null?0:l.playlistCustomThumbnailRenderer)||((q=p.thumbnailRenderer)==null?0:q.showCustomThumbnailRenderer)||((t=p.thumbnailRenderer)==null?0:t.playlistVideoThumbnailRenderer)||((E=p.thumbnailRenderer)==null?0:E.playlistCustomThumbnailRenderer))&&p.thumbnailOverlays)for(y=0;y<p.thumbnailOverlays.length;y++)if(l=void 0,(l=p.thumbnailOverlays[y])==
null?0:l.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Jh.Object.defineProperties(rS.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.n("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var p;return(p=this.data)==null?void 0:p.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var p;return(p=this.data)==null?void 0:p.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$15962_inlinePreviewHoverListener)==null?0:zO(p))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Qq(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.data)==null?void 0:p.videoId)||((y=this.data)==null?void 0:y.playlistId)||""}}});
rS.prototype.onMouseDown=rS.prototype.onMouseDown;rS.prototype.metadataColorChanged=rS.prototype.metadataColorChanged;rS.prototype.onIsDismissedChanged=rS.prototype.onIsDismissedChanged;rS.prototype.onHiddenChanged=rS.prototype.onHiddenChanged;rS.prototype.onDataChanged=rS.prototype.onDataChanged;rS.prototype.handleReloadDownloadsInfo=rS.prototype.handleReloadDownloadsInfo;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],rS.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],rS.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],rS.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.V(_.EW),_.x("design:type",Object)],rS.prototype,"ytdLockupBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],rS.prototype,"ytdReduxBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],rS.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",String)],rS.prototype,"entitySelectorType",void 0);_.H([_.Q(),_.x("design:type",Boolean)],rS.prototype,"noEndpoints",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],rS.prototype,"isRadio",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.BV}),_.x("design:type",Boolean)],rS.prototype,"miniMode",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],rS.prototype,"fullHeight",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],rS.prototype,"showDarkVideoMetadata",void 0);_.H([_.Q(),_.x("design:type",Boolean)],rS.prototype,"showLightVideoMetadata",void 0);_.H([_.Q(),_.x("design:type",Number)],rS.prototype,"metadataColor",void 0);_.H([_.Q(),_.x("design:type",Object)],rS.prototype,"showChannelAvatar",void 0);_.H([_.Q(),_.x("design:type",Boolean)],rS.prototype,"hidden",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],rS.prototype,"showYtInteraction",void 0);
_.H([_.Q(),_.x("design:type",String)],rS.prototype,"dismissedContentId",void 0);_.H([_.Q({selectorArgs:["dismissedContentId"],selector:i$L}),_.x("design:type",Object)],rS.prototype,"dismissActionToReplayEntity",void 0);
_.H([_.Q({selectorArgs:["entitySelectorType","mediaId"],selector:function(p,y,l){if(_.n("kevlar_modern_downloads_page")&&l&&y&&y!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(y){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var q=S_t(p,l);if(q){y=_.Ot(p,l);var t=zU(p,l),E=X4t(p,l);p=Yy(p,l);var e=P28(q,y,t,E);t=e.shortViewCountText;var C=e.publishedTimeText;e=e.badges;var u=p>0;E=nau(q,y,E,p);q=_.rN(y)||y==="TRANSFER_STATE_FAILED"||y==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!ia(q.policyEntity)?
void 0:V1j(l,p,q.videoEntity.lengthSeconds);y==="TRANSFER_STATE_PAUSED_BY_USER"&&l&&!_.n("dl_resume_click_killswitch")&&(q={offlineVideoEndpoint:{videoId:l,action:"ACTION_RESUME"}});l={shortViewCountText:t,publishedTimeText:C,badges:e,isWatched:u,navigationEndpoint:q,thumbnailOverlays:E}}else l=void 0;return l;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(y=Fdt(p,l))if(q=_.or(p,l),E=_.Ld_(p,l),q!=="TRANSFER_STATE_UNKNOWN"){l=G7j(y,q,E,l,_.dN(p));break a}l=void 0}return l;default:_.vs(new _.SM("Error: entitySelectorType defined but not matched in selector.",
p,y))}}}),
_.x("design:type",Object)],rS.prototype,"entityDrivenState",void 0);_.H([_.Q({computed:"computeVideoTitleText(data)"}),_.x("design:type",Object)],rS.prototype,"videoTitleText",void 0);_.H([_.Q({computed:"computeHasPlaylistThumbnail(data)"}),_.x("design:type",Object)],rS.prototype,"hasPlaylistThumbnail",void 0);_.H([_.Q({computed:"computeNavigationEndpoint(data)"}),_.x("design:type",Object)],rS.prototype,"computedNavigationEndpoint",void 0);
_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],rS.prototype,"typographyBump",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("typographyBump"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rS.prototype,"typographyBumpV2",null);_.H([_.rd("#video-title"),_.x("design:type",HTMLElement)],rS.prototype,"videoTitle",void 0);_.H([_.rd("#video-title-link"),_.x("design:type",HTMLElement)],rS.prototype,"videoTitleLink",void 0);
_.H([_.rd("#thumbnail"),_.x("design:type",HTMLElement)],rS.prototype,"thumbnail",void 0);_.H([_.rd("#dismissible"),_.x("design:type",HTMLElement)],rS.prototype,"JSC$15962_dismissibleMedia",void 0);_.H([_.g("data.menu"),_.x("design:type",Object),_.x("design:paramtypes",[])],rS.prototype,"lazyLoadMenu",null);_.H([_.g("data.menu"),_.x("design:type",Object),_.x("design:paramtypes",[])],rS.prototype,"immediateLoadMenu",null);
_.H([_.k8("entityDrivenState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rS.prototype,"handleReloadDownloadsInfo",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rS.prototype,"onDataChanged",null);_.H([_.k8("hidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rS.prototype,"onHiddenChanged",null);
_.H([_.gd("isDismissed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rS.prototype,"onIsDismissedChanged",null);_.H([_.gd("metadataColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rS.prototype,"metadataColorChanged",null);_.H([_.VU("mousedown"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],rS.prototype,"onMouseDown",null);
_.H([_.g("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rS.prototype,"isHovered",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rS.prototype,"useAvatar",null);_.H([_.g("data","entitySelectorType"),_.x("design:type",String),_.x("design:paramtypes",[])],rS.prototype,"mediaId",null);_.H([_.k({is:"ytd-rich-grid-media",disableElementRegistration:!0})],rS);
var u4M=_.Al()(rS,"ytd-rich-grid-media",function(){if(eXU!==void 0)return eXU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return eXU=p},{mode:_.ZS("kevlar_poly_si_batch_j072")?1:2});var RXr;var S9=function(){var p=_.w.apply(this,arguments)||this;p.removeMaxWidth=!0;p.insetMetadata=!1;return p};
_.A(S9,_.w);_.J=S9.prototype;_.J.configureRendererStamper=function(){return{innerMenu:w7,outerMenu:Object.assign({},w7,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.onDataChanged=function(){var p,y=((p=this.data)==null?void 0:p.trackingParams)||"";y&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(y));var l;((l=this.dismissActionToReplayEntity)==null?0:l.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$15967_inlinePreviewHoverListener=qG({mediaRenderer:this,lockupElement:this.JSC$15967_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:sS$})};
_.J.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$15967_inlinePreviewHoverListener)==null||W3(p)};
_.J.onRendererTap=function(){var p,y,l=(p=this.data)==null?void 0:(y=p.serviceEndpoints)==null?void 0:y[0];_.G(l,_.dU)&&this.componentBehavior.resolveCommand(l)};
_.J.onDetailsClick=function(p){var y,l=(y=this.data)==null?void 0:y.navigationEndpoint;l&&(_.WN(_.Jx(p),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(l))};
_.J.onShow=function(){var p=this.data;p.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(p.onFirstVisibleCommand),delete p.onFirstVisibleCommand)};
_.Jh.Object.defineProperties(S9.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var p;return this.insetMetadata?void 0:(p=this.data)==null?void 0:p.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var p;return this.insetMetadata?(p=this.data)==null?void 0:p.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var p=this.data;if(p!=null&&p.badge&&(p=_.G(p.badge,Q5r))){var y,l,q;return[{metadataBadgeRenderer:{label:((y=p.label)==null?void 0:(l=y.runs)==null?void 0:l[0].text)||((q=p.label)==null?void 0:q.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var p=this.data;return Object.assign({},p.headline,{accessibility:p.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return this.isSlimShort?(p=this.computedTitle)==null?void 0:(y=p.accessibility)==null?void 0:(l=y.accessibilityData)==null?void 0:l.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.n("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$15967_inlinePreviewHoverListener)==null?0:zO(p))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
S9.prototype.onDataChanged=S9.prototype.onDataChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],S9.prototype,"componentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],S9.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.EW),_.x("design:type",Object)],S9.prototype,"ytdLockupBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],S9.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.IP),_.x("design:type",Object)],S9.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],S9.prototype,"ytdReduxBehavior",void 0);_.H([_.rd("ytd-thumbnail"),_.x("design:type",HTMLElement)],S9.prototype,"thumbnail",void 0);_.H([_.rd("#dismissible"),_.x("design:type",HTMLElement)],S9.prototype,"JSC$15967_dismissibleMedia",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],S9.prototype,"removeMaxWidth",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],S9.prototype,"insetMetadata",void 0);_.H([_.Q(),_.x("design:type",String)],S9.prototype,"dismissedContentId",void 0);_.H([_.Q({selectorArgs:["dismissedContentId"],selector:i$L}),_.x("design:type",Object)],S9.prototype,"dismissActionToReplayEntity",void 0);_.H([_.g("insetMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],S9.prototype,"thumbnailObjectFit",null);
_.H([_.g("data","insetMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],S9.prototype,"innerMenu",null);_.H([_.g("data","insetMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],S9.prototype,"outerMenu",null);_.H([_.Q(),_.x("design:type",Object)],S9.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.BV}),_.x("design:type",Boolean)],S9.prototype,"miniMode",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],S9.prototype,"onDataChanged",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],S9.prototype,"shortsBadges",null);_.H([_.g("data"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],S9.prototype,"isShort",null);
_.H([_.g("data"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],S9.prototype,"isSlimShort",null);_.H([_.g("data","isShort"),_.x("design:type",Object),_.x("design:paramtypes",[])],S9.prototype,"computedTitle",null);_.H([_.g("isSlimShort","computedTitle"),_.x("design:type",Object),_.x("design:paramtypes",[])],S9.prototype,"computedAccessibilityLabel",null);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],S9.prototype,"shouldForce2By3",null);_.H([_.g("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],S9.prototype,"isHovered",null);_.H([_.k({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],S9);
_.D(S9,"ytd-rich-grid-slim-media",function(){if(RXr!==void 0)return RXr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-slim-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-click="onRendererTap" class="style-scope ytd-rich-grid-slim-media">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" no-rounded-corners="[[isSlimShort]]" object-fit="[[thumbnailObjectFit]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-slim-media">\n  </ytd-thumbnail>\n  <div id="details" on-click="onDetailsClick" role="heading" aria-label$="[[computedAccessibilityLabel]]" class="style-scope ytd-rich-grid-slim-media">\n    <h3 class="style-scope ytd-rich-grid-slim-media">\n      <a class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-slim-media" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(computedTitle)]]" aria-label$="[[computedTitle.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">\n        <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-rich-grid-slim-media">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" class="style-scope ytd-rich-grid-slim-media">[[getSimpleString(computedTitle)]]</span>\n      </a>\n    </h3>\n    <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-rich-grid-slim-media"> [[getSimpleString(data.metadata)]] </span>\n    <ytd-video-meta-block class="grid style-scope ytd-rich-grid-slim-media" data="[[data]]" is-slim-short="[[isSlimShort]]" rich-meta="">\n    </ytd-video-meta-block>\n    <div id="menu" class="style-scope ytd-rich-grid-slim-media"></div>\n  </div>\n  <div id="menu-outer" class="style-scope ytd-rich-grid-slim-media"></div>\n  \n  <template is="dom-if" if="[[!isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[data.badges]]" hidden="[[!data.badges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n  <template is="dom-if" if="[[isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[shortsBadges]]" hidden="[[!shortsBadges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-grid-slim-media">\n  <div id="dismissed-content" class="style-scope ytd-rich-grid-slim-media"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-slim-media"></yt-interaction>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return RXr=p},{mode:_.ZS("kevlar_poly_si_batch_j063")?1:2});var Woi;var aMB;var FO=function(){var p=_.w.apply(this,arguments)||this;p.darkerDarkTheme=_.n("web_darker_dark_theme");return p};
_.A(FO,_.w);FO.prototype.computeIcon=function(p){return p&&p.iconType?"yt-sys-icons:"+p.iconType.toLowerCase():""};
FO.prototype.onMouseEnter=function(){this.isHovered=!0};
FO.prototype.onMouseLeave=function(){this.isHovered=!1};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],FO.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],FO.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],FO.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],FO.prototype,"data",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],FO.prototype,"isHovered",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],FO.prototype,"darkerDarkTheme",void 0);_.H([_.k({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],FO);
_.D(FO,"ytd-expand-on-hover-card-renderer",function(){if(aMB!==void 0)return aMB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expand-on-hover-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="card" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline" on-mouseenter="onMouseEnter"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string></div></div><div id="overlay" hidden="[[!isHovered]]" on-mouseleave="onMouseLeave" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string><yt-formatted-string class="details style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.details]]" text="[[data.details]]"></yt-formatted-string></div></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return aMB=p},{mode:1});var mqx,UqZ=function(){if(mqx!==void 0)return mqx;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="channel-user-state" hidden="[[!data.channelUserStateDescription]]" text="[[data.channelUserStateDescription]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><div id="content-section" class="style-scope ytd-channel-renderer"><div id="avatar-section" class="style-scope ytd-channel-renderer"><a class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="avatar" class="style-scope ytd-channel-renderer"><yt-img-shadow height="[[computeIconSize(compactStyle)]]" thumbnail="[[data.thumbnail]]" width="[[computeIconSize(compactStyle)]]" class="style-scope ytd-channel-renderer"></yt-img-shadow></div></a></div><div id="info-section" class="style-scope ytd-channel-renderer"><a id="main-link" class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="info" class="style-scope ytd-channel-renderer"><ytd-channel-name id="channel-title" badges="[[data.ownerBadges]]" channel-name="[[getSimpleString(data.title)]]" compact-style="[[compactStyle]]" wrap-text="" class="style-scope ytd-channel-renderer"></ytd-channel-name><div id="metadata" class="style-scope ytd-channel-renderer"><yt-formatted-string id="subscribers" respect-lang-dir="" text="[[data.subscriberCountText]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><span id="dot" hidden="[[computeHideDot(data)]]" class="style-scope ytd-channel-renderer">\u2022</span><span id="video-count" class="style-scope ytd-channel-renderer">[[getSimpleString(data.videoCountText)]]</span></div><yt-formatted-string id="description" hidden="[[compactStyle]]" text="[[data.descriptionSnippet]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-channel-renderer"></ytd-badge-supported-renderer></div><div id="navigation-icon" hidden="[[!data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"><yt-icon disable-upgrade$="[[!data.navigationIcon.iconType]]" icon="[[data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"></yt-icon></div></a><div id="buttons" class="style-scope ytd-channel-renderer"><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-channel-renderer"></div><div id="subscribe-button" hidden="[[!data.subscribeButton]]" class="style-scope ytd-channel-renderer"></div></div><div id="channel-memberships-button" hidden="[[!data.channelMembershipsButton]]" class="style-scope ytd-channel-renderer"></div></div></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return mqx=p};_.ox("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Ls=function(){var p=_.w.apply(this,arguments)||this;p.compactStyle=!1;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.A(Ls,_.w);_.J=Ls.prototype;_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.channelMembershipsButton":{id:"channel-memberships-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.computeHideDot=function(p){return!(p&&p.subscriberCountText&&p.videoCountText)||this.compactStyle};
_.J.hasDualButtons=function(p){return p&&p.purchaseButton&&p.subscribeButton};
_.J.backgroundColorChanged=function(){if(this.data!==void 0){var p=this.data.backgroundColor;this.isDarkTheme&&(p=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=p!=null?_.z5(p):"transparent"}};
_.J.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.J.onTap=function(p){var y,l,q=((y=this.data)==null?void 0:y.navigationEndpoint)||((l=this.data)==null?void 0:l.serviceEndpoint);_.G(q,_.Uw)&&(q&&_.WC().resolve(_.aK).resolveCommand(q,{form:{element:this.hostElement}}),p.preventDefault())};
_.J.computeChannelEndpoint=function(p){return _.G(p,_.Uw)?null:p};
_.J.computeHrefEndpoint=function(p){return _.G(p,_.Uw)?null:this.componentBehavior.computeHref_(p)};
_.J.computeChannelRendererStyle=function(p){return p};
_.J.computeIconSize=function(p){return p?108:136};
_.Jh.Object.defineProperties(Ls,{template:{configurable:!0,enumerable:!0,get:function(){return UqZ()}}});
Ls.prototype.backgroundColorChanged=Ls.prototype.backgroundColorChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Ls.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.RP),_.x("design:type",Object)],Ls.prototype,"ytdOpenPopupBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Ls.prototype,"componentBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],Ls.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Ls.prototype,"isDarkTheme",void 0);_.H([_.Q({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.x("design:type",String)],Ls.prototype,"channelRendererStyle",void 0);_.H([_.Q({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Ls.prototype,"dualButtons",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.n("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],Ls.prototype,"useBiggerThumbs",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.$h("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],Ls.prototype,"biggerThumbStyle",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Ls.prototype,"compactStyle",void 0);_.H([_.gd("data","isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ls.prototype,"backgroundColorChanged",null);_.H([_.k({is:"ytd-channel-renderer",disableElementRegistration:!0})],Ls);_.D(Ls,"ytd-channel-renderer",function(){return UqZ()},{mode:1});var $qB;var j_B;_.ox("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var k4=function(){var p=_.w.apply(this,arguments)||this;p.displayItemCount=2;p.collections=_.n("web_modern_collections_v2");p.hasPlaylistThumbnail=!1;p.stackThumbnailSize="large";return p};
_.A(k4,_.w);_.J=k4.prototype;_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.J.computeFirstVideos=function(p,y){return p&&y?p.slice(0,y):[]};
_.J.computeThumbnailWidth=function(p,y){return p?y==="BIG"?500:y==="MASSIVE"?600:y==="MEDIUM"?450:420:360};
_.J.computeThumbnailHeight=function(p,y){return p?y==="BIG"?280:y==="MASSIVE"?337:234:202};
_.J.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$15980_inlinePreviewHoverListener)==null||W3(p)};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15980_inlinePreviewHoverListener=qG({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:qRr,thumbnailElement:this.thumbnail})};
_.J.computeHasPlaylistThumbnail=function(p){var y,l;if((((y=p.thumbnailRenderer)==null?0:y.playlistVideoThumbnailRenderer)||((l=p.thumbnailRenderer)==null?0:l.playlistCustomThumbnailRenderer))&&p.thumbnailOverlays)for(y=0;y<p.thumbnailOverlays.length;y++)if(l=void 0,(l=p.thumbnailOverlays[y])==null?0:l.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Jh.Object.defineProperties(k4.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$15980_inlinePreviewHoverListener)==null?0:zO(p))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
k4.prototype.dataChanged=k4.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.EW),_.x("design:type",Object)],k4.prototype,"ytdLockupBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],k4.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],k4.prototype,"displayItemCount",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.n("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],k4.prototype,"useBiggerThumbs",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.$h("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],k4.prototype,"biggerThumbsStyle",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],k4.prototype,"collections",void 0);_.H([_.Q({computed:"computeHasPlaylistThumbnail(data)"}),_.x("design:type",Object)],k4.prototype,"hasPlaylistThumbnail",void 0);_.H([_.Q(),_.x("design:type",String)],k4.prototype,"stackThumbnailSize",void 0);_.H([_.rd("ytd-thumbnail"),_.x("design:type",HTMLElement)],k4.prototype,"thumbnail",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],k4.prototype,"dataChanged",null);_.H([_.g("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],k4.prototype,"isHovered",null);_.H([_.k({is:"ytd-radio-renderer",disableElementRegistration:!0})],k4);
_.D(k4,"ytd-radio-renderer",function(){if(j_B!==void 0)return j_B;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-thumbnail>\n<ytd-playlist-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="true" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-radio-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-radio-renderer" href="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-radio-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-radio-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-radio-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block id="meta" data="[[data]]" radio-meta="" class="style-scope ytd-radio-renderer"></ytd-video-meta-block>\n  </a>\n  <ul id="list" class="style-scope ytd-radio-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-radio-renderer">\n      <li class="style-scope ytd-radio-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-radio-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-radio-renderer"></yt-interaction>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return j_B=p},{mode:_.ZS("kevlar_poly_si_batch_j058")?1:2});var bNB;_.ox("itemSectionRenderer","showRenderer","ytd-show-renderer");var Nu=function(){return _.w.apply(this,arguments)||this};
_.A(Nu,_.w);Nu.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Nu.prototype.computeThumbnailWidth=function(p){return p?360:246};
Nu.prototype.computeUseProminentThumbs=function(p){return p};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Nu.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Nu.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Nu.prototype,"data",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Nu.prototype,"isSearch",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.x("design:type",Boolean)],Nu.prototype,"useProminentThumbs",void 0);_.H([_.k({is:"ytd-show-renderer",disableElementRegistration:!0})],Nu);
_.D(Nu,"ytd-show-renderer",function(){if(bNB!==void 0)return bNB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="[[computeThumbnailWidth(useProminentThumbs)]]" class="style-scope ytd-show-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-show-renderer">\n<a id="logo-container" class="yt-simple-endpoint style-scope ytd-show-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-show-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-show-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block data="[[data]]" class="style-scope ytd-show-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer id="bottom-standalone-badge" bottom-standalone-badge="[[data.bottomStandaloneBadge]]" hidden="[[!data.bottomStandaloneBadge]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<div id="menu" class="style-scope ytd-show-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return bNB=p},{mode:1});_.ox("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var DD=function(){var p=_.w.apply(this,arguments)||this;p.isRichGrid=!1;return p};
_.A(DD,_.w);DD.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"}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],DD.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],DD.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],DD.prototype,"isRichGrid",void 0);_.H([_.k({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],DD);
_.D(DD,"ytd-feed-entry-renderer",function(){if($qB!==void 0)return $qB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[isRichGrid]]" thumbnail="[[data.ownerThumbnail]]" width="48" class="style-scope ytd-feed-entry-renderer"></yt-img-shadow>\n<div class="info style-scope ytd-feed-entry-renderer">\n  <div id="title-container" hidden="[[isRichGrid]]" class="style-scope ytd-feed-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="post" text="[[data.postText]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  <div id="contents" class="style-scope ytd-feed-entry-renderer"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return $qB=p},{mode:1});var nM$;var Hp=function(){return _.w.apply(this,arguments)||this};
_.A(Hp,_.w);Hp.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.H([_.V(_.zL),_.x("design:type",Object)],Hp.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Hp.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Hp.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.fW,value:3}),_.x("design:type",Number)],Hp.prototype,"itemsPerRow",void 0);
_.H([_.k({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Hp);
_.D(Hp,"ytd-link-card-renderer",function(){if(nM$!==void 0)return nM$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-link-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-link-card-renderer">\n  <a id="card-link" class="yt-simple-endpoint style-scope ytd-link-card-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n    <yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-link-card-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-link-card-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon id="chevron" hidden="[[!showChevronIcon(itemsPerRow)]]" icon="chevron_right" class="style-scope ytd-link-card-renderer">\n    </yt-icon>\n  </a>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return nM$=p},{mode:1});var GVO;var TF=function(){return _.w.apply(this,arguments)||this};
_.A(TF,_.w);_.J=TF.prototype;_.J.configureRendererStamper=function(){return{"data.menu":w7,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.onRendererTap=function(p){if(!this.ytdDismissibleItemBehavior.isDismissed){var y,l=(y=this.data)==null?void 0:y.navigationEndpoint;l&&!_.WN(_.Jx(p),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(l)?_.WN(_.Jx(p),this.hostElement,["A"])||_.Ub(this.hostElement,"yt-navigate",{endpoint:l}):this.ytComponentBehavior.resolveCommand(l,{}))}};
_.J.maybeComputeHref=function(p){return this.ytComponentBehavior.computeHref_(p,!0)};
_.J.getNavigationCommand=function(p){return this.isNavigationCommand(p)?p:null};
_.J.isNavigationCommand=function(p){return p?_.G(p,_.wC)||_.G(p,_.Eb)||_.G(p,_.Id)?!0:!1:!1};
TF.prototype.onRendererTap=TF.prototype.onRendererTap;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],TF.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],TF.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],TF.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],TF.prototype,"ytComponentBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],TF.prototype,"data",void 0);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],TF.prototype,"onRendererTap",null);_.H([_.k({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],TF);
_.D(TF,"ytd-lumiere-promo-item-image-renderer",function(){if(GVO!==void 0)return GVO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-promo-item-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="thumbnail-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-img-shadow></a><div id="metadata" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="item-details" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="title" class="style-scope ytd-lumiere-promo-item-image-renderer"><h3 class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="title-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string><yt-icon class="hover-icon style-scope ytd-lumiere-promo-item-image-renderer" hidden="[[!data.showLauncherIcon]]" icon="open_in_new"></yt-icon></a></h3></div><yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string></div><div id="menu" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div></div><div id="dismissed" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="dismissed-content" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return GVO=p},{mode:1});var PrZ;var x4=function(){return _.w.apply(this,arguments)||this};
_.A(x4,_.w);x4.prototype.computeLandscapeThumbnail=function(){var p;return((p=this.data)==null?void 0:p.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],x4.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],x4.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.BV}),_.x("design:type",Boolean)],x4.prototype,"miniMode",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.fW}),_.x("design:type",Number)],x4.prototype,"itemsPerRow",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.x("design:type",Boolean)],x4.prototype,"landscapeThumbnail",void 0);_.H([_.k({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],x4);
_.D(x4,"ytd-lumiere-shelf-details-renderer",function(){if(PrZ!==void 0)return PrZ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-shelf-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-lumiere-shelf-details-renderer">\n  <div id="lumiere-shelf-details" class="style-scope ytd-lumiere-shelf-details-renderer">\n    <div id="title" class="style-scope ytd-lumiere-shelf-details-renderer">\n       <yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-shelf-details-renderer"></yt-formatted-string>\n    </div>\n    <div id="subtitle" class="style-scope ytd-lumiere-shelf-details-renderer">\n      <yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-badge-supported-renderer id="badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return PrZ=p},{mode:_.ZS("kevlar_poly_si_batch_j076")?1:2});var AdB;var Bp=function(){return _.w.apply(this,arguments)||this};
_.A(Bp,_.w);Bp.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Bp.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Bp.prototype,"data",void 0);_.H([_.k({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],Bp);
_.D(Bp,"ytd-primetime-promo-details-renderer",function(){if(AdB!==void 0)return AdB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" hidden="[[!data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><div id="centered-container" class="style-scope ytd-primetime-promo-details-renderer"><yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><div id="action-button" class="style-scope ytd-primetime-promo-details-renderer"></div></div></div><div id="header" hidden="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return AdB=p},{mode:1});var ZNB;var vp=function(){return _.w.apply(this,arguments)||this};
_.A(vp,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],vp.prototype,"data",void 0);_.H([_.k({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],vp);
_.D(vp,"ytd-panel-show-style-metadata-renderer",function(){if(ZNB!==void 0)return ZNB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-panel-show-style-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-panel-show-style-metadata-renderer"></yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return ZNB=p},{mode:1});var MAr;var XO=function(){return _.w.apply(this,arguments)||this};
_.A(XO,_.w);_.J=XO.prototype;_.J.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.J.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.J.computeThumbnail=function(p){if(p)return p.smallFormFactorBackgroundThumbnail||p.largeFormFactorBackgroundThumbnail};
_.J.maybeComputeHref=function(p){return this.ytComponentBehavior.computeHref_(p,!0)};
_.J.isNavigationCommand=function(p){return p?_.G(p,_.wC)||_.G(p,_.Eb)||_.G(p,_.Id)?!0:!1:!1};
_.J.getNavigationCommand=function(p){return this.isNavigationCommand(p)?p:null};
XO.prototype.onPanelTap=XO.prototype.onPanelTap;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],XO.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],XO.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],XO.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],XO.prototype,"roundedContainer",void 0);_.H([_.Q({reflectToAttribute:!0,value:_.n("web_modern_buttons")}),_.x("design:type",Boolean)],XO.prototype,"modernButtons",void 0);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XO.prototype,"onPanelTap",null);_.H([_.k({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],XO);
_.D(XO,"ytd-primetime-promo-panel-renderer",function(){if(MAr!==void 0)return MAr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-primetime-promo-panel-renderer" href$="[[maybeComputeHref(data.command)]]" data="[[getNavigationCommand(data.command)]]" rel="[[computeNofollow_(data.command)]]"><yt-img-shadow thumbnail="[[computeThumbnail(data)]]" width="420" class="style-scope ytd-primetime-promo-panel-renderer"></yt-img-shadow><div id="action-button" class="style-scope ytd-primetime-promo-panel-renderer"><yt-formatted-string text="[[data.buttonText]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-formatted-string><yt-icon icon="[[data.contentIcon.iconType]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-icon></div></a><div id="panel-metadata" class="style-scope ytd-primetime-promo-panel-renderer"></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return MAr=p},{mode:1});_.bp(_.aF(function(p){p=_.RF(p,{data:{},useFullWidth:!1});var y=p.data,l=p.useFullWidth;p={};return _.R("teaser-card-view-model",{class:_.ip("ytTeaserCardViewModelHost",(p.ytTeaserCardViewModelUseFullWidth=function(){return l()},p))},_.R(_.W,{cond:function(){return y().onTap},
then:function(q){return _.R(_.sw,{className:"ytTeaserCardViewModelLink",command:q},_.R("div",{class:"ytTeaserCardViewModelImageContainer"},_.R(_.W,{cond:function(){return y().image},
then:function(t){return _.R(_.W$,{data:t,className:"ytTeaserCardViewModelImage",alt:""})}})),_.R("p",{class:"ytTeaserCardViewModelCaption"},function(){return y().caption}))}}))},"Ob"),"teaser-card-view-model",{props:{data:_.Co,
useFullWidth:_.Co}});var VAP=new _.WE("RICH_GRID_VIDEO_RENDERER_TOKEN");_.bp(_.aF(function(p){var y=p.data;var l=p.showYtInteractionInContent;var q=function(){return!!y().selectableFeedback};
p=_.c(_.nr(!1,void 0,"nblDw"));var t=p.next().value,E=p.next().value;_.xZ(function(){var b=_.G(y().primaryButton,_.BN);(b==null?0:b.isToggled)&&E(b.isToggled)});
p=_.Ff(function(b){if(!q())return!1;if(t()){var P;var Z=(P=y().selectableFeedback)==null?void 0:P.onDeselect}else{var K;Z=(K=y().selectableFeedback)==null?void 0:K.onSelect}Z&&_.tb(Z,{form:{element:b.target}});E(!t());if(b=_.G(y().primaryButton,_.BN))b.isToggled=t();return!1});
var e=function(){if(!q()){var b,P=(b=y().loggingDirectives)==null?void 0:b.trackingParams;P&&_.Kw(_.WC().resolve(_.B_),P)}},C=_.FFa(),u=function(){var b;
return q()?(b=y().selectableFeedback)==null?void 0:b.a11yLabel:void 0},a=function(){return q()?{toggled:t()}:{}},m=_.WC().resolve(_.RK(VAP)),U={};
return _.R("yt-feedback-item-renderer",{class:_.ip("ytFeedbackItemRendererHost",(U.ytFeedbackItemRendererSelectableFeedback=q,U)),"on:click":p,"on:keydown":C,title:u,"aria-label":u,"aria-pressed":function(){return q()?t():void 0},
tabindex:function(){return q()?0:void 0},
role:function(){return q()?"button":void 0}},_.R("div",{class:"ytFeedbackItemRendererContentContainer"},_.R(_.di,{data:function(){return y().content}},{videoRenderer:function(b){return _.R(m,{data:b.data,
showYtInteraction:l})},
lockupViewModel:function(b){return _.R(_.ZX,{data:b.data,containerType:2})}})),_.R("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.R(_.di,{data:function(){return y().primaryButton}},{toggleButtonViewModel:function(b){return _.R(_.fo,{data:b.data,
buttonShapeOverrides:a,disableExplicitClickLogging:!0,onToggle:e})}})))},"Pb"),"yt-feedback-item-renderer",{props:{data:_.Co,
showYtInteractionInContent:_.Co}});var dS=function(){var p=_.w.apply(this,arguments)||this;p.isShortsGrid=!1;p.isCompactGrid=!1;p.isShortsPanelGrid=!1;p.renderedFromRichGrid=!1;p.isInFirstColumn=!1;p.noGutterMargins=!1;p.isInlineGroupItem=!1;p.insetMetadata=!1;p.noBottomMarginInAds=_.n("web_no_bottom_margin_for_home_ad_buttons");p.force16By9ThumbnailAspectRatio=!1;p.useCompactList=!1;p.containerType=2;p.thumbnailTargetWidth=9999;p.isResponsiveGrid=!1;p.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};p.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};p.hoverListener=p.hover.bind(p);p.leaveListener=p.leave.bind(p);p.highlighted=!1;p.JSC$16015_unsubscribeFromInlinePreviewIsActive=function(){};
return p};
_.A(dS,_.w);_.J=dS.prototype;_.J.computeContainerType=function(){return this.useCompactList?3:2};
_.J.computeThumbnailTargetWidth=function(){var p;return(p=this.itemWidth)!=null?p:9999};
_.J.updateIsInFirstColumn=function(){var p;this.isInFirstColumn=((p=this.data)==null?void 0:p.colIndex)===0};
_.J.observerContainerType=function(){if(this.lockup){var p=this.lockup;p.containerType=this.containerType;p.sizing=this.sizing;p.typographyBump=this.typographyBump;p.itemWidth=this.itemWidth}this.richGridMedia&&_.n("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.n("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.J.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.J.leave=function(p){p=p.relatedTarget;var y=document.querySelector("ytd-video-preview");p&&y&&_.bt(y).contains(p)||this.removeAndCleanupHighlight()};
_.J.hover=function(){var p;if(!this.highlighted&&(!_.n("web_enable_rich_item_on_focus_effect")||(p=this.data)!=null&&p.onFocusEffect)){var y,l;((y=this.data)==null?void 0:(l=y.onFocusEffect)==null?void 0:l.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(p=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:p,boxShadow:"0 0 0 10px "+p}));var q,t;((q=this.data)==null?void 0:(t=q.onFocusEffect)==null?void 0:
t.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.J.removeAndCleanupHighlight=function(){this.hostElement.classList.remove("ytd-rich-item-renderer-highlight");this.hostElement.classList.remove("ytd-rich-item-renderer-highlight-border");Object.assign(this.hostElement.style,{backgroundColor:"",boxShadow:""});this.highlighted=!1};
_.J.registerHoverHighlightListeners=function(){var p=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16015_unsubscribeFromInlinePreviewIsActive=_.Lw(_.ei(),_.Vyj,function(y){p.highlighted&&!y&&p.removeAndCleanupHighlight()})};
_.J.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16015_unsubscribeFromInlinePreviewIsActive()};
_.J.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.J.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.J.getBackgroundColor=function(){var p,y,l=(p=this.data)==null?void 0:(y=p.onFocusEffect)==null?void 0:y.onFocusColor;if(l){if(document.documentElement.hasAttribute("dark")&&(l==null?0:l.darkTheme))return _.z5(l==null?void 0:l.darkTheme);if(l==null?0:l.lightTheme)return _.z5(l==null?void 0:l.lightTheme)}};
_.J.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var p=_.B2(),y,l,q;p&&((y=this.data)==null?0:y.trackingParams)&&((l=this.data)==null?void 0:l.colIndex)!=null&&((q=this.data)==null?void 0:q.rowIndex)!=null&&_.Je(p,_.Tp(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.J.isSlimMediaRenderer=function(p){return!!_.G(p==null?void 0:p.content,_.E0i)||!!_.G(p==null?void 0:p.content,t1B)||!!_.G(p==null?void 0:p.content,_.pw)||!!_.G(p==null?void 0:p.content,MVi)};
_.J.isPostRenderer=function(){var p,y;return!!_.G((p=this.data)==null?void 0:p.content,y7Z)||!!_.G((y=this.data)==null?void 0:y.content,lOr)};
_.J.computeIsGameCardShelf=function(){var p;return!!_.G((p=this.data)==null?void 0:p.content,CKB)};
_.J.computeIsMiniGameCardShelf=function(){var p,y;return!!_.G((p=this.data)==null?void 0:p.content,Zgr)||!!_.G((y=this.data)==null?void 0:y.content,MxP)};
_.J.computeIsTeaserCard=function(){var p;return!!_.G((p=this.data)==null?void 0:p.content,MxP)};
_.J.computeIsSelectableFeedbackItem=function(){var p,y;return!((y=_.G((p=this.data)==null?void 0:p.content,_.gfU))==null||!y.selectableFeedback)};
_.J.computeContainsLumierePosters=function(){var p,y;return((y=_.G((p=this.data)==null?void 0:p.content,unB))==null?void 0:y.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.J.computeIsExpandOnHoverCardShelf=function(){var p;return!!_.G((p=this.data)==null?void 0:p.content,C0N)};
_.J.computeIsLinkCardShelf=function(){var p;return!!_.G((p=this.data)==null?void 0:p.content,F$N)};
_.J.computeIsReelItemStyleAvatarCircle=function(p){var y;return((y=_.G(p==null?void 0:p.content,_.pw))==null?void 0:y.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.J.computeIsLinkCardFullWidth=function(p,y){var l;return((l=_.G(p==null?void 0:p.content,F$N))==null?void 0:l.useFullWidth)||y<=2};
_.Jh.Object.defineProperties(dS.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.n("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.n("web_enable_rich_item_on_focus_effect")||_.n("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
dS.prototype.richGridHoverHighlightChanged=dS.prototype.richGridHoverHighlightChanged;dS.prototype.observerContainerType=dS.prototype.observerContainerType;dS.prototype.updateIsInFirstColumn=dS.prototype.updateIsInFirstColumn;_.H([_.V(_.zL),_.x("design:type",Object)],dS.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],dS.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],dS.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],dS.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.EW),_.x("design:type",Object)],dS.prototype,"ytdLockupBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],dS.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.x("design:type",Boolean)],dS.prototype,"isPost",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.x("design:type",Boolean)],dS.prototype,"containsLumierePosters",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.x("design:type",Boolean)],dS.prototype,"isSlimMedia",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.x("design:type",Boolean)],dS.prototype,"isGameCardShelf",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.x("design:type",Boolean)],dS.prototype,"isMiniGameCardShelf",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.x("design:type",Boolean)],dS.prototype,"isTeaserCard",void 0);_.H([_.Q({computed:"computeIsSelectableFeedbackItem(data)"}),_.x("design:type",Boolean)],dS.prototype,"isSelectableFeedbackItem",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],dS.prototype,"isShortsGrid",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],dS.prototype,"isSlimGrid",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],dS.prototype,"isCompactGrid",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],dS.prototype,"isShortsPanelGrid",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.x("design:type",Boolean)],dS.prototype,"isExpandOnHoverCardShelf",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.x("design:type",Boolean)],dS.prototype,"isLinkCardShelf",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.fW,value:3}),_.x("design:type",Number)],dS.prototype,"itemsPerRow",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],dS.prototype,"renderedFromRichGrid",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],dS.prototype,"isInFirstColumn",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],dS.prototype,"noGutterMargins",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],dS.prototype,"isInlineGroupItem",void 0);_.H([_.Q(),_.x("design:type",Object)],dS.prototype,"insetMetadata",void 0);
_.H([_.Q(),_.x("design:type",Object)],dS.prototype,"noBottomMarginInAds",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],dS.prototype,"isShelfItem",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.x("design:type",Boolean)],dS.prototype,"isReelItemStyleAvatarCircle",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.x("design:type",Boolean)],dS.prototype,"isLinkCardFullWidth",void 0);
_.H([_.Q(),_.x("design:type",Object)],dS.prototype,"force16By9ThumbnailAspectRatio",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],dS.prototype,"useCompactList",void 0);_.H([_.Q(),_.x("design:type",String)],dS.prototype,"sizing",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],dS.prototype,"typographyBump",void 0);_.H([_.Q(),_.x("design:type",Number)],dS.prototype,"itemWidth",void 0);_.H([_.Q(),_.x("design:type",Boolean)],dS.prototype,"isHomeShelf",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],dS.prototype,"isHomeGrid",void 0);_.H([_.rd("yt-lockup-view-model"),_.x("design:type",HTMLElement)],dS.prototype,"lockup",void 0);_.H([_.rd("ytd-rich-grid-media"),_.x("design:type",HTMLElement)],dS.prototype,"richGridMedia",void 0);_.H([_.rd("ytd-ad-slot-renderer"),_.x("design:type",HTMLElement)],dS.prototype,"adSlotRenderer",void 0);_.H([_.Q({computed:"computeContainerType(useCompactList)"}),_.x("design:type",Object)],dS.prototype,"containerType",void 0);
_.H([_.Q({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.x("design:type",Object)],dS.prototype,"thumbnailTargetWidth",void 0);_.H([_.g("showYtInteractionOnRichItem"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],dS.prototype,"showYtInteractionOnRichGridMedia",null);_.H([_.g("isSelectableFeedbackItem","richGridHoverHighlight"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],dS.prototype,"showYtInteractionOnRichItem",null);
_.H([_.g("typographyBump","isHomeGrid"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],dS.prototype,"richTypographyBump",null);_.H([_.Q({reflectToAttribute:!0}),_.g("isShortsGrid","isCompactGrid"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],dS.prototype,"richGridHoverHighlight",null);_.H([_.g("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.x("design:type",Number),_.x("design:paramtypes",[])],dS.prototype,"shortsLockupViewModelAspectRatio",null);
_.H([_.g("isInlineGroupItem"),_.x("design:type",Number),_.x("design:paramtypes",[])],dS.prototype,"shortsLockupViewModelScrimStyle",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dS.prototype,"updateIsInFirstColumn",null);_.H([_.gd("containerType","sizing","typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dS.prototype,"observerContainerType",null);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],dS.prototype,"isResponsiveGrid",void 0);_.H([_.Q(),_.x("design:type",Object)],dS.prototype,"lockupExperiments",void 0);_.H([_.gd("richGridHoverHighlight"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dS.prototype,"richGridHoverHighlightChanged",null);_.H([_.k({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],dS);
_.gMN=_.Al()(dS,"ytd-rich-item-renderer",function(){if(Woi===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-item-renderer"></div>\n<yt-interaction id="interaction" class="extended rounded-large style-scope ytd-rich-item-renderer" hidden="[[!showYtInteractionOnRichItem]]"></yt-interaction>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);Woi=p}p=Woi;return p},{mode:_.ZS("kevlar_poly_si_batch_j028")?1:2});var a26={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var gW8=_.EK(_.g$("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var U8t={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},jRt={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},bem={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var Q_V;var Oi=function(){var p=_.w.apply(this,arguments)||this;p.useResponsiveGrid=!1;p.hidden=!1;p.standardShelfMargins=_.n("web_rich_grid_standard_shelf_margins");p.isShowMoreHidden=!1;p.isExpanded=!1;p.isInnerShelf=!1;p.allVideosCount=0;p.allPlaylistCount=0;p.haveSmartDownloadsCompleted=!1;p.isShowLessHidden=!0;p.restrictContentsOverflow=!1;p.firstShownIndex=0;p.horizontalOffset=0;p.atEnd=!0;p.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};p.nextClick=function(){var y;(y=p.data)!=null&&y.contents&&(p.firstShownIndex+=p.currentElementsPerRow,p.updateHorizontalOffset(),p.updateHorizontalItemVisibility())};
p.previousClick=function(){var y;(y=p.data)!=null&&y.contents&&(p.firstShownIndex-=p.currentElementsPerRow,p.updateHorizontalOffset(),p.updateHorizontalItemVisibility())};
return p};
_.A(Oi,_.w);_.J=Oi.prototype;
_.J.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.OY("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.J.attached=function(){this.requestElementsPerRow()};
_.J.refreshGridLayoutNew=function(){var p;if((p=this.data)!=null&&p.contents&&this.containerWidth){var y;((y=this.data.responsiveContainerConfiguration)==null?0:y.responsiveSize)?(p=_.wDa(this.data.responsiveContainerConfiguration,this.containerWidth),p=_.Jy(Object.assign({},p,{standardUnitMinWidth:this.standardUnitMinWidth}))):p=_.Jy({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=p.typographyBump;if(this.elementsPerRow!==
p.numItems||this.gutter!==p.gutter)this.elementsPerRow=p.numItems,this.gutter=p.gutter,this.itemWidth=p.itemWidth,_.Ax(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":p.gutter+"px"})}};
_.J.computeSizing=function(){if(!this.isLumiere){var p=_.LW6(this.data);if(p)return p;if(_.n("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.J.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.J.computeButton=function(p){var y=_.G(p,_.yv);p=Object.assign({},_.G(p,_.yv));return y?(p.text||(p.text={simpleText:p.tooltip}),p.style="STYLE_MONO_OUTLINE",p.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",p):y};
_.J.onRowIndexChange=function(){var p=_.B2(),y,l;((y=this.data)==null?0:y.trackingParams)&&((l=this.data)==null?void 0:l.rowIndex)!=null&&p&&_.Je(p,_.Tp(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.J.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var p,y=((p=this.getRichItemRenderers()[0])==null?void 0:p.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*y;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.J.requestElementsPerRow=function(){_.Ub(this.hostElement,"yt-request-elements-per-row")};
_.J.onUpdateElementsPerRowAction=function(p,y,l,q,t,E){if(this.containerWidth!==E&&(this.containerWidth=E,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&p&&y&&l&&q&&t&&(this.elementsPerRow!==p||this.postsPerRow!==y||this.slimItemsPerRow!==l||this.gameCardsPerRow!==q||this.miniGameCardsPerRow!==t)&&(this.elementsPerRow=p,this.postsPerRow=y,this.slimItemsPerRow=l,this.gameCardsPerRow=q,this.miniGameCardsPerRow=t,this.updateItemVisibility())};
_.J.getRichItemRenderers=function(){return _.jR(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.J.updateItemVisibility=function(){var p=this;if(this.data&&this.data.contents){var y=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(q,t){var E;((E=p.data)==null?0:E.isExpanded)?(q.hidden=t>y-1,q.ytRendererBehavior.markDirty()):q.hidden=t>p.currentElementsPerRow-1||t>y-1});
var l=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||l||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||l||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.J.setHeightToSingleRow=function(){var p=this.getRichItemRenderers(),y=Number.parseInt(getComputedStyle(p[0]).marginBottom,10)||0;p=p.slice(0,this.currentElementsPerRow).reduce(function(l,q){return Math.max(l,q.getBoundingClientRect().height+y)},0);
this.contents.style.height=p+"px"};
_.J.focusNextExpandedItem=function(){var p;((p=this.data)==null?0:p.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.J.focusItem=function(p,y){var l=this.getRichItemRenderers();if(l[p]&&(p=l[p].querySelector(".focus-on-expand"))){if(y){var q;(q=l[this.currentElementsPerRow])==null||q.scrollIntoView({behavior:"smooth",block:"center"})}p.focus({preventScroll:!0})}};
_.J.onDataChange=function(){var p=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var y;if((y=this.data)==null?0:y.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.th(this,function(){p.updateItemVisibility()});
var l;if((l=this.data)==null?0:l.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Ax(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),y=0;y<this.data.contents.length;y++)l=_.G(this.data.contents[y],_.f5)||{},l.colIndex=y,l.rowIndex=this.data.rowIndex};
_.J.handleRerenderDownloadsData=function(){_.n("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.J.blockInlinePreview=function(p){var y=this,l;return _.h(function(q){(l=y.inlinePreviewIsEnabled)&&y.ytdReduxBehavior.dispatch(_.mwr(!1));return q.return(new Promise(function(t){p(function(){l&&y.ytdReduxBehavior.dispatch(_.mwr(!0));t()})}))})};
_.J.expandShelf=function(){var p=this;if(this.data){var y,l=(y=_.G(this.data.showMoreButton,_.yv))==null?void 0:y.trackingParams;l&&_.Kw(_.Ll(),l);this.data.isExpanded=!0;this.blockInlinePreview(function(q){p.setHeightToSingleRow();p.updateItemVisibility();p.contents.style.height=p.contents.scrollHeight+"px";_.TR.addJob(function(){p.contents.style.height="auto";p.focusNextExpandedItem();q()},2,200)})}};
_.J.collapseShelf=function(){var p=this;return _.h(function(y){if(y.nextAddress==1){if(!p.data)return y.return();p.data.isExpanded=!1;return y.yield(p.blockInlinePreview(function(l){p.contents.style.height=p.contents.scrollHeight+"px";p.setHeightToSingleRow();_.TR.addJob(function(){p.updateItemVisibility();p.contents.style.height="auto";l()},2,200)}),2)}_.Ub(p.hostElement,"yt-rich-shelf-renderer-collapse",p.data.trackingParams);
p.focusItem(0,!1);_.rR(y)})};
_.J.updateArrowButtonStatus=function(){var p=this.getRichItemRenderers().length;if(!_.n("web_rich_shelf_renderer_use_data_contents_killswitch")){var y,l;p=((y=this.data)==null?void 0:(l=y.contents)==null?void 0:l.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=p};
_.J.onChildElementFocus=function(p){this.hasChevronButtons&&(p=p.target.closest("#contents > *"),this.contents.contains(p)&&(p.offsetLeft<this.horizontalOffset?this.previousClick():p.offsetLeft+p.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.J.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.OY("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.J.updateHorizontalOffset=function(){var p=this.getRichItemRenderers(),y=p.length;if(!_.n("web_rich_shelf_renderer_use_data_contents_killswitch")){var l,q;y=((l=this.data)==null?void 0:(q=l.contents)==null?void 0:q.length)||0}var t;p=((t=p[0])==null?void 0:t.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>y?this.firstShownIndex=y-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*p};
_.J.isSlimMediaShelfRenderer=function(){var p,y,l,q=(l=_.G((p=this.data)==null?void 0:(y=p.contents)==null?void 0:y[0],_.f5))==null?void 0:l.content;return!!(_.G(q,_.E0i)||_.G(q,t1B)||_.G(q,_.pw)||_.G(q,MVi))};
_.J.isGameCardShelf=function(){var p,y,l,q=(l=_.G((p=this.data)==null?void 0:(y=p.contents)==null?void 0:y[0],_.f5))==null?void 0:l.content;return!!_.G(q,CKB)};
_.J.isGnomeShelf=function(){var p,y,l,q=(l=_.G((p=this.data)==null?void 0:(y=p.contents)==null?void 0:y[0],_.f5))==null?void 0:l.content;return!!_.G(q,_.gfU)};
_.J.isMiniGameCardShelf=function(){var p,y,l,q=(l=_.G((p=this.data)==null?void 0:(y=p.contents)==null?void 0:y[0],_.f5))==null?void 0:l.content;return!!_.G(q,Zgr)||!!_.G(q,MxP)};
_.J.hasGameBoxArtAvatarStyle=function(){var p;return((p=this.data)==null?void 0:p.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.J.hasRoundedGameBoxArtAvatarStyle=function(){var p;return((p=this.data)==null?void 0:p.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.J.isShortsShelf=function(){var p,y,l,q=(l=_.G((p=this.data)==null?void 0:(y=p.contents)==null?void 0:y[0],_.f5))==null?void 0:l.content;return!!_.G(q,_.pw)||!!_.G(q,MVi)};
_.J.isPostShelfRenderer=function(){var p,y,l,q=(l=_.G((p=this.data)==null?void 0:(y=p.contents)==null?void 0:y[0],_.f5))==null?void 0:l.content;return!(!_.G(q,y7Z)&&!_.G(q,lOr))};
_.J.isLumiereShelf=function(){var p,y,l=_.G((p=this.data)==null?void 0:(y=p.contents)==null?void 0:y[0],_.f5);return!!_.G(l==null?void 0:l.content,unB)};
_.J.isLumiereShelfWithPosters=function(){var p,y,l=_.G((p=this.data)==null?void 0:(y=p.contents)==null?void 0:y[0],_.f5),q;return((q=_.G(l==null?void 0:l.content,unB))==null?void 0:q.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.J.isExpandOnHoverCardShelf=function(){var p,y,l,q=(l=_.G((p=this.data)==null?void 0:(y=p.contents)==null?void 0:y[0],_.f5))==null?void 0:l.content;return!!_.G(q,C0N)};
_.J.computeHasFeaturedBadge=function(){var p,y,l=_.G((p=this.data)==null?void 0:(y=p.badges)==null?void 0:y[0],_.Q2Z);return l?l.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.J.computeHasPaygatedFeaturedBadge=function(){var p,y,l=_.G((p=this.data)==null?void 0:(y=p.badges)==null?void 0:y[0],_.Q2Z);return l?(l==null?void 0:l.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.J.computeHeaderHidden=function(){var p,y,l,q,t,E;return!((p=this.data)==null?0:p.icon)&&!((y=this.data)==null?0:y.title)&&!((l=this.data)==null?0:l.subtitle)&&!((q=this.data)==null?0:q.thumbnail)&&!((t=this.data)==null?0:t.badges)&&!((E=this.data)==null?0:E.menu)};
_.J.showCtaButton=function(){var p;return!((p=this.data)==null||!p.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.J.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.J.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.J.computeForce16By9ThumbnailAspectRatio=function(){var p,y;return((p=this.data)==null?void 0:(y=p.responsiveContainerConfiguration)==null?void 0:y.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.J.onSectionReactiveDismissal=function(p,y,l){var q,t;var E=(q=this.data)==null?void 0:(t=q.targetingContext)==null?void 0:t.targetGroupId;this&&E&&y.targetGroupId&&E.includes(y.targetGroupId)?(q=this.rowIndex,p=q===void 0?!1:!(y.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&q<=p)):p=!1;p&&(this.hidden=l)};
_.Jh.Object.defineProperties(Oi.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var p=this.elementsPerRow;this.isPostShelfRenderer()?p=this.postsPerRow:this.isSlimMediaShelfRenderer()?p=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?p=this.slimItemsPerRow-1:this.isGameCardShelf()?p=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(p=this.miniGameCardsPerRow);return p}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.n("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var p,y;return!((p=this.data)==null||!p.previousButton)&&!((y=this.data)==null||!y.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var p;return((p=_.WC().resolve(_.mm).getCurrentPage())==null?void 0:p.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q;return!((p=this.data)==null?0:(y=p.thumbnail)==null?0:(l=y.accessibility)==null?0:(q=l.accessibilityData)==null?0:q.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Oi.prototype.onChildElementFocus=Oi.prototype.onChildElementFocus;Oi.prototype.handleRerenderDownloadsData=Oi.prototype.handleRerenderDownloadsData;Oi.prototype.onDataChange=Oi.prototype.onDataChange;Oi.prototype.onRowIndexChange=Oi.prototype.onRowIndexChange;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Oi.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.IP),_.x("design:type",Object)],Oi.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Oi.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Oi.prototype,"ytdReduxBehavior",void 0);_.H([_.Q({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.x("design:type",Object)],Oi.prototype,"useResponsiveGrid",void 0);_.H([_.Q(),_.x("design:type",Object)],Oi.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Number)],Oi.prototype,"standardUnitMinWidth",void 0);_.H([_.Q({reflectToAttribute:!0,value:3}),_.x("design:type",Number)],Oi.prototype,"elementsPerRow",void 0);_.H([_.Q({value:3}),_.x("design:type",Number)],Oi.prototype,"postsPerRow",void 0);_.H([_.Q({value:6}),_.x("design:type",Number)],Oi.prototype,"slimItemsPerRow",void 0);_.H([_.Q({value:6}),_.x("design:type",Number)],Oi.prototype,"gameCardsPerRow",void 0);
_.H([_.Q({value:6}),_.x("design:type",Number)],Oi.prototype,"miniGameCardsPerRow",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Oi.prototype,"hidden",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Oi.prototype,"standardShelfMargins",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Oi.prototype,"isShowMoreHidden",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Oi.prototype,"isExpanded",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Oi.prototype,"isInnerShelf",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.x("design:type",Boolean)],Oi.prototype,"isShorts",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.x("design:type",Boolean)],Oi.prototype,"isLumiere",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.x("design:type",Boolean)],Oi.prototype,"hasBoxArtThumbnailStyle",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.x("design:type",Boolean)],Oi.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.x("design:type",Boolean)],Oi.prototype,"hasFeaturedBadge",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.x("design:type",Boolean)],Oi.prototype,"hasPaygatedFeaturedBadge",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.x("design:type",Boolean)],Oi.prototype,"isHeaderHidden",void 0);_.H([_.Q({selector:_.ril}),_.x("design:type",Object)],Oi.prototype,"allVideosCount",void 0);_.H([_.Q({selector:Kzg}),_.x("design:type",Object)],Oi.prototype,"allPlaylistCount",void 0);_.H([_.Q({selector:BzR}),_.x("design:type",Object)],Oi.prototype,"haveSmartDownloadsCompleted",void 0);
_.H([_.Q({selectorArgs:["entitySelectorType"],selector:function(p,y){if(_.n("kevlar_modern_downloads_page")&&y&&y!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var l=p.entities;switch(y){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":y=_.HV(l);p=NG(y);var q=_.S$(y);l=_.xy(l);l=_.ar(Gmu(q,l,y.length));return{contents:p,subtitle:l};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return l=_.HV(l),{contents:NG(l)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return l=
_.TU(l),{contents:NG(l)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return l=_.h2L(l),{contents:NG(l)};default:_.vs(new _.SM("Error: entitySelectorType defined but not matched in selector.",p,y))}}}}),
_.x("design:type",Object)],Oi.prototype,"entityDrivenRichShelfData",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.x("design:type",Boolean)],Oi.prototype,"hasTopCtaButton",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.x("design:type",Boolean)],Oi.prototype,"hasBottomCtaButton",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.x("design:type",Boolean)],Oi.prototype,"force16By9ThumbnailAspectRatio",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Oi.prototype,"isShowLessHidden",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Oi.prototype,"restrictContentsOverflow",void 0);_.H([_.Q({selector:_.g7_}),_.x("design:type",Boolean)],Oi.prototype,"inlinePreviewIsEnabled",void 0);
_.H([_.Q({computed:"computeSizing(data)"}),_.x("design:type",String)],Oi.prototype,"sizing",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Oi.prototype,"typographyBump",void 0);_.H([_.Q(),_.x("design:type",Number)],Oi.prototype,"itemWidth",void 0);_.H([_.Q(),_.x("design:type",Object)],Oi.prototype,"firstShownIndex",void 0);_.H([_.Q(),_.x("design:type",Object)],Oi.prototype,"horizontalOffset",void 0);_.H([_.Q(),_.x("design:type",Object)],Oi.prototype,"atEnd",void 0);
_.H([_.rd("#contents"),_.x("design:type",HTMLElement)],Oi.prototype,"contents",void 0);_.H([_.gd("data.rowIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Oi.prototype,"onRowIndexChange",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Oi.prototype,"onDataChange",null);
_.H([_.gd("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Oi.prototype,"handleRerenderDownloadsData",null);_.H([_.VU("focusin"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Oi.prototype,"onChildElementFocus",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data","isHomePage"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Oi.prototype,"isTruncated",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Oi.prototype,"hideBottomDivider",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Oi.prototype,"hasChevronButtons",null);_.H([_.g("firstShownIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],Oi.prototype,"previousButtonOverride",null);
_.H([_.g("atEnd"),_.x("design:type",Object),_.x("design:paramtypes",[])],Oi.prototype,"nextButtonOverride",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Oi.prototype,"isHomePage",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Oi.prototype,"thumbnailAriaHidden",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Oi.prototype,"initiallyIsExpanded",null);
_.H([_.g("data"),_.x("design:type",String),_.x("design:paramtypes",[])],Oi.prototype,"entitySelectorType",null);_.H([_.k({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Oi);
_.KoB=_.Al()(Oi,"ytd-rich-shelf-renderer",function(){if(Q_V===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-rich-shelf-renderer">\n  <div id="rich-shelf-header-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="rich-shelf-header" class="style-scope ytd-rich-shelf-renderer">\n      <h2 class="style-scope ytd-rich-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n            <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n              <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n              <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-rich-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" aria-hidden="[[thumbnailAriaHidden]]" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n              </yt-img-shadow>\n            </a>\n            <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n              <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n                <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n                  <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n                </a>\n                <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n              <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n                <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n                <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n              </div>\n            </div>\n          </div>\n        </template>\n      </h2>\n      <div id="menu-container" class="style-scope ytd-rich-shelf-renderer">\n        <div class="cta-button-container style-scope ytd-rich-shelf-renderer" hidden="[[!hasTopCtaButton]]">\n          <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n        <div id="menu" hidden="[[isDismissedButtonHidden]]" class="style-scope ytd-rich-shelf-renderer"></div>\n        <yt-button-view-model id="previous-button" button-overrides="[[previousButtonOverride]]" data="[[data.previousButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="previousClick" class="style-scope ytd-rich-shelf-renderer">\n        </yt-button-view-model>\n        <yt-button-view-model id="next-button" button-overrides="[[nextButtonOverride]]" data="[[data.nextButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="nextClick" class="style-scope ytd-rich-shelf-renderer">\n      </yt-button-view-model>\n      </div>\n    </div>\n    <div id="cta-bottom-button-container" hidden="[[!hasBottomCtaButton]]" class="style-scope ytd-rich-shelf-renderer">\n      <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="contents-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="contents" class="style-scope ytd-rich-shelf-renderer"></div>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowMoreHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showMoreButton)]]" on-click="expandShelf">\n    </ytd-button-renderer>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowLessHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showLessButton)]]" on-click="collapseShelf">\n    </ytd-button-renderer>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-shelf-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);Q_V=p}p=Q_V;return p},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.ZS("kevlar_poly_si_batch_j028")?1:2});var wgr;_.bp(_.jI,"yt-badge-view-model",{props:{data:_.Co,class:_.Co,workaroundShortsIsThumbnailBadge:_.Co,modern:_.Co}});_.bp(JfM,"yt-slimline-survey-view-model",{props:{data:_.Co}});var oO=function(){var p=_.w.apply(this,arguments)||this;p.tileLottieAnimationRef={};p.backgroundLottieAnimationRef={};p.isOnHoverBehaviorForLottieEnabled=!0;p.useBiggerShowcaseImage=_.n("enable_desktop_search_bigger_thumbs");p.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return p};
_.A(oO,_.w);_.J=oO.prototype;_.J.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.J.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",
params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.J.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var p=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);p!==this.hasTile&&this.set("hasTile",p);p=this.hasLogo(this.data)||!!this.data.badgeText;p!==this.hasMetadata&&this.set("hasMetadata",p);p=this.data.overflowButton?!1:p;p!==this.showLogoImage&&this.set("showLogoImage",p);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.J.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.J.currentColorChanged=function(){this.updateButtonPalette()};
_.J.computeBackgroundStyle=function(p){if(p&&this.data){var y=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var l=_.GT((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);l&&y.push('background-image: url("'+l+'");')}var q;((q=p.basicColorData)==null?void 0:q.backgroundColor)!==void 0&&y.push("background-color: "+_.Y9(p.basicColorData.backgroundColor)+";");return y.join("")}};
_.J.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&this.set("isDarkTheme",p)};
_.J.getCurrentLogo=function(p,y){if(p)return y?p.darkLogoImage:p.lightLogoImage};
_.J.getCurrentStaticTileImage=function(p,y){if(this.hasStaticTile(p))return p.darkTileImage?y?p.darkTileImage:p.tileImage:p.tileImage};
_.J.computeTitleStyle=function(p){if(this.data&&this.data.title&&p&&p.basicColorData&&p.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.z5(p.basicColorData.foregroundTitleColor)+";"};
_.J.computeSubtitleStyle=function(p){if(this.data&&this.data.subtitle&&p&&p.basicColorData&&p.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.z5(p.basicColorData.foregroundBodyColor)+";"};
_.J.computeSupplementalStyle=function(p){if(this.data&&this.data.supplementalText&&p&&p.supplementalTextColor!==void 0)return p=_.z5(p.supplementalTextColor),"color:"+p+";--yt-endpoint-color:"+p+";--yt-endpoint-hover-color:"+p+";--yt-endpoint-visited-color:"+p+";--yt-formatted-string-bold-font-weight:700;"};
_.J.computeDismissIconStyle=function(p){var y,l;if((p==null?0:(y=p.dismissButtonColorData)==null?0:y.foregroundTitleColor)&&(p==null?0:(l=p.dismissButtonColorData)==null?0:l.backgroundColor))return"--yt-button-color:"+_.Y9(p.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Y9(p.dismissButtonColorData.backgroundColor)+";"};
_.J.computeOverflowIconStyle=function(p){var y,l;if((p==null?0:(y=p.dismissButtonColorData)==null?0:y.foregroundTitleColor)&&(p==null?0:(l=p.dismissButtonColorData)==null?0:l.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Y9(p.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Y9(p.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Y9(p.dismissButtonColorData.foregroundTitleColor)+";"};
_.J.computeBannerStyle=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.J.computeLocation=function(p){switch(p==null?void 0:p.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.J.shouldShowTileSection=function(p,y,l){return!this.shouldExpandLogo(p,y,l)&&y};
_.J.shouldShowExpandedLogoSection=function(p,y,l){return this.shouldExpandLogo(p,y,l)&&p!==void 0&&this.hasLogo(p)};
_.J.shouldExpandLogo=function(p,y,l){return p&&y?!1:l>=2};
_.J.hasStaticTile=function(p){return!(p==null||!p.tileImage)};
_.J.hasTileLottie=function(p){var y;return!!(p==null?0:(y=p.tileLottie)==null?0:y.url)};
_.J.hasLogo=function(p){return this.getCurrentLogo(p,this.isDarkTheme)!==void 0};
_.J.getLogoHeight=function(p){return this.logoWithPadding(p)?"26":"20"};
_.J.getExpandedLogoHeight=function(p){return this.logoWithPadding(p)?"31":"24"};
_.J.getLogoImageId=function(p){return this.logoWithPadding(p)?"logo-image-with-padding":"logo-image"};
_.J.getMaxTitleFontSize=function(p){return p.overrideTitleMaxFontSize?String(p.overrideTitleMaxFontSize):"36"};
_.J.hasBackgroundLottie=function(p){var y;return!!(p==null?0:(y=p.backgroundLottie)==null?0:y.url)};
_.J.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var p,y;(p=this.tileLottieAnimationRef)==null||(y=p.lottieEl)==null||y.play();var l,q;(l=this.backgroundLottieAnimationRef)==null||(q=l.lottieEl)==null||q.play()}};
_.J.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var p,y;(p=this.tileLottieAnimationRef)==null||(y=p.lottieEl)==null||y.pause();var l,q;(l=this.backgroundLottieAnimationRef)==null||(q=l.lottieEl)==null||q.pause()}};
_.J.pauseLottie=function(){var p,y;(p=this.tileLottieAnimationRef)==null||(y=p.lottieEl)==null||y.pause();var l,q;(l=this.backgroundLottieAnimationRef)==null||(q=l.lottieEl)==null||q.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.J.performPrimaryButtonAction=function(){var p,y,l;((p=this.data)==null?0:(y=p.primaryButton)==null?0:(l=y.buttonRenderer)==null?0:l.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.J.requestElementsPerRow=function(){_.Ub(this.hostElement,"yt-request-elements-per-row")};
_.J.updateButtonPalette=function(){if(this.data&&this.currentColorData){var p;((p=this.data.dismissButton)==null?0:p.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var y;if((y=this.data.primaryButton)==null?0:y.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 l;if((l=this.data.secondaryButton)==
null?0:l.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 q;((q=this.data.primaryButton)==null?0:q.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var t;((t=this.data.secondaryButton)==null?0:t.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.J.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var p=this.getTileLottieDataBasedOnTheme(),y,l;if(p.url!==((y=this.tileLottiePlayerProps)==null?void 0:(l=y.animationConfig)==null?void 0:l.path)){var q,t;(q=this.tileLottieAnimationRef)==null||(t=q.lottieEl)==null||t.destroy();var E;this.isOnHoverBehaviorForLottieEnabled=!((E=p.settings)==null?0:E.autoplay);var e,C;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(C=(e=p.settings)==null?void 0:e.autoplay)!=null?C:!1,loop:this.getLottieLoopValue(p.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof p.url==="string"?this.tileLottiePlayerProps.animationConfig.path=p.url:this.tileLottiePlayerProps.animationConfig.animationData=p.url}}};
_.J.getOverflowButton=function(p){return _.G(p.overflowButton,wYU)};
_.J.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var p=this.getBackgroundLottieDataBasedOnTheme(),y,l;if(p.url!==((y=this.backgroundLottiePlayerProps)==null?void 0:(l=y.animationConfig)==null?void 0:l.path)){var q,t;(q=this.backgroundLottieAnimationRef)==null||(t=q.lottieEl)==null||t.destroy();var E;this.isOnHoverBehaviorForLottieEnabled=!((E=p.settings)==null?0:E.autoplay);var e,C;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(C=(e=p.settings)==null?void 0:e.autoplay)!=null?C:!1,loop:this.getLottieLoopValue(p.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof p.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=p.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
p.url}}};
_.J.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var p;((p=this.tileLottieAnimationRef)==null?void 0:p.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var y;((y=this.backgroundLottieAnimationRef)==null?void 0:y.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.J.getTileLottieDataBasedOnTheme=function(){var p;if(this.isDarkTheme&&((p=this.data)==null?0:p.darkThemeTileLottie))return this.data.darkThemeTileLottie;var y;return((y=this.data)==null?0:y.tileLottie)?this.data.tileLottie:{}};
_.J.getBackgroundLottieDataBasedOnTheme=function(){var p;if(this.isDarkTheme&&((p=this.data)==null?0:p.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var y;return((y=this.data)==null?0:y.backgroundLottie)?this.data.backgroundLottie:{}};
_.J.onUpdateElementsPerRowAction=function(p){p&&this.elementsPerRow!==p&&(this.elementsPerRow=p)};
_.J.getLottieLoopValue=function(p){return p?p.loop!==void 0?p.loop:p.loopCount?p.loopCount-1:!0:!0};
_.J.logoWithPadding=function(p){var y,l,q;return(p=(y=this.getCurrentLogo(p,this.isDarkTheme))==null?void 0:(l=y.thumbnails)==null?void 0:(q=l[0])==null?void 0:q.height)&&p%31===0?!0:!1};
oO.prototype.currentColorChanged=oO.prototype.currentColorChanged;oO.prototype.themeChanged=oO.prototype.themeChanged;oO.prototype.dataChanged=oO.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],oO.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],oO.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],oO.prototype,"ytdDismissibleItemBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],oO.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],oO.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],oO.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],oO.prototype,"primaryButton",void 0);_.H([_.Q(),_.x("design:type",Object)],oO.prototype,"secondaryButton",void 0);
_.H([_.Q({reflectToAttribute:!0,value:3}),_.x("design:type",Number)],oO.prototype,"elementsPerRow",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],oO.prototype,"isDarkTheme",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],oO.prototype,"hasTile",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],oO.prototype,"hasMetadata",void 0);
_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],oO.prototype,"showLogoImage",void 0);_.H([_.Q(),_.x("design:type",Object)],oO.prototype,"currentColorData",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.x("design:type",String)],oO.prototype,"bannerStyle",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.x("design:type",String)],oO.prototype,"location",void 0);
_.H([_.Q(),_.x("design:type",Object)],oO.prototype,"tileLottiePlayerProps",void 0);_.H([_.Q(),_.x("design:type",Object)],oO.prototype,"tileLottieAnimationRef",void 0);_.H([_.Q(),_.x("design:type",Object)],oO.prototype,"backgroundLottiePlayerProps",void 0);_.H([_.Q(),_.x("design:type",Object)],oO.prototype,"backgroundLottieAnimationRef",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],oO.prototype,"useBiggerShowcaseImage",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],oO.prototype,"isHideEnclosingAction",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oO.prototype,"dataChanged",null);_.H([_.k8("isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oO.prototype,"themeChanged",null);
_.H([_.k8("currentColorData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oO.prototype,"currentColorChanged",null);_.H([_.k({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],oO);
_.D(oO,"ytd-statement-banner-renderer",function(){if(wgr!==void 0)return wgr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[data.badge]]" 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 id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return wgr=p},{mode:1});var iNN;var zF=function(){var p=_.w.apply(this,arguments)||this;p.isSearch=!1;p.hideShelfHeader=!1;p.engagementPanel=!1;p.disableMouseScroll=!0;p.useFloorScrolling=!0;p.modernTypography=_.n("web_modern_typography");return p};
_.A(zF,_.w);zF.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.g$("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.g$("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
zF.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
zF.prototype.onDataChanged=zF.prototype.onDataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],zF.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],zF.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],zF.prototype,"isSearch",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],zF.prototype,"hideShelfHeader",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],zF.prototype,"engagementPanel",void 0);_.H([_.Q(),_.x("design:type",Object)],zF.prototype,"disableMouseScroll",void 0);_.H([_.Q(),_.x("design:type",Object)],zF.prototype,"useFloorScrolling",void 0);_.H([_.Q(),_.x("design:type",Object)],zF.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],zF.prototype,"modernTypography",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zF.prototype,"onDataChanged",null);_.H([_.k({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],zF);
_.D(zF,"ytd-reel-shelf-renderer",function(){if(iNN!==void 0)return iNN;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return iNN=p},{mode:_.ZS("kevlar_poly_si_batch_j028")?1:2});var rdr;var Sqr;Sqr=_.c0(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.FoN=_.bz(Sqr);var LoP=_.aF(function(p){var y=p.data;p=p.useSmallFont;var l={},q={};return _.R("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.R(_.W,{cond:function(){return y().favicon},
then:function(t){return _.R(_.W$,{data:t,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.R("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.R(_.CF,{text:function(){return y().title},
className:_.ip("yt-channel-external-link-view-model-wiz__title",(l["yt-channel-external-link-view-model-wiz__title--title-small-font"]=p,l)),ellipsisTruncate:!0,userInput:!0}),_.R(_.CF,{text:function(){return y().link},
className:_.ip("yt-channel-external-link-view-model-wiz__link",(q["yt-channel-external-link-view-model-wiz__link--link-small-font"]=p,q)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Qb");
LoP.idomCompat=!0;_.bp(LoP,"yt-channel-external-link-view-model",{props:{data:_.Co,useSmallFont:_.Co}});_.ox("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Y4=function(){var p=_.w.apply(this,arguments)||this;p.revealButtonClass="button";p.businessEmailDisplayState="HIDE_SECTION";return p};
_.A(Y4,_.w);_.J=Y4.prototype;_.J.refit=function(){var p=this;_.sU(function(){_.jN(p.hostElement,"yt-refit-popups-action")});
_.th(this,function(){_.jN(p.hostElement,"yt-refit-popups-action")})};
_.J.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.zc(_.FoN),this.businessEmailDisplayState="CAPTCHA")};
_.J.businessEmailMetadataChanged=function(){this.revealButton||this.businessEmail||this.metadata.signInForBusinessEmail?this.metadata.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.metadata.businessEmail&&(this.businessEmail=this.metadata.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.J.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.J.configureRendererStamper=function(){return{"data.flaggingButton":{id:"flagging-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.shareChannel":{id:"share-channel",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"metadata.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:"yt-channel-external-link-view-model"}}}};
_.J.computeEmailHref=function(p){return"mailto:"+p};
_.J.computeSafeUrl=function(p){if(p)return _.XX(p)};
_.J.linkEndpoint=function(p){return _.G(p.onTap,_.pY)};
_.J.linkEndpointToHref=function(p){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(p))};
_.J.onYtServiceRequestCompleted=function(p){var y;if((y=p.detail.data)==null?0:y.businessEmail)this.businessEmail=p.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var l;if((l=p.detail.data)==null?0:l.errorMessage)this.businessEmailErrorMessage=p.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.J.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var p=this.JSC$16127_captchaTextarea.value;if(p){p={recaptcha_response_token:p,channel_id:this.metadata.channelId};var y=_.G(this.metadata.onBusinessEmailRevealClickCommand,_.pY);y&&this.ytComponentBehavior.resolveCommand(y,{form:p})}}};
_.J.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Jh.Object.defineProperties(Y4.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var p;return _.G((p=this.data)==null?void 0:p.metadata,miV)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.G(this.metadata.businessEmailRevealButton,_.xo)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var p=new URL(this.metadata.canonicalChannelUrl);return p.host+p.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.G(this.metadata.learnMoreOnTap,_.pY)}}});
Y4.prototype.onYtServiceRequestCompleted=Y4.prototype.onYtServiceRequestCompleted;Y4.prototype.businessEmailMetadataChanged=Y4.prototype.businessEmailMetadataChanged;Y4.prototype.refit=Y4.prototype.refit;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Y4.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Y4.prototype,"ytRendererstamperBehavior",void 0);_.H([_.rd("#g-recaptcha-response"),_.x("design:type",HTMLTextAreaElement)],Y4.prototype,"JSC$16127_captchaTextarea",void 0);_.H([_.Q(),_.x("design:type",Object)],Y4.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Y4.prototype,"revealButtonClass",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Y4.prototype,"metadata",null);
_.H([_.g("metadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],Y4.prototype,"revealButton",null);_.H([_.g("metadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],Y4.prototype,"channelDisplayUrl",null);_.H([_.k8("metadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Y4.prototype,"refit",null);_.H([_.g("metadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],Y4.prototype,"formattedDescription",null);
_.H([_.g("metadata","learnMoreCommand"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Y4.prototype,"shouldRendereVerifiedPhoneStatus",null);_.H([_.g("metadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],Y4.prototype,"learnMoreCommand",null);_.H([_.Q(),_.x("design:type",String)],Y4.prototype,"businessEmailDisplayState",void 0);_.H([_.Q(),_.x("design:type",String)],Y4.prototype,"businessEmail",void 0);
_.H([_.Q(),_.x("design:type",String)],Y4.prototype,"businessEmailErrorMessage",void 0);_.H([_.k8("metadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Y4.prototype,"businessEmailMetadataChanged",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Y4.prototype,"onYtServiceRequestCompleted",null);_.H([_.k({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Y4);
_.D(Y4,"ytd-about-channel-renderer",function(){if(rdr!==void 0)return rdr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return rdr=p},{mode:1});var kVi;var IO=function(){return _.w.apply(this,arguments)||this};
_.A(IO,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],IO.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],IO.prototype,"data",void 0);_.H([_.k({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],IO);
_.D(IO,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(kVi!==void 0)return kVi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-avatar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-list-sub-menu-avatar-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="80" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">[[getSimpleString(data.title)]]</div>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return kVi=p},{mode:1});var NQZ;var pm=function(){return _.w.apply(this,arguments)||this};
_.A(pm,_.w);pm.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],pm.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],pm.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],pm.prototype,"aligment",void 0);_.H([_.k({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],pm);
_.D(pm,"ytd-channel-list-sub-menu-renderer",function(){if(NQZ!==void 0)return NQZ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-list-sub-menu-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return NQZ=
p},{mode:1});var Dqv;var ym=function(){return _.w.apply(this,arguments)||this};
_.A(ym,_.w);ym.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}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ym.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ym.prototype,"data",void 0);_.H([_.k({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],ym);
_.D(ym,"ytd-channel-sub-menu-renderer",function(){if(Dqv!==void 0)return Dqv;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-items" class="style-scope ytd-channel-sub-menu-renderer">\n  <yt-dropdown-menu class="content-sub-menu style-scope ytd-channel-sub-menu-renderer" data="[[data.contentTypeSubMenuItems]]" parent-tracking-params="[[data.trackingParams]]" use-label="">\n  </yt-dropdown-menu>\n  <div id="play-all" class="style-scope ytd-channel-sub-menu-renderer"></div>\n</div>\n<div id="sort-menu" class="style-scope ytd-channel-sub-menu-renderer"></div>\n<div id="right-buttons" class="style-scope ytd-channel-sub-menu-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Dqv=p},{mode:1});var HNU;var TQr;var ln=function(){var p=_.w.apply(this,arguments)||this;p.isCompact=!1;return p};
_.A(ln,_.w);_.Jh.Object.defineProperties(ln.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var p,y;return((y=_.G((p=this.data)==null?void 0:p.endpoint,_.Id))==null?void 0:y.target)==="TARGET_NEW_WINDOW"}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],ln.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ln.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],ln.prototype,"isCompact",void 0);_.H([_.g("isCompact"),_.x("design:type",Number),_.x("design:paramtypes",[])],ln.prototype,"thumbnailWidth",null);
_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ln.prototype,"openNewWindow",null);_.H([_.k({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],ln);
_.D(ln,"ytd-media-lockup-renderer",function(){if(TQr!==void 0)return TQr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-media-lockup-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n  <div id="thumbnail-container" class="style-scope ytd-media-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" fit-width="" thumbnail="[[data.thumbnailDetails]]" width="[[thumbnailWidth]]" class="style-scope ytd-media-lockup-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="description" class="style-scope ytd-media-lockup-renderer">\n    <div id="title" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-media-lockup-renderer">\n      <span id="subtitle-text" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.subtitle)]]</span>\n      \n      <yt-icon class="media-lockup-icon style-scope ytd-media-lockup-renderer" default-to-filled="true" hidden="[[!openNewWindow]]" icon="open_in_new" size="15"></yt-icon>\n    </div>\n  </div>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return TQr=p},{mode:1});var xqZ;var qp=function(){return _.w.apply(this,arguments)||this};
_.A(qp,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],qp.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],qp.prototype,"data",void 0);_.H([_.k({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],qp);
_.D(qp,"ytd-structured-description-channel-lockup-renderer",function(){if(xqZ!==void 0)return xqZ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-channel-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  <ytd-thumbnail data="[[data]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  </ytd-thumbnail>\n</div>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-channel-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-channel-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-channel-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subscriber-count" class="style-scope ytd-structured-description-channel-lockup-renderer">\n      [[getSimpleString(data.subscriberCountText)]]\n    </div>\n  </div>\n</a>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return xqZ=p},{mode:1});var BQ$;var sG=function(){var p=_.w.apply(this,arguments)||this;p.isCompact=!1;p.collections=_.n("web_modern_collections_v2");p.collectionsStackColor=_.n("modernize_structured_description_playlist_lockups_v2");return p};
_.A(sG,_.w);sG.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:_.n("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Jh.Object.defineProperties(sG.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q,t,E;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(p=this.data)==null?void 0:(y=p.thumbnail)==null?void 0:y.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(l=this.data)==null?void 0:(q=l.thumbnail)==null?void 0:q.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(t=this.data)==null?void 0:(E=t.thumbnail)==
null?void 0:E.vibrantColorPalette:void 0}}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],sG.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],sG.prototype,"componentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],sG.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],sG.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],sG.prototype,"showSidePanelThumbnailOverlay",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],sG.prototype,"isCompact",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],sG.prototype,"collections",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],sG.prototype,"collectionsStackColor",void 0);_.H([_.g("data"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],sG.prototype,"twoLineTitle",null);
_.H([_.g("data","collections","collectionsStackColor"),_.x("design:type",Object),_.x("design:paramtypes",[])],sG.prototype,"collectionStack",null);_.H([_.k({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],sG);
_.D(sG,"ytd-structured-description-playlist-lockup-renderer",function(){if(BQ$!==void 0)return BQ$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return BQ$=p},{mode:1});var fMV;var t4=function(){return _.w.apply(this,arguments)||this};
_.A(t4,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],t4.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],t4.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],t4.prototype,"data",void 0);_.H([_.k({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],t4);
_.D(t4,"ytd-structured-description-video-lockup-renderer",function(){if(fMV!==void 0)return fMV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-video-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n</ytd-thumbnail>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-video-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-video-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n    <yt-formatted-string id="metadata-details" disable-upgrade$="[[!data.metadataDetails]]" hidden="[[!data.metadataDetails]]" no-endpoints="" text="[[data.metadataDetails]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return fMV=p},{mode:2});var EG=function(){return _.w.apply(this,arguments)||this};
_.A(EG,_.w);
EG.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}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],EG.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],EG.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],EG.prototype,"data",void 0);_.H([_.k({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],EG);
_.D(EG,"ytd-compact-infocard-renderer",function(){if(HNU!==void 0)return HNU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-infocard-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-compact-infocard-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return HNU=p},{mode:1});var vMP;var J4=function(){var p=_.w.apply(this,arguments)||this;p.useModernCollectionsV2=_.n("web_modern_collections_v2");return p};
_.A(J4,_.w);J4.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Jh.Object.defineProperties(J4.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.n("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.n("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.n("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],J4.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],J4.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],J4.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],J4.prototype,"ytdReduxBehavior",void 0);_.H([_.Q({selector:_.pX}),_.x("design:type",Object)],J4.prototype,"isGridViewEnabled",void 0);
_.H([_.g("isGridViewEnabled"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],J4.prototype,"watchFeedBigThumbs",null);_.H([_.g("isGridViewEnabled","data"),_.Q({reflectToAttribute:!0,value:"168"}),_.x("design:type",String),_.x("design:paramtypes",[])],J4.prototype,"thumbnailWidth",null);_.H([_.g("isGridViewEnabled","data"),_.Q({reflectToAttribute:!0,value:"94"}),_.x("design:type",String),_.x("design:paramtypes",[])],J4.prototype,"customThumbnailSize",null);
_.H([_.Q(),_.x("design:type",Object)],J4.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],J4.prototype,"useModernCollectionsV2",void 0);_.H([_.k({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],J4);
_.D(J4,"ytd-compact-playlist-renderer",function(){if(vMP!==void 0)return vMP;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-playlist-renderer">\n  <ytd-playlist-thumbnail custom-thumbnail-size="[[customThumbnailSize]]" data="[[data]]" height="94" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-playlist-renderer">\n  </ytd-playlist-thumbnail>\n  <div class="details style-scope ytd-compact-playlist-renderer">\n    <div class="metadata style-scope ytd-compact-playlist-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-playlist-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-playlist-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-playlist-renderer">\n          <ytd-video-meta-block class="compact style-scope ytd-compact-playlist-renderer" data="[[data]]" no-endpoints="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n          </ytd-video-meta-block>\n          <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-playlist-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-playlist-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return vMP=p},{mode:1});var Xgi;var ck=function(){var p=_.w.apply(this,arguments)||this;p.darkerDarkTheme=_.n("web_darker_dark_theme");p.roundedContainer=!0;p.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return p};
_.A(ck,_.w);_.J=ck.prototype;_.J.attached=function(){this.requestElementsPerRow()};
_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.J.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.J.computeViewStyle=function(p){return p.style?p.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.J.onUpdateElementsPerRowAction=function(p){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&p===1};
_.J.requestElementsPerRow=function(){_.Ub(this.hostElement,"yt-request-elements-per-row")};
ck.prototype.dataChanged=ck.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ck.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ck.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],ck.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],ck.prototype,"actionHandlerBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],ck.prototype,"data",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],ck.prototype,"hideThumbnail",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.x("design:type",String)],ck.prototype,"viewStyle",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],ck.prototype,"darkerDarkTheme",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],ck.prototype,"roundedContainer",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ck.prototype,"dataChanged",null);_.H([_.k({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],ck);
_.D(ck,"ytd-compact-promoted-item-renderer",function(){if(Xgi!==void 0)return Xgi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-promoted-item-renderer">\n<ytd-thumbnail data="[[data]]" hidden$="[[hideThumbnail]]" width="100" class="style-scope ytd-compact-promoted-item-renderer"></ytd-thumbnail>\n  <div id="content" class="style-scope ytd-compact-promoted-item-renderer">\n    <div id="info" class="style-scope ytd-compact-promoted-item-renderer">\n      <h3 class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n      </h3>\n      <div id="subtitle-container" class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n        <ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-promoted-item-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n    </div>\n    <div id="button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-promoted-item-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Xgi=p},{mode:1});var dqU;var et=function(){var p=_.w.apply(this,arguments)||this;p.collections=_.n("web_modern_collections_v2");return p};
_.A(et,_.w);et.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
et.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
et.prototype.onYtNavigate=function(p,y){var l=this;if(y.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",y)){var q=this.get("watchEndpoint.videoId",y.endpoint),t=_.jN(this.hostElement,"yt-get-current-video-id-action")[0];_.n("kevlar_mix_handle_first_endpoint_different")&&q&&t&&q!==t||(p.stopPropagation(),_.jo().getPlayerPromise().then(function(E){if(E.getPlayerState()===0&&l.data.secondaryNavigationEndpoint)var e=l.data.secondaryNavigationEndpoint;else{e=
Object.assign({},y.endpoint);var C=_.G(e.commandMetadata,_.ul);C&&(E=Math.floor(E.getCurrentTime()),C.url=_.JJ(C.url,{t:E}),!_.n("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(C=_.G(e,_.Eb)))&&(C.startTimeSeconds=E)}_.Ub(l.hostElement,"yt-navigate",{endpoint:e})}))}};
_.Jh.Object.defineProperties(et.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.n("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.n("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q,t,E;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(p=this.data)==null?void 0:(y=p.thumbnail)==null?void 0:y.sampledThumbnailColor,vibrantColorPalette:(l=this.data)==null?void 0:(q=l.thumbnail)==null?void 0:q.vibrantColorPalette,darkColorPalette:(t=this.data)==null?void 0:(E=t.thumbnail)==null?void 0:E.darkColorPalette,experimentEnabled:this.collections}}}});
et.prototype.onYtNavigate=et.prototype.onYtNavigate;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],et.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.FW.YtEndpointBehavior),_.x("design:type",Object)],et.prototype,"ytEndpointBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],et.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],et.prototype,"ytdDismissibleItemBehavior",void 0);
_.H([_.V(_.EW),_.x("design:type",Object)],et.prototype,"ytdLockupBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],et.prototype,"ytdReduxBehavior",void 0);_.H([_.Q({selector:_.pX}),_.x("design:type",Object)],et.prototype,"isGridViewEnabled",void 0);_.H([_.g("isGridViewEnabled"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],et.prototype,"watchFeedBigThumbs",null);
_.H([_.g("isGridViewEnabled"),_.Q({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],et.prototype,"thumbnailWidth",null);_.H([_.Q(),_.x("design:type",Object)],et.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],et.prototype,"collections",void 0);_.H([_.g("data","collections"),_.x("design:type",Object),_.x("design:paramtypes",[])],et.prototype,"collectionStack",null);
_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],et.prototype,"onYtNavigate",null);_.H([_.k({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],et);
_.D(et,"ytd-compact-radio-renderer",function(){if(dqU!==void 0)return dqU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="94" hovered="[[lockupIsHovered]]" use-hovered-property="" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div class="details style-scope ytd-compact-radio-renderer">\n    <div class="metadata style-scope ytd-compact-radio-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-radio-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-radio-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-radio-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <ytd-video-meta-block class="compact style-scope ytd-compact-radio-renderer" data="[[data]]" no-endpoints="" radio-meta="">\n        </ytd-video-meta-block>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-radio-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-radio-renderer"></yt-interaction>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return dqU=p},{mode:1});var ONB;var h4=function(){return _.w.apply(this,arguments)||this};
_.A(h4,_.w);h4.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
h4.prototype.computeRendererStyle=function(p){return p.style?p.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.H([_.Q(),_.x("design:type",Object)],h4.prototype,"data",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],h4.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],h4.prototype,"rendererBehavior",void 0);_.H([_.Q({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.x("design:type",String)],h4.prototype,"rendererStyle",void 0);_.H([_.k({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],h4);
_.D(h4,"ytd-compact-text-promo-renderer",function(){if(ONB!==void 0)return ONB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-text-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-text-promo-renderer">\n</ytd-badge-supported-renderer>\n<yt-formatted-string class="title style-scope ytd-compact-text-promo-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-compact-text-promo-renderer" force-default-style="" text="[[data.subTitle]]">\n</yt-formatted-string>\n<div id="action-button" class="style-scope ytd-compact-text-promo-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return ONB=p},{mode:1});var oMi;var Cm=function(){var p=_.w.apply(this,arguments)||this;p.isShortsStyle=!1;return p};
_.A(Cm,_.w);_.J=Cm.prototype;_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.J.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Ub(this.hostElement,"yt-disable-lockup-interaction"):_.Ub(this.hostElement,"yt-enable-lockup-interaction"))};
_.J.isMetaBlockEmpty=function(p){return!p||!p.longBylineText&&!p.shortBylineText&&!p.shortViewCountText&&!p.viewCountText};
_.J.computeHasOneLineTitle=function(p){return this.forceOneLineTitle||!(p==null||!p.buttons)};
_.J.computeDisableInteraction=function(){var p;return!((p=this.data)==null?0:p.navigationEndpoint)};
_.J.hasSingularTopStandaloneBadge=function(){var p;return!((p=this.data)==null||!p.topStandaloneBadge)};
_.Jh.Object.defineProperties(Cm.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.n("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.n("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var p;return this.hasSingularTopStandaloneBadge()?[(p=this.data)==null?void 0:p.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var p;return this.shouldShowTopBadges?((p=this.data)==null?void 0:p.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
Cm.prototype.disableInteractionChanged=Cm.prototype.disableInteractionChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Cm.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],Cm.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.V(_.EW),_.x("design:type",Object)],Cm.prototype,"ytdLockupBehavior",void 0);
_.H([_.V(_.zL),_.x("design:type",Object)],Cm.prototype,"ytdReduxBehavior",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.x("design:type",Boolean)],Cm.prototype,"metaBlockEmpty",void 0);_.H([_.Q({selector:_.pX}),_.x("design:type",Object)],Cm.prototype,"isGridViewEnabled",void 0);_.H([_.g("isGridViewEnabled"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Cm.prototype,"watchFeedBigThumbs",null);
_.H([_.g("isGridViewEnabled"),_.Q({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],Cm.prototype,"thumbnailWidth",null);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Cm.prototype,"isShortsStyle",void 0);_.H([_.Q(),_.x("design:type",Object)],Cm.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.x("design:type",Boolean)],Cm.prototype,"hasOneLineTitle",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],Cm.prototype,"hideThumbnail",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Cm.prototype,"forceOneLineTitle",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.x("design:type",Boolean)],Cm.prototype,"disableInteraction",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Cm.prototype,"musicMetadataVideoLockup",void 0);
_.H([_.gd("disableInteraction"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cm.prototype,"disableInteractionChanged",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Cm.prototype,"shouldShowTopBadges",null);_.H([_.g("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],Cm.prototype,"topBadges",null);
_.H([_.g("shouldShowTopBadges","data"),_.x("design:type",Array),_.x("design:paramtypes",[])],Cm.prototype,"inlineMetadataBadges",null);_.H([_.g("shouldShowTopBadges"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Cm.prototype,"shouldShowBadgesBelowMetadata",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Cm.prototype,"compactTitleClass",null);_.H([_.k({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Cm);
_.D(Cm,"ytd-compact-video-renderer",function(){if(oMi!==void 0)return oMi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" disable-interaction="[[disableInteraction]]" hidden$="[[hideThumbnail]]" hovered="[[lockupIsHovered]]" queued="[[queued]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[thumbnailWidth]]" class="style-scope ytd-compact-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-video-renderer">\n    <div class="metadata style-scope ytd-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]">\n        <h3 class="style-scope ytd-compact-video-renderer">\n          \n          <ytd-badge-supported-renderer class="top-badge style-scope ytd-compact-video-renderer" badges="[[topBadges]]" collection-truncate="" hidden="[[!shouldShowTopBadges]]">\n          </ytd-badge-supported-renderer>\n          <span class$="[[compactTitleClass]] style-scope ytd-compact-video-renderer" id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-video-renderer">\n          \n          <ytd-video-meta-block class="compact style-scope ytd-compact-video-renderer" badges="[[inlineMetadataBadges]]" data="[[data]]" inline-badges="" no-endpoints="" truncate-metadata-line="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]"></ytd-video-meta-block>\n          \n          <ytd-badge-supported-renderer class="badges style-scope ytd-compact-video-renderer" badges="[[data.badges]]" hidden="[[!shouldShowBadgesBelowMetadata]]" wrap-badges="">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n      <div id="buttons" class="style-scope ytd-compact-video-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-video-renderer"></div>\n    <div id="queue-button" class="style-scope ytd-compact-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-video-renderer"></yt-interaction>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return oMi=p},{mode:_.ZS("kevlar_poly_si_batch_j067")?1:2});var zXi;_.ox("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var un=function(){return _.w.apply(this,arguments)||this};
_.A(un,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],un.prototype,"data",void 0);_.H([_.k({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],un);
_.D(un,"ytd-counterfactual-renderer",function(){if(zXi!==void 0)return zXi;var p=document.createElement("template");_.M(p,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-counterfactual-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return zXi=p},{mode:1});var YqQ;var RH=function(){var p=_.w.apply(this,arguments)||this;p.hidden=!1;return p};
_.A(RH,_.w);RH.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.WC().resolve(_.aK).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
RH.prototype.computeHidden=function(p){return!!p};
_.Jh.Object.defineProperties(RH.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}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],RH.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],RH.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.x("design:type",Object)],RH.prototype,"hidden",void 0);_.H([_.g("data.label"),_.x("design:type",String),_.x("design:paramtypes",[])],RH.prototype,"label",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],RH.prototype,"value",null);
_.H([_.k({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],RH);
_.D(RH,"ytd-dropdown-item-renderer",function(){if(YqQ!==void 0)return YqQ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" aria-label$="[[data.accessibility.label]]" on-tap="onSelect" class="style-scope ytd-dropdown-item-renderer">\n  <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-dropdown-item-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-item>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return YqQ=p},{mode:1});var IMx;var pXr;var Wk=function(){return _.w.apply(this,arguments)||this};
_.A(Wk,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Wk.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Wk.prototype,"data",void 0);_.H([_.Q({computed:"getSimpleString(data.label)"}),_.x("design:type",String)],Wk.prototype,"label",void 0);_.H([_.k({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Wk);
_.D(Wk,"ytd-navigation-dropdown-item-renderer",function(){if(pXr!==void 0)return pXr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-navigation-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <a class="yt-simple-endpoint style-scope ytd-navigation-dropdown-item-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n  <tp-yt-paper-item id="item" class="style-scope ytd-navigation-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-navigation-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return pXr=p},{mode:1});var aH=function(){var p=_.w.apply(this,arguments)||this;p.disabled=!1;p.value="";p.noLabelFloat=!1;p.noUnderline=!1;p.usePrimaryColor=!1;p.hasBackground=!1;p.verticalAlign="top";p.autosize=!1;p.minAutosizeWidth=100;p.autosizeFont="14px Roboto";return p};
_.A(aH,_.w);_.J=aH.prototype;_.J.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.J.open=function(){this.inputEl.open()};
_.J.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.J.dataChanged=function(){this.reset()};
_.J.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JC("value-changed",this.value))};
_.J.stopPropagation=function(p){p.stopPropagation()};
_.J.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var p=this.canvas.getContext("2d");p&&(p.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(p.measureText(this.inputEl.value).width)+24)+"px")}};
_.J.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var p=0,y=this.data.entries.length;p<y;p++){var l=this.data.entries[p],q;for(q in l)if(l.hasOwnProperty(q)){var t=l[q];if("isSelected"in t&&t.isSelected)return"stringValue"in t?t.stringValue||"":"int32Value"in t?t.int32Value||0:0}}return null};
_.J.updateValueFromBinding=function(p){this.value=p.detail.value};
_.Jh.Object.defineProperties(aH.prototype,{label:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.entries)return null;if(this.data.label)return this.data.label;for(var p=0,y=this.data.entries.length;p<y;p++){var l=this.data.entries[p],q;for(q in l)if(l.hasOwnProperty(q)){var t=l[q];if("isSelected"in t&&t.isSelected&&"label"in t)return this.ytRendererBehavior.getSimpleString(t.label)}}return null}}});
aH.prototype.autoSizeLabel=aH.prototype.autoSizeLabel;aH.prototype.stopPropagation=aH.prototype.stopPropagation;aH.prototype.valueChangedForBinding=aH.prototype.valueChangedForBinding;aH.prototype.dataChanged=aH.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],aH.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],aH.prototype,"ytRendererStamperBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],aH.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],aH.prototype,"disabled",void 0);_.H([_.Q(),_.x("design:type",Object)],aH.prototype,"value",void 0);_.H([_.Q(),_.x("design:type",Object)],aH.prototype,"noLabelFloat",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],aH.prototype,"noUnderline",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],aH.prototype,"theme",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],aH.prototype,"usePrimaryColor",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],aH.prototype,"hasBackground",void 0);_.H([_.Q(),_.x("design:type",Object)],aH.prototype,"verticalAlign",void 0);_.H([_.Q(),_.x("design:type",Object)],aH.prototype,"autosize",void 0);_.H([_.Q(),_.x("design:type",Object)],aH.prototype,"minAutosizeWidth",void 0);_.H([_.Q(),_.x("design:type",Object)],aH.prototype,"autosizeFont",void 0);
_.H([_.rd("#entries"),_.x("design:type",Object)],aH.prototype,"entries",void 0);_.H([_.rd("#input"),_.x("design:type",Object)],aH.prototype,"inputEl",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aH.prototype,"dataChanged",null);_.H([_.k8("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aH.prototype,"valueChangedForBinding",null);
_.H([_.VU("iron-overlay-opened"),_.VU("iron-overlay-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],aH.prototype,"stopPropagation",null);_.H([_.VU("iron-select"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aH.prototype,"autoSizeLabel",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],aH.prototype,"label",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],aH);
_.D(aH,"ytd-dropdown-renderer",function(){if(IMx!==void 0)return IMx;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dropdown-menu-light id="input" aria-label$="[[label]]" disabled="[[disabled]]" horizontal-align="left" label="[[label]]" no-label-float="[[noLabelFloat]]" vertical-align="[[verticalAlign]]" class="style-scope ytd-dropdown-renderer">\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-dropdown-menu-light>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return IMx=p},{mode:1});var yAV;var mp=function(){var p=_.w.apply(this,arguments)||this;p.isConstrainedList=!1;return p};
_.A(mp,_.w);mp.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"}}}};
mp.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
mp.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
mp.prototype.computeViewAllHidden=function(p,y){return p||!y.viewAllEndpoint};
mp.prototype.fillRestIfNoShowMore=mp.prototype.fillRestIfNoShowMore;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],mp.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],mp.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.$G.YtLazyListBehavior),_.x("design:type",Object)],mp.prototype,"ytLazyListBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],mp.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],mp.prototype,"isConstrainedList",void 0);_.H([_.k8("data","canShowMore"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mp.prototype,"fillRestIfNoShowMore",null);_.H([_.k({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],mp);
_.D(mp,"ytd-expanded-shelf-contents-renderer",function(){if(yAV!==void 0)return yAV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expanded-shelf-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="grid-container" class="style-scope ytd-expanded-shelf-contents-renderer"></div>\n<yt-formatted-string aria-role="button" hidden="[[!canShowMore]]" text="[[data.showMoreText]]" on-click="onShowMoreClick" class="style-scope ytd-expanded-shelf-contents-renderer">\n</yt-formatted-string>\n  <a class="yt-simple-endpoint style-scope ytd-expanded-shelf-contents-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[computeViewAllHidden(canShowMore,data)]]">\n  <yt-formatted-string text="[[data.viewAllText]]" class="style-scope ytd-expanded-shelf-contents-renderer"></yt-formatted-string>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return yAV=p},{mode:_.ZS("kevlar_poly_si_batch_j025")?1:2});var liU;var UG=function(){return _.w.apply(this,arguments)||this};
_.A(UG,_.w);UG.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}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],UG.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],UG.prototype,"data",void 0);_.H([_.k({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],UG);
_.D(UG,"ytd-feed-channel-filter-header-renderer",function(){if(liU!==void 0)return liU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-channel-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-feed-channel-filter-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-feed-channel-filter-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow id="avatar" height="56" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="56" class="style-scope ytd-feed-channel-filter-header-renderer">\n    </yt-img-shadow>\n    <div id="channel" class="style-scope ytd-feed-channel-filter-header-renderer">\n      <span id="title" class="style-scope ytd-feed-channel-filter-header-renderer">[[getSimpleString(data.title)]]</span>\n      <div id="view-channel-button" aria-hidden="" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n    </div>\n  </a>\n</h2>\n<div id="buttons" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return liU=p},{mode:1});var qmQ;var sEU;var tDr;var $e=function(){return _.w.apply(this,arguments)||this};
_.A($e,_.w);_.J=$e.prototype;_.J.onClick=function(p){var y,l=(y=this.data)==null?void 0:y.sectionEndpoint;!_.WN(_.Jx(p),this.hostElement,["A".toString()])&&l&&_.Ub(this.hostElement,"yt-navigate",{endpoint:l})};
_.J.computeHasSectionEndpoint=function(p){return(p==null?void 0:p.sectionEndpoint)!==void 0};
_.J.computeShowHeaderAsLink=function(p){return(p==null?void 0:p.header)!==void 0&&(p==null?void 0:p.sectionEndpoint)!==void 0};
_.J.computeShowSubheaderAsLink=function(p){return(p==null?void 0:p.subheader)!==void 0&&(p==null?void 0:p.sectionEndpoint)!==void 0&&(p==null?void 0:p.header)===void 0};
_.J.getHeaderAsLinkClass=function(p){var y=[],l;(p==null?0:(l=p.headerIcon)==null?0:l.iconType)&&y.push("header-link-active");return y.join(" ")};
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],$e.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],$e.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],$e.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],$e.prototype,"data",void 0);
_.H([_.Q({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],$e.prototype,"hasSectionEndpoint",void 0);_.H([_.Q({computed:"computeShowHeaderAsLink(data)"}),_.x("design:type",Boolean)],$e.prototype,"showHeaderAsLink",void 0);_.H([_.Q({computed:"computeShowSubheaderAsLink(data)"}),_.x("design:type",Boolean)],$e.prototype,"showSubheaderAsLink",void 0);_.H([_.k({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],$e);
_.D($e,"ytd-medical-panel-section-renderer",function(){if(tDr!==void 0)return tDr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" on-click="onClick" class="style-scope ytd-medical-panel-section-renderer">\n  <div id="header" hidden="[[!data.header]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showHeaderAsLink]]" text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    <a id="header-link" class$="yt-simple-endpoint [[getHeaderAsLinkClass(data)]] style-scope ytd-medical-panel-section-renderer" hidden="[[!showHeaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      <yt-icon class="icons style-scope ytd-medical-panel-section-renderer" hidden="[[!data.headerIcon.iconType]]" icon="[[data.headerIcon.iconType]]">\n      </yt-icon>\n    </a>\n  </div>\n\n  <div id="subheader" hidden="[[!data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showSubheaderAsLink]]" text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    </yt-formatted-string>\n    <a id="subheader-link" class="yt-simple-endpoint style-scope ytd-medical-panel-section-renderer" hidden="[[!showSubheaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    </a>\n  </div>\n  <div id="paragraphs" class="style-scope ytd-medical-panel-section-renderer">\n    <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-medical-panel-section-renderer">\n      <div class="paragraph style-scope ytd-medical-panel-section-renderer">\n        <yt-formatted-string split-lines="" text="[[item]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="footer" hidden="[[!data.footer]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string link-inherit-color="" text="[[data.footer]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return tDr=p},{mode:1});var jt=function(){var p=_.w.apply(this,arguments)||this;p.isExpanded=!1;p.roundedContainer=!0;p.skipRoundingTop=!1;p.toggleExpandableSection=function(){p.isExpanded=!p.isExpanded};
return p};
_.A(jt,_.w);
jt.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]]"}}}}}};
jt.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
jt.prototype.dataChanged=jt.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],jt.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],jt.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],jt.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],jt.prototype,"isExpanded",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],jt.prototype,"roundedContainer",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],jt.prototype,"skipRoundingTop",void 0);_.H([_.Q(),_.x("design:type",Object)],jt.prototype,"toggleExpandableSection",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jt.prototype,"dataChanged",null);_.H([_.k({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],jt);
_.D(jt,"ytd-medical-panel-content-renderer",function(){if(sEU!==void 0)return sEU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-medical-panel-content-renderer">\n  <div id="sections" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="expand" hidden="[[isExpanded]]"></div>\n  <div id="expandable-sections" hidden="[[!isExpanded]]" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="collapse" hidden="[[!isExpanded]]"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return sEU=p},{mode:1});_.ox("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var bn=function(){var p=_.w.apply(this,arguments)||this;p.roundedContainer=!0;p.amsterdamEnabled=_.n("enable_desktop_amsterdam_info_panels");p.hasTitle=!1;p.linkIcon="OPEN_IN_NEW";p.isDismissed=!1;return p};
_.A(bn,_.w);
bn.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"}}}};
bn.prototype.computeHasTitle=function(p){return!(p==null||!p.title)};
bn.prototype.onClick=function(p){var y,l=(y=this.data)==null?void 0:y.headerEndpoint;!_.WN(_.Jx(p),this.hostElement,["BUTTON".toString()])&&l&&this.ytComponentBehavior.resolveCommand(l)};
_.Jh.Object.defineProperties(bn.prototype,{background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTAINER_BACKGROUND_",""):""}},
titleStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.titleStyle?this.data.titleStyle.replace("INFO_PANEL_CONTAINER_TITLE_STYLE_",""):""}},
showLinkIcon:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.data)==null?void 0:p.disableBottomDivider)||!((y=this.data)==null?0:y.title)}}});
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],bn.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],bn.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],bn.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],bn.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],bn.prototype,"roundedContainer",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],bn.prototype,"amsterdamEnabled",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.x("design:type",Object)],bn.prototype,"hasTitle",void 0);
_.H([_.Q({type:_.n("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.g("data.background"),_.x("design:type",Object),_.x("design:paramtypes",[])],bn.prototype,"background",null);_.H([_.Q({type:_.n("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.g("data.titleStyle"),_.x("design:type",Object),_.x("design:paramtypes",[])],bn.prototype,"titleStyle",null);
_.H([_.Q({type:_.n("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.g("data.titleStyle"),_.x("design:type",Object),_.x("design:paramtypes",[])],bn.prototype,"showLinkIcon",null);_.H([_.Q(),_.x("design:type",String)],bn.prototype,"linkIcon",void 0);_.H([_.Q({type:_.n("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bn.prototype,"hideDivider",null);
_.H([_.Q({selectorArgs:["data.dismissStateEntityKey"],selector:function(p,y){p=_.Ae(p.entities,"dismissState",y);return(p==null?void 0:p.isDismissed)||(p==null?void 0:p.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(p==null?void 0:p.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.x("design:type",Object)],bn.prototype,"isDismissed",void 0);_.H([_.k({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],bn);
_.D(bn,"ytd-info-panel-container-renderer",function(){if(qmQ!==void 0)return qmQ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[isDismissed]]" class="style-scope ytd-info-panel-container-renderer">\n  <div class="header style-scope ytd-info-panel-container-renderer" hidden="[[!data.title]]" on-click="onClick">\n    <h2 class="header-left-items style-scope ytd-info-panel-container-renderer">\n      <yt-icon class="header-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n      </yt-icon>\n      <yt-formatted-string class="title style-scope ytd-info-panel-container-renderer" text="[[data.title]]"></yt-formatted-string>\n      <yt-icon class="link-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!linkIcon]]" hidden="[[!showLinkIcon]]" icon="[[linkIcon]]">\n      </yt-icon>\n    </h2>\n    <div id="header-menu" class="style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div class="divider-container style-scope ytd-info-panel-container-renderer" hidden="[[hideDivider]]">\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div id="content" class="style-scope ytd-info-panel-container-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return qmQ=p},{mode:1});var ETQ;_.ox("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var nm=function(){var p=_.w.apply(this,arguments)||this;p.modernTypography=_.n("web_modern_typography");return p};
_.A(nm,_.w);nm.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
nm.prototype.computeStyle=function(p){return p?p:""};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],nm.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],nm.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.x("design:type",String)],nm.prototype,"titleStyle",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],nm.prototype,"modernTypography",void 0);_.H([_.k({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],nm);
_.D(nm,"ytd-item-section-header-renderer",function(){if(ETQ!==void 0)return ETQ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-item-section-header-renderer">\n  <div id="title" class="style-scope ytd-item-section-header-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-item-section-header-renderer"></yt-formatted-string>\n</div>\n<div id="buttons" class="style-scope ytd-item-section-header-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return ETQ=p},{mode:1});var JA$;var cAB,e1v=function(){return cAB!==void 0?cAB:cAB=document.createElement("template")};
document.head.appendChild(e1v().content);var h1N;_.GI=new _.WE("VOTING_ANIMATION_CONTROLLER_TOKEN");var usP=_.aF(function(p){var y=p.data;var l=_.sM("div"),q=_.sM("div");p=_.c(_.nr("VOTE_STATUS_NONE",void 0,"FVF7mc"));var t=p.next().value,E=p.next().value,e=_.So(iea,function(){var b;return(b=y())==null?void 0:b.entityKey}),C=_.n("web_enable_voting_animation")||_.n("enable_music_web_cairo_voting_animation");
_.xZ(function(){var b;((b=y().initialState)==null?0:b.status)&&E(y().initialState.status)});
var u=function(){var b,P,Z=(P=(b=y().initialState)==null?void 0:b.votes)!=null?P:0,K;b=(K=y().initialState)==null?void 0:K.status;return b==="VOTE_STATUS_UPVOTED"?Z-1:b==="VOTE_STATUS_DOWNVOTED"?Z+1:Z},a=function(){return t()==="VOTE_STATUS_UPVOTED"?u()+1:t()==="VOTE_STATUS_DOWNVOTED"?u()-1:u()},m=function(b){var P=b?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
E(P);var Z=a(),K=_.WC().resolve(_.RK(_.GI)),F=e();F&&(b&&(F==null?0:F.upvoteDefaultButtonOnTap)?_.tb(F.upvoteDefaultButtonOnTap,{form:{element:l.value},disableClickTracking:!0}):(F==null?0:F.upvoteToggledButtonOnTap)&&_.tb(F.upvoteToggledButtonOnTap,{form:{element:l.value},disableClickTracking:!0}));var L;b=(L=F==null?void 0:F.enableOptimisticReordering)!=null?L:y().enableOptimisticReordering;C&&K&&y().itemId&&b&&CUx(K,y().itemId,Z,P)},U=function(b){var P=b?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
E(P);var Z=a(),K=_.WC().resolve(_.RK(_.GI)),F=e();F&&(b&&(F==null?0:F.downvoteDefaultButtonOnTap)?_.tb(F.downvoteDefaultButtonOnTap,{form:{element:q.value},disableClickTracking:!0}):(F==null?0:F.downvoteToggledButtonOnTap)&&_.tb(F.downvoteToggledButtonOnTap,{form:{element:q.value},disableClickTracking:!0}));var L;b=(L=F==null?void 0:F.enableOptimisticReordering)!=null?L:y().enableOptimisticReordering;C&&K&&y().itemId&&b&&CUx(K,y().itemId,Z,P)};
p={};p=_.ip("ytVotingViewModelVoteCount",(p.ytVotingViewModelVoteCountDisabled=function(){return y().isDisabled},p));
return _.R("voting-view-model",{class:"ytVotingViewModelHost"},_.R("div",{el:l},_.R(_.di,{data:function(){var b=_.G(y().upvoteButton,_.BN);return{toggleButtonViewModel:Object.assign({},b,{isToggled:t()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(b){return _.R(_.fo,{data:b.data,
onToggle:m})}})),_.R("div",{class:p},function(){var b,P,Z;
return t()==="VOTE_STATUS_UPVOTED"?(b=y().initialState)==null?void 0:b.compactVotesUpvoted:t()==="VOTE_STATUS_DOWNVOTED"?(P=y().initialState)==null?void 0:P.compactVotesDownvoted:(Z=y().initialState)==null?void 0:Z.compactVotes}),_.R("div",{el:q},_.R(_.di,{data:function(){var b=_.G(y().downvoteButton,_.BN);
return{toggleButtonViewModel:Object.assign({},b,{isToggled:t()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(b){return _.R(_.fo,{data:b.data,
onToggle:U})}})))},"Rb");_.bp(_.aF(function(p){var y=p.data;return _.R("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.R("div",{class:_.ip("ytEngagementBarViewModelEngagementBarWrapper",p.className)},_.R(_.di,{data:function(){return y().actions}},{votingViewModel:usP})))},"Sb"),"engagement-bar-view-model",{props:{data:_.Co,
className:_.Co}});var Pk=function(){var p=_.w.apply(this,arguments)||this;p.playlistVotingAnimationEnabled=_.n("web_enable_voting_animation");p.downloadProgress=0;p.transferState="TRANSFER_STATE_UNKNOWN";p.downloadState="DOWNLOAD_STATE_UNKNOWN";p.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";p.offlineVideoPolicyExpirationTimestamp=0;return p};
_.A(Pk,_.w);_.J=Pk.prototype;_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.engagementBar":{id:"engagement-bar",mapping:{engagementBarViewModel:"engagement-bar-view-model"}}}};
_.J.canReorderChanged=function(){this.persistentDragHandle=_.n("kevlar_playlist_drag_handles")&&this.canReorder};
_.J.onDrag=function(){if(this.thumbnail){var p=_.jR(this.thumbnail).querySelector("yt-image");p&&(p.shouldRenderLazy=!1)}};
_.J.onMenuOverlayChanged=function(p,y){this.menuOpened=y};
_.J.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.J.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.J.onContentsTap=function(p){var y,l=(y=this.data)==null?void 0:y.serviceEndpoints;if(l&&l.length===1&&_.G(l[0],Ha_)&&!_.WN(_.Jx(p),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(l[0]);else{var q;(y=(q=this.data)==null?void 0:q.navigationEndpoint)&&_.n("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?R1U(_.WC().resolve(_.IA),y):(_.Sy().playlistSuggestionsShelfActivation=
!0,_.W7B(_.WC().resolve(_.IA),y)):y&&!_.WN(_.Jx(p),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.n("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Ub(this.hostElement,"yt-navigate",{endpoint:y}):this.ytComponentBehavior.resolveCommand(y))}};
_.J.computeStyle=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.J.computeThumbnailWidth=function(p){return p==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.J.downloadStateChanged=function(){this.isDownloads=!1;if(this.entityInfo||this.downloadRenderData){if(!this.entityInfo&&this.downloadRenderData)this.downloadRenderData={shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};else{if(!this.entityInfo)return;this.downloadRenderData=P28(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference,!0);this.isDownloads=Object.keys(this.downloadRenderData).length>0}this.set("data",
Object.assign({},this.data,this.downloadRenderData))}};
_.J.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.J.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.J.dataChanged=function(){if(this.data){var p,y,l,q=((p=this.downloadRenderData)==null?void 0:p.badges)&&((y=this.downloadRenderData)==null?void 0:y.badges)!==((l=this.data)==null?void 0:l.badges),t,E,e;p=((t=this.downloadRenderData)==null?void 0:t.thumbnailOverlays)&&((E=this.downloadRenderData)==null?void 0:E.thumbnailOverlays)!==((e=this.data)==null?void 0:e.thumbnailOverlays);(!this.downloadRenderData||q||p)&&this.downloadStateChanged()}};
_.J.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var p,y,l=(p=this.data.menu)==null?void 0:(y=p.menuRenderer)==null?void 0:y.items;if(l)for(p=_.c(l),y=p.next();!y.done;y=p.next())if(y=y.value,l=void 0,_.G((l=y.menuServiceItemRenderer)==null?void 0:l.serviceEndpoint,_.YB)){var q=l=void 0,t=void 0;y=(l=y)==null?void 0:(q=l.menuServiceItemRenderer)==null?void 0:(t=q.serviceEndpoint)==null?void 0:t.playlistEditEndpoint;t=q=void 0;if(l=(q=y)==null?void 0:(t=q.actions)==null?void 0:
t[0])q=void 0,l.setVideoId=(q=this.data)==null?void 0:q.setVideoId;t=q=l=void 0;if(y=(l=y)==null?void 0:(q=l.clientActions)==null?void 0:(t=q[0])==null?void 0:t.playlistRemoveVideosAction)l=void 0,y.setVideoIds=[(l=this.data)==null?void 0:l.setVideoId]}}};
_.Jh.Object.defineProperties(Pk.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
Pk.prototype.setVideoIdChanged=Pk.prototype.setVideoIdChanged;Pk.prototype.dataChanged=Pk.prototype.dataChanged;Pk.prototype.downloadStateChanged=Pk.prototype.downloadStateChanged;Pk.prototype.onMenuOverlayChanged=Pk.prototype.onMenuOverlayChanged;Pk.prototype.canReorderChanged=Pk.prototype.canReorderChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Pk.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Pk.prototype,"ytdReduxBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Pk.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.EW),_.x("design:type",Object)],Pk.prototype,"ytdLockupBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],Pk.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Pk.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Pk.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Pk.prototype,"canReorder",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Pk.prototype,"menuOpened",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Pk.prototype,"handleIsHovered",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Pk.prototype,"persistentDragHandle",void 0);_.H([_.Q(),_.x("design:type",Object)],Pk.prototype,"downloadRenderData",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],Pk.prototype,"styleType",void 0);_.H([_.Q({computed:"computeThumbnailWidth(data.style)"}),_.x("design:type",Number)],Pk.prototype,"thumbnailWidth",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Pk.prototype,"isDownloads",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Pk.prototype,"playlistVotingAnimationEnabled",void 0);
_.H([_.Q({selector:zU,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],Pk.prototype,"downloadProgress",void 0);_.H([_.Q(),_.x("design:type",Number)],Pk.prototype,"relativeDateReference",void 0);_.H([_.Q({selector:_.Ot,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],Pk.prototype,"transferState",void 0);_.H([_.Q({selector:X4t,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],Pk.prototype,"downloadState",void 0);
_.H([_.Q({selector:w4m,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],Pk.prototype,"offlinePolicyAction",void 0);_.H([_.Q({selector:iwL,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],Pk.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.H([_.Q({selector:S_t,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],Pk.prototype,"entityInfo",void 0);_.H([_.Q({selector:_.vV}),_.x("design:type",Boolean)],Pk.prototype,"miniplayerIsActive",void 0);
_.H([_.g("data"),_.x("design:type",String),_.x("design:paramtypes",[])],Pk.prototype,"playlistVideoId",null);_.H([_.rd("#thumbnail"),_.x("design:type",Object)],Pk.prototype,"thumbnail",void 0);_.H([_.k8("canReorder"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pk.prototype,"canReorderChanged",null);
_.H([_.VU("yt-menu-overlay-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Boolean]),_.x("design:returntype")],Pk.prototype,"onMenuOverlayChanged",null);_.H([_.k8("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pk.prototype,"downloadStateChanged",null);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pk.prototype,"dataChanged",null);_.H([_.k8("data.setVideoId"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pk.prototype,"setVideoIdChanged",null);_.H([_.k({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],Pk);
_.D(Pk,"ytd-playlist-video-renderer",function(){if(h1N!==void 0)return h1N;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.main_desktop.ui.renderers.sections.ytd_playlist_video_renderer.ytd.playlist.video.renderer.transition.css.js--\x3e<div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n  <yt-icon id="reorder" icon="yt-icons:drag_handle" class="style-scope ytd-playlist-video-renderer"></yt-icon>\n  <yt-formatted-string id="index" text="[[data.index]]" class="style-scope ytd-playlist-video-renderer"></yt-formatted-string>\n</div>\n<div id="content" on-click="onContentsTap" class="style-scope ytd-playlist-video-renderer">\n  <div id="container" class="style-scope ytd-playlist-video-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" hide-playback-status="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-video-renderer">\n    </ytd-thumbnail>\n    <div id="meta" class="style-scope ytd-playlist-video-renderer">\n      <h3 aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-video-renderer">\n        <ytd-badge-supported-renderer id="top-standalone-badge" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n        </ytd-badge-supported-renderer>\n        <a id="video-title" title$="[[getSimpleString(data.title)]]" class="yt-simple-endpoint style-scope ytd-playlist-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <ytd-video-meta-block class="playlist style-scope ytd-playlist-video-renderer" data="[[data]]" is-downloading="[[isDownloads]]"></ytd-video-meta-block>\n      <ytd-badge-supported-renderer id="bottom-badges" badges="[[data.bottomBadges]]" hidden="[[!data.bottomBadges]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-badge-supported-renderer id="bottom-standalone-badge" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <div id="engagement-bar" class="style-scope ytd-playlist-video-renderer"></div>\n    </div>\n  </div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-video-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="contributor" hidden="[[!data.contributorName]]" link-inherit-color="" text="[[data.contributorName]]" class="style-scope ytd-playlist-video-renderer">\n  </yt-formatted-string>\n  <div id="offer-button" class="style-scope ytd-playlist-video-renderer"></div>\n</div>\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-playlist-video-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);p.content.insertBefore(e1v().content.cloneNode(!0),p.content.firstChild);return h1N=p},{mode:1});var air;var A4=function(){return _.w.apply(this,arguments)||this};
_.A(A4,_.w);_.H([_.Q(),_.x("design:type",Object)],A4.prototype,"data",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],A4.prototype,"rendererBehavior",void 0);_.H([_.k({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],A4);
_.D(A4,"ytd-premium-browse-footer-renderer",function(){if(air!==void 0)return air;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-premium-browse-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="title style-scope ytd-premium-browse-footer-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-premium-browse-footer-renderer" text="[[data.subtitle]]">\n</yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return air=p},{mode:1});var mJM;var Zd=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return p};
_.A(Zd,_.w);_.J=Zd.prototype;_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.handleDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.J.computeHeaderLogoThumbnail=function(p,y){if(p)return y?p.darkLogo:p.lightLogo};
_.J.computeHeaderLogoHeight=function(p,y){var l,q,t;return(p=(l=this.computeHeaderLogoThumbnail(p,y))==null?void 0:(q=l.thumbnails)==null?void 0:(t=q[0])==null?void 0:t.height)&&p%31===0?"31":"24"};
_.J.computeHeaderLogoMarginBottom=function(p,y){return this.computeHeaderLogoHeight(p,y)==="24"?"0":"-7"};
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Zd.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Zd.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Zd.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Zd.prototype,"isDarkTheme",void 0);_.H([_.Q({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.x("design:type",Object)],Zd.prototype,"themeLogo",void 0);
_.H([_.Q({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.x("design:type",String)],Zd.prototype,"logoHeight",void 0);_.H([_.Q({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.x("design:type",String)],Zd.prototype,"logoMarginBottom",void 0);_.H([_.k({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Zd);
_.D(Zd,"ytd-primetime-promo-header-renderer",function(){if(mJM!==void 0)return mJM;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="logo" class="style-scope ytd-primetime-promo-header-renderer"><yt-img-shadow dimension="height" height$="[[logoHeight]]" margin-bottom$="[[logoMarginBottom]]" thumbnail="[[themeLogo]]" class="style-scope ytd-primetime-promo-header-renderer"></yt-img-shadow><ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-primetime-promo-header-renderer"></ytd-badge-supported-renderer></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return mJM=p},{mode:1});var UJO;var jEU=_.aF(function(p){var y=_.Ff(function(t){var E;(E=p.onClick)==null||E.call(p,t)}),l={},q={};
return _.R("yt-shelf-header-layout",{class:_.ip("shelf-header-layout-wiz",(l["shelf-header-layout-wiz--disable-horizontal-padding"]=p.disableHorizontalPadding,l["shelf-header-layout-wiz--disable-vertical-padding"]=p.disableVerticalPadding,l["shelf-header-layout-wiz--responsive"]=p.useResponsiveLayout,l["shelf-header-layout-wiz--narrow"]=function(){var t,E;return((t=p.useResponsiveLayout)==null?void 0:t.call(p))&&((E=p.forceSmallLayout)==null?void 0:E.call(p))},l["shelf-header-layout-wiz--is-overlay"]=
p.isOverlay,l["shelf-header-layout-wiz--tappable"]=!!p.onClick,l)),
"on:click":y,tabindex:function(){var t;return((t=p.isInteractive)==null?0:t.call(p))?0:void 0}},_.R(_.W,{cond:p.leadingIcon,
then:function(t){return _.R("div",{class:"shelf-header-layout-wiz__leading-icon"},_.R(_.DR,{icon:t}))},
else:function(){return _.R(_.W,{cond:p.hasLeadingImage,then:function(){var t,E={};return _.R("div",{class:_.ip("shelf-header-layout-wiz__leading-image",(E["shelf-header-layout-wiz__leading-image--circular-image"]=p.circularImage,E))},(t=p.leadingImage)==null?void 0:t.call(p))}})}}),_.R("div",{class:"shelf-header-layout-wiz__label-container"},_.R(_.W,{cond:p.hasSuperlabel,
then:function(){var t;return _.R("div",{class:"shelf-header-layout-wiz__superlabel"},(t=p.superlabel)==null?void 0:t.call(p))}}),_.R("div",{class:"shelf-header-layout-wiz__title-row"},_.R($JZ,{text:p.title,
className:_.ip("shelf-header-layout-wiz__title",(q["shelf-header-layout-wiz__title--small-title"]=p.forceSmallLayout,q)),tagLevel:p.tagLevel}),_.R(_.W,{cond:p.hasDetail,then:function(){var t;return _.R("div",{class:"shelf-header-layout-wiz__detail"},(t=p.detail)==null?void 0:t.call(p))}})),_.R(_.W,{cond:p.hasSublabel,
then:function(){var t;return _.R("div",{class:"shelf-header-layout-wiz__sublabel"},(t=p.sublabel)==null?void 0:t.call(p))}})),_.R(_.W,{cond:p.hasTrailingActions,
then:function(){var t;return _.R("div",{class:"shelf-header-layout-wiz__trailing-actions"},(t=p.trailingActions)==null?void 0:t.call(p))}}))},"Tb");
jEU.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var $JZ=_.aF(function(p){var y=p.text;var l=p.className;var q=p.tagLevel;return _.R(_.L6,null,_.R(_.Sc,{when:function(){return(q==null?void 0:q())===0}},function(){return _.R("h2",{class:l},y())}),_.R(_.Sc,{when:function(){return(q==null?void 0:q())===1}},function(){return _.R("h3",{class:l},y())}),_.R(_.Sc,{when:function(){return(q==null?void 0:q())===2}},function(){return _.R("h4",{class:l},y())}),_.R(_.FF,null,function(){return _.R("h2",{class:l},y())}))},"Ub");var G1P,b_v,nT$;_.Mp=_.aF(function(p){var y=p.className;var l=p.data;var q=p.disableHorizontalPadding;var t=p.disableVerticalPadding;var E=p.forceSmallLayout;var e=p.useResponsiveLayout;p=p.isOverlay;return _.R("yt-section-header-view-model",{class:_.ip("ytSectionHeaderViewModelHost",y),style:_.NW({"background-color":function(){return rrt(l().backgroundColor)?_.Y9(rrt(l().backgroundColor)):void 0}})},_.R(jEU,{hasDetail:!1,
title:function(){return _.R(_.CF,{text:function(){return l().headline}})},
hasTitle:!0,sublabel:function(){return _.R(b_v,{data:l})},
hasSublabel:function(){return!!l().sublabel||!!l().bottomBadge},
superlabel:function(){return _.R(nT$,{data:l})},
hasSuperlabel:function(){return!!l().superlabel||!!l().topBadge},
leadingImage:function(){return _.R(G1P,{leadingAccessory:function(){return l().leadingAccessory}})},
hasLeadingImage:function(){return!!l().leadingAccessory},
trailingActions:function(){return _.R(_.di,{data:function(){return l().trailingActions}},{flexibleActionsViewModel:d4})},
hasTrailingActions:function(){return!!l().trailingActions},
disableHorizontalPadding:q,disableVerticalPadding:t,forceSmallLayout:E,useResponsiveLayout:e,isOverlay:p,isInteractive:function(){return!!_.IW(l().rendererContext)},
onClick:function(C){if(_.pF(l().rendererContext)){var u=_.IW(l().rendererContext);u&&_.lp(u,{form:{element:C.target,event:C}})}}}))},"Vb");
G1P=_.aF(function(p){var y=p.leadingAccessory;return _.R(_.a4,null,_.R(_.W,{cond:function(){var l;return(l=y().image)!=null?l:_.cn(y().themedImage)},
then:function(l){return _.R(_.W$,{data:l,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.R(_.W,{cond:function(){return _.G(y().avatar,_.lI)},
then:function(l){return _.R(_.v5,{data:l})}}))},"Wb");
b_v=_.aF(function(p){var y=p.data;return _.R(_.a4,null,_.R(_.W,{cond:function(){return _.G(y().bottomBadge,FZV)},
then:function(l){var q={};return _.R(_.jI,{data:l,class:_.ip((q.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!l()&&!!y().sublabel},q))})}}),_.R(_.W,{cond:function(){return y().sublabel},
then:function(l){return _.R(_.CF,{text:l})}}))},"Xb");
nT$=_.aF(function(p){var y=p.data;return _.R(_.a4,null,_.R(_.W,{cond:function(){return _.G(y().topBadge,FZV)},
then:function(l){var q={};return _.R(_.jI,{data:l,class:_.ip((q.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!l()&&!!y().superlabel},q))})}}),_.R(_.W,{cond:function(){return y().superlabel},
then:function(l){return _.R(_.CF,{text:l})}}))},"Yb");_.bp(_.Mp,"yt-section-header-view-model",{props:{data:_.Co,className:_.Co,disableHorizontalPadding:_.Co,disableVerticalPadding:_.Co,forceSmallLayout:_.Co,useResponsiveLayout:_.Co,isOverlay:_.Co}});_.ox("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var Vm=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return p};
_.A(Vm,_.w);_.J=Vm.prototype;_.J.attached=function(){this.requestElementsPerRow()};
_.J.configureRendererStamper=function(){return{"data.panels":{id:"panels",mapping:{richItemRenderer:"ytd-rich-item-renderer"}},"data.header":{id:"header-contents",mapping:{primetimePromoHeaderRenderer:"ytd-primetime-promo-header-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.sectionHeader":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.details":{id:"details-panel",mapping:{primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer"}}}};
_.J.onDataChange=function(){var p=this;_.th(this,function(){p.updateItemVisibility()})};
_.J.onUpdateElementsPerRowAction=function(p){p&&this.elementsPerRow!==p&&(this.elementsPerRow=p,this.updateItemVisibility())};
_.J.updateItemVisibility=function(){var p=this;this.data&&this.data.panels&&_.jR(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(y,l){y.hidden=l>p.elementsPerRow-1})};
_.J.requestElementsPerRow=function(){_.Ub(this.hostElement,"yt-request-elements-per-row")};
Vm.prototype.onDataChange=Vm.prototype.onDataChange;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Vm.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],Vm.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Vm.prototype,"actionHandlerBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],Vm.prototype,"data",void 0);_.H([_.Q({value:3}),_.x("design:type",Number)],Vm.prototype,"elementsPerRow",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Vm.prototype,"onDataChange",null);_.H([_.k({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],Vm);
_.D(Vm,"ytd-primetime-promo-renderer",function(){if(UJO!==void 0)return UJO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-primetime-promo-renderer">\n  <div id="header" class="style-scope ytd-primetime-promo-renderer">\n    <div id="header-contents" hidden="[[data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="shelf-header-container" hidden="[[!data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer">\n      <div id="section-header-container" class="style-scope ytd-primetime-promo-renderer"></div>\n      <div id="details-panel" hidden="[[!data.details]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n  </div>\n  <div id="panels" class="style-scope ytd-primetime-promo-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-primetime-promo-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return UJO=p},{mode:1});var PUZ;var gw=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return p};
_.A(gw,_.w);gw.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
gw.prototype.handleButtonRefreshAction=function(p){if(p=_.G(p,kk$))this.set("data.button",p.membershipButton),this.notifyPath("data.button")};
_.Jh.Object.defineProperties(gw.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.data)==null?void 0:(y=p.avatars)==null?void 0:y.slice(0,8))||[]}}});
_.H([_.Q(),_.x("design:type",Object)],gw.prototype,"data",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],gw.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],gw.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],gw.prototype,"rendererBehavior",void 0);_.H([_.g("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],gw.prototype,"avatars",null);
_.H([_.k({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],gw);
_.D(gw,"ytd-recognition-shelf-renderer",function(){if(PUZ!==void 0)return PUZ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-recognition-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-recognition-shelf-renderer">\n  <div id="text-container" class="style-scope ytd-recognition-shelf-renderer">\n    <yt-formatted-string class="title style-scope ytd-recognition-shelf-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-recognition-shelf-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n  </div>\n  <div id="avatars-container" class="style-scope ytd-recognition-shelf-renderer">\n    <template is="dom-repeat" items="[[avatars]]" as="avatar" class="style-scope ytd-recognition-shelf-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-recognition-shelf-renderer" thumbnail="[[avatar]]"></yt-img-shadow>\n    </template>\n  </div>\n  <div id="action-button" class="style-scope ytd-recognition-shelf-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return PUZ=p},{mode:1});var AAP;var Z_v;var Qm=function(){var p=_.w.apply(this,arguments)||this;p.modernButtons=_.n("web_modern_buttons");return p};
_.A(Qm,_.w);_.J=Qm.prototype;
_.J.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.J.dataChanged=function(){this.collapsed=!0};
_.J.computeVisibleItems=function(p,y){return p!==void 0&&p.items?y?p.items.slice(0,this.data.collapsedItemCount):p.items:[]};
_.J.computeHideShowMore=function(p,y,l){return p>=y||!l};
_.J.computeHideShowAll=function(p,y,l){return!(p&&y)||l};
_.J.onMoreClick=function(){this.collapsed=!1};
_.Jh.Object.defineProperties(Qm.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.n("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.$h("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.n("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
Qm.prototype.dataChanged=Qm.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Qm.prototype,"data",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Qm.prototype,"isSearch",void 0);
_.H([_.Q({computed:"computeVisibleItems(data,collapsed)"}),_.x("design:type",Array)],Qm.prototype,"visibleItems",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],Qm.prototype,"collapsed",void 0);_.H([_.Q({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.x("design:type",Boolean)],Qm.prototype,"hideShowMore",void 0);
_.H([_.Q({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.x("design:type",Boolean)],Qm.prototype,"hideShowAll",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Qm.prototype,"modernButtons",void 0);_.H([_.g("isSearch"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Qm.prototype,"typographyBump",null);
_.H([_.g("isSearch"),_.x("design:type",Object),_.x("design:paramtypes",[])],Qm.prototype,"lockupExperiments",null);_.H([_.g("isSearch"),_.x("design:type",String),_.x("design:paramtypes",[])],Qm.prototype,"thumbnailWidth",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qm.prototype,"dataChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],Qm);
_.D(Qm,"ytd-vertical-list-renderer",function(){if(Z_v!==void 0)return Z_v;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-list-renderer"></div>\n<div id="more" hidden="[[hideShowMore]]" class="style-scope ytd-vertical-list-renderer">\n  <yt-formatted-string text="[[data.collapsedStateButtonText]]" on-tap="onMoreClick" class="style-scope ytd-vertical-list-renderer">\n  </yt-formatted-string>\n</div>\n<div id="all" hidden="[[hideShowAll]]" class="style-scope ytd-vertical-list-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-vertical-list-renderer" href$="[[computeHref_(data.expandedStateButtonEndpoint]]" data="[[data.expandedStateButtonEndpoint]]">\n    <yt-formatted-string text="[[data.expandedStateButtonText]]" class="style-scope ytd-vertical-list-renderer">\n    </yt-formatted-string>\n  </a>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Z_v=p},{mode:1});var MDQ=_.c0(["#"]);_.ox("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var Km=function(){var p=_.w.apply(this,arguments)||this;p.isConstrainedList=!1;p.modernTypography=_.n("web_modern_typography");return p};
_.A(Km,_.w);_.J=Km.prototype;
_.J.configureRendererStamper=function(){return{"data.content":{id:"contents",mapping:{gridRenderer:"ytd-grid-renderer",horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:118},properties:{isSearch:"[[isSearch]]"}},horizontalMovieListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:302}},expandedShelfContentsRenderer:{component:"ytd-expanded-shelf-contents-renderer",properties:{isConstrainedList:"[[isConstrainedList]]"}},messageRenderer:{component:"ytd-message-renderer",
params:{shelf:!0}},verticalListRenderer:{component:"ytd-vertical-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.playAllButton":{id:"play-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",attributes:{condensed:!0},properties:{icon:"[[menuIcon]]"}}}},"data.sortFilter":{id:"sort-filter",
mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.J.computeThumbnailStyle=function(p){return p||""};
_.J.computePlaceAnnotationUnderTitle=function(){var p;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((p=this.data)==null?void 0:p.thumbnailStyle)||"")};
_.J.computeHrefWithDefault=function(p){return this.ytComponentBehavior.computeHref_(p)||_.Tut(MDQ)};
_.J.computeIsPromoShelf=function(p){var y;return(p=p==null?void 0:(y=p[0])==null?void 0:y.metadataBadgeRenderer)?p.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.J.computePlaceBadgeBesideTitle=function(p){var y;return(p==null?0:(y=p[0])==null?0:y.metadataBadgeRenderer)?!this.computeIsPromoShelf(p):!1};
_.J.computeMenuIcon=function(p){return this.computeIsPromoShelf(p)?"yt-icons:more_vert":"yt-icons:more"};
_.J.onDataChange=function(){var p,y;((p=this.data)==null?0:(y=p.content)==null?0:y.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.J.onLockupRequested=function(p){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&p.detail&&p.detail.videoIds){for(var y=this.data.content.gridRenderer.items,l=new Set,q=_.c(p.detail.videoIds),t=q.next();!t.done;t=q.next())l.add(t.value);p.detail.returnValue=y.filter(function(E){return E.gridVideoRenderer&&E.gridVideoRenderer.videoId&&l.has(E.gridVideoRenderer.videoId)}).map(function(E){return E.gridVideoRenderer})}};
_.J.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
Km.prototype.onLockupRequested=Km.prototype.onLockupRequested;Km.prototype.onDataChange=Km.prototype.onDataChange;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Km.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],Km.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Km.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.vG),_.x("design:type",Object)],Km.prototype,"ironResizableBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Km.prototype,"data",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Km.prototype,"isSearch",void 0);_.H([_.Q(),_.x("design:type",Object)],Km.prototype,"isConstrainedList",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.n("kevlar_fluid_dismiss")}}),
_.x("design:type",Boolean)],Km.prototype,"enableFluidDismiss",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.x("design:type",String)],Km.prototype,"thumbnailStyle",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Km.prototype,"modernTypography",void 0);_.H([_.Q({computed:"computeMenuIcon(data.badges)"}),_.x("design:type",String)],Km.prototype,"menuIcon",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Km.prototype,"onDataChange",null);_.H([_.VU("yt-lockup-requested"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Km.prototype,"onLockupRequested",null);_.H([_.k({is:"ytd-shelf-renderer",disableElementRegistration:!0})],Km);
_.D(Km,"ytd-shelf-renderer",function(){if(AAP!==void 0)return AAP;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return AAP=p},{mode:1});var VDr;var ww=function(){return _.w.apply(this,arguments)||this};
_.A(ww,_.w);ww.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Jh.Object.defineProperties(ww.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ww.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ww.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ww.prototype,"data",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],ww.prototype,"isPlaylist",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],ww.prototype,"isClipList",void 0);
_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],ww.prototype,"isPlaylistPageWithFilters",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ww.prototype,"hasTitle",null);_.H([_.Q(),_.g("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.x("design:type",Object),_.x("design:paramtypes",[])],ww.prototype,"isRightAligned",null);
_.H([_.k({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],ww);
_.D(ww,"ytd-sort-filter-header-renderer",function(){if(VDr!==void 0)return VDr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sort-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-sort-filter-header-renderer">\n  <div id="headings" hidden="[[!data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="filter-menu" class="style-scope ytd-sort-filter-header-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return VDr=p},{mode:1});var gTv;var rw=function(){var p=_.w.apply(this,arguments)||this;p.enableRightArrowHidden=_.n("channel_details_shelf_resize_observer");return p};
_.A(rw,_.w);rw.prototype.attached=function(){var p=this;this.enableRightArrowHidden&&(this.JSC$16258_throttledOnResize=new _.hy(function(){var y;(y=p.ytdHorizontalListBehavior)==null||y.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var y;
(y=p.JSC$16258_throttledOnResize)==null||y.fire()}),this.resizeObserver.observe(this.hostElement))};
rw.prototype.detached=function(){if(this.enableRightArrowHidden){var p;(p=this.resizeObserver)==null||p.disconnect();var y;(y=this.JSC$16258_throttledOnResize)==null||y.dispose()}};
rw.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]]"}}}}}};
rw.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Jh.Object.defineProperties(rw.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.n("enable_creator_details_shelf_m2")){var p=[],y;((y=this.data)==null?0:y.creatorVideosButton)&&p.push(this.data.creatorVideosButton);var l;((l=this.data)==null?0:l.creatorAboutButton)&&p.push(this.data.creatorAboutButton);y=_.c(this.data.creatorCustomUrlButtons||[]);for(l=y.next();!l.done;l=y.next())p.push(l.value);return p}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.n("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],rw.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],rw.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.jE.YtdHorizontalListBehavior),_.x("design:type",Object)],rw.prototype,"ytdHorizontalListBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],rw.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],rw.prototype,"engagementPanel",void 0);
_.H([_.Q(),_.x("design:type",Object)],rw.prototype,"enableRightArrowHidden",void 0);_.H([_.g("enableRightArrowHidden","atEnd"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rw.prototype,"hideRightArrow",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],rw.prototype,"creatorCustomUrlButtons",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("data","creatorCustomUrlButtons"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rw.prototype,"showCreatorCustomUrlButtons",null);_.H([_.g("showCreatorCustomUrlButtons"),_.x("design:type",Number),_.x("design:paramtypes",[])],rw.prototype,"channelAvatarSize",null);_.H([_.k({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],rw);
_.D(rw,"ytd-video-description-infocards-section-renderer",function(){if(gTv!==void 0)return gTv;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return gTv=p},{mode:_.ZS("kevlar_poly_si_batch_j067")?1:2});var QE$;var St=function(){return _.w.apply(this,arguments)||this};
_.A(St,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],St.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],St.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],St.prototype,"data",void 0);_.H([_.Q({computed:"computeIcon_(data.infoIcon)"}),_.x("design:type",Object)],St.prototype,"infoIcon",void 0);_.H([_.k({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],St);
_.D(St,"ytd-eom-settings-disclaimer-renderer",function(){if(QE$!==void 0)return QE$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-eom-settings-disclaimer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="app" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  <yt-icon id="info" disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-icon>\n  <yt-formatted-string id="label" text="[[data.disclaimer]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-formatted-string>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return QE$=p},{mode:1});var K7O;var FV=function(){return _.w.apply(this,arguments)||this};
_.A(FV,_.w);_.Jh.Object.defineProperties(FV.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.suppressPaddingDisclaimer)}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],FV.prototype,"componentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],FV.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],FV.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],FV.prototype,"suppressPaddingDisclaimer",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],FV);
_.D(FV,"ytd-product-list-header-renderer",function(){if(K7O!==void 0)return K7O;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-product-list-header-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.title]]" class="style-scope ytd-product-list-header-renderer">\n    </yt-formatted-string>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return K7O=p},{mode:1});var wXr;var Lm=function(){return _.w.apply(this,arguments)||this};
_.A(Lm,_.w);Lm.prototype.computeThumbnailStyle=function(p){if(p&&(p=_.z5(p)))return"background-color:"+p+";"};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Lm.prototype,"rendererBehaviors",void 0);_.H([_.Q(),_.x("design:type",Object)],Lm.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],Lm);
_.D(Lm,"ytd-hashtag-tile-renderer",function(){if(wXr!==void 0)return wXr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-section" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-section" class="style-scope ytd-hashtag-tile-renderer"><a class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="thumbnail" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-spacing-wrapper" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-color-wrapper" style="[[computeThumbnailStyle(data.hashtagBackgroundColor)]]" class="style-scope ytd-hashtag-tile-renderer"><yt-img-shadow height="64" thumbnail="[[data.hashtagThumbnail]]" width="64" class="style-scope ytd-hashtag-tile-renderer"></yt-img-shadow></div></div></div></a></div><div id="info-section" class="style-scope ytd-hashtag-tile-renderer"><a id="main-link" class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="info" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag" text="[[data.hashtag]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string><div id="metadata" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag-info-text" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string></div></div></a></div></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return wXr=p},{mode:1});var i_M;var ke=function(){return _.w.apply(this,arguments)||this};
_.A(ke,_.w);ke.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}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ke.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ke.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],ke);
_.D(ke,"ytd-sponsorships-alert-renderer",function(){if(i_M!==void 0)return i_M;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-sponsorships-alert-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-sponsorships-alert-renderer">\n  <div id="action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n  <div id="secondary-action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return i_M=p},{mode:1});var rAM;var Np=function(){return _.w.apply(this,arguments)||this};
_.A(Np,_.w);Np.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Jh.Object.defineProperties(Np.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.n("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.n("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.H([_.V(_.IP),_.x("design:type",Object)],Np.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.V(_.EW),_.x("design:type",Object)],Np.prototype,"ytdLockupBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Np.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.H([_.Q({selector:_.pX}),_.x("design:type",Object)],Np.prototype,"isGridViewEnabled",void 0);
_.H([_.g("isGridViewEnabled"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Np.prototype,"watchFeedBigThumbs",null);_.H([_.g("isGridViewEnabled"),_.Q({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],Np.prototype,"thumbnailWidth",null);_.H([_.Q(),_.x("design:type",Object)],Np.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],Np);
_.D(Np,"ytd-compact-movie-renderer",function(){if(rAM!==void 0)return rAM;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-movie-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-movie-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-compact-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <template is="dom-if" if="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n      <h3 id="movie-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-movie-renderer">\n        [[getSimpleString(data.title)]]\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-movie-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-movie-renderer" data="[[data]]" no-endpoints="">\n        </ytd-video-meta-block>\n        <span class="movie-metadata style-scope ytd-compact-movie-renderer">[[getSimpleString(data.topMetadataItems.0)]]</span>\n      </div>\n      <template is="dom-if" if="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-movie-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-movie-renderer"></yt-interaction>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return rAM=p},{mode:1});var Smr;var F7O;var L7Z=_.OY("HTML_DIR")==="rtl",Dd=function(){var p=_.w.apply(this,arguments)||this;p.engagementPanel=!1;p.maxLines=2;p.expandButtonOffset=0;p.showExpandButton=!1;p.isTruncated=!1;p.isExpanded=!1;p.currentSnippetType=2;p.alwaysShowExpandButton=!1;p.JSC$16275_lastWidth=NaN;p.observer=null;p.left=0;p.right=0;p.mid=0;p.longestSnippetLength=0;p.isFinalSnippet=!1;p.isFirstMutation=!1;p.isResetMutation=!1;p.OVERFLOW_THRESHOLD=5;return p};
_.A(Dd,_.w);_.J=Dd.prototype;_.J.onClick=function(p){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.WN(_.Jx(p)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var y;if((y=window.getSelection())==null||!y.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.J.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.J.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.J.updateTextOnSnippetTypeChange=function(){_.n("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.J.setUpBinarySearch=function(p){p=p*this.maxLines/8;this.left=0;var y,l;this.right=Math.min(p*2,(l=(y=this.simpleText)==null?void 0:y.length)!=null?l:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.J.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.J.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.vs(new _.SM("AttributedSnippet is empty when the description is not empty",this.text))};
_.J.mutationCallback=function(){if(this.observer!=null){var p=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var y=Math.floor(p*this.maxLines/8);this.setSnippetText(this.text,y);y!==0||this.attributedTextIsEmpty()||_.vs(new _.SM("Estimated visible character count is 0 for AttributedString description",this.text));this.isFinalSnippet=!0;return}if(this.isResetMutation){this.isResetMutation=!1;this.observer.disconnect();this.attributedTextIsEmpty()?
this.maybeLogWarningForEmptyAttributedSnippet():this.resize(!0);return}}if(this.isFinalSnippet)this.expandButtonOffset=this.computeExpandButtonOffset(),this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else if(this.isFirstMutation)if(this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;p=p*this.maxLines/8;this.left=0;var l;this.right=Math.min(p*2,(l=(y=this.simpleText)==null?void 0:y.length)!=null?l:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.J.mutationObserve=function(p){var y=this;this.observer||(this.observer=new MutationObserver(function(){y.mutationCallback()}));
this.observer.observe(p,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.J.attached=function(){var p=this;_.th(this,function(){p.resize()})};
_.J.isExpandedChanged=function(){_.Ub(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.J.updateSnippetContainerMaxHeight=function(){this.isExpanded?(this.snippetContainer.style.setProperty("overflow",""),this.snippetContainer.style.setProperty("max-height","")):(this.snippetContainer.style.setProperty("overflow","hidden"),this.snippetContainer.style.setProperty("max-height",2*this.maxLines+"rem"));this.resize(!0)};
_.J.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var p="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((L7Z?"left":"right")+",\n        #000 0%,\n        #000 "+(this.expandButtonOffset-24)+"px,\n        transparent "+this.expandButtonOffset+"px,\n        transparent 100%)");this.snippetContainer.style.setProperty("-webkit-mask-image",p);this.snippetContainer.style.setProperty("mask-image",
p)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(L7Z?"right":"left",this.expandButtonOffset+"px")};
_.J.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.J.setSnippetText=function(p,y){p||(p={});if(_.CY(p)){var l=ew(p,y);l.attachmentRuns||l.commandRuns||l.decorationRuns||l.styleRuns||l.alignment||l.lineBreakMode?this.attributedSnippetTextEl?(_.n("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=ew(p,y),this.attributedSnippetTextEl.headerRuns=ifg(y,this.headerRuns)):this.attributedSnippetText={data:ew(p,y),headerRuns:ifg(y,this.headerRuns)},this.currentSnippetType=0):_.vs(new _.SM("Tried to set snippet text when HTML element was null",
p)):(this.plainSnippetText.textContent=Jb(p.content||"",y),this.currentSnippetType=2)}else{a:{l=SFt(p,y);if(l.runs){l=_.c(l.runs);for(var q=l.next();!q.done;q=l.next())if(q=q.value,q.bold||q.deemphasize||q.italics||q.strikethrough||q.textColor||q.navigationEndpoint||_.G(q,Yg)){l=!0;break a}}l=!1}l?this.formattedSnippetText?(this.formattedSnippetText.text=SFt(p,y),this.currentSnippetType=1):_.vs(new _.SM("Tried to set snippet text when HTML element was null",p)):(this.plainSnippetText.textContent=
Jb(_.JB(p),y),this.currentSnippetType=2)}};
_.J.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.J.attributedTextIsEmpty=function(){var p=this.text;if(!_.CY(p))return!0;var y;return((y=p.content)==null?void 0:y.length)===0?!0:!1};
_.J.resize=function(p){if(this.snippetText){if(p===void 0?0:p)this.JSC$16275_lastWidth=NaN;var y=this.hostElement.offsetWidth;if(y!==this.JSC$16275_lastWidth&&!this.isExpanded)if(this.JSC$16275_lastWidth=y,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;p=0;var l,q;y=Math.min(y*this.maxLines/8*2,(q=(l=this.simpleText)==null?void 0:l.length)!=null?q:0)-1;for(l=0;p<=y;)q=Math.floor(p+(y-p)/2),this.setSnippetText(this.text,q),this.isOverflowing()?y=q-1:(p=q+1,l=q);this.setSnippetText(this.text,l);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.J.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.J.onExpandClick=function(){var p=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.n("inline_expander_reset_focus_killswitch")||_.th(this,function(){var y;((y=_.WC().resolve(_.RK(_.Zu)))==null?0:y.isKeyBoardInUse())&&_.tp(p.hostElement)});
_.Ub(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.J.onCollapseClick=function(){this.collapse();_.Ub(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.J.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.J.computeExpandButtonOffset=function(){var p=this.expandSizer;return p?L7Z?p.offsetParent?p.offsetParent.offsetWidth-p.offsetWidth-p.offsetLeft:0:p.offsetLeft:0};
_.Jh.Object.defineProperties(Dd.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.CY(this.text)?this.text.content||"":_.JB(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 _.CY(this.text)?!0:this.text&&_.n("web_replace_formatted_with_attributed_string")&&y_m(this.text)?(this.text=_.zp(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}}});
Dd.prototype.onTextChanged=Dd.prototype.onTextChanged;Dd.prototype.updateMaskAndExpandButtonOffset=Dd.prototype.updateMaskAndExpandButtonOffset;Dd.prototype.updateSnippetContainerMaxHeight=Dd.prototype.updateSnippetContainerMaxHeight;Dd.prototype.isExpandedChanged=Dd.prototype.isExpandedChanged;Dd.prototype.updateTextOnSnippetTypeChange=Dd.prototype.updateTextOnSnippetTypeChange;Dd.prototype.updateIsFormattedExpanded=Dd.prototype.updateIsFormattedExpanded;Dd.prototype.updateIsAttributedExpanded=Dd.prototype.updateIsAttributedExpanded;
Dd.prototype.onClick=Dd.prototype.onClick;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Dd.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Dd.prototype,"text",void 0);_.H([_.Q(),_.x("design:type",Array)],Dd.prototype,"headerRuns",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Dd.prototype,"engagementPanel",void 0);_.H([_.Q(),_.x("design:type",Object)],Dd.prototype,"maxLines",void 0);
_.H([_.Q(),_.x("design:type",String)],Dd.prototype,"expandLabel",void 0);_.H([_.Q(),_.x("design:type",String)],Dd.prototype,"collapseLabel",void 0);_.H([_.Q(),_.x("design:type",Object)],Dd.prototype,"expandCommand",void 0);_.H([_.Q(),_.x("design:type",Object)],Dd.prototype,"expandButtonOffset",void 0);_.H([_.g("text"),_.x("design:type",String),_.x("design:paramtypes",[])],Dd.prototype,"simpleText",null);
_.H([_.VU("click"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Dd.prototype,"onClick",null);_.H([_.g("text","isExpanded"),_.x("design:type",Object),_.x("design:paramtypes",[])],Dd.prototype,"expandedText",null);_.H([_.g("headerRuns","isExpanded"),_.x("design:type",Object),_.x("design:paramtypes",[])],Dd.prototype,"expandedHeaderRuns",null);
_.H([_.g("text"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Dd.prototype,"hasAttributedStringText",null);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Dd.prototype,"showExpandButton",void 0);_.H([_.g("collapseLabel","isExpanded"),_.x("design:type",Object),_.x("design:paramtypes",[])],Dd.prototype,"showCollapseButton",null);_.H([_.Q(),_.x("design:type",Object)],Dd.prototype,"isTruncated",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Dd.prototype,"isExpanded",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Dd.prototype,"isAttributedExpanded",void 0);_.H([_.gd("isExpanded","hasAttributedStringText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dd.prototype,"updateIsAttributedExpanded",null);_.H([_.Q(),_.x("design:type",Boolean)],Dd.prototype,"isFormattedExpanded",void 0);
_.H([_.gd("isExpanded","hasAttributedStringText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dd.prototype,"updateIsFormattedExpanded",null);_.H([_.Q(),_.x("design:type",Number)],Dd.prototype,"currentSnippetType",void 0);_.H([_.g("currentSnippetType"),_.x("design:type",Object),_.x("design:paramtypes",[])],Dd.prototype,"useAttributedSnippet",null);
_.H([_.g("currentSnippetType"),_.x("design:type",Object),_.x("design:paramtypes",[])],Dd.prototype,"useFormattedSnippet",null);_.H([_.g("currentSnippetType"),_.x("design:type",Object),_.x("design:paramtypes",[])],Dd.prototype,"usePlainSnippet",null);_.H([_.Q(),_.x("design:type",Object)],Dd.prototype,"alwaysShowExpandButton",void 0);_.H([_.gd("currentSnippetType"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dd.prototype,"updateTextOnSnippetTypeChange",null);
_.H([_.Q(),_.x("design:type",Object)],Dd.prototype,"attributedSnippetText",void 0);_.H([_.rd("#snippet"),_.x("design:type",HTMLElement)],Dd.prototype,"snippetContainer",void 0);_.H([_.rd("#snippet-text"),_.x("design:type",HTMLElement)],Dd.prototype,"snippetText",void 0);_.H([_.rd("#plain-snippet-text"),_.x("design:type",HTMLElement)],Dd.prototype,"plainSnippetText",void 0);_.H([_.rd("#formatted-snippet-text"),_.x("design:type",Object)],Dd.prototype,"formattedSnippetText",void 0);
_.H([_.rd("#attributed-snippet-text"),_.x("design:type",Object)],Dd.prototype,"attributedSnippetTextEl",void 0);_.H([_.rd("#expand"),_.x("design:type",HTMLElement)],Dd.prototype,"expandButton",void 0);_.H([_.rd("#expand-sizer"),_.x("design:type",HTMLElement)],Dd.prototype,"expandSizer",void 0);_.H([_.k8("isExpanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dd.prototype,"isExpandedChanged",null);
_.H([_.gd("isExpanded","maxLines"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dd.prototype,"updateSnippetContainerMaxHeight",null);_.H([_.gd("isTruncated","showExpandButton","expandButtonOffset"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dd.prototype,"updateMaskAndExpandButtonOffset",null);
_.H([_.k8("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dd.prototype,"onTextChanged",null);_.H([_.k({is:"ytd-text-inline-expander",disableElementRegistration:!0})],Dd);
_.D(Dd,"ytd-text-inline-expander",function(){if(F7O===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);F7O=p}p=F7O;return p},{mode:2});var Hk=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return p};
_.A(Hk,_.w);Hk.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
Hk.prototype.handleUpdateDescriptionAction=function(p){if(p=_.G(p,_.JGN))if(p.attributedDescription)this.set("data.attributedDescriptionBodyText",p.attributedDescription);else if(p.description){var y;((y=this.data)==null?0:y.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.zp(p.description)):this.set("data.descriptionBodyText",p.description)}};
_.Jh.Object.defineProperties(Hk.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var p,y;return!((p=this.data)==null||!p.attributedDescriptionBodyText)||!((y=this.data)==null||!y.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null?0:p.collapsedLineCount){var y;return(y=this.data)==null?void 0:y.collapsedLineCount}p=_.UC("web_watch_description_collapsed_default_lines",12);if(_.n("ww_desc_line_page_size_ks"))return p;y=Math.round(_.Si().height*_.UC("web_watch_description_screen_height_percentage",.5)/20);return Math.max(y,p)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return(l=(p=this.data)==null?void 0:p.descriptionBodyText)!=null?l:(y=this.data)==null?void 0:y.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.sourceAttributions}}});
Hk.prototype.panelContentVisibleChanged=Hk.prototype.panelContentVisibleChanged;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Hk.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Hk.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Hk.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Hk.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],Hk.prototype,"panelContentVisible",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Hk.prototype,"engagementPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Hk.prototype,"shortsPanel",void 0);_.H([_.rd("#inline-expander"),_.x("design:type",Object)],Hk.prototype,"inlineExpander",void 0);
_.H([_.gd("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hk.prototype,"panelContentVisibleChanged",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Hk.prototype,"hasDescriptionText",null);_.H([_.g("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],Hk.prototype,"collapsedLines",null);
_.H([_.g("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.x("design:type",Object),_.x("design:paramtypes",[])],Hk.prototype,"descriptionText",null);_.H([_.g("data","data.headerRuns"),_.x("design:type",Object),_.x("design:paramtypes",[])],Hk.prototype,"headerRuns",null);_.H([_.g("data","data.sourceAttributions"),_.x("design:type",Object),_.x("design:paramtypes",[])],Hk.prototype,"sourceAttributions",null);
_.H([_.k({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],Hk);
_.D(Hk,"ytd-expandable-video-description-body-renderer",function(){if(Smr!==void 0)return Smr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Smr=p},{mode:_.ZS("kevlar_poly_si_batch_j028")?1:2});var k1Z;var NbM=_.aF(function(p){var y=p.data;return _.R("factoid-renderer",{class:"ytwFactoidRendererHost"},_.R("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return y().accessibilityText}},_.R("span",{class:"ytwFactoidRendererValue"},_.R(_.CF,{text:function(){return y().value}})),_.R("span",{class:"ytwFactoidRendererLabel"},_.R(_.CF,{text:function(){return y().label}}))))},"Zb");_.bp(NbM,"factoid-renderer",{props:{data:_.Co}});_.bp(_.aF(function(p){var y=p.data;return _.R("upload-time-factoid-renderer",null,_.R(_.di,{data:function(){return y().factoid}},{factoidRenderer:NbM}))},"$b"),"upload-time-factoid-renderer",{props:{data:_.jw}});_.bp(_.aF(function(p){var y=p.data;return _.R("view-count-factoid-renderer",null,_.R(_.di,{data:function(){return y().factoid}},{factoidRenderer:NbM}))},"ac"),"view-count-factoid-renderer",{props:{data:_.jw}});var TI=function(){var p=_.w.apply(this,arguments)||this;p.shortsPanel=!1;p.engagementPanel=!1;p.watchWhileSdp=_.n("shorts_desktop_watch_while_sdp");return p};
_.A(TI,_.w);TI.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"}}}}};
_.Jh.Object.defineProperties(TI.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var p;return(p=this.data)==null?void 0:p.channel}}});
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],TI.prototype,"componentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],TI.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],TI.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],TI.prototype,"shortsPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],TI.prototype,"engagementPanel",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],TI.prototype,"watchWhileSdp",void 0);_.H([_.g("shortsPanel","engagementPanel","data.channel"),_.x("design:type",Object),_.x("design:paramtypes",[])],TI.prototype,"showChannelInfo",null);_.H([_.k({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],TI);
_.D(TI,"ytd-video-description-header-renderer",function(){if(k1Z!==void 0)return k1Z;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.title]]" class="style-scope ytd-video-description-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-video-description-header-renderer"></yt-formatted-string>\n</div>\n<template is="dom-if" if="[[showChannelInfo]]" class="style-scope ytd-video-description-header-renderer">\n    <div id="channel-info" class="style-scope ytd-video-description-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-video-description-header-renderer" href$="[[computeHref_(data.channelNavigationEndpoint)]]" data="[[data.channelNavigationEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="avatar" alt="[[getSimpleString(data.channel)]]" fit="" thumbnail="[[data.channelThumbnail]]" width="36" class="style-scope ytd-video-description-header-renderer">\n      </yt-img-shadow>\n    </a>\n    <ytd-channel-name id="channel-name" channel-name="[[getSimpleString(data.channel)]]" wrap-text="" class="style-scope ytd-video-description-header-renderer">\n    </ytd-channel-name>\n  </div>\n</template>\n\n<div id="factoids" class="style-scope ytd-video-description-header-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return k1Z=p},{mode:1});var DJ$;var xe=function(){return _.w.apply(this,arguments)||this};
_.A(xe,_.w);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],xe.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],xe.prototype,"ytRendererBehavior",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],xe.prototype,"noPadding",void 0);_.H([_.Q(),_.x("design:type",Object)],xe.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],xe);
_.D(xe,"ytd-list-item-view-model",function(){if(DJ$!==void 0)return DJ$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-list-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="list-item" class="style-scope ytd-list-item-view-model">\n  <template is="dom-if" if="[[data.leadingImage]]" class="style-scope ytd-list-item-view-model">\n    <div id="leading-image-container" class="style-scope ytd-list-item-view-model">\n      <yt-image alt="Leading image for [[data.title]]" data="[[data.leadingImage]]" height="24" class="style-scope ytd-list-item-view-model">\n        </yt-image>\n    </div>\n  </template>\n  <div id="content" class="style-scope ytd-list-item-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-list-item-view-model">\n     </yt-attributed-string>\n      <yt-attributed-string id="subtitle" data="[[data.subtitle]]" class="style-scope ytd-list-item-view-model">\n      </yt-attributed-string>\n  </div>\n  <yt-button-view-model data="[[data.iconButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope ytd-list-item-view-model">\n  </yt-button-view-model>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return DJ$=p},{mode:1});var H_B;var TbO;var xJM;var Bbi;var Bk=function(){var p=_.w.apply(this,arguments)||this;p.adaptiveFullWidth=!1;p.modernButtons=_.n("web_modern_buttons");p.buttonOverrides={style:"call-to-action",type:"filled"};p.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return p};
_.A(Bk,_.w);Bk.prototype.handleSetTimestamp_=function(p){this.data&&this.data.shortUrl&&(_.jR(this.hostElement).querySelector("#share-url").value=p.isSet?_.qi(this.data.shortUrl,"t",p.timestamp):this.data.shortUrl)};
Bk.prototype.handleSignalActionCopyShareUrl_=function(p,y){(_.n("killswitch_copy_link_target_check")||_.jR(this.hostElement).querySelector("#copy-button")===y)&&this.copyUrlToClipboard()};
Bk.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.jR(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
Bk.prototype.computeStyle_=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Bk.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Bk.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Bk.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.x("design:type",String)],Bk.prototype,"rendererStyle",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Bk.prototype,"adaptiveFullWidth",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Bk.prototype,"modernButtons",void 0);_.H([_.Q(),_.x("design:type",Object)],Bk.prototype,"buttonOverrides",void 0);_.H([_.z9({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Bk);
_.D(Bk,"yt-copy-link-renderer",function(){if(Bbi===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-copy-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_copy_link_renderer.yt.copy.link.renderer.css.js--\x3e<div id="bar" class="style-scope yt-copy-link-renderer">\n  <input id="share-url" dir="ltr" readonly="" size="45" value="[[data.shortUrl]]" class="style-scope yt-copy-link-renderer">\n  <yt-button-renderer id="copy-button" data="[[data.copyButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope yt-copy-link-renderer"></yt-button-renderer>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;xJM===void 0&&(xJM=document.createElement("template"));var q=xJM;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Bbi=p}p=Bbi;return p},{mode:2});_.ox("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var fm=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return p};
_.A(fm,_.w);_.J=fm.prototype;_.J.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.J.attached=function(){this.keyboardFocused=!1};
_.J.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var p=_.WC().resolve(_.RK(_.Zu));p&&(this.keyboardFocused=p.isKeyBoardInUse())}};
_.J.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.J.computeDescription_=function(){if(this.data){if(this.data.toggled&&this.data.toggledDescription)return this.data.toggledDescription;if(!this.data.toggled&&this.data.description)return this.data.description}};
_.J.onChange_=function(){if(this.data){var p=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;p&&this.ytComponentBehavior.resolveCommand(p);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.J.handleUpdateToggleAction_=function(p){(p=_.G(p,cHQ))&&this.data&&p.targetId==this.data.targetId&&this.set("data.toggled",p.toggled)};
_.J.toBoolean_=function(p){return!!p};
_.J.reset=function(){};
_.J.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JC("data-changed",this.data))};
_.J.updateDataToggledFromBinding=function(p){this.set("data.toggled",p.detail.value)};
fm.prototype.dataChangedForBinding=fm.prototype.dataChangedForBinding;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],fm.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],fm.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],fm.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],fm.prototype,"ytRendererBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],fm.prototype,"data",void 0);_.H([_.Q({computed:"computeDescription_(data.*)"}),_.x("design:type",Object)],fm.prototype,"description_",void 0);_.H([_.Q({value:function(){return!!_.WC().resolve(_.RK(_.Zu))&&_.n("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.x("design:type",Boolean)],fm.prototype,"useKeyboardFocused",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],fm.prototype,"keyboardFocused",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fm.prototype,"dataChangedForBinding",null);_.H([_.z9({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],fm);
_.D(fm,"yt-toggle-form-field-renderer",function(){if(TbO===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-toggle-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_toggle_form_field_renderer.yt.toggle.form.field.renderer.css.js--\x3e<div id="toggle-container" class="style-scope yt-toggle-form-field-renderer">\n  <div id="caption" class="style-scope yt-toggle-form-field-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button id="input" checked="[[data.toggled]]" disabled="[[toBoolean_(data.isDisabled)]]" noink="" on-change="onChange_" on-checked-changed="updateDataToggledFromBinding" on-focusin="onToggleButtonFocusin_" on-focusout="onToggleButtonFocusout_" class="style-scope yt-toggle-form-field-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<yt-formatted-string id="description" hidden="[[!description_]]" text="[[description_]]" class="style-scope yt-toggle-form-field-renderer">\n</yt-formatted-string>\n<div id="footer-container" class="style-scope yt-toggle-form-field-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;H_B===void 0&&(H_B=document.createElement("template"));var q=H_B;l.call(y,q.content.cloneNode(!0),p.content.firstChild);TbO=p}p=TbO;return p},{mode:2});var fiN;var vTU;var vk=function(){var p=_.w.apply(this,arguments)||this;p.isDarkTheme=!1;p.isSearch=!1;p.darkerDarkTheme=_.n("web_darker_dark_theme");p.noTopMargin=_.n("kevlar_watch_no_top_margin");p.maskFade=_.n("web_watch_chips_mask_fade");p.actionMap={"yt-related-chip-command":"handleRelatedChipCommand","yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.A(vk,_.w);_.J=vk.prototype;_.J.configureRendererStamper=function(){return{"data.chips":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer"}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.J.dataChanged=function(){var p=this.getSelectedIndex();if(p>0)this.selected=p;else{this.selected=0;var y,l;(y=this.ytScrollableChipCloudBehavior)==null||(l=y.reset)==null||l.call(y)}};
_.J.getSelectedIndex=function(){var p;if((p=this.data)==null||!p.chips)return-1;p=-1;for(var y,l=0;l<((y=this.data)==null?void 0:y.chips.length);l++){var q=void 0,t=void 0;if((q=this.data)==null?0:(t=q.chips[l].chipCloudChipRenderer)==null?0:t.isSelected){p=l;break}}return p};
_.J.onResize=function(){var p=this.ytScrollableChipCloudBehavior;_.th(p,p.setContainerWidthDiff);VX(this.ytScrollableChipCloudBehavior)};
_.J.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.J.handleRelatedChipCommand=function(p,y){p=this.JSC$16302_chipsSelector.indexOf(y);p!==-1&&this.JSC$16302_chipsSelector.selectIndex(p)};
_.J.handleChipCloudChipSelectAction=function(p){p=this.JSC$16302_chipsSelector.indexOf(p);p>-1&&this.JSC$16302_chipsSelector.selectIndex(p)};
_.J.handleChipCloudChipDeselectAction=function(){var p=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16302_chipsSelector&&((p==null?0:p.continuationCommand)?_.ny(this.hostElement,[p]):(p==null?0:p.searchEndpoint)?this.ytComponentBehavior.resolveCommand(p):p&&_.Gf(this.hostElement,[p],this.hostElement),this.JSC$16302_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.J.updateSelectedFromBinding=function(p){this.selected=p.detail.value};
vk.prototype.onResize=vk.prototype.onResize;vk.prototype.dataChanged=vk.prototype.dataChanged;vk.prototype.isSearchChanged=vk.prototype.isSearchChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],vk.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],vk.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],vk.prototype,"actionHandlerBehavior",void 0);
_.H([_.V(_.vG),_.x("design:type",Object)],vk.prototype,"ironResizableBehavior",void 0);_.H([_.V(),_.x("design:type",Mu)],vk.prototype,"ytScrollableChipCloudBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],vk.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],vk.prototype,"data",void 0);_.H([_.Q({value:0}),_.x("design:type",Number)],vk.prototype,"selected",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],vk.prototype,"isDarkTheme",void 0);_.H([_.Q({value:160}),_.x("design:type",Number)],vk.prototype,"scrollDistance",void 0);_.H([_.Q(),_.x("design:type",Object)],vk.prototype,"isSearch",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],vk.prototype,"darkerDarkTheme",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],vk.prototype,"noTopMargin",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],vk.prototype,"maskFade",void 0);_.H([_.rd("#chips"),_.x("design:type",Object)],vk.prototype,"JSC$16302_chipsSelector",void 0);_.H([_.gd("isSearch"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vk.prototype,"isSearchChanged",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vk.prototype,"dataChanged",null);
_.H([_.VU("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vk.prototype,"onResize",null);_.H([_.z9({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],vk);
_.D(vk,"yt-chip-cloud-renderer",function(){if(vTU===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_renderer.yt.chip.cloud.renderer.css.js--\x3e<div id="container" class="style-scope yt-chip-cloud-renderer">\n  <div id="left-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="left-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n  <div id="scroll-container" class="style-scope yt-chip-cloud-renderer">\n    <iron-selector id="chips" activate-event="" role="tablist" selected="[[selected]]" selected-attribute="selected" on-selected-changed="updateSelectedFromBinding" class="style-scope yt-chip-cloud-renderer">\n    </iron-selector>\n  </div>\n  <div id="right-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="right-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;fiN===void 0&&(fiN=document.createElement("template"));var q=fiN;l.call(y,q.content.cloneNode(!0),p.content.firstChild);vTU=p}p=vTU;return p},{mode:2});var XXi,dJB=function(){return XXi!==void 0?XXi:XXi=document.createElement("template")};
document.head.appendChild(dJB().content);var O_r;var oTQ=document.head,z1U=oTQ.appendChild,Ymv;if(O_r===void 0){var IiM=document.createElement("template");_.M(IiM,"");IiM.content.insertBefore(dJB().content.cloneNode(!0),IiM.content.firstChild);O_r=IiM}Ymv=O_r;z1U.call(oTQ,Ymv.content);var pjU=_.aF(function(p){var y=p.data;return _.R("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.R("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.R("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.R(_.W,{cond:function(){return _.cn(y().image)},
then:function(l){return _.R("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.R(_.W$,{data:l,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.R("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.R(_.CF,{text:function(){return y().title}})),_.R("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.R(_.CF,{text:function(){return y().subtitle}})))),_.R(_.W,{cond:function(){var l;
return(l=y())==null?void 0:l.hasBottomDivider},
then:function(){return _.R("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"bc");var y1i=_.aF(function(p){var y=p.data;return _.R("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.R("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.R(_.di,{data:function(){var l;return(l=y().offerPlanDetailsItem)!=null?l:[]}},{offerPlanDetailsItemViewModel:function(l){return _.R("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.R(pjU,{data:l.data}))}})),_.R("div",null,_.R(_.W,{cond:function(){return y().hasBottomDivider},
then:function(){return _.R("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.R("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.R("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.R("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.R("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"cc");var l$B=_.aF(function(p){var y=p.data;p=_.c(_.nr(!1,void 0,"SpEGQd"));var l=p.next().value,q=p.next().value,t=_.Ff(function(){q(!l());return!1}),E=function(){var e;
return(e=y().offerPlanDetailsContainer)!=null?e:[]};
return _.R("lp-complex-offer-card-details-view-model",null,_.R("div",null,_.R(_.W,{cond:function(){return l()},
then:function(){return _.R("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.R("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":t,"aria-expanded":l},_.R(_.CF,{text:function(){return y().expandedTitle}})),_.R("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.R(_.di,{data:E},{offerPlanDetailsContainerViewModel:function(e){return _.R("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.R(y1i,{data:e.data}))}})),_.R("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.R(_.CF,{text:function(){return y().legalText}})))},
else:function(){return _.R("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":t,"aria-expanded":l},_.R(_.CF,{text:function(){return y().collapsedTitle}}),_.R("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.R(_.DR,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"dc");var q7M=_.aF(function(p){var y=p.data;return _.R("lp-complex-offer-card-option-view-model",null,_.R("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.R(_.W,{cond:function(){return y().topDividerText},
then:function(){return _.R("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.R("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.R("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.R("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.R(_.CF,{text:function(){return y().topDividerText}}))))}}),_.R(_.W,{cond:function(){return y().description},
then:function(){return _.R("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.R(_.CF,{text:function(){return y().description}}))}}),_.R(_.W,{cond:function(){return y().planPricingPrimary},
then:function(){return _.R("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.R(_.CF,{text:function(){return y().planPricingPrimary}}))}}),_.R(_.W,{cond:function(){return y().planPricingSecondary},
then:function(){return _.R("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.R(_.CF,{text:function(){return y().planPricingSecondary}}))}}),_.R(_.W,{cond:function(){return y().primaryButton},
then:function(){return _.R("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.R(_.di,{data:function(){return y().primaryButton}},{buttonViewModel:function(l){return _.R(_.wZ,{data:l.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"ec");var s8r=_.aF(function(p){var y=p.data;var l=function(){var E;return((E=y())==null?void 0:E.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
p={};var q={},t={};return _.R("ytm-lp-complex-offer-card-view-model",null,_.R("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.R("div",{class:_.ip((p.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=l,p),"ytmLpComplexOfferCardViewModelCardContainer")},_.R(_.W,{cond:function(){var E;return(E=y())==null?void 0:E.bannerText},
then:function(){return _.R("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.R("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.R(_.CF,{text:function(){return y().bannerText}})))}}),_.R(_.W,{cond:function(){return _.cn(y().logo)},
then:function(E){var e={};return _.R("div",{class:_.ip((e.ytmLpComplexOfferCardViewModelLogoAlignLeft=l,e),"ytmLpComplexOfferCardViewModelLogo")},_.R(_.W$,{data:E,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.R("div",{class:_.ip((q.ytmLpComplexOfferCardViewModelTitleAlignLeft=l,q),"ytmLpComplexOfferCardViewModelTitle")},_.R(_.CF,{text:function(){return y().title}})),_.R(_.W,{cond:function(){var E;
return(E=y())==null?void 0:E.subtitle},
then:function(){var E={};return _.R("div",{class:_.ip((E.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=l,E),"ytmLpComplexOfferCardViewModelSubtitle")},_.R(_.CF,{text:function(){return y().subtitle}}))}}),_.R(_.W,{cond:function(){return y().planPricingPrimary},
then:function(){return _.R("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.R(_.CF,{text:function(){return y().planPricingPrimary}}))}}),_.R(_.W,{cond:function(){return y().planPricingSecondary},
then:function(){return _.R("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.R(_.CF,{text:function(){return y().planPricingSecondary}}))}}),_.R(_.W,{cond:function(){return y().purchaseButton},
then:function(){return _.R("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.R(_.di,{data:function(){return y().purchaseButton}},{buttonViewModel:function(E){return _.R(_.wZ,{data:E.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.R(_.W,{cond:function(){var E;
return(E=y())==null?void 0:E.offerOptions},
then:function(){return _.R("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.R(_.di,{data:function(){return y().offerOptions}},{lpComplexOfferCardOptionViewModel:q7M}))}}),_.R("div",{class:_.ip((t.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=l,t),"ytmLpComplexOfferCardViewModelLegalText")},_.R(_.CF,{text:function(){return y().legalText}})),_.R(_.W,{cond:function(){var E;
return(E=y())==null?void 0:E.offerCardDetails},
then:function(){return _.R("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.R(_.di,{data:function(){return y().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:l$B}))}}))))},"fc");var tXB=_.aF(function(p){var y=p.data;var l=function(){var e;return((e=y())==null?void 0:e.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
p={};var q={},t={},E={};return _.R("ytm-lp-complex-offer-card-section-view-model",null,_.R("div",{class:_.ip("ytmLpComplexOfferCardSectionViewModelHost")},_.R("div",{class:_.ip((p.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=l,p),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.R("div",{class:_.ip((q.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=l,q),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.R("h2",{class:_.ip((t.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
l,t),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.R(_.CF,{text:function(){return y().title}}))),_.R(_.W,{cond:function(){var e;
return(e=y())==null?void 0:e.subtitle},
then:function(){var e={},C={};return _.R("div",{class:_.ip((e.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=l,e),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.R("div",{class:_.ip((C.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=l,C),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.R(_.CF,{text:function(){return y().subtitle}})))}}),_.R("div",{class:_.ip((E.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=l,E),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.R(_.di,{data:function(){var e;
return(e=y().offerPlans)!=null?e:[]}},{lpComplexOfferCardViewModel:function(e){return _.R("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.R(s8r,{data:e.data}))}})))))},"gc");var EsU=_.aF(function(p){return _.R("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.R("div",{class:"ytLpCouponBannerViewModelIcon"},_.R(_.DR,{icon:function(){return"price_tag"}})),_.R("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.R("div",{class:"ytLpCouponBannerViewModelContent"},_.R("div",{class:"ytLpCouponBannerViewModelHeading"},_.R(_.CF,{text:function(){var y;
return(y=p.data())==null?void 0:y.title}})),_.R("div",{class:"ytLpCouponBannerViewModelBody"},_.R(_.CF,{text:function(){var y;
return(y=p.data())==null?void 0:y.subtitle}})))))},"hc");
EsU.idomCompat=!0;_.XV=eJi.getInstance();var J1U=_.aF(function(p){return _.R("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":p.shouldAriaHideContent},_.R("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:p.questionId},_.R(_.CF,{text:p.question})))},"ic"),c1v=_.aF(function(p){var y=p.data;
var l=p.themeOverride;p=_.c(_.nr(!1,void 0,"ljTVPd"));var q=p.next().value,t=p.next().value;p=_.Ff(function(){t(!q());return!1});
var E=function(){return q()?"EXPAND_LESS":"EXPAND_MORE"},e=("faq-container"+_.Xe(_.XV)).toString(),C="faq-question-and-answers-section-question"+_.Xe(_.XV),u={},a={};
return _.R("faq-entry-view-model-c3",null,_.R("div",{class:_.ip("yt-lp-faq-entry-view-model",(u["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return l==null?void 0:l().useDarkTheme},u))},_.R("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":p,role:"button","aria-expanded":q,"aria-labelledby":C.toString(),"tab-index":"0"},_.R(J1U,{question:function(){return y().question},
questionId:C,shouldAriaHideContent:!0}),_.R(_.W,{cond:function(){return q()!==void 0},
then:function(){return _.R("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.R(_.DR,{icon:E,ariaHidden:!0}),_.R("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.R("div",{class:_.ip("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(a["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!q()},a))},_.R("div",{id:e},_.R(_.rT,{each:function(){return y().answers||[]}},function(m){return _.R("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.R(_.CF,{text:m}))})))))},"jc");
c1v.idomCompat=!0;var e9U=_.aF(function(p){var y=p.data;var l=p.themeOverride;p={};return _.R("lp-faq-section-view-model-c3",null,_.R("div",{class:_.ip("yt-lp-faq-section-view-model",(p["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return y().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},p["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(l==null||!l().useDarkTheme)},p))},_.R("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.R(_.W,{cond:function(){return y().header},
then:function(q){return _.R("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.R(_.CF,{text:q}))}}),_.R("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.R(_.di,{data:function(){return y().faqs}},{faqEntryViewModel:function(q){return _.R(c1v,{data:q.data,
themeOverride:l})}})),_.R("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.R(_.rT,{each:function(){return y().footers||[]}},function(q){return _.R(_.CF,{text:q})})),_.R(_.W,{cond:function(){return y().legal},
then:function(q){return _.R("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.R(_.CF,{text:q}))}}))))},"kc");
e9U.idomCompat=!0;var h9x=_.aF(function(p){var y=p.data;var l=p.themeOverride;_.xZ(function(){var e=y().gtmId;e&&_.vF(e,_.OY("GL",""))});
var q={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var e,C,u;return(u=(e=y().logo)==null?void 0:(C=e.accessibilityData)==null?void 0:C.label)!=null?u:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},t=_.WC().resolve(_.RK(_.hb)),E=function(){return t&&t()||(l==null?void 0:l().useDarkTheme)};
return _.R("lp-header-section-view-model",null,_.R("div",{class:function(){var e=y().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",C=y().marginType==="LP_SECTION_MARGIN_TYPE_TOP",u=l==null?void 0:l().useDarkTheme,a=["lp-header-section-view-model"];e&&a.push("lp-header-section-view-model--ptc-layout-type");C&&a.push("lp-header-section-view-model__lp-header-section-margin");u&&a.push("lp-header-section-view-model--premium-force-dark-mode");return a.join(" ")}},_.R(_.W,{cond:function(){return y().logo},
then:function(){return _.R("div",null,_.R(_.W,{cond:E,then:function(){return _.R(_.W,{cond:function(){var e;return(e=y().logo)==null?void 0:e.imageDark},
then:function(e){return _.R(_.W$,Object.assign({},{data:e},q))}})},
else:function(){return _.R(_.W,{cond:function(){var e;return(e=y().logo)==null?void 0:e.imageLight},
then:function(e){return _.R(_.W$,Object.assign({},{data:e},q))}})}}))}}),_.R(_.W,{cond:function(){return y().title},
then:function(e){return _.R("div",{class:"lp-header-section-view-model__lp-header-title"},_.R(_.CF,{text:e}))}}),_.R("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.R(_.W,{cond:function(){return y().subtitles},
then:function(e){return _.R(_.rT,{each:e},function(C){return _.R("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.R(_.CF,{text:C}))})}})),_.R(_.W,{cond:function(){return y().additionalInfo},
then:function(e){return _.R("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.R(_.CF,{text:e}))}}),_.R("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.R(_.W,{cond:function(){return y().primaryButton},
then:function(e){return _.R("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.R(_.di,{data:e},{buttonViewModel:_.wZ}))}}),_.R(_.W,{cond:function(){return y().secondaryButton},
then:function(e){return _.R("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.R(_.di,{data:e},{buttonViewModel:_.wZ}))}})),_.R(_.W,{cond:function(){return y().otherOffersInfo},
then:function(e){return _.R("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.R(_.CF,{text:e}))}}),_.R("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.R(_.W,{cond:function(){return y().billingInfo},
then:function(e){return _.R(_.rT,{each:e},function(C){return _.R("div",null,_.R(_.CF,{text:C}))})}}))))},"lc");
h9x.idomCompat=!0;var CgU=_.aF(function(p){var y=p.data;var l=_.uy(p.themeOverride,{useDarkTheme:!1});p={};p=_.ip("ytm-lp-headline-section-view-model",(p["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return l().useDarkTheme},p));
return _.R("lp-headline-section-view-model",null,_.R("div",{class:p},_.R("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.R(_.CF,{text:function(){return y().title}})),_.R(_.W,{cond:function(){return y().subtitle},
then:function(q){return _.R("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.R(_.CF,{text:q}))}})))},"mc");var uNM=_.aF(function(p){var y=p.data;var l=p.themeOverride;var q=_.WC().resolve(_.RK(_.hb)),t=function(){return q&&q()||(l==null?void 0:l().useDarkTheme)},E=function(){var a,m;
var U=t()?(a=y().textBackgroundImage)==null?void 0:a.imageDark:(m=y().textBackgroundImage)==null?void 0:m.imageLight;return y58((U==null?void 0:U.sources)||[])},e=function(){var a,m;
return t()?(a=y().featureImage)==null?void 0:a.imageDark:(m=y().featureImage)==null?void 0:m.imageLight},C=function(){return y().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},u=function(){var a,m;
return t()?(a=y().logo)==null?void 0:a.imageDark:(m=y().logo)==null?void 0:m.imageLight};
return _.R("ytm-lp-large-feature-section-view-model",null,_.R("div",{class:function(){var a=y().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",m=y().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",U=(y().index||0)%2===1,b=l==null?void 0:l().useDarkTheme,P=["yt-lp-large-feature-section-view-model"];a?P.push("yt-lp-large-feature-section-view-model--music-feature-type"):m?P.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):U||P.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
b&&P.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return P.join(" ")}},_.R("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.R(_.W,{cond:e,
then:function(){return _.R(_.W$,{data:function(){return e()},
alt:function(){var a,m,U;return(U=(a=y().featureImage)==null?void 0:(m=a.accessibilityData)==null?void 0:m.label)!=null?U:""},
contentMode:C})}})),_.R("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var a;return((a=E())==null?0:a.url)?"background-image: url("+_.XX(E().url)+");":""}},_.R("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.R(_.W,{cond:u,
then:function(){return _.R(_.W$,{data:function(){return u()},
alt:function(){var a,m,U;return(U=(a=y().logo)==null?void 0:(m=a.accessibilityData)==null?void 0:m.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"})}}),_.R(_.W,{cond:function(){return y().eyebrowText},
then:function(){return _.R("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.R(_.CF,{text:function(){return y().eyebrowText}}))}}),_.R(_.W,{cond:function(){return y().title},
then:function(){return _.R("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.R(_.CF,{text:function(){return y().title}}))}}),_.R(_.W,{cond:function(){return y().subtitles},
then:function(){return _.R("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.R(_.rT,{each:function(){return y().subtitles||[]}},function(a){return _.R(_.CF,{text:a})}))}})))))},"nc");
uNM.idomCompat=!0;var R9U=_.aF(function(p){return _.R("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.R("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.R(_.DR,{icon:function(){var y;return(y=p.data())==null?void 0:y.iconType},
className:function(){var y;switch((y=p.data())==null?void 0:y.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var y;return((y=p.data())==null?void 0:y.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.R("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.R(_.CF,{text:function(){var y;
return(y=p.data())==null?void 0:y.text},
className:function(){var y;return((y=p.data())==null?void 0:y.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"oc");var W0V=_.aF(function(p){p=_.RF(p,{config:void 0,themeOverride:void 0});var y=p.data,l=p.config,q=p.themeOverride;p={};p=_.ip("ytm-lp-offer-card-option-view-model",(p["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var C;return(C=q())==null?void 0:C.useDarkTheme},p));
var t=_.Ff(function(){var C,u;(C=l())==null||(u=C.handleRadioButtonClick)==null||u.call(C,y());return!1}),E=function(){var C;
return(C=l())==null?void 0:C.shouldDisplayRadioButton},e=function(){var C;
return(C=y().featureListItems)!=null?C:[]};
return _.R("ytm-lp-offer-card-option-view-model",null,_.R("div",{class:p,"on:click":_.Ff(function(){if(E()){var C,u;(C=l())==null||(u=C.handleRadioButtonClick)==null||u.call(C,y())}return!1})},_.R(_.W,{cond:E,
then:function(){return _.R("div",null,_.R("input",{type:"radio","on:click":t,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var C;return!((C=l())==null||!C.isOptionSelected)}}))}}),_.R("div",null,_.R("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.R(_.CF,{text:function(){return y().eyebrowText}})),_.R("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.R(_.CF,{text:function(){return y().title}})),_.R("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.R(_.CF,{text:function(){return y().subtitle}})),_.R(_.W,{cond:function(){return e().length>0},
then:function(){return _.R("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.R(_.di,{data:e},{lpFeatureListItemViewModel:R9U}))}}),_.R("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.R(_.CF,{text:function(){return y().description}})))))},"pc");
W0V.idomCompat=!0;var a$O=_.aF(function(p){var y=p.data;var l=p.themeOverride;p=_.c(_.kS(function(){var E,e=(E=y().offerOptions)==null?void 0:E[0];return _.G(e,b5U)||{}}));
var q=p.next().value,t=p.next().value;p={};return _.R("ytm-lp-offer-card-view-model",null,_.R("div",{class:_.ip("ytm-lp-offer-card-view-model",(p["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(l==null||!l().useDarkTheme)},p))},_.R("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.R(_.W,{cond:function(){return y().titleIconType},
then:function(){return _.R("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.R(_.DR,{icon:function(){var E;return((E=y().titleIconType)==null?void 0:E.toString())||""}}))}}),_.R("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.R(_.CF,{text:function(){return y().title}})),_.R(_.di,{data:function(){return y().titleBadge}},{badgeViewModel:function(E){return _.R("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.R(_.jI,{data:E.data}))}})),_.R("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.R(_.di,{data:function(){return y().offerOptions}},{lpOfferCardOptionViewModel:function(E){var e=E.data;
return _.R(_.a4,null,_.R("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.R(W0V,{data:e,config:function(){var C;return{shouldDisplayRadioButton:(y().offerOptions||[]).length>1,isOptionSelected:e().id===((C=q())==null?void 0:C.id),handleRadioButtonClick:function(u){return void t(u)}}},
themeOverride:l}))}})),_.R("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.R(_.di,{data:function(){var E;
return(E=q())==null?void 0:E.purchaseButtonOverride}},{buttonViewModel:_.wZ}))))},"qc");
a$O.idomCompat=!0;var mSO=_.aF(function(p){var y=p.data;var l=p.themeOverride;p={};p=_.ip("ytm-lp-offer-card-section-view-model",(p["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var q;return l==null?void 0:(q=l())==null?void 0:q.useDarkTheme},p));
return _.R("ytm-lp-offer-card-section-view-model",null,_.R("div",{class:p},_.R(_.W,{cond:function(){return y().title!==void 0},
then:function(){return _.R("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.R("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.R(_.CF,{text:function(){return y().title}})),_.R(_.W,{cond:function(){return y().subtitle},
then:function(){return _.R("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.R(_.CF,{text:function(){return y().subtitle}}))}}))}}),_.R("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.R(_.di,{data:function(){return y().offerCards}},{lpOfferCardViewModel:function(q){return _.R("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.R(a$O,{data:q.data,
themeOverride:l}))}})),_.R(_.W,{cond:function(){return y().footer},
then:function(){return _.R("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.R(_.CF,{text:function(){return y().footer}}))}})))},"rc");var USi=_.aF(function(p){var y=p.data;return _.R("lp-offer-table-cell-content-view-model",null,_.R("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.R(_.L6,null,_.R(_.Sc,{when:function(){return y().title}},function(){return _.R(_.CF,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return y().title}})}),_.R(_.Sc,{when:function(){return y().subTitle}},function(){return _.R(_.CF,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return y().subTitle}})}),_.R(_.Sc,{when:function(){return y().featureDescription}},function(){return _.R(_.CF,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return y().featureDescription}})}),_.R(_.Sc,{when:function(){return y().description}},function(){return _.R(_.CF,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return y().description}})}),_.R(_.Sc,{when:function(){return y().iconType}},function(){return _.R("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.R(_.DR,{icon:function(){return y().iconType.toString()}}))}),_.R(_.Sc,{when:function(){return y().purchaseButton}},function(){return _.R(_.di,{data:function(){return y().purchaseButton}},{buttonViewModel:function(l){return _.R("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.R(_.wZ,{data:l.data}))}})}),_.R(_.Sc,{when:function(){return y().note}},function(){return _.R(_.CF,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return y().note}})}),_.R(_.Sc,{when:function(){return y().featureDetail}},function(){return _.R(_.CF,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return y().featureDetail}})}),_.R(_.Sc,{when:function(){return y().badge}},function(){return _.R(_.di,{data:function(){return y().badge}},{badgeViewModel:_.jI})}))))},"sc");
USi.idomCompat=!0;var $Sv=_.aF(function(p){var y=p.data;return _.R("lp-offer-table-cell-view-model",null,_.R("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(y().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;"}}},_.R(_.di,{data:function(){return y().contents}},{lpOfferTableCellContentViewModel:USi})))},
"tc");
$Sv.idomCompat=!0;var j8x=_.aF(function(p){var y=p.data;var l=p.lpTableIsFirstRow;var q=p.lpTableIsLastRow;var t=function(){return(l==null?0:l())?"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"},E=function(){return(l==null?0:l())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(q==null?0:q())?"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 _.R("ytm-lp-offer-table-row-view-model",null,_.R("div",{class:"yt-lp-offer-table-row-view-model"},_.R(_.di,{data:function(){return y().rowHeaderCell}},{lpOfferTableCellViewModel:function(e){return _.R("div",{class:t},_.R($Sv,{data:e.data}))}}),_.R(_.di,{data:function(){return y().contentCells}},{lpOfferTableCellViewModel:function(e){return _.R("div",{class:E},_.R($Sv,{data:e.data}))}})))},"uc");
j8x.idomCompat=!0;var bDv=_.aF(function(p){var y=p.data;var l=p.themeOverride;var q=_.WC().resolve(_.RK(_.hb)),t=function(){return _.G(y().logo,kSQ)||{}};
p={};return _.R("ytm-lp-offer-table-section-view-model",null,_.R("div",{class:"yt-lp-offer-table-view-model"},_.R(_.W,{cond:function(){var E,e;return q&&q()||(l==null?0:l().useDarkTheme)?(E=t())==null?void 0:E.imageDark:(e=t())==null?void 0:e.imageLight},
then:function(E){return _.R(_.W$,{data:E,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var e,C,u;return(u=(e=t())==null?void 0:(C=e.accessibilityData)==null?void 0:C.label)!=null?u:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.R("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.R(_.CF,{text:function(){return y().title}})),_.R("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.R(_.CF,{text:function(){return y().subtitle}})),_.R(_.W,{cond:function(){return y().disclaimers},
then:function(E){return _.R("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.R(_.rT,{each:E},function(e){return _.R("div",null,_.R(_.CF,{text:e}))}))}}),_.R("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.R(_.di,{data:function(){return y().rows}},{lpOfferTableRowViewModel:function(E,e){return _.R(j8x,{data:E.data,
lpTableIsFirstRow:function(){return e()===0},
lpTableIsLastRow:function(){return e()===y().rows.length-1}})}})),_.R("div",{class:_.ip((p["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return y().hasFooterBackground},p))},_.R(_.W,{cond:function(){return y().footer},
then:function(){return _.R("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.R(_.CF,{text:function(){return y().footer}}))}}),_.R(_.W,{cond:function(){return y().footerTitle},
then:function(){return _.R("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.R(_.CF,{text:function(){return y().footerTitle}}))}}),_.R(_.W,{cond:function(){return y().footerDescription},
then:function(){return _.R("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.R(_.CF,{text:function(){return y().footerDescription}}))}}))))},"vc");
bDv.idomCompat=!0;var nsM=_.aF(function(p){var y=p.data;var l=p.themeOverride;var q=_.WC().resolve(_.RK(_.hb)),t=function(){var C;return l==null?void 0:(C=l())==null?void 0:C.useDarkTheme},E=function(){var C,u;
return q&&q()||t()?(C=y().image)==null?void 0:C.imageDark:(u=y().image)==null?void 0:u.imageLight};
p={};p=_.ip("ytm-lp-small-feature-section-view-model",(p["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=t,p));var e=function(){var C,u,a;return(a=(C=y().image)==null?void 0:(u=C.accessibilityData)==null?void 0:u.label)!=null?a:""};
return _.R("ytm-lp-small-feature-section-view-model",{class:p},_.R(_.W,{cond:function(){return E()&&!eq},
then:function(){return _.R("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.R(_.W$,{data:function(){return E()},
alt:e,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.R("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.R("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.R(_.W,{cond:function(){return y().title},
then:function(C){return _.R(_.CF,{text:C})}})),_.R("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.R(_.CF,{text:function(){return y().description}}))))},"wc");
nsM.idomCompat=!0;var G$Q=_.aF(function(p){var y=p.data;var l=p.themeOverride;p={};return _.R("ytm-lp-small-feature-section-group-view-model",null,_.R("div",{class:_.ip("ytm-lp-small-feature-section-group-view-model",(p["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(l==null||!l().useDarkTheme)},p))},_.R("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.R(_.di,{data:function(){return y().smallFeatures}},{lpSmallFeatureSectionViewModel:function(q){return _.R("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.R(nsM,{data:q.data,
themeOverride:l}))}}))))},"xc");
G$Q.idomCompat=!0;_.bp(_.aF(function(p){var y=p.data;var l=function(){return y().forcedTheme==="USER_INTERFACE_THEME_DARK"},q=function(){return y().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},t=function(){var e="",C,u;
var a=_.WC().resolve(_.RK(_.hb));a=l()||(a==null?0:a())?(C=y().themedImageViewModel)==null?void 0:C.imageDark:(u=y().themedImageViewModel)==null?void 0:u.imageLight;(C=y58((a==null?void 0:a.sources)||[]))&&C.url&&(e=q()?"background-image: linear-gradient(to bottom, transparent, "+(y().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.XX(C.url)+");":"background-image: url("+_.XX(C.url)+");");return e},E=function(){return{useDarkTheme:l()}};
p={};return _.R("yt-section-group-view-model",null,_.R("div",{class:_.ip("yt-lp-section-group-view-model",(p["yt-lp-section-group-view-model--premium-force-dark-mode"]=l,p["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return y().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},p))},_.R(_.W,{cond:function(){return t().length},
then:function(){var e={};return _.R("div",{class:_.ip("yt-lp-section-group-view-model__bg-image",(e["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=q,e)),style:t})}}),_.R("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.R(_.di,{data:function(){return y().sections}},{lpFaqSectionViewModel:function(e){return _.R(e9U,{data:e.data,
themeOverride:E})},
lpHeaderSectionViewModel:function(e){return _.R(h9x,{data:e.data,themeOverride:E})},
lpHeadlineSectionViewModel:function(e){return _.R(CgU,{data:e.data,themeOverride:E})},
lpLargeFeatureSectionViewModel:function(e){return _.R(uNM,{data:e.data,themeOverride:E})},
lpOfferCardSectionViewModel:function(e){return _.R(mSO,{data:e.data,themeOverride:E})},
lpComplexOfferCardSectionViewModel:function(e){return _.R(tXB,{data:e.data})},
lpOfferTableSectionViewModel:function(e){return _.R(bDv,{data:e.data,themeOverride:E})},
lpSmallFeatureSectionGroupViewModel:function(e){return _.R(G$Q,{data:e.data,themeOverride:E})},
lpCouponBannerViewModel:function(e){return _.R(EsU,{data:e.data})}}))))},"yc"),"yt-section-group-view-model",{props:{data:_.Co}});var kmu=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.dw=_.aF(function(p){function y(){if(kmu.has(p.data().displayType)){var a=!q(),m;if((m=p.disableDeselection)==null||!m.call(p)||a){p.data().selected=a;m=Object.assign({},e(),{selected:a});C(m);var U;(U=p.callback)==null||U.call(p,m,a)}}}
var l=_.sM("chip-view-model"),q=function(){var a,m;return!!(((a=p.selected)==null?void 0:a.call(p))!==void 0?(m=p.selected)==null?0:m.call(p):e().selected)},t=_.c(_.kS(p.data)),E=t.next().value;
t=t.next().value;var e=E,C=t,u=_.So(Lza,function(){return p.data().chipEntityKey||""});
return _.R("chip-view-model",{class:"ytChipViewModelHost",el:l},_.R(s_x,{data:function(){var a,m=Object.assign({},e(),{selected:q()}),U=u(),b=(a=p.disableDeselection)==null?void 0:a.call(p);a:switch(m.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":a=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":a=3;break a;default:a=0}return{text:(U==null?void 0:U.text)||m.text,state:m.disabled?1:m.selected?0:2,type:a,onTap:Nog(m,l,y,b),
accessibilityLabel:m.accessibilityLabel||m.text}}}))},"zc");
_.dw.idomCompat={callbacks:{callback:!0}};_.PgN=_.aF(function(p){var y=_.So(Fzm,function(){var e;return(e=p.data())==null?void 0:e.chipBarStateEntityKey}),l=function(){return p.data().disableDeselection},q=_.c(_.kS(function(){var e;
if(((e=y())==null?void 0:e.selectedIndex)!=void 0)return y().selectedIndex;var C,u;e=_.c(((C=p.data())==null?void 0:(u=C.chips)==null?void 0:u.entries())||[]);for(C=e.next();!C.done;C=e.next()){C=_.c(C.value);u=C.next().value;C=C.next().value;var a=void 0;if((a=_.G(C,_.ti))==null?0:a.selected)return u}return-1})),t=q.next().value,E=q.next().value;
return _.R("chip-bar-view-model",{class:_.ip("ytChipBarViewModelHost",p.className),role:"tablist"},_.R(_.di,{data:function(){return p.data().chips}},{chipViewModel:function(e,C){return _.R("div",{class:"ytChipBarViewModelChipWrapper"},_.R(_.dw,{data:e.data,
selected:function(){return C()===t()},
callback:function(u,a){u=!!a;a=C();E(u?a:-1);var m,U=(m=p.data())==null?void 0:m.chipBarStateEntityKey;U&&u&&_.Cl(_.Fp("chipBarStateEntity",U,{key:U,selectedIndex:a}))},
disableDeselection:p.disableDeselection||l}))}}))},"Ac");_.bp(_.PgN,"chip-bar-view-model",{props:{data:_.jw,className:_.jw,disableDeselection:_.jw}});_.A1V=_.aF(function(p){var y=p.data;p={};return _.R("divider-view-model",{class:_.ip("divider-view-model-wiz",(p["divider-view-model-wiz__inset-thin-padding"]=function(){return y().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},p))},_.R("div",{class:_.ip("divider-view-model-wiz__base-divider",function(){return D86(y().dividerStyle)}),
style:_.NW({"background-color":function(){return y().backgroundColor?_.z5(y().backgroundColor):void 0}})}))},"Bc");
_.A1V.idomCompat=!0;_.bp(_.A1V,"divider-view-model",{props:{data:_.Co}});var Hn=new Map,Dy=new Map,x8u=0,TY;var oW6=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],I2t={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var ZDr,MXP;ZDr=function(p){return function(y){return function(){return String(y())+p}}};
_.OG=ZDr("px");MXP=ZDr("s");var gsP=_.aF(function(p){function y(v){return function(){var z=P().numItemsPerGridRow,sc=v()*z;z=sc+z;var hR,Wt;return(Wt=(hR=q().contents)==null?void 0:hR.slice(sc,z))!=null?Wt:[]}}
var l=_.RF(p,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),q=l.data,t=l.layoutContainerWidth,E=l.shouldUseOwnContainerSize,e=l.marginSettings;l=_.c(_.nr(!0,void 0,"qgr2Je"));var C=l.next().value,u=l.next().value,a=function(){var v,z=(v=_.G(q().showMoreButton,_.xo))==null?void 0:v.trackingParams;z&&_.Kw(_.Ll(),z);u(!1)},m=function(){var v,z=(v=_.G(q().showLessButton,_.xo))==null?void 0:v.trackingParams;
z&&_.Kw(_.Ll(),z);u(!0)};
l=_.sM("grid-shelf-view-model");var U=_.y3m(l,{canHaveZeroSize:!1}),b=function(){var v;return(v=q().contentAspectRatio)!=null?v:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},P=_.MA(function(){var v=_.Jy({containerWidth:E()&&U.width()>0?U.width()||t():t(),
sizing:"EXTRA_COMPACT",marginSettings:e(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:v.maxContainerWidth,numItemsPerGridRow:v.numItems,contentPadding:E()?v.margin:v.contentMargin,itemWidth:v.itemWidth,itemMargin:v.gutter/2}},void 0,"pqVdjc"),Z=function(){if(q().enableVerticalExpansion){if(C())return K();
var v,z,sc=(z=(v=q().contents)==null?void 0:v.length)!=null?z:0;return Math.ceil(sc/P().numItemsPerGridRow)}return P().numItemsPerGridRow<=2?2:1},K=function(){var v;
return Math.ceil(((v=q().minCollapsedItemCount)!=null?v:1)/P().numItemsPerGridRow)},F=function(){return q().enableVerticalExpansion&&q().showLessButton&&!C()&&Z()>K()},L=function(){var v,z;
return q().enableVerticalExpansion&&q().showMoreButton&&C()&&((z=(v=q().contents)==null?void 0:v.length)!=null?z:0)>P().numItemsPerGridRow*K()},T=function(){return!F()},O=function(){return!L()},f={};
return _.R("grid-shelf-view-model",{class:_.ip("ytGridShelfViewModelHost",p.className,(f.ytGridShelfViewModelHostHasBottomButton=function(){return F()||L()},f)),
el:l,style:_.NW({"margin-left":(0,_.OG)(function(){return P().contentPadding}),
"margin-right":(0,_.OG)(function(){return P().contentPadding})})},_.R(_.W,{cond:function(){return _.G(q().header,oaU)},
then:function(v){return _.R(_.Mp,{data:v,disableHorizontalPadding:!0})}}),_.R("div",null,_.R(_.rT,{each:function(){return Array(Z())}},function(v,z){return _.R(VXx,{className:p.className,
items:y(z),responsiveGridShelfLayout:P,contentAspectRatio:b})})),_.R("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.R(_.di,{data:function(){return q().showMoreButton}},{buttonViewModel:function(v){return _.R("div",{hidden:O},_.R(_.wZ,{data:v.data,
onClick:a}))}}),_.R(_.di,{data:function(){return q().showLessButton}},{buttonViewModel:function(v){return _.R("div",{hidden:T},_.R(_.wZ,{data:v.data,
onClick:m}))}})))},"Cc");
gsP.idomCompat=!0;var VXx=_.aF(function(p){var y=p.items;var l=p.responsiveGridShelfLayout;var q=p.contentAspectRatio;p=p.className;var t=_.sM("div");ToR(t,function(){a:{var e=t.value;for(var C=y(),u=[],a=0;a<C.length;a++){var m=_.G(C[a],MVi);if(!m||m==null||!m.inlinePlayerData){e=null;break a}var U=e.children.item(a);if(!U){e=null;break a}u.push({thumbnailElement:U,videoData:m})}e={gridVideoPreviewData:{gridItems:u}}}return e});
var E=(0,_.OG)(function(){return-l().itemMargin});
return _.R("div",{el:t,class:_.ip("ytGridShelfViewModelGridShelfRow",p),style:_.NW({"margin-left":E,"margin-right":E})},_.R(_.di,{data:y,replacementWrapper:function(e){return _.R(Q8N,{responsiveGridShelfLayout:l},e)}},{shortsLockupViewModel:function(e){return _.R(Q8N,{responsiveGridShelfLayout:l},_.R(CCr,{data:e.data,
aspectRatio:function(){return q()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"Dc"),Q8N=_.aF(function(p){return _.R("div",{style:_.NW({width:(0,_.OG)(function(){return p.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+p.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},p.children)},"Ec");
gsP.idomCompat=!0;_.bp(gsP,"grid-shelf-view-model",{props:{data:_.Co,layoutContainerWidth:_.Co,shouldUseOwnContainerSize:_.Co,marginSettings:_.Co,className:_.Co}});_.K0r=_.aF(function(p){var y=_.c(_.nr(!1,void 0,"YYtxR")),l=y.next().value,q=y.next().value;y={};return _.R("yt-alert-banner-view-model",{class:_.ip("ytAlertBannerViewModelHost",p.className,function(){var t;a:switch((t=p.data())==null?void 0:t.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":t="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":t="ytAlertBannerViewModelWarning";break a;default:t="ytAlertBannerViewModelInformational"}return t},(y.ytAlertBannerViewModelDismissed=
l,y.ytAlertBannerViewModelFullbleed=p.fullbleed,y.ytAlertBannerViewModelNarrow=p.narrow,y.ytAlertBannerViewModelIsInRichGrid=p.isInRichGrid,y))},_.R(_.W,{cond:function(){var t;
return!((t=p.data())==null?0:t.hideIcon)},
then:function(){return _.R("div",{class:"ytAlertBannerViewModelIcon"},_.R(_.DR,{icon:function(){return"info_circle"}}))}}),_.R("div",{class:"ytAlertBannerViewModelOuterContainer"},_.R("div",{class:"ytAlertBannerViewModelContainer"},_.R("div",{class:"ytAlertBannerViewModelContent"},_.R("div",{class:"ytAlertBannerViewModelHeading"},_.R(_.CF,{text:function(){var t;
return(t=p.data())==null?void 0:t.heading}})),_.R("div",{class:"ytAlertBannerViewModelBody"},_.R(_.CF,{text:function(){var t;
return(t=p.data())==null?void 0:t.body}})))),_.R(_.di,{data:function(){var t;
return(t=p.data())==null?void 0:t.actionButton}},{buttonViewModel:function(t){return _.R(_.wZ,{data:t.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.R(_.di,{data:function(){var t;
return(t=p.data())==null?void 0:t.dismissButton}},{buttonViewModel:function(t){return _.R(_.wZ,{data:t.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var E;((E=p.data())==null?0:E.disableLocalDismissBehavior)||q(!0)}})}}))},"Fc");_.bp(_.K0r,"yt-alert-banner-view-model",{props:{data:_.Co,fullbleed:_.Co,narrow:_.Co,isInRichGrid:_.Co,className:_.Co}});var lf6=_.T4({chipViewModel:_.dw,buttonViewModel:_.wZ});_.uX(qzo);var wjr;wjr=_.aF(function(p){var y=p.data;var l=p.callback;var q=p.enableSingleChipSelection;var t=p.disableChipsScrollAnimation;var E=_.tK("div");p=_.c(_.nr(!0,void 0,"ULL8g"));var e=p.next().value,C=p.next().value;p=_.c(_.nr(!1,void 0,"cWhQn"));var u=p.next().value,a=p.next().value,m=!1,U=0;_.Hu(function(){C(Z());a(K())});
p=_.c(_.kS(function(){var sc={};return y().autoselectedChipIndex!=null?(sc[y().autoselectedChipIndex]=!0,sc):{}}));
var b=p.next().value,P=p.next().value,Z=function(){var sc=E.value;return sc==null||sc.scrollLeft-1<=0},K=function(){var sc=E.value;
return sc==null?!1:sc.scrollLeft+1>=(sc==null?NaN:sc.scrollWidth)-(sc==null?NaN:sc.clientWidth)},F=function(){return y().isHorizontallyScrollable},L=function(sc){E.value!=null&&(_.OY("HTML_DIR")==="rtl"&&(sc=-sc),E.value.scrollBy({left:sc,
behavior:(t==null?0:t())?"instant":"smooth"}))},T=function(){L(-320)},O=function(){L(320)},f=_.Ff(function(sc){m=!0;
U=sc.clientX}),v=_.Ff(function(sc){if(m){sc=sc.clientX;
var hR=sc-U;U=sc;var Wt;(Wt=E.value)==null||Wt.scrollBy({left:-hR})}}),z=_.Ff(function(){var sc=Z(),hR=K();
sc!==e()&&C(sc);hR!==u()&&a(hR)});
eW("pointerup",function(){m&&(m=!1)});
return _.R("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.R(_.G3,{contentId:function(){return y().contentId},
useModernStyle:!0},function(){var sc={},hR={};return _.R("div",null,_.R(_.W,{cond:function(){return y().title},
then:function(){return _.R("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.R("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return y().title}),_.R(_.di,{data:function(){return y().overflowButton}},{buttonViewModel:_.wZ}))}}),_.R("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.R(_.W,{cond:function(){return y().previousButton},
then:function(){var Wt={};return _.R("div",{class:_.ip("ytChipsShelfViewModelLeftArrowContainer",(Wt.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return e()},Wt))},_.R(_.di,{data:function(){return y().previousButton}},{buttonViewModel:function(AR){return _.R(_.wZ,{data:AR.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:T})}}))}}),_.R("div",{el:E,
"on:pointerdown":f,"on:pointermove":v,"on:scroll":z,class:_.ip("ytChipsShelfViewModelChipsScrollContainer",(sc.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=F,sc))},_.R("div",{class:_.ip("ytChipsShelfViewModelChipsContainer",(hR.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=F,hR.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,hR)),role:"tablist"},_.R(_.di,{data:function(){return y().contents}},{chipViewModel:function(Wt,AR){return _.R("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.R(_.dw,{data:Wt.data,
callback:function(Qu,jj){var x6=AR();if(q==null?0:q()){var L8={};P((L8[x6]=jj,L8))}else L8={},P(Object.assign({},b(),(L8[x6]=jj,L8)));l==null||l(Qu,jj,x6)},
disableDeselection:q,selected:function(){return!!b()[AR()]}}))}}))),_.R(_.W,{cond:function(){return y().nextButton},
then:function(){var Wt={};return _.R("div",{class:_.ip("ytChipsShelfViewModelRightArrowContainer",(Wt.ytChipsShelfViewModelRightArrowContainerIsHidden=u,Wt))},_.R(_.di,{data:function(){return y().nextButton}},{buttonViewModel:function(AR){return _.R(_.wZ,{data:AR.data,
className:"ytChipsShelfViewModelRightArrow",onClick:O})}}))}})))}))},"Gc");
_.iDP=_.n("enable_chips_shelf_view_model_fully_reactive")?wjr:_.Sw(qzo,{callbacks:{callback:!0}});wjr.idomCompat={callbacks:{callback:!0}};_.bp(_.iDP,"chips-shelf-view-model",{props:{data:_.Co,callback:_.jw,enableSingleChipSelection:_.Co,disableChipsScrollAnimation:_.Co}});var r1r=_.aF(function(p){p=_.RF(p,{disabled:!1});var y=p.active,l=p.disabled;p={};p=_.ip("ytSwitchShapeTrack",(p.ytSwitchShapeTrackActive=function(){return y()},p.ytSwitchShapeTrackDisabled=function(){return l()},p));
var q={};q=_.ip("ytSwitchShapeKnob",(q.ytSwitchShapeKnobActive=function(){return y()},q));
return _.R("switch-shape",{class:"ytSwitchShapeHost"},_.R("div",{class:p}),_.R("div",{class:q}))},"Hc");var S7Q=_.aF(function(p){var y=_.RF(p,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),l=y.data;p=y.className;var q=y.handleOnTapEventInParent,t=y.parentActive;y=_.c(_.kS(function(){var U;return(U=t())!=null?U:l().switchedOnByDefault||!1}));
var E=y.next().value,e=y.next().value,C=function(){return l().isDisabled},u=_.sM("button");
y=_.Ff(function(U){return U.key==="Enter"?(U.preventDefault(),u.value.click(),!1):!0});
var a=_.Ff(function(U){if(l().handleOnTapEventInParent||q())return!0;if(C())return!1;tL_(l(),E(),U);e(!E());return!1}),m={};
m=_.ip("ytSwitchButtonViewModelButton",(m.ytSwitchButtonViewModelTappable=function(){return!C()},m));
return _.R("switch-button-view-model",{class:_.ip("ytSwitchButtonViewModelHost",p)},_.R("button",{el:u,class:m,"on:click":a,"on:keydown":y,"aria-label":function(){return E()?l().a11yLabelSwitchedOn:l().a11yLabelSwitchedOff},
"aria-checked":E,"aria-disabled":C,role:"switch"},_.R(r1r,{active:E,disabled:C})))},"Ic");var L0Z=_.aF(function(p){var y=_.RF(p,{checked:!1});p=y.name;var l=y.onChange,q=y.onClick,t=y.checked,E=y.labelRenderable,e=y.hasLeadingLabel,C=y.labelClass,u=y.isCompact,a=y.selectElementClass;y=y.disableHorizontalPadding;var m="checkbox"+_.Xe(_.XV),U=_.Ff(function(Z){q==null||q(Z);return!1}),b=_.Ff(function(Z){l==null||l(Z);
return!1}),P={};
return _.R("checkbox-shape",null,_.R("label",{class:_.ip("checkbox-shape-wiz",C,(P["checkbox-shape-wiz--compact"]=u,P["checkbox-shape-wiz--disable-horizontal-padding"]=y,P))},_.R("input",{class:"checkbox-shape-wiz__input",id:m,checked:t,name:p,type:"checkbox","prop:checked":t,"on:change":b,"on:click":U}),_.R(_.W,{cond:function(){return!(e==null?0:e())},
then:function(){return _.R(F0r,{isLeading:!0,selectElementClass:a})}}),_.R(_.W,{cond:function(){return!!E},
then:function(){return _.R("div",{class:"checkbox-shape-wiz__label"},E==null?void 0:E())}}),_.R(_.W,{cond:e,
then:function(){return _.R(F0r,{isLeading:!1,selectElementClass:a})}})))},"Jc");
L0Z.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var F0r=_.aF(function(p){var y=p.selectElementClass;p={};return _.R("div",{class:_.ip("checkbox-shape-wiz__checkbox",y,(p["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(y==null?0:y())},p)),
"aria-hidden":"true"},_.R(_.DR,{icon:_.n("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.R(_.DR,{icon:_.n("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Kc");_.oH=_.aF(function(p){var y=p.name;var l=p.onChange;var q=p.onClick;var t=p.checked;var E=p.labelRenderable;var e=p.useCheckIcon;var C=p.hasLeadingLabel;var u=p.labelClass;var a=p.isCompact;var m=p.selectElementClass;var U=p.ariaLabel;p=p.className;var b="radio"+_.Xe(_.XV),P=_.sM("input"),Z=_.Ff(function(v){P.value.checked=!(t==null||!t());l==null||l(v);return!1}),K=_.Ff(function(v){q==null||q(v);
return!1}),F=_.c(_.nr(!1,void 0,"v5AMrb")),L=F.next().value,T=F.next().value;
F=_.Ff(function(){var v;((v=_.WC().resolve(_.RK(_.Zu)))==null?0:v.isKeyBoardInUse())&&T(!0)});
var O=_.Ff(function(){T(!1)}),f={};
return _.R("radio-shape",{class:_.ip("radio-shape-wiz",p)},_.R("input",{el:P,class:"radio-shape-wiz__input",id:b,"prop:checked":t,name:y,type:"radio","on:change":Z,"on:click":K,"aria-label":U,"on:focusin":F,"on:focusout":O}),_.R("label",{class:_.ip("radio-shape-wiz__label-container",u,(f["radio-shape-wiz--compact"]=a,f["radio-shape-wiz__label-container--keyboard-focused"]=L,f)),for:b},_.R(_.W,{cond:function(){return!(C==null?0:C())},
then:function(){return _.R(k$M,{checked:t,useCheckIcon:e,isLeading:!0,selectElementClass:m})}}),_.R(_.W,{cond:function(){return!!E},
then:function(){return _.R("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(U==null?0:U())?"true":"false"}},E==null?void 0:E())}}),_.R(_.W,{cond:C,
then:function(){return _.R(k$M,{checked:t,useCheckIcon:e,isLeading:!1,selectElementClass:m})}})))},"Lc");
_.oH.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var k$M=_.aF(function(p){var y=p.useCheckIcon;var l=p.selectElementClass;p=function(){return(y==null?0:y())?"CHECK":_.n("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var q={};return _.R("div",{class:_.ip("radio-shape-wiz__radio",l,(q["radio-shape-wiz__radio--check-icon"]=y,q["radio-shape-wiz__radio--radio-default-style"]=function(){return!(l==null?0:l())},q)),
"aria-hidden":"true"},_.R(_.DR,{icon:p}),_.R(_.DR,{icon:p,active:function(){return!(y==null?0:y())}}))},"Mc");_.zI=_.aF(function(p){function y(){var Y6;((Y6=_.WC().resolve(_.RK(_.Zu)))==null?0:Y6.isKeyBoardInUse())&&L8(!0)}
function l(){L8(!1)}
var q=p.data;var t=p.isMenuItem;var E=p.isCompact;var e=p.onTap;var C=p.trailingAccessory;var u=p.hideSelectionTextChevron;var a=p.disabled;var m=p.inPopup;var U=p.disableHorizontalPadding;var b=p.isOverlay;var P=p.isToggled;var Z=p.ariaLabel;var K=p.ariaPressed;var F=_.n("apply_button_role_to_list_item"),L=_.yS(function(Y6){a:{var AZ=q();if((AZ==null?0:AZ.entitySelectorType)&&(AZ==null?0:AZ.entityKey))switch(AZ.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":Y6=
_.qyu(Y6,AZ.entityKey);Y6=Y6==null?void 0:Y6.value;AZ=!1;Y6==="CAPTIONS_UNAVAILABLE"&&(AZ=!0,Y6="");Y6=Object.assign({},!!Y6&&{selectionText:{content:Y6}},!!Y6&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:AZ});break a;default:Y6={}}else Y6={}}return Y6}),T=function(){return _.n("enable_web_shorts_captions_language_command")?Object.assign({},q(),L()):q()},O=function(){return!(T().isSelected===void 0||!T().selectionStyle||T().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
f=function(){return(_.pF(T().rendererContext)||e)&&!O()},v=function(){return _.pF(T().rendererContext)||O()};
p={};b=_.ip("yt-list-item-view-model-wiz",(p["yt-list-item-view-model-wiz--is-overlay"]=b,p["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!F&&x6()},p));
p={};var z=_.ip("yt-list-item-view-model-wiz__label",(p["yt-list-item-view-model-wiz__container"]=function(){return!O()},p["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!T().isDisabled||!(a==null||!a())},p["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!T().subtitle},p["yt-list-item-view-model-wiz__container--compact"]=E,p["yt-list-item-view-model-wiz__container--tappable"]=f,p["yt-list-item-view-model-wiz__container--in-popup"]=m,p["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return F&&x6()},p["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(U==null?void 0:U())&&!O()},p));
p={};var sc=_.ip("yt-list-item-view-model-wiz__container",(p["yt-list-item-view-model-wiz__container--tappable"]=v,p["yt-list-item-view-model-wiz__container--compact"]=E,p["yt-list-item-view-model-wiz__container--in-popup"]=m,p["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(U==null?void 0:U())&&O()},p)),hR=function(){return T().leadingImage||T().leadingAccessory},Wt=_.ip("yt-list-item-view-model-wiz__image-container",function(){return hR()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"}),AR=_.aF(function(){return _.R(_.W,{cond:function(){return F},
then:function(){return _.R("div",{class:z,el:_.mR(OAu(function(){return F&&f()},{focusin:y,
focusout:l})),role:function(){return v()||f()?"button":void 0},
"aria-label":Z,"aria-pressed":K,tabindex:function(){return e||f()?0:void 0},
"on:keydown":jj,"on:click":Qu},_.R(N_i,{data:T,hideSelectionTextChevron:u,trailingAccessory:C,isToggled:P}))},
else:function(){return _.R("div",{class:z},_.R(N_i,{data:T,hideSelectionTextChevron:u,trailingAccessory:C,isToggled:P}))}})},"Nc");
AR.idomCompat=!0;var Qu=_.Ff(function(Y6){return void(e==null?void 0:e(Y6))}),jj=_.Spu();
p=_.c(_.nr(!1,void 0,"cn4fzb"));m=p.next().value;p=p.next().value;var x6=m,L8=p;p=_.Ff(function(){return!0});
m=F?p:jj;p=F?p:Qu;return _.R("yt-list-item-view-model",{el:_.mR(_.yn(function(){return T().rendererContext}),OAu(function(){return!F&&(f==null?void 0:f())},{focusin:y,
focusout:l})),class:b,role:function(){return(t==null?0:t())?"menuitem":"listitem"},
tabindex:function(){var Y6=f();Y6=F?void 0:e||Y6?0:void 0;return Y6},
"on:keydown":m,"on:click":p},_.R(_.W,{cond:O,then:function(){return _.R(_.L6,null,_.R(_.Sc,{when:function(){return T().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.R(L0Z,{labelRenderable:function(){return _.R(AR,null)},
isCompact:E,checked:function(){return T().isSelected},
hasLeadingLabel:function(){return!!hR()},
labelClass:sc,selectElementClass:Wt,disableHorizontalPadding:U})}),_.R(_.Sc,{when:function(){return T().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.R(_.oH,{labelRenderable:function(){return _.R(AR,null)},
isCompact:E,checked:function(){return T().isSelected},
hasLeadingLabel:function(){return!!hR()},
labelClass:sc,selectElementClass:Wt})}),_.R(_.Sc,{when:function(){return T().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.R(_.oH,{labelRenderable:function(){return _.R(AR,null)},
isCompact:E,checked:function(){return T().isSelected},
hasLeadingLabel:function(){return!!hR()},
labelClass:sc,selectElementClass:Wt,useCheckIcon:!0})}),_.R(_.FF,null,function(){return _.R(AR,null)}))},
else:function(){return _.R(AR,null)}}))},"Oc");
_.zI.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var N_i=_.aF(function(p){var y=p.data;var l=p.hideSelectionTextChevron;var q=p.trailingAccessory;var t=p.isToggled;return _.R(_.a4,null,_.R(DSO,{data:y,isLeading:!0,hideSelectionTextChevron:function(){return!(l==null||!l())},
isToggled:t}),_.R(HDi,{data:y}),_.R(_.W,{cond:function(){return!!q},
then:function(){return _.R("div",{class:"yt-list-item-view-model-wiz__trailing"},q==null?void 0:q())},
else:function(){return _.R(DSO,{data:y,isLeading:!1,hideSelectionTextChevron:function(){return!(l==null||!l())},
isToggled:t})}}))},"Pc"),DSO=_.aF(function(p){var y=p.data;
var l=p.isLeading;var q=p.hideSelectionTextChevron;var t=p.isToggled;var E=_.ip("yt-list-item-view-model-wiz__button-container");p={};var e=_.ip("yt-list-item-view-model-wiz__image-container",(p["yt-list-item-view-model-wiz__leading"]=l,p["yt-list-item-view-model-wiz__trailing"]=function(){return!l()},p)),C=function(){return l()?y().leadingImage:y().trailingImage},u=_.ip("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
p={};var a=_.ip("yt-list-item-view-model-wiz__accessory",(p["yt-list-item-view-model-wiz__leading"]=l,p["yt-list-item-view-model-wiz__trailing"]=function(){return!l()},p)),m=function(){a:switch(y().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var U="expand_more";
break a;default:U="chevron_right"}return U};
return _.R(_.W,{cond:function(){var U=y(),b=l();return!!(b&&(U.leadingImage||U.leadingAccessory)||!b&&(U.trailingImage||U.trailingButton||U.trailingButtons||U.selectionText))},
then:function(){return _.R(_.a4,null,_.R(_.W,{cond:C,then:function(U){return _.R("div",{class:e,"aria-hidden":"true"},_.R(_.W$,{data:U,alt:"",preserveWidth:!0,preserveHeight:!0,className:u,isToggled:t}))}}),_.R(_.W,{cond:function(){return l()&&y().leadingAccessory},
then:function(){return _.R("div",{class:e},_.R(_.di,{data:function(){return y().leadingAccessory}},{avatarViewModel:function(U){return _.R(_.v5,{data:U.data,
avatarButtonCustomClassName:u})},
collectionThumbnailViewModel:function(U){return _.R(qvv,{data:U.data,maxHeight:36,includeStackHeight:!0})}}))}}),_.R(_.W,{cond:function(){return!l()&&y().trailingButton},
then:function(){return _.R("div",{class:E},_.R(_.di,{data:function(){return y().trailingButton}},{buttonViewModel:function(U){return _.R(_.wZ,{data:U.data,
className:a})}}))}}),_.R(_.W,{cond:function(){var U;
return!l()&&((U=y().trailingButtons)==null?void 0:U.buttons)},
then:function(){return _.R("div",{class:E},_.R(_.di,{data:function(){var U;return(U=y().trailingButtons)==null?void 0:U.buttons}},{buttonViewModel:function(U){return _.R(_.wZ,{data:U.data,
className:a})},
accountLinkButtonViewModel:function(U){return _.R(zMx,{data:U.data,className:a})},
switchButtonViewModel:function(U){return _.R(S7Q,{data:U.data,className:a})},
subscribeButtonViewModel:function(U){return _.R(_.f9,{data:U.data,isOverlay:!1,animateWidth:!1,className:a})},
toggleButtonViewModel:function(U){return _.R(_.fo,{data:U.data,className:a})}}))}}),_.R(_.W,{cond:function(){return!l()&&!!y().selectionText},
then:function(){return _.R(_.a4,null,_.R(_.CF,{text:function(){return y().selectionText},
className:_.ip("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.R(_.W,{cond:function(){return!q()},
then:function(){return _.R(_.DR,{icon:m,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Qc"),HDi=_.aF(function(p){var y=p.data;
return _.R(_.W,{cond:function(){return y().title||y().subtitle},
then:function(){return _.R("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.R("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.R(_.W,{cond:function(){return y().title},
then:function(l){return _.R(_.CF,{text:l,className:"yt-list-item-view-model-wiz__title"})}})),_.R(_.W,{cond:function(){return y().subtitle},
then:function(l){return _.R(_.CF,{text:l,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Rc");_.T_v=_.aF(function(p){var y=p.data;var l=p.onTap;var q=p.onSwitch;var t=p.overrideDisabled;p=p.disableHorizontalPadding;var E=_.c(_.kS(function(){var U;return((U=J3R(m()))==null?void 0:U.switchedOnByDefault)||!1})),e=E.next().value,C=E.next().value;
E=_.c(_.nr(!1,void 0,"ZHBkbb"));var u=E.next().value,a=E.next().value,m=function(){var U;if(!(U=y().switchButton)){var b=y();U=t==null?void 0:t();b={switchOnCommand:b.switchOnCommand,switchOffCommand:b.switchOffCommand,switchedOnByDefault:b.switchedOnByDefault,isDisabled:b.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:b.a11yLabelSwitchedOn,a11yLabelSwitchedOff:b.a11yLabelSwitchedOff};U!==void 0&&(b.isDisabled=U);U={switchButtonViewModel:b}}return U};
return _.R("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.R(_.zI,{data:function(){return{title:y().title,subtitle:y().attributedSubtitle,leadingImage:y().leadingImage,leadingAccessory:y().leadingAccessory,isDisabled:y().isDisabled}},
onTap:function(U){var b=J3R(m());!b||b.isDisabled||y().ignoreTapUntilCommandCompletes&&u()||(l==null||l(U),tL_(b,e(),U,y().ignoreTapUntilCommandCompletes,a),C(!e()),q==null||q(e()))},
trailingAccessory:function(){return _.R(_.di,{data:m},{switchButtonViewModel:function(U){return _.R(S7Q,{data:U.data,parentActive:e,handleOnTapEventInParent:!!l})}})},
disableHorizontalPadding:p}))},"Sc");var xSB=_.aF(function(p){var y=_.c(_.kS(function(){var t,E;return!!((t=p.data())==null?0:(E=t.initialState)==null?0:E.isToggled)})),l=y.next().value,q=y.next().value;
y=_.Ff(function(){q(!l())});
return _.R("toggleable-list-item-view-model",{el:_.mR(_.yn(function(){return p.data().rendererContext})),
class:_.ip("toggleableListItemViewModelHost",p.className),"on:click":y},_.R(_.W,{cond:function(){if(l()){var t=p.data().toggledListItem;t=_.G(t,_.Nr)}else t=p.data().defaultListItem,t=_.G(t,_.Nr);return t},
then:function(t){return _.R(_.zI,{data:t,isToggled:l,ariaLabel:function(){var E=l()?p.data().toggledListItem:p.data().defaultListItem,e;E=(e=_.G(E,_.Nr))==null?void 0:e.rendererContext;var C;return(C=_.G(E,_.L5))==null?void 0:C.label},
ariaPressed:function(){return l()}})}}))},"Tc");var B_v=_.g$("DOWNLOAD",{},"Download"),f$r=_.g$("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),vsQ=_.g$("RETRY",{},"Retry"),XjN=_.g$("PAUSE_DOWNLOADING",{},"Pause downloading"),dSU=_.g$("RESUME_DOWNLOAD",{},"Resume download"),c3o={text:B_v,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},xF={text:f$r,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},Csg={text:vsQ,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
ePa={text:XjN,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},hPu={text:dSU,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var ODN=_.aF(function(p){var y=function(){var C=p.data();C=_.IW(C.rendererContext);var u;return(u=_.G(C,_.wi))==null?void 0:u.videoId},l=_.yS(function(C){var u=y(),a=WfL(p.data());
return u?_.Ot(C,u):a?_.or(C,a):"TRANSFER_STATE_UNKNOWN"}),q=_.So(_.v7j,y),t=_.yS(function(C){return _.Nzm(C,y(),WfL(p.data()))}),E=function(){return RPR(l(),q(),_.IW(p.data().rendererContext),!!WfL(p.data()))},e=function(){return t()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.R("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:e},_.R(_.W,{cond:function(){return!e()},
then:function(){return _.R(_.W,{cond:E,then:function(C){return _.R(_.rT,{each:C},function(u){return _.R(_.zI,{data:u,isCompact:p.isCompact,isMenuItem:p.isMenuItem,inPopup:p.inPopup,disableHorizontalPadding:p.disableHorizontalPadding})})}})}}))},"Uc");
ODN.idomCompat=!0;_.osZ=_.aF(function(p){var y=p.data;var l=p.isCompact;var q=p.hideSelectionTextChevron;var t=p.inPopup;var E=p.isOverlay;var e=p.disableHorizontalPadding;var C=function(){return af8(y())&&(t==null?void 0:t())};
p={};return _.R("yt-list-view-model",{class:_.ip("yt-list-view-model-wiz",(p["yt-list-view-model-wiz--kaios-spat-nav"]=eq&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",p["yt-list-view-model-wiz__collection-thumbnail-class"]=function(){return $c_(y())},p)),
role:function(){return C()?"menu":"list"},
style:_.NW({"max-height":function(){var u,a=(u=y())==null?void 0:u.visibleElementCount;if(a)return $c_(y())?(a+.5)*48+"px":(a+.5)*40+"px"}})},_.R(_.di,{data:function(){return y().listItems}},{listItemViewModel:function(u){return _.R(_.zI,{data:u.data,
isMenuItem:C,isCompact:l,hideSelectionTextChevron:q,inPopup:t,isOverlay:E,disableHorizontalPadding:e})},
toggleableListItemViewModel:function(u){return _.R(xSB,{data:u.data})},
downloadListItemViewModel:function(u){return _.R(ODN,{data:u.data,isMenuItem:C,isCompact:l,inPopup:t,disableHorizontalPadding:e})},
switchListItemViewModel:function(u){return _.R(_.T_v,{data:u.data,disableHorizontalPadding:e})}}))},"Vc");
_.osZ.idomCompat=!0;var z9i=_.aF(function(p){var y=p.data;var l=p.isOverlay;p={};return _.R("yt-course-perks-view-model",{class:_.ip("ytwCoursePerksViewModelHost",(p.ytwCoursePerksViewModelHostOverlay=l,p))},_.R("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.R(_.CF,{text:function(){return y().title}})),_.R("div",null,_.R(_.W,{cond:function(){return y().perks},
then:function(q){return _.R(_.osZ,{data:function(){return{listItems:q()}},
isCompact:!0,isOverlay:l})}})))},"Wc");_.bp(z9i,"yt-course-perks-view-model",{props:{data:_.jw,isOverlay:_.jw}});_.bp(_.aF(function(p){var y=p.data;return _.R("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.R("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.R(_.CF,{text:function(){return y().title}})),_.R("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.R(_.CF,{text:function(){return y().progressSummary}})),_.R("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.R("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.NW({width:function(){return y().progressPercentage*100+"%"}})})))},"Xc"),"yt-course-progress-view-model",{props:{data:_.Co}});var Y7O=_.aF(function(p){var y={};return _.R("yt-progress-view-model",{class:_.ip("ytwProgressViewModelHost",(y.ytwProgressViewModelHostOverlay=_.uy(p.isOverlay,!1),y))},_.R(_.W,{cond:function(){return p.data().progressSummary},
then:function(l){return _.R("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.R(_.CF,{text:l}))}}),_.R("div",{class:"ytwProgressViewModelHostProgressContainer"},_.R(_.W,{cond:function(){return p.data().leadingLabel},
then:function(l){return _.R("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.R(_.CF,{text:l}))}}),_.R("div",{class:"ytwProgressViewModelHostProgressBar"},_.R("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(p.data().progressPercentage||0)*100+"%"}}))))},"Yc");var Ye=_.aF(function(p){var y=p.starNumber;var l=p.data;var q=function(){var t;return((t=l())==null?void 0:t.rating)||0};
return _.R(_.W,{cond:function(){return y()},
then:function(t){return _.R(_.L6,null,_.R(_.Sc,{when:function(){return q()>=t()-.25}},function(){return _.R("div",{class:"ytStarRatingViewModelHostStar"},_.R(_.DR,{icon:"STAR_FILLED"}))}),_.R(_.Sc,{when:function(){return q()>=t()-.75}},function(){return _.R("div",{class:"ytStarRatingViewModelHostStar"},_.R(_.DR,{icon:"STAR_HALF"}))}),_.R(_.FF,null,function(){return _.R("div",{class:"ytStarRatingViewModelHostStar"},_.R(_.DR,{icon:"STAR_BORDER"}))}))}})},"Zc"),I$$=_.aF(function(p){p=p.data;
return _.R("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.R(Ye,{starNumber:1,data:p}),_.R(Ye,{starNumber:2,data:p}),_.R(Ye,{starNumber:3,data:p}),_.R(Ye,{starNumber:4,data:p}),_.R(Ye,{starNumber:5,data:p}))},"$c");_.bp(_.aF(function(p){var y=_.RF(p,{}).data;return _.R("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.R("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.R(_.CF,{text:function(){var l;return(l=y())==null?void 0:l.title}})),_.R("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.R(_.W,{cond:function(){return y().starProgressViewModels},
then:function(l){return _.R("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.R(_.di,{data:l},{progressViewModel:Y7O}))}}),_.R("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.R("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.R(_.CF,{text:function(){var l;
return(l=y())==null?void 0:l.averageRatingLabel}})),_.R(_.W,{cond:function(){return y().zeroStateText},
then:function(l){return _.R("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.R(_.CF,{text:l}))}}),_.R(_.W,{cond:function(){return y().starRatingViewModel},
then:function(l){return _.R("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.R(_.di,{data:l},{starRatingViewModel:I$$}))}}),_.R("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.R(_.CF,{text:function(){var l;
return(l=y())==null?void 0:l.totalRatingsCountLabel}})))))},"ad"),"yt-course-ratings-view-model",{props:{data:_.jw}});var phU;phU={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.y8$=_.aF(function(p){var y=_.sM("yt-learning-journey-loader-view-model"),l=_.QS();_.Hu(function(){requestAnimationFrame(function(){var t;(t=l.lottieEl)==null||t.addEventListener("DOMLoaded",function(){var E;(E=p.onLottieLoaded)==null||E.call(p)})});
var q=p.data().browseEndpoint;q&&_.tb(q)});
return _.R("yt-learning-journey-loader-view-model",{class:_.ip("learningJourneyLoaderViewModelHost",p.className),"data-target-id":function(){var q;return((q=p.data)==null?void 0:q.call(p).targetId)||""},
el:y},_.R(_.GS,{className:_.ip("learningJourneyLoaderViewModelLoader",p.className),animationName:function(){return phU.animationConfig.name},
data:phU,animationRef:l}))},"bd");_.bp(_.y8$,"yt-learning-journey-loader-view-model",{props:{data:_.Co,className:_.jw,onLottieLoaded:_.jw}});var b35=new Set,j3m=null;_.l0i=_.aF(function(p){var y=null,l=null,q=null,t=function(){return p.data()},E=function(){var L=t();
var T=_.WC().resolve(_.RK(_.hb));L=T!=null&&T()?L.darkThemeColorPalette:L.lightThemeColorPalette;return{primaryTextColor:fF(L,0),secondaryTextColor:fF(L,1),optionColor:fF(L,2),backgroundColor:fF(L,3),videoBackgroundColor:fF(L,4)}},e=function(){return!!E().optionColor},C=_.c(_.nr(-1,void 0,"KCCUDb")),u=C.next().value,a=C.next().value,m=function(L){return u()===L},U=function(L){return t().correctAnswerIndex===L},b=function(){return u()!==-1},P=function(){return u()===t().correctAnswerIndex},Z=_.Ff(function(){a(-1);
return!1}),K=function(){var L=b(),T=P();
return L?T?264685:264684:264683},F=function(L){return P()&&U(L)};
return _.R("learning-journey-quiz-view-model",{class:_.ip("learningJourneyQuizViewModelHost",p.className),style:_.NW({background:function(){return E().backgroundColor}})},_.R(_.W,{cond:function(){return!!t().video},
then:function(){return _.R("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.NW({background:function(){return E().videoBackgroundColor}})},_.R(_.di,{data:function(){return t().video}},{lockupViewModel:function(L){return _.R(_.ZX,{data:L.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.R("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.R("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.R("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.R(_.W,{cond:function(){return!!t().aiGeneratedQuizLabel},
then:function(){return _.R("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.R(_.CF,{text:function(){return t().aiGeneratedQuizLabel}}))}}),_.R("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.NW({"align-items":function(){return t().overflowMenu?"start":"center"}})},_.R("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.NW({"min-height":function(){return t().overflowMenu?"48px":"26px"}})},_.R("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.mR(function(L){_.Bn(K(),L,y,function(T){y=T})}),
style:_.NW({color:function(){return E().primaryTextColor}}),
"client-ve-type":K},_.R(_.CF,{text:function(){var L=t(),T=b(),O=P();return T?O?L.successTitle:L.failureTitle:L.questionHeaderText}}))),_.R("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.R(_.W,{cond:b,
then:function(){return _.R("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.mR(function(L){_.Bn(264687,L,l,function(T){l=T})}),
"on:click":Z,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.R("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.NW({fill:function(){return E().primaryTextColor}})},_.R("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"})))}}),
_.R(_.di,{data:function(){return t().overflowMenu}},{buttonViewModel:function(L){return _.R(_.wZ,{data:L.data})}}))),_.R("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.mR(function(L){_.Bn(264688,L,q,function(T){q=T})}),
style:_.NW({color:function(){return E().secondaryTextColor}}),
"client-ve-type":264688},_.R(_.CF,{text:function(){var L=t();return b()?L.explanationText:L.questionSubheaderText}}))),_.R("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.R(_.rT,{each:function(){return t().optionsData||[]}},function(L,T){var O={};
return _.R("div",{class:_.ip("learningJourneyQuizViewModelHostQuizOptions",(O.learningJourneyQuizViewModelHostQuizHover=function(){return!b()},O.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return F(T())},O.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!P()&&m(T())},O.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return b()&&!m(T())},O.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=e,O)),
"on:click":_.Ff(function(){if(b())return!1;a(T());return!1}),
style:_.NW({background:function(){var f=T();return b()&&m(f)?"":e()?E().optionColor:"transparent"}}),
role:"button","aria-disabled":b,"tab-index":"0","client-ve-type":264686},_.R(_.W,{cond:b,then:function(){var f={};return _.R("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var v=T();return U(v)?"0 0 24 24":"0 -960 960 960"},
class:_.ip("learningJourneyQuizViewModelHostQuizOptionIcon",(f.learningJourneyQuizViewModelHostQuizOptionIconPulse=function(){return F(T())},f)),
style:_.NW({fill:function(){return E().primaryTextColor}})},_.R("path",{d:function(){var v=T();
return U(v)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M330-120L120-330v-300l210-210h300l210 210v300L630-120H330zm36-190l114-114 114 114 56-56-114-114 114-114-56-56-114 114-114-114-56 56 114 114-114 114 56 56z"}}))}}),_.R(_.CF,{text:L.optionText}))})))))},"cd");
_.l0i.idomCompat=!0;_.bp(_.l0i,"learning-journey-quiz-view-model",{props:{data:_.Co,className:_.Co}});var qS$=_.aF(function(p){var y=p.data;return _.R("yt-suspense-view-model",{class:_.ip("ytSuspenseViewModelHost")},_.R(_.di,{data:function(){var l;return(l=y().config)==null?void 0:l.contents}},{lockupViewModel:_.ZX}))},"dd");var snv=_.aF(function(p){var y=_.RF(p,{palette:void 0,isLastItem:!1}),l=y.palette,q=y.isLastItem,t=function(){return p.data().isHighlighted},E=function(){var u;
return Gq5((u=l())==null?void 0:u.iconDisabledColor)},e=function(){var u;
return Gq5((u=l())==null?void 0:u.primaryTitleColor)},C=function(){var u;
return Gq5((u=l())==null?void 0:u.secondaryTitleColor)};
y={};return _.R("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.mR(_.yn(function(){return p.data().rendererContext}))},_.R(_.di,{data:function(){return p.data().thumbnail}},{thumbnailViewModel:_.az}),_.R("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.R("div",{class:_.ip("ytMacroMarkerListItemViewModelTimeDescription",(y.ytMacroMarkerListItemViewModelHighlighted=t,y)),
style:_.NW({"background-color":function(){return t()?e():E()},
color:function(){return t()?"":C()}})},_.R(_.CF,{text:function(){return p.data().timestamp}})),_.R("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.NW({"background-color":function(){return q()?"transparent":E()}})}),_.R("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(t()?e():C())}},_.R(_.CF,{text:function(){return p.data().title}}))))},"ed");_.IH=_.aF(function(p){function y(JR){T("transform:translateX("+(_.OY("HTML_DIR")==="rtl"?"":"-")+JR+"px)")}
function l(JR){return Math.min(Math.max(JR,0),L()-sc())}
function q(){var JR=v()+Qu();return t()?(Math.round(sc()/JR)||1)*JR:0}
var t=function(){return p.data().items||[]},E=function(){return p.data().previousButton},e=function(){return p.data().nextButton},C=function(){var JR,s$;
return(s$=(JR=p.disableArrows)==null?void 0:JR.call(p))!=null?s$:!1},u=function(){var JR;
return!((JR=p.forceNarrowLayout)==null||!JR.call(p))},a=_.MA(function(){var JR;
return!((JR=p.centerAlignItems)==null||!JR.call(p))&&L()<=sc()},void 0,"DL81uf"),m=_.sM("horizontal-shelf-view-model"),U=_.sM("div"),b=_.c(_.nr(0,void 0,"xZFppf")),P=b.next().value,Z=b.next().value;
b=_.c(_.nr(0,void 0,"pH9gvd"));var K=b.next().value,F=b.next().value,L=K;K=_.c(_.nr("",void 0,"oYcWy"));b=K.next().value;var T=K.next().value;K=_.c(_.nr(0,void 0,"lI6NJb"));var O=K.next().value,f=K.next().value,v=O;K=_.c(_.nr(0,void 0,"yPqhW"));O=K.next().value;var z=K.next().value,sc=O;K=_.c(_.nr(!1,void 0,"u4CvOe"));var hR=K.next().value,Wt=K.next().value;K=_.c(_.nr(0,void 0,"oQOBbe"));O=K.next().value;var AR=K.next().value,Qu=O;K=_.c(_.nr(0,void 0,"fCqgxd"));var jj=K.next().value,x6=K.next().value;
K=_.c(_.nr("50%",void 0,"kjP5ke"));var L8=K.next().value,Y6=K.next().value,AZ=function(){var JR,s$=(JR=p.data())==null?void 0:JR.responsiveContainerConfiguration,PU,Uu;return s$?FWt(s$==null?void 0:s$.responsiveSize):(Uu=(PU=p.sizing)==null?void 0:PU.call(p))!=null?Uu:"STANDARD"};
K=_.MA(function(){return!C()&&P()>0},void 0,"oVCO3d");
O=_.MA(function(){return!C()&&P()<L()-sc()},void 0,"MQ6Gb");
var cU=function(){Z(l(P()-q()));y(P())},Xo=function(){Z(l(P()+q()));
y(P())},U$=function(){m.value!==null&&VQ()},WU;
_.xZ(function(){VQ();window.ResizeObserver?(WU=new ResizeObserver(_.Fd(U$,0)),WU.observe(m.value)):window.addEventListener("resize",U$)});
_.TP(function(){if(window.ResizeObserver){var JR;(JR=WU)==null||JR.disconnect()}else window.removeEventListener("resize",U$)});
var VQ=function(){var JR=m.value.clientWidth,s$=p.includeMargin!==void 0?p.includeMargin():!1,PU;var Uu=p.hasPeek!==void 0?p.hasPeek():!((PU=p.data())==null||!PU.hasPeek);JR=_.Jy({containerWidth:JR,hasPeek:Uu,sizing:AZ(),marginSettings:s$?u()?4:1:0});AR(JR.gutter);x6(JR.margin);f(JR.itemWidth);Wt(JR.maxContainerWidth<528||u());z(JR.maxContainerWidth);t()&&F((JR.itemWidth+JR.gutter)*t().length-JR.gutter);if(t()){var jB;if(((jB=p.thumbnailAspectRatio)==null?void 0:jB.call(p))!==void 0){var xx;Y6(v()/
Sym((xx=p.thumbnailAspectRatio)==null?void 0:xx.call(p))/2+"px")}else Y6("50%")}},b9={},kx={};
return _.R("horizontal-shelf-view-model",{class:_.ip("ytwHorizontalShelfViewModelHost",p.className),el:m},_.R(_.W,{cond:function(){var JR;return p.data().header&&!((JR=p.horizontalShelfExperiments)==null?0:JR.call(p).hideHeader)},
then:function(){return _.R("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.NW({width:function(){return sc()+"px"},
padding:function(){return"0 "+jj()+"px"}})},_.R(_.di,{data:function(){return p.data().header}},{sectionHeaderViewModel:function(JR){return _.R(_.Mp,{data:JR.data,
disableHorizontalPadding:!0,forceSmallLayout:hR,useResponsiveLayout:!0})}}))}}),_.R("div",{class:_.ip("ytwHorizontalShelfViewModelOuterContainer",(b9.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return a()},b9)),
style:_.NW({"margin-top":function(){var JR,s$=p.data().header&&!((JR=p.horizontalShelfExperiments)==null?0:JR.call(p).hideHeader),PU;return(((PU=p.ensureMarginTop)==null?0:PU.call(p))&&!s$?12:0)+"px"}})},_.R("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.NW({width:function(){return sc()+"px"},
padding:function(){return"0 "+jj()+"px"},
overflow:function(){return C()?"auto":"hidden"}})},_.R("div",{class:_.ip("ytwHorizontalShelfViewModelItems",(kx.ytwHorizontalShelfViewModelCenterAlignItems=function(){return a()},kx)),
el:U,style:b},_.R(_.di,{data:t},{macroMarkerListItemViewModel:function(JR,s$){return _.R("div",{style:_.NW({width:function(){return v()+"px"},
"margin-right":function(){return(s$()===t().length-1?0:Qu())+"px"}})},_.R(snv,{data:JR.data,
palette:_.uy(p.palette),isLastItem:function(){return s$()===t().length-1}}))},
lockupViewModel:function(JR,s$){var PU=JR.data;return _.R("div",{style:_.NW({width:function(){return v()+"px"},
"margin-right":function(){return(s$()===t().length-1?0:Qu())+"px"}})},_.R(_.ZX,{data:PU,
containerType:4,sizing:AZ,protectBackground:p.protectBackground,thumbnailFixedWidth:function(){return Ps5(PU())+"px"},
thumbnailTargetWidth:function(){return Ps5(PU())}}))},
suspenseViewModel:function(JR,s$){return _.R("div",{style:_.NW({width:function(){return v()+"px"},
"margin-right":function(){return(s$()===t().length-1?0:Qu())+"px"}})},_.R(qS$,{data:JR.data}))}}))),_.R(_.W,{cond:K,
then:function(){return _.R("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.NW({top:function(){return L8()}})},_.R(_.di,{data:E},{buttonViewModel:function(JR){return _.R(_.wZ,{data:JR.data,
onClick:cU})}}))}}),_.R(_.W,{cond:O,
then:function(){return _.R("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.NW({top:function(){return L8()}})},_.R(_.di,{data:e},{buttonViewModel:function(JR){return _.R(_.wZ,{data:JR.data,
onClick:Xo})}}))}})))},"fd");
_.IH.idomCompat=!0;var tpM=_.aF(function(p){var y=function(){return p.data().targetId||""},l=function(){var K;
return((K=p.data())==null?void 0:K.expansionEntityKey)||""},q=_.So(_.qyu,l),t=!0,E=function(){var K;
return((K=q())==null?void 0:K.value)===y()},e=function(K){_.Cl(_.Fp("stringEntity",l(),{key:l(),
value:K?y():""}))};
_.Hu(function(){t=!1;p.data().isExpanded&&e(!0)});
var C=function(){if(E()){var K=!0;p.onCollapse!==void 0&&(K=p.onCollapse());K&&e(!1)}else e(!0)},u=_.Ff(C),a=function(){var K;
return(((K=p.accordionStyle)==null?void 0:K.call(p))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},m=_.sM("div"),U=function(){var K,F;
return(F=(K=_.G(p.data().rendererContext,_.L5))==null?void 0:K.label)!=null?F:""},b=function(){var K,F;
return{disabled:(K=p.hideIfNotExpanded)==null?void 0:K.call(p),ariaHidden:(F=p.hideIfNotExpanded)==null?void 0:F.call(p)}},P={},Z={};
return _.R("yt-accordion-item-view-model",{class:_.ip("ytAccordionItemViewModelHost",p.className,(P.ytAccordionItemViewModelExpanded=function(){return E()},P.ytAccordionItemViewModelHidden=function(){var K;
return(K=p.hideIfNotExpanded)==null?void 0:K.call(p)},P.ytAccordionItemViewModelMini=a,P)),
"data-target-id":y},_.R("div",{class:"ytAccordionItemViewModelContainer"},_.R("div",{class:"ytAccordionItemViewModelLeftSection","on:click":u,title:U,"aria-hidden":function(){var K;return(K=p.hideIfNotExpanded)==null?void 0:K.call(p)}},_.R(_.CF,{text:function(){return p.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:U})),_.R("div",{class:"ytAccordionItemViewModelRightSection"},_.R(_.di,{data:function(){return E()?p.data().expandButton:p.data().collapseButton}},{buttonViewModel:function(K){return _.R(_.wZ,{data:K.data,
className:"ytAccordionItemViewModelToggleButton",onClick:C,buttonOverrides:b})}}))),_.R("div",{class:"ytAccordionItemViewModelContainer"},_.R("div",{class:_.ip("ytAccordionItemViewModelContent",(Z.ytAccordionItemViewModelExpandedSubtitle=function(){return E()},Z)),
el:m,style:_.NW({"max-height":function(){return t?"auto":E()?m.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!E()}},_.R(_.W,{cond:function(){return!a()},
then:function(){return _.R(_.CF,{text:function(){return p.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.R(_.di,{data:function(){return p.data().content}},{horizontalShelfViewModel:function(K){return _.R(_.IH,{data:K.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"gd");_.EOi=_.aF(function(p){var y=_.c((0,_.g3B)(p.data)).next().value,l=function(){return p.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},q=function(){return l()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},t=_.c(_.nr(!0,void 0,"FVec2e")),E=t.next().value,e=t.next().value,C=function(){return q()&&E()},u=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){e(!E())}}},a=_.Ff(function(){y().onTitleTap&&_.tb(y().onTitleTap||{})});
t={};return _.R("yt-accordion-view-model",{class:_.ip("ytAccordionViewModelHost",(t.ytAccordionViewModelMinimized=function(){return C()},t)),
"data-target-id":function(){return p.data().targetId||""}},_.R(_.W,{cond:function(){return q()||!!y().title},
then:function(){return _.R("div",{class:"ytAccordionViewModelHeader"},_.R("div",{class:"ytAccordionViewModelTitleSection"},_.R("div",{class:"ytAccordionViewModelTitleWrapper"},_.R(_.W,{cond:function(){return!!p.data().headerIcon},
then:function(){return _.R(_.DR,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var m;return(m=p.data().headerIcon)==null?void 0:m.iconType}})}}),_.R("div",{class:"ytAccordionViewModelTitle",
"on:click":a},_.R(_.CF,{className:"ytAccordionViewModelTitleText",text:function(){return y().title}})))),_.R("div",{class:"ytAccordionViewModelButtonSection"},_.R(_.W,{cond:q,
then:function(){return _.R(_.uI,{data:u,iconName:function(){return C()?"chevron_down":"chevron_collapse"}})}})))}}),_.R("div",{class:"ytAccordionViewModelContent"},_.R(_.di,{data:function(){return y().contents}},{accordionItemViewModel:function(m){return _.R(tpM,{data:m.data,
className:"ytAccordionViewModelRow",accordionStyle:l,hideIfNotExpanded:C,onCollapse:function(){return q()?(e(!0),!1):!0}})}})),_.R("div",null,_.R(_.W,{cond:function(){return!q()&&(!!y().disclaimerFooter||!!y().footer)},
then:function(){return _.R("div",{class:"ytAccordionViewModelFooter"},_.R(_.CF,{text:function(){return y().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.R(_.di,{data:function(){return p.data().footer}},{flexibleActionsViewModel:function(m){return _.R(d4,{data:m.data,
layout:0})}}))}})))},"hd");_.bp(_.EOi,"yt-accordion-view-model",{props:{data:_.Co}});_.bp(_.aF(function(p){var y=null,l=null,q,t=(q=_.WC().resolve(_.RK(_.hb)))==null?void 0:q(),E=_.c(_.nr(!1,void 0,"EVXQGb"));q=E.next().value;var e=E.next().value;E=_.c(_.nr(!0,void 0,"W9FIJf"));var C=E.next().value,u=E.next().value,a=_.sM("textarea",function(F){_.Bn(264503,F,y,function(L){y=L})}),m=function(F){e(!0);
F={learningJourneyFormData:{query:F}};_.tb(p.data().searchEndpoint||{},{form:{formData:F}});return!1},U=_.Ff(function(F){F.target.closest("button-view-model")&&e(!0)});
E=_.Ff(function(){u(a.value.value.length===0)});
var b=_.Ff(function(F){if(F.key==="Enter"&&!F.shiftKey&&!C()){var L=F.target;F.preventDefault();m(L.value)}}),P={},Z={},K={};
return _.R("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.R("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.R(_.W$,{data:function(){return p.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.R("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.R("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.R("div",{class:_.ip("ytLearningJourneyZeroStateSearchBar",(P.ytLearningJourneyZeroStateSearchBarDark=t,P))},_.R("textarea",{class:_.ip("ytLearningJourneyZeroStateTextInput",(Z.ytLearningJourneyZeroStateTextInputDark=t,Z)),el:a,"on:keyup":E,"on:keydown":b,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.R("div",{class:_.ip("ytLearningJourneyZeroStateSearchButtonContainer",(K.ytLearningJourneyZeroStateSearchButtonContainerDark=t,K))},_.R(_.wZ,{data:function(){return _.G(p.data().searchButton,_.xo)},
className:"search-button",onClick:function(){return m(a.value.value)},
buttonOverrides:function(){return{disabled:C(),style:t?"mono-inverse":"mono",size:"XL"}}}))),_.R(_.W,{cond:function(){return!!p.data().errorBanner},
then:function(){return _.R("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.mR(function(F){_.Bn(264617,F,l,function(L){l=L})})},_.R(_.di,{data:function(){return p.data().errorBanner}},{alertBannerViewModel:function(F){return _.R(_.K0r,{data:F.data,
"client-ve-type":264617})}}))}})),_.R(_.W,{cond:q,
then:function(){return _.R("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.R(_.di,{data:function(){return p.data().loader}},{learningJourneyLoaderViewModel:function(F){return _.R(_.y8$,{data:F.data})}}))},
else:function(){return _.R("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.R(_.W,{cond:function(){return!!p.data().learningJourneyShelf},
then:function(){return _.R("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.R("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return p.data().learningJourneySectionTitle}),_.R(_.di,{data:function(){return p.data().learningJourneyShelf}},{horizontalShelfViewModel:function(F){return _.R(_.IH,{data:F.data,
centerAlignItems:!0})}}))}}),_.R("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.R("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return p.data().suggestedJourneySectionTitle}),_.R("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":U},_.R(_.di,{data:function(){return p.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(F){return _.R(d4,{data:F.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"id"),"yt-learning-journey-zero-state",{props:{data:_.Co}});var J8Q=_.aF(function(p){var y=p.data;return _.R("ytvl-live-leaderboard-item-action-content-view-model",{class:_.ip("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.R(_.CF,{text:function(){var l;return(l=y())==null?void 0:l.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.R(_.di,{data:function(){return y().actionButton}},{buttonViewModel:function(l){return _.R(_.wZ,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:l.data})}}))},"jd");var c8P=_.aF(function(p){var y=p.data;return _.R("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.ip("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.R(_.CF,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var l;return(l=y())==null?void 0:l.displayName},
ellipsisTruncate:!0}),_.R(_.di,{data:function(){return y().badge}},{buttonViewModel:function(l){return _.R(_.wZ,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:l.data})}}))},"kd");_.bp(_.aF(function(p){var y=p.data;return _.R("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.R("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.R(_.CF,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var l;return(l=y())==null?void 0:l.rank}})),_.R("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.R(_.di,{data:function(){return y().avatar}},{avatarViewModel:_.v5})),_.R("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.R(_.di,{data:function(){return y().content}},{liveLeaderboardItemChannelContentViewModel:c8P,
liveLeaderboardItemActionContentViewModel:J8Q})),_.R(_.CF,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var l;return(l=y())==null?void 0:l.points}}))},"ld"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.Co}});_.bp(_.aF(function(p){var y=p.data;return _.R("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.R(_.CF,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var l,q;return(l=y())==null?void 0:(q=l.ranking)==null?void 0:q.rank}}),_.R("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.R(_.di,{data:function(){return y().avatar}},{avatarViewModel:_.v5})),_.R(_.CF,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var l,q;return(l=y())==null?void 0:(q=l.channelContent)==null?void 0:q.channelName}}),_.R(_.CF,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var l;return(l=y())==null?void 0:l.points}}))},"md"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.Co}});var egV=_.aF(function(p){p=_.RF(p,{wrapper:!1}).wrapper;return _.R(_.W,{cond:p,then:function(){return _.R("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.R("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.R("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"nd");
egV.idomCompat=!0;var hgP=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],C$$=_.aF(function(p){var y=p.data;var l=_.mR(),q=_.MA(function(){return y().command},void 0,"o6t5Yb");
_.NA(function(){q()&&_.lp(q(),{form:{element:l.value}})},"qIHWLc");
return _.R("div",{el:l,class:"YtQrCodeRendererHostContainer"},_.R(_.W,{cond:function(){return y().qrCodeImage},
then:function(t){return _.R(_.W$,{data:t,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.R(_.W,{cond:function(){return y().spinner},
then:function(){return _.R(egV,null)}})}}),_.R(_.W,{cond:function(){return y().label},
then:function(t){return _.R(_.CF,{text:t,className:"YtQrCodeRendererHostLabel"})}}),_.R(_.W,{cond:function(){return y().labels},
then:function(t){return _.R("div",{class:"YtQrCodeRendererHostLabels"},_.R(_.rT,{each:t},function(E){return _.R(_.CF,{text:E})}))}}))},"pd");_.bp(_.aF(function(p){var y=p.data;var l=_.MA(function(){return y().qrEntityKey},void 0,"joYCxd"),q=_.MA(function(){return y().deleteEntityOnDismiss},void 0,"x3yAde"),t=_.MA(function(){return y().command},void 0,"dJe1Re"),E=_.So(Gy8,l);
p=_.MA(function(){return y().qrCodeImage},void 0,"qM5dZe");
var e=_.MA(function(){return y().style&&hgP.includes(y().style)},void 0,"CaNEkf"),C=_.Ct({visibilityCallback:function(u){u&&t()&&_.lp(t())},
showOption:{calledOnce:!0,state:"visible"}});_.xZ(function(){_.TP(function(){q()&&l()&&_.hl().dispatch(_.Fp("qrCodeEntity",l()))})});
return _.R("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.mR(C)},_.R(_.W,{cond:e,then:function(){return _.R(_.W,{cond:E,then:function(u){return _.R(C$$,{data:u})}})}}),_.R(_.W,{cond:p,
then:function(u){return _.R(_.W$,{data:u,alt:""})}}))},"od"),"yt-qr-code-renderer",{props:{data:_.Co}});_.ulv=_.aF(function(p){var y=p.data;var l=p.topbarOffset;var q,t=((q=_.WC().resolve(_.RK(_.hb)))==null?void 0:q())||!1;return _.R("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var E=y();var e,C,u=t?(e=E.config)==null?void 0:e.darkThemeBackgroundColor:(C=E.config)==null?void 0:C.lightThemeBackgroundColor;E=u?_.z5(u):void 0;E="background-color: "+E+";";l!==void 0&&(E+="top: -"+l()+"px;");return E},
"aria-hidden":!0},_.R(_.W,{cond:function(){var E,e,C;return!!((E=y().backgroundImageConfig)==null?0:(e=E.image)==null?0:(C=e.sources)==null?0:C.length)},
then:function(){return _.R(_.W$,{data:function(){var E;return(E=y().backgroundImageConfig)==null?void 0:E.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.R("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+A3u(t,y().gradientColorConfig)+";"}}))},"qd");
_.ulv.idomCompat=!0;var pf=_.aF(function(p){var y=p.className;var l=p.data;var q=p.isOverlay;var t=p.maxLinesOverride;var E=p.useMediumText;var e=function(){return l().alwaysShowTruncationText},C=function(){return l().truncationText},u=function(){return E!==void 0&&E()?"medium":"small"},a=function(){return q!==void 0&&q()?"overlay":"default"},m=function(){var Z,K;
return(K=(Z=_.G(l().rendererContext,_.L5))==null?void 0:Z.label)!=null?K:""};
p=_.c(_.nr(!1,void 0,"xVwzHf"));var U=p.next().value,b=p.next().value;p=_.Ff(function(){l().expandOnTap&&b(!U());return!1});
var P={};return _.R("yt-description-preview-view-model",{el:_.mR(_.yn(function(){return l().rendererContext})),
class:_.ip("yt-description-preview-view-model-wiz",y,(P["yt-description-preview-view-model-wiz--clickable"]=function(){var Z;return!((Z=_.G(l().rendererContext,vKl))==null||!Z.onTap)},P["yt-description-preview-view-model-wiz--is-overlay"]=q,P)),
"on:click":p},_.R(_.W,{cond:function(){return l().description},
then:function(Z){return _.R(_.W,{cond:U,then:function(){var K={};return _.R("div",{class:_.ip("yt-description-preview-view-model-wiz__description",(K["yt-description-preview-view-model-wiz__description--medium-text"]=E,K))},_.R(_.CF,{text:Z}))},
else:function(){return _.R(VHN,{text:Z,alwaysShowTruncationText:e,truncationText:C,maxLines:function(){var K;return(K=t==null?void 0:t())!=null?K:l().maxLines},
textStyle:a,accessibilityLabel:m,textSize:u})}})}}))},"rd");
pf.idomCompat=!0;var RgB=_.aF(function(p){var y=p.data;var l=p.isOverlay;return _.R("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.R("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.R(_.di,{data:function(){return y().header}},{sectionHeaderViewModel:function(q){return _.R(_.Mp,{data:q.data,
isOverlay:l})}})),_.R("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.R(_.di,{data:function(){return y().channelInfoButtons}},{flexibleActionsViewModel:d4})),_.R("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.R(_.di,{data:function(){return y().description}},{descriptionPreviewViewModel:function(q){return _.R(pf,{data:q.data,
isOverlay:l})}})))},"sd");
RgB.idomCompat=!0;var Wa$=_.aF(function(p){var y=p.data;var l={};return _.R("factoid-view-model",{class:_.ip("ytwFactoidViewModelHost",(l.ytwFactoidViewModelHostOverlay=p.isOverlay,l))},_.R(_.CF,{text:function(){return y().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.R(_.CF,{text:function(){return y().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"td");
Wa$.idomCompat=!0;var a0$=_.aF(function(p){var y=p.data;var l=p.isOverlay;return _.R("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.R(_.di,{data:function(){return y().factoids}},{factoidViewModel:function(q){return _.R(Wa$,{data:q.data,
isOverlay:l})}}))},"ud");
a0$.idomCompat=!0;_.mh$=_.aF(function(p){var y=p.data;var l=p.isOverlay;return _.R("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.R(_.di,{data:function(){return y().items}},{channelInfoViewModel:function(q){return _.R("div",{class:"ytwCourseMetadataViewModelHostItem"},_.R(RgB,{data:q.data,
isOverlay:l}))},
coursePerksViewModel:function(q){return _.R("div",{class:"ytwCourseMetadataViewModelHostItem"},_.R(z9i,{data:q.data,isOverlay:l}))},
descriptionPreviewViewModel:function(q){return _.R("div",{class:"ytwCourseMetadataViewModelHostItem"},_.R(pf,{data:q.data,isOverlay:l}))},
factoidsRowViewModel:function(q){return _.R("div",{class:"ytwCourseMetadataViewModelHostItem"},_.R(a0$,{data:q.data,isOverlay:l}))},
progressViewModel:function(q){return _.R("div",{class:"ytwCourseMetadataViewModelHostItem"},_.R(Y7O,{data:q.data,isOverlay:l}))}}))},"vd");var UhQ=_.aF(function(p){return _.R("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.R(_.di,{data:function(){return p.data().content}},{courseMetadataViewModel:function(y){return _.R(_.mh$,{data:y.data,
isOverlay:p.isOverlay})},
progressViewModel:function(y){return _.R(Y7O,{data:y.data})}}))},"wd");var $hi=_.aF(function(p){var y=p.data;p=p.className;var l=function(){var t;return _.pF((t=y())==null?void 0:t.rendererContext)},q={};
q=(q["dynamic-text-view-model-wiz"]=!0,q["dynamic-text-view-model-wiz--tappable"]=function(){return l()},q);
return _.R("yt-dynamic-text-view-model",{el:_.mR(_.yn(function(){var t;return(t=y())==null?void 0:t.rendererContext})),
role:function(){return l()?"link":void 0},
tabindex:function(){return l()?0:void 0},
class:_.ip(p,q)},_.R("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var t,E,e;return(e=(E=_.G((t=y())==null?void 0:t.rendererContext,_.L5))==null?void 0:E.label)!=null?e:""}},_.R(_.CF,{text:function(){return y().text},
userInput:!0})))},"xd");
$hi.idomCompat=!0;_.jnr=_.aF(function(p){var y=p.data;var l=p.isPositionRelative;var q=_.MLl("(max-width: 527.9px)"),t=function(){var E,e;return(e=(E=y())==null?void 0:E.style)!=null?e:"IMAGE_BANNER_STYLE_FULL_BLEED"};
p={};return _.R("yt-image-banner-view-model",{el:_.mR(_.yn(function(){var E;return(E=y())==null?void 0:E.rendererContext})),
class:_.ip((p["yt-image-banner-view-model-wiz"]=!0,p["yt-image-banner-view-model-wiz--inset"]=function(){return VL5(t())},p["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.BQ(!0)&&!(l==null?0:l())},p["yt-image-banner-view-model-wiz--small-inset"]=function(){return VL5(t())&&q()},p["yt-image-banner-view-model-wiz--tappable"]=function(){var E;
return _.pF((E=y())==null?void 0:E.rendererContext)},p))},_.R(_.W,{cond:function(){var E;
return(E=y())==null?void 0:E.image},
then:function(){return _.R(_.W$,{data:function(){return y().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.R(_.di,{data:function(){var E;
return(E=y())==null?void 0:E.overlays}},{thumbnailHoverOverlayViewModel:fd}))},"yd");
_.jnr.idomCompat=!0;var bLP;bLP=_.aF(function(p){var y=p.condition;var l=p.content;return _.R(_.W,{cond:y,then:function(){return _.R("div",{class:"page-header-view-model-wiz__scroll-container"},l())},
else:function(){return l()}})},"zd");
_.nOr=_.aF(function(p){var y=p.data;var l=p.noPadding;var q=p.enableBanner;var t=p.cinematicContainerTopbarOffset;var E=p.allowCinematicContainerOverflow;var e=p.displayAsSidebar;var C=p.displayAsPanel;var u=p.alwaysUseMediumTextMetadata;var a=gAa(),m=function(){return!!y().image||!!y().animatedImage},U=function(){return!!y().background},b=function(){return(e==null?0:e())||(C==null?0:C())?1:a()},P=function(){return b()===1},Z=function(){return P()||b()===2},K=function(){return b()===4},F=function(){var jj=
y();
var x6=!!y().heroImage;var L8=b(),Y6=Q3t(y()),AZ=e==null?void 0:e(),cU=!jj.metadata,Xo;if(Xo=x6?_.G(jj.heroImage,LZM):_.G(jj.animatedImage||jj.image,LZM)){jj=Xo.style;var U$=Xo.layoutMode;if(U$!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(Xo=oLg(Ocl(Xo)),x6)x6=Z3R(L8,jj,U$,Xo,AZ);else b:if(cU)x6=L8===1?{size:48}:{size:72};else switch(L8){case 1:x6={size:72};break b;case 2:x6={size:120};break b;default:x6=Y6<4?{size:120}:{size:160}}else x6=void 0}else x6={size:0};return x6};
p={};p=_.ip((p["page-header-view-model-wiz"]=!0,p["page-header-view-model-wiz--no-padding"]=function(){return!(l==null||!l())},p["page-header-view-model-wiz--small-top-padding"]=function(){return P()&&!y().actions&&!(C==null?0:C())||b()===2&&!(m()||y().heroImage)},p["page-header-view-model-wiz--small-bottom-padding"]=function(){return Z()&&!y().actions&&!(C==null?0:C())},p["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(E==null?0:E())},p["page-header-view-model-wiz--display-as-sidebar"]=
e,p));
var L={},T=_.ip((L["page-header-view-model-wiz__page-header-headline"]=!0,L["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var jj;return(jj=F())==null?void 0:jj.allowFullWidth},L)),O=function(){var jj;
return Z()&&!((jj=F())==null?0:jj.allowFullWidth)},f=function(){return P()&&(!!y().heroImage||m())&&Q3t(y())>0},v=function(){return f()&&(C==null?void 0:C())};
L={};var z=_.ip((L["page-header-view-model-wiz__page-header-title"]=!0,L["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!f()},L["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return f()&&!v()},L["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=v,L["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=U,L));
L={};var sc=_.ip((L["page-header-view-model-wiz__page-header-headline-image"]=!0,L["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!y().heroImage&&Z()},L));
L={};var hR=_.ip((L["page-header-view-model-wiz__page-header-banner-container"]=q,L["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var jj;return(q==null?void 0:q())&&((jj=_.G(y().banner,_.NBi))==null?void 0:jj.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},L));
L={};var Wt=_.ip((L["page-header-view-model-wiz__page-header-content-metadata"]=!0,L["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=U,L));L={};var AR=_.ip((L["page-header-view-model-wiz__page-header-flexible-actions"]=!0,L["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!y().metadata||Z()},L["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!Z()},L));
L={};var Qu=_.ip((L["page-header-view-model-wiz__page-header-attribution"]=!0,L["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=U,L));return _.R("yt-page-header-view-model",{class:p},_.R(_.W,{cond:U,then:function(){return _.R("div",{class:"page-header-view-model-wiz__page-header-background"},_.R(_.di,{data:function(){return y().background}},{cinematicContainerViewModel:function(jj){return _.R(_.ulv,{data:jj.data,
topbarOffset:t})}}))}}),_.R(bLP,{condition:function(){return!(e==null||!e())},
content:function(){return _.R("div",{class:"page-header-view-model-wiz__page-header-content"},_.R(_.W,{cond:function(){return(q==null?void 0:q())&&y().banner},
then:function(){return _.R("div",{class:hR},_.R(_.di,{data:function(){return y().banner}},{imageBannerViewModel:_.jnr}))}}),_.R("div",{class:T},_.R(_.W,{cond:m,
then:function(){return _.R(_.di,{data:function(){var jj;if(!(jj=y().animatedImage)){jj=y();if(m()){var x6=jj=Object.assign({},jj),L8=b(),Y6=Q3t(y()),AZ=x6.image,cU=_.G(AZ,k7r),Xo=cU==null?void 0:cU.avatar,U$=_.G(Xo,_.lI);if(AZ&&Xo&&U$){switch(L8){case 1:U$.avatarImageSize="AVATAR_SIZE_XL";break;case 2:U$.avatarImageSize="AVATAR_SIZE_XXL";break;default:Y6<4?U$.avatarImageSize="AVATAR_SIZE_XXL":U$.avatarImageSize="AVATAR_SIZE_XXXL"}_.n("web_enable_sink_page_header_view_model")&&(_.oF(Xo,_.lI,Object.assign({},
U$)),cU.avatar=Object.assign({},Xo),_.oF(AZ,k7r,Object.assign({},cU)),x6.image=Object.assign({},AZ))}}jj=jj.image}return jj}},{contentPreviewImageViewModel:function(jj){return _.R(_.bY,{data:jj.data,
className:sc,imageSizeConfig:F})},
decoratedAvatarViewModel:function(jj){return _.R(_.X9,{data:jj.data,className:sc})}})}}),_.R(_.W,{cond:function(){return!!y().heroImage&&!O()},
then:function(){return _.R(_.di,{data:function(){return y().heroImage}},{contentPreviewImageViewModel:function(jj){return _.R(_.bY,{data:jj.data,
className:sc,imageSizeConfig:F})}})}}),_.R("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.R(_.W,{cond:function(){return!!y().heroImage&&O()},
then:function(){return _.R("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.R(_.di,{data:function(){return y().heroImage}},{contentPreviewImageViewModel:function(jj){return _.R(_.bY,{data:jj.data,
className:sc,imageSizeConfig:F})}}))}}),_.R(_.di,{data:function(){return y().title}},{dynamicTextViewModel:function(jj){return _.R($hi,{data:jj.data,
className:z})}}),_.R(_.di,{data:function(){return y().metadata}},{contentMetadataViewModel:function(jj){return _.R(_.nH,{data:jj.data,
layout:function(){return P()?1:0},
className:Wt,isOverlay:U,useMediumText:function(){return(u==null?void 0:u())||K()}})}}),_.R(_.W,{cond:function(){return y().description&&!P()},
then:function(){return _.R(_.di,{data:function(){return y().description}},{descriptionPreviewViewModel:function(jj){return _.R(pf,{data:jj.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:U,maxLinesOverride:function(){return P()?void 0:1},
useMediumText:K})}})}}),_.R(_.W,{cond:function(){return y().attribution&&!Z()},
then:function(){return _.R(_.di,{data:function(){return y().attribution}},{attributionViewModel:function(jj){return _.R(CZi,{data:jj.data,
className:Qu,useMediumText:K})}})}}),_.R(_.W,{cond:function(){return y().actions&&!Z()},
then:function(){return _.R(_.di,{data:function(){return y().actions}},{flexibleActionsViewModel:function(jj){return _.R(d4,{data:jj.data,
layout:function(){return Kf5(b())},
className:AR})}})}}))),_.R("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.R(_.W,{cond:function(){return y().description&&P()},
then:function(){return _.R(_.di,{data:function(){return y().description}},{descriptionPreviewViewModel:function(jj){return _.R(pf,{data:jj.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:U,maxLinesOverride:function(){return P()?void 0:1},
useMediumText:K})}})}}),_.R(_.W,{cond:function(){return y().attribution&&Z()},
then:function(){return _.R(_.di,{data:function(){return y().attribution}},{attributionViewModel:function(jj){return _.R(CZi,{data:jj.data,
className:Qu,useMediumText:K})}})}}),_.R(_.W,{cond:function(){return y().actions&&Z()},
then:function(){return _.R(_.di,{data:function(){return y().actions}},{flexibleActionsViewModel:function(jj){return _.R(d4,{data:jj.data,
layout:function(){return Kf5(b())},
className:AR})}})}})),_.R("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.R(_.di,{data:function(){return y().bottomMetadataFlexibleContainer}},{flexibleContainer:function(jj){return _.R(UhQ,{data:jj.data,
isOverlay:U})}})))}}))},"Ad");
_.nOr.idomCompat=!0;_.bp(_.aF(function(p){var y=_.c(_.nr(!1,void 0,"j5qbkc")),l=y.next().value,q=y.next().value;return _.R("yt-official-card-view-model",{class:_.ip("ytOfficialCardViewModelHost",p.className),style:_.NW({"background-color":function(){var t,E=rrt((t=p.data())==null?void 0:t.backgroundColor);return E?_.Y9(E):void 0}})},_.R(_.di,{data:function(){return p.data().header}},{pageHeaderViewModel:function(t){return _.R(_.nOr,{data:t.data,
noPadding:!0})}}),_.R(_.di,{data:function(){return p.data().contents}},{horizontalShelfViewModel:function(t){return _.R(_.IH,{data:t.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.R(_.W,{cond:l,
then:function(){return _.R("div",{class:"ytOfficialCardViewModelExpandedContent"},_.R(_.di,{data:function(){return p.data().expandedContents}},{horizontalShelfViewModel:function(t){return _.R(_.IH,{data:t.data,
sizing:"MINI"})}}),_.R("div",{class:"ytOfficialCardViewModelCollapseButton"},_.R(_.di,{data:function(){return p.data().collapseButton}},{buttonViewModel:function(t){return _.R(_.wZ,{data:t.data,
onClick:function(){q(!l())}})}})))},
else:function(){return _.R("div",{class:"ytOfficialCardViewModelExpandButton"},_.R(_.di,{data:function(){return p.data().expandButton}},{buttonViewModel:function(t){return _.R(_.wZ,{data:t.data,
onClick:function(){q(!l())}})}}))}}))},"Bd"),"yt-official-card-view-model",{props:{data:_.Co,
className:_.Co}});var waL=_.T4({buttonViewModel:_.wZ});_.uX(i3t);_.gD(i3t,"ytw-search-friction-view-model",{propNames:["data"]});_.GhO=_.aF(function(p){var y=_.sM("markdown-div"),l,q=(l=_.WC().resolve(_.RK(_.hb)))==null?void 0:l();_.NA(function(){var t=y.value;var E=new LPU,e=new Map(E.JSC$9235_sanitizerTable.globalAttributePolicies);e.set("style",{policyAction:4});E.JSC$9235_sanitizerTable=new Lj(E.JSC$9235_sanitizerTable.allowedElements,E.JSC$9235_sanitizerTable.elementPolicies,E.JSC$9235_sanitizerTable.allowedGlobalAttributes,e,E.JSC$9235_sanitizerTable.globallyAllowedAttributePrefixes);var C=["data-time"];if(C===void 0)e=
new Set(E.JSC$9235_sanitizerTable.globallyAllowedAttributePrefixes),e.add("data-"),E.JSC$9235_sanitizerTable=new Lj(E.JSC$9235_sanitizerTable.allowedElements,E.JSC$9235_sanitizerTable.elementPolicies,E.JSC$9235_sanitizerTable.allowedGlobalAttributes,E.JSC$9235_sanitizerTable.globalAttributePolicies,e);else{e=new Set(E.JSC$9235_sanitizerTable.allowedGlobalAttributes);C=_.c(C);for(var u=C.next();!u.done;u=C.next()){u=u.value;if(u.indexOf("data-")!==0)throw Error("ma`"+u);e.add(u)}E.JSC$9235_sanitizerTable=
new Lj(E.JSC$9235_sanitizerTable.allowedElements,E.JSC$9235_sanitizerTable.elementPolicies,e,E.JSC$9235_sanitizerTable.globalAttributePolicies,E.JSC$9235_sanitizerTable.globallyAllowedAttributePrefixes)}e=new Set(E.JSC$9235_sanitizerTable.allowedGlobalAttributes);e.add("class");E.JSC$9235_sanitizerTable=new Lj(E.JSC$9235_sanitizerTable.allowedElements,E.JSC$9235_sanitizerTable.elementPolicies,e,E.JSC$9235_sanitizerTable.globalAttributePolicies,E.JSC$9235_sanitizerTable.globallyAllowedAttributePrefixes);
_.hw(t,_.wUr(E.build(),Sz5(p.text())));Ffg(y.value)},"CUInJc");
l={};return _.R("div",null,_.R("markdown-div",{class:_.ip("ytwMarkdownDivHost",(l.ytwMarkdownDivDark=q,l.ytwMarkdownDivHostSmall=function(){var t;return((t=p.isSmallText)==null?void 0:t.call(p))||!1},l.ytwMarkdownDivHostWrapCodeBlocks=function(){var t;
return((t=p.wrapCodeBlocks)==null?void 0:t.call(p))||!1},l)),
el:y}))},"Cd");
_.GhO.idomCompat=!0;var P$v=_.aF(function(p){var y=p.imageData;var l=_.uy(p.isInList,!1),q=function(){return l()?{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 _.R("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.R(_.W,{cond:function(){return y().image},
then:function(t){return _.R(_.W$,{data:t,alt:function(){return q().alt},
contentMode:function(){return q().contentMode},
targetWidth:function(){return q().targetWidth},
targetHeight:function(){return q().targetHeight},
className:function(){return q().className}})}}),_.R("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.R("div",{class:_.ip("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.R(_.CF,{text:function(){return y().title}})),_.R(_.rT,{each:function(){var t;
return(t=y().description)!=null?t:[]}},function(t){return _.R("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.R(y7,{content:t}))})))},"Dd"),A8B=_.aF(function(p){var y=p.list;
var l=function(){var q;return(q=y().items)!=null?q:[]};
return _.R("div",{class:"ytwGenAiRichTextViewModelListContent"},_.R(_.W,{cond:function(){return y().title},
then:function(q){return _.R("div",{class:_.ip("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.R(_.CF,{text:q}))}}),_.R(_.W,{cond:function(){return y().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.R("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.R(_.rT,{each:l},function(q){return _.R("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.R(y7,{content:q,isInList:!0}))}))}}),_.R(_.W,{cond:function(){return y().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.R("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.R(_.rT,{each:l},function(q){return _.R("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.R(y7,{content:q,isInList:!0}))}))}}),_.R(_.W,{cond:function(){return y().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.R("div",{class:"ytwGenAiRichTextViewModelImageList"},_.R(_.rT,{each:l},function(q){return _.R("div",{class:"ytwGenAiRichTextViewModelListItem"},_.R(y7,{content:q,isInList:!0}))}))}}))},"Ed"),ZLr=_.aF(function(p){var y=p.table;
return _.R("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.R("thead",null,_.R("tr",null,_.R(_.rT,{each:function(){var l,q;return(q=(l=y().header)==null?void 0:l.cells)!=null?q:[]}},function(l){return _.R("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.R(_.rT,{each:function(){return l.contents}},function(q){return _.R(y7,{content:q})}))}))),_.R("tbody",null,_.R(_.rT,{each:function(){var l;
return(l=y().rows)!=null?l:[]}},function(l){return _.R("tr",null,_.R(_.rT,{each:function(){return l.cells}},function(q){return _.R("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.R(_.rT,{each:function(){return q.contents}},function(t){return _.R(y7,{content:t})}))}))})))},"Fd"),y7=_.aF(function(p){var y=p.content;
var l=_.uy(p.isInList,!1),q=function(){var t,E;return(E=(t=y().contentBlock)==null?void 0:t.contents)!=null?E:[]};
return _.R("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.R(_.W,{cond:function(){return y().text},
then:function(t){return _.R(_.CF,{className:"ytwGenAiRichTextViewModelText",text:t})}}),_.R(_.W,{cond:function(){return y().image},
then:function(t){return _.R(P$v,{imageData:t,isInList:l})}}),_.R(_.W,{cond:function(){return y().list},
then:function(t){return _.R(A8B,{list:t})}}),_.R(_.W,{cond:function(){return y().contentBlock},
then:function(){return _.R("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.R(_.rT,{each:q},function(t){return _.R(y7,{content:t,isInList:!1})}))}}),_.R(_.W,{cond:function(){return y().table},
then:function(t){return _.R(ZLr,{table:t})}}))},"Gd"),Mpv=_.aF(function(p){var y={};
y=_.rD("ytwGenAiRichTextViewModelHost",(y.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.$h("search_overview_link_style")),y));return _.R("gen-ai-rich-text-view-model",{class:y},_.R(y7,{content:function(){return p.data().content}}))},"Hd");_.uX(Lf_);_.uX(vn);_.Vpv=_.aF(function(p){var y=p.data;var l=function(){var K;return((K=y().loadingUi)!=null?K:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},q=function(){return y().isLoading&&(l()==="UNSPECIFIED"||l()==="GHOST_CARD")},t=function(){return!y().isLoading},E=function(){return!!y().content&&!y().contents},e=function(){return!!y().contents},C=function(){return!!y().nextQueryButtons},u=function(){return y().isLoading&&l()==="INVISIBLE"},a=function(){var K,F;
return(F=(K=y().headerIcon)==null?void 0:K.iconType)!=null?F:""},m=function(){var K;
return(K=y().content)!=null?K:""},U=function(){return!!y().sourcesSection},b,P=!((b=_.WC().resolve(_.RK(_.hb)))==null||!b()),Z=_.MA(function(){var K=[],F=y().contents;
if(F)for(var L=0;L<F.length;L++){var T=_.G(F&&F[L],vBx);T&&K.push(T)}return K},void 0,"ycU97e");
_.xZ(function(){y().isLoading||_.fy("so_re",void 0,"search_overview_answer")});
return _.R("ytd-overview-answer-view-model",{class:function(){var K={};K=(K.ytdOverviewAnswerViewModelHost=!0,K.ytdOverviewAnswerViewModelDarkBackground=P&&!u(),K.ytdOverviewAnswerViewModelLightBackground=!P&&!u(),K);return _.rD(K)}},_.R(_.W,{cond:function(){return!u()},
then:function(){return _.R(_.a4,null,_.R("h2",null,_.R("div",{class:"ytdOverviewAnswerViewModelHeader"},_.R(_.W,{cond:a,then:function(K){return _.R("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.R(_.DR,{icon:K}))}}),_.R("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.R("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return y().headerText}),_.R("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.R(_.CF,{text:function(){return y().headerSubtext}}))))),_.R(_.W,{cond:q,
then:function(){return Lf_()}}),_.R(_.W,{cond:t,
then:function(){return _.R(_.a4,null,_.R(_.W,{cond:E,then:function(){return _.R("div",{class:"ytdOverviewAnswerViewModelText"},_.R(_.GhO,{text:m,isSmallText:!0}))}}),_.R(_.W,{cond:e,
then:function(){return _.R("div",{class:"ytdOverviewAnswerViewModelRichText"},_.R(_.rT,{each:Z},function(K){return _.R(Mpv,{data:K})}))}}),_.R(_.W,{cond:C,
then:function(){return _.R("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.R(_.di,{data:function(){return y().nextQueryButtons}},{buttonViewModel:function(K){return _.R(_.wZ,{data:K.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.IH}))}}),_.R("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.R("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.R(_.W,{cond:function(){return!!_.G(y().likeButtonViewModel,_.o5)&&!!_.G(y().dislikeButtonViewModel,_.Ox)},
then:function(){return _.R("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.R(_.ow,{data:function(){return _.G(y().likeButtonViewModel,_.o5)},
disableIconAnimation:!0}),_.R(_.OW,{data:function(){return _.G(y().dislikeButtonViewModel,_.Ox)}}))}})),_.R(_.W,{cond:function(){var K;
return(K=y().sourcesSection)==null?void 0:K.headerText},
then:function(K){return _.R("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.R(_.CF,{text:K}))}})),_.R(_.W,{cond:U,
then:function(){return _.R("div",{class:"ytdOverviewAnswerViewModelSources"},_.R(_.di,{data:function(){var K;return(K=y().sourcesSection)==null?void 0:K.sourcesShelf}},{buttonViewModel:_.wZ,
horizontalShelfViewModel:function(K){return _.R(_.IH,{data:K.data,includeMargin:!0,hasPeek:!0})}}))}}),_.R(_.W,{cond:function(){return y().disclaimerText},
then:function(){return _.R("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.R(_.CF,{text:function(){return y().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Id");var gOv=_.aF(function(p){var y=p.data;var l=p.active;var q=_.sM("transcript-segment-view-model");_.NA(function(){var t,E,e,C=((t=_.WC().resolve(_.RK(_.hb)))==null?0:t())?(E=y())==null?void 0:E.darkThemeColorPalette:(e=y())==null?void 0:e.lightThemeColorPalette;C&&(C.additiveBackground&&q.value.style.setProperty("--timestamp-active-background-color",_.Y9(C.additiveBackground)),C.textSecondary&&q.value.style.setProperty("--timestamp-active-color",_.z5(C.textSecondary)))},"KHcbwb");
p={};return _.R("transcript-segment-view-model",{class:_.ip("ytwTranscriptSegmentViewModelHost",(p.ytwTranscriptSegmentViewModelHostActive=l,p.ytwTranscriptSegmentViewModelHostModern=_.n("enable_timeline_view_modern_transcript")||_.n("enable_timeline_view_modern_transcript_fe"),p)),el:q},_.R(_.W,{cond:function(){var t;return(t=y())==null?void 0:t.timestamp},
then:function(t){var E={};return _.R("div",{class:_.ip("ytwTranscriptSegmentViewModelTimestamp",(E.ytwTranscriptSegmentViewModelTimestampActive=l,E))},t)}}),_.R(_.CF,{text:function(){var t,E,e;
return(e=(t=y())==null?void 0:t.attributedText)!=null?e:{content:(E=y())==null?void 0:E.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Jd");var Qni=_.aF(function(p){var y=p.data;return _.R("div",{class:"yt-video-attributes-section-view-model__header"},_.R("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return y().headerTitle}),_.R(_.W,{cond:function(){return y().headerSubtitle},
then:function(){return _.R("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return y().headerSubtitle})}}))},"Kd"),Kax=_.aF(function(p){function y(K){return Math.max(Math.min(K,0),a()-C())}
var l=p.data;var q,t=_.sM("div",function(K){if(_.n("web_metadata_carousel_elref_bugfix")){var F=function(){m(K.clientWidth)};
F();window.ResizeObserver&&(q=new ResizeObserver(F),q.observe(K))}}),E=_.sM("div",function(K){u(K.scrollWidth)}),e=_.c(_.nr(0,void 0,"I9GbH"));
p=e.next().value;e=e.next().value;var C=p,u=e;e=_.c(_.nr(0,void 0,"eQAn5b"));p=e.next().value;e=e.next().value;var a=p,m=e;p=_.c(_.nr(0,void 0,"VU3lg"));var U=p.next().value,b=p.next().value;_.xZ(function(){if(!_.n("web_metadata_carousel_elref_bugfix")){var K=function(){u(E.value.scrollWidth);m(t.value.clientWidth)};
K();if(window.ResizeObserver){var F=new ResizeObserver(K);F.observe(t.value);_.TP(function(){F.disconnect()})}}});
_.TP(function(){if(_.n("web_metadata_carousel_elref_bugfix")){var K;(K=q)==null||K.disconnect()}});
var P=function(){b(y(U()+a()))},Z=function(){b(y(U()-a()))};
return _.R("yt-video-attributes-section-view-model",null,_.R("div",{class:"yt-video-attributes-section-view-model"},_.R(_.W,{cond:function(){return l().headerTitle},
then:function(){return _.R(Qni,{data:l})}}),_.R("div",{class:_.ip("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:t},_.R("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.NW({transform:function(){var K=U();_.OY("HTML_DIR")==="rtl"&&(K*=-1);return"translateX("+K+"px)"}}),
el:E},_.R(_.di,{data:function(){return l().videoAttributeViewModels}},{videoAttributeViewModel:wAO}))),_.R(_.di,{data:function(){return l().footerButton}},{buttonViewModel:function(K){return _.R(_.wZ,{data:K.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.R(_.W,{cond:function(){return U()<0&&l().previousButton},
then:function(){return _.R("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.R(_.di,{data:function(){return l().previousButton}},{buttonViewModel:function(K){return _.R(_.wZ,{data:K.data,
onClick:P})}}))}}),_.R(_.W,{cond:function(){return U()>a()-C()&&l().nextButton},
then:function(){return _.R("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.R(_.di,{data:function(){return l().nextButton}},{buttonViewModel:function(K){return _.R(_.wZ,{data:K.data,
onClick:Z})}}))}})))},"Ld");
Kax.idomCompat=!0;var whB=_.aF(function(p){var y=p.data;var l=p.active;var q={},t={};return _.R("timeline-item-view-model",{class:_.ip("ytwTimelineItemViewModelHost",(q.ytwTimelineItemViewModelHostChapterChild=p.chapterChild,q.ytwTimelineItemViewModelModern=_.n("enable_timeline_view_modern_transcript")||_.n("enable_timeline_view_modern_transcript_fe"),q))},_.R("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.R("div",{class:_.ip("ytwTimelineItemViewModelTimestamp",(t.ytwTimelineItemViewModelTimestampActive=
l,t))},function(){return y().timestamp})),_.R("div",{class:"ytwTimelineItemViewModelContentItems"},_.R(_.di,{data:function(){return y().contentItems}},{transcriptSegmentViewModel:function(E){return _.R(gOv,{data:E.data,
active:l})},
videoAttributesSectionViewModel:Kax})))},"Md");var iLN=_.aF(function(p){var y=p.data;p={};return _.R("timeline-chapter-view-model",{class:_.ip("ytwTimelineChapterViewModelHost")},_.R("div",{class:_.ip("ytwTimelineChapterViewModelTitle",(p.ytwTimelineChapterViewModelModern=_.n("enable_timeline_view_modern_transcript")||_.n("enable_timeline_view_modern_transcript_fe"),p))},function(){return y().title}),_.R(_.di,{data:function(){return y().contents}},{timelineItemViewModel:function(l){return _.R(whB,{data:l.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(l){return _.R(Kax,{data:l.data})}}))},"Nd");var r8U=_.aF(function(p){var y=p.data;var l=_.sM("macro-markers-panel-item-view-model"),q=_.So(_.Uz_,function(){var E;return(E=y().markersEngagementPanelSyncEntityKey)!=null?E:""}),t=function(){var E;
return((E=q())==null?void 0:E.activeItemIndex)===y().index};
p=_.Ff(function(E){var e,C,u,a,m;return _.h(function(U){if(U.nextAddress==1)return E.stopPropagation(),_.Yo(_.z4(E),l.value,["A".toString(),"BUTTON".toString()])?U.return():(e=_.yM(y().onTap))?U.yield(_.VS(),2):U.return();C=U.yieldResult;a=(u=_.G(e,_.Eb))==null?void 0:u.startTimeSeconds;a===void 0||(m=C)!=null&&m.seekTo(a,!0);_.rR(U)})});
return _.R("macro-markers-panel-item-view-model",{class:_.ip("ytwMacroMarkersPanelItemViewModelHost",{"is-active":t}),el:l,"on:click":p,tabindex:0},_.R(_.di,{data:function(){var E;return(E=y())==null?void 0:E.item}},{timelineChapterViewModel:function(E){return _.R(iLN,{data:E.data,
active:t})},
timelineItemViewModel:function(E){return _.R(whB,{data:E.data,active:t})},
videoAttributeViewModel:wAO}))},"Od");
r8U.idomCompat=!0;_.bp(r8U,"macro-markers-panel-item-view-model",{props:{data:_.Co}});_.bp(Kax,"yt-video-attributes-section-view-model",{props:{data:_.Co}});var SSi=_.aF(function(p){var y=function(){var l,q,t;return(t=(l=p.data().leadingLogoAccessibility)==null?void 0:(q=l.accessibilityData)==null?void 0:q.label)!=null?t:""};
return _.R("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.R(_.W,{cond:function(){return p.data().leadingLogo},
then:function(l){return _.R(_.W$,{className:"ytwFantasySectionHeaderViewModelLogo",data:l,alt:y})}}),_.R("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.R(_.CF,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return p.data().title}}),_.R(_.CF,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return p.data().subtitle}})),_.R(_.di,{data:function(){return p.data().trailingButton}},{buttonViewModel:function(l){return _.R(_.wZ,{data:l.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Pd");var Far=_.aF(function(p){var y={};y=_.ip("ytwFantasyTeamViewModelHost",(y.ytwFantasyTeamViewModelCompact=function(){var t;return!((t=p.compact)==null||!t.call(p))},y.ytwFantasyTeamViewModelUser=function(){return p.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},y.ytwFantasyTeamViewModelOpponent=function(){return p.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},y));
var l=function(){var t,E,e;return(e=(t=p.data().teamLogoAccessibility)==null?void 0:(E=t.accessibilityData)==null?void 0:E.label)!=null?e:""},q=_.So(jta,function(){return p.data().teamEntityKey});
return _.R("ytw-fantasy-team-view-model",{class:y},_.R(_.W,{cond:function(){return p.data().teamLogo},
then:function(t){return _.R(_.W$,{className:"ytwFantasyTeamViewModelLogo",data:t,alt:l})}}),_.R("div",{class:"ytwFantasyTeamViewModelMetadata"},_.R("div",{class:"ytwFantasyTeamViewModelHeader"},_.R(_.CF,{className:"ytwFantasyTeamViewModelScore",
text:function(){var t;return(t=q())==null?void 0:t.score}}),_.R(_.DR,{icon:function(){var t;
return(t=q())==null?void 0:t.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.R(_.CF,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var t;return(t=q())==null?void 0:t.projectedScore}})),_.R(_.CF,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return p.data().primaryText}}),_.R(_.CF,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return p.data().secondaryText}}),_.R(_.CF,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return p.data().tertiaryText}})),_.R(_.CF,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var t;return(t=q())==null?void 0:t.score}}))},"Qd");_.bp(_.aF(function(p){return _.R("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.R("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.R(_.di,{data:function(){return p.data().summaryHeader}},{fantasySectionHeaderViewModel:SSi})),_.R(_.di,{data:function(){return p.data().userTeam}},{fantasyTeamViewModel:Far}),_.R(_.di,{data:function(){return p.data().opponentTeam}},{fantasyTeamViewModel:Far}))},"Rd"),"fantasy-league-summary-view-model",{props:{data:_.Co}});var LaN=_.aF(function(p){var y=_.RF(p,{shape:{},useCustomTabRenderable:!1}),l=y.shape;y=y.useCustomTabRenderable;var q=p.customTabRenderable,t=function(){return l().disabled},E=function(){return l().selected},e=function(){return l().title},C=function(){return l().icon},u=_.sM("yt-tab-shape");
p=_.Ff(function(U){var b;if(!t()&&((b=l().aTagConfig)==null?0:b.onclick))l().aTagConfig.onclick(U);return!1});
var a=_.Ff(function(U){if(U.key==="Enter"||U.key==="ArrowUp"||U.key==="ArrowDown")U.preventDefault(),u.value.click();return!1}),m={};
return _.R("yt-tab-shape",{class:_.ip("yt-tab-shape-wiz",function(){return l().className},(m["yt-tab-shape-wiz__tab--last-tab"]=function(){return l().isLastTab},m["yt-tab-shape-wiz--host-disabled"]=t,m["yt-tab-shape-wiz--host-clickable"]=!q,m)),
role:q?void 0:"tab","aria-selected":E!=null?E:!1,"aria-disabled":t,tabindex:q?void 0:0,"on:click":p,"on:keydown":a,el:u,"tab-identifier":function(){return l().identifier},
"tab-title":e},_.R(_.W,{cond:y,then:function(){return q()},
else:function(){var U={},b={};return _.R(_.a4,null,_.R("div",{class:_.ip("yt-tab-shape-wiz__tab",(U["yt-tab-shape-wiz__tab--tab-selected"]=E,U))},_.R(_.W,{cond:C,then:function(P){return _.R(_.DR,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return P().iconType}})}}),e),_.R("div",{class:_.ip("yt-tab-shape-wiz__tab-bar",(b["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=E,b))}))}}))},"Sd");
LaN.idomCompat={callbacks:{customTabRenderable:!0}};_.NxN=_.aF(function(p){var y=p.shape;p=_.c(_.nr(48,void 0,"r9IBlb"));var l=p.next().value,q=p.next().value;p=_.c(_.nr(0,void 0,"Bd7rmd"));var t=p.next().value,E=p.next().value,e=function(){return y().tabs},C=_.sM("yt-tab-group-shape"),u=function(){var a,m;
return(m=(a=e())==null?void 0:a.findIndex(function(U){return U.selected}))!=null?m:-1};
_.xZ(function(){var a=C.value.querySelectorAll("yt-tab-shape"),m=u()>-1?a[u()]:void 0;_.TR.addJob(function(){q((m==null?void 0:m.getBoundingClientRect().width)||0)},8,0)});
_.NA(function(){var a=u(),m=_.TR.addJob(function(){var U,b=((U=C.value)==null?void 0:U.querySelectorAll("yt-tab-shape"))||[],P;q(((P=a>-1?b[a]:void 0)==null?void 0:P.getBoundingClientRect().width)||0);for(P=U=0;P<a;P++)U+=b[P].offsetWidth+24;_.OY("HTML_DIR")==="rtl"&&(U=-U);E(U)},8,0);
_.TP(function(){_.TR.cancelJob(m)})},"EHixkc");
p={};return _.R("yt-tab-group-shape",{class:_.ip("yt-tab-group-shape-wiz",(p["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return y().isOverflowHidden},p)),
el:C},_.R(_.W,{cond:e,then:function(a){return _.R(_.a4,null,_.R("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.R(_.rT,{each:a},function(m,U){return _.R(LaN,{shape:function(){return Object.assign({},m,{isLastTab:U()===a().length-1})},
customTabRenderable:m.customTabRenderable,useCustomTabRenderable:!!m.customTabRenderable})})),_.R(khP,{width:l,
sliderOffset:t}))}}))},"Td");
_.NxN.idomCompat=!0;var khP=_.aF(function(p){var y=_.uy(p.sliderOffset,0),l=p.width;return _.R("div",{class:"yt-tab-group-shape-wiz__slider",style:_.NW({width:function(){return l()+"px"},
transform:function(){return"translateX("+y()+"px)"}})})},"Ud");var DhN=_.aF(function(p){var y=function(){var E,e,C;return(C=(E=p.data().playerLogoAccessibility)==null?void 0:(e=E.accessibilityData)==null?void 0:e.label)!=null?C:""},l=_.So(bQa,function(){return p.data().playerEntityKey}),q={};
q=_.ip("ytwFantasyPlayerViewModelHost",(q.ytwFantasyPlayerViewModelPlaying=function(){var E;return!((E=l())==null||!E.isPlayerPlaying)},q.ytwFantasyPlayerViewModelOnField=function(){var E;
return((E=l())==null?void 0:E.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},q.ytwFantasyPlayerViewModelRedZone=function(){var E;
return((E=l())==null?void 0:E.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},q));
var t=function(){var E,e,C,u=((E=_.WC().resolve(_.RK(_.hb)))==null?0:E())?(e=p.data().playerLogoBackgroundColor)==null?void 0:e.darkTheme:(C=p.data().playerLogoBackgroundColor)==null?void 0:C.lightTheme;return u===void 0?"":_.Y9(u)};
return _.R("ytw-fantasy-player-view-model",{class:q},_.R(_.W,{cond:function(){return p.data().playerLogo},
then:function(E){return _.R("div",{class:"ytwFantasyPlayerViewModelLogo"},_.R("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.R(_.W$,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.NW({"background-color":t}),data:E,alt:y})),_.R("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.R(_.DR,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.R("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.R("div",{class:"ytwFantasyPlayerViewModelHeader"},_.R(_.CF,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var E;return(E=p.data())==null?void 0:E.playerNameText}}),_.R(_.CF,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var E;return(E=p.data())==null?void 0:E.playerDescriptionText}})),_.R("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.R(_.CF,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var E;return(E=l())==null?void 0:E.gamePeriodText}}),_.R(_.CF,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var E;return(E=p.data())==null?void 0:E.opponentTeamText}}),_.R(_.CF,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var E;return(E=l())==null?void 0:E.gameStatusText}}),_.R(_.CF,{className:_.ip("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var E;return(E=l())==null?void 0:E.playerStatusText}})),_.R("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.R(_.CF,{text:function(){var E;
return(E=l())==null?void 0:E.playerStatsText}}))),_.R(_.CF,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var E;return(E=l())==null?void 0:E.fantasyScore}}))},"Vd");var HL$=_.aF(function(p){return _.R("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.R(_.W,{cond:function(){return p.data().players},
then:function(y){return _.R(_.di,{data:y},{fantasyPlayerViewModel:DhN})}}))},"Wd");var TxU=_.aF(function(p){var y=_.c(_.kS(function(){var t;return(t=p.data().selectedTabIdentifierKey)!=null?t:""})),l=y.next().value,q=y.next().value;
_.Hu(function(){var t;(t=p.setSelectedTabSignal)==null||t.call(p,l)});
return _.R("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.R("div",{class:"ytTabbedViewModelTabGroup"},_.R(_.NxN,{shape:function(){var t=p.data(),E=[],e={tabs:E};if(!t.tabs)return e;t=_.c(t.tabs);for(var C=t.next(),u={};!C.done;u={tabViewModel:void 0},C=t.next())if(u.tabViewModel=_.G(C.value,sir),u.tabViewModel){var a=C=void 0;E.push({aTagConfig:{onclick:function(m){return function(){var U;q((U=m.tabViewModel.tabIdentifier)!=null?U:"")}}(u)},
identifier:u.tabViewModel.tabIdentifier,selected:l()===u.tabViewModel.tabIdentifier,title:(a=(C=u.tabViewModel.title)==null?void 0:C.content)!=null?a:""})}return e}})),_.R(_.di,{data:function(){var t,E=_.c((t=p.data().tabs)!=null?t:[]);
for(t=E.next();!t.done;t=E.next())if((t=_.G(t.value,sir))&&t.tabIdentifier===l())return t.content}},{fantasyRosterViewModel:HL$}))},"Xd");_.bp(_.aF(function(p){var y=_.c(kq5()),l=y.next().value,q=y.next().value;return _.R("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.R(_.CF,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return p.data().title}}),_.R(_.W,{cond:function(){return p.data().tabbedViewModel},
then:function(t){return _.R(_.di,{data:t},{tabbedViewModel:function(E){return _.R(TxU,{data:E.data,setSelectedTabSignal:q})}})}}),_.R(_.W,{cond:function(){var t,E=(t=_.G(p.data().tabbedViewModel,tsr))==null?void 0:t.tabs;
t=_.G(E==null?void 0:E[0],sir);E=_.G(E==null?void 0:E[1],sir);var e=t==null?void 0:t.tabIdentifier;if(l()===e){var C,u;if(!((C=_.G(t==null?void 0:t.content,Ivi))==null?0:(u=C.players)==null?0:u.length))return p.data().noUserTeamPlayersText}else{var a,m;if(!((a=_.G(E==null?void 0:E.content,Ivi))==null?0:(m=a.players)==null?0:m.length))return p.data().noOpponentTeamPlayersText}},
then:function(t){return _.R(_.CF,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:t})}}))},"Yd"),"ytw-fantasy-matchup-view-model",{props:{data:_.Co}});_.bp(_.aF(function(p){return _.R("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.R(_.CF,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return p.data().title}}),_.R(_.W,{cond:function(){return p.data().matchupTeamPairs},
then:function(y){return _.R(_.rT,{each:y,keyBy:"INDEX"},function(l){return _.R("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.R(_.di,{data:function(){return[l().firstTeam,l().secondTeam]}},{fantasyTeamViewModel:function(q){return _.R(Far,{data:q.data,
compact:!0})}}))})}}))},"Zd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.Co}});_.bp(_.aF(function(p){var y=function(){var t,E,e;return(e=(t=p.data().userLogoAccessibility)==null?void 0:(E=t.accessibilityData)==null?void 0:E.label)!=null?e:""},l=function(){var t,E,e;
return(e=(t=p.data().opponentLogoAccessibility)==null?void 0:(E=t.accessibilityData)==null?void 0:E.label)!=null?e:""},q=_.So($z6,function(){return p.data().entityKey});
return _.R("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.R("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.R(_.W,{cond:function(){return p.data().userLogo},
then:function(t){return _.R(_.W$,{className:"ytwFantasyWinProbabilityViewModelLogo",data:t,alt:y})}}),_.R("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.R(_.CF,{text:function(){return p.data().title}})),_.R(_.W,{cond:function(){return p.data().opponentLogo},
then:function(t){return _.R(_.W$,{className:"ytwFantasyWinProbabilityViewModelLogo",data:t,alt:l})}})),_.R("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.R("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.R(_.CF,{text:function(){var t;
return(t=q())==null?void 0:t.userWinNumberLabel}})),_.R("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.R("div",{class:_.ip("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.NW({flex:function(){var t,E;return(E=(t=q())==null?void 0:t.userWinNumber)!=null?E:50}})}),_.R("div",{class:_.ip("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.NW({flex:function(){var t,E;return(E=(t=q())==null?void 0:t.opponentWinNumber)!=null?E:50}})})),_.R("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.R(_.CF,{text:function(){var t;
return(t=q())==null?void 0:t.opponentWinNumberLabel}}))))},"$d"),"fantasy-win-probability-view-model",{props:{data:_.Co}});var xhM={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},BxB=_.aF(function(p){return _.R(_.di,{data:p.button},{buttonViewModel:function(y){return _.R(_.wZ,{data:y.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"ae"),f0r=_.aF(function(p){return _.R("ytd-backstage-locked-post-view-model",{class:_.ip("ytdBackstageLockedPostViewModelHost",p.className)},_.R("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.R("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.R(_.di,
{data:function(){return p.data().authorAvatar}},{decoratedAvatarViewModel:_.X9})),_.R("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.R("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.R(_.CF,{text:function(){return p.data().authorText}})),_.R("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.R(_.CF,{text:function(){return p.data().publishedTimeText}}),_.R(_.di,{data:function(){return p.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(y){return _.R(WFP,
{data:y.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.R("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.R(_.CF,{text:function(){return p.data().contentText}})),_.R(_.L6,null,_.R(_.Sc,{when:function(){return p.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.R("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.R(_.W$,{data:xhM,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.R(_.CF,{text:function(){return p.data().lockedText}}))}),_.R(_.Sc,{when:function(){return p.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.R("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.R("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.R(_.W$,{data:xhM,
alt:""})),_.R(_.CF,{text:function(){return p.data().lockedText}}))})),_.R("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.R(BxB,{button:function(){return p.data().likeButton}}),_.R("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return p.data().voteCountA11y}},_.R(_.CF,{text:function(){return p.data().voteCount}})),_.R(BxB,{button:function(){return p.data().dislikeButton}}),_.R(BxB,{button:function(){return p.data().commentButton}}),_.R("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return p.data().commentCountA11y}},_.R(_.CF,{text:function(){return p.data().commentCount}}))))},"be");
f0r.idomCompat=!0;_.bp(f0r,"ytd-backstage-locked-post-view-model",{props:{data:_.Co,className:_.Co}});_.ox("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var li=function(){var p=_.w.apply(this,arguments)||this;p.darkerPanels=_.n("web_watch_darker_panels");p.commentsHidePanelButton=!1;p.isWatchGrid=!1;p.continuationShowButton=!1;p.isSearch=!1;p.isConstrainedList=!1;p.isWatch=!1;p.eligibleToSwitchToGrid=!1;p.notSticky=!1;p.epRestyle=!1;p.isCarouselInFeed=!0;p.topSpacingZero=!1;p.continuationIsInitialLoad=!0;p.enableSqueezebackPanels=_.n("web_shorts_enable_squeezeback_panels");p.enableAnchoredPanel=_.n("desktop_shorts_v2_anchored_panel");p.mastheadHeight=
0;p.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};p.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return p};
_.A(li,_.w);_.J=li.prototype;_.J.updateLockupContainerTypes=function(p){if(this.eligibleToSwitchToGrid){var y;(y=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||y.forEach(function(l){l.containerType=p})}};
_.J.getItemsPath=function(){return"data.contents"};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.J.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",
carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",lockupContainerType:"[[lockupContainerType]]"}},
channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},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:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",
properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",
unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",
properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",
courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",
liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},
"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.n("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.n("kevlar_low_priority_continuation")}}};
_.J.created=function(){};
_.J.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.J.handleIntersect=function(p){this.notSticky=p[0].intersectionRatio===1};
_.J.attached=function(){var p=this;document.addEventListener("scroll",_.MH(this,this.updateHeaderState));var y;this.mastheadHeight=((y=document.querySelector("ytd-masthead"))==null?void 0:y.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(l){p.handleIntersect(l)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){p.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.J.detached=function(){document.removeEventListener("scroll",_.MH(this,this.updateHeaderState));var p;(p=this.intersectionObserver)==null||p.disconnect();var y;(y=this.resizeObserver)==null||y.disconnect()};
_.J.updated=function(p){p.has("data")&&this.updateHeaderState()};
_.J.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(UwM(!this.notSticky))};
_.J.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var p=_.jR(this.hostElement).querySelector("ytd-comments-header-renderer");p&&(p.hidePanelButton=this.commentsHidePanelButton)}};
_.J.onRetrieveLocation=function(p,y){this.containsComments()&&(this.firstCommentsLoaded=y.hasComments=!0)};
_.J.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.J.onLoadReloadContinuation=function(p,y){var l=this;p.stopPropagation();this.isReloading=!0;_.Ub(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(q){var t=_.WC().resolve(_.vI);q=y(q);t.postData(q).then(function(E){l.onReloadContinuationData(E)})}})};
_.J.onReloadContinuationData=function(p){if(p=this.get("response.continuationContents.itemSectionContinuation",p)||this.get("response.contents.itemSectionRenderer",p)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",p)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",p))this.set("data.contents",p.contents||p.results),p.header&&this.set("data.header",p.header),this.set("data.continuations",
p.continuations||[]);this.isReloading=!1};
_.J.computeContentsClass=function(p){return p?"reloading":""};
_.J.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.J.computeSectionIdentifier=function(p){return p==null?void 0:p.sectionIdentifier};
_.J.computeFitContainer=function(p){return(p==null?void 0:p.sectionIdentifier)==="youchat-item-section"};
_.J.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.n("kevlar_disable_comments_auto_load")};
_.J.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.J.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.J.computeHasDestinationShelfRenderer=function(p){var y,l;return!!(p==null?0:(y=p.contents)==null?0:(l=y[0])==null?0:l.destinationShelfRenderer)};
_.J.computeHasSectionGroupViewModel=function(p){var y,l;return!!(p==null?0:(y=p.contents)==null?0:(l=y[0])==null?0:l.sectionGroupViewModel)};
_.J.computeHasQrCodeRenderer=function(p){var y,l;return!!(p==null?0:(y=p.contents)==null?0:(l=y[0])==null?0:l.qrCodeRenderer)};
_.J.computeStaticCommentsHeader=function(p){return p&&this.containsComments()};
_.J.computeEpRestyle=function(p){return _.n("web_ep_restyling")&&p&&this.containsComments()};
_.J.computeIsContinuationCommentSection=function(p){return(p==null?void 0:p.targetId)==="shorts-engagement-panel-comments-section"||(p==null?void 0:p.targetId)==="comments-section"||(p==null?void 0:p.targetId)==="engagement-panel-comments-section"};
_.J.computeSuppressPaddingDisclaimer=function(){var p,y,l,q;return!!((p=this.data)==null?0:(y=p.contents)==null?0:(l=y[0])==null?0:(q=l.productListHeaderRenderer)==null?0:q.suppressPaddingDisclaimer)};
_.J.computeHeaderStyle=function(p){switch(p==null?void 0:p.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.J.dataChanged=function(){this.firstCommentsLoaded=!1};
_.J.observeDataContentsLength=function(){var p,y;((p=this.data)==null?0:(y=p.contents)==null?0:y.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.J.onYtDismissibleItemDismissedChange=function(p){this._setItemDismissed(p.type==="yt-dismissible-item-dismissed")};
_.J.triggerContinuations=function(){for(var p=_.jR(this.hostElement).querySelector("#continuations").children,y=0;y<p.length;y++)p[y].trigger()};
_.J.triggerInitialContinuations=function(){for(var p=_.jR(this.hostElement).querySelector("#continuations").children,y=0;y<p.length;y++)p[y].triggerIfNotPreviouslyTriggered()};
_.J.handleYtItemSectionContinuation=function(p,y){var l;y&&((l=this.data)==null?void 0:l.sectionIdentifier)!==y||(this.set("data.continuations",[p]),this.triggerContinuations())};
_.J.handleYtItemSectionReplace=function(p,y){var l;y&&((l=this.data)==null?void 0:l.sectionIdentifier)!==y||(this.set("data.contents",p),this.set("data.continuations",[]))};
_.J.computeUseHeightHack=function(p){return p&&!_.n("kevlar_disable_height_hack")};
_.J.computeTopSpacingZero=function(p){return p};
_.J.continuationShowButtonChanged=function(){var p=_.jR(this.hostElement).querySelector("ytd-continuation-item-renderer");p&&(p.showButton=this.continuationShowButton)};
_.J.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JC("data-changed",this.data))};
_.Jh.Object.defineProperties(li.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.n("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return!!((p=this.data)==null?0:(y=p.contents)==null?0:(l=y[0])==null?0:l.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q,t,E,e;return!!((p=this.data)==null?0:(y=p.contents)==null?0:(l=y[0])==null?0:(q=l.shelfRenderer)==null?0:(t=q.content)==null?0:(E=t.gridRenderer)==null?0:(e=E.targetId)==null?0:e.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return!!((p=this.data)==null?0:(y=p.contents)==null?0:(l=y[0])==null?0:l.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return!!((p=this.data)==null?0:(y=p.contents)==null?0:(l=y[0])==null?0:l.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.$h("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.n("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.n("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
li.prototype.dataChangedForBinding=li.prototype.dataChangedForBinding;li.prototype.continuationShowButtonChanged=li.prototype.continuationShowButtonChanged;li.prototype.onYtDismissibleItemDismissedChange=li.prototype.onYtDismissibleItemDismissedChange;li.prototype.observeDataContentsLength=li.prototype.observeDataContentsLength;li.prototype.dataChanged=li.prototype.dataChanged;li.prototype.onServiceRequestCompleted=li.prototype.onServiceRequestCompleted;li.prototype.onLoadReloadContinuation=li.prototype.onLoadReloadContinuation;
li.prototype.onRetrieveLocation=li.prototype.onRetrieveLocation;li.prototype.commentsHidePanelButtonChanged=li.prototype.commentsHidePanelButtonChanged;li.prototype.dispatchChipBarIsSticky=li.prototype.dispatchChipBarIsSticky;li.prototype.updateLockupContainerTypes=li.prototype.updateLockupContainerTypes;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],li.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],li.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],li.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.$G.YtLazyListBehavior),_.x("design:type",Object)],li.prototype,"ytLazyListBehavior",void 0);_.H([_.V(_.Eo.YtNextContinuationBehavior),_.x("design:type",Object)],li.prototype,"ytNextContinuationBehavior",void 0);
_.H([_.V(_.tP),_.x("design:type",Object)],li.prototype,"ytContinuationHandlerBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],li.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],li.prototype,"ytdReduxBehavior",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],li.prototype,"darkerPanels",void 0);_.H([_.Q(),_.x("design:type",Object)],li.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],li.prototype,"engagementPanel",void 0);_.H([_.Q(),_.x("design:type",Object)],li.prototype,"commentsHidePanelButton",void 0);_.H([_.Q(),_.x("design:type",Object)],li.prototype,"isWatchGrid",void 0);_.H([_.Q(),_.x("design:type",Object)],li.prototype,"continuationShowButton",void 0);_.H([_.Q({computed:"computeIsContinuationCommentSection(data)"}),_.x("design:type",Boolean)],li.prototype,"continuationIsCommentsSection",void 0);
_.H([_.Q({value:!0}),_.x("design:type",Boolean)],li.prototype,"autoFill",void 0);_.H([_.Q(),_.x("design:type",Boolean)],li.prototype,"continuationDisablePrescanVisibility",void 0);_.H([_.Q(),_.x("design:type",Boolean)],li.prototype,"isReloading",void 0);_.H([_.Q(),_.x("design:type",Object)],li.prototype,"isSearch",void 0);_.H([_.Q(),_.x("design:type",Object)],li.prototype,"isConstrainedList",void 0);_.H([_.Q(),_.x("design:type",Object)],li.prototype,"isWatch",void 0);
_.H([_.Q(),_.x("design:type",Object)],li.prototype,"eligibleToSwitchToGrid",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],li.prototype,"notSticky",void 0);_.H([_.Q({selector:_.pX}),_.x("design:type",Object)],li.prototype,"isGridViewEnabled",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.x("design:type",Object)],li.prototype,"epRestyle",void 0);
_.H([_.g("isWatch"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],li.prototype,"hideShortsShelfHeader",null);_.H([_.g("isSearch","isWatch"),_.x("design:type",String),_.x("design:paramtypes",[])],li.prototype,"thumbnailWidth",null);_.H([_.g("isSearch","isWatch"),_.x("design:type",String),_.x("design:paramtypes",[])],li.prototype,"sizing",null);
_.H([_.g("isWatch","isGridViewEnabled","data"),_.Q({reflectToAttribute:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],li.prototype,"lockupContainerType",null);_.H([_.gd("lockupContainerType","data"),_.x("design:type",Function),_.x("design:paramtypes",[Number]),_.x("design:returntype")],li.prototype,"updateLockupContainerTypes",null);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],li.prototype,"pageSubtype",void 0);
_.H([_.Q({computed:"computeContainerWidth()"}),_.x("design:type",Number)],li.prototype,"containerWidth",void 0);_.H([_.Q(),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],li.prototype,"isPlaylist",null);_.H([_.Q(),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],li.prototype,"isClipList",null);_.H([_.Q(),_.x("design:type",Object)],li.prototype,"isCarouselInFeed",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],li.prototype,"isPlaylistVideoContainer",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],li.prototype,"isSearchFrictionPage",null);_.H([_.Q({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.x("design:type",Boolean)],li.prototype,"useHeightHack",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.x("design:type",Object)],li.prototype,"topSpacingZero",void 0);_.H([_.Q({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.x("design:type",Boolean)],li.prototype,"showButton",void 0);_.H([_.Q(),_.x("design:type",Boolean)],li.prototype,"firstCommentsLoaded",void 0);_.H([_.Q(),_.x("design:type",Object)],li.prototype,"continuationIsInitialLoad",void 0);
_.H([_.Q({reflectToAttribute:!0,readOnly:!0}),_.x("design:type",Boolean)],li.prototype,"itemDismissed",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.x("design:type",String)],li.prototype,"sectionIdentifier",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.x("design:type",String)],li.prototype,"fitContainer",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.x("design:type",Boolean)],li.prototype,"hasDestinationShelfRenderer",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.x("design:type",Boolean)],li.prototype,"staticCommentsHeader",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],li.prototype,"enableSqueezebackPanels",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],li.prototype,"enableAnchoredPanel",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.x("design:type",Boolean)],li.prototype,"hasSectionGroupViewModel",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.x("design:type",Boolean)],li.prototype,"hasQrCodeRenderer",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.x("design:type",Boolean)],li.prototype,"suppressDisclaimerSeparator",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.x("design:type",String)],li.prototype,"headerStyle",void 0);_.H([_.g("isSearch"),_.x("design:type",Object),_.x("design:paramtypes",[])],li.prototype,"lockupExperiments",null);
_.H([_.g("isSearch"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],li.prototype,"typographyBump",null);_.H([_.rd("#header"),_.x("design:type",HTMLElement)],li.prototype,"header",void 0);_.H([_.gd("notSticky"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],li.prototype,"dispatchChipBarIsSticky",null);
_.H([_.gd("commentsHidePanelButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],li.prototype,"commentsHidePanelButtonChanged",null);_.H([_.VU("yt-retrieve-location"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],li.prototype,"onRetrieveLocation",null);
_.H([_.VU("yt-load-reload-continuation"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Function]),_.x("design:returntype")],li.prototype,"onLoadReloadContinuation",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],li.prototype,"onServiceRequestCompleted",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],li.prototype,"dataChanged",null);
_.H([_.k8("data.contents.length"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],li.prototype,"observeDataContentsLength",null);_.H([_.VU("yt-dismissible-item-dismissed"),_.VU("yt-dismissible-item-undismissed"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],li.prototype,"onYtDismissibleItemDismissedChange",null);
_.H([_.gd("continuationShowButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],li.prototype,"continuationShowButtonChanged",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],li.prototype,"dataChangedForBinding",null);_.H([_.k({is:"ytd-item-section-renderer",disableElementRegistration:!0})],li);
_.D(li,"ytd-item-section-renderer",function(){if(JA$!==void 0)return JA$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-item-section-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading(isReloading, continuationIsReloading)]]" class="style-scope ytd-item-section-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="continuations" class="style-scope ytd-item-section-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return JA$=p},{mode:1});var vOx;var H3g=_.EK(_.g$("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var XhP={},Dct=(XhP[0]={title:_.ar(_.g$("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ar(_.g$("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:Rr("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},XhP[1]={title:_.ar(_.g$("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:Rr("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},XhP);_.ox("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var q_=function(){var p=_.w.apply(this,arguments)||this;p.allVideosCount=0;p.allPlaylistCount=0;p.isOnline=!1;p.shouldRenderDownloadsBanner=!1;p.shouldRenderDownloadsBannerUpsell=!1;p.hasOptedIntoSmartDownloads=!1;p.areAllSmartDownloadsDeleted=!1;p.smartDownloadsCompleted=!1;return p};
_.A(q_,_.w);q_.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
q_.prototype.attached=function(){this.downloadsToRenderChanged()};
q_.prototype.detached=function(){this.set("renderableData",{})};
q_.prototype.downloadsToRenderChanged=function(){var p=_.ei().getState().entities,y=_.HV(p),l=_.n("kevlar_playlist_dl_page_killswitch")?bwg(p):_.TU(p),q=_.R2c(p),t=_.UbL(p),E=_.S$(y);p=_.xy(p);this.set("renderableData",xcl(l,y,q,t,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,E,p))};
q_.prototype.downloadsToRenderChanged=q_.prototype.downloadsToRenderChanged;_.H([_.V(_.zL),_.x("design:type",Object)],q_.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],q_.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],q_.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],q_.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],q_.prototype,"renderableData",void 0);_.H([_.Q({selector:_.ril}),_.x("design:type",Object)],q_.prototype,"allVideosCount",void 0);_.H([_.Q({selector:Kzg}),_.x("design:type",Object)],q_.prototype,"allPlaylistCount",void 0);_.H([_.Q({selector:_.dN}),_.x("design:type",Object)],q_.prototype,"isOnline",void 0);_.H([_.Q({selector:_.Hwl}),_.x("design:type",Object)],q_.prototype,"shouldRenderDownloadsBanner",void 0);
_.H([_.Q({selector:_.fUl}),_.x("design:type",Object)],q_.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.H([_.Q({selector:_.Tzm}),_.x("design:type",Object)],q_.prototype,"hasOptedIntoSmartDownloads",void 0);_.H([_.Q({selector:_.xbu}),_.x("design:type",Object)],q_.prototype,"areAllSmartDownloadsDeleted",void 0);_.H([_.Q({selector:BzR}),_.x("design:type",Object)],q_.prototype,"smartDownloadsCompleted",void 0);
_.H([_.k8("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],q_.prototype,"downloadsToRenderChanged",null);_.H([_.k({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],q_);
_.D(q_,"ytd-offline-item-section-renderer",function(){if(vOx!==void 0)return vOx;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-offline-item-section-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return vOx=p},
{mode:1});var dhU;var OLU;var sh=function(){return _.w.apply(this,arguments)||this};
_.A(sh,_.w);
sh.prototype.onDataChanged=function(){if(this.JSC$16541_lastData){var p=this.getFilterClass(this.JSC$16541_lastData.status);p&&this.hostElement.classList.remove(p)}var y;(p=this.getFilterClass((y=this.data)==null?void 0:y.status))&&this.hostElement.classList.add(p);p==="selected"?_.jR(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.jR(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");p==="disabled"?_.jR(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.jR(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16541_lastData=this.data};
sh.prototype.getFilterClass=function(p){switch(p){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
sh.prototype.onDataChanged=sh.prototype.onDataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],sh.prototype,"data",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sh.prototype,"onDataChanged",null);_.H([_.k({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],sh);
_.D(sh,"ytd-search-filter-renderer",function(){if(OLU!==void 0)return OLU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-search-filter-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<div id="label" title="[[data.tooltip]]" class="style-scope ytd-search-filter-renderer">\n    <yt-formatted-string text="[[data.label]]" class="style-scope ytd-search-filter-renderer"></yt-formatted-string>\n    <yt-icon id="dismiss-x" hidden="[[!data.navigationEndpoint]]" icon="yt-icons:dismissal" class="style-scope ytd-search-filter-renderer">\n    </yt-icon>\n  </div>\n</a>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return OLU=p},{mode:_.ZS("kevlar_poly_si_batch_j075")?1:2});var t_=function(){return _.w.apply(this,arguments)||this};
_.A(t_,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],t_.prototype,"data",void 0);_.H([_.k({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],t_);
_.D(t_,"ytd-search-filter-group-renderer",function(){if(dhU!==void 0)return dhU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="filter-group-name" class="style-scope ytd-search-filter-group-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-search-filter-group-renderer"></yt-formatted-string>\n</h4>\n<template is="dom-repeat" items="[[data.filters]]" class="style-scope ytd-search-filter-group-renderer">\n  <template is="dom-if" if="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    <ytd-search-filter-renderer data="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    </ytd-search-filter-renderer>\n  </template>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return dhU=p},{mode:_.ZS("kevlar_poly_si_batch_j075")?1:2});var oON;var Eh=function(){return _.w.apply(this,arguments)||this};
_.A(Eh,_.w);Eh.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Vp());this.isCollapsed=!this.isCollapsed};
Eh.prototype.navigateToAboutTheseResultsPage=function(){var p=fO("https://www.youtube.com/howyoutubeworks/product-features/search/");p?_.s8(window,p,"_blank"):_.zi(Error("Rh"))};
Eh.prototype.dataChanged=function(){this.isCollapsed=!0};
Eh.prototype.computeShowBottomBorder=function(){var p,y,l;return!!((p=this.data)==null?0:(y=p.button)==null?0:y.toggleButtonRenderer)||!((l=this.data)==null||!l.aboutTheseResultsButton)};
Eh.prototype.dataChanged=Eh.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Eh.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.x("design:type",Boolean)],Eh.prototype,"showBottomBorder",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Eh.prototype,"renderCollapsibleMenu",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],Eh.prototype,"isCollapsed",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Eh.prototype,"dataChanged",null);_.H([_.k({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],Eh);
_.D(Eh,"ytd-search-sub-menu-renderer",function(){if(oON!==void 0)return oON;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-menu" class="style-scope ytd-search-sub-menu-renderer">\n  <div id="container" class="style-scope ytd-search-sub-menu-renderer">\n    <ytd-toggle-button-renderer align-by-text="" data="[[data.button.toggleButtonRenderer]]" on-click="toggleFilters" class="style-scope ytd-search-sub-menu-renderer">\n    </ytd-toggle-button-renderer>\n    <template is="dom-if" if="[[data.aboutTheseResultsButton]]" class="style-scope ytd-search-sub-menu-renderer">\n      <ytd-button-renderer align-by-text="" data="[[data.aboutTheseResultsButton.buttonRenderer]]" on-click="navigateToAboutTheseResultsPage" class="style-scope ytd-search-sub-menu-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <template is="dom-if" if="[[renderCollapsibleMenu]]" class="style-scope ytd-search-sub-menu-renderer">\n    <tp-yt-iron-collapse id="collapse" opened="[[!isCollapsed]]" class="style-scope ytd-search-sub-menu-renderer">\n      <div id="collapse-content" class="style-scope ytd-search-sub-menu-renderer">\n        <template is="dom-repeat" items="[[data.groups]]" class="style-scope ytd-search-sub-menu-renderer">\n          <ytd-search-filter-group-renderer data="[[item.searchFilterGroupRenderer]]" class="style-scope ytd-search-sub-menu-renderer">\n          </ytd-search-filter-group-renderer>\n        </template>\n      </div>\n    </tp-yt-iron-collapse>\n  </template>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return oON=p},{mode:1});var zgx;var YSM=new _.WE("SECTION_LIST_RENDERER_TOKEN");var I0B;var J_=function(){return _.w.apply(this,arguments)||this};
_.A(J_,_.w);J_.prototype.computeStyle=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],J_.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],J_.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],J_.prototype,"headerStyle",void 0);_.H([_.k({is:"ytd-text-header-renderer",disableElementRegistration:!0})],J_);
_.D(J_,"ytd-text-header-renderer",function(){if(I0B!==void 0)return I0B;var p=document.createElement("template");_.M(p,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e[[getSimpleString(data.title)]]\n");p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return I0B=p},{mode:1});var plO;var cM=function(){return _.w.apply(this,arguments)||this};
_.A(cM,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],cM.prototype,"data",void 0);_.H([_.k({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],cM);
_.D(cM,"ytd-minor-moment-header-renderer",function(){if(plO!==void 0)return plO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img src$="[[data.imageUrl]]" alt="" class="minormoment-header-img style-scope ytd-minor-moment-header-renderer">\n<yt-formatted-string id="title" respect-html-dir="" text="[[data.title]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n<yt-formatted-string id="caption" respect-html-dir="" text="[[data.caption]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return plO=p},{mode:1});var yYV;var e7=function(){return _.w.apply(this,arguments)||this};
_.A(e7,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],e7.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],e7.prototype,"data",void 0);_.H([_.k({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],e7);
_.D(e7,"ytd-minor-moment-setting-alert-renderer",function(){if(yYV!==void 0)return yYV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.details]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n  <yt-formatted-string class="detail-text style-scope ytd-minor-moment-setting-alert-renderer" text="[[item]]">\n  </yt-formatted-string>\n</template>\n<yt-formatted-string id="link" text="[[data.link]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return yYV=p},{mode:1});var lEM;var qkr;var h_=function(){var p=_.w.apply(this,arguments)||this;p.booleanSettingById=!1;p.smartDownloadsEnabledVE=_.fY(128287);p.smartDownloadsDisabledVE=_.fY(128286);p.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return p};
_.A(h_,_.w);_.J=h_.prototype;_.J.attachSmartDownloadsSettingVes=function(){var p;this.activeVeForLogging||((p=this.data)==null?void 0:p.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Vv(_.Ll(),this.smartDownloadsEnabledVE),_.Vv(_.Ll(),this.smartDownloadsDisabledVE))};
_.J.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Ub(this.hostElement,"yt-settings-switch-ready")};
_.J.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.J.onSwitchChange=function(p){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(p=_.cm(p).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.n("kevlar_settings_switch_resolve_command_killswitch")?_.WC().resolve(_.aK).resolveCommand(p,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(p)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.J.handleUpdateSettingsSwitch=function(p){(p=_.G(p,j2U))&&this.data&&this.data.id===p.id&&this.set("data.enabled",!!p.enabled)};
_.J.onToggleSettingsSwitch=function(p,y){this.data&&this.data.id===p&&this.set("data.enabled",y!=null?y:!this.data.enabled)};
_.J.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.md.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.J.maybeLogSmartDownloadsSettingVisibility=function(){var p=_.B2(),y;p&&((y=this.data)==null?void 0:y.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.qs(p,[this.smartDownloadsEnabledVE]),_.st(p,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.qs(p,[this.smartDownloadsDisabledVE]),_.st(p,[this.smartDownloadsEnabledVE])))};
_.J.maybeLogSmartDownloadsSettingClick=function(){var p;((p=this.data)==null?void 0:p.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.Qv(_.Ll(),this.activeVeForLogging)};
_.J.updateDataEnabledFromBinding=function(p){this.set("data.enabled",p.detail.value)};
_.Jh.Object.defineProperties(h_.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var p=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!p&&(p=this.ytRendererBehavior.getSimpleString(this.data.title));return p}}});
h_.prototype.dataChanged=h_.prototype.dataChanged;_.H([_.V(_.zL),_.x("design:type",Object)],h_.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],h_.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],h_.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],h_.prototype,"ytComponentBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],h_.prototype,"data",void 0);_.H([_.Q({selector:function(p,y){if(Object.keys(p==null?void 0:p.entities).length)switch(y){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return n7L(p.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.x("design:type",Object)],h_.prototype,"booleanSettingById",void 0);_.H([_.Q(),_.x("design:type",_.Tc)],h_.prototype,"activeVeForLogging",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],h_.prototype,"toggleAriaLabel",null);_.H([_.k8("data"),_.k8("booleanSettingById"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],h_.prototype,"dataChanged",null);
_.H([_.k({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],h_);
_.D(h_,"ytd-settings-switch-renderer",function(){if(qkr!==void 0)return qkr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-switch-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-toggle-button id="toggle" aria-label$="[[toggleAriaLabel]]" checked="[[data.enabled]]" noink="" on-change="onSwitchChange" on-checked-changed="updateDataEnabledFromBinding" class="style-scope ytd-settings-switch-renderer">\n  <div id="toggle-container" class="style-scope ytd-settings-switch-renderer"></div>\n</tp-yt-paper-toggle-button>\n<div class="style-scope ytd-settings-switch-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  <div id="icon" hidden="[[!data.thumbnail]]" class="style-scope ytd-settings-switch-renderer">\n    <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-settings-switch-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return qkr=p},{mode:1});var Cf=function(){return _.w.apply(this,arguments)||this};
_.A(Cf,_.w);Cf.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}}}}};
_.Jh.Object.defineProperties(Cf.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var p=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(p+=" remove-left-margin");this.data.extraBottomSpace&&(p+=" extra-bottom-space");return p}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Cf.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Cf.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Cf.prototype,"data",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Cf.prototype,"contentsClassName",null);_.H([_.k({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],Cf);
_.D(Cf,"ytd-minor-moment-setting-section-renderer",function(){if(lEM!==void 0)return lEM;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class$="[[contentsClassName]] style-scope ytd-minor-moment-setting-section-renderer">\n  <div id="title" hidden="[[!data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="header" hidden="[[!data.header]]" text="[[data.header]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="summary" hidden="[[!data.summary]]" text="[[data.summary]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <div id="settings" hidden="[[!data.settings]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n  <div id="alerts" hidden="[[!data.alerts]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return lEM=p},{mode:1});var ssv;var ui=function(){return _.w.apply(this,arguments)||this};
_.A(ui,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ui.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],ui.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ui.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],ui);
_.D(ui,"ytd-empty-product-details-renderer",function(){if(ssv!==void 0)return ssv;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-empty-product-details-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-empty-product-details-renderer"></yt-formatted-string>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return ssv=p},{mode:1});var tnr;var EEU;var Rc=function(){var p=_.w.apply(this,arguments)||this;p.expanded=!0;return p};
_.A(Rc,_.w);Rc.prototype.getBadgeRowClass=function(p,y,l){for(var q=_.c(this.hostElement.querySelectorAll("yt-img-shadow")),t=q.next();!t.done;t=q.next())t.value.onShow();p=p.selected;return l?p!==-1?p===y?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(p!==void 0?p:0)===y?"badge-line":"badge-hidden"};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Rc.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Rc.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Rc.prototype,"expanded",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],Rc);
_.D(Rc,"ytd-sponsorships-loyalty-badges-renderer",function(){if(EEU!==void 0)return EEU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-loyalty-badges-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="description-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <yt-formatted-string class="description style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div class="badge-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <template is="dom-repeat" items="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-loyalty-badges-renderer">\n    <div class$="[[getBadgeRowClass(data, index, expanded)]] style-scope ytd-sponsorships-loyalty-badges-renderer">\n      <div class="badge-title-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-formatted-string class="badge-title style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[item.sponsorshipsLoyaltyBadgeRenderer.title]]">\n        </yt-formatted-string>\n      </div>\n      <div class="icon-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-img-shadow class="badge-icon style-scope ytd-sponsorships-loyalty-badges-renderer" thumbnail="[[item.sponsorshipsLoyaltyBadgeRenderer.icon]]">\n        </yt-img-shadow>\n      </div>\n    </div>\n  </template>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return EEU=p},{mode:1});var JYM;var WM=function(){var p=_.w.apply(this,arguments)||this;p.expanded=!0;return p};
_.A(WM,_.w);WM.prototype.getContainerClasses=function(p,y){p=p?"expanded":"collapsed";y&&(p+=" item");return p};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],WM.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],WM.prototype,"expanded",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],WM);
_.D(WM,"ytd-sponsorships-perk-renderer",function(){if(JYM!==void 0)return JYM;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perk-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[getContainerClasses(expanded, data.title)]] style-scope ytd-sponsorships-perk-renderer">\n  <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n  <div id="expandable" hidden$="[[!expanded]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <template is="dom-if" if="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n    <template is="dom-if" if="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div id="fulfillment-instructions" class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string split-lines="1" text="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n  </div>\n  <template is="dom-if" if="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <ytd-sponsorships-loyalty-badges-renderer data="[[data.loyaltyBadges.sponsorshipsLoyaltyBadgesRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></ytd-sponsorships-loyalty-badges-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <div id="images-line" class="style-scope ytd-sponsorships-perk-renderer">\n      <yt-formatted-string id="image-description" text="[[data.imageDescription]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string>\n      <template is="dom-if" if="[[data.images]]" class="style-scope ytd-sponsorships-perk-renderer">\n        <template is="dom-repeat" items="[[data.images]]" as="image" class="style-scope ytd-sponsorships-perk-renderer">\n          <yt-img-shadow class="images style-scope ytd-sponsorships-perk-renderer" thumbnail="[[image]]"></yt-img-shadow>\n        </template>\n      </template>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.loyaltyMessage]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <yt-live-chat-membership-item-renderer data="[[data.loyaltyMessage.liveChatMembershipItemRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-live-chat-membership-item-renderer>\n  </template>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return JYM=p},{mode:1});var cYO;var ac=function(){var p=_.w.apply(this,arguments)||this;p.expanded=!0;return p};
_.A(ac,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ac.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],ac.prototype,"expanded",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],ac);
_.D(ac,"ytd-sponsorships-perks-renderer",function(){if(cYO!==void 0)return cYO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="perks-title" hidden="[[!data.perksTitle]]" text="[[data.perksTitle]]" class="style-scope ytd-sponsorships-perks-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.perks]]" class="style-scope ytd-sponsorships-perks-renderer">\n  <div class="item style-scope ytd-sponsorships-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perks-renderer">\n    </ytd-sponsorships-perk-renderer>\n  </div>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return cYO=p},{mode:1});var mv=function(){var p=_.w.apply(this,arguments)||this;p.isCollapsed=!1;return p};
_.A(mv,_.w);mv.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
mv.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
mv.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var p;this.expandCollapseButton=_.G((p=this.data)==null?void 0:p.expandButton,_.yv)}else{var y;this.expandCollapseButton=_.G((y=this.data)==null?void 0:y.collapseButton,_.yv)}};
mv.prototype.updateExpandCollapseButton=mv.prototype.updateExpandCollapseButton;mv.prototype.onDataChanged=mv.prototype.onDataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],mv.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],mv.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],mv.prototype,"isCollapsed",void 0);_.H([_.Q(),_.x("design:type",Object)],mv.prototype,"expandCollapseButton",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mv.prototype,"onDataChanged",null);_.H([_.k8("data","isCollapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mv.prototype,"updateExpandCollapseButton",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],mv);
_.D(mv,"ytd-sponsorships-expandable-perks-renderer",function(){if(tnr!==void 0)return tnr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="badged-title style-scope ytd-sponsorships-expandable-perks-renderer">\n  <yt-img-shadow thumbnail="[[data.badge]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-img-shadow>\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string class="subtitle style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n<hr class="style-scope ytd-sponsorships-expandable-perks-renderer">\n<yt-formatted-string class="expandable-heading style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.expandableHeader]]"></yt-formatted-string>\n<ytd-button-renderer class="end-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.endButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="bottom-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.bottomButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="expand-collapse-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[expandCollapseButton]]" noink="" on-click="onExpandCollapse"></ytd-button-renderer>\n\n<div class="expandable-content style-scope ytd-sponsorships-expandable-perks-renderer">\n  <template is="dom-repeat" items="[[data.expandableItems]]" as="item" class="style-scope ytd-sponsorships-expandable-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></ytd-sponsorships-perk-renderer>\n  </template>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return tnr=p},{mode:1});var eTi;var Uh=function(){return _.w.apply(this,arguments)||this};
_.A(Uh,_.w);Uh.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Uh.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Uh.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Uh.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],Uh);
_.D(Uh,"ytd-sponsorships-actionable-message-renderer",function(){if(eTi!==void 0)return eTi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-actionable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<button on-click="handleAction" class="style-scope ytd-sponsorships-actionable-message-renderer">\n  <yt-img-shadow id="icon" height="24" thumbnail="[[data.icon]]" width="24" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-formatted-string>\n</button>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return eTi=p},{mode:1});var hTP;var $l=function(){return _.w.apply(this,arguments)||this};
_.A($l,_.w);_.J=$l.prototype;_.J.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.J.getExpansionIcon=function(p){return p?"COLLAPSE":"EXPAND"};
_.J.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.J.computeMessageContainerStyle=function(p){var y=p.expandableItems?" style-clickable":"";return p.messageContainerStyle?p.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+y:"style-unspecified"+y};
_.J.isSinglePerk=function(p){return!!p.messageContainerStyle&&(p.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||p.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.J.onExpandedChanged=function(){var p=this;if(this.expanded)for(var y=_.c(this.hostElement.querySelectorAll("yt-img-shadow")),l=y.next();!l.done;l=y.next())l.value.onShow();_.th(this,function(){_.Ub(p.hostElement,"yt-refit")})};
_.J.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
$l.prototype.onDataChanged=$l.prototype.onDataChanged;$l.prototype.onExpandedChanged=$l.prototype.onExpandedChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],$l.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],$l.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],$l.prototype,"data",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],$l.prototype,"expanded",void 0);
_.H([_.gd("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$l.prototype,"onExpandedChanged",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$l.prototype,"onDataChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],$l);
_.D($l,"ytd-sponsorships-expandable-message-renderer",function(){if(hTP!==void 0)return hTP;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class$="[[computeMessageContainerStyle(data)]] style-scope ytd-sponsorships-expandable-message-renderer">\n  <button id="message-container" on-tap="onToggleExpand" class="style-scope ytd-sponsorships-expandable-message-renderer">\n    <template is="dom-if" if="[[isSinglePerk(data)]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="check-icon" icon="yt-icons:check" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n    <yt-formatted-string class="text style-scope ytd-sponsorships-expandable-message-renderer" text="[[data.text]]"></yt-formatted-string>\n    <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="expand-icon" icon="[[getExpansionIcon(expanded)]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n  </button>\n  <div id="content-container" hidden="[[!expanded]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return hTP=p},{mode:_.ZS("kevlar_poly_si_batch_j028")?1:2});var CwB;var j7=function(){return _.w.apply(this,arguments)||this};
_.A(j7,_.w);j7.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"}}}}};
j7.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.G(this.data.endButton,_.yv).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
j7.prototype.onDataChanged=j7.prototype.onDataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],j7.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],j7.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],j7.prototype,"data",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],j7.prototype,"onDataChanged",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],j7);
_.D(j7,"ytd-sponsorships-heading-renderer",function(){if(CwB!==void 0)return CwB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-heading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-heading-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  <div id="subtitle-content" hidden="[[!data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer">\n    <yt-img-shadow id="subtitle-icon" hidden="[[!data.subtitleIcon]]" thumbnail="[[data.subtitleIcon]]" class="style-scope ytd-sponsorships-heading-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  </div>\n  <div id="bottom-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n</div>\n<div id="end-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return CwB=p},{mode:1});var uE$;var bi=function(){return _.w.apply(this,arguments)||this};
_.A(bi,_.w);_.H([_.Q(),_.x("design:type",Object)],bi.prototype,"data",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],bi.prototype,"ytRendererBehavior",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],bi);
_.D(bi,"ytd-sponsorships-links-renderer",function(){if(uE$!==void 0)return uE$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-links-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-sponsorships-links-renderer">\n  <yt-formatted-string class="link style-scope ytd-sponsorships-links-renderer" link-inherit-color="" text="[[item]]">\n</yt-formatted-string></template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return uE$=p},{mode:1});var RTi;var nf=function(){return _.w.apply(this,arguments)||this};
_.A(nf,_.w);_.J=nf.prototype;_.J.onDataChanged=function(){if(this.data&&this.data.expandableItems){var p;(p=_.jR(this.hostElement).querySelector("tp-yt-paper-button"))==null||p.setAttribute("role","button")}else{var y;(y=_.jR(this.hostElement).querySelector("tp-yt-paper-button"))==null||y.removeAttribute("role")}};
_.J.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.J.getExpansionIcon=function(p){return p?"COLLAPSE":"EXPAND"};
_.J.getTileClasses=function(p){return p?"tile expandable-tile":"tile"};
_.J.getButtonDisabled=function(p){return p?void 0:""};
nf.prototype.onDataChanged=nf.prototype.onDataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],nf.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],nf.prototype,"data",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],nf.prototype,"expanded",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nf.prototype,"onDataChanged",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],nf);
_.D(nf,"ytd-sponsorships-list-tile-renderer",function(){if(RTi!==void 0)return RTi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-list-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="tile" class="tile style-scope ytd-sponsorships-list-tile-renderer" class$="[[getTileClasses(data.expandableItems)]]" disabled$="[[getButtonDisabled(data.expandableItems)]]" noink="" on-tap="onToggleExpand">\n  <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[data.icon]]"></yt-img-shadow>\n  <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n    <yt-formatted-string class="detail style-scope ytd-sponsorships-list-tile-renderer" text="[[data.detail]]"></yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-list-tile-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </template>\n</tp-yt-paper-button>\n\n<template is="dom-if" if="[[expanded]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n  <div class="tiles-container style-scope ytd-sponsorships-list-tile-renderer">\n    <template is="dom-repeat" items="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n      <template is="dom-if" if="[[item.sponsorshipsLoyaltyBadgesRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <ytd-sponsorships-loyalty-badges-renderer class="sponsorships-loyalty-badges-renderer style-scope ytd-sponsorships-list-tile-renderer" data="[[item.sponsorshipsLoyaltyBadgesRenderer]]"></ytd-sponsorships-loyalty-badges-renderer>\n      </template>\n      <template is="dom-if" if="[[item.sponsorshipsListTileRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <div class="tile style-scope ytd-sponsorships-list-tile-renderer">\n          <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[item.sponsorshipsListTileRenderer.icon]]">\n          </yt-img-shadow>\n          <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.subtitle]]">\n            </yt-formatted-string>\n          </div>\n        </div>\n      </template>\n    </template>\n  </div>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return RTi=p},{mode:1});var W5V;var aE$;var Gj=function(){return _.w.apply(this,arguments)||this};
_.A(Gj,_.w);Gj.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Gj.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Gj.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Gj.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],Gj);
_.D(Gj,"ytd-sponsorships-promotion-renderer",function(){if(aE$!==void 0)return aE$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-promotion-renderer">\n  <div id="above-button" class="style-scope ytd-sponsorships-promotion-renderer">\n    <yt-formatted-string class="above-redeem-button-text style-scope ytd-sponsorships-promotion-renderer" text="[[data.aboveRedeemButtonText]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-promotion-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n  <div id="redeem-button" class="style-scope ytd-sponsorships-promotion-renderer"></div>\n  <yt-formatted-string class="redeem-disclaimer style-scope ytd-sponsorships-promotion-renderer" split-lines="true" text="[[data.redeemDisclaimer]]"></yt-formatted-string>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return aE$=p},{mode:1});var mKr;var PM=function(){return _.w.apply(this,arguments)||this};
_.A(PM,_.w);PM.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],PM.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],PM.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],PM);
_.D(PM,"ytd-sponsorships-purchase-option-renderer",function(){if(mKr!==void 0)return mKr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-purchase-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-purchase-option-renderer">\n  <div id="purchase-info" class="style-scope ytd-sponsorships-purchase-option-renderer">\n    <div id="header" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      <yt-formatted-string class="purchase-text style-scope ytd-sponsorships-purchase-option-renderer" text="[[data.text]]"></yt-formatted-string>\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-purchase-option-renderer" split-lines="true" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div id="purchase-button" class="style-scope ytd-sponsorships-purchase-option-renderer"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return mKr=p},{mode:1});var UKN;var $Kx;var jsU=function(){return _.w.apply(this,arguments)||this};
_.A(jsU,_.w);_.H([_.Q(),_.x("design:type",Object)],jsU.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],jsU);
_.D(jsU,"ytd-ypc-offer-promo-renderer",function(){if($Kx!==void 0)return $Kx;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offer-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ypc-offer-promo-renderer">\n  <yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-ypc-offer-promo-renderer"></yt-icon>\n  <div id="benefit-info" class="style-scope ytd-ypc-offer-promo-renderer">\n    <div id="header" class="style-scope ytd-ypc-offer-promo-renderer">\n      <yt-formatted-string class="title style-scope ytd-ypc-offer-promo-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </div>\n    <div id="badge-section" class="style-scope ytd-ypc-offer-promo-renderer">\n      <ytd-badge-supported-renderer id="badge" top-standalone-badge="[[data.badge]]" class="style-scope ytd-ypc-offer-promo-renderer">\n        </ytd-badge-supported-renderer>\n    <yt-formatted-string class="subtitle style-scope ytd-ypc-offer-promo-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n    </div>\n  </div>\n</div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return $Kx=p},{mode:1});var A_=function(){return _.w.apply(this,arguments)||this};
_.A(A_,_.w);_.J=A_.prototype;
_.J.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.expandableMessage":{id:"expandable-message",mapping:{sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.purchaseOption":{id:"purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},"data.alternativePurchaseOption":{id:"alternative-purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},
"data.offerPromoCard":{id:"offer-promo",mapping:{ypcOfferPromoRenderer:{component:"ytd-ypc-offer-promo-renderer"}}}}};
_.J.expansionCTA=function(p,y){return p&&(y?p.collapseCallToAction:p.expansionCallToAction)};
_.J.getExpansionIcon=function(p){return p?"COLLAPSE":"EXPAND"};
_.J.expansionCallToActionTap=function(){var p=this;this.expanded=!this.expanded;_.th(this,function(){_.Ub(p.hostElement,"yt-refit")})};
_.J.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var p,y=(p=this.data)==null?void 0:p.onVisible;y&&this.ytComponentBehavior.resolveCommand(y)};
_.J.computeDisplayTitle=function(p){return!(!p||this.titledisplaystatus!=="show")};
_.J.computeDisplaySeparator=function(){return!1};
_.J.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
A_.prototype.onDataChanged=A_.prototype.onDataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],A_.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],A_.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],A_.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],A_.prototype,"data",void 0);
_.H([_.Q({value:!1}),_.x("design:type",Boolean)],A_.prototype,"expanded",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],A_.prototype,"purchaseButtonClicked",void 0);_.H([_.Q({reflectToAttribute:!0,value:"show"}),_.x("design:type",String)],A_.prototype,"titledisplaystatus",void 0);_.H([_.Q({computed:"computeDisplayTitle(data.title)"}),_.x("design:type",Boolean)],A_.prototype,"displayTitle",void 0);
_.H([_.Q({computed:"computeDisplaySeparator(data)"}),_.x("design:type",Boolean)],A_.prototype,"displaySeparator",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],A_.prototype,"onDataChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],A_);
_.D(A_,"ytd-sponsorships-tier-renderer",function(){if(UKN!==void 0)return UKN;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-tier-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="title" hidden="[[!displayTitle]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n</div>\n<div id="offer-promo" hidden="[[!data.offerPromoCard]]" class="style-scope ytd-sponsorships-tier-renderer">\n</div>\n<div id="purchase-with-options" hidden="[[!data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!data.alternativePurchaseOption]]"></div>\n  <div id="alternative-purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n</div>\n<div id="default-purchase-view" hidden="[[data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="above-purchase-button" hidden="[[!data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string id="above-purchase-button-text" text="[[data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-formatted-string id="above-purchase-button-text-subtitle" class="subtitle style-scope ytd-sponsorships-tier-renderer" text="[[data.abovePurchaseButtonTextSubtitle]]"></yt-formatted-string>\n  </div>\n  <div id="premium-freebie-promo" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n  <div id="header" class="style-scope ytd-sponsorships-tier-renderer">\n    <div id="purchase-button" on-tap="onPurchaseButtonTap" class="style-scope ytd-sponsorships-tier-renderer"></div>\n    \n    <yt-formatted-string id="purchase-text" force-default-style="" hidden="[[!data.purchaseText]]" text="[[data.purchaseText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.disclaimer]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n<div id="expandable-message" class="style-scope ytd-sponsorships-tier-renderer"></div>\n<div id="content" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="perks_section" class="style-scope ytd-sponsorships-tier-renderer">\n    <ytd-sponsorships-perks-renderer id="perks" data="[[data.perks.sponsorshipsPerksRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-tier-renderer"></ytd-sponsorships-perks-renderer>\n  </div>\n  <button id="expansion_call_to_action" on-tap="expansionCallToActionTap" hidden="[[!data.expansionCallToAction]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string text="[[expansionCTA(data, expanded)]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-tier-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </button>\n</div>\n<div id="footer" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string id="bottom-disclaimer" class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.bottomDisclaimer]]">\n  </yt-formatted-string>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return UKN=p},{mode:2});var Z5=function(){return _.w.apply(this,arguments)||this};
_.A(Z5,_.w);
Z5.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"}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Z5.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Z5.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],Z5);
_.D(Z5,"ytd-sponsorships-management-renderer",function(){if(W5V!==void 0)return W5V;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-management-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-renderer" class="style-scope ytd-sponsorships-management-renderer"></div>\n<div id="main-section" class="style-scope ytd-sponsorships-management-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-management-renderer"></div>\n  <div id="sidebar" class="style-scope ytd-sponsorships-management-renderer"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return W5V=p},{mode:1});var bBN;var M_=function(){return _.w.apply(this,arguments)||this};
_.A(M_,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],M_.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],M_.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],M_);
_.D(M_,"ytd-open-in-native-app-view-model",function(){if(bBN!==void 0)return bBN;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-open-in-native-app-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-image id="image" data="[[data.image]]" ftl-eligible="" height="162" width="200" class="style-scope ytd-open-in-native-app-view-model">\n</yt-image>\n<yt-attributed-string id="text" data="[[data.detailsText]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-attributed-string id="link" data="[[data.learnMoreLink]]" force-default-style="" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return bBN=p},{mode:_.ZS("kevlar_poly_si_batch_j028")?1:2});var nE$;var GZN;var PwN=_.c0(["top-"]),AYN=_.c0(["bottom-"]),ZBQ=_.c0(["left-"]),Mni=_.c0(["right-"]),VnO={},gE$=function(p,y,l){p.removeAttribute("top-"+l);p.removeAttribute("bottom-"+l);p.removeAttribute("left-"+l);p.removeAttribute("right-"+l);y&&(y.top&&_.CC([_.$I(PwN)],p,"top-"+l,y.top),y.bottom&&_.CC([_.$I(AYN)],p,"bottom-"+l,y.bottom),y.left&&_.CC([_.$I(ZBQ)],p,"left-"+l,y.left),y.right&&_.CC([_.$I(Mni)],p,"right-"+l,y.right))};
VnO.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(p){var y,l=_.jR((y=this.hostElement)!=null?y:this),q;y=this.cardItemBoxBehaviorMarginTargetId&&l?l.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(q=this.hostElement)!=null?q:this;gE$(y,p,"margin")},
cardItemContainerPaddingChanged_:function(p){var y,l=_.jR((y=this.hostElement)!=null?y:this),q;y=this.cardItemBoxBehaviorPaddingTargetId&&l?l.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(q=this.hostElement)!=null?q:this;gE$(y,p,"padding")}}];var V7={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 QsP;var K5B;var g0=function(){return _.w.apply(this,arguments)||this};
_.A(g0,_.w);g0.prototype.textColorChanged_=function(){this.hostElement.style.color=V7[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
g0.prototype.textColorChanged_=g0.prototype.textColorChanged_;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);_.H([_.V(VnO.YtCardItemBoxBehavior),_.x("design:type",Object)],g0.prototype,"ytCardItemBoxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],g0.prototype,"data",void 0);_.H([_.gd("data.textColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],g0.prototype,"textColorChanged_",null);
_.H([_.z9({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],g0);
_.D(g0,"yt-card-item-text-renderer",function(){if(K5B===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_renderer.yt.card.item.text.renderer.css.js--\x3e<yt-formatted-string id="card-text" force-default-style="" split-lines="1" text="[[data.text]]" text-style$="[[data.style]]" class="style-scope yt-card-item-text-renderer">\n</yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;QsP===void 0&&(QsP=document.createElement("template"));var q=QsP;l.call(y,q.content.cloneNode(!0),p.content.firstChild);K5B=p}p=K5B;return p},{mode:2});var wlr;var iBP;var Q7=function(){return _.w.apply(this,arguments)||this};
_.A(Q7,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Q7.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Q7.prototype,"data",void 0);_.H([_.z9({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],Q7);
_.D(Q7,"yt-card-item-badge-renderer",function(){if(iBP===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_badge_renderer.yt.card.item.badge.renderer.css.js--\x3e<div id="card-block" class="style-scope yt-card-item-badge-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden$="[[!data.badges]]" class="style-scope yt-card-item-badge-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" split-lines="1" text="[[data.text]]" class="style-scope yt-card-item-badge-renderer">\n  </yt-formatted-string>\n</div>\n\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;wlr===void 0&&(wlr=document.createElement("template"));var q=wlr;l.call(y,q.content.cloneNode(!0),p.content.firstChild);iBP=p}p=iBP;return p},{mode:2});var rYr;var SkU;var Kf=function(){return _.w.apply(this,arguments)||this};
_.A(Kf,_.w);Kf.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Kf.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Kf.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Kf.prototype,"data",void 0);_.H([_.z9({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Kf);
_.D(Kf,"yt-card-item-text-collection-renderer",function(){if(SkU===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-collection-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_collection_renderer.yt.card.item.text.collection.renderer.css.js--\x3e<div id="text-renderers" text-alignment$="[[data.textAlignment]]" class="style-scope yt-card-item-text-collection-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;rYr===void 0&&(rYr=document.createElement("template"));var q=rYr;l.call(y,q.content.cloneNode(!0),p.content.firstChild);SkU=p}p=SkU;return p},{mode:2});var F5Z;var L5P;var w0=function(){return _.w.apply(this,arguments)||this};
_.A(w0,_.w);w0.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]]"}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],w0.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],w0.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],w0.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Number)],w0.prototype,"iconSize",void 0);_.H([_.z9({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],w0);
_.D(w0,"yt-card-item-text-with-button-renderer",function(){if(L5P===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_button_renderer.yt.card.item.text.with.button.renderer.css.js--\x3e<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-button-renderer"></div>\n<div id="primary-button" aria-hidden="true" class="style-scope yt-card-item-text-with-button-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;F5Z===void 0&&(F5Z=document.createElement("template"));var q=F5Z;l.call(y,q.content.cloneNode(!0),p.content.firstChild);L5P=p}p=L5P;return p},{mode:2});var ii=function(){return _.w.apply(this,arguments)||this};
_.A(ii,_.w);ii.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"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],ii.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ii.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ii.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],ii);
_.D(ii,"ytd-commerce-cart-summary-line-item-renderer",function(){if(GZN!==void 0)return GZN;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-line-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="summary-content" class="style-scope ytd-commerce-cart-summary-line-item-renderer">\n  <div id="summary-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n  <div id="additional-metadata-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n</div>\n<div id="price" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return GZN=p},{mode:1});_.ox("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var r0=function(){var p=_.w.apply(this,arguments)||this;p.hidden=!1;return p};
_.A(r0,_.w);_.J=r0.prototype;_.J.configureRendererStamper=function(){return{"data.estimatedTotalLineItem":{id:"estimated-total-line-item",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.cartButton":{id:"cart-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.J.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.J.updateSummary=function(){var p=this.commerceCartCheckoutButtonEntity,y;if(((y=this.data)==null?0:y.cartButton)&&p.checkoutSummaryText){var l,q=Xr((l=this.data)==null?void 0:l.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+q+".cardItemTextRenderer.text",dP(p.checkoutSummaryText));if(p.checkoutDetailText){var t;l=Xr((t=this.data)==null?void 0:t.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+l+".cardItemTextRenderer.text",dP(p.checkoutDetailText))}if(p.checkoutAdditionalMetadataText){var E;
t=Xr((E=this.data)==null?void 0:E.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+t+".cardItemTextRenderer.text",dP(p.checkoutAdditionalMetadataText))}}else p.estimatedTotalPrice&&(E=Xr((q=this.data)==null?void 0:q.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+E+".cardItemTextRenderer.text",dP(p.estimatedTotalPrice)))};
_.J.updateIsHidden=function(){var p,y=(p=this.commerceCartCheckoutButtonEntity)==null?void 0:p.isHidden;y!==void 0&&(this.hidden=y)};
_.J.updateCheckoutButton=function(){var p,y=(p=this.commerceCartCheckoutButtonEntity)==null?void 0:p.isDisabled;y!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",y);var l;p=(l=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:l.innertubeCommand;p!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",p);var q;l=(q=this.commerceCartCheckoutButtonEntity)==null?void 0:q.checkoutButtonText;l!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:l})};
r0.prototype.entityChanged=r0.prototype.entityChanged;_.H([_.V(_.zL),_.x("design:type",Object)],r0.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],r0.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],r0.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],r0.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],r0.prototype,"fullWidth",void 0);_.H([_.Q(),_.x("design:type",Object)],r0.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],r0.prototype,"compact",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],r0.prototype,"hidden",void 0);
_.H([_.Q({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:KUg}),_.x("design:type",Object)],r0.prototype,"commerceCartCheckoutButtonEntity",void 0);_.H([_.gd("commerceCartCheckoutButtonEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],r0.prototype,"entityChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],r0);
_.D(r0,"ytd-commerce-cart-checkout-button-renderer",function(){if(nE$!==void 0)return nE$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-checkout-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="estimated-total-line-item" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="cart-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return nE$=p},{mode:2});var kZQ;_.NMB={};
_.NMB.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",_.MH(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.MH(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(p){!this.tappableItemBehaviorTapEnabled||p.keyCode!==13&&p.keyCode!==32||p.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var p=this.data.onTap;p.ypcGetCartEndpoint?(_.ny(this.hostElement,[p]),this.tappableItemBehaviorTapEnabled=!1):p.ypcOffersEndpoint?_.ny(this.hostElement,[p]):_.Gf(this.hostElement,[p],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(p){this.tappableItemBehaviorTapEnabled=!!p},
tappableItemBehaviorOnTapEnabledChanged_:function(){var p=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(p.setAttribute("tabIndex",0),p.setAttribute("role","button")):(p.removeAttribute("tabIndex"),p.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(p){p.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var DKQ;var HB$;var S7=function(){return _.w.apply(this,arguments)||this};
_.A(S7,_.w);S7.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.zT("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.zT("sharingToggleButtonAndDefaultButton")}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],S7.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],S7.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],S7.prototype,"data",void 0);_.H([_.z9({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],S7);
_.D(S7,"yt-card-item-actions-renderer",function(){if(HB$===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_actions_renderer.yt.card.item.actions.renderer.css.js--\x3e<div id="secondary-button-renderer" hidden$="[[!data.secondaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n<div id="primary-button-renderer" hidden$="[[!data.primaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;DKQ===void 0&&(DKQ=document.createElement("template"));var q=DKQ;l.call(y,q.content.cloneNode(!0),p.content.firstChild);HB$=p}p=HB$;return p},{mode:2});var TMv;var xKV;var BMU;var fEP;var vEi;var Xl$;var Fh=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return p};
_.A(Fh,_.w);Fh.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
Fh.prototype.handleDarkModeToggledAction_=function(p){this.isDarkTheme_=p};
Fh.prototype.computeThemeImage_=function(p,y){if(!p||!p.imageLight)return!1;this.isCircular_=p.isCircular;p.imageWidth&&(this.hostElement.style.width=p.imageWidth+"px");p.imageHeight&&(this.hostElement.style.height=p.imageHeight+"px");p.borderWidth&&(this.image.style.borderWidth=p.borderWidth+"px",this.image.style.borderStyle="solid");p.borderColor&&(this.image.style.borderColor=_.Y9(p.borderColor));return y&&p.imageDark?p.imageDark:p.imageLight};
Fh.prototype.computeThemeIcon_=function(p){var y,l;if(!(p==null?0:(y=p.themedIcon)==null?0:(l=y.icon)==null?0:l.iconType))return!1;this.icon.style.color=V7[p.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(p.imageWidth||18)+"px";this.icon.style.height=(p.imageHeight||18)+"px";return _.QZ(p.themedIcon.icon.iconType)};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Fh.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Fh.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(VnO.YtCardItemBoxBehavior),_.x("design:type",Object)],Fh.prototype,"ytCardItemBoxBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Fh.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Fh.prototype,"data",void 0);
_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Fh.prototype,"fit",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Fh.prototype,"isDarkTheme_",void 0);_.H([_.Q({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.x("design:type",Object)],Fh.prototype,"themeImage_",void 0);_.H([_.Q({computed:"computeThemeIcon_(data)"}),_.x("design:type",Object)],Fh.prototype,"themeIcon_",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Object)],Fh.prototype,"isCircular_",void 0);
_.H([_.rd("#image"),_.x("design:type",Object)],Fh.prototype,"image",void 0);_.H([_.rd("#icon"),_.x("design:type",Object)],Fh.prototype,"icon",void 0);_.H([_.z9({is:"yt-themed-image-renderer",disableElementRegistration:!0})],Fh);
_.D(Fh,"yt-themed-image-renderer",function(){if(Xl$===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-themed-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_themed_image_renderer.yt.themed.image.renderer.css.js--\x3e<yt-img-shadow id="image" fit="[[fit]]" height="[[data.imageHeight]]" hidden="[[!themeImage_]]" thumbnail="[[themeImage_]]" width="[[data.imageWidth]]" class="style-scope yt-themed-image-renderer">\n</yt-img-shadow>\n<yt-icon id="icon" hidden="[[!themeIcon_]]" icon="[[themeIcon_]]" class="style-scope yt-themed-image-renderer">\n</yt-icon>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;vEi===void 0&&(vEi=document.createElement("template"));var q=vEi;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Xl$=p}p=Xl$;return p},{mode:2});var Lf=function(){return _.w.apply(this,arguments)||this};
_.A(Lf,_.w);Lf.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"}}}}};
Lf.prototype.computeImagePlacement_=function(p){return p||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Lf.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Lf.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Lf.prototype,"data",void 0);_.H([_.Q({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.x("design:type",String)],Lf.prototype,"imagePlacement",void 0);
_.H([_.z9({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],Lf);
_.D(Lf,"yt-card-item-text-with-image-renderer",function(){if(fEP===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_image_renderer.yt.card.item.text.with.image.renderer.css.js--\x3e<div id="themed-image-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;BMU===void 0&&(BMU=document.createElement("template"));var q=BMU;l.call(y,q.content.cloneNode(!0),p.content.firstChild);fEP=p}p=fEP;return p},{mode:2});var kl=function(){return _.w.apply(this,arguments)||this};
_.A(kl,_.w);kl.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"}}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],kl.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],kl.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],kl.prototype,"data",void 0);_.H([_.z9({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],kl);
_.D(kl,"yt-card-item-error-renderer",function(){if(xKV===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-error-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_error_renderer.yt.card.item.error.renderer.css.js--\x3e<div id="triangle-up-container" class="style-scope yt-card-item-error-renderer">\n  <div id="triangle-up" class="style-scope yt-card-item-error-renderer"></div>\n</div>\n<div id="error-text-renderer" class="style-scope yt-card-item-error-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;TMv===void 0&&(TMv=document.createElement("template"));var q=TMv;l.call(y,q.content.cloneNode(!0),p.content.firstChild);xKV=p}p=xKV;return p},{mode:2});var dKM;var OBr;_.ox("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var N_=function(){return _.w.apply(this,arguments)||this};
_.A(N_,_.w);_.J=N_.prototype;
_.J.configureRendererStamper=function(){return{"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",
mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"},cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},themedImageRenderer:{component:"yt-themed-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}},"data.errorRenderer":{id:"error-renderer",mapping:{cardItemErrorRenderer:{component:"yt-card-item-error-renderer"}}},"data.headerPromoRenderer":{id:"header-promo-renderer",
mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.footerRenderer":{id:"footer-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.J.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.J.backgroundColorChanged_=function(){var p,y=(p=this.data)==null?void 0:p.backgroundColor;p=V7[y||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.jR(this.hostElement).querySelector("#main-content").style.backgroundColor=p};
_.J.headerPromoBackgroundColorChanged_=function(){var p,y=(p=this.data)==null?void 0:p.headerPromoBackgroundColor;p=V7[y||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.jR(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=p};
_.J.errorRendererVisibilityChanged_=function(){var p=this.isExpanded_,y;this.isErrorRendererVisible_=!((y=this.data)==null||!y.errorRenderer)&&!p};
_.J.onYtToggleButton_=function(p,y){this.isExpanded_=y.toggled};
N_.prototype.onYtToggleButton_=N_.prototype.onYtToggleButton_;N_.prototype.errorRendererVisibilityChanged_=N_.prototype.errorRendererVisibilityChanged_;N_.prototype.headerPromoBackgroundColorChanged_=N_.prototype.headerPromoBackgroundColorChanged_;N_.prototype.backgroundColorChanged_=N_.prototype.backgroundColorChanged_;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],N_.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],N_.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(VnO.YtCardItemBoxBehavior),_.x("design:type",Object)],N_.prototype,"ytCardItemBoxBehavior",void 0);_.H([_.V(_.NMB.YtTappableItemBehavior),_.x("design:type",Object)],N_.prototype,"ytTappableItemBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],N_.prototype,"data",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],N_.prototype,"isExpanded_",void 0);
_.H([_.Q({value:!1}),_.x("design:type",Boolean)],N_.prototype,"isErrorRendererVisible_",void 0);_.H([_.gd("data.backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],N_.prototype,"backgroundColorChanged_",null);_.H([_.gd("data.headerPromoBackgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],N_.prototype,"headerPromoBackgroundColorChanged_",null);
_.H([_.gd("data.errorRenderer","isExpanded_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],N_.prototype,"errorRendererVisibilityChanged_",null);_.H([_.VU("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[Event,Object]),_.x("design:returntype")],N_.prototype,"onYtToggleButton_",null);_.H([_.z9({is:"yt-card-item-renderer",disableElementRegistration:!0})],N_);
_.D(N_,"yt-card-item-renderer",function(){if(OBr===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_renderer.yt.card.item.renderer.css.js--\x3e<div id="main-content" primary-container-placement$="[[data.primaryContainerPlacement]]" box-style$="[[data.cardItemBoxStyle]]" aria-label="[[data.accessibilityData.label]]" class="style-scope yt-card-item-renderer">\n  <div id="main-content-negative-margin-wrapper" content-placement$="[[data.contentPlacement]]" class="style-scope yt-card-item-renderer">\n    <div id="heading-description-container" class="style-scope yt-card-item-renderer">\n       <div id="header-promo-container" class="style-scope yt-card-item-renderer">\n          <div id="heading-renderer" hidden$="[[!data.headingRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n          <div id="header-promo-renderer" hidden$="[[!data.headerPromoRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n      </div>\n      <div id="description-renderer" hidden$="[[!data.descriptionRenderer]]" class="style-scope yt-card-item-renderer">\n      </div>\n    </div>\n    <div id="additional-info-renderer" additional-info-placement$="[[data.additionalInfoPlacement]]" hidden$="[[!data.additionalInfoRenderer]]" class="style-scope yt-card-item-renderer">\n    </div>\n    <div id="footer-renderer" hidden$="[[!data.footerRenderer]]" class="style-scope yt-card-item-renderer"></div>\n  </div>\n</div>\n<div id="error-renderer" hidden$="[[!isErrorRendererVisible_]]" class="style-scope yt-card-item-renderer"></div>\n<div id="divider" divider-style$="[[data.dividerStyle]]" hidden$="[[!data.dividerStyle]]" class="style-scope yt-card-item-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;dKM===void 0&&(dKM=document.createElement("template"));var q=dKM;l.call(y,q.content.cloneNode(!0),p.content.firstChild);OBr=p}p=OBr;return p},{mode:2});_.ox("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var D5=function(){var p=_.w.apply(this,arguments)||this;p.hidden=!1;return p};
_.A(D5,_.w);_.J=D5.prototype;_.J.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.J.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.J.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var p,y=(p=this.commerceCartHeaderEntity)==null?void 0:p.isHidden;y!==void 0&&(this.hidden=y)}};
_.J.updateTitle=function(){var p=this.commerceCartHeaderEntity.isDisabled,y,l,q=(l=_.G((y=this.data)==null?void 0:y.item,ior))==null?void 0:l.headingRenderer;q&&(y=Xr(q,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+y+".0.cardItemTextRenderer.textColor",p?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.J.updateSummaryText=function(){var p=this.commerceCartHeaderEntity;if(this.compact){var y,l,q=(l=_.G((y=this.data)==null?void 0:y.item,ior))==null?void 0:l.headingRenderer;q&&(y=Xr(q,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+y+".1.cardItemTextRenderer.text",p.shortHeaderSummaryText?dP(p.shortHeaderSummaryText):p.headerSummaryText?dP(p.headerSummaryText):""))}else{var t;if(y=(t=_.G((q=this.data)==null?void 0:q.item,ior))==null?void 0:t.additionalInfoRenderer)y=Xr(y,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+y+".text",p.headerSummaryText?dP(p.headerSummaryText):"")}};
_.J.updateCheckoutButton=function(){var p=this.commerceCartHeaderEntity,y,l,q=(l=_.G((y=this.data)==null?void 0:y.item,ior))==null?void 0:l.additionalInfoRenderer;y=Xr(q,"buttonRenderer");var t;l=(t=this.commerceCartHeaderEntity)==null?void 0:t.isButtonDisabled;var E;t=(E=this.commerceCartHeaderEntity)==null?void 0:E.isButtonHidden;l!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+y+".buttonRenderer.isDisabled",l);t!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
t);var e;p=(e=p.checkoutButtonCommand)==null?void 0:e.innertubeCommand;p!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+y+".buttonRenderer.command",p)};
D5.prototype.entityChanged=D5.prototype.entityChanged;_.H([_.V(_.zL),_.x("design:type",Object)],D5.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],D5.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],D5.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],D5.prototype,"compact",void 0);_.H([_.Q({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(p,y){return _.Ae(p.entities,"commerceCartHeaderEntity",y)}}),
_.x("design:type",Object)],D5.prototype,"commerceCartHeaderEntity",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],D5.prototype,"hidden",void 0);_.H([_.gd("commerceCartHeaderEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],D5.prototype,"entityChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],D5);
_.D(D5,"ytd-commerce-cart-header-renderer",function(){if(kZQ!==void 0)return kZQ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="item" class="style-scope ytd-commerce-cart-header-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return kZQ=p},{mode:1});var oEZ;var zTQ=_.Fd(function(p,y){var l;return(l=p.onChangeCallback)==null?void 0:l.call(p,y)},1E3),YkP=_.aF(function(p){var y=p.data;
var l=p.iconMinus;p=p.iconPlus;var q=function(){return!!y().disabled},t=_.c(_.nr(0,void 0,"r56zNb")),E=t.next().value,e=t.next().value;
t={};t=_.ip("yt-spec-quantity-incrementer-shape__icon",(t["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return q()||E()===(y().onRemoveCommand?0:1)},t));
var C={};C=_.ip("yt-spec-quantity-incrementer-shape__icon",(C["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return E()>=y().maxValue||q()},C));
var u={};u=_.ip("yt-spec-quantity-incrementer-shape__text",(u["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return E()>y().maxValue},u["yt-spec-quantity-incrementer-shape__text--text-disabled"]=q,u));
var a=_.Ff(function(){if(E()===1){var U,b;(b=(U=y()).onRemoveCommand)==null||b.call(U)}U=E()>y().maxValue?y().maxValue:E()-1;e(U);zTQ(y(),U);return!1}),m=_.Ff(function(){if(E()===y().maxValue)return!1;
var U=E()+1;e(U);zTQ(y(),U);return!1});
_.Hu(function(){e(y().value)});
return _.R("quantity-incrementer-shape",null,_.R("div",{class:"yt-spec-quantity-incrementer-shape"},_.R("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return E()===(y().onRemoveCommand?0:1)||q()},
"aria-label":function(){return E()!==1?y().minusLabel:y().minimumReachedLabel},
"on:click":a},_.R(_.xS,{model:{circular:!0}}),_.R("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.R("div",{class:t},l()))),_.R("div",{class:u},E),_.R("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return E()>=y().maxValue||q()},
"aria-label":function(){return E()!==y().maxValue?y().plusLabel:y().maximumReachedLabel},
"on:click":m},_.R(_.xS,{model:{circular:!0}}),_.R("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.R("div",{class:C},p())))))},"ce");_.bp(_.aF(function(p){function y(){l().onRemoveCommand&&_.tb(l().onRemoveCommand)}
var l=p.data;var q=_.So(U5t,function(){return l().quantityIncrementerEntityKey});
return _.R("yt-quantity-incrementer-view-model",null,_.R(YkP,{data:function(){var t=l(),E;var e=q()?!((E=q())==null||!E.disabled):!1;var C;E=q()?(C=q())==null?void 0:C.quantity:l().quantity;return vAu(t,e,y,E)},
iconMinus:function(){return _.R(_.DR,{icon:"BAR_HORIZONTAL",className:_.rD("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.R(_.DR,{icon:"ADD",className:_.rD("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"de"),"yt-quantity-incrementer-view-model",{props:{data:_.Co}});var HM=function(){var p=_.w.apply(this,arguments)||this;p.compact=!1;p.hasQuantityIncrementer=!1;return p};
_.A(HM,_.w);HM.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"}}}};
HM.prototype.computeHasQuantityIncrementer=function(){var p;return!!_.G((p=this.data)==null?void 0:p.picker,L$x)};
HM.prototype.onLabelClick=function(){var p;(p=this.dropdownEl)==null||p.open()};
_.H([_.rd("ytd-dropdown-renderer"),_.x("design:type",Object)],HM.prototype,"dropdownEl",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],HM.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],HM.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],HM.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],HM.prototype,"quantityColor",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],HM.prototype,"compact",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.x("design:type",Object)],HM.prototype,"hasQuantityIncrementer",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],HM);
_.D(HM,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(oEZ!==void 0)return oEZ;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-quantity-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="picker-label" on-click="onLabelClick" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer">[[getSimpleString(data.pickerLabel)]]</div>\n<div id="picker" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n<div id="price" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return oEZ=p},{mode:1});var IEr;var piU;var Tj=function(){return _.w.apply(this,arguments)||this};
_.A(Tj,_.w);Tj.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Tj.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
Tj.prototype.updateTitle=function(){var p=this.disabledCartItemEntity;p.disableActionName&&this.set("data.title",dP(p.disableActionName))};
Tj.prototype.updateButton=function(){var p,y=(p=this.disabledCartItemEntity.undoCommand)==null?void 0:p.innertubeCommand;y!==void 0&&(this.set("data.actionButton.buttonRenderer.command",y),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
Tj.prototype.entityChanged=Tj.prototype.entityChanged;_.H([_.V(_.zL),_.x("design:type",Object)],Tj.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Tj.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Tj.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(p,y){return _.Ae(p.entities,"disabledCartItemEntity",y)}}),
_.x("design:type",Object)],Tj.prototype,"disabledCartItemEntity",void 0);_.H([_.Q(),_.x("design:type",Object)],Tj.prototype,"data",void 0);_.H([_.gd("disabledCartItemEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Tj.prototype,"entityChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],Tj);
_.D(Tj,"ytd-disabled-cart-item-renderer",function(){if(piU!==void 0)return piU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-disabled-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope ytd-disabled-cart-item-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n  <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n</div>\n<div id="action-button" class="style-scope ytd-disabled-cart-item-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return piU=p},{mode:1});_.ox("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var xl=function(){var p=_.w.apply(this,arguments)||this;p.compact=!1;p.hidden=!1;p.errorHidden=!1;p.noOnTap=!1;return p};
_.A(xl,_.w);_.J=xl.prototype;
_.J.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.textMetadata":{id:"text-metadata",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.merchantUpdateText":{id:"merchant-update-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.cartItemNotification":{id:"cart-item-notification",mapping:{cardItemTextWithImageRenderer:"yt-card-item-text-with-image-renderer"}},"data.cardItemActions":{id:"cart-item-actions",
mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{disableTextTransform:"[[compact]]"}}},events:!0},"data.quantityPicker":{id:"quantity-picker",mapping:{commerceCartItemQuantityPickerRenderer:{component:"ytd-commerce-cart-item-quantity-picker-renderer",properties:{compact:"[[compact]]",quantityColor:"[[commerceCartItemEntity.quantityColor]]"}}}},"data.disabledCartItem":{id:"disabled-cart-item",mapping:{disabledCartItemRenderer:"ytd-disabled-cart-item-renderer"}}}};
_.J.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.J.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var p=this.firstButtonElement;p.alignByText=!0;p.iconAlignByText=!0}};
_.J.computeNoOnTap=function(p){return!p};
_.J.updateQuantityColor=function(){if(this.pickerElement){var p,y=(p=this.commerceCartItemEntity)==null?void 0:p.quantityColor;this.pickerElement.quantityColor=y}};
_.J.updateTotalPriceColor=function(){var p,y=(p=this.commerceCartItemEntity)==null?void 0:p.totalPriceColor;if(y){var l;p=_.G((l=this.data)==null?void 0:l.quantityPicker,Sdr);if(l=_.G(p==null?void 0:p.price,rGx))l.textColor=y}};
_.J.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var p,y=(p=this.commerceCartItemEntity)==null?void 0:p.isHidden;y!==void 0&&(this.hidden=y)}};
_.J.updateHideErrorMessage=function(){var p,y=(p=this.commerceCartItemEntity)==null?void 0:p.hideErrorMessage;y!==void 0&&(this.errorHidden=y)};
_.J.updateQuantity=function(){var p=this,y,l=(y=this.commerceCartItemEntity)==null?void 0:y.quantity,q;y=(q=this.commerceCartItemEntity)==null?void 0:q.totalPrice;if(l){this.updateTotalPriceColor();this.updateQuantityColor();var t;q=_.G((t=this.data)==null?void 0:t.quantityPicker,Sdr);if(t=_.G(q==null?void 0:q.price,rGx))t.text=y?{simpleText:y.content}:void 0;if(y=_.G(q==null?void 0:q.picker,L$x))y.quantity=l;var E;if(t=(E=_.G(q==null?void 0:q.picker,kAr))==null?void 0:E.entries){E=!1;y=void 0;t=
_.c(t);for(q=t.next();!q.done;q=t.next())q=q.value,q.dropdownItemRenderer&&(y||(y=q.dropdownItemRenderer),q.dropdownItemRenderer.isSelected=!1,l===q.dropdownItemRenderer.int32Value&&(E=!0,q.dropdownItemRenderer.isSelected=!0));!E&&y&&(y.isSelected=!0)}_.th(this,function(){var e;p.set("data.quantityPicker",_.Ts.unsafeClone((e=p.data)==null?void 0:e.quantityPicker))})}};
xl.prototype.onYtRendererstamperFinished=xl.prototype.onYtRendererstamperFinished;xl.prototype.entityChanged=xl.prototype.entityChanged;_.H([_.Q(),_.x("design:type",Object)],xl.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],xl.prototype,"compact",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],xl.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],xl.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],xl.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],xl.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(p,y){return _.Ae(p.entities,"commerceCartItemEntity",y)}}),
_.x("design:type",Object)],xl.prototype,"commerceCartItemEntity",void 0);_.H([_.Q(),_.x("design:type",Object)],xl.prototype,"quantityPicker",void 0);_.H([_.Q(),_.x("design:type",Object)],xl.prototype,"compactQuantityPicker",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],xl.prototype,"hidden",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],xl.prototype,"errorHidden",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.x("design:type",Object)],xl.prototype,"noOnTap",void 0);_.H([_.rd("ytd-commerce-cart-item-quantity-picker-renderer"),_.x("design:type",Object)],xl.prototype,"pickerElement",void 0);_.H([_.rd("yt-button-renderer"),_.x("design:type",Element)],xl.prototype,"firstButtonElement",void 0);
_.H([_.gd("commerceCartItemEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xl.prototype,"entityChanged",null);_.H([_.VU("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xl.prototype,"onYtRendererstamperFinished",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],xl);
_.D(xl,"ytd-commerce-cart-item-renderer",function(){if(IEr!==void 0)return IEr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" hidden="[[commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer">\n  <a id="img-container" class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]" tabindex="-1">\n    <yt-img-shadow id="image" object-fit="CONTAIN" thumbnail="[[data.cartItemImage]]" width="200" class="style-scope ytd-commerce-cart-item-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="content" class="style-scope ytd-commerce-cart-item-renderer">\n    <div id="item" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="info" class="style-scope ytd-commerce-cart-item-renderer">\n        <div id="cart-item-notification" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <h3 class="style-scope ytd-commerce-cart-item-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n              <div id="title" class="style-scope ytd-commerce-cart-item-renderer"></div>\n            </a>\n        </h3>\n        <div id="text-metadata" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <div id="merchant-update-text" class="style-scope ytd-commerce-cart-item-renderer"></div>\n      </div>\n      <div id="quantity-picker" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n    <div id="actions" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="cart-item-actions" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="disabled-cart-item" hidden="[[!commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return IEr=p},{mode:_.ZS("kevlar_poly_si_batch_j028")?1:2});var ynr;var lsU;var BM=function(){return _.w.apply(this,arguments)||this};
_.A(BM,_.w);BM.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}}}}}};
BM.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
BM.prototype.updateCheckoutLineItems=function(){var p,y=(p=this.commerceCartCheckoutButtonEntity)==null?void 0:p.checkoutLineItems;y&&(p=y.map(function(l){a:{var q=l.price,t=l.description;switch(l.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":l={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:dP(t),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",
left:"CARD_ITEM_UX_SPACE_4"}}},price:{cardItemTextRenderer:{text:dP(q),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}};break a;default:l={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:dP(t),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",
right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_0"}}},price:{cardItemTextRenderer:{text:dP(q),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}}}}return l}),this.set("data.summaryLineItems",p))};
BM.prototype.updateIsHidden=function(){var p,y=(p=this.commerceCartCheckoutButtonEntity)==null?void 0:p.isHidden;y!==void 0&&(this.hostElement.hidden=y)};
BM.prototype.entityChanged=BM.prototype.entityChanged;_.H([_.V(_.zL),_.x("design:type",Object)],BM.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],BM.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],BM.prototype,"data",void 0);_.H([_.Q({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:KUg}),_.x("design:type",Object)],BM.prototype,"commerceCartCheckoutButtonEntity",void 0);_.H([_.gd("commerceCartCheckoutButtonEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BM.prototype,"entityChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],BM);
_.D(BM,"ytd-commerce-cart-summary-renderer",function(){if(lsU!==void 0)return lsU;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-commerce-cart-summary-renderer">[[getSimpleString(data.title)]]</div>\n<div id="summary-line-items" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return lsU=p},{mode:1});var q2v={};q2v.InjectBehavior=[xw6.InjectBehavior];var s6x;var tbU;var ff=function(){return _.w.apply(this,arguments)||this};
_.A(ff,_.w);
ff.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:_.zT("menuRenderer")}}};
ff.prototype.onMenuTap=function(p){p.stopPropagation()};
_.Jh.Object.defineProperties(ff.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityData&&this.data.accessibilityData.label?this.data.accessibilityData.label:""}},
sectionHeadingVisible:{configurable:!0,enumerable:!0,get:function(){var p,y;return!(((p=this.data)==null||!p.sectionHeading)&&((y=this.data)==null?void 0:y.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var p,y;return!(((p=this.data)==null||!p.image)&&((y=this.data)==null?void 0:y.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var p,y;return!(((p=this.data)==null||!p.menu)&&((y=this.data)==null?void 0:y.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ff.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ff.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.NMB.YtTappableItemBehavior),_.x("design:type",Object)],ff.prototype,"ytTappableItemBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ff.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("data.accessibilityData"),_.x("design:type",String),_.x("design:paramtypes",[])],ff.prototype,"ariaLabel",null);_.H([_.g("data.sectionHeading","data.layout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ff.prototype,"sectionHeadingVisible",null);_.H([_.g("data.image","data.layout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ff.prototype,"imageVisible",null);
_.H([_.g("data.menu","data.layout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ff.prototype,"menuVisible",null);_.H([_.z9({is:"yt-activity-item-renderer",disableElementRegistration:!0})],ff);
_.D(ff,"yt-activity-item-renderer",function(){if(tbU===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-activity-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_activity_item_renderer.yt.activity.item.renderer.css.js--\x3e<div class="activity-item-contents style-scope yt-activity-item-renderer">\n  <div id="section-heading" tabindex="-1" aria-hidden="[[!sectionHeadingVisible]]" hidden="[[!sectionHeadingVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  <div id="section-contents" class="style-scope yt-activity-item-renderer">\n    <div id="image" hidden="[[!imageVisible]]" class="style-scope yt-activity-item-renderer"></div>\n    <div id="content-activity-container" tabindex="-1" divider-style$="[[data.dividerStyle]]" class="style-scope yt-activity-item-renderer">\n      <div id="content" class="style-scope yt-activity-item-renderer">\n        <div id="title" class="style-scope yt-activity-item-renderer"></div>\n        <div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-activity-item-renderer"></div>\n        <div id="additional-metadata" hidden="[[!data.additionalMetadata]]" class="style-scope yt-activity-item-renderer"></div>\n      </div>\n      <div id="activity-metadata" class="style-scope yt-activity-item-renderer"></div>\n    </div>\n    <div id="menu" on-click="onMenuTap" tabindex="0" hidden="[[!menuVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  </div>\n</div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;s6x===void 0&&(s6x=document.createElement("template"));var q=s6x;l.call(y,q.content.cloneNode(!0),p.content.firstChild);tbU=p}p=tbU;return p},{mode:2});var EVM;var JnP;var cnx;var eGN;var vM=function(){return _.w.apply(this,arguments)||this};
_.A(vM,_.w);
vM.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"}}}}};
vM.prototype.backgroundColorChanged_=function(){var p,y=(p=this.data)==null?void 0:p.backgroundColor;this.hostElement.style.backgroundColor=V7[y||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
vM.prototype.backgroundColorChanged_=vM.prototype.backgroundColorChanged_;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],vM.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],vM.prototype,"data",void 0);
_.H([_.gd("data.backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vM.prototype,"backgroundColorChanged_",null);_.H([_.z9({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],vM);
_.D(vM,"yt-offer-item-upsell-renderer",function(){if(eGN===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_upsell_renderer.yt.offer.item.upsell.renderer.css.js--\x3e<div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-offer-item-upsell-renderer"></div>\n<div id="heading-price-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="heading-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="price-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n<div id="description-actions-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="description-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="actions-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;cnx===void 0&&(cnx=document.createElement("template"));var q=cnx;l.call(y,q.content.cloneNode(!0),p.content.firstChild);eGN=p}p=eGN;return p},{mode:2});_.ox("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var Xh=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};p.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return p};
_.A(Xh,_.w);_.J=Xh.prototype;
_.J.configureRendererStamper=function(){return{"data.baseRenderer":{id:"base",mapping:{cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0}}},"data.contents":{id:"contents",mapping:{commerceCartHeaderRenderer:{component:"ytd-commerce-cart-header-renderer",properties:{compact:"[[compact]]"},noInjection:!0},commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{fullWidth:"[[compact]]"}},commerceCartItemRenderer:{component:"ytd-commerce-cart-item-renderer",noInjection:!0,
properties:{compact:"[[compact]]"}},cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0},offerItemUpsellRenderer:{component:"yt-offer-item-upsell-renderer",noInjection:!0},activityItemRenderer:{component:"yt-activity-item-renderer",noInjection:!0}}},"data.continuationSection":{id:"continuation-section",mapping:_.zT("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.J.computeContainerStyle_=function(p){return p};
_.J.computeContainerIsHidden_=function(p){return p&&!!p.isHidden};
_.J.computeShowSpinner_=function(p,y){return p&&y==="in-progress"};
_.J.computeShowMoreContentsButton_=function(p,y,l,q,t){return!(!(q&&q.length||t&&t.length&&l)||!p||y)};
_.J.onToggleButton_=function(p){var y=this;p.stopPropagation();this.isExpanded_=p.detail&&p.detail.toggled;var l,q;this.isExpanded_&&!this.data.continuationSection.length&&((l=this.data)==null?0:(q=l.continuation)==null?0:q.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Ub(this.hostElement,"yt-load-next-continuation",function(t){return y.getContinuationUrl_(y.data.continuation.onClickContinuationData,t)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.ny(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.J.onShowMoreContentsButtonClicked_=function(p){var y=this;p.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Ub(this.hostElement,"yt-load-next-continuation",function(l){return y.getContinuationUrl_(y.data.continuations[0].nextContinuationData,l)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.ny(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.J.getContinuationUrl_=function(p,y){var l=p.continuation;p=p.clickTrackingParams;var q=_.B2();p&&q&&_.te(q,_.Tp(p));return _.JJ(y,{continuation:l})};
_.J.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var p=_.jR(this.hostElement).querySelector("#continuation-section");p&&(p=p.querySelectorAll("ytmusic-item-section-renderer"))&&p.forEach(function(y){return y.classList.add("memberships-and-purchases")})};
_.J.dataChanged_=function(){var p;this.isExpanded_=!((p=this.data)==null||!p.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.J.updateCardOnClickCommand_=function(p){p=_.G(p,AGi);var y,l;this.data&&((y=this.data)==null?0:y.targetId)&&p&&p.targetId===((l=this.data)==null?void 0:l.targetId)&&p.onClickCommand&&(this.data.onClickCommand=p.onClickCommand,this.isOnClickCommand_=!0)};
_.J.backgroundColorChanged_=function(){var p,y=(p=this.data)==null?void 0:p.backgroundColor;this.hostElement.style.backgroundColor=V7[y||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Xh.prototype.backgroundColorChanged_=Xh.prototype.backgroundColorChanged_;Xh.prototype.dataChanged_=Xh.prototype.dataChanged_;Xh.prototype.nextContinuationDataUpdated_=Xh.prototype.nextContinuationDataUpdated_;Xh.prototype.onToggleButton_=Xh.prototype.onToggleButton_;_.H([_.V(_.tP),_.x("design:type",Object)],Xh.prototype,"ytContinuationHandlerBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Xh.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Xh.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.Eo.YtNextContinuationBehavior),_.x("design:type",Object)],Xh.prototype,"ytNextContinuationBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Xh.prototype,"ytRendererBehavior",void 0);_.H([_.V(q2v.InjectBehavior),_.x("design:type",Object)],Xh.prototype,"injectBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Xh.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Xh.prototype,"compact",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Xh.prototype,"isExpanded_",void 0);_.H([_.Q({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.x("design:type",String)],Xh.prototype,"containerStyle_",void 0);_.H([_.Q({value:"not-started"}),_.x("design:type",String)],Xh.prototype,"continuationStatus_",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.x("design:type",Boolean)],Xh.prototype,"showSpinner_",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Xh.prototype,"isOnClickCommand_",void 0);_.H([_.Q({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.x("design:type",Boolean)],Xh.prototype,"showMoreContentsButton_",void 0);
_.H([_.Q({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(p,y){return!y||p.entities?null:_.Ae(p.entities,"cardItemContainerEntity",y)}}),
_.x("design:type",Object)],Xh.prototype,"cardItemContainerEntity_",void 0);_.H([_.VU("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Xh.prototype,"onToggleButton_",null);_.H([_.VU("yt-next-continuation-data-updated"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xh.prototype,"nextContinuationDataUpdated_",null);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xh.prototype,"dataChanged_",null);_.H([_.gd("data.backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xh.prototype,"backgroundColorChanged_",null);_.H([_.z9({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],Xh);
_.D(Xh,"yt-card-item-container-renderer",function(){if(JnP===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_container_renderer.yt.card.item.container.renderer.css.js--\x3e<div id="container" hidden="[[computeContainerIsHidden_(cardItemContainerEntity_)]]" class="style-scope yt-card-item-container-renderer">\n  <div id="base" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="divider" hidden="[[!isExpanded_]]" container-style_$="[[containerStyle_]]" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="contents-section" hidden="[[!isExpanded_]]" class="style-scope yt-card-item-container-renderer">\n    <div id="contents" class="style-scope yt-card-item-container-renderer"></div>\n    <div id="continuation-section" class="style-scope yt-card-item-container-renderer"></div>\n    <tp-yt-paper-spinner id="spinner" active="[[showSpinner_]]" class="style-scope yt-card-item-container-renderer"></tp-yt-paper-spinner>\n    <div id="more-contents-button" hidden="[[!showMoreContentsButton_]]" on-click="onShowMoreContentsButtonClicked_" class="style-scope yt-card-item-container-renderer"></div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;EVM===void 0&&(EVM=document.createElement("template"));var q=EVM;l.call(y,q.content.cloneNode(!0),p.content.firstChild);JnP=p}p=JnP;return p},{mode:2});var d0=function(){return _.w.apply(this,arguments)||this};
_.A(d0,_.w);d0.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"}}}};
d0.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
d0.prototype.computeLoadingHidden=function(){var p;return!((p=this.commerceCartPageStateEntity)==null?0:p.cartActionInProgress)};
d0.prototype.updateNotification=function(){var p,y=(p=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:p.summaryText;y&&this.set("data.cartNotification",dP(y))};
d0.prototype.notificationEntityChanged=d0.prototype.notificationEntityChanged;_.H([_.V(_.zL),_.x("design:type",Object)],d0.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],d0.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],d0.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],d0.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],d0.prototype,"data",void 0);_.H([_.Q({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(p,y){return _.Ae(p.entities,"commerceCartExpandableNotificationEntity",y)}}),
_.x("design:type",Object)],d0.prototype,"commerceCartExpandableNotificationEntity",void 0);_.H([_.Q({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(p,y){return _.Ae(p.entities,"commerceCartPageStateEntity",y)}}),
_.x("design:type",Object)],d0.prototype,"commerceCartPageStateEntity",void 0);_.H([_.rd("#spinner"),_.x("design:type",HTMLElement)],d0.prototype,"spinner",void 0);_.H([_.gd("commerceCartExpandableNotificationEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],d0.prototype,"notificationEntityChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],d0);
_.D(d0,"ytd-commerce-cart-renderer",function(){if(ynr!==void 0)return ynr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-commerce-cart-renderer">\n  <div id="title" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="notification" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.cartNotification)]]</div>\n</div>\n<div id="body" class="style-scope ytd-commerce-cart-renderer">\n  <div id="primary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="items" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n  <div id="secondary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="cart-summary" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n</div>\n<div id="loading-overlay" hidden="[[computeLoadingHidden(data, commerceCartPageStateEntity)]]" class="style-scope ytd-commerce-cart-renderer">\n  <div id="positioning-container" class="style-scope ytd-commerce-cart-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="[[commerceCartPageStateEntity.cartActionInProgress]]" class="style-scope ytd-commerce-cart-renderer">\n    </tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return ynr=p},{mode:1});var hG$;var Oh=function(){var p=_.w.apply(this,arguments)||this;p.bigImage=!1;return p};
_.A(Oh,_.w);_.Jh.Object.defineProperties(Oh.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.placeholderImageUrl}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Oh.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Oh.prototype,"bigImage",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Oh.prototype,"placeholderImageUrl",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Oh);
_.D(Oh,"ytd-empty-product-shelf-renderer",function(){if(hG$!==void 0)return hG$;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-empty-product-shelf-renderer">\n  <template is="dom-if" if="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n    <img id="placeholder-image" alt="icon" src$="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n  </template>\n  <yt-formatted-string id="image-text" text="[[data.imageText]]" class="style-scope ytd-empty-product-shelf-renderer"></yt-formatted-string>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return hG$=p},{mode:1});var C3r;var oc=function(){var p=_.w.apply(this,arguments)||this;p.itemStyle="link-item";p.watchMetadataRefresh=!1;p.skinnyMode=!1;p.metaPanel=!1;p.inStructuredDescription=!1;p.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};p.updateOnResizeDebouncer=null;return p};
_.A(oc,_.w);_.J=oc.prototype;_.J.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{iconSize:16}},menuRenderer:"ytd-menu-renderer"}},"data.emptyProductShelf":{id:"empty-product",mapping:{emptyProductShelfRenderer:{component:"ytd-empty-product-shelf-renderer"}}}}};
_.J.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.J.attachVEs=function(p){p.trackingParams&&_.Ll().graftServerVe(p.trackingParams)};
_.J.handleUpdateMerchShelfAction=function(p){var y=this,l=_.G(p.updateMerchandiseShelfAction.merchandiseShelf,_.s$x);l&&(l.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){y.attachVEs(l);y.data=l},Number(l.renderDelayMs))):(this.attachVEs(l),this.data=l))};
_.J.updateOnResize=function(){if(this.JSC$16709_scrollContainer!==void 0&&this.JSC$16709_scrollContainer.clientWidth!==0&&this.items!==void 0){var p=this.JSC$16709_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-p));this.ytdHorizontalListBehavior.reposition_();var y;switch((y=this.data)==null?void 0:y.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var l,
q;((l=this.data)==null?void 0:(q=l.items)==null?void 0:q.length)===1?this.itemStyle="cta-item":this.itemStyle=p>=740?"large-item":"small-item"}}};
_.J.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Gr(this.updateOnResizeDebouncer,_.hc.after(100),this.updateOnResize)};
oc.prototype.debouncedUpdateOnResize=oc.prototype.debouncedUpdateOnResize;oc.prototype.dataChanged=oc.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],oc.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],oc.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.jE.YtdHorizontalListBehavior),_.x("design:type",Object)],oc.prototype,"ytdHorizontalListBehavior",void 0);
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],oc.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],oc.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],oc.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],oc.prototype,"itemStyle",void 0);_.H([_.Q({value:6}),_.x("design:type",Number)],oc.prototype,"initialCount",void 0);
_.H([_.Q({value:"data.items"}),_.x("design:type",String)],oc.prototype,"itemsPath",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],oc.prototype,"watchMetadataRefresh",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],oc.prototype,"skinnyMode",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],oc.prototype,"metaPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],oc.prototype,"inStructuredDescription",void 0);
_.H([_.rd("#items"),_.x("design:type",HTMLDivElement)],oc.prototype,"items",void 0);_.H([_.rd("#scroll-container"),_.x("design:type",HTMLDivElement)],oc.prototype,"JSC$16709_scrollContainer",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oc.prototype,"dataChanged",null);_.H([_.VU("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oc.prototype,"debouncedUpdateOnResize",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],oc);
_.D(oc,"ytd-merch-shelf-renderer",function(){if(C3r!==void 0)return C3r;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-merch-shelf-renderer">\n  <div id="banner" class="style-scope ytd-merch-shelf-renderer">\n    <div id="title" hidden="[[!data.title]]" role="heading" class="style-scope ytd-merch-shelf-renderer">[[data.title]]</div>\n    <yt-formatted-string id="title" hidden="[[!data.titleFormatted]]" role="heading" text="[[data.titleFormatted]]" class="style-scope ytd-merch-shelf-renderer">\n    </yt-formatted-string>\n    <div id="action-button" class="style-scope ytd-merch-shelf-renderer"></div>\n  </div>\n  <div id="empty-product" class="style-scope ytd-merch-shelf-renderer"></div>\n  <div id="item-list" class="style-scope ytd-merch-shelf-renderer">\n    <div id="left-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="prevClick_" hidden="[[atStart]]">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n    <div id="scroll-container" class="style-scope ytd-merch-shelf-renderer">\n      <div id="items" item-style$="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n        \n        <template is="dom-repeat" items="[[shownItems]]" class="style-scope ytd-merch-shelf-renderer">\n          <ytd-merch-shelf-item-renderer data="[[item.merchandiseItemRenderer]]" item-style="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n          </ytd-merch-shelf-item-renderer>\n        </template>\n      </div>\n    </div>\n    <div id="right-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="right-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return C3r=p},{mode:2});var ujN;var zj=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-add-backstage-comment-action":"addBackstageCommentAction","yt-add-backstage-post-action":"addBackstagePostAction","yt-add-backstage-reply-action":"addBackstageReplyAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-replace-backstage-comment-action":"replaceBackstageCommentAction","yt-replace-backstage-post-action":"replaceBackstagePostAction",
"yt-replace-backstage-reply-action":"replaceBackstageReplyAction"};return p};
_.A(zj,_.w);_.J=zj.prototype;
_.J.addBackstagePostAction=function(p){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(p=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",p))&&(this.get("header.commentsHeaderRenderer.zeroStateMessage.backstageZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{}),this.get("header.commentsHeaderRenderer.schedulingZeroStateMessage.postSchedulingZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.schedulingZeroStateMessage",
{}),this.get("data.contents")?this.splice("data.contents",0,0,{backstagePostThreadRenderer:p}):this.set("data.contents",[{backstagePostThreadRenderer:p}]))};
_.J.addBackstageCommentAction=function(p){var y=this.get("addBackstageCommentAction.parentId",p);p=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",p);if(y&&p){y=this.postIdToIndices(y);for(var l=0;l<y.length;l++){var q=y[l];if(q<0)break;q="data.contents."+q+".backstagePostThreadRenderer.comments";this.get(q)&&(this.get(q+".backstageCommentsRenderer.contents")&&this.push(q+".backstageCommentsRenderer.contents",{commentThreadRenderer:p}),this.get(q+".backstageCommentsRenderer.teaserContents")?
this.push(q+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:p}):this.set(q+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:p}]))}}};
_.J.addBackstageReplyAction=function(p){var y=this.get("addBackstageReplyAction.parentId",p);p=this.get("addBackstageReplyAction.renderer.commentRenderer",p);y&&p&&this.setCreatorReply(y,p)};
_.J.banAuthorAction=function(p){var y=this.get("banAuthorAction.commentId",p);y&&(p=this.get("banAuthorAction.parentCommentId",p)||this.getParentPostId(y),this.removeFromStream(y,p))};
_.J.hideReportedCommentAction=function(p){var y=this.get("hideReportedCommentAction.commentId",p);y&&((p=this.get("hideReportedCommentAction.parentCommentId",p))||(p=this.getParentPostId(y)),this.removeFromStream(y,p))};
_.J.replaceBackstageCommentAction=function(p){var y=this.get("replaceBackstageCommentAction.commentId",p),l=this.get("replaceBackstageCommentAction.parentId",p);p=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",p);if(y&&l&&p){l=this.postIdToIndices(l);for(var q=0;q<l.length;q++){var t=l[q];if(t<0)break;var E=this.commentIdToIndex(y,t,!1);if(E>=0){var e=this.get("data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+E+".commentThreadRenderer.replies.commentRepliesRenderer");
e&&(p.replies={commentRepliesRenderer:e});this.splice("data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",E,1,{commentThreadRenderer:p})}E=this.commentIdToIndex(y,t,!0);if(E>=0){if(e=this.get("data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(E+".commentThreadRenderer.replies.commentRepliesRenderer")))p.replies={commentRepliesRenderer:e};this.splice("data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
E,1,{commentThreadRenderer:p})}}}};
_.J.replaceBackstagePostAction=function(p){var y=this.get("replaceBackstagePostAction.itemId",p);if(y){y=this.postIdToIndices(y);for(var l=0;l<y.length;l++){var q=y[l];if(q<0)break;var t=this.getPostRendererType(q),E=this.get("replaceBackstagePostAction.renderer."+t,p);if(!E&&t!=="sharedPostRenderer")break;var e=!1;E||(e=!0,E=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",p));if(!E)break;var C={};e?(_.oF(C,IIM,E),this.set("data.contents."+q+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
C)):(_.oF(C,new _.uK(t),E),this.set("data.contents."+q+".backstagePostThreadRenderer.post",C))}}};
_.J.replaceBackstageReplyAction=function(p){var y=this.get("replaceBackstageReplyAction.replyId",p),l=this.get("replaceBackstageReplyAction.parentId",p);p=this.get("replaceBackstageReplyAction.renderer.commentRenderer",p);y&&p&&l&&this.setCreatorReply(l,p)};
_.J.removeCommentAction=function(p){var y=this.get("removeCommentAction.commentId",p);if(y){var l=this.get("removeCommentAction.parentCommentId",p);l&&this.get("removeCommentAction.isCreatorReply",p)?this.setCreatorReply(l,void 0):(l||(l=this.getParentPostId(y)),this.removeFromStream(y,l))}};
_.J.setCreatorReply=function(p,y){var l=this.getParentPostId(p);if(l){l=this.postIdToIndices(l);for(var q=0;q<l.length;q++){var t=l[q];if(t<0)break;var E=this.commentIdToIndex(p,t,!1);if(E>=0){var e="data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+E;E=e+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";e+=".commentThreadRenderer.replies";y==void 0?(this.set(e,{}),this.set(E,!1)):(this.set(e,{commentRepliesRenderer:{teaserContents:[{commentRenderer:y}]}}),
this.set(e+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(E,!0))}E=this.commentIdToIndex(p,t,!0);E>=0&&(E="data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+E,t=E+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",E+=".commentThreadRenderer.replies",y==void 0?(this.set(E,{}),this.set(t,!1)):(this.set(E,{commentRepliesRenderer:{teaserContents:[{commentRenderer:y}]}}),this.set(t,!0)))}}};
_.J.removeFromStream=function(p,y){if(y){y=this.postIdToIndices(y);for(var l=0;l<y.length;l++){var q=y[l];if(q<0)break;var t=this.commentIdToIndex(p,q,!1);t>=0&&this.splice("data.contents."+q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",t,1);t=this.commentIdToIndex(p,q,!0);t>=0&&this.splice("data.contents."+q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",t,1);q="data.contents."+q+".backstagePostThreadRenderer.post.backstagePostRenderer";
t=q+".backstageAttachment.pollRenderer.votedCommentId";this.get(t)===p&&(this.set(t,null),this.set(q+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(y=this.postIdToIndices(p).reverse(),l=0;l<y.length;l++){q=y[l];if(q<0)break;t=this.getPostRendererType(q);var E=this.get("backstagePostThreadRenderer.post."+t,this.data.contents[q]);E.postId===p?this.splice("data.contents",q,1):t==="sharedPostRenderer"&&this.set("data.contents."+q+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);E.scheduledPublishTimeSec&&_.$w(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.J.postIdToIndices=function(p){for(var y=[],l=0;l<this.data.contents.length;l++){var q=this.getPostRendererType(l);this.get("backstagePostThreadRenderer.post."+q+".postId",this.data.contents[l])===p&&y.push(l);if(q==="sharedPostRenderer"){var t=this.get("backstagePostThreadRenderer.post."+q+".originalPost.backstagePostRenderer.postId",this.data.contents[l]);q=this.get("backstagePostThreadRenderer.post."+q+".originalPost.postRenderer.postId",this.data.contents[l]);t!==p&&q!==p||y.push(l)}}return y};
_.J.commentIdToIndex=function(p,y,l){if(y<0)return-1;var q,t,E,e,C=_.G((q=this.data)==null?void 0:(t=q.contents)==null?void 0:(E=t[y])==null?void 0:(e=E.backstagePostThreadRenderer)==null?void 0:e.comments,zuN);return(y=l?C==null?void 0:C.teaserContents:C==null?void 0:C.contents)&&y.length?y.findIndex(function(u){return _.G(u,iuM).comment.commentRenderer.commentId===p}):-1};
_.J.getParentPostId=function(p){p=p.split(".");if(p[1])return p[0]};
_.J.getPostRendererType=function(p){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[p])?"sharedPostRenderer":"backstagePostRenderer"};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],zj.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],zj.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],zj.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-backstage-items"})],zj);
_.D(zj,"ytd-backstage-items",function(){if(ujN!==void 0)return ujN;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer data="[[data]]" class="style-scope ytd-backstage-items"></ytd-item-section-renderer>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return ujN=
p},{mode:1});var RGB;var WYi={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},Yl=function(){var p=_.w.apply(this,arguments)||this;p.disablePrescanVisibility=!0;p.canScheduleJobs=!0;p.engagementPanel=!1;p.hidePanelButton=!1;p.isWatchGrid=!1;p.hasShownSubscribersOnlyDisclaimer=!1;p.actionMap=
{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-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_"};return p};
_.A(Yl,_.w);_.J=Yl.prototype;_.J.created=function(){this.initCommentsCsi_()};
_.J.contentsChanged_=function(){var p;(p=this.data)!=null&&p.contents&&this.tickForCommentsTimer_("cml")};
_.J.headerChanged_=function(){var p;(p=this.data)!=null&&p.header&&this.tickForCommentsTimer_("cmhl")};
_.J.initCommentsCsi_=function(){_.BW("wn_comments");var p=_.B2();p&&_.xw({clientScreenNonce:p},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.J.createCommentAction_=function(p){p=_.Ts.unsafeClone(p);var y,l;if(p=(y=_.G(p,P0U))==null?void 0:(l=y.contents)==null?void 0:l.commentThreadRenderer){var q,t,E,e,C,u;!this.isBackstage&&((q=this.data)==null?0:(t=q.header)==null?0:(E=t.commentsHeaderRenderer)==null?0:(e=E.createRenderer)==null?0:(C=e.commentSimpleboxRenderer)==null?0:(u=C.zeroStep)==null?0:u.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var a,
m,U;this.isBackstage&&_.G((a=this.data)==null?void 0:(m=a.header)==null?void 0:(U=m.commentsHeaderRenderer)==null?void 0:U.zeroStateMessage,pfv)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(p)}};
_.J.doReplyInsert_=function(p,y,l,q){q?this.splice(p,q,0,y):this.push(p,y)};
_.J.getRepliesPath_=function(p){return"data.contents."+p+".commentThreadRenderer.replies"};
_.J.getRepliesContentsPath_=function(p,y){p=this.getRepliesPath_(p);return y?p+".commentRepliesRenderer.teaserContents":p+".commentRepliesRenderer.contents"};
_.J.showSubscribersOnlyDisclaimer_=function(p){(p=p.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(p=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(p))&&(_.$w(this.hostElement,"yt-open-popup-action",[p,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.J.createCommentReplyAction_=function(p){p=_.Ts.unsafeClone(p);var y=_.G(p,A7N);if(p=y==null?void 0:y.contents){var l=this.commentIdToIndex_(y==null?void 0:y.parentCommentId);if(!(l<0)){var q=this.getRepliesPath_(l);if(this.get(q)){y=y.replyToCommentId;q=this.getRepliesContentsPath_(l,!1);if(this.get(q)){var t=this.get(q).length,E=q+"."+(t-1)+".continuationItemRenderer";this.get(E+".button")?(E=this.replyIdToIndex_(y,l,!1),this.doReplyInsert_(q,p,E,t-1)):this.get(E)||(t=this.replyIdToIndex_(y,l,
!1),this.doReplyInsert_(q,p,t,null))}q=this.getRepliesContentsPath_(l,!0);this.get(q)?(l=this.replyIdToIndex_(y,l,!0),(!y||l>=0)&&this.doReplyInsert_(q,p,l,null)):this.set(q,[p])}else this.set(q,{commentRepliesRenderer:{teaserContents:[p]}})}}};
_.J.hideReportedCommentAction_=function(p){var y=_.G(p,fOx);if(p=y==null?void 0:y.commentId)y=this.get("parentCommentId",y),p=p.replace("#","."),y||(y=this.getParentCommentId_(p)),this.remove_(p,y)};
_.J.getParentCommentId_=function(p){p=p.split(".");if(p[1])return p[0]};
_.J.removeCommentAction_=function(p){var y=_.G(p,QZi);if(p=y==null?void 0:y.commentId)y=y==null?void 0:y.parentCommentId,p=p.replace("#","."),y||(y=this.getParentCommentId_(p)),this.remove_(p,y)};
_.J.pinCommentAction_=function(p){p=_.Ts.unsafeClone(p);var y=_.G(p,gv$);y!=null&&y.commentId&&(p=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",p))&&(this.remove_(y.commentId),this.insert_(p,!0))};
_.J.unpinCommentAction_=function(p){p=_.Ts.unsafeClone(p);p=_.G(p,K6i);if(p!=null&&p.commentId){var y,l,q=(y=p.actionResult)==null?void 0:(l=y.update)==null?void 0:l.commentThreadRenderer;q&&(this.remove_(p.commentId),this.insert_(q))}};
_.J.banAuthorAction_=function(p){var y=_.G(p,GtO);y!=null&&y.commentId&&(p=y.parentCommentId,y=y.commentId.replace("#","."),p||(p=this.getParentCommentId_(y)),this.remove_(y,p))};
_.J.commentIdToIndex_=function(p){var y;return p&&(y=this.data)!=null&&y.contents?this.data.contents.findIndex(function(l){l=l.commentThreadRenderer;var q;return p===((l==null?void 0:l.commentViewModel)&&((q=_.G(l.commentViewModel,N5v))==null?void 0:q.commentId))}):-1};
_.J.insert_=function(p,y){y=y===void 0?!1:y;var l,q;if((l=this.data)==null?0:(q=l.contents)==null?0:q.some(function(E){return!!E.commentThreadRenderer}))for(l=0,q=this.data.contents.length;l<q;l++){var t=this.data.contents[l].commentThreadRenderer;
if(WYi[p.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=WYi[t.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){y&&WYi[p.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===WYi[t.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",l,1,{commentThreadRenderer:p}):this.splice("data.contents",l,0,{commentThreadRenderer:p});break}}else this.set("data.contents",[{commentThreadRenderer:p}])};
_.J.doReplyRemove_=function(p,y,l){p=this.replyIdToIndex_(p,y,l);p<0||(y=this.getRepliesContentsPath_(y,l),this.splice(y,p,1))};
_.J.remove_=function(p,y){y=this.commentIdToIndex_(y);y<0?(y=this.commentIdToIndex_(p),y<0||this.splice("data.contents",y,1)):(this.doReplyRemove_(p,y,!1),this.doReplyRemove_(p,y,!0))};
_.J.replyIdToIndex_=function(p,y,l){if(y<0)return-1;y=this.getRepliesContentsPath_(y,l);y=this.get(y);if(!y||!y.length)return-1;l=0;for(var q=y.length;l<q;l++){var t=void 0,E=void 0;if(((t=y[l])==null?void 0:(E=t.commentViewModel)==null?void 0:E.commentId)===p)return l}return-1};
_.J.tickForCommentsTimer_=function(p){_.vW(p,void 0,"wn_comments")};
_.J.reloadComments_=function(p){p=_.G(p,L6r);_.G(p==null?void 0:p.command,_.qr)&&_.ny(this.hostElement,[p==null?void 0:p.command])};
_.Jh.Object.defineProperties(Yl.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return!!((p=this.data)==null?0:(y=p.header)==null?0:(l=y.commentsHeaderRenderer)==null?0:l.isBackstageContent)}}});
_.Jh.Object.defineProperties(Yl,{template:{configurable:!0,enumerable:!0,get:function(){if(RGB===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);RGB=p}p=RGB;return p}}});
Yl.prototype.showSubscribersOnlyDisclaimer_=Yl.prototype.showSubscribersOnlyDisclaimer_;Yl.prototype.headerChanged_=Yl.prototype.headerChanged_;Yl.prototype.contentsChanged_=Yl.prototype.contentsChanged_;_.H([_.V(_.RP),_.x("design:type",Object)],Yl.prototype,"ytdOpenPopupBehavior",void 0);_.H([_.V(_.vkc.YtHostElementBehavior),_.x("design:type",Object)],Yl.prototype,"ytHostElementBehavior",void 0);
_.H([_.V(_.c8.YtPlayerListenerBehavior),_.x("design:type",Function)],Yl.prototype,"ytPlayerListenerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Yl.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Yl.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Yl.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("data.header.commentsHeaderRenderer.isBackstageContent"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Yl.prototype,"isBackstage",null);_.H([_.Q(),_.x("design:type",Object)],Yl.prototype,"disablePrescanVisibility",void 0);_.H([_.Q(),_.x("design:type",Object)],Yl.prototype,"canScheduleJobs",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Yl.prototype,"engagementPanel",void 0);
_.H([_.Q(),_.x("design:type",Object)],Yl.prototype,"hidePanelButton",void 0);_.H([_.Q(),_.x("design:type",Object)],Yl.prototype,"isWatchGrid",void 0);_.H([_.Q(),_.x("design:type",Object)],Yl.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.H([_.gd("data.contents"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yl.prototype,"contentsChanged_",null);
_.H([_.gd("data.header"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yl.prototype,"headerChanged_",null);_.H([_.VU("yt-show-subscribers-only-disclaimer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Yl.prototype,"showSubscribersOnlyDisclaimer_",null);_.H([_.k({is:"ytd-comments"})],Yl);var Ic=function(){return _.FA.apply(this,arguments)||this};
_.A(Ic,_.FA);_.J=Ic.prototype;_.J.bindIf=function(p,y,l){return p?y:l};
_.J.bindIfDefined=function(p,y){return p!==void 0?p:y};
_.J.booleanString=function(p){return(!!p).toString()};
_.J.equals=function(){for(var p=_.oX.apply(0,arguments),y=p[0],l=1;l<p.length;l++)if(y!=p[l])return!1;return!0};
_.J.isGreaterThan=function(p,y){return p>y};
_.J.isLessThan=function(p,y){return p<y};
_.J.logicalAND=function(){for(var p=_.oX.apply(0,arguments),y=!!p[0],l=1;l<p.length;l++)y=y&&!!p[l];return y};
_.J.logicalOR=function(){for(var p=_.oX.apply(0,arguments),y=!!p[0],l=1;l<p.length;l++)y=y||!!p[l];return y};
_.J.toBool=function(p){return!!p};
Ic.prototype.toBool=Ic.prototype.toBool;Ic.prototype.logicalOR=Ic.prototype.logicalOR;Ic.prototype.logicalAND=Ic.prototype.logicalAND;Ic.prototype.isLessThan=Ic.prototype.isLessThan;Ic.prototype.isGreaterThan=Ic.prototype.isGreaterThan;Ic.prototype.equals=Ic.prototype.equals;Ic.prototype.booleanString=Ic.prototype.booleanString;Ic.prototype.bindIfDefined=Ic.prototype.bindIfDefined;Ic.prototype.bindIf=Ic.prototype.bindIf;_.H([_.Lv()],Ic);_.asU=[Ic.prototype];var m1B;var U1O;var pk=function(){return _.w.apply(this,arguments)||this};
_.A(pk,_.w);pk.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
pk.prototype.onBackIconTap_=function(){window.history.back()};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],pk.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],pk.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],pk.prototype,"data",void 0);_.H([_.z9({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],pk);
_.D(pk,"yt-header-with-back-renderer",function(){if(U1O===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-header-with-back-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_header_with_back_renderer.yt.header.with.back.renderer.css.js--\x3e<div id="header-wrapper" class="style-scope yt-header-with-back-renderer">\n  <yt-icon-button id="back-button" label="Back" on-tap="onBackIconTap_" class="style-scope yt-header-with-back-renderer">\n    <yt-icon icon="yt-icons:arrow-back" class="style-scope yt-header-with-back-renderer"></yt-icon>\n  </yt-icon-button>\n  <div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-header-with-back-renderer"></div>\n  <div id="header-container" class="style-scope yt-header-with-back-renderer">\n    <yt-formatted-string id="header-title" text="[[data.title]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n    <yt-formatted-string id="header-subtitle" text="[[data.subtitle]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;m1B===void 0&&(m1B=document.createElement("template"));var q=m1B;l.call(y,q.content.cloneNode(!0),p.content.firstChild);U1O=p}p=U1O;return p},{mode:2});var $1v;var j6N;var y_=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.A(y_,_.w);_.J=y_.prototype;_.J.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.J.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&(this.isDarkTheme=p,this.setUrl())};
_.J.dataChanged=function(){var p=this;if(this.data){var y=this.setUrl();y&&_.aC({destination:window,iframe:this.iframe,origin:_.T6V(y.toString()),channelName:"yt-iframe",onMessage:function(l){(l=p.getCommunicationCommand(l.data))&&p.ytComponentBehavior.resolveCommand(l)},
onEstablished:function(){}})}};
_.J.setUrl=function(){if(this.data&&this.data.iframeUrl){var p=_.xQ(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(p)return _.l6(this.iframe,p),p}};
_.J.getCommunicationCommand=function(p){var y;if((y=this.data)!=null&&y.onCommunicationCommandsMap){y=this.data.onCommunicationCommandsMap.find(function(t){return t.key===p});
if(y==null?0:y.value)return y==null?void 0:y.value;try{var l=auB(_.hZ(p)),q=this.data.onCommunicationCommandsMap.find(function(t){return t.key===(l==null?void 0:l.getMethodName())});
if(q==null?0:q.value)return q==null?void 0:q.value}catch(t){}}};
y_.prototype.dataChanged=y_.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],y_.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],y_.prototype,"actionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],y_.prototype,"data",void 0);
_.H([_.Q({value:!1}),_.x("design:type",Boolean)],y_.prototype,"isDarkTheme",void 0);_.H([_.rd("#iframe"),_.x("design:type",HTMLIFrameElement)],y_.prototype,"iframe",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],y_.prototype,"dataChanged",null);_.H([_.z9({is:"yt-iframe-renderer",disableElementRegistration:!0})],y_);
_.D(y_,"yt-iframe-renderer",function(){if(j6N===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-iframe-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_iframe_renderer.yt.iframe.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-iframe-renderer"></iframe>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;$1v===void 0&&($1v=document.createElement("template"));var q=$1v;l.call(y,q.content.cloneNode(!0),p.content.firstChild);j6N=p}p=j6N;return p},{mode:2});_.lu=function(p){_.Sr.call(this);this.callback=p;this.bezier=new ilZ(0,0,.4,0,.2,1,1,1);this.delay=new _.hh(this.next,window,this);this.JSC$16753_animating=!1;_.P9(this,this.delay)};
_.A(_.lu,_.Sr);_.lu.prototype.isAnimating=function(){return this.JSC$16753_animating};
_.lu.prototype.start=function(p,y,l){this.config={from:p,to:y,duration:l,startTime:(0,_.uM)()};this.JSC$16753_animating=!0;this.next()};
_.lu.prototype.stop=function(){this.delay.stop();this.JSC$16753_animating=!1;this.config=void 0};
_.lu.prototype.next=function(){if(this.config){var p=this.config,y=p.from,l=p.to,q=p.duration;p=p.startTime;var t=(0,_.uM)()-p;p=this.bezier;q=SUv(p,t/q);if(q==0)p=p.y0;else if(q==1)p=p.y3;else{t=kC(p.y0,p.y1,q);var E=kC(p.y1,p.y2,q);p=kC(p.y2,p.y3,q);t=kC(t,E,q);E=kC(E,p,q);p=kC(t,E,q)}p=_.OP(p,0,1);this.callback(y+(l-y)*p);p<1?this.delay.start():this.JSC$16753_animating=!1}};_.qk=new _.WE("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var bR$={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},GWM=function(p,y,l,q){_.Sr.call(this);this.JSC$16764_miniAppId=p;this.localReleaseId=y;this.derivedDeviceInterface=l;this.isForeground=q;this.JSC$16764_playNonceResolver=new _.AB;this.playPingTimerId=NaN;this.playPingIntervalMs=_.UC("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.UC("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.n("enable_displaying_ppn");this.JSC$16764_miniAppClientDataProvider=_.WC().resolve(_.qk);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;nVr(this);var t=setTimeout(function(){_.vs(new _.SM("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16764_playNonceResolver.promise.then(function(){clearTimeout(t)})};
_.A(GWM,_.Sr);var AnQ=function(p,y){p.JSC$16764_playNonceResolver.resolve(y!=null?y:H2(8));p.enableDisplayingPpn&&P3V(p).then(function(l){p.JSC$16764_miniAppClientDataProvider.clientData.set("post_play_nonce",l)})},P3V=function(p){return _.h(function(y){return y.nextAddress==1?y.yield(p.JSC$16764_playNonceResolver.promise,2):y.return(y.yieldResult)})},nVr=function(p){var y,l;
_.h(function(q){if(q.nextAddress==1)return q.yield(p.JSC$16764_playNonceResolver.promise,2);y=q.yieldResult;l={miniAppInfo:{externalPostId:p.JSC$16764_miniAppId,localReleaseId:p.localReleaseId,postPlayNonce:y,derivedDeviceInterface:p.derivedDeviceInterface}};_.xw(l);_.rR(q)})},MbB=function(p){p.state!==0?_.vs(new _.SM("[MiniAppPlayLogger] recordPlayStart failed with state "+bR$[p.state])):(p.state=1,se(p,"ma_cl"),t5(p,"PLAY_EVENT_TYPE_PLAY_START"),ZRN(p))},Vbi=function(p){p.isForeground=!1;
t5(p,"PLAY_EVENT_TYPE_PLAY_PAUSE")},gVi=function(p){p.state!==1&&p.state!==2?_.vs(new _.SM("[MiniAppPlayLogger] recordPlayEnd failed with state "+bR$[p.state])):(p.state=3,window.clearInterval(p.playPingTimerId),p.playPingTimerId=NaN,vdl(),t5(p,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},Q6P=function(p,y){p.state===2&&p.gameReady&&(p.firstClickRecorded?Date.now()-p.clickRecordedMs<p.playClickIntervalMs||(p.clickRecordedMs=Date.now(),t5(p,"PLAY_EVENT_TYPE_PLAY_CLICK")):y&&(se(p,"ma_fua"),t5(p,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),p.firstClickRecorded=!0,p.clickRecordedMs=Date.now()))};
GWM.prototype.logError=function(p){var y=this,l;_.h(function(q){if(q.nextAddress==1)return p.metadata.externalPostId=y.JSC$16764_miniAppId,l=p.metadata,q.yield(Promise.race([y.JSC$16764_playNonceResolver.promise,new Promise(function(t){setTimeout(function(){t("")},3E4)})]),2);
l.postPlayNonce=q.yieldResult;p.metadata.localReleaseId=y.localReleaseId;p.loggingError.level="WARNING";_.Bs(p.loggingError,p.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:p.metadata});_.rR(q)})};
var KYN=function(p,y,l,q){var t,E,e,C,u,a;_.h(function(m){if(m.nextAddress==1)return m.yield(p.JSC$16764_playNonceResolver.promise,2);t=m.yieldResult;E={externalPostId:p.JSC$16764_miniAppId,localReleaseId:p.localReleaseId,postPlayNonce:t,sdkVersion:l,api:y};q!==void 0&&(E.networkRequestsMeasurement={networkRequests:_.W9(q,1),cachedRequests:_.W9(q,2),transferredBytes:_.W9(q,3)},(e=q)==null?0:_.rl(e,R5,6))&&(E.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((C=_.MF(q,
R5,6))==null?void 0:dl(C,1))||"0",cacheHits:((u=_.MF(q,R5,6))==null?void 0:dl(u,2))||"0",cachedBytes:((a=_.MF(q,R5,6))==null?void 0:dl(a,3))||"0"});_.TX("miniAppSdkUsage",E);_.rR(m)})},iRU=function(p,y,l){var q,t,E,e,C,u,a,m,U,b,P,Z,K,F,L,T;
_.h(function(O){if(O.nextAddress==1)return O.yield(p.JSC$16764_playNonceResolver.promise,2);q=O.yieldResult;t={externalPostId:p.JSC$16764_miniAppId,localReleaseId:p.localReleaseId,postPlayNonce:q,sdkVersion:l,measurementWindow:{startTimestampMs:String(xt(y,1)),endTimestampMs:String(xt(y,2))},frameRate:{averageFrameTimeDeltaMs:B0(y,3),averageFrameIdleTimeMs:B0(y,4)}};_.rl(y,WY,5)&&(t.networkRequests={networkRequests:(E=n5(y))==null?void 0:_.W9(E,1),cachedRequests:(e=n5(y))==null?void 0:_.W9(e,2),transferredBytes:(C=
n5(y))==null?void 0:_.W9(C,3),sameOriginStatusCodeToCounts:wix((u=n5(y))==null?void 0:mL6(u,4)),crossOriginStatusCodeToCounts:wix((a=n5(y))==null?void 0:mL6(a,5))},(m=n5(y))==null?0:_.rl(m,R5,6))&&(t.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((U=n5(y))==null?void 0:(b=_.MF(U,R5,6))==null?void 0:dl(b,1))||"0",cacheHits:((P=n5(y))==null?void 0:(Z=_.MF(P,R5,6))==null?void 0:dl(Z,2))||"0",cachedBytes:((K=n5(y))==null?void 0:(F=_.MF(K,R5,6))==null?void 0:dl(F,3))||"0"});_.rl(y,
dYr,7)&&(t.gameCapture={averageFrameTimeDeltaMs:(L=_.MF(y,dYr,7))==null?void 0:B0(L,1),averageFrameIdleTimeMs:(T=_.MF(y,dYr,7))==null?void 0:B0(T,2)});_.TX("miniAppPerformanceMetrics",t);_.rR(O)})},rn$=function(p,y){var l,q;
return _.h(function(t){if(t.nextAddress==1)return t.yield(p.JSC$16764_playNonceResolver.promise,2);l=t.yieldResult;q={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:p.JSC$16764_miniAppId,postPlayNonce:l,miniAppReleaseId:p.localReleaseId},derivedDeviceInterface:p.derivedDeviceInterface,adTriggerType:y,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.TX("miniAppAdEvent",q);_.rR(t)})};
GWM.prototype.disposeInternal=function(){_.Sr.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var t5=function(p,y,l,q){l=l===void 0?{}:l;q=q===void 0?!1:q;var t,E,e,C;_.h(function(u){if(u.nextAddress==1)return t=p.isForeground,E=p.beforeReady,u.yield(p.JSC$16764_playNonceResolver.promise,2);e=u.yieldResult;C={externalPostId:p.JSC$16764_miniAppId,localReleaseId:p.localReleaseId,derivedDeviceInterface:p.derivedDeviceInterface,postPlayNonce:e,type:y};l.sequenceGroup=e;C.playState=E?"PLAY_STATE_NOT_READY":t?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.TX("miniAppPlayEvent",C,
l);q&&_.xn();_.rR(u)})},se=function(p,y){var l;
_.h(function(q){if(q.nextAddress==1)return l=(0,_.uM)(),q.yield(p.JSC$16764_playNonceResolver.promise,2);_.fy(y,l);_.rR(q)})},ZRN=function(p){isNaN(p.playPingTimerId)&&(p.playPingTimerId=_.Go(function(){p.state!==1&&p.state!==2?_.vs(new _.SM("[MiniAppPlayLogger] reportPlayPing failed with state "+bR$[p.state])):t5(p,"PLAY_EVENT_TYPE_PLAY_PING")},p.playPingIntervalMs))},wix=function(p){return Array.from(p.entries()).map(function(y){var l=_.c(y);
y=l.next().value;l=l.next().value;return{key:y,value:l}})};var S2M=function(){},FYv=function(p,y){p.showMiniAppAdCommand=y.showMiniAppAdCommand;
p.isEmbeddedInWebview=y.isEmbeddedInWebview;p.playLogger=y.playLogger},kWV=function(p,y){var l;
return _.h(function(q){if(q.nextAddress==1){if(!p.showMiniAppAdCommand||!p.isEmbeddedInWebview)return q.return(LYx(p,y));p.adResolver=new _.AB;var t=new de;l=_.a7(t,3,y);YF(p.showMiniAppAdCommand,PKx(l));return q.yield(p.adResolver.promise,2)}return q.return(q.yieldResult)})};
S2M.prototype.onAdFinished=function(p){p=ZqP(p);var y;(y=this.adResolver)==null||y.resolve(p)};
var LYx=function(p,y){var l;return _.h(function(q){if(q.nextAddress==1)q=q.yield((l=p.playLogger)==null?void 0:rn$(l,Ifj(y)),2);else{var t=q.return;var E=new Ajr;E=_.a7(E,1,2);q=t.call(q,E)}return q})};var N9v=new _.WE("INNERTUBE_MANAGER_TOKEN");var D1U=function(){this.callbacks={}};
D1U.prototype.initialize=function(p){var y=this;this.callbacks=p;window.youtubewebview?window.youtubewebview.onmessage=function(l){HRr(y,l)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(l){HRr(y,l)})};
var HRr=function(p,y){if(y.data)try{var l=auB(y.data);if(_.r6(_.i8(l,1))!=null){var q=UyM(_.fq(l,2));switch(l.getMethodName()){case "yt-mini-app-load-audio-state":var t,E;(E=(t=p.callbacks).onAudioStateLoaded)==null||E.call(t,_.T6(q,Q6(q,vY,1)));break;case "yt-mute-mini-app":var e,C;(C=(e=p.callbacks).onMuteMiniApp)==null||C.call(e);break;case "yt-unmute-mini-app":var u,a;(a=(u=p.callbacks).onUnmuteMiniApp)==null||a.call(u);break;case "yt-playable-exit":var m,U;(U=(m=p.callbacks).onExit)==null||U.call(m);
break;case "yt-post-play-nonce":var b,P;(P=(b=p.callbacks).onPostPlayNonceReceived)==null||P.call(b,Oa(q,2,vY));break;case "yt-confirm-exit-mini-app":var Z,K;(K=(Z=p.callbacks).confirmExitMiniApp)==null||K.call(Z);break;case "yt-confirm-exit-mini-app-edu":var F,L;(L=(F=p.callbacks).confirmExitMiniAppEdu)==null||L.call(F);break;case "yt-benchmarking-response":var T,O;(O=(T=p.callbacks).onNativeBenchmarkingMessageReceived)==null||O.call(T,Oa(q,2,vY));break;case "yt-mini-app-load-3p-consent-state":var f,
v;(v=(f=p.callbacks).multiplayer3pAckStateLoaded)==null||v.call(f,_.T6(q,Q6(q,vY,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var z,sc;(sc=(z=p.callbacks).exitMiniAppSeenStateLoaded)==null||sc.call(z,_.T6(q,Q6(q,vY,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var hR,Wt;(Wt=(hR=p.callbacks).onNavigateToNewMiniApp)==null||Wt.call(hR);break;case "yt-game-data-available":var AR,Qu;(Qu=(AR=p.callbacks).onGameDataAvailable)==null||Qu.call(AR,Oa(q,2,vY));break;case "yt-pause-mini-app":var jj,
x6;(x6=(jj=p.callbacks).onPauseMiniApp)==null||x6.call(jj);break;case "yt-resume-mini-app":var L8,Y6;(Y6=(L8=p.callbacks).onResumeMiniApp)==null||Y6.call(L8);break;case "yt-playable-ad-finished":var AZ,cU;(cU=(AZ=p.callbacks).onAdFinished)==null||cU.call(AZ,Oa(q,2,vY))}}else _.vs(Error("Sh"))}catch(Xo){_.Bs(Error("Th"))}else _.vs(Error("Uh"))};var yD8=function(p){this.rpcErrorCode=p};var Ee=function(p,y,l){this.intervalMs=p;this.apiFunc=y;this.type=l;this.schedulerReady=!0};
Ee.prototype.call=function(p){var y=this,l;return _.h(function(q){if(q.nextAddress==1){if(y.type!==1&&p===y.cachedValue)return q.return();y.pendingApiRequestResolver||(y.pendingApiRequestResolver=new _.AB);l=y.pendingApiRequestResolver.promise;y.cachedValue=p;return q.yield(T9$(y),2)}return q.return(l)})};
Ee.prototype.flush=function(p){p=p===void 0?!1:p;var y=this;return _.h(function(l){return y.cachedValue===void 0?l.return():l.yield(y.apiFunc(y.cachedValue,p),0)})};
var T9$=function(p){var y,l,q;return _.h(function(t){switch(t.nextAddress){case 1:if(!p.schedulerReady||!p.pendingApiRequestResolver)return t.return();p.schedulerReady=!1;y=p.pendingApiRequestResolver;p.pendingApiRequestResolver=void 0;_.Ve(t,2);if(p.cachedValue===void 0){t.jumpTo(4);break}return t.yield(p.apiFunc(p.cachedValue),5);case 5:l=t.yieldResult,y.resolve(l);case 4:_.pK(t,3);break;case 2:q=_.i6(t),y.reject(q);case 3:setTimeout(function(){return _.h(function(E){p.schedulerReady=!0;return E.yield(T9$(p),
0)})},p.intervalMs),_.rR(t)}})};var sht=window.location.origin+"/miniapp_cloudsaves",lN_=[400,401],x1B=_.UC("cloud_save_game_data_rate_limit_ms",3E3),vVx=function(p){var y=this;this.JSC$16808_miniAppId=p;this.loadAttempts=0;this.cloudSaveIntervalMs=x1B;this.initialDownloadDataSucceeded=!1;this.JSC$16808_playNonceResolver=new _.AB;this.scottyUploadRateLimiter=new Ee(this.cloudSaveIntervalMs,function(l,q){return B9M(y,l,q)},2);
this.downloadDataPromise=fs$(this);this.downloadDataPromise.then(function(){y.initialDownloadDataSucceeded=!0}).catch(function(){})},XiZ=function(p,y){y.then(function(l){return p.JSC$16808_playNonceResolver.resolve(l)})},d1x=function(p){return _.h(function(y){return p.cachedData===void 0?y.return(p.downloadDataPromise):y.return(p.cachedData)})},ORB=function(p,y){return _.h(function(l){p.cachedData=y;
if(!p.initialDownloadDataSucceeded)throw Error("Vh");return l.yield(p.scottyUploadRateLimiter.call(y),0)})},oVx=function(){return new Promise(function(p){setTimeout(p,1E3,"")})},zGU=function(p,y){var l,q;
return _.h(function(t){if(t.nextAddress==1)return l=p.JSC$16808_miniAppId,t.yield(Promise.race([p.JSC$16808_playNonceResolver.promise,oVx()]),2);q={"X-YouTube-MiniAppId":l,"X-YouTube-PostPlayNonce":t.yieldResult};"DELEGATED_SESSION_ID"in _.XF&&AO5(y,q);return t.return(q)})},B9M=function(p,y,l){l=l===void 0?!1:l;
return _.h(function(q){return p1a()?_.n("enable_cloud_save_error_popup_after_retry")?q.return(new Promise(function(t,E){var e,C,u,a,m;return _.h(function(U){switch(U.nextAddress){case 1:e=0,C=!0,a=u=null;case 2:if(!(C&&e++<2)){U.jumpTo(4);break}_.Ve(U,5);return U.yield(Y2P(p,y,l),7);case 7:u=U.yieldResult;C=u.ok?!1:!lN_.includes(u.status);_.pK(U,2);break;case 5:a=m=_.i6(U);C=qDL(a);U.jumpTo(2);break;case 4:u?u.ok?(J5(p,x1B),t()):(J5(p,p.cloudSaveIntervalMs*2),E(Error("Wh`"+String(u.status),{cause:{rpcErrorCode:u.status}}))):
(J5(p,p.cloudSaveIntervalMs*2),E(a||Error("Xh"))),_.rR(U)}})})):q.return(new Promise(function(t,E){var e,C;
return _.h(function(u){if(u.nextAddress==1){if(p.JSC$16808_miniAppId==="")return E(Error("Yh")),u.return();_.Ve(u,2);return u.yield(Y2P(p,y,l),4)}if(u.nextAddress!=2)return e=u.yieldResult,e.ok?(J5(p,x1B),t()):(J5(p,p.cloudSaveIntervalMs*2),E(Error("Wh`"+String(e.status),{cause:{rpcErrorCode:e.status}}))),_.pK(u,0);C=_.i6(u);J5(p,p.cloudSaveIntervalMs*2);E(C);_.rR(u)})})):q.return()})},Y2P=function(p,y,l){l=l===void 0?!1:l;
var q,t,E;return _.h(function(e){if(e.nextAddress==1)return q=_.HR((new TextEncoder).encode(y)),t=tfa(),e.yield(zGU(p,t),2);E=e.yieldResult;return e.return(fetch(t,{method:"POST",body:new Blob([q]),headers:E,keepalive:l}))})},fs$=function(p){var y,l;
return _.h(function(q){if(q.nextAddress==1){if(!p1a())return q.return("");if(p.JSC$16808_miniAppId==="")throw Error("Yh");if(p.loadAttempts>2)return q.return(p.downloadDataPromise);_.Ve(q,2);return q.yield(Isr(p),4)}if(q.nextAddress!=2)return y=q.yieldResult,q.return(y);l=_.i6(q);if(qDL(l)&&++p.loadAttempts<2)return q.return(fs$(p));throw l;})},Isr=function(p){var y,l,q,t,E;
return _.h(function(e){switch(e.nextAddress){case 1:return _.Ve(e,2),y=tfa(),e.yield(zGU(p,y),4);case 4:return l=e.yieldResult,e.yield(fetch(y,{method:"GET",headers:l}),5);case 5:return q=e.yieldResult,q.ok?e.yield(q.text(),6):e.return(Promise.reject(Error("Zh`"+String(q.status),{cause:new yD8(q.status)})));case 6:return t=e.yieldResult,e.return((new TextDecoder).decode(_.hZ(t)));case 2:return E=_.i6(e),e.return(Promise.reject(E))}})},J5=function(p,y){p.cloudSaveIntervalMs=y;
p.scottyUploadRateLimiter.intervalMs=p.cloudSaveIntervalMs};
vVx.prototype.flush=function(){var p=this;return _.h(function(y){return p.initialDownloadDataSucceeded?y.yield(p.scottyUploadRateLimiter.flush(!0),0):y.return()})};var peB=jV($B(1),m1(1)),y0i=jV($B(1),m1(3)),cw=function(p){this.callbacks=p};
_.J=cw.prototype;_.J.onAudioToggled=function(p,y){(y===void 0||y)&&_.gB("yt-mini-app-is-audio-enabled",p,2592E3)};
_.J.onPause=function(){this.onAudioToggled(!1,!1)};
_.J.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.J.returnNativeBenchmarkingMessage=function(){};
_.J.sendGameData=function(){};
_.J.sendStartGameFrameCapture=function(){};
var EN_=function(p,y,l){this.callbacks=p;var q=this;this.sdkVersion=new _.AB;this.channel=new vUt(_.aC({destination:window,iframe:y,origin:(new URL(l.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var t=eg;var E=$B(5);var e=new Sar;e=_.z6(e,1,1E4);E=_.Qa(E,4,xYM,e);t(q,E);q.onAudioToggled(q.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){q.sdkVersion.resolve("")},1E4)};
_.A(EN_,cw);_.J=EN_.prototype;_.J.onAudioToggled=function(p,y){cw.prototype.onAudioToggled.call(this,p,y===void 0?!0:y);y=eg;var l=$B(2),q=new iqU;p=_.jr(q,1,p);p=_.Qa(l,3,xYM,p);y(this,p)};
_.J.onPause=function(){cw.prototype.onPause.call(this);eg(this,$B(3))};
_.J.onResume=function(){cw.prototype.onResume.call(this);eg(this,$B(4))};
_.J.returnNativeBenchmarkingMessage=function(p){var y=eg,l=$B(6);var q=m1(_.rl(p,J7,1)?1:2);p=_.rl(p,J7,1)?p:null;q=_.Qa(q,5,Ux,p);y(this,jV(l,q))};
_.J.sendGameData=function(p){var y=eg,l=$B(7);p=_.Qa(l,5,xYM,p);y(this,p)};
_.J.sendStartGameFrameCapture=function(){eg(this,$B(9))};
var h5=function(p,y,l){var q,t,E;return _.h(function(e){if(e.nextAddress==1)return q=p.callbacks,t=q.onSdkCalled,E=y,e.yield(p.sdkVersion.promise,2);t.call(q,E,e.yieldResult,l);_.rR(e)})};
EN_.prototype.onMessage=function(){var p=this;return Oi_(GA,function(y){var l,q,t,E,e,C,u,a,m,U,b,P,Z,K,F,L,T,O,f,v,z,sc,hR,Wt,AR,Qu,jj,x6,L8,Y6,AZ,cU,Xo,U$,WU,VQ,b9,kx,JR,s$,PU,Uu,jB,xx,qN,Iv;return _.h(function(CU){switch(CU.nextAddress){case 1:if(!YaB(y.data))return _.vs(Error("$h")),CU.return();l=_.v0(y.data,1);_.n("enable_iframe_message_get_type_via_fields")&&(q=y.data,l=t=_.v0(q,1));switch(l){case 8:if(y.data.hasMetadata()){var ov=p.sdkVersion,u9=ov.resolve;var ZV=y.data.getMetadata();ZV=_.fq(ZV,
1);u9.call(ov,ZV);clearTimeout(p.sdkVersionTimeoutId)}break;case 6:return CU.jumpTo(2);case 16:if(!_.S6(y.data,vtv,14,PY))return CU.return();E=_.oN(y.data,vtv,14,PY);(C=(e=p.callbacks).onGameFrameReceived)==null||C.call(e,E);return CU.return();case 17:if(!_.S6(y.data,fYi,15,PY))return CU.return();(a=(u=p.callbacks).onGameAudioReceived)==null||a.call(u,_.oN(y.data,fYi,15,PY));return CU.return();case 1:if(ov=_.oN(y.data,k6$,2,PY))switch(_.v0(ov,1)){case 1:p.callbacks.onFirstFrameReady();if(_.n("enable_network_request_logging_on_game_events")&&
_.rl(ov,WY,4)){h5(p,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.MF(ov,WY,4));break}h5(p,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(ZV=(u9=p.callbacks).onGameReady)==null||ZV.call(u9);if(_.n("enable_network_request_logging_on_game_events")&&_.rl(ov,WY,4)){h5(p,"MINI_APP_SDK_API_GAME_READY",_.MF(ov,WY,4));break}h5(p,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.S6(ov,a5,3,Nli))p.callbacks.onResourceLoaded(_.oN(ov,a5,3,Nli))}return CU.return();case 3:return CU.jumpTo(3);case 4:return CU.jumpTo(4);
case 2:return CU.jumpTo(5);case 9:return CU.jumpTo(6);case 10:return p.callbacks.onClick(),CU.return();case 5:return CU.jumpTo(7);case 11:if(!_.S6(y.data,C5,9,PY))return CU.return();m=_.oN(y.data,C5,9,PY);(b=(U=p.callbacks).onBenchmarkingMessageReceived)==null||b.call(U,m);ov=y.reply;u9=$B(1);ZV=m1(1);var QQ=new C5;var n7=new Uint8Array(mdc(m,Q6(m,V6r,6))|0);QQ=Ap(QQ,5,V6r,_.HU(n7,!1));ZV=_.Qa(ZV,5,Ux,QQ);ov.call(y,jV(u9,ZV));return CU.return();case 12:return CU.jumpTo(8);case 13:return CU.jumpTo(9);
case 15:if(!_.n("enable_open_yt_content"))return y.reply(y0i),CU.return();if(!_.S6(y.data,BlV,12,PY))return y.reply(jV($B(1),m1(2))),CU.return();ov=_.oN(y.data,BlV,12,PY);P=_.fq(ov,1);p.callbacks.onOpenYTContent(P);y.reply(peB);return CU.return();case 14:return CU.jumpTo(10);default:return CU.return()}CU.jumpTo(0);break;case 2:if(!_.S6(y.data,bc,5,PY))return CU.return();u9=y.data;ov=Q6(u9,PY,5);u9=u9.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(ov=n1t(u9,u9[_.gr]|0,bc,ov))||(ov=bc[AZt])||
(ov=new bc,iN(ov.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),ov=bc[AZt]=ov);Z=ov;ov=_.u4(Z,uc,1,_.RY());K=_.c(ov);F=K.next();case 12:if(F.done){CU.jumpTo(14);break}L=F.value;T=new _.SM;T.level=_.v0(L,2)===1?"WARNING":"ERROR";O=cDc(L.getSource());return CU.yield(p.sdkVersion.promise,15);case 15:f={source:O,sdkVersion:CU.yieldResult};_.C7(_.i8(L,6))!=null?(T.message=L.getMessage(),T.stack=_.fq(L,5),f.sdkErrorType=et6(_.v0(L,6)),_.C7(_.i8(L,7))!=null&&(f.sdkApi=htR(_.v0(L,7)))):T.stack=void 0;
z=v=void 0;(z=(v=p.callbacks).onError)==null||z.call(v,{loggingError:T,metadata:f});F=K.next();CU.jumpTo(12);break;case 14:return CU.return();case 3:return _.Ve(CU,16),ov=CU.yield,u9=p.callbacks,ZV=u9.onSave,QQ=_.oN(y.data,rjQ,4,PY),QQ=_.fq(QQ,1),ov.call(CU,ZV.call(u9,QQ),18);case 18:y.reply(peB);_.pK(CU,17);break;case 16:return sc=_.i6(CU),hR=Ik,Wt=sc,AR=p.callbacks,Qu="MINI_APP_SDK_API_SAVE_DATA",CU.yield(p.sdkVersion.promise,19);case 19:hR(Wt,AR,Qu,CU.yieldResult),y.reply(y0i);case 17:return CU.yield(h5(p,
"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return CU.return();case 4:return _.Ve(CU,21),CU.yield(p.callbacks.onLoad(),23);case 23:jj=CU.yieldResult;ov=y.reply;u9=$B(1);ZV=m1(1);QQ=new rjQ;QQ=_.Fq(QQ,1,jj);ZV=_.Qa(ZV,3,Ux,QQ);ov.call(y,jV(u9,ZV));_.pK(CU,22);break;case 21:return x6=_.i6(CU),L8=Ik,Y6=x6,AZ=p.callbacks,cU="MINI_APP_SDK_API_LOAD_DATA",CU.yield(p.sdkVersion.promise,24);case 24:L8(Y6,AZ,cU,CU.yieldResult),y.reply(y0i);case 22:return CU.yield(h5(p,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return CU.return();
case 5:_.Ve(CU,26);p.callbacks.onSendHighScore(B9(_.oN(y.data,otU,3,PY).getValue()));y.reply(jV($B(1),m1(1)));_.pK(CU,27);break;case 26:return Xo=_.i6(CU),U$=Ik,WU=Xo,VQ=p.callbacks,b9="MINI_APP_SDK_API_SEND_SCORE",CU.yield(p.sdkVersion.promise,28);case 28:U$(WU,VQ,b9,CU.yieldResult),y.reply(y0i);case 27:return CU.yield(h5(p,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return CU.return();case 6:if(!_.S6(y.data,z7B,8,PY)){CU.jumpTo(30);break}ov=CU.yield;u9=_.oN(y.data,z7B,8,PY);u9=_.v0(u9,1);return ov.call(CU,
h5(p,htR(u9)),30);case 30:return CU.return();case 7:return ov=y.reply,u9=$B(1),ZV=m1(1),QQ=p.callbacks.getLanguage(),ZV=Ap(ZV,4,Ux,i9(QQ)),ov.call(y,jV(u9,ZV)),CU.yield(h5(p,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return CU.return();case 8:if(!_.S6(y.data,OqN,10,PY))return CU.return();kx=_.oN(y.data,OqN,10,PY);JR=p.callbacks;s$=JR.onSdkPerformanceUpdate;return CU.yield(p.sdkVersion.promise,33);case 33:return s$.call(JR,kx,CU.yieldResult),CU.return();case 9:ov=y.data;u9=Q6(ov,PY,11);if(_.r6(_.i8(ov,
u9))==null)return y.reply(jV($B(1),m1(2))),CU.return();PU=Oa(y.data,11,PY);p.callbacks.onShareInviteCode(PU);y.reply(peB);return CU.yield(h5(p,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return CU.return();case 10:if(_.S6(y.data,w0M,13,PY)){CU.jumpTo(35);break}return CU.yield(p.callbacks.onShowMiniAppAd(2),36);case 36:return Uu=CU.yieldResult,y.reply(jV($B(1),Hqi(Uu))),CU.yield(h5(p,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return CU.return();case 35:ov=_.oN(y.data,w0M,13,PY);a:switch(_.v0(ov,
1)){case 1:ov={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:ov={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:ov={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}jB=ov;xx=jB.adType;qN=jB.sdkApi;ov=CU.yield;u9=p.callbacks;ZV=u9.onShowMiniAppAd;QQ=_.oN(y.data,w0M,13,PY);QQ=_.fq(QQ,2);return ov.call(CU,ZV.call(u9,xx,QQ||void 0),38);case 38:return Iv=CU.yieldResult,y.reply(jV($B(1),Hqi(Iv))),CU.yield(h5(p,qN),39);case 39:return CU.return()}})})};
var eg=function(p,y){_.h(function(l){p.channel.send(y);_.rR(l)})},pp=function(p,y,l){this.callbacks=p;
var q=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;p=w68(y,(new URL(l.toString())).origin);this.gameSnacks=new cRM(p);this.gameSnacks.page.onReady(function(){q.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){q.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var t,E;(E=(t=q.callbacks).onGameReady)==null||E.call(t)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(t,E){try{q.callbacks.onSendHighScore(E)}catch(e){Ik(e,q.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(t,E){var e;return _.h(function(C){if(C.nextAddress==1)return _.Ve(C,2),C.yield(q.callbacks.onSave(q.decoder.decode(E)),4);if(C.nextAddress!=2)return _.pK(C,0);e=_.i6(C);Ik(e,q.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return C.return()})});
this.gameSnacks.storage.onLoad(function(){var t,E;return _.h(function(e){if(e.nextAddress==1)return _.Ve(e,2),e.yield(q.callbacks.onLoad(),4);if(e.nextAddress!=2)return t=e.yieldResult,e.return(q.encoder.encode(t));E=_.i6(e);Ik(E,q.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return e.return(q.encoder.encode(""))})});
this.gameSnacks.init()};
_.A(pp,cw);pp.prototype.onAudioToggled=function(p,y){cw.prototype.onAudioToggled.call(this,p,y===void 0?!0:y);var l;(l=this.gameSnacks)==null||l.audio.update(p)};
pp.prototype.onPause=function(){cw.prototype.onPause.call(this);var p;(p=this.gameSnacks)==null||p.game.pause()};
pp.prototype.onResume=function(){cw.prototype.onResume.call(this);var p;(p=this.gameSnacks)==null||p.game.resume()};var lWU=CHo,qji=_.aF(function(p){var y=p.data;var l=p.loadingProgress;p=_.c(_.nr("",void 0,"LYYTdd"));var q=p.next().value,t=p.next().value;p=_.c(_.nr(!1,void 0,"K0waae"));var E=p.next().value,e=p.next().value,C=[],u=function(){return"transform: scaleX("+(_.BQ(l)||0)+")"},a=null,m=function(){return y()&&a!==null&&a!==void 0?a:a=y().showAnniversaryAnimation?6:lWU()};
_.NA(function(){var Z;if(y().timeOutMessages&&((Z=y().timeOutMessages)==null?0:Z.length)){a=null;Z=_.c(C);for(var K=Z.next();!K.done;K=Z.next())clearTimeout(K.value);C.length=0;uv5(y().timeOutMessages,C,t,e)}},"BNu9j");
var U=function(){return!!y().persistentErrorMessageTitle},b=function(){return l!==void 0},P=function(){return y().title};
return _.R("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.R("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.R("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.R("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var Z,K=(Z=y().backgroundImage)==null?void 0:Z.sources,F;return(K==null?0:K.length)?"background-image: url("+((F=K[0])==null?void 0:F.url)+")":
""}}),_.R("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.R(_.W,{cond:function(){return!U()},
then:function(){var Z={};return _.R("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.R("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.R(_.GS,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+m()},
data:function(){var K="loading_animation_"+m();return{animationConfig:{name:K,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+K+".json",loop:!0,autoplay:!0}}}})),_.R("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.R(_.W,{cond:P,
then:function(){return _.R("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},P)}}),_.R("p",{class:_.ip("mini-app-splash-screen-view-model-wiz__timeout-message",(Z["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return E()},Z)),
"aria-live":"polite"},q),_.R(_.W,{cond:b,then:function(){return _.R("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.R("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:u}))}})))}}),_.R(_.W,{cond:U,
then:function(){return _.R("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.R("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return y().persistentErrorMessageTitle}),_.R(_.W,{cond:function(){return!!y().persistentErrorMessageDescription},
then:function(){return _.R("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return y().persistentErrorMessageDescription})}}))}})))},"ee");var smN=new _.WE("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var t5O=JM;JM=function(p){function y(l){if(l){var q,t;(q=l.__spec)==null||(t=q.didUnmount)==null||t.call(q);for(q=0;q<l.childNodes.length;q++)y(l.childNodes[q])}}
t5O==null||t5O(p);XH(function(){for(var l=0;l<p.length;l++)y(p[l])})};var EjU=_.aF(function(p){var y=p.data;var l=p.score;var q=p.formattedScore;var t=p.onScoreChanged;var E=p.isEmbeddedInWebview;var e=_.tK("yt-mini-app-score-button-view-model"),C=function(){var P;return _.G(y==null?void 0:(P=y())==null?void 0:P.buttonViewModel,_.xo)},u=function(){var P;
return(l==null?void 0:l())||Number(y==null?void 0:(P=y())==null?void 0:P.lastScore)||0},a=function(){var P;
return(q==null?void 0:q())||((P=C())==null?void 0:P.title)||""},m,U=1;
if(p=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))p=Number(p),U=isNaN(p)?1:p/100;_.NA(function(){t==null||t(u());var P;var Z=_.yM((P=C())==null?void 0:P.onTap);if(Z){P=_.G(Z,wFU);var K,F,L;P=_.G(P==null?void 0:(K=P.panelLoadingStrategy)==null?void 0:(F=K.inlineContent)==null?void 0:(L=F.dialogViewModel)==null?void 0:L.customContent,A6Q)}else P=void 0;if(K=P)K.score=a()},"KZFi5e");
p=_.Ff(function(){var P,Z,K=y==null?void 0:(P=y())==null?void 0:(Z=P.loggingDirectives)==null?void 0:Z.trackingParams;K&&_.Kw(_.WC().resolve(_.B_),K);return!1});
_.xZ(function(){if(e.value){var P=e.value.querySelector("button"),Z=C();P&&Z&&Rto(P,Z);eW("yt-share-playable-with-high-score",function(){var K=u().toString(),F=y==null?void 0:y().onShareHighScoreCommand,L=y==null?void 0:y().highScoreShareClientParamIdentifier,T=E==null?void 0:E();F&&(T?(L=new aUr,K=_.Fq(L,2,K),YF(F,K.JSC$12254_serializeBinary())):L&&(_.WC().resolve(smN).clientParams.set(L,{miniAppClientParams:{highScore:K}}),O35(F,!1)))})}});
var b=function(){var P=C();P&&(l==null?0:l())&&P.accessibilityText&&(P.accessibilityText=P.accessibilityText.replace(m,a()));m=a();return{numberValue:u(),numberText:a(),heightPx:36,fontSizeMultiplier:U,shouldAnimate:!(l==null||!l())&&!0}};
return _.R("yt-mini-app-score-button-view-model",{class:function(){var P={};return _.rD("mini-app-score-button-view-model-wiz",(P["mini-app-score-button-view-model-wiz--is-visible"]=u()!==0,P))},
el:e,"on:click":p},tU(!1,function(){return _.R("span",{style:"display:none;"},u)}),_.R(_.di,{data:function(){var P;
return y==null?void 0:(P=y())==null?void 0:P.buttonViewModel}},{buttonViewModel:function(P){return _.R(_.wZ,{data:P.data,
animatedTextProps:b})}}))},"fe");var ChV=_.aF(function(p){var y,l=(y=_.Qh("yt-mini-app-is-theater-mode-enabled"))!=null?y:!1,q=_.n("enable_playable_container_save_button"),t=_.n("enable_play_next_destination_page_in_toolbar");y={};return _.R("ytm-mini-app-top-bar-view-model",null,_.R("div",{class:_.ip("yt-mini-app-top-bar-view-model",(y["yt-mini-app-top-bar-view-model--mobile"]=!1,y["yt-mini-app-top-bar-view-model--desktop"]=!0,y))},_.R("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.R(_.W,{cond:function(){var E;
return!!p.data().backButtonEdu&&!((E=p.isExitMiniAppSeen)==null?0:E.call(p))},
then:function(){return _.R(_.di,{data:function(){return p.data().backButtonEdu}},{buttonViewModel:_.wZ})},
else:function(){return _.R(_.di,{data:function(){return p.data().backButton}},{buttonViewModel:_.wZ})}}),_.R(_.W,{cond:function(){return p.data().viewAllButton&&!0},
then:function(){return _.R(_.di,{data:function(){return p.data().viewAllButton}},{buttonViewModel:_.wZ})}}),_.R(_.W,{cond:function(){return p.data().title&&!0},
then:function(){return _.R("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return p.data().title})}})),_.R("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.R(_.W,{cond:function(){var E;
return(E=p.isDesktopPlayPage)==null?void 0:E.call(p)},
then:function(){return _.R(_.a4,null,_.R(J0v,{highScoreButton:function(){return p.data().highScoreButton},
score:p.score,formattedScore:p.formattedScore,onScoreChanged:p.onScoreChanged,isEmbeddedInWebview:p.isEmbeddedInWebview}),_.R(c0M,{enableSaveButton:function(){return _.BQ(q)},
saveButton:function(){return p.data().saveButton},
isSaved:p.isSaved,onSaveToggled:function(){return p.onSaveToggled}}),_.R(eLi,{menuButton:function(){return p.data().menuButton}}))},
else:function(){return _.R(_.W,{cond:function(){return!1},
then:function(){return _.R(_.di,{data:function(){return p.data().playPageButton}},{buttonViewModel:function(E){return _.R(_.wZ,{data:E.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.R(J0v,{highScoreButton:function(){return p.data().highScoreButton},
score:p.score,formattedScore:p.formattedScore,onScoreChanged:p.onScoreChanged,isEmbeddedInWebview:p.isEmbeddedInWebview})}})}})),_.R("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.R(_.di,{data:function(){return p.data().muteButton}},{toggleButtonViewModel:function(E){var e=E.data;
return _.R(_.fo,{data:function(){var C,u;return Object.assign({},e(),{isToggled:(u=(C=p.isAudioEnabled)==null?void 0:C.call(p))!=null?u:!0})},
onToggle:p.onAudioToggled,useOutlinedIcon:!0})}}),_.R(_.di,{data:function(){return p.data().theatreModeButton}},{toggleButtonViewModel:function(E){var e=E.data;
return _.R("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.R(_.fo,{data:function(){return Object.assign({},e(),{isToggled:l})},
useOutlinedIcon:!0}))}}),_.R(hLU,{fullscreenButton:function(){return p.data().fullscreenButton}}),_.R(_.W,{cond:function(){return _.BQ(t)&&p.data().viewAllButton&&!1},
then:function(){return _.R(_.di,{data:function(){return p.data().viewAllButton}},{buttonViewModel:_.wZ})}}),_.R(_.W,{cond:function(){var E;
return!((E=p.isDesktopPlayPage)==null?0:E.call(p))},
then:function(){return _.R(_.a4,null,_.R(c0M,{enableSaveButton:function(){return _.BQ(q)},
saveButton:function(){return p.data().saveButton},
isSaved:p.isSaved,onSaveToggled:function(){return p.onSaveToggled}}),_.R(eLi,{menuButton:function(){return p.data().menuButton}}))}}))))},"ge");
ChV.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var eLi=_.aF(function(p){return _.R(_.di,{data:p.menuButton},{buttonViewModel:_.wZ})},"he"),c0M=_.aF(function(p){var y=p.enableSaveButton;
var l=p.saveButton;var q=p.isSaved;var t=p.onSaveToggled;return _.R(_.W,{cond:function(){return y()&&!(l==null||!l())},
then:function(){return _.R(_.di,{data:function(){var E=_.G(l==null?void 0:l(),_.BN),e;return{toggleButtonViewModel:Object.assign({},E,{isToggled:(e=q==null?void 0:q())!=null?e:!(E==null||!E.isToggled)})}}},{toggleButtonViewModel:function(E){return _.R(_.fo,{data:E.data,
onToggle:t})}})}})},"ie"),J0v=_.aF(function(p){var y=p.highScoreButton;
var l=p.score;var q=p.formattedScore;var t=p.onScoreChanged;var E=p.isEmbeddedInWebview;return _.R(_.di,{data:y},{miniAppScoreButtonViewModel:function(e){return _.R(EjU,{data:e.data,score:l,formattedScore:q,onScoreChanged:t,isEmbeddedInWebview:E})}})},"je"),hLU=_.aF(function(p){p=p.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.R(_.a4,null):_.R(_.di,{data:p},{buttonViewModel:_.wZ})},"ke");_.umU=new _.WE("DESKTOP_CURRENT_PAGE");var $dx=_.aF(function(p){var y=p.data;var l=_.n("force_active_time_logging_webview"),q=!1,t=new D1U,E=void 0,e=void 0,C=_.WC().resolve(N9v),u=new S2M,a=void 0,m=void 0,U=[],b=void 0,P=void 0,Z=!1,K=!1,F=!1,L=!1,T=new _.AB,O=_.WC().resolve(smN),f=_.WC().resolve(_.qk),v=_.WC().resolve(_.RK(i1)),z,sc=(z=_.WC().resolve(_.RK(_.umU)))==null?void 0:z.getCurrentPage(),hR=!1,Wt=0,AR=function(vt){vt.preventDefault();return vt.returnValue=""},Qu;
p=_.c(_.nr(!((Qu=_.Qh("yt-mini-app-is-audio-enabled"))!=null&&!Qu),void 0,"cGaEvf"));var jj=p.next().value,x6=p.next().value,L8;Qu=_.c(_.nr(!((L8=_.Qh("exit-mini-app-seen-state"))==null||!L8),void 0,"DctXGe"));var Y6=Qu.next().value,AZ=Qu.next().value;L8=_.c(_.nr(!1,void 0,"pU1jdd"));var cU=L8.next().value,Xo=L8.next().value;L8=_.c(_.nr(void 0,void 0,"ldLqDf"));var U$=L8.next().value,WU=L8.next().value;L8=_.c(_.nr(void 0,void 0,"mdofE"));var VQ=L8.next().value,b9=L8.next().value;L8=_.c(_.nr(!0,void 0,
"T1gxCf"));var kx=L8.next().value,JR=L8.next().value;L8=_.c(_.nr(!1,void 0,"gxt7wf"));var s$=L8.next().value,PU=L8.next().value;L8=_.c(_.nr(void 0,void 0,"yqLV6d"));var Uu=L8.next().value,jB=L8.next().value;L8=_.c(_.nr(0,void 0,"l6CrGf"));var xx=L8.next().value,qN=L8.next().value,Iv=_.sM("mini-app-container-view-model"),CU=function(){return y().isEmbeddedInWebview},ov=function(){return y().hasPlayNextShelf};
eW("yt-page-type-changed",function(vt){if(_.n("enable_is_mini_app_page_active_bugfix"))vt.detail.newPageSubtype==="mini_app"&&vt.detail.newPageType==="ytd-browse"||!kx()||QQ();else if(vt=_.TOc()==="mini_app",vt!==kx())if(JR(vt),vt){var RT;vt=(RT=y().playableId)==null?void 0:RT.toString();vt!==void 0&&window.location.href.includes(vt)&&!K&&(L=!0,u9(),$x.value&&$X($x.value))}else vt||QQ()});
eW("yt-action",function(vt){vt.detail.actionName==="yt-engagement-panel-visible-changed"&&vt.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&vt.detail.args[2]==="PAmini_app_panel"&&QQ();_.n("enable_is_mini_app_page_active_bugfix")?vt.detail.actionName==="yt-history-load"&&!kx()&&(sc==null?0:sc.active)?(JR(!0),u9(),$x.value&&$X($x.value)):vt.detail.actionName==="yt-history-load"&&kx()&&!y().isEmbeddedInWebview&&MQ():kx()&&vt.detail.actionName==="yt-history-load"&&(L?L=!1:y().isEmbeddedInWebview||
MQ())});
_.TP(function(){ZV()});
_.NA(function(){u9()},"PiwKsd");
var u9=function(){var vt=y().playableId,RT=y().localReleaseId,x1=y().derivedDeviceInterface;if(K)_.vs(new _.SM("[MiniAppContainerViewModel] onEnter was called more than once"));else{K=!0;E=new GWM(vt,RT,x1,document.visibilityState==="visible");MbB(E);e=new vVx(vt);RLU(C,vt);FYv(u,{showMiniAppAdCommand:y().showMiniAppAdCommand,isEmbeddedInWebview:y().isEmbeddedInWebview,playLogger:E});h3u()&&(P=document.body.style.backgroundColor,_.zk(document.body,"background-color","black"));eh();nU();T=new _.AB;
if(y().isEmbeddedInWebview){if(vt=(new URLSearchParams(window.location.search)).get("postPlayNonce"))AnQ(E,vt),hR=!0;t.initialize({onAudioStateLoaded:function(f7){ed(f7)},
onMuteMiniApp:function(){ed(!1)},
onUnmuteMiniApp:function(){ed(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(f7){hR||(AnQ(E,f7),hR=!0)},
confirmExitMiniApp:function(){var f7,Rl,s6;return _.h(function(jZ){if(jZ.nextAddress==1)return y().confirmExitMiniAppCommand?jZ.yield(Promise.race([T.promise,Promise.resolve(!1)]),2):jZ.return();(f7=jZ.yieldResult)?!y().confirmExitMiniAppCommandEdu||(s6=(Rl=Y6)==null?void 0:Rl())!=null&&s6?VE(y().confirmExitMiniAppCommand):(VE(y().confirmExitMiniAppCommandEdu),_.gB("exit-mini-app-seen-state","true",2592E6)):VE(y().closeMiniAppCommand);_.rR(jZ)})},
onNativeBenchmarkingMessageReceived:function(f7){f7=QNv(_.oNa(f7));if(_.S6(f7,_.ok,3,M6B)){var Rl=_.oN(f7,_.ok,3,M6B),s6=oA8();var jZ=B9(s6.getSeconds())-B9(Rl.getSeconds());Rl=_.W9(s6,2)-_.W9(Rl,2);jZ<0&&Rl>0?(jZ+=1,Rl-=1E9):jZ>0&&Rl<0&&(--jZ,Rl+=1E9);jZ=(new J7).setSeconds(jZ);jZ=_.E3(jZ,2,_.WR(Rl),0);_.gu(f7,1,jZ)}var Wm;(Wm=m)==null||Wm.returnNativeBenchmarkingMessage(f7)},
multiplayer3pAckStateLoaded:function(f7){MQ(f7)},
exitMiniAppSeenStateLoaded:function(f7){y().confirmExitMiniAppCommandEdu&&AZ(f7)},
onNavigateToNewMiniApp:function(){VE(y().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(f7){f7=new URLSearchParams(f7);var Rl=void 0;f7.has("invite_code")&&(Rl=new LnO,f7=f7.get("invite_code"),Rl=_.Fq(Rl,1,f7));if(f7=Rl){var s6;(s6=m)==null||s6.sendGameData(f7)}},
onPauseMiniApp:function(){q=!0;n7()},
onResumeMiniApp:function(){q=!0;u6()},
onAdFinished:function(f7){u.onAdFinished(f7)}});
y().showMultiplayer3pConsentDialogCommand||T.resolve(!0);VE(y().onContainerReadyCommand)}else AnQ(E),T.resolve(!0);XiZ(e,P3V(E));P3V(E).then(function(f7){f7={miniAppPlayData:{postPlayNonce:f7}};var Rl,s6=(Rl=y().loggingDirectives)==null?void 0:Rl.trackingParams;s6&&_.Ll().stateChanged(s6,f7)});
vt=y().showSignInDialogCommand;!p1a()&&vt&&(_.gB("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),VE(vt));y().confirmExitMiniAppCommand&&v&&(vt=XaL(y().confirmExitMiniAppCommand))&&(v.customConfirmationCommand=vt)}},ZV=function(){P&&_.zk(document.body,"background-color",P);
Z=!1;b&&b.release();e.flush().catch(function(vt){_.vs(vt)});
C.flush().catch(function(vt){_.vs(vt)});
gVi(E);kX();m=void 0;WyQ(O)},QQ=function(){JR(!1);
ZV();Xo(!1);jB(void 0);WU(void 0);b9(void 0);Wt=0;qN(0);K=!1},n7=function(){var vt;
(vt=m)==null||vt.onPause();b&&b.release();e.flush().catch(function(RT){_.vs(RT)});
C.flush().catch(function(RT){_.vs(RT)});
Vbi(E)},u6=function(){var vt;
(vt=m)==null||vt.onResume();nU();vt=E;vt.isForeground=!0;t5(vt,"PLAY_EVENT_TYPE_PLAY_RESUME")},ed=function(vt){var RT;
(RT=m)==null||RT.onAudioToggled(vt);x6(vt)},MQ=function(vt){y().showMultiplayer3pConsentDialogCommand&&(y().isEmbeddedInWebview&&vt!==void 0&&T.resolve(vt),!vt&&_.TOc()==="mini_app"&&VE(y().showMultiplayer3pConsentDialogCommand))},Ob=function(){var vt,RT,x1,f7;
return _.h(function(Rl){if(Rl.nextAddress==1){!y().isLivestream||y().disableVideoCapture||(vt=m)!=null&&vt.sendStartGameFrameCapture();RT=(new URL(window.location.href)).searchParams;if(RT.has("invite_code")){var s6=new LnO,jZ=RT.get("invite_code");x1=_.Fq(s6,1,jZ);(f7=m)==null||f7.sendGameData(x1)}cU()||(Xo(!0),s6=E,s6.state!==1?_.vs(new _.SM("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+bR$[s6.state])):(_.jM("mini_app_ids_without_game_ready").includes(s6.JSC$16764_miniAppId)&&(s6.gameReady=
!0),s6.state=2,s6.beforeReady=!1,se(s6,"ma_ffr"),t5(s6,"PLAY_EVENT_TYPE_PLAY_READY")));return Rl.yield(T.promise,2)}VE(y().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();y().isEmbeddedInWebview||MQ();_.rR(Rl)})},dr=function(){var vt=E;
vt.gameReady=!0;se(vt,"ma_gr")},Am=function(vt){var RT;
return _.h(function(x1){if(x1.nextAddress==1)return _.Ve(x1,2),x1.yield(ORB(e,vt),4);if(x1.nextAddress!=2)return _.pK(x1,0);RT=_.i6(x1);VE(y().showSavingErrorPopupCommand);throw RT;})},lf=function(){var vt,RT;
return _.h(function(x1){if(x1.nextAddress==1)return _.Ve(x1,2),x1.yield(d1x(e),4);if(x1.nextAddress!=2)return vt=x1.yieldResult,x1.return(vt);RT=_.i6(x1);VE(y().showLoadingErrorDialogCommand);throw RT;})},qm=function(vt){E.logError(vt)},Sh=function(vt,RT,x1){KYN(E,vt,RT,x1)},yy=function(vt,RT){iRU(E,vt,RT)},P7=function(){!l&&y().isEmbeddedInWebview||_.uG();
Q6P(E,!0);Z||(window.addEventListener("beforeunload",AR,{capture:!0}),Z=!0)},qU=function(vt){var RT,x1,f7,Rl,s6,jZ,Wm;
return _.h(function(Xc){if(Xc.nextAddress==1)return C&&(!a||a<vt)&&vt>0?Xc.yield(aWr(C,vt),3):Xc.jumpTo(0);RT=Xc.yieldResult;x1=_.c(RT);f7=x1.next().value;Rl=x1.next().value;s6=f7;jZ=Rl;((Wm=s6)==null?0:Wm.displayString)&&jZ&&(WU(jZ),b9(s6.displayString));_.rR(Xc)})},o9=function(vt){var RT=y().onBenchmarkingMessageReceivedCommand;
if(RT){var x1=oA8();_.Qa(vt,3,M6B,x1);YF(RT,KnU(vt))}},RM=function(vt){var RT=y().onGameFrameReceivedCommand;
if(RT){var x1=new de;var f7=new jLQ;var Rl=xt(vt,1);f7=_.wJ(f7,1,Rl);vt=_.fq(vt,2);vt=_.Fq(f7,2,vt);x1=_.gu(x1,2,vt);YF(RT,PKx(x1))}},Ma=function(vt){var RT=y().onGameAudioDataReceivedCommand;
if(RT){var x1=new de;var f7=new nfN;vt=_.fq(vt,1);f7=_.Fq(f7,1,vt);x1=_.gu(x1,4,f7);YF(RT,PKx(x1))}},k6=function(){var vt=new URLSearchParams(window.location.search);
if(y().isEmbeddedInWebview&&vt&&vt.get("override_hl")==="true"&&vt.get("hl"))return vt.get("hl");vt=document.documentElement.lang;return vt!==""?vt:_.Ir},Bt=function(vt){var RT=y().onShareInviteCodeCommand;
if(RT)if(y().isEmbeddedInWebview){var x1=new aUr;vt=_.Fq(x1,1,vt);YF(RT,UbP(vt))}else x1=y().inviteCodeShareClientParamIdentifier,O.clientParams.set(x1,{miniAppClientParams:{inviteCode:vt}}),VE(RT)},bN=function(vt){var RT,x1,f7;
return _.h(function(Rl){if(Rl.nextAddress==1)return RT=y().onMiniAppOpenYtContentRequested,C&&_.n("enable_open_yt_content")&&RT?Rl.yield(md$(C,vt),3):Rl.jumpTo(0);x1=Rl.yieldResult;if(x1==="OK")if(y().isEmbeddedInWebview){var s6=new amr;f7=Ap(s6,2,vY,i9(vt));YF(RT,$yP(f7))}else f.clientData.set("video_id",vt),VE(RT);_.rR(Rl)})},cR=function(vt){Wt+=_.W9(vt,3);
vt=Math.min(Math.log(1+Wt/15E6*9)/Math.log(10),.99);qN(vt);wu(vt)},wu=_.Fd(function(vt){var RT=y().updateLoadingProgressCommand;
if(RT){var x1=new amr;vt=Ap(x1,3,vY,_.su(vt));YF(RT,$yP(vt))}},100),Gd=function(vt){return kWV(u,vt)},nU=function(){var vt,RT;
((vt=_.VD5())==null?void 0:(RT=vt.wakeLock)==null?void 0:RT.request)!=null&&_.VD5().wakeLock.request("screen").then(function(x1){b=x1}).catch(function(){})},$x=_.tK("iframe");
_.NA(function(){y().isSupportedCountry&&(p1a()||_.n("enable_sign_in_promo")||!y().showSignInDialogCommand?$x.value&&$X($x.value):VE(y().onMiniAppReadyCommand))},"XK60ib");
var K7=function(){return _.R("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return cU()?0:-1},
el:$x})},$X=function(vt,RT){RT=RT===void 0?!1:RT;
var x1=uN();x1&&(RT||x1.toString()!==vt.getAttribute("src"))&&(m=JDj(y().source,{isAudioEnabled:jj,onFirstFrameReady:Ob,onGameReady:dr,onSave:Am,onLoad:lf,onError:qm,onSdkCalled:Sh,onSdkPerformanceUpdate:yy,onClick:P7,onSendHighScore:qU,onBenchmarkingMessageReceived:o9,getLanguage:k6,onShareInviteCode:Bt,onResourceLoaded:cR,onOpenYTContent:bN,onShowMiniAppAd:Gd,onGameFrameReceived:RM,onGameAudioReceived:Ma},vt,x1),DS(vt,"load",function(){se(E,"ma_il");DS(vt,"load",function(){$X(vt,!0)})}),_.l6(vt,
x1))},uN=function(){var vt=y().url;
if(vt&&(vt=_.xQ(vt),vt!==null)){if(y().source&&y().source==="MINI_APP_SOURCE_GAMESNACKS")vt=_.n0(vt,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.n("enable_origin_query_parameter_bugfix")){var RT=_.xz(_.hpL(vt.toString()));RT=new URLSearchParams(RT||"");RT.set("origin",window.location.origin);RT=RT.toString();vt=_.LO(vt).toString();vt=_.FX(kMr.exec(vt)[0]+(RT.trim()?"#"+RT:""))}return vt}},PH=function(){var vt={};
vt=_.ip("yt-mini-app-container-view-model__loading-screen",(vt["yt-mini-app-container-view-model__loading-screen--fade-out"]=cU,vt));var RT=function(){return cU()?1:xx()};
return _.R("div",{class:vt},_.R(_.di,{data:function(){return y().splashScreen}},{miniAppSplashScreenViewModel:function(x1){return _.R(qji,{data:x1.data,
loadingProgress:RT})}}))},eh=function(){U=[];
U.push(_.BL(window,"visibilitychange",function(){F||q&&CU()||(document.visibilityState==="visible"?u6():n7())}));
U.push(_.BL(window,"pagehide",function(){ZV()}));
U.push(_.BL(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Iv.value.dispatchEvent(new Event("tap"))},0)}));
U.push(_.BL(Iv.value,"pointerdown",function(){Q6P(E,!1)},!0));
U.push(_.BL(Iv.value,"pause",function(){F=!0;n7()}));
U.push(_.BL(Iv.value,"play",function(){F=!1;u6()}));
U.push(_.BL(Iv.value,"exit",function(){ZV()}));
var vt=navigator.keyboard,RT=vt&&vt.lock;U.push(_.BL(window,zAx,function(){PU(Iax());Iax()?(y().hasPlayNextShelf&&h2("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),zR("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),RT&&vt.lock(["Escape"])):(y().hasPlayNextShelf&&zR("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),h2("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),RT&&vt.unlock())}));
y().showMultiplayer3pConsentDialogCommand&&U.push(_.BL(window,"yt-playables-ack-3p-data-usage",function(){Udv(C)}));
y().confirmExitMiniAppCommandEdu&&U.push(_.BL(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.gB("exit-mini-app-seen-state","true",2592E6)}));
y().onGameAudioDataReceivedCommand&&U.push(_.BL(window,"message",function(x1){x1=x1.event_;var f7,Rl=(f7=$x.value)==null?void 0:f7.src;if(Rl&&x1.origin===(new URL(Rl)).origin&&x1.data&&x1.data.type==="GAME_AUDIO"&&x1.data.audio&&x1.data.audio.length>0)if(_.n("enable_sending_unwrapped_game_audio_as_serialized_metadata"))Yza(y().onGameAudioDataReceivedCommand,x1.data.audio);else{var s6=new FileReader;s6.onload=function(){var jZ=new de;var Wm=new nfN;Wm=_.Fq(Wm,1,s6.result);jZ=_.gu(jZ,4,Wm);YF(y().onGameAudioDataReceivedCommand,
PKx(jZ))};
s6.readAsDataURL(new Blob([x1.data.audio]))}}))},kX=function(){U.forEach(function(vt){HL(vt)});
window.removeEventListener("beforeunload",AR,{capture:!0})},VE=function(vt){vt&&O35(vt,y().isEmbeddedInWebview||!1)},zR=function(vt,RT){vt=_.c(Iv.value.getElementsByClassName(vt));
for(var x1=vt.next();!x1.done;x1=vt.next())x1.value.classList.add(RT)},h2=function(vt,RT){vt=_.c(Iv.value.getElementsByClassName(vt));
for(var x1=vt.next();!x1.done;x1=vt.next())x1.value.classList.remove(RT)};
return function(){var vt={};vt=_.ip("yt-mini-app-container-view-model",(vt["yt-mini-app-container-view-model--desktop"]=!0,vt["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return y().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},vt["yt-mini-app-container-view-model--ios-web-view"]=h3u(),vt["yt-mini-app-container-view-model--no-top-bar"]=function(){return!y().topBar},vt["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return y().hasPlayNextShelf},vt["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return y().hasPlayNextShelf},vt["yt-mini-app-container-view-model--show-peek-below"]=function(){return!s$()&&y().hasPlayNextShelf},vt));
var RT={};RT=_.ip("yt-mini-app-container-view-model__content",(RT["yt-mini-app-container-view-model__content--desktop-content"]=!0,RT["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return y().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},RT["yt-mini-app-container-view-model--desktop-play-page"]=function(){return y().hasPlayNextShelf},RT));
return _.R("mini-app-container-view-model",{el:Iv},_.R("div",{class:vt},_.R(_.W,{cond:function(){return y().topBar&&!s$()},
then:function(){return _.R(_.di,{data:function(){return y().topBar}},{miniAppTopBarViewModel:function(x1){return _.R(ChV,{data:x1.data,
isAudioEnabled:jj,onAudioToggled:function(f7){ed(f7)},
score:U$,formattedScore:VQ,onScoreChanged:function(f7){a=f7},
isEmbeddedInWebview:CU,isSaved:Uu,onSaveToggled:function(f7){jB(f7)},
isExitMiniAppSeen:Y6,isDesktopPlayPage:ov})}})}}),_.R("div",{class:RT},_.R(_.W,{cond:kx,
then:function(){return K7()}}),_.R(_.W,{cond:function(){return!y().isEmbeddedInWebview},
then:function(){return PH()}}))))}()},"le");
$dx.idomCompat=!0;_.bp($dx,"mini-app-container-view-model",{props:{data:_.Co}});var jmi=_.aF(function(p){var y=p.data;return _.R("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.R("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Ff(function(){var l=y().onTap;l&&_.tb(l)})},_.R(_.W,{cond:function(){return y().icon},
then:function(l){return _.R(_.DR,{icon:function(){return l().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.R("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return y().title})))},"me");
jmi.idomCompat=!0;var bJQ=_.aF(function(p){var y=_.sM("div"),l=_.c(_.nr(void 0,void 0,"kFCJ0c")),q=l.next().value,t=l.next().value;l=_.c(_.nr(void 0,void 0,"PIPgWd"));var E=l.next().value,e=l.next().value;l=_.c(_.nr(void 0,void 0,"rV66ob"));var C=l.next().value,u=l.next().value,a=function(){var L=q();return L!==void 0?Math.abs(L):void 0},m=function(){var L=a();
return L===void 0||L<=3},U=function(){var L=a();
var T=E(),O=C();L=L!==void 0&&T!==void 0&&O!==void 0?T-O-L:void 0;return L===void 0||L<=3},b=function(L){y.value&&y.value.scrollBy({top:0,
left:(_.OY("HTML_DIR")==="rtl"?-1:1)*L*y.value.clientWidth,behavior:"smooth"})},P=function(){var L;
t((L=y.value)==null?void 0:L.scrollLeft);var T;e((T=y.value)==null?void 0:T.scrollWidth);var O;u((O=y.value)==null?void 0:O.clientWidth)},Z=function(){b(-.5)},K=function(){b(.5)};
l=_.Ff(function(){P()});
_.Hu(function(){P();if(y.value){var L=new ResizeObserver(P);L.observe(y.value);_.TP(function(){L.disconnect()})}});
var F={};return _.R("yt-sponsorships-scrollable-shelf",{class:_.ip("ytdSponsorshipsScrollableShelfHost",p.className)},_.R("div",{class:_.ip("ytdSponsorshipsScrollableShelfContent",(F.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return p.data().previousButton&&p.data().nextButton&&!m()&&!U()},F.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return p.data().previousButton&&!m()&&U()},F.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return p.data().nextButton&&
m()&&!U()},F)),
el:y,"on:scroll":l},p.children),_.R(_.W,{cond:function(){return!m()},
then:function(){return _.R(_.di,{data:function(){return p.data().previousButton}},{buttonViewModel:function(L){return _.R(_.wZ,{data:L.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:Z})}})}}),_.R(_.W,{cond:function(){return!U()},
then:function(){return _.R(_.di,{data:function(){return p.data().nextButton}},{buttonViewModel:function(L){return _.R(_.wZ,{data:L.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:K})}})}}))},"ne");
bJQ.idomCompat=!0;var Gzi=_.aF(function(p){var y=p.data;p={};return _.R("yt-sponsorships-hub",{class:_.ip("ytdSponsorshipsHubHost",(p.ytdSponsorshipsHubHostIndented=function(){return y().indented},p))},_.R("div",{class:"ytdSponsorshipsHubHeader"},_.R("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.R("div",{class:"ytdSponsorshipsHubAvatar"},_.R(_.di,{data:function(){return y().avatar}},{avatarViewModel:_.v5})),_.R(_.W,{cond:function(){return y().badgeImage},
then:function(l){return _.R("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.R("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.R("div",{class:"ytdSponsorshipsHubBadge"},_.R(_.W$,{data:l,targetWidth:24,targetHeight:24,alt:""}))))}})),_.R("div",{class:"ytdSponsorshipsHubDetails"},_.R("div",{class:"ytdSponsorshipsHubTierName"},function(){return y().tierName}),_.R("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return y().membershipType}),_.R("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return y().membershipDurationOrExpiry})),_.R("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.R(_.di,{data:function(){return y().manageButton}},{buttonViewModel:function(l){return _.R(_.wZ,{data:l.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.R(_.di,{data:function(){return y().actionMenuButton}},{buttonViewModel:function(l){return _.R(_.wZ,{data:l.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.R("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return y().perksTitle}),_.R(bJQ,{data:function(){return{previousButton:y().previousPerkButton,
nextButton:y().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.R("div",{class:"ytdSponsorshipsHubPerkCards"},_.R(_.di,{data:function(){return y().perkCards}},{sponsorshipsHubPerkCardViewModel:jmi}),_.R(_.W,{cond:function(){return y().viewAllPerksButton},
then:function(l){return _.R(njV,{data:l})}}))))},"oe");
Gzi.idomCompat=!0;var njV=_.aF(function(p){var y=p.data;return _.R("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.R(_.di,{data:function(){return y().button}},{buttonViewModel:_.wZ}),_.R("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.R("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return y().title}),_.R("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return y().subtitle})))},"pe");
njV.idomCompat=!0;_.bp(Gzi,"yt-sponsorships-hub",{props:{data:_.Co}});_.PhQ=_.aF(function(p){var y=p.data;return _.R("yt-dual-avatar-view-model",{class:_.ip("ytDualAvatarViewModelHost",p.className),style:_.NW({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var l;return((l=y().badgeCutoutRadius)!=null?l:14)+"px"}})},_.R("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.R(_.di,{data:function(){return y().startAvatar}},{avatarViewModel:_.v5}),_.R(_.di,{data:function(){return y().endAvatar}},{avatarViewModel:_.v5})),_.R(_.di,{data:function(){return y().badge}},
{contentPreviewImageViewModel:function(l){return _.R("div",{class:"ytDualAvatarViewModelBadge"},_.R(_.bY,{data:l.data}))}}))},"qe");
_.PhQ.idomCompat=!0;var ZJO=_.aF(function(p){var y=p.data;var l,q=!((l=_.WC().resolve(_.RK(_.hb)))==null||!l());p=_.MA(function(){var m,U,b=q?(m=y().header)==null?void 0:m.backgroundColorDarkMode:(U=y().header)==null?void 0:U.backgroundColorLightMode;if(b!==void 0)return _.Y9(b)},void 0,"UX2G6c");
l=_.MA(function(){var m,U;return q?(m=y().header)==null?void 0:m.backgroundImagePart1Dark:(U=y().header)==null?void 0:U.backgroundImagePart1Light},void 0,"GPAi1d");
var t=_.MA(function(){var m,U;return q?(m=y().header)==null?void 0:m.backgroundImagePart2Dark:(U=y().header)==null?void 0:U.backgroundImagePart2Light},void 0,"nboJld"),E=_.MA(function(){return _.OY("HTML_DIR")==="rtl"},void 0,"LGJceb"),e=_.sM("yt-sponsorships-perks-list"),C=!1,u=function(){var m=e.value;
if(m&&!C){var U,b=(U=m.parentElement)==null?void 0:U.parentElement;if(b)for(m=m.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),U=0;U<m.length;++U){var P=m[U];if(P instanceof HTMLElement){b.scrollTo({top:P.offsetTop+P.clientHeight/2-b.clientHeight/2,behavior:"smooth"});C=!0;break}}}};
_.xZ(function(){var m=e.value;if(m){var U=new ResizeObserver(u);U.observe(m);_.TP(function(){U.disconnect()})}});
var a={};return _.R("yt-sponsorships-perks-list",{el:e,class:_.ip("ytdSponsorshipsPerksListHost",(a.ytdSponsorshipsPerksListHorizontalPadding=function(){return y().horizontalPaddingEnabled},a))},_.R("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.R("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.NW({"background-color":p})},_.R("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.R(_.W,{cond:l,then:function(m){var U={};return _.R("div",{class:_.ip((U.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=q,U.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!q,U.ytdSponsorshipsPerksListFlipped=E,U))},_.R(_.W$,{data:m,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.R("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.R(_.W,{cond:t,
then:function(m){var U={};return _.R("div",{class:_.ip((U.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=q,U.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!q,U.ytdSponsorshipsPerksListFlipped=E,U))},_.R(_.W$,{data:m,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.R("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.R(_.di,{data:function(){var m;
return(m=y().header)==null?void 0:m.dualAvatar}},{dualAvatarViewModel:_.PhQ})))),_.R("div",{class:"ytdSponsorshipsPerksListBody"},_.R("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return y().title}),_.R(_.W,{cond:function(){return y().perks},
then:function(m){return _.R(_.rT,{each:m},function(U,b){var P={};return _.R("div",{class:_.ip("ytdSponsorshipsPerksListPerkContainer",(P.ytdSponsorshipsPerksListSelectedPerk=function(){var Z=b(),K=y().selectedPerkIndex;return Z===K},P))},_.R(_.W,{cond:function(){return b()>0},
then:function(){return _.R("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.R("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.R(_.W,{cond:function(){return U.icon},
then:function(Z){return _.R(_.DR,{icon:function(){return Z().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.R("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.R("div",{class:"ytdSponsorshipsPerksListPerkTitle"},U.title),_.R("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.R(_.CF,{text:U.description})),_.R(_.W,{cond:function(){return U.instructions},
then:function(){var Z,K;return _.R("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.R("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(Z=U.instructions)==null?void 0:Z.title),_.R("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.R(_.CF,{text:(K=U.instructions)==null?void 0:K.text})))}}))),_.R(_.W,{cond:function(){return U.emoji},
then:function(Z){return _.R("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.R(_.rT,{each:function(){return Z()}},function(K){return _.R(_.W$,{data:K,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.R(A0Q,{data:U}))})}})))},"re");
ZJO.idomCompat=!0;var A0Q=_.aF(function(p){var y=p.data;var l=function(e,C){return e===C},q=function(){var e=y();
e=_.G(e==null?void 0:e.badgesShelf,ZIU);return e!==void 0&&e!==null?e:{previousButton:{},nextButton:{}}},t=_.tK("div"),E=function(){var e=t.value;
if(e){var C=e.parentElement;if(C){e=e.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var u=0;u<e.length;++u){var a=e[u];if(a instanceof HTMLElement){C.scrollTo({left:a.offsetLeft+a.clientWidth/2-C.clientWidth/2,behavior:"instant"});break}}}}};
_.xZ(function(){var e=t.value;if(e){var C=new ResizeObserver(E);C.observe(e);_.TP(function(){C.disconnect()})}});
return _.R("div",null,_.R(_.W,{cond:function(){return y().badges},
then:function(e){return _.R(bJQ,{data:q},_.R("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:t},_.R(_.rT,{each:function(){return e()}},function(C,u){var a={},m={},U={};
return _.R("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.R(_.W,{cond:function(){return u()>0},
then:function(){return _.R("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.R("div",{class:_.ip("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(a.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return l(u(),y().currentBadgeIndex)},a.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!l(u(),y().currentBadgeIndex)},a))},_.R("div",{class:_.ip("ytdSponsorshipsPerksListLoyaltyBadge",(m.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return l(u(),
y().currentBadgeIndex)},m.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!l(u(),y().currentBadgeIndex)},m))},_.R(_.W,{cond:function(){return C.image},
then:function(b){var P={};return _.R("div",{class:_.ip((P.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return l(u(),y().currentBadgeIndex)},P.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!l(u(),y().currentBadgeIndex)},P))},_.R(_.W$,{data:b,
alt:""}))}})),_.R("div",{class:_.ip("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(U.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return l(u(),y().currentBadgeIndex)},U))},C.title)))})))}}))},"se");
A0Q.idomCompat=!0;_.bp(ZJO,"yt-sponsorships-perks-list",{props:{data:_.Co}});_.bp(_.aF(function(p){return _.R("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.R(_.W,{cond:function(){return p.data().image},
then:function(y){return _.R(_.W$,{className:"ytwFantasyEmptyStateViewModelImage",data:y,ariaHidden:!0,alt:""})}}),_.R(_.CF,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return p.data().title}}),_.R(_.CF,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return p.data().subtitle}}),_.R(_.di,{data:function(){return p.data().primaryButton}},{buttonViewModel:function(y){return _.R(_.wZ,{data:y.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"te"),"ytw-fantasy-empty-state-view-model",{props:{data:_.Co}});var M5O;var aNt=_.T4({buttonRenderer:_.hI});_.uX(mj8);_.gD(mj8,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var Ck=function(){var p=_.w.apply(this,arguments)||this;p.hideJoinButtonBeforeSubscribed=_.n("hide_join_button_before_subscribed");p.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return p};
_.A(Ck,_.w);_.J=Ck.prototype;_.J.hasShowDialogCommand=function(p){return!!_.G(p,wFU)};
_.J.configureRendererStamper=function(){return{"data.avatarStack":{id:"avatar-stack",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model"}}},"data.membershipButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}},timedAnimationButtonRenderer:{component:"timed-animation-button-renderer",params:{uniqueId:"join-button"},properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.purchaseButton":{id:"purchase-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.analyticsButton":{id:"analytics-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.updateJoinButtonOverrides=function(){var p,y;(p=_.jR(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(y=p.polymerController)==null||y.set("overrides",this.joinButtonOverrides);if(p=_.jR(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))p.overrides=this.joinButtonOverrides};
_.J.handleButtonRefreshAction=function(p){if(p=_.G(p,kk$))this.set("data.membershipButton",p.membershipButton),this.notifyPath("data.membershipButton")};
_.J.onYtServiceRequestError=function(p){_.Wn(this.hostElement,p.detail.error.message)};
_.J.onKeydown=function(p){if(p.key==="Enter"){var y;(y=this.data)!=null&&y.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.J.handleUnsubscribeAction=function(){var p,y,l;((p=this.data)==null?void 0:(y=p.membershipButton)==null?void 0:(l=y.buttonRenderer)==null?void 0:l.style)==="STYLE_PRIMARY"&&_.jR(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Jh.Object.defineProperties(Ck.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.subscriptionStateEntity)==null||!p.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var p,y=(p=this.data)==null?void 0:p.membershipButton,l;p=(y==null?void 0:y.buttonRenderer)||_.G(y==null?void 0:(l=y.timedAnimationButtonRenderer)==null?void 0:l.buttonRenderer,_.yv);return(p==null?void 0:p.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(p==null?void 0:p.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(p==null?void 0:p.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var p;if(this.hasShowDialogCommand((p=this.data)==null?void 0:p.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var p;if(this.hasShowDialogCommand((p=this.data)==null?void 0:p.navigationEndpoint))return"button"}}});
Ck.prototype.onYtServiceRequestError=Ck.prototype.onYtServiceRequestError;Ck.prototype.updateJoinButtonOverrides=Ck.prototype.updateJoinButtonOverrides;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Ck.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ck.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Ck.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.zL),_.x("design:type",Object)],Ck.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Ck.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.dn),_.x("design:type",Object)],Ck.prototype,"ironButtonState",void 0);_.H([_.Q(),_.x("design:type",Object)],Ck.prototype,"data",void 0);_.H([_.g("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ck.prototype,"hideJoin",null);
_.H([_.Q(),_.x("design:type",String)],Ck.prototype,"subscribeKey",void 0);_.H([_.Q({selectorArgs:["subscribeKey"],selector:Z$R}),_.x("design:type",Object)],Ck.prototype,"subscriptionStateEntity",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Ck.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.H([_.g("subscriptionStateEntity"),_.Q({reflectToAttribute:!0}),_.x("design:type",Object),_.x("design:paramtypes",[])],Ck.prototype,"subscribed",null);
_.H([_.g("subscribed","data.membershipButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ck.prototype,"joinButtonOverrides",null);_.H([_.g("data.navigationEndpoint"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ck.prototype,"channelNameTabIndex",null);_.H([_.g("data.navigationEndpoint"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ck.prototype,"channelNameRole",null);
_.H([_.gd("joinButtonOverrides"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ck.prototype,"updateJoinButtonOverrides",null);_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ck.prototype,"onYtServiceRequestError",null);_.H([_.k({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],Ck);
var V5i=_.Al()(Ck,"ytd-video-owner-renderer",function(){if(M5O===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);M5O=p}p=M5O;return p},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.bp(_.aF(function(p){var y=p.data;var l;p=_.c(_.nr(!((l=_.Qh("yt-mini-app-is-theater-mode-enabled"))==null||!l),void 0,"CtFFDf"));var q=p.next().value,t=p.next().value;l=_.c(_.nr(!1,void 0,"pRgDfb"));var E=l.next().value,e=l.next().value;_.xZ(function(){var a=_.BL(window,zAx,function(){e(Iax())});
_.TP(function(){HL(a)})});
var C;l=(C=_.WC().resolve(_.RK(YSM)))!=null?C:function(){return _.R("div",null)};
_.qt("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){t(!0);_.gB("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.qt("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){t(!1);_.gB("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
C={};p={};var u={};return _.R("mini-app-play-page-renderer",{class:_.ip("miniAppPlayPageRendererHost",(C.miniAppPlayPageRendererHostDetailsView=function(){return!q()},C))},_.R("div",{class:_.ip("miniAppPlayPageRendererGameContainer",(p.miniAppPlayPageRendererGameContainerDetailsView=function(){return!q()},p))},_.R(_.di,{data:function(){return y().containerViewModel}},{miniAppContainerViewModel:$dx}),_.R(_.W,{cond:function(){return y().channel&&y().subscribeButton},
then:function(){var a={};return _.R("div",{class:_.ip("miniAppPlayPageRendererChannelContainer",(a.miniAppPlayPageRendererHideVisibility=function(){return E()},a))},_.R(_.di,{data:function(){return y().channel}},{videoOwnerRenderer:function(m){return _.R(V5i,{data:m.data})}}),_.R(_.di,{data:function(){return y().subscribeButton}},{subscribeButtonViewModel:function(m){return _.R(_.f9,{data:m.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.R(_.W,{cond:function(){return!q()&&y().description},
then:function(){var a={};return _.R("div",{class:_.ip("miniAppPlayPageRendererMiniAppDescriptionWrapper",(a.miniAppPlayPageRendererHideVisibility=function(){return E()},a))},_.R("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return y().description}))}})),_.R("div",{class:_.ip("miniAppPlayPageRendererPlayNextContainer",(u.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!q()},u.miniAppPlayPageRendererHideVisibility=function(){return E()},u))},_.R(_.di,{data:function(){return y().sectionList}},
{sectionListRenderer:l})))},"ue"),"mini-app-play-page-renderer",{props:{data:_.Co}});var uu=function(){var p=_.w.apply(this,arguments)||this;p.isSearch=!1;p.isConstrainedList=!1;p.hasChipsBar=!1;p.inReplyPanel=!1;p.scrollUpButtonData={buttonViewModel:{iconName:"UP_ARROW",style:"BUTTON_VIEW_MODEL_STYLE_UNKNOWN",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_COMPACT"}};p.monitorScroll=!0;p.SCROLL_ANIMATION_DURATION_MS=300;p.nextContinuation={continuationType:"sectionListContinuation"};return p};
_.A(uu,_.w);_.J=uu.prototype;
_.J.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(p){switch(p.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},"flow-root-renderer":{component:"yt-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.n("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.n("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.J.created=function(){var p=this;this.JSC$16903_scrollAnimation=new _.lu(function(y){p.hostElement.scrollTop=y})};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.J.getItemsPath=function(){return"data.contents"};
_.J.replacePrimaryContent=function(p){this.set("data.contents",p)};
_.J.computeHasSortFilter=function(p){return!!p&&!!p.sortFilterSubMenuRenderer};
_.J.computeShouldScrollInPanel=function(p){var y;return!!(p==null?0:(y=p.scrollPaneStyle)==null?0:y.scrollable)};
_.J.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.nv(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.J.scrollToTop=function(){this.hostElement.scrollTop=0};
_.J.scrollToItemSection=function(p){if(p=this.getItemByIdentifier(p))p=this.getScrollPositionForItem(p),this.hostElement.scrollTop!==p&&this.JSC$16903_scrollAnimation.start(this.hostElement.scrollTop,p,this.SCROLL_ANIMATION_DURATION_MS)};
_.J.getItemByIdentifier=function(p){var y=this.contents.querySelectorAll("ytd-item-section-renderer");if(y&&y.length!==0){var l=Array.from(y).findIndex(function(q){return q.sectionIdentifier===p});
return y[l===-1?0:l]}};
_.J.getScrollPositionForItem=function(p){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===p)return 0;p=_.Xq(p).y+this.hostElement.scrollTop-_.Xq(this.hostElement).y;return Math.min(p,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Jh.Object.defineProperties(uu.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.targetId)==="browse-feedFEclips"}}});
uu.prototype.onScroll=uu.prototype.onScroll;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],uu.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],uu.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.$G.YtLazyListBehavior),_.x("design:type",Object)],uu.prototype,"ytLazyListBehavior",void 0);_.H([_.V(_.Eo.YtNextContinuationBehavior),_.x("design:type",Object)],uu.prototype,"ytNextContinuationBehavior",void 0);
_.H([_.V(_.asU),_.x("design:type",Object)],uu.prototype,"ytBooleanLogicBehavior",void 0);_.H([_.V(_.tP),_.x("design:type",Object)],uu.prototype,"ytContinuationHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],uu.prototype,"data",void 0);_.H([_.Q({value:2}),_.x("design:type",Number)],uu.prototype,"initialCount",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],uu.prototype,"autoFill",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.x("design:type",Boolean)],uu.prototype,"hasSortFilter",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.x("design:type",Boolean)],uu.prototype,"hideBottomSeparator",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.x("design:type",Boolean)],uu.prototype,"shouldScrollInPanel",void 0);
_.H([_.Q(),_.x("design:type",Object)],uu.prototype,"isSearch",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],uu.prototype,"isConstrainedList",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],uu.prototype,"responsiveSizing",void 0);_.H([_.Q(),_.x("design:type",Object)],uu.prototype,"hasChipsBar",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],uu.prototype,"pageSubtype",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],uu.prototype,"engagementPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],uu.prototype,"liveChatEngagementPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],uu.prototype,"inReplyPanel",void 0);_.H([_.rd("#action-button"),_.x("design:type",HTMLElement)],uu.prototype,"actionButton",void 0);_.H([_.Q(),_.x("design:type",Object)],uu.prototype,"scrollUpButtonData",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],uu.prototype,"engagementPanelDropdown",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],uu.prototype,"engagementPanelDialog",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],uu.prototype,"isClipList",null);_.H([_.rd("#contents"),_.x("design:type",HTMLElement)],uu.prototype,"monitorScrollElement",void 0);_.H([_.rd("#contents"),_.x("design:type",HTMLElement)],uu.prototype,"contents",void 0);
_.H([_.VU("scroll"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uu.prototype,"onScroll",null);_.H([_.k({is:"ytd-section-list-renderer",disableElementRegistration:!0})],uu);
var gjV=_.Al()(uu,"ytd-section-list-renderer",function(){if(zgx===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-section-list-renderer">\n  <div id="header" class="style-scope ytd-section-list-renderer"></div>\n  <div id="sub-menu" class="style-scope ytd-section-list-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-section-list-renderer"></div>\n<div id="action-button" on-click="scrollToTop" class="style-scope ytd-section-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-section-list-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);zgx=p}p=zgx;return p},{mode:1});var Qmr;var Kyr;var weB;var iJv;var RV=function(){return _.w.apply(this,arguments)||this};
_.A(RV,_.w);RV.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
RV.prototype.onLikeButtonClick=function(p){p.stopPropagation();p.preventDefault()};
_.Jh.Object.defineProperties(RV.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)!=null&&p.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],RV.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],RV.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],RV.prototype,"ytRendererStamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],RV.prototype,"data",void 0);
_.H([_.Q({selectorArgs:["data.likeStatusEntityKey"],selector:lj}),_.x("design:type",Object)],RV.prototype,"likeStatusEntity",void 0);_.H([_.g("data","likeStatusEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],RV.prototype,"likeButtonRenderer",null);_.H([_.k({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],RV);
_.D(RV,"ytd-slim-metadata-toggle-button-renderer",function(){if(iJv!==void 0)return iJv;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slim-metadata-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-slim-metadata-toggle-button-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
return iJv=p},{mode:1});var Ww=function(){var p=_.w.apply(this,arguments)||this;p.minimizePipBreakages=_.n("web_pip_minimize_breakages");p.showEqualizer=_.n("web_enable_playlist_video_lockup_equalizer");p.watchColorUpdate=_.n("kevlar_watch_color_update");p.actionMap={};return p};
_.A(Ww,_.w);_.J=Ww.prototype;_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.J.computeEditableClass=function(p){return p&&p.menu?"editable":""};
_.J.computeSelected=function(p){return!(p==null||!p.selected)};
_.J.computeUseColorPalette=function(p){return!!((p==null?0:p.lightColorPalette)&&(p==null?0:p.darkColorPalette))};
_.J.computeLargerPlaylistThumbs=function(p,y){return _.n("web_enable_playlist_bigger_thumbnails")&&!y};
_.J.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.J.onYtServiceRequestSent=function(p,y){y.endpoint&&this.isHideEnclosingAction(y.endpoint)&&!this.selected&&okx(_.EX(),this.data.videoId)};
_.J.isHideEnclosingAction=function(p){var y=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",p);p=this.get("likeEndpoint.status",p)==="INDIFFERENT";return y||p};
_.J.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.J.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Jh.Object.defineProperties(Ww.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.n("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var p;return!!(this.withinMiniplayer&&((p=this.data)==null?0:p.actionButtons))}}});
Ww.prototype.onYtServiceRequestSent=Ww.prototype.onYtServiceRequestSent;Ww.prototype.canReorderChanged=Ww.prototype.canReorderChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Ww.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Ww.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ww.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.EW),_.x("design:type",Object)],Ww.prototype,"ytdLockupBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Ww.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ww.prototype,"withinMiniplayer",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Ww.prototype,"minimizePipBreakages",void 0);_.H([_.Q({computed:"computeSelected(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Ww.prototype,"selected",void 0);
_.H([_.Q({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Ww.prototype,"useColorPalette",void 0);_.H([_.Q({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Ww.prototype,"largerPlaylistThumbs",void 0);_.H([_.Q(),_.x("design:type",Object)],Ww.prototype,"showEqualizer",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ww.prototype,"canReorder",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ww.prototype,"touchPersistentDragHandle",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ww.prototype,"handleIsHovered",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Ww.prototype,"watchColorUpdate",void 0);_.H([_.Q(),_.x("design:type",String),_.x("design:paramtypes",[])],Ww.prototype,"reorderIcon",null);
_.H([_.g("largerPlaylistThumbs"),_.x("design:type",Number),_.x("design:paramtypes",[])],Ww.prototype,"thumbnailWidth",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ww.prototype,"showActionButtons",null);_.H([_.k8("canReorder"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ww.prototype,"canReorderChanged",null);
_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],Ww.prototype,"onYtServiceRequestSent",null);_.H([_.k({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],Ww);
_.D(Ww,"ytd-playlist-panel-video-renderer",function(){if(weB!==void 0)return weB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return weB=p},{mode:2});var aV=function(){return _.w.apply(this,arguments)||this};
_.A(aV,_.w);aV.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],aV.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],aV.prototype,"data",void 0);_.H([_.k({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],aV);
_.D(aV,"ytd-playlist-panel-supported-items",function(){if(Kyr!==void 0)return Kyr;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-supported-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-playlist-panel-supported-items"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Kyr=
p},{mode:1});Ysr=!0;WVr("\\P{N}");var Ujc;var r0x=_.g$("END_OF_PLAYLIST",void 0,"End of playlist"),SjB=_.g$("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),m9=function(){var p=_.w.apply(this,arguments)||this;p.minimizePipBreakages=_.n("web_pip_minimize_breakages");p.updatedCoursePanel=_.n("move_three_dot_menu_to_playlist_panel_header_for_courses");p.hideHeaderText=!1;p.useColorPalette=!1;p.collapsed=!1;p.collapsedPreServerOverride="not_tracked";p.isHovered=!1;p.modernPanels=_.n("kevlar_watch_modern_panels");
p.expandLabel=_.g$("MINIPLAYER_EXPAND_LABEL");p.collapseLabel=_.g$("MINIPLAYER_COLLAPSE_LABEL");p.isFloating=!1;p.metaPanel=!1;p.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};p.currentIndex=void 0;return p};
_.A(m9,_.w);_.J=m9.prototype;
_.J.configureRendererStamper=function(){return{menuRendererData:{id:"playlist-action-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{forceIconButton:!1}}}},overflowMenuDataTopRow:{id:"overflow-menu-top-row",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},overflowMenuData:{id:"overflow-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.contentHeader":{id:"content-header",mapping:{messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.contents":{id:"items",
events:!0,mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",attributes:{id:"playlist-items"},properties:{canReorder:"[[canReorder]]",withinMiniplayer:"[[withinMiniplayer]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.saveButton":{id:"save-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.topRowButtons":{id:"top-row-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.created=function(){this.scrollThrottle=new _.hy(this.onThrottledScroll,1E3,this)};
_.J.onMouseEnter=function(){this.isHovered=!0};
_.J.onMouseLeave=function(){this.isHovered=!1};
_.J.computeOverflowMenuData=function(p){return p&&p.menu?p.menu:null};
_.J.computeCollapsible=function(p){return!p};
_.J.computeHasPlaylistButtons=function(p){return!(!p||!p.playlistButtons)};
_.J.computeHasSeparateSaveButton=function(p){return!(!p||!p.saveButton)};
_.J.computeHasToolbarButton=function(p,y){return!(!p||!(y||p.saveButton||p.menu))};
_.J.computePlaylistType=function(p){if(p&&p.playlistId)return p.playlistId.substring(0,4)};
_.J.computeCanReorder=function(p){return p?p.playlistId&&p.playlistId.startsWith("TLPQ")?!0:!!p.isEditable&&!p.isInfinite:!1};
_.J.attached=function(){var p=this;try{_.WC().resolve(_.yh).setPlaylistComponent(this.hostElement)}catch(y){if(_.n("kevlar_park_on_playlist_token_killswitch"))throw y;_.qB().parkOrScheduleJob(function(){_.WC().resolve(_.yh).setPlaylistComponent(p.hostElement)},2,"ci")}_.aJ(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.J.detached=function(){_.mO(this.hostElement)};
_.J.computeTrailingIcon=function(p,y,l){return l?y?"yt-icons:collapse":"yt-icons:close":y?"yt-icons:expand":_.n("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.J.computeIndexMessage=function(p,y){return b1l(p+1)+" / "+b1l(y)};
_.J.onRenderStamperFinished=function(){if(this.scrollForStampDom){var p=!0;this.isHovered&&(p=!1);if(this.collapsed||this.hidden)p=!1;p&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.J.collapseChanged=function(){var p=this;this.collapsed||(_.Xp(this.ytTaskEmitterBehavior.getTaskManager(),function(){p.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.J.hiddenChanged=function(){var p=this;this.hidden||_.Xp(this.ytTaskEmitterBehavior.getTaskManager(),function(){p.scrollToCurrentVideo()})};
_.J.setupReordering=function(){var p=_.jR(this.hostElement).querySelector("#items");VaN?_.nrv(this.ytReorderableBehavior,p,p,"playlist-drag-handle"):_.nrv(this.ytReorderableBehavior,p,p)};
_.J.scrollToCurrentVideo=function(){var p=this;_.TR.addJob(function(){var y=_.jR(p.hostElement).querySelector("#items");if(y){y.style.setProperty("padding-bottom","");var l=_.jR(p.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(l){y=l.parentElement||_.HZ(document);var q=y||_.HZ(document);var t=_.Xq(l),E=_.Xq(q),e=_.g1V(q);if(q==_.HZ(document)){var C=t.x-q.scrollLeft;t=t.y-q.scrollTop}else C=t.x-E.x-e.left,t=t.y-E.y-e.top;l=AmU(l);E=q.clientHeight-
l.height;e=q.scrollLeft;var u=q.scrollTop;e+=C-(q.clientWidth-l.width)/2;q=new _.BJ(e,u+(t-E/2));y.scrollLeft=q.x;y.scrollTop=q.y}}},8)};
_.J.dataChanged=function(){var p=this;_.b$v(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.th(this,function(){_.rJ(p.ytTaskEmitterBehavior.getTaskManager(),function(){p.ytRendererBehavior.markDirty();p.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.J.onFullBleedPlayerChanged=function(){_.n("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.J.onFullscreenChanged=function(){_.n("web_watch_imax_theater_mode")||_.n("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.J.updateNowPlayingOverlay=function(){_.n("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.J.onPlaylistLockupNowPlaying=function(p,y){y&&(this.activeNowPlayingRenderer=y);this.updateNowPlayingOverlay()};
_.J.onScroll=function(){this.scrollThrottle.fire()};
_.J.onThrottledScroll=function(){var p=this;_.rJ(this.ytTaskEmitterBehavior.getTaskManager(),function(){p.ytRendererBehavior.markDirty()})};
_.J.onToggleExpanded=function(p){!this.collapsible||p&&(_.cm(p).tagName==="A"||_.WN(_.Jx(p),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.J.setCollapsed=function(p){this.collapsible&&(this.collapsed=p,_.jN(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.J.handleCollapsedFromData=function(p){if(p){var y=p.playlistPanelCollapseState;y==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||y==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),y=y==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==y&&this.setCollapsed(y)):this.currentPlaylistId!==p.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(y=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==y&&this.setCollapsed(y),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=p.playlistId}};
_.J.handleDrop=function(p){var y=p.currDragItem;p=y.data.playlistSetVideoId;var l=_.Ht(y.parentNode.childNodes,y),q=void 0;l>0&&(q=y.parentNode.childNodes[l-1].data.playlistSetVideoId);y=_.EX();if(y.responsePlaylistData&&y.responsePlaylistData.contents){var t=DCo(p,y.responsePlaylistData);y.responsePlaylistData=(0,_.Ts.unsafeClone)(y.responsePlaylistData);P_R(y.responsePlaylistData.contents,t,l);y.queueProxy?ZHM(y.queueProxy,t,l,p,q):y.playlistProxy&&ZHM(y.playlistProxy,t,l,p,q);_.JS(y,_.cF(y,y.response?
y.response.autoplayRenderer:void 0))}};
_.J.handleDarkModeChange=function(p){p!==this.isDarkTheme&&(this.isDarkTheme=p)};
_.J.colorPaletteChanged=function(){var p,y=((p=this.data)==null?void 0:p.contents)||[],l;p=_.c(y);for(y=p.next();!y.done;y=p.next()){y=y.value;var q=void 0;if((q=y.playlistPanelVideoRenderer)==null?0:q.selected){p=y.playlistPanelVideoRenderer;q=y=void 0;(l=this.isDarkTheme?(y=p)==null?void 0:y.darkColorPalette:(q=p)==null?void 0:q.lightColorPalette)&&_.dD(this.hostElement,l);break}}this.useColorPalette=!!l};
_.Jh.Object.defineProperties(m9.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var p,y;return!((p=this.data)==null||!p.playlistId)&&!((y=this.data)==null||!y.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var p=_.WC().resolve(_.RK(_.yh)),y;if(((y=this.data)==null?0:y.contents)&&(p==null?0:p.hasAutoplayData())){var l;if(((l=this.playlistLoopStateEntity)==null?void 0:l.state)==="PLAYLIST_LOOP_STATE_ONE"){if(p=this.data.currentIndex,p!==void 0){var q,t;var E=(q=this.data.contents[p])==null?void 0:(t=q.playlistPanelVideoRenderer)==null?void 0:t.title}}else{var e,C=(e=_.G(p.getAutoplayEndpoint(),_.Eb))==null?void 0:e.videoId,u,a;E=(u=this.data.contents.find(function(m){var U;
return((U=m.playlistPanelVideoRenderer)==null?void 0:U.videoId)===C}))==null?void 0:(a=u.playlistPanelVideoRenderer)==null?void 0:a.title}return E}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)!=null&&p.nextVideoLabel?this.nextVideoTitle?_.JB(this.data.nextVideoLabel)+":":r0x:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var p;if(((p=this.data)==null?0:p.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.n("web_mix_long_byline_from_data"))return _.EK(SjB);var y;return(y=this.data)==null?void 0:y.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q=(p=this.data)==null?void 0:(y=p.playlistButtons)==null?void 0:(l=y.menuRenderer)==null?void 0:l.topLevelButtons;if(q)for(p=_.c(q),y=p.next();!y.done;y=p.next())if(y=y.value,y.playlistLoopButtonRenderer)return y.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var p;return!!(this.collapsed&&((p=this.data)==null?0:p.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.n("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
m9.prototype.colorPaletteChanged=m9.prototype.colorPaletteChanged;m9.prototype.onPlaylistLockupNowPlaying=m9.prototype.onPlaylistLockupNowPlaying;m9.prototype.updateNowPlayingOverlay=m9.prototype.updateNowPlayingOverlay;m9.prototype.onFullscreenChanged=m9.prototype.onFullscreenChanged;m9.prototype.onFullBleedPlayerChanged=m9.prototype.onFullBleedPlayerChanged;m9.prototype.dataChanged=m9.prototype.dataChanged;m9.prototype.hiddenChanged=m9.prototype.hiddenChanged;m9.prototype.collapseChanged=m9.prototype.collapseChanged;
m9.prototype.onRenderStamperFinished=m9.prototype.onRenderStamperFinished;m9.prototype.onMouseLeave=m9.prototype.onMouseLeave;m9.prototype.onMouseEnter=m9.prototype.onMouseEnter;_.H([_.V(_.vG),_.x("design:type",Object)],m9.prototype,"ironResizableBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],m9.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],m9.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V($TM.YtPlaylistPanelBehavior),_.x("design:type",Object)],m9.prototype,"ytPlaylistPanelBehavior",void 0);_.H([_.V(_.m$.YtTaskEmitterBehavior),_.x("design:type",Object)],m9.prototype,"ytTaskEmitterBehavior",void 0);_.H([_.V(_.GNi),_.x("design:type",Object)],m9.prototype,"ytReorderableBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],m9.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],m9.prototype,"ytdReduxBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],m9.prototype,"actionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],m9.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],m9.prototype,"autoplayData",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],m9.prototype,"withinMiniplayer",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],m9.prototype,"minimizePipBreakages",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],m9.prototype,"updatedCoursePanel",void 0);_.H([_.Q({computed:"setMenuData_(data)"}),_.x("design:type",Object)],m9.prototype,"menuRendererData",void 0);_.H([_.Q({computed:"computeOverflowMenuData(data)"}),_.x("design:type",Object)],m9.prototype,"overflowMenuDataTopRow",void 0);_.H([_.Q({computed:"computeOverflowMenuData(data)"}),_.x("design:type",Object)],m9.prototype,"overflowMenuData",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],m9.prototype,"hideHeaderText",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],m9.prototype,"useColorPalette",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.x("design:type",Boolean)],m9.prototype,"collapsible",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],m9.prototype,"collapsed",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],m9.prototype,"hidden",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.x("design:type",Boolean)],m9.prototype,"hasPlaylistButtons",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.x("design:type",Boolean)],m9.prototype,"hasSeparateSaveButton",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.x("design:type",Boolean)],m9.prototype,"hasToolbar",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.x("design:type",String)],m9.prototype,"playlistType",void 0);_.H([_.Q(),_.x("design:type",Object)],m9.prototype,"isHovered",void 0);_.H([_.Q({selectorArgs:["playlistLoopStateEntityKey"],selector:_.wOt}),_.x("design:type",Object)],m9.prototype,"playlistLoopStateEntity",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],m9.prototype,"modernPanels",void 0);_.H([_.Q({value:56}),_.x("design:type",Number)],m9.prototype,"scrollMargin",void 0);_.H([_.Q({computed:"computeCanReorder(data)"}),_.x("design:type",Boolean)],m9.prototype,"canReorder",void 0);_.H([_.Q(),_.x("design:type",Object)],m9.prototype,"expandLabel",void 0);_.H([_.Q(),_.x("design:type",Object)],m9.prototype,"collapseLabel",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],m9.prototype,"isFloating",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],m9.prototype,"metaPanel",void 0);_.H([_.Q({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.x("design:type",String)],m9.prototype,"trailingIcon",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],m9.prototype,"isDarkTheme",void 0);
_.H([_.Q({selector:_.vV}),_.x("design:type",Boolean)],m9.prototype,"miniplayerIsActive",void 0);_.H([_.Q({selector:function(p){return p.watch.playerState}}),
_.x("design:type",Number)],m9.prototype,"playerState",void 0);_.H([_.Q({selector:_.Ix}),_.x("design:type",Boolean)],m9.prototype,"isFullscreen",void 0);_.H([_.Q({selector:_.YS}),_.x("design:type",Boolean)],m9.prototype,"isTheaterMode",void 0);_.H([_.Q(),_.x("design:type",Object)],m9.prototype,"activeNowPlayingRenderer",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],m9.prototype,"moveThreeDotMenuToTopRow",null);
_.H([_.g("data","autoplayData","playlistLoopStateEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],m9.prototype,"nextVideoTitle",null);_.H([_.g("data","nextVideoTitle"),_.x("design:type",String),_.x("design:paramtypes",[])],m9.prototype,"nextVideoLabel",null);_.H([_.g("collapsed"),_.x("design:type",String),_.x("design:paramtypes",[])],m9.prototype,"buttonAriaLabel",null);
_.H([_.g("data","playlistId","longBylineText"),_.x("design:type",Object),_.x("design:paramtypes",[])],m9.prototype,"mixLongByLine",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],m9.prototype,"playlistLoopStateEntityKey",null);_.H([_.VU("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m9.prototype,"onMouseEnter",null);
_.H([_.VU("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m9.prototype,"onMouseLeave",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data","collapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],m9.prototype,"showNextVideoHeader",null);_.H([_.VU("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m9.prototype,"onRenderStamperFinished",null);
_.H([_.gd("collapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m9.prototype,"collapseChanged",null);_.H([_.gd("hidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m9.prototype,"hiddenChanged",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m9.prototype,"dataChanged",null);
_.H([_.g("isTheaterMode","isFullscreen"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],m9.prototype,"isFullBleedPlayer",null);_.H([_.gd("isTheaterMode","isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m9.prototype,"onFullBleedPlayerChanged",null);_.H([_.gd("isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m9.prototype,"onFullscreenChanged",null);
_.H([_.gd("playerState","miniplayerIsActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m9.prototype,"updateNowPlayingOverlay",null);_.H([_.VU("yt-playlist-lockup-now-playing-active"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],m9.prototype,"onPlaylistLockupNowPlaying",null);
_.H([_.gd("data","isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m9.prototype,"colorPaletteChanged",null);_.H([_.k({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],m9);
_.Fyi=_.Al()(m9,"ytd-playlist-panel-renderer",function(){if(Qmr===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" data-collapsed="[[collapsed]]" class="style-scope ytd-playlist-panel-renderer"><div class="header style-scope ytd-playlist-panel-renderer" on-tap="onToggleExpanded"><div id="header-contents" class="style-scope ytd-playlist-panel-renderer"><div id="header-top-row" class="style-scope ytd-playlist-panel-renderer"><div id="header-description" class="style-scope ytd-playlist-panel-renderer"><h3 hidden="[[showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[data.titleText]]"></yt-formatted-string></h3><h3 id="next-video-title" hidden="[[!showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><span id="next-label" class="style-scope ytd-playlist-panel-renderer">[[nextVideoLabel]]</span><yt-formatted-string ellipsis-truncate="" text="[[nextVideoTitle]]" class="style-scope ytd-playlist-panel-renderer"></yt-formatted-string></h3><div id="publisher-container" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="byline-title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" hidden="[[!showNextVideoHeader]]" text="[[data.titleText]]"></yt-formatted-string><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-panel-renderer"></ytd-badge-supported-renderer><yt-formatted-string class="publisher style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[mixLongByLine]]"></yt-formatted-string><div class="index-message-wrapper style-scope ytd-playlist-panel-renderer" hidden="[[data.isInfinite]]"><span class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[data.videoCountText]]">[[computeIndexMessage(data.currentIndex,\n                data.totalVideos)]]</span><yt-formatted-string class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[!data.videoCountText]]" respecthtmldir="" text="[[data.videoCountText]]"></yt-formatted-string></div></div></div><div id="end-actions-in-header" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu-top-row" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="top-row-buttons" class="style-scope ytd-playlist-panel-renderer"></div><yt-icon-button id="trailing-button" label="[[buttonAriaLabel]]" pressed="[[!collapsed]]" toggleable="" class="style-scope ytd-playlist-panel-renderer"><yt-icon id="trailing-icon" icon="[[trailingIcon]]" class="style-scope ytd-playlist-panel-renderer"></yt-icon></yt-icon-button></div><div id="playlist-actions" class="style-scope ytd-playlist-panel-renderer"><div id="start-actions" class="style-scope ytd-playlist-panel-renderer"><div id="playlist-action-menu" class="style-scope ytd-playlist-panel-renderer"></div><div id="save-button" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="end-actions" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu" class="style-scope ytd-playlist-panel-renderer"></div></div></div></div></div><div id="content-header" hidden="[[!data.contentHeader]]" class="style-scope ytd-playlist-panel-renderer"></div><div id="items" class="playlist-items style-scope ytd-playlist-panel-renderer" on-scroll="onScroll"></div></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);Qmr=p}p=Qmr;return p},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var LyZ;var Ue=function(){var p=_.w.apply(this,arguments)||this;p.modern=_.n("web_button_rework");return p};
_.A(Ue,_.w);Ue.prototype.computeShouldButtonBeVertical=function(p,y){return p||y};
Ue.prototype.onYtServiceRequestSent=function(p,y){(p=_.G(y.endpoint,_.yG))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.Fp("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:p.status})):this.handleLikeEndpoint(p))};
Ue.prototype.computelikeStatusEntityKey=function(p){return p==null?void 0:p.likeStatusEntityKey};
Ue.prototype.handleLikeEndpoint=function(p){p.status==="LIKE"?this.JSC$16928_ytdDislikeToggleButtonRenderer.toggle(!1):p.status==="DISLIKE"?this.JSC$16928_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16928_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16928_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Jh.Object.defineProperties(Ue.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var p;return ADg(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(p=this.likeStatusEntity)==null?void 0:p.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var p;if(this.data&&((p=this.data)==null||!p.hideDislikeButton)){var y;return ADg(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(y=this.likeStatusEntity)==null?void 0:y.likeStatus)}}}});
Ue.prototype.onYtServiceRequestSent=Ue.prototype.onYtServiceRequestSent;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ue.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Ue.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Ue.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ue.prototype,"vertical",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],Ue.prototype,"textTransform",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ue.prototype,"useShortsIcon",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ue.prototype,"underIconLabel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Ue.prototype,"modern",void 0);_.H([_.Q({value:"left"}),_.x("design:type",String)],Ue.prototype,"buttonTooltipPosition",void 0);
_.H([_.Q(),_.x("design:type",Object)],Ue.prototype,"overrides",void 0);_.H([_.rd("#like-button"),_.x("design:type",Object)],Ue.prototype,"JSC$16928_ytdLikeToggleButtonRenderer",void 0);_.H([_.rd("#dislike-button"),_.x("design:type",Object)],Ue.prototype,"JSC$16928_ytdDislikeToggleButtonRenderer",void 0);_.H([_.g("data","likeStatusEntity.likeStatus","useShortsIcon"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ue.prototype,"likeButton",null);
_.H([_.g("data","likeStatusEntity.likeStatus","useShortsIcon"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ue.prototype,"dislikeButton",null);_.H([_.Q({computed:"computelikeStatusEntityKey(data)"}),_.x("design:type",String)],Ue.prototype,"likeStatusEntityKey",void 0);_.H([_.Q({selectorArgs:["likeStatusEntityKey"],selector:lj}),_.x("design:type",Object)],Ue.prototype,"likeStatusEntity",void 0);
_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],Ue.prototype,"onYtServiceRequestSent",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],Ue);
var kzZ=_.Al()(Ue,"ytd-like-button-renderer",function(){if(LyZ===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-button-renderer">\n    <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n    </ytd-toggle-button-renderer>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);LyZ=p}p=LyZ;return p},{mode:1});_.NXi={};
_.NXi.YtConditionalRendererBehavior=[_.X.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(p,y){var l=this,q,t;return _.h(function(E){switch(E.nextAddress){case 1:if(!y)return l.hidden=!0,l.showSpinner=!1,E.return();if((q=p)==null?0:(t=q.visibilityCondition)==null?0:t.mode)switch(p.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return E.jumpTo(5);default:return E.jumpTo(6)}l.showSpinner=
!1;l.hidden=!0;return E.yield(l.shouldShow_(p),4);case 4:l.hidden=!E.yieldResult;E.jumpTo(0);break;case 5:return E.yield(l.shouldShow_(p),8);case 8:l.showSpinner=E.yieldResult;l.hidden=!1;E.jumpTo(0);break;case 6:return l.showSpinner=!1,E.yield(l.shouldShow_(p),9);case 9:l.hidden=!E.yieldResult,_.rR(E)}})},
shouldShow_:function(p){return p&&p.supportedDatas&&p.supportedDatas.rendererVisibilityConditionData&&p.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(p.supportedDatas.rendererVisibilityConditionData.showIf):p&&p.visibilityCondition&&p.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(p.visibilityCondition.showIf):p&&p.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(p.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(p){switch(p){case "VISIBILITY_CONDITION_TYPE_MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_MDX_DISCONNECTED":return Promise.resolve(!this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_LOCATION_PERMISSION_GRANTED":return this.isLocationPermissionGranted_();default:return Promise.resolve(!1)}},
isLegacyVisibilityConditionSatisfied_:function(p){switch(p){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var p=_.$w(this.hostElement,"yt-get-mdx-status");return p.length==1&&p[0].connected},
isLocationPermissionGranted_:function(){var p;return _.h(function(y){return y.nextAddress==1?navigator.permissions?y.yield(navigator.permissions.query({name:"geolocation"}),3):y.jumpTo(2):y.nextAddress!=2?(p=y.yieldResult,y.return(Promise.resolve(p.state==="granted"))):y.return(Promise.resolve(!1))})}}];var DdP=function(p,y){y=y===void 0?{}:y;var l=function(q){var t=document.createElement(p),E;var e=(E=t.polymerController)!=null?E:t;FEt(t,e,q,y);return t};
l.debugName=p+" (CoW wrapped)";return l}("yt-icon"),HJU=_.n("web_bypass_polymer_yt_icon")&&_.n("kevlar_use_wil_icons")?_.aF(function(p){var y=p.icon;
var l=p.active;var q=p.className;var t=p.style;var E=p.dataSelected;var e=p.dataDisabled;var C=p.role;var u=p.themeOverride;var a=p.animateIcon;var m=p.ariaHidden;var U=p.ariaExpanded;var b=p.ariaLabel;var P=p.tabindex;var Z=p.id;var K=p.iconFilter;var F=function(){var O=y==null?void 0:y(),f=null,v=void 0;O&&(O=V7P(O),O=Cna(O),O.length&&(f=O[1],v=O[0]));return{iconName:f,iconSetName:v}},L=function(){return gli(F().iconName,l==null?void 0:l(),void 0,void 0,F().iconSetName,_.WC().resolve(_.Kl))},T=
function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:K==null?void 0:K()}};
return _.R(_.W,{cond:a,then:function(){return _.R(DdP,{icon:y,active:l,className:q,style:t,dataSelected:E,dataDisabled:e,role:C,themeOverride:u,ariaHidden:m,ariaExpanded:U,ariaLabel:b,tabindex:P,id:Z,iconFilter:K})},
else:function(){return _.R(_.W,{cond:L,then:function(O){return _.R("span",{class:_.ip("ytIconWrapperHost",q),role:C,"aria-label":b,"aria-hidden":m,tabindex:function(){return isNaN(Number(P==null?void 0:P()))?void 0:Number(P==null?void 0:P())},
id:Z,style:t},_.R(Sl5,{data:O,options:T}))}})}})},"ve"):DdP;var TXr=function(p){var y=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];ilR();_.e0("ytglobal.ytUtilActivityCallback_",function(){_.jN(p,"yt-user-activity")});
new CT(function(){return y.JSC$16943_onMouseMove});
document.addEventListener("scroll",function(){return y.onScroll});
window.addEventListener("resize",function(){return y.onResize})},xdi=function(p,y,l){y in p.eventJobIds||(l=_.B3().addLowPriorityJob(function(){_.uG();
delete p.eventJobIds[y]},l),p.eventJobIds[y]=l)};
TXr.prototype.onScroll=function(p){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):p.target===document&&xdi(this,"scroll",200)};
TXr.prototype.onResize=function(){xdi(this,"resize",200)};
TXr.prototype.JSC$16943_onMouseMove=function(){xdi(this,"mousemove",100)};
_.aw=function(p){p.scrollEventsToIgnore+=1;p.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){p.scrollEventsToIgnore--},500))};var BXU=function(p){this.element=p;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
BXU.prototype.showFeedbackDialog=function(p,y,l,q){var t=fWr();if(!t)return!1;var E=FQl();E.productId=t;y&&(E.flow="submit",E.report={description:y});l&&(fWr()==="59"?E.callback=_.YZ(function(){_.TX("userFeedbackEvent",{});l()}):E.callback=_.YZ(l));
E.bucket=q||_.OY("GOOGLE_FEEDBACK_BUCKET","Other");vj$(E);p=XeQ(this,"GFEEDBACK",p);try{_.MzZ(E,p)}catch(e){return _.zi(e),!1}return!0};
BXU.prototype.showHelpDialog=function(p,y,l){var q=this,t=fWr();if(!t)return!1;var E={helpCenterPath:"/youtube",productData:XeQ(this,"GUIDED_HELP",l)};vj$(E);var e=FQl();e.context=p||E.productData.context||"default";e.defaultHelpArticleId=y;e.enableSendFeedback=!0;(_.I4("gapi.load")||function(C,u){return u()})("client",function(){try{var C=thr(t,E);
if(_.n("web_always_load_chat_support")&&!q.chatSupportLoaded)try{C.JSC$9912_loadChatSupport(e),q.chatSupportLoaded=!0}catch(u){}C.startHelp(e)}catch(u){_.zi(u)}})};
var fWr=function(){var p=_.OY("GOOGLE_FEEDBACK_PRODUCT_ID");p||_.zi(Error("di"));return p},vj$=function(p){p&&(p.locale=_.n("kevlar_help_use_locale")?_.OY("INNERTUBE_CONTEXT_HL","en"):_.OY("HTML_LANG","en"))},XeQ=function(p,y,l){var q=p.productData;
delete q.origin;q.device=_.mL();var t;a:{if(t=document.createElement("canvas")){var E=t.getContext("experimental-webgl",{stencil:!0});if(E){var e=E.getExtension("WEBGL_debug_renderer_info");if(e){t=E.getParameter(e.UNMASKED_RENDERER_WEBGL);break a}}if(E=t.getContext("webgl")){t=E.getParameter(E.RENDERER);break a}}t=null}q.gpu=t;q.isSDC=!!_.OY("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(t=_.OY("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.Ts.extend(q,t);_.rDt(y,q);_.SDL(q);(p=_.jN(p.element,"yt-get-autonav-pause-debug-state"))&&
p.length&&(q.autonav_pause_state=p[0]);p=_.iz();q.browser_resolution=p.width+"\u00d7"+p.height+"@"+(window.devicePixelRatio||1)+"x";l&&_.Ts.extend(q,l);return q};
BXU.prototype.resetProductData=function(){this.productData={}};var ddP=function(p){this.feedbackManager=new BXU(p)};
ddP.prototype.showFeedbackDialog=function(p,y,l,q){return this.feedbackManager.showFeedbackDialog(p,y,l,q)};
ddP.prototype.showHelpDialog=function(p,y,l){return this.feedbackManager.showHelpDialog(p,y,l)};var OJx=function(){this.baseUrl="";this.aTag=document.createElement("a")},ZQU=function(p,y,l){l=l===void 0?{}:l;
l.pbj||(l.pbj=1);l=_.mru(y,l);p.baseUrl&&l&&!_.cC(l)[1]&&!_.eM(l)&&(y=p.baseUrl,Ec(y,"/")&&(y=y.slice(0,-1)),_.tR(l,"/")&&(l=l.slice(1)),l=y+"/"+l);YX(p.aTag,fO(l||""));return p.aTag.href};
OJx.prototype.fetchData=function(p){return _.VfR(p)};
OJx.prototype.postData=function(p,y){var l={method:"POST"};if(y){for(var q=_.c(Object.keys(y)),t=q.next();!t.done;t=q.next()){t=t.value;var E=y[t];_.yQ(E)&&(y[t]=JSON.stringify(E))}l.postParams=y}return _.VfR(p,l)};
_.M3N=function(p,y,l,q,t){p=ZQU(p,y,l);if(!p)throw q=Error("ei"),Object.assign(q,{params:y}),q;return _.VfR(p,t,q)};
OJx.prototype.requestDataForServiceEndpoint=function(p,y){if(_.G(p,_.jQl))return this.fetchData("/getAccountSwitcherEndpoint");y=y||{};var l=_.G(p,oBr);l?y.se=l.base64EncodedServiceEndpoint:y.sej=JSON.stringify(p);(l=_.B2())&&_.n("enable_service_ajax_csn")&&(y.csn=l);y.theme=_.HI();_.G(p,U9L)&&_.OY("DELEGATION_CONTEXT")&&(y.delegation_context=JSON.stringify(_.OY("DELEGATION_CONTEXT")));l=null;for(var q in p)if(Ec(q,"Endpoint")||Ec(q,"Command")){l=q;break}if(!l){var t=Error("fi");Object.assign(t,{params:p});
_.RWm(t,"WARNING");return new _.Ps(function(e,C){C(t)})}q={name:l};
var E;(l=(E=_.G(p,_.Mn))==null?void 0:E.signal)&&(q.signal=l);(E=_.tJ(window.location.href))&&E.internalcountrycode&&(q.internalcountrycode=E.internalcountrycode);E="/service_ajax";_.n("debug_forward_web_query_parameters")&&(E=_.gwj(E,window.location.search));E=_.JJ(E,q);p.clickTrackingParams&&_.hO(E,{itct:p.clickTrackingParams});return this.postData(E,y)};_.oj$=new _.WE("GFEEDBACK_TOKEN");var zLU;var YjU;var IWV;var pcr;var $u=function(){var p=_.w.apply(this,arguments)||this;p.compact=!1;return p};
_.A($u,_.w);$u.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
$u.prototype.computeHasIcon_=function(p){return!!p};
$u.prototype.isSignInIcon_=function(p){return p=="yt-icons:prompted_sign_in"};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],$u.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.NXi.YtConditionalRendererBehavior),_.x("design:type",Object)],$u.prototype,"ytConditionalRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],$u.prototype,"data",void 0);
_.H([_.Q({computed:"computeIcon_(data.icon)"}),_.x("design:type",Object)],$u.prototype,"icon_",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.x("design:type",Boolean)],$u.prototype,"hasIcon_",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.x("design:type",Boolean)],$u.prototype,"signInIcon_",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],$u.prototype,"compact",void 0);
_.H([_.z9({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],$u);
_.D($u,"yt-player-error-message-renderer",function(){if(pcr===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;IWV===void 0&&(IWV=document.createElement("template"));var q=IWV;l.call(y,q.content.cloneNode(!0),p.content.firstChild);pcr=p}p=pcr;return p},{mode:2});var yWr;var lG$;var jg=function(){return _.w.apply(this,arguments)||this};
_.A(jg,_.w);jg.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
jg.prototype.computeIcon_=function(p){return p?"yt-icons:"+p.iconType.toLowerCase():"error_outline"};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],jg.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],jg.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],jg.prototype,"data",void 0);_.H([_.Q({computed:"computeIcon_(data.icon)"}),_.x("design:type",Object)],jg.prototype,"icon_",void 0);_.H([_.z9({is:"yt-player-kav-renderer",disableElementRegistration:!0})],jg);
_.D(jg,"yt-player-kav-renderer",function(){if(lG$===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-kav-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_kav_renderer.yt.player.kav.renderer.css.js--\x3e<yt-icon icon="[[icon_]]" class="style-scope yt-player-kav-renderer"></yt-icon>\n<div id="info" class="style-scope yt-player-kav-renderer">\n  <div class="reason style-scope yt-player-kav-renderer">[[getSimpleString(data.reason)]]</div>\n  <div class="subreason style-scope yt-player-kav-renderer">[[getSimpleString(data.subreason)]]</div>\n  <yt-formatted-string class="more style-scope yt-player-kav-renderer" text="[[data.learnMore]]"></yt-formatted-string>\n  <div id="button" class="style-scope yt-player-kav-renderer"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;yWr===void 0&&(yWr=document.createElement("template"));var q=yWr;l.call(y,q.content.cloneNode(!0),p.content.firstChild);lG$=p}p=lG$;return p},{mode:2});var NA6=_.c0(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.bp(_.aF(function(p){var y=_.sM("div"),l=_.c(_.nr(0,void 0,"yt0wE")),q=l.next().value,t=l.next().value;l=_.c(_.nr(null,void 0,"CnFp5"));var E=l.next().value,e=l.next().value;_.xZ(function(){Dj6(y.value,t,e);y.value.scrollIntoView()});
l=H1g.bind(null,p.data,q);eW("resize",function(){var C=E();if(q()===1&&C!==null){var u;(u=window.grecaptcha)==null||u.reset(C)}});
return _.R("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.R("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.R("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var C,u;return(C=p.data().accessibility)==null?void 0:(u=C.accessibilityData)==null?void 0:u.label}),_.R(_.CF,{text:l,
className:_.ip("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.R("div",{el:y,class:"ytwPlayerCaptchaViewModelGridItem"})))},"we"),"yt-player-captcha-view-model",{props:{data:_.jw}});var TAt=!1;_.qHV=_.aF(function(p){var y=p.data;return _.R("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.R(_.W,{cond:function(){return y().icon},
then:function(l){return _.R("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.R(_.W$,{data:l,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.R(_.W,{cond:function(){return y().title},
then:function(l){return _.R("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.R(_.CF,{text:l}))}}),_.R(_.W,{cond:function(){return y().description},
then:function(l){return _.R("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.R(_.CF,{text:l}))}}),_.R(_.di,{data:function(){return y().primaryButton}},{buttonViewModel:function(l){return _.R(_.wZ,{data:l.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.R(_.di,{data:function(){return y().secondaryButton}},{buttonViewModel:function(l){return _.R(_.wZ,{data:l.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"xe");
_.qHV.idomCompat=!0;var sIr=_.aF(function(p){var y=p.data;_.t2();return _.R("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.R("div",{class:"player-interstitial-renderer-wiz__scrim"},_.R(_.di,{data:function(){return y().content}},{interstitialViewModel:_.qHV})))},"ye");
sIr.idomCompat=!0;_.bp(sIr,"yt-player-interstitial-renderer",{props:{data:_.Co}});var bu=function(){var p=_.w.apply(this,arguments)||this;p.noBackground=!1;p.compact=!1;p.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return p};
_.A(bu,_.w);bu.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"}}}};
bu.prototype.onUpdatePlayerErrorMessageCommand_=function(p){if(_.G(p,hFQ)){var y;if(p=(y=_.G(p,hFQ))==null?void 0:y.newPlayerErrorMessageRenderer)this.data=p}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],bu.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],bu.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],bu.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],bu.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],bu.prototype,"status",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],bu.prototype,"noBackground",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],bu.prototype,"compact",void 0);_.H([_.z9({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],bu);
var tT$=_.Al()(bu,"yt-playability-error-supported-renderers",function(){if(YjU===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-playability-error-supported-renderers--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_playability_error_supported_renderers.yt.playability.error.supported.renderers.css.js--\x3e<div id="container" class="style-scope yt-playability-error-supported-renderers"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;zLU===void 0&&(zLU=document.createElement("template"));var q=zLU;l.call(y,q.content.cloneNode(!0),p.content.firstChild);YjU=p}p=YjU;return p},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var xju=void 0,fN6=void 0;var djm=new Bgr;var EUP=function(p){this.store=p;this.ern=new _.X9B},GZ_=function(p,y,l){var q,t;
if(!(t=((q=y.playabilityStatus)==null?void 0:q.status)!=="OK")){p=p.store;var E;t=y.offlineState&&((E=y.videoDetails)==null?0:E.videoId)?_.n("enable_pl_r_c_cd")?kAm(p.getState().entities,y.videoDetails.videoId):!!CVt(p.getState().entities,y.videoDetails.videoId):!1}if(t)return!0;t=INL(y);if(t===1){if(_.n("ab_v_vid_sig")){var e,C=(e=y.videoDetails)==null?void 0:e.videoId;if(!C||!l||C!==l){var u;y=new _.SM("282054944_vid",{yR1:l,vNm:(u=y.videoDetails)==null?void 0:u.videoId});_.Bs(y)}}return!0}nmo=
0;var a,m;u=(C=y.auxiliaryUi)==null?void 0:(a=C.messageRenderers)==null?void 0:(m=a.bkaEnforcementMessageViewModel)==null?void 0:m.displayType;if(t!==3&&(u==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||u==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;u={reason:_.ar(_.g$("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.n("ks_something_wrong_learn_more")?C75("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.ar(_.g$("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:_.ar("282054944")};JWO(y,{playerErrorMessageRenderer:u});return!1},Pw_=function(p,y){if(N3g(y)){_.gC(1,!0);
var l=(l=N3g(y))&&_.BAj()?l:void 0;l?(JWO(y,{enforcementMessageViewModel:l}),p.ern.increment("IN_PLAYER"),_.gC(5)):(p.ern.increment("SKIP_DISPLAY"),_.gC(2))}},JWO=function(p,y){p.playabilityStatus=Object.assign({},p.playabilityStatus,{status:"ERROR",
errorScreen:y});p.videoDetails=void 0};
EUP.prototype.handleResponse=function(p,y){if(p.playabilityStatus){var l,q,t,E=(y==null?void 0:(l=y.innerTubeRequest)==null?void 0:l.videoId)||(y==null?void 0:(q=y.innerTubeRequest)==null?void 0:(t=q.playerRequest)==null?void 0:t.videoId);GZ_(this,p,E)&&Pw_(this,p)}};
EUP[RL]=[bW];var bB_=new _.WE("ADBLOCK_DETECTION_SERVICE_TOKEN");var eP=function(p){this.q9r=p};
eP.prototype.bindInnertubeChallengeFetcher=function(p){this.q9r.bicf(p)};
eP.prototype.registerChallengeFetchedCallback=function(p){this.q9r.bcr(p)};
eP.prototype.getLatestChallengeResponse=function(){return this.q9r.blc()};var cWQ;cWQ=_.c0(["https://static.doubleclick.net/instream/ad_status.js"]);_.e6O=_.bz(cWQ);var R6N;_.nk=function(p,y,l){var q=this;this.network=p;this.options=y;this.networkStatusManager=l;this.wH=null;if(y.useBotguardEverywhere){var t=new _.AB;this.wH=t.promise;_.l_.ytAtRC&&_.D6(_.TR,function(){var E,e;return _.h(function(C){if(C.nextAddress==1){if(!_.l_.ytAtRC)return C.return();E=h6N(null);return C.yield(q.lF(E),2)}e=C.yieldResult;_.l_.ytAtRC&&_.l_.ytAtRC(JSON.stringify(e));_.rR(C)})});
s_6().then(function(E){var e,C,u,a;return _.h(function(m){if(m.nextAddress==1)return E.bindInnertubeChallengeFetcher(function(U){return q.lF(h6N(U))}),m.yield($V5(),2);
e=m.yieldResult;C=E.getLatestChallengeResponse();u=C.challenge;if(!u)throw Error("gi");a={challenge:u,ye:c3(u),vm:e,bgChallenge:new EP};t.resolve(a);E.registerChallengeFetchedCallback(function(U){U=U.challenge;if(!U)throw Error("hi");U={challenge:U,ye:c3(U),vm:e,bgChallenge:new EP};q.wH=Promise.resolve(U)});
_.rR(m)})})}else y.preload&&CEr(this,new Promise(function(E){_.rJ(_.TR,function(){E(u8M(q))},0)}))};
R6N=function(p){var y={preload:!0,useBotguardEverywhere:!0},l=!1;if(typeof y==="boolean")var q={preload:y};else typeof y==="undefined"?q={preload:!0}:(q=y,l=!!y.yA1);y=l?void 0:new _.lG;_.nk.instance=new _.nk(p,q,y);return _.nk.instance};
_.nk.prototype.cMf=function(){var p=this;return _.h(function(y){return y.nextAddress==1?y.yield(Promise.race([p.wH,null]),2):y.return(!!y.yieldResult)})};
_.nk.prototype.fCk=function(p,y,l){var q=this,t,E,e;return _.h(function(C){q.wH===null&&CEr(q,u8M(q));t=!1;E={};e=function(){var u,a,m;return _.h(function(U){switch(U.nextAddress){case 1:return U.yield(q.wH,2);case 2:u=U.yieldResult;E.challenge=u.challenge;if(!u.vm){"c1a"in u.ye&&(E.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");U.jumpTo(3);break}a=Object.assign({},{c:u.challenge,e:p},y);_.Ve(U,4);t=!0;return U.yield(u.vm.snapshot({m3:a}),6);case 6:(m=U.yieldResult)?E.webResponse=m:E.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.pK(U,3);break;case 4:_.i6(U),E.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(p==="ENGAGEMENT_TYPE_PLAYBACK"){var b=u.ye,P={};if(b.c6a){var Z=Number(_.OY("DCLKSTAT",0));P.reportingStatus=String(Number(b.c)^(isNaN(Z)?0:Z))}b.c6b&&(P.broadSpectrumDetectionResult=String(Number(b.c)^Number(_.OY("CATSTAT",0))));E.adblockReporting=P}return U.return(E)}})};
return C.return(Promise.race([e(),WhU(l,function(){var u=Object.assign({},E);t&&(u.error="ATTESTATION_ERROR_VM_TIMEOUT");return u})]))})};
var h6N=function(p){var y={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};p&&(y.interpreterHash=p);return y},u8M=function(p,y){y=y===void 0?0:y;
var l,q,t,E,e,C,u,a,m,U,b,P;return _.h(function(Z){switch(Z.nextAddress){case 1:l=h6N(dQU().i51);if(_.n("att_fet_ks"))return _.Ve(Z,7),Z.yield(p.lF(l),9);_.Ve(Z,4);return Z.yield(aGV(p,l),6);case 6:e=Z.yieldResult;t=e.rjt;E=e.j1j;q=e;_.pK(Z,3);break;case 4:return _.i6(Z),_.vs(Error("ii`"+y)),mPx(p,864E5),Z.return({challenge:"",ye:{},vm:void 0,bgChallenge:void 0});case 9:q=Z.yieldResult;if(!q)throw Error("ji");if(!q.challenge)throw Error("ki");t=q.challenge;E=c3(t);if("c1a"in E&&(!q.bgChallenge||!q.bgChallenge.program))throw Error("li");
_.pK(Z,3);break;case 7:C=_.i6(Z);_.vs(C);y++;if(y>=5)return _.vs(Error("ii`"+y)),mPx(p,864E5),Z.return({challenge:"",ye:{},vm:void 0,bgChallenge:void 0});u=1E3*Math.pow(2,y-1)+Math.random()*1E3;return Z.return(new Promise(function(K){_.rJ(_.TR,function(){K(u8M(p,y))},u)}));
case 3:a=qqt(E);mPx(p,a*1E3);m=void 0;if(!("c1a"in E&&q.bgChallenge)){Z.jumpTo(10);break}U=lMj(q.bgChallenge);_.Ve(Z,11);return Z.yield(oIN(dQU(),U),13);case 13:_.pK(Z,12);break;case 11:return b=_.i6(Z),_.vs(b),Z.return({challenge:t,ye:E,vm:m,bgChallenge:U});case 12:return _.Ve(Z,14),m=new _.d5({challenge:U,rVk:{ak:"aGIf"}}),Z.yield(m.f1g,16);case 16:_.pK(Z,10);break;case 14:P=_.i6(Z),_.vs(P),m=void 0;case 10:return Z.return({challenge:t,ye:E,vm:m,bgChallenge:U})}})};
_.nk.prototype.lF=function(p){var y=this,l;return _.h(function(q){l=y.networkStatusManager;if(!l||l.isNetworkAvailable())return q.return(y.network.lF(p));_.X_("att_pna",void 0,"attestation_challenge_fetch");return q.return(new Promise(function(t){l.listenOnce("publicytnetworkstatus-online",function(){y.network.lF(p).then(t)})}))})};
var UPU=function(p){if(!p)throw Error("ji");if(!p.challenge)throw Error("ki");var y=p.challenge,l=c3(y);if("c1a"in l&&(!p.bgChallenge||!p.bgChallenge.program))throw Error("li");return Object.assign({},p,{rjt:y,j1j:l})},aGV=function(p,y){var l,q,t,E,e;
return _.h(function(C){switch(C.nextAddress){case 1:l=void 0,q=0,t={};case 2:if(!(q<5)){C.jumpTo(4);break}if(!(q>0)){C.jumpTo(5);break}t.oX1=1E3*Math.pow(2,q-1)+Math.random()*1E3;return C.yield(new Promise(function(u){return function(a){_.rJ(_.TR,function(){a(void 0)},u.oX1)}}(t)),5);
case 5:return _.Ve(C,7),C.yield(p.lF(y),9);case 9:return E=C.yieldResult,C.return(UPU(E));case 7:l=e=_.i6(C),e instanceof Error&&_.vs(e);case 8:q++;t={oX1:void 0};C.jumpTo(2);break;case 4:throw l;}})},CEr=function(p,y){p.wH=y},$Pr=function(p){var y,l,q;
return _.h(function(t){if(t.nextAddress==1)return t.yield(Promise.race([p.wH,null]),2);y=t.yieldResult;var E=u8M(p);p.wH=E;(l=y)==null||(q=l.vm)==null||q.dispose();_.rR(t)})},mPx=function(p,y){var l=Date.now()+y,q=function(){var t;
return _.h(function(E){t=l-Date.now();return t<1E3?E.yield($Pr(p),0):(_.rJ(_.TR,q,Math.min(t,6E4)),E.jumpTo(0))})};
q()},WhU=function(p,y){return new Promise(function(l){_.rJ(_.TR,function(){l(y())},p)})};var jIQ=function(){};
jIQ.prototype.processContext=function(p){var y=_.nk.instance;if(!y)return _.hi();var l=hXc(p);return l?new ey(y.fCk(l,Jdl(p),500).then(function(q){var t;(p==null?0:(t=p.innerTubeRequest)==null?0:t.context)||(p.innerTubeRequest.context={});t=p.innerTubeRequest.context;t.request||(t.request={});t.request.attestationResponseData=q})):_.hi()};var biB=function(p){this.innertubeTransportService=p};
biB.prototype.lF=function(p){_.X_("att_fsr",void 0,"attestation_challenge_fetch");return _.pI(this.innertubeTransportService,p,_.hB(_.CAM)).then(function(y){_.X_("att_frr",void 0,"attestation_challenge_fetch");return y})};_.nU$=function(p){this.innertubeTransportService=p};var G0Q=new _.WE("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var PEU=function(){},ZiN=function(p,y,l,q,t){var E=_.OY("YPC_MB_URL");
_.Xgo(E).then(function(){AWi(E,p,y,l,q,t)})},AWi=function(p,y,l,q,t,E){try{var e=payments.business.integration,C=payments.business.integration.Style.create().withMaterialDesignStyle(),u=e.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.n("enable_window_constrained_buy_flow_dialog")&&(u=u.usingPopupStyle("windowConstrained"));E&&(u=u.usingCloseCallback(E));var a=l?l:_.OY("YPC_GB_LANGUAGE"),m=_.OY("SESSION_INDEX");e.bootstrap.fromPaymentsUrl(p);e.bootstrap.asMashupMode(u).usingGaiaIndex(m).usingLocale(a).usingStyle(C).usingDefaultActivityStatusChangeHandler().inStandaloneContext(e.standaloneContextAuthId.forGaia()).purchaseManager(y,function(U){q&&q(U)}).load(void 0,t)}catch(U){throw t&&t(U),_.Bs(U),U;
}};var MTN=new _.WE("PURCHASE_MANAGER_TOKEN");var VTv=function(){var p=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return p.videos},
getContinuationsPresent:function(){return p.continuationsPresent},
setVideos:function(y){p.videos=y},
getRecommendedVideos:function(){return p.recommendedVideos},
setRecommendedVideos:function(y){p.recommendedVideos=y}}};
VTv.prototype.addVideos=function(p){p&&(this.videos=p.filter(function(y){return!!_.u4l(y)}).map(function(y){var l=_.u4l(y);
a:{var q;if(y.playlistVideoRenderer&&((q=y.playlistVideoRenderer)==null?0:q.voteSortTiebreaker))var t=y.playlistVideoRenderer.voteSortTiebreaker;else{if(_.G(y,uW)){var E;if(q=(t=_.G(y,uW))==null?void 0:(E=t.playlistItemData)==null?void 0:E.voteSortTiebreaker){t=q;break a}}t=""}}return{itemId:l,videoId:_.aMj(y),voteCount:_.mq6(y),voteSortTiebreaker:t}}),this.continuationsPresent=!!_.G(p[p.length-1],_.aA))};
var gUr=function(p,y){return p.videos.findIndex(function(l){return l.itemId===y})},QIP=function(p,y){return p.recommendedVideos.findIndex(function(l){return l.itemId===y})},Khx=function(p){p={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:p}}}}};_.WC().resolve(_.aK).resolveCommand(p)};var wcv=function(){VTv.apply(this,arguments)};
_.A(wcv,VTv);
var CUx=function(p,y,l,q){if(!p.parentElem)throw Error("qi");var t=gUr(p,y);t===-1&&(t=QIP(p,y),t=t!==-1?t+p.videos.length:-1);if(t===-1)throw Error("ri");var E=t>=p.videos.length?p.recommendedVideos[t-p.videos.length]:p.videos[t];E.voteCount=l;E.voteSortTiebreaker=Date.now().toString();t>=p.videos.length?p.recommendedVideos.splice(t-p.videos.length,1):p.videos.splice(t,1);var e=p.videos;for(var C=0,u=e.length-1;C<=u;){var a=Math.floor((C+u)/2);if(e[a].voteCount<E.voteCount)u=a-1;else if(e[a].voteCount>E.voteCount)C=
a+1;else{a:{var m=E.voteSortTiebreaker;var U=e[a].voteSortTiebreaker;if(m.length!==U.length)m=m.length>U.length;else{for(var b=0;b<m.length;b++){var P=m.charCodeAt(b),Z=U.charCodeAt(b);if(P>Z){m=!0;break a}if(P<Z)break}m=!1}}m?u=a-1:C=a+1}}e=C;if(e===-1)throw Error("si");p.videos.splice(e,0,E);t!==e&&iiN(p,t,e,y,l,q)},iiN=function(p,y,l,q,t,E){var e,C=(e=p.parentElem)==null?void 0:e.children,u=Math.min(y,l),a=Math.max(y,l);
if(C)for(e=u;e<=a;e++)C[e].style.viewTransitionName="item-"+String(e);document.startViewTransition(function(){if(p.parentElem){var m=p.parentElem.children;if(!(!m||y<0||y>=m.length||l<0||l>=m.length)){var U=m[y];if(U){U.remove();p.showRefreshPill=l>=p.videos.length-1&&p.continuationsPresent;if(!p.showRefreshPill){m=m[l]||null;var b;(b=p.parentElem)==null||b.insertBefore(U,m)}_.Ub(p.parentElem,"yt-update-video-data-voting-animation",{toIdx:l,itemId:q,newVoteCount:t,voteStatus:E,hideItem:p.showRefreshPill})}}}}).finished.then(function(){if(C)for(var m=
u;m<=a;m++)C[m].style.viewTransitionName="";
if(p.showRefreshPill)Khx(_.g$("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var U;if(U=m=(U=p.parentElem)==null?void 0:U.children[l])U=m.getBoundingClientRect(),m=U.bottom,U=!(U.top>=0&&m<=p.clientHeight);U&&(U=_.Qt(y>l?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(y-l)),Khx(U))}})};var FhO=function(p,y){var l=this;p?this.innertubeTransportServicePromise=Promise.resolve(p):y&&(this.innertubeTransportServicePromise=y(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new Ee(3E3,function(q){return rWP(l,q)},0);
this.validateMiniAppVideoIdRateLimiter=new Ee(3E3,function(q){return SHO(l,q)},1)},RLU=function(p,y){p.JSC$17055_miniAppId=y;
p.reportMiniAppValueRateLimiter=new Ee(3E3,function(l){return rWP(p,l)},0);
p.validateMiniAppVideoIdRateLimiter=new Ee(3E3,function(l){return SHO(p,l)},1)},aWr=function(p,y){var l;
return _.h(function(q){if(q.nextAddress==1)return q.yield(p.reportMiniAppValueRateLimiter.call(y),2);l=q.yieldResult;return q.return([l,y])})},rWP=function(p,y){var l,q,t,E,e,C,u;
return _.h(function(a){switch(a.nextAddress){case 1:return a.yield(p.innertubeTransportServicePromise,2);case 2:return l=a.yieldResult,q=_.hB(UIU),t=Date.now(),E={externalPostId:p.JSC$17055_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(t/1E3),nanos:Math.round(t%1E3*1E6)},intValue:""+y}},_.Ve(a,3),a.yield(_.pI(l,E,q),5);case 5:e=a.yieldResult;_.pK(a,4);break;case 3:throw C=_.i6(a),C;case 4:if(e){if("error"in e&&e.error)throw e.error;if(e.errorMetadata)throw Error("ti`"+
e.errorMetadata.status);if(u=e.userStatResult)return a.return(u);throw Error("ui");}throw Error("vi");}})},Udv=function(p){var y,l,q,t,E;
_.h(function(e){switch(e.nextAddress){case 1:return e.yield(p.innertubeTransportServicePromise,2);case 2:return y=e.yieldResult,l=_.hB(UIU),q={externalPostId:p.JSC$17055_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.Ve(e,3),e.yield(_.pI(y,q,l),5);case 5:t=e.yieldResult;_.pK(e,4);break;case 3:throw E=_.i6(e),E;case 4:if(t==null)throw Error("vi");if("error"in t&&t.error)throw t.error;if(t.errorMetadata)throw Error("ti`"+t.errorMetadata.status);_.rR(e)}})};
FhO.prototype.flush=function(){var p=this;return _.h(function(y){return y.nextAddress==1?y.yield(p.reportMiniAppValueRateLimiter.flush(),2):y.yield(p.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var md$=function(p,y){return _.h(function(l){return l.nextAddress==1?l.yield(p.validateMiniAppVideoIdRateLimiter.call(y),2):l.return(l.yieldResult)})},SHO=function(p,y){var l,q,t,E,e,C;
return _.h(function(u){switch(u.nextAddress){case 1:return u.yield(p.innertubeTransportServicePromise,2);case 2:return l=u.yieldResult,q=_.hB(ecQ),t={videoId:y},_.Ve(u,3),u.yield(_.pI(l,t,q),5);case 5:E=u.yieldResult;_.pK(u,4);break;case 3:throw e=_.i6(u),e;case 4:if(E){if("error"in E&&E.error)throw E.error;if(E.errorMetadata)throw Error("ti`"+E.errorMetadata.status);if(C=E.playabilityStatus)return u.return(C.status);throw Error("wi");}throw Error("vi");}})};
FhO[RL]=[_.RK(_.XC),_.RK(HHM)];var LhU=function(){this.clientData=new Map};
LhU.prototype.getData=function(p){return this.clientData.get(p)};var k0Q=function(p){this.store=p};
k0Q.prototype.handleResponse=function(p){(p=_.G(p.frameworkUpdates,uj))&&_.Qj(p,this.store)};
k0Q[RL]=[_.yF];var NfZ=new _.WE("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var DPV={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var Hi$=new _.WE("ICON_SET_TOKEN"),Tfv=new _.WE("ICON_URL_PROVIDER_TOKEN"),xPx=new _.WE("PREFETCH_ICONS_TOKEN"),Bfx=new _.WE("ICON_MAP_FN_TOKEN");var GG={},fGP=(GG.ACCESS_TIME="clock",GG.ACCOUNT_BOX="person_account",GG.ACCOUNT_BOX_CAIRO="person_account_cairo",GG.ACCOUNT_CIRCLE="person_circle",GG.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",GG.ACCOUNT_LINKED="account_link_success",GG.ACCOUNT_UNLINKED="account_link",GG.ADD_FRIEND="people",GG.ADD_MODERATOR="shield_add",GG.ADD_TO_LIBRARY="bookmark",GG.ADD_TO_PLAYLIST="add",GG.ADD_TO_QUEUE_TAIL="list_queue",GG.ADD_TO_REMOTE_QUEUE="list_music",GG.ADD_TO_WATCH_LATER="clock",GG.ADD_VIDEO_LINK="film_strip_add",
GG.ALERT_WARN_RED="alert_triangle",GG.ARROW_BACK="arrow_left",GG.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",GG.ARROW_DROP_DOWN="chevron_down",GG.ARROW_DROP_UP="chevron_up",GG.ARROW_FORWARD="arrow_right",GG.AUDIOTRACK="audio",GG.AUTO_AWESOME="sparkle",GG.AVATAR_ANONYMOUS="person_circle",GG.AVATAR_LOGGED_OUT="person_circle",GG.BACK="arrow_left",GG.BAR_CHART="bar_graph",GG.BLOCK="slash_circle_left",GG.BLOCK_USER="slash_circle_left",GG.BOOKMARK_BORDER="bookmark",GG.BREAKING_NEWS_ALT_1="article_alert",
GG.BROADCAST_CAIRO="podcast_cairo",GG.BUG_REPORT="bug",GG.CAMERA_ALT="camera",GG.CAMPAIGN="megaphone",GG.CANCEL="x_circle",GG.CAPTIONS="closed_caption",GG.CAST_OUTLINE="chromecast",GG.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",GG.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",GG.CHAT="message_bubble_left",GG.CHAT_BUBBLE="message_bubble_empty",GG.CHAT_SPARK="spark_message_bubble_left",GG.CHECK_BOX_OUTLINE_BLANK="box_empty",GG.CHECK_CIRCLE_OUTLINE="check_circle",GG.CHECK_CIRCLE_THICK="check_circle",GG.CLARIFY=
"article_clarify",GG.CLOSED_CAPTION_SELECTED="closed_caption",GG.CLOSE="x_mark",GG.CLOUD_UPLOAD="cloud_arrow_up",GG.COLLAPSE="chevron_up",GG.COLLAPSE_CAIRO="chevron_up_cairo",GG.COLLECTION="layers",GG.COLOR_LENS="palette",GG.COMMENT="message_bubble_right",GG.CONSENT_SHIELD="person_shield",GG.CONTENT_CUT="scissors",GG.CONTENT_CUT_CAIRO="scissors_cairo",GG.COURSE=_.n("web_enable_course_icon_update")?"creator_academy":"lightbulb",GG.COURSE_CAIRO=_.n("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",GG.CREATION_LIVE="radar_live",GG.CREATION_POST="box_pencil",GG.CREATION_UPLOAD="my_videos",GG.CREATION_UPLOAD_RED="upload",GG.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",GG.CREATOR_STUDIO="youtube_studio",GG.DASHBOARD="grid_asymmetrical",GG.DELETE="trash_can",GG.DELETE_SWEEP="trash_can",GG.DESKTOP="laptop",GG.DISLIKE="thumb_down",GG.DISLIKE_SELECTED="thumb_down",GG.DISMISSAL="x_mark",GG.DISMISS_QUEUE="list_remove",GG.DONE_ALL="check_double",GG.DOWN_ARROW="arrow_down",GG.DO_NOT_DISTURB=
"slash_circle_left",GG.DRAFT="paper_corner_folded",GG.DRAG_HANDLE="bars_2",GG.EDIT="pencil",GG.EMOJI="face_very_happy",GG.EMOJI_FLAGS="flag",GG.EMOJI_OBJECTS="lightbulb",GG.EMOJI_PEOPLE="face_very_happy",GG.EMOJI_RECENT="clock",GG.EMPTY_HEART="heart",GG.EMPTY_LIKE="thumb_up",GG.ERROR_BLACK="alert_circle",GG.ERROR_OUTLINE="alert_circle",GG.EXIT_APP="arrow_in",GG.EXIT_TO_APP="arrow_in",GG.EXPAND="chevron_down",GG.EXPAND_ALL="chevron_expand",GG.EXPAND_CAIRO="chevron_down_cairo",GG.EXPAND_LESS="chevron_up",
GG.EXPAND_MORE="chevron_down",GG.EXPLORE="compass",GG.EXPLORE_DESTINATION="compass",GG.EXTERNAL_LINK="open_new",GG.FAB_UPLOAD="upload",GG.FACE_HAPPY_OUTLINE="face_happy",GG.FACT_CHECK="article_check",GG.FASHION_LOGO="fashion",GG.FASHION_LOGO_CAIRO="fashion_cairo",GG.FAVORITE="heart",GG.FEEDBACK="message_bubble_alert",GG.FEEDBACK_CAIRO="message_bubble_alert_cairo",GG.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",GG.FILL_ARROW_SOLID_UP_16="arrow_solid_up",GG.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
GG.FILTER="menu_filter",GG.FIRST_PAGE="chevron_first",GG.FLAG="flag",GG.FULL_HEART="heart",GG.GAME_CONSOLE_DPAD="game_console_dpad",GG.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",GG.GAMING_LOGO="gaming",GG.GAMING_LOGO_CAIRO="gaming_cairo",GG.GO_TO_PAGE="arrow_right",GG.GROUPS="people_group",GG.HAPPY="face_happy",GG.HEALTH_AND_SAFETY="shield_plus",GG.HELP="question_circle",GG.HELP_CAIRO="question_circle_cairo",GG.HELP_OUTLINE="question_circle",GG.HIDE="slash_circle_left",GG.IMAGE="image",
GG.INFINITY_ICON="infinity",GG.INFO="info_circle",GG.INFO_OUTLINE="info_circle",GG.INSERT_CHART="bar_graph_box_vertical",GG.INSERT_CHART_OUTLINED="bar_graph_box_vertical",GG.INSERT_PHOTO="image",GG.KEEP="pin",GG.KEEP_OFF="pin_off",GG.KEYBOARD="keyboard",GG.KEYBOARD_ARROW_DOWN="chevron_down",GG.KEYBOARD_ARROW_UP="chevron_up",GG.KIDS_BLOCK="slash_circle_left",GG.LANGUAGE="globe",GG.LAST_PAGE="chevron_last",GG.LAUNCH="open_new",GG.LEARNING="lightbulb",GG.LEARNING_CAIRO="lightbulb_cairo",GG.LIBRARY_ADD=
bNj("library_add"),GG.LIBRARY_OUTLINE="library",GG.LIBRARY_REMOVE=bNj(),GG.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",GG.LIKES_PLAYLIST="thumb_up",GG.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",GG.LIKE="thumb_up",GG.LIKE_SELECTED="thumb_up",GG.LIVE="radar_live",GG.LIVE_CAIRO="radar_live_cairo",GG.LIVE_UNLISTED="link",GG.LOCATION_ON="location_point",GG.LOCATION_PIN="location_point",GG.LOOP="arrow_repeat",GG.LOOP_ACTIVE="arrow_repeat",GG.LOOP_ONE="arrow_repeat_1",GG.LOOP_ONE_ACTIVE="arrow_repeat_1",GG.MEH=
"face_meh",GG.MEMBERS_ONLY_MODE_OFF="message_bubble_left",GG.MESSAGE="message_bubble_left",GG.MICROPHONE_ON="mic",GG.MIX="youtube_mix",GG.MONETIZATION_ON="dollar_sign_circle",GG.MONEY_FILL="dollar_sign_container",GG.MONEY_FILL_JPY="yen_sign_container",GG.MONEY_HEART="dollar_sign_heart",GG.MORE_HORIZ="overflow_horizontal",GG.MORE_VERT="overflow_vertical",GG.MUSIC="audio",GG.MUSIC_CAIRO="audio_cairo",GG.MUSIC_NOTE_SYMBOL="music",GG.MUSIC_SHUFFLE="arrow_shuffle",GG.MY_CHANNEL="person_circle",GG.MY_LOCATION=
"location_point",GG.NEWS_STORY="news",GG.NEXT="chevron_right",GG.NOTIFICATIONS="bell",GG.NOTIFICATIONS_ACTIVE="bell_on",GG.NOTIFICATIONS_CAIRO="bell_cairo",GG.NOTIFICATIONS_DONE_CHECKMARK="check",GG.NOTIFICATIONS_INBOX="bell",GG.NOTIFICATIONS_NONE="bell",GG.NOTIFICATIONS_OFF="bell_off",GG.NOT_INTERESTED="slash_circle_left",GG.OFFICIAL_ARTIST_BADGE="audio",GG.OFFLINE_CLOUD="cloud_off",GG.OFFLINE_DOWNLOAD="download",GG.OFFLINE_DOWNLOAD_CAIRO="download_cairo",GG.OFFLINE_PAUSE="pause",GG.OPEN_IN_NEW=
"open_new",GG.OUTLINE_ADJUST="adjust",GG.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",GG.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",GG.OUTLINE_BAG="bag",GG.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",GG.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",GG.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",GG.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",GG.PAID="dollar_sign",GG.PAUSE_OUTLINED="pause",GG.PAYMENT="credit_card",GG.PERSON_RADAR_FILLED="person_radar",GG.PHONE_DOWNLOAD="mobile_download",
GG.PLAYABLES_LOGO="tic_tac_toe",GG.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",GG.PLAYLISTS="list_play_arrow",GG.PLAYLISTS_CAIRO="list_play_arrow_cairo",GG.PLAYLIST_ADD=bNj("list_add"),GG.PLAYLIST_ADD_CHECK="bookmark",GG.PLAYLIST_PLAY="list_play_arrow",GG.PLAY_ALL="play_arrow",GG.PLAY_CIRCLE="play_arrow_circle",GG.PLAY_OUTLINED="play_arrow_circle",GG.PRIVACY_INFO="shield",GG.PRIVACY_PRIVATE="lock",GG.PRIVACY_PUBLIC="earth",GG.PRIVACY_UNLISTED="link",GG.PROMOTE="megaphone",GG.PURCHASES="price_tag",GG.PURCHASE_SUPER_CHAT=
"super_chat",GG.PURCHASE_SUPER_STICKER="super_sticker",GG.QUESTION_ANSWER="message_bubble_question",GG.QUEUE_PLAY_LAST="list_queue_last",GG.QUEUE_PLAY_NEXT="list_play_arrow",GG.REMIX_FILLED="youtube_shorts_remix",GG.REMOVE="bar_circle",GG.REMOVE_CIRCLE="bar_circle",GG.REMOVE_CIRCLE_OUTLINE="bar_circle",GG.REMOVE_DONE="check_double_off",GG.REMOVE_FROM_HISTORY="bar_circle",GG.REMOVE_FROM_PLAYLIST="bar_circle",GG.REMOVE_MODERATOR="shield_off",GG.REPLAY="arrow_circle",GG.REPLAY_10="skip_back_10",GG.REPORT_PROBLEM=
"alert_triangle",GG.SAD="face_sad",GG.SAVE_PLAYLIST="bookmark",GG.SCHEDULE="clock",GG.SCHOOL="creator_academy",GG.SCREEN_FULLSCREEN="screen_full",GG.SEARCH_HISTORY="arrow_time",GG.SELL="price_tag",GG.SETTINGS="gear",GG.SETTINGS_CAIRO="gear_cairo",GG.SETTINGS_LIGHT="gear",GG.SETTINGS_MATERIAL="gear",GG.SHARE_ARROW="share",GG.SHIELD_WITH_AVATAR="person_shield",GG.SHOPPING_BAG="bag",GG.SHOPPING_BAG_CAIRO="bag_cairo",GG.SHOPPING_CART="cart",GG.SHORTS_COMMENT="youtube_shorts_message_bubble_right",GG.SHORTS_DISLIKE=
"youtube_shorts_thumb_down",GG.SHORTS_LIKE="youtube_shorts_thumb_up",GG.SHORTS_SHARE="youtube_shorts_share",GG.SHUFFLE="arrow_shuffle",GG.SLOW_MODE_OFF="message_bubble_left",GG.SOCIAL="people",GG.SORT="menu_sort",GG.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",GG.SPEED_1X="1x",GG.SPEED_1_POINT_2X="1_point_2x",GG.SPEED_1_POINT_5X="1_point_5x",GG.SPEED_1_POINT_8X="1_point_8x",GG.SPEED_2X="2x",GG.SPEED_POINT_2X="point_2x",GG.SPEED_POINT_8X="point_8x",GG.SPONSORSHIP_STAR=_.n("web_sponsorship_star_icon_killswitch")?
"memberships":"star_circle",GG.STAFF_PICK="spotlight",GG.START_DVR="add",GG.STAR_BORDER="star",GG.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",GG.STICKER_EMOTICON="face_happy",GG.STOP_DVR="stop",GG.SUBSCRIBE="youtube_logo_icon",GG.SUBSCRIBE_PLUS="add_cairo",GG.SUBSCRIPTION_MANAGER="gear",GG.SUPERVISOR_ACCOUNT="people",GG.SUPER_CHAT_FOR_GOOD="hands_heart",GG.SWAP_HORIZ="arrow_swap_horizontal",GG.SWITCH_ACCOUNTS="person_account",GG.TAB_ACCOUNT="person",GG.TAB_ACTIVITY="bell",GG.TAB_BOOKMARK="bookmark",
GG.TAB_EXPLORE="compass",GG.TAB_HOME="home",GG.TAB_HOME_CAIRO="home_cairo",GG.TAB_INBOX="mail",GG.TAB_LIKED="thumb_up",GG.TAB_MUSIC_PREMIUM="youtube_music",GG.TAB_SHORTS="youtube_shorts",GG.TAB_SHORTS_CAIRO="youtube_shorts_cairo",GG.TAB_SUBSCRIPTIONS="subscriptions",GG.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",GG.TAB_TRENDING="fire",GG.TIMER="stopwatch",GG.TRAILER="youtube_originals",GG.TRENDING="fire",GG.TRENDING_CAIRO="fire_cairo",GG.TRENDING_UP="rating_up",GG.TROPHY="trophy",GG.TROPHY_CELEBRATIONS=
"fireworks",GG.TUNE="adjust",GG.UNBLOCK_USER="bar_circle",GG.UNLIMITED="youtube_logo_icon",GG.UNPLUGGED_LIVE_GUIDE="radar_live",GG.UNPLUGGED_SPORTS="eye_off",GG.UPLOADS="library",GG.UP_ARROW="arrow_up",GG.VERTICAL_ALIGN_BOTTOM="download",GG.VERY_HAPPY="face_very_happy",GG.VERY_SAD="face_very_sad",GG.VIDEOGAME_ASSET="gaming",GG.VIDEOS="play_arrow_circle",GG.VIDEO_CALL="video_camera_add",GG.VIDEO_LIBRARY_WHITE="library",GG.VIDEO_YOUTUBE="youtube_logo_icon",GG.VIEW_LIST="list_view",GG.VIEW_LIST_CAIRO=
"list_view_cairo",GG.VISIBILITY="eye",GG.VISIBILITY_OFF="eye_off",GG.VOLUME_MUTE="volume_off",GG.VOLUME_UP="volume_on",GG.WALLPAPER="image",GG.WARNING="alert_triangle",GG.WATCH_HISTORY="arrow_time",GG.WATCH_HISTORY_CAIRO="arrow_time_cairo",GG.WATCH_LATER="clock",GG.WATCH_LATER_CAIRO="clock_cairo",GG.WATCH_RELATED_MIX="youtube_mix",GG.WHAT_TO_WATCH="home",GG.YOUTUBE_MUSIC_MONOCHROME="youtube_music",GG.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",GG.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
GG.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",GG.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",GG.YT_OUTLINE_MUSIC_24="music",GG);var Pw={},vUV=(Pw.ACCESS_TIME="clock",Pw.ACCOUNT_BOX="person_square",Pw.ACCOUNT_BOX_CAIRO="person_square",Pw.ACCOUNT_CIRCLE="person_circle",Pw.ACCOUNT_CIRCLE_CAIRO="person_circle",Pw.ACCOUNT_LINKED="account_link",Pw.ACCOUNT_UNLINKED="account_link",Pw.ADD_CIRCLE="add_circle",Pw.ADD_FRIEND="person_child",Pw.ADD_TO_LIBRARY="bookmark",Pw.ADD_TO_PLAYLIST="add",Pw.ADD_TO_QUEUE_TAIL="queue",Pw.ADD_TO_REMOTE_QUEUE="playlist_audio",Pw.ADD_TO_WATCH_LATER="clock",Pw.ADD_VIDEO_LINK="film_strip_add",Pw.ADMIN_PANEL_SETTINGS=
"person_gear",Pw.ALERT_WARN_RED="alert_triangle",Pw.ALIGN_LEFT="text_align_left",Pw.ARROWS_ALERT="arrow_split_alert",Pw.ARROW_BACK="arrow_left",Pw.ARROW_CIRCLE="arrow_counterclockwise",Pw.ARROW_CIRCLE_PLAY="replay",Pw.ARROW_CIRCLE_RIGHT="arrow_clockwise",Pw.ARROW_DIAGONAL="arrow_up_left",Pw.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Pw.ARROW_DROP_DOWN="triangle_down",Pw.ARROW_DROP_UP="triangle_up",Pw.ARROW_FORWARD="arrow_right",Pw.ARROW_PAUSE="pause_history",Pw.ARROW_UNDO="undo",Pw.ARTICLE="text_page",
Pw.ARTICLE_ALERT="text_page_alert",Pw.ARTICLE_CHECK="text_page_check",Pw.ARTICLE_CLARIFY="text_page_info",Pw.AUDIOTRACK="audio",Pw.AUDIO_BADGE="audio_badge",Pw.AUDIO_SURROUND="surround_sound",Pw.AVATAR_ANONYMOUS="person_circle",Pw.AVATAR_LOGGED_OUT="person_circle",Pw.BACK="arrow_left",Pw.BAR_CHART="chart_bar",Pw.BAR_CIRCLE="minus_circle",Pw.BAR_HORIZONTAL="minus",Pw.BLOCK="circle_slash",Pw.BLOCK_USER="circle_slash",Pw.BOOKMARK_BORDER="bookmark",Pw.BOX_OPEN_CHECK="quiz",Pw.BOX_PENCIL="square_pencil",
Pw.BREAKING_NEWS_ALT_1="text_page_alert",Pw.BROADCAST="podcast",Pw.BROADCAST_CAIRO="podcast",Pw.BUG_REPORT="bug",Pw.CAMERA_ALT="camera",Pw.CAMPAIGN="megaphone",Pw.CANCEL="x_circle",Pw.CAPTIONS="closed_captions",Pw.CAST_ICON="chromecast",Pw.CAST_OUTLINE="chromecast",Pw.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Pw.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",Pw.CHAT="text_bubble",Pw.CHAT_BUBBLE="bubble",Pw.CHECK_BOX="check_square",Pw.CHECK_BOX_OUTLINE_BLANK="square",Pw.CHECK_CIRCLE_FILLED="check_circle",
Pw.CHECK_CIRCLE_OUTLINE="check_circle",Pw.CHECK_CIRCLE_THICK="check_circle",Pw.CHECK_DOUBLE="check_done",Pw.CHECK_DOUBLE_OFF="check_done_slash",Pw.CHEVRON_LEFT="chevron_left",Pw.CHEVRON_RIGHT="chevron_right",Pw.CHEVRON_RIGHT_CAIRO="chevron_right",Pw.CIRCLES_OVERLAP="account_link",Pw.CLAPPERBOARD_CAIRO="clapperboard",Pw.CLARIFY="text_page_info",Pw.CLOCK_ARROWS="clock_split",Pw.CLOCK_ARROWS_ALERT="clock_split_alert",Pw.CLOSED_CAPTION="closed_captions",Pw.CLOSED_CAPTION_SELECTED="closed_captions",Pw.CLOSE=
"x",Pw.CLOUD_UPLOAD="cloud_arrow_up",Pw.COLLAPSE="chevron_up",Pw.COLLAPSE_CAIRO="chevron_up",Pw.COLLECTION="square3d_stack",Pw.COLOR_LENS="paint_palette",Pw.COMMENT="text_bubble",Pw.CONSENT_SHIELD="person_shield",Pw.CONTENT_CUT="scissors",Pw.CONTENT_CUT_CAIRO="scissors",Pw.COURSE="graduation_cap",Pw.COURSE_CAIRO="graduation_cap",Pw.CREATION_LIVE="live",Pw.CREATION_POST="square_pencil",Pw.CREATION_UPLOAD="video",Pw.CREATION_UPLOAD_RED="upload",Pw.CREATOR_ACADEMY="graduation_cap",Pw.CREATOR_STUDIO=
"youtube_studio",Pw.DARK_THEME="theme",Pw.DELETE="trash_can",Pw.DELETE_SWEEP="trash_can",Pw.DESKTOP="laptop",Pw.DISLIKE="thumb_down",Pw.DISLIKE_SELECTED="thumb_down",Pw.DISMISSAL="x",Pw.DISMISS_QUEUE="playlist_x",Pw.DOGFOOD="pawprint",Pw.DOLLAR_SIGN="dollar_sign_circle",Pw.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Pw.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Pw.DOWN_ARROW="arrow_down",Pw.DO_NOT_DISTURB="circle_slash",Pw.DRAFT="document",Pw.EARTH="globe",Pw.EDIT="pencil",Pw.EMOJI="face_very_happy",
Pw.EMOJI_FLAGS="flag",Pw.EMOJI_OBJECTS="lightbulb",Pw.EMOJI_PEOPLE="face_very_happy",Pw.EMOJI_RECENT="clock",Pw.EMPTY_HEART="heart",Pw.EMPTY_LIKE="thumb_up",Pw.ERROR_BLACK="alert_circle",Pw.ERROR_OUTLINE="alert_circle",Pw.ERROR_WHITE="alert_circle",Pw.EXIT_APP="arrow_in",Pw.EXIT_TO_APP="arrow_in",Pw.EXPAND="chevron_down",Pw.EXPAND_ALL="chevron_expand",Pw.EXPAND_CAIRO="chevron_down",Pw.EXPAND_LESS="chevron_up",Pw.EXPAND_MORE="chevron_down",Pw.EXPLORE="compass",Pw.EXPLORE_DESTINATION="compass",Pw.EXTERNAL_LINK=
"arrow_up_right",Pw.EYE_OFF="eye_slash",Pw.FAB_UPLOAD="upload",Pw.FACE_HAPPY_OUTLINE="face_happy",Pw.FACE_MEH="face_neutral",Pw.FACT_CHECK="text_page_check",Pw.FASHION_LOGO="fashion",Pw.FASHION_LOGO_CAIRO="fashion",Pw.FAVORITE="thumb_up",Pw.FEEDBACK="alert_bubble",Pw.FEEDBACK_CAIRO="alert_bubble",Pw.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",Pw.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Pw.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Pw.FLAG_CAIRO="flag",Pw.FLASH_OFF="flash_slash",Pw.FLASH_ON="flash",
Pw.FULL_HEART="heart",Pw.GAMING_LOGO="gaming",Pw.GAMING_LOGO_CAIRO="gaming",Pw.GO_TO_PAGE="arrow_right",Pw.GROUPS="person3",Pw.HAND_SWIPE_LEFT="gesture_swipe_left",Pw.HAND_SWIPE_RIGHT="gesture_swipe_right",Pw.HAPPY="face_happy",Pw.HEALTH_AND_SAFETY="shield_health",Pw.HEART_BOX="heart_cube",Pw.HELP="help_circle",Pw.HELP_CAIRO="help_circle",Pw.HELP_OUTLINE="help_circle",Pw.HIDE="circle_slash",Pw.INCOGNITO_CAIRO="incognito",Pw.INFINITY_ICON="infinity",Pw.INFO="info_circle",Pw.INFO_OUTLINE="info_circle",
Pw.INSERT_CHART="chart_bar_square",Pw.INSERT_CHART_OUTLINED="chart_bar_square",Pw.INSERT_PHOTO="image",Pw.KEEP="pin",Pw.KEEP_OFF="pin_slash",Pw.KEYBOARD="keyboard",Pw.KEYBOARD_ARROW_DOWN="chevron_down",Pw.KEYBOARD_ARROW_UP="chevron_up",Pw.KIDS_BLOCK="circle_slash",Pw.LANGUAGE="globe",Pw.LAUNCH="arrow_up_right",Pw.LEARNING="lightbulb",Pw.LEARNING_CAIRO="lightbulb",Pw.LIBRARY_ADD="bookmark",Pw.LIBRARY_IMAGE="image_stack",Pw.LIBRARY_MUSIC="audio_square_stack",Pw.LIBRARY_OUTLINE="play_square_stack",Pw.LIBRARY_REMOVE=
"bookmark",Pw.LIBRARY_SAVED="check_square_stack",Pw.LIKES_PLAYLIST="thumb_up",Pw.LIKES_PLAYLIST_CAIRO="thumb_up",Pw.LIKE="thumb_up",Pw.LIKE_SELECTED="thumb_up",Pw.LIST_QUEUE="queue",Pw.LIVE_CAIRO="live",Pw.LIVE_UNLISTED="link",Pw.LOCATION_ON="location_pin",Pw.LOCATION_PIN="location_pin",Pw.LOCATION_POINT="location_pin",Pw.LOOP="repeat",Pw.LOOP_ACTIVE="repeat",Pw.LOOP_ONE="repeat1",Pw.LOOP_ONE_ACTIVE="repeat1",Pw.MEET="google_meet",Pw.MEH="face_neutral",Pw.MEMBERSHIPS="memberships",Pw.MEMBERS_ONLY_MODE_OFF=
"text_bubble",Pw.MENU_FILTER="filter",Pw.MESSAGE="text_bubble",Pw.MESSAGE_BUBBLE_GEAR="bubble_gear",Pw.MESSAGE_BUBBLE_LEFT="text_bubble",Pw.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Pw.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Pw.MESSAGE_BUBBLE_QUESTION="help_bubble",Pw.MICROPHONE_ON="mic",Pw.MONETIZATION_ON="dollar_sign_circle",Pw.MONEY_FILL="dollar_sign_rectangle",Pw.MONEY_FILL_JPY="yen_sign_rectangle",Pw.MONEY_HAND="dollar_sign_circle_hand",Pw.MONEY_HEART="dollar_sign_heart",Pw.MOON_Z="sleep_timer",
Pw.MORE_HORIZ="overflow_horizontal",Pw.MORE_VERT="overflow_vertical",Pw.MUSIC="audio",Pw.MUSIC_CAIRO="audio",Pw.MUSIC_EXPLICIT_BADGE="explicit",Pw.MUSIC_NEW_RELEASE="audio_badge",Pw.MUSIC_NOTE_SYMBOL="audio",Pw.MUSIC_SCISSORS="audio_scissors",Pw.MUSIC_SHUFFLE="shuffle",Pw.MY_CHANNEL="person_circle",Pw.MY_LOCATION="location_pin",Pw.MY_VIDEOS="video",Pw.MY_VIDEOS_CAIRO="video",Pw.NEWS_CAIRO="news",Pw.NEWS_STORY="news",Pw.NEXT="chevron_right",Pw.NOTE_ADD="bubble_pencil",Pw.NOTIFICATIONS="bell",Pw.NOTIFICATIONS_ACTIVE=
"bell_waves",Pw.NOTIFICATIONS_CAIRO="bell",Pw.NOTIFICATIONS_DONE_CHECKMARK="check",Pw.NOTIFICATIONS_INBOX="bell",Pw.NOTIFICATIONS_NONE="bell",Pw.NOTIFICATIONS_OFF="bell_slash",Pw.NOT_INTERESTED="circle_slash",Pw.OFFICIAL_ARTIST_BADGE="audio",Pw.OFFLINE_CLOUD="cloud_slash",Pw.OFFLINE_DOWNLOAD="download",Pw.OFFLINE_DOWNLOAD_CAIRO="download",Pw.OFFLINE_PAUSE="pause",Pw.OPEN_IN_NEW="arrow_up_right",Pw.OUTLINE_ADJUST="adjust",Pw.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",Pw.OUTLINE_ARROW_SOLID_DOWN_16=
"arrow_solid_down",Pw.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",Pw.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Pw.OUTLINE_BAG="bag",Pw.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",Pw.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Pw.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Pw.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Pw.PAID="dollar_sign_circle",Pw.PAUSE_OUTLINED="pause",Pw.PAYMENT="credit_card",Pw.PEOPLE="person_child",Pw.PEOPLE_2="person2_rectangle",Pw.PEOPLE_GROUP="person3",Pw.PEOPLE_NOTE=
"bubble_asterisk",Pw.PERSON_2="person2",Pw.PERSON_ACCOUNT="person_square_stack",Pw.PERSON_MINUS="person_x",Pw.PERSON_MUSIC="person_audio",Pw.PERSON_RADAR="person_waves",Pw.PERSON_RADAR_FILLED="person_waves",Pw.PERSON_SETTING="person_gear",Pw.PHONE="phone",Pw.PHONE_DOWNLOAD="mobile_arrow_down",Pw.PICTURE_IN_PICTURE="picture_in_picture",Pw.PLAYABLES_LOGO="playables",Pw.PLAYABLES_LOGO_CAIRO="playables",Pw.PLAYLISTS="playlist",Pw.PLAYLISTS_CAIRO="playlist",Pw.PLAYLIST_ADD_CHECK="bookmark",Pw.PLAY_ALL=
"play",Pw.PLAY_ARROW="play",Pw.PLAY_ARROW_CIRCLE="play_circle",Pw.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",Pw.PLAY_CIRCLE="play_circle",Pw.PLAY_OUTLINED="play_circle",Pw.PODCAST_ADD="podcast_add",Pw.PODCAST_CHECK="podcast_check",Pw.PRIVACY_INFO="shield_x",Pw.PRIVACY_PRIVATE="lock",Pw.PRIVACY_PUBLIC="globe",Pw.PRIVACY_UNLISTED="link",Pw.PROMOTE="megaphone",Pw.PURCHASES="price_tag",Pw.PURCHASE_SUPER_CHAT="super_chat",Pw.PURCHASE_SUPER_STICKER="super_sticker",Pw.QUESTION_ANSWER="help_bubble",
Pw.QUESTION_CIRCLE="help_circle",Pw.QUEUE_PLAY_LAST="queue_last",Pw.QUEUE_PLAY_NEXT="playlist",Pw.QUOTATION_MARK="quote",Pw.RADAR_LIVE="live",Pw.REMOVE="minus_circle",Pw.REMOVE_CIRCLE="minus_circle",Pw.REMOVE_CIRCLE_OUTLINE="minus_circle",Pw.REMOVE_FROM_HISTORY="minus_circle",Pw.REMOVE_FROM_PLAYLIST="minus_circle",Pw.REPLAY="arrow_counterclockwise",Pw.REPLAY_10="skip10_back",Pw.REPLAY_ARROW="replay",Pw.REPORT_PROBLEM="alert_triangle",Pw.RSS_OFF="rss_slash",Pw.SAD="face_sad",Pw.SAVE_PLAYLIST="bookmark",
Pw.SCHEDULE="clock",Pw.SCHOOL="graduation_cap",Pw.SCREEN_DEFAULT="player_default",Pw.SCREEN_FULLSCREEN="player_full_enter",Pw.SCREEN_LIGHT="ambient_mode",Pw.SCREEN_ROTATION="rotate_portrait",Pw.SCREEN_SWITCH="player_switch",Pw.SCREEN_THEATRE="player_theater",Pw.SEARCH_CAIRO="search",Pw.SEARCH_HISTORY="history",Pw.SELL="price_tag",Pw.SETTINGS="gear",Pw.SETTINGS_CAIRO="gear",Pw.SETTINGS_LIGHT="gear",Pw.SETTINGS_MATERIAL="gear",Pw.SETTINGS_REMOTE="remote_waves",Pw.SHARE="share",Pw.SHARE_ARROW="share",
Pw.SHARE_CAIRO="share",Pw.SHIELD="shield_x",Pw.SHIELD_OFF="shield_slash",Pw.SHIELD_WITH_AVATAR="person_shield",Pw.SHOPPING_BAG="bag",Pw.SHOPPING_BAG_CAIRO="bag",Pw.SHOPPING_CART="cart",Pw.SHORTS_COMMENT="text_bubble",Pw.SHORTS_DISLIKE="thumb_down",Pw.SHORTS_LIKE="thumb_up",Pw.SHORTS_SHARE="share",Pw.SKIP_FORWARD_30="skip30_forward",Pw.SLASH_CIRCLE_RIGHT="circle_slash",Pw.SLOW_MODE_OFF="text_bubble",Pw.SOCIAL="person_child",Pw.SPARKLE="sparkles",Pw.SPARK_IMAGE="image_spark",Pw.SPARK_RADAR="spark_waves",
Pw.SPARK_VIDEO="video_spark",Pw.SPEAKER_GROUP="speaker_stack",Pw.SPEAKER_OFF="speaker_slash",Pw.SPEED_1X="n1x",Pw.SPEED_1_POINT_2X="n1point2x",Pw.SPEED_1_POINT_5X="n1point5x",Pw.SPEED_1_POINT_8X="n1point8x",Pw.SPEED_2X="n2x",Pw.SPONSORSHIP_STAR="memberships",Pw.SPORTS="basketball",Pw.SPOTLIGHT="spotlight",Pw.STAFF_PICK="spotlight",Pw.START_DVR="add",Pw.STAR_BORDER="star",Pw.STAR_HALF="star_half_filled",Pw.STAR_SHOOTING="hype",Pw.STICKER="sticker",Pw.STICKER_EMOTICON="face_happy",Pw.STOP_DVR="stop",
Pw.SUBSCRIBE="youtube",Pw.SUBSCRIBE_PLUS="add",Pw.SUBSCRIPTION_MANAGER="gear",Pw.SUPERSTAR="super_star",Pw.SUPERVISOR_ACCOUNT="person_child",Pw.SWAP_HORIZ="arrow_swap_horizontal",Pw.SWITCH_ACCOUNTS="person_square_stack",Pw.TAB_ACCOUNT="person",Pw.TAB_ACTIVITY="bell",Pw.TAB_BOOKMARK="bookmark",Pw.TAB_EXPLORE="compass",Pw.TAB_HOME="home",Pw.TAB_HOME_CAIRO="home",Pw.TAB_INBOX="mail",Pw.TAB_LIKED="thumb_up",Pw.TAB_MUSIC_PREMIUM="youtube_music",Pw.TAB_SHORTS="shorts",Pw.TAB_SHORTS_CAIRO="shorts",Pw.TAB_SUBSCRIPTIONS=
"subscriptions",Pw.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Pw.TAB_TRENDING="trending",Pw.TARGET="target",Pw.TARGET_ADD="target_add",Pw.TEMPLATE_ADD="template_add",Pw.TEXT="font",Pw.TIMER="stopwatch",Pw.TRENDING_CAIRO="trending",Pw.TRENDING_UP="arrow_trend_up",Pw.TROPHY_CAIRO="trophy",Pw.TROPHY_CELEBRATIONS="fireworks",Pw.TROPHY_STAR="star_trophy",Pw.TUNE="adjust",Pw.TV_OFF="tv_slash",Pw.UNBLOCK_USER="minus_circle",Pw.UNFAVORITE="thumb_down",Pw.UNLIMITED="youtube",Pw.UNPLUGGED_LIVE_GUIDE="live",Pw.UNPLUGGED_SPORTS=
"eye_slash",Pw.UPLOADS="play_square_stack",Pw.UP_ARROW="arrow_up",Pw.VERTICAL_ALIGN_BOTTOM="chevron_down_end",Pw.VERTICAL_ALIGN_TOP="chevron_up_end",Pw.VERY_HAPPY="face_very_happy",Pw.VERY_SAD="face_very_sad",Pw.VIDEOS="play_circle",Pw.VIDEO_CALL="video_camera_add",Pw.VIDEO_LIBRARY_WHITE="play_square_stack",Pw.VIDEO_QUALITY_4K="n4k",Pw.VIDEO_QUALITY_8K="n8k",Pw.VIDEO_YOUTUBE="youtube",Pw.VIEW_LIST_CAIRO="view_list",Pw.VIEW_MODULE="view_column3_row2",Pw.VISIBILITY="eye",Pw.VISIBILITY_OFF="eye_slash",
Pw.VOLUME_DOWN="volume_min",Pw.VOLUME_MUTE="volume_mute",Pw.VOLUME_OFF="volume_mute",Pw.VOLUME_STABLE="stable_volume",Pw.VOLUME_UP="volume_max",Pw.WALLPAPER="image",Pw.WARNING="alert_triangle",Pw.WATCH_HISTORY="history",Pw.WATCH_HISTORY_CAIRO="history",Pw.WATCH_LATER="clock",Pw.WATCH_LATER_CAIRO="clock",Pw.WATCH_RELATED_MIX="mix",Pw.WHAT_TO_WATCH="home",Pw.YOUTUBE_LINKED_TV="tv_mobile",Pw.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Pw.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Pw.YOUTUBE_SHORTS_ARROW_DOWN=
"arrow_down",Pw.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Pw.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Pw.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Pw.YOUTUBE_SHORTS_OUTLINE_24="shorts",Pw);var Xcr={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,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,7,24],[1,7,24]],arrow_left:[[1,
7,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,11,12],[0,11,16],[0,11,24],[1,11,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,
1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,8,24],[1,8,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
11,12],[0,11,16],[0,11,24],[1,11,16],[1,11,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
6,16,!0],[0,6,18,!0],[0,6,24,!0],[1,6,16,!0],[1,6,18,!0],[1,6,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,9,24],[1,9,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,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,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,10,16],[0,10,24],[1,10,16],[1,10,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,
3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,4,16],[1,4,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,
2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,
2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,
2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note_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,6,24],[1,6,32]],overflow_vertical:[[1,12,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,8,24]],pause_circle:[[0,2,12],
[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,8,18],[1,8,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,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,
2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,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,4,24],[1,4,12],[1,4,16],[1,4,18],[1,4,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,
2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],
scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,
1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,12,24],[1,12,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,11,24,!0],[0,11,32,!0],[1,11,16,!0],[1,11,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,
24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,
1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,5,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,
3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],
speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,5,12],[0,5,16],[0,5,18],[0,5,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,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],
stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,10,24],[1,10,18],[1,10,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],
text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,23,16],[0,23,24],[0,23,36],[1,23,16],[1,23,24],[1,23,36]],thumb_up:[[0,21,16],[0,21,24],[0,21,36],[1,21,16],[1,21,24],[1,21,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],
thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,9,16],[1,9,18],[1,9,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],
[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],
video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,2,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,10,18],[1,10,24]],x_cairo:[[1,1,24]],x_circle:[[1,7,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,
5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,
2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,
2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var dPN={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,
10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,1,24]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,7,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,
2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,2,18],[1,2,24],[1,2,36]],audio:[[0,11,12],[0,11,18],[0,11,
24],[1,11,18],[1,11,24]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,
2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,
1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,
2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,11,18],[1,11,24]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,
1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,6,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,1,24]],chromecast:[[0,9,24],[1,9,24],[1,9,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,
7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,
3,24]],cloud_slash:[[1,1,24]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,
2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,
23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],
face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,
1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,
1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,
1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],
heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,
9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,
1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],
mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,1,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,
2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],
open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,12,24],[1,12,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,8,24],[0,8,36],[1,8,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,
24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,
24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,2,24],[0,2,36],[1,2,24]],play_circle:[[0,1,24],[1,1,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,
2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,2,12],[1,2,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,2,24],[1,2,24],[1,2,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,1,24]],podcast:[[0,4,24],[1,4,18],[1,4,24]],podcast_add:[[0,
2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,
1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],
sd:[[0,3,24],[1,3,24]],search:[[0,12,24],[1,12,24]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,11,24,!0],[1,11,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,
2,24],[1,2,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,1,24]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,1,24]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,
5,24],[1,5,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,
4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,5,18],[0,5,24],[0,5,36],[1,5,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,
24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,10,24],[1,10,24]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,
2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,23,18],[0,23,24],[1,23,18],[1,23,24]],thumb_up:[[0,21,18],[0,21,24],[1,21,18],[1,21,24]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,
1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,
5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],
volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,2,24]],waveform_spark:[[1,2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,10,18],[1,10,24]],x_circle:[[0,7,24],[1,7,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],
[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var OiN={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},A5=function(p){this.iconUrlProvider=p};
A5.prototype.resolveIcon=function(p,y){var l=OiN[p.iconName.toUpperCase()];l&&(p.iconName=l);var q=p.iconName;q=q.replace(/-/g,"_");p=Object.assign({},p,{iconName:this.mapIconTypeToStandardName(q,!!l)||q.toLowerCase()});if(_.n("enable_web_delhi_icons")||l){var t;return $qj(dPN,p,((t=this.iconUrlProvider)==null?void 0:t.getYtStandardUrl)||GVa,y)}var E;return $qj(Xcr,p,((E=this.iconUrlProvider)==null?void 0:E.getYtStandardUrl)||nMc,y)};
A5.prototype.mapIconTypeToStandardName=function(p,y){return _.n("enable_web_delhi_icons")||y?vUV[p.toUpperCase()]:fGP[p.toUpperCase()]};
A5[RL]=[_.RK(Tfv)];var oUQ=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),z6$=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),YHO=new Set(["shorts_comment","shorts_dislike","shorts_like","shorts_share"]),IG$=function(p){this.urlProvider=this.iconUrlProvider=p};
_.A(IG$,A5);
IG$.prototype.resolveIcon=function(p,y){p.iconName==="youtube_logo"&&(p.iconName="yt-logo-updated");if(p.iconName==="youtube_premium_logo"||p.iconName==="youtube_red_logo")p.iconName="yt-logo-red-updated";var l=Object.assign({},p);p.iconName==="menu"&&(_.n("enable_web_delhi_icons")||(l.iconName="bars_3"),l.iconStyle="youtube_outline");p.iconSetName==="socialNetworksRound"&&(p.iconName==="mail"&&(l.iconName="email"),p.iconName==="embed"&&(l.iconSize=60));p.iconName==="more"&&(l.iconName="overflow_horizontal");
p.iconName==="fullscreen"&&(l.iconName="screen_full");p.iconName==="premium_standalone"&&(l.iconName="premium_standalone_cairo");_.n("enable_connect_icon_update_web")&&p.iconName==="account_linked"&&(l.iconName="circles_overlap_check",l.iconStyle="youtube_fill");_.n("enable_connect_icon_update_web")&&p.iconName==="account_unlinked"&&(l.iconName="circles_overlap",l.iconStyle="youtube_outline");oUQ.has(p.iconName)&&(l.iconStyle="youtube_fill");_.n("enable_web_delhi_icons")&&(p.iconName==="playlist_add"&&
(l.iconName="bookmark"),p.iconName==="offline_pin"&&(l.iconName="arrow_down_circle",l.iconStyle="youtube_fill"),z6$.has(p.iconName)&&(l.iconName+="_updated"),YHO.has(p.iconName)&&(l.iconStyle="youtube_fill"));p=Object.assign({},l,{iconName:(A5.prototype.mapIconTypeToStandardName.call(this,l.iconName)||l.iconName).toLowerCase()});var q;return(p=$qj(DPV,p,((q=this.urlProvider)==null?void 0:q.getUrl)||PrR,y))?p:A5.prototype.resolveIcon.call(this,l,y)};
IG$[RL]=[_.RK(Tfv)];_.pt1=1;var Zj=function(p,y){this.JSC$17086_commandHandler=p;this.innertubeTransportService=y};
_.A(Zj,yT);Zj.prototype.resolveCommand=function(p,y){var l=this,q,t,E;return _.h(function(e){return(q=_.G(p,KCV))?e.return(yRA(l,q,(t=y)==null?void 0:(E=t.form)==null?void 0:E.element)):e.return()})};
var yRA=function(p,y,l){y={profileCardContext:y.profileCardContext,profileOwnerExternalChannelId:y.profileOwnerExternalChannelId};var q=_.hB(XSi);return _.pI(p.innertubeTransportService,y,q).then(function(t){if(!t)throw new _.SM("GetProfileCard failed");if(t=t.popupCommand){p.JSC$17086_commandHandler.resolveCommand(t,{form:{element:l}});_.Mb(_.Ll(),66557);t=t==null?void 0:t.clickTrackingParams;var E=_.xc();t&&E&&_.Ll().graftServerVe(t,E)}})};
Zj[RL]=[_.aK,_.XC];var Mk=function(){};
_.A(Mk,yT);Mk.prototype.resolveCommand=function(p){var y,l;return _.h(function(q){y=_.G(p,NHv);if(!y)return q.return();l=Number(y.enableDelayedPacfLoggingTvMs);if(isNaN(l)){var t=iD();a2x(t,y,0)}else a2x(iD(),y,l);_.rR(q)})};_.V_=function(){};
_.A(_.V_,yT);
_.V_.prototype.resolveCommand=function(p,y){var l=this,q,t,E,e,C,u,a;return _.h(function(m){q=_.G(p,DZv);E=(t=y.form)==null?void 0:t.element;C=(e=E)==null?void 0:e.closest("ytd-enforcement-message-view-model");if(!q||!C)return m.return();l.allowAdsAction||(u=q.fundingChoiceInstructionPageUrl,l.allowAdsAction=new cMV(window,_.xQ(u)));var U=l.allowAdsAction;U.wallElement=C;U.allowAdsPopup.style.setProperty("display","flex","important");var b=U.scrollManager;b.originalBodyOverflow=b.JSC$9936_domHelper.JSC$9260_document_.body.style.overflow;b.JSC$9936_domHelper.JSC$9260_document_.body.style.overflow=
"hidden";U.wallElement.style.setProperty("display","none","important");jeN(U.accessibilityManager,U.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((a=l.allowAdsAction.allowAdsPopup)&&a instanceof HTMLElement)for(U=_.c(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),b=U.next();!b.done;b=U.next()){var P=_.c(b.value);b=P.next().value;P=P.next().value;a.style.setProperty(b,P)}_.rR(m)})};
_.V_.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var gG=function(){};
_.A(gG,yT);gG.prototype.resolveCommand=function(p){var y;return _.h(function(l){y=_.G(p,tyx);if(!y)return l.return();$_5(p);_.rR(l)})};var Q_=function(p){this.JSC$17101_commandHandler=p};
_.A(Q_,yT);
Q_.prototype.resolveCommand=function(p){var y=this,l,q,t,E,e,C,u,a;return _.h(function(m){if(m.nextAddress==1){l=_.G(p,S4v);if((q=l)==null||!q.text||!navigator.clipboard)return m.return();_.Ve(m,2);return m.yield(navigator.clipboard.writeText(l.text),4)}if(m.nextAddress!=2){if(!l.successActions||l.successActions.length===0)return m.return();t=_.c(l.successActions);for(E=t.next();!E.done;E=t.next())e=E.value,y.JSC$17101_commandHandler.resolveCommand(e);return _.pK(m,0)}_.i6(m);if(!l.failureActions||l.failureActions.length===
0)return m.return();C=_.c(l.failureActions);for(u=C.next();!u.done;u=C.next())a=u.value,y.JSC$17101_commandHandler.resolveCommand(a);_.rR(m)})};
Q_[RL]=[_.aK];var Kk=function(p){this.JSC$17105_commandHandler=p};
_.A(Kk,yT);
Kk.prototype.resolveCommand=function(p,y){var l=this,q,t,E,e,C,u,a,m,U,b;return _.h(function(P){switch(P.nextAddress){case 1:q=_.G(p,uxv);if(!q)return P.return();_.Ve(P,2);if(!q.imageBytes&&!q.imageUrl)throw Error("xi");if(!q.imageUrl){if(q.imageBytes){E=q.imageBytes;e=E.replace(/-/g,"+").replace(/_/g,"/");var Z=MA5(e);t=_.du(Z)}P.jumpTo(4);break}return P.yield(fetch(q.imageUrl),5);case 5:return C=P.yieldResult,P.yield(C.blob(),6);case 6:u=P.yieldResult,t=_.du(u);case 4:U=(a=y)==null?void 0:(m=a.form)==
null?void 0:m.element;b=document.createElement("a");YX(b,t);U.appendChild(b);b.download="";b.click();U.removeChild(b);URL.revokeObjectURL(_.xX(t));q.successCommand&&l.JSC$17105_commandHandler.resolveCommand(q.successCommand);_.pK(P,0);break;case 2:_.i6(P),q.errorCommand&&l.JSC$17105_commandHandler.resolveCommand(q.errorCommand),_.rR(P)}})};
Kk[RL]=[_.aK];var wG=function(p){this.store=p};
_.A(wG,yT);wG.prototype.resolveCommand=function(p){var y=this,l,q,t;return _.h(function(E){q=(l=_.G(p,_.vDV))==null?void 0:l.entityBatchUpdate;if(!q)return E.jumpTo(0);t=Object.assign({},q,{mutations:[].concat(_.xq(q.mutations||[]))});return E.yield(_.Qj(t,y.store),0)})};var ltd=function(p){this.JSC$17112_commandHandler=p;this.feedbackDialogMap=new Map};
ltd.prototype.openDialog=function(p,y){(p=this.feedbackDialogMap.get(p))&&this.JSC$17112_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:p}},y)};
ltd[RL]=[_.aK];var iu=new _.WE("FEEDBACK_CONTROLLER_TOKEN");var rG=new _.WE("APP_STORE_TOKEN");var Sg=function(p,y){this.store=p;this.controller=y};
_.A(Sg,yT);Sg.prototype.resolveCommand=function(p,y){var l=this,q,t,E,e,C,u,a,m,U,b,P,Z,K,F,L,T,O;return _.h(function(f){if(f.nextAddress==1){q=_.G(p,_.dU);if(E=(t=q)==null?void 0:t.contentId)for(C=_.c(((e=q)==null?void 0:e.actions)||[]),u=C.next();!u.done;u=C.next())a=u.value,qcd(l,a,E);b=(m=y)==null?void 0:(U=m.form)==null?void 0:U.element;return f.yield(_.ny(b,[p]).catch(function(){}),2)}P=f.yieldResult;
((Z=P)==null?0:(K=Z.data)==null?0:(F=K.feedbackResponses)==null?0:F.length)&&(T=(L=P.data.feedbackResponses[0])==null?void 0:L.followUpDialog)&&E&&(O=l.controller)!=null&&O.feedbackDialogMap.set(E,T);_.rR(f)})};
var qcd=function(p,y,l){var q=_.G(y,_.AO);if(q){q=_.c(q.commands||[]);for(var t=q.next();!t.done;t=q.next())qcd(p,t.value,l)}_.G(y,_.Nv)&&p.store.dispatch(_.Fp("commandEntity",IcR(l),{key:l,command:y}));_.G(y,LC$)&&p.store.dispatch(_.Fp("commandEntity",IcR(l),{key:l,command:y}))};
Sg[RL]=[rG,iu];var Fu=function(p){this.controller=p};
_.A(Fu,yT);Fu.prototype.resolveCommand=function(p,y){var l=this,q,t,E,e;return _.h(function(C){q=_.G(p,_.zX);E=(t=q)==null?void 0:t.targetId;if(((e=q)==null?void 0:e.signal)!=="TELL_US_WHY"||!E)return C.return();l.controller.openDialog(E,y);_.rR(C)})};
Fu[RL]=[iu];var Lk=function(p){this.store=p};
_.A(Lk,yT);Lk.prototype.resolveCommand=function(p,y){var l=this,q,t,E,e,C,u,a;return _.h(function(m){q=_.G(p,c8L);E=(t=q)==null?void 0:t.contentId;u=(e=y)==null?void 0:(C=e.form)==null?void 0:C.element;a=_.ny(u,[p]);E&&l.undo(E);return m.yield(a,0)})};
Lk.prototype.undo=function(p){this.store.dispatch(_.Fp("commandEntity",IcR(p),{key:p,command:void 0}))};
Lk[RL]=[rG];var ku=function(p){this.JSC$17127_commandHandler=p};
_.A(ku,yT);ku.prototype.resolveCommand=function(p){var y=this,l,q,t,E,e,C,u,a;return _.h(function(m){l=_.G(p,c6U);q=l.flowStateKey;t=l.validationFailureCommand;E=l.submitValidFormCommand;e=d3u(_.RA,[q||""]);C=_.G(e,hkx);((u=C)==null?0:u.isValid)&&E&&y.JSC$17127_commandHandler.resolveCommand(E);((a=C)==null?0:a.isValid)||!t||y.JSC$17127_commandHandler.resolveCommand(t);_.rR(m)})};
ku[RL]=[_.aK];var Nk=function(p){this.innertubeTransportService=p};
_.A(Nk,yT);Nk.prototype.resolveCommand=function(p,y){var l=this,q;return _.h(function(t){return t.yield(_.eo(l.innertubeTransportService,p,(q=y)==null?void 0:q.form).then(function(E){var e,C;y==null||(e=y.commandController)==null||(C=e.onSuccess)==null||C.call(e,p,E)},function(E){var e,C;
y==null||(e=y.commandController)==null||(C=e.onServerError)==null||C.call(e,p,E)}),0)})};
Nk[RL]=[_.XC];var Dj=function(){};
_.A(Dj,yT);Dj.prototype.resolveCommand=function(p){var y,l,q,t;return _.h(function(E){if(y=_.G(p,_.PQr)){if(l=y.gtmId)q=_.OY("GL",""),_.vF(l,q);(t=y.gtmData)&&_.Xt(t)}_.rR(E)})};var Hw=function(p,y){this.innertubeTransportService=p;this.JSC$17138_actionRouter=y};
_.A(Hw,yT);Hw.prototype.resolveCommand=function(p){var y=this,l,q;return _.h(function(t){l=_.G(p,J7O);if(!l)return t.return();q=l.command;if(!q)return t.return();y.JSC$17138_actionRouter.triggerAction("yt-insert-rich-section-action",l);return t.yield(_.eo(y.innertubeTransportService,q,{disableCache:!0}),0)})};
Hw[RL]=[_.XC,aB];gM_.bind(null,lD);var sgu=gM_.bind(null,Kev);Koj.bind(null,lD);var tjd=Koj.bind(null,Kev);iN_.bind(null,lD);var E6m=iN_.bind(null,Kev);var TG=function(){};
_.A(TG,yT);
TG.prototype.resolveCommand=function(p){var y,l,q,t,E,e,C,u,a,m;return _.h(function(U){y=_.G(p,vvZ);if(!y)return U.return();q=((l=y.operations)==null?void 0:l.operations)||[];t=_.c(q);for(E=t.next();!E.done;E=t.next())if(e=E.value,e.insertItemSectionContent){var b=e.insertItemSectionContent,P=b.contents||[];b.insertByPositionInSection?sgu(b.insertByPositionInSection.sectionTargetId,P,b.insertByPositionInSection.position):b.insertByRelativePositionInSection&&b.insertByRelativePositionInSection.sectionTargetId&&b.insertByRelativePositionInSection.itemTargetId&&
tjd(b.insertByRelativePositionInSection.sectionTargetId,b.insertByRelativePositionInSection.itemTargetId,P,b.insertByRelativePositionInSection.relativePosition)}else e.replaceSection?(b=e.replaceSection,P={},b.replaceByTargetId?P=b.replaceByTargetId:b.replaceByGroupId&&(P={targetId:b.replaceByGroupId.groupId,newContent:b.replaceByGroupId.newContent,undoKey:""}),P.newContent&&rNN(P.targetId,{continuationItems:[P.newContent]})):e.removeItem?(b=e.removeItem,b.removeByTargetId&&b.sectionTargetId&&E6m(b.sectionTargetId,
b.removeByTargetId.targetIds||[])):e.removeSection&&(e.removeSection.removeByTargetId?(C=void 0,JRA(((C=e.removeSection)==null?void 0:C.removeByTargetId.targetIds)||[])):e.removeSection.removeByGroupId&&(u=void 0,JRA(((u=e.removeSection)==null?void 0:u.removeByGroupId.groupIds)||[])));m=((a=y.operations)==null?void 0:a.scrollConfig)||{};cRd(m);_.rR(U)})};
var JRA=function(p){p=_.c(p);for(var y=p.next();!y.done;y=p.next())rNN(y.value,{continuationItems:[]})},cRd=function(p){if(p.scrollToItem){var y=p.scrollToItem.item||{},l=y.itemTargetId;
y=y.sectionTargetId;if(l&&y){var q=document.querySelector("[data-target-id="+y+"]"),t=q==null?void 0:q.querySelector("[data-target-id="+l+"]");q&&t&&setTimeout(function(){var E=t.offsetTop-q.offsetTop,e;if(((e=p.scrollToItem)==null?void 0:e.scrollPosition)==="SCROLL_POSITION_CENTER")E-=q.offsetHeight/2,E+=t.offsetHeight/2;else{var C;((C=p.scrollToItem)==null?void 0:C.scrollPosition)==="SCROLL_POSITION_END"&&(E-=q.offsetHeight,E+=t.offsetHeight)}q.scroll({top:E,behavior:"smooth"})},100)}}};var xu=new _.WE("CLIENT_NAME_TOKEN");var e5T=new _.WE("DEFAULT_STORE_EXPIRATION_TOKEN");var nEc=new _.WE("CLIENT_LOCATION_SERVICE_TOKEN");var Bw=function(p,y,l){this.clientName=p||_.OY("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=y||_.BI.getInstance();this.JSC$17166_commandHandler=l||_.wW.instance};
_.A(Bw,yT);Bw.prototype.resolveCommand=function(p){var y=this,l,q;return _.h(function(t){q=(l=_.G(p,ImO))==null?void 0:l.onComplete;y.clientLocationService.clearLocationPlayabilityToken(y.clientName);q&&y.JSC$17166_commandHandler.resolveCommand(q);_.rR(t)})};
Bw[RL]=[xu,nEc,_.aK];var fk=function(p){this.innertubeTransportService=p};
_.A(fk,yT);fk.prototype.resolveCommand=function(p,y){var l=this,q,t,E,e;return _.h(function(C){E=(q=y)==null?void 0:(t=q.form)==null?void 0:t.element;return C.yield(_.eo(l.innertubeTransportService,p,(e=y)==null?void 0:e.form).then(function(u){r9L(E,new CustomEvent("yt-service-request-completed"),{data:u},_.OY("openPopupConfig"))}),0)})};
fk[RL]=[_.XC];var vw=function(){};
_.A(vw,yT);vw.prototype.resolveCommand=function(p){var y,l;return _.h(function(q){y=_.G(p,W4B);l=document.querySelector("mini-app-container-view-model");if(!y||!l)return q.return();y.isPlaying?l.dispatchEvent(new Event("play")):l.dispatchEvent(new Event("pause"));_.rR(q)})};var Xu=function(){};
_.A(Xu,yT);Xu.prototype.resolveCommand=function(p){var y,l,q,t,E,e,C;return _.h(function(u){y=_.G(p,UCU);if((l=y)==null||!l.paramKeys)return u.return();q=y.paramKeys;t=_.YP(window.location.href);E=_.c(q);for(e=E.next();!e.done;e=E.next())C=e.value,t.JSC$9968_queryData_.remove(C);window.history.replaceState(window.history.state,document.title,t.toString());_.rR(u)})};var h5O=function(){this.dropdownMap=new Map};_.C_A=new _.WE("DROPDOWN_CONTROLLER_TOKEN");var dG=function(p){this.controller=p};
_.A(dG,yT);dG.prototype.resolveCommand=function(p){var y=this,l,q,t,E;return _.h(function(e){l=_.G(p,zO$);if(!l)return e.return();q=l;t=q.dropdownId;E=q.selectedOptionIndex;if(t===void 0||E===void 0)return e.return();var C=y.controller.dropdownMap.get(t);C&&C(E);_.rR(e)})};
dG[RL]=[_.C_A];var Oe=function(p){this.controller=p};
_.A(Oe,yT);Oe.prototype.resolveCommand=function(p){var y=this,l;return _.h(function(q){return(l=_.G(p,CmO))?q.yield(y.controller.closeDialog(),0):q.return()})};
Oe[RL]=[_.xG];var oV=function(p){this.controller=p};
_.A(oV,yT);oV.prototype.resolveCommand=function(p){var y=this,l,q;return _.h(function(t){l=_.G(p,Xzi);if(!l)return t.return();var E,e=l.panelIdentifier||((E=l.identifier)==null?void 0:E.tag);if(!e)throw Error("yi");return(q=e)?t.yield(y.controller.hidePanel(q),0):t.jumpTo(0)})};
oV[RL]=[_.H8];var zG=function(p,y){this.innertubeTransportService=p;this.controller=y};
_.A(zG,yT);zG.prototype.resolveCommand=function(p){var y=this,l,q,t,E;return _.h(function(e){if(e.nextAddress==1)return l=_.G(p,d6r),(q=l)!=null&&q.panelId?e.yield(y.controller.getReloadContinuation(l.panelId),2):e.return();if(e.nextAddress!=3)return(t=e.yieldResult)?e.yield(_.eo(y.innertubeTransportService,p,{continuation:t}),3):e.return();E=e.yieldResult;return e.yield(y.controller.updatePanel(l.panelId,E.content,!1),0)})};
zG[RL]=[_.XC,_.H8];var Yu=function(p,y,l){this.innertubeTransportService=p;this.JSC$17202_screenManager=y;this.JSC$17202_commandHandler=l};
_.A(Yu,yT);
Yu.prototype.resolveCommand=function(p){var y=this,l,q,t,E,e,C;return _.h(function(u){if(u.nextAddress==1){l=_.G(p,_.kbU);if(!l)return u.return();if(l.commands)for(q=_.c(l.commands),t=q.next();!t.done;t=q.next())E=t.value,y.JSC$17202_commandHandler.resolveCommand(E,{disableClickTracking:!0});e=_.Tp(p.clickTrackingParams);_.Mb(y.JSC$17202_screenManager,21760,e,{layer:7,parentLayer:0});return u.yield(_.eo(y.innertubeTransportService,p),2)}C=u.yieldResult;if(!C)return u.return();y.JSC$17202_screenManager.graftServerVe(C.trackingParams,e,
7);_.rR(u)})};
Yu[RL]=[_.XC,_.B_,_.aK];var IV=new _.WE("PANEL_LOADING_STRATEGY_TOKEN");var pQ=function(p,y){this.controller=p;this.panelLoadingStrategy=y};
_.A(pQ,yT);
pQ.prototype.resolveCommand=function(p,y){var l=this,q,t,E;return _.h(function(e){q=_.G(p,wFU);if((t=q)==null||!t.panelLoadingStrategy)return e.return();E=function(C){var u,a,m,U,b,P,Z,K,F;return _.h(function(L){a=_.G((u=C.dialogViewModel)==null?void 0:u.header,YXr);m={viewModel:C.dialogViewModel};U={};if(Z=_.n("web_enable_dialog_header_label")?(b=a)==null?void 0:(P=b.headline)==null?void 0:P.content:void 0)U.ariaLabel=Z;q.dismissOnBackgroundTap===!1&&(U.isModal=!0);return C.dialogViewModel?L.yield(l.controller.openDialog(m,
(K=y)==null?void 0:(F=K.form)==null?void 0:F.element,U),0):L.return()})};
return e.yield(l.panelLoadingStrategy.execute({command:p,data:q.panelLoadingStrategy,renderFn:E,createScreenConfig:{layer:4}}),0)})};
pQ[RL]=[_.xG,IV];var ys=function(p,y,l){this.innertubeTransportService=p;this.controller=y;this.JSC$17222_screenManager=l};
_.A(ys,yT);
ys.prototype.resolveCommand=function(p,y){var l=this,q,t,E,e,C,u,a,m,U,b,P,Z;return _.h(function(K){switch(K.nextAddress){case 1:q=_.G(p,_.Xy);if(!q)return K.return();var F,L=q.panelIdentifier||((F=q.identifier)==null?void 0:F.tag);if(!L)throw Error("yi");t=L;return K.yield(l.controller.isVisible(t,!0),2);case 2:if((E=K.yieldResult)&&q.blockIfPanelOpen)return K.return();u=(C=(e=l.controller).getPanelContent)==null?void 0:C.call(e,t);if(!(F=u))if(q){var T;F=((T=q.globalConfiguration)==null?void 0:
T.initialState)||q.engagementPanel;if(T=!F)T=!!(q==null?0:(L=q.engagementPanelPresentationConfigs)==null?0:L.engagementPanelPopupPresentationConfig);T&&(F=_.rdm(q.panelIdentifier,q.identifier))}else F=void 0;a=F;m=q.engagementPanelPresentationConfigs;U=q.engagementPanelExtras;return K.yield(l.controller.showPanel(t,a,m,U,(b=y)==null?void 0:(P=b.form)==null?void 0:P.element),3);case 3:if(!q.globalConfiguration){K.jumpTo(0);break}_.Mb(l.JSC$17222_screenManager,32633);return K.yield(_.eo(l.innertubeTransportService,
p),5);case 5:return Z=K.yieldResult,l.JSC$17222_screenManager.graftServerVe(Z.trackingParams),K.yield(l.controller.updatePanel(t,Z.content,!0,U,void 0,Z.updatePanelContinuationData),0)}})};
ys[RL]=[_.XC,_.H8,_.B_];var lJ=function(p,y){this.controller=p;this.panelLoadingStrategy=y};
_.A(lJ,yT);lJ.prototype.resolveCommand=function(p,y){var l=this,q,t,E,e,C,u;return _.h(function(a){q=_.G(p,_.LX);if((t=q)==null||!t.panelLoadingStrategy)return a.return();C=uoR(l.controller,(E=y)==null?void 0:(e=E.form)==null?void 0:e.element);u=function(m){return _.h(function(U){return m.sheetViewModel?U.yield(l.controller.openSheet({viewModel:m.sheetViewModel},C),0):U.return()})};
return a.yield(l.panelLoadingStrategy.execute({command:p,data:q.panelLoadingStrategy,renderFn:u,createScreenConfig:{layer:0}}),0)})};
lJ[RL]=[_.Tu,IV];var qz=function(p,y){this.controller=p;this.JSC$17230_commandHandler=y};
_.A(qz,yT);qz.prototype.resolveCommand=function(p,y){var l=this,q,t,E;return _.h(function(e){if(e.nextAddress==1){q=_.G(p,YTB);var C=_.G(q.showCommand,_.Xy),u,a,m=(a=C==null?void 0:C.panelIdentifier)!=null?a:C==null?void 0:(u=C.identifier)==null?void 0:u.tag;if(!m)throw Error("zi");t=m;return e.yield(l.controller.isVisible(t),2)}return(E=e.yieldResult)?e.yield(l.controller.hidePanel(t),0):e.yield(l.JSC$17230_commandHandler.resolveCommand(q.showCommand,y),0)})};
qz[RL]=[_.H8,_.aK];var sl=function(p,y,l){this.innertubeTransportService=p;this.controller=y;this.JSC$17233_screenManager=l};
_.A(sl,yT);
sl.prototype.resolveCommand=function(p){var y=this,l,q,t,E,e,C,u,a,m,U,b,P,Z,K,F,L,T,O,f,v,z,sc;return _.h(function(hR){switch(hR.nextAddress){case 1:return q=l=_.G(p,IrM),t=q.targetPanelIdentifier,E=q.contentSourcePanelIdentifier,e=q.globalConfiguration,((C=t)==null?0:C.tag)&&((u=E)==null?0:u.tag)?e?hR.yield(y.controller.showPanel(t.tag,_.rdm(t.tag,t),void 0,void 0,void 0),5):hR.yield((b=(U=y.controller).getPanel)==null?void 0:b.call(U,E.tag),4):hR.return();case 4:P=hR.yieldResult;a=(Z=P)==null?
void 0:(F=(K=Z).getPanelContent)==null?void 0:F.call(K);hR.jumpTo(3);break;case 5:return hR.yield(_.eo(y.innertubeTransportService,p),6);case 6:L=hR.yieldResult,((T=L)==null?0:T.trackingParams)&&y.JSC$17233_screenManager.graftServerVe(L.trackingParams),a=(O=L)==null?void 0:O.content,m=(f=L)==null?void 0:f.updatePanelContinuationData;case 3:if(z=(v=a)==null?void 0:v.engagementPanelSectionListRenderer)return hR.yield(y.controller.showPanel(t.tag,void 0,void 0,void 0,void 0,{content:z.content,secondaryHeaderContent:(sc=
z.header)!=null?sc:{},targetId:z.targetId},m),0);hR.jumpTo(0)}})};
sl[RL]=[_.XC,_.H8,_.B_];var tz=function(p){this.JSC$17240_commandHandler=p};
_.A(tz,yT);
tz.prototype.resolveCommand=function(p){var y=this,l,q,t,E,e,C;return _.h(function(u){if(u.nextAddress==1)return(l=_.G(p,evU))?u.yield(_.VS(),2):u.return();q=u.yieldResult;if(!q)return u.return();var a=q,m=(t=l)==null?void 0:t.languageCode,U=(E=l)==null?void 0:E.isAutoTranslated;a.getVideoData&&_.Fo_(a).length&&((m=kVo(a,m,U))?a.setOption("captions","track",m):(a.setOption("captions","stickyLoading",{}),a.setOption("captions","track",{})));e=q.isSubtitlesOn()?_.g$("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.g$("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");C=_.uS(e);y.JSC$17240_commandHandler.resolveCommand(C);_.rR(u)})};
tz[RL]=[_.aK];var El=function(p,y){this.shortsPlayerPromise=p;this.JSC$17244_commandHandler=y};
_.A(El,yT);
El.prototype.resolveCommand=function(p){var y=this,l,q,t,E,e,C,u,a;return _.h(function(m){if(m.nextAddress==1)return(l=_.G(p,ZnO))?m.yield(y.shortsPlayerPromise,2):m.return();q=m.yieldResult;var U=NQR(q);U!=null&&U.length||(q.loadModule("captions"),U=NQR(q));t=U;if((E=t)==null||!E.length)return e=_.g$("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),C=_.uS(e),y.JSC$17244_commandHandler.resolveCommand(C),m.return();q.toggleSubtitles();u=q.isSubtitlesOn()?_.g$("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.g$("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");a=_.uS(u);y.JSC$17244_commandHandler.resolveCommand(a);_.rR(m)})};
El[RL]=[_.hjU,_.aK];var Jz=function(p){this.JSC$17247_playerPromise=p};
_.A(Jz,yT);Jz.prototype.resolveCommand=function(p){var y=this,l,q,t,E;return _.h(function(e){if(e.nextAddress==1)return(l=_.G(p,odU))?e.yield(y.JSC$17247_playerPromise,2):e.return();q=e.yieldResult;t=q.getVideoData().video_id;l.videoId===t&&(E=Number(l.offsetFromVideoStartMilliseconds),E>=0&&q.seekTo(E/1E3));_.rR(e)})};
Jz[RL]=[_.PN];var R5O=_.PV("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),cv=function(p){this.store=p};
_.A(cv,yT);
var WL6=function(p){var y,l,q,t;return _.h(function(E){if(E.nextAddress==1)return y=_.OY("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,l=_.OY("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,q=y||l,p.mainAppPlayer=new hF(q),E.yield(p.mainAppPlayer.api,2);t=E.yieldResult;t.addEventListener("onStateChange",p.JSC$17251_playerStateChangeListener.bind(p));document.addEventListener("yt-page-data-updated",p.pauseOnNavigation.bind(p));window.addEventListener("state-navigatestart",
p.pauseOnNavigation.bind(p));_.rR(E)})};
cv.prototype.JSC$17251_playerStateChangeListener=function(p){switch(p){case 0:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_STOPPED";break;case 1:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING";break;case 2:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PAUSED";break;case 3:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";break;default:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_UNKNOWN"}at7(this)};
var at7=function(p){p.store.dispatch(_.Fp("sfvAudioItemCurrentlyPlayingEntity",R5O,{key:R5O,externalVideoId:p.externalVideoId,sfvAudioItemPlaybackState:p.playbackState,nowPlayingEntityValue:p.nowPlayingEntityValue}))};
cv.prototype.pauseOnNavigation=function(){var p=this,y,l,q,t;return _.h(function(E){if(E.nextAddress==1){if(!p.mainAppPlayer){var e=new _.SM("Error: mainAppPlayer is unavailable",p.mainAppPlayer);_.Bs(e);return E.return()}return E.yield(p.mainAppPlayer.api,2)}y=E.yieldResult;q=(l=y)==null?void 0:l.getPlayerState();q!==1||(t=y)!=null&&t.pauseVideo();_.rR(E)})};
cv.prototype.playVideo=function(p,y,l){var q=this,t,E;return _.h(function(e){if(e.nextAddress==1)return e.yield((t=q.mainAppPlayer)==null?void 0:t.api,2);E=e.yieldResult;if(!q.mainAppPlayer||!E){var C=new _.SM("Error: mainAppPlayer is unavailable",q.mainAppPlayer);_.Bs(C);return e.return()}return e.yield(q.mainAppPlayer.loadVideoWithPlayerVars({videoId:q.externalVideoId,audio_only:"1",start:p/1E3,end:p/1E3+y,player_params:l}),0)})};
cv.prototype.pauseVideo=function(){var p=this,y,l;return _.h(function(q){if(q.nextAddress==1){if(!p.mainAppPlayer){var t=new _.SM("Error: mainAppPlayer is unavailable",p.mainAppPlayer);_.Bs(t);return q.return()}return q.yield(p.mainAppPlayer.api,2)}y=q.yieldResult;(l=y)==null||l.pauseVideo();_.rR(q)})};
cv.prototype.resolveCommand=function(p){var y=this,l,q,t,E,e,C,u,a,m,U,b,P,Z,K,F,L,T,O,f;return _.h(function(v){if(v.nextAddress==1)return l=_.G(p,nBv),t=(q=l)==null?void 0:q.nowPlayingEntityValue,e=(E=l)==null?void 0:E.externalVideoId,U=Number((m=(C=l)==null?void 0:(u=C.defaultStartPoints)==null?void 0:(a=u[0])==null?void 0:a.offsetMs)!=null?m:"0"),L=Number((F=(b=l)==null?void 0:(P=b.defaultStartPoints)==null?void 0:(Z=P[0])==null?void 0:(K=Z.duration)==null?void 0:K.seconds)!=null?F:"15"),f=(O=
(T=l)==null?void 0:T.playerParams)!=null?O:"",t&&e?y.mainAppPlayer?v.jumpTo(2):v.yield(WL6(y),2):v.return();if(v.nextAddress!=6){if(y.nowPlayingEntityValue&&t===y.nowPlayingEntityValue)return y.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?v.yield(y.pauseVideo(),0):v.yield(y.playVideo(U,L,f),0);y.externalVideoId=e;y.nowPlayingEntityValue=t;y.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return v.yield(y.playVideo(U,L,f),6)}at7(y);return v.jumpTo(0)})};
cv[RL]=[bW];var e3=function(p){this.JSC$17271_commandHandler=p};
_.A(e3,yT);e3.prototype.resolveCommand=function(p,y){var l=this,q,t,E,e,C;return _.h(function(u){if(u.nextAddress==1)return(q=_.G(p,hvr))?u.yield(_.VS(),2):u.return();t=u.yieldResult;if(!t)return u.return();(E=BQc(t))?l.JSC$17271_commandHandler.resolveCommand(E,y):(e=_.g$("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),C=_.uS(e),l.JSC$17271_commandHandler.resolveCommand(C));_.rR(u)})};
e3[RL]=[_.aK];var hz=function(p){this.JSC$17274_playerPromise=p};
_.A(hz,yT);hz.prototype.resolveCommand=function(p){var y=this,l,q,t,E,e;return _.h(function(C){if(C.nextAddress==1){l=_.G(p,zvx);if(!l)return C.return();q=l.overlayRenderer;return q?(t=_.G(q,uWr))?C.yield(y.JSC$17274_playerPromise,3):C.jumpTo(0):C.return()}E=C.yieldResult;E.renderChapterSeekingAnimation(1,_.JB(t.text),(e=t.icon)==null?void 0:e.iconType);_.rR(C)})};
hz[RL]=[_.PN];var CQ=function(p){this.store=p};
_.A(CQ,yT);
CQ.prototype.resolveCommand=function(p){var y=this,l,q,t;return _.h(function(E){if(E.nextAddress==1){l=_.G(p,hNU);if(!l)return E.return();q="";(t=y.store.getState().collabInviteLink)&&l.id===t.playlistId?q=t.inviteLinkURL:l.shortUrl&&(q=l.shortUrl);return q?E.yield(navigator.clipboard.writeText(q),3):E.jumpTo(0)}var e={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.g$("COPY_LINK_SUCCESS_TOAST")}}}}};_.WC().resolve(_.aK).resolveCommand(e);_.rR(E)})};
CQ[RL]=[rG];var uJ=function(p,y){this.innertubeTransportService=p;this.JSC$17284_commandHandler=y};
_.A(uJ,yT);uJ.prototype.resolveCommand=function(p,y){var l=this,q,t,E,e,C,u,a,m,U,b;return _.h(function(P){if(P.nextAddress==1)return(q=_.G(p,_.s_))?P.yield(_.eo(l.innertubeTransportService,p,(t=y)==null?void 0:t.form),2):P.return();(E=P.yieldResult)&&E.errorMetadata&&(e=E,C=_.uS(e.error.message),l.JSC$17284_commandHandler.resolveCommand(C));u=E;if((a=u)==null?0:a.actions)for(m=_.c(u.actions),U=m.next();!U.done;U=m.next())b=U.value,l.JSC$17284_commandHandler.resolveCommand(b);_.rR(P)})};
uJ[RL]=[_.XC,_.aK];var Rt=function(){};
_.A(Rt,yT);Rt.prototype.resolveCommand=function(p){var y;return _.h(function(l){y=_.G(p,yHr);if(!y)return l.return();(new CFU(y)).show();_.rR(l)})};_.Wv=new _.WE("PLAYLIST_EDIT_CONTROLLER_TOKEN");var at=function(p,y,l,q){this.store=p;this.innertubeTransportService=y;this.controller=l;this.JSC$17292_commandHandler=q};
_.A(at,yT);
at.prototype.resolveCommand=function(p,y){var l=this,q,t,E,e,C,u,a,m,U,b,P,Z,K,F,L,T,O,f,v,z,sc,hR,Wt,AR,Qu,jj;return _.h(function(x6){if(x6.nextAddress==1){q=_.G(p,_.YB);if(!q)return x6.return();if(q.clientActions){t=_.c(q.clientActions);for(E=t.next();!E.done;E=t.next())e=E.value,l.JSC$17292_commandHandler.resolveCommand(e);var L8,Y6=y==null?void 0:(L8=y.form)==null?void 0:L8.element;Y6&&_.Ub(Y6,"yt-dismissible-item-action",q.clientActions)}return x6.yield(_.eo(l.innertubeTransportService,p,(C=
y)==null?void 0:C.form),2)}if(u=x6.yieldResult)u.errorMetadata?(a=u,m=_.uS(a.error.message),l.JSC$17292_commandHandler.resolveCommand(m),"error"in u&&((U=y)==null?0:(b=U.commandController)==null?0:b.onServerError)&&((P=y)==null||(Z=P.commandController)==null||Z.onServerError(p,u))):(K=y)==null||(F=K.commandController)==null||(T=(L=F).onSuccess)==null||T.call(L,p,u);O=u;((f=O)==null?0:f.collaborationInviteLink)&&q.playlistId&&(_.n("web_enable_invite_collaborators_link")||_.n("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
l.store.dispatch(_.$y({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:q.playlistId,inviteLinkUrl:O.collaborationInviteLink}}));((v=O)==null?0:v.redirectEndpoint)&&l.JSC$17292_commandHandler.resolveCommand(O.redirectEndpoint);((z=O)==null?0:(sc=z.newHeader)==null?0:sc.playlistHeaderRenderer)?mad(l.controller,O.newHeader.playlistHeaderRenderer):((hR=O)==null?0:(Wt=hR.newHeader)==null?0:Wt.musicEditablePlaylistDetailHeaderRenderer)&&mad(l.controller,O.newHeader.musicEditablePlaylistDetailHeaderRenderer);
l.controller.playlistVideoListElement&&((AR=O)==null?0:(Qu=AR.playlistEditResults)==null?0:(jj=Qu[0])==null?0:jj.playlistEditVideoAddedResultData)&&((Y6=l.controller.playlistVideoListElement)==null||Y6.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:O.playlistEditResults[0].playlistEditVideoAddedResultData})));_.rR(x6)})};
at[RL]=[rG,_.XC,_.Wv,_.aK];var mK=function(p,y){this.controller=p;this.JSC$17302_commandHandler=y};
_.A(mK,yT);mK.prototype.resolveCommand=function(p,y){var l=this,q,t,E;return _.h(function(e){q=_.G(p,CRZ);l.controller.showRefreshPill&&((t=q)==null?0:t.command)&&(l.JSC$17302_commandHandler.resolveCommand((E=q)==null?void 0:E.command,y),l.controller.showRefreshPill=!1);_.rR(e)})};
mK[RL]=[_.GI,_.aK];var Ul=function(p,y){this.store=p;this.JSC$17306_commandHandler=y||_.wW.instance};
_.A(Ul,yT);Ul.prototype.resolveCommand=function(p,y){var l=this,q,t,E,e,C,u,a,m,U,b;return _.h(function(P){q=_.G(p,AHP);t=l.store.getState().radioButtonGroup;if((E=q)==null?0:E.command)l.JSC$17306_commandHandler.resolveCommand((e=q)==null?void 0:e.command,y);else if(t&&((C=q)==null?void 0:C.formId)===t.currentFormId)for(u=Object.values(t.commandsMap),a=_.c(u),m=a.next();!m.done;m=a.next())U=m.value,(b=_.yM(U))&&l.JSC$17306_commandHandler.resolveCommand(b,y);_.rR(P)})};
Ul[RL]=[_.yF];var $b=new _.WE("USER_PREFS");var j3=function(p){this.JSC$17311_prefCookie=p};
_.A(j3,yT);j3.prototype.resolveCommand=function(p){var y=this,l;return _.h(function(q){(l=_.G(p,XfP))&&typeof l.useListView==="boolean"&&(_.il(0,155,l.useListView),y.JSC$17311_prefCookie.save());_.rR(q)})};
j3[RL]=[$b];var bJ=function(p){this.JSC$17315_prefCookie=p};
_.A(bJ,yT);bJ.prototype.resolveCommand=function(p){var y=this,l,q,t,E,e;return _.h(function(C){l=_.G(p,q0M);if((q=l)==null||!q.gl)return C.return();t=l.gl;E={persist_gl:"1",gl:t};y.JSC$17315_prefCookie.set("gl",t);y.JSC$17315_prefCookie.save();e=O7V(E);_.lt(e);_.rR(C)})};
bJ[RL]=[$b];var nQ=function(p){this.JSC$17319_prefCookie=p};
_.A(nQ,yT);nQ.prototype.resolveCommand=function(p){var y=this,l,q;return _.h(function(t){l=_.G(p,RNM);if(!l)return t.return();q=!1;l.flagNum&&typeof l.value==="boolean"?(_.il(0,l.flagNum,l.value),q=!0):l.key&&typeof l.stringValue==="string"&&(y.JSC$17319_prefCookie.set(l.key,l.stringValue),q=!0);q&&y.JSC$17319_prefCookie.save();_.rR(t)})};
nQ[RL]=[$b];var Gy=new _.WE("PREF_STORAGE_PROMISE_TOKEN");var Pv=function(p){this.JSC$17323_prefStoragePromise=p};
_.A(Pv,yT);Pv.prototype.resolveCommand=function(p){var y=this,l,q;return _.h(function(t){if(t.nextAddress==1)return(l=_.G(p,avU))?t.yield(y.JSC$17323_prefStoragePromise,2):t.return();q=t.yieldResult;return q===void 0||l.key===void 0||l.value===void 0?t.return():t.yield(q.set(l.key,l.value),0)})};
Pv[RL]=[Gy];var Uaw=function(p){this.innertubeTransportService=p};
_.A(Uaw,yT);Uaw.prototype.resolveCommand=function(p,y){var l=this,q,t;return _.h(function(E){(q=_.G(p,_.f9Z))&&q&&q.isFirstRequest&&(_.BW("search_overview_answer"),_.fy("so_rq",void 0,"search_overview_answer"));return E.yield(_.eo(l.innertubeTransportService,p,(t=y)==null?void 0:t.form),0)})};
Uaw[RL]=[_.XC];var $a6=function(){};
_.A($a6,yT);
$a6.prototype.resolveCommand=function(p){var y,l,q,t,E,e,C,u,a;return _.h(function(m){y=_.G(p,OzZ);if((l=y)==null?0:l.sectionIdentifier){if(y.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(t=(q=document.getElementsByTagName(y.sectionIdentifier))==null?void 0:q.item(0))t.scrollIntoView({behavior:"smooth"}),(E=Alt(t))&&E.focus({preventScroll:!0});return m.return()}e=document.querySelector("[section-identifier="+y.sectionIdentifier+"]");C=document.querySelector("[section-identifier="+y.referenceSectionIdentifier+
"]");if(!e)return m.return();u=y.verticalScrollOffsetDp?y.verticalScrollOffsetDp:0;C&&(u-=C.offsetTop);window.scrollTo({top:e.offsetTop+u,behavior:"smooth"});(a=Alt(e))&&a.focus({preventScroll:!0})}_.rR(m)})};var Az=function(p){this.JSC$17335_commandHandler=p};
_.A(Az,yT);
Az.prototype.resolveCommand=function(p){var y=this,l,q,t,E,e,C,u;return _.h(function(a){if(a.nextAddress==1){l=_.G(p,R2$);if(!l||!l.imageBytes||!navigator.clipboard)return a.return();if(l.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.Bs(Error("Bi")),a.return();_.Ve(a,2);t=(q=l)==null?void 0:q.imageBytes;E=t.replace(/-/g,"+").replace(/_/g,"/");e=MA5(E);C={};u=[new ClipboardItem((C[e.type]=e,C))];return a.yield(navigator.clipboard.write(u),4)}if(a.nextAddress!=2)return l.successCommand&&
y.JSC$17335_commandHandler.resolveCommand(l.successCommand),_.pK(a,0);_.i6(a);l.errorCommand&&y.JSC$17335_commandHandler.resolveCommand(l.errorCommand);_.rR(a)})};
Az[RL]=[_.aK];var ZP=function(p,y){this.innertubeTransportService=p;this.JSC$17339_commandHandler=y};
_.A(ZP,yT);ZP.prototype.resolveCommand=function(p,y){var l=this,q,t,E,e,C;return _.h(function(u){if(u.nextAddress==1)return(q=_.G(p,WdZ))?u.yield(_.eo(l.innertubeTransportService,p,(t=y)==null?void 0:t.form),2):u.return();(E=u.yieldResult)&&E.errorMetadata&&q.onFailureCommand&&l.JSC$17339_commandHandler.resolveCommand(q.onFailureCommand);e=E;((C=e)==null?0:C.shareCommand)&&l.JSC$17339_commandHandler.resolveCommand(e.shareCommand,y);_.rR(u)})};
ZP[RL]=[_.XC,_.aK];var Mz=function(){};
_.A(Mz,yT);Mz.prototype.resolveCommand=function(p){var y,l;return _.h(function(q){y=_.G(p,eNU);if(!y||!navigator.share)return q.return();l={url:y.url};try{return q.return(navigator.share(l))}catch(t){}_.rR(q)})};var Vs=function(){};
_.A(Vs,yT);Vs.prototype.resolveCommand=function(){return _.h(function(p){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.rR(p)})};var gL=function(p){this.JSC$17349_navigationConfirmationService=p};
_.A(gL,yT);gL.prototype.resolveCommand=function(){var p=this;return _.h(function(y){p.JSC$17349_navigationConfirmationService.cancelPendingNavigation();_.rR(y)})};
gL[RL]=[i1];var Qs=function(p){this.JSC$17352_screenManager=p};
_.A(Qs,yT);Qs.prototype.resolveCommand=function(p,y){var l=this,q,t,E,e,C,u,a;return _.h(function(m){t=(q=y.form)==null?void 0:q.event;e=(E=y.form)==null?void 0:E.element;if(!t)throw new _.SM("Event not passed in when resolving command");C=_.c(t.composedPath());for(u=C.next();!u.done;u=C.next())if(a=u.value,a.tagName==="YT-COPY-LINK-RENDERER")return a.copyUrlToClipboard(),e&&_.EZ(l.JSC$17352_screenManager,e),m.return();_.rR(m)})};
Qs[RL]=[_.B_];var KQ=function(){this.JSC$17356_miniAppClientDataProvider=_.WC().resolve(_.qk)};
_.A(KQ,yT);KQ.prototype.resolveCommand=function(){var p=this,y,l;return _.h(function(q){if(p.JSC$17356_miniAppClientDataProvider.clientData.has("video_id")){var t=p.JSC$17356_miniAppClientDataProvider,E=t.clientData.get("video_id");E&&t.clientData.delete("video_id");y="https://youtube.com/watch?v="+E;l=fO(y);if(l===void 0)throw Error("Ci`"+y);_.s8(window,l)}_.rR(q)})};var wL=function(){};
_.A(wL,yT);wL.prototype.resolveCommand=function(){return _.h(function(p){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.rR(p)})};var iJ=function(){};
_.A(iJ,yT);iJ.prototype.resolveCommand=function(){var p;return _.h(function(y){if(y.nextAddress==1)return y.yield(_.ofL(window.document.documentElement),2);(p=document.querySelector("mini-app-container-view-model iframe"))&&p.focus();_.rR(y)})};var rL=function(p){this.JSC$17363_navigationConfirmationService=p};
_.A(rL,yT);
rL.prototype.resolveCommand=function(){var p=this;return _.h(function(y){var l=p.JSC$17363_navigationConfirmationService,q=_.WC().resolve(_.HF),t;if(((t=l.navigateParams)==null?void 0:t.data)!==void 0){var E;_.aCQ(q,l.navigateParams.endpoint,l.navigateParams.data,(E=l.navigateParams.navigationType)!=null?E:1,l.navigateParams.tempData,l.navigateParams.isMiniplayer,void 0,!0);l.navigateParams=void 0;l.customConfirmationCommand=void 0}else l.navigateParams&&(q.navigate(l.navigateParams.endpoint,l.navigateParams.reload,
l.navigateParams.params,l.navigateParams.tempData,l.navigateParams.requestType,l.navigateParams.createScreenConfig,!0),l.navigateParams=void 0,l.customConfirmationCommand=void 0);_.rR(y)})};
rL[RL]=[i1];var S3=function(){};
_.A(S3,yT);S3.prototype.resolveCommand=function(){return _.h(function(p){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.rR(p)})};var Fb=function(p){this.JSC$17368_prefStorage=p};
_.A(Fb,yT);Fb.prototype.resolveCommand=function(){var p=this,y,l;return _.h(function(q){switch(q.nextAddress){case 1:return q.yield(p.JSC$17368_prefStorage,2);case 2:return(y=q.yieldResult)?q.yield(y.set("sfvle",!1),3):q.return();case 3:return q.yield(y.set("sfvles",!0),4);case 4:l=_.w$(),_.il(0,203,!1),_.il(0,204,!0),l.save(),_.rR(q)}})};
Fb[RL]=[Gy];var LQ=function(p){this.JSC$17371_prefStorage=p};
_.A(LQ,yT);LQ.prototype.resolveCommand=function(){var p=this,y,l;return _.h(function(q){switch(q.nextAddress){case 1:return q.yield(p.JSC$17371_prefStorage,2);case 2:return(y=q.yieldResult)?q.yield(y.set("sfvle",!0),3):q.return();case 3:return q.yield(y.set("sfvles",!0),4);case 4:l=_.w$(),_.il(0,203,!0),_.il(0,204,!0),l.save(),_.rR(q)}})};
LQ[RL]=[Gy];_.jgw=new _.WE("SNACKBAR_CONTROLLER_TOKEN");_.b8d=new _.WE("SHOULD_SHOW_PIVOT_BAR_TOKEN");var kb=function(p){this.controller=p};
_.A(kb,yT);kb.prototype.resolveCommand=function(p){var y=this,l;return _.h(function(q){l=_.G(p,KZ$);if(!l)return q.return();var t=y.controller;t.closeSnackbarFn&&t.closeSnackbarFn();_.rR(q)})};
kb[RL]=[_.jgw];var Nz=function(p,y){this.controller=p;this.sheetController=y};
_.A(Nz,yT);Nz.prototype.resolveCommand=function(p,y){var l=this,q,t,E,e,C,u;return _.h(function(a){q=_.G(p,iIU);if(!q)return a.return();e=uoR(l.sheetController,(t=y)==null?void 0:(E=t.form)==null?void 0:E.element);C=_.G(q.content,XFU);if(!C)return a.return();var m=l.controller,U=C,b=(u=q.animationStyle)!=null?u:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(m.showSnackbarFn)m.showSnackbarFn({snackbarViewModel:U,animationStyle:b,durationMs:q.durationSeconds*1E3,target:e});else throw Error("lj");_.rR(a)})};
Nz[RL]=[_.jgw,_.Tu];var DP=function(){};
_.A(DP,yT);DP.prototype.resolveCommand=function(p){var y;return _.h(function(l){y=_.G(p,Wtr);if(!y||typeof y.key!=="string"||typeof y.value!=="string")return l.return();window.localStorage.setItem(y.key,y.value);_.rR(l)})};var Hv=function(p){this.store=p};
_.A(Hv,yT);Hv.prototype.resolveCommand=function(p){var y=this,l;return _.h(function(q){l=_.G(p,J8u);if(!l||!l.stepId||!l.token)return q.return();y.store.dispatch(u2U({stepId:l.stepId,token:l.token,isSelected:!1}));_.rR(q)})};
Hv[RL]=[rG];var Ty=function(p,y,l){this.innertubeTransportService=p;this.store=y;this.JSC$17390_screenManager=l};
_.A(Ty,yT);
Ty.prototype.resolveCommand=function(p){var y=this,l,q,t,E,e,C,u,a,m,U,b,P,Z,K,F,L,T,O,f,v,z,sc,hR;return _.h(function(Wt){l=_.G(p,c7r);if(!l||(q=l.stepIds)==null||!q.length)return Wt.return();t=y.store.getState().talkToRecs;E=[];e=[];C=_.c(l.stepIds);for(u=C.next();!u.done;u=C.next())for(a=u.value,m=void 0,(U=(m=t.stepStates[a])==null?void 0:m.userQuery)&&e.push({userQuery:U.userQuery,userQueryToken:U.token}),b=void 0,P=(b=t.stepStates[a])==null?void 0:b.selectionStates,Z=_.c(Object.entries(P)),K=
Z.next();!K.done;K=Z.next())F=K.value,L=_.c(F),T=L.next().value,O=L.next().value,f=T,v=O,v.isSelected&&E.push(f);z={selectedChipTokens:E,userQueries:e,submittedStepIds:l.stepIds};sc={browseTalk2recsFormData:z};l.browseEndpoint?(hR=p,_.oF(hR,_.wC,l.browseEndpoint)):l.command&&(hR=l.command);return hR?Wt.yield(_.eo(y.innertubeTransportService,hR,{formData:sc,disableCache:!0}).then(function(AR){(AR==null?0:AR.trackingParams)&&y.JSC$17390_screenManager.graftServerVe(AR==null?void 0:AR.trackingParams)}),
0):Wt.return()})};
Ty[RL]=[_.XC,rG,_.B_];var xb=function(p){this.store=p};
_.A(xb,yT);xb.prototype.resolveCommand=function(p){var y=this,l;return _.h(function(q){l=_.G(p,EOo);if(!l||!l.stepId||!l.token)return q.return();y.store.dispatch(u2U({stepId:l.stepId,token:l.token,isSelected:!0}));_.rR(q)})};
xb[RL]=[rG];var Bv=function(p){this.store=p};
_.A(Bv,yT);Bv.prototype.resolveCommand=function(p,y){var l=this,q,t,E,e,C;return _.h(function(u){q=_.G(p,eBU);if(!q||!q.stepId||!q.userQueryToken)return u.return();C=(e=(t=y)==null?void 0:(E=t.form)==null?void 0:E.userQuery)!=null?e:"";l.store.dispatch(_.$y({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:q.stepId,userQueryToken:q.userQueryToken,userQuery:C}}));_.rR(u)})};
Bv[RL]=[rG];_.n6w=new _.WE("TIMELY_ACTIONS_CONTROLLER_TOKEN");var fQ=function(p){this.controller=p};
_.A(fQ,yT);fQ.prototype.resolveCommand=function(p){var y=this,l,q,t,E;return _.h(function(e){l=_.G(p,vdM);if(!l)return e.return();q=l;t=q.id;E=q.isVisible;if(t===void 0||E===void 0)return e.return();var C;(C=y.controller.timelyActionsMap.get(t))==null||C(t,E);_.rR(e)})};
fQ[RL]=[_.n6w];var Gl7=function(){this.timelyActionsMap=new Map};var vv=function(p){this.JSC$17417_commandHandler=p};
_.A(vv,yT);vv.prototype.resolveCommand=function(p){var y=this,l,q,t,E,e;return _.h(function(C){l=_.G(p,_.kB);if(!l)return C.return();E=(q=l.item)==null?void 0:(t=q.notificationTextRenderer)==null?void 0:t.successResponseText;if(!E)return C.return();e=_.C4(E);y.JSC$17417_commandHandler.resolveCommand(e);_.rR(C)})};
vv[RL]=[_.aK];var Xb=function(p,y){this.innertubeTransportService=p;this.JSC$17422_playerApiPromise=y};
_.A(Xb,yT);
Xb.prototype.resolveCommand=function(p){var y=this,l,q,t,E,e,C,u,a,m;return _.h(function(U){if(U.nextAddress==1)return U.yield(y.JSC$17422_playerApiPromise,2);l=U.yieldResult;q=l.getOption("captions","track");t=Object.assign({},_.G(p,_.Fti));(e=(E=l.getVideoData())==null?void 0:E.video_id)?t.externalVideoId=e:_.ph(Error("Di"));if((C=q)==null?0:C.languageCode)t.languageCode=q.languageCode;if((u=q)==null?0:u.kind)t.kind=q.kind;if((a=q)==null?0:a.name)t.name=q.name;m=Object.assign({},p,{getTranscriptEndpoint:t});return U.yield(_.eo(y.innertubeTransportService,
m),0)})};
Xb[RL]=[_.XC,_.PN];var dL=function(){};
_.A(dL,yT);dL.prototype.resolveCommand=function(p){var y,l,q,t,E,e,C,u;return _.h(function(a){y=_.G(p,PRM);if((l=y)==null||!l.paramKeyValuePairs)return a.return();q=window.location.href;t=_.c(y.paramKeyValuePairs);for(E=t.next();!E.done;E=t.next())e=E.value,e.key&&e.value&&(C={},q=_.EC(q,(C[e.key]=e.value,C)));u=_.WC().resolve(_.Qd);_.g4(u,q);_.rR(a)})};var Ol=function(p,y){this.JSC$17429_commandHandler=p;this.innertubeTransportService=y};
_.A(Ol,yT);
Ol.prototype.resolveCommand=function(p,y){var l=this,q,t,E,e,C,u,a,m,U,b,P,Z,K,F,L,T,O;return _.h(function(f){switch(f.nextAddress){case 1:return(E=(q=y)==null?void 0:(t=q.form)==null?void 0:t.element)&&_.qR(E),e=_.w$().get("hl"),C="",_.Ve(f,2),f.yield(dq8(e),4);case 4:C=f.yieldResult;_.pK(f,3);break;case 2:return _.i6(f),E&&_.sP(E),_.Bs(Error("Fi"),"ERROR"),f.return();case 3:u=_.G(p,boi);if(!u)return E&&_.sP(E),f.return();(U=(a=u.commerceActionConfig)==null?void 0:(m=a.commandLifeCycleConfig)==null?
void 0:m.onStartCommand)&&l.JSC$17429_commandHandler.resolveCommand(U);return f.yield(_.eo(l.innertubeTransportService,p,{client_data:{paymentsClientToken:{token:C}}}),5);case 5:(b=f.yieldResult)?(E&&_.sP(E),((F=b)==null?0:F.command)&&l.JSC$17429_commandHandler.resolveCommand(b.command),(O=(L=u.commerceActionConfig)==null?void 0:(T=L.commandLifeCycleConfig)==null?void 0:T.onSuccessCommand)&&l.JSC$17429_commandHandler.resolveCommand(O)):(E&&_.sP(E),_.Bs(Error("Gi")),(K=(P=u.commerceActionConfig)==
null?void 0:(Z=P.commandLifeCycleConfig)==null?void 0:Z.onFailureCommand)&&l.JSC$17429_commandHandler.resolveCommand(K)),_.rR(f)}})};
Ol[RL]=[_.aK,_.XC];var ot=function(p,y,l){this.store=p;this.JSC$17445_commandHandler=y;this.innertubeTransportService=l};
_.A(ot,yT);
ot.prototype.resolveCommand=function(p,y){var l=this,q,t,E,e,C,u,a,m,U;return _.h(function(b){q=_.G(p,n5Q);t=q.googlePaymentPayload;q.onStartCommand&&l.JSC$17445_commandHandler.resolveCommand(q.onStartCommand);E=t.encryptedPurchaseParams;e=t.ypcLogWalletAnalyticDataEndpoint;C=q.serializedTransactionFlowLoggingParams;u=t.serializedPaymentsClientParams;a=q.ypcCujContext;U=zXo(l.innertubeTransportService,(m=y)==null?void 0:m.form,E,e,C,u,a);return b.return(U.then(function(P){ONj(y==null?void 0:y.form,
!1);var Z=l.store,K=l.JSC$17445_commandHandler,F=P.integratorData;F==null||F===""||P.error!=null?(String(P.error)==="-1"&&q.onDismissCommand?K.resolveCommand(q.onDismissCommand):String(P.error)!=="-1"&&q.onFailureCommand&&K.resolveCommand(q.onFailureCommand),String(P.error)!=="-1"&&String(P.error)!=="132"&&_.Bs(Error("Hi"),"ERROR")):(q.googlePaymentEntityKey&&Z.dispatch(_.Fp("commerceAcquisitionClientPayloadEntity",q.googlePaymentEntityKey,{key:q.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:F,
fundsGuaranteeCallbackClientData:P.integratorClientCallbackData}}})),q.onSuccessCommand&&K.resolveCommand(q.onSuccessCommand));_.PW()},function(P){ONj(y==null?void 0:y.form,!1);
_.Bs(P,"ERROR");q.onFailureCommand&&l.JSC$17445_commandHandler.resolveCommand(q.onFailureCommand)}))})};
ot[RL]=[bW,_.aK,_.XC];var zy=function(p,y){this.JSC$17449_commandHandler=p;this.purchaseManager=y};
_.A(zy,yT);
zy.prototype.resolveCommand=function(p){var y=this,l,q,t,E,e,C,u,a,m;return _.h(function(U){l=_.G(p,GS$);((q=l)==null?0:(t=q.commandLifeCycleConfig)==null?0:t.onStartCommand)&&y.JSC$17449_commandHandler.resolveCommand(l.commandLifeCycleConfig.onStartCommand);if(!((E=l)==null?0:(e=E.googlePaymentPurchaseManagerPayload)==null?0:e.securePayloadBytes))return _.Bs(Error("Ii"),"ERROR"),U.return();C=Z4N(_.hZ(l.googlePaymentPurchaseManagerPayload.securePayloadBytes));u=_.w$().get("hl");a=_.hs();ZiN(C.serialize(),
u,function(b){a.resolve(b)},function(b){a.reject(b)},a.resolve);
m=a.promise;return U.return(m.then(function(b){if(b)if(b==null?0:b.errorCode){_.Bs(Error("Ji`"+b.errorCode),"ERROR");var P,Z;((P=l)==null?0:(Z=P.commandLifeCycleConfig)==null?0:Z.onFailureCommand)&&y.JSC$17449_commandHandler.resolveCommand(l.commandLifeCycleConfig.onFailureCommand)}else if(b==null?0:b.isCancelled){var K,F;((K=l)==null?0:(F=K.commandLifeCycleConfig)==null?0:F.onCancelCommand)&&y.JSC$17449_commandHandler.resolveCommand(l.commandLifeCycleConfig.onCancelCommand)}else{var L,T;((L=l)==
null?0:(T=L.commandLifeCycleConfig)==null?0:T.onSuccessCommand)&&y.JSC$17449_commandHandler.resolveCommand(l.commandLifeCycleConfig.onSuccessCommand)}},function(b){_.Bs(b,"ERROR");
var P,Z;((P=l)==null?0:(Z=P.commandLifeCycleConfig)==null?0:Z.onFailureCommand)&&y.JSC$17449_commandHandler.resolveCommand(l.commandLifeCycleConfig.onFailureCommand)}))})};
zy[RL]=[_.aK,MTN];var P_m=function(p,y){this.JSC$17457_commandHandler=p;this.commandAllowlistOverride=y;var l;this.commandAllowlist=(l=this.commandAllowlistOverride)!=null?l:CX};
P_m.prototype.handleResponse=function(p,y,l){var q,t=y==null?void 0:(q=y.config)==null?void 0:q.command;if(!t||this.commandAllowlist.some(function(E){return!!_.G(t,E)})){y=void 0;
l!==void 0&&(y={form:{element:l}});p.onResponseReceivedCommand&&this.JSC$17457_commandHandler.resolveCommand(p.onResponseReceivedCommand,y);p.onResponseReceivedAction&&this.JSC$17457_commandHandler.resolveCommand(p.onResponseReceivedAction,y);p.onResponseReceivedEndpoint&&this.JSC$17457_commandHandler.resolveCommand(p.onResponseReceivedEndpoint,y);p.command&&this.JSC$17457_commandHandler.resolveCommand(p.command,y);if(p.onResponseReceivedCommands)for(l=_.c(p.onResponseReceivedCommands),q=l.next();!q.done;q=
l.next())this.JSC$17457_commandHandler.resolveCommand(q.value,y);if(p.onResponseReceivedActions)for(l=_.c(p.onResponseReceivedActions),q=l.next();!q.done;q=l.next())this.JSC$17457_commandHandler.resolveCommand(q.value,y);if(p.onResponseReceivedEndpoints)for(l=_.c(p.onResponseReceivedEndpoints),q=l.next();!q.done;q=l.next())this.JSC$17457_commandHandler.resolveCommand(q.value,y);if(p.actions)for(p=_.c(p.actions),l=p.next();!l.done;l=p.next())this.JSC$17457_commandHandler.resolveCommand(l.value,y)}};
P_m[RL]=[_.aK,_.RK(Pe5)];var ARV=new _.WE("INNERTUBE_TOKEN_SERVICE");var Z8A=new _.WE("SCHEDULER_TOKEN");var MjR=function(p){this.scheduler=p;p={};this.tokenMap=(p.app={},p.user={},p)};
MjR.prototype.handleResponse=function(p,y){if(!y)throw Error("Ki");var l;if(p=(l=p.responseContext)==null?void 0:l.innertubeTokenJar){if(p.appTokens){var q,t,E;l=(q=y.innerTubeRequest.context)==null?void 0:(t=q.request)==null?void 0:(E=t.innertubeTokenJar)==null?void 0:E.appTokens;Vj7(this,p.appTokens,this.tokenMap.app,l)}if(p.userTokens){var e,C,u;y=(e=y.innerTubeRequest.context)==null?void 0:(C=e.request)==null?void 0:(u=C.innertubeTokenJar)==null?void 0:u.userTokens;Vj7(this,p.userTokens,this.tokenMap.user,
y)}}};
MjR.prototype.processContext=function(p){p.request||(p.request={});var y=Object.keys(this.tokenMap.app).length,l=Object.keys(this.tokenMap.user).length;if(y||l)p.request.innertubeTokenJar={},y&&(p.request.innertubeTokenJar.appTokens=[].concat(_.xq(Object.values(this.tokenMap.app).flat()))),l&&(p.request.innertubeTokenJar.userTokens=[].concat(_.xq(Object.values(this.tokenMap.user).flat())))};
var Vj7=function(p,y,l,q){y=_.c(y);for(var t=y.next(),E={};!t.done;E={token$jscomp$138:void 0},t=y.next()){E.token$jscomp$138=t.value;if(E.token$jscomp$138.type===void 0)throw new _.SM("InnerTube token has no type",E.token$jscomp$138);if(E.token$jscomp$138.clearTokens)l[E.token$jscomp$138.type]=[];else if(E.token$jscomp$138.value!==void 0){l[E.token$jscomp$138.type]||(l[E.token$jscomp$138.type]=[]);if(q!==void 0&&q.length){t=_.c(q);for(var e=t.next(),C={};!e.done;C={requestToken:void 0},e=t.next())C.requestToken=
e.value,e=l[E.token$jscomp$138.type].findIndex(function(u){return function(a){return a===u.requestToken||(0,_.Ts.equals)(a,u.requestToken)}}(C)),e>-1&&l[E.token$jscomp$138.type].splice(e,1)}l[E.token$jscomp$138.type].push(E.token$jscomp$138);
E.token$jscomp$138.maxAgeSeconds&&Number(E.token$jscomp$138.maxAgeSeconds)>0&&p.scheduler.addLowPriorityJob(function(u){return function(){var a=l[u.token$jscomp$138.type].indexOf(u.token$jscomp$138);a>-1&&l[u.token$jscomp$138.type].splice(a,1)}}(E),Number(E.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.SM("InnerTube token has no value",E.token$jscomp$138);
}};
MjR[RL]=[Z8A];var g6d=new _.WE("LOCAL_INNERTUBE_ROUTER_TOKEN"),QgL=new _.WE("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Yb=function(p){this.serviceMap=p};
Yb.prototype.shouldPreferLocalResponse=function(p,y){return(p=KLR(this,p))?p.shouldPreferLocalResponse(y):!1};
Yb.prototype.localInnertubeResponse=function(p,y){var l=this,q;return _.h(function(t){return(q=KLR(l,p))?t.return(q.localInnertubeResponse(y)):t.return(Promise.reject(Error("Li")))})};
Yb.prototype.canProvideFallbackResponse=function(p,y){return(p=KLR(this,p))?p.canProvideFallbackResponse(y):!1};
Yb.prototype.localFallbackInnertubeResponse=function(p,y){var l=this,q;return _.h(function(t){return(q=KLR(l,p))?t.return(q.localFallbackInnertubeResponse(y)):t.return(Promise.reject(Error("Li")))})};
var KLR=function(p,y){y=_.AJ(y);return y?(p=p.serviceMap[y])?p:null:null};
Yb[RL]=[QgL];var NR=function(){};
NR.prototype.shouldPreferLocalResponse=function(){return!1};
NR.prototype.localInnertubeResponse=function(){return _.h(function(p){return p.return(Promise.reject(Error("Mi")))})};
NR.prototype.canProvideFallbackResponse=function(){return!0};
NR.prototype.localFallbackInnertubeResponse=function(){var p,y,l;return _.h(function(q){p=kF("CLOSE_POPUP");y={openPopupAction:IM6()};l={actions:[p,y]};return q.return(l)})};var z9o=function(p,y){this.JSC$17507_upliftPromise=p;this.store=y};
_.J=z9o.prototype;_.J.shouldPreferLocalResponse=function(p){var y=p.videoId,l;if(l=y)l=kAm(this.store.getState().entities,p.videoId);return l&&Ne6(this.store.getState().entities,y)?yAt(this.store.getState().entities,p.playlistId):!1};
_.J.localInnertubeResponse=function(p){var y=this,l;return _.h(function(q){return(l=y.getPlayerResponse(p))?q.return(Promise.resolve(l)):q.return(Promise.reject(Error("Ni")))})};
_.J.canProvideFallbackResponse=function(p){return!!p.videoId};
_.J.localFallbackInnertubeResponse=function(p){var y=this,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(y.JSC$17507_upliftPromise,2);l=y.getPlayerResponse(p);var t;l?t=q.return(Promise.resolve(l)):t=LW(y.store.getState().entities,p.videoId)?q.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.ar(_.g$("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:uBR()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
q.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.ar(_.g$("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:C75()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return t})};
_.J.getPlayerResponse=function(p){return CVt(this.store.getState().entities,p.videoId)};var kz=function(p,y){this.localPlayerService=p;this.localWatchNextService=y};
kz.prototype.shouldPreferLocalResponse=function(p){var y=p.playerRequest;p=p.watchNextRequest;return!!(y&&this.localPlayerService.shouldPreferLocalResponse(y)&&p&&this.localWatchNextService.shouldPreferLocalResponse(p))};
kz.prototype.localInnertubeResponse=function(p){var y=this,l,q,t,E;return _.h(function(e){if(e.nextAddress==1){l=p.playerRequest;q=p.watchNextRequest;if(!l||!q)throw new _.SM("Missing streaming request",p);return e.yield(y.localPlayerService.localInnertubeResponse(l),2)}if(e.nextAddress!=3)return t=e.yieldResult,e.yield(y.localWatchNextService.localInnertubeResponse(q),3);E=e.yieldResult;return e.return({playerResponse:t,watchNextResponse:E})})};
kz.prototype.canProvideFallbackResponse=function(p){var y=p.playerRequest;p=p.watchNextRequest;return!!(y&&this.localPlayerService.canProvideFallbackResponse(y)&&p&&this.localWatchNextService.canProvideFallbackResponse(p))};
kz.prototype.localFallbackInnertubeResponse=function(p){var y=this,l,q,t,E;return _.h(function(e){if(e.nextAddress==1)return l=p.playerRequest,q=p.watchNextRequest,l&&q?e.yield(y.localPlayerService.localFallbackInnertubeResponse(l),2):e.return(Promise.reject(new _.SM("Missing streaming request",p)));if(e.nextAddress!=3)return t=e.yieldResult,e.yield(y.localWatchNextService.localFallbackInnertubeResponse(q),3);E=e.yieldResult;return e.return({playerResponse:t,watchNextResponse:E})})};var SP=function(p){this.JSC$17517_persistentStorePromiseAccessor=p};
SP.prototype.shouldPreferLocalResponse=function(){return!1};
SP.prototype.localInnertubeResponse=function(){return _.h(function(p){return p.return(Promise.reject(Error("Oi")))})};
SP.prototype.canProvideFallbackResponse=function(){return!0};
SP.prototype.localFallbackInnertubeResponse=function(){var p=this,y,l;return _.h(function(q){return q.nextAddress==1?q.yield(p.JSC$17517_persistentStorePromiseAccessor(),2):q.nextAddress!=3?(y=q.yieldResult)?q.yield(y.get("service:guide:fallback"),3):q.return(Promise.reject(Error("Pi"))):(l=q.yieldResult)&&_.$z(l)?q.return(lit(_.$z(l))):q.return(Promise.reject(Error("Qi")))})};var DQ=function(){};
DQ.prototype.shouldPreferLocalResponse=function(){return!1};
DQ.prototype.localInnertubeResponse=function(){return _.h(function(p){return p.return(Promise.reject(Error("Ri")))})};
DQ.prototype.canProvideFallbackResponse=function(){return!0};
DQ.prototype.localFallbackInnertubeResponse=function(){var p,y,l;return _.h(function(q){p=kF("CLOSE_POPUP");y={openPopupAction:IM6()};l={actions:[p,y]};return q.return(l)})};var rU=function(){this.urlMap=wtd;this.fallbackCommand=_.Fx};
rU.prototype.shouldPreferLocalResponse=function(p){return(p=p.url)?!!i8d(this,p):!1};
rU.prototype.localInnertubeResponse=function(p){var y=this,l;return _.h(function(q){return(l=p.url)?q.return(rRm(p,i8d(y,l))):q.return(Promise.reject(Error("Si")))})};
rU.prototype.canProvideFallbackResponse=function(){return!0};
rU.prototype.localFallbackInnertubeResponse=function(p){var y=this,l,q,t,E,e,C,u;return _.h(function(a){l=p.url;if(!l)return a.return(rRm(p,y.fallbackCommand));if(q=i8d(y,l))return a.return(rRm(p,q));t=void 0;E=_.AJ(l);E==="/watch"&&(e=_.oY(l,"v"))&&(u=(C=_.oY(l,"list"))!=null?C:void 0,t=_.WV(e,u));t||(t=y.fallbackCommand);return a.return(rRm(p,t))})};
var i8d=function(p,y){if(y)return p.urlMap[_.IG(y)]},rRm=function(p,y){y&&p.parentTrackingParams&&(y.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:p.parentTrackingParams}},y.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:y})};var Fy=function(p,y,l){this.JSC$17527_upliftPromise=p;this.store=y;this.JSC$17527_persistentStorePromiseAccessor=l};
Fy.prototype.shouldPreferLocalResponse=function(){return!1};
Fy.prototype.localInnertubeResponse=function(){return _.h(function(p){return p.return(Promise.reject(Error("Ti")))})};
Fy.prototype.canProvideFallbackResponse=function(){return!0};
Fy.prototype.localFallbackInnertubeResponse=function(){var p=this;return _.h(function(y){return y.return(Sc7(p))})};
var Sc7=function(p){var y,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(UP(p.JSC$17527_upliftPromise,p.store),2);y=q.yieldResult;l={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[pXm(y)]}}}};return q.return(FLd(p,l))})},FLd=function(p,y){var l,q;
return _.h(function(t){if(t.nextAddress==1)return t.yield(p.JSC$17527_persistentStorePromiseAccessor(),2);if(t.nextAddress!=3)return l=t.yieldResult,t.yield(jP(l),3);q=t.yieldResult;return t.return({responseContext:{},contents:y,topbar:q})})};var wU=function(p,y,l){this.JSC$17534_upliftPromise=p;this.store=y;this.JSC$17534_persistentStorePromiseAccessor=l};
wU.prototype.shouldPreferLocalResponse=function(p){var y=p.videoId;return y&&kAm(this.store.getState().entities,y)&&Ne6(this.store.getState().entities,y)?yAt(this.store.getState().entities,p.playlistId):!1};
wU.prototype.localInnertubeResponse=function(p){var y=this,l,q;return _.h(function(t){if(t.nextAddress==1)return(l=p.videoId)?t.yield(y.JSC$17534_upliftPromise,2):t.return(Promise.reject(Error("Ui")));if(t.nextAddress!=3)return t.yield(LL1(y,p,l),3);q=t.yieldResult;return t.return(kld(y,q,l))})};
wU.prototype.canProvideFallbackResponse=function(p){return p.videoId?!0:!1};
wU.prototype.localFallbackInnertubeResponse=function(p){var y=this,l,q,t,E;return _.h(function(e){switch(e.nextAddress){case 1:return(l=p.videoId)?e.yield(y.JSC$17534_upliftPromise,2):e.return(Promise.reject(Error("Ui")));case 2:return e.yield(LL1(y,p,l),3);case 3:q=e.yieldResult;if(LW(y.store.getState().entities,l)){e.jumpTo(4);break}return e.yield(UP(y.JSC$17534_upliftPromise,y.store),5);case 5:return t=e.yieldResult,e.return(Nm7(q,t));case 4:return kAm(y.store.getState().entities,l)&&Ne6(y.store.getState().entities,
l)?e.return(kld(y,q,l)):(E={title:_.ar(_.g$("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:uBR()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},e.return(Nm7(q,E)))}})};
var LL1=function(p,y,l){var q,t,E,e,C;return _.h(function(u){if(u.nextAddress==1)return q=y.playlistId,t=_.WV(l,q),u.yield(p.JSC$17534_persistentStorePromiseAccessor(),2);if(u.nextAddress!=3)return E=u.yieldResult,u.yield(jP(E),3);e=u.yieldResult;C={responseContext:{},currentVideoEndpoint:t,topbar:e};return u.return(C)})},kld=function(p,y,l){if(p=LW(p.store.getState().entities,l)){var q;
l=p.videoEntity;var t,E={title:mN(l.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.Ut((q=l.localizedStrings)==null?void 0:q.viewCount),viewCount:_.Ut((t=l.localizedStrings)==null?void 0:t.viewCount)}}};l.publishedTimestampMillis&&(E.dateText=_.Ut(ySo(new Date(Number(l.publishedTimestampMillis)))));q={videoPrimaryInfoRenderer:E};t=p.videoEntity;p=p.channelEntity;p={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:mN(_.g$("SHOW_MORE",void 0,"Show more")),
showLessText:mN(_.g$("SHOW_LESS",void 0,"Show less")),description:t.formattedDescription,owner:{videoOwnerRenderer:{title:mN(p.title),thumbnail:p.avatar}}}};y.contents={twoColumnWatchNextResults:{results:{results:{contents:[q,p]}}}}}return y},Nm7=function(p,y){p.contents={singleColumnWatchNextResults:{results:{results:{contents:[pXm(y)]}}}};
return p};var Lp=function(p,y,l){this.JSC$17539_upliftPromise=p;this.store=y;this.JSC$17539_persistentStorePromiseAccessor=l};
Lp.prototype.shouldPreferLocalResponse=function(){return!1};
Lp.prototype.localInnertubeResponse=function(){return _.h(function(p){return p.return(Promise.reject(Error("Vi")))})};
Lp.prototype.canProvideFallbackResponse=function(){return!0};
Lp.prototype.localFallbackInnertubeResponse=function(){var p=this,y,l,q,t;return _.h(function(E){switch(E.nextAddress){case 1:return E.yield(p.JSC$17539_persistentStorePromiseAccessor(),2);case 2:return y=E.yieldResult,E.yield(jP(y),3);case 3:return l=E.yieldResult,q={responseContext:{},topbar:l},E.yield(p.JSC$17539_upliftPromise,4);case 4:return E.yield(UP(p.JSC$17539_upliftPromise,p.store),5);case 5:return t=E.yieldResult,q.watchStatus={backgroundPromoRenderer:t},E.return(q)}})};var Da6=new _.WE("ENDPOINT_MAP");var H86=function(){var p=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return p.sequenceMap}}},CJZ=function(p,y,l){var q,t=(q=y.config)==null?void 0:q.sequenceStrategy;
if(!t)return l();p.sequenceMap.has(t.sequenceKey)||p.sequenceMap.set(t.sequenceKey,[]);p=p.sequenceMap.get(t.sequenceKey);switch(t.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return Tm6(p,y,l);case "REQUEST_SEQUENCE_TYPE_REPLACE":return xam(p,y,l);default:throw new _.SM("Request could not be sequenced",y);}},Tm6=function(p,y,l){var q,t,E;
return _.h(function(e){p.length>0?(t=p[p.length-1],q=t.responsePromise.then(function(){return l()})):q=l();
E={request:y,responsePromise:q};p.push(E);BmO(p,E);return e.return(E.responsePromise)})},xam=function(p,y,l){l=l();
if(p.length>0)for(var q=_.c(p),t=q.next();!t.done;t=q.next())t.value.responsePromise=l;var E={request:y,responsePromise:l};p.push(E);BmO(p,E);return Promise.resolve().then(function(){return p.indexOf(E)>0?E.responsePromise.then(function(e){return Object.assign({},e,{sequenceMetaData:{skipProcessing:!0}})}):E.responsePromise})},BmO=function(p,y){y.responsePromise.then(function(){var l=p.indexOf(y);
l>-1&&p.splice(l,1)})};var ftR=new _.WE("REQUEST_SEQUENCING");var It=function(){};
_.A(It,Vh);It.prototype.getApiPaths=function(){return[]};
It.prototype.getExtension=function(p){return _.G(p,gCZ)};
It.prototype.JSC$12984_buildRequest=function(p,y){p.recaptchaToken=y.recaptchaToken};
It.prototype.getApiUrl=function(){return"/das_captcha"};var pG=function(){};
_.A(pG,Vh);pG.prototype.getApiPaths=function(){return $4O};
pG.prototype.getExtension=function(p){return _.G(p,qVU)};
pG.prototype.JSC$12984_buildRequest=function(p,y,l){l=l===void 0?{}:l;y.createBackstagePostParams&&(p.createBackstagePostParams=y.createBackstagePostParams);l.comment_text&&(p.commentText=l.comment_text);if(l.attached_video_id)p.videoAttachment={videoId:l.attached_video_id};else if(l.image_poll_options)p.pollAttachmentData={options:l.image_poll_options};else if(l.poll_options)p.pollAttachment={choices:l.poll_options};else if(l.quiz_options)p.quizAttachmentData={options:l.quiz_options};else if(l.image_blob_id)p.imageAttachment=
{encryptedBlobId:l.image_blob_id},l.source_video_id&&(p.imageAttachment.sourceExternalVideoId=l.source_video_id),l.image_preview_coordinates&&(p.imageAttachment.previewCoordinates=JSON.parse(l.image_preview_coordinates));else if(l.images_data)p.imagesAttachment={imagesData:l.images_data};else if(l.clip_external_video_id!==void 0||l.clip_offset_ms!==void 0||l.clip_duration_ms!==void 0){var q,t,E,e,C;p.clipAttachment={externalVideoId:(E=l.clip_external_video_id)!=null?E:"",offsetMs:(e=(q=l.clip_offset_ms)==
null?void 0:q.toString())!=null?e:"",durationMs:(C=(t=l.clip_duration_ms)==null?void 0:t.toString())!=null?C:""}}else l.shared_post_id&&(p.sharedPostAttachment={postId:l.shared_post_id});l.tagged_video_id&&(p.postCreationData={taggedVideoId:l.tagged_video_id});l.access_restrictions&&(typeof l.access_restrictions==="number"&&(y=l.access_restrictions,p.accessRestrictions={restriction:y!==1&&y===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof l.access_restrictions==="string"&&
(p.accessRestrictionsParams=l.access_restrictions));l.scheduled_publish_time_sec&&(p.scheduledPublishTimeSec=l.scheduled_publish_time_sec.toString())};var y1=function(){};
_.A(y1,Vh);y1.prototype.getApiPaths=function(){return ZPQ};
y1.prototype.getExtension=function(p){return _.G(p,j5O)};
y1.prototype.JSC$12984_buildRequest=function(p,y,l){l=l===void 0?{}:l;y.decorateMessageParams&&(p.params=y.decorateMessageParams);l.text&&(p.text=l.text)};var l5=function(){};
_.A(l5,Vh);l5.prototype.getApiPaths=function(){return vmZ};
l5.prototype.getExtension=function(p){return _.G(p,sZN)};
l5.prototype.JSC$12984_buildRequest=function(p,y,l){l=l===void 0?{}:l;l.video_id&&(p.videoId=l.video_id)};var q7=function(){};
_.A(q7,Vh);q7.prototype.getApiPaths=function(){return z8x};
q7.prototype.getExtension=function(p){return _.G(p,_.Mn)};
q7.prototype.JSC$12984_buildRequest=function(p,y,l){l.suggestions_query&&(p.input=l.suggestions_query)};var sB=function(){};
_.A(sB,Vh);sB.prototype.getApiPaths=function(){return QwO};
sB.prototype.getExtension=function(p){return _.G(p,tJP)};
sB.prototype.JSC$12984_buildRequest=function(p,y,l){l.comment_text!==void 0&&(p.commentText=l.comment_text);l.scheduled_publish_time_sec&&(p.scheduledPublishTimeSec=l.scheduled_publish_time_sec.toString());p.updateBackstagePostParams=y.updateBackstagePostParams};var t9=function(){};
_.A(t9,Vh);t9.prototype.getApiPaths=function(){return Cp};
t9.prototype.getExtension=function(p){return _.G(p,_.qr)};
t9.prototype.JSC$12984_buildRequest=function(p,y,l){l.formData&&(p.formData=l.formData);y.token?p.continuation=y.token:y.continuationTokenKey&&(l=_.ei().getState(),y=_.Ae(l.entities,"continuationTokenEntity",y.continuationTokenKey))&&(p.continuation=String(y.continuationToken))};
var v6i=function(){};
_.A(v6i,Vh);_.J=v6i.prototype;_.J.getApiPaths=function(){return Cp};
_.J.getExtension=function(p){return _.G(p,_.wC)};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$12991_getStoreKey=function(p){if((p=this.getExtension(p))&&p.browseId){var y={browseId:p.browseId};p.browseEndpointContextSupportedConfigs&&(y.browseEndpointContextSupportedConfigs=JSON.stringify(p.browseEndpointContextSupportedConfigs));p.params&&(y.params=p.params);p.query&&(y.query=p.query);return _.tO("browse",y)}};
_.J.JSC$12984_buildRequest=function(p,y,l){y.browseId&&(p.browseId=y.browseId);y.params&&(p.params=y.params);y.query&&(p.query=y.query);l.formData?p.formData=l.formData:y.formData&&(p.formData=y.formData);y.browseId==="FEsubscriptions"&&_.w$().getFlag(155)&&(p.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");y.browseId==="SPaccount_playback"&&(l=_.w$(),p.formData||(p.formData={}),p.formData.accountSettingsFormData={flagCaptionsDefaultOff:l.getFlag(65),flagAutoCaptionsDefaultOn:l.getFlag(66),
flagDisableInlinePreview:l.getFlag(186),flagAudioDescriptionDefaultOn:l.getFlag(198)});if(y.browseId==="FEwhat_to_watch"){l=_.w$();var q=l.getFlag(196);l.getFlag(197)&&(p.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:q}}})}y.browseId==="FEwhat_to_watch"&&(y=_.w$().getFlag(186),p.inlineSettingStatus=y?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.J.getRequestConfig=function(p,y){y=y===void 0?{}:y;var l={};if(p=this.JSC$12991_getStoreKey(p,y))l.storeStrategy={storeKey:p,disableCache:y.disableCache};_.n("web_log_browse_ticks_ks")||(l.requestTick="br_s",l.responseTick="br_r");return l};var EB=function(){};
_.A(EB,Vh);EB.prototype.getApiPaths=function(){return u0U};
EB.prototype.getExtension=function(p){return _.G(p,i2i)};
EB.prototype.JSC$12984_buildRequest=function(p,y,l){p.legacyYoutubeChannelUsername=l.legacyYouTubeChannelUsername||"";p.legacyYoutubeChannelPassword=l.legacyYouTubeChannelPassword||""};var J9=function(){};
_.A(J9,Vh);J9.prototype.getApiPaths=function(){return jwQ};
J9.prototype.getExtension=function(p){return _.G(p,RBM)};
J9.prototype.JSC$12984_buildRequest=function(p,y,l){l.recaptcha_response_token&&(p.recaptchaResponseToken=l.recaptcha_response_token);l.channel_id&&(p.channelId=l.channel_id)};var cy=function(){};
_.A(cy,Vh);cy.prototype.getApiPaths=function(){return KSV};
cy.prototype.getExtension=function(p){return _.G(p,jZQ)};
cy.prototype.JSC$12984_buildRequest=function(p,y,l){y.externalChannelId&&(p.externalChannelId=y.externalChannelId);l.handle&&(p.handleUpdate={handle:l.handle},y.handleEditSource&&(p.handleUpdate.handleEditSource=y.handleEditSource))};var ee=function(){};
_.A(ee,Vh);ee.prototype.getApiPaths=function(){return SWi};
ee.prototype.getExtension=function(p){return _.G(p,T5Q)};
ee.prototype.JSC$12984_buildRequest=function(p,y,l){y.request&&(p.channelId=y.request.channelId);var q;if(l==null?0:(q=l.uploadDefaults)==null?0:q.emojiReactionSet)p.uploadDefaultsRequest||(p.uploadDefaultsRequest={}),p.uploadDefaultsRequest.emojiReactionSet=l.uploadDefaults.emojiReactionSet};var h9=function(){};
_.A(h9,Vh);h9.prototype.getApiPaths=function(){return kuN};
h9.prototype.getExtension=function(p){return _.G(p,W6U)};
h9.prototype.JSC$12984_buildRequest=function(p,y,l){y.externalChannelId&&(p.externalChannelId=y.externalChannelId);y.channelHandleEntityKey&&(p.channelHandleEntityKey=y.channelHandleEntityKey);y.handleEditSource&&(p.handleEditSource=y.handleEditSource);l.handle?p.handle=l.handle:l.name&&(p.name=l.name)};var CG=function(){};
_.A(CG,Vh);CG.prototype.getApiPaths=function(){return aJ$};
CG.prototype.getExtension=function(p){return _.G(p,I9x)};
CG.prototype.JSC$12984_buildRequest=function(p,y){y.actions?p.actions=y.actions:y.action&&(p.actions=[y.action])};var u5=function(){};
_.A(u5,Vh);u5.prototype.getApiPaths=function(){return m4U};
u5.prototype.getExtension=function(p){return _.G(p,_.qr)};
u5.prototype.JSC$12984_buildRequest=function(p,y){y.token&&(p.continuation=y.token)};var Ry=function(){};
_.A(Ry,Vh);Ry.prototype.getApiPaths=function(){return B3N};
Ry.prototype.getExtension=function(p){return _.G(p,_.qr)};
Ry.prototype.JSC$12984_buildRequest=function(p,y){p.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";y.token&&(p.fetchCommentsParams={continuation:y.token})};var Wy=function(){};
_.A(Wy,Vh);Wy.prototype.getApiPaths=function(){return nmi};
Wy.prototype.getExtension=function(p){return _.G(p,Yxr)};
Wy.prototype.JSC$12984_buildRequest=function(p,y,l){l=l===void 0?{}:l;y.createReplyParams&&(p.createReplyParams=y.createReplyParams);y.commentText&&(p.commentText=_.JB(y.commentText));l.comment_text&&(p.commentText=l.comment_text);l.image_blob_id&&(p.imageAttachment={encryptedBlobId:l.image_blob_id});l.botguard_response&&(p.botguardResponse=l.botguard_response)};
_.Jh.Object.defineProperties(Wy.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ay=function(){};
_.A(ay,Vh);ay.prototype.getApiPaths=function(){return GLU};
ay.prototype.getExtension=function(p){return _.G(p,_.zFZ)};
ay.prototype.JSC$12984_buildRequest=function(p,y,l){l=l===void 0?{}:l;y.createCommentParams&&(p.createCommentParams=y.createCommentParams);y.commentText&&(p.commentText=_.JB(y.commentText));y.videoPositionMention&&(p.videoPositionMention=y.videoPositionMention);y.sources&&(p.sources=y.sources);l.comment_text&&(p.commentText=l.comment_text);l.attached_video_id?p.videoAttachment={videoId:l.attached_video_id}:l.poll_options?p.pollAttachment={choices:l.poll_options}:l.image_blob_id?p.imageAttachment=
{encryptedBlobId:l.image_blob_id}:l.shared_post_id&&(p.sharedPostAttachment={postId:l.shared_post_id});l.access_restrictions&&typeof l.access_restrictions==="number"&&(y=l.access_restrictions,p.accessRestrictions={restriction:y!==1&&y===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});l.botguard_response&&(p.botguardResponse=l.botguard_response)};
_.Jh.Object.defineProperties(ay.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var mk=function(){};
_.A(mk,Vh);mk.prototype.getApiPaths=function(){return w8v};
mk.prototype.getExtension=function(p){return _.G(p,yiU)};
mk.prototype.JSC$12984_buildRequest=function(p,y,l){y.commentText&&(p.replyText=_.JB(y.commentText));l.comment_text&&(p.replyText=l.comment_text);p.updateReplyParams=y.updateReplyParams};
_.Jh.Object.defineProperties(mk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var UB=function(){};
_.A(UB,Vh);UB.prototype.getApiPaths=function(){return i9N};
UB.prototype.getExtension=function(p){return _.G(p,p4Z)};
UB.prototype.JSC$12984_buildRequest=function(p,y,l){y.commentText&&(p.commentText=_.JB(y.commentText));l.comment_text&&(p.commentText=l.comment_text);p.updateCommentParams=y.updateCommentParams};
_.Jh.Object.defineProperties(UB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $R=function(){};
_.A($R,Vh);$R.prototype.getApiPaths=function(){return rFU};
$R.prototype.getExtension=function(p){return _.G(p,ktB)};
$R.prototype.JSC$12984_buildRequest=function(p,y){y.settings&&(p.settings=y.settings)};var je=function(){};
_.A(je,Vh);je.prototype.getApiPaths=function(){return Lsi};
je.prototype.getExtension=function(p){return _.G(p,aOV)};
je.prototype.JSC$12984_buildRequest=function(p,y){y.channelCreationToken&&(p.channelCreationToken=y.channelCreationToken);y.source&&(p.source=y.source)};var b5=function(){};
_.A(b5,Vh);b5.prototype.getApiPaths=function(){return bPP};
b5.prototype.getExtension=function(p){return _.G(p,$iN)};
b5.prototype.JSC$12984_buildRequest=function(p,y,l){l=l===void 0?{}:l;if(l.name&&(l.given_name||l.family_name))p=new _.SM("channel creation cannot set both GAIA and YouTube names",y),_.Bs(p);else{if(y.zeroStepChannelCreationParams){if(!l.comment_text){p=new _.SM("zero_step_create_comment_params but no zero_step_texts",y);_.Bs(p);return}p.zeroStepChannelCreationParams=y.zeroStepChannelCreationParams;p.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(p.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
l.comment_text,l.botguard_response&&(p.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=l.botguard_response))}p.channelCreationToken=y.channelCreationToken;l.given_name&&(p.givenName=l.given_name);l.family_name&&(p.familyName=l.family_name);y.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(p.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(l.name||l.handle||l.avatar_url||l.encryptedBlobId||l.isNameChanged!==void 0||l.isHandleChanged!==void 0||l.isDefaultProfilePhoto!==
void 0||l.obakeImageSource)p.overrideChannelCreationParams={},l.name&&(p.overrideChannelCreationParams.name=l.name),l.handle&&(p.overrideChannelCreationParams.handle=l.handle),l.avatar_url&&(p.overrideChannelCreationParams.avatarUrl=l.avatar_url),l.encryptedBlobId&&(p.overrideChannelCreationParams.blobEncryptionId=l.encryptedBlobId),l.enableIdentityForAllChannelCreationDialog&&(l.encryptedBlobId?p.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
l.isDefaultProfilePhoto!==void 0&&(p.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=l.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),l.isNameChanged!==void 0&&(p.overrideChannelCreationParams.identityForAllChannelCreationNameTag=l.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),l.isHandleChanged!==
void 0&&(p.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=l.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),l.obakeImageSource&&(p.overrideChannelCreationParams.obakeImageSourceType=l.obakeImageSource))}};var nG=function(){};
_.A(nG,Vh);nG.prototype.getApiPaths=function(p){return(p=this.getExtension(p))&&p.status==="DISLIKE"?QPP:p&&p.status==="INDIFFERENT"?WSv:loQ};
nG.prototype.getExtension=function(p){return _.G(p,_.yG)};
nG.prototype.JSC$12984_buildRequest=function(p,y){y.target&&(p.target=y.target);if(y=this.getParams(y))p.params=y};
nG.prototype.getParams=function(p){switch(p==null?void 0:p.status){case "DISLIKE":return p.dislikeParams;case "INDIFFERENT":return p.removeLikeParams;default:return p==null?void 0:p.likeParams}};var GD=function(){};
_.A(GD,Vh);GD.prototype.getApiPaths=function(){return AFU};
GD.prototype.getExtension=function(p){return _.G(p,JiU)};
GD.prototype.JSC$12984_buildRequest=function(p,y){y.settingItemId&&(p.settingItemId=y.settingItemId);y.stringValue!=null&&y.stringValue!==void 0?p.newValue={stringValue:y.stringValue}:y.intValue?p.newValue={intValue:y.intValue}:y.boolValue!==null&&y.boolValue!==void 0?p.newValue={boolValue:y.boolValue}:(p=new _.SM("Unknown value type for SetSettingEndpoint.",y),_.Bs(p))};var Py=function(){};
_.A(Py,Vh);Py.prototype.getApiPaths=function(){return ME$};
Py.prototype.getExtension=function(p){return _.G(p,gax)||void 0};
Py.prototype.JSC$12984_buildRequest=function(p,y,l){l=l===void 0?{}:l;y.channelIds&&(p.channelIds=y.channelIds);y.siloName&&(p.siloName=y.siloName);y.params&&(p.params=y.params);l.botguardResponse&&(p.botguardResponse=l.botguardResponse);l.feature&&(p.clientFeature=l.feature)};
_.Jh.Object.defineProperties(Py.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var A9=function(){};
_.A(A9,Vh);A9.prototype.getApiPaths=function(){return gGr};
A9.prototype.getExtension=function(p){return _.G(p,ciB)||void 0};
A9.prototype.JSC$12984_buildRequest=function(p,y){y.channelIds&&(p.channelIds=y.channelIds);y.siloName&&(p.siloName=y.siloName);y.params&&(p.params=y.params)};
_.Jh.Object.defineProperties(A9.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ZT=function(p){this.shareClientParamsProvider=p};
_.A(ZT,Vh);ZT.prototype.getApiPaths=function(){return cd_};
ZT.prototype.getExtension=function(p){return _.G(p,LGV)||_.G(p,_.kbU)||_.G(p,FGN)};
ZT.prototype.JSC$12984_buildRequest=function(p,y){y.serializedShareEntity&&(p.serializedSharedEntity=y.serializedShareEntity);if(y.clientParamIdentifier){var l;if((l=this.shareClientParamsProvider)==null?0:l.clientParams.has(y.clientParamIdentifier)){l=this.shareClientParamsProvider;y=y.clientParamIdentifier;var q=l.clientParams.get(y);q&&l.clientParams.delete(y);p.clientParams=q}}};
ZT[RL]=[smN];var M7=function(){};
_.A(M7,Vh);M7.prototype.getApiPaths=function(){return e8$};
M7.prototype.getExtension=function(p){return _.G(p,xDU)};
M7.prototype.JSC$12984_buildRequest=function(p,y){y.params&&(p.params=y.params)};var V1=function(){};
_.A(V1,Vh);V1.prototype.getApiPaths=function(){return KsM};
V1.prototype.getExtension=function(p){return _.G(p,DDU)};
V1.prototype.JSC$12984_buildRequest=function(p,y){y.dismissal&&(p.items=[y.dismissal])};
_.Jh.Object.defineProperties(V1.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var gK=function(){};
_.A(gK,Vh);gK.prototype.getApiPaths=function(){return p8$};
gK.prototype.getExtension=function(p){return _.G(p,_.dU)||void 0};
gK.prototype.JSC$12984_buildRequest=function(p,y,l){p.feedbackTokens=[];y.feedbackToken&&p.feedbackTokens.push(y.feedbackToken);if(y=y.cpn||l.cpn)p.feedbackContext={cpn:y};p.isFeedbackTokenUnencrypted=!!l.is_feedback_token_unencrypted;p.shouldMerge=!1;l.extra_feedback_tokens&&(p.shouldMerge=!0,p.feedbackTokens=p.feedbackTokens.concat(l.extra_feedback_tokens))};
_.Jh.Object.defineProperties(gK.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Q1=function(){};
_.A(Q1,Vh);Q1.prototype.getApiPaths=function(){return p8$};
Q1.prototype.getExtension=function(p){return _.G(p,_.Mn)};
Q1.prototype.JSC$12984_buildRequest=function(p,y,l){l.feedback_tokens&&(p.feedbackTokens=l.feedback_tokens,p.shouldMerge=!0)};
_.Jh.Object.defineProperties(Q1.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var KG=function(){};
_.A(KG,Vh);KG.prototype.getApiPaths=function(){return p8$};
KG.prototype.getExtension=function(p){return _.G(p,c8L)};
KG.prototype.JSC$12984_buildRequest=function(p,y){y.undoToken&&(p.feedbackTokens=[y.undoToken]);y.isUndoTokenUnencrypted&&(p.isFeedbackTokenUnencrypted=y.isUndoTokenUnencrypted)};
_.Jh.Object.defineProperties(KG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var wK=function(){};
_.A(wK,Vh);wK.prototype.getApiPaths=function(){return N4i};
wK.prototype.getExtension=function(p){return _.G(p,Lt$)};
wK.prototype.JSC$12984_buildRequest=function(p,y){y.nextEndpoint&&_.G(y.nextEndpoint,_.Id)?p.nextEndpoint={urlEndpoint:_.G(y.nextEndpoint,_.Id)}:y.nextEndpoint&&_.G(y.nextEndpoint,_.Eb)&&(p.nextEndpoint={watchEndpoint:_.G(y.nextEndpoint,_.Eb)});y.setRacy&&(p.setRacy=y.setRacy);y.setControvercy&&(p.setControvercy=y.setControvercy)};var i5=function(p){this.JSC$17720_storeWithEntities=p};
_.A(i5,Vh);i5.prototype.getApiPaths=function(){return iPP};
i5.prototype.getExtension=function(p){return _.G(p,J6r)};
i5.prototype.JSC$12984_buildRequest=function(p,y){y.flowId&&(p.flowId=y.flowId);y.targetId&&(p.targetId=y.targetId);y.continuation&&(p.continuation=y.continuation);var l=y.flowStateEntityKey;if(y.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&l&&this.JSC$17720_storeWithEntities){var q;if(y=(q=this.JSC$17720_storeWithEntities.getState())==null?void 0:q.entities)if(q=_.ba(l).entityType,q=_.Ae(y,q,l))p.flowState=q,p.flowStateEntityKey=l}};
_.Jh.Object.defineProperties(i5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
i5[RL]=[bW];var Xtd=function(){};
_.A(Xtd,Vh);_.J=Xtd.prototype;_.J.getApiPaths=function(){return IJB};
_.J.JSC$12991_getStoreKey=function(){return _.tO("guide")};
_.J.getRequestConfig=function(){var p=this.JSC$12991_getStoreKey(),y;p&&(y={storeStrategy:{storeKey:p}});return y};
_.J.isNavigationCommand=function(){return!0};
_.J.getExtension=function(p){return _.G(p,_.Mn)};
_.J.JSC$12984_buildRequest=function(p){p.fetchLiveState=!0};var rK=function(){};
_.A(rK,Vh);rK.prototype.getApiPaths=function(){return R8v};
rK.prototype.getExtension=function(p){return _.G(p,dvO)};
rK.prototype.JSC$12984_buildRequest=function(){};var Se=function(){};
_.A(Se,Vh);Se.prototype.getApiPaths=function(){return WsP};
Se.prototype.getExtension=function(p){return _.G(p,O5U)};
Se.prototype.JSC$12984_buildRequest=function(){};var FG=function(){};
_.A(FG,Vh);FG.prototype.getApiPaths=function(){return cCP};
FG.prototype.getExtension=function(p){return _.G(p,_.qr)};
FG.prototype.JSC$12984_buildRequest=function(p,y){y.token&&(p.continuation=y.token);var l,q;p==null||(l=p.context)==null||(q=l.user)==null||delete q.onBehalfOfUser};
FG.prototype.getRequestConfig=function(p){var y={},l;if(((l=this.getExtension(p))==null?void 0:l.sessionIndex)!==void 0){var q;y={authStrategy:{sessionIndex:(q=this.getExtension(p))==null?void 0:q.sessionIndex}}}return y};var LG=function(){};
_.A(LG,Vh);LG.prototype.JSC$12984_getRequest=function(p){var y=this.getExtension(p),l=p="";if(y==null?0:y.popup)p="true";if(y==null?0:y.disableSignout)l="true";y={};return{input:"/getAccountSwitcherEndpoint",requestShell:sb("/getAccountSwitcherEndpoint","GET",(y["X-YouTube-Delegation-Context"]=_.OY("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),y["X-YouTube-Account-Switcher-Popup"]=p,y["X-YouTube-Account-Switcher-Disable-Signout"]=l,y)),innerTubeRequest:{}}};
LG.prototype.getApiPaths=function(){return[]};
LG.prototype.getExtension=function(p){return _.G(p,_.jQl)};
LG.prototype.JSC$12984_buildRequest=function(){};var kR=function(){};
_.A(kR,Vh);kR.prototype.JSC$12984_getRequest=function(p){var y="/cross_account_channel_transfer";(p=this.getExtension(p))&&(y=Ewl(y,{target_session:p.targetSessionIndex,source_rapt:p.sourceRapt,rapt:p.targetRapt}));return{input:y,requestShell:sb(y,"GET"),innerTubeRequest:{}}};
kR.prototype.getApiPaths=function(){return[]};
kR.prototype.getExtension=function(p){return _.G(p,SfQ)};
kR.prototype.JSC$12984_buildRequest=function(){};var N7=function(){};
_.A(N7,Vh);N7.prototype.getApiPaths=function(){return rCP};
N7.prototype.isNavigationCommand=function(){return!0};
N7.prototype.getExtension=function(p){return _.G(p,_.Mn)};
N7.prototype.JSC$12984_buildRequest=function(p){var y=_.w$().get("gsml","");y&&(p.safetyModeLockerObfuscatedGaiaId=y);p.userInterfaceTheme=_.HI(!0);_.T5()?p.deviceTheme="DEVICE_THEME_SELECTED":_.swa()?p.deviceTheme="DEVICE_THEME_SUPPORTED":p.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var DT=function(){};
_.A(DT,Vh);DT.prototype.getApiPaths=function(){return cCP};
DT.prototype.getExtension=function(p){return _.G(p,FCO)};
DT.prototype.JSC$12984_buildRequest=function(p,y){if(y&&y.requestType&&(p.requestType=y.requestType,y.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||y.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var l=y.nextUrl;l&&(_.cOc(l)||Ch(l))&&(p.nextNavendpoint={urlEndpoint:{url:l}})}y&&y.channelSwitcherQuery&&(p.channelSwitcherQuery=y.channelSwitcherQuery);y&&y.triggerChannelCreation&&(p.triggerChannelCreation=y.triggerChannelCreation);var q;if(y==null?0:(q=y.contentOwnerConfig)==
null?0:q.externalContentOwnerId)p.contentOwnerConfig=y.contentOwnerConfig;p.callCircumstance=y&&y.requestType&&y.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var t,E;y=p==null?void 0:(t=p.context)==null?void 0:(E=t.user)==null?void 0:E.onBehalfOfUser;if(y!==void 0){p.obfuscatedSelectedGaiaId=y;var e,C;p==null||(e=p.context)==null||(C=e.user)==null||delete C.onBehalfOfUser}var u,a;if(t=p==null?void 0:(u=p.context)==null?void 0:(a=u.user)==null?
void 0:a.serializedDelegationContext)p.selectedSerializedDelegationContext=t};var Hy=function(){};
_.A(Hy,Vh);Hy.prototype.getApiPaths=function(){return h8r};
Hy.prototype.getExtension=function(p){return _.G(p,NnZ)};
Hy.prototype.JSC$12984_buildRequest=function(p,y){y.params&&(p.params=y.params)};var TD=function(){};
_.A(TD,Vh);TD.prototype.getApiPaths=function(){return jPv};
TD.prototype.getExtension=function(p){return _.G(p,_.IZM)};
TD.prototype.JSC$12984_buildRequest=function(p,y){if(y=y.createBroadcastRequest)p.useMasks=y.useMasks,p.broadcastType=y.broadcastType,p.broadcastSource=y.broadcastSource,p.broadcastMetadata=y.broadcastMetadata,p.broadcastMetadataMask=y.broadcastMetadataMask,p.videoMetadata=y.videoMetadata,p.videoMetadataMask=y.videoMetadataMask,p.liveChatSettingsUpdate=y.liveChatSettingsUpdate,p.liveChatSettingsUpdateMask=y.liveChatSettingsUpdateMask,p.cloneVideoId=y.cloneVideoId,p.cloneWithOverrides=y.cloneWithOverrides,
p.targetEntity=y.targetEntity,p.scheduledRedirectMetadata=y.scheduledRedirectMetadata};var xR=function(){};
_.A(xR,Vh);xR.prototype.getApiPaths=function(){return PAr};
xR.prototype.getExtension=function(p){return _.G(p,dyO)};
xR.prototype.JSC$12984_buildRequest=function(p,y,l){l=l===void 0?{}:l;y.params&&(p.params=y.params);l.questionText&&(p.questionText=l.questionText);l.optionText&&l.optionText.length>0&&(p.optionText=l.optionText)};var By=function(){};
_.A(By,Vh);By.prototype.getApiPaths=function(){return Mkr};
By.prototype.getExtension=function(p){return _.G(p,vfU)};
By.prototype.JSC$12984_buildRequest=function(p,y){y.params&&(p.params=y.params)};var fG=function(){};
_.A(fG,Vh);fG.prototype.getApiPaths=function(){return N3v};
fG.prototype.getExtension=function(p){return _.G(p,TIi)};
fG.prototype.JSC$12984_buildRequest=function(p,y){y.params&&(p.params=y.params)};var vy=function(){};
_.A(vy,Vh);vy.prototype.getApiPaths=function(){return HPM};
vy.prototype.getExtension=function(p){return _.G(p,xyv)};
vy.prototype.JSC$12984_buildRequest=function(p,y,l){y.params&&(p.params=y.params);y.continuation&&(p.continuation=y.continuation);l.currentPlayerState&&l.currentPlayerState.playerOffsetMs&&(p.currentPlayerState={playerOffsetMs:l.currentPlayerState.playerOffsetMs.toString()})};var XG=function(){};
_.A(XG,Vh);XG.prototype.getApiPaths=function(){return T3i};
XG.prototype.getExtension=function(p){return _.G(p,HgU)};
XG.prototype.JSC$12984_buildRequest=function(p,y,l){y.params&&(p.params=y.params);l.continuation&&(p.continuation=l.continuation);"hidden"in l&&(p.webClientInfo={isDocumentHidden:l.hidden});l.isInvalidationTimeoutRequest&&(p.isInvalidationTimeoutRequest=l.isInvalidationTimeoutRequest);l.invalidationPayload&&(y=DyZ(_.hZ(uv(l.invalidationPayload))),p.invalidationPayloadLastPublishAtUsec=dl(y,2));l.reloadActionPanel&&(p.reloadActionPanel=l.reloadActionPanel);l.fullReload&&(p.fullReload=l.fullReload);
l.currentPlayerState&&(p.currentPlayerState=l.currentPlayerState)};var dK=function(){};
_.A(dK,Vh);dK.prototype.getApiPaths=function(){return qWB};
dK.prototype.getExtension=function(p){return _.G(p,XEM)};
dK.prototype.JSC$12984_buildRequest=function(p,y){p.params=y.params};var OB=function(){};
_.A(OB,Vh);OB.prototype.getApiPaths=function(){return D4Z};
OB.prototype.getExtension=function(p){return _.G(p,yTx)};
OB.prototype.JSC$12984_buildRequest=function(p,y){y.params&&(p.params=y.params)};var oy=function(){};
_.A(oy,Vh);oy.prototype.getApiPaths=function(){return x4Q};
oy.prototype.getExtension=function(p){return _.G(p,l9O)};
oy.prototype.JSC$12984_buildRequest=function(p,y){y.params&&(p.params=y.params)};var zD=function(){};
_.A(zD,Vh);zD.prototype.getApiPaths=function(){return swO};
zD.prototype.getExtension=function(p){return _.G(p,Ogx)};
zD.prototype.JSC$12984_buildRequest=function(p,y){y.params&&(p.params=y.params)};var to=function(){};
_.A(to,Vh);to.prototype.getApiPaths=function(){return EGv};
to.prototype.getExtension=function(p){return _.G(p,ofP)};
to.prototype.JSC$12984_buildRequest=function(p,y){y.params&&(p.params=y.params)};var Ey=function(){};
_.A(Ey,Vh);Ey.prototype.getApiPaths=function(){return aoB};
Ey.prototype.getExtension=function(p){return _.G(p,TnO)};
Ey.prototype.JSC$12984_buildRequest=function(p,y){y.params&&(p.params=y.params)};var Jo=function(){};
_.A(Jo,Vh);Jo.prototype.getApiPaths=function(){return GuU};
Jo.prototype.getExtension=function(p){return _.G(p,_.zkB)};
Jo.prototype.JSC$12984_buildRequest=function(p,y,l){l=l===void 0?{}:l;y.params&&(p.params=y.params);l.client_message_id&&(p.clientMessageId=l.client_message_id);l.recaptcha_token&&(p.recaptchaToken=l.recaptcha_token);l.rich_message&&l.rich_message.text_segments?(y=l.rich_message.text_segments.map(function(q){var t={};q.text&&(t.text=q.text);q.emoji_id&&(t.emojiId=q.emoji_id);return t}),p.richMessage={textSegments:y}):l.message&&(p.message=l.message);
l.currentPlayerState&&(p.currentPlayerState=l.currentPlayerState)};var cr=function(){};
_.A(cr,Vh);cr.prototype.getApiPaths=function(){return P1N};
cr.prototype.getExtension=function(p){return _.G(p,YAV)};
cr.prototype.JSC$12984_buildRequest=function(p,y){y.params&&(p.params=y.params)};var eG=function(){};
_.A(eG,Vh);eG.prototype.getApiPaths=function(){return VEx};
eG.prototype.getExtension=function(p){return _.G(p,pzi)};
eG.prototype.JSC$12984_buildRequest=function(p,y,l){y.isUserInitiated&&(p.isUserInitiated=y.isUserInitiated);y.initiationSource&&(p.initiationSource=y.initiationSource);l.locationInfo&&(p.context.client.locationInfo=l.locationInfo)};var ho=function(){};
_.A(ho,Vh);ho.prototype.getApiPaths=function(){return tEN};
ho.prototype.getExtension=function(p){return _.G(p,pGV)};
ho.prototype.JSC$12984_buildRequest=function(p,y,l){y.metadataUpdateRequest&&(y=y.metadataUpdateRequest,p.encryptedVideoId=y.encryptedVideoId,y.liveChat&&(y=y.liveChat,p.liveChat||(p.liveChat={}),y.performAsExternalChannelId&&(p.liveChat.performAsExternalChannelId=y.performAsExternalChannelId),y.source&&(p.liveChat.source=y.source)));var q;if(l==null?0:(q=l.liveChat)==null?0:q.liveChatSettings)p.liveChat||(p.liveChat={}),l=l.liveChat.liveChatSettings,p.liveChat.newLiveChatSettings=l,p.liveChat.newLiveChatSettingsMask||
(p.liveChat.newLiveChatSettingsMask={}),l.emojiReactionSet&&(p.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var CM=function(){};
_.A(CM,Vh);CM.prototype.getApiPaths=function(){return LSV};
CM.prototype.getExtension=function(p){return _.G(p,_.e2N)};
CM.prototype.JSC$12984_buildRequest=function(p,y,l){l.continuation?p.continuation=l.continuation:y.videoId&&(p.videoId=y.videoId);l.clientParams&&(p.clientParams=l.clientParams)};var ue=function(){};
_.A(ue,Vh);ue.prototype.getApiPaths=function(){return B3N};
ue.prototype.getExtension=function(p){return _.G(p,_.zA)};
ue.prototype.JSC$12984_buildRequest=function(p,y){p.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";p.fetchCommentsParams={};y.videoId&&(p.fetchCommentsParams.encryptedVideoId=y.videoId);y.postId&&(p.fetchCommentsParams.postId=y.postId);y.externalChannelId&&(p.fetchCommentsParams.externalChannelId=y.externalChannelId);y.linkedCommentId&&(p.fetchCommentsParams.linkedCommentId=y.linkedCommentId);(0,_.Ts.isEmpty)(p.fetchCommentsParams)&&delete p.fetchCommentsParams};var RQ=function(){};
_.A(RQ,Vh);RQ.prototype.getApiPaths=function(){return Cp};
RQ.prototype.JSC$12984_buildRequest=function(p){p.browseId="FEnotifications_inbox"};
RQ.prototype.getExtension=function(p){return _.G(p,_.Mn)};var Wr=function(){};
_.A(Wr,Vh);Wr.prototype.getApiPaths=function(){return B3N};
Wr.prototype.JSC$12984_buildRequest=function(p,y){y.signal==="GET_NOTIFICATIONS_MENU"&&(p.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");y.ctoken&&(p.ctoken=y.ctoken)};
var da7=function(){};
_.A(da7,Wr);da7.prototype.getExtension=function(p){return _.G(p,_.Mn)};
var O8V=function(){};
_.A(O8V,Wr);O8V.prototype.getExtension=function(p){return _.G(p,rHZ)};var aQ=function(){};
_.A(aQ,Vh);aQ.prototype.getApiPaths=function(){return omr};
aQ.prototype.getExtension=function(p){return _.G(p,_.Mn)};
aQ.prototype.JSC$12984_buildRequest=function(){};var mD=function(){};
_.A(mD,Vh);mD.prototype.getApiPaths=function(){return JFU};
mD.prototype.getExtension=function(p){return _.G(p,sBN)||void 0};
mD.prototype.JSC$12984_buildRequest=function(p,y){y.params&&(p.params=y.params);y.secondaryParams&&(p.secondaryParams=y.secondaryParams)};var Uy=function(){};
_.A(Uy,Vh);Uy.prototype.getApiPaths=function(){return cFU};
Uy.prototype.getExtension=function(p){return _.G(p,DlB)};
Uy.prototype.JSC$12984_buildRequest=function(p,y){y.undo&&(p.undo=y.undo);y.serializedOptOut&&(p.serializedOptOut=y.serializedOptOut);y.serializedRecordInteractionsRequest&&(p.serializedRecordInteractionsRequest=y.serializedRecordInteractionsRequest)};var $i=function(){};
_.A($i,Vh);$i.prototype.getApiPaths=function(){return C1U};
$i.prototype.getExtension=function(p){return _.G(p,Hnr)};
$i.prototype.JSC$12984_buildRequest=function(p,y){y.serializedInteractionsRequest&&(p.serializedRecordNotificationInteractionsRequest=y.serializedInteractionsRequest)};var jG=function(){};
_.A(jG,Vh);jG.prototype.getApiPaths=function(){return eXt};
jG.prototype.getExtension=function(p){return _.G(p,VGo)};
jG.prototype.JSC$12984_buildRequest=function(p,y,l){y=y===void 0?{}:y;l=l===void 0?{}:l;y.videoId?p.videoId=y.videoId:y.playlistId&&(p.playlistId=y.playlistId);var q,t=(q=y.offlineWebClientEligibility)!=null?q:l.offlineWebClientEligibility;t&&(p.offlineWebClientEligibility=t);var E;if(q=(E=y.preferredFormatType)!=null?E:l.preferredFormatType)p.preferredFormatType=q;var e;if(E=(e=y.lastOfflineQualitySettingsSavedMs)!=null?e:l.lastOfflineQualitySettingsSavedMs)p.lastOfflineQualitySettingsSavedMs=E;
y.params&&(p.params=y.params)};var be=function(){};
_.A(be,Vh);be.prototype.getApiPaths=function(){return W4};
be.prototype.getExtension=function(p){return _.G(p,_.qr)};
be.prototype.JSC$12984_buildRequest=function(p,y,l){l=l===void 0?{}:l;y.token&&(p.continuation=y.token);l.formData&&(p.formData=l.formData)};var nM=function(){};
_.A(nM,Vh);nM.prototype.getApiPaths=function(){return W4};
nM.prototype.getExtension=function(p){return _.G(p,d6r)};
nM.prototype.JSC$12984_buildRequest=function(p,y,l){l=l===void 0?{}:l;p.continuation=l.continuation};var G8=function(){};
_.A(G8,Vh);G8.prototype.getApiPaths=function(){return W4};
G8.prototype.getExtension=function(p){return _.G(p,_.Xy)};
G8.prototype.JSC$12984_buildRequest=function(p,y){var l,q=y.panelIdentifier||((l=y.identifier)==null?void 0:l.tag);q&&(p.panelId=q);var t;if((t=y.globalConfiguration)==null?0:t.params){var E;p.params=(E=y.globalConfiguration)==null?void 0:E.params}};
_.Jh.Object.defineProperties(G8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Pr=function(){};
_.A(Pr,Vh);Pr.prototype.getApiPaths=function(){return W4};
Pr.prototype.getExtension=function(p){return _.G(p,wFU)};
Pr.prototype.JSC$12984_buildRequest=function(p,y){y.panelLoadingStrategy&&ETu(p,y.panelLoadingStrategy)};var Ao=function(){};
_.A(Ao,Vh);Ao.prototype.getApiPaths=function(){return W4};
Ao.prototype.getExtension=function(p){return _.G(p,Y4v)};
Ao.prototype.JSC$12984_buildRequest=function(p,y){y.loadingStrategy&&ETu(p,y.loadingStrategy)};var Z8=function(){};
_.A(Z8,Vh);Z8.prototype.getApiPaths=function(){return W4};
Z8.prototype.getExtension=function(p){return _.G(p,_.LX)};
Z8.prototype.JSC$12984_buildRequest=function(p,y){y.panelLoadingStrategy&&ETu(p,y.panelLoadingStrategy)};var M9=function(){};
_.A(M9,Vh);M9.prototype.getApiPaths=function(){return W4};
M9.prototype.getExtension=function(p){return _.G(p,IrM)};
M9.prototype.JSC$12984_buildRequest=function(p,y){var l,q=(l=y.contentSourcePanelIdentifier)==null?void 0:l.tag;q&&(p.panelId=q);var t;if((t=y.globalConfiguration)==null?0:t.params){var E;p.params=(E=y.globalConfiguration)==null?void 0:E.params}};var VK=function(){};
_.A(VK,Vh);VK.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
VK.prototype.getExtension=function(p){return _.G(p,pYU)};
VK.prototype.JSC$12984_buildRequest=function(p,y){y.params&&(p.params=y.params)};var g8=function(){};
_.A(g8,Vh);g8.prototype.getApiPaths=function(){return FSx};
g8.prototype.getExtension=function(p){return _.G(p,qxi)};
g8.prototype.JSC$12984_buildRequest=function(p,y){y.externalChannelId&&(p.externalChannelId=y.externalChannelId);y.superChatAction&&(p.superChatAction=y.superChatAction);y.superStickersAction&&(p.superStickersAction=y.superStickersAction)};var QK=function(){};
_.A(QK,Vh);QK.prototype.getApiPaths=function(){return Sgx};
QK.prototype.getExtension=function(p){return _.G(p,XYi)||_.G(p,QQR)};
QK.prototype.JSC$12984_buildRequest=function(p,y){y.videoIds?p.videoIds=y.videoIds:y.videoId&&(p.videoIds=[y.videoId]);y.playlistId&&(p.playlistId=y.playlistId);y.params&&(p.params=y.params);p.excludeWatchLater=!1};var KM=function(){};
_.A(KM,Vh);KM.prototype.getApiPaths=function(){return ACB};
KM.prototype.getExtension=function(p){return _.G(p,_.s_)};
KM.prototype.JSC$12984_buildRequest=function(p,y,l){l.create_playlist_title?p.title=l.create_playlist_title:y.title&&(p.title=y.title);if(l.create_playlist_privacy_status&&typeof l.create_playlist_privacy_status==="number"){a:{var q=l.create_playlist_privacy_status;if(q!==0){if(q===1){q="PUBLIC";break a}if(q===2){q="UNLISTED";break a}}q="PRIVATE"}p.privacyStatus=q}else y.privacyStatus&&(p.privacyStatus=y.privacyStatus);l.create_playlist_description&&(p.description=l.create_playlist_description);y.videoIds&&
(p.videoIds=y.videoIds);y.params&&(p.params=y.params);y.sourcePlaylistId&&(p.sourcePlaylistId=y.sourcePlaylistId)};var w8=function(){};
_.A(w8,Vh);w8.prototype.getApiPaths=function(){return Vk$};
w8.prototype.getExtension=function(p){return _.G(p,lUr)};
w8.prototype.JSC$12984_buildRequest=function(p,y){p.playlistId=y.playlistId};var ie=function(){};
_.A(ie,Vh);ie.prototype.getApiPaths=function(){return fJB};
ie.prototype.getExtension=function(p){return _.G(p,rgB)};
ie.prototype.JSC$12984_buildRequest=function(p,y){y.playlistId&&(p.playlistId=y.playlistId);y.params&&(p.params=y.params)};var r8=function(){};
_.A(r8,Vh);r8.prototype.getApiPaths=function(){return hcM};
r8.prototype.getExtension=function(p){return _.G(p,_.YB)||void 0};
r8.prototype.JSC$12984_buildRequest=function(p,y){y.actions&&(p.actions=y.actions);y.params&&(p.params=y.params);y.playlistId&&(p.playlistId=y.playlistId)};var SG=function(){};
_.A(SG,Vh);_.J=SG.prototype;_.J.getApiPaths=function(){return u7U};
_.J.getExtension=function(p){return _.G(p,_.FC)};
_.J.JSC$12984_buildRequest=function(p,y){y.videoId&&(p.playerRequest={videoId:y.videoId},y.playerParams&&(p.playerRequest.params=y.playerParams),y.racyCheckOk&&(p.playerRequest.racyCheckOk=!!y.racyCheckOk),y.contentCheckOk&&(p.playerRequest.contentCheckOk=!!y.contentCheckOk));y.params&&(p.params=y.params);y.inputType&&(p.inputType=y.inputType);p.disablePlayerResponse=!0};
_.J.getRequestConfig=function(p){var y;(p=this.JSC$12991_getStoreKey(p))&&(y={storeStrategy:{storeKey:p}});_.n("web_log_reels_ticks")&&(y=y||{},y.requestTick="r_wrs",y.responseTick="r_wrr");return y};
_.J.JSC$12991_getStoreKey=function(p){p=this.getExtension(p);if(_.n("shorts_controller_retrieve_seedless_sequence_v2")){if((p==null?void 0:p.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.tO("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if(_.n("web_shorts_prefetch_service_enabled")&&p!=null&&p.videoId){var y={videoId:p.videoId};p.params&&(y.params=p.params);return _.tO("reel_item_watch",y)}};var FQ=function(){};
_.A(FQ,Vh);_.J=FQ.prototype;_.J.getApiPaths=function(){return RcZ};
_.J.getExtension=function(p){return _.G(p,_.FC)};
_.J.JSC$12984_buildRequest=function(p,y,l){l=l===void 0?{}:l;p.sequenceParams=y.sequenceParams;var q;((q=l)==null?0:q.contentPlaybackContext)&&_.n("web_shorts_prefetch_service_enabled")&&(p.playbackContext={contentPlaybackContext:l.contentPlaybackContext})};
_.J.JSC$12991_getStoreKey=function(p){if(_.n("web_enable_delay_shorts_sequence_call")||_.n("shorts_controller_retrieve_seedless_sequence_v2"))if(p=this.getExtension(p),p==null?0:p.sequenceParams)return _.tO("reel_watch_sequence",{sequenceParams:p.sequenceParams})};
_.J.getRequestConfig=function(p){p=this.JSC$12991_getStoreKey(p);var y;p&&(y={storeStrategy:{storeKey:p}});_.n("reel_watch_sequence_request_log_ticks")&&(y=y||{},y.requestTick="r_wsrs",y.responseTick="r_wsrr",y.processorTick="r_wsrp");return y};
var LM=function(){};
_.A(LM,Vh);LM.prototype.getApiPaths=function(){return RcZ};
LM.prototype.getExtension=function(p){return _.G(p,_.qr)};
LM.prototype.JSC$12984_buildRequest=function(p,y,l){l=l===void 0?{}:l;y.token&&(p.continuation=y.token);var q;((q=l)==null?0:q.contentPlaybackContext)&&_.n("web_shorts_prefetch_service_enabled")&&(p.playbackContext={contentPlaybackContext:l.contentPlaybackContext})};
LM.prototype.getRequestConfig=function(p){p=this.JSC$12991_getStoreKey(p);var y;p&&(y={storeStrategy:{storeKey:p}});_.n("reel_watch_sequence_request_log_ticks")&&(y=y||{},y.requestTick="r_wsrs",y.responseTick="r_wsrr",y.processorTick="r_wsrp");return y};var ki=function(){};
_.A(ki,Vh);ki.prototype.getApiPaths=function(){return wSB};
ki.prototype.getExtension=function(p){return _.G(p,_.Ef$)};
ki.prototype.JSC$12984_buildRequest=function(p,y,l){l=l===void 0?{}:l;y.flagAction&&(p.action=y.flagAction);y.flagRequestType&&(p.flagRequestType=y.flagRequestType);y.additionalDetailCheckboxChecked&&(p.additionalDetailCheckboxChecked=y.additionalDetailCheckboxChecked);y.legalCheckboxChecked&&(p.legalCheckboxChecked=y.legalCheckboxChecked);y={};l.flag_issue_type!==void 0&&(y.issue=l.flag_issue_type);l.flag_affiliation!==void 0&&(y.affiliation=l.flag_affiliation);l.flag_full_name&&(y.fullName=l.flag_full_name);
Object.keys(y).length&&(p.legalReportDetails=y);if(l.flag_description||l.text)p.userComments=l.flag_description||l.text;y={};l.minutes!==void 0&&l.seconds!==void 0&&(y.minutes=l.minutes,y.seconds=l.seconds);l.vss_id&&(y.vssId=l.vss_id);Object.keys(y).length&&(p.videoReportDetails=y);y={};l.video_ids&&(y.videoIds=l.video_ids);l.impersonated_channel_url&&(y.impersonatedChannelUrl=l.impersonated_channel_url);Object.keys(y).length&&(p.channelAbuseReportDetails=y)};
_.Jh.Object.defineProperties(ki.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var N9=function(){};
_.A(N9,Vh);N9.prototype.getApiPaths=function(){return kLv};
N9.prototype.getExtension=function(p){return _.G(p,wEr)};
N9.prototype.JSC$12984_buildRequest=function(p,y){y.blockedForKidsContent&&(p.blockedForKidsContent=y.blockedForKidsContent)};var D8=function(){};
_.A(D8,Vh);D8.prototype.getApiPaths=function(){return mIM};
D8.prototype.getExtension=function(p){return _.G(p,gi8)};
D8.prototype.JSC$12984_buildRequest=function(p,y,l){p.params=y.params;l.impersonated_channel_url&&(p.impersonatedChannelUrl=l.impersonated_channel_url)};var Hr=function(){};
_.A(Hr,Vh);Hr.prototype.getApiPaths=function(){return yFU};
Hr.prototype.getExtension=function(p){return _.G(p,_.igU)};
Hr.prototype.JSC$12984_buildRequest=function(p,y){y.items&&(p.items=y.items);y.kidGaiaId&&(p.kidGaiaId=y.kidGaiaId)};var T8=function(){};
_.A(T8,Vh);T8.prototype.getApiPaths=function(){return Fsi};
T8.prototype.getExtension=function(p){return _.G(p,_.f9Z)};
T8.prototype.JSC$12984_buildRequest=function(p,y){y.params&&(p.params=y.params);y.targetId&&(p.targetId=y.targetId)};var xi=function(){};
_.A(xi,Vh);xi.prototype.getApiPaths=function(){return b9x};
xi.prototype.getExtension=function(p){return _.G(p,S0$)};
xi.prototype.JSC$12984_buildRequest=function(p,y){y.externalVideoId&&(p.externalVideoId=y.externalVideoId);y.query&&(p.query=y.query);y.sourceTimelines&&(p.sourceTimelines=y.sourceTimelines)};var Br=function(){};
_.A(Br,Vh);Br.prototype.getApiPaths=function(){return nGP};
Br.prototype.getExtension=function(p){return _.G(p,_.qr)||void 0};
Br.prototype.JSC$12984_buildRequest=function(p,y){y.token&&(p.continuation=y.token)};
_.o6u=function(){};
_.A(_.o6u,Vh);_.J=_.o6u.prototype;_.J.getApiPaths=function(){return nGP};
_.J.getExtension=function(p){return _.G(p,_.iS)||void 0};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$12991_getStoreKey=function(p,y){y=y===void 0?{}:y;if(!y.disableCache&&(p=this.getExtension(p))&&p.query)return y={query:p.query},p.params&&(y.params=p.params),_.tO("search",y)};
_.J.JSC$12984_buildRequest=function(p,y,l){y.query&&(p.query=y.query);y.params&&(p.params=y.params);if(!_.n("web_forward_suggest_stats_killswitch")){var q=_.G(y,M1M);q&&(p.suggestStats=q)}var t;!_.n("kevlar_searchbox_stats_killswitch")&&((t=l.tempData)==null?0:t.gs_l)&&!_.G(y,M1M)&&(p.webSearchboxStatsUrl="/search?oq="+(l.tempData.oq||"")+"&gs_l="+l.tempData.gs_l);var E;if((E=l.tempData)==null?0:E.entityMid)y=p.suggestionSearchParams||{},y.entityMid=l.tempData.entityMid,p.suggestionSearchParams=y;
_.n("enable_desktop_vdcbg_components")&&(l=_.w$().getFlag(186),p.inlineSettingStatus=l?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.J.getRequestConfig=function(p,y){y=y===void 0?{}:y;p=this.JSC$12991_getStoreKey(p,y);var l;p&&(l={storeStrategy:{storeKey:p}});_.n("web_log_search_ticks_ks")||(l=l||{},l.requestTick="sr_s",l.responseTick="sr_r");return l};var fM=function(){};
_.A(fM,Vh);fM.prototype.getApiPaths=function(){return d4i};
fM.prototype.getExtension=function(p){return _.G(p,WdZ)};
fM.prototype.JSC$12984_buildRequest=function(p,y){y.serializedGetSharingProviderDataParams&&(p.serializedGetSharingProviderDataParams=y.serializedGetSharingProviderDataParams)};var vr=function(){};
_.A(vr,Vh);vr.prototype.getApiPaths=function(){return OPx};
vr.prototype.getExtension=function(p){return _.G(p,y6U)};
vr.prototype.JSC$12984_buildRequest=function(p,y){y.endpoint&&(p.endpoint=y.endpoint);y.action&&(p.action=y.action)};var XQ=function(){};
_.A(XQ,Vh);XQ.prototype.getApiPaths=function(){return gmx};
XQ.prototype.getExtension=function(p){return _.G(p,q_x)};
XQ.prototype.JSC$12984_buildRequest=function(p,y){p.videoId=y.videoId;y.scheduledRedirectMetadataSourceVideoId&&(p.scheduledRedirectMetadata={sourceVideoId:y.scheduledRedirectMetadataSourceVideoId})};var d8=function(){};
_.A(d8,Vh);d8.prototype.getApiPaths=function(){return Z9P};
d8.prototype.getExtension=function(p){return _.G(p,_.luV)};
d8.prototype.JSC$12984_buildRequest=function(p,y){p.params=y.params;p.correctionText=y.correctionText};var Oy=function(){};
_.A(Oy,Vh);Oy.prototype.getApiPaths=function(){return EM5};
Oy.prototype.getExtension=function(p){return _.G(p,_.Fti)};
Oy.prototype.JSC$12984_buildRequest=function(p,y){y.params&&(p.params=y.params);p.searchQuery=y.searchQuery;p.languageCode=y.languageCode;p.kind=y.kind;p.name=y.name;p.externalVideoId=y.externalVideoId};var oQ=function(){};
_.A(oQ,Vh);oQ.prototype.getApiPaths=function(){return H9v};
oQ.prototype.getExtension=function(p){return _.G(p,mCO)};
oQ.prototype.JSC$12984_buildRequest=function(p,y){y.params&&(p.params=y.params)};var z8=function(p){this.JSC$17991_storeWithEntities=p};
_.A(z8,Vh);z8.prototype.getApiPaths=function(){return U4N};
z8.prototype.getExtension=function(p){return _.G(p,$CZ)||_.G(p,boi)};
z8.prototype.JSC$12984_buildRequest=function(p,y,l){l.client_data&&(p.clientData=l.client_data);if(y.commerceActionConfig){var q=y.commerceActionConfig;y=q.actionId;q=q.commerceActionParams;y&&(p.actionId=y);q&&(p.commerceActionParams=q)}else{var t=y.actionId,E=y.commerceActionParams;l=y.entityKeys;t&&(p.actionId=t);E&&(p.commerceActionParams=E);var e;y=(q=this.JSC$17991_storeWithEntities)==null?void 0:(e=q.getState())==null?void 0:e.entities;if(l&&y){q=[];e=_.c(l);for(l=e.next();!l.done;l=e.next())if(t=
l.value,l=_.ba(t).entityType,t=_.Ae(y,l,t))E={},q.push((E[l]=t,E));p.entityMutationPayloads=q}}};
z8.prototype.getRequestConfig=function(p){var y,l=(y=_.G(p,$CZ))==null?void 0:y.requestSequenceType;if(l&&p.clickTrackingParams&&l!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:p.clickTrackingParams,sequenceType:l}}};
z8[RL]=[bW];var Yi=function(){};
_.A(Yi,Vh);Yi.prototype.getApiPaths=function(){return T4x};
Yi.prototype.getExtension=function(p){return _.G(p,_.NZZ)};
Yi.prototype.JSC$12984_buildRequest=function(p,y){y.feedbackData&&(p.feedbackData=y.feedbackData);y.params&&(p.itemParams=y.params)};
_.Jh.Object.defineProperties(Yi.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var IQ=function(){};
_.A(IQ,Vh);IQ.prototype.getApiPaths=function(){return xIU};
IQ.prototype.getExtension=function(p){return _.G(p,DCi)};
IQ.prototype.JSC$12984_buildRequest=function(p,y,l){l.payments_payload&&(p.paymentsPayload=l.payments_payload);l.offer_params&&(p.offerParams=l.offer_params);y.transactionParams&&(p.transactionParams=y.transactionParams)};var p$=function(){};
_.A(p$,Vh);p$.prototype.getApiPaths=function(){return B4B};
p$.prototype.getExtension=function(p){return _.G(p,_.HoP)};
p$.prototype.JSC$12984_buildRequest=function(p,y,l){l=l===void 0?{}:l;y.buybucketParams&&(p.buybucketData={params:y.buybucketParams},y.stickerParams?p.buybucketData.stickerParams=y.stickerParams:(l.rich_chat_message?p.buybucketData.richChatMessage=l.rich_chat_message:l.chat_message_text&&(p.buybucketData.chatMessageText=l.chat_message_text),l.purchase_price_micros&&(p.buybucketData.purchasePriceMicros=l.purchase_price_micros.toString())));y.donationAmountMicros&&(p.tipAmountMicros=y.donationAmountMicros,
y.tipParams&&(p.tipParams=y.tipParams));y.offerParams&&(p.offerParams=y.offerParams);y.productData&&(p.productData=y.productData);y.transactionParams&&(p.transactionParams=y.transactionParams)};var yJ=function(){};
_.A(yJ,Vh);yJ.prototype.getApiPaths=function(){return foZ};
yJ.prototype.getExtension=function(p){return _.G(p,BZi)};
yJ.prototype.JSC$12984_buildRequest=function(p,y){y.updateFopParams&&(p.updateFopParams=y.updateFopParams)};var lq=function(){};
_.A(lq,Vh);lq.prototype.getApiPaths=function(){return vGB};
lq.prototype.getExtension=function(p){return _.G(p,_.Uw)};
lq.prototype.JSC$12984_buildRequest=function(p,y){y.couponCode&&(p.couponCode=y.couponCode);y.params&&(p.itemParams=y.params)};var qT=function(){};
_.A(qT,Vh);qT.prototype.getApiPaths=function(){return X8x};
qT.prototype.getExtension=function(p){return _.G(p,_.jiB)};
qT.prototype.JSC$12984_buildRequest=function(p,y,l){l=l===void 0?{}:l;y.params&&(p.params=y.params);l.ctk&&(p.clientToken=l.ctk)};var sJ=function(p){this.JSC$18026_storeWithEntities=p};
_.A(sJ,Vh);sJ.prototype.getApiPaths=function(){return dIN};
sJ.prototype.getExtension=function(p){return _.G(p,_.E_)};
sJ.prototype.JSC$12984_buildRequest=function(p,y,l){l.purchase_price_micros&&(p.productData={pdgData:{purchasePriceMicros:l.purchase_price_micros.toString()}},l.rich_chat_message&&(p.productData.pdgData.richChatMessage=l.rich_chat_message),l.currency_code&&(p.productData.pdgData.currencyCode=l.currency_code));y.transactionParams&&(p.transactionParams=y.transactionParams);y.clientLocationContext&&(p.clientLocationContext=y.clientLocationContext);l.payments_payload&&(p.paymentsPayload=l.payments_payload);
l.funds_guarantee_callback_client_data&&(p.fundsGuaranteeCallbackClientData=l.funds_guarantee_callback_client_data);var q,t;l=(q=this.JSC$18026_storeWithEntities)==null?void 0:(t=q.getState())==null?void 0:t.entities;if(y.entityKeys&&l){q=[];y=_.c(y.entityKeys);for(t=y.next();!t.done;t=y.next()){var E=t.value;t=_.ba(E).entityType;if(E=_.Ae(l,t,E)){var e={};q.push((e[t]=E,e))}}p.entityMutationPayloads=q}};
sJ[RL]=[bW];var ta=function(){};
_.A(ta,Vh);ta.prototype.getApiPaths=function(){return O9Q};
ta.prototype.getExtension=function(p){return _.G(p,TZQ)};
ta.prototype.JSC$12984_buildRequest=function(p,y,l){l=l===void 0?{}:l;l.backend_analytics&&(p.serializedBackendAnalyticsEvent=l.backend_analytics);y.offerParams&&(p.offerParams=y.offerParams)};var EJ=function(){};
_.A(EJ,Vh);EJ.prototype.getApiPaths=function(){return vGB};
EJ.prototype.getExtension=function(p){return _.G(p,Ha_)};
EJ.prototype.JSC$12984_buildRequest=function(p,y){y.params&&(p.itemParams=y.params)};var Ja=function(){};
_.A(Ja,Vh);Ja.prototype.getApiPaths=function(){return oG$};
Ja.prototype.getExtension=function(p){return _.G(p,_.Zoi)};
Ja.prototype.JSC$12984_buildRequest=function(p,y,l){l.resume_time_ms&&(p.resumeTimeMs=l.resume_time_ms);y.pauseParams&&(p.pauseParams=y.pauseParams)};var cO=function(){};
_.A(cO,Vh);cO.prototype.getApiPaths=function(){return zcr};
cO.prototype.getExtension=function(p){return _.G(p,_.xCN)};
cO.prototype.JSC$12984_buildRequest=function(p,y,l){l=l===void 0?{}:l;l.c&&(p.redeemCode=l.c);l.rd&&(p.riskData=l.rd);l.ctk&&(p.clientToken=l.ctk)};var eQ=function(){};
_.A(eQ,Vh);eQ.prototype.getApiPaths=function(){return YWv};
eQ.prototype.getExtension=function(p){return _.G(p,_.Msv)};
eQ.prototype.JSC$12984_buildRequest=function(p,y){y.resumeParams&&(p.resumeParams=y.resumeParams)};var ha=function(p,y){this.clientName=p;this.defaultExpirationDelayMs=y};
ha.prototype.put=function(p,y){var l=this,q;return _.h(function(t){q=Object.assign({},y.data);q.key=p;q.clientName=l.clientName;q.expireTimestampMs===void 0&&(q.expireTimestampMs=(Math.round((0,_.uM)())+l.defaultExpirationDelayMs).toString());return t.return(l.putInternal(p,q))})};
ha[RL]=[xu,e5T];var z51=function(){ha.apply(this,arguments);this.JSC$18056_responseStore=new Map};
_.A(z51,ha);_.J=z51.prototype;_.J.get=function(p){var y=this;return _.h(function(l){return l.return(MI(y,p))})};
_.J.putInternal=function(p,y){var l=this,q,t,E;return _.h(function(e){q=l.defaultExpirationDelayMs;y.expireTimestampMs&&(q=Number(y.expireTimestampMs)-Math.round((0,_.uM)()),t=_.UC("mweb_override_response_store_expiration_ms"),t>0&&t<q&&(q=t));E=setTimeout(function(){l.remove(p)},q);
l.JSC$18056_responseStore.set(p,{entryData:y,timer:E});_.rR(e)})};
_.J.remove=function(p){var y=this;return _.h(function(l){YcA(y,p);_.rR(l)})};
_.J.removeAll=function(){var p=this;return _.h(function(y){p.JSC$18056_responseStore.forEach(function(l){clearTimeout(l.timer)});
p.JSC$18056_responseStore.clear();_.rR(y)})};
_.J.has=function(p){return!!this.JSC$18056_responseStore.get(p)};
_.J.getKeys=function(){return this.JSC$18056_responseStore.keys()};
var MI=function(p,y){if(p=p.JSC$18056_responseStore.get(y))return new _.Zo(p.entryData)},YcA=function(p,y){var l=p.JSC$18056_responseStore.get(y);
l&&(clearTimeout(l.timer),p.JSC$18056_responseStore.delete(y))};var JAc;var h1_=function(p,y,l){ha.call(this,p,y);this.token=l};
_.A(h1_,ha);_.J=h1_.prototype;_.J.get=function(p){var y=this,l,q;return _.h(function(t){return t.nextAddress==1?t.yield(e1g(y.token),2):t.nextAddress!=3?(l=t.yieldResult,t.yield(l.get("ResponseStore",[p,y.clientName]),3)):(q=t.yieldResult)?t.return(new _.Zo(q)):t.return(void 0)})};
_.J.putInternal=function(p,y){var l=this,q;return _.h(function(t){if(t.nextAddress==1)return t.yield(e1g(l.token),2);q=t.yieldResult;return t.yield(q.put("ResponseStore",y),0)})};
_.J.remove=function(p){var y=this,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(e1g(y.token),2);l=q.yieldResult;return q.return(l.delete("ResponseStore",[p,y.clientName]))})};
_.J.removeAll=function(){var p=this,y;return _.h(function(l){if(l.nextAddress==1)return l.yield(e1g(p.token),2);y=l.yieldResult;return l.yield(MW$(y,IDBKeyRange.only(p.clientName)),0)})};
_.J.has=function(){throw Error("Wi");};_.C$=new _.WE("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var ItL=function(p){var y;this.stateTagsData=(y=p.responseContext)==null?void 0:y.stateTags},pUO=function(p){var y;
return((y=p.stateTagsData)==null?void 0:y.stateTagsModified)||[]};var yZw;yZw=function(p){this.JSC$18069_responseStore=p};
_.qY=function(p,y,l){if(!_.n("state_tags_killswitch")){var q=new ItL(y);if(pUO(q).length>0){var t=p.JSC$18069_responseStore.getKeys();t=_.c(t);for(var E=t.next();!E.done;E=t.next()){E=E.value;var e=MI(p.JSC$18069_responseStore,E);if(e){var C=_.$z(e);a:{var u=void 0;e=pUO(q);C=((u=(new ItL(C)).stateTagsData)==null?void 0:u.relevantStateTags)||[];u=_.c(C);for(C=u.next();!C.done;C=u.next())if(C=C.value,C.stateTag!=null&&e.includes(C.stateTag)&&C.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){e=
!0;break a}e=!1}e&&YcA(p.JSC$18069_responseStore,E)}}}}var a;q=(a=y.responseContext)==null?void 0:a.maxAgeSeconds;l&&q&&Number(q)>0&&(y=Z6(y,q),p.JSC$18069_responseStore.put(l,new _.Zo(y)))};
yZw.prototype.handleResponse=function(p,y){if(!y)throw Error("Xi");var l,q;y=(l=y.config)==null?void 0:(q=l.storeStrategy)==null?void 0:q.storeKey;_.qY(this,p,y)};
yZw[RL]=[_.AF];_.UK_=new _.WE("STORE_RESPONSE_PROCESSOR_TOKEN");var lVu=function(p){this.JSC$18072_responseStore=p};
lVu.prototype.handleResponse=function(p,y){if(y.input.match(_.hB(RcZ))){var l;if(p==null?0:(l=p.entries)==null?0:l.length)for(p=_.c(p.entries),y=p.next();!y.done;y=p.next()){l=y.value.command;var q=void 0;y=(q=_.G(l,_.FC))==null?void 0:q.unserializedPrefetchData;if(!l||!y)break;q=(new SG).JSC$12991_getStoreKey(l);var t=_.G(y,gBr),E=void 0,e=void 0,C=void 0,u=_.UC("web_shorts_prefetch_service_ttl_seconds")>0?_.UC("web_shorts_prefetch_service_ttl_seconds"):Number((C=(E=t)==null?void 0:(e=E.responseContext)==
null?void 0:e.maxAgeSeconds)!=null?C:3600);q&&u>0&&(t=Z6(t,u),this.JSC$18072_responseStore.put(q,new _.Zo(t)));l=(new i2).JSC$12991_getStoreKey(l);y=_.G(y,uRr);E=t=q=void 0;e=_.UC("web_shorts_prefetch_service_ttl_seconds")>0?_.UC("web_shorts_prefetch_service_ttl_seconds"):Number((E=(q=y)==null?void 0:(t=q.responseContext)==null?void 0:t.maxAgeSeconds)!=null?E:3600);l&&e>0&&(y=Z6(y,e),this.JSC$18072_responseStore.put(l,new _.Zo(y)))}}};
lVu[RL]=[_.AF];var q$1=function(p){this.innertubeTransportService=p};
q$1[RL]=[_.XC];var sv1=new _.WE("SUBMIT_API_SERVICE_TOKEN");var uq=function(){this.scheduler=_.B3()},tB6;
uq.prototype.pause=function(){throw Error("Yi");};
uq.prototype.resume=function(){throw Error("Yi");};
uq.prototype.queue=function(p){var y=this,l=_.hs(),q=_.rJ(this.scheduler,function(){try{var t;if(_.wW.instance)var E=_.wW.instance;else{var e=new _.SM("Error: Unexpected uninitialized CommandHandler.");_.Bs(e);E=void 0}(t=E)==null||t.resolveCommand(p.command);l.resolve()}catch(C){l.reject(C)}});
l.promise.thenCatch(function(t){t instanceof _.lW&&y.scheduler.cancelJob(q)});
return l.promise};
uq.prototype.queueAll=function(p){var y=new Map;p=_.c(p);for(var l=p.next();!l.done;l=p.next())l=l.value,y.set(l.id,this.queue(l));return y};var JZ6=function(p,y){var l=this;this.taskModel=p;this.onTaskCancelledCallback=y;this.resolver=_.hs();p=p.proto.prefetchConfig;if(!p)throw Error("Zi");if(!p.prefetchAction)throw Error("$i");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(q){q instanceof _.lW&&(Exm(l,l.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),l.onTaskCancelledCallback(l.taskModel.id,l.jobId),l.tick("pcc"));
throw q;});
this.timerName=this.taskModel.id;_.BW(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
JZ6.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var Exm=function(p,y){_.xw({prefetchInfo:{cancellationReason:y}},p.timerName)};
JZ6.prototype.tick=function(p){_.fy(p,void 0,this.timerName)};var WO=function(){var p=this;this.scheduler=_.B3();this.maxInflightTasks=_.UC("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.UC("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new Olr;this.onTaskCancelled=function(y,l){l&&p.scheduler.cancelJob(l);cZi(p,y);Ro(p,3)}},erA=function(){WO.instance||(WO.instance=new WO);
return WO.instance};
WO.prototype.pause=function(){this.prefetchCoordinatorState=0};
WO.prototype.resume=function(){Ro(this,0)};
WO.prototype.queue=function(p){p=hr1(this,p);Ro(this,1);return p};
WO.prototype.queueAll=function(p){var y=new Map;p=_.c(p);for(var l=p.next();!l.done;l=p.next())l=l.value,y.set(l.id,hr1(this,l));Ro(this,1);return y};
var hr1=function(p,y){var l=p.allPrefetchTasks.get(y.id);if(l)return l.cancellablePromise;try{var q=new JZ6(y,p.onTaskCancelled)}catch(E){return _.vL(E)}l=q;l.tick("pcq");var t={prefetchInfo:{taskId:l.taskModel.id,isPrefetch:!0,fetchAction:l.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:l.taskModel.command.clickTrackingParams}};l.taskModel.csn&&(t.clientScreenNonce=l.taskModel.csn);_.xw(t,l.timerName);p.allPrefetchTasks.set(y.id,q);p.drainingHeap.insert(-q.getPriority(),q);return q.cancellablePromise},
Ro=function(p,y){p.prefetchCoordinatorState===y&&(p.prefetchCoordinatorState=2,CN9(p))},CN9=function(p){for(var y={};p.prefetchCoordinatorState!==0;y={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(p.inflightPrefetchTasks.size>=p.maxInflightTasks){p.prefetchCoordinatorState=3;break}y.prefetchTask$jscomp$1=p.drainingHeap.remove();if(!y.prefetchTask$jscomp$1){p.prefetchCoordinatorState=1;break}y.taskId$jscomp$3=y.prefetchTask$jscomp$1.taskModel.id;if(p.allPrefetchTasks.has(y.taskId$jscomp$3)){var l=-1;p.coordinatorTimeoutMs>0&&(l=_.rJ(p.scheduler,function(q){return function(){ao(p,q.taskId$jscomp$3,Error("aj"))}}(y),p.coordinatorTimeoutMs));
p.inflightPrefetchTasks.set(y.taskId$jscomp$3,l);if(!p.JSC$18090_commandHandler){if(!_.wW.instance){ao(p,y.taskId$jscomp$3,Error("bj"));continue}p.JSC$18090_commandHandler=_.wW.instance}a:switch(y.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":l=1;break a;default:l=0}y.prefetchTask$jscomp$1.jobId=p.scheduler.addJob(function(q){return function(){q.prefetchTask$jscomp$1.tick("pcr");try{p.JSC$18090_commandHandler.resolveCommand(q.prefetchTask$jscomp$1.taskModel.command)||
ao(p,q.taskId$jscomp$3,Error("cj"))}catch(t){ao(p,q.taskId$jscomp$3,t)}}}(y),l,0)}}},uiO=function(p,y){(y=cZi(p,y))!=null&&(y.resolver.resolve(),y.tick("pce"));
Ro(p,3)},ao=function(p,y,l){(y=cZi(p,y,l))!=null&&(y.resolver.reject(l),y.tick("pcc"),Exm(y,"CANCELLATION_REASON_ERROR"),Math.random()<=_.UC("prefetch_coordinator_error_logging_sampling_rate")&&(l=new _.SM("Prefetch Command failed.",y.taskModel.id,l.message),_.Bs(l)));
Ro(p,3)},cZi=function(p,y,l){var q=p.allPrefetchTasks.get(y);
q?((l=p.inflightPrefetchTasks.get(y))&&l!==-1&&p.scheduler.cancelJob(l),p.inflightPrefetchTasks.delete(y),p.allPrefetchTasks.delete(y)):_.vs(new _.SM("Unexpected missing prefetch task when deleting task.",y,l==null?void 0:l.message));return q};var Rrm=function(p,y,l,q,t){this.id=p;this.triggerOn=y;this.cancelOn=l;this.command=q;this.proto=t};
_.Jh.Object.defineProperties(Rrm.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var WPT=function(){this.JSC$18095_prefetchCoordinator=erA();tB6||(tB6=new uq);this.defaultCoordinator=tB6},aVV;
WPT.getInstance=function(){aVV||(aVV=new WPT);return aVV};
WPT.prototype.get=function(p){switch(p){case 0:return this.JSC$18095_prefetchCoordinator;default:return this.defaultCoordinator}};var mU=function(){this.coordinatorSupplier=WPT.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},$OR=function(p){var y=_.B2()||void 0,l=Object.keys(mO7)[0];
if(l){var q=p.taskIdByTriggerId.get(l);if(q!=null){p.taskIdByTriggerId.delete(l);l=[];q=_.c(q);for(var t=q.next();!t.done;t=q.next())if(t=p.tasks.get(t.value))y!=="UNDEFINED_CSN"&&(t.csn=y),l.push(t);l=R1t(l);y=[];l=_.c(l);for(q=l.next();!q.done;q=l.next()){t=_.c(q.value);q=t.next().value;t=t.next().value;q=p.coordinatorSupplier.get(q).queueAll(t);q=_.c(q);var E=q.next();for(t={};!E.done;t={taskId$jscomp$9:void 0},E=q.next()){var e=_.c(E.value);E=e.next().value;e=e.next().value;t.taskId$jscomp$9=
E;E=e;y.push(t.taskId$jscomp$9);p.queuedPromisesByTask.set(t.taskId$jscomp$9,_.DO(E,function(C){return function(){UOm(p,C.taskId$jscomp$9)}}(t)))}}}}else _.vs(new _.SM("Unexpected malformed TriggerEvent."))};
mU.prototype.trigger=function(p,y){var l=this,q=this.tasks.get(p);if(!q||this.queuedPromisesByTask.has(p))return!1;jvV(this,p,q.triggerOn);y!=="UNDEFINED_CSN"&&(q.csn=y);y=this.coordinatorSupplier.get(q.taskType).queue(q);this.queuedPromisesByTask.set(p,_.DO(y,function(){UOm(l,p)}));
return!0};
mU.prototype.cancel=function(p){var y=this.queuedPromisesByTask.get(p);if(y)y.cancel();else return UOm(this,p)};
var UOm=function(p,y){p.queuedPromisesByTask.delete(y);var l=p.tasks.get(y);if(!l)return!1;p.tasks.delete(y);jvV(p,y,l.triggerOn);(l=usL(l.cancelOn))&&(p=p.taskIdByCancelId.get(l))&&p.delete(y);return!0},jvV=function(p,y,l){(l=Object.keys(l)[0])&&(p=p.taskIdByTriggerId.get(l))&&p.delete(y)};var mO7={taskRegistered:{}},UJ=function(){mU.instance||(mU.instance=new mU);this.JSC$18104_taskManager=mU.instance};
_.A(UJ,yT);
UJ.prototype.resolveCommand=function(p){var y=this,l,q;return _.h(function(t){l=_.G(p,QuQ);if((q=l)==null||!q.tasks){var E=new _.SM("RegisterTasksCommand is missing tasks.");_.Bs(E);return t.return()}E=y.JSC$18104_taskManager;for(var e=_.c(l.tasks),C=e.next();!C.done;C=e.next())if(C=C.value,C=C.id&&C.triggerOn&&C.cancelOn&&C.command?new Rrm(C.id,C.triggerOn,C.cancelOn,C.command,C):void 0,C){var u=Object.keys(C.triggerOn)[0];if(u){var a=usL(C.cancelOn);a?(E.tasks.set(C.id,C),E.taskIdByTriggerId.has(u)||E.taskIdByTriggerId.set(u,
new Set),E.taskIdByTriggerId.get(u).add(C.id),E.taskIdByCancelId.has(a)||E.taskIdByCancelId.set(a,new Set),E.taskIdByCancelId.get(a).add(C.id)):_.vs(new _.SM("Unexpected malformed cancelOn field."))}else _.vs(new _.SM("Unexpected malformed triggerOn field."))}else _.vs(new _.SM("Unexpected malformed Task proto."));$OR(y.JSC$18104_taskManager);_.rR(t)})};var bUd={},nxL=(bUd.rendered={priority:0,callback:function(){var p={};p.numCpu=navigator.hardwareConcurrency;var y={};y.ramGb=_.l_.navigator.deviceMemory;var l={staticContext:{}};y.ramGb&&W7j(y.ramGb)&&(l.staticContext.memoryTotalKbytes=(y.ramGb*1048576).toString());p.numCpu&&W7j(p.numCpu)&&(l.staticContext.cpuCores=p.numCpu);if(_.n("web_enable_adaptive_appl_signal")){p={};y=_.d$("rses_dpj");var q=_.d$("rsef_dpj");y&&y>0&&q&&q>0&&(y=Math.ceil(q-y),y>0&&(p.loadLatency=y));p.loadLatency&&W7j(p.loadLatency)&&
(l.appL=p.loadLatency.toString())}_.TX("applicationStarted",l)}},bUd);var GM7=new _.WE("WINDOW_ON_ERROR"),PNd=new _.WE("ERROR_WEIGHT_MAPS"),AZR=new _.WE("INIT_ERROR");var ZU6={},MBu=(ZU6.initialized={priority:10,callback:function(p){p.injector.resolve(AZR)()}},ZU6);var VBO=function(){},gx7=function(){var p=_.I4("meta_logger_impl");
p||(p=new VBO,_.e0("meta_logger_impl",p));return p},Qvm=function(){gx7().csiSubscriptionKey=yxo("meta_logging_csi_event",function(p){var y=p.timerName;
if(p=p.timelineData){_.BW(y,{startTime:p.startTime},y);p.infos&&_.xw(p.infos,y);for(var l=_.c(Object.keys(p.ticks)),q=l.next();!q.done;q=l.next())q=q.value,_.fy(q,p.ticks[q],y)}})};
VBO.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&sM6(this.csiSubscriptionKey)};var KPu={},wUV=(KPu.initialized={priority:10,callback:function(){Qvm()}},KPu);var iU7=function(p,y){this.innertubeClientName=p;this.JSC$18120_prefCookie=y};
iU7.prototype.record=function(){if(_.n("web_li_record_binary_eval_tick")){var p=_.d$("rsef_dpj");var y=_.d$("rses_dpj");p=p!==void 0&&y!==void 0?Math.round(p-y):void 0;if(p!==void 0&&p>0){y=_.Qh(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var l=this.poolSize;if(!(y.valuesSeen>=1E9)){if(y.valuesSample.length<l)y.valuesSample.push(p);else{var q=Math.floor(Math.random()*(y.valuesSeen+1));q<l&&(y.valuesSample[q]=p)}y.valuesSeen+=1}_.gB(this.storagePrefix+"-"+this.innertubeClientName,
y,2592E3);p=y.valuesSample;y=ai5(p);p=p.length<this.poolSize?void 0:y<400?1:y<1700?2:3;p!==void 0&&(this.JSC$18120_prefCookie.set(this.cookiePrefix+this.innertubeClientName,p),this.JSC$18120_prefCookie.save())}}else _.KI(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18120_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18120_prefCookie.save()};
iU7[RL]=[xu,$b];var rZw=function(){iU7.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.A(rZw,iU7);var S$w=new _.WE("PAGE_LOAD_TIME_TOKEN");var FPR=function(p){this.signal=p;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;p.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.rJ(_.TR,this.disableLoggingAndSendPayload,1E4)};
FPR.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.TR.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),LPR(this))};
var LPR=function(p){var y=_.xc();if(y){var l={webClientComponentsData:{components:Array.from(p.ids,function(q){return{id:q}})}};
p.ids.clear();_.Ll().visualElementStateChanged(y,l)}};var kMV=new _.WE("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var $r=function(p,y){this.JSC$18149_storeWithEntities=p;this.JSC$18149_commandHandler=y;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
$r.prototype.start=function(){this.JSC$18149_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
$r.prototype.observeDownloadingEntities=function(){var p=_.i5o(this.JSC$18149_storeWithEntities.getState().entities).map(function(q){return rTu(q)});
if(p.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var y={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:RYc()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.ar(_.g$("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18149_commandHandler.resolveCommand(y)}this.downloadingEntities=p}else if(this.downloadingEntities.length){var l=wYt(this.JSC$18149_storeWithEntities.getState().entities).map(function(q){return rTu(q)});
this.downloadingEntities.filter(function(q){return l.includes(q)}).length&&(p={openPopupAction:Yqu()},this.JSC$18149_commandHandler.resolveCommand(p));
this.downloadingEntities=[]}};
$r[RL]=[bW,_.aK];var Nrw;_.jQ=function(p,y,l,q,t,E,e,C){this.JSC$18152_playerApiPromise=p;this.JSC$18152_commandHandler=y;this.JSC$18152_screenManager=l;this.offlineWebClientEligibility=q;this.JSC$18152_prefStorage=t;this.JSC$18152_actionRouter=E;this.entityTypeMap=e;this.JSC$18152_persistentStorePromiseAccessor=C;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
Nrw=function(){var p=_.WC().resolve(_.jQ),y;_.h(function(l){if(l.nextAddress==1)return p.downloadFailureListenerBound?l.return():l.yield(p.JSC$18152_playerApiPromise,2);y=l.yieldResult;y.addEventListener("onOfflineOperationFailure",function(q){if(q.failureReason&&q.entityKey&&q.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(q.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var t=_.ba(q.entityKey).entityId;t&&p.JSC$18152_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
t)}else if(_.n("kevlar_woffle")){t=p.JSC$18152_commandHandler;var E=t.resolveCommand;q=q.failureReason;var e=_.g$("TRANSFER_FAILED",void 0,"Download failed");q==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(e=_.g$("STORAGE_FULL",void 0,"Storage full"));E.call(t,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.ar(e),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
p.downloadFailureListenerBound=!0;_.rR(l)})};
_.jQ.prototype.deleteVideo=function(p,y){var l=this,q,t,E;return _.h(function(e){if(e.nextAddress==1)return e.yield(l.JSC$18152_playerApiPromise,2);q=e.yieldResult;E={offlineLoggingData:{offlineDeleteReason:(t=y)!=null?t:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return e.yield(q.queueOfflineAction(p,l.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",E),0)})};
_.jQ.prototype.pauseVideoDownload=function(p){var y=this,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(y.JSC$18152_playerApiPromise,2);l=q.yieldResult;l.pauseVideoDownload(p);_.rR(q)})};
_.jQ.prototype.resumeVideoDownload=function(p){var y=this,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(y.JSC$18152_playerApiPromise,2);l=q.yieldResult;return q.yield(l.resumeVideoDownload(p),0)})};
_.jQ[RL]=[_.PN,_.aK,_.B_,kMV,Gy,aB,pxO,wB];var DOL=new _.WE("DOWNLOAD_STATE_STORE_TOKEN");var HUm=function(p,y){this.JSC$18172_persistentStorePromiseAccessor=p;this.store=y;this.upliftCompletionResolver=new _.AB},Brw=function(){var p=_.WC().resolve(Tru),y;
_.h(function(l){switch(l.nextAddress){case 1:if(p.upliftImplPromise)return l.return(p.upliftImplPromise);_.Ve(l,2);p.upliftImplPromise=xOm(p);return l.yield(p.upliftImplPromise,4);case 4:p.upliftCompletionResolver.resolve();_.pK(l,3);break;case 2:throw y=_.i6(l),p.upliftCompletionResolver.reject(y),y;case 3:return l.return(p.upliftImplPromise)}})},xOm=function(p){var y,l,q;
return _.h(function(t){switch(t.nextAddress){case 1:return _.o4("LOGGED_IN")?t.yield(p.JSC$18172_persistentStorePromiseAccessor(),2):t.return();case 2:y=t.yieldResult;if(!y)return _.fy("vdeur"),t.return();_.fy("vdeus");_.Ve(t,3);return t.yield(fVV(y),5);case 5:l=t.yieldResult;p.store.dispatch(Uv6(l));y.observe(function(E){$vt(p.store,E)});
_.pK(t,4);break;case 3:throw q=_.i6(t),_.fy("vdeur"),q;case 4:_.fy("vdeuc"),_.rR(t)}})},fVV=function(p){var y;
return _.h(function(l){if(l.nextAddress==1)return l.yield(G1L(p),2);y=l.yieldResult;return l.return(y.reduce(function(q,t){if(!t.data||!t.key||!t.entityType)return q;q[t.entityType]||(q[t.entityType]={});q[t.entityType][t.key]=t.data;return q},{}))})};
HUm[RL]=[wB,_.yF];var Tru;Tru=new _.WE("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.bq=new _.WE("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var n$=function(p,y){this.JSC$18175_persistentStorePromiseAccessor=p;this.transportService=y};
n$.prototype.refresh=function(){var p=this,y,l,q,t;return _.h(function(E){if(E.nextAddress==1)return _.o4("LOGGED_IN")?E.yield(p.JSC$18175_persistentStorePromiseAccessor(),2):E.return();if(E.nextAddress!=3)return(y=E.yieldResult)?E.yield(sEt(y),3):E.return();if((l=E.yieldResult)&&!(Number(l.data.refreshTimestampMs||0)<(0,_.uM)()))return E.return();q={browseId:"SPaccount_downloads"};t=_.hB(Cp);_.pI(p.transportService,q,t).then(function(e){var C;if(y&&(e==null?void 0:(C=e.responseContext)==null?void 0:
C.maxAgeSeconds)!==0){var u;C=(e==null?void 0:(u=e.responseContext)==null?void 0:u.maxAgeSeconds)||604800;u=String(Math.floor((0,_.uM)())+C*1E3);y.put("service:downloads_settings:fallback",new _.Zo({innertubeResponse:e,refreshTimestampMs:u}))}});
_.rR(E)})};
n$[RL]=[_.C$,_.XC];var GN=function(p,y){this.JSC$18179_playerPromise=p;this.store=y;this.started=!1};
GN.prototype.start=function(){var p=this,y;return _.h(function(l){if(l.nextAddress==1)return p.started?l.return():l.yield(p.JSC$18179_playerPromise,2);y=l.yieldResult;y.addEventListener("onOrchestrationBecameLeader",p.updateIsLeader.bind(p,!0));y.addEventListener("onOrchestrationLostLeader",p.updateIsLeader.bind(p,!1));if(y.isOrchestrationLeader)p.updateIsLeader(y.isOrchestrationLeader());else{var q=new _.SM("Function isOrchestrationLeader is undefined",{"player.isReady":y.isReady(),"player.playVideo":y.playVideo?
"defined":"undefined"});_.Bs(q);p.updateIsLeader(!1)}p.started=!0;_.rR(l)})};
GN.prototype.updateIsLeader=function(p){this.store.dispatch(_.$y({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:p}}))};
GN[RL]=[_.PN,_.yF];var vx9=function(p,y){this.networkStatusManager=p;this.JSC$18182_prefStoragePromise=y;this.redirectsToPreload=["https://youtube.com"]},XUi=function(){var p=_.WC().resolve(vx9),y,l,q,t,E,e;
_.h(function(C){switch(C.nextAddress){case 1:return C.yield(p.JSC$18182_prefStoragePromise,2);case 2:y=C.yieldResult;if(!(l=y)){C.jumpTo(3);break}return C.yield(y.get("yt-redirect-prefetch-id"),4);case 4:l=C.yieldResult;case 3:if(l||!p.networkStatusManager.isNetworkAvailable())return C.return();q={cache:"reload",redirect:"manual"};t=_.c(p.redirectsToPreload);E=t.next();case 5:if(E.done){if(!y){C.jumpTo(0);break}return C.yield(y.set("yt-redirect-prefetch-id",!0,86400),0)}e=E.value;_.Ve(C,8);return C.yield(_.l_.fetch(e,
q),10);case 10:_.pK(C,6);break;case 8:_.i6(C);case 6:E=t.next(),C.jumpTo(5)}})};var PO=function(p){p?(this.container=p,this.containerWasInjected=!0):this.containerWasInjected=!1};
PO.prototype.openDialog=function(p,y,l){var q=this,t;return _.h(function(E){(t=q.container)==null||t.openDialog(p,y,l);_.rR(E)})};
PO.prototype.closeDialog=function(){var p=this,y;return _.h(function(l){(y=p.container)==null||y.closeDialog();_.rR(l)})};
PO.prototype.isDialogOpen=function(){var p=this,y,l;return _.h(function(q){return q.return((l=(y=p.container)==null?void 0:y.isDialogOpen())!=null?l:!1)})};
PO[RL]=[_.RK(kaZ)];_.dOO=new _.WE("POPUP_CONTROLLER_TOKEN");var OUw=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
OUw.prototype.registerPanel=function(p,y){if(p){this.panelMap.set(p,y);var l=this.pendingPanelResolvers.get(p);l&&(l.resolve(y),this.pendingPanelResolvers.delete(p))}};
OUw.prototype.getPanel=function(p){var y=this,l;return _.h(function(q){return(l=y.panelMap.get(p))?q.return(l):q.return(oxw(y,p))})};
var oxw=function(p,y){var l,q;return _.h(function(t){if(l=p.pendingPanelResolvers.get(y))return t.return(l.promise);q=new _.AB;p.pendingPanelResolvers.set(y,q);return t.return(q.promise)})},zrw=function(p){OUw.call(this);
var y=this;this.popupController=p;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return y.panelMap.size}}};
_.A(zrw,OUw);_.J=zrw.prototype;_.J.getReloadContinuation=function(p){var y=this,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(y.getPanel(p),2);l=q.yieldResult;return q.return(l.getReloadContinuation())})};
_.J.showPanel=function(p,y,l,q,t,E,e){var C=this,u,a,m,U;return _.h(function(b){if(b.nextAddress==1){e&&C.updatePanelContinuationDatas.set(p,e);if((u=l)==null?0:(a=u.engagementPanelPopupPresentationConfig)==null?0:a.popupType){m=l.engagementPanelPopupPresentationConfig.popupType;t===void 0&&(t=document.body);var P=b.return,Z=C.popupController,K=Z.openPopup;a:switch(m){case "PANEL_POPUP_TYPE_DIALOG":var F="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":F="DROPDOWN";break a;default:throw Error("ej`"+
m);}return P.call(b,K.call(Z,p,y,F,t))}return b.yield(C.getPanel(p),2)}U=b.yieldResult;(y||E)&&U.updatePanel(y,!1,q,E);U.showPanel(q);_.rR(b)})};
_.J.hidePanel=function(p){var y=this,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(y.getPanel(p),2);l=q.yieldResult;l.hidePanel();y.popupController.closePopup(p);_.rR(q)})};
_.J.isVisible=function(p,y){var l=this,q;return _.h(function(t){if(t.nextAddress==1)return y&&!l.panelMap.has(p)?t.return(!1):t.yield(l.getPanel(p),2);q=t.yieldResult;return t.return(q.isVisible())})};
_.J.updatePanel=function(p,y,l,q,t,E){l=l===void 0?!1:l;var e=this,C;return _.h(function(u){if(u.nextAddress==1){if(!y&&!t)return u.return();E&&e.updatePanelContinuationDatas.set(p,E);return u.yield(e.getPanel(p),2)}C=u.yieldResult;C.updatePanel(y,l,q,t);_.rR(u)})};
_.J.registerPanelContent=function(p,y){p&&this.panelContentMap.set(p,y)};
_.J.unregisterPanelContent=function(p){this.panelContentMap.delete(p)};
_.J.getPanelContent=function(p){return this.panelContentMap.get(p)};
_.J.getUpdatePanelContinuationData=function(p){return this.updatePanelContinuationDatas.get(p)};
zrw[RL]=[_.dOO];var Aa=function(p,y){this.innertubeTransportService=p;this.JSC$18198_screenManager=y},Y$T=function(p){var y;
return!((y=p.panelLoadingStrategy)==null||!y.requestTemplate)};
Aa.prototype.makeRequest=function(p){var y=this,l,q;return _.h(function(t){switch(t.nextAddress){case 1:if(!Y$T(y)){t.jumpTo(2);break}_.Ve(t,3);return t.yield(_.eo(y.innertubeTransportService,p),5);case 5:return l=t.yieldResult,l?t.return(l.content):(_.Bs(Error("fj")),t.return(void 0));case 3:q=_.i6(t),_.Bs(q);case 2:return t.return(void 0)}})};
Aa.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
Aa.prototype.execute=function(p){var y=this,l,q,t,E,e,C,u,a,m,U;return _.h(function(b){if(b.nextAddress==1){l=p;q=l.data;t=l.fallbackVe;E=l.parentVe;e=l.createScreenConfig;C=l.renderFn;u=l.command;y.panelLoadingStrategy=q;var P,Z,K=((P=y.panelLoadingStrategy)==null?0:P.screenVe)?(Z=y.panelLoadingStrategy)==null?void 0:Z.screenVe:t;K&&_.Mb(y.JSC$18198_screenManager,K,E,e);return(a=y.getContent())?b.yield(C(a),2):b.jumpTo(2)}return b.nextAddress!=4?Y$T(y)?b.yield(y.makeRequest(u),4):b.return():(U=m=
b.yieldResult)?b.yield(C(U),0):b.return()})};
Aa[RL]=[_.XC,_.B_];var Zx=function(){};
Zx.prototype.getContainer=function(){return _.RJ()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Zx.prototype.openSheet=function(p,y){var l=this,q,t,E,e,C,u;return _.h(function(a){switch(a.nextAddress){case 1:return q={stack:[],error:void 0,hasError:!1},_.Ve(a,2,3),t=Er,a.yield(l.isSheetOpen(),5);case 5:E=a.yieldResult;ynm(q,RJg(t));if(E){if(y&&l.currentTarget===y)return(e=l.getContainer())==null||e.closeSheet(),a.return();l.pendingData={data:p,target:uoR(l,y)};return a.return()}p.viewModel&&(p={viewModel:p.viewModel});(C=l.getContainer())==null||C.openSheet(p,y);l.currentTarget=y;case 3:_.Qe(a);
ls8(q);_.wR(a,0);break;case 2:u=_.i6(a),q.error=u,q.hasError=!0,a.jumpTo(3)}})};
Zx.prototype.closeSheet=function(){var p=this,y;return _.h(function(l){if(l.nextAddress==1)return l.yield((y=p.getContainer())==null?void 0:y.closeSheet(),2);if(l.nextAddress!=4)return p.currentTarget=void 0,p.pendingData?l.yield(p.openSheet(p.pendingData.data,p.pendingData.target),4):l.jumpTo(0);p.pendingData=void 0;_.rR(l)})};
Zx.prototype.isSheetOpen=function(){var p=this,y,l;return _.h(function(q){return q.return((l=(y=p.getContainer())==null?void 0:y.isSheetOpen())!=null?l:!1)})};
var uoR=function(p,y){if(!_.n("web_parent_target_for_sheets"))return y;var l,q;return(q=(l=p.getContainer())==null?void 0:l.getParentTarget(y))!=null?q:y};var np=window.documentPictureInPicture;var Sm5=_.c0(["dark"]),F7a=_.c0(["system-icons"]),L7R=_.c0(["typography"]),k1R=_.c0(["lang"]),Nbl=_.c0(["style"]),K7a=_.c0(["dir"]),wX5=_.c0(["rounded-container"]),i_l=_.c0(["style"]),H_j=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],MT=function(p){this.JSC$18210_clientRoot=p;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
MT.prototype.openWindow=function(p){var y=this,l,q;return _.h(function(t){if(t.nextAddress==1)return window.documentPictureInPicture&&_.K8()&&!y.currentPipWindow?t.yield((l=np?np:null)==null?void 0:l.requestWindow(p),2):t.return(!1);if(t.nextAddress!=3){q=t.yieldResult;if(!q)return t.return(!1);q.addEventListener("pagehide",function(){IVu(y)});
q.addEventListener("resize",y.handlePipWindowResize);y.pipWindowResizeDelay=new _.hh(function(){y.currentPipWindow&&_.$w(y.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.wV(y.currentPipWindow.innerWidth,y.currentPipWindow.innerHeight)])},q);
DJc(q);xJl(q);return t.yield(QEc(q),3)}if(!MDu())return t.return(!1);y.currentPipWindow=q;y.JSC$18210_eventForwarder=Tba(q,y.JSC$18210_clientRoot);y.pipWindowResizeDelay.start();return t.return(!0)})};
MT.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var IVu=function(p){if(p.currentPipWindow){var y,l;(y=np?np:null)==null||(l=y.window)==null||l.close();p.currentPipWindow.removeEventListener("resize",p.handlePipWindowResize);var q;(q=p.pipWindowResizeDelay)==null||q.dispose();p.pipWindowResizeDelay=void 0;var t;(t=p.JSC$18210_eventForwarder)==null||t.stop();p.JSC$18210_eventForwarder=void 0;y=_.c(p.onCloseCallbacks);for(l=y.next();!l.done;l=y.next())l=l.value,l();p.onCloseCallbacks=[];p.currentPipWindow=null}};
MT.prototype.getWindow=function(){return this.currentPipWindow};
var pR7=function(p,y){var l;(l=p.onCloseCallbacks)==null||l.push(y)};
MT.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.K8()};
_.Jh.Object.defineProperties(MT.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
MT[RL]=[s0r];var ymL=new _.WE("PICTURE_IN_PICTURE_CONTROLLER");var Bbo=function(p,y){this.lengthY=this.lengthX=0;this.lengthX=y.x-p.x;this.lengthY=y.y-p.y};var lA7=function(){},mad=function(p,y){var l;
(l=p.headerElement)==null||l.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:y}))};var quO=function(){};
quO.prototype.openPopup=function(p,y,l,q){var t=this,E;return _.h(function(e){if(!t.container)return e.return();E={openPopupAction:{popup:y,popupType:l,uniqueId:p}};return e.return(t.container.handleOpenPopupAction(E,q))})};
quO.prototype.closePopup=function(p){this.container&&this.container.closePopup(p)};var sTd=function(){this.openTunnels=new Map},mTg=function(p,y,l){if(oTu(l)){var q=_.oY(l,"gclid");
l={handleEvent:function(C){y&&!y.closed&&typeof y.postMessage==="function"&&C&&C.origin&&C.source===y&&C.data&&C.data.action==="gcl_setup"&&y.postMessage(Object.assign({},{action:"gcl_transfer"},q&&{gclid:q},{gadSource:2}),C.origin)}};
for(var t=_.c(p.openTunnels),E=t.next();!E.done;E=t.next()){var e=_.c(E.value);E=e.next().value;e=e.next().value;if(E.closed)try{window.removeEventListener("message",e),p.openTunnels.delete(E)}catch(C){_.Bs(C)}}y&&p.openTunnels.size<15&&(p.openTunnels.set(y,l),window.addEventListener("message",l))}};var tdO=function(){this.clientParams=new Map},WyQ=function(p){for(var y=_.c(p.clientParams.keys()),l=y.next();!l.done;l=y.next())l=l.value,l.startsWith("yt-mini-app-share")&&p.clientParams.delete(l)};var E1O=function(p,y){_.Sr.call(this);var l=this;this.shortsController=p;this.storeWithShorts=y;p=_.Lw(this.storeWithShorts,_.uko,function(q){if(q){var t,E=(t=l.shortsController.getRoot())==null?void 0:t.getPlayer(),e;(t=(e=l.shortsController.alternativePlayerContainerElement)==null?void 0:e.getPlayerContainer())&&(E==null||E.appendTo(t))}else{var C;e=(C=l.shortsController.alternativePlayerContainerElement)==null?void 0:C.getPlayerContainer().querySelector("#player");t=l.shortsController.activeIndex;
(C=(E=l.shortsController.getRoot())==null?void 0:E.querySelector('ytd-reel-video-renderer[id="'+t+'"] #player-container'))&&(e==null||e.appendTo(C,void 0,!0))}});
this.addOnDisposeCallback(p)};
_.A(E1O,_.Sr);var VJ=function(p,y,l,q,t){var E=this;this.storeWithShorts=p;this.ephemeralResponseStore=y;this.store=l;this.innertubeTransportService=q;this.innertubeTransportLoader=t;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.yS(_.MG);this.isShortsPipActive=_.yS(_.Vn);this.nextReelVe=_.fY(56921);this.prevReelVe=_.fY(56922);this.backButtonVe=_.fY(22156);this.TEST_ONLY={getActiveModules:function(){return E.activeModules}}},Jm9=function(p){p.unsubscribeFromStore=
_.Lw(p.storeWithShorts,_.CC5,function(y){p.initOrDisposeActiveModules(y);
!y&&p.storeWithShorts.getState().shorts.isFullscreen&&(_.WW(document.documentElement),p.storeWithShorts.dispatch(_.EkU(!1)))});
p.initOrDisposeActiveModules(_.CC5(p.storeWithShorts.getState()))},J$B,c$U,cmd;
VJ.prototype.initOrDisposeActiveModules=function(p){p?this.activeModules.push(new E1O(this,this.storeWithShorts)):(_.hq(this.activeModules),this.activeModules.length=0)};
VJ.prototype.registerRootElement=function(p){this.rootElement=p;Jm9(this)};
VJ.prototype.getRoot=function(){return this.rootElement};
VJ.prototype.setActiveIndex=function(p){this.activeIndex=p};
_.y$Q=function(p,y){var l,q,t,E,e,C,u;return _.h(function(a){switch(a.nextAddress){case 1:return l=new SG,(q=l.JSC$12991_getStoreKey(y))&&p.ephemeralResponseStore.has(q)?a.yield(p.ephemeralResponseStore.get(q),7):a.yield(cmd(p,y),4);case 4:t=a.yieldResult;if(!q){a.jumpTo(3);break}E=Z6(t,3600);return a.yield(p.ephemeralResponseStore.put(q,new _.Zo(E)),3);case 7:t=(e=a.yieldResult)==null?void 0:_.$z(e);case 3:return((C=t)==null?0:C.replacementEndpoint)&&(u=_.G(t.replacementEndpoint,_.FC))&&t.sequenceContinuation&&
(u.sequenceParams=t.sequenceContinuation),a.return(t)}})};
J$B=function(p,y){y=(new FQ).JSC$12991_getStoreKey(y);return!!y&&p.ephemeralResponseStore.has(y)};
c$U=function(p,y,l){var q,t,E,e,C;_.h(function(u){if(u.nextAddress==1){q=new FQ;t=q.JSC$12991_getStoreKey(y);if(!t)return u.return();if(l.reelWatchSequenceResponse)return E=Z6(l.reelWatchSequenceResponse,3600),p.ephemeralResponseStore.put(t,new _.Zo(E)),u.jumpTo(0);if(!p.ephemeralResponseStore.has(t))return u.jumpTo(0);C=l;return u.yield(p.ephemeralResponseStore.get(t),4)}C.reelWatchSequenceResponse=(e=u.yieldResult)==null?void 0:_.$z(e);_.rR(u)})};
cmd=function(p,y){var l=l===void 0?{}:l;var q,t,E;return _.h(function(e){switch(e.nextAddress){case 1:if(p.innertubeTransportService){q=p.innertubeTransportService;e.jumpTo(2);break}if(!p.innertubeTransportLoader){_.zi(Error("hj"));e.jumpTo(2);break}return e.yield(p.innertubeTransportLoader(),4);case 4:q=e.yieldResult;case 2:return e.yield((t=q)==null?void 0:_.eo(t,y,l),5);case 5:return E=e.yieldResult,e.return(E)}})};
_.Jh.Object.defineProperties(VJ.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
VJ[RL]=[v_V,_.AF,bW,_.RK(_.XC),_.RK(HHM)];_.eVd=new _.WE("STORAGE_MANAGER_TOKEN");var Ymg=["touchmove","scroll"];var l$j={onSpanEnd:function(p){if(p.parent==null){var y=p.name;_.BW(y);y1o(p,y)}}};var hVT=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},C99;
hVT.prototype.enqueue=function(p,y){y===1?this.currentPersistentToast=p:this.queue.push(p);this.openToast()};
hVT.prototype.openToast=function(){var p;(p=this.currentToast)!=null&&p.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.g2=new _.WE("TOAST_MANAGER_TOKEN");var uwV=new _.WE("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var RVi=new _.WE("VIEW_TRANSITION_COORDINATOR_TOKEN");var WiR=function(p){this.config=p;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;p=_.c(p.transitionConfigs);for(var y=p.next();!y.done;y=p.next())y=_.c(y.value).next().value,this.transitionTasksMap.set(y,[])};
WiR.prototype.registerElement=function(p,y,l){l=l===void 0?!1:l;for(var q=_.c(Object.keys(y)),t=q.next(),E={};!t.done;E={viewTransitionName:void 0},t=q.next()){t=t.value;E.viewTransitionName=y[t];var e=this.elementTasksMap.get(p),C=void 0;if((C=e)==null?0:C.has(t)){_.fT(new _.SM("Element already registered for transition",p.tagName,t));break}e=e||new Map;e.set(t,{beforeTransition:function(u){return function(){p.style.viewTransitionName=u.viewTransitionName}}(E),
afterTransition:function(){p.style.viewTransitionName&&(p.style.viewTransitionName="")},
runOnce:l});this.elementTasksMap.set(p,e)}};
_.ty=function(p,y){var l=p.elementTasksMap.get(y);l&&(l.clear(),l.size===0&&p.elementTasksMap.delete(y))};
WiR[RL]=[uwV];var aAu;_.mL1=_.aF(function(p){return _.R("basic-content-view-model",{class:_.ip("ytBasicContentViewModelHost",_.uy(p.className))},_.R(_.W,{cond:function(){return p.data().headline},
then:function(y){return _.R("div",{class:"ytBasicContentViewModelHeadline"},_.R(_.CF,{text:y}))}}),_.R(_.rT,{each:function(){return p.data().paragraphs||[]},
keyBy:"INDEX"},function(y){return _.R("div",{class:"ytBasicContentViewModelParagraph"},_.R(_.W,{cond:function(){var l=y();return!!(l.header||l.customHeader||l.headline)},
then:function(){return _.R(aAu,{paragraph:y})}}),_.R(_.W,{cond:function(){return y().asset||y().text},
then:function(){return _.R("div",{class:"ytBasicContentViewModelParagraphContent"},_.R(_.W,{cond:function(){return y().asset},
then:function(l){return _.R("div",{class:"ytBasicContentViewModelParagraphAsset"},_.R(_.di,{data:l},{contentPreviewImageViewModel:_.bY}))}}),_.R(_.W,{cond:function(){return y().text},
then:function(l){return _.R("div",{class:"ytBasicContentViewModelParagraphText"},_.R(_.CF,{text:l}))}}))}}))}))},"ze");
aAu=_.aF(function(p){var y=p.paragraph;return _.R(_.a4,null,_.R(_.W,{cond:function(){return y().headline},
then:function(l){return _.R(_.CF,{text:l,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.R(_.di,{data:function(){return y().header||y().customHeader}},{sectionHeaderViewModel:function(l){return _.R(_.Mp,{data:l.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ae");var $LT=_.aF(function(p){var y=_.sM("yt-expandable-metadata-header-view-model"),l=_.Ff(function(q){if(!_.Yo(_.z4(q),y.value,["A".toString(),"BUTTON".toString()])){var t;(t=p.expandedCallback)==null||t.call(p,!1)}});
return _.R("yt-expandable-metadata-header-view-model",{el:y,class:"ytExpandableMetadataHeaderViewModelHost"},_.R(_.W,{cond:function(){return p.expanded()},
then:function(){return _.R("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":l},_.R("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.R(_.W,{cond:function(){return p.data().expandedTitleImage},
then:function(q){return _.R("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.R(_.W$,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:q}))}}),_.R("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.R("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.R(_.CF,{text:function(){return p.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.R(_.CF,{text:function(){return p.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.R(_.CF,{text:function(){return p.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.R("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.R(_.di,{data:function(){return p.data().infoButton}},{buttonViewModel:_.wZ}),_.R(_.di,{data:function(){return p.data().collapseButton}},{buttonViewModel:function(q){return _.R(_.wZ,{data:q.data,
onClick:function(){var t;(t=p.expandedCallback)==null||t.call(p,!1)}})}})))},
else:function(){return _.R(UL1,Object.assign({},p))}}))},"Be"),jTi=_.aF(function(p){return _.R("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.R(_.W,{cond:function(){return p.data().collapsedLabelImage},
then:function(y){return _.R("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.R(_.W$,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:y,alt:""}))}}),_.R(_.CF,{text:function(){return p.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Ce"),UL1=_.aF(function(p){return _.R("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.Ff(function(){var y;return void((y=p.expandedCallback)==null?void 0:y.call(p,!0))})},_.R("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.R(_.W,{cond:function(){return p.data().collapsedImage},
then:function(y){return _.R("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.R(_.W$,{width:16,height:16,data:y,alt:""}))}}),_.R(_.W,{cond:function(){return p.data().showLeadingCollapsedLabel},
then:function(){return _.R(jTi,Object.assign({},p))}}),_.R("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.R(_.CF,{text:function(){return p.data().collapsedTitle}}))),_.R("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.R(_.W,{cond:function(){return!p.data().showLeadingCollapsedLabel},
then:function(){return _.R(jTi,Object.assign({},p))}}),_.R(_.di,{data:function(){return p.data().infoButton}},{buttonViewModel:_.wZ}),_.R(_.di,{data:function(){return p.data().expandButton}},{buttonViewModel:function(y){return _.R(_.wZ,{data:y.data,
onClick:function(){var l;(l=p.expandedCallback)==null||l.call(p,!0)}})}})))},"De");_.b7L=_.aF(function(p){var y=_.c(_.kS(function(){return p.data().initiallyExpanded})),l=y.next().value,q=y.next().value,t,E=(t=_.WC().resolve(_.RK(_.hb)))==null?void 0:t(),e=function(){var C=p.data().colorData;
if(C)return E?C==null?void 0:C.darkColorPalette:C==null?void 0:C.lightColorPalette};
return _.R("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.NW({"background-color":function(){var C=e();return(C==null?0:C.section2Color)?_.Y9(C.section2Color):""}})},_.R(_.di,{data:function(){return p.data().header}},{expandableMetadataHeaderViewModel:function(C){return _.R($LT,{data:C.data,
expanded:function(){return!!l()},
expandedCallback:function(u){q(u)}})}}),_.R(_.W,{cond:function(){return l()},
then:function(){return _.R("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.R(_.di,{data:function(){return p.data().expandedContent}},{horizontalShelfViewModel:function(C){return _.R(_.IH,{data:C.data,
includeMargin:!0,forceNarrowLayout:!0,palette:e})},
videoSummaryContentViewModel:function(C){return _.R(iar,{data:C.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(C){return _.R(_.ZX,{data:C.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(C){return _.R(_.mL1,{data:C.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.R(_.di,{data:function(){return p.data().expandedBottomButtons}},{buttonViewModel:function(C){return _.R("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.R(_.wZ,{data:C.data}))}}))}}))},"Ee");var n1R=_.aF(function(p){var y=p.text;var l=p.marqueeSpacing;var q=p.scrollDelay;var t=p.scrollDuration;var E=p.enableMarqueeScroll;p=p.large;var e=_.c(_.nr(!1,void 0,"kfNqfd")),C=e.next().value,u=e.next().value,a=_.c(_.nr(0,void 0,"bYgZbf"));e=a.next().value;var m=a.next().value,U=_.sM("marquee-scroll");a=_.sM("div");var b=_.sM("span"),P=_.WC().resolve(_.up);_.NA(function(){if(E()){var F=b.value.getBoundingClientRect().width,L=U.value.getBoundingClientRect().width;if(F>L){var T=(P==="ltr"?-1:1)*
(F+(l?l():16));Promise.resolve().then(function(){u(!0);m(T)})}}},"giRlme");
var Z={},K={};return _.R("marquee-scroll",{class:_.ip("ytMarqueeScrollHost",(Z.ytMarqueeScrollHostLarge=p,Z)),el:U},_.R("div",{id:"marquee-scroll-inner-container",class:_.ip("ytMarqueeScrollInnerContainer",(K.ytMarqueeScrollAnimationEnabled=function(){return C()},K)),
el:a,style:_.NW({gap:l?(0,_.OG)(l):"16px","animation-duration":t?MXP(t):"16s","animation-delay":q?MXP(q):"3s","--marquee-translate":(0,_.OG)(e)})},_.R("span",{el:b,dir:"auto"},_.R(_.CF,{text:y,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.R(_.W,{cond:C,then:function(){return _.R("span",{"aria-hidden":"true",dir:"auto"},_.R(_.CF,{text:y,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Fe");_.GdR=_.aF(function(p){var y=p.data;var l=p.overlayDensity;p=_.Ff(function(){y().onTapCommand&&_.tb(y().onTapCommand);return!1});
var q=_.Spu(),t=function(){return(l==null?void 0:l())===1?22:16},E={};
return _.R("reel-sound-metadata-view-model",{class:_.ip("ytReelSoundMetadataViewModelHost",(E.ytReelSoundMetadataViewModelHostLarge=function(){return(l==null?void 0:l())===1},E)),
"on:click":p,tabindex:0,role:"button","on:keydown":q},_.R("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.R(_.W,{cond:function(){return y().musicIcon},
then:function(e){return _.R(_.W$,{data:e,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:t})}}),_.R("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.R(n1R,{text:function(){return y().soundMetadata},
enableMarqueeScroll:function(){return!!y().enableMarqueeScroll},
large:function(){return(l==null?void 0:l())===1}}))))},"Ge");var P9d,Am7,QJ,g1A,KiO,Vd7,rmV,i7T;P9d=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];Am7=_.UC("wil_icon_max_concurrent_fetches",Infinity);
QJ=function(p,y,l){var q=this;this.iconSet=p;this.appDirection=y;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.l_.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.n("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.n("wil_icon_network_first");this.renderWhenIdle=_.n("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.n("wil_icon_load_immediately");this.isPurging=!1;p=function(){q.cacheStorageAvailable&&(q.cacheStorageAsync=_.l_.caches.open("yt-icons").then(function(E){return q.cacheStorageSync=E}).catch(function(){q.cacheStorageAvailable=!1}))};
l=(l==null?void 0:l())||{};l=_.c(Object.entries(l));for(y=l.next();!y.done;y=l.next()){var t=_.c(y.value);y=t.next().value;t=t.next().value;t=Vi(t);Z7d(t);this.iconCache[y]=t.cloneNode(!0)}this.isPurging=MdO(this);this.isPurging instanceof Promise?this.isPurging.then(p):p()};
_.iQ6=function(p,y){var l=p.resolveIcon(y);return l?p.renderingMode===1?Vd7(p,l,p.renderingMode):(y=p.iconCache[l.url])?(y=y.cloneNode(!0),g1A(p,y),Vd7(p,l,p.renderingMode,y)):_.QTw(p,l).then(function(q){var t=q?0:1;g1A(p,q);return Vd7(p,l,t,q)}):(_.fT(new _.SM("Icon not found",{iconShape:y})),function(){})};
g1A=function(p,y){if(y){p.counter+=1;p="_yt"+p.counter;y=[y].concat(_.xq(y.getElementsByTagName("*")));y=_.c(y);for(var l=y.next();!l.done;l=y.next())if(l=l.value,l.tagName==="style"&&l.textContent)l.textContent=KiO(l.textContent,p,!0);else for(var q=_.c(l.attributes),t=q.next();!t.done;t=q.next()){t=t.value;t.name==="id"&&(t.value+=p);["mask","fill","clip-path"].includes(t.name)&&(t.value=KiO(t.value,p));if(t.name==="style"){var E=l.style;try{E.cssText=KiO(E.cssText,p,!0)}catch(m){var e=void 0,C=
void 0,u=void 0,a=void 0;K$({error:((e=m)==null?void 0:(u=(C=e).toString)==null?void 0:u.call(C))||"",el:l.outerHTML,style:!!E,cssText:(a=E)==null?void 0:a.cssText})}}t.name==="xlink:href"&&(t.value=t.value.replace(/#(.*)/,"#$1"+p))}}};
KiO=function(p,y,l){var q=/url\(["']?#(.*?)["']?\)/;(l===void 0?0:l)&&(q=/url\(["']?#(.*?)["']?\)/g);return p.replace(q,"url(#$1"+y+")")};
Vd7=function(p,y,l,q){return function(t,E){var e=Object.assign({},{iconColor:"currentcolor",iconWidth:y.size+"px",iconHeight:y.size+"px",iconDisplay:"block"},E);E=_.gg("DIV");var C=e.iconColor,u=e.iconFilter;e="width: "+e.iconWidth+"; height: "+e.iconHeight+"; display: "+e.iconDisplay+";";u&&(e+=" filter: "+u+";");l===0&&(e+=" fill: "+C+";");l===1&&(u=y.url,e+=" -webkit-mask: url("+u+") no-repeat center / cover; mask: url("+(u+") no-repeat center / cover; background-color: ")+C);y.allowMirroring&&
p.appDirection==="rtl"&&(e+=" transform: scale(-1, 1); transform-origin: center center;");E.setAttribute("style",e);l===0&&q&&E.appendChild(q);t.appendChild(E)}};
_.QTw=function(p,y){var l,q,t;return _.h(function(E){l=function(e){return pC(e)};
q=y.url;if(!wRV(q))throw Error("jj");t=i7T(p,q);return E.return(t.then(function(e){return e.clone().text()}).then(function(e){var C=l(e);
e=y.size;var u=_.gg("DIV");_.hw(u,C);C=_.Qy(u.firstElementChild!==void 0?u.firstElementChild:_.sTM(u.firstChild,!0));e=Z7d(C,e);p.iconCache[q]=e.cloneNode(!0);delete p.responsePromises[q];return e}).catch(function(){}))})};
rmV=function(p){var y,l=(y=p.requestAninmationFrameResolver)==null?void 0:y.promise;l||(p.requestAninmationFrameResolver=new _.AB,l=p.requestAninmationFrameResolver.promise,_.l_.requestAnimationFrame(function(){var q;(q=p.requestAninmationFrameResolver)==null||q.resolve();p.requestAninmationFrameResolver=null}));
return l};
i7T=function(p,y){var l,q;return _.h(function(t){if(t.nextAddress==1)return p.waitForAnimationFrame?t.yield(rmV(p),2):t.jumpTo(2);l=p.responsePromises[y];l||(q=function(){var E,e,C;return _.h(function(u){switch(u.nextAddress){case 1:if(!p.cacheStorageAvailable){E=void 0;u.jumpTo(2);break}if(e=p.cacheStorageSync){u.jumpTo(3);break}return u.yield(p.cacheStorageAsync,4);case 4:e=u.yieldResult;case 3:E=e;case 2:return C=E,p.isNetworkFirstStrategy?u.return(p.fetchAndUpdateCache(y,C).catch(p.getCacheStorageResponse.bind(p,
y,C))):u.return(p.getCacheStorageResponse(y,C).catch(p.fetchAndUpdateCache.bind(p,y,C)))}})},l=p.renderWhenIdle?new Promise(function(E,e){_.rJ(_.TR,function(){q().then(E).catch(e)},10)}):q(),p.responsePromises[y]=l);
return t.return(l.catch(function(E){delete p.responsePromises[y];K$({error:(E==null?0:E.toString)?E.toString():"",url:y});throw E;}))})};
QJ.prototype.fetchAndUpdateCache=function(p,y){var l=this;return _.h(function(q){return q.return(Su9(l,p).then(function(t){FiO(l,p,t,y);return t}))})};
var Su9=function(p,y){var l;return _.h(function(q){if(p.numFetches<Am7)return p.numFetches+=1,q.return(Lid(p,y).finally(function(){--p.numFetches;if(Object.keys(p.queuedResponseResolvers).length){var t=Object.keys(p.queuedResponseResolvers)[0],E=p.queuedResponseResolvers[t];delete p.queuedResponseResolvers[t];E.resolve(Su9(p,t))}}));
l=new _.AB;p.queuedResponseResolvers[y]=l;return q.return(l.promise)})},Lid=function(p,y,l){l=l===void 0?2:l;
var q;return _.h(function(t){q={credentials:"same-origin",priority:"low"};return t.return(_.l_.fetch(y,q).then(function(E){return E.ok?E:Promise.reject(Error("kj`"+E.status+"`"+E.statusText))}).catch(function(E){if(l>0)return Lid(p,y,l-1);
throw E;}))})},FiO=function(p,y,l,q){_.h(function(t){return q?t.return(new Promise(function(E){_.rJ(_.TR,function(){var e,C;
return _.h(function(u){switch(u.nextAddress){case 1:if(!p.isNetworkFirstStrategy){e=void 0;u.jumpTo(2);break}return u.yield(q.match(y).catch(function(){}),3);
case 3:e=u.yieldResult;case 2:if(C=e){u.jumpTo(4);break}return u.yield(q.put(y,l.clone()).catch(function(a){K$({error:(a==null?0:a.toString)?a.toString():"",url:y})}),4);
case 4:E(),_.rR(u)}})},50)})):t.return()})};
QJ.prototype.getCacheStorageResponse=function(p,y){return _.h(function(l){return y?l.return(y.match(p).then(function(q){return q&&q.ok?q:Promise.reject()})):l.return(Promise.reject())})};
var Z7d=function(p,y){y===void 0||p.getAttribute("viewBox")||p.setAttribute("viewBox","0 0 "+y+" "+y);p.setAttribute("focusable","false");p.setAttribute("aria-hidden","true");try{p.style.pointerEvents="none",p.style.display="inherit",p.style.width="100%",p.style.height="100%"}catch(t){var l;K$({error:((l=t)==null?0:l.toString)?t.toString():""});try{p.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(E){var q;K$({error:((q=E)==null?0:q.toString)?E.toString():
""})}}return p},wRV=function(p){for(var y=_.c(P9d),l=y.next();!l.done;l=y.next())if(p.startsWith(l.value)&&p.endsWith(".svg"))return!0;
return!1};
QJ.prototype.resolveIcon=function(p){return this.iconSet.resolveIcon(p)};
var K$=function(p){_.vs(new _.SM("Error in IconManager",p))},MdO=function(p){if(_.n("wil_icons_cache_purge_killswitch"))return!1;
try{var y=_.l_.localStorage}catch(E){return!1}if(!y||!p.cacheStorageAvailable)return!1;var l=function(E){try{var e;(e=y)==null||e.setItem("yt-icons-last-purged",E.toString())}catch(u){var C;K$({error:((C=u)==null?0:C.toString)?u.toString():""})}},q=Number(y.getItem("yt-icons-last-purged"));
if(!q)return q=new Date,q=q.setDate(q.getDate()-Math.floor(Math.random()*90+1)),l(q),!1;if(function(E,e){E=new Date(E);e=new Date(e);return e.getMonth()-E.getMonth()+12*(e.getFullYear()-E.getFullYear())}(q,Date.now())<3)return!1;
try{return _.l_.caches.delete("yt-icons").then(function(E){E&&l(Date.now());return E}).catch(function(){return!1}).finally(function(){p.isPurging=!1})}catch(E){var t;
K$({error:((t=E)==null?0:t.toString)?E.toString():""});return!1}};
QJ[RL]=[Hi$,_.up,_.RK(Bfx)];_.w2=function(p,y){this.iconManager=p;this.iconsToFetch=y};
_.w2[RL]=[_.Kl,_.RK(xPx)];var kdd=function(){};var N6u=function(p,y,l){this.requestKey=p;this.uuZ=y;this.udc=l;this.j5l=function(){return new XMLHttpRequest};
this.x2e=void 0;this.i0f=[]};
N6u.prototype.getLatestChallengeResponse=function(){return this.udc};
var eyQ=function(p,y,l){var q,t,E,e;return _.h(function(C){if(C.nextAddress==1){_.BW("attestation_challenge_fetch");_.fy("att_fs",void 0,"attestation_challenge_fetch");if(!p.x2e)throw new _.Tt(9,"Missing fetcher");return C.yield(p.x2e(y,l),2)}q=C.yieldResult;E=(t=q)==null?void 0:t.bgChallenge;if(!E)throw new _.Tt(15,"Missing field");p.udc=q;p.i0f.forEach(function(u){u(q)});
e=lMj(E);_.fy("att_fc",void 0,"attestation_challenge_fetch");fZl("attestation_challenge_fetch");return C.return(e)})},w9Q=function(p,y){var l,q,t,E,e;
return _.h(function(C){switch(C.nextAddress){case 1:l=new b4(100,3E5,.25,2),q=void 0;case 2:if(!(l.currBackoffCount_<10)){C.jumpTo(4);break}_.Ve(C,5);if(!(l.currBackoffCount_>0)){C.jumpTo(7);break}return C.yield(s8m(l.getValue()),7);case 7:return C.yield(DLd(p,y),9);case 9:return t=C.yieldResult,C.return(t);case 5:E=_.i6(C);E instanceof _.Tt?q=E:(e=E instanceof Error?E.message:"Unknown",q=new _.Tt(9,e));j9v(l);C.jumpTo(2);break;case 4:if(q)throw q;throw new _.Tt(9,"Unknown error");}})},DLd=function(p,
y){y=Y6x(I7x(new z$P,y),p.requestKey);
var l=new _.AB,q=p.j5l();q.open("POST",p.uuZ);q.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");q.setRequestHeader("Content-Type","application/json+protobuf");q.onload=function(){if(_.byt(q)){var t=JUr(q.responseText);l.resolve(t)}else l.reject(new _.Tt(_.NT8(_.bv(q)),q.statusText))};
q.onerror=function(){l.reject(new _.Tt(_.NT8(_.bv(q)),q.statusText))};
q.send(y.serialize());return l.promise};var T6A=function(p){this.networkStatusManager=p;this.isDownloaded=tD5===void 0?function(){return!1}:tD5;
this.isReady=!1;this.woi=H7O(this)},H7O=function(p){var y;
return _.h(function(l){if(l.nextAddress==1)return l.yield($V5(),2);if(l.nextAddress!=3)return y=l.yieldResult,l.yield(GBM(y),3);p.uH=l.yieldResult;Est(p.uH).then(function(){p.isReady=!0});
return l.return(p.uH)})},xL7=function(p,y,l){p.uH?(p=p.uH.jZZ({m3:l,
gD3:!0,nDG:!0}),y.serviceIntegrityDimensions={poToken:p}):_.Bs(Error("mj"))};
T6A.prototype.processContext=function(p){var y=this;if(!p.input.match(_.hB(ecQ)))return _.hi();var l=p.innerTubeRequest,q=l.videoId;return!q||this.isDownloaded(l)||this.networkStatusManager&&!this.uH&&!this.networkStatusManager.isNetworkAvailable()?_.hi():this.uH?this.isReady?(xL7(this,l,q),_.hi()):new ey(Est(this.uH).then(function(){xL7(y,l,q)})):new ey(this.woi.then(function(t){return _.h(function(E){if(E.nextAddress==1)return E.yield(Est(t),2);
xL7(y,l,q);_.rR(E)})}))};var B6w=new _.WE("WEB_PO_CONTEXT_PROCESSOR");var fA7=function(p,y){var l=this;this.ru0=0;var q;this.dbg=(q=y==null?void 0:y.dbg)!=null?q:window;this.networkStatusManagerPromise=y==null?void 0:y.networkStatusManagerPromise;var t;this.requestKey=(t=y==null?void 0:y.requestKey)!=null?t:_.$h("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var E;this.iAP=(E=y==null?void 0:y.iAP)!=null?E:function(u){return new OV(u)};
var e;q=(e=y==null?void 0:y.eIm)!=null?e:function(u,a,m){return new N6u(u,a,m)};
this.bgChallenge=lMj(p.bgChallenge);this.ttlSeconds=qqt(c3(p.challenge||""));this.uz=q(this.requestKey,_.n("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.l_.location.hostname)?"/api/jnn/v1/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",p);tXj(this.uz);var C;this.o1A=(C=y==null?void 0:y.o1A)!=null?C:function(u){_.BL(l.dbg.document,"visibilitychange",function(){l.dbg.document.visibilityState===
"visible"&&u()})}},XRi=function(p){if(!p.vm){var y={maxAttempts:5,
gpP:p.ttlSeconds*1E3};J1t(p.dbg);p.vm=p.iAP({uz:p.uz,rVk:{disable:_.n("html5_web_po_disable_remote_logging"),ak:"aGIf",vAA:abL("html5_web_po_experiment_ids"),hHx:_.n("wpo_dis_lfdms")?0:1E3,l1y:function(q){var t=JPr.get(q);t||(t=new E_B(q),t=new Aq(t),JPr.set(q,t));return t}},
tMb:y,zKZ:p.bgChallenge,rha:c1g});p.ru0=Date.now();sYB(p.vm,function(){p.ru0=Date.now()});
Gi5(p.vm,function(){return _.h(function(q){return q.return(v1i(p))})});
var l=p.dCl.bind(p);p.networkStatusManagerPromise&&p.ttlSeconds>0&&p.networkStatusManagerPromise.then(function(q){q.listen("publicytnetworkstatus-online",l)});
p.o1A(l)}};
fA7.prototype.dCl=function(){if(Date.now()>this.ru0+this.ttlSeconds*1E3){var p;(p=this.vm)==null||qEN(p)}};
var v1i=function(p){if(p.vZA)return p.vZA;if(!p.vm)throw Error("nj");p.vZA=new IZ({vm:p.vm,uz:p.uz,zZG:!0,onError:c1g});return p.vZA},h96=function(p,y){p=new fA7(p,y);
XRi(p);v1i(p)};var iq=function(p,y){this.store=p;this.queue=[];y==null||y.addEventListener("yt-navigate-start",this.reset.bind(this))};
iq.prototype.enqueue=function(p){var y=p.command,l=p.durationMs,q=p.elementToFocus;var t=p.label;var E=p.elementToFocus;p.command?t=_.g$("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:t,shortcut:_.g$("SHIFT_PLUS_ENTER")}):E&&(p=t+". "+_.g$("SHIFT_PLUS_ENTER")+" for more information.",t=_.g$("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:t,shortcut:_.g$("SHIFT_PLUS_ENTER")},p));l={announcement:t,durationMs:l!=null?l:8E3};y?l.command=y:q&&(q.classList.add("ephemeral-action-focusable-element"),l.selector=q.tagName+
".ephemeral-action-focusable-element");this.queue.push(l);dLm(this)};
iq.prototype.activate=function(p){var y=_.jE8(this.store.getState());if(y){if(y==null?0:y.command)_.lp(y.command),this.store.dispatch(lXr(null));if(y==null?0:y.selector)y=document.querySelector(y.selector),_.Nsl(y);p.preventDefault()}};
var dLm=function(p){if(!_.jE8(p.store.getState())&&p.queue.length){var y=p.queue.shift();y&&(p.previousAnnouncement===y.announcement&&(y.announcement+="\u00a0"),p.store.dispatch(lXr(y)),p.previousAnnouncement=y.announcement,p.timeoutId=setTimeout(function(){if(y.selector){var l;(l=document.querySelector(y.selector))==null||l.classList.remove("ephemeral-action-focusable-element")}p.store.dispatch(lXr(null));dLm(p)},y.durationMs))}};
iq.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(lXr(null));this.queue.length=0;this.timeoutId=void 0};
iq[RL]=[_.yF,_.RK(_.HF)];_.r2=new _.WE("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var O7A=window.AbortController||G5i;var o1O=new _.WE("AUTH_SERVICE_TOKEN");var R98=_.c0(["about:blank"]),uNl;var SQ=new _.WE("API_IFRAME_TOKEN"),zVL=new _.WE("FETCH_FN_TOKEN"),Yuw=new _.WE("PARSE_FN_TOKEN"),IAw=new _.WE("WINDOW_REQUEST_TOKEN"),p6V=new _.WE("TEXT_DECODER_TOKEN");var emP;emP=new _.WE("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.yE1=new _.WE("MISC_UI_SHARED_FLAGS_TOKEN");var ll6=function(){};
ll6.prototype.getFlag=function(p){if(p.configType!==2)throw Error("oj");return q3R(p)};
var q3R=function(p){switch(p.flagType){case "bool":return _.n(p.flagName);case "int":return _.Xi(_.UC(p.flagName));case "double":return _.UC(p.flagName);case "string":return _.$h(p.flagName);case "int32_list":return abL(p.flagName);case "int64_list":return abL(p.flagName).map(function(y){return _.Xi(y)});
case "string_list":return _.jM(p.flagName);default:throw Error("pj");}};var F1=function(p,y,l){y=y===void 0?{}:y;dI.call(this,l===void 0?"uninitialized":l);this.env=p;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];y.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=y.shouldWaitOnAsyncImmediate)};
_.A(F1,dI);F1.prototype.init=function(p){var y=this,l;return _.h(function(q){if(q.nextAddress==1)return y.processPluginOptions.shouldWaitOnAsyncImmediate?q.yield(p(y.env),2):(p(y.env),q.jumpTo(2));if(q.nextAddress!=4)return y.jobSet?q.yield(y.jobSet.completedResolver.promise,4):q.jumpTo(4);l=_.qB();l.parkOrScheduleJob(function(){y.transition("rendering")},10,"ci");
_.rR(q)})};
F1.prototype.initialRender=function(p){var y=this,l;return _.h(function(q){if(q.nextAddress==1)return y.processPluginOptions.shouldWaitOnAsyncImmediate?q.yield(p(y.env),2):(p(y.env),q.jumpTo(2));if(q.nextAddress!=4)return y.jobSet?q.yield(y.jobSet.completedResolver.promise,4):q.jumpTo(4);l=_.qB();l.parkOrScheduleJob(function(){y.transition("rendered")},10,"cr");
_.rR(q)})};
F1.prototype.afterRenderImmediate=function(p){var y=this,l;return _.h(function(q){if(q.nextAddress==1)return y.processPluginOptions.shouldWaitOnAsyncImmediate?q.yield(p(y.env),2):(p(y.env),q.jumpTo(2));if(q.nextAddress!=4)return y.jobSet?q.yield(y.jobSet.completedResolver.promise,4):q.jumpTo(4);l=_.qB();l.parkOrScheduleJob(function(){y.transition("after-render-deferred")},10,"carml");
_.rR(q)})};
F1.prototype.afterRenderDeferred=function(p){var y=this;return _.h(function(l){p(y.env);_.rR(l)})};var sXu;_.dT("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});sXu={};_.tZV=(sXu.CSI=bDg(),sXu.ECATCHER=j86(),sXu);var EXw={},JEd=(EXw.rendered={priority:0,callback:function(p){XKx(p.injector.resolve(SF))}},EXw);var RTo=new _.WE("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),cE6=new _.WE("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var efm=function(p){this.callbackFnMap=p;this.configMap={}};
efm.prototype.handleResponse=function(p){var y;if(p=(y=p.responseContext)==null?void 0:y.serviceTrackingParams)for(y=_.c(p),p=y.next();!p.done;p=y.next()){p=p.value;var l=p.params,q=p.service;if(l&&q){this.configMap[q]||(this.configMap[q]=new SoP);p=this.configMap[q];var t=void 0,E=(t=this.callbackFnMap)==null?void 0:t[q];l=_.c(l);for(q=l.next();!q.done;q=l.next())t=q.value,q=t.key,t=t.value,q&&t&&(p.set(q,t),E&&E(q,t))}}};
efm[RL]=[_.RK(cE6)];var hfT=!1,ZD5=0,nsl=null,A1t=null;var CfA=new _.WE("NETWORK_SLI_TOKEN");var uXd=function(p,y,l,q,t){this.networkSli=p;this.fetchFn=y;this.parseFn=l;this.requestFn=q;this.JSC$18334_textDecoder=t};
uXd.prototype.fetch=function(p,y,l){var q=this,t,E,e;return _.h(function(C){t=RfT(q,p,y);e=(E=q.fetchFn)!=null?E:fetch;return C.return(e(t).then(function(u){return q.handleResponse(u,l)}).catch(function(u){_.vs(u);
if((l==null?0:l.expectJsonStrict)&&u instanceof ka&&u.errorType===1)return Promise.reject(u)}))})};
var hir=function(p,y,l,q){var t,E,e,C,u,a,m;return _.h(function(U){switch(U.nextAddress){case 1:return t=RfT(p,y,l),_.Ve(U,2),U.yield(fetch(t),4);case 4:E=U.yieldResult;_.pK(U,3);break;case 2:throw _.i6(U),new ka(2,"Failed to parse streaming response",t.url);case 3:if(!E.redirected&&!E.ok)throw(e=p.networkSli)==null||e.failure(),new _.SM("Streaming fetch request not ok",t.url);if(!E.body)throw new _.SM("No response body in streaming response",t.url);C={};if(_.n("web_streaming_fast"))return u=E.body.getReader(),
U.return(WwA(p,u,C,q));a=E.body.pipeThrough(new TextDecoderStream).getReader();m=new _.nn;return U.return(al9(p,a,m,cot,C,q))}})},RfT=function(p,y,l){if(p.networkSli){var q=_.AJ(_.Cy(y,"key"))||"/UNKNOWN_PATH";
p.networkSli.start(q)}q=l;_.n("wug_networking_gzip_request")&&(q=g8j(l));var t;return new ((t=p.requestFn)!=null?t:window.Request)(y,q)},WwA=function(p,y,l,q){var t,E,e,C,u,a,m,U,b,P,Z;
return _.h(function(K){switch(K.nextAddress){case 1:t=p.JSC$18334_textDecoder?new p.JSC$18334_textDecoder("utf-8"):new TextDecoder("utf-8"),E="",e=function(F){F=F.trim();F.length!==0&&F!=="]"&&F!=="["?(F.startsWith("[")&&(F=F.substring(1)),F.endsWith("]")&&(F=F.slice(0,-1)),F.endsWith(",")&&(F=F.slice(0,-1)),F=F.trim()):F=void 0;if(F)try{var L=JSON.parse(F);cot(l,L);q==null||q(l,L)}catch(T){throw new ka(1,"Failed to parse streaming response",F);}},_.Ve(K,2,3);
case 5:return K.yield(y.read(),8);case 8:C=K.yieldResult;u=C.value;if(a=C.done)return E.length>0&&e(E),m=void 0,(m=p.networkSli)==null||m.success(),K.return(l);E+=t.decode(u,{stream:!0});U=E.split("\n");E=U.pop()||"";b=_.c(U);for(P=b.next();!P.done;P=b.next())Z=P.value,e(Z);K.jumpTo(5);break;case 3:_.Qe(K);y.releaseLock();_.wR(K,0);break;case 2:throw _.i6(K),new ka(1,"Failed to parse streaming response");}})},al9=function(p,y,l,q,t,E){var e,C,u,a,m,U,b,P,Z;
return _.h(function(K){if(K.nextAddress==1)return K.yield(y.read(),2);e=K.yieldResult;C=e.value;if(u=e.done)return(a=p.networkSli)==null||a.success(),K.return(t);try{m=l.parse(C)}catch(F){throw new ka(1,"Failed to parse streaming response",C);}if(m!=null)for(U=_.c(m),b=U.next();!b.done;b=U.next())P=b.value,q(t,P),Z=void 0,(Z=E)==null||Z(t,P);return K.return(al9(p,y,l,q,t,E))})};
uXd.prototype.handleResponse=function(p,y){var l,q=(l=this.parseFn)!=null?l:JSON.parse;l=p.text().then(function(t){if((y==null?0:y.jspbResponseCtor)&&p.ok)return VZR(y.jspbResponseCtor,t);t=t.replace(")]}'","");if((y==null?0:y.expectJsonStrict)&&t)try{var E=q(t)}catch(C){throw new ka(1,"JSON parsing failed after fetch");}var e;return(e=E)!=null?e:q(t)});
p.redirected||p.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),l=l.then(function(t){_.vs(new _.SM("Error: API fetch failed",p.status,p.url,t));return Object.assign({},t,{errorMetadata:{status:p.status}})}));
return l};
uXd[RL]=[_.RK(CfA),_.RK(zVL),_.RK(Yuw),_.RK(IAw),_.RK(p6V)];var mmd=new _.WE("NETWORK_MANAGER_TOKEN");var Um9=[1,2,4,8,16,30],jXT=function(p){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=p.maxTimeMs;this.maxFrameCount=p.maxFrameCount===void 0?Math.ceil(60*p.maxTimeMs/1E3):p.maxFrameCount;p=_.c(Um9);for(var y=p.next();!y.done;y=p.next())this.brokenFrameSummarizers.push(new $mA(y.value/60*1E3))},bOT=function(p){var y=p.frameCountInternal>=p.maxFrameCount;
return p.elapsedTimeMs>=p.maxTimeMs||y};
jXT.prototype.summarize=function(){for(var p=[],y=_.c(this.brokenFrameSummarizers),l=y.next();!l.done;l=y.next())l=l.value,l=l.brokenFrameCount!==0?{severityMs:Math.round(l.targetFrameTimeMs),eventCount:l.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(l.averageDurationBetweenEventsMs)}:void 0,l&&p.push(l);return{summaries:p,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.Jh.Object.defineProperties(jXT.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 $mA=function(p){this.targetFrameTimeMs=p;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Jh.Object.defineProperties($mA.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var nXT=function(){};
nXT.prototype.start=function(p,y){var l=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var q=new jXT({maxTimeMs:p});this.monitor=q;this.lastSummaryInternal=void 0;this.metadataToLog=y;return new Promise(function(t){var E=function(e){if(e===void 0)l.stop(),t(void 0);else if(l.monitor!==q)e=Object.assign({},q.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),t(e);else{var C=l.monitor;if(!bOT(C)){C.frameCountInternal++;if(C.prevTime===
void 0)C.startTime=e;else for(var u=e-C.prevTime,a=_.c(C.brokenFrameSummarizers),m=a.next();!m.done;m=a.next()){m=m.value;var U=m.currTimeMs;m.currTimeMs+=u;u>m.targetFrameTimeMs+2&&(m.brokenFrameCount++,m.timeOfFirstBrokenFrameMs===void 0&&(m.timeOfFirstBrokenFrameMs=U),m.timeOfLastBrokenFrameMs=U)}C.prevTime=e}bOT(l.monitor)?t(l.stop()):_.TR.addJob(E,5,0)}};
_.TR.addJob(E,5,0)})};
nXT.prototype.stop=function(p){if(!this.monitor)return this.lastSummaryInternal;var y=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(y.monitoringDurationMs){p=p!=null?p:this.metadataToLog;var l={droppedFramesSummary:y,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};p&&(l[p.type]=p.data);_.TX("manualSmoothnessMeasurement",l)}this.monitor=void 0;this.lastSummaryInternal=y;this.metadataToLog=void 0;return y};_.GBd=new _.WE("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var Pf1;Pf1=function(p){this.JSC$18357_expiringStorage=new Lh(p)};
_.AEL=function(p){if(_.MXL()&&(p=_.sr6(_.iv()+"::"+p)))return new Pf1(p)};
Pf1.prototype.set=function(p,y,l){l=l!==void 0?Date.now()+l:void 0;this.JSC$18357_expiringStorage.set(p,y,l)};
Pf1.prototype.get=function(p){return this.JSC$18357_expiringStorage.get(p)};
Pf1.prototype.remove=function(p){this.JSC$18357_expiringStorage.remove(p)};var ZOA=new _.WE("SESSION_STORAGE");_.L$=function(){};
_.L$.getInstance=function(){var p=_.I4("ytglobal.storage_");p||(p=new _.L$,_.e0("ytglobal.storage_",p));return p};
_.L$.prototype.estimate=function(){var p,y,l;return _.h(function(q){p=navigator;return((y=p.storage)==null?0:y.estimate)?q.return(p.storage.estimate()):((l=p.webkitTemporaryStorage)==null?0:l.queryUsageAndQuota)?q.return(VX6()):q.return()})};
_.e0("ytglobal.storageClass_",_.L$);var xSj=!!(aN[1]>>14&1);var S7u=0;var T_g=!1;var MZA=_.c0(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),VZm=_.c0(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var wtd={"/":_.Fx,"/?feature=ytca":_.Fx,"/feed/downloads":_.eYa};var iW=function(p,y,l){this.JSC$18373_upliftPromise=p;this.store=y;this.JSC$18373_persistentStorePromiseAccessor=l};
iW.prototype.shouldPreferLocalResponse=function(p){return p.browseId==="FEdownloads"||p.browseId==="FEsmart_downloads"&&_.n("kevlar_modern_downloads_page")?!0:!1};
iW.prototype.localInnertubeResponse=function(p){var y=this;return _.h(function(l){return p.browseId==="FEdownloads"?_.n("kevlar_modern_downloads_page")?l.return(gXd(y)):l.return(QXi(y)):p.browseId==="FEsmart_downloads"&&_.n("kevlar_modern_downloads_page")?l.return(Kwu(y)):l.return(Promise.reject(Error("rj")))})};
iW.prototype.canProvideFallbackResponse=function(){return!0};
iW.prototype.localFallbackInnertubeResponse=function(p){var y=this,l,q,t;return _.h(function(E){switch(E.nextAddress){case 1:return E.yield(y.JSC$18373_persistentStorePromiseAccessor(),2);case 2:l=E.yieldResult;if(p.browseId!=="SPaccount_downloads"||!l){E.jumpTo(3);break}return E.yield(sEt(l),4);case 4:if(q=E.yieldResult)return E.return(_.$z(q));case 3:return p.browseId==="FEwhat_to_watch"?E.return(w67(y)):(t=_.n("web_offline_continuation_automatic_retry")||_.n("web_offline_continuation_retry_button"))&&
p.continuation?E.return(iOA(y)):E.return(rEi(y))}})};
var w67=function(p){var y;return _.h(function(l){if(l.nextAddress==1)return l.yield(p.JSC$18373_upliftPromise,2);y=_.h2L(p.store.getState().entities);return y.length?l.return(S3A(p,y)):l.return(rEi(p))})},QXi=function(p){var y,l;
return _.h(function(q){if(q.nextAddress==1)return q.yield(p.JSC$18373_upliftPromise,2);if(q.nextAddress!=3)return y=Fwd([{offlineItemSectionRenderer:{}}]),q.yield(LwR(p,y),3);l=q.yieldResult;l.onResponseReceivedActions=[kF("REFRESH_DOWNLOADS")];return q.return(l)})},gXd=function(p){var y,l,q,t,E,e,C,u,a,m,U,b,P,Z,K,F;
return _.h(function(L){if(L.nextAddress==1)return L.yield(p.JSC$18373_upliftPromise,2);if(L.nextAddress!=3)return y=p.store.getState(),l=y.entities,q=_.HV(l),t=_.TU(l),E=_.Tzm(y),e=_.Hwl(y),C=_.xbu(y),u=_.R2c(l),a=_.S$(q),m=_.xy(l),U=_.UbL(l),b=_.fUl(y),P=_.dN(y),Z={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Arl(q,t,u,U,E,e,a,m,C,b,P),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},K=_.g$("DOWNLOADS",void 0,"Downloads"),
L.yield(kBw(p,Z,K),3);F=L.yieldResult;F.onResponseReceivedActions=[kF("REFRESH_DOWNLOADS")];return L.return(F)})},Kwu=function(p){var y,l,q,t,E,e,C,u,a;
return _.h(function(m){if(m.nextAddress==1)return m.yield(p.JSC$18373_upliftPromise,2);if(m.nextAddress!=3)return y=p.store.getState(),l=y.entities,q=_.HV(l),t=_.S$(q),E=_.xy(l),e={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.M8c(q),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},C=_.g$("SMART_DOWNLOADS",void 0,"Smart downloads"),u=Gmu(t,E),m.yield(kBw(p,e,C,u),3);a=m.yieldResult;a.onResponseReceivedActions=
[kF("REFRESH_DOWNLOADS")];return m.return(a)})},rEi=function(p){var y,l;
return _.h(function(q){if(q.nextAddress==1)return q.yield(UP(p.JSC$18373_upliftPromise,p.store),2);y=q.yieldResult;l=Fwd([pXm(y)]);return q.return(LwR(p,l))})},iOA=function(p){var y,l,q,t;
return _.h(function(E){if(E.nextAddress==1)return y={},l=p.store.getState().continuation.continuationCommand,_.oF(y,_.qr,l),E.yield(UP(p.JSC$18373_upliftPromise,p.store,y,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);q=E.yieldResult;t={};_.oF(t,_.xir,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:q}}}],targetId:"browse-feedFEwhat_to_watch"});return E.return({responseContext:{},onResponseReceivedActions:[t]})})},Fwd=function(p){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:p}}}}]}}},S3A=function(p,y){var l,q;
return _.h(function(t){var E={contents:NG(y)};l=E&&E.contents?E:{};_.n("kevlar_modern_downloads_page")&&(l=Object.assign({},_.V8L(y),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));q={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:l}}}]}};return t.return(LwR(p,q))})},LwR=function(p,y){var l,q;
return _.h(function(t){if(t.nextAddress==1)return t.yield(p.JSC$18373_persistentStorePromiseAccessor(),2);if(t.nextAddress!=3)return l=t.yieldResult,t.yield(jP(l),3);q=t.yieldResult;return t.return({responseContext:{},contents:y,topbar:q})})},kBw=function(p,y,l,q){var t,E;
return _.h(function(e){if(e.nextAddress==1)return e.yield(p.JSC$18373_persistentStorePromiseAccessor(),2);if(e.nextAddress!=3)return t=e.yieldResult,e.yield(jP(t),3);E=e.yieldResult;var C=e.return;var u=q;u=u===void 0?"":u;u={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:l}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.g$("SETTINGS",void 0,"Settings"),accessibilityText:_.g$("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:Rr("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:u}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:l};
return C.call(e,{responseContext:{},contents:y,topbar:E,header:{pageHeaderRenderer:u}})})};var NuT=function(){this.moduleRegistry={};this.fetchCount=0};
NuT.prototype.isFetching=function(){return this.fetchCount>0};
var pq=function(p,y){p.moduleRegistry[y.toString()]={asyncId:y,isFetching:!1};return p};
NuT.prototype.JSC$18384_loadModules=function(){for(var p=this,y=new Map,l=[],q=_.c(_.oX.apply(0,arguments)),t=q.next();!t.done;t=q.next()){t=t.value;var E=this.moduleRegistry[t];E?E.resolver?y.set(t,E.resolver):(E.resolver=new _.AB,y.set(t,E.resolver),l.push(E.asyncId),E.isFetching=!0):(E=new _.AB,y.set(t,E),E.resolve(void 0))}l.length&&(this.fetchCount+=1,_.DO(_.AS.getMultipleAsync.apply(_.AS,_.xq(l)).then(function(e){for(var C=0;C<l.length;C++){var u=e[C],a=p.moduleRegistry[l[C].toString()];a.isFetching=
!1;a.resolver.resolve(u)}}).catch(function(e){for(var C=_.c(l),u=C.next();!u.done;u=C.next()){u=u.value;
var a=p.moduleRegistry[u.toString()];a.resolver=void 0;a.isFetching=!1;y.get(u.toString()).reject(e)}}),function(){--p.fetchCount}));
return Promise.all([].concat(_.xq(y.values())).map(function(e){return e.promise}))};_.yR=new _.WE("MODULE_REGISTRY_TOKEN");var DmT={},HO6=(DmT.rendered={priority:0,callback:function(p){a:{var y=void 0;try{var l;b:{if(_.foR()){var q=_.qtl(_.iv()+"::pom");if(q){var t=new BF(q);break b}}t=void 0}var E=(l=t)==null?void 0:l.get("role_text");if(!E)break a;y={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:E}]}}}}}}catch(u){}y&&p.injector.resolve(_.aK).resolveCommand(y)}try{var e=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(e){var C=JSON.parse(e);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
C&&p.injector.resolve(_.aK).resolveCommand(C)}}catch(u){}}},DmT);var TuA,xm1={},BuO=(xm1.initialized={priority:10,callback:function(){TuA=TK()}},xm1.rendering={callback:function(p){var y;
return _.h(function(l){if(l.nextAddress==1)return l.yield(TuA,2);y=l.yieldResult;if(!y.endpoint)throw Error("tj`"+_.l_.location.href);v3(p,y);_.rR(l)})}},xm1);var flO={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(_.xq(_.n("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,weight:500},{messageRegExp:/MutationObserver is not defined/,
weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,
weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,
weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,
weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},
{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,
weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},
{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,
weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,
weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,
weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(p){var y=p.stack;if(y.includes("chrome://")||y.includes("chrome-extension://")||p.message.includes("chrome-extension://")||y.includes("moz-extension://")||y.includes("local.adguard.org")||y.includes("auctioneer3.50million.club")||y.includes("youtubedownloader")||y.includes("youtube_home_page")||y.includes("is_youtube_video_no_longer_available")||
y.includes("switchScreenSizeHack")||y.includes("yt_main_big_banner.js")||y.includes("YouTubeCenter.js")||y.includes("/mytube.js")||y.includes("JSON.parseWrapper")||y.includes("/inj_js/common.js")||y.includes("firebug-lite")||y.includes(".repl.co/")||y.includes("linkfix")||y.includes("playAfterAd")||p.message.includes("Access is denied for this document")&&y.includes("<anonymous>")||p.fileName==="user-script"||p.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
y.includes("<anonymous>"))return!0;if(y.includes("https://www.youtube.com"))return!1;p=y.split("\n");if(!p.length)return!1;if(p.length<=3&&y.includes("s.onloadeddata"))return!0;y=0;for(var l=_.c(p),q=l.next();!q.done;q=l.next())q=q.value,(q.includes("https://")||q.includes("http://"))&&y++;return y/p.length>.95},
weight:0},{callback:function(p){return p.message==="Unknown Error"&&p.name.indexOf("NS_")===0},
weight:100},{callback:function(p){if(!_.P0)return!1;var y=p.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||p.message.includes("available to complete this operation"),l=p.stack.includes("webcomponents")&&p.message==="Object doesn't support this action";p=p.message.includes("object that does not implement interface Element");return y||l||p},
weight:0},{callback:function(p){return p.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(p){return p.message==="Operation is not supported"&&(p.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(p){return p.stack.includes("eval code (eval (code:1:1)")||p.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(p){return p.message.includes("Permission denied")&&p.stack.includes("this.domHandler")?!0:p.name.includes("TypeError")&&p.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(p){if(!p.stack)return!1;var y=p.stack.trim().split("\n");y.length&&y[0].endsWith("Error: "+p.message)&&y.shift();y.length&&y[y.length-1].includes("at window.onerror (")&&y.pop();if(!y.length)return!0;if(p.message==="Script error.")return y[0].includes("www.youtube.com")||y.length>=2&&y[0].startsWith("at new")&&y[1].startsWith("at window.onerror");if(p.message==="Unexpected token")return!0;p=_.c(y);for(y=p.next();!y.done;y=p.next())if(y=y.value,!(y.includes("<anonymous>")||
y.startsWith("load@")||y.startsWith("global code@")||y.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(p){return p.message==="Cannot read property 'experiments'"&&p.stack.includes("/s/player/")},
weight:500},{callback:function(p){return p.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(p){return p.stack.includes("/embed.js")?(p.params&&p.params&&(p.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.n("use_error_suppression"))var p=_.OY("SUPPRESS_CLIENT_ERRORS",!1);else{if(p=_.gl)p=/Chrome\/(\d+)/.exec(_.mL()),p=(p?parseFloat(p[1]):NaN)>=66;p=!(p||_.VR&&_.MY(65)||_.ds&&_.MY(12.1)||Jk&&_.MY(79))}return p},
weight:500}]};var vXO={},X6V=(vXO.initialized={priority:10,callback:function(p){p.injector.addProvider({provide:s0r,useValue:p.root});p.injector.addProvider({provide:GM7,useValue:IRt});p.injector.addProvider({provide:PNd,useValue:flO});var y={};p.injector.addProvider((y.provide=AZR,y.useFactory=function(l,q){return function(){$JR(l,q)}},y[RL]=[GM7,
PNd],y));p.injector.addProvider({provide:K9,useClass:K9})}},vXO);var dmw={},OO7=(dmw.initialized={priority:3,callback:function(){var p;if(p=owu()){p=p.replace("/",".");var y=_.w$();y.set("tz",p);y.save();p=!0}else p=!1;p||(p=_.w$(),p.set("utco",-Math.floor((new Date).getTimezoneOffset())),p.save())}},dmw);var oXw={},zfm=(oXw.initialized={priority:10,callback:function(p){p.injector.resolve(K9).start();p=_.qH();var y=_.o4("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.o4("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.o4("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.o4("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.gU(_.nf_(),{mainAppWeb:Object.assign({},p,{pageType:y})});_.gU(PK6(),{mainAppWeb:Object.assign({},p,{pageType:y})});
_.gU(A6u(),{mainAppWeb:p});_.gU(Zg5(),{mainAppWeb:p});tW$(function(){_.QG(A6u(),"FAILURE");_.QG(Zg5(),"FAILURE")});
sng();tpl();SWo()}},oXw);var Y3T={},IlO=(Y3T.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.fy("dl"),_.qB().processSignal("pcl");else{var p=function(){_.fy("dl");_.qB().processSignal("pcl");window.removeEventListener("load",p)};
window.addEventListener("load",p)}}},Y3T);var pH6={},ywi=(pH6.rendering={priority:0,callback:function(){var p=_.qB();p.parkOrScheduleJob(function(){p.processSignal("eocs")},10,"eor",5E3)}},pH6);var lh6=function(){};
_.A(lh6,yT);
lh6.prototype.resolveCommand=function(p,y){var l,q,t,E,e,C,u,a;return _.h(function(m){t=(l=_.G(p,_.Q$x))==null?void 0:(q=l.dialog)==null?void 0:q.commentReplyDialogRenderer;if(!t)throw new _.SM("No dialog in createCommentReplyDialogEndpoint");e=(E=y.form)==null?void 0:E.event;if(!e)throw new _.SM("Event not passed in when resolving command");C=_.c(e.composedPath());for(u=C.next();!u.done;u=C.next())if(a=u.value,a.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||a.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return a.showReplyDialog(t),m.return();
_.rR(m)})};var kr=function(p){this.pageRequestService=p;this.JSC$18399_prefetchCoordinator=erA()};
_.A(kr,yT);kr.prototype.resolveCommand=function(p){var y=this,l,q,t,E;return _.h(function(e){if(e.nextAddress==1){l=_.G(p,eFB);if((q=l)==null||!q.taskId)throw Error("uj");t=l.taskId;_.Ve(e,2);return e.yield(_.tav(y.pageRequestService,p,{},"").then(function(C){if(!C)throw Error("vj");},function(C){throw Error("wj`"+C);
}),4)}if(e.nextAddress!=2)return uiO(y.JSC$18399_prefetchCoordinator,t),_.pK(e,0);
E=_.i6(e);ao(y.JSC$18399_prefetchCoordinator,t,E);_.rR(e)})};
kr[RL]=[H3];var NT=function(p){this.innertubeTransportService=p};
_.A(NT,yT);NT.prototype.resolveCommand=function(p){var y=this,l,q;return _.h(function(t){l=_.G(p,JiU);if(l.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||l.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")q=l.boolValue?2:1,_.md.getInstance().setState(q,!0,!0);return t.yield(_.eo(y.innertubeTransportService,p),0)})};
NT[RL]=[_.XC];var Dx={},q8T=(Dx.addToPlaylistEndpoint=ua(fk),Dx.addToToastAction=ua(vv),Dx.adsControlFlowOpportunityReceivedCommand=ua(Mk),Dx.captionLanguageSelectActionCommand=ua(tz),Dx.captionPickerEndpoint=ua(El),Dx.changeMiniAppPlayStateCommand=ua(vw),Dx.changeTimelyActionVisibilityCommand=ua(fQ),Dx.channelCreationFormEndpoint=ua(Nk),Dx.clearLocationCommand=ua(Bw),Dx.clearUrlParamCommand=ua(Xu),Dx.copyLinkCommand=ua(CQ),Dx.copyTextEndpoint=ua(Q_),Dx.createCommentReplyDialogEndpoint=Zna(lh6),Dx.createPlaylistServiceEndpoint=
ua(uJ),Dx.dismissDialogEndpoint=ua(Oe),Dx.entityUpdateCommand=ua(wG),Dx.feedbackEndpoint=ua(Sg),Dx.getAnswerCommand=ua(Uaw),Dx.getPaymentsClientTokenCommand=ua(Ol),Dx.getTranscriptEndpoint=ua(Xb),Dx.googlePaymentBillingCommand=ua(ot),Dx.googlePaymentPurchaseManagerCommand=ua(zy),Dx.hideEngagementPanelEndpoint=ua(oV),Dx.hideSnackbarCommand=ua(kb),Dx.insertRichSectionCommand=ua(Hw),Dx.listMutationCommand=ua(TG),Dx.logGtmCommand=ua(Dj),Dx.notifyDropdownOptionSelectedCommand=ua(dG),Dx.openAdAllowlistInstructionCommand=
ua(_.V_),Dx.openOnePickAddVideoModalCommand=ua(Rt),Dx.persistSubscriptionsDisplayPreferencesCommand=ua(j3),Dx.pingingEndpoint=ua(gG),Dx.playlistEditEndpoint=ua(at),Dx.playlistVotingRefreshPopupCommand=ua(mK),Dx.profileCardCommand=ua(Zj),Dx.refreshPanelEndpoint=ua(zG),Dx.saveImageToDeviceEndpoint=ua(Kk),Dx.scrollToSectionEndpoint=Zna($a6),Dx.seekToVideoTimestampCommand=ua(Jz),Dx.selectCountryCommand=ua(bJ),Dx.setCookieCommand=ua(nQ),Dx.setLocalStorageCommand=ua(DP),Dx.setPrefStorageEntryCommand=ua(Pv),
Dx.setSettingEndpoint=ua(NT),Dx.sfvAudioItemPlaybackCommand=ua(cv),Dx.shareImageCommand=ua(Az),Dx.sharingProviderDataCommand=ua(ZP),Dx.showCaptionLanguageSelectActionCommand=ua(e3),Dx.showDialogCommand=ua(pQ),Dx.showEngagementPanelEndpoint=ua(ys),Dx.showSheetCommand=ua(lJ),Dx.showSnackbarCommand=ua(Nz),Dx.showTransientPlayerScrimOverlayCommand=ua(hz),Dx.submitFormWithValidationFlowCommand=ua(ku),Dx.talkToRecsDeselectCommand=ua(Hv),Dx.talkToRecsNextCommand=ua(Ty),Dx.talkToRecsSelectCommand=ua(xb),
Dx.talkToRecsUpdateTextCommand=ua(Bv),Dx.toggleEngagementPanelCommand=ua(qz),Dx.undoFeedbackEndpoint=ua(Lk),Dx.updateEngagementPanelContentCommand=ua(sl),Dx.updateUrlParamCommand=ua(dL),Dx.verifyCommand=ua(Nk),Dx.webNativeShareCommand=ua(Mz),Dx.webSubmitFormCommand=ua(Ul),Dx.ACK_PLAYABLES_3P_DATA_CONSENT=ua(Vs),Dx.CANCEL_NAVIGATION=ua(gL),Dx.COPY_SHARE_URL=ua(Qs),Dx.MINI_APP_EXIT_DIALOG_SEEN=ua(wL),Dx.MINI_APP_OPEN_URL=ua(KQ),Dx.REQUEST_MINI_APP_FULLSCREEN=ua(iJ),Dx.RESUME_NAVIGATION=ua(rL),Dx.SHARE_PLAYABLE_WITH_HIGH_SCORE=
ua(S3),Dx.TELL_US_WHY=ua(Fu),Dx);_.n("web_enable_prefetching_videos_on_home")&&(q8T.prefetchWatchCommand=ua(kr),q8T.registerTasksCommand=ua(UJ));_.n("enable_share_panel_navigation_logging_fix_on_web")&&(q8T.shareEntityServiceEndpoint=ua(Yu));var RRr=Object.assign({},q8T);var s9T={},t_w=(s9T.initialized={priority:10,callback:hgL},s9T);var Eqw={},JwL=(Eqw.initialized={callback:function(p){var y={},l={};lxu().install((y.document_disposed={callback:function(){_.n("finalize_all_timelines")?vdl():Tf();G$u("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.Rpj();var q=p.injector.resolve(K9);q.intervalId!==void 0&&(q.intervalId&&_.TR.cancelJob(q.intervalId),q.intervalId=void 0,--q.currentPartitionIndex,q=vrP(q),q>0&&pSP({mainAppWeb:_.qH(),survivalSli:{partitionMinute:q,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));v5O(Ji);c4!=null&&
c4.flush();ji&&ji.snapshotAndFlush();q=_.c(JPr.values());for(var t=q.next();!t.done;t=q.next())t.value.snapshotAndFlush()}},y),(l.flush_logs={callback:function(){_.xn()}},l))}},Eqw);var cwR={},e_u=(cwR.rendered={priority:0,callback:function(){var p=new TgZ;p.increment("STARTED");if(_.OY("LOGGED_IN")&&_.OY("SERVER_VERSION")!=="test"&&_.OY("SERVER_VERSION")!=="dev"&&!bUB()&&!jvr()){p.increment("EXECUTING");var y=document.createElement("iframe");y.style.display="none";_.dmo(y,2,_.XX("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.OY("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(y);p.increment("DONE")}}},cwR);var h_9={},C6d=(h_9.rendered={callback:function(){erA().resume()}},h_9);var uD9={acknowledgeChannelTouStrikeCommand:L4(M7),addToPlaylistServiceEndpoint:L4(QK),addToPlaylistEndpoint:L4(QK),addUpcomingEventReminderEndpoint:L4(Hy),browseEndpoint:L4(v6i),channelCreationFormEndpoint:L4(je),channelCreationServiceEndpoint:L4(b5),claimLegacyYoutubeChannelEndpoint:L4(EB),clearSearchHistoryEndpoint:L4(rK),clearWatchHistoryEndpoint:L4(Se),commerceActionCommand:k9(z8),createBackstagePostEndpoint:L4(pG),createBroadcastCommand:L4(TD),createCommentEndpoint:L4(ay),createCommentReplyEndpoint:L4(Wy),
createLiveChatPollEndpoint:L4(xR),createPlaylistServiceEndpoint:L4(KM),crossAccountChannelTransferEndpoint:L4(kR),deleteLiveChatMessageCommand:L4(By),deletePlaylistEndpoint:L4(w8),deleteVideoEndpoint:L4(XQ),dismissalEndpoint:L4(V1),feedbackEndpoint:L4(gK),flagEndpoint:L4(ki),getAccountSwitcherEndpoint:L4(LG),verifyCommand:L4(It),getAccountsListInnertubeEndpoint:L4(DT),getCommentsFromInboxCommand:L4(ue),getDownloadActionCommand:L4(jG),getFlowCommand:k9(i5),getKidsBlocklistPickerCommand:L4(N9),getNotificationMenuEndpoint:L4(O8V),
getPaymentInstrumentsParamsCommand:L4(qT),getPaymentsClientTokenCommand:k9(z8),getPdgBuyFlowCommand:L4(VK),getReportFormEndpoint:L4(D8),getSearchInVideoCommand:L4(xi),getAnswerCommand:L4(T8),getSurveyCommand:L4(vr),getTranscriptEndpoint:L4(Oy),getPostVideoPreviewEndpoint:L4(l5),decorateMessageEndpoint:L4(y1),likeEndpoint:L4(nG),liveChatActionEndpoint:L4(dK),liveChatEndpoint:L4(XG),liveChatItemContextMenuEndpoint:L4(fG),liveChatPurchaseMessageEndpoint:L4(OB),liveChatReplayEndpoint:L4(vy),manageLiveChatUserEndpoint:L4(zD),
metadataUpdateCommand:L4(ho),moderateLiveChatEndpoint:L4(to),modifyChannelNotificationPreferenceEndpoint:L4(mD),notificationOptOutEndpoint:L4(Uy),openSuperStickerBuyFlowCommand:L4(oy),performCommentActionEndpoint:L4(CG),playlistEditEndpoint:L4(r8),playlistEditorEndpoint:L4(ie),recordNotificationInteractionsEndpoint:L4($i),reelWatchEndpoint:L4(SG),refreshPanelEndpoint:L4(nM),removeUpcomingEventReminderEndpoint:L4(Ey),resolveLocationCommand:L4(eG),revealBusinessEmailCommand:L4(J9),searchEndpoint:L4(_.o6u),
sendLiveChatMessageEndpoint:L4(Jo),sendLiveChatVoteEndpoint:L4(cr),setSettingEndpoint:L4(GD),shareEntityServiceEndpoint:k9(ZT),sharingProviderDataCommand:L4(fM),showEngagementPanelEndpoint:L4(G8),showMoreDrawerCommand:L4(Ao),showSheetCommand:L4(Z8),showDialogCommand:L4(Pr),subscribeEndpoint:L4(Py),transcriptSubmitCaptionCorrectionCommand:L4(d8),undoFeedbackEndpoint:L4(KG),unsubscribeEndpoint:L4(A9),updateBackstagePostEndpoint:L4(sB),updateCommentEndpoint:L4(UB),updateCommentReplyEndpoint:L4(mk),updateCommentsSettingsEndpoint:L4($R),
updateCreatorChannelInnertubeCommand:L4(ee),updateKidsBlacklistEndpoint:L4(Hr),updateEngagementPanelContentCommand:L4(M9),updatePdgFeatureEnablementCommand:L4(g8),updatedMetadataEndpoint:L4(CM),validateChannelHandleCommand:L4(h9),updateChannelPageSettingsEndpoint:L4(cy),verifyAgeEndpoint:L4(wK),watchEndpoint:k9(i2),whitelistEditEndpoint:L4(oQ),ypcCancelRecurrenceEndpoint:L4(Yi),ypcCompleteTransactionEndpoint:L4(IQ),ypcFixInstrumentEndpoint:L4(yJ),ypcGetCartEndpoint:L4(p$),ypcGetOffersEndpoint:L4(lq),
ypcHandleTransactionEndpoint:k9(sJ),ypcLogWalletAnalyticDataEndpoint:L4(ta),ypcOffersEndpoint:L4(EJ),ypcPauseSubscriptionCommand:L4(Ja),ypcRedeemCodeEndpoint:L4(cO),ypcResumeSubscriptionCommand:L4(eQ),ypcUpdateFopEndpoint:L4(yJ)},HO={},R_V=(HO.GET_ACCOUNT_MENU=L4(N7),HO.GET_NOTIFICATIONS_MENU=L4(da7),HO.GET_NOTIFICATIONS_INBOX=L4(RQ),HO.GET_UNSEEN_NOTIFICATION_COUNT=L4(aQ),HO.GET_USER_MENTION_SUGGESTIONS=L4(q7),HO.LOAD_GUIDE=L4(Xtd),HO.SUBMIT_FEEDBACK=L4(Q1),HO),TN={},WbV=(TN.CONTINUATION_REQUEST_TYPE_BROWSE=
L4(t9),TN.CONTINUATION_REQUEST_TYPE_SEARCH=L4(Br),TN.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=L4(S4),TN.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=L4(FG),TN.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=L4(Ry),TN.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=L4(u5),TN.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=L4(LM),TN.CONTINUATION_REQUEST_TYPE_GET_PANEL=L4(be),TN),ah1={player:k9(i2),watchNext:L4(rB)},mN6={player:k9(i2),reelItemWatch:L4(SG),reelWatchSequence:L4(FQ)},UNw={watchEndpoint:k9(Ft)},$NO=
{commandEndpointMap:uD9,signalEndpointMap:R_V,continuationEndpointMap:WbV,watchEndpointMap:ah1,reelWatchEndpointMap:mN6,streamingEndpointMap:UNw};var j9T,bCL,nqV;_.Gwd=((bCL=(j9T=window).matchMedia)==null?void 0:(nqV=bCL.call(j9T,"(prefers-reduced-motion: reduce)"))==null?void 0:nqV.matches)||!document.startViewTransition;var P6i={disableAllTransitions:_.Gwd,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:600}}]])};_.xr=new _.WE("VIEW_TRANSITION_MANAGER_TOKEN");var Awd=function(p){this.viewTransitionCoordinator=p;this.isBrowseTransitionEnabled=_.$h("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.n("web_thumbnail_to_watch_transition");this.isLearningJourneyTransitionEnabled=_.n("enable_plj_landing_page");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.registerRootElement()};
Awd.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var p={};this.viewTransitionCoordinator.registerElement(document.documentElement,(p.slide="root-slide",p["lockup-to-watch"]="root-lockup-to-watch",p["learning-journey"]="root-learning-journey",p))}};
Awd[RL]=[RVi];var C$c={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var Rgj=["videoPrimaryInfoRenderer","title"],Wac=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var ZCu;ZCu=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.M_u=_.aF(function(p){p=_.RF(p,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var y=p.data,l=p.playlistData,q=p.expanded,t=p.onExpandClick,E=p.isReadyToResume,e=function(){var m;return!((m=l())==null||!m.contents)},C=function(){var m=l();
return m&&m.totalVideos&&m.currentIndex!==void 0?m.currentIndex+1+" / "+m.totalVideos:""};
p=_.Ff(function(){_.BO(_.WC().resolve(_.IA));return!1});
var u=_.Ff(function(){e()&&t&&t()}),a={};
return _.R("ytd-miniplayer-info-bar",{class:_.ip("ytdMiniplayerInfoBarHost",(a.ytdMiniplayerInfoBarHasPlaylistData=e,a)),"on:click":u},_.R("div",{class:"ytdMiniplayerInfoBarContent"},_.R("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":p},_.R(_.CF,{text:function(){var m=y();var U=l();if(U==null?0:U.contents){var b;m=(b=_.xC_(U))==null?void 0:b.title}else m=m==null?void 0:m.miniplayerTitle;return mhc(m)},
noEndpoints:!0,ellipsisTruncate:!0})),_.R("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.R(_.W,{cond:E,then:function(){return _.R(lBr,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:ZCu})}}),_.R("h1",null,_.R(_.CF,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var m=y();var U=l();m=E()?{simpleText:_.g$("CONTINUE_WATCHING",void 0,"Continue watching")}:(U==null?0:U.contents)?U.titleText:m==null?void 0:m.miniplayerSubtitle;return mhc(m)},
noEndpoints:!0,ellipsisTruncate:!0})),_.R(_.W,{cond:function(){return!!C()&&!E()},
then:function(){return _.R("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.R("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.R("span",null,C))}}))),_.R(_.W,{cond:e,
then:function(){return _.R("div",{class:"ytdMiniplayerInfoBarExpand"},_.R(_.uI,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(m){t&&(t(),m.stopPropagation())}}},
iconName:function(){return q()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"He");var V_1;V_1=_.aF(function(p){return _.R("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.R(_.uI,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:p.onTap}},
iconName:"yt-icons:close"}))},"Ie");
_.gqR=_.aF(function(p){p=_.RF(p,{playabilityStatus:void 0,isDisabled:!1});var y=p.size,l=p.playabilityStatus,q=p.isDisabled,t=_.sM("div");p=_.c(_.nr(void 0,void 0,"bJr0Se"));var E=p.next().value,e=p.next().value;p=_.yS(_.Vn);var C=!1,u=function(){return y().height<=0};
_.NA(function(){var b=y(),P=u(),Z=E();Z&&!P&&Z.setInternalSize(b.width,b.height)},"OUOyKb");
_.Hu(function(){var b,P,Z;return _.h(function(K){if(K.nextAddress==1){b=_.WC().resolve(_.IA);P=b.getPlayerElement();if(!b.isMiniplayerActive()||!P||!t.value)return K.return();P.appendTo(t.value);return K.yield(P.getPlayerPromise(),2)}Z=K.yieldResult;Z.setSizeStyle(!1,!0);e(Z);_.rR(K)})});
_.TP(function(){a()});
_.NA(function(){var b=E();if(b)if(q()){var P=b.getPlayerState();(C=P===-1||P===1||P===3)&&b.pauseVideo()}else a()},"KKHe5");
var a=function(){if(C){C=!1;var b;(b=E())==null||b.playVideo()}},m=_.Ff(function(){_.BO(_.WC().resolve(_.IA))}),U={};
return _.R("ytd-miniplayer-player-container",{class:_.ip("ytdMiniplayerPlayerContainerHost",(U.ytdMiniplayerPlayerContainerHidden=u,U.ytdMiniplayerPlayerContainerHostShortsPip=p,U)),style:_.NW({width:function(){return y().width+"px"},
height:function(){return y().height+"px"}})},_.R("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:t}),_.R(_.W,{cond:function(){return!!l()&&!_.XXo(l())},
then:function(){return _.R(tT$,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var b;return((b=l())==null?void 0:b.errorScreen)||null},
status:function(){var b;return((b=l())==null?void 0:b.status)||null}})}}),_.R(_.W,{cond:q,
then:function(){return _.R("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":m},_.R(V_1,{onTap:function(){_.WC().resolve(_.IA).close()}}))}}))},"Je");_.Q9d=_.aF(function(p){var y=p.toastData;var l=_.sM("ytd-miniplayer-toast");p=_.c(_.kS(function(){return!!y()}));
var q=p.next().value,t=p.next().value;p=_.c(_.nr(!1,void 0,"xkrBze"));var E=p.next().value,e=p.next().value,C=function(){var m;return _.JB((m=y())==null?void 0:m.data.title)};
_.xZ(function(){_.lc.requestAvailability();y()&&t(!1)});
var u,a;_.NA(function(){q()&&(_.Ub(l.value,"iron-announce",{text:y().label+" "+C()}),u&&_.TR.cancelJob(u),u=_.TR.addLowPriorityJob(function(){e(!0)},2500))},"OTdL1e");
_.NA(function(){E()&&(a&&_.TR.cancelJob(a),a=_.TR.addLowPriorityJob(function(){t(!1);e(!1)},300))},"yybqib");
p={};return _.R("ytd-miniplayer-toast",{el:l,class:_.ip("ytdMiniplayerToastHost",(p.ytdMiniplayerToastOpening=function(){return q()},p.ytdMiniplayerToastClosing=function(){return E()},p))},_.R(_.W,{cond:function(){var m;
return(m=y())==null?void 0:m.data},
then:function(m){return _.R(h4Q,{className:"ytdMiniplayerToastThumbnail",data:m,width:78})}}),_.R("div",{class:"ytdMiniplayerToastInfo"},_.R("div",{class:"ytdMiniplayerToastLabel"},function(){var m;
return(m=y())==null?void 0:m.label}),_.R("div",{class:"ytdMiniplayerToastTitle"},C)))},"Ke");var Mpg;var Qno=null;var wHT=_.aF(function(p){var y=p.progressState;var l=p.multiMarkersPlayerBarRenderer;var q=p.progressBarWidth;var t=function(){return r88(l())},E=function(){return La_(y())},e=function(){return q()*(y().playedTime/y().videoDuration)};
return _.R("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.R(_.rT,{each:t},function(C,u){return _.R(Kbu,{modifiedProps:E,chapters:t,index:u,playedProgressWidth:e,backgroundGradientPosition:function(){var a=E(),m=t(),U=u(),b=e();return(a.playedTime-zK(_.G(m[U],oA)))/a.playedTime*b}})}))},"Le"),Kbu=_.aF(function(p){var y=p.modifiedProps;
var l=p.chapters;var q=p.index;var t=p.playedProgressWidth;var E=p.backgroundGradientPosition;p={};p=_.ip("ytChapteredProgressBarChapteredPlayerBarChapter",(p.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return e().isScrubbing},p.ytChapteredProgressBarHoveredMacroMarker=function(){return e().scrubberHovering},p.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return e().videoPosition==="seen"},p));
var e=function(){return khL(y(),l(),q())},C=function(){var u=y();
var a=l(),m=q();if(khL(u,a,m).videoPosition!=="active")u=0;else{var U=zK(_.G(a[m],oA));u=(u.playedTime-U)/((zK(_.G(a[m+1],oA))||u.videoDuration)-U)}return u};
return _.R("div",{class:p,style:_.NW({width:function(){var u=y(),a=l(),m=q(),U=_.G(a[m],oA);a=_.G(a[m+1],oA);return(a?zK(a)-zK(U):u.videoDuration-zK(U))/u.videoDuration*100+"%"},
"background-color":function(){a:{var u=e();switch(u.videoPosition){case "pending":u=u.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":u=u.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:u=""}}return u},
"background-size":function(){return(Nx_(e())?t():"")+"px"},
"background-position-x":function(){return(Nx_(e())?E():"")+"px"}})},_.R("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var u=y(),a=l(),m=q();if(khL(u,a,m).videoPosition==="seen")var U=0;else U=zK(_.G(a[m],oA)),a=zK(_.G(a[m+1],oA))||u.videoDuration,u=u.videoDuration*u.percentLoaded,U=a<=u?1:U>=u?0:(u-U)/(a-U);return"width: "+U*100+"%"}}),_.R("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.NW({width:function(){return C()*100+"%"},
"background-size":function(){return(Nx_(e(),C())?t():"")+"px"},
"background-position-x":function(){return(Nx_(e(),C())?E():"")+"px"}})}))},"Me");var iC6=function(p,y){y=y===void 0?RWr:y;var l,q=[],t,E=!1;return function(){var e=_.oX.apply(0,arguments);if(E&&l===this&&y(e,q))return t;t=p.apply(this,e);E=!0;l=this;q=e;return t}}(function(p){var y=p.heatMarkers,l=p.minHeightDp===void 0?0:p.minHeightDp,q=p.maxHeightDp===void 0?60:p.maxHeightDp;
var t=t===void 0?!1:t;var E=1E3/y.length;p=[];p.push({x:0,y:100});for(var e=0;e<y.length;e++){var C=void 0,u=((C=_.G(y[e],CQv))==null?void 0:C.heatMarkerIntensityScoreNormalized)||0;C=(e+.5)*E;u=100-_.OP(u*100,l/321*100,q/321*100);e!==0||t||p.push({x:0,y:u});p.push({x:C,y:u});e===y.length-1&&p.push({x:1E3,y:u})}p.push({x:1E3,y:100});y="";for(l=0;l<p.length;l++)t=p[l],l===0?t="M "+t.x.toFixed(1)+","+t.y.toFixed(1):(q=fi_(p[l-1],p[l-2],t),E=fi_(t,p[l-1],p[l+1],!0),t=" C "+(q.x.toFixed(1)+","+q.y.toFixed(1)+
" "+E.x.toFixed(1)+","+E.y.toFixed(1)+" "+t.x.toFixed(1)+","+t.y.toFixed(1))),y+=t;return y});var rwT=_.aF(function(p){var y=p.progressBarProps;var l=p.config;var q={};p=_.ip("ytHeatSeekerHost",(q.ytHeatSeekerHighContrast=p.highContrast,q));var t=function(){return nO5(l().chapterData)};
return _.R("yt-progress-bar-heatseeker",{class:p,style:function(){var E;return"height: 320px; display: "+(y().isDragging&&((E=t())==null?0:E.heatMarkers)?"block":"none")}},_.R(_.W,{cond:t,
then:function(E){return _.R(_.W,{cond:function(){return E().heatMarkers},
then:function(){return _.R("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.R("path",{d:function(){return iC6(E())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ne");var S8L=_.aF(function(p){var y=p.progressBarProps;var l=p.config;p={};p=_.ip("ytProgressBarLineProgressBarLine",(p.ytProgressBarLineProgressBarLineRounded=function(){return l().rounded},p.ytProgressBarLineProgressBarLineBottomInset=function(){return l().position===2},p));
return _.R("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.R("div",{class:p},_.R("div",{class:"ytProgressBarLineProgressBarBackground"}),_.R("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+y().percentLoaded*100+"%"}}),_.R("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var q=y();return"width: "+(q.videoDuration?_.OP(q.hoveredTime/q.videoDuration,0,1):0)*100+"%"}}),_.R("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+$ho(y())*100+"%"}})))},"Oe");
S8L.idomCompat=!0;var Fbd=_.aF(function(p){var y=p.progressBarProps;var l=p.playheadData;var q=p.interpolateDotPosition;var t=p.hidePlayhead;p={};var E=_.ip("ytProgressBarPlayheadProgressBarPlayheadDot",(p.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return y().isDragging},p.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!y().isDragging&&t()},p));
return _.R("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.NW({"margin-left":function(){return jnm(y())*100+"%"},
transform:function(){return"translateX(-"+(q()?jnm(y())*12:6)+"px)"}})},_.R(_.W,{cond:function(){var e;
return(e=_.uy(l)())==null?void 0:e.playheadImage},
then:function(e){var C={};return _.R("div",{class:_.ip("ytProgressBarPlayheadProgressBarPlayheadCustom",(C.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return y().isDragging},C.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!y().isDragging&&t()},C)),
style:_.NW({"transform-origin":function(){return(q()?jnm(y())*20:10)+"px center"}})},_.R(_.W$,{data:e,
alt:"","aria-hidden":"true"}))},
else:function(){return _.R("div",{class:E,style:_.NW({"transform-origin":function(){return(q()?jnm(y())*12:6)+"px center"}})})}}))},"Pe");
Fbd.idomCompat=!0;var f$=function(p,y,l,q,t,E){this.getProgressBarRect=p;this.updateProgressBarRect=y;this.getFilmstripYPosition=l;this.setFineScrubbingDraggedTime=q;this.updateFilmStripDraggedYDistance=t;this.resetFilmStripYOffset=E;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.hy(this.onThrottledSeek,100,this)},Lbu=function(p,y,l){return function(q){p.handleClick(q,y(),l())}},DNA=function(p,y){return function(l){kwu(p,
l,NRA(l),y())}},HC1=function(p,y){return function(l){kwu(p,l,{x:l.clientX,
y:l.clientY},y())}},xN7=function(p,y,l){return function(q){var t=y(),E=l();
TR7(p,q,NRA(q),t,E,!0);if(E.onTouchMove)E.onTouchMove(t)}},fhR=function(p,y,l){return function(q){BRL(p,q,y(),l())}},vq7=function(p,y){return function(){p.handleMouseLeave(y())}},XHu=function(p,y,l){return function(){var q=y(),t=l();
vO(p,q,t);if(t.onTouchEnd)t.onTouchEnd(q)}},dNw=function(p,y,l){return function(){var q=y(),t=l();
vO(p,q,t);if(t.onTouchEnd)t.onTouchEnd(q)}},OCV=function(p,y,l){return function(){vO(p,y(),l())}},oqA=function(p){return function(y){if(y.keyCode===39||y.keyCode===38){var l,q;
(l=p())==null||(q=l.playerApi)==null||q.seekBy(5,void 0,void 0,72)}else if(y.keyCode===37||y.keyCode===40){var t,E;(t=p())==null||(E=t.playerApi)==null||E.seekBy(-5,void 0,void 0,71)}}},z_7=function(p,y,l){return function(q){!l().disableScrubbing&&p.startPosition&&BRL(p,q,y(),l())}},Y81=function(p,y,l){return function(){if(!l().disableScrubbing)if(p.startPosition){var q=y(),t=l();
vO(p,y(),l());if(t.onTouchEnd)t.onTouchEnd(q)}else y().setState({isDragging:!1})}},NRA=function(p){p=p.touches[0];
return{x:p.clientX,y:p.clientY}},BRL=function(p,y,l,q){if(y.buttons!==1){if(y.movementX||y.movementY)y.preventDefault(),y.stopPropagation(),p=Ihi(p,l,y.clientX),l.setState({isHovering:!0,
hoveredTime:p*l.videoDuration})}else pJd(l),TR7(p,y,{x:y.clientX,y:y.clientY},l,q,!1)};
f$.prototype.handleMouseLeave=function(p){pJd(p)};
var pJd=function(p){p.isHovering&&p.setState({isHovering:!1,hoveredTime:0})},kwu=function(p,y,l,q){p.startPosition||(p.startPosition=l,p.updateProgressBarRect(),p.controlsWereVisibleBeforeDragging=q.controlsVisible,y.stopPropagation(),_.n("medium_progress_bar_modification")||y.preventDefault())},TR7=function(p,y,l,q,t,E){if(p.startPosition)if(E&&t.isInlinePlayback&&p.startPosition&&!p.hasDraggedTheMinimumDistance&&Math.abs(l.y-p.startPosition.y)>Math.abs(l.x-p.startPosition.x))vO(p,q,t);
else if(y.preventDefault(),y.stopPropagation(),q.videoDuration&&(p.startPosition&&!p.hasDraggedTheMinimumDistance&&(p.hasDraggedTheMinimumDistance=Math.abs(l.x-p.startPosition.x)>=1),t.enableFineScrubbing&&(p.startPosition&&(p.isDraggedForFineScrubbing=-(l.y-p.startPosition.y)>=60),!p.startPosition||l.y>=p.startPosition.y||(q.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:Dh_(q.draggedTime,q,t.chapterData)}),p.setFineScrubbingDraggedTime(q.draggedTime),p.updateFilmStripDraggedYDistance(p.startPosition.y,
l.y,q))),p.hasDraggedTheMinimumDistance)){y=Ihi(p,q,l.x);if(p.isDraggedForFineScrubbing){var e;(e=q.playerApi)==null||e.pauseVideo();q.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:q.draggedTime,filmStripXDistance:Dh_(y*q.videoDuration,q,t.chapterData)})}t.enableFineScrubbing&&(!t.enableFineScrubbing||p.getFilmstripYPosition(q)<68)||q.setState({draggedTime:y*q.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:p.controlsWereVisibleBeforeDragging});var C;(C=
t.cancelAutohideControlsFn)==null||C.call(t)}},vO=function(p,y,l){var q=l.enableFineScrubbing&&y.fineScrubbingActiveState!=="off";
if(y.isDragging||q){q={isDragging:!1,playedTime:y.draggedTime,controlsVisible:p.controlsWereVisibleBeforeDragging};l.enableFineScrubbing&&y.fineScrubbingActiveState!=="on"&&(p.resetFilmStripYOffset(),q.fineScrubbingActiveState="off");var t=t===void 0?Qno:t;var E=_.B2(0);if(E&&t){var e=Math.round(y.playedTime*1E3),C=Math.round(y.draggedTime*1E3);e>2147483647||C>2147483647||_.Et(E,t,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(e),endMediaTimeMs:String(C),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}y.setState(q);
p.seekThrottle.fire(y.draggedTime,y,7);_.n("mweb_new_progress_bar_play_on_seek")&&p.resumeVideo(y);l.unmuteOnSeek&&(l=y.playerApi,y.volumeMuted&&(l==null||l.unMute()))}else y.setState({controlsVisible:!y.controlsVisible}),(E=l.triggerAutohideControlsAfterDelayFn)==null||E.call(l);p.startPosition=null;p.hasDraggedTheMinimumDistance=!1;p.isDraggedForFineScrubbing=!1;p.controlsWereVisibleBeforeDragging=!1};
f$.prototype.handleClick=function(p,y,l){this.updateProgressBarRect();p.stopPropagation();p=Ihi(this,y,p.clientX)*y.videoDuration;y.setState({playedTime:p});if(y.playerState!==2){var q;(q=l.triggerAutohideControlsAfterDelayFn)==null||q.call(l)}this.seekThrottle.fire(p,y,7)};
var Ihi=function(p,y,l){p=p.getProgressBarRect(y);return _.OP(0,(l-p.left)/p.width,1)};
f$.prototype.resumeVideo=function(p){if(p.draggedTime<p.videoDuration){var y;(y=p.playerApi)==null||y.playVideo()}};
f$.prototype.onThrottledSeek=function(p,y,l){if(y=y.playerApi){var q;if((q=y.getVideoData())==null?0:q.isLive)q=this.getProgressState(y),p+=(q==null?void 0:q.seekableStart)||0;y.seekTo(p,void 0,void 0,void 0,l)}};
f$.prototype.getProgressState=function(p){var y=p==null?void 0:p.getPresentingPlayerType();return p==null?void 0:p.getProgressState(y)};var q69,l76,sl1,EIu,yQA,JQA,cQw,e$9,h$i;q69=_.aF(function(p){var y=p.progressBarProps;var l=p.config;var q=p.progressBarWidthPx;var t=p.chapterData;var E=f05(y,function(){return l().isShortsPage}),e=function(){return!y().isHovering&&!l().isShortsPage};
p={};var C=_.ip("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(p.ytPlayerStoryboardHostMwebShorts=function(){return l().isShortsPage&&!1},p));
return _.R("yt-player-storyboard",null,_.R(_.W,{cond:function(){return y().isDragging||y().isHovering},
then:function(){return _.R(_.W,{cond:E,then:function(u){return _.R(_.W,{cond:e,then:function(){return _.R("div",{class:C,"aria-hidden":"true"},_.R(yQA,{props:y,config:l,isBigboard:!0,chapterData:t}))},
else:function(){return _.R(l76,{props:y,frame:u,config:l,progressBarWidthPx:q,chapterData:t})}})}})}}))},"Qe");
_.tOR=_.aF(function(p){var y=p.progressBarProps;var l=f05(y,p.isShortsPage);return _.R("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.R(_.W,{cond:function(){return y().isDragging||y().isHovering},
then:function(){return _.R(_.W,{cond:l,then:function(q){return _.R(sl1,{frame:q,props:y,isBigboard:!0})}})}}))},"Re");
l76=_.aF(function(p){var y=p.props;var l=p.frame;var q=p.config;var t=p.progressBarWidthPx;p=p.chapterData;var E={};E=_.ip("ytPlayerStoryboardHost",(E.ytPlayerStoryboardHostMwebShorts=function(){return q().isShortsPage&&!1},E.ytPlayerStoryboardHostInlinePlayer=function(){return q().isInlinePlayer},E.ytPlayerStoryboardHostFadeIn=function(){return q().useFadeInAnimation},E));
return _.R("div",{class:E,"aria-hidden":"true",style:function(){var e=y(),C=HLc(l()),u=t();e=Tx8(e)/e.videoDuration;var a=u*e,m=C/2+6;C=u-(C/2+6);return"left: "+(a<=m?m/u*100:a>=C?C/u*100:e*100)+"%"}},_.R(_.W,{cond:function(){var e=y();
return!(q().isShortsPage&&e.videoDuration<15)},
then:function(){return _.R(sl1,{frame:l,props:y,isBigboard:!1})}}),_.R(yQA,{props:y,
config:q,isBigboard:!1,chapterData:p}))},"Se");
sl1=_.aF(function(p){var y=p.frame;var l=p.props;var q=p.isBigboard;var t=function(){var C,u;return(u=(C=l().playerApi)==null?void 0:C.getVideoContentRect())!=null?u:{width:0,height:0}},E=function(){return HLc(y())},e=function(){var C=y();
return C?C.height/C.rows:0};
p={};p=_.ip((p.ytPlayerStoryboardBigboardImageWrapper=q,p.ytPlayerStoryboardStoryboardImageWrapper=function(){return!q()},p));
return _.R("div",{class:p,style:function(){return"width: "+(q()?t().width:E())+"px; height: "+(q()?t().height:e())+"px;"}},_.R(EIu,{frame:y,
storyboardWidth:E,storyboardHeight:e,storyboardScale:function(){return(q()?t().width:E())/E()}}))},"Te");
EIu=_.aF(function(p){var y=p.frame;var l=p.storyboardWidth;var q=p.storyboardHeight;var t=p.storyboardScale;var E=function(){var e=y().row,C=y().column,u=l(),a=q(),m=t();return{left:-C*u*m,top:-e*a*m}};
return _.R("img",{src:function(){return y().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+E().left+"px; top: "+E().top+"px; width: "+y().width*t()+"px; height: "+y().height*t()+"px;"}})},"Ue");
yQA=_.aF(function(p){var y=p.props;var l=p.config;var q=p.isBigboard;var t=p.chapterData;p={};p=_.ip("ytPlayerStoryboardMetadata",(p.ytPlayerStoryboardMetadataBigboard=q,p));return _.R("div",{class:p},_.R(_.W,{cond:q,then:function(){return _.R(_.a4,null,_.R(JQA,{props:y,config:l}),_.R(_.W,{cond:function(){a:{var E=y();var e=l(),C=t(),u;if((e==null?0:e.activeChapter)&&((u=_.G(e==null?void 0:e.activeChapter,oA))==null?0:u.title))E=!0;else{e=_.c(Gha(C));for(e=e.next();!e.done;e=e.next()){E=(e=_.G(e.value,
RHZ))&&xhl(E,e);break a}E=!1}}return E},
then:function(){return _.R(cQw,{props:y,config:l,isBigboard:!0,chapterData:t})}}))},
else:function(){return _.R(_.a4,null,_.R(cQw,{props:y,config:l,isBigboard:!0,chapterData:t}),_.R(JQA,{props:y,config:l}))}}))},"Ve");
JQA=_.aF(function(p){var y=p.props;var l=p.config;p={};p=_.ip("ytPlayerStoryboardTimestamp",(p.ytPlayerStoryboardTimestampShorts=function(){return l().isShortsPage},p.ytPlayerStoryboardTimestampIsHovering=function(){return y().isHovering||l().isShortsPage&&!0},p));
return _.R("div",{class:p},_.R(_.a4,null,function(){return _.Bxj(Tx8(y()))}))},"We");
cQw=_.aF(function(p){var y=p.props;var l=p.config;var q=p.isBigboard;var t=p.chapterData;p={};q=_.ip("ytPlayerStoryboardTitle",(p.ytPlayerStoryboardTitleBigboard=q,p));return _.R("div",{class:q},_.R(_.W,{cond:function(){return!l().isShortsPage},
then:function(){return _.R(e$9,{props:y,activeChapter:function(){return l().activeChapter},
chapterData:t})}}))},"Xe");
e$9=_.aF(function(p){var y=p.props;var l=p.activeChapter;var q=p.chapterData;return _.R(_.a4,null,_.R(_.rT,{each:function(){return Gha(q())},
keyBy:"INDEX"},function(t){return _.R(_.a4,null,_.R(_.W,{cond:function(){return _.G(t(),RHZ)&&xhl(y(),_.G(t(),RHZ))},
then:function(){return _.R(h$i,{timedMarker:function(){return _.G(t(),RHZ)}})}}))}),_.R(_.W,{cond:function(){var t;
return l()&&((t=_.G(l(),oA))==null?void 0:t.title)},
then:function(t){return _.R(_.CF,{text:t,noPreWrap:!0})}}))},"Ye");
h$i=_.aF(function(p){var y=p.timedMarker;return _.R(_.a4,null,_.R("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.R(_.DR,{icon:function(){return y().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.R(_.CF,{text:function(){return y().label},
noPreWrap:!0}))},"Ze");_.CzR=_.aF(function(p){var y=p.progressBarProps;var l=p.playheadData;var q=p.config;p=_.sM("yt-progress-bar");var t=_.sM("div"),E=_.sM("div"),e=_.c(_.nr({width:0,left:0},void 0,"NcXsUb")),C=e.next().value,u=e.next().value,a=function(){E.value&&u(E.value.getBoundingClientRect())},m=function(){C().width<=0&&a();
return C()};
eW("resize",a);var U=new f$(m,function(){},function(){return 0},function(){},function(){},function(){}),b=function(){return y()};
e=_.c(_.nr(!1,void 0,"ZsF6Xc"));var P=e.next().value,Z=e.next().value;e=_.Ff(function(){Z(!0);q().position===2?setTimeout(function(){a()},100):a()});
var K=_.Ff(function(){Z(!1);vq7(U,b)()}),F=_.Ff(function(L8){q().doSeekOnClick&&Lbu(U,b,q)(L8);
return!1}),L=_.Ff(function(L8){DNA(U,b)(L8);
return!1}),T=_.Ff(function(L8){HC1(U,b)(L8);
return!1}),O=_.Ff(function(L8){xN7(U,b,q)(L8);
return!1}),f=_.Ff(function(L8){fhR(U,b,q)(L8);
return!1}),v=_.Ff(function(){XHu(U,b,q)();
return!1}),z=_.Ff(function(){dNw(U,b,q)();
return!1}),sc=_.Ff(function(){OCV(U,b,q)();
return!1}),hR=_.Ff(function(L8){oqA(b)(L8);
return!1});
eW("mousemove",z_7(U,b,q));eW("mouseup",Y81(U,b,q));_.xZ(function(){Ka6(t.value);Z(!1);a();Y81(U,b,q)()});
var Wt={};Wt=_.ip("ytPlayerProgressBarHost",function(){return q().className},(Wt.ytPlayerProgressBarHostReadOnly=function(){return q().disableScrubbing},Wt.ytPlayerProgressBarHostHidden=function(){return q().hideProgressBar&&!P()},Wt.ytPlayerProgressBarHostLowerPlayer=function(){return q().position===0},Wt.ytPlayerProgressBarHostBottomEdge=function(){return q().position===1},Wt.ytPlayerProgressBarHostBottomInset=function(){return q().position===2},Wt.ytPlayerProgressBarHostCustom=function(){return q().position===
3},Wt));
var AR={},Qu=_.ip("ytPlayerProgressBarBackground",(AR.ytPlayerProgressBarBackgroundHide=function(){return q().position===2&&!P()&&!y().isDragging},AR));
AR={};AR=_.ip("ytPlayerProgressBarDragContainer",(AR.ytPlayerProgressBarDragContainerBottomEdge=function(){return q().position===1},AR));
var jj={};jj=_.ip("ytPlayerProgressBarProgressBar",(jj.ytPlayerProgressBarProgressBarInset=function(){return q().position===2},jj.ytPlayerProgressBarProgressBarInsetMinimized=function(){return q().position===2&&!P()&&!y().isDragging},jj));
var x6=function(){return Math.floor($ho(y())*100)};
return _.R("yt-progress-bar",{el:p,class:Wt},_.R(_.W,{cond:function(){return q().position===2},
then:function(){return _.R("div",{class:Qu})}}),_.R("div",{el:t,
"on:click":F,"on:touchstart":L,"on:touchmove":O,"on:mouseenter":e,"on:mousedown":T,"on:mouseleave":K,"on:mousemove":f,"on:mouseup":z,"on:touchend":v,"on:touchcancel":sc,"on:keydown":hR,class:AR,role:"slider","aria-valuenow":x6,"aria-valuetext":function(){return x6()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return y().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.g$("SEEK_SLIDER")},_.R("div",{el:E,class:jj},_.R(rwT,{progressBarProps:y,config:q,highContrast:function(){return!!q().isInlinePlayback}}),_.R(_.W,{cond:function(){return q().chapterData&&P$g(q().chapterData)},
then:function(){return _.R(wHT,{progressState:y,multiMarkersPlayerBarRenderer:function(){return q().chapterData},
progressBarWidth:function(){return C().width}})},
else:function(){return _.R(S8L,{progressBarProps:y,config:q})}}),_.R(Fbd,{progressBarProps:y,
playheadData:l,interpolateDotPosition:function(){return q().position!==2},
hidePlayhead:function(){return q().playheadDotBehavior===1&&!P()}}))),_.R(q69,{progressBarProps:y,
config:function(){return{activeChapter:Fa5(y(),q().chapterData),getProgressBarWidthPx:function(){return m().width},
isShortsPage:!!q().isShortsPage,isInlinePlayer:!!q().isInlinePlayback,useFadeInAnimation:!!q().isInlinePlayback}},
progressBarWidthPx:function(){return C().width},
chapterData:function(){return q().chapterData}}))},"$e");
_.CzR.idomCompat=!0;Object.assign({},_.A8j(),{setState:function(){},
domMeasurements:{},appApi:_.Uhu(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var uq7;
_.R$T=_.aF(function(){var p,y=(p=_.Yz(vO6().playerApi))!=null?p:void 0;p=_.c(_.nr(!1,void 0,"HLFBmb"));var l=p.next().value,q=p.next().value;p=_.c(_.nr(!1,void 0,"lHH9bc"));var t=p.next().value,E=p.next().value;p=_.c(_.nr(!1,void 0,"zsY7yd"));var e=p.next().value,C=p.next().value;p=_.c(_.nr(!1,void 0,"KeHQgc"));var u=p.next().value,a=p.next().value;p=_.c(_.nr(0,void 0,"gLLCj"));var m=p.next().value,U=p.next().value;p=_.c(_.nr(0,void 0,"s3RYkf"));var b=p.next().value,P=p.next().value;p=_.c(_.nr(!1,void 0,
"Dn608e"));var Z=p.next().value,K=p.next().value;p=_.c(_.nr(0,void 0,"AnkH1b"));var F=p.next().value,L=p.next().value;p=_.c(_.nr(0,void 0,"QYNL0b"));var T=p.next().value,O=p.next().value;p=_.c(_.nr("",void 0,"Yzw45d"));var f=p.next().value,v=p.next().value;p=_.c(_.nr(-1,void 0,"iiVI0c"));var z=p.next().value,sc=p.next().value,hR=_.MA(function(){var Wt={controlsVisible:l(),isOverlayHidden:t(),shouldWaitToHideControls:e(),isDragging:u(),isHovering:Z(),videoDuration:F(),playedTime:T(),videoId:f(),draggedTime:b(),
hoveredTime:m(),playerState:z()};return Object.assign({},_.A8j(),Wt,{domMeasurements:{},setState:function(AR){AR.controlsVisible!==void 0&&q(AR.controlsVisible);AR.isOverlayHidden!==void 0&&E(AR.isOverlayHidden);AR.shouldWaitToHideControls!==void 0&&C(AR.shouldWaitToHideControls);AR.isDragging!==void 0&&a(AR.isDragging);AR.isHovering!==void 0&&K(AR.isHovering);AR.draggedTime!==void 0&&P(AR.draggedTime);AR.hoveredTime!==void 0&&U(AR.hoveredTime);AR.videoDuration!==void 0&&L(AR.videoDuration);AR.playedTime!==
void 0&&O(AR.playedTime);AR.videoId!==void 0&&v(AR.videoId);AR.playerState!==void 0&&sc(AR.playerState)},
appApi:_.Uhu(),playerApi:y})},void 0,"ZW7y9");
_.Hu(function(){y==null||y.addEventListener("onVideoProgress",gOg(hR));y==null||y.addEventListener("onVideoDataChange",Vpg(hR));y==null||y.addEventListener("onStateChange",ZLm(hR))});
_.TP(function(){if(y==null?0:y.isReady())y==null||y.removeEventListener("onVideoProgress",gOg(hR)),y==null||y.removeEventListener("onVideoDataChange",Vpg(hR)),y==null||y.removeEventListener("onStateChange",ZLm(hR))});
return _.R("desktop-shorts-player-controls",null,_.R(uq7,{playerControlsProps:hR}))},"af");
uq7=_.aF(function(p){var y=p.playerControlsProps;return _.R("div",{class:"desktopShortsPlayerControlsWizHost"},_.R(_.CzR,{progressBarProps:y,config:function(){return{isShortsPage:!0,hideProgressBar:y().videoDuration<30&&y().playerState!==2&&!y().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"bf");_.WJi=_.aF(function(p){function y(Wt){Wt!==0||U()?Wt>50&&(U()||!P())?(b(!1),Z(!0)):Wt<=50&&(U()||P())&&(b(!1),Z(!1)):b(!0)}
function l(Wt,AR){var Qu;return _.h(function(jj){if(jj.nextAddress==1)return jj.yield(_.VS(),2);Qu=jj.yieldResult;AR&&Qu?(Qu.unMute(!0),Wt&&(dht(Wt,Qu.getVolume()),F(Qu.getVolume()))):Qu&&(Qu.mute(!0),Wt&&dht(Wt,0));_.rR(jj)})}
function q(Wt){var AR,Qu;return _.h(function(jj){if(jj.nextAddress==1)return jj.yield(_.VS(),2);AR=jj.yieldResult;Qu=50;AR&&(Qu=AR.getVolume(),AR.isMuted()?dht(Wt,0):dht(Wt,Qu));F(Qu);_.rR(jj)})}
var t=p.orientation;p=_.sM("desktop-shorts-volume-controls");var E=_.sM("button"),e=_.tK("input"),C=_.c(_.nr(!1,void 0,"F6vt0d")),u=C.next().value,a=C.next().value,m=_.c(_.nr(!1,void 0,"S5PCqb"));C=m.next().value;m=m.next().value;var U=C,b=m;m=_.c(_.nr(!0,void 0,"Tgy4e"));C=m.next().value;m=m.next().value;var P=C,Z=m;C=_.c(_.nr(50,void 0,"Dq3efd"));var K=C.next().value,F=C.next().value;C=_.MA(function(){var Wt=U();return _.n("web_shorts_keyboard_enable_mute_shortcut")?Wt?_.g$("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.g$("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):Wt?_.g$("UNMUTE_VOLUME",void 0,"Unmute"):_.g$("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
m=_.MA(function(){var Wt=U(),AR=P();return{sources:[{clientResource:{imageName:Wt?_.n("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":AR?_.n("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.n("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var L=_.MA(function(){var Wt=K();return U()?Wt+"% volume muted":Wt+"% volume"},void 0,"kvkmyc"),T=_.MA(function(){return t()==="vertical_down"},void 0,"zaNsZ");
_.xZ(function(){function Wt(){a(!0)}
function AR(){a(!1)}
e&&e.value&&(e.value.addEventListener("focus",Wt),e.value.addEventListener("focusout",AR),q(e.value).then(function(){y(Number(OL8(e.value)))}));
E&&E.value&&(E.value.addEventListener("focus",Wt),E.value.addEventListener("focusout",AR));_.TP(function(){var Qu;e==null||(Qu=e.value)==null||Qu.removeEventListener("focus",Wt);var jj;e==null||(jj=e.value)==null||jj.removeEventListener("focusout",AR);var x6;E==null||(x6=E.value)==null||x6.removeEventListener("focus",Wt);var L8;E==null||(L8=E.value)==null||L8.removeEventListener("focusout",AR)})});
var O=_.Ff(function(){if(e&&e.value){var Wt=Number(OL8(e.value));XhL(Wt);F(Wt);e.value.style.setProperty("--gradient-percent",Wt+"%");y(Wt)}return!1}),f=_.Ff(function(){a(!0)}),v=_.Ff(function(){e&&e.value&&(l(e.value,U()),b(!U()));
return!1}),z={},sc={},hR={};
return _.R("desktop-shorts-volume-controls",{"on:pointerleave":_.Ff(function(){a(!1)}),
class:_.ip("ytdDesktopShortsVolumeControlsHost",(z.ytdDesktopShortsVolumeControlsHostVertical=T,z.ytdDesktopShortsVolumeControlsHostExpanded=u,z)),el:p},_.R(_.W,{cond:function(){return!T()},
then:function(){var Wt={};return _.R("div",{class:_.ip("ytdDesktopShortsVolumeControlsBackgroundScrim",(Wt.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=u,Wt))})}}),_.R("div",{class:_.ip((sc.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=T,sc))},_.R("button",{"aria-label":C,
title:C,el:E,"on:click":v,"on:pointerenter":f,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},m?_.R(_.W$,{data:m,alt:C,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.R("div",{class:_.ip("ytdDesktopShortsVolumeControlsSliderContainer",(hR.ytdDesktopShortsVolumeControlsSliderContainerExpanded=u,hR.ytdDesktopShortsVolumeControlsSliderContainerVertical=T,hR.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=T,hR.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return u()&&T()},hR))},_.R("input",{"aria-label":_.g$("VOLUME"),
title:_.g$("VOLUME"),el:e,"on:input":O,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":K,"aria-valuetext":L,"aria-valuemin":0,"aria-valuemax":100})))},"cf");_.a77=_.aF(function(p){var y=p.data;return _.R("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.R(_.sw,{command:function(){return y().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.R(_.W,{cond:function(){return y().iconName},
then:function(l){return _.R(_.DR,{icon:l})}}),_.R("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return y().text}),_.R(_.W,{cond:function(){return y().showEndChevron},
then:function(){return _.R(_.DR,{icon:"CHEVRON_RIGHT"})}})))},"df");var mQi=_.aF(function(p){var y=p.data;var l=p.overlayDensity;p={};return _.R("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.R(_.di,{data:function(){return y().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(q){var t=q.data;
return _.R(_.X9,{data:function(){return(l==null?void 0:l())===1?Object.assign({},t(),{avatar:{avatarViewModel:Object.assign({},_.G(t().avatar,_.lI),{avatarImageSize:"AVATAR_SIZE_48"})}}):t()}})}}),_.R(_.di,{data:function(){return y().avatarStackViewModel}},{avatarStackViewModel:function(q){return _.R(_.d7,{data:q.data})}}),_.R(_.CF,{className:_.ip("ytReelChannelBarViewModelChannelName",(p.ytReelChannelBarViewModelChannelNameLarge=function(){return(l==null?void 0:l())===1},p)),
text:function(){return y().channelName},
linkInheritColor:!0,userInput:!0}),_.R("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.R(_.di,{data:function(){return y().subscribeButtonViewModel}},{subscribeButtonViewModel:function(q){var t=q.data;
return _.R(_.f9,{data:function(){return(l==null?void 0:l())===1?Object.assign({},t(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},t().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):t()},
isOverlay:!1})},
buttonViewModel:_.wZ})),_.R("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.R(_.di,{data:function(){var q,t;return(t=_.G((q=y())==null?void 0:q.sponsorButtonViewModel,VVi))==null?void 0:t.sponsorButton}},{buttonViewModel:function(q){return _.R(_.wZ,{data:q.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ef");var UQL=_.aF(function(p){var y=function(){var q;return(p==null?void 0:(q=p.overlayDensity)==null?void 0:q.call(p))===1?22:16},l={};
return _.R("yt-reel-multi-format-link-view-model",{class:_.ip("ytReelMultiFormatLinkViewModelHost",(l.ytReelMultiFormatLinkViewModelHostTall=!0,l.ytReelMultiFormatLinkViewModelHostLarge=function(){var q;return((q=p.overlayDensity)==null?void 0:q.call(p))===1},l))},_.R(_.sw,{ariaLabel:function(){return p.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return p.data().command}},_.R("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.R(_.W,{cond:function(){return p.data().icon},
then:function(q){return _.R(_.W$,{data:q,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:y})}}),_.R(_.CF,{text:function(){return p.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"ff");
UQL.idomCompat=!0;var $Q9=_.aF(function(p){var y=p.data;var l=p.overlayDensity;var q=_.sM("yt-shorts-suggested-action-view-model");p=_.c(_.nr(!1,void 0,"xDqzhe"));var t=p.next().value,E=p.next().value;p=_.c(_.nr(!1,void 0,"LI9CFd"));var e=p.next().value,C=p.next().value,u=function(){return y().isMultiLineSa},a=_.So(nb_,function(){var f,v;
return(v=(f=y().toggleableContent)==null?void 0:f.entityKey)!=null?v:""}),m=function(){var f,v,z;
return(z=y().toggleableContent)!=null&&z.entityKey?(v=(f=a())==null?void 0:f.value)!=null?v:!1:!1},U=function(){var f,v,z,sc,hR,Wt,AR,Qu,jj,x6,L8;
return y().toggleableContent?m()?(f=y().toggleableContent)==null?void 0:f.toggledData:(v=y().toggleableContent)==null?void 0:v.untoggledData:{primaryText:(Qu=(z=y().defaultContent)==null?void 0:z.primaryText)!=null?Qu:y().text,secondaryText:(sc=y().defaultContent)==null?void 0:sc.secondaryText,onTapCommand:(jj=(hR=y().defaultContent)==null?void 0:hR.onTapCommand)!=null?jj:y().onTapCommand,icon:(x6=(Wt=y().defaultContent)==null?void 0:Wt.icon)!=null?x6:y().icon,image:(L8=(AR=y().defaultContent)==null?
void 0:AR.image)!=null?L8:y().image}},b=function(){return u()?y().trailingTapTarget:void 0},P=function(f,v){return function(){return t()?v:f}},Z=function(){return{leadingSection:P("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(l==null?void 0:l())===1?P("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):P("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:P("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:P("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
p={};p=_.ip((p.ytShortsSuggestedActionViewModelStaticHost=function(){return!u()},p.ytShortsSuggestedActionViewModelDynamicHost=u,p.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return u()&&e()},p.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return u()&&!e()},p));
_.xZ(function(){if(u()){var f=0,v;if((v=y().animationParams)==null?0:v.shouldExpand){var z,sc;f=((sc=(z=y().animationParams)==null?void 0:z.expansionDelaySecs)!=null?sc:0)*1E3}var hR,Wt=((hR=y().animationParams)==null?0:hR.shouldExpand)?setTimeout(function(){E(!0)},f):void 0,AR,Qu;
f=((AR=y().animationParams)==null?0:AR.visibilityDelaySecs)?((Qu=y().animationParams)==null?NaN:Qu.visibilityDelaySecs)*1E3:0;var jj=setTimeout(function(){C(!0)},f);
_.TP(function(){Wt&&clearTimeout(Wt);clearTimeout(jj)})}});
var K=function(f){_.tb(f,Object.assign({},{form:{element:q.value}}))},F=_.Ff(function(){var f,v=(f=U())==null?void 0:f.onTapCommand;
v&&K(v)}),L=_.Ff(function(){var f,v;
if(f=(v=b())==null?void 0:v.onTapCommand)return K(f),!1}),T=_.NW({"vertical-align":"bottom",
"border-radius":function(){var f;return u()?((f=y().defaultContent)==null?0:f.isCircleImage)?"50%":"4px":"0px"},
width:function(){var f,v,z;return u()&&((f=y().defaultContent)==null?0:f.imageSize)?((z=(v=y().defaultContent)==null?void 0:v.imageSize)!=null?z:24)+"px":null},
height:function(){var f,v,z;return u()&&((f=y().defaultContent)==null?0:f.imageSize)?((z=(v=y().defaultContent)==null?void 0:v.imageSize)!=null?z:24)+"px":null}}),O={};
return _.R("yt-shorts-suggested-action-view-model",{class:p,el:q},_.R("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.R("button",{class:_.ip(function(){return u()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var f;
return(f=y().useFullRoundedBorder)!=null&&f?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!b()&&u()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":u()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var f;
return(f=y().disableFixedHeight)!=null&&f?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(O.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(l==null?void 0:l())===1},O)),
"on:click":F},_.R(_.xS,{model:{color:4}}),_.R("div",{class:_.ip(function(){return u()?Z().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.R(_.W,{cond:function(){var f;
return(f=U())==null?void 0:f.image},
then:function(f){return _.R(_.W$,{data:f,alt:"",className:function(){return u()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:T})}}),_.R(_.W,{cond:function(){var f,v;
return(f=U())==null?void 0:(v=f.icon)==null?void 0:v.iconType},
then:function(f){return _.R(_.DR,{icon:f,active:m,className:function(){return u()?t()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.R("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.R(_.W,{cond:function(){var f;
return(f=U())==null?void 0:f.primaryText},
then:function(f){return _.R("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.R(_.CF,{text:f}))}}),_.R(_.W,{cond:function(){var f;
return(f=U())==null?void 0:f.secondaryText},
then:function(f){return _.R("div",{class:function(){return Z().secondaryText()}},_.R(_.CF,{text:f}))}}))),_.R(_.W,{cond:b,
then:function(f){return _.R("div",{class:function(){return Z().trailingSection()},
"aria-label":function(){var v;return(v=f().a11yLabel)!=null?v:""},
"on:click":L,role:"button",tabindex:0},_.R(_.xS,{model:{color:4}}),_.R(_.DR,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"gf");var jl7=_.aF(function(p){var y=p.data;var l=p.overlayDensity;var q=_.sM("yt-shorts-video-title-view-model");p=_.Ff(function(e){if(_.Yo(_.z4(e),q.value,["A".toString()]))return!1;(e=y().truncatedTextOnTapCommand)&&_.tb(e);return!1});
var t={},E={};return _.R("yt-shorts-video-title-view-model",{el:q,class:_.ip("ytShortsVideoTitleViewModelHost",(t.ytShortsVideoTitleViewModelHostClickable=function(){return!!y().truncatedTextOnTapCommand},t)),
"on:click":p},_.R("h2",{class:_.ip("ytShortsVideoTitleViewModelShortsVideoTitle",(E.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(l==null?void 0:l())===1},E))},_.R(_.CF,{text:function(){return y().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"hf");_.b09=_.aF(function(p){var y=p.data;var l=p.overlayDensity;return _.R("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.R(_.di,{data:function(){return y().metadataItems}},{badgeViewModel:function(q){return _.R("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.R(_.jI,{data:q.data}))},
playerDisclosureViewModel:function(q){return _.R("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.R(_.a77,{data:q.data}))},
shortsSuggestedActionViewModel:function(q){return _.R("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.R($Q9,{data:q.data,overlayDensity:l}))},
reelChannelBarViewModel:function(q){return _.R("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.R(mQi,{data:q.data,overlayDensity:l}))},
reelMultiFormatLinkViewModel:function(q){return _.R("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.R(UQL,{data:q.data,overlayDensity:l}))},
shortsVideoTitleViewModel:function(q){return _.R("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.R(jl7,{data:q.data,overlayDensity:l}))},
reelSoundMetadataViewModel:function(q){return _.R("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.R(_.GdR,{data:q.data,overlayDensity:l}))},
toggleButtonViewModel:function(q){return _.R("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.R(_.fo,{data:q.data}))}}))},"jf");var nId=_.aF(function(p){var y=_.RF(p,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),l=y.size,q=y.onTap,t=y.disabled,E=y.tooltipText;return _.R("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.R(_.uI,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:l(),disabled:t(),tooltipText:E(),onTap:q}},
iconName:p.iconType}))},"kf"),Gsd=_.aF(function(p){function y(m){m.stopPropagation();
m.code==="ArrowUp"?(m.preventDefault(),YSl(C.value)):m.code==="ArrowDown"?(m.preventDefault(),I0j(C.value)):m.code==="KeyM"?oO_():(m.code==="KeyK"||m.code==="Space")&&zg6(u())}
var l=_.RF(p,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});p=l.previousButtonDisabled;var q=l.nextButtonDisabled,t=l.data,E=l.playabilityStatus,e=l.previewThumbnail,C=_.sM("ytd-shorts-miniplayer-overlay"),u=_.yS(_.QBm),a;_.Hu(function(){(a=_.vJ(C.value))&&a.addEventListener("keydown",y)});
_.TP(function(){var m;(m=a)==null||m.removeEventListener("keydown",y)});
l=function(){var m,U,b;return(m=t())==null?void 0:(U=m.reelPlayerOverlayRenderer)==null?void 0:(b=U.likeButton)==null?void 0:b.likeButtonRenderer};
return _.R("ytd-shorts-miniplayer-overlay",{el:C,class:"ytdShortsMiniplayerOverlayHost"},_.R("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.NW({"background-image":function(){var m=e();return m?'url("'+_.GT(m.thumbnails)+'")':""}})}),_.R("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.R("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.R(nId,{iconType:function(){var m=u();
return m===2||m===-1||m===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){zg6(u())},
tooltipText:function(){var m=u();return m===1||m===3?_.g$("PLAYER_LABEL_PAUSE"):_.g$("PLAYER_LABEL_PLAY")}}),_.R(_.WJi,{orientation:"horizontal_right"})),_.R("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.R(nId,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:p,onTap:function(){YSl(C.value)},
tooltipText:_.g$("PREVIOUS_VIDEO_LABEL")}),_.R(nId,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:q,onTap:function(){I0j(C.value)},
tooltipText:_.g$("NEXT_VIDEO_LABEL")}),_.n("web_shorts_pip_like_button")?_.R("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.R(kzZ,{buttonTooltipPosition:"left",data:l,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.R("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.R(_.W,{cond:function(){var m,U;return _.G((m=t())==null?void 0:(U=m.reelPlayerOverlayRenderer)==null?void 0:U.metapanel,
_.Pcr)},
then:function(m){return _.R("div",{class:_.ip("ytdShortsMiniplayerOverlayInteractive")},_.R(_.b09,{data:m}))}})),_.R("div",{class:_.ip("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var m;return!((m=t())==null||!m.adsOverlay)||E()&&!vTt(E())}},_.R("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.R(_.R$T,null)))),_.R(_.W,{cond:function(){var m=t(),U,b;
m=_.G(m==null?void 0:(U=m.adsOverlay)==null?void 0:(b=U.fulfillmentContent)==null?void 0:b.fulfilledLayout,BHi);return _.G(m==null?void 0:m.renderingContent,OjZ)},
then:function(m){return _.R("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.R(wDO,{data:m}))}}))},"lf");var pla=_.aF(function(){var p=_.c(_.nr(new _.wV(NaN,NaN),void 0,"HSMFk")),y=p.next().value,l=p.next().value;p=_.c(_.nr(!1,void 0,"uaAxwf"));var q=p.next().value,t=p.next().value,E=_.c(_.nr(!1,void 0,"nVSwef"));p=E.next().value;var e=E.next().value,C=_.WC().resolve(_.IA).miniplayerPropSignalMap[0],u=C.data,a=C.shortsData,m=C.nextButtonDisabled,U=C.shortsPreviewThumbnail,b=C.previousButtonDisabled,P=C.externalPlaylistData;E=C.toastData;var Z=C.playabilityStatus,K=C.isDisabled,F=C.playerVe,L=C.closeVe;
C=_.yS(_.Vn);_.qt("yt-pip-window-resized",function(v){l(v)});
_.qt("yt-activate-pip-miniplayer",function(){return _.h(function(v){e(!0);_.rR(v)})});
var T=function(){var v;return!((v=P())==null||!v.contents)&&q()},O=function(){var v=y(),z=!!u(),sc=T();
v=v.clone();z&&(v.height-=76);sc&&(v.height-=285);return v},f=function(){t(!q())};
_.NA(function(){var v=F(),z=_.B2(11),sc=_.xc(11);z&&sc&&v&&(_.pW(z,sc,v),sc=L())&&(_.yj(z,v,[sc]),_.qs(z,[sc]))},"HPkp0c");
return _.R("ytd-pip-container",{class:"ytdPipContainerHost"},_.R(_.W,{cond:p,then:function(){return _.R(_.gqR,{isDisabled:K,playabilityStatus:Z,size:O})}}),_.R(_.W,{cond:u,
then:function(){return _.R(_.M_u,{data:u,expanded:q,onExpandClick:f,playlistData:P})}}),_.R(_.W,{cond:T,
then:function(){return _.R("div",{class:"ytdPipContainerPlaylistPanel"},_.R(_.Fyi,{data:P,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.R(_.W,{cond:C,
then:function(){return _.R(Gsd,{data:a,nextButtonDisabled:m,previousButtonDisabled:b,playabilityStatus:Z,previewThumbnail:U})}}),_.R("div",{class:"ytdPipContainerToast"},_.R(_.Q9d,{toastData:E})))},"mf");var X1=function(p,y){var l=this;this.pipController=p;this.JSC$18534_clientRoot=y;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=ulg();this.watchPipEnabled=_.n("web_watch_pip");this.shortsPipEnabled=_.n("web_shorts_pip");this.JSC$18534_watchWhileEnabled=_.n("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;_.Lw(_.ei(),_.Aim,function(q){l.isSingleOptionSurveyActive=q});
this.JSC$18534_onPlayerPlayVideo=this.JSC$18534_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);_.y2(_.pt.getInstance(),this.miniplayerServiceActionMap,this.JSC$18534_clientRoot);p.pictureInPictureSupported()&&_.TX("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},JXP,i0d,gI1,rQd,S6d,R1U;
X1.prototype.handleMediaSessionPipActivation=function(){var p=this,y;return _.h(function(l){_.Sy().mediaSessionPipActivation=!0;y=_.WC().resolve(_.mm);return y.isOnWatch()&&p.watchPipEnabled?(_.Sy().watchPipActivation=!0,_.Pzi(p,y.data),l.jumpTo(0)):y.isOnShorts()&&p.shortsPipEnabled?(_.Sy().shortsPipActivation=!0,_.AQm(p),l.jumpTo(0)):p.isMiniplayerActive()&&p.watchPipEnabled&&!p.watchWhileMode?l.yield(Z0u(p),0):l.jumpTo(0)})};
var Z0u=function(p){var y,l,q,t;return _.h(function(E){if(E.nextAddress==1)return y=!p.miniplayerToPipMode,l=p.playerElement,q=p.miniplayerData,t=p.watchResponse,E.yield(p.deactivate(),2);if(E.nextAddress!=3)return y?(_.Sy().mediaSessionPipActivation=!0,_.Sy().watchPipActivation=!0):_.Sy().miniplayerButtonActivation=!0,E.yield(p.activate(l,q,t),3);p.miniplayerToPipMode=y;_.rR(E)})};
X1.prototype.onDownloadedVideoDeleted=function(p){var y,l=_.G((y=this.miniplayerData)==null?void 0:y.watchEndpoint,_.Eb),q,t;l&&((q=this.watchResponse)==null?void 0:(t=q.playerResponse)==null?void 0:t.offlineState)!==void 0&&(y=l.videoId)&&p&&y===p&&this.close()};
X1.prototype.onShowMiniplayerCommand=function(p){var y=this,l,q,t,E,e,C,u,a,m,U,b,P,Z;return _.h(function(K){switch(K.nextAddress){case 1:return l=_.G(p,RvU),t=(q=l)==null?void 0:q.miniplayerCommand,E=_.G(t,_.Eb),t&&E&&!y.active?K.yield(_.B4.getInstance(),2):K.return();case 2:return e=K.yieldResult,K.yield((C=e)==null?void 0:C.get("yt-miniplayer-shown-video-id"),3);case 3:u=K.yieldResult;a=E.videoId;if(!a||u===a)return K.return();m=_.WC().resolve(_.mm);if(m.isOnWatch())return _.vs(Error("Fj")),K.return();
U={channelItem:{externalId:btoa(a)}};y.readyToResumeVe=_.fY(121253,void 0,void 0,U);_.Sy().showMiniplayerCommandActivation=!0;return K.yield(_.W7B(y,t,!0),4);case 4:return y.active?(_.d2(y,{readyToResumeVe:y.readyToResumeVe,continueWatching:!0,premiumBranding:!((b=l)==null||!b.showPremiumBranding)}),_.n("ytd_miniplayer_to_wiz")&&_.d2(y,{isReadyToResume:!0}),y.isReadyToResume=!0):_.d2(y,{continueWatching:!0,premiumBranding:!((P=l)==null||!P.showPremiumBranding)}),K.yield((Z=e)==null?void 0:Z.set("yt-miniplayer-shown-video-id",
E.videoId),5);case 5:y.readyToResumeVe=void 0,_.rR(K)}})};
X1.prototype.init=function(p){this.miniplayerEl?_.vs(new _.SM("MiniplayerService already initialized.")):this.miniplayerEl=p};
X1.prototype.isInitialized=function(){var p=!!this.miniplayerEl;p||_.vs(new _.SM("MiniplayerService used before initialized."));return p};
_.Pzi=function(p,y){if(p.isInitialized()){var l=_.a0c(y.response,y.playerResponse),q=_.WC().resolve(_.mm).getPlayerFromWatch();_.Sy().currentEndpoint=l.watchEndpoint||null;p.activate(q,l,y)}};
_.AQm=function(p){if(p.isInitialized()){var y=_.WC().resolve(_.mm).getPlayerFromShorts();p.activate(y)}};
JXP=function(p,y){var l;(l=!p.isInitialized())||(l=_.WC().resolve(_.mm).isOnWatch()&&p.watchPipMode,l=!(p.isMiniplayerActive()&&(_.Sy().userActivation||_.Sy().lockupActivation||l)));if(l)return!1;MOL(p,y)?_.BO(p):R1U(p,y);return p.watchPipMode?!_.WC().resolve(_.mm).isOnWatch():!0};
X1.prototype.isMiniplayerActive=function(){return this.active};
var MOL=function(p,y){var l;y=(l=_.G(y,_.Eb))==null?void 0:l.videoId;var q,t;p=(t=_.G((q=p.miniplayerData)==null?void 0:q.watchEndpoint,_.Eb))==null?void 0:t.videoId;return y!=null&&y===p};
X1.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Ub(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.$w(this.miniplayerEl,"yt-navigate-home-action"))};
_.W7B=function(p,y,l,q){l=l===void 0?!1:l;var t,E,e;return _.h(function(C){switch(C.nextAddress){case 1:if(p.active){C.jumpTo(2);break}t=_.WC().resolve(_.mm);if(e=(E=p.playerElement)!=null?E:t.getPlayerFromWatch()){C.jumpTo(3);break}return C.yield(_.WC().resolve(_.PN),4);case 4:e=t.getPlayerFromWatch();case 3:if(!e){_.vs(Error("Hj"));C.jumpTo(2);break}return C.yield(p.activate(e,q),2);case 2:return p.active?C.yield(R1U(p,y,l),0):C.return()}})};
X1.prototype.activate=function(p,y,l){var q=this,t,E,e,C,u,a,m,U,b;return _.h(function(P){switch(P.nextAddress){case 1:if(!q.isInitialized())return P.return();if(!p)return _.vs(Error("Hj")),P.return();if(_.GOM()||q.isMiniplayerActive())var Z=!0;else Z=_.Sy().watchPipActivation||_.Sy().watchWhileActivation,_.WC().resolve(_.mm).isOnWatch()&&!Z?(_.vs(new _.SM("miniplayer activated on watch page")),Z=!0):Z=_.Sy().watchWhileActivation?q.userDeactivatedWatchWhile||!!document.pictureInPictureElement||MDu():
!1;if(Z)return n$r(),P.return();t=_.Sy().mediaSessionPipActivation;E=_.Sy().shortsPipActivation;e=_.Sy().watchPipActivation;u=(C=_.Sy().watchWhileActivation)||e;a=e||E;if(!q.pictureInPictureEnabled()||!a){P.jumpTo(2);break}return P.yield(VO6(q,t),3);case 3:if(!P.yieldResult)return _.vs(Error("Gj")),n$r(),P.return();case 2:return q.setActive(!0),q.watchResponse=l,q.playerElement=p,q.updateMiniplayerData(y),P.yield(gI1(q,p),4);case 4:if(!q.active)return _.vs(new _.SM("miniplayer deactivated during activation")),
q.removePlayerListeners(),P.return();Z=_.WC().resolve(_.yh);Z.addEventListener("yt-navigate",_.MH(q,q.onPlaylistNavigate));Z.addEventListener("yt-playlist-data-updated",_.MH(q,q.JSC$18534_onPlaylistDataUpdated));q.JSC$18534_onPlaylistDataUpdated();n$r();q.JSC$18534_watchWhileEnabled&&_.Qlu(q,C);q.pictureInPictureEnabled()&&q.shortsPipEnabled&&(q.shortsPipMode=E,_.ei().dispatch(JIM(q.shortsPipMode)));q.pictureInPictureEnabled()&&q.watchPipEnabled&&(q.watchPipMode=e,_.gTg(q.handleMediaSessionPipActivation));
q.player&&(m=q.player.getPlayerState(),U=m===1,_.ei().dispatch(aXv(m)),_.jN(q.miniplayerEl,"yt-miniplayer-play-state-changed",[U]),_.Sy().isVideoPlaying=U);_.jN(q.miniplayerEl,"yt-miniplayer-endpoint-changed");KJ9(q);_.wJ9(q);return q.shortsPipMode||q.watchPipMode?P.yield(_.bl(q.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.n("ytd_miniplayer_to_wiz")?P.yield(_.bl(q.miniplayerEl,"yt-activate-miniplayer",[u]),6):P.yield(_.bl(q.miniplayerEl,"yt-activate-miniplayer-action",[p,u]),6);case 6:if(q.watchResponse&&
!_.n("miniplayer_copy_screen_on_activation_killswitch")){Z=q.getScreenLayer();var K=_.B2(0),F=J6m(0);K&&F&&(_.v2(K,F,Z),Z===0&&txu(void 0,0))}i0d(q);rQd(q,!0);(b=q.getPlayerElement())==null||b.focusOnPlayer();_.rR(P)}})};
X1.prototype.updateMiniplayerData=function(p){this.miniplayerData=p;_.d2(this,{data:p})};
_.wJ9=function(p){var y,l,q=((y=p.miniplayerData)==null?void 0:(l=y.miniplayerRenderer)==null?void 0:l.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";y=p.watchWhileMode||p.watchPipMode?q&&!_.WC().resolve(_.mm).isOnWatch():q;_.d2(p,{isDisabled:y});var t,E;l=_.G((t=p.miniplayerData)==null?void 0:(E=t.miniplayerRenderer)==null?void 0:E.minimizedEndpoint,_.xB);y&&l&&_.WC().resolve(_.Tu).openSheet({openPopupActionCommand:{openPopupAction:l}},p.miniplayerEl)};
i0d=function(p){if(p.watchResponse&&!S6d(p)){var y,l=(y=p.watchResponse.playerResponse)==null?void 0:y.trackingParams;l&&(_.d2(p,{expandVe:_.fY(35989),closeVe:_.fY(34699),readyToResumeCloseVe:_.fY(131070),repositionVe:_.fY(226204),resizeVe:_.fY(226205)}),_.d2(p,{playerVe:_.Tp(l)}))}};
gI1=function(p,y){return _.h(function(l){if(l.nextAddress==1)return y.preparePlayer(),l.yield(y.getPlayerPromise(),2);p.player=l.yieldResult;p.player&&(p.player.addEventListener("onPlayVideo",p.JSC$18534_onPlayerPlayVideo),p.player.addEventListener("onCloseMiniplayer",p.onPlayerCloseMiniplayer),p.player.addEventListener("onExpandMiniplayer",p.onPlayerExpandMiniplayer),p.player.addEventListener("onStateChange",p.onPlayerStateChange));_.rR(l)})};
_.J=X1.prototype;_.J.JSC$18534_onPlayerPlayVideo=function(p){var y=p.sessionData&&"autonav"in p.sessionData,l;p.sessionData&&p.sessionData.itct&&(l=p.sessionData.itct);var q=p.watchEndpoint;y=q&&y?_.D9c(q,l):_.WV(p.videoId,p.listId||void 0,l);p.sessionData&&_.hO(_.G(y.commandMetadata,_.ul).url,p.sessionData);R1U(this,y)};
_.J.onPlayerExpandMiniplayer=function(){_.BO(this)};
_.J.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.J.onPlayerStateChange=function(){if(this.player){var p=this.player.getPlayerState(),y=p===1;_.ei().dispatch(aXv(p));_.ei().dispatch(_.$wQ(p));_.jN(this.miniplayerEl,"yt-miniplayer-play-state-changed",[y]);_.Sy().isVideoPlaying=y;if(p===0){y=!_.md.getInstance().isAutoplaySetExplicitly();var l,q,t,E,e,C,u=(l=this.watchResponse.response)==null?void 0:(q=l.contents)==null?void 0:(t=q.twoColumnWatchNextResults)==null?void 0:(E=t.autoplay)==null?void 0:(e=E.autoplay)==null?void 0:(C=e.autoplayExplicitChoiceDialogRenderer)==
null?void 0:C.confirmDialogRenderer;y&&u&&this.player.setAutonavState(1)}p===0&&this.watchWhileMode&&this.deactivate()}};
_.J.onPlaylistNavigate=function(p,y){var l=this,q,t,E,e,C,u,a;return _.h(function(m){if(m.nextAddress==1){if(!_.G(y.endpoint,_.Eb))return m.return();_.Sy().currentEndpoint=y.endpoint;_.jN(l.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.WC().resolve(_.mm).isOnWatch()&&(l.watchWhileMode||l.watchPipMode))return m.return();p.stopPropagation();(E=(t=_.G((q=y.endpoint)==null?void 0:q.commandMetadata,_.ul))==null?void 0:t.url)&&y.tempData&&!_.Ts.isEmpty(y.tempData)&&_.hO(E,y.tempData);e={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};C=new bZ$(function(){return l.getPlayerElement()},e,{layer:l.getScreenLayer()});
u=function(U){C.processChunk({endpoint:y.endpoint,data:U})};
FJu(l);l.miniplayerFetchRequest=LJV(l,y.endpoint,u);_.Ve(m,2);return m.yield(l.miniplayerFetchRequest,4)}if(m.nextAddress!=2)return a=m.yieldResult,ksL(l,a),_.pK(m,0);_.i6(m);_.rR(m)})};
_.J.JSC$18534_onPlaylistDataUpdated=function(){var p=_.WC().resolve(_.yh).getPlaylistData();this.hasPlaylistData=!!p;_.d2(this,{externalPlaylistData:p||{}})};
_.J.close=function(p){if(this.isInitialized())if(p){if(!((this.watchWhileMode||this.watchPipMode)&&_.WC().resolve(_.mm).isOnWatch()||this.shortsPipMode)){var y;(y=this.getPlayerElement())==null||y.stop()}this.deactivate()}else _.EX().closeMiniplayer(this.miniplayerEl)};
_.J.deactivate=function(p){var y=this,l,q,t,E;return _.h(function(e){if(e.nextAddress==1){if(!y.isInitialized()||!y.active)return e.return();y.setActive(!1);FJu(y);(l=!!p&&MOL(y,p))&&y.isSingleOptionSurveyActive&&_.$w(y.miniplayerEl,"yt-show-watch-page-survey",[y.isSingleOptionSurveyActive]);return e.yield(NVA(y),2)}if(e.nextAddress!=3){rQd(y,!1);y.isReadyToResume=!1;y.watchResponse=void 0;y.updateMiniplayerData(void 0);y.shortsPipMode&&(y.shortsPipMode=!1,_.ei().dispatch(JIM(y.shortsPipMode)),IVu(y.pipController),
(q=y.player)==null||q.setInternalSize(NaN,NaN));y.watchPipMode&&(y.watchPipMode=!1,IVu(y.pipController));(t=y.watchWhileMode)&&_.Qlu(y,!1);y.removePlayerListeners();var C=_.WC().resolve(_.yh);C.removeEventListener("yt-navigate",_.MH(y,y.onPlaylistNavigate));C.removeEventListener("yt-playlist-data-updated",_.MH(y,y.JSC$18534_onPlaylistDataUpdated));_.Sy().currentEndpoint=null;_.jN(y.miniplayerEl,"yt-miniplayer-endpoint-changed");y.playerElement=null;n$r();return y.shortsPipMode||y.watchPipMode?e.jumpTo(3):
e.yield(_.bl(y.miniplayerEl,_.n("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[l,t]),3)}(E=y.player)==null||E.setInternalSize(NaN,NaN);y.player=null;_.rR(e)})};
var NVA=function(p){var y;return _.h(function(l){y=_.WC().resolve(_.mm);return p.shortsPipMode?l.yield(y.movePlayerToShorts(p.playerElement),0):l.yield(y.movePlayerToWatch(p.playerElement),0)})};
X1.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18534_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
X1.prototype.setActive=function(p){this.active=p;this.isSingleOptionSurveyActive?_.$w(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.$w(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.ei().dispatch(_.$y({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.Qlu=function(p,y){p.watchWhileMode=y;_.d2(p,{watchWhile:y})};
rQd=function(p,y){if(!S6d(p))if(p.shortsPipMode||p.watchPipMode){var l;(l=p.player)==null||l.setDocumentPictureInPicture(y)}else{var q;(q=p.player)==null||q.setMinimized(y)}};
S6d=function(p){return p.watchWhileMode&&_.n("kevlar_watch_while_counterfactual")};
_.BO=function(p){var y;return _.h(function(l){switch(l.nextAddress){case 1:if(!p.isInitialized())return l.return();_.Ve(l,2);return l.yield(p.miniplayerFetchRequest,4);case 4:_.pK(l,3);break;case 2:_.i6(l);case 3:p.watchResponse&&p.miniplayerData&&p.miniplayerData.watchEndpoint?(y={url:p.watchResponse.url,endpoint:p.miniplayerData.watchEndpoint,data:p.watchResponse,miniplayer:!0},_.Ub(p.miniplayerEl,"yt-navigate-cache",y)):p.miniplayerData&&p.miniplayerData.watchEndpoint&&_.Ub(p.miniplayerEl,"yt-navigate",
{endpoint:p.miniplayerData.watchEndpoint}),_.rR(l)}})};
R1U=function(p,y,l){var q,t,E,e;return _.h(function(C){if(C.nextAddress==1){if(MOL(p,y))return C.return();_.Sy().currentEndpoint=y;_.jN(p.miniplayerEl,"yt-miniplayer-endpoint-changed");_.jN(p.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.Sy().isVideoPlaying=!1;q={clientParams:{miniplayer:!0,autoSaveToQueue:!l}};t=new bZ$(function(){return p.getPlayerElement()},q,{layer:p.getScreenLayer(),
parentLayer:0},void 0,p.readyToResumeVe);E=function(u){var a,m,U=Object.assign({},(a=u.playerResponse)==null?void 0:(m=a.playerConfig)==null?void 0:m.playbackStartConfig,{startPaused:!0}),b;l&&((b=u.playerResponse)==null?0:b.playerConfig)&&(u.playerResponse.playerConfig.playbackStartConfig=U);t.processChunk({endpoint:y,data:u})};
FJu(p);p.miniplayerFetchRequest=LJV(p,y,E);_.Ve(C,2);return C.yield(p.miniplayerFetchRequest,4)}if(C.nextAddress!=2)return e=C.yieldResult,ksL(p,e),_.pK(C,0);_.i6(C);_.rR(C)})};
X1.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var FJu=function(p){p.miniplayerFetchRequest&&(p.miniplayerFetchRequest.cancel&&p.miniplayerFetchRequest.cancel("Active request obsolete"),p.miniplayerFetchRequest=null)},LJV=function(p,y,l){var q=_.NB.instance,t,E=(t=_.G(y.commandMetadata,_.ul))==null?void 0:t.url,e;
t=!E||_.n("disable_miniplayer_tempdata")?{}:(e=XEl(E))!=null?e:{};return l8(q,y,t,window.location.href,"watch",function(C,u){l(u)},function(C){return C!==p.miniplayerFetchRequest})},ksL=function(p,y){var l;
_.h(function(q){if(!y)return q.return();p.watchResponse=y;i0d(p);KJ9(p);l=_.a0c(y.response,y.playerResponse);if(p.isMiniplayerActive()){y.response&&(p.playerElement.watchNextData=y.response);var t=_.Ts.getValueByKeys.apply(_.Ts,[y].concat(_.xq(KTO)));_.Ts.getValueByKeys.apply(_.Ts,[y].concat(_.xq(FTU)))&&t&&_.WC().resolve(_.yh).setAutoplayRenderer(t);if(t)if(_.n("kevlar_is_pupi_enabled")){var E,e,C,u,a,m=((E=y.response)==null?0:(e=E.playerOverlays)==null?0:(C=e.playerOverlayRenderer)==null?0:(u=C.autonavToggle)==
null?0:(a=u.autoplaySwitchButtonRenderer)==null?0:a.enabled)?2:1;_.md.getInstance().setState(m,!1,!1)}else E=Jcl()?2:1,(m=p.player)==null||m.setAutonavState(E);p.updateMiniplayerData(l);_.wJ9(p)}_.rR(q)})},KJ9=function(p){var y,l,q=(y=p.watchResponse)==null?void 0:(l=y.playerResponse)==null?void 0:l.playabilityStatus,t;
y=q==null?void 0:(t=q.miniplayer)==null?void 0:t.miniplayerRenderer;(y==null?void 0:y.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&y.minimizedEndpoint&&_.ny(p.miniplayerEl,[y.minimizedEndpoint]);_.d2(p,{miniplayerRenderer:y,playabilityStatus:q})};
X1.prototype.openToast=function(p,y){_.d2(this,{toastData:{data:p,label:y}})};
_.d2=function(p,y){var l=p.miniplayerEl,q;for(q in y)l[q]=y[q];(0,p.miniplayerPropSignalMap[1])(y)};
X1.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var p;return this.playerElement?this.playerElement:(p=_.jR(this.miniplayerEl).querySelector("#player-container"))==null?void 0:p.firstElementChild};
X1.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var VO6=function(p,y){y=y===void 0?!1:y;var l,q,t,E,e,C,u;return _.h(function(a){if(a.nextAddress==1){l=navigator.userActivation.isActive||y;if(!l||!p.pictureInPictureSupported())return a.return(!1);q=DQV(p);t=q.width;E=q.height;return a.yield(p.pipController.openWindow({width:t,height:E}),2)}e=a.yieldResult;C=p.pipController.getWindow();if(!C||!e)return a.return(!1);C.document.body.style.overflow="hidden";u=yYt(C);pR7(p.pipController,function(){H0m(p);u()});
return a.return(!0)})},DQV=function(p){var y=_.Sy().shortsPipActivation,l,q;
p=y?.5625:(q=(l=p.player)==null?void 0:l.getVideoAspectRatio())!=null?q:16/9;l=Math.min(window.innerWidth,window.innerHeight)/2;y=y?0:76;return p>1?new _.wV(l,y+l/p):new _.wV(l*p,y+l)},H0m=function(p){var y;
_.h(function(l){y=_.WC().resolve(_.mm);return y.isOnWatch()&&p.watchPipMode||y.isOnShorts()&&p.shortsPipMode?l.yield(p.deactivate(),0):p.miniplayerToPipMode?l.yield(Z0u(p),0):p.watchPipMode?l.yield(_.BO(p),0):l.jumpTo(0)})};
X1.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.Jh.Object.defineProperties(X1.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
X1[RL]=[ymL,s0r];var TVw="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(" "),
xQu="add_circle alert_bubble audio bag bell clapperboard clock copy creator_studio_red_logo download download fashion flag gaming gear help_circle history home lightbulb live menu mic news offline_no_content overflow_horizontal overflow_vertical play_square_stack playlist podcast search subscriptions thumb_up trash_can trending trophy unplugged_logo video video_camera_add x youtube_kids_round youtube_music youtube_round youtube_shorts yt-logo-updated".split(" "),BVd="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
f79="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var vId=null;var XJm={},dQR=(XJm.initialized={priority:10,callback:function(p){var y=_.WC();y.addProvider({provide:emP,useClass:ll6});y.addProvider({provide:_.yE1,useFactory:function(){return new hmP}});
y.addProvider({provide:xu,useValue:_.OY("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});y.addProvider({provide:e5T,useValue:5184E6});y.addProvider({provide:Z8A,useValue:_.B3()});y.addProvider({provide:S$w,useClass:scQ});y.addProvider({provide:qo,useClass:qo});y.addProvider({provide:_.PN,useFactory:function(){return cIQ.promise}});
y.addProvider({provide:_.hjU,useFactory:function(){return _.ej$.promise}});
y.addProvider({provide:LUm,useValue:function(){var u;return((u=_.$o())==null?void 0:u.getPlayer())||null}});
var l={};y.addProvider((l.provide=_.C$,l.useFactory=function(u,a){return function(){return CU6(u,a)}},l[RL]=[xu,
e5T],l));l={};y.addProvider((l.provide=_.AF,l.useClass=z51,l[RL]=[xu,e5T],l));l={};y.addProvider((l.provide=_.UK_,l.useClass=yZw,l[RL]=[_.AF],l));y.addProvider({provide:rG,useFactory:_.ei});y.addProvider({provide:bW,useFactory:_.ei});y.addProvider({provide:DOL,useFactory:_.ei});y.addProvider({provide:v_V,useFactory:_.ei});y.addProvider({provide:_.yF,useFactory:_.ei});y.addProvider({provide:wB,useValue:_.Vj});y.addProvider({provide:o1O,useClass:cBa});y.addProvider({provide:NfZ,useClass:k0Q});y.addProvider({provide:z8,
useClass:z8});y.addProvider({provide:i2,useClass:i2});y.addProvider({provide:rB,useClass:rB});y.addProvider({provide:Ft,useClass:Ft});y.addProvider({provide:sJ,useClass:sJ});y.addProvider({provide:i5,useClass:i5});y.addProvider({provide:ZT,useClass:ZT});y.addProvider({provide:Da6,useValue:$NO});y.addProvider({provide:_.B_,useFactory:_.Ll});y.addProvider({provide:$b,useFactory:_.w$});l={};y.addProvider((l.provide=y8c,l.useFactory=function(u){return function(a){var m=m===void 0?{}:m;var U,b,P=(b=_.G((U=
a.endpoint)==null?void 0:U.commandMetadata,_.ul))==null?void 0:b.rootVe;if(P){var Z,K;if(U=a.previousCsn||((K=_.G((Z=a.endpoint)==null?void 0:Z.commandMetadata,xvB))==null?void 0:K.parentCsn)){var F=F===void 0?{}:F;if(U!==_.B2(F.layer)||P!==J6m(F.layer))uaj(U,F.cttAuthInfo,F.layer||0),txu(U,F.layer||0),Z=F.layer||0,_.dT(Efc(Z===void 0?0:Z),P);m.parentCsn=U}a.endpoint&&U?E$r(u,a.endpoint,m):_.Mb(u,P,void 0,m);var L;((L=a.response)==null?0:L.trackingParams)&&u.graftServerVe(a.response.trackingParams);
var T;((T=a.playerResponse)==null?0:T.trackingParams)&&u.graftServerVe(a.playerResponse.trackingParams);var O;((O=a.reelWatchSequenceResponse)==null?0:O.trackingParams)&&u.graftServerVe(a.reelWatchSequenceResponse.trackingParams)}}},l[RL]=[_.B_],l));
l={};y.addProvider((l.provide=Tru,l.useClass=HUm,l[RL]=[wB,_.yF],l));l={};y.addProvider((l.provide=GN,l.useClass=GN,l[RL]=[_.PN,_.yF],l));l={};y.addProvider((l.provide=$r,l.useClass=$r,l[RL]=[bW,_.aK],l));y.addProvider({provide:_.dOO,useClass:quO});l={};y.addProvider((l.provide=_.H8,l.useClass=zrw,l[RL]=[_.dOO],l));y.addProvider({provide:_.Tu,useClass:Zx});y.addProvider({provide:_.jgw,useClass:kdd});y.addProvider({provide:_.xG,useClass:PO});l={};y.addProvider((l.provide=_.Wv,l.useClass=lA7,l[RL]=
[_.Wv],l));y.addProvider({provide:_.GI,useClass:wcv});y.addProvider({provide:Nk,useClass:Nk});y.addProvider({provide:fk,useClass:fk});l={};y.addProvider((l.provide=Zj,l.useClass=Zj,l[RL]=[_.aK,_.XC],l));y.addProvider({provide:IV,useClass:Aa});l={};y.addProvider((l.provide=lJ,l.useClass=lJ,l[RL]=[_.Tu,IV],l));_.n("web_enable_feedback_endpoint_resolver")&&(l={},y.addProvider((l.provide=Sg,l.useClass=Sg,l[RL]=[rG,iu],l)),y.addProvider({provide:iu,useClass:ltd}));_.n("web_enable_feedback_endpoint_resolver_batch_2")&&
(l={},y.addProvider((l.provide=Lk,l.useClass=Lk,l[RL]=[rG],l)),l={},y.addProvider((l.provide=Fu,l.useClass=Fu,l[RL]=[iu],l)));l={};y.addProvider((l.provide=pQ,l.useClass=pQ,l[RL]=[_.xG,IV],l));l={};y.addProvider((l.provide=Oe,l.useClass=Oe,l[RL]=[_.xG],l));l={};y.addProvider((l.provide=ys,l.useClass=ys,l[RL]=[_.XC,_.H8],l));l={};y.addProvider((l.provide=Yu,l.useClass=Yu,l[RL]=[_.XC,_.B_],l));y.addProvider({provide:Az,useClass:Az});l={};y.addProvider((l.provide=Ul,l.useClass=Ul,l[RL]=[rG],l));y.addProvider({provide:Nz,
useClass:Nz});y.addProvider({provide:kb,useClass:kb});l={};y.addProvider((l.provide=Hv,l.useClass=Hv,l[RL]=[rG],l));l={};y.addProvider((l.provide=Ty,l.useClass=Ty,l[RL]=[_.XC,rG],l));l={};y.addProvider((l.provide=xb,l.useClass=xb,l[RL]=[rG],l));l={};y.addProvider((l.provide=Bv,l.useClass=Bv,l[RL]=[rG],l));l={};y.addProvider((l.provide=oV,l.useClass=oV,l[RL]=[_.H8],l));l={};y.addProvider((l.provide=Qs,l.useClass=Qs,l[RL]=[_.B_],l));l={};y.addProvider((l.provide=Fb,l.useClass=Fb,l[RL]=[Gy],l));l={};
y.addProvider((l.provide=LQ,l.useClass=LQ,l[RL]=[Gy],l));y.addProvider({provide:iJ,useClass:iJ});y.addProvider({provide:rL,useClass:rL});y.addProvider({provide:gL,useClass:gL});l={};y.addProvider((l.provide=qz,l.useClass=qz,l[RL]=[_.H8,_.aK],l));y.addProvider({provide:TG,useClass:TG});l={};y.addProvider((l.provide=zG,l.useClass=zG,l[RL]=[_.XC,_.H8],l));y.addProvider({provide:vw,useClass:vw});l={};y.addProvider((l.provide=at,l.useClass=at,l[RL]=[rG,_.XC,_.Wv],l));l={};y.addProvider((l.provide=uJ,l.useClass=
uJ,l[RL]=[_.XC,_.aK],l));y.addProvider({provide:fcU,useValue:ZNj});y.addProvider({provide:oLv,useValue:zCc});y.addProvider({provide:Rt,useClass:Rt});l={};y.addProvider((l.provide=CQ,l.useClass=CQ,l[RL]=[rG],l));l={};y.addProvider((l.provide=mK,l.useClass=mK,l[RL]=[_.GI,_.aK],l));l={};y.addProvider((l.provide=ku,l.useClass=ku,l[RL]=[_.aK],l));y.addProvider({provide:wG,useFactory:function(){return new wG(_.ei())}});
y.addProvider({provide:nEc,useFactory:_.BI.getInstance});l={};y.addProvider((l.provide=Bw,l.useClass=Bw,l[RL]=[xu,nEc,_.aK],l));y.addProvider({provide:Dj,useClass:Dj});y.addProvider({provide:Mk,useClass:Mk});y.addProvider({provide:gG,useClass:gG});y.addProvider({provide:_.V_,useClass:_.V_});y.addProvider({provide:Xb,useClass:Xb});l={};y.addProvider((l.provide=cv,l.useClass=cv,l[RL]=[bW],l));l={};y.addProvider((l.provide=e3,l.useClass=e3,l[RL]=[_.aK],l));_.n("web_enable_prefetching_videos_on_home")&&
(y.addProvider({provide:UJ,useClass:UJ}),y.addProvider({provide:kr,useClass:kr}));l={};y.addProvider((l.provide=vv,l.useClass=vv,l[RL]=[_.aK],l));y.addProvider({provide:Q_,useClass:Q_});l={};y.addProvider((l.provide=ZP,l.useClass=ZP,l[RL]=[_.XC,_.aK],l));l={};y.addProvider((l.provide=Kk,l.useClass=Kk,l[RL]=[_.aK],l));y.addProvider({provide:NT,useClass:NT});y.addProvider({provide:El,useClass:El});l={};y.addProvider((l.provide=tz,l.useClass=tz,l[RL]=[bW,_.aK],l));l={};y.addProvider((l.provide=ot,l.useClass=
ot,l[RL]=[bW,_.aK,_.XC],l));l={};y.addProvider((l.provide=zy,l.useClass=zy,l[RL]=[_.aK],l));l={};y.addProvider((l.provide=Ol,l.useClass=Ol,l[RL]=[_.aK,_.XC],l));l={};y.addProvider((l.provide=hz,l.useClass=hz,l[RL]=[_.PN],l));l={};y.addProvider((l.provide=Jz,l.useClass=Jz,l[RL]=[_.PN],l));y.addProvider({provide:nQ,useClass:nQ});y.addProvider({provide:Pv,useClass:Pv});y.addProvider({provide:DP,useClass:DP});y.addProvider({provide:Mz,useClass:Mz});y.addProvider({provide:bJ,useClass:bJ});y.addProvider({provide:Xu,
useClass:Xu});y.addProvider({provide:j3,useClass:j3});_.n("kevlar_enable_mss_lazy_load")&&y.addProvider({provide:_.yR,useClass:NuT});y.addProvider({provide:_.LI,useClass:VJ});y.addProvider({provide:aB,useFactory:function(){return _.pt.getInstance()}});
y.addProvider({provide:kMV,useFactory:Z_g});y.addProvider({provide:Gy,useFactory:function(){return _.B4.getInstance()}});
y.addProvider({provide:pxO,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});l={};y.addProvider((l.provide=_.jQ,l.useClass=_.jQ,l[RL]=[_.PN,_.aK,_.B_,kMV,Gy,aB,pxO,wB],l));y.addProvider({provide:_.Qd,useClass:T2r});y.addProvider({provide:_.C_A,useClass:h5O});l={};y.addProvider((l.provide=dG,l.useClass=dG,l[RL]=[_.C_A],l));l={};y.addProvider((l.provide=_.bq,l.useFactory=function(u){return u.upliftCompletionResolver.promise},l[RL]=[Tru],l));
l=_.o4("IS_SHELL_LOAD")?"aa":"eocs";var q=_.o4("IS_SHELL_LOAD")?3:2;_.qB().parkOrScheduleJob(function(){Brw()},q,l);
_.qB().parkOrScheduleJob(function(){_.WC().resolve(GN).start()},2,"eocs");
_.qB().parkOrScheduleJob(function(){Nrw()},2,"eocs");
_.qB().parkOrScheduleJob(function(){_.WC().resolve($r).start()},2,"eocs");
_.n("kevlar_debug_data_app_registration_ks")||ca8();y.addProvider({provide:_.Xf,useValue:new TXr(p.root)});y.addProvider({provide:Yn,useValue:new ZXo});y.addProvider({provide:_.oj$,useValue:new ddP(p.root)});y.addProvider({provide:_.vI,useValue:new OJx});y.addProvider({provide:_.HF,useClass:r4});y.addProvider({provide:ymL,useClass:MT});_.n("kevlar_network_sli_killswitch")||y.addProvider({provide:CfA,useValue:fnQ});y.addProvider({provide:SQ,useFactory:W0t});_.n("web_bind_fetch")&&(l={},y.addProvider((l.provide=
zVL,l.useFactory=a$a,l[RL]=[_.RK(SQ)],l)));_.n("web_bind_parse")&&(l={},y.addProvider((l.provide=Yuw,l.useFactory=mSa,l[RL]=[_.RK(SQ)],l)));_.n("web_bind_window_request")&&(l={},y.addProvider((l.provide=IAw,l.useFactory=USo,l[RL]=[_.RK(SQ)],l)));_.n("web_bind_text_decoder")&&(l={},y.addProvider((l.provide=p6V,l.useFactory=$Sg,l[RL]=[_.RK(SQ)],l)));l={};y.addProvider((l.provide=QgL,l.useFactory=Y7a,l[RL]=[_.bq,rG,_.C$],l));l={};y.addProvider((l.provide=g6d,l.useClass=Yb,l[RL]=[QgL],l));y.addProvider({provide:ftR,
useClass:H86});y.addProvider({provide:ARV,useClass:MjR});l=[].concat(_.xq(CX));_.n("web_continuation_response_processing")&&l.push(_.qr);l.push($CZ);_.n("enable_share_panel_navigation_logging_fix_on_web")&&l.push(_.kbU);y.addProvider({provide:Pe5,useValue:l});y.addProvider({provide:AY_,useClass:P_m});y.addProvider({provide:mmd,useClass:uXd});l={};y.addProvider((l.provide=bB_,l.useClass=EUP,l[RL]=[bW],l));_.TR.addLowPriorityJob(function(){X1a()});
l={};y.addProvider((l.provide=OZQ,l.useFactory=function(u){return function(a){var m,U=(m=_.G(a.commandMetadata,_.ul))==null?void 0:m.url;if(!U)throw new _.SM("No URL for PBJ Command",a);U=Ewl(U,{pbj:"1"});m=AO5(U,{})||{};m=Object.assign({},m,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.OY("STS").toString()});a=_.MM({command:JSON.stringify(a),session_token:_.OY("XSRF_TOKEN")});return u.fetch(U,{method:"POST",headers:m,body:a})}},l[RL]=[mmd],l));
l=[];l.push(y.resolve(ARV));q={};q=(q.client_location=_.BI.getInstance(),q.consistency=_.cFt(),q.entities=y.resolve(NfZ),q.response_received_commands=y.resolve(AY_),q.store=y.resolve(_.UK_),q.tokens=y.resolve(ARV),q);_.n("web_service_params_response_processor")&&(y.addProvider({provide:cE6,useFactory:function(){var u={};return u.CSI=bDg(),u.ECATCHER=j86(),u}}),y.addProvider({provide:RTo,
useClass:efm}),q.service_params=y.resolve(RTo));if(_.n("web_shorts_prefetch_service_enabled")){var t=new lVu(y.resolve(_.AF));q.shorts_prefetch=t}q.adblock_detection=y.resolve(bB_);y.addProvider({provide:_.lG,useClass:_.lG});t=y.resolve(Da6);var E=[];_.n("PremiumClientSharedConfig__enable_att_context_processor")&&(y.addProvider({provide:G0Q,useClass:jIQ}),E.push(y.resolve(G0Q)));if(_.n("owl_pl_await")){var e={};y.addProvider((e.provide=B6w,e.useFactory=function(u){return new T6A(u)},e[RL]=[_.lG],
e));
E.push(y.resolve(B6w))}Ebx(t,y.resolve(mmd),y.resolve(o1O),q,y.resolve(_.AF),l,E,y.resolve(g6d),y.resolve(ftR));y.addProvider({provide:_.XC,useValue:_.Js.instance});_.n("start_client_gcf")&&y.addProvider({provide:SF,useValue:BFU()});y.addProvider({provide:vx9,useFactory:function(){return new vx9(_.WC().resolve(_.lG),_.B4.getInstance())}});
_.qB().parkOrScheduleJob(function(){XUi()},1,"eocs");
l={};y.addProvider((l.provide=n$,l.useClass=n$,l[RL]=[_.C$,_.XC],l));y.addProvider({provide:_.eVd,useFactory:_.L$.getInstance});_.qB().parkOrScheduleJob(function(){_.WC().resolve(n$).refresh()},0,"eocs");
o_i($NO.watchEndpointMap||{},t.reelWatchEndpointMap||{},p.injector.resolve(_.XC));y.addProvider({provide:H3,useValue:_.NB.instance});_.n("kevlar_signal_collection_killswitch")||(l={},y.addProvider((l.provide=rZw,l.useClass=rZw,l[RL]=[xu,$b],l)),_.qB().parkOrScheduleJob(function(){_.WC().resolve(rZw).record()},1,"eocs"));
_.n("web_debug_handler_registration_killswitch")||_.qB().parkOrScheduleJob(function(){ErR("DOWNLOAD_PES",AAL);_.n("offline_client_state_export_ks")||ErR("OFFLINE_CLIENT_STATE",nTc)},0,"eocs");
_.n("kevlar_prevent_polymer_dynamic_font_load")&&_.qB().parkOrScheduleJob(function(){var u=[_.bz(MZA),_.bz(VZm)];u=_.c(u);for(var a=u.next();!a.done;a=u.next()){a=a.value;var m=document.createElement("link");_.R9(m,a,"stylesheet");document.head.appendChild(m)}},1,"eocs");
l=p.injector.resolve(_.XC);_.nU$.instance=new _.nU$(l);tAg(R6N(new biB(l)));l={};p.injector.addProvider((l.provide=hK,l.useFactory=function(u){(u=u==null?void 0:u.getCurrentPage())?u=u.visibilityObserver:(vId||(vId=WSg()),u=vId);return u},l[RL]=[_.RK(_.mm)],l.skipCache=!0,l));
y.addProvider({provide:_.IA,useClass:X1});y.addProvider({provide:i1,useClass:O$O});p.injector.addProvider({provide:Bwv,useValue:HJU});y.addProvider({provide:QjU,useValue:nN6});y.addProvider({provide:_.hb,useValue:i1R});p=y.addProvider;C99||(C99=new hVT);p.call(y,{provide:_.g2,useValue:C99});y.addProvider({provide:_.up,useValue:_.OY("HTML_DIR")==="rtl"?"rtl":"ltr"});y.addProvider({provide:Hi$,useClass:IG$});y.addProvider({provide:_.Kl,useClass:QJ});_.WC().addProvider({provide:xPx,useValue:_.n("enable_web_delhi_icons")?
xQu.concat(f79):TVw.concat(BVd)});y.addProvider({provide:_.w2,useClass:_.w2});y.addProvider({provide:_.GBd,useValue:new nXT});y.addProvider({provide:N9v,useClass:FhO});y.addProvider({provide:Vs,useClass:Vs});y.addProvider({provide:KQ,useClass:KQ});p={};y.addProvider((p.provide=sl,p.useClass=sl,p[RL]=[_.XC,_.H8],p));y.addProvider({provide:dL,useClass:dL});y.addProvider({provide:smN,useClass:tdO});y.addProvider({provide:S3,useClass:S3});y.addProvider({provide:VAP,useValue:u4M});y.addProvider({provide:_.qk,
useClass:LhU});_.n("enable_payments_purchase_manager")&&y.addProvider({provide:MTN,useClass:PEU});y.addProvider({provide:ZOA,useFactory:function(){return function(u){return _.AEL(u)}}});
y.addProvider({provide:_.n6w,useClass:Gl7});p={};y.addProvider((p.provide=fQ,p.useClass=fQ,p[RL]=[_.n6w],p));y.addProvider({provide:wL,useClass:wL});y.addProvider({provide:YSM,useValue:gjV});y.addProvider({provide:sDZ,useValue:_.b7L});y.addProvider({provide:UTc,useClass:sTd});y.addProvider({provide:uwV,useValue:P6i});p={};y.addProvider((p.provide=RVi,p.useClass=WiR,p[RL]=[uwV],p));p={};y.addProvider((p.provide=_.xr,p.useClass=Awd,p[RL]=[RVi],p));p={};y.addProvider((p.provide=_.r2,p.useClass=iq,p[RL]=
[_.yF,_.HF],p));if(_.n("web_explore_hub_on_hover")||_.n("web_client_explore_hub_on_hover"))p={},y.addProvider((p.provide=Hw,p.useClass=Hw,p[RL]=[_.XC,aB],p));if(_.n("web_enable_renderer_logger")){var C=new O7A;Ima(function(){C.abort()});
y.addProvider({provide:COu,useValue:new FPR(C.signal)})}y.addProvider({provide:PiV,useValue:ZQ8});p={};y.addProvider((p.provide=sv1,p.useClass=q$1,p[RL]=[_.XC],p))}},XJm);var O0m={},oI9=(O0m.initialized={priority:10,callback:function(){if(!hfT){ilR();G$u("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Go(_.Ky(G$u,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.n("log_heartbeat_with_lifecycles")){var p={};Rw.instance||(Rw.instance=new Rw);Rw.instance.install((p.document_visible={callback:Pg_,priority:10},p.document_hidden={callback:Pg_,priority:10},p))}else _.hp(document,"visibilitychange",Pg_);hfT=!0}(p=_.B2())&&p!=="UNDEFINED_CSN"&&qA8(p)}},O0m);var z$i={},Y61=(z$i.initialized={callback:function(p){var y=_.fY(232091),l=p.injector.resolve(_.B_);_.Vv(l,y);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?lEl()&&_.Qv(l,y):(p=p.injector.resolve(ZOA)("refresh_detector"))&&(p.get("first_tab_load")?_.Qv(l,y):p.set("first_tab_load","1"))}},z$i);var I71={},p99=(I71.initialized={priority:10,callback:hTL},I71);var yqA={},lzd=(yqA.initialized={priority:0,callback:function(){var p=new HSv,y="other";_.gl?y="chrome":_.VR?y="firefox":_.ds?y="safari":Jk&&(y="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(l){p.increment(_.ws(),l,y)}).catch(function(){p.increment(_.ws(),!1,y)}):p.increment(_.ws(),!1,y)}},yqA);var qE9={},sYd=(qE9.rendering={priority:8,callback:Cwj},qE9);var trT={},EPT=(trT.rendering={priority:10,callback:Mno},trT.rendered={callback:ZBu},trT),JqR={},cq9=(JqR.rendering={callback:Mno},JqR.rendered={callback:ZBu},JqR);var eyO=!1,hym={},C4u=(hym.initialized={priority:10,callback:function(){eyO||(tYR({didPatch:function(p){p.el&&r1m(p.el,p.props)},
didUnmount:function(p){wj5(p.el)}}),eyO=!0)}},hym);var uZd=/^\/shorts\/?$/;_.dT("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(_.n("kevlar_enable_mss")){_.Ts8(new MNO);var Rym=!0,W2u,OJ;Rym=Rym===void 0?!1:Rym;W2u=W2u===void 0?!1:W2u;OJ=OJ===void 0?{}:OJ;var azT=OJ.cssRowKey||"",mF6=OJ.combinedSignature||"";!azT&&window&&window._F_cssRowKey&&(azT=window._F_cssRowKey,!mF6&&window._F_combinedSignature&&(mF6=window._F_combinedSignature));if(azT&&typeof window._F_installCss!=="function")throw Error("vd");var UFw=OJ.loaderClass||_.yp,oo=V0j("base-js"),$F1,jYA=Q76("",oo);$F1=_.FX(jYA);var zN=new UFw($F1,azT,mF6,Rym,W2u),bSi=
OJ.useCors||oo&&oo.hasAttribute("crossorigin"),nPd=OJ.corsMode||oo&&oo.getAttribute("crossorigin");bSi&&(zN.useCors_=bSi);nPd&&(zN.corsMode_=nPd);OJ.urlMaxLength&&(zN.urlMaxLength=OJ.urlMaxLength);OJ.fetchPriority&&(zN.fetchPriority=OJ.fetchPriority);var GH7=H9();GH7.JSC$9990_loader_=zN;GH7.setBatchModeEnabled(!0)}
(function(){var p=document.querySelector("ytd-app");if(!p)throw Error("Ij");p=new F1({root:p,injector:_.WC()});p.install(oI9);var y={};p.install((y.initialized={priority:10,callback:tK5},y));_.n("wp_lat_b")&&(y={},p.install((y.initialized={priority:10,callback:function(){Cg8()}},y)));
y={};p.install((y.rendered={priority:0,callback:lq8},y));y={};p.install((y.rendered={priority:0,callback:function(){_.TR.addLowPriorityJob(function(){_.pt1>1&&(O9u(),p5c())},4E4)}},y));
p.install(IlO);p.install(Y61);p.install(C4u);Xj_();p.install(JwL);p.install(X6V);p.install(zfm);p.install(MBu);p.install(wUV);p.install(t_w);p.install(dQR);_.n("kevlar_enable_mss_lazy_load")&&p.install(p99);p.install(OO7);p.install(lzd);if(!_.o4("IS_SHELL_LOAD")||_.n("kevlar_fetch_initial_data_promise_client")||_.n("sw_nav_preload_pbj")){var l=_.AJ(window.location.href);y=l&&l==="/watch";l=l&&l.match(uZd);y?p.install(cq9):l?p.install(sYd):p.install(EPT)}else p.install(BuO);p.install(ywi);_.n("web_enable_prefetching_videos_on_home")&&
p.install(C6d);_.n("start_client_gcf")&&p.install(JEd);p.install(nxL);(new TgZ).increment("INSTALLED");p.install(e_u);p.install(HO6);p.transition("initialized");q7l()})();
_.PI=[[["MTMzNnFrY3R1YnBpa2luZCM=","cm12YXFwM250aXZhbHVlI2Rx"],"dmJlaHo5MWhmNkFEX1BMQUNFTUVOVF9LSU5EX1BBVVNFIzZ3"]];_.G5=["YmFja3MjMnUwdHdscHpqbXJmZ2xvYmFsQ2FsbA==","YWE1NDYzZ3lqcGN4b25BYm5vcm1hbGl0eURldGVjdGVkIw==","c2Z5cG9uQWRTa2lwIzJha3N5bTJo","ZSNvbmgxamk4dWhwaDFyYXdfcGxheWVyX3Jlc3BvbnM=","dGVudCNzdmh1aG9wMWIxa2xyZW5kZXJpbmdDb24="];_.e4="YmFja3MjMnUwdHdscHpqbXJmZ2xvYmFsQ2FsbA== YWE1NDYzZ3lqcGN4b25BYm5vcm1hbGl0eURldGVjdGVkIw== c2Z5cG9uQWRTa2lwIzJha3N5bTJo ZSNvbmgxamk4dWhwaDFyYXdfcGxheWVyX3Jlc3BvbnM= X3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI2NoMndydG56ZG54Y3dlYg== ZGw5M2FiX3NhX2VmIzllb2p5Z2s5 dGVudCNzdmh1aG9wMWIxa2xyZW5kZXJpbmdDb24=".split(" ");
_._ModuleManager_initialize=function(p,y){if(!_.NF){if(!_.Dz)return;_.Ts8(_.Dz())}_.NF.setAllModuleInfoString(p,y)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syd:2/syc:5,a,d/sye/syf:6/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy3','sy8','syd','sya','sy5','syi','syh','sye','syc','syb','sy1','syk','sy7','sy6','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.yH=function(p,y,l,q,t){var E={};y&&(E[y]=l);q?E.errorType=q:t&&(E.errorReason=t);_.TX(p,E);_.xn()};
_.lT=function(p){var y=_.qB();return _.xwx(y,p,1)};
_.fv({is:"iron-media-query",_template:null,properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},
_mq:{value:null}},attached:function(){this.style.display="none";this.queryChanged()},
detached:function(){this._remove()},
_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},
_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler);this._mq=null},
queryChanged:function(){this._remove();var p=this.query;p&&(this.full||p[0]==="("||(p="("+p+")"),this._mq=window.matchMedia(p),this._add(),this.queryHandler(this._mq))},
queryHandler:function(p){this._setQueryMatches(p.matches)}});var iSm;var rqR;var SEu=function(){};
_.J=SEu.prototype;_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._noinkChanged=function(){};
_.J._focusedChanged=function(){};
_.J._createRipple=function(){};
_.J.registered=function(){};
_.J._invalidChanged=function(){};
_.J.hasValidator=function(){};
_.J.validate=function(){};
_.J._getValidity=function(){};
_.J._requiredChanged=function(){};
_.J._valueChanged=function(){};
_.J._checkedChanged=function(){};
_.J._buttonStateChanged=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
SEu=_.fv({is:"tp-yt-paper-radio-button",_template:function(){if(rqR!==void 0)return rqR;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_button.tp.yt.paper.radio.button.css.js--\x3e<div id="radioContainer" style-target="container" class="style-scope tp-yt-paper-radio-button">\n  <div id="offRadio" class="style-scope tp-yt-paper-radio-button"></div>\n  <div id="onRadio" class="style-scope tp-yt-paper-radio-button"></div>\n</div><div id="radioLabel" style-target="label" class="style-scope tp-yt-paper-radio-button"><slot class="style-scope tp-yt-paper-radio-button"></slot></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;iSm===void 0&&(iSm=document.createElement("template"));var q=iSm;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return rqR=p},
behaviors:[_.W8r],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(){_.th(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var p=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),y=Math.floor(3*p);y%2!==p%2&&y++;this.updateStyles({"--paper-radio-button-ink-size":y+"px"})}})}});var F2R;var L2V;_.fv({_template:function(){if(L2V!==void 0)return L2V;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-group--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_group.tp.yt.paper.radio.group.css.js--\x3e<slot class="style-scope tp-yt-paper-radio-group"></slot>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;F2R===void 0&&(F2R=document.createElement("template"));var q=F2R;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return L2V=p},
is:"tp-yt-paper-radio-group",behaviors:[_.VoP],hostAttributes:{role:"radiogroup"},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"tp-yt-paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(p){var y=this._valueToItem(p);if(!y||!y.hasAttribute("disabled")){if(this.selected){y=this._valueToItem(this.selected);if(this.selected==p)if(this.allowEmptySelection)p="";else{y&&(y.checked=!0);return}y&&
(y.checked=!1)}_.Jl.select.apply(this,[p]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(p){this._focusPrevious();p.preventDefault();this._activateFocusedItem()},
_onDownKey:function(p){this._focusNext();p.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(p){_.Mor._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(p){_.Mor._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Jl._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.fn._resetTabindices.apply(this,arguments);this.items.forEach(function(p){p.removeAttribute("aria-selected")},this)}});var kH6;_.ox("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var qX=function(){return _.w.apply(this,arguments)||this};
_.A(qX,_.w);_.J=qX.prototype;_.J.computeHasPrimaryIcon=function(p){return!(!p.icon&&!p.thumbnail)};
_.J.computeHasSecondary=function(p){return!(!p.secondaryIcon&&!p.secondaryNotificationText)};
_.J.computeHideSecondaryString=function(p){return!_.n("disable_hide_empty_secondary_string")&&!p.secondaryNotificationText};
_.J.computeCompactLinkStyle=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.J.computeHasFitHeight=function(p){return p==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.J.isActiveEndpoint=function(p){return(p=this.get("commandMetadata.webCommandMetadata.url",p))?_.AJ(window.location.href)!=="/account_transfer_channel"&&_.AJ(window.location.href)!=="/gaia_link"&&_.AJ(window.location.href)!=="/channel_switcher"||p!=="/account"?_.AJ(window.location.href)===p:!0:!1};
_.J.onTap=function(){var p;((p=this.data)==null?0:p.serviceEndpoint)&&_.ny(this.hostElement,[this.data.serviceEndpoint])};
qX.prototype.onTap=qX.prototype.onTap;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],qX.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],qX.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.x("design:type",Boolean)],qX.prototype,"active",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.x("design:type",String)],qX.prototype,"compactLinkStyle",void 0);
_.H([_.Q({computed:"computeIcon_(data.icon)"}),_.x("design:type",Object)],qX.prototype,"icon",void 0);_.H([_.Q({computed:"computeIcon_(data.secondaryIcon)"}),_.x("design:type",Object)],qX.prototype,"secondaryIcon",void 0);_.H([_.Q({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],qX.prototype,"hasSecondary",void 0);_.H([_.Q({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],qX.prototype,"hideSecondaryString",void 0);
_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qX.prototype,"onTap",null);_.H([_.k({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],qX);
_.D(qX,"ytd-compact-link-renderer",function(){if(kH6!==void 0)return kH6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-link-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" role="link" tabindex="-1">\n  \n  <tp-yt-paper-item role="none" class="style-scope ytd-compact-link-renderer">\n    <div id="content-icon" hidden="[[!computeHasPrimaryIcon(data)]]" class="style-scope ytd-compact-link-renderer">\n      <yt-img-shadow fit-height="[[computeHasFitHeight(data.style)]]" height="40" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-compact-link-renderer">\n      </yt-img-shadow>\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-compact-link-renderer">\n      </yt-icon>\n    </div>\n    <div id="primary-text-container" class="style-scope ytd-compact-link-renderer">\n      <yt-formatted-string id="label" text="[[data.title]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="right-icon" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]" class="style-scope ytd-compact-link-renderer">\n    </yt-icon>\n    <yt-formatted-string id="secondary-text" hidden="[[hideSecondaryString]]" text="[[data.secondaryNotificationText]]" class="style-scope ytd-compact-link-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return kH6=p},{mode:1});var Ngu;_.ox("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var sO=function(){var p=_.w.apply(this,arguments)||this;p.role="link";p.tabindex="0";p.actionMap=_.n("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return p};
_.A(sO,_.w);_.J=sO.prototype;_.J.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.HI()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.J.getCurrentTheme=function(){return _.T5()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.HI()};
_.J.onThemeSelected=function(p,y){var l=p||y?p:_.Da(),q=(l&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!l&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.tE_(_.AJ(window.location.href));_.il(0,165,p);_.il(0,174,y);this.prefs.save();q&&_.$w(this.hostElement,"yt-dark-mode-toggled-action",[l]);_.$w(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.J.onTap=function(){this.data.serviceEndpoint&&_.ny(this.hostElement,[this.data.serviceEndpoint])};
_.J.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.J.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.J.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
sO.prototype.onTap=sO.prototype.onTap;sO.prototype.dataChanged=sO.prototype.dataChanged;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],sO.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.hT),_.x("design:type",Object)],sO.prototype,"paperItemBehaviors",void 0);_.H([_.Q(),_.x("design:type",Object)],sO.prototype,"data",void 0);_.H([_.Q({value:function(){return _.w$()}}),
_.x("design:type",_.m4)],sO.prototype,"prefs",void 0);_.H([_.Q(),_.x("design:type",Object)],sO.prototype,"label",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],sO.prototype,"role",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],sO.prototype,"tabindex",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sO.prototype,"dataChanged",null);
_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sO.prototype,"onTap",null);_.H([_.k({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],sO);
_.D(sO,"ytd-toggle-theme-compact-link-renderer",function(){if(Ngu!==void 0)return Ngu;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-theme-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content-icon style-scope ytd-toggle-theme-compact-link-renderer">\n  <yt-icon id="primary-icon" disable-upgrade$="[[!data.primaryIcon.iconType]]" hidden="[[!data.primaryIcon.iconType]]" icon="[[data.primaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n  </yt-icon>\n</div>\n<div id="label" class="style-scope ytd-toggle-theme-compact-link-renderer">[[getSimpleString(label)]]</div>\n<yt-icon id="secondary-icon" disable-upgrade$="[[!data.secondaryIcon.iconType]]" hidden="[[!data.secondaryIcon.iconType]]" icon="[[data.secondaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n</yt-icon>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Ngu=p},{mode:1});
}catch(e){_._DumpException(e)}
try{
var HST,Tgm;_.tX=function(p){return!!p.getOptions("captions")};
_.DF9=function(p){return(p=p.getOption("captions","track"))?!!p.displayName:!1};
_.EO=function(p,y){_.Bn(y,p,function(){return HST[y]},function(l){HST[y]=l;
if(!_.n("mweb_player_ve_show_ks")){var q=_.B2(0);q&&l&&_.la(q,l)}})};
_.JX=function(p){(p=HST[p])&&_.Qv(_.Ll(),p)};
HST={};var xF9;/*

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
*/
_.fv({_template:function(){if(xF9!==void 0)return xF9;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-checkbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_checkbox.tp.yt.paper.checkbox.css.js--\x3e<div id="checkboxContainer" class="style-scope tp-yt-paper-checkbox">\n  <div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]] style-scope tp-yt-paper-checkbox">\n    <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]] style-scope tp-yt-paper-checkbox"></div>\n  </div>\n</div><div id="checkboxLabel" style-target="label" class="style-scope tp-yt-paper-checkbox"><slot class="style-scope tp-yt-paper-checkbox"></slot></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;Tgm===void 0&&(Tgm=document.createElement("template"));var q=Tgm;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return xF9=p},
is:"tp-yt-paper-checkbox",behaviors:[_.W8r],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.th(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var p=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),y="px",l=p.match(/[A-Za-z]+$/);l!==null&&(y=l[0]);p=parseFloat(p);l=8/3*p;y==="px"&&(l=Math.floor(l),l%2!==p%2&&l++);this.updateStyles({"--paper-checkbox-ink-size":l+
y})}})},
_computeCheckboxClass:function(p,y){var l="";p&&(l+="checked ");y&&(l+="invalid");return l},
_computeCheckmarkClass:function(p){return p?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.uyO._createRipple.call(this)}});var Bg6=new _.uK("radioButtonSurveyOptionRenderer"),fzT=new _.uK("checkboxSurveyOptionRenderer");var vPO;var X9d;var dFO=0,cq=function(){var p=_.w.call(this)||this;p.selected=!1;p.isOverlay=!1;p.inputId="toggle-option-"+dFO;dFO++;return p};
_.A(cq,_.w);cq.prototype.onTap=function(){_.Ub(this.hostElement,"ytd-toggle-option-clicked")};
_.H([_.Q(),_.x("design:type",String)],cq.prototype,"label",void 0);_.H([_.Q(),_.x("design:type",String)],cq.prototype,"inputId",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],cq.prototype,"selected",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],cq.prototype,"isOverlay",void 0);_.H([_.k({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.x("design:paramtypes",[])],cq);
_.D(cq,"ytd-toggle-option-renderer",function(){if(X9d!==void 0)return X9d;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<input type="checkbox" id$="[[inputId]]" checked="[[selected]]" on-click="onTap" class="style-scope ytd-toggle-option-renderer">\n<label for$="[[inputId]]" class="style-scope ytd-toggle-option-renderer">[[label]]</label>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return X9d=p},{mode:1});var ev=function(){var p=_.w.apply(this,arguments)||this;p.isToggleOption=!1;p.isOverlay=!1;return p};
_.A(ev,_.w);ev.prototype.onTap=function(p){p.preventDefault();this.data&&(p=!this.data.checked,this.set("data.checked",p),_.Ub(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:p,value:this.data.value}))};
_.Jh.Object.defineProperties(ev.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
ev.prototype.onTap=ev.prototype.onTap;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ev.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],ev.prototype,"isToggleOption",void 0);_.H([_.Q(),_.x("design:type",Object)],ev.prototype,"isOverlay",void 0);_.H([_.g("data.responseText"),_.x("design:type",String),_.x("design:paramtypes",[])],ev.prototype,"label",null);
_.H([_.VU("ytd-toggle-option-clicked"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],ev.prototype,"onTap",null);_.H([_.k({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],ev);
_.D(ev,"ytd-checkbox-survey-option-renderer",function(){if(vPO!==void 0)return vPO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <tp-yt-paper-checkbox checked="[[data.checked]]" on-tap="onTap" class="style-scope ytd-checkbox-survey-option-renderer">\n    [[label]]\n  </tp-yt-paper-checkbox>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <ytd-toggle-option-renderer is-overlay="[[isOverlay]]" label="[[label]]" selected="[[data.checked]]" class="style-scope ytd-checkbox-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return vPO=p},{mode:1});var OSu;var oPO;var hX=function(){var p=_.w.apply(this,arguments)||this;p.checked=!1;p.isToggleOption=!1;return p};
_.A(hX,_.w);hX.prototype.onTap=function(){this.data&&(this.checked?_.$w(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.$w(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
hX.prototype.onTap=hX.prototype.onTap;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],hX.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],hX.prototype,"checked",void 0);_.H([_.Q(),_.x("design:type",Object)],hX.prototype,"isToggleOption",void 0);_.H([_.VU("ytd-toggle-option-clicked"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],hX.prototype,"onTap",null);
_.H([_.k({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],hX);
_.D(hX,"ytd-radio-button-survey-option-renderer",function(){if(oPO!==void 0)return oPO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-button-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <tp-yt-paper-radio-button id="radio" checked="[[checked]]" on-click="onTap" class="style-scope ytd-radio-button-survey-option-renderer">\n    [[getSimpleString(data.option)]]\n  </tp-yt-paper-radio-button>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <ytd-toggle-option-renderer label="[[getSimpleString(data.option)]]" selected="[[checked]]" class="style-scope ytd-radio-button-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return oPO=p},{mode:1});var CV=function(){var p=_.w.apply(this,arguments)||this;p.disableAnimation=!1;p.isToggleOption=!0;p.followUpSurveyCommand=null;p.selectedRatingEndpoint=null;p.isSlimlineSurveyFollowUp=!1;p.isShortsStyle=!1;p.styleOverrideAttribute=!0;p.isDarkMode=!1;p.isSubmitted=!1;p.roundedContainer=!0;p.improveShortsResponseRate=_.n("web_improve_shorts_response_rate");p.actionMap={"ytd-inline-survey-rating-select-action":"handleInlineSurveyRatingSelect","ytd-inline-survey-option-select-action":"handleInlineSurveyOptionSelect",
"ytd-inline-survey-option-deselect-action":"handleInlineSurveyOptionDeselect","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.A(CV,_.w);_.J=CV.prototype;
_.J.configureRendererStamper=function(){return{"data.inlineContent":{id:"inline-survey-compact-video-renderer",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",properties:{isShortsStyle:"[[isShortsStyle]]"}}}},"data.response.expandableSurveyResponseRenderer.options":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]",
showResponseRangeText:"[[isShortsStyle]]"}}}},"followUpSurveyCommand.followUpOptions":{id:"follow-up-survey-options",mapping:{checkboxSurveyOptionRenderer:{component:"ytd-checkbox-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]",isOverlay:"[[isShortsStyle]]"}},radioButtonSurveyOptionRenderer:{component:"ytd-radio-button-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]"}}}},"data.response.expandableSurveyResponseRenderer.skipButton":{id:"skip-btn-footer",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.response.expandableSurveyResponseRenderer.continueButton":{id:"continue-btn-footer",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"post-submit-message",mapping:{messageRenderer:{component:"ytd-message-renderer"}}}}};
_.J.attached=function(){var p=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(l){var q;if((q=l[0])!=null&&q.isIntersecting){_.Sm().reportShown(p.hostElement);var t;(t=p.intersectionObserver)==null||t.unobserve(p.hostElement)}},{rootMargin:"0px",
threshold:.6});var y;(y=this.intersectionObserver)==null||y.observe(this.hostElement)};
_.J.onDarkModeToggledAction=function(p){this.isDarkMode=p};
_.J.dataChanged=function(){var p;if(((p=this.data)==null?void 0:p.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var y;((y=this.data)==null?void 0:y.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var l,q,t,E;this.darkColorPalette=(l=this.data)==null?void 0:(q=l.inlineContent)==null?void 0:(t=q.compactVideoRenderer)==null?void 0:(E=t.thumbnail)==null?
void 0:E.darkColorPalette;var e,C,u,a;this.lightColorPalette=(e=this.data)==null?void 0:(C=e.inlineContent)==null?void 0:(u=C.compactVideoRenderer)==null?void 0:(a=u.thumbnail)==null?void 0:a.lightColorPalette;var m,U;if(((m=this.data)==null?0:(U=m.inlineContent)==null?0:U.compactVideoRenderer)&&this.isShortsStyle){var b,P,Z,K;p=_.GT((b=this.data)==null?void 0:(P=b.inlineContent)==null?void 0:(Z=P.compactVideoRenderer)==null?void 0:(K=Z.thumbnail)==null?void 0:K.thumbnails);_.Ax(this.hostElement,
{"--yt-background-url":"url("+p+")"})}};
_.J.handleRequestCompletion=function(){this.hostElement.hidden&&_.Ub(this.hostElement,"yt-dismissible-item-dismissed")};
_.J.onPopupClosed=function(p){var y;((y=p.detail)==null?void 0:y.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.$w(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.J.handleInlineSurveyRatingSelect=function(p,y){var l=this;this.selectedRatingEndpoint=p;this.followUpSurveyCommand=y;this.expanded=!!p;this.getOptionRenderers().forEach(function(q,t){l.notifyPath("followUpSurveyCommand.followUpOptions."+t+".checkboxSurveyOptionRenderer.checked");l.set("followUpSurveyCommand.followUpOptions."+t+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),p=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.$w(this.hostElement,"yt-reel-non-video-content-dismissal-command",[p]))};
_.J.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.$w(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var p,y=(p=this.data)==null?void 0:p.dismissalEndpoint;y&&this.ytComponentBehavior.resolveCommand(y)}};
_.J.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.$w(this.hostElement,"yt-close-popup-action"))};
_.J.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var p=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{p=this.getOptionRenderers().filter(function(q){return q.checked});
if(p.length===0)return;p=p.map(function(q){return q.responseEndpoint})}var y=[];
p.forEach(function(q,t){t!==0&&(q=_.G(q,_.dU))&&q.feedbackToken&&y.push(q.feedbackToken)});
if(p=p[0]){var l={};y.length>0&&(l.extra_feedback_tokens=y);this.ytComponentBehavior.resolveCommand(p,{form:l})}}};
_.J.getOptionRenderers=function(){var p=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(y){p.isSingleSelect=!!_.G(y,Bg6);return p.isSingleSelect?_.G(y,Bg6):_.G(y,fzT)}):[]};
_.J.handleInlineSurveyOptionSelect=function(p){p=this.optionSelector.indexOf(p);p!==-1&&this.optionSelector.selectIndex(p)};
_.J.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.J.maybeGetBackgroundColor=function(p){return this.isDarkMode?p.section2Color:p.section3Color};
_.J.colorPaletteChanged=function(){var p=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;p=p&&this.maybeGetBackgroundColor(p);this.dismissibleEl.style.backgroundColor=!p||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.z5(p)};
_.Jh.Object.defineProperties(CV.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
CV.prototype.colorPaletteChanged=CV.prototype.colorPaletteChanged;CV.prototype.onPopupClosed=CV.prototype.onPopupClosed;CV.prototype.handleRequestCompletion=CV.prototype.handleRequestCompletion;CV.prototype.dataChanged=CV.prototype.dataChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],CV.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],CV.prototype,"actionHandlerBehavior",void 0);
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],CV.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],CV.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.rd("#follow-up-survey-options"),_.x("design:type",Object)],CV.prototype,"optionSelector",void 0);_.H([_.Q(),_.x("design:type",Object)],CV.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Object)],CV.prototype,"disableAnimation",void 0);_.H([_.Q(),_.x("design:type",Object)],CV.prototype,"isToggleOption",void 0);_.H([_.Q(),_.x("design:type",Object)],CV.prototype,"followUpSurveyCommand",void 0);_.H([_.Q(),_.x("design:type",Object)],CV.prototype,"selectedRatingEndpoint",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],CV.prototype,"expanded",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],CV.prototype,"isSlimlineSurveyFollowUp",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],CV.prototype,"isShortsStyle",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],CV.prototype,"styleOverrideAttribute",void 0);_.H([_.Q(),_.x("design:type",Boolean)],CV.prototype,"isSingleSelect",void 0);_.H([_.Q(),_.x("design:type",Object)],CV.prototype,"isDarkMode",void 0);
_.H([_.Q(),_.x("design:type",Object)],CV.prototype,"lightColorPalette",void 0);_.H([_.Q(),_.x("design:type",Object)],CV.prototype,"darkColorPalette",void 0);_.H([_.g("selectedRatingEndpoint","isShortsStyle"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],CV.prototype,"isOptionSelected",null);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],CV.prototype,"roundedContainer",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],CV.prototype,"improveShortsResponseRate",void 0);_.H([_.rd("#dismissible"),_.x("design:type",HTMLElement)],CV.prototype,"dismissibleEl",void 0);_.H([_.rd("#dismiss-button yt-icon-button"),_.x("design:type",HTMLElement)],CV.prototype,"dismissButtonEl",void 0);_.H([_.rd("#inline-survey-header yt-icon-button"),_.x("design:type",HTMLElement)],CV.prototype,"inlineHeaderDismissButtonEl",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CV.prototype,"dataChanged",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CV.prototype,"handleRequestCompletion",null);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],CV.prototype,"onPopupClosed",null);
_.H([_.gd("darkColorPalette","lightColorPalette","isDarkMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CV.prototype,"colorPaletteChanged",null);_.H([_.k({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],CV);
_.D(CV,"ytd-inline-survey-renderer",function(){if(OSu!==void 0)return OSu;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-inline-survey-renderer">\n  <div class="survey-wrapper style-scope ytd-inline-survey-renderer">\n    <div id="star-survey" class="style-scope ytd-inline-survey-renderer">\n      <div id="inline-survey-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="title" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.title)]]</span>\n          <span id="subtitle" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.subtitle)]]</span>\n        </h2>\n        <yt-icon-button hidden="[[expanded]]" label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="inline-survey-compact-video-renderer" class="style-scope ytd-inline-survey-renderer"></div>\n      <div id="rating-survey" class="style-scope ytd-inline-survey-renderer"></div>\n    </div>\n    <div id="follow-up-survey" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n      <div id="follow-up-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="follow-up-title" class="style-scope ytd-inline-survey-renderer">\n            [[getSimpleString(followUpSurveyCommand.followUpText)]]\n          </span>\n        </h2>\n      </div>\n      <iron-selector id="follow-up-survey-options" activate-event="" selected-attribute="checked" class="style-scope ytd-inline-survey-renderer">\n      </iron-selector>\n      <div id="submit-btn-footer" class="style-scope ytd-inline-survey-renderer">\n        <ytd-button-renderer id="submit-button" data="[[data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-inline-survey-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="skip-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="dismiss-button" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n    <yt-icon-button label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-inline-survey-renderer">\n  <div id="post-submit-message" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="continue-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return OSu=p},{mode:1});var zyA=["en-CA","en","es-MX","fr-CA"];_.YEO=_.aF(function(p){var y=_.RF(p,{isOverlay:!1,isModern:!1}),l=y.captionIconType,q=y.onClick;p=y.ariaLabel;var t=y.ariaPressed,E=y.isOverlay,e=y.isModern;y=_.sM("button",function(a){_.EO(a,127299)});
var C=_.Ff(function(a){_.JX(127299);q==null||q(a);return!1}),u={};
return _.R("ytm-closed-captioning-button",{class:_.ip("ytmClosedCaptioningButtonHost",(u.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return l()===-1&&E()},u.ytmClosedCaptioningButtonIconDisabled=function(){return l()===-1&&!E()},u))},_.R("button",{el:y,
class:"ytmClosedCaptioningButtonButton",title:p,"aria-label":p,"aria-pressed":t,"on:click":C},_.R(_.DR,{icon:function(){var a="",m=e();var U=m?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";m=m?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var b=_.w$().get("hl");U=!b||zyA.includes(b)?U:m;m=l();switch(m){case -1:case 0:a=U;break;case 1:a=U+"_FILLED";break;default:_.qL(m)}return a}})))},"nf");
_.YEO.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.$K=function(p){return function(y,l){var q=p||l.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(y,l,{get:function(){var t;return this.$?this.$[q]:(t=_.wd(this))==null?void 0:t.querySelector("#"+q)},
enumerable:!0,configurable:!0})}};_.jS=function(p){p=p===void 0?!1:p;_.Sr.call(this);this.pubSub_=new _.V$(p);_.P9(this,this.pubSub_)};
_.j6(_.jS,_.Sr);_.jS.prototype.subscribe=function(p,y,l){return this.isDisposed()?0:this.pubSub_.subscribe(p,y,l)};
_.jS.prototype.unsubscribe=function(p,y,l){return this.isDisposed()?!1:this.pubSub_.unsubscribe(p,y,l)};
_.jS.prototype.unsubscribeByKey=function(p){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(p)};
_.jS.prototype.publish=function(p,y){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var kxw=function(){_.yH("ypcRedeemFlowStarted")},CD=function(p){_.yH("ypcRedeemFlowFailed",void 0,void 0,void 0,p)},NA1=function(p,y,l){y&&l&&(p.videos.forEach(function(q){q.videoId===y&&(q.itemId=l)}),p.recommendedVideos.forEach(function(q){q.videoId===y&&(q.itemId=l)}))};var Dj1;var H1T;/*

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
*/
_.fv({_template:function(){if(H1T!==void 0)return H1T;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_image.tp.yt.iron.image.css.js--\x3e<a id="baseURIAnchor" href="#" class="style-scope tp-yt-iron-image"></a>\n<div id="sizedImgDiv" role="img" hidden$="[[_computeImgDivHidden(sizing)]]" aria-hidden$="[[_computeImgDivARIAHidden(alt)]]" aria-label$="[[_computeImgDivARIALabel(alt, src)]]" class="style-scope tp-yt-iron-image"></div>\n<img id="img" alt$="[[alt]]" hidden$="[[_computeImgHidden(sizing)]]" crossorigin$="[[crossorigin]]" on-load="_imgOnLoad" on-error="_imgOnError" class="style-scope tp-yt-iron-image">\n<div id="placeholder" hidden$="[[_computePlaceholderHidden(preload, fade, loading, loaded)]]" class$="[[_computePlaceholderClassName(preload, fade, loading, loaded)]] style-scope tp-yt-iron-image"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;Dj1===void 0&&(Dj1=document.createElement("template"));var q=Dj1;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return H1T=p},
is:"tp-yt-iron-image",properties:{src:{type:String,value:""},alt:{type:String,value:null},crossorigin:{type:String,value:null},preventLoad:{type:Boolean,value:!1},sizing:{type:String,value:null,reflectToAttribute:!0},position:{type:String,value:"center"},preload:{type:Boolean,value:!1},placeholder:{type:String,value:null,observer:"_placeholderChanged"},fade:{type:Boolean,value:!1},loaded:{notify:!0,readOnly:!0,type:Boolean,value:!1},loading:{notify:!0,readOnly:!0,type:Boolean,value:!1},error:{notify:!0,
readOnly:!0,type:Boolean,value:!1},width:{observer:"_widthChanged",type:Number,value:null},height:{observer:"_heightChanged",type:Number,value:null}},observers:["_transformChanged(sizing, position)","_loadStateObserver(src, preventLoad)"],created:function(){this._resolvedSrc=""},
_imgOnLoad:function(){this.$.img.src===this._resolveSrc(this.src)&&(this._setLoading(!1),this._setLoaded(!0),this._setError(!1))},
_imgOnError:function(){this.$.img.src===this._resolveSrc(this.src)&&(this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",this._setLoading(!1),this._setLoaded(!1),this._setError(!0))},
_computePlaceholderHidden:function(){return!this.preload||!this.fade&&!this.loading&&this.loaded},
_computePlaceholderClassName:function(){return this.preload&&this.fade&&!this.loading&&this.loaded?"faded-out":""},
_computeImgDivHidden:function(){return!this.sizing},
_computeImgDivARIAHidden:function(){return this.alt===""?"true":void 0},
_computeImgDivARIALabel:function(){return this.alt!==null?this.alt:this.src===""?"":this._resolveSrc(this.src).replace(/[?|#].*/g,"").split("/").pop()},
_computeImgHidden:function(){return!!this.sizing},
_widthChanged:function(){this.style.width=isNaN(this.width)?this.width:this.width+"px"},
_heightChanged:function(){this.style.height=isNaN(this.height)?this.height:this.height+"px"},
_loadStateObserver:function(p,y){var l=this._resolveSrc(p);l!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",p===""||y?this._setLoading(!1):(this._resolvedSrc=l,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var p=this.$.sizedImgDiv.style,y=this.$.placeholder.style;p.backgroundSize=y.backgroundSize=this.sizing;p.backgroundPosition=y.backgroundPosition=this.sizing?this.position:"";p.backgroundRepeat=y.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(p){p=_.ap(p,this.$.baseURIAnchor.href);p.length>=2&&p[0]==="/"&&p[1]!=="/"&&(p=(location.origin||location.protocol+"//"+location.host)+p);return p}});var TAA;var xjO;_.fv({_template:function(){if(xjO!==void 0)return xjO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-card--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_card.tp.yt.paper.card.css.js--\x3e<div class="header style-scope tp-yt-paper-card">\n  <tp-yt-iron-image hidden$="[[!image]]" aria-hidden$="[[_isHidden(image)]]" src="[[image]]" alt="[[alt]]" placeholder="[[placeholderImage]]" preload="[[preloadImage]]" fade="[[fadeImage]]" class="style-scope tp-yt-paper-card"></tp-yt-iron-image>\n  <div hidden$="[[!heading]]" class$="title-text [[_computeHeadingClass(image)]] style-scope tp-yt-paper-card">\n    [[heading]]\n  </div>\n</div>\n\n<slot class="style-scope tp-yt-paper-card"></slot>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;TAA===void 0&&(TAA=document.createElement("template"));var q=TAA;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return xjO=p},
is:"tp-yt-paper-card",properties:{heading:{type:String,value:"",observer:"_headingChanged"},image:{type:String,value:""},alt:{type:String},preloadImage:{type:Boolean,value:!1},fadeImage:{type:Boolean,value:!1},placeholderImage:{type:String,value:null},elevation:{type:Number,value:1,reflectToAttribute:!0},animatedShadow:{type:Boolean,value:!1},animated:{type:Boolean,reflectToAttribute:!0,readOnly:!0,computed:"_computeAnimated(animatedShadow)"}},_isHidden:function(p){return p?"false":"true"},
_headingChanged:function(p){var y=this.getAttribute("heading"),l=this.getAttribute("aria-label");typeof l==="string"&&l!==y||this.setAttribute("aria-label",p)},
_computeHeadingClass:function(p){return p?" over-image":""},
_computeAnimated:function(p){return p}});var BAd=new _.uK("addRendererToItemSectionAction");var fN1;var ug=function(){return _.w.apply(this,arguments)||this};
_.A(ug,_.w);ug.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ug.prototype,"rendererBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],ug.prototype,"dismissibleItemBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ug.prototype,"rendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ug.prototype,"data",void 0);_.H([_.k({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],ug);
_.D(ug,"ytd-comment-history-entry-renderer",function(){if(fN1!==void 0)return fN1;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-comment-history-entry-renderer">\n  <yt-formatted-string class="summary style-scope ytd-comment-history-entry-renderer" link-inherit-color="" text="[[data.summary]]"></yt-formatted-string>\n  <ytd-expander class="content-expander style-scope ytd-comment-history-entry-renderer" hidden="[[!data.content]]" max-number-of-lines="4">\n    <yt-formatted-string class="content style-scope ytd-comment-history-entry-renderer" slot="content" force-default-style="" split-lines="" text="[[data.content]]">\n    </yt-formatted-string>\n    <span class="more-button style-scope ytd-comment-history-entry-renderer" slot="more-button">[[getSimpleString(data.readMoreText)]]</span>\n    <span class="less-button style-scope ytd-comment-history-entry-renderer" slot="less-button">[[getSimpleString(data.showLessText)]]</span>\n  </ytd-expander>\n  <yt-formatted-string class="timestamp style-scope ytd-comment-history-entry-renderer" text="[[data.timestamp]]"></yt-formatted-string>\n</div>\n<div id="menu" class="style-scope ytd-comment-history-entry-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return fN1=p},{mode:1});var vN7;_.ox("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.ox("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var R8=function(){return _.w.apply(this,arguments)||this};
_.A(R8,_.w);_.J=R8.prototype;_.J.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.onKeyUp=function(p){if(p.keyCode===13)this.onTap()};
_.J.onTap=function(){this.data.recordClickEndpoint&&_.WC().resolve(_.aK).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var p=this.data.navigationEndpoint;p&&_.G(p,_.zA)&&_.WC().resolve(_.aK).resolveCommand(p,{form:{element:this.hostElement}})};
_.J.readChanged=function(){var p;_.nv(this.hostElement,"unread",!((p=this.data)==null?0:p.read))};
_.J.dataChanged=function(){this.data&&_.nv(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.J.computeThumbnailSize=function(){var p;return((p=this.data)==null?0:p.highPriorityNotification)?32:48};
_.J.getEndpointURL=function(p){return p&&!_.G(p,_.zA)?this.componentBehavior.computeHref_(p):null};
_.J.getEndpointData=function(p){return p&&!_.G(p,_.zA)?p:null};
R8.prototype.computeThumbnailSize=R8.prototype.computeThumbnailSize;R8.prototype.dataChanged=R8.prototype.dataChanged;R8.prototype.readChanged=R8.prototype.readChanged;R8.prototype.onKeyUp=R8.prototype.onKeyUp;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],R8.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],R8.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],R8.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],R8.prototype,"data",void 0);_.H([_.Q({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.x("design:type",Number)],R8.prototype,"thumbnailSize",void 0);_.H([_.VU("keyup"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],R8.prototype,"onKeyUp",null);
_.H([_.gd("data.read"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],R8.prototype,"readChanged",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],R8.prototype,"dataChanged",null);_.H([_.gd("data.highPriorityNotification"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],R8.prototype,"computeThumbnailSize",null);
_.H([_.k({is:"ytd-notification-renderer",disableElementRegistration:!0})],R8);
_.D(R8,"ytd-notification-renderer",function(){if(vN7!==void 0)return vN7;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-notification-renderer" href$="[[getEndpointURL(data.navigationEndpoint)]]" data="[[getEndpointData(data.navigationEndpoint)]]" on-tap="onTap" tabindex="0" role="link">\n  <div id="new" class="style-scope ytd-notification-renderer"></div>\n  <yt-img-shadow id="avatar" class="thumbnail  style-scope ytd-notification-renderer" height="[[thumbnailSize]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailSize]]">\n  </yt-img-shadow>\n  <div class="text style-scope ytd-notification-renderer">\n    <yt-formatted-string class="message style-scope ytd-notification-renderer" text="[[data.shortMessage]]"></yt-formatted-string>\n    <div id="call-to-action" hidden="[[!data.highPriorityNotificationActionButton]]" class="style-scope ytd-notification-renderer"></div>\n    <div class="metadata style-scope ytd-notification-renderer">\n      <yt-formatted-string text="[[data.footer]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n      <yt-formatted-string text="[[data.sentTimeText]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" if="[[data.videoThumbnail]]" class="style-scope ytd-notification-renderer">\n    <div class="thumbnail-container style-scope ytd-notification-renderer">\n      <yt-img-shadow thumbnail="[[data.videoThumbnail]]" width="86" class="style-scope ytd-notification-renderer"></yt-img-shadow>\n    </div>\n  </template>\n</a>\n<div id="menu" class="style-scope ytd-notification-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return vN7=p},{mode:1});var X1L;var Wj=function(){return _.w.apply(this,arguments)||this};
_.A(Wj,_.w);Wj.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"}}}};
Wj.prototype.computeActionButtonClass=function(p){return!p.actionButtons||p.actionButtons.length<=1?"single-button":p.description?"vertical-buttons":"horizontal-buttons"};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Wj.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Wj.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Wj.prototype,"data",void 0);_.H([_.k({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],Wj);
_.D(Wj,"ytd-playlist-show-metadata-renderer",function(){if(X1L!==void 0)return X1L;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-show-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-desc" class="style-scope ytd-playlist-show-metadata-renderer">\n  <div id="dropdown" class="style-scope ytd-playlist-show-metadata-renderer"></div>\n  <ytd-expander class="description style-scope ytd-playlist-show-metadata-renderer" max-number-of-lines="2">\n    <yt-formatted-string id="description" class="content style-scope ytd-playlist-show-metadata-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-playlist-show-metadata-renderer" slot="more-button" role="button" text="[[data.showMoreText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="less-button style-scope ytd-playlist-show-metadata-renderer" slot="less-button" role="button" text="[[data.showLessText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n<div id="action-buttons" class$="[[computeActionButtonClass(data)]] style-scope ytd-playlist-show-metadata-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return X1L=p},{mode:1});var dj6;_.ox("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var a8=function(){return _.w.apply(this,arguments)||this};
_.A(a8,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],a8.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],a8.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],a8.prototype,"data",void 0);_.H([_.k({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],a8);
_.D(a8,"ytd-purchase-item-renderer",function(){if(dj6!==void 0)return dj6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint purchase-endpoint style-scope ytd-purchase-item-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumb-container style-scope ytd-purchase-item-renderer">\n    <yt-img-shadow fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-purchase-item-renderer"></yt-img-shadow>\n  </div>\n  <div class="details style-scope ytd-purchase-item-renderer">\n    <yt-formatted-string class="title style-scope ytd-purchase-item-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="price-text style-scope ytd-purchase-item-renderer" no-endpoints="" text="[[data.priceText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="manage-subscription-text style-scope ytd-purchase-item-renderer" force-default-style="" text="[[data.manageSubscriptionText]]">\n    </yt-formatted-string>\n  </div>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return dj6=p},{mode:1});var O1m;var oNL={};oNL.YtSimpleTextSectionBehavior={properties:{data:Object,layoutStyle:{type:String,computed:"computeLayoutStyle_(data.layoutStyle)",reflectToAttribute:!0},role:{type:String,computed:"computeRole_(data.layoutStyle)",reflectToAttribute:!0}},created:function(){this.LAYOUT_STYLE_PREFIX_="SIMPLE_TEXT_LAYOUT_STYLE_"},
computeLayoutStyle_:function(p){if(p)return p.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(p){if(p==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.ox("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var m0=function(){return _.w.apply(this,arguments)||this};
_.A(m0,_.w);m0.prototype.onYtNavigate=function(p){var y=this.openPopupBehavior.getNavigationEndpointPopupAction(p.detail.endpoint);y&&(p.stopPropagation(),this.openPopupBehavior.openPopup(y))};
m0.prototype.onYtNavigate=m0.prototype.onYtNavigate;_.H([_.V(oNL.YtSimpleTextSectionBehavior),_.x("design:type",Object)],m0.prototype,"ytSimpleTextSectionBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],m0.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.RP),_.x("design:type",Object)],m0.prototype,"openPopupBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],m0.prototype,"data",void 0);
_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],m0.prototype,"onYtNavigate",null);_.H([_.k({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],m0);
_.D(m0,"ytd-simple-text-section-renderer",function(){if(O1m!==void 0)return O1m;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-text-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.lines]]" class="style-scope ytd-simple-text-section-renderer">\n  <yt-formatted-string class="text style-scope ytd-simple-text-section-renderer" text="[[item]]"></yt-formatted-string>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return O1m=p},{mode:1});var zt9;_.ox("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var U7=function(){return _.w.apply(this,arguments)||this};
_.A(U7,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],U7.prototype,"data",void 0);_.H([_.k({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],U7);
_.D(U7,"ytd-unlimited-page-feature-info-renderer",function(){if(zt9!==void 0)return zt9;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-page-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-unlimited-page-feature-info-renderer">\n  <yt-formatted-string class="info-head style-scope ytd-unlimited-page-feature-info-renderer" text="[[data.title]]"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-unlimited-page-feature-info-renderer">\n    <yt-formatted-string class="info-desc style-scope ytd-unlimited-page-feature-info-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</div>\n<yt-img-shadow class="icon-thumbnail style-scope ytd-unlimited-page-feature-info-renderer" height="194" thumbnail="[[data.iconThumbnail]]" width="390">\n</yt-img-shadow>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return zt9=p},{mode:1});var YDR;var INi;var $s=function(){return _.w.apply(this,arguments)||this};
_.A($s,_.w);$s.prototype.dataChanged=function(){if(this.data){var p=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);p&&(p=_.nY(p,screen.width),this.hostElement.style.backgroundImage="url("+p+")")}};
$s.prototype.dataChanged=$s.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],$s.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],$s.prototype,"data",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$s.prototype,"dataChanged",null);_.H([_.k({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],$s);
_.D($s,"ytd-post-redemption-section-renderer",function(){if(INi!==void 0)return INi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-redemption-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="img-container style-scope ytd-post-redemption-section-renderer">\n  <yt-img-shadow id="logo" height="25" thumbnail="[[data.logoImage.thumbnailLandscapePortraitRenderer.portrait]]" class="style-scope ytd-post-redemption-section-renderer">\n  </yt-img-shadow>\n</div>\n<div class="container style-scope ytd-post-redemption-section-renderer">\n  <div class="title style-scope ytd-post-redemption-section-renderer">[[getSimpleString(data.title)]]</div>\n  <ytd-button-renderer id="redeem-button" data="[[data.button.buttonRenderer]]" class="style-scope ytd-post-redemption-section-renderer">\n  </ytd-button-renderer>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return INi=p},{mode:1});var pgT;var jX=function(){return _.w.apply(this,arguments)||this};
_.A(jX,_.w);jX.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],jX.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],jX.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],jX.prototype,"data",void 0);_.H([_.k({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],jX);
_.D(jX,"ytd-ypc-post-redemption-renderer",function(){if(pgT!==void 0)return pgT;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-post-redemption-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="store-value-balance" class="style-scope ytd-ypc-post-redemption-renderer">[[getSimpleString(data.storeValueBalance)]]</div>\n<div id="contents" class="style-scope ytd-ypc-post-redemption-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return pgT=p},{mode:1});_.ox("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var bg=function(){var p=_.w.apply(this,arguments)||this;p.MIN_CODE_LENGTH=12;p.MAX_CODE_LENGTH=24;return p};
_.A(bg,_.w);_.J=bg.prototype;_.J.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.J.created=function(){this.riskService=new _.fMt;this.loadPaymentThenable=_.Xgo(_.OY("YPC_MB_URL"))};
_.J.ready=function(){var p=this;this.code.addEventListener("keypress",function(y){p.onCodeInputKeypress(y)})};
_.J.dataChanged=function(){var p=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(y){y=_.c(y);for(var l=y.next();!l.done;l=y.next())l=l.value,l.type==="attributes"&&l.attributeName==="dark"&&p.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.J.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var p=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+p+")")}};
_.J.computeRedeemButton=function(p){(p=this.get("redeemButton.buttonRenderer",p))&&(p=Object.assign({},p,{serviceEndpoint:void 0}));return p};
_.J.onRedeemButtonTap=function(p){p.stopPropagation();kxw();this.redeemCode()};
_.J.redeemCode=function(){var p=this;this.isLoading=!0;var y=this.riskService.init();_.Ni([y,this.loadPaymentThenable]).then(function(){var l=p.data.redeemButton.buttonRenderer.serviceEndpoint,q=_.vML(),t=payments.business.integration.ClientTokenFactory.createClientToken(_.G(l,_.xCN).countryCode,q);q={c:p.code.value.trim(),rd:window.btoa(q),ctk:t};l&&_.WC().resolve(_.aK).resolveCommand(l,{form:Object.assign({},q,{element:p.hostElement})})},function(){p.showGenericError();
CD("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.zi(Error("ho"))})};
_.J.onYtServiceRequestCompleted=function(p){p.stopPropagation();this.isLoading=!1;var y,l;this.errorMessage=(y=p.detail)==null?void 0:(l=y.data)==null?void 0:l.errorMessage;var q,t;this.postRedemptionRenderer=(q=p.detail)==null?void 0:(t=q.data)==null?void 0:t.renderer;var E,e;if(p=(E=p.detail)==null?void 0:(e=E.data)==null?void 0:e.redirectEndpoint)this.isLoading=!0,_.Ub(this.hostElement,"yt-navigate",{endpoint:p});this.errorMessage?CD("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
p)&&_.yH("ypcRedeemFlowSucceeded")};
_.J.onYtServiceRequestError=function(p){p.stopPropagation();this.isLoading=!1;if(p=this.get("detail.error.message",p))this.errorMessage=_.EK(p);CD("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.J.onInvokeInstrumentManagerActionCompleted=function(p){p.stopPropagation();this.redeemCode()};
_.J.onInvokeInstrumentManagerActionError=function(p){p.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",p)){case "instrumentManagerLoadError":this.showGenericError();CD("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();CD("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.yH("ypcRedeemFlowCancelled")}};
_.J.onInput=function(){var p=this;_.tl(this,"onInput",function(){var y=p.code.value.trim();p.redeemButtonDisabled=y.length<p.MIN_CODE_LENGTH||y.length>p.MAX_CODE_LENGTH},200)};
_.J.onCodeInputKeypress=function(p){p.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(kxw(),this.redeemCode())};
_.J.computeImageUrl=function(p){return p?_.nY(p.thumbnails,600):null};
_.J.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
bg.prototype.onInvokeInstrumentManagerActionError=bg.prototype.onInvokeInstrumentManagerActionError;bg.prototype.onInvokeInstrumentManagerActionCompleted=bg.prototype.onInvokeInstrumentManagerActionCompleted;bg.prototype.onYtServiceRequestError=bg.prototype.onYtServiceRequestError;bg.prototype.onYtServiceRequestCompleted=bg.prototype.onYtServiceRequestCompleted;bg.prototype.dataChanged=bg.prototype.dataChanged;
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],bg.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],bg.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],bg.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],bg.prototype,"isLoading",void 0);_.H([_.Q(),_.x("design:type",Boolean)],bg.prototype,"redeemButtonDisabled",void 0);
_.H([_.Q(),_.x("design:type",Object)],bg.prototype,"errorMessage",void 0);_.H([_.Q(),_.x("design:type",Object)],bg.prototype,"postRedemptionRenderer",void 0);_.H([_.Q(),_.x("design:type",Object)],bg.prototype,"observer",void 0);_.H([_.rd("#code"),_.x("design:type",HTMLInputElement)],bg.prototype,"code",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bg.prototype,"dataChanged",null);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],bg.prototype,"onYtServiceRequestCompleted",null);_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],bg.prototype,"onYtServiceRequestError",null);
_.H([_.VU("yt-invoke-instrument-manager-action-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],bg.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.H([_.VU("yt-invoke-instrument-manager-action-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],bg.prototype,"onInvokeInstrumentManagerActionError",null);_.H([_.k({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],bg);
_.D(bg,"ytd-redeem-code-renderer",function(){if(YDR!==void 0)return YDR;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-redeem-code-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" hidden="[[postRedemptionRenderer]]" class="style-scope ytd-redeem-code-renderer">\n  <div class="title style-scope ytd-redeem-code-renderer">[[getSimpleString(data.title)]]</div>\n  <div class="subtitle style-scope ytd-redeem-code-renderer">[[getSimpleString(data.subTitle)]]</div>\n  <input id="code" type="text" autocomplete="off" maxlength="24" on-input="onInput" size="24" placeholder="[[getSimpleString(data.placeholderText)]]" slot="input" class="style-scope ytd-redeem-code-renderer">\n  <yt-formatted-string id="error-message" hidden="[[!errorMessage]]" text="[[errorMessage]]" class="style-scope ytd-redeem-code-renderer">\n      </yt-formatted-string>\n  <yt-formatted-string id="terms" text="[[data.termsConditions]]" class="style-scope ytd-redeem-code-renderer"></yt-formatted-string>\n  \n  <ytd-button-renderer id="redeem-button" data="[[computeRedeemButton(data)]]" disabled="[[redeemButtonDisabled]]" on-tap="onRedeemButtonTap" class="style-scope ytd-redeem-code-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="success-page" class="style-scope ytd-redeem-code-renderer"></div>\n<tp-yt-paper-spinner-lite id="loading" active="[[isLoading]]" class="style-scope ytd-redeem-code-renderer">\n</tp-yt-paper-spinner-lite>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return YDR=p},{mode:1});var ydd;_.ox("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var nD=function(){var p=_.w.apply(this,arguments)||this;p.businessEmailDisplayState="HIDE_SECTION";return p};
_.A(nD,_.w);_.J=nD.prototype;_.J.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:{component:"yt-channel-external-link-view-model",params:{useSmallFont:!0}}}}}};
_.J.dataChanged=function(){this.data&&(this.data.businessEmailButton||this.data.signInForBusinessEmail)?this.data.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.data.businessEmail&&(this.businessEmail=this.data.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.J.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.J.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.zc(_.FoN),this.businessEmailDisplayState="CAPTCHA"))};
_.J.onYtServiceRequestCompleted=function(p){var y;if((y=p.detail.data)==null?0:y.businessEmail)this.businessEmail=p.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var l;if((l=p.detail.data)==null?0:l.errorMessage)this.businessEmailErrorMessage=p.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.J.computeEmailHref=function(p){return"mailto:"+p};
_.J.computeSafeUrl=function(p){if(p)return _.XX(p)};
_.J.onBusinessEmailCaptchaSubmit=function(){var p;(p=this.data)!=null&&p.onBusinessEmailRevealClickCommand&&(p=this.JSC$21436_captchaTextarea.value)&&(p={recaptcha_response_token:p,channel_id:this.data.channelId},_.WC().resolve(_.aK).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},p,{element:this.hostElement})}))};
_.J.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Jh.Object.defineProperties(nD.prototype,{hideDetailsSection:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.country&&!this.data.businessEmailButton}},
shouldShowNewLinks:{configurable:!0,enumerable:!0,get:function(){var p,y;return!((p=this.data)==null||!p.primaryLinks)&&!((y=this.data)==null?0:y.links)&&this.data.primaryLinks.every(function(l){return l.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var p,y;return!((p=this.data)==null||!p.primaryLinks)&&!((y=this.data)==null?0:y.links)&&!this.shouldShowNewLinks}}});
nD.prototype.onYtServiceRequestCompleted=nD.prototype.onYtServiceRequestCompleted;nD.prototype.dataChanged=nD.prototype.dataChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],nD.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],nD.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],nD.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.rd("#g-recaptcha-response"),_.x("design:type",HTMLTextAreaElement)],nD.prototype,"JSC$21436_captchaTextarea",void 0);_.H([_.Q(),_.x("design:type",Object)],nD.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",String)],nD.prototype,"businessEmailDisplayState",void 0);_.H([_.Q(),_.x("design:type",String)],nD.prototype,"businessEmail",void 0);_.H([_.Q(),_.x("design:type",String)],nD.prototype,"businessEmailErrorMessage",void 0);
_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],nD.prototype,"hideDetailsSection",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nD.prototype,"dataChanged",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],nD.prototype,"shouldShowNewLinks",null);_.H([_.g("data","shouldShowLinks"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],nD.prototype,"shouldShowLegacyLinks",null);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],nD.prototype,"onYtServiceRequestCompleted",null);_.H([_.k({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],nD);
_.D(nD,"ytd-channel-about-metadata-renderer",function(){if(ydd!==void 0)return ydd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-about-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <div id="description-container" hidden="[[!data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.descriptionLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="bio-container" hidden="[[!data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistBioLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="bio" split-lines="" text="[[data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="photos-container" hidden="[[!data.artistGalleryPhotos]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistGalleryLabel]]">\n    </yt-formatted-string>\n    <div id="photos" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.artistGalleryPhotos]]" strip-whitespace="" class="style-scope ytd-channel-about-metadata-renderer">\n        <a href="[[computeSafeUrl(item.originalPhotoUrl)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">\n          <img src$="[[computeSafeUrl(item.thumbnailUrl)]]" alt="" class="style-scope ytd-channel-about-metadata-renderer">\n        </a>\n      </template>\n    </div>\n  </div>\n  <div id="details-container" hidden="[[hideDetailsSection]]" class="style-scope ytd-channel-about-metadata-renderer">\n     <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.detailsLabel]]">\n    </yt-formatted-string>\n    <table class="style-scope ytd-channel-about-metadata-renderer">\n      <tbody class="style-scope ytd-channel-about-metadata-renderer"><tr hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.businessEmailLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.signInForBusinessEmail]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <ytd-button-renderer align-by-text="" data="[[data.businessEmailButton.buttonRenderer]]" on-click="onBusinessEmailClick" class="style-scope ytd-channel-about-metadata-renderer">\n          </ytd-button-renderer>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-channel-about-metadata-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-channel-about-metadata-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-channel-about-metadata-renderer">\n              <yt-formatted-string text="[[data.businessEmailRevealSubmitButtonLabel]]" class="style-scope ytd-channel-about-metadata-renderer">\n              </yt-formatted-string>\n            </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <a id="email" href$="[[computeEmailHref(businessEmail)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">[[businessEmail]]</a>\n        </td>\n      </tr>\n      <tr hidden="[[!data.country]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.countryLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n        <td class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.country]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="links-container" hidden="[[!data.links]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n    </div>\n  </div>\n  <div id="new-links-container" hidden="[[!shouldShowNewLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="custom-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <div class="custom-link style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string class="custom-link-title style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n          <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n            [[link.displayUrl]]\n          </a>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div id="legacy-links-container" hidden="[[!shouldShowLegacyLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="legacy-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n          <yt-formatted-string class="info-text style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n        </a>\n      </template>\n    </div>\n  </div>\n</div>\n<div id="right-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.statsLabel]]">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.joinedDateText]]" text="[[data.joinedDateText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.viewCountText]]" no-styles="" text="[[data.viewCountText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.phoneVerifiedText]]" text="[[data.phoneVerifiedText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <div id="action-buttons" class="style-scope ytd-channel-about-metadata-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return ydd=p},{mode:1});var lMd;_.ox("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var G$=function(){return _.w.apply(this,arguments)||this};
_.A(G$,_.w);G$.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],G$.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],G$.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],G$.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Number)],G$.prototype,"lockupContainerType",void 0);_.H([_.Q(),_.x("design:type",String)],G$.prototype,"thumbnailFixedWidth",void 0);
_.H([_.k({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],G$);
_.D(G$,"ytd-channel-featured-content-renderer",function(){if(lMd!==void 0)return lMd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-featured-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-featured-content-renderer">\n  <h3 class="style-scope ytd-channel-featured-content-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n  </h3>\n  <yt-formatted-string id="subtitle" text="[[data.subTitle]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n</div>\n<div id="contents" class="style-scope ytd-channel-featured-content-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return lMd=p},{mode:1});var qqR;_.ox("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Pj=function(){var p=_.w.apply(this,arguments)||this;p.roundContainer=!0;p.amsterdamEnabled=_.n("enable_desktop_amsterdam_info_panels");return p};
_.A(Pj,_.w);_.J=Pj.prototype;_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.J.dataChanged=function(){this.imageWidth=this.imageHeight=24;var p=this.data;p.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!p.style&&p.image&&p.image.thumbnails.length&&(p=p.image.thumbnails[0],this.imageWidth=p.width||0,this.imageHeight=p.height||0)};
_.J.computeSource=function(p){return p.secondarySource?_.JB(p.secondarySource):_.JB(p.source)};
_.J.computeClarifyStyle=function(p){return p?p.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.J.isLargeStyle=function(p){return p==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.J.computeBackgroundStyle=function(p){return p?p.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.J.computeHasActionButton=function(p){return!!p.actionButton};
_.J.computeHasBottomSection=function(p){return!!p.ctaHasBottomSection};
_.J.computeIsSourceMissing=function(p){return p.ctaHasBottomSection===!1?!0:p&&this.computeSource(p)?!1:!0};
_.J.computeSecondaryEndpoint=function(p){return p.secondaryEndpoint||p.endpoint};
Pj.prototype.dataChanged=Pj.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Pj.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Pj.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Number)],Pj.prototype,"imageWidth",void 0);_.H([_.Q(),_.x("design:type",Number)],Pj.prototype,"imageHeight",void 0);
_.H([_.Q({computed:"computeSecondaryEndpoint(data)"}),_.x("design:type",Object)],Pj.prototype,"secondaryEndpoint",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.x("design:type",Boolean)],Pj.prototype,"hasActionButton",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.x("design:type",Boolean)],Pj.prototype,"hasBottomSection",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.x("design:type",Boolean)],Pj.prototype,"missingSource",void 0);_.H([_.Q({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],Pj.prototype,"icon",void 0);_.H([_.Q({computed:"computeIcon_(data.secondaryIcon)"}),_.x("design:type",String)],Pj.prototype,"secondaryIcon",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.x("design:type",String)],Pj.prototype,"clarifyStyle",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.x("design:type",String)],Pj.prototype,"backgroundStyle",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Pj.prototype,"roundContainer",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Pj.prototype,"amsterdamEnabled",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pj.prototype,"dataChanged",null);
_.H([_.k({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Pj);
_.D(Pj,"ytd-clarification-renderer",function(){if(qqR!==void 0)return qqR;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clarification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-clarification-renderer">\n  \n  <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n    <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer"></yt-icon>\n    <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n    </yt-img-shadow>\n  </a>\n  <div class="text style-scope ytd-clarification-renderer">\n    \n    <a id="section-header" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer">\n      </yt-icon>\n      <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string class="section-title style-scope ytd-clarification-renderer" text="[[data.sectionTitle]]">\n      </yt-formatted-string>\n    </a>\n    <div class="content style-scope ytd-clarification-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n        <div class="content-title style-scope ytd-clarification-renderer">\n          [[getSimpleString(data.contentTitle)]]\n          <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </div>\n        <yt-formatted-string class="description style-scope ytd-clarification-renderer" text="[[data.text]]">\n        </yt-formatted-string>\n      </a>\n      <div id="action-button" class="style-scope ytd-clarification-renderer"></div>\n      <div id="menu" class="style-scope ytd-clarification-renderer"></div>\n    </div>\n    <a id="source-link" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(secondaryEndpoint)]]" data="[[secondaryEndpoint]]">\n      <div class="source style-scope ytd-clarification-renderer">\n        <yt-icon class="secondary-icon style-scope ytd-clarification-renderer" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]">\n        </yt-icon>\n        [[computeSource(data)]]\n        <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" hidden="[[secondaryIcon]]" icon="yt-icons:open_in_new" size="16"></yt-icon>\n      </div>\n    </a>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return qqR=p},{mode:1});var s_1;var tAT;var A1=function(){var p=_.w.apply(this,arguments)||this;p.amsterdamEnabled=_.n("enable_desktop_amsterdam_info_panels");return p};
_.A(A1,_.w);_.J=A1.prototype;_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.J.computeIcon=function(p){return p?"yt-icons:"+p.toLowerCase():null};
_.J.computeUseContacts=function(p){return!!p.contacts&&p.contacts.length>0};
_.J.computePhoneContact=function(p){var y,l;return(y=p.contacts)==null?void 0:(l=y.find(function(q){var t;return(q==null?void 0:(t=q.icon)==null?void 0:t.iconType)==="PHONE"}))==null?void 0:l.actionText};
_.J.computeSmsContact=function(p){var y,l;return(y=p.contacts)==null?void 0:(l=y.find(function(q){var t;return(q==null?void 0:(t=q.icon)==null?void 0:t.iconType)==="SMS"}))==null?void 0:l.actionText};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],A1.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],A1.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],A1.prototype,"amsterdamEnabled",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.x("design:type",Boolean)],A1.prototype,"useContacts",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.x("design:type",String)],A1.prototype,"phoneContact",void 0);_.H([_.k({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],A1);
_.D(A1,"ytd-single-action-emergency-support-renderer",function(){if(tAT!==void 0)return tAT;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-action-emergency-support-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-single-action-emergency-support-renderer">\n  <div id="text-content" class="style-scope ytd-single-action-emergency-support-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    <a class="yt-simple-endpoint style-scope ytd-single-action-emergency-support-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-formatted-string id="navigation-text" text="[[data.navigationText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      <yt-icon id="nav-icon" icon="[[computeIcon(data.navigationIcon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n    </a>\n    <yt-formatted-string id="details-text" text="[[data.detailsText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n  </div>\n  <div id="action-container" class="style-scope ytd-single-action-emergency-support-renderer">\n    <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n    <div id="contacts" hidden="[[!data.contacts]]" class="style-scope ytd-single-action-emergency-support-renderer">\n      <div id="phone-contact" hidden="[[!computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'PHONE\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n        <yt-formatted-string id="contact-text" text="[[computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n        <div id="sms-contact" hidden="[[!computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'SMS\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string id="contact-text" text="[[computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="action-text" class="action-text style-scope ytd-single-action-emergency-support-renderer" hidden="[[!data.actionText]]">\n      <yt-icon icon="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.actionText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    </div>\n    <div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return tAT=p},{mode:1});_.ox("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var Z$=function(){var p=_.w.apply(this,arguments)||this;p.roundedContainer=!0;p.amsterdamEnabled=_.n("enable_desktop_amsterdam_info_panels");return p};
_.A(Z$,_.w);Z$.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"}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Z$.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Z$.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Z$.prototype,"roundedContainer",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Z$.prototype,"amsterdamEnabled",void 0);
_.H([_.k({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],Z$);
_.D(Z$,"ytd-emergency-onebox-renderer",function(){if(s_1!==void 0)return s_1;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emergency-onebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-emergency-onebox-renderer">\n  <yt-formatted-string id="header" text="[[data.title]]" class="style-scope ytd-emergency-onebox-renderer"></yt-formatted-string>\n  <div id="options" class="style-scope ytd-emergency-onebox-renderer">\n    <div id="first-option" class="option style-scope ytd-emergency-onebox-renderer"></div>\n    <div id="second-option" class="option style-scope ytd-emergency-onebox-renderer" hidden="[[!data.secondOption]]"></div>\n  </div>\n</div>\n\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-emergency-onebox-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return s_1=p},{mode:1});var EMV;_.ox("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var MS=function(){return _.w.apply(this,arguments)||this};
_.A(MS,_.w);MS.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"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],MS.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],MS.prototype,"data",void 0);_.H([_.k({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],MS);
_.D(MS,"ytd-exploratory-results-renderer",function(){if(EMV!==void 0)return EMV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-exploratory-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-exploratory-results-renderer"></yt-formatted-string>\n<div id="contents" class="style-scope ytd-exploratory-results-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return EMV=p},{mode:1});var Jdd;_.ox("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var V9=function(){var p=_.w.apply(this,arguments)||this;p.messageData=null;return p};
_.A(V9,_.w);_.J=V9.prototype;_.J.onServiceRequestCompleted=function(p,y){p=y.actions||[];y=0;for(var l=p.length;y<l;y++){var q=p[y],t=void 0,E=void 0;if((t=_.G(q,_.Nv))==null?0:(E=t.item)==null?0:E.messageRenderer)this.messageData=_.G(q,_.Nv).item.messageRenderer}};
_.J.dataChanged=function(){var p=this.data;this.hostElement.hidden=!1;_.nv(this.hostElement,"is-channel",p&&!p.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.J.computeThumbnailWidth=function(p){return p?126:56};
_.J.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.J.onSubmitTap=function(){var p=this.data,y=this.selectedResponseIndex;p!==void 0&&y!==void 0&&(p=p.responses[y],p.responseData&&_.WC().resolve(_.aK).resolveCommand(p.responseData,{form:{element:this.hostElement}}))};
_.J.onDismissTap=function(){this.hostElement.hidden=!0;var p=this.data;p!==void 0&&p.dismissalEndpoint&&_.WC().resolve(_.aK).resolveCommand(p.dismissalEndpoint,{form:{element:this.hostElement}})};
_.J.updateSelectedResponseIndexFromBinding=function(p){this.selectedResponseIndex=p.detail.value};
V9.prototype.onSelectedResponseIndexChange=V9.prototype.onSelectedResponseIndexChange;V9.prototype.dataChanged=V9.prototype.dataChanged;V9.prototype.onServiceRequestCompleted=V9.prototype.onServiceRequestCompleted;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],V9.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],V9.prototype,"messageData",void 0);
_.H([_.Q(),_.x("design:type",Number)],V9.prototype,"selectedResponseIndex",void 0);_.H([_.rd("#submit-button"),_.x("design:type",HTMLButtonElement)],V9.prototype,"submitButton",void 0);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],V9.prototype,"onServiceRequestCompleted",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],V9.prototype,"dataChanged",null);
_.H([_.gd("selectedResponseIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],V9.prototype,"onSelectedResponseIndexChange",null);_.H([_.k({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],V9);
_.D(V9,"ytd-feedback-elicitation-single-question-renderer",function(){if(Jdd!==void 0)return Jdd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-elicitation-single-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="dismissible" hidden="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <div id="header" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <yt-formatted-string id="question" text="[[data.question]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n    <yt-icon-button on-tap="onDismissTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <template is="dom-if" if="[[data.channelTitle]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-feedback-elicitation-single-question-renderer" href$="[[computeHref(data.channelEndpoint)]]" data="[[data.channelEndpoint]]">\n      <yt-img-shadow thumbnail="[[data.channelAvatar]]" width="[[computeThumbnailWidth(data.avatarIs169)]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      </yt-img-shadow>\n      <div id="item-title" class="style-scope ytd-feedback-elicitation-single-question-renderer">[[getSimpleString(data.channelTitle)]]</div>\n    </a>\n  </template>\n  <template is="dom-if" if="[[!data.canSelectMultiple]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <template is="dom-repeat" items="[[data.responses]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n        <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n          <yt-formatted-string text="[[item.responseText]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n  </template>\n  <ytd-button-renderer id="submit-button" data="[[data.submitButton.buttonRenderer]]" on-tap="onSubmitTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  </ytd-button-renderer>\n</span>\n<span hidden="[[!messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <ytd-message-renderer data="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></ytd-message-renderer>\n</span>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Jdd=p},{mode:1});var cd9;var g_=function(){return _.w.apply(this,arguments)||this};
_.A(g_,_.w);g_.prototype.computeThumbnailWidth=function(p){return p?602:428};
g_.prototype.updateWideFromBinding=function(p){this.wide=p.detail.value};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],g_.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Boolean)],g_.prototype,"wide",void 0);_.H([_.k({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],g_);
_.D(g_,"ytd-newspaper-hero-video-renderer",function(){if(cd9!==void 0)return cd9;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="(min-width: 662px)" query-matches="[[wide]]" on-query-matches-changed="updateWideFromBinding" class="style-scope ytd-newspaper-hero-video-renderer">\n</iron-media-query>\n<ytd-thumbnail data="[[data]]" width="[[computeThumbnailWidth(wide)]]" class="style-scope ytd-newspaper-hero-video-renderer"></ytd-thumbnail>\n<div id="contents" class="style-scope ytd-newspaper-hero-video-renderer">\n  <a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-newspaper-hero-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-hero-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-hero-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="title style-scope ytd-newspaper-hero-video-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n</div>\n<div class="content style-scope ytd-newspaper-hero-video-renderer">\n  <slot class="style-scope ytd-newspaper-hero-video-renderer"></slot>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return cd9=p},{mode:1});var eXR;var Q9=function(){return _.w.apply(this,arguments)||this};
_.A(Q9,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Q9.prototype,"rendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Q9.prototype,"data",void 0);_.H([_.k({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],Q9);
_.D(Q9,"ytd-newspaper-mini-video-renderer",function(){if(eXR!==void 0)return eXR;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-mini-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="210" class="style-scope ytd-newspaper-mini-video-renderer"></ytd-thumbnail>\n<a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-mini-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-newspaper-mini-video-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-mini-video-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-mini-video-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-newspaper-mini-video-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return eXR=p},{mode:1});var hXu;_.ox("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var KD=function(){return _.w.apply(this,arguments)||this};
_.A(KD,_.w);KD.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"}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],KD.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],KD.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],KD.prototype,"data",void 0);_.H([_.k({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],KD);
_.D(KD,"ytd-newspaper-renderer",function(){if(hXu!==void 0)return hXu;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-contents" class="style-scope ytd-newspaper-renderer"></div>\n<div id="secondary-contents" class="style-scope ytd-newspaper-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return hXu=p},{mode:1});var Crd;_.ox("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var w_=function(){var p=_.w.apply(this,arguments)||this;p.isSegment=!1;p.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};p.nextContinuation={continuationType:"playlistVideoListContinuation"};return p};
_.A(w_,_.w);_.J=w_.prototype;_.J.attached=function(){_.WC();var p;(p=_.WC().resolve(_.RK(_.Wv)))!=null&&(p.playlistVideoListElement=this.hostElement)};
_.J.detached=function(){var p;(p=_.WC().resolve(_.RK(_.Wv)))!=null&&(p.playlistVideoListElement=void 0);p=_.WC().resolve(_.RK(_.GI));_.n("web_enable_voting_animation")&&p&&(p.parentElem=void 0,p.videos=[],p.continuationsPresent=!1,p.showRefreshPill=!1)};
_.J.configureRendererStamper=function(){return{"data.contents":{id:"contents",reuseComponents:!1,mapping:{playlistVideoRenderer:{component:"ytd-playlist-video-renderer",properties:{canReorder:"[[canReorder]]"}},continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.continuations":{id:"continuations",mapping:{nextContinuationData:"yt-next-continuation"}},"data.sortFilterMenu":{id:"sort-filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",
params:{closeOnActivate:"true"}}}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.J.dataChanged=function(){var p=_.WC().resolve(_.RK(_.GI));if(_.n("web_enable_voting_animation")&&this.data&&p){var y=_.jR(this.hostElement).querySelector("#contents");y&&(p.parentElem=y);p.addVideos(this.data.contents)}_.b$v(this.ytReorderableBehavior)};
_.J.onRendererstamperFinished=function(){this.canReorder&&_.nrv(this.ytReorderableBehavior,_.jR(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.J.onPlaylistReloading=function(){this.isReloading=!0};
_.J.onUpdateSetVideoId=function(p){if(p.detail&&this.data&&this.data.contents){var y=p.detail;p=this.data.contents.findIndex(function(t){var E;return((E=t.playlistVideoRenderer)==null?void 0:E.videoId)===y.videoId});
if(!(p<0)&&y.setVideoId&&(this.set("data.contents."+p+".playlistVideoRenderer.setVideoId",y.setVideoId),_.n("web_enable_voting_animation"))){var l;if(p=_.G((l=this.data.contents[p].playlistVideoRenderer)==null?void 0:l.engagementBar,_.RXm)){var q;(q=p.actions)==null||q.forEach(function(t){if(t=_.G(t,_.Woo))t.itemId=y.setVideoId})}(l=_.WC().resolve(_.RK(_.GI)))&&NA1(l,y.videoId,y.setVideoId)}}};
_.J.computeContentsClass=function(p){return p?"reloading":""};
_.J.computeIsSortable=function(p,y){return p&&y>0&&!this.isSegment&&!_.n("shorts_in_playlists_web")};
_.J.computeIsEditable=function(p){return p};
_.J.computeCanReorder=function(p){return p};
_.J.handlePlaylistRemoveVideosAction=function(p){if(this.get("playlistRemoveVideosAction.setVideoIds",p)&&this.data&&this.data.contents){p=_.G(p,_.diB).setVideoIds;for(var y=this.data.contents.length-1;y>=0;){var l=this.data.contents[y].playlistVideoRenderer;l&&l.setVideoId&&p.includes(l.setVideoId)&&this.splice("data.contents",y,1);y--}_.$w(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.J.updateIndices=function(){if(this.data&&this.data.contents)for(var p=0;p<this.data.contents.length;p++)this.set("data.contents."+p+".playlistVideoRenderer.index",_.EK(String(p+1)))};
_.J.handleDrop=function(p){p=p.currDragItem;var y=_.Ht(p.parentNode.childNodes,p),l=this.data.contents.splice(Number(_.JB(p.data.index))-1,1)[0];this.data.contents.splice(y,0,l);y=y?this.get("contents."+(y-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();p=this.buildReorderServiceEndpoint(p.data.setVideoId,y);this.ytComponentBehavior.resolveCommand(p)};
_.J.buildReorderServiceEndpoint=function(p,y){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",p),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",y),this.data.onReorderEndpoint):null};
_.J.handleUpdatePlaylistAction=function(p){var y;(p=_.G((y=_.G(p,_.Our))==null?void 0:y.updatedRenderer,_.W1Z))&&this.canReorder!==p.canReorder&&this.set("data.canReorder",p.canReorder);p&&p.contents&&(this.set("data.contents",p.contents),this.isReloading=!1);p&&p.continuations&&this.set("data.continuations",p.continuations)};
_.J.handleAddRendererToItemSectionAction=function(p){var y,l=(y=_.G(p,BAd))==null?void 0:y.renderer,q;l&&((q=_.G(p,BAd))==null?void 0:q.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,l),p=_.WC().resolve(_.RK(_.GI)),_.n("web_enable_voting_animation")&&p&&(l&&(y=_.u4l(l))&&p.recommendedVideos.push({itemId:y,videoId:_.aMj(l),voteCount:_.mq6(l),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.J.isVotingEnabledOnPlaylist=function(p){if(!p)return!1;p=_.c(p);for(p=p.next();!p.done;p=p.next()){var y=void 0;return!!_.G((y=p.value.playlistVideoRenderer)==null?void 0:y.engagementBar,_.RXm)}return!1};
_.J.onAppendContinuationItemsActionFinished=function(){var p;this.isVotingEnabledOnPlaylist((p=this.data)==null?void 0:p.contents)&&(this.updateIndices(),p=_.WC().resolve(_.RK(_.GI)),_.n("web_enable_voting_animation")&&p&&this.data&&p.addVideos(this.data.contents))};
_.J.updateVideoData=function(p){if(p.detail&&this.data&&this.data.contents){var y=p.detail;p=y.toIdx;var l=y.itemId,q=y.newVoteCount,t=y.voteStatus;y=y.hideItem;var E,e,C=(E=this.data)==null?void 0:(e=E.contents)==null?void 0:e.findIndex(function(U){return _.u4l(U)===l});
if(!(C<0)){E=this.data.contents[C];var u;if((u=E.playlistVideoRenderer)==null?0:u.voteCount)E.playlistVideoRenderer.voteCount=q;var a;if(u=_.G((a=E.playlistVideoRenderer)==null?void 0:a.engagementBar,_.RXm)){var m;(m=u.actions)==null||m.forEach(function(U){(U=_.G(U,_.Woo))&&U.initialState&&(U.initialState.votes=q,U.initialState.status=t)})}this.data.contents.splice(C,1);
y||this.data.contents.splice(p,0,E);this.updateIndices()}}};
w_.prototype.updateVideoData=w_.prototype.updateVideoData;w_.prototype.onAppendContinuationItemsActionFinished=w_.prototype.onAppendContinuationItemsActionFinished;w_.prototype.onUpdateSetVideoId=w_.prototype.onUpdateSetVideoId;w_.prototype.onPlaylistReloading=w_.prototype.onPlaylistReloading;w_.prototype.onRendererstamperFinished=w_.prototype.onRendererstamperFinished;w_.prototype.dataChanged=w_.prototype.dataChanged;
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],w_.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],w_.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],w_.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.Eo.YtNextContinuationBehavior),_.x("design:type",Object)],w_.prototype,"ytNextContinuationBehavior",void 0);
_.H([_.V(_.GNi),_.x("design:type",Object)],w_.prototype,"ytReorderableBehavior",void 0);_.H([_.V(_.tP),_.x("design:type",Object)],w_.prototype,"ytContinuationHandlerBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],w_.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],w_.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Boolean)],w_.prototype,"isReloading",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],w_.prototype,"isSegment",void 0);_.H([_.Q({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.x("design:type",Boolean)],w_.prototype,"isSortable",void 0);_.H([_.Q({computed:"computeIsEditable(data.isEditable)"}),_.x("design:type",Boolean)],w_.prototype,"isEditable",void 0);_.H([_.Q({computed:"computeCanReorder(data.canReorder)"}),_.x("design:type",Boolean)],w_.prototype,"canReorder",void 0);
_.H([_.Q({value:101}),_.x("design:type",Number)],w_.prototype,"scrollMargin",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w_.prototype,"dataChanged",null);_.H([_.VU("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w_.prototype,"onRendererstamperFinished",null);
_.H([_.VU("yt-playlist-reloading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w_.prototype,"onPlaylistReloading",null);_.H([_.VU("yt-update-set-video-id"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],w_.prototype,"onUpdateSetVideoId",null);
_.H([_.VU("yt-append-continuation-items-action-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w_.prototype,"onAppendContinuationItemsActionFinished",null);_.H([_.VU("yt-update-video-data-voting-animation"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],w_.prototype,"updateVideoData",null);_.H([_.k({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],w_);
_.D(w_,"ytd-playlist-video-list-renderer",function(){if(Crd!==void 0)return Crd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sort-filter-menu" hidden="[[!isSortable]]" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-playlist-video-list-renderer">\n  <tp-yt-paper-spinner-lite active="[[isReloading]]" class="style-scope ytd-playlist-video-list-renderer"></tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-playlist-video-list-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Crd=p},{mode:_.ZS("kevlar_poly_si_batch_j047")?1:2});var u4d;var ig=function(){return _.w.apply(this,arguments)||this};
_.A(ig,_.w);ig.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"}}}}};
ig.prototype.onTextWrapperTap=function(p){var y=this.data&&this.data.navigationEndpoint;y&&!_.WN(_.Jx(p),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Ub(this.hostElement,"yt-navigate",{endpoint:y})};
ig.prototype.dataChanged=function(){var p=this.get("data.offerButton.buttonRenderer.serviceEndpoint");p&&p.commandMetadata&&_.G(p.commandMetadata,_.BY)&&_.G(p.commandMetadata,_.BY).fireAutomatically&&_.WC().resolve(_.aK).resolveCommand(p,{form:{element:this.hostElement}})};
ig.prototype.dataChanged=ig.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ig.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ig.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.EW),_.x("design:type",Object)],ig.prototype,"ytdLockupBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ig.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.n("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],ig.prototype,"useBiggerThumbs",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.$h("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],ig.prototype,"biggerThumbsStyle",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],ig.prototype,"leftAligned",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ig.prototype,"dataChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-movie-renderer"})],ig);
_.D(ig,"ytd-movie-renderer",function(){if(u4d!==void 0)return u4d;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="thumbnail-container style-scope ytd-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="246" class="style-scope ytd-movie-renderer">\n  </ytd-thumbnail>\n</div>\n<div class="text-wrapper style-scope ytd-movie-renderer" on-tap="onTextWrapperTap">\n  <div class="top-container style-scope ytd-movie-renderer">\n    <div class="top-left-container style-scope ytd-movie-renderer">\n      <h3 class="style-scope ytd-movie-renderer">\n         <a id="video-title" class="yt-simple-endpoint style-scope ytd-movie-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <div id="channel-info" class="style-scope ytd-movie-renderer">\n        <a hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" id="channel-thumbnail" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-movie-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-movie-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-movie-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </div>\n    <div class="top-right-container style-scope ytd-movie-renderer">\n      <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-renderer">\n      </ytd-button-renderer>\n      <div id="offer-buttons" class="style-scope ytd-movie-renderer"></div>\n      <div id="menu" class="style-scope ytd-movie-renderer"></div>\n    </div>\n  </div>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.topMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-movie-renderer"></ytd-badge-supported-renderer>\n\n  <yt-formatted-string id="description-text" text="[[data.descriptionSnippet]]" class="style-scope ytd-movie-renderer">\n  </yt-formatted-string>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.bottomMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <div id="explore-button" class="style-scope ytd-movie-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-movie-renderer"></yt-interaction>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return u4d=p},{mode:1});var RX6;var r_=function(){var p=_.w.apply(this,arguments)||this;p.rounded=!0;p.pageAttachedTo=void 0;p.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return p};
_.A(r_,_.w);r_.prototype.attached=function(){this.pageAttachedTo=_.WC().resolve(_.mm).getCurrentPage();_.Ub(this.hostElement,"yt-player-attached",this.player)};
r_.prototype.detached=function(){var p;if((p=this.pageAttachedTo)==null?0:p.hostElement)_.Ub(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
r_.prototype.dataChanged=function(){var p;if((p=this.data)==null?0:p.videoId)p={video_id:this.data.videoId,autoplay:!0},!_.n("miniplayer_stop_channel_video_autoplay_killswitch")&&_.WC().resolve(_.IA).isMiniplayerActive()&&(p.pause_at_start=!0,p.autoplay=!1),this.player.loadVideoWithPlayerVars(p)};
r_.prototype.handleSignalActionPausePlayer=function(){_.jo().pause()};
r_.prototype.dataChanged=r_.prototype.dataChanged;_.H([_.Q(),_.x("design:type",Object)],r_.prototype,"data",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],r_.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],r_.prototype,"rounded",void 0);_.H([_.rd("#player"),_.x("design:type",Object)],r_.prototype,"player",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],r_.prototype,"dataChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],r_);
_.D(r_,"ytd-channel-video-player-renderer",function(){if(RX6!==void 0)return RX6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-video-player-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player-container" class="style-scope ytd-channel-video-player-renderer">\n  <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_CHANNEL_TRAILER" class="style-scope ytd-channel-video-player-renderer">\n  </ytd-player>\n</div>\n<div id="content" class="style-scope ytd-channel-video-player-renderer">\n  <div id="metadata-container" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string id="title" aria-level="3" ellipsis-truncate="" link-inherit-color="" role="heading" text="[[data.title]]" class="style-scope ytd-channel-video-player-renderer">\n    </yt-formatted-string>\n    <ytd-video-meta-block class="title style-scope ytd-channel-video-player-renderer" data="[[data]]"></ytd-video-meta-block>\n  </div>\n  <ytd-expander id="description" disable-toggle="" max-number-of-lines="7" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string class="content style-scope ytd-channel-video-player-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-channel-video-player-renderer" slot="more-button" link-inherit-color="" text="[[data.readMoreText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return RX6=p},{mode:1});var Wow;var aMd;var mq1;var SX=function(){var p=_.w.apply(this,arguments)||this;p.playing=!1;p.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.qO(p);p.active=!1;return p};
_.A(SX,_.w);_.J=SX.prototype;_.J.detached=function(){this.stop()};
_.J.play=function(){var p=this,y,l,q,t,E;return _.h(function(e){if(e.nextAddress==1)return p.active=!0,y=p.get("data.inlinePlaybackEndpoint.watchEndpoint"),l=y.videoId||p.data.videoId,q=y.startTimeSeconds||0,t=y.playerParams||null,_.n("kevlar_player_update_killswitch")?e.yield(p.playerEl.update({args:{video_id:l,startSeconds:q,player_params:t}}),2):(p.playerEl.loadVideoWithPlayerVars({video_id:l,startSeconds:q,player_params:t,autoplay:!0}),e.jumpTo(2));if(e.nextAddress!=4)return e.yield(p.playerEl.getPlayerPromise(),
4);E=e.yieldResult;E.unloadModule("annotations_module");E.addEventListener("onStateChange",function(C){p.onPlayerStateChange(C)});
_.rR(e)})};
_.J.onPlayerStateChange=function(p){if(this.active)switch(this.playing=p===1,p){case 1:_.Ub(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Ub(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.J.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.J.resize=function(){var p=this,y;return _.h(function(l){if(l.nextAddress==1)return l.yield(p.playerEl.getPlayerPromise(),2);y=l.yieldResult;y.setSize(NaN,NaN);_.rR(l)})};
_.H([_.Q(),_.x("design:type",Object)],SX.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],SX.prototype,"playing",void 0);_.H([_.Q(),_.x("design:type",Object)],SX.prototype,"playerId",void 0);_.H([_.rd("#player"),_.x("design:type",Object)],SX.prototype,"playerEl",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],SX);
_.D(SX,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(mq1!==void 0)return mq1;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer-inline-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO" player-id="[[playerId]]" class="style-scope ytd-default-promo-panel-renderer-inline-playback-renderer">\n</ytd-player>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return mq1=p},{mode:1});var Uqm;var $qd;var FN=function(){var p=_.w.apply(this,arguments)||this;p.width=0;return p};
_.A(FN,_.w);_.J=FN.prototype;_.J.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.MH(this,this.onEnded));this.mp4El.addEventListener("error",_.MH(this,this.onError))};
_.J.detached=function(){this.videoEl.removeEventListener("ended",_.MH(this,this.onEnded));this.mp4El.removeEventListener("error",_.MH(this,this.onError))};
_.J.play=function(){var p=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var y=this.videoEl.play();y?y.then(function(){p.handleVideoStartPlaying()}).catch(function(){_.Ub(p.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Ub(this.hostElement,"yt-video-thumbnail-not-playing")};
_.J.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.J.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.J.dataChanged=function(){var p;if((p=this.data)==null?0:p.thumbnailPlaceholder)p=_.nY(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+p+")";this.stop();this.autoplay&&this.play()};
_.J.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.J.onEnded=function(){this.stop();_.Ub(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.J.onError=function(){_.Ub(this.hostElement,"yt-video-thumbnail-error")};
_.J.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.J.getVideoThumbnail=function(p){if(p&&p.length)return p[0]};
FN.prototype.dataChanged=FN.prototype.dataChanged;_.H([_.Q(),_.x("design:type",Object)],FN.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],FN.prototype,"animatePlaceholderOnEntrance",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],FN.prototype,"autoplay",void 0);_.H([_.Q({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.x("design:type",Object)],FN.prototype,"videoThumbnail",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],FN.prototype,"loop",void 0);_.H([_.Q(),_.x("design:type",Boolean)],FN.prototype,"isVideoPlaying",void 0);_.H([_.Q(),_.x("design:type",Object)],FN.prototype,"width",void 0);_.H([_.rd("#mp4"),_.x("design:type",HTMLElement)],FN.prototype,"mp4El",void 0);_.H([_.rd("#placeholder"),_.x("design:type",HTMLElement)],FN.prototype,"placeholderEl",void 0);_.H([_.rd("#video"),_.x("design:type",HTMLVideoElement)],FN.prototype,"videoEl",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FN.prototype,"dataChanged",null);_.H([_.z9({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],FN);
_.D(FN,"yt-video-as-thumbnail-details",function(){if($qd===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-video-as-thumbnail-details--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_video_as_thumbnail_details.yt.video.as.thumbnail.details.css.js--\x3e<div id="placeholder" class="style-scope yt-video-as-thumbnail-details"></div>\n<div id="video-container" class="style-scope yt-video-as-thumbnail-details">\n  <video id="video" muted="" class="style-scope yt-video-as-thumbnail-details">\n    <source id="mp4" src$="[[videoThumbnail.url]]" type="video/mp4" class="style-scope yt-video-as-thumbnail-details">\n  </video>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;Uqm===void 0&&(Uqm=document.createElement("template"));var q=Uqm;l.call(y,q.content.cloneNode(!0),p.content.firstChild);$qd=p}p=$qd;return p},{mode:2});var LD=function(){var p=_.w.apply(this,arguments)||this;p.disableGridStateAware=!1;p.animationEnabled=_.n("enable_web_ketchup_hero_animation");p.transitioningOut=!1;p.narrow=!1;p.narrower=!1;p.isCarouselInFeed=!1;p.videoTimeoutJobId=0;p.panelTimeoutJobId=0;p.panelTimeoutJobStartMs=0;p.actionMap={"yt-window-resized":"onWindowResized"};return p};
_.A(LD,_.w);_.J=LD.prototype;_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.J.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var p;this.player&&((p=this.data)==null?0:p.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.J.attached=function(){this.onWindowResized()};
_.J.detached=function(){this.clearTimeouts()};
_.J.onWindowResized=function(){this.updateSize()};
_.J.computePanelLayout=function(p){return p&&p.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.J.playVideo=function(){var p;this.video&&((p=this.data)==null?0:p.videoThumbnail)&&this.video.play();var y;this.player&&((y=this.data)==null?0:y.inlinePlaybackRenderer)&&this.player.play()};
_.J.stopVideo=function(){var p;this.video&&((p=this.data)==null?0:p.videoThumbnail)&&this.video.stop();var y;this.player&&((y=this.data)==null?0:y.inlinePlaybackRenderer)&&this.player.stop()};
_.J.transitionOut=function(){var p=this;this.transitioningOut=!0;return new Promise(function(y){var l=function(){_.jR(p.hostElement).querySelector("#action-button").removeEventListener("animationend",l);_.TR.cancelJob(q);y();p.transitioningOut=!1};
var q=_.rJ(_.TR,l,1E3);_.jR(p.hostElement).querySelector("#action-button").addEventListener("animationend",l);p.player&&(p.player.playing=!1)})};
_.J.computeMetadataOrder=function(p){return p&&p.metadataOrder&&p.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?p.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.J.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.J.computeAvatarSize=function(p){return p&&p.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.J.onContentClick=function(p){if(!_.WN(_.Jx(p),this.hostElement,["A".toString(),"BUTTON".toString()])){var y;if((y=this.data)==null?0:y.navigationEndpoint){var l;this.componentBehavior.resolveCommand((l=this.data)==null?void 0:l.navigationEndpoint)}}};
_.J.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.J.setBackgroundImage=function(p){if(p=this.getBackgroundImageUrl(p))_.jR(this.hostElement).querySelector("#hero").style.backgroundImage="url("+p+")"};
_.J.setScrimLayer=function(p){var y=this.getScrimLayerColorStops(p);p=((p==null?void 0:p.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(p=180);_.OY("HTML_DIR")==="rtl"&&(p=-p);y&&(_.jR(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+p+"deg, "+y+")")};
_.J.isNarrower=function(){return this.hostElement.clientWidth<LD.NARROW_VERSION_SIZE};
_.J.getScrimLayerColorStops=function(){var p,y=(p=this.data)==null?void 0:p.scrimColorValues;if(!y)return null;if(y.length===1)return p=_.Y9(y[0]),p+" 0%, "+p+" 100%";if(y.length===3){var l=[0,72,98];return y.map(function(q,t){return _.Y9(q)+" "+l[t]+"%"}).join(",")}return null};
_.J.getBackgroundImageUrl=function(p){return p&&p.largeFormFactorBackgroundThumbnail?_.nY((p.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||p.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.J.onPlaying=function(){this.startVideoTimeout()};
_.J.onEnded=function(){this.rotate()};
_.J.startPanelTimeout=function(){var p=this;if(!this.panelTimeoutJobId){var y=this.get("data.minPanelDisplayDurationMs");y&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.rJ(_.TR,function(){p.rotate()},y))}};
_.J.startVideoTimeout=function(){var p=this;if(!this.videoTimeoutJobId){_.TR.cancelJob(this.panelTimeoutJobId);var y=Date.now()-this.panelTimeoutJobStartMs;y=Math.max(0,this.get("data.minPanelDisplayDurationMs")-y);y=Math.max(this.get("data.minVideoPlayDurationMs")||0,y);this.videoTimeoutJobId=_.rJ(_.TR,function(){p.rotate()},y)}};
_.J.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.TR.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.TR.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.J.rotate=function(){this.clearTimeouts();_.Ub(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Jh.Object.defineProperties(LD.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.jR(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.jR(this.hostElement).querySelector("#video")}}});
_.Jh.Object.defineProperties(LD,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
LD.prototype.onEnded=LD.prototype.onEnded;LD.prototype.onPlaying=LD.prototype.onPlaying;LD.prototype.dataChanged=LD.prototype.dataChanged;_.H([_.V(_.yd),_.x("design:type",Object)],LD.prototype,"ytdGridStateAwareBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],LD.prototype,"componentBehavior",void 0);_.H([_.V(_.qI.YtdGuideStateAwareBehavior),_.x("design:type",Object)],LD.prototype,"ytdGuideStateAwareBehavior",void 0);
_.H([_.V(_.asU),_.x("design:type",Object)],LD.prototype,"ytBooleanLogicBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],LD.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],LD.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],LD.prototype,"ytRendererBehavior",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],LD.prototype,"disableGridStateAware",void 0);_.H([_.Q(),_.x("design:type",Object)],LD.prototype,"data",void 0);_.H([_.Q({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.x("design:type",String)],LD.prototype,"panelLayout",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],LD.prototype,"animationEnabled",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],LD.prototype,"transitioningOut",void 0);
_.H([_.Q({computed:"computeMetadataOrder(data)"}),_.x("design:type",Boolean)],LD.prototype,"metadataOrder",void 0);_.H([_.Q({computed:"computeByline(data)"}),_.x("design:type",Object)],LD.prototype,"byline",void 0);_.H([_.Q({computed:"computeAvatarSize(data)"}),_.x("design:type",Number)],LD.prototype,"avatarSize",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],LD.prototype,"narrow",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],LD.prototype,"narrower",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],LD.prototype,"layoutStyle",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],LD.prototype,"isCarouselInFeed",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LD.prototype,"dataChanged",null);_.H([_.VU("yt-default-promo-panel-renderer-playing"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LD.prototype,"onPlaying",null);
_.H([_.VU("yt-default-promo-panel-renderer-ended"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LD.prototype,"onEnded",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],LD);
_.D(LD,"ytd-default-promo-panel-renderer",function(){if(aMd!==void 0)return aMd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="hero" class="style-scope ytd-default-promo-panel-renderer"></div>\n<yt-video-as-thumbnail-details id="video" animate-placeholder-on-entrance="" autoplay="" data="[[data.videoThumbnail]]" disable-upgrade$="[[!data.videoThumbnail]]" height="600" hidden$="[[!data.videoThumbnail]]" width="[[screen.width]]" class="style-scope ytd-default-promo-panel-renderer">\n</yt-video-as-thumbnail-details>\n<ytd-default-promo-panel-renderer-inline-playback-renderer id="player" data="[[data.inlinePlaybackRenderer.inlinePlaybackRenderer]]" disable-upgrade$="[[!data.inlinePlaybackRenderer]]" hidden$="[[!data.inlinePlaybackRenderer]]" class="style-scope ytd-default-promo-panel-renderer">\n</ytd-default-promo-panel-renderer-inline-playback-renderer>\n<div id="scrim" class="style-scope ytd-default-promo-panel-renderer"></div>\n<div id="content" on-click="onContentClick" class="style-scope ytd-default-promo-panel-renderer">\n  <yt-img-shadow id="logo" height="68" hidden="[[!data.foregroundThumbnailDetails]]" thumbnail="[[data.foregroundThumbnailDetails]]" class="style-scope ytd-default-promo-panel-renderer">\n  </yt-img-shadow>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_DESCRIPTION_TITLE\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <a class="yt-simple-endpoint style-scope ytd-default-promo-panel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h1 id="hero-title" class="style-scope ytd-default-promo-panel-renderer">[[getSimpleString(data.title)]]</h1>\n  </a>\n  <template is="dom-if" if="[[byline]]" class="style-scope ytd-default-promo-panel-renderer">\n    <div id="byline" class="style-scope ytd-default-promo-panel-renderer">\n      <yt-img-shadow id="avatar" hidden="[[!byline.thumbnailDetails]]" thumbnail="[[byline.thumbnailDetails]]" width="[[avatarSize]]" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string id="channel-name" link-inherit-color="" text="[[byline.bylineText]]" title="" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-formatted-string>\n      <ytd-badge-supported-renderer id="video-badges" badges="[[byline.badgeRenderers]]" hidden="[[!byline.badgeRenderers]]" class="style-scope ytd-default-promo-panel-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n  </template>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <div id="action-button" class="style-scope ytd-default-promo-panel-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return aMd=p},{mode:1});_.ox("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var ks=function(){var p=_.w.apply(this,arguments)||this;p.narrower=!1;p.dotMenuVisible=!1;p.paginationThumbnailsVisible=!1;p.active=!0;p.disableGridStateAware=!1;p.actionMap={"yt-window-resized":"onWindowResized"};return p};
_.A(ks,_.w);_.J=ks.prototype;_.J.configureRendererStamper=function(){return{currentItem:{id:"carousel-item",mapping:{defaultPromoPanelRenderer:{component:"ytd-default-promo-panel-renderer",attributes:{autoplay:!0},properties:{disableGridStateAware:"[[disableGridStateAware]]",layoutStyle:"[[data.layoutStyle]]",isCarouselInFeed:"[[isCarouselInFeed]]"}}}}}};
_.J.attached=function(){document.addEventListener("yt-page-type-changed",_.MH(this,this.onPageTypeChange));this.currentPageSubtype=_.Qq(location.pathname);this.onWindowResized()};
_.J.detached=function(){this.jobId&&_.TR.cancelJob(this.jobId);this.updateSizeJobId&&_.TR.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.MH(this,this.onPageTypeChange))};
_.J.onPageTypeChange=function(p){this.active=p.detail.newPageSubtype===this.currentPageSubtype};
_.J.onWindowResized=function(){this.updateSize()};
_.J.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.J.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.J.setCarouselItem=function(p){p>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.TR.cancelJob(this.jobId);var y=this.getCurrentPanelElement();y&&y.stopVideo();this.currentItemIndex=p%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(y||(y=this.getCurrentPanelElement()),y.playVideo()):this.startRotationJob()};
_.J.scrollThumbnails=function(p){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var y=this.getCurrentPaginationElement();if(y){var l=_.jR(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?l.style.transform="translateX(0)":(y=y.offsetWidth+8,l.style.transform="translateX(-"+y*(p-Math.ceil(Math.floor(this.overlay.offsetWidth/y)/2)+1)+"px)")}}};
_.J.onDataChanged=function(){var p=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.Xp(_.TR,function(){p.getCurrentPanelElement().updateSize();p.updateSize()}))};
_.J.getCurrentPanelElement=function(){return _.jR(_.jR(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.J.getCurrentPaginationElement=function(){return _.jR(_.jR(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.J.getNavigationClass=function(p,y){return p===y?"selected":""};
_.J.getNavigationDurationStyle=function(p){return"animation-duration:"+(this.get("data.carouselItems."+p+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.J.onNavigationTap=function(p){var y=this,l=p.model.index;l!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){y.setCarouselItem(l)}),this.autorotateActive=!1)};
_.J.onVideoThumbnailEnded=function(){var p=this;if(this.shouldRotate()){var y=this.getCurrentPaginationElement();y&&(y.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){y.classList.remove("finished");p.setNextCarouselItem()}))}};
_.J.onVideoThumbnailError=function(){this.startRotationJob()};
_.J.onVideoNotPlaying=function(){this.startRotationJob()};
_.J.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.J.startRotationJob=function(){var p=this;_.TR.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.TR.addLowPriorityJob(function(){p.getCurrentPanelElement().transitionOut().then(function(){p.setNextCarouselItem()})},this.rotationTimeout))};
_.J.computeDotMenuVisible=function(p,y){return!!p&&!!p.carouselItems&&p.carouselItems.length>1&&!p.paginationThumbnails||!!y};
_.J.computePaginationThumbnailsVisible=function(p,y){var l,q;return((q=p==null?void 0:(l=p.paginationThumbnails)==null?void 0:l.length)!=null?q:0)>1&&!y};
_.J.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.J.computePaginatorAlignment=function(p){return(p==null?void 0:p.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.J.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.J.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.J.isNarrower=function(p){return(p!=null?p:0)<LD.NARROW_VERSION_SIZE};
ks.prototype.activeChanged=ks.prototype.activeChanged;ks.prototype.onVideoNotPlaying=ks.prototype.onVideoNotPlaying;ks.prototype.onVideoThumbnailError=ks.prototype.onVideoThumbnailError;ks.prototype.onVideoThumbnailEnded=ks.prototype.onVideoThumbnailEnded;ks.prototype.onDataChanged=ks.prototype.onDataChanged;_.H([_.V(_.yd),_.x("design:type",Object)],ks.prototype,"ytdGridStateAwareBehavior",void 0);
_.H([_.V(_.qI.YtdGuideStateAwareBehavior),_.x("design:type",Object)],ks.prototype,"ytdGuideStateAwareBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ks.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ks.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ks.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],ks.prototype,"currentItem",void 0);
_.H([_.Q(),_.x("design:type",Number)],ks.prototype,"currentItemIndex",void 0);_.H([_.Q(),_.x("design:type",Number)],ks.prototype,"rotationTimeout",void 0);_.H([_.Q(),_.x("design:type",Number)],ks.prototype,"loopCount",void 0);_.H([_.Q({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.x("design:type",String)],ks.prototype,"paginatorAlignment",void 0);_.H([_.Q(),_.x("design:type",Number)],ks.prototype,"jobId",void 0);
_.H([_.Q(),_.x("design:type",Number)],ks.prototype,"updateSizeJobId",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],ks.prototype,"isCarouselInFeed",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],ks.prototype,"narrower",void 0);_.H([_.Q({computed:"computeDotMenuVisible(data, narrower)"}),_.x("design:type",Object)],ks.prototype,"dotMenuVisible",void 0);
_.H([_.Q({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.x("design:type",Object)],ks.prototype,"paginationThumbnailsVisible",void 0);_.H([_.Q({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.x("design:type",String)],ks.prototype,"layoutType",void 0);_.H([_.Q({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],ks.prototype,"autorotateActive",void 0);_.H([_.Q(),_.x("design:type",Object)],ks.prototype,"active",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],ks.prototype,"disableGridStateAware",void 0);_.H([_.rd("#overlay"),_.x("design:type",HTMLElement)],ks.prototype,"overlay",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ks.prototype,"onDataChanged",null);
_.H([_.VU("yt-video-thumbnail-ended"),_.VU("yt-default-promo-panel-renderer-rotate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ks.prototype,"onVideoThumbnailEnded",null);_.H([_.VU("yt-video-thumbnail-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ks.prototype,"onVideoThumbnailError",null);
_.H([_.VU("yt-video-thumbnail-not-playing"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ks.prototype,"onVideoNotPlaying",null);_.H([_.k8("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ks.prototype,"activeChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],ks);
_.D(ks,"ytd-carousel-item-renderer",function(){if(Wow!==void 0)return Wow;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="carousel-item" class="style-scope ytd-carousel-item-renderer"></div>\n<div id="menu" hidden="[[!dotMenuVisible]]" class="style-scope ytd-carousel-item-renderer">\n  <template is="dom-repeat" items="[[data.carouselItems]]" class="style-scope ytd-carousel-item-renderer">\n    <button class$="menu-dot [[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" on-click="onNavigationTap">\n    </button>\n  </template>\n</div>\n<div id="overlay" class="style-scope ytd-carousel-item-renderer">\n  <div id="pagination-thumbnails" hidden="[[!paginationThumbnailsVisible]]" class="style-scope ytd-carousel-item-renderer">\n    <template is="dom-repeat" items="[[data.paginationThumbnails]]" class="style-scope ytd-carousel-item-renderer">\n      <button class$="[[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" aria-label$="[[item.accessibility.accessibilityData.label]]" on-click="onNavigationTap">\n          <yt-img-shadow height="54" hidden="[[!equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="96" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n          <yt-img-shadow height="40" hidden="[[equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="72" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n        <div class="progress-bar style-scope ytd-carousel-item-renderer" style$="[[getNavigationDurationStyle(index)]]" hidden="[[!autorotateActive]]">\n        </div>\n      </button>\n    </template>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Wow=p},{mode:2});var j_d;var bNd;var nMu;var GVL;var NS=function(){var p=_.w.apply(this,arguments)||this;p.originalQuery=null;p.originalEndpoint=null;return p};
_.A(NS,_.w);NS.prototype.computeShowOriginalQueryWithoutEndpoint_=function(p,y){return!(!p||y)};
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],NS.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],NS.prototype,"correctedText",void 0);_.H([_.Q(),_.x("design:type",Object)],NS.prototype,"correctedQuery",void 0);_.H([_.Q(),_.x("design:type",Object)],NS.prototype,"correctedEndpoint",void 0);_.H([_.Q(),_.x("design:type",Object)],NS.prototype,"originalText",void 0);_.H([_.Q(),_.x("design:type",Object)],NS.prototype,"originalQuery",void 0);
_.H([_.Q(),_.x("design:type",Object)],NS.prototype,"originalEndpoint",void 0);_.H([_.Q({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.x("design:type",Boolean)],NS.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.H([_.z9({is:"yt-search-query-correction",disableElementRegistration:!0})],NS);
_.D(NS,"yt-search-query-correction",function(){if(GVL===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-query-correction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_search_query_correction.yt.search.query.correction.css.js--\x3e<yt-formatted-string id="corrected" text="[[correctedText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n<a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(correctedEndpoint)]]" data="[[correctedEndpoint]]">\n  <yt-formatted-string id="corrected-link" text="[[correctedQuery]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n</a>\n<template is="dom-if" if="[[originalText]]" class="style-scope yt-search-query-correction">\n  <yt-formatted-string id="original" text="[[originalText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n  <template is="dom-if" if="[[originalEndpoint]]" class="style-scope yt-search-query-correction">\n    <a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(originalEndpoint)]]" data="[[originalEndpoint]]">\n        <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n      </a>\n  </template>\n  <template is="dom-if" if="[[showOriginalQueryWithoutEndpoint]]" class="style-scope yt-search-query-correction">\n    <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n  </template>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;nMu===void 0&&(nMu=document.createElement("template"));var q=nMu;l.call(y,q.content.cloneNode(!0),p.content.firstChild);GVL=p}p=GVL;return p},{mode:2});_.ox("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var D$=function(){return _.w.apply(this,arguments)||this};
_.A(D$,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],D$.prototype,"data",void 0);_.H([_.z9({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],D$);
_.D(D$,"yt-did-you-mean-renderer",function(){if(bNd===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-did-you-mean-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_did_you_mean_renderer.yt.did.you.mean.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.didYouMean]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" class="style-scope yt-did-you-mean-renderer">\n</yt-search-query-correction>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;j_d===void 0&&(j_d=document.createElement("template"));var q=j_d;l.call(y,q.content.cloneNode(!0),p.content.firstChild);bNd=p}p=bNd;return p},{mode:2});var Prm;var Add;_.ox("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var Hj=function(){return _.w.apply(this,arguments)||this};
_.A(Hj,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Hj.prototype,"data",void 0);_.H([_.z9({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],Hj);
_.D(Hj,"yt-including-results-for-renderer",function(){if(Add===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-including-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_including_results_for_renderer.yt.including.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.includingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.searchOnlyFor]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-including-results-for-renderer">\n</yt-search-query-correction>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;Prm===void 0&&(Prm=document.createElement("template"));var q=Prm;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Add=p}p=Add;return p},{mode:2});var ZNd;var MAV;_.ox("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var T$=function(){return _.w.apply(this,arguments)||this};
_.A(T$,_.w);T$.prototype.computeExtraClasses_=function(p,y){var l="";p&&(l+=" "+p.toLowerCase().replace(/_/g,"-"));y&&(l+=" "+y.toLowerCase().replace(/_/g,"-"));return l};
T$.prototype.computeUrlImg_=function(){var p=this.data;p.image&&(_.jR(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.nY(p.image.thumbnails,Number.MAX_VALUE)+")")};
T$.prototype.computeUrlImg_=T$.prototype.computeUrlImg_;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],T$.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],T$.prototype,"data",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],T$.prototype,"computeUrlImg_",null);_.H([_.z9({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],T$);
_.D(T$,"yt-music-pass-feature-info-renderer",function(){if(MAV===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_feature_info_renderer.yt.music.pass.feature.info.renderer.css.js--\x3e<div id="container" class$="[[computeExtraClasses_(data.textStyle, data.textHorizontalAlignment)]] style-scope yt-music-pass-feature-info-renderer">\n  <div id="message" dir="ltr" class="style-scope yt-music-pass-feature-info-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;ZNd===void 0&&(ZNd=document.createElement("template"));var q=ZNd;l.call(y,q.content.cloneNode(!0),p.content.firstChild);MAV=p}p=MAV;return p},{mode:2});var VAi;var gM9;_.ox("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var xs=function(){return _.w.apply(this,arguments)||this};
_.A(xs,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],xs.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],xs.prototype,"data",void 0);_.H([_.z9({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],xs);
_.D(xs,"yt-no-results-found-showing-results-for-renderer",function(){if(gM9===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-no-results-found-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_no_results_found_showing_results_for_renderer.yt.no.results.found.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.showingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.noResultsFound]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-no-results-found-showing-results-for-renderer">\n</yt-search-query-correction>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;VAi===void 0&&(VAi=document.createElement("template"));var q=VAi;l.call(y,q.content.cloneNode(!0),p.content.firstChild);gM9=p}p=gM9;return p},{mode:2});var Q_A;var Kod;_.ox("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var Bj=function(){return _.w.apply(this,arguments)||this};
_.A(Bj,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Bj.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Bj.prototype,"data",void 0);_.H([_.z9({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],Bj);
_.D(Bj,"yt-results-without-quotes-renderer",function(){if(Kod===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-results-without-quotes-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_results_without_quotes_renderer.yt.results.without.quotes.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.resultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.withoutQuotes]]" class="style-scope yt-results-without-quotes-renderer">\n</yt-search-query-correction>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;Q_A===void 0&&(Q_A=document.createElement("template"));var q=Q_A;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Kod=p}p=Kod;return p},{mode:2});var wgV;var iN9;_.ox("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var fD=function(){return _.w.apply(this,arguments)||this};
_.A(fD,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],fD.prototype,"data",void 0);_.H([_.z9({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],fD);
_.D(fD,"yt-search-no-results-renderer",function(){if(iN9===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-no-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_search_no_results_renderer.yt.search.no.results.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.noResultsText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer">\n  <a class="yt-simple-endpoint style-scope yt-search-no-results-renderer" href$="[[computeHref_(data.alternateQueryEndpoint)]]" data="[[data.alternateQueryEndpoint]]">\n    <yt-formatted-string id="link" text="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n  </a>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;wgV===void 0&&(wgV=document.createElement("template"));var q=wgV;l.call(y,q.content.cloneNode(!0),p.content.firstChild);iN9=p}p=iN9;return p},{mode:2});var rd6;var SqV;_.ox("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var vj=function(){return _.w.apply(this,arguments)||this};
_.A(vj,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],vj.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],vj.prototype,"data",void 0);_.H([_.z9({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],vj);
_.D(vj,"yt-showing-results-for-renderer",function(){if(SqV===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_showing_results_for_renderer.yt.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-endpoint="[[data.correctedQueryEndpoint]]" corrected-query="[[data.correctedQuery]]" corrected-text="[[data.showingResultsFor]]" original-endpoint="[[data.originalQueryEndpoint]]" original-query="[[data.originalQuery]]" original-text="[[data.searchInsteadFor]]" class="style-scope yt-showing-results-for-renderer">\n</yt-search-query-correction>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;rd6===void 0&&(rd6=document.createElement("template"));var q=rd6;l.call(y,q.content.cloneNode(!0),p.content.firstChild);SqV=p}p=SqV;return p},{mode:2});var Fo9;var Loi;var kVw;var NQm;var XN=function(){var p=_.w.apply(this,arguments)||this;p.answerExpanded=!1;return p};
_.A(XN,_.w);XN.prototype.toggleAnswer_=function(p){var y=_.cm(p);y&&y.classList.contains("yt-simple-endpoint")||(p.preventDefault(),p.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
XN.prototype.toggleAnswer_=XN.prototype.toggleAnswer_;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],XN.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],XN.prototype,"answerExpanded",void 0);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],XN.prototype,"toggleAnswer_",null);
_.H([_.z9({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],XN);
_.D(XN,"yt-generic-faq-question-renderer",function(){if(NQm===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-generic-faq-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_generic_faq_question_renderer.yt.generic.faq.question.renderer.css.js--\x3e<div class="head style-scope yt-generic-faq-question-renderer" on-tap="toggleAnswer_">\n  <span class="question style-scope yt-generic-faq-question-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope yt-generic-faq-question-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope yt-generic-faq-question-renderer">\n    <yt-formatted-string class="answer style-scope yt-generic-faq-question-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;kVw===void 0&&(kVw=document.createElement("template"));var q=kVw;l.call(y,q.content.cloneNode(!0),p.content.firstChild);NQm=p}p=NQm;return p},{mode:2});_.ox("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var d_=function(){return _.w.apply(this,arguments)||this};
_.A(d_,_.w);d_.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],d_.prototype,"data",void 0);_.H([_.z9({is:"yt-faq-section-renderer",disableElementRegistration:!0})],d_);
_.D(d_,"yt-faq-section-renderer",function(){if(Loi===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_faq_section_renderer.yt.faq.section.renderer.css.js--\x3e<div class="container style-scope yt-faq-section-renderer">\n  <span class="header style-scope yt-faq-section-renderer">[[getSimpleString(data.header)]]</span>\n  <div id="contents" class="style-scope yt-faq-section-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;Fo9===void 0&&(Fo9=document.createElement("template"));var q=Fo9;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Loi=p}p=Loi;return p},{mode:2});var DqT;var HNR;_.ox("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var O7=function(){return _.w.apply(this,arguments)||this};
_.A(O7,_.w);
O7.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"}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],O7.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],O7.prototype,"data",void 0);_.H([_.z9({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],O7);
_.D(O7,"yt-offer-item-expanded-renderer",function(){if(HNR===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-expanded-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_expanded_renderer.yt.offer.item.expanded.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n<div id="content" class="style-scope yt-offer-item-expanded-renderer">\n    <div id="heading-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="description-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="additional-info-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;DqT===void 0&&(DqT=document.createElement("template"));var q=DqT;l.call(y,q.content.cloneNode(!0),p.content.firstChild);HNR=p}p=HNR;return p},{mode:2});var TQV;var xqm;_.ox("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var o8=function(){return _.w.apply(this,arguments)||this};
_.A(o8,_.w);
o8.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"}}}}};
o8.prototype.computeFullWidthMode=function(p){return!(!p||!p.fullWidthMode)};
o8.prototype.computeBorderlessMode=function(p){return!(!p||!p.borderlessMode)};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],o8.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],o8.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],o8.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.x("design:type",Boolean)],o8.prototype,"fullWidthMode",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.x("design:type",Boolean)],o8.prototype,"borderlessMode",void 0);_.H([_.z9({is:"yt-offer-item-renderer",disableElementRegistration:!0})],o8);
_.D(o8,"yt-offer-item-renderer",function(){if(xqm===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_renderer.yt.offer.item.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="heading-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="description-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="additional-info-renderer" class="style-scope yt-offer-item-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;TQV===void 0&&(TQV=document.createElement("template"));var q=TQV;l.call(y,q.content.cloneNode(!0),p.content.firstChild);xqm=p}p=xqm;return p},{mode:2});var BQu;var fMA;_.ox("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var z$=function(){return _.w.apply(this,arguments)||this};
_.A(z$,_.w);z$.prototype.computeAriaLevel_=function(p){return this.getLevelID_(p)};
z$.prototype.getLevelID_=function(p){return(p=p.match(/[0-9]+$/))&&p.length==1?p[0]:"1"};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],z$.prototype,"data",void 0);_.H([_.Q({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.x("design:type",String)],z$.prototype,"ariaLevel",void 0);_.H([_.Q({value:"heading",reflectToAttribute:!0}),_.x("design:type",String)],z$.prototype,"role",void 0);
_.H([_.Q({value:-1,reflectToAttribute:!0}),_.x("design:type",Number)],z$.prototype,"tabindex",void 0);_.H([_.z9({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],z$);
_.D(z$,"yt-subscription-product-header-renderer",function(){if(fMA===void 0){var p=document.createElement("template");_.M(p,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_header_renderer.yt.subscription.product.header.renderer.css.js--\x3e[[getSimpleString(data.text)]]\n");p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;BQu===void 0&&(BQu=document.createElement("template"));var q=BQu;l.call(y,q.content.cloneNode(!0),p.content.firstChild);fMA=p}p=fMA;return p},{mode:2});var vMi;var Xgw;_.ox("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Ys=function(){return _.w.apply(this,arguments)||this};
_.A(Ys,_.w);Ys.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:_.zT("menuRenderer"),events:!0}}};
Ys.prototype.onStampFinished_=function(){_.jR(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Ys.prototype.onStampFinished_=Ys.prototype.onStampFinished_;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ys.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Ys.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Ys.prototype,"data",void 0);_.H([_.VU("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ys.prototype,"onStampFinished_",null);
_.H([_.z9({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Ys);
_.D(Ys,"yt-subscription-product-renderer",function(){if(Xgw===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_renderer.yt.subscription.product.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-subscription-product-renderer">\n  <div id="content" class="style-scope yt-subscription-product-renderer">\n    <yt-img-shadow id="logo-image" height="30" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-renderer">\n    </yt-img-shadow>\n    <div id="metadatas" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-subscription-product-renderer">\n        <div class="metadata style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <div id="additional-infos" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-renderer">\n        <div class="additional-info style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <yt-formatted-string class="description style-scope yt-subscription-product-renderer" hidden="[[!data.description]]" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n  </div>\n  <div id="menu" class="style-scope yt-subscription-product-renderer"></div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;vMi===void 0&&(vMi=document.createElement("template"));var q=vMi;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Xgw=p}p=Xgw;return p},{mode:2});var dq7;var ONd;_.ox("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var I8=function(){return _.w.apply(this,arguments)||this};
_.A(I8,_.w);I8.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
I8.prototype.imageScrimColorValuesChanged_=function(){var p,y=(p=this.data)==null?void 0:p.imageScrimColorValues;_.jR(this.hostElement).querySelector("#scrim").style.backgroundColor=y?_.Y9(y[0]):"transparent"};
I8.prototype.imageScrimColorValuesChanged_=I8.prototype.imageScrimColorValuesChanged_;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],I8.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],I8.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],I8.prototype,"data",void 0);
_.H([_.gd("data.imageScrimColorValues"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],I8.prototype,"imageScrimColorValuesChanged_",null);_.H([_.z9({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],I8);
_.D(I8,"yt-subscription-product-upsell-offer-renderer",function(){if(ONd===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-upsell-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_upsell_offer_renderer.yt.subscription.product.upsell.offer.renderer.css.js--\x3e<tp-yt-paper-card class="style-scope yt-subscription-product-upsell-offer-renderer">\n  <div id="image-container" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    <yt-img-shadow id="image" object-fit="COVER" object-position="LEFT" thumbnail="[[data.image]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    </yt-img-shadow>\n    <div id="scrim" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <yt-icon id="logo-icon" aria-label$="[[data.logoIconAccessibility.accessibilityData.label]]" hidden="[[!data.logoIcon]]" icon="[[data.logoIcon.iconType]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-icon>\n      <yt-img-shadow id="logo-image" height="30" hidden="[[!data.logo]]" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div id="content" class="card-content style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="title" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      [[getSimpleString(data.title)]]\n    </div>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n    <div id="additional-infos" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n        <yt-formatted-string id="additional-info" text="[[item]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;dq7===void 0&&(dq7=document.createElement("template"));var q=dq7;l.call(y,q.content.cloneNode(!0),p.content.firstChild);ONd=p}p=ONd;return p},{mode:2});var oMw;var zXw;var YqO;var IM1;var pX6;var yAA;var pL=function(){return _.w.apply(this,arguments)||this};
_.A(pL,_.w);pL.prototype.onYtServiceRequestError_=function(p){_.Wn(this.hostElement,p.detail.error.message)};
pL.prototype.onYtServiceRequestError_=pL.prototype.onYtServiceRequestError_;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],pL.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],pL.prototype,"data",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],pL.prototype,"collapsible",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],pL.prototype,"isManageRed",void 0);
_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],pL.prototype,"onYtServiceRequestError_",null);_.H([_.z9({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],pL);
_.D(pL,"yt-single-ypc-offer-renderer",function(){if(yAA===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_renderer.yt.single.ypc.offer.renderer.css.js--\x3e<div id="yt-unlimited-metadata" class="style-scope yt-single-ypc-offer-renderer">\n  <yt-formatted-string hidden="[[!data.offerTypeName]]" text="[[data.offerTypeName]]" class="style-scope yt-single-ypc-offer-renderer">\n  </yt-formatted-string>\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-single-ypc-offer-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-single-ypc-offer-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<yt-button-renderer id="subscription-button" data="[[data.button.buttonRenderer]]" class="style-scope yt-single-ypc-offer-renderer">\n</yt-button-renderer>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;pX6===void 0&&(pX6=document.createElement("template"));var q=pX6;l.call(y,q.content.cloneNode(!0),p.content.firstChild);yAA=p}p=yAA;return p},{mode:2});var yC=function(){return _.w.apply(this,arguments)||this};
_.A(yC,_.w);yC.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],yC.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],yC.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],yC.prototype,"isManageRed",void 0);_.H([_.z9({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],yC);
_.D(yC,"yt-single-ypc-offer-list-renderer",function(){if(IM1===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_list_renderer.yt.single.ypc.offer.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-single-ypc-offer-list-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;YqO===void 0&&(YqO=document.createElement("template"));var q=YqO;l.call(y,q.content.cloneNode(!0),p.content.firstChild);IM1=p}p=IM1;return p},{mode:2});var liR;var qmO;_.ox("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var l$=function(){return _.w.apply(this,arguments)||this};
_.A(l$,_.w);l$.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],l$.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],l$.prototype,"data",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],l$.prototype,"isManageRed",void 0);_.H([_.z9({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],l$);
_.D(l$,"yt-ypc-offers-list-renderer",function(){if(qmO===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_list_renderer.yt.ypc.offers.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-ypc-offers-list-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;liR===void 0&&(liR=document.createElement("template"));var q=liR;l.call(y,q.content.cloneNode(!0),p.content.firstChild);qmO=p}p=qmO;return p},{mode:2});_.ox("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var qh=function(){return _.w.apply(this,arguments)||this};
_.A(qh,_.w);
qh.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}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],qh.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],qh.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],qh.prototype,"data",void 0);_.H([_.z9({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],qh);
_.D(qh,"yt-unlimited-manage-subscription-page-renderer",function(){if(zXw===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-manage-subscription-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_manage_subscription_page_renderer.yt.unlimited.manage.subscription.page.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n  <h2 class="style-scope yt-unlimited-manage-subscription-page-renderer">[[getSimpleString(data.subscriptionTitle)]]</h2>\n  <div class="card-content style-scope yt-unlimited-manage-subscription-page-renderer">\n    <template is="dom-repeat" items="[[data.subscriptionInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div class="subscription-info-item style-scope yt-unlimited-manage-subscription-page-renderer">\n        <span class="subscription-info-item-title style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.title)]]\n        </span>\n        <span class="subscription-info-item-content style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.content)]]\n        </span>\n      </div>\n    </template>\n    <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <yt-formatted-string class="additional-info style-scope yt-unlimited-manage-subscription-page-renderer" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n    <div class="buttons style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div id="manage-fix-fop-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-family-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-subscription-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="help-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n    </div>\n    <div id="offers" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;oMw===void 0&&(oMw=document.createElement("template"));var q=oMw;l.call(y,q.content.cloneNode(!0),p.content.firstChild);zXw=p}p=zXw;return p},{mode:2});var sER;var tDV;var sS=function(){return _.w.apply(this,arguments)||this};
_.A(sS,_.w);_.J=sS.prototype;_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.J.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.onKeypress_=function(p){p.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.J.handleHeaderTap_=function(p){p.preventDefault();p.stopPropagation();this.expandOffers_()};
_.J.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.J.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
sS.prototype.dataChanged_=sS.prototype.dataChanged_;_.H([_.V(_.Ln),_.x("design:type",Object)],sS.prototype,"ironA11yKeysBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],sS.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],sS.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],sS.prototype,"offersVisible_",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sS.prototype,"dataChanged_",null);_.H([_.z9({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],sS);
_.D(sS,"yt-collapsible-ypc-offer-renderer",function(){if(tDV===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-collapsible-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_collapsible_ypc_offer_renderer.yt.collapsible.ypc.offer.renderer.css.js--\x3e<yt-formatted-string id="more-offer-info-header" hidden="[[offersVisible_]]" text="[[data.moreOfferInfoHeader]]" on-tap="handleHeaderTap_" class="style-scope yt-collapsible-ypc-offer-renderer">\n</yt-formatted-string>\n<div id="offers" hidden="[[!offersVisible_]]" class="style-scope yt-collapsible-ypc-offer-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;sER===void 0&&(sER=document.createElement("template"));var q=sER;l.call(y,q.content.cloneNode(!0),p.content.firstChild);tDV=p}p=tDV;return p},{mode:2});var ETO;var JAu;_.ox("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var t8=function(){return _.w.apply(this,arguments)||this};
_.A(t8,_.w);_.J=t8.prototype;_.J.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.J.dataChanged_=function(){if(this.data.backgroundImage){var p=_.nY(this.data.backgroundImage.thumbnails,screen.width),y=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=y?"linear-gradient(180deg, "+y+"), url("+p+")":"url("+p+")";this.data.gtmId&&_.vF(this.data.gtmId,_.OY("GL",""))}};
_.J.onYtServiceRequestError_=function(p){_.Wn(this.hostElement,p.detail.error.message)};
_.J.getScrimLayerColorStops_=function(){var p,y,l=(p=this.data.unlimitedHeaderV2Data)==null?void 0:(y=p.unlimitedHeaderV2Data)==null?void 0:y.scrimLayerColors;if(!l)return null;var q=100/l.length;return l.map(function(t,E){E*=q;return _.Y9(t)+" "+E+"%"}).join(",")};
_.J.computeLogoWithPadding=function(p){var y,l,q;return(p=(y=p.unlimitedLogoImage)==null?void 0:(l=y.thumbnails)==null?void 0:(q=l[0])==null?void 0:q.height)&&p%31===0?!0:!1};
t8.prototype.onYtServiceRequestError_=t8.prototype.onYtServiceRequestError_;t8.prototype.dataChanged_=t8.prototype.dataChanged_;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],t8.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],t8.prototype,"ytRendererBehavior",void 0);_.H([_.Q({computed:"computeLogoWithPadding(data)"}),_.x("design:type",Boolean)],t8.prototype,"logoWithPadding",void 0);
_.H([_.Q(),_.x("design:type",Object)],t8.prototype,"data",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],t8.prototype,"dataChanged_",null);_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],t8.prototype,"onYtServiceRequestError_",null);_.H([_.z9({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],t8);
_.D(t8,"yt-unlimited-page-header-renderer",function(){if(JAu===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-page-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_page_header_renderer.yt.unlimited.page.header.renderer.css.js--\x3e<template is="dom-if" if="[[!logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<template is="dom-if" if="[[logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper-with-padding" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo-with-padding" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<yt-formatted-string id="subtitle" respect-html-dir="" text="[[data.subTitle]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-formatted-string>\n<yt-button-renderer id="manage-subscription-button" data="[[data.manageSubscriptionButton.buttonRenderer]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-button-renderer>\n<div id="metadatas" class="style-scope yt-unlimited-page-header-renderer">\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-formatted-string class="metadata-item style-scope yt-unlimited-page-header-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n  <template is="dom-if" if="[[data.additionalBillingInfo]]" class="style-scope yt-unlimited-page-header-renderer">\n    <div id="additional-billing-info" class="style-scope yt-unlimited-page-header-renderer">\n      <yt-formatted-string class="billing-info-item style-scope yt-unlimited-page-header-renderer" text="[[data.additionalBillingInfo]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n<yt-formatted-string class="promotion-text style-scope yt-unlimited-page-header-renderer" text="[[data.promotion.ypcPromotionRenderer.promotionText]]">\n</yt-formatted-string>\n<div id="more-offers" class="style-scope yt-unlimited-page-header-renderer"></div>\n<a id="restriction-apply-button" class="offer-details-link style-scope yt-unlimited-page-header-renderer" tabindex="0">\n  <yt-formatted-string text="[[data.offerDetailsLinkText]]" class="style-scope yt-unlimited-page-header-renderer"></yt-formatted-string>\n</a>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;ETO===void 0&&(ETO=document.createElement("template"));var q=ETO;l.call(y,q.content.cloneNode(!0),p.content.firstChild);JAu=p}p=JAu;return p},{mode:2});var cAd;var e1T;_.ox("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var ES=function(){return _.w.apply(this,arguments)||this};
_.A(ES,_.w);ES.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ES.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ES.prototype,"data",void 0);_.H([_.z9({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],ES);
_.D(ES,"yt-unlimited-user-notification-renderer",function(){if(e1T===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-user-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_user_notification_renderer.yt.unlimited.user.notification.renderer.css.js--\x3e<div id="yt-notification-text" class="style-scope yt-unlimited-user-notification-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope yt-unlimited-user-notification-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  </template>\n</div>\n<div id="action-button" class="style-scope yt-unlimited-user-notification-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;cAd===void 0&&(cAd=document.createElement("template"));var q=cAd;l.call(y,q.content.cloneNode(!0),p.content.firstChild);e1T=p}p=e1T;return p},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.eI7=_.aF(function(p){var y=_.RF(p,{numberOfChips:5}).numberOfChips;return _.R("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.R(_.rT,{each:function(){return Array(y==null?void 0:y())}},function(){return _.R("div",{class:"ytGhostChipShelfChip"})}))},"zg");_.hI9=_.aF(function(p){var y=function(){var E;return((E=p.data)==null?void 0:E.call(p).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},l=_.QS(),q=_.WC().resolve(_.up);
_.Hu(function(){requestAnimationFrame(function(){var E;(E=l.lottieEl)==null||E.addEventListener("DOMLoaded",function(){var e;(e=p.onLottieLoaded)==null||e.call(p)})})});
var t={};return _.R("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var E;return((E=p.data)==null?void 0:E.call(p).targetId)||""}},_.R(_.GS,{className:_.ip((t.ytChatLoadingViewModelRtl=q==="rtl",t)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:y()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||y()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:y()}}},
animationRef:l}))},"Ag");
}catch(e){_._DumpException(e)}
try{
var gJA,QeL,KuO,wQ6,ird,rU9,Sri,FuV,kP6,vJT,AX,fHd,HrO,Bq6,xAm,TqR,DAA,XQ9,dAw,Or9,oJd,ZC,zm6,Yr6,yMi,gp,IHm,QH,MX,KV,puO,VH,lk1,qYi,s47,tcm,EZO,JM1,enm,Rnm,mVi,UVT,$VV,j4R,b6R,GiV,AM9,McT,VcA,gZ6,Q46,wu9,i6w,rMA,SYu,FqV,LqT,kiu,DVL,BT7,xVm,H67,fku,TT6,vZV,oZw,O69,XuO,dVi,iT,zn7,YY6,pCd,EhV,JJA,cJR,esO,hsu,Cv9,u39,Rs9,WIV,a3u,UMu,$Md,jKA,qC6;
_.Ga=function(p){var y=new _.SM("Error accessing DB");return _.jwu().then(function(l){return new Promise(function(q,t){try{var E=l.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(p);E.onsuccess=function(){var e=E.result;q(e?e.value:null)};
E.onerror=function(){y.params={key:p,source:"onerror"};t(y)}}catch(e){y.params={key:p,
thrownError:String(e)},t(y)}})},function(){return null})};
_.Vhd=function(p,y){var l=_.Buu(y);l!=="javascript:"&&l!=="data:"&&p.setAttribute("href",y)};
gJA=function(p,y){return _.Ae(p.entities,"flowStateEntity",y)};
QeL=function(p,y){return _.Ae(p.entities,"contextNoteUserRatingEntityPayload",y)};
KuO=function(p){return _.Na(p,function(y){return y.languageCode==="en"})};
wQ6=function(p){var y=Pq;if(_.DF9(p))p.setOption("captions","stickyLoading",{}),p.setOption("captions","track",{});else{var l=_.Na(_.Fo_(p),function(q){return q.displayName===y});
p.setOption("captions","track",l)}};
ird=function(p){if(!p)return 0;var y=p.getPresentingPlayerType(),l=p.getVideoData();return l&&l.isLive?(p=p.getProgressState(y),p.seekableEnd-p.seekableStart):p.getDuration(y)};
rU9=function(p,y){for(var l=_.c(Object.keys(p)),q=l.next();!q.done;q=l.next())if(q=q.value,p[q]!==y[q])return!1;return!0};
Sri=function(){return document.getElementById("player-control-overlay")};
FuV=function(p){p!==-1&&!_.n("player_controls_log_creation_killswitch")&&Sri()&&(_.fy("pcu_cs",p),_.fy("pcu_ce"))};
kP6=function(p){return _.R("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(p.subscribeButton?[p.subscribeButton,p.channelAccess]:[p.channelAccess]).map(function(y){return _.R("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.R("div",{class:"yt-profile-identity-info-view-model-wiz--button"},LuA(y)))}))};
_.NqT=function(p){var y=p.data;var l=p.hideDivider;p=p.isChannelInfoCard;var q={};q=(q["yt-profile-identity-info-view-model-wiz__frame"]=!0,q["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!y.channelBanner,q);q={class:_.rD(q)};var t,E={imageBannerViewModel:{image:(t=y.channelBanner)==null?void 0:t.image,style:"IMAGE_BANNER_STYLE_INSET"}};t=_.R("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},y.channelBanner?_.R("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
LuA(E,{imageBannerViewModel:{isPositionRelative:!0}})):null);E=_.R("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},LuA(y.avatar));var e;var C=_.R("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.R("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},y.channelDisplayName),y.verifiedOrOacBadge?_.R("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.R(_.W$,{data:{thumbnails:[{url:(e=y.verifiedOrOacBadge)==null?void 0:e.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);e=_.R("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},C,LuA(y.threeDotMenu));C=_.R("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.R("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.R("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},y.channelHandle),y.channelPronouns&&y.channelHandle?_.R("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.R("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},y.channelPronouns)),_.R("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.R("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},y.leftOfBulletInfo),y.leftOfBulletInfo&&y.rightOfBulletInfo?_.R("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.R("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},y.rightOfBulletInfo)));e=_.R("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},e,C);return _.R("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.R("div",q,t,_.R("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},E,e),y.channelDescription?_.R("div",{class:p?"yt-profile-identity-info-view-model-wiz__channel-description-alternate":"yt-profile-identity-info-view-model-wiz__channel-description"},
y.channelDescription):null,kP6(y),l?null:_.R("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
vJT=function(p,y){var l=_.uy(p,{}),q=DAA("top",y),t=DAA("bottom",y),E=DAA("left",y),e=DAA("right",y);return _.NW({top:function(){return AX(l().position,q)},
bottom:function(){return AX(l().position,t)},
left:function(){return AX(l().position,E)},
right:function(){return AX(l().position,e)},
position:function(){return AX(l().positionType,HrO)},
height:function(){return AX(l().height,ZC)},
width:function(){return AX(l().width,ZC)},
"min-width":function(){return AX(l().minWidth,ZC)},
"min-height":function(){return AX(l().minHeight,ZC)},
"max-width":function(){return AX(l().maxWidth,ZC)},
"max-height":function(){return AX(l().maxHeight,ZC)},
"aspect-ratio":function(){return AX(l().aspectRatio,String)},
"margin-top":function(){return AX(l().margin,q)},
"margin-bottom":function(){return AX(l().margin,t)},
"margin-left":function(){return AX(l().margin,E)},
"margin-right":function(){return AX(l().margin,e)},
"padding-top":function(){return AX(l().padding,q)},
"padding-bottom":function(){return AX(l().padding,t)},
"padding-left":function(){return AX(l().padding,E)},
"padding-right":function(){return AX(l().padding,e)},
"flex-direction":function(){return AX(l().flexDirection,TqR)},
"justify-content":function(){return AX(l().justifyContent,xAm)},
"align-items":function(){return AX(l().alignItems,Bq6)},
"flex-grow":function(){return AX(l().flexGrow,String)},
"flex-shrink":function(){return AX(l().flexShrink,String)},
"flex-basis":function(){return AX(l().flexBasis,ZC)},
"align-self":function(){return AX(l().alignSelf,Bq6)},
"flex-wrap":function(){return AX(l().flexWrap,fHd)},
"align-content":function(){return AX(l().alignContent,Bq6)}})};
AX=function(p,y){return p!==void 0?y(p):void 0};
fHd=function(p){switch(p){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
HrO=function(p){switch(p){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
Bq6=function(p){switch(p){case "YPC_ALIGN_ITEMS_AUTO":return"auto";case "YPC_ALIGN_ITEMS_START":return"flex-start";case "YPC_ALIGN_ITEMS_END":return"flex-end";case "YPC_ALIGN_ITEMS_CENTER":return"center";case "YPC_ALIGN_ITEMS_STRETCH":return"stretch"}};
xAm=function(p){switch(p){case "YPC_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "YPC_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "YPC_JUSTIFY_CONTENT_CENTER":return"center";case "YPC_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "YPC_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around"}};
TqR=function(p){switch(p){case "YPC_FLEX_DIRECTION_ROW":return"row";case "YPC_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "YPC_FLEX_DIRECTION_COLUMN":return"column";case "YPC_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse"}};
DAA=function(p,y){var l=y==="rtl";switch(p){case "top":var q=XQ9;break;case "bottom":q=dAw;break;case "left":q=Or9;break;default:q=oJd}return function(t){return AX(q(t,l),ZC)}};
XQ9=function(p){var y=p.top;var l=p.vertical;p=p.all;var q;return(q=y!=null?y:l)!=null?q:p};
dAw=function(p){var y=p.bottom;var l=p.vertical;p=p.all;var q;return(q=y!=null?y:l)!=null?q:p};
Or9=function(p,y){var l=p.left;var q=p.end;var t=p.start;var E=p.horizontal;p=p.all;var e,C;return(C=(e=l!=null?l:y?q:t)!=null?e:E)!=null?C:p};
oJd=function(p,y){var l=p.right;var q=p.end;var t=p.start;var E=p.horizontal;p=p.all;var e,C;return(C=(e=l!=null?l:y?t:q)!=null?e:E)!=null?C:p};
ZC=function(p){var y=p.value;switch(p.unit){case "YPC_DIMENSION_UNIT_POINT":return y+"px";case "YPC_DIMENSION_UNIT_FRACTION":return y+"%";default:return""+y}};
zm6=function(p){switch(p){case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY":return"ytStyledTextViewModelYtTextPrimary";case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY_INVERSE":return"ytStyledTextViewModelYtTextPrimaryInverse";case "YPC_SEMANTIC_COLOR_TEXT_SECONDARY":return"ytStyledTextViewModelYtTextSecondary";case "YPC_SEMANTIC_COLOR_TEXT_DISABLED":return"ytStyledTextViewModelYtTextDisabled";case "YPC_SEMANTIC_COLOR_THEMED_GREEN":return"ytStyledTextViewModelYtThemedGreen"}};
Yr6=function(p){var y=p!=null?p:{};p=y.fontRole;var l=y.fontSize;y=y.fontWeight;if(p!==null&&l!==null)switch(p){case "YPC_FONT_ROLE_DISPLAY":switch(l){case "YPC_FONT_SIZE_L":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(l){case "YPC_FONT_SIZE_L":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return y===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(l){case "YPC_FONT_SIZE_XL":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
yMi=function(p,y,l){function q(m){return Object.values(m).map(function(U){var b=U.productId;U=U.pricingOptionIndex;return MX(t(b).pricingOptions,U).pricingOptionId})}
function t(m){return C().get(m)}
function E(m){m=q(m);l(m)}
var e=VH([p,y],function(m,U){var b=m==null?void 0:m.selectedPricingOptions;m={};var P=!0;if(b&&U.length)for(var Z=_.c(U),K=Z.next();!K.done;K=Z.next()){K=K.value;var F=IHm(K.pricingOptions,function(O){a:{O=O.pricingOptionId;for(var f=_.c(b),v=f.next();!v.done;v=f.next())if(v.value===O){O=!0;break a}O=!1}return O});
if(F>=0){P=!1;var L=MX(K.pricingOptions,F),T=void 0;m[K.groupId]={productId:K.productId,pricingOptionIndex:F,pricingGroupAttributes:(T=L)==null?void 0:T.pricingGroupAttributes}}}P&&U.length&&(P=MX(U[0].pricingOptions,0),m[U[0].groupId]={productId:U[0].productId,pricingOptionIndex:0,pricingGroupAttributes:P==null?void 0:P.pricingGroupAttributes});return m}),C=VH([y],function(m){return new Map(m.map(function(U){return[U.productId,
U]}))}),u=VH([y],function(m){var U=new Map;
m=_.c(m);for(var b=m.next();!b.done;b=m.next()){var P=b.value;b=P.groupId;var Z=P.productId;P=_.c(gp(P.pricingOptions));for(var K=P.next();!K.done;K=P.next()){var F=_.c(K.value);K=F.next().value;F=F.next().value;U.set(F.pricingOptionId,{groupId:b,productId:Z,index:K,pricingOption:F,pricingGroupAttributes:F.pricingGroupAttributes})}}return U}),a=VH([y],function(m){var U=new Map;
m=_.c(m);for(var b=m.next();!b.done;b=m.next()){var P=b.value;b=P.groupId;var Z=P.productId,K=void 0;P=_.c(gp((K=P.pricingGroups)!=null?K:[]));for(K=P.next();!K.done;K=P.next()){var F=_.c(K.value);K=F.next().value;F=F.next().value;U.set(F.pricingGroupId,{groupId:b,productId:Z,index:K,pricingGroup:F,pricingGroupAttributes:F.pricingGroupAttributes})}}return U});
return{getProductById:t,isProductSelected:function(m){var U=t(m);if(!U)return!1;var b;return((b=e()[U.groupId])==null?void 0:b.productId)===m},
getSelectedPricingOptions:function(){return Object.values(e()).map(function(m){var U=m.productId;m=m.pricingOptionIndex;return MX(t(U).pricingOptions,m)})},
getSelectedPricingGroupAttributesByGroupId:function(m){var U;return(m=(U=e()[m])==null?void 0:U.pricingGroupAttributes)?Array.from(m):void 0},
getSelectedProductByGroupId:function(m){var U;return(m=(U=e()[m])==null?void 0:U.productId)?t(m):void 0},
onProductSelected:function(m){var U=t(m);if(U){var b=e(),P;if(((P=b[U.groupId])==null?void 0:P.productId)!==m){var Z,K;P=(K=(Z=b[U.groupId])==null?void 0:Z.pricingOptionIndex)!=null?K:0;QH(U.pricingOptions)<=P&&(P=0);Z=MX(U.pricingOptions,P);var F;K={};E(Object.assign({},b,(K[U.groupId]={productId:m,pricingOptionIndex:P,pricingGroupAttributes:(F=Z==null?void 0:Z.pricingGroupAttributes)!=null?F:[]},K)))}}},
onPricingOptionSelected:function(m){var U=u().get(m);if(U){m=U.groupId;var b=U.productId;U=U.index;var P=e(),Z,K;if(((Z=P[m])==null?void 0:Z.productId)!==b||((K=P[m])==null?void 0:K.pricingOptionIndex)!==U){var F,L;Z={};E(Object.assign({},P,(Z[m]={productId:b,pricingOptionIndex:U,pricingGroupAttributes:(L=(F=P[m])==null?void 0:F.pricingGroupAttributes)!=null?L:[]},Z)))}}},
onPricingGroupSelected:function(m){var U=a().get(m);if(U){m=U.groupId;var b=U.productId,P=U.pricingGroup.pricingGroupAttributes,Z=t(b);if(Z){U=e();var K=U[m].pricingGroupAttributes,F;if(((F=U[m])==null?void 0:F.productId)!==b||!KV(puO(K,QH(P)),P)){F=Array.from(P);for(P=QH(P);P<QH(K);P++){var L="",T=!1,O=Array.from(F);O.push(MX(K,P));for(var f=_.c(Z.pricingGroups),v=f.next();!v.done;v=f.next())if(v=v.value,KV(v.pricingGroupAttributes,O)){F.push(MX(K,P));T=!0;break}else L===""&&QH(v.pricingGroupAttributes)===
O.length&&KV(puO(v.pricingGroupAttributes,F.length),F)&&(L=MX(v.pricingGroupAttributes,P));T||F.push(L)}L=U[m].pricingOptionIndex;P=[];T=new Map;O=0;Z=_.c(gp(Z.pricingOptions));for(f=Z.next();!f.done;f=Z.next())v=_.c(f.value),f=v.next().value,v=v.next().value,KV(v.pricingGroupAttributes,F)&&P.push(f),KV(v.pricingGroupAttributes,K)&&T.set(f,O++);P.length===0?K=0:(K=T.get(L),K=K!==void 0&&K<P.length?P[K]:P[0]);Z={};E(Object.assign({},U,(Z[m]={productId:b,pricingOptionIndex:K,pricingGroupAttributes:F},
Z)))}}}},
onClearGroupSelected:function(m){var U=e();U[m]&&(U=Object.fromEntries(Object.entries(U).filter(function(b){return _.c(b).next().value!==m})),E(U))}}};
gp=function(p){return function l(){var q,t,E,e,C;return _.MR(l,function(u){switch(u.nextAddress){case 1:_.KC(u,2),q=0,t=_.c(p),E=t.next();case 4:if(E.done){u.jumpTo(2);break}e=E.value;C=_.VG;return u.yield([q++,e],7);case 7:C(u.yieldResult);E=t.next();u.jumpTo(4);break;case 2:_.Qe(u),_.wR(u,0)}})}()};
IHm=function(p,y){p=_.c(gp(p));for(var l=p.next();!l.done;l=p.next()){var q=_.c(l.value);l=q.next().value;q=q.next().value;if(y(q))return l}return-1};
QH=function(p){var y=0;for(p=p[Symbol.iterator]();!p.next().done;)++y;return y};
MX=function(p,y){p=_.c(gp(p));for(var l=p.next();!l.done;l=p.next()){var q=_.c(l.value);l=q.next().value;q=q.next().value;if(l===y)return q}};
KV=function(p,y){if(!p&&!y)return!0;if(!p||!y)return!1;p=Array.from(p);y=Array.from(y);if(p.length!==y.length)return!1;for(var l=0;l<p.length;l++)if(p[l]!==y[l])return!1;return!0};
puO=function(p,y){y=y===void 0?Infinity:y;var l=[];p=_.c(gp(p));for(var q=p.next();!q.done;q=p.next()){var t=_.c(q.value);q=t.next().value;t=t.next().value;if(q>=y)break;q>=0&&l.push(t)}return l};
VH=function(p,y){var l,q;return function(){for(var t=p.map(function(e){return e()}),E=0;E<t.length;E++)if(!l||t[E]!==l[E]){l=t;
q=y.apply(null,_.xq(t));break}return q}};
lk1=function(p,y,l){var q=[];p=_.c(p);for(var t=p.next();!t.done;t=p.next()){t=t.value;var E=void 0;((E=y)==null?0:E.length)&&!KV(t.pricingGroupAttributes,y)||q.push({pricingOption:t,isSelected:l.includes(t.pricingOptionId)})}return q};
qYi=function(p,y){return _.Ae(p.entities,"pdpStateEntity",y)};
s47=function(p){var y,l;return!!(p.productId&&p.groupId&&((y=p.pricingOptions)==null?0:y.length)&&p.pricingOptions.every(function(q){return q.pricingOptionId})&&((l=p.pricingGroups)==null||!l.length||Array.isArray(p.pricingGroups)&&p.pricingGroups.every(function(q){return q.pricingGroupId&&q.pricingGroupAttributes&&q.pricingGroupAttributes.length>0})))};
tcm=function(p,y,l){return yMi(p,VH([y],function(q){return q.filter(s47)}),l)};
EZO=function(p,y){return y.length===0?[p]:[p.slice(0,y[0]),p.slice(y[0])].filter(function(l){return l.length>0})};
JM1=function(p){switch(p){case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-justify-end";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-full-distributed";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-flex-primary";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-vertical-centered";
case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-distributed-space";default:return""}};
enm=function(p,y,l,q){q=Object.assign({},q);_.oF(q,cMA,{selectedOptionId:p,primaryButtonOverride:l});_.hl().dispatch(_.Fp("flowStateEntity",y,q))};
_.uF1=function(){if(!hnd){var p=_.c(_.nr(new Map,void 0,"UJImUe"));hnd=p.next().value;CBi=p.next().value}return hnd};
Rnm=function(p){if(p)return _.uF1()().get(p)};
_.Wq9=function(p,y){if(p&&y){var l=_.uF1();l().set(p,y);p=l();CBi(new Map(p))}};
_.ak6=function(p){return{onSubmit:function(){var y;(y=Rnm(p()))==null||y.onSubmit()},
isValid:function(){var y=Rnm(p());return y?y.isValid():!0},
isSubmitting:function(){var y,l;return!!((y=Rnm(p()))==null?0:(l=y.isSubmitting)==null?0:l.call(y))}}};
mVi=function(p,y){return _.Ae(p.entities,"contextNoteFeedEntityPayload",y)};
UVT=function(p,y){switch(p){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return y==null?void 0:y.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return y==null?void 0:y.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return y==null?void 0:y.ratingNotHelpfulText}};
$VV=function(p,y){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:p.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:p.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:p.deleteDialogTitle}]},dialogMessages:[{runs:[{text:p.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:p.deleteActionText}]},command:{performCommentActionEndpoint:{action:y}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:p.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
j4R=function(p){p.style.height="auto";p.style.height=p.scrollHeight+"px"};
b6R=function(p){return[p.syncStep,p.asyncStep].filter(function(y){return y!==void 0})};
GiV=function(p){var y,l,q;if(p=(y=p.structuredContextNoteFormSchema)==null?void 0:(l=y.fieldSchemas)==null?void 0:(q=l.noteBody)==null?void 0:q.validationSchema)for(y=_.c(b6R(p)),l=y.next();!l.done;l=y.next()){l=l.value.rules;if(!l)break;l=_.c(l);for(l=l.next();!l.done;l=l.next())return _.G(l.value,_.nZw)}};
AM9=function(p){if(p){p=_.c(b6R(p));for(var y=p.next();!y.done;y=p.next()){y=y.value.rules;if(!y)break;y=_.c(y);for(y=y.next();!y.done;y=y.next())return _.G(y.value,PBi)}}};
McT=function(p){if(p){p=_.c(b6R(p));for(var y=p.next();!y.done;y=p.next()){y=y.value.rules;if(!y)break;y=_.c(y);for(y=y.next();!y.done;y=y.next())return _.G(y.value,Z6O)}}};
VcA=function(p){p=/^https?:\/\//.test(p)?p:"http://"+p;try{var y=_.YP(p)}catch(l){return!1}if(y.toString()!==p)return!1;p=y.JSC$9968_domain_.split(".");return p.length>1&&p.every(function(l){return!!l})};
gZ6=function(p,y,l,q){var t;q=(t=q.structuredContextNoteData)==null?void 0:t.createCommentEndpoint;if(t=_.G(q,_.zFZ))return t.commentText=_.EK(p),t.videoPositionMention=y,t.sources=l,q};
Q46=function(p){return p==null?void 0:p.stringValue};
wu9=function(p,y,l){p=p.map(function(q,t){return{listItemViewModel:{title:q.title,subtitle:q.subtitle,leadingImage:q.leadingImage,trailingImage:t===y?Kq6:void 0,rendererContext:{commandContext:{onTap:q.onTap}}}}});
return Object.assign({},l&&{header:{panelHeaderViewModel:{title:l}}},{content:{listViewModel:{listItems:p}}})};
i6w=function(p,y){if(p&&y)switch(y){case "SELECTION_TYPE_BOOL":return p.boolValue;case "SELECTION_TYPE_INT":return p.intValue;case "SELECTION_TYPE_STRING":return p.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return p.privacyStatusValue}};
rMA=function(p){var y;p=(y=p.options)==null?void 0:y.findIndex(function(l){return l.isSelected});
return p===void 0?-1:p};
SYu=function(p,y,l){var q=function(){return p().label},t={},E=_.ip("ytDropdownViewModelLabel",(t.ytDropdownViewModelLabelError=y,t));
return _.R(_.W,{cond:function(){return p().label&&!(l()===-1&&p().label&&!p().placeholderText)},
then:function(){return _.R("div",{class:E},_.R(_.CF,{text:q}))}})};
FqV=function(p,y){var l={};l=_.ip("ytDropdownViewModelTitle",(l.ytDropdownViewModelTitlePlaceholder=function(){return y()===-1},l));
return _.R("div",{class:l},_.R(_.CF,{text:function(){var q=p();var t=y();if(t===-1)q=q.placeholderText?q.placeholderText:q.label;else{var E,e;q=(E=q.options)==null?void 0:(e=E[t])==null?void 0:e.title}return q}}))};
LqT=function(p,y){var l=function(){return p().hint};
return _.R(_.a4,null,_.R(_.W,{cond:function(){return l()&&!y()},
then:function(){return _.R("div",{class:_.ip("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.R(_.CF,{text:l,className:"ytDropdownViewModelSupportText"}))}}),_.R(_.W,{cond:y,
then:function(){return _.R("div",{id:"dropdown-view-model-error",role:"alert",class:_.ip("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.R(_.DR,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.R(_.CF,{text:y,className:"ytDropdownViewModelSupportText"}))}}))};
kiu=function(p,y){var l=_.WC().resolve(_.C_A);_.xZ(function(){var q=p().id;q&&l!=null&&l.dropdownMap.set(q,y)})};
DVL=function(p){p=_.G(p.scheduleButton,NT7);p=_.G(p==null?void 0:p.primaryButton,_.xo);p=_.G(p==null?void 0:p.onTap,_.pY);var y,l,q=((l=_.G(p,_.AO))==null?void 0:l.commands)||[p];l=_.c(q);for(p=l.next();!p.done&&!(y=_.G(p.value,_.IZM));p=l.next());var t;y=(t=y)==null?void 0:t.createBroadcastRequest;if(!y)throw Error("Lj");return y};
BT7=function(p,y,l){l=l===void 0?{}:l;var q,t;return _.h(function(E){if(q=H67(y))return E.return(q);(t=TT6(p,y,l))&&xVm(y,t);return E.return(t)})};
xVm=function(p,y){var l=fku(p);l&&y.then(function(q){_.WC().resolve(_.AF).put(l,new _.Zo({innertubeResponse:q}))})};
H67=function(p){if(p=fku(p)){var y=_.WC().resolve(_.AF);if(y.has(p))return y.get(p).then(function(l){return l==null?void 0:_.$z(l)})}return null};
fku=function(p){var y=_.G(p.endpoint,_.Eb);if(y!=null&&y.videoId)return y={videoId:y.videoId},_.n("web_imp_player_mute_params")&&(y.mutedAtStart=p.startPlaybackInMutedState),_.tO("inline_playback",y)};
TT6=function(p,y,l){p=_.eo(p,y.endpoint,vZV(y,l)).then(function(q){return q});
return Promise.resolve(p)};
vZV=function(p,y){y=_.n("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!p.startPlaybackInMutedState},y):Object.assign({},{vis:5,autonav:"1"},y);var l;y={contentPlaybackContext:_.NE(y,(l=_.G(p.endpoint.commandMetadata,_.ul))==null?void 0:l.url,window.location.href)};_.n("web_imp_player_mute_params")&&(y.overrideMutedAtStart=!p.startPlaybackInMutedState);return y};
oZw=function(p,y){var l=window.MutationObserver;l&&(wp=new l(function(q,t){q=_.c(q);for(var E=q.next();!E.done;E=q.next()){E=E.value;var e;if(e=E.type==="childList"&&E.target)a:{e=p;E=XuO(E.target);e=XuO(e);for(var C=null,u=0;u<E.length;u++)if(e.includes(E[u])){if(u===0){e=!1;break a}C=E[u];break}C?(E=dVi(E,C),e=dVi(e,C),e=E<e):e=!1}if(e){y();t.disconnect();break}}}),(l=O69())&&wp.observe(l,{childList:!0,
subtree:!0}))};
O69=function(){var p=document.getElementsByTagName("ytd-rich-grid-renderer");if(p.length>0)return p[0];p=document.getElementsByTagName("ytd-section-list-renderer");return p.length>0?p[0]:null};
XuO=function(p){for(var y=[];p;)y.push(p),p=p.parentElement;return y};
dVi=function(p,y){var l=Array.from(y.children);y=p.indexOf(y);return y>0?l.indexOf(p[y-1]):-1};
iT=function(p,y,l){l=l===void 0?{}:l;return _.g$(p,l,y)};
zn7=function(p){switch(p){case "MUSIC":return!0;default:return!1}};
YY6=function(p){return p==null?void 0:p.filter(function(y){return y.premiereTrailerBadgeRenderer})};
pCd=function(p){var y,l=p==null?void 0:(y=p.find(function(U){return U.thumbnailOverlayTimeStatusRenderer}))==null?void 0:y.thumbnailOverlayTimeStatusRenderer,q,t;
if((l==null?0:(q=l.icon)==null?0:q.iconType)&&zn7(l==null?void 0:(t=l.icon)==null?void 0:t.iconType)){var E;return{icon:l==null?void 0:(E=l.icon)==null?void 0:E.iconType}}var e,C;var u=(p=(e=p==null?void 0:(u=p.find(function(U){return U.thumbnailBottomOverlayViewModel}))==null?void 0:u.thumbnailBottomOverlayViewModel)==null?void 0:(C=e.badges)==null?void 0:C.find(function(U){var b,P;
return((b=_.G(U,Ik1))==null?void 0:(P=b.inlinePlaybackBadgeData)==null?void 0:P.replicateAsTimestamp)===!0}))?_.G(p,Ik1):void 0;
if(u==null?0:u.icon){var a,m;if((u=(a=_.qea(u==null?void 0:u.icon))==null?void 0:(m=a.clientResource)==null?void 0:m.imageName)&&zn7(u))return{icon:u}}return{}};
EhV=function(p,y){var l=yJi,q=_.c(_.nr(l31(new qC6(function(){},l,y)),void 0,"PAnyd")),t=q.next().value,E=q.next().value,e=new qC6(function(C){E(C)},l,y);
_.NA(function(){Promise.resolve().then(function(){var C,u=(C=p())!=null?C:{};e.playerControlsData=u;_.n("player_controls_skip_double_signal_old")&&(e.lastSeenPlayerApi=_.Yz(u.playerApi));_.n("player_controls_skip_double_signal_old")||(e.lastSeenPlayerApi=_.Yz(u.playerApi));sKm(e)});
_.TP(function(){tMw(e)})},"HikUP");
_.TP(function(){tMw(e)});
return function(){return t()}};
JJA=function(p){return function(y){var l=p(),q={playerState:y};if(y===1){var t;(t=l.playerApi)==null||t.loadModule("captions")}if(y===0){var E;(E=l.playerApi)==null||E.unloadModule("captions")}(y!==-1||_.n("web_imp_controls_set_player_state_killswitch"))&&l.setState(q)}};
cJR=function(p){return function(y){p().setState({playbackRate:y})}};
esO=function(p){return function(y){var l=p(),q=l.playerApi,t=q==null?void 0:q.getVideoData(),E=(t==null?void 0:t.isLive)||!1;t=t==null?void 0:t.video_id;E={videoDuration:ird(q||void 0),isLive:E,videoId:t};E.videoId!==l.videoId&&(E=Object.assign({},_.A8j(q),E));if(y==null?0:y.playertype)E.playerType=y.playertype;if(q){E.captionsAvailable=_.tX(q);y=E;var e;t=(e=q.getStoryboardLevel(q.getNumberOfStoryboardLevels()-1))==null?void 0:e.intervalMs;y.storyboardInterval=t?t/1E3:void 0;E.captionsAvailable&&
(E.captionsEnabled=_.DF9(q))}E.volumeMuted=!(q==null||!q.isMuted());l.setState(E)}};
hsu=function(p){return function(y){var l=p(),q=l.playerApi;if(q){var t=q.getPresentingPlayerType();y={playedTime:y||0,percentLoaded:q.getVideoLoadedFraction(),playerType:t};l.playerState===0&&(y.playedTime=l.videoDuration);l.isLive&&(t=q.getProgressState(t),y.playedTime-=t.seekableStart,y.videoDuration=ird(q));if(l.playerType===1)q=!1;else{var E;if((E=l.uxConfig)==null?0:E.showCuedOverlay){var e;q=!((e=l.playerApi)==null?0:e.getPlayerStateObject(l.playerType).isDomPaused)}else q=!0}q&&delete y.playedTime;
l.setState(y)}}};
Cv9=function(p){return function(){var y=p(),l,q,t,E={volume:(t=(l=y.playerApi)==null?void 0:l.getVolume())!=null?t:0,volumeMuted:!((q=y.playerApi)==null||!q.isMuted())};y.setState(E)}};
u39=function(p){return function(){var y=p(),l=y.playerApi;if(l){var q={captionsAvailable:_.tX(l)};q.captionsAvailable&&(q.captionsEnabled=_.DF9(l));y.setState(q)}}};
Rs9=function(p){return function(){var y=p();if(y.playerApi&&!(y.volumeMuted||y.controlsVisible&&y.isProbablyAScreenreaderUser)){y.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var l;(l=document.querySelector(".player-control-play-pause-icon"))==null||l.focus()}}};
WIV=function(p){return{appApi:Object.assign({},_.Uhu(),{showCaptionsToggleToast:function(y){var l,q;(q=(l=p()).showCaptionsToggleToast)==null||q.call(l,y)},
openInMiniplayer:function(){var y,l;(l=(y=p()).openInMiniplayer)==null||l.call(y)}})}};
a3u=function(p,y){var l,q,t;return!!(p==null?0:(l=p.playerResponse)==null?0:(q=l.playerConfig)==null?0:(t=q.inlinePlaybackConfig)==null?0:t.showScrubbingControls)&&!(y==null?0:y.hideScrubbingControls)};
_.mMm=function(p){var y=!p.miniplayerIsActive;return[5,2,0].includes(p.miniplayerPlaybackState)||y};
UMu={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};$Md=function(p,y){var l,q,t,E,e;_.h(function(C){if(!y.length)return C.return([]);l=[];q=_.c(y);for(t=q.next();!t.done;t=q.next())E=t.value,(e=p.resolveIcon(E))&&!p.iconCache[e.url]&&l.push(_.QTw(p,e).then(function(){}).catch(function(){}));
return C.return(Promise.all(l))})};
jKA=function(p,y){var l=[];y=(new Set(y)).values();y=_.c(y);for(var q=y.next();!q.done;q=y.next()){q=q.value;for(var t=_.c(Object.values(UMu)),E=t.next();!E.done;E=t.next())l.push({iconName:q,iconStyle:E.value})}$Md(p.iconManager,l)};
_.bhA=function(p,y,l){var q=l!=null?l:p.iconsToFetch;q!=null&&q.length?y!==void 0&&y>=0?_.rJ(_.TR,function(){jKA(p,q)},y):jKA(p,q):Promise.resolve()};
qC6=function(p,y,l){var q=this;this.renderFn=p;this.listeners=y;this.context=l;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var t;this.lastSeenPlayerApi=_.Yz((t=this.playerControlsData)==null?void 0:t.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.A8j(),void 0);_.n("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){l31(q).setState({playerState:-1});q.resetRecentlyNavigatedJobId&&_.TR.cancelJob(q.resetRecentlyNavigatedJobId);
q.recentlyNavigated=!0;q.resetRecentlyNavigatedJobId=_.TR.addJob(function(){q.recentlyNavigated=!1},8,1E4)})};
qC6.prototype.setState=function(p){if(!_.n("mweb_player_skip_no_op_state_changes")||!rU9(p,this.state))if(this.state=Object.assign({},this.state,p),!_.n("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)p=-1,_.n("player_controls_log_creation_killswitch")||Sri()||(p=(0,_.uM)()),_.fy("pcu_s"),_.fy("pcu_se"),_.fy("pcu_rs"),this.renderFn(l31(this)),_.fy("pcu_re"),FuV(p),_.TR.addJob(function(){_.fy("pcu_ap")},8)};
var l31=function(p){var y;var l=_.Yz((y=p.playerControlsData)==null?void 0:y.playerApi);return Object.assign({},p.state,{setState:p.boundSetState,domMeasurements:{progressBarLineRect:p.progressBarLineRect},playerApi:l,appApi:p.context.appApi,playerContainer:p.context.playerContainer,playerControlContainer:p.context.playerControlContainer,uxConfig:p.context.uxConfig})},sKm=function(p){p.listeners.forEach(function(y){p.eventListenerCleanupFunctions.push(y.register(function(){return l31(p)},function(){return p.getData()}))})},
tMw=function(p){p.eventListenerCleanupFunctions.forEach(function(y){y()});
p.eventListenerCleanupFunctions.length=0};
qC6.prototype.getData=function(){return this.playerControlsData};var rp=new _.uK("abuseReportFlowState");var nhd=new _.uK("feedbackFormFlowState");var GoV=new _.uK("inputBoxViewModel");var PvV=new _.uK("flowNextStepCommand");var AJm=new _.uK("flowPrevStepCommand");var Zh7=new _.uK("updateFlowCommand");_.MM6=new _.uK("flowStepRenderer");_.nZw=new _.uK("lengthValidationRule");var PBi=new _.uK("regexValidationRule");var Z6O=new _.uK("selectedValidationRule");var VM9=new _.uK("talkToRecsViewModel");var ghR=new _.uK("creatorGoalSetUpFlowDropdownItemViewModel");var QK9=new _.uK("creatorGoalSetUpFlowDropdownViewModel");var Ik1=new _.uK("thumbnailBadgeViewModel");_.KIA=new _.uK("radioButtonGroupViewModel");var NT7=new _.uK("panelFooterViewModel");var wCm=new _.uK("ypcCancelRecurrenceCommand");var ihT=new _.uK("cancellationFlowState");var cMA=new _.uK("premiumPurchaseFlowState");var rJd=new _.uK("surveyAnswerCardRenderer");var SCd=new _.uK("showMoreButtonRenderer");var FIA;var LIT,ko6=function(){if(LIT!==void 0)return LIT;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="header" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    <yt-image id="image" data="[[data.image]]" height="100" preserve-height="" width="100" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-image>\n  </div>\n  <div id="subheader" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="description" data="[[data.pageDescription]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n  </div>\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;FIA===void 0&&(FIA=document.createElement("template"));var q=FIA;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return LIT=p};var Sv=function(){var p=_.w.apply(this,arguments)||this;p.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";p.goalDescription="";p.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";p.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";p.startButtonId="start-button";p.exampleButtonId="example-button";return p};
_.A(Sv,_.w);_.J=Sv.prototype;_.J.getGoalDropdownItems=function(){var p,y;return(y=_.G((p=this.data)==null?void 0:p.purchaseTargetDropdown,QK9))==null?void 0:y.dropdownItems};
_.J.getTimerDropdownItems=function(){var p,y;return(y=_.G((p=this.data)==null?void 0:p.timerDropdown,QK9))==null?void 0:y.dropdownItems};
_.J.getColorDropdownItems=function(){var p,y;return(y=_.G((p=this.data)==null?void 0:p.colorDropdown,QK9))==null?void 0:y.dropdownItems};
_.J.getDropdownItemText=function(p){var y;return(y=_.G(p,ghR))==null?void 0:y.itemLabel};
_.J.getDropdownItemValue=function(p){p=_.G(p,ghR);return(p==null?void 0:p.timeLimit)||(p==null?void 0:p.purchaseTarget)||(p==null?void 0:p.eligiblePurchaseType)};
_.J.updateFlowState=function(p){_.$w(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:p}])};
_.J.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.J.updateGoalValue=function(p){this.goal=p.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.J.onTextValueChanged=function(p){this.goalDescription=p.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.J.updateTimerValue=function(p){this.timer=p.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.J.updateTierValue=function(p){this.tier=p.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.J.getButtonViewModel=function(p){p=(p==null?void 0:p.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var y,l=_.G((y=this.data)==null?void 0:y.startGoalButton,_.xo);return Object.assign({},l,{state:p})};
_.Jh.Object.defineProperties(Sv,{template:{configurable:!0,enumerable:!0,get:function(){return ko6()}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Sv.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Sv.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Sv.prototype,"goal",void 0);_.H([_.Q(),_.x("design:type",Object)],Sv.prototype,"goalDescription",void 0);_.H([_.Q(),_.x("design:type",Object)],Sv.prototype,"timer",void 0);_.H([_.Q(),_.x("design:type",Object)],Sv.prototype,"tier",void 0);
_.H([_.Q(),_.x("design:type",Object)],Sv.prototype,"startButtonId",void 0);_.H([_.Q(),_.x("design:type",Object)],Sv.prototype,"exampleButtonId",void 0);_.H([_.z9({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Sv);_.D(Sv,"yt-creator-goal-set-up-flow-view-model",function(){return ko6()},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var Nsd;var DM6;var Hhu;var Ts7=function(){return _.w.apply(this,arguments)||this};
_.A(Ts7,_.w);_.H([_.Q(),_.x("design:type",Object)],Ts7.prototype,"data",void 0);_.H([_.z9({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],Ts7);
_.D(Ts7,"yt-survey-answer-card-renderer",function(){if(Hhu===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-answer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_answer_card_renderer.yt.survey.answer.card.renderer.css.js--\x3e<yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[data.answerString]]" class="style-scope yt-survey-answer-card-renderer"></yt-formatted-string><yt-icon id="card-icon" icon="CHEVRON_RIGHT" class="style-scope yt-survey-answer-card-renderer"></yt-icon>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;DM6===void 0&&(DM6=document.createElement("template"));var q=DM6;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Hhu=p}p=Hhu;return p},{mode:2});var xMd;var Bs7;var FS=function(){return _.w.apply(this,arguments)||this};
_.A(FS,_.w);_.J=FS.prototype;_.J.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.J.selectedItemChanged=function(p){_.$w(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[p.feedbackToken||""]}])};
_.J.surveyAnswerCardRendererClicked=function(p){if(p.target&&_.G(p.model.item,rJd)){var y=p.target;p=_.G(p.model.item,rJd);p.onTapCommand?_.Gf(y,[p.onTapCommand],y):this.data.onTapCommand&&_.Gf(y,[this.data.onTapCommand],y);this.selectedItemChanged(p)}};
_.J.checkIsCancellationStyle=function(p){return p==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.J.updateSelectedItemFromBinding=function(p){this.selectedItem=p.detail.value};
FS.prototype.onSelectedItemChanged=FS.prototype.onSelectedItemChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],FS.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],FS.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],FS.prototype,"selectedItem",void 0);_.H([_.Q({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.x("design:type",Boolean)],FS.prototype,"isCancellationStyle",void 0);
_.H([_.gd("selectedItem"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FS.prototype,"onSelectedItemChanged",null);_.H([_.z9({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],FS);
_.D(FS,"yt-survey-flow-step-renderer",function(){if(Bs7===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_flow_step_renderer.yt.survey.flow.step.renderer.css.js--\x3e<yt-formatted-string id="question" force-default-style="" split-lines="1" text="[[data.question]]" class="style-scope yt-survey-flow-step-renderer">\n</yt-formatted-string>\n\n<template is="dom-if" if="[[isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <template is="dom-repeat" items="[[data.answerCards]]" as="item" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n      <yt-survey-answer-card-renderer data="[[item.surveyAnswerCardRenderer]]" on-click="surveyAnswerCardRendererClicked" class="style-scope yt-survey-flow-step-renderer"></yt-survey-answer-card-renderer>\n    </template>\n  </template>\n</template>\n\n<template is="dom-if" if="[[!isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[selectedItem]]" on-selected-changed="updateSelectedItemFromBinding" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-repeat" items="[[data.answerCards]]" class="style-scope yt-survey-flow-step-renderer">\n      <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n        <tp-yt-paper-radio-button id="radio" aria-label="[[getSimpleString(item.surveyAnswerCardRenderer.answerString)]]" name="[[item.surveyAnswerCardRenderer]]" no-ink="" class="style-scope yt-survey-flow-step-renderer">\n          <yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[item.surveyAnswerCardRenderer.answerString]]" class="style-scope yt-survey-flow-step-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;xMd===void 0&&(xMd=document.createElement("template"));var q=xMd;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Bs7=p}p=Bs7;return p},{mode:2});var LV=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return p};
_.A(LV,_.w);LV.prototype.handleSurveyFlowStepOptionChanged=function(p){this.ytdReduxBehavior.dispatch(_.$y({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:p}));_.$w(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:p}}])};
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],LV.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],LV.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],LV.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],LV);
_.D(LV,"ytd-survey-flow-step-renderer",function(){if(Nsd!==void 0)return Nsd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-survey-flow-step-renderer data="[[data]]" class="style-scope ytd-survey-flow-step-renderer"></yt-survey-flow-step-renderer>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Nsd=p},{mode:1});var LuA;LuA=_.T4({avatarViewModel:_.v5,buttonViewModel:_.wZ,subscribeButtonViewModel:_.f9,imageBannerViewModel:_.jnr});_.f3u=_.Sw(_.NqT);_.uX(_.NqT);var vhd;var kp=function(){return _.w.apply(this,arguments)||this};
_.A(kp,_.w);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],kp.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],kp.prototype,"data",void 0);_.H([_.k({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],kp);
_.D(kp,"ytd-channel-history-renderer",function(){if(vhd!==void 0)return vhd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-history-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-history-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope ytd-channel-history-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n</div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return vhd=p},{mode:1});var XCi;var dM7=function(){return _.w.apply(this,arguments)||this};
_.A(dM7,_.w);_.H([_.Q(),_.x("design:type",Object)],dM7.prototype,"data",void 0);_.H([_.k({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],dM7);
_.D(dM7,"ytd-feature-enablement-info-renderer",function(){if(XCi!==void 0)return XCi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feature-enablement-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-feature-enablement-info-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n</div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return XCi=p},{mode:1});var Oh6;var ohd;var NX=function(){var p=_.w.apply(this,arguments)||this;p.textBoxMaxLength=_.n("enable_tvod_campaign_code_integration")?15:12;return p};
_.A(NX,_.w);_.J=NX.prototype;_.J.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.J.onSubmit=function(){var p=this.data.serviceEndpoint,y=_.G(p,_.Uw);y&&p&&(y.couponCode=this.userInput,_.WC().resolve(_.aK).resolveCommand(p,{form:{element:this.hostElement}}))};
_.J.validate=function(){var p=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=p&&!this.data.errorMessage;this.showErrorMessage=p&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.n("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.J.computeStyle=function(p){return p};
_.J.computeShowValidationBelowInput=function(p){return p!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.J.updateUserInputFromBinding=function(p){this.userInput=p.currentTarget.value};
_.J.updateShowErrorMessageFromBinding=function(p){this.showErrorMessage=p.detail.value};
_.Jh.Object.defineProperties(NX.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
NX.prototype.dataChanged=NX.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],NX.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",String)],NX.prototype,"userInput",void 0);_.H([_.Q(),_.x("design:type",Boolean)],NX.prototype,"disableApplyButton",void 0);_.H([_.Q(),_.x("design:type",Boolean)],NX.prototype,"hideApplyButton",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],NX.prototype,"hideErrorMessage",void 0);_.H([_.Q(),_.x("design:type",Boolean)],NX.prototype,"showTick",void 0);_.H([_.Q(),_.x("design:type",Boolean)],NX.prototype,"showErrorMessage",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],NX.prototype,"couponStyle",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.x("design:type",Boolean)],NX.prototype,"showValidationBelowInput",void 0);_.H([_.Q(),_.x("design:type",Object)],NX.prototype,"textBoxMaxLength",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NX.prototype,"dataChanged",null);
_.H([_.g("showTick","showErrorMessage","userInput"),_.x("design:type",String),_.x("design:paramtypes",[])],NX.prototype,"validationState",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],NX);
_.D(NX,"ytd-ypc-coupon-renderer",function(){if(ohd!==void 0)return ohd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-coupon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-ypc-coupon-renderer">\n  <tp-yt-paper-input-container class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" invalid="[[showErrorMessage]]" use-v2-underline="" on-invalid-changed="updateShowErrorMessageFromBinding">\n    <input id="input" maxlength$="[[textBoxMaxLength]]" autocomplete="off" placeholder="[[data.boxHint]]" value="[[userInput]]" on-keyup="validate" slot="input" on-input="updateUserInputFromBinding" class="style-scope ytd-ypc-coupon-renderer">\n    <tp-yt-paper-input-error slot="add-on" aria-live="assertive" hidden="[[!showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n      [[data.errorMessage]]\n    </tp-yt-paper-input-error>\n  </tp-yt-paper-input-container>\n</div>\n\n<div id="validation" class="style-scope ytd-ypc-coupon-renderer">\n  <div hidden="[[showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showErrorMessage]]">\n      [[data.errorMessage]]\n    </div>\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]">\n      [[data.successMessage]]\n    </div>\n  </div>\n  <yt-icon-button class="confirmation style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]" noink="">\n    <yt-icon icon="check" class="style-scope ytd-ypc-coupon-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n\n<ytd-button-renderer id="apply" data="[[data.applyCoupon.buttonRenderer]]" disabled="[[disableApplyButton]]" hidden="[[hideApplyButton]]" on-tap="onSubmit" class="style-scope ytd-ypc-coupon-renderer">\n</ytd-button-renderer>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return ohd=p},{mode:1});var DC=function(){return _.w.apply(this,arguments)||this};
_.A(DC,_.w);DC.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"}}}};
DC.prototype.computeStyle=function(p){return p};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],DC.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],DC.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],DC.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],DC.prototype,"buttonStyle",void 0);_.H([_.k({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],DC);
_.D(DC,"ytd-flow-bottom-bar-renderer",function(){if(Oh6!==void 0)return Oh6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="coupon-renderer" hidden="[[!data.couponRenderer]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="secondary-button" hidden="[[!data.secondaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="primary-button" hidden="[[!data.primaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Oh6=p},{mode:1});var zsA;var YCu;var I36;var Hq=function(){return _.w.apply(this,arguments)||this};
_.A(Hq,_.w);Hq.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Hq.prototype.focus=function(p){this.title&&_.tp(this.title,p)};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Hq.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Hq.prototype,"data",void 0);_.H([_.rd("#title"),_.x("design:type",HTMLElement)],Hq.prototype,"title",void 0);_.H([_.k({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Hq);
_.D(Hq,"ytd-flow-top-bar-renderer",function(){if(I36!==void 0)return I36;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="back-button" class="style-scope ytd-flow-top-bar-renderer"></div>\n<div id="content" class="style-scope ytd-flow-top-bar-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n</div>\n<div id="trailing-buttons" class="style-scope ytd-flow-top-bar-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return I36=p},{mode:1});var p71;var yk6;var lK6;var Ta=function(){return _.w.apply(this,arguments)||this};
_.A(Ta,_.w);Ta.prototype.freeTextValueChanged=function(){_.$w(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Ta.prototype.updateFreeTextValueFromBinding=function(p){this.freeTextValue=p.detail.value};
_.Jh.Object.defineProperties(Ta.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var p,y,l=(y=(p=this.data)==null?void 0:p.responseMaxLength)!=null?y:500,q;return((q=this.freeTextValue)!=null?q:"").length>=l?"maxed-out":""}}});
Ta.prototype.freeTextValueChanged=Ta.prototype.freeTextValueChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ta.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Ta.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",String)],Ta.prototype,"freeTextValue",void 0);_.H([_.rd("#user-input"),_.x("design:type",HTMLTextAreaElement)],Ta.prototype,"input",void 0);
_.H([_.g("freeTextValue"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ta.prototype,"characterLimitClass",null);_.H([_.gd("freeTextValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ta.prototype,"freeTextValueChanged",null);_.H([_.z9({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Ta);
_.D(Ta,"yt-free-text-input-flow-step-renderer",function(){if(lK6===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_free_text_input_flow_step_renderer.yt.free.text.input.flow.step.renderer.css.js--\x3e<div id="question-container" class="style-scope yt-free-text-input-flow-step-renderer"><yt-formatted-string id="question" split-lines="1" text="[[data.question]]" class="style-scope yt-free-text-input-flow-step-renderer"></yt-formatted-string></div><div id="input-area" class="style-scope yt-free-text-input-flow-step-renderer"><tp-yt-paper-textarea id="user-input" class$="[[characterLimitClass]] style-scope yt-free-text-input-flow-step-renderer" char-counter="" label="[[getSimpleString(data.questionExplanation)]]" maxlength="[[data.responseMaxLength]]" placeholder="[[data.placeholderText]]" required="" rows="2" value="[[freeTextValue]]" on-value-changed="updateFreeTextValueFromBinding"></tp-yt-paper-textarea></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;yk6===void 0&&(yk6=document.createElement("template"));var q=yk6;l.call(y,q.content.cloneNode(!0),p.content.firstChild);lK6=p}p=lK6;return p},{mode:2});var xp=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return p};
_.A(xp,_.w);xp.prototype.handleFreeTextFlowStepInputChanged=function(p){_.$w(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:p}}])};
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],xp.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],xp.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],xp.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],xp);
_.D(xp,"ytd-free-text-input-flow-step-renderer",function(){if(p71!==void 0)return p71;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-free-text-input-flow-step-renderer data="[[data]]" class="style-scope ytd-free-text-input-flow-step-renderer"></yt-free-text-input-flow-step-renderer>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return p71=p},{mode:1});var q1d;var s76;var t0i=function(){return _.w.apply(this,arguments)||this};
_.A(t0i,_.w);_.H([_.Q(),_.x("design:type",Object)],t0i.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],t0i);
_.D(t0i,"ytd-metadata-line-renderer",function(){if(s76!==void 0)return s76;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-line-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="line-wrapper" class="style-scope ytd-metadata-line-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badge]]" hidden="[[!data.badge]]" class="style-scope ytd-metadata-line-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-metadata-line-renderer"></yt-formatted-string>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return s76=p},{mode:1});var Bq=function(){return _.w.apply(this,arguments)||this};
_.A(Bq,_.w);Bq.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Bq.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Bq.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Bq.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Bq.prototype,"isMasthead",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],Bq);
_.D(Bq,"ytd-media-product-renderer",function(){if(q1d!==void 0)return q1d;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product" class="style-scope ytd-media-product-renderer">\n  <div id="image" hidden="[[!data.thumbnail]]" class="style-scope ytd-media-product-renderer">\n    <yt-img-shadow id="thumbnail" height="90" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-product-renderer"></yt-img-shadow>\n  </div>\n  <div id="metadata" class="style-scope ytd-media-product-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-product-renderer"></yt-formatted-string>\n    <div id="metadata-lines" class="style-scope ytd-media-product-renderer"></div>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return q1d=p},{mode:1});var EQV;var fV=function(){return _.w.apply(this,arguments)||this};
_.A(fV,_.w);fV.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
fV.prototype.onBillboardImageLoaded=function(){_.Ub(this.hostElement,"yt-refit")};
fV.prototype.onBillboardImageLoaded=fV.prototype.onBillboardImageLoaded;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],fV.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],fV.prototype,"data",void 0);_.H([_.rd("#billboardImage"),_.x("design:type",Object)],fV.prototype,"billboardImage",void 0);_.H([_.VU("yt-img-shadow-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fV.prototype,"onBillboardImageLoaded",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],fV);
_.D(fV,"ytd-billboard-masthead-renderer",function(){if(EQV!==void 0)return EQV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-billboard-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="billboardImage" class="billboard with-placeholder style-scope ytd-billboard-masthead-renderer" fit="" thumbnail="[[data.billboard]]">\n</yt-img-shadow>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return EQV=p},{mode:1});var JkT;var vq=function(){var p=_.w.apply(this,arguments)||this;p.smallSize=!1;return p};
_.A(vq,_.w);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],vq.prototype,"ytComponentBehaviorType",void 0);_.H([_.Q(),_.x("design:type",Object)],vq.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],vq.prototype,"smallSize",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],vq);
_.D(vq,"ytd-bullet-formatted-string",function(){if(JkT!==void 0)return JkT;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-bullet-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="bullet-icon style-scope ytd-bullet-formatted-string" hidden="[[!data.icon.iconType]]" icon="[[computeIcon_(data.icon)]]">\n</yt-icon>\n<yt-formatted-string class="text style-scope ytd-bullet-formatted-string" split-lines="true" text="[[data.text]]">\n</yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return JkT=p},{mode:1});var ckO;var XS=function(){return _.w.apply(this,arguments)||this};
_.A(XS,_.w);XS.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],XS.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],XS.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],XS);
_.D(XS,"ytd-offer-detail-renderer",function(){if(ckO!==void 0)return ckO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="description style-scope ytd-offer-detail-renderer" split-lines="true" text="[[data.description]]">\n</yt-formatted-string>\n<div id="product" hidden="[[!data.product]]" class="style-scope ytd-offer-detail-renderer"></div>\n<div class="benefits style-scope ytd-offer-detail-renderer">\n    <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-detail-renderer">\n      <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-detail-renderer" data="[[benefit]]">\n      </ytd-bullet-formatted-string>\n    </template>\n</div>\n<yt-formatted-string class="terms style-scope ytd-offer-detail-renderer" force-default-style="" text="[[data.terms]]">\n</yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return ckO=p},{mode:1});var eJw;var dp=function(){return _.w.apply(this,arguments)||this};
_.A(dp,_.w);dp.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"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],dp.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],dp.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],dp.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],dp);
_.D(dp,"ytd-offer-detail-step-renderer",function(){if(eJw!==void 0)return eJw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-detail-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-detail-step-renderer"></div>\n\n\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return eJw=p},{mode:1});var hJ7;var OO=function(){var p=_.w.apply(this,arguments)||this;p.isInOfferModule=!1;return p};
_.A(OO,_.w);_.J=OO.prototype;_.J.computeHasEndpoint=function(){var p;return!((p=this.data)==null||!p.onClickCommand)};
_.J.dataChanged=function(){var p;if((p=this.data)==null?0:p.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.J.detached=function(){var p;if((p=this.data)==null?0:p.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.J.handleClickEvent=function(){var p;if((p=this.data)==null?0:p.onClickCommand){var y;this.componentBehavior.resolveCommand((y=this.data)==null?void 0:y.onClickCommand)}};
_.J.onContentKeyDown=function(p){p.key==="Enter"?this.handleClickEvent(p):p.key===" "&&p.preventDefault()};
_.J.onContentKeyUp=function(p){p.key===" "&&this.handleClickEvent(p)};
OO.prototype.dataChanged=OO.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],OO.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],OO.prototype,"data",void 0);_.H([_.Q({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],OO.prototype,"hasEndpoint",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],OO.prototype,"isInOfferModule",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OO.prototype,"dataChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],OO);
_.D(OO,"ytd-channel-masthead-renderer",function(){if(hJ7!==void 0)return hJ7;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-channel-masthead-renderer">\n  <yt-image class="channel-masthead style-scope ytd-channel-masthead-renderer" data="[[data.image]]" height="1" width="1">\n  </yt-image>\n  <div class="text style-scope ytd-channel-masthead-renderer">\n    <yt-attributed-string class="title style-scope ytd-channel-masthead-renderer" data="[[data.title]]">\n    </yt-attributed-string>\n    <yt-attributed-string class="subtitle style-scope ytd-channel-masthead-renderer" data="[[data.subtitle]]">\n    </yt-attributed-string>\n  </div>\n</div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return hJ7=p},{mode:1});var CM9;var o0=function(){var p=_.w.apply(this,arguments)||this;p.thumbnailObjectFit="CONTAIN";p.thumbnailObjectPosition="LEFT";p.isExpanded=!1;return p};
_.A(o0,_.w);_.J=o0.prototype;_.J.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.J.dataChanged=function(){this.resetStates()};
_.J.computeisTapOnOfferInfoContainerEnabled=function(){var p;return((p=this.data)==null?void 0:p.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.J.onExpandBtnClick=function(){var p,y=_.G((p=this.data)==null?void 0:p.showMoreButtonRenderer,SCd);y&&_.Kw(_.Ll(),y.trackingParams);this.isExpanded=!this.isExpanded};
_.J.onOfferInfoClick=function(p){this.isTapOnOfferInfoContainerEnabled&&(_.WN(_.Jx(p)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.aW(_.Jx(p)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.J.onBottomBarClick=function(){this.executeTapCommand()};
_.J.executeTapCommand=function(){var p,y=(p=this.data)==null?void 0:p.tapCommand;y&&this.ytComponentBehavior.resolveCommand(y)};
_.J.resetStates=function(){this.isExpanded=!1};
_.Jh.Object.defineProperties(o0.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var p=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),y,l,q;return((y=this.data)==null?void 0:y.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&p&&!!((l=this.data)==null?0:(q=l.benefits)==null?0:q.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return((y=_.G((p=this.data)==null?void 0:p.showMoreButtonRenderer,SCd))==null?void 0:y.showMoreButtonTitle)||((l=this.data)==null?void 0:l.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return((y=_.G((p=this.data)==null?void 0:p.showMoreButtonRenderer,SCd))==null?void 0:y.showLessButtonTitle)||((l=this.data)==null?void 0:l.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var p;return(p=this.showLessButtonTitle)!=null?p:""}var y;return(y=this.showMoreButtonTitle)!=null?y:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return((p=this.data)==null?void 0:p.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((y=this.data)==null?0:y.footerTitle)||((l=this.data)==null?0:l.footerSubtitle))}}});
o0.prototype.dataChanged=o0.prototype.dataChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],o0.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],o0.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],o0.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",String)],o0.prototype,"thumbnailObjectFit",void 0);
_.H([_.Q(),_.x("design:type",String)],o0.prototype,"thumbnailObjectPosition",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.x("design:type",Boolean)],o0.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.H([_.Q(),_.x("design:type",Object)],o0.prototype,"isExpanded",void 0);_.H([_.Q(),_.x("design:type",Object)],o0.prototype,"data",void 0);_.H([_.Q({computed:"computeIcon_(data.footerIcon)"}),_.x("design:type",String)],o0.prototype,"icon",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],o0.prototype,"dataChanged",null);_.H([_.g("data.thumbnail"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],o0.prototype,"hasThumbnail",null);_.H([_.g("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],o0.prototype,"enableExpandButton",null);
_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],o0.prototype,"enableOfferContentIcon",null);_.H([_.g("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.x("design:type",Object),_.x("design:paramtypes",[])],o0.prototype,"showMoreButtonTitle",null);_.H([_.g("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.x("design:type",Object),_.x("design:paramtypes",[])],o0.prototype,"showLessButtonTitle",null);
_.H([_.g("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.x("design:type",String),_.x("design:paramtypes",[])],o0.prototype,"expandedBtnText",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],o0.prototype,"enableBottomBar",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],o0);
_.D(o0,"ytd-offer-card-renderer",function(){if(CM9!==void 0)return CM9;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-card style-scope ytd-offer-card-renderer" id="offer-card">\n  \n  <div class="top-banner style-scope ytd-offer-card-renderer" id="top-banner" hidden="[[!data.topBannerImage]]">\n    <yt-img-shadow class="top-banner-image style-scope ytd-offer-card-renderer" object-fit="COVER" thumbnail="[[data.topBannerImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="offer-info style-scope ytd-offer-card-renderer" id="offer-info" on-click="onOfferInfoClick">\n    \n    <div class="thumbnail style-scope ytd-offer-card-renderer" id="thumbnail" hidden="[[!hasThumbnail]]"></div>\n    <div class="description-section style-scope ytd-offer-card-renderer">\n      <div class="text style-scope ytd-offer-card-renderer">\n        <yt-formatted-string class="title style-scope ytd-offer-card-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="description style-scope ytd-offer-card-renderer" split-lines="true" text="[[data.description]]">\n        </yt-formatted-string>\n      </div>\n      <button class="expand-button style-scope ytd-offer-card-renderer" id="expand-button" hidden="[[!enableExpandButton]]" on-click="onExpandBtnClick" aria-label="[[expandedBtnText]]">\n        <span class="style-scope ytd-offer-card-renderer">[[expandedBtnText]]</span>\n      </button>\n      <div class="offer-content-icon-div style-scope ytd-offer-card-renderer" id="offer-content-icon-div" hidden="[[!enableOfferContentIcon]]">\n        <yt-icon id="offer-content-icon" class="offer-content-icon style-scope ytd-offer-card-renderer" icon="[[icon]]">\n        </yt-icon>\n      </div>\n    </div>\n    \n    <div class="benefits style-scope ytd-offer-card-renderer" id="benefits" hidden="[[!isExpanded]]">\n      <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-card-renderer">\n        <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-card-renderer" data="[[benefit]]" small-size="true">\n        </ytd-bullet-formatted-string>\n      </template>\n    </div>\n  </div>\n  \n  <button class="bottom-bar style-scope ytd-offer-card-renderer" id="bottom-bar" hidden="[[!enableBottomBar]]" on-click="onBottomBarClick" aria-label="[[data.footerTitle]]">\n    <div class="bottom-bar-info style-scope ytd-offer-card-renderer">\n      <yt-formatted-string class="bottom-bar-title style-scope ytd-offer-card-renderer" text="[[data.footerTitle]]"></yt-formatted-string>\n      <yt-formatted-string class="bottom-bar-subtitle style-scope ytd-offer-card-renderer" text="[[data.footerSubtitle]]"></yt-formatted-string>\n    </div>\n    <yt-icon class="icon style-scope ytd-offer-card-renderer" icon="[[icon]]"></yt-icon>\n  </button>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return CM9=p},{mode:1});var uL1;var za=function(){return _.w.apply(this,arguments)||this};
_.A(za,_.w);za.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"}}}};
za.prototype.onClick=function(p){if(!_.WN(p.composedPath()||[],this.hostElement,["A".toString()])){var y,l;if((p=(l=_.G((y=this.data)==null?void 0:y.actionButton,_.yv))==null?void 0:l.command)&&!this.ytComponentBehavior.resolveCommand(p)){var q;(q=_.Ll())==null||q.clickCommand(p);_.WC().resolve(_.aK).resolveCommand(p,{form:{element:this.hostElement}})}}};
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],za.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],za.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],za.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],za.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],za);
_.D(za,"ytd-offer-content-renderer",function(){if(uL1!==void 0)return uL1;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-info style-scope ytd-offer-content-renderer">\n  <div class="offer-content style-scope ytd-offer-content-renderer" id="offer-content" on-click="onClick">\n    <div id="thumbnail" class="style-scope ytd-offer-content-renderer"></div>\n    <div class="text style-scope ytd-offer-content-renderer">\n      <yt-formatted-string class="title style-scope ytd-offer-content-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="description style-scope ytd-offer-content-renderer" split-lines="true" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="action-button" class="style-scope ytd-offer-content-renderer"></div>\n</div>\n<div class="benefits style-scope ytd-offer-content-renderer">\n  <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-content-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-content-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n  </template>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return uL1=p},{mode:1});var RJT;var Yp=function(){return _.w.apply(this,arguments)||this};
_.A(Yp,_.w);Yp.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Jh.Object.defineProperties(Yp.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var p,y;return!((p=this.data)==null||!p.title)||!((y=this.data)==null||!y.description)}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Yp.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Yp.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Yp.prototype,"data",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Yp.prototype,"hasHeaderData",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Yp);
_.D(Yp,"ytd-offer-section-renderer",function(){if(RJT!==void 0)return RJT;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="heading style-scope ytd-offer-section-renderer" hidden="[[!hasHeaderData]]">\n  <yt-formatted-string class="title style-scope ytd-offer-section-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="description style-scope ytd-offer-section-renderer" split-lines="" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div id="offer-list" class="style-scope ytd-offer-section-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return RJT=p},{mode:1});var WjR;var I0=function(){return _.w.apply(this,arguments)||this};
_.A(I0,_.w);
I0.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"}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],I0.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],I0.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],I0.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],I0);
_.D(I0,"ytd-offer-selection-step-renderer",function(){if(WjR!==void 0)return WjR;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-selection-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="coupon-section" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="terms-section" class="style-scope ytd-offer-selection-step-renderer"></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return WjR=p},{mode:1});var aKd;var pA=function(){return _.w.apply(this,arguments)||this};
_.A(pA,_.w);pA.prototype.computeStyle=function(p){return p};
pA.prototype.computeImageWidth=function(p){return p==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.H([_.Q({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.x("design:type",String)],pA.prototype,"containerStyle",void 0);_.H([_.Q({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.x("design:type",String)],pA.prototype,"imageWidth",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],pA.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],pA.prototype,"data",void 0);
_.H([_.k({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],pA);
_.D(pA,"ytd-confirmation-masthead-renderer",function(){if(aKd!==void 0)return aKd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-confirmation-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow class="thumbnail style-scope ytd-confirmation-masthead-renderer" thumbnail="[[data.thumbnail]]" width="[[imageWidth]]"></yt-img-shadow>\n<yt-icon class="entitlement-icon style-scope ytd-confirmation-masthead-renderer" hidden="[[!data.entitlementIcon.iconType]]" icon="[[data.entitlementIcon.iconType]]">\n</yt-icon>\n\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return aKd=p},{mode:1});var mUu;var yY=function(){return _.w.apply(this,arguments)||this};
_.A(yY,_.w);yY.prototype.computeStyle=function(p){return p};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],yY.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],yY.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.x("design:type",String)],yY.prototype,"containerStyle",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],yY);
_.D(yY,"ytd-purchase-complete-detail-renderer",function(){if(mUu!==void 0)return mUu;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.description]]" as="description" class="style-scope ytd-purchase-complete-detail-renderer">\n    <yt-formatted-string class="description style-scope ytd-purchase-complete-detail-renderer" split-lines="true" text="[[description]]">\n    </yt-formatted-string>\n</template>\n<template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-purchase-complete-detail-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-purchase-complete-detail-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n</template>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return mUu=p},{mode:1});var UUd;var lO=function(){var p=_.w.apply(this,arguments)||this;p.scriptsAppended=!1;return p};
_.A(lO,_.w);lO.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"}}}};
lO.prototype.onDataChanged=function(){var p=this.get("data.gtmId");p&&(_.vF(p,_.OY("GL","")),this.setupConversionTracking())};
lO.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var p=document.createElement("noscript");p.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5KBDVVN" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(p);this.scriptsAppended=!0}};
lO.prototype.onDataChanged=lO.prototype.onDataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],lO.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],lO.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],lO.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],lO.prototype,"scriptsAppended",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lO.prototype,"onDataChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],lO);
_.D(lO,"ytd-purchase-complete-step-renderer",function(){if(UUd!==void 0)return UUd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-purchase-complete-step-renderer"></div>\n<div id="body" class="style-scope ytd-purchase-complete-step-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return UUd=p},{mode:1});var $UV;var q5=function(){var p=_.w.apply(this,arguments)||this;p.darkerDarkTheme=_.n("web_darker_dark_theme");return p};
_.A(q5,_.w);q5.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],q5.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],q5.prototype,"darkerDarkTheme",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],q5);
_.D(q5,"ytd-ypc-transaction-error-message-renderer",function(){if($UV!==void 0)return $UV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-transaction-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div class="error-messages style-scope ytd-ypc-transaction-error-message-renderer">\n  <template is="dom-repeat" items="[[data.errorMessages]]" as="message" class="style-scope ytd-ypc-transaction-error-message-renderer">\n    <yt-formatted-string text="[[message]]" class="style-scope ytd-ypc-transaction-error-message-renderer"></yt-formatted-string>\n  </template>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return $UV=p},{mode:1});var j7O;var bKR;var sp=function(){var p=_.w.apply(this,arguments)||this;p.handlePhoneVerificationSuccess=function(y){if(p.isValidPhoneVerificationCompletionMessageEvent(y)){var l;((l=p.data)==null?0:l.nextStepCommand)&&p.ytComponentBehavior.resolveCommand(p.data.nextStepCommand)}};
return p};
_.A(sp,_.w);sp.prototype.isValidPhoneVerificationCompletionMessageEvent=function(p){if(p.data!=="yt-phone-verification-complete")return!1;p=_.eM(p.origin);return p!==null&&p.includes("youtube.com")};
sp.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
sp.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],sp.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],sp.prototype,"data",void 0);_.H([_.z9({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],sp);
_.D(sp,"yt-feature-enablement-soft-entry-renderer",function(){if(bKR===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-feature-enablement-soft-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.feature_enablement.yt_feature_enablement_soft_entry_renderer.yt.feature.enablement.soft.entry.renderer.css.js--\x3e<div id="contents" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;j7O===void 0&&(j7O=document.createElement("template"));var q=j7O;l.call(y,q.content.cloneNode(!0),p.content.firstChild);bKR=p}p=bKR;return p},{mode:1});var nQu;var GRT;var PMO;var AkV;var ZKR=function(){return _.w.apply(this,arguments)||this};
_.A(ZKR,_.w);_.H([_.Q(),_.x("design:type",Object)],ZKR.prototype,"data",void 0);_.H([_.z9({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],ZKR);
_.D(ZKR,"yt-benefits-item-renderer",function(){if(AkV===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_item_renderer.yt.benefits.item.renderer.css.js--\x3e<div id="benefits-item" class="style-scope yt-benefits-item-renderer"><yt-formatted-string id="benefits-item-title" class="lhs style-scope yt-benefits-item-renderer" text="[[data.title]]"></yt-formatted-string><yt-formatted-string id="benefits-item-info-text" class="rhs style-scope yt-benefits-item-renderer" hidden="[[!data.text]]" text="[[data.text]]"></yt-formatted-string><yt-button-renderer id="benefits-item-info-button" class="rhs style-scope yt-benefits-item-renderer" data="[[data.button.buttonRenderer]]" hidden="[[!data.button.buttonRenderer]]"></yt-button-renderer></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;PMO===void 0&&(PMO=document.createElement("template"));var q=PMO;l.call(y,q.content.cloneNode(!0),p.content.firstChild);AkV=p}p=AkV;return p},{mode:2});var M0A;var V0d;var tv=function(){return _.w.apply(this,arguments)||this};
_.A(tv,_.w);tv.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
tv.prototype.computeisWithoutPadding=function(){var p;return((p=this.data)==null?void 0:p.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],tv.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],tv.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.x("design:type",Boolean)],tv.prototype,"isWithoutPadding",void 0);_.H([_.z9({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],tv);
_.D(tv,"yt-benefits-section-renderer",function(){if(V0d===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_section_renderer.yt.benefits.section.renderer.css.js--\x3e<div id="benefits-section" is-without-padding$="[[isWithoutPadding]]" class="style-scope yt-benefits-section-renderer"><div id="benefits-header" hidden$="[[!data.header]]" class="style-scope yt-benefits-section-renderer"><yt-formatted-string id="benefits-header-text" split-lines="1" text="[[data.header]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string><div hidden="[[!data.tooltip]]" class="style-scope yt-benefits-section-renderer"><yt-icon id="tooltip-icon" icon="yt-icons:info-outline" class="style-scope yt-benefits-section-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" always-display="" class="style-scope yt-benefits-section-renderer"><yt-formatted-string split-lines="1" text="[[data.tooltip]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string></tp-yt-paper-tooltip></div></div><div id="benefits-items" class="style-scope yt-benefits-section-renderer"></div></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;M0A===void 0&&(M0A=document.createElement("template"));var q=M0A;l.call(y,q.content.cloneNode(!0),p.content.firstChild);V0d=p}p=V0d;return p},{mode:2});var Ep=function(){return _.w.apply(this,arguments)||this};
_.A(Ep,_.w);Ep.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Ep.prototype.computeisUsingLargeWidth=function(){var p;return((p=this.data)==null?void 0:p.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Ep.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Ep.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.x("design:type",Boolean)],Ep.prototype,"isUsingLargeWidth",void 0);_.H([_.z9({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],Ep);
_.D(Ep,"yt-benefits-flow-step-renderer",function(){if(GRT===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_flow_step_renderer.yt.benefits.flow.step.renderer.css.js--\x3e<div id="header-container" class="style-scope yt-benefits-flow-step-renderer"><yt-img-shadow id="avatar" height="72" hidden$="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="72" class="style-scope yt-benefits-flow-step-renderer"></yt-img-shadow><div id="header-content" class="style-scope yt-benefits-flow-step-renderer"><yt-formatted-string id="subtitle-text" hidden$="[[!data.subtitleText]]" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string><yt-formatted-string id="title-text" hidden$="[[!data.titleText]]" split-lines="1" text="[[data.titleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string></div></div><div id="benefits-sections" class="style-scope yt-benefits-flow-step-renderer"></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;nQu===void 0&&(nQu=document.createElement("template"));var q=nQu;l.call(y,q.content.cloneNode(!0),p.content.firstChild);GRT=p}p=GRT;return p},{mode:2});var gQu;var Q71;var Jv=function(){return _.w.apply(this,arguments)||this};
_.A(Jv,_.w);Jv.prototype.checkIsUsingLargeWidth=function(){var p;return((p=this.data)==null?void 0:p.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.H([_.Q(),_.x("design:type",Object)],Jv.prototype,"data",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Jv.prototype,"ytRendererBehavior",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.x("design:type",Boolean)],Jv.prototype,"isUsingLargeWidth",void 0);_.H([_.z9({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],Jv);
_.D(Jv,"yt-confirmation-flow-step-renderer",function(){if(Q71===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_confirmation_flow_step_renderer.yt.confirmation.flow.step.renderer.css.js--\x3e<div id="thumbnail-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-img-shadow id="thumbnail" height="209" thumbnail="[[data.image]]" width="209" class="style-scope yt-confirmation-flow-step-renderer"></yt-img-shadow></div><div id="title-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="subtitle" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;gQu===void 0&&(gQu=document.createElement("template"));var q=gQu;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Q71=p}p=Q71;return p},{mode:2});var KjL;var w76;var iKd=function(){return _.w.apply(this,arguments)||this};
_.A(iKd,_.w);_.H([_.Q(),_.x("design:type",Object)],iKd.prototype,"data",void 0);_.H([_.z9({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],iKd);
_.D(iKd,"yt-info-flow-step-renderer",function(){if(w76===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_flow_step_renderer.yt.info.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-text-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="subtitle-text" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;KjL===void 0&&(KjL=document.createElement("template"));var q=KjL;l.call(y,q.content.cloneNode(!0),p.content.firstChild);w76=p}p=w76;return p},{mode:2});var rkO;var S1V;var FjO=function(){return _.w.apply(this,arguments)||this};
_.A(FjO,_.w);_.H([_.Q(),_.x("design:type",Object)],FjO.prototype,"data",void 0);_.H([_.z9({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],FjO);
_.D(FjO,"yt-info-list-flow-step-renderer",function(){if(S1V===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-list-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_list_flow_step_renderer.yt.info.list.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-list-header-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="info-list-header" force-default-style="" split-lines="1" text="[[data.infoListHeader]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-items-container" class="style-scope yt-info-list-flow-step-renderer"><template is="dom-repeat" items="[[data.infoItems]]" as="item" class="style-scope yt-info-list-flow-step-renderer"><div id="info-list-item" class="style-scope yt-info-list-flow-step-renderer"><yt-icon id="info-icon" icon="[[item.icon.iconType]]" class="style-scope yt-info-list-flow-step-renderer"></yt-icon><yt-formatted-string id="info-text" split-lines="1" text="[[item.text]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div></template></div><div id="description-text-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="description-text" split-lines="1" text="[[data.descriptionText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;rkO===void 0&&(rkO=document.createElement("template"));var q=rkO;l.call(y,q.content.cloneNode(!0),p.content.firstChild);S1V=p}p=S1V;return p},{mode:2});var Ljd=_.aF(function(p){var y=p.data;return _.R("styled-text-view-model",{class:_.ip("ytStyledTextViewModelHost",function(){return Yr6(y().fontAttributes)},function(){return zm6(y().color)})},_.R(_.CF,{text:function(){return y().text},
ariaLabel:function(){var l,q,t;return(t=(l=y().accessibility)==null?void 0:(q=l.accessibilityData)==null?void 0:q.label)!=null?t:""}}))},"of");
Ljd.idomCompat=!0;var kRi=_.aF(function(p){var y=function(){var t,E,e,C;return(C=(e=(t=p.alt)==null?void 0:t.call(p))!=null?e:(E=p.data().accessibilityData)==null?void 0:E.label)!=null?C:""},l=function(){return p.data().imageWidth},q=function(){return p.data().imageHeight};
return _.R("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.R(_.W,{cond:function(){var t=p.data();if(t){var E,e,C;var u=((E=_.WC().resolve(_.RK(_.hb)))==null?0:E())?(e=t.imageDark)!=null?e:t.imageLight:(C=t.imageLight)!=null?C:t.imageDark}else u=void 0;return u},
then:function(t){return _.R(_.W$,Object.assign({},p,{data:t,alt:y,targetWidth:l,targetHeight:q,preserveHeight:!0,preserveWidth:!0}))}}))},"pf");
kRi.idomCompat=!0;var cd=_.aF(function(p){var y=p.data;p=_.uy(function(){return y().slots},[]);
var l=_.uy(function(){return y().layoutProperties},{}),q=_.WC().resolve(_.up);
return _.R("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:vJT(l,q)},_.R(_.rT,{each:p,keyBy:"INDEX"},function(t){return _.R("div",{class:"ytContainerLayoutViewModelSlot",style:vJT(function(){return t().layoutProperties},q)},_.R(_.di,{data:function(){return t().contents}},{containerLayoutViewModel:cd,
badgeViewModel:_.jI,buttonViewModel:_.wZ,styledTextViewModel:Ljd,contentPreviewImageViewModel:function(E){return _.R(_.bY,{data:E.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(E){return _.R(kRi,{data:E.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"qf");
cd.idomCompat=!0;var NyA=_.aF(function(p){var y=p.data;var l=p.stateFns;var q=function(){var a=y(),m=a.productId;return!(!a.clearGroupId&&!m)},t=function(){var a=y(),m=a.clearGroupId;
return(a=a.productId)?l().isProductSelected(a):m?l().getSelectedProductByGroupId(m)==null:!1},E=function(){var a=y(),m=a.clearGroupId;
if(a=a.productId)l().onProductSelected(a);else if(m)l().onClearGroupSelected(m)},e=function(){var a=y(),m=a.clearGroupId;
if(a=a.productId){var U;return"group:"+(((U=l().getProductById(a))==null?void 0:U.groupId)||"")}return m?"group:"+m:""},C=_.uy(function(){return y().header},[]),u=_.uy(function(){return y().body},[]);
return _.R("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.R(_.W,{cond:function(){return C().length>0||q()},
then:function(){return _.R("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.R("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.R(_.di,{data:C},{containerLayoutViewModel:function(a){return _.R("div",{class:"ytPdpCardSectionViewModelContentItem"},_.R(cd,{data:a.data}))},
styledTextViewModel:function(a){return _.R("div",{class:"ytPdpCardSectionViewModelContentItem"},_.R(Ljd,{data:a.data}))}})),_.R(_.W,{cond:q,
then:function(){return _.R("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.R(_.oH,{checked:t,name:e,onChange:E}))}}))}}),_.R(_.W,{cond:function(){return u().length>0},
then:function(){return _.R("div",null,_.R(_.di,{data:u},{containerLayoutViewModel:function(a){return _.R("div",{class:"ytPdpCardSectionViewModelContentItem"},_.R(cd,{data:a.data}))}}))}}))},"rf");
NyA.idomCompat=!0;var DUm=_.aF(function(p){var y=p.data;var l=p.stateFns;return _.R("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.R(_.W,{cond:function(){return y().banner},
then:function(q){return _.R("div",{class:"ytPdpCardViewModelBanner"},_.R(_.CF,{text:q}))}}),_.R(_.di,{data:function(){return y().sections}},{pdpCardSectionViewModel:function(q){q=q.data;
var t={};return _.R("div",{class:_.ip("ytPdpCardViewModelSectionContainer",(t.ytPdpCardViewModelShowDividers=function(){return y().showDividers},t))},_.R(NyA,{data:q,
stateFns:l}))}}))},"sf");
DUm.idomCompat=!0;var HKm=_.aF(function(p){var y=p.data;var l=p.isOverlay;p={};return _.R("pdp-masthead-view-model",{class:_.ip("ytPdpMastheadViewModelHost",(p.ytPdpMastheadViewModelIsOverlay=l,p))},_.R(_.di,{data:function(){return y().image}},{contentPreviewImageViewModel:_.bY,
themedImageViewModel:function(q){return _.R(kRi,{data:q.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.R(_.W,{cond:function(){return y().title},
then:function(q){return _.R("h1",{class:"ytPdpMastheadViewModelHeading"},_.R(_.CF,{text:q,isOverlay:l}))}}),_.R(_.rT,{each:function(){var q;
return(q=y().finePrint)!=null?q:[]}},function(q){return _.R("div",{class:"ytPdpMastheadViewModelFinePrint"},_.R(_.CF,{text:q,
isOverlay:l}))}))},"tf");
HKm.idomCompat=!0;var Tyu=_.aF(function(p){var y=p.data;var l=p.stateFns;var q=function(){return"pdp-pricing-group-selector-"+y().pricingGroupAttributeIds},t=_.uy(function(){return y().pricingGroupSelectorSectionHeader});
return _.R("pdp-pricing-group-selector-view-model",null,_.R(_.W,{cond:function(){return!!t()},
then:function(){return _.R(_.di,{data:t},{sectionHeaderViewModel:function(E){E=E.data;var e={};return _.R("div",{class:_.ip("ytPdpPricingGroupSelectorViewModelSectionHeader",(e.ytPdpPricingGroupSelectorViewModelFullBleed=!0,e.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,e))},_.R(_.Mp,{data:E}))}})}}),_.R("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.R(_.rT,{each:function(){var E=l().getSelectedProductByGroupId(y().groupId);
if(!E)return _.fT(Error("Jj`"+y().groupId)),[];var e,C=(e=y().pricingGroupAttributeIds)!=null?e:[],u;if((u=E.pricingGroups)==null||!u.length||!C.length)return[];e=E.pricingGroups.filter(function(b){return C.length?b.pricingGroupAttributes.every(function(P){return C.includes(P)}):!1});
E=[];if(C.length>0){e=[].concat(_.xq(e));u=_.c(C);for(var a=u.next(),m={};!a.done;m={targetAttrId:void 0},a=u.next())m.targetAttrId=a.value,a=e.findIndex(function(b){return function(P){return P.pricingGroupAttributes.includes(b.targetAttrId)}}(m)),a!==-1&&(E.push(e[a]),e.splice(a,1))}var U=l().getSelectedPricingGroupAttributesByGroupId(y().groupId);
return E.map(function(b){var P=!1;U&&b.pricingGroupAttributes&&(P=KV(b.pricingGroupAttributes,U));return{pricingGroup:b,isSelected:P}})},
keyBy:function(E){return E.pricingGroup.pricingGroupId}},function(E){return _.R("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.R("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.R(_.di,{data:function(){return E().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:cd})),_.R("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.R(_.oH,{checked:function(){return E().isSelected},
name:q,onClick:function(){l().onPricingGroupSelected(E().pricingGroup.pricingGroupId)}})))})))},"uf");
Tyu.idomCompat=!0;var xUO=_.aF(function(p){var y=p.data;var l=p.stateFns;var q=function(){var e=l().getSelectedPricingOptions().map(function(a){return a.pricingOptionId}),C=l().getSelectedProductByGroupId(y().groupId);
if(!C)return _.fT(Error("Kj`"+y().groupId)),[];var u=l().getSelectedPricingGroupAttributesByGroupId(y().groupId);return lk1(C.pricingOptions,u,e)},t=_.uy(function(){return y().pricingOptionSelectorSectionHeader}),E=function(){return q().length>1};
return _.R("pdp-pricing-option-selector-view-model",null,_.R(_.W,{cond:function(){return!!t()&&E()},
then:function(){return _.R(_.di,{data:t},{sectionHeaderViewModel:function(e){e=e.data;var C={};return _.R("div",{class:_.ip("ytPdpPricingOptionSelectorViewModelSectionHeader",(C.ytPdpPricingOptionSelectorViewModelFullBleed=!0,C.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,C))},_.R(_.Mp,{data:e}))}})}}),_.R(_.W,{cond:E,
then:function(){return _.R("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.R(_.rT,{each:q,keyBy:"INDEX"},function(e){return _.R("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.R("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.R(_.di,{data:function(){return e().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:cd})),_.R("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.R(_.oH,{checked:function(){return e().isSelected},
onClick:function(){l().onPricingOptionSelected(e().pricingOption.pricingOptionId);var C=e().pricingOption.onSelectPricingOption;if(C=_.yM(C)){var u;(u=_.WC().resolve(_.aK))==null||u.resolveCommand(C)}}})))}))}}))},"vf");
xUO.idomCompat=!0;var Bym=_.aF(function(p){var y=p.data;var l=p.stateFns;return _.R("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.R(_.di,{data:function(){var q,t;return(t=(q=l().getSelectedPricingOptions()[0])==null?void 0:q.primaryButton)!=null?t:y().emptyStateButton}},{buttonViewModel:_.wZ}))},"wf");
Bym.idomCompat=!0;var fKL=_.aF(function(p){var y=p.stateFns;return _.R("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.R(_.di,{data:function(){return y().getSelectedPricingOptions().flatMap(function(l){return l.summaryLines}).filter(function(l){return!!l})}},{containerLayoutViewModel:function(l){return _.R("div",{class:"ytPdpSummaryViewModelLineItem"},_.R(cd,{data:l.data}))}}))},"xf");
fKL.idomCompat=!0;var vQT=_.aF(function(p){function y(F){var L=e();_.Cl(_.Ow("pdpStateEntity",L,{key:L,selectedPricingOptions:F}))}
var l=p.data;var q=p.internalScrolling;var t=p.stateFnsForTesting;var E=_.uy(function(){return l().allProducts},[]),e=_.uy(function(){return l().pdpStateEntityKey},""),C=_.So(qYi,e),u=_.MA(function(){_.BQ(!0);
var F;return(F=t==null?void 0:t())!=null?F:tcm(C,E,y)},void 0,"pjJzrd"),a=_.uy(function(){return l().body},[]),m=_.uy(function(){return l().columnBreakHints},[]),U=function(){return l().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},b=function(){return U()||l().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},P=_.MA(function(){var F=_.cn(l().background),L;
if(F==null?0:(L=F.sources)==null?0:L.length){var T=T===void 0?!0:T;F=_.Eu8(void 0,F.sources,void 0,T,T?1E3:void 0,T?void 0:1E3)}else F=null;return F},void 0,"GO4GAe");
p=_.NW({"--pdp-view-model-background":function(){return P()?"url("+P()+")":void 0}});
var Z={};q=_.ip("ytPdpViewModelHost",(Z.ytPdpViewModelHasBackground=function(){return b()||!!P()},Z.ytPdpViewModelHasDarkBackground=b,Z.ytPdpViewModelHasScrim=U,Z.ytPdpViewModelInternalScrolling=_.uy(q,!1),Z));
var K=function(F){var L={};return _.ip("ytPdpViewModelItem",(L.ytPdpViewModelFullBleed=function(){return _.Xq6(F())==="dividerViewModel"||_.Xq6(F())==="sectionHeaderViewModel"},L.ytPdpViewModelNoVerticalPadding=function(){return _.Xq6(F())==="sectionHeaderViewModel"},L))};
_.xZ(function(){var F=l().onStartCommand;if(F&&(F=_.yM(F))){var L;(L=_.WC().resolve(_.aK))==null||L.resolveCommand(F)}});
return _.R("pdp-view-model",{class:q,style:p},_.R("div",{class:"ytPdpViewModelColumnContainer"},_.R(_.rT,{each:function(){return EZO(a(),m())},
keyBy:"INDEX"},function(F){return _.R("div",{class:"ytPdpViewModelColumn"},_.R(_.di,{data:F},{containerLayoutViewModel:function(L,T){L=L.data;return _.R("div",{class:K(function(){return F()[T()]})},_.R(cd,{data:L}))},
dividerViewModel:function(L,T){L=L.data;return _.R("div",{class:K(function(){return F()[T()]})},_.R(_.A1V,{data:L}))},
pdpCardViewModel:function(L,T){L=L.data;return _.R("div",{class:K(function(){return F()[T()]})},_.R(DUm,{data:L,
stateFns:u}))},
pdpMastheadViewModel:function(L,T){L=L.data;return _.R("div",{class:K(function(){return F()[T()]})},_.R(HKm,{data:L,
isOverlay:b}))},
pdpPricingGroupSelectorViewModel:function(L,T){L=L.data;return _.R("div",{class:K(function(){return F()[T()]})},_.R(Tyu,{data:L,
stateFns:u}))},
pdpPricingOptionSelectorViewModel:function(L,T){L=L.data;return _.R("div",{class:K(function(){return F()[T()]})},_.R(xUO,{data:L,
stateFns:u}))},
pdpPrimaryButtonViewModel:function(L,T){L=L.data;return _.R("div",{class:K(function(){return F()[T()]})},_.R(Bym,{data:L,
stateFns:u}))},
pdpSummaryViewModel:function(L,T){L=L.data;return _.R("div",{class:K(function(){return F()[T()]})},_.R(fKL,{data:L,
stateFns:u}))},
sectionHeaderViewModel:function(L,T){L=L.data;return _.R("div",{class:K(function(){return F()[T()]})},_.R(_.Mp,{data:L}))}}))})))},"yf");
vQT.idomCompat=!0;_.bp(vQT,"pdp-view-model",{props:{data:_.Co,stateFnsForTesting:_.jw,internalScrolling:_.jw}});var X7i=_.aF(function(p){var y=p.data;var l=p.className;var q=_.So(_.RA,function(){return y().flowStateEntityKey});
return _.R("ytm-premium-purchase-button-renderer",{class:_.ip("yt-premium-purchase-button-renderer",l)},_.R(_.di,{data:function(){var t;return(t=_.G(q(),cMA))==null?void 0:t.primaryButtonOverride}},{buttonRenderer:function(t){return _.R(_.hI,{data:t.data,
className:l})},
buttonViewModel:function(t){return _.R(_.wZ,{data:t.data,className:l})}}))},"zf");
X7i.idomCompat=!0;var dU6=_.aF(function(p){var y=p.data;p=p.className;var l=function(){return JM1(y().style)},q=_.ip("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",l),t=_.ip("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",l);
return _.R("yt-flow-bottom-bar-renderer",{class:_.ip("yt-flow-bottom-bar-renderer",p,l)},_.R(_.di,{data:function(){return y().secondaryButton}},{buttonRenderer:function(E){return _.R(_.hI,{data:E.data,
className:t})},
buttonViewModel:function(E){return _.R(_.wZ,{data:E.data,className:t})},
premiumPurchaseButtonRenderer:function(E){return _.R(X7i,{data:E.data,className:t})}}),_.R(_.di,{data:function(){return y().primaryButton}},{buttonRenderer:function(E){return _.R(_.hI,{data:E.data,
className:q})},
buttonViewModel:function(E){return _.R(_.wZ,{data:E.data,className:q})},
premiumPurchaseButtonRenderer:function(E){return _.R(X7i,{data:E.data,className:q})}}))},"Af");
dU6.idomCompat=!0;_.bp(dU6,"yt-flow-bottom-bar-renderer",{props:{data:_.Co,className:_.Co}});var OK7=_.aF(function(p){var y=_.ip(p.className,"ytOfferSummaryRendererHost");return _.R("yt-offer-summary-renderer",{class:y},_.R("div",{class:"ytOfferSummaryRendererTextContainer"},_.R("div",{class:"ytOfferSummaryRendererEyebrowText"},_.R(_.CF,{text:function(){return p.data().eyebrowText}})),_.R("div",{class:"ytOfferSummaryRendererTitle"},_.R(_.CF,{text:function(){return p.data().title}})),_.R("div",{class:"ytOfferSummaryRendererSubtitle"},_.R(_.CF,{text:function(){return p.data().subtitle}})),
_.R("div",{class:"ytOfferSummaryRendererFeatureListData"},_.R(_.rT,{each:function(){var l;
return(l=p.data().featureListData)!=null?l:[]}},function(l){var q;
return _.R("div",{class:"ytOfferSummaryRendererFeatureList"},_.R(_.DR,{icon:(q=l.icon)==null?void 0:q.iconType,active:function(){return l.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(l.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.R("div",{class:"ytOfferSummaryRendererFeatureListText"},_.R(_.CF,{text:l.text,
className:function(){return l.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.R("div",{class:"ytOfferSummaryRendererDescription"},_.R(_.CF,{text:function(){return p.data().description}}))))},"Bf");_.bp(_.aF(function(p){var y={};y=_.ip("ytOfferSummaryFlowStepRendererHost",(y.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=p.shouldDisableHeaderTopMargin,y));return _.R("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:y},_.R("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.R("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.R(_.CF,{text:function(){return p.data().header}})),_.R("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.R(_.CF,{text:function(){return p.data().subtitle}}))),_.R("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.R(_.di,{data:function(){return p.data().offerSummary}},{offerSummaryRenderer:function(l){return _.R(OK7,{data:l.data,
className:p.flowClassName})}})))},"Cf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.jw,
flowClassName:_.jw,flowStateEntityKey:_.jw,shouldDisableHeaderTopMargin:_.jw}});var oQ1=_.aF(function(p){var y=p.data;var l=p.className;var q=p.flowStateEntityKey;var t=p.selectionStepStyle;p=_.Ff(function(u){var a=y(),m=q==null?void 0:q();u.target&&(u.stopPropagation(),u=m||"",m=_.RA(_.hl().getState(),u),a=Object.assign({},m,{premiumPurchaseFlowState:{selectedOptionId:a.optionId,primaryButtonOverride:a.primaryButtonOverride}}),_.hl().dispatch(_.Fp("flowStateEntity",u,a)));return!1});
var E=function(){return(q==null?void 0:q())||""},e=_.So(_.RA,E);
_.xZ(function(){var u=y(),a=E(),m=e();u.defaultSelected&&a!==""&&u.primaryButtonOverride&&enm(u.optionId||"",a,u.primaryButtonOverride,m)});
var C={};return _.R("ytm-option-item-renderer",{"on:click":p,class:_.ip(l,"ytm-option-item-renderer",(C["ytm-option-item-renderer--lp2-style"]=function(){return(t==null?void 0:t())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},C))},_.R("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.R("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var u=y(),a=E(),m=e();m=_.G(m,cMA);return(m?(m==null?void 0:m.selectedOptionId)||"":u.defaultSelected&&a!==""?(u==null?void 0:u.optionId)||"":"")===y().optionId},
name:("input"+_.Xe(_.XV)).toString()})),_.R("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.R(_.di,{data:function(){return y().titleBadge}},{badgeViewModel:function(u){return _.R(_.jI,{data:u.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.R(_.W,{cond:function(){return y().eyebrowText},
then:function(){return _.R("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.R(_.CF,{text:function(){return y().eyebrowText}}))}}),_.R("div",{class:"ytm-option-item-renderer__option-item-title"},_.R(_.CF,{text:function(){return y().title}})),_.R("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.R(_.CF,{text:function(){return y().subtitle}})),_.R(_.W,{cond:function(){return y().featureListData},
then:function(){return _.R("div",{class:"ytm-option-item-renderer__feature-list-data"},_.R(_.rT,{each:function(){return y().featureListData||[]}},function(u){var a,m=(a=u.icon)==null?void 0:a.iconType;
a:switch(u.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":a="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":a="ytm-option-item-renderer__feature-list-icon-small";break a;default:a="ytm-option-item-renderer__feature-list-icon-default"}return _.R("div",{class:"ytm-option-item-renderer__feature-list"},_.R(_.DR,{icon:m,className:a,active:function(){return u.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.R("div",{class:"ytm-option-item-renderer__feature-list-text"},_.R(_.CF,{text:u.text,
className:function(){return u.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.R("div",{class:"ytm-option-item-renderer__option-item-description"},_.R(_.CF,{text:function(){return y().description}}))))},"Df");var zJd=_.aF(function(p){var y=p.data;var l=p.flowClassName;var q=p.flowStateEntityKey;var t=p.selectionStepStyle;return _.R("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.R("div",{class:"yt-option-section-renderer__option-section-header-section"},_.R("div",{class:"yt-option-section-renderer__option-section-header"},_.R(_.CF,{text:function(){return y().title}}),_.R(_.di,{data:function(){return y().titleBadge}},{badgeViewModel:function(E){return _.R(_.jI,
{data:E.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.R(_.W,{cond:function(){return y().subtitle},
then:function(){return _.R("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.R(_.CF,{text:function(){return y().subtitle}}))}}),_.R(_.W,{cond:function(){return y().featureListData},
then:function(E){return _.R("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.R(_.rT,{each:E},function(e){var C;return _.R("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.R(_.DR,{icon:(C=e.icon)==null?void 0:C.iconType,active:function(){return e.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(e.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-green";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-small";default:return"yt-option-section-renderer__option-section-feature-item-icon-default"}}}),_.R("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.R(_.CF,{text:e.text,
className:function(){return e.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.R(_.W,{cond:function(){return y().secondaryTitle},
then:function(){return _.R("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.R(_.CF,{text:function(){return y().secondaryTitle}}))}}),_.R(_.rT,{each:function(){return y().sectionDisclaimers||[]}},function(E){return _.R("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.R(_.CF,{text:E}))})),_.R(_.di,{data:function(){return y().optionItems}},{optionItemRenderer:function(E){return _.R("div",{class:"yt-option-section-renderer__option-item"},_.R(oQ1,{data:E.data,
className:l,flowStateEntityKey:q,selectionStepStyle:t}))}}),_.R(_.W,{cond:function(){return y().offerText},
then:function(){return _.R("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.R(_.CF,{text:function(){return y().offerText}}))}}))},"Ef");
zJd.idomCompat=!0;var Y1d=_.aF(function(p){var y=p.data;var l=p.flowClassName;var q=p.flowStateEntityKey;p=p.isDesktop;var t=function(){var a;return(a=y().flowStateEntityKey)!=null?a:q==null?void 0:q()},E=function(){return(t==null?void 0:t())||""},e=function(){return y().style},C=_.So(_.RA,E);
_.xZ(function(){var a=y(),m=E(),U=C();!_.G(U,cMA)&&a.noPreselect&&m!==""&&a.defaultButtonOverride&&enm("default",m,a.defaultButtonOverride,U)});
var u={};return _.R("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.ip("ytm-option-selection-flow-step-renderer",(u["ytm-option-selection-flow-step-renderer--desktop"]=p,u["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return y().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},u))},_.R("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"},
_.R("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.R(_.CF,{text:function(){return y().header}})),_.R("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.R(_.CF,{text:function(){return y().subtitle}}))),_.R(_.di,{data:function(){return y().optionItems||[]}},{optionItemRenderer:function(a){return _.R("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.R(oQ1,{data:a.data,
className:l,flowStateEntityKey:t,selectionStepStyle:e}))},
optionSectionRenderer:function(a){return _.R("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.R(zJd,{data:a.data,flowClassName:l,flowStateEntityKey:t,selectionStepStyle:e}))}}))},"Ff");
Y1d.idomCompat=!0;_.bp(Y1d,"yt-option-selection-flow-step-renderer",{props:{data:_.Co,flowClassName:_.Co,flowStateEntityKey:_.Co,isDesktop:_.Co}});var hnd,CBi;_.eS=_.aF(function(p){var y=_.RF(p,{type:1,disablePadding:!1,disablePrimaryButton:!1}),l=y.data,q=y.type;p=y.disablePadding;var t=y.disablePrimaryButton,E=y.onClickPrimaryButton,e=function(){return l().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},C=function(){return{disabled:t(),
state:t()?"disabled":"active"}},u=function(){return l().leadingLabel||l().trailingLabel};
y={};return _.R("yt-panel-footer-view-model",{class:_.ip("yt-panel-footer-view-model-wiz",(y["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return l().shouldHideDivider},y["yt-panel-footer-view-model-wiz--disable-padding"]=p,y))},_.R(_.W,{cond:u,
then:function(){var a={},m={};return _.R("div",{class:_.ip("yt-panel-footer-view-model-wiz__text-row",(a["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var U=l();return!(!U.leadingLabel&&!U.trailingLabel||!U.primaryButton&&!U.secondaryButton)},a))},_.R(_.CF,{text:function(){return l().leadingLabel},
className:_.ip((m["yt-panel-footer-view-model-wiz--text-padding"]=u,m))}),_.R(_.CF,{text:function(){return l().trailingLabel}}))}}),_.R(_.W,{cond:e,
then:function(){var a={};return _.R("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.R("div",{class:_.ip("yt-panel-footer-view-model-wiz__primary-button",(a["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return l().secondaryButton},a))},_.R(_.di,{data:function(){return l().primaryButton}},{buttonViewModel:function(m){return _.R(_.wZ,{data:m.data,
buttonOverrides:C,onClick:E})}})),_.R(_.di,{data:function(){return l().secondaryButton}},{buttonViewModel:_.wZ}))}}),_.R(_.W,{cond:function(){return!e()},
then:function(){var a={},m={},U={};return _.R("div",{class:_.ip("yt-panel-footer-view-model-wiz__button-row",(a["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===q()},a))},_.R("div",{class:_.ip("yt-panel-footer-view-model-wiz__button-row--left-button",(m["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===q()},m["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!l().secondaryButton||0===q()},m["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===q()},m))},_.R(_.di,{data:function(){return l().secondaryButton}},{buttonViewModel:_.wZ})),_.R("div",{class:_.ip("yt-panel-footer-view-model-wiz__primary-button",(U["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===q()||1===q()},U["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===q()},U))},_.R(_.di,{data:function(){return l().primaryButton}},{buttonViewModel:function(b){return _.R(_.wZ,{data:b.data,
buttonOverrides:C,onClick:E})}})))}}))},"Gf");
_.eS.idomCompat=!0;_.IK1=_.aF(function(p){p=_.RF(p,{disablePadding:!1});var y=p.data,l=p.disablePadding;p=_.ak6(function(){return y().formId});
var q=p.onSubmit,t=p.isValid,E=p.isSubmitting;return _.R("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.R(_.di,{data:function(){return y().panelFooter}},{panelFooterViewModel:function(e){return _.R(_.eS,{data:e.data,
onClickPrimaryButton:function(){q()},
disablePrimaryButton:function(){return!t()||E()},
disablePadding:l})}}))},"Hf");_.bp(_.IK1,"yt-form-footer-view-model",{props:{data:_.Co,disablePadding:_.Co}});_.bp(_.aF(function(p){return _.R("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.R("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.R(_.W,{cond:function(){var y;return(y=p.data())==null?void 0:y.image},
then:function(y){return _.R(_.W$,{data:y,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.R("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.R(_.CF,{text:function(){var y;
return(y=p.data())==null?void 0:y.title}})),_.R("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.R(_.CF,{text:function(){var y;
return(y=p.data())==null?void 0:y.subtitle}})),_.R("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.R(_.di,{data:function(){var y;
return(y=p.data())==null?void 0:y.viewTipsButton}},{buttonViewModel:_.wZ}))))},"If"),"yt-contributor-zero-state-view-model",{props:{data:_.Co}});var ps6=_.aF(function(p){var y=_.So(mVi,_.uy(function(){var C;return(C=p.data())==null?void 0:C.noteFeedEntityKey},"")),l=_.So(QeL,_.uy(function(){var C;
return(C=p.data())==null?void 0:C.userRatingEntityKey},"")),q=_.n("enable_user_rating_web"),t=function(){var C,u,a;
return((C=y())==null?0:C.contributorNote)?(u=y())==null?void 0:u.contributorNote:(a=p.data())==null?void 0:a.existingNote},E=function(){var C,u;
return!!l()&&!!UVT((C=l())==null?void 0:C.helpfulnessValue,(u=p.data())==null?void 0:u.noteData)};
if(q){var e={};return _.R("yt-note-view-model",{class:_.ip("ytNoteViewModelHostUserRating",(e.ytNoteViewModelHostUserRatingPublishedNote=function(){var C,u;return(C=p.data())==null?void 0:(u=C.noteData)==null?void 0:u.isPublished},e))},_.R("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.R("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.R(_.W,{cond:function(){var C,u;
return(C=p.data())==null?void 0:(u=C.noteData)==null?void 0:u.isPinned},
then:function(){return _.R(_.DR,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.R(_.W,{cond:function(){var C,u;return(C=p.data())==null?void 0:(u=C.noteData)==null?void 0:u.isPublished},
then:function(){return _.R(_.DR,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.R(_.di,{data:function(){var C;
return(C=p.data())==null?void 0:C.metadata}},{contentMetadataViewModel:_.nH}),_.R("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var C,u;
return(u=_.G((C=p.data())==null?void 0:C.metadata,_.BBU))==null?void 0:u.delimiter}),_.R(_.CF,{text:function(){var C;
return(C=t())==null?void 0:C.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.R(_.di,{data:function(){var C,u,a,m,U,b,P,Z=!!((C=p.data())==null?0:(u=C.noteData)==null?0:u.isPinned);C=E();u=(a=p.data())==null?void 0:a.noteData;a=(m=y())==null?void 0:(U=m.contributorNote)==null?void 0:U.deleteAction;m=(b=p.data())==null?void 0:b.overflowButtonNoteWithRatingOnTapOverride;b=(P=p.data())==null?void 0:P.overflowButton;return Z?$VV(u,a):C?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:m}}:b}},{buttonViewModel:function(C){return _.R(_.wZ,{data:C.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.R("div",{class:"ytNoteViewModelNoteContent"},_.R(_.CF,{text:function(){var C;
return(C=t())==null?void 0:C.text}})),_.R(_.W,{cond:function(){var C,u;
return!((C=p.data())==null?0:(u=C.noteData)==null?0:u.isPinned)},
then:function(){return _.R(_.W,{cond:E,then:function(){return _.R("div",{class:"ytNoteViewModelUserRatingContainer"},_.R(_.CF,{text:function(){var C,u;return UVT((C=l())==null?void 0:C.helpfulnessValue,(u=p.data())==null?void 0:u.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.R(_.di,{data:function(){var C;return(C=p.data())==null?void 0:C.userRatingButton}},{buttonViewModel:function(C){return _.R(_.wZ,{data:C.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.R(_.W,{cond:function(){var C,u;
return!((C=p.data())==null?0:(u=C.noteData)==null?0:u.ignoreDivider)},
then:function(){return _.R("div",{class:"ytNoteViewModelDivider"},_.R(_.di,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(C){return _.R(_.A1V,{data:C.data})}}))}}))}return _.R("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.R("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.R("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.R(_.W,{cond:function(){var C,u;return(C=p.data())==null?void 0:(u=C.noteData)==null?void 0:u.isPinned},
then:function(){return _.R(_.DR,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.R(_.W,{cond:function(){var C,u;return(C=p.data())==null?void 0:(u=C.noteData)==null?void 0:u.isPublished},
then:function(){return _.R(_.DR,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.R(_.W,{cond:function(){return q},
then:function(){return _.R(_.di,{data:function(){var C;return(C=p.data())==null?void 0:C.metadata}},{contentMetadataViewModel:function(C){return _.R(_.nH,{data:C.data})}})}}),_.R(_.CF,{text:function(){var C,u;
return(C=p.data())==null?void 0:(u=C.noteData)==null?void 0:u.headerText}}),_.R("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.R(_.CF,{text:function(){var C,u;
return(C=p.data())==null?void 0:(u=C.noteData)==null?void 0:u.delimiter}})),_.R(_.CF,{text:function(){var C,u;
return(C=y())==null?void 0:(u=C.contributorNote)==null?void 0:u.publishedTimeText}})),_.R(_.di,{data:function(){var C,u,a;
return $VV((C=p.data())==null?void 0:C.noteData,(u=y())==null?void 0:(a=u.contributorNote)==null?void 0:a.deleteAction)}},{buttonViewModel:function(C){return _.R(_.wZ,{data:C.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.R("div",{class:"ytNoteViewModelNoteContent"},_.R(_.CF,{text:function(){var C,u;
return(C=y())==null?void 0:(u=C.contributorNote)==null?void 0:u.text}})))},"Jf");
ps6.idomCompat=!0;_.bp(ps6,"yt-note-view-model",{props:{data:_.Co}});var hv=_.aF(function(p){var y=_.RF(p,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),l=y.label,q=y.text,t=y.placeholder,E=y.hint;p=y.rows;var e=y.overflowStyle,C=y.outline,u=y.disabled,a=y.disableNewLines,m=y.characterLimit,U=y.validation,b=y.onInput,P=_.sM("textarea");y=_.c(_.kS(function(){return q()}));
var Z=y.next().value,K=y.next().value;y=_.c(_.nr(!1,void 0,"fXvinf"));var F=y.next().value,L=y.next().value,T=function(){L(!0)},O=function(){L(!1)};
_.xZ(function(){var x6=P.value,L8=e(),Y6=Z();L8==="expand-vertically"&&Y6&&j4R(x6);P.value.addEventListener("focusin",T);P.value.addEventListener("focusout",O)});
_.TP(function(){P.value.removeEventListener("focusin",T);P.value.removeEventListener("focusout",O)});
var f=function(){var x6;return(x6=U())==null?void 0:x6.validate(Z())},v=function(){return m()&&!f()&&Z().length>m().maxChars},z=function(){return!!f()||v()};
y=_.Ff(function(x6){if(!x6.currentTarget)return!1;x6=x6.currentTarget;K(x6.value);e()==="expand-vertically"&&j4R(x6);b==null||b(x6.value);return!0});
var sc=_.Ff(function(x6){a()&&x6.key==="Enter"&&x6.preventDefault();return!1}),hR=_.Ff(function(){P.value.focus()}),Wt=function(){return t()||l()},AR={},Qu={},jj={};
return _.R("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.R("div",{class:_.ip("ytStandardsTextareaShapeTextareaContainer",(AR.ytStandardsTextareaShapeTextareaContainerOutline=C,AR.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=u,AR.ytStandardsTextareaShapeTextareaContainerOutlineError=z,AR)),"on:click":hR},_.R("label",{class:_.ip("ytStandardsTextareaShapeLabel",(Qu.ytStandardsTextareaShapeLabelFocused=F,Qu.ytStandardsTextareaShapeLabelDisabled=u,Qu.ytStandardsTextareaShapeLabelError=
function(){return z()&&!u()},Qu.ytStandardsTextareaShapeLabelHidden=function(){return!F()&&!Z()&&!!Wt()},Qu))},l),_.R("div",{class:_.ip("ytStandardsTextareaShapePlaceholder",(jj.ytStandardsTextareaShapePlaceholderVisible=function(){return!F()&&!Z()},jj)),
"aria-hidden":"true"},Wt),_.R("textarea",{el:P,class:"ytStandardsTextareaShapeTextarea",rows:p,disabled:u,placeholder:Wt,"on:input":y,"on:keydown":sc},Z)),_.R(_.W,{cond:function(){return E()&&!z()},
then:function(){var x6={};return _.R("div",{class:_.ip("ytStandardsTextareaShapeHint",(x6.ytStandardsTextareaShapeHintDisabled=u,x6))},_.R("div",{class:"ytStandardsTextareaShapeHintHintMessage"},E))}}),_.R(_.W,{cond:f,
then:function(){return _.R(ypd,{disabled:u},_.R("div",{class:"ytStandardsTextareaShapeErrorMessage"},f))}}),_.R(_.W,{cond:m,
then:function(x6){return _.R(_.W,{cond:v,then:function(){return _.R(ypd,{disabled:u},_.R("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return x6().errorMessage}),_.R("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return Z().length+"/"+x6().maxChars}))}})}}))},"Kf");
hv.idomCompat={callbacks:{onInput:!0}};var ypd=_.aF(function(p){var y={};return _.R("div",{class:_.ip("ytStandardsTextareaShapeError",(y.ytStandardsTextareaShapeErrorDisabled=p.disabled,y)),role:"alert"},_.R(_.DR,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),p.children)},"Lf");_.lp1=_.aF(function(p){var y=p.data;return _.R("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.R(hv,{text:p.text,label:function(){var l;return(l=y().contentProperties)==null?void 0:l.labelText},
placeholder:function(){var l;return(l=y().contentProperties)==null?void 0:l.placeholderText},
hint:function(){var l;return(l=y().contentProperties)==null?void 0:l.hintText},
outline:function(){var l;return!((l=y().displayProperties)==null?0:l.hideBorder)},
overflowStyle:function(){var l;return((l=y().displayProperties)==null?0:l.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:p.disabled,disableNewLines:function(){var l;return(l=y().displayProperties)==null?void 0:l.disableNewLines},
onInput:p.onInput,characterLimit:p.characterLimit,validation:p.validation,rows:function(){var l;return(l=y().displayProperties)==null?void 0:l.rows}}))},"Mf");_.qLu=_.aF(function(p){var y=p.data;return _.R("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.R(hv,{text:p.text,label:function(){var l;return(l=y().contentProperties)==null?void 0:l.labelText},
placeholder:function(){var l;return(l=y().contentProperties)==null?void 0:l.placeholderText},
hint:function(){var l;return(l=y().contentProperties)==null?void 0:l.hintText},
outline:function(){var l;return!((l=y().displayProperties)==null?0:l.hideBorder)},
overflowStyle:function(){var l;return((l=y().displayProperties)==null?0:l.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var l;return(l=y().displayProperties)==null?void 0:l.disableNewLines},
onInput:p.onInput,characterLimit:p.characterLimit,validation:p.validation,rows:function(){var l;return(l=y().displayProperties)==null?void 0:l.rows}}))},"Nf");var sdm=_.aF(function(p){var y=_.c(_.kS(function(){var Wt,AR;return((Wt=p.data().structuredContextNoteFormSchema)==null?0:(AR=Wt.initialValues)==null?0:AR.noteBody)?p.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),l=y.next().value,q=y.next().value;
y=_.c(_.kS(function(){p.data();return!1}));
var t=y.next().value,E=y.next().value;y=_.c(_.kS(function(){p.data();return!1}));
var e=y.next().value,C=y.next().value;y=_.c(_.kS(function(){var Wt,AR;return((Wt=p.data().structuredContextNoteFormSchema)==null?0:(AR=Wt.initialValues)==null?0:AR.timestamp)?p.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var u=y.next().value,a=y.next().value;y=_.c(_.kS(function(){p.data();return!1}));
var m=y.next().value,U=y.next().value;y=_.c(_.kS(function(){var Wt,AR;return((Wt=p.data().structuredContextNoteFormSchema)==null?0:(AR=Wt.initialValues)==null?0:AR.sources)?[p.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var b=y.next().value,P=y.next().value;y=_.c(_.kS(function(){p.data();return!1}));
var Z=y.next().value,K=y.next().value;y=_.c(_.kS(function(){return!1}));
var F=y.next().value,L=y.next().value;_.xZ(function(){var Wt;_.Wq9((Wt=p.data().structuredContextNoteFormSchema)==null?void 0:Wt.id,{isSubmitting:F,onSubmit:function(){L(!0);var AR=gZ6(l(),u(),b(),p.data()),Qu=_.WC().resolve(_.aK);AR&&Qu&&Qu.resolveCommand(AR,{commandController:{onSuccess:function(){L(!1)}}})},
isValid:function(){return t()&&!e()&&!m()&&!Z()}})});
var T=function(Wt){if(Wt!==void 0&&(q(Wt),!t()&&Wt.length>0&&E(!0),t())){var AR=GiV(p.data());if(AR){var Qu=AR.minLength;AR=AR.maxLength;Qu&&Wt.length<Qu?C(!0):AR&&Wt.length>AR?C(!0):C(!1)}}},O=function(Wt){if(Wt!==void 0){a(Wt);
if(Wt.length>0){var AR,Qu,jj,x6,L8=AM9((AR=p.data())==null?void 0:(Qu=AR.structuredContextNoteFormSchema)==null?void 0:(jj=Qu.fieldSchemas)==null?void 0:(x6=jj.timestamp)==null?void 0:x6.validationSchema);if(L8&&(AR=L8.regex)&&!(new RegExp(AR)).test(Wt)){U(!0);return}}U(!1)}},f=function(Wt){if(Wt!==void 0){var AR=Wt.split(/[ \n]/).map(function(Qu){return Qu.trim()});
P(AR);if(Wt.length>0)for(Wt=_.c(AR),AR=Wt.next();!AR.done;AR=Wt.next())if(!VcA(AR.value)){K(!0);return}K(!1)}},v=function(){return{validate:function(Wt){if(t()){var AR=GiV(p.data());
if(AR){var Qu=AR.minLength;AR=AR.translations;if(Qu&&Wt.length<Qu)return AR==null?void 0:AR.minLengthErrorMessage}}}}},z=function(){var Wt=GiV(p.data()),AR=Wt==null?void 0:Wt.maxLength,Qu;
Wt=Wt==null?void 0:(Qu=Wt.translations)==null?void 0:Qu.maxLengthErrorMessage;if(AR&&Wt)return{maxChars:AR,errorMessage:Wt}},sc=function(){return{validate:function(Wt){if(Wt){var AR,Qu,jj,x6,L8=AM9((AR=p.data())==null?void 0:(Qu=AR.structuredContextNoteFormSchema)==null?void 0:(jj=Qu.fieldSchemas)==null?void 0:(x6=jj.timestamp)==null?void 0:x6.validationSchema);
if(L8&&(AR=L8.regex,L8=L8.translations,AR&&!(new RegExp(AR)).test(Wt)))return L8==null?void 0:L8.regexErrorMessage}}}},hR=function(){return{validate:function(Wt){if(Wt){var AR,Qu,jj,x6,L8=McT((AR=p.data())==null?void 0:(Qu=AR.structuredContextNoteFormSchema)==null?void 0:(jj=Qu.fieldSchemas)==null?void 0:(x6=jj.sources)==null?void 0:x6.validationSchema);
if(L8&&(AR=L8.translations,AR==null?0:AR.selectedErrorMessage))for(Wt=Wt.split(/[ \n]/).map(function(Y6){return Y6.trim()}),Wt=_.c(Wt),Qu=Wt.next();!Qu.done;Qu=Wt.next())if(!VcA(Qu.value))return Wt=void 0,(Wt=AR)==null?void 0:Wt.selectedErrorMessage}}}};
return _.R("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.R("div",{class:"ytStructuredContextNoteViewModelTextField"},_.R(_.di,{data:function(){var Wt;return(Wt=p.data())==null?void 0:Wt.noteContents}},{textFormFieldViewModel:function(Wt){return _.R(_.qLu,{data:Wt.data,
onInput:T,validation:v,characterLimit:z})},
textFieldViewModel:function(Wt){return _.R(_.lp1,{data:Wt.data,onInput:T,validation:v,characterLimit:z})}})),_.R("div",{class:"ytStructuredContextNoteViewModelTextField"},_.R(_.di,{data:function(){var Wt;
return(Wt=p.data())==null?void 0:Wt.noteTimestamp}},{textFormFieldViewModel:function(Wt){return _.R(_.qLu,{data:Wt.data,
onInput:O,validation:sc})},
textFieldViewModel:function(Wt){return _.R(_.lp1,{data:Wt.data,onInput:O,validation:sc})}})),_.R("div",{class:"ytStructuredContextNoteViewModelTextField"},_.R(_.di,{data:function(){var Wt;
return(Wt=p.data())==null?void 0:Wt.noteSources}},{textFormFieldViewModel:function(Wt){return _.R(_.qLu,{data:Wt.data,
onInput:f,validation:hR})},
textFieldViewModel:function(Wt){return _.R(_.lp1,{data:Wt.data,onInput:f,validation:hR})}})))},"Of");
sdm.idomCompat=!0;_.bp(sdm,"yt-structured-context-note-view-model",{props:{data:_.Co}});var tF9=_.aF(function(p){var y=_.c(_.kS(function(){var E;if((E=p.controlled)==null?0:E.call(p))return[];var e;return(((e=p.data())==null?void 0:e.chips)||[]).map(function(C){C=_.G(C,_.ti);if(C==null?0:C.selected)return Q46(C.chipValue)}).filter(function(C){return C!==void 0})})),l=y.next().value,q=y.next().value,t=function(E){var e=Q46(E.chipValue);
if(e!==void 0){var C;if((C=p.controlled)==null?0:C.call(p))return void p.controlled().onTap(e);E=l().includes(e)?[].concat(_.xq(l().filter(function(a){return a!==e}))):[].concat(_.xq(l()),[e]);
q(E);var u;if((u=p.uncontrolled)==null?0:u.call(p))p.uncontrolled().onUpdate(E)}};
return _.R("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.R(_.rT,{each:function(){return p.data().chips||[]}},function(E){return _.R("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.R(_.dw,{data:function(){return _.G(E,_.ti)},
selected:function(){var e;if(e=_.G(E,_.ti)){var C=Q46(e.chipValue);if(C!==void 0){var u;e=((u=p.controlled)==null?0:u.call(p))?p.controlled().selectedValues.includes(C):l().includes(C)}else e=void 0}else e=!1;return e},
callback:t}))}))},"Pf");var En1=_.aF(function(p){var y=p.data;var l=function(){var C;return((C=y())==null?void 0:C.flowStateKey)||""},q=_.So(_.RA,l),t=function(){var C;
return(C=_.G(q(),nhd))==null?void 0:C.chips},E=function(C){if(C!==void 0){var u=t()||[];
u=u.find(function(a){return a===C})?u.filter(function(a){return a!==C}):[].concat(_.xq(u),[C]);
u=Object.assign({},q(),{feedbackFormFlowState:Object.assign({},_.G(q(),nhd),{chips:u})});_.Cl(_.Fp("flowStateEntity",l(),u))}},e=function(){var C;
return _.G((C=y())==null?void 0:C.inputBox,GoV)};
p=_.Fd(function(C){var u=e();u=!(u==null?0:u.maxChars)||C.length<=u.maxChars;C=Object.assign({},q(),{feedbackFormFlowState:Object.assign({},_.G(q(),nhd),{detail:C}),abuseReportFlowState:Object.assign({},_.G(q(),rp),{navigationEnabled:u})});_.Cl(_.Fp("flowStateEntity",l(),C))},150);
return _.R("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.R("div",{class:"ytFeedbackFormViewModelChips"},_.R(_.di,{data:function(){var C;return(C=y())==null?void 0:C.chipSelection}},{chipSelectionFormFieldViewModel:function(C){return _.R(tF9,{data:C.data,
controlled:function(){return{selectedValues:t()||[],onTap:E}}})}})),_.R("div",{class:"ytFeedbackFormViewModelInputBox"},_.R(hv,{text:function(){var C;
return(C=_.G(q(),nhd))==null?void 0:C.detail},
placeholder:function(){var C;return((C=e())==null?void 0:C.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var C=e();if(C&&C.maxChars)return{maxChars:C.maxChars,errorMessage:C.maxCharsExceededErrorMessage||""}},
onInput:p})),_.R("div",{class:"ytFeedbackFormViewModelFooterText"},_.R(_.CF,{text:function(){return y().footerText}})))},"Qf");
En1.idomCompat=!0;_.bp(En1,"yt-feedback-form-view-model",{props:{data:_.Co}});var Jpd=_.aF(function(p){var y=p.data;var l=function(){return y().flowStateKey||""},q=_.So(gJA,l),t=function(){return _.G(q(),rp)},E=function(){if(_.n("enable_gff_accessibility_fix")){var e=!0,C;
if((C=t())==null?0:C.navigationEnabled){var u;_.tb((u=t())==null?void 0:u.navigationCommand);e=!1}C=Object.assign({},q(),{abuseReportFlowState:Object.assign({},t(),{isReportFormDirty:e})});_.Cl(_.Fp("flowStateEntity",l(),C))}else _.tb((e=t())==null?void 0:e.navigationCommand)};
return _.R("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.R("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.R(_.di,{data:function(){return y().cancelButton}},{buttonViewModel:function(e){return _.R(_.wZ,{data:e.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:E})}}),_.R(_.di,{data:function(){var e;
if(y().navButton){var C=Object;var u=C.assign,a=_.G(y().navButton,_.xo),m=((e=t())==null?0:e.navigationEnabled)||_.n("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",U,b;e=_.G((U=t())==null?void 0:U.navigationCommand,_.pY);U=(b=_.G(e,_.Id))==null?void 0:b.url;C={buttonViewModel:u.call(C,{},a,{state:m,iconName:U?"OPEN_IN_NEW":""})}}else C=void 0;return C}},{buttonViewModel:function(e){return _.R(_.wZ,{data:e.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:E})}})))},"Rf");
Jpd.idomCompat=!0;_.bp(Jpd,"yt-report-form-bottom-bar-view-model",{props:{data:_.Co}});var cp7=_.aF(function(p){var y=p.nextStep;return _.R("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.R("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.R(_.DR,{icon:function(){return y().iconName||""}})),_.R("div",null,_.R(_.CF,{text:function(){return y().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Sf"),eKV=_.aF(function(p){var y=p.data;
var l,q=(l=_.WC().resolve(_.RK(_.hb)))==null?void 0:l(),t=_.So(_.RA,function(){return y().flowStateKey||""});
return _.R("yt-report-form-confirmation-page-view-model",{class:function(){var E;return((E=_.G(t(),rp))==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.R("div",{class:function(){var E;
return((E=_.G(t(),rp))==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.R(_.W$,{data:function(){return q&&y().imageDark?y().imageDark:y().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.R("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.R("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return y().confirmationHeader}),_.R("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.R(_.CF,{text:function(){return y().confirmationText}})),_.R("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.R(_.CF,{text:function(){return y().lawEnforcementText}})),
_.R("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return y().whatToExpectHeader}),_.R(_.W,{cond:function(){return y().nextSteps},
then:function(E){return _.R("div",null,_.R(_.rT,{each:E},function(e){return _.R(cp7,{nextStep:e})}))}}),_.R(_.W,{cond:function(){return y().legalReportText},
then:function(E){return _.R("div",null,_.R(_.CF,{text:E,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Tf");
eKV.idomCompat=!0;_.bp(eKV,"yt-report-form-confirmation-page-view-model",{props:{data:_.Co}});var hK6=_.aF(function(p){var y=p.data;var l=function(){var E;return((E=_.G(y().inputBox,GoV))==null?void 0:E.maxChars)||500},q=function(){return y().flowStateKey||""},t=_.So(_.RA,q);
p=_.Fd(function(E){E=Object.assign({},t(),{flowFormState:{isValid:E.length<=l()},abuseReportFlowState:{userComments:E,navigationEnabled:!(E.length>l()),isReportFormDirty:!0}});_.hl().dispatch(_.Ow("flowStateEntity",q(),E))},150);
_.xZ(function(){var E=Object.assign({},t(),{flowFormState:{isValid:!0}});_.hl().dispatch(_.Ow("flowStateEntity",q(),E))});
return _.R("yt-report-form-details-page-view-model",{class:function(){var E;return((E=_.G(t(),rp))==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.R("h1",{class:function(){var E;
return((E=_.G(t(),rp))==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return y().detailsPageHeader}),_.R("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.R(_.CF,{text:function(){return y().bodyText}})),_.R("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.R(hv,{label:function(){var E;
return((E=_.G(y().inputBox,GoV))==null?void 0:E.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var E;return{errorMessage:((E=_.G(y().inputBox,GoV))==null?void 0:E.maxCharsExceededErrorMessage)||"",maxChars:l()}},
onInput:p})))},"Uf");
hK6.idomCompat=!0;_.bp(hK6,"yt-report-form-details-page-view-model",{props:{data:_.Co}});var CGd=_.aF(function(p){var y=p.data;var l=p.selectedKey;var q=p.onSelected;var t=p.groupName;var E=function(){return y().text},e=function(){return y().attributedText},C=function(){return y().subtext},u=function(){return y().attributedSubtext},a=_.R("div",{class:"ytRadioButtonItemViewModelLabel"},_.R(_.W,{cond:E,
then:function(){return _.R("div",null,E)}}),_.R(_.W,{cond:e,
then:function(){return _.R(_.CF,{text:e})}}),_.R(_.W,{cond:C,
then:function(){return _.R("div",{class:"ytRadioButtonItemViewModelSubText"},C)}}),_.R(_.W,{cond:u,
then:function(){return _.R("div",{class:"ytRadioButtonItemViewModelSubText"},_.R(_.CF,{text:u}))}})),m=function(){if(e()){var b;
return(b=e())==null?void 0:b.content}return E()},U=function(){if(u()){var b;
return(b=u())==null?void 0:b.content}return C()};
p={};return _.R("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.R(_.oH,{name:t,checked:function(){return!(l==null||!l()||y().key!==(l==null?void 0:l()))},
onChange:function(b){q==null||q(b.target,y(),t==null?void 0:t())},
labelRenderable:function(){return a},
ariaLabel:function(){return U()?m()+", "+U():m()},
className:_.ip((p.ytRadioButtonItemViewModelSubTitle=function(){return!!y().subtext},p))}))},"Vf");_.u$6=_.aF(function(p){var y=p.data;var l=p.onSelected;var q=p.selectedKey;var t=p.groupName;var E=function(){return(t==null?void 0:t())||y().key};
return _.R("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost",tabindex:0},_.R("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.R(_.di,{data:function(){return y().radioButtons}},{radioButtonItemViewModel:function(e){return _.R(CGd,{data:e.data,
onSelected:l,selectedKey:q,groupName:E})}})))},"Wf");var RKu=_.aF(function(p){var y=p.data;var l=_.tK("div"),q=function(){return y().flowStateKey||""},t=_.So(_.RA,q),E=function(){return _.G(t(),rp)};
_.NA(function(){var e,C;if(((e=E())==null?0:e.isReportFormDirty)&&((C=E())==null||!C.navigationEnabled)&&_.n("enable_gff_accessibility_fix")){var u;if(((u=E())==null?void 0:u.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var a;(a=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||a.scrollIntoView()}else{var m;(m=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||m.scrollIntoView()}}},"VvP2Ne");
return _.R("yt-report-form-reason-select-page-view-model",{class:function(){var e;return((e=E())==null?void 0:e.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.R("h1",{class:function(){var e;
return((e=E())==null?void 0:e.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return y().pageHeader}),_.R("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.R(_.CF,{text:function(){return y().bodyText}})),_.R("div",{class:function(){var e;
return((e=E())==null?void 0:e.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.R(_.W,{cond:function(){var e,C;
return((e=E())==null?void 0:e.isReportFormDirty)&&!((C=E())==null?0:C.navigationEnabled)&&_.n("enable_gff_accessibility_fix")},
then:function(){return _.R("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:l},_.R(_.DR,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.R("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return y().emptyReasonSelectErrorMessage}))}}),_.R(_.u$6,{data:function(){return _.G(y().radioButtonGroup,_.KIA)},
onSelected:function(e,C){e=Object.assign({},t(),{abuseReportFlowState:Object.assign({},E(),{reasonKey:C.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:C.command})});_.Cl(_.Fp("flowStateEntity",q(),e))},
selectedKey:function(){var e;return(e=E())==null?void 0:e.reasonKey},
groupName:"report-form-reason-select-page"})))},"Xf");
RKu.idomCompat=!0;_.bp(RKu,"yt-report-form-reason-select-page-view-model",{props:{data:_.Co}});var WHi=_.aF(function(p){var y=p.data;var l,q=(l=_.WC().resolve(_.RK(_.hb)))==null?void 0:l();return _.R("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.R("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.R(_.W$,{data:function(){return q&&y().imageDark?y().imageDark:y().image},
alt:""})),_.R("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.R("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return y().header}),_.R(_.CF,{text:function(){return y().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Yf");
WHi.idomCompat=!0;_.bp(WHi,"yt-report-form-sign-in-page-view-model",{props:{data:_.Co}});_.bp(_.aF(function(p){var y=p.data;var l=function(){return y().titleSuperscript},q=function(){return y().answersShelf},t=function(){return y().videoShelf},E=function(){var K;
return(K=y().textInputPlaceholder)==null?void 0:K.content},e=function(){return y().showOpenTextInput&&!_.n("web_hide_explore_hub_until_user_navigates_back_to_home")},C=function(){var K;
return(K=y().textInputValue)==null?void 0:K.content},u=_.tK("input");
_.Hu(function(){e()&&C()&&u.value&&(u.value.value=C())});
var a=function(K){K=K.target.value.trim();var F=y().onUpdateText;F&&_.tb(F,{form:{userQuery:K}});y().userQuery=K},m=_.Fd(function(K){a(K)},150),U=_.Ff(function(K){m(K);
return!1}),b=_.Ff(function(K){K.key==="Enter"&&(a(K),(K=y().onNextStepCommand)&&_.tb(K,{forceClickLogging:!0}));
return!1}),P=_.sM("yt-talk-to-recs-view-model"),Z=function(){if(_.n("web_hide_explore_hub_until_user_navigates_back_to_home")){var K,F,L;
(L=(F=(K=P.value)==null?void 0:K.closest("ytd-flow-step-renderer"))==null?void 0:F.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||L.click()}};
p={};return _.R("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:P},_.R("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.R(_.di,{data:function(){return y().topCornerButton}},{buttonViewModel:_.wZ})),_.R("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.R("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.R(_.CF,{text:function(){return y().title}}),_.R(_.W,{cond:l,
then:function(){return _.R("sup",{class:"ytwTalkToRecsSuperScript"},_.R(_.CF,{text:l}))}})),_.R("div",{class:"ytwTalkToRecsSubtitle"},_.R(_.CF,{text:function(){return y().subtitle}})),_.R("div",{class:"ytwTalkToRecsResultsShelf"},_.R(_.W,{cond:q,
then:function(){return _.R(_.di,{data:q},{chipsShelfViewModel:function(K){return _.R("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.R(_.iDP,{data:K.data,callback:Z,enableSingleChipSelection:!0}))}})}}),_.R(_.W,{cond:t,
then:function(){return _.R(_.di,{data:t},{horizontalShelfViewModel:function(K){return _.R("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.R(_.IH,{data:K.data}))}})}})),_.R("div",{class:_.ip("ytwTalkToRecsRefinementContainer",(p.ytwTalkToRecsBottomMargin=function(){return y().isMultiTurnFlow},p))}," ",_.R(_.W,{cond:e,
then:function(){return _.R("div",{class:"ytwTalkToRecsUserInputBox"},_.R("input",{el:u,type:"text",class:"ytwTalkToRecsTextInput",placeholder:E,value:function(){return y().userQuery},
"on:input":U,"on:keyup":b,maxlength:200}))}}),_.R(_.di,{data:function(){return y().isMultiTurnFlow?y().nextButtonViewModel:void 0}},{buttonViewModel:function(K){return _.R("div",{class:"ytwTalkToRecsNextButton"},_.R(_.wZ,{data:K.data}))}}))))},"Zf"),"yt-talk-to-recs-view-model",{props:{data:_.Co}});var Kq6={sources:[{clientResource:{imageName:"CHECK"}}]};_.ap9=_.aF(function(p){var y=_.sM("div");p=_.RF(p,{error:void 0});var l=p.data,q=p.error,t=p.onSelected;p=_.c(_.kS(function(){return rMA(l())}));
var E=p.next().value,e=p.next().value;kiu(l,function(b){e(b);var P,Z,K=i6w((P=l().options)==null?void 0:(Z=P[b])==null?void 0:Z.value,l().type);t==null||t(K);y.value.focus()});
p=_.Ff(function(){if(!l().disabled){var b=l(),P=E(),Z=y.value;b.options&&(b=wu9(b.options,P,b.label),_.WC().resolve(_.Tu).openSheet({viewModel:b},Z))}});
var C=_.FFa(),u=function(){return!!q()},a=function(){return!!l().disabled},m={},U={};
return _.R("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.R("div",{class:_.ip("ytDropdownViewModelDropdownContainer",(m.ytDropdownViewModelDropdownContainerErrorBorder=u,m.ytDropdownViewModelDropdownContainerDisabled=a,m)),"on:click":p,el:y,role:"combobox",tabindex:0,"on:keydown":C,"aria-invalid":u,"aria-disabled":a,"aria-describedby":function(){return u()?"dropdown-view-model-error":void 0}},_.R("div",{class:"ytDropdownViewModelText"},SYu(l,u,E),FqV(l,E)),_.R("div",{class:_.ip("ytDropdownViewModelChevronDown",
(U.ytDropdownViewModelChevronDownDisabled=a,U))},_.R(_.DR,{icon:"CHEVRON_DOWN"}))),LqT(l,q))},"$f");_.bp(_.aF(function(p){var y=p.data;var l=function(t){var E=DVL(y());E.videoMetadata||(E.videoMetadata={});E.videoMetadata.sponsorshipsMetadata||(E.videoMetadata.sponsorshipsMetadata={});E.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(t)},q=function(t){var E=DVL(y());
E.scheduledRedirectMetadata||(E.scheduledRedirectMetadata={});E.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(t)};
return _.R("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.R("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.R("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.R(_.CF,{text:function(){return y().title}}),_.R(_.DR,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.R(_.CF,{text:function(){return y().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.R(_.di,{data:function(){return y().tierChoices}},{dropdownViewModel:function(t){return _.R("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.R(_.ap9,{data:t.data,
onSelected:l}))}}),_.R(_.di,{data:function(){return y().startTimeChoices}},{dropdownViewModel:function(t){return _.R("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.R(_.ap9,{data:t.data,
onSelected:q}))}}),_.R(_.CF,{text:function(){return y().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.R("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.R(_.di,{data:function(){return y().scheduleButton}},{panelFooterViewModel:_.eS})))},"ag"),"ytfz-schedule-fanzone-view-model",{props:{data:_.Co}});_.bp(_.aF(function(p){var y=p.data;p=p.className===void 0?"":p.className;var l=_.So(gJA,function(){return y().flowStateEntityKey||""}),q={};
q=_.ip("ytFlowBottomBarViewModelFlowBottomBarButtons",(q.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},q));
var t={},E=_.ip("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",q,(t.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},t.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},t));
t={};var e=_.ip("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",q,(t.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},t.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},t));
q={};q=_.ip("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(q.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},q.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},q.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
q));
p=_.ip("ytFlowBottomBarViewModelHost",p);return _.R("yt-flow-bottom-bar-view-model",{class:p},_.R(_.W,{cond:function(){var C;return(C=y())==null?void 0:C.textSection},
then:function(C){return _.R("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.R(_.CF,{text:C}))}}),_.R("div",{class:q},_.R(_.di,{data:function(){return y().secondaryButton}},{buttonViewModel:function(C){return _.R(_.wZ,{data:C.data,
className:e})}}),_.R(_.di,{data:function(){return y().primaryButton}},{buttonViewModel:function(C){return _.R(_.wZ,{data:C.data,
className:E,buttonOverrides:function(){var u;return{disabled:!((u=l())==null||!u.primaryButtonDisabled)}}})}})))},"bg"),"yt-flow-bottom-bar-view-model",{props:{data:_.Co,
className:_.jw}});var m$i="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),CA=function(){var p=_.w.apply(this,arguments)||this;p.enableScrollingFix=!0;p.bottomBar=!1;p.hideBottomBar=!1;p.fitContent=!1;return p};
_.A(CA,_.w);_.J=CA.prototype;_.J.ready=function(){_.n("enable_pdp_icon_prefetch")&&_.bhA(_.WC().resolve(_.w2),0,m$i)};
_.J.focus=function(p){this.topBar?_.tp(this.topBar,p):this.paperDialog.focus(p)};
_.J.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$18902_scroller&&(this.JSC$18902_scroller.dialogElement=this.paperDialog,this.JSC$18902_scroller.attached&&typeof this.JSC$18902_scroller.attached==="function"&&this.JSC$18902_scroller.attached())};
_.J.onDataChanged=function(){var p;this.fitContent=!((p=this.data)==null||!p.fitContent);var y;this.bottomBar=!((y=this.data)==null||!y.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.J.onProgressChanged=function(){var p,y,l=((y=(p=this.data)==null?void 0:p.progress)!=null?y:0)*100;this.progressElement.style.width=l+"%"};
_.J.isProgressHidden=function(){var p;return!((p=this.data)==null?0:p.progress)};
_.J.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(p){return _.n("enable_wiz_next_lp2_msof")&&p&&!p.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.Jh.Object.defineProperties(CA.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var p;return _.n("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.G((p=this.data)==null?void 0:p.content,VM9)}}});
CA.prototype.onProgressChanged=CA.prototype.onProgressChanged;CA.prototype.onDataChanged=CA.prototype.onDataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],CA.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],CA.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],CA.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],CA.prototype,"enableScrollingFix",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],CA.prototype,"bottomBar",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],CA.prototype,"hideBottomBar",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],CA.prototype,"containsExploreHub",null);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],CA.prototype,"fitContent",void 0);_.H([_.rd("#progress"),_.x("design:type",HTMLElement)],CA.prototype,"progressElement",void 0);
_.H([_.rd("#scroller"),_.x("design:type",Object)],CA.prototype,"JSC$18902_scroller",void 0);_.H([_.rd("ytd-flow-top-bar-renderer"),_.x("design:type",HTMLElement)],CA.prototype,"topBar",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CA.prototype,"onDataChanged",null);_.H([_.gd("data.progress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CA.prototype,"onProgressChanged",null);
_.H([_.k({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],CA);
_.D(CA,"ytd-flow-step-renderer",function(){if(YCu!==void 0)return YCu;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-flow-step-renderer"></div>\n<div id="progress-container" hidden="[[isProgressHidden(data)]]" class="style-scope ytd-flow-step-renderer">\n  <div id="progress" class="style-scope ytd-flow-step-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-flow-step-renderer">\n  <div id="content" class="style-scope ytd-flow-step-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n<div id="bottom-bar" class="style-scope ytd-flow-step-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return YCu=p},{mode:1});var U$d=function(p){this.resolveCommand=p;this.steps={}},$$1=function(p,y){y=_.c(y||[]);
for(var l=y.next();!l.done;l=y.next()){l=l.value;var q=Object.values(l)[0],t=void 0;if((t=q)==null?0:t.stepId)p.steps[q.stepId]=l}},nnA=function(p,y){var l,q,t,E,e;
return _.h(function(C){if((l=p.state)==null||!l.currentStepId)return C.return(void 0);q=jd9(p);if(!q)return C.return(bTu(p));if(t=_.G(q,_.MM6)){var u;((u=t.screenLoggingData)==null?0:u.screenVeType)&&_.Mb(_.Ll(),t.screenLoggingData.screenVeType);((E=t)==null?0:E.onStepStartCommand)&&p.resolveCommand((e=t)==null?void 0:e.onStepStartCommand,{})}if(t&&y){u=t;var a,m,U,b;((a=y.flowLoggingData)==null?0:a.eventNamespace)&&((m=u.flowEventData)==null?0:m.eventType)&&((U=u.flowEventData)==null?0:U.eventMetadata)&&
((b=y.flowLoggingData)==null?0:b.flowType)&&(a=_.Za(y.flowLoggingData.eventNamespace,u.flowEventData.eventType,u.flowEventData.eventMetadata),_.ME(_.Vq(),a,y.flowLoggingData.flowType));y.steps&&!y.steps.includes(q)&&y.steps.push(q)}return C.return(q)})};
U$d.prototype.back=function(){var p;(p=this.state)!=null&&p.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
U$d.prototype.handleUpdateFlowCommand=function(p){p.steps&&$$1(this,p.steps);p.entityUpdateCommand&&this.resolveCommand(p.entityUpdateCommand,{});p.flowContinuationCommand&&(p=p.flowContinuationCommand)&&(this.getFlowContinuationCommand=p);this.awaitFlowContinuation&&(this.awaitFlowContinuation(jd9(this)),this.awaitFlowContinuation=void 0)};
U$d.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var bTu=function(p){return _.h(function(y){return p.getFlowContinuationCommand?y.return(new Promise(function(l){p.awaitFlowContinuation=l;p.getFlowContinuationCommand&&p.resolveCommand(p.getFlowContinuationCommand,{flow_state:p.state})})):y.return(Promise.resolve(void 0))})},jd9=function(p){var y;
if((y=p.state)!=null&&y.currentStepId)return p.steps[p.state.currentStepId]};var uO=function(){var p=_.w.apply(this,arguments)||this;p.flowState=new U$d(function(y,l){l=l===void 0?{}:l;_.wW.instance.resolveCommand(y,{form:{form:l,element:p.hostElement}})});
p.initialState=!0;p.isLoading=!1;p.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return p};
_.A(uO,_.w);_.J=uO.prototype;_.J.onPopupClosed=function(p){p&&this.hostElement!==p.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.J.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.J.focus=function(p){var y=this;_.sU(function(){var l=_.jR(y.hostElement).querySelector("ytd-flow-step-renderer");(l==null?0:l.topBar)?l.focus(p):y.topBar&&_.tp(y.topBar,p)},1)};
_.J.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.J.computeTopBarHidden=function(p){var y;return!((y=_.G(p,_.MM6))==null||!y.topBarOverride)};
_.J.dataChanged=function(){var p=this,y,l;return _.h(function(q){if(q.nextAddress==1){((y=p.data)==null?0:y.steps)&&$$1(p.flowState,p.data.steps);if((l=p.data)==null?0:l.flowContinuationCommand){var t=p.flowState,E=p.data.flowContinuationCommand;E&&(t.getFlowContinuationCommand=E)}return q.yield(nnA(p.flowState,p.data),2)}p.currentFlowStep=q.yieldResult;_.rR(q)})};
_.J.flowChanged=function(){var p=this,y;return _.h(function(l){if(l.nextAddress==1){if(!p.flow)return l.return();p.flowState.state=p.flow;p.isLoading=!0;return l.yield(nnA(p.flowState,p.data),2)}y=l.yieldResult;if(!y||p.flow.isLoading)return l.return();p.currentFlowStep=y;p.initialState=!1;p.isLoading=!1;p.autofocusAndRefit();_.rR(l)})};
_.J.autofocusAndRefit=function(){var p=this,y=_.WC().resolve(_.RK(_.Zu)),l=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),q=document.querySelector("yt-report-form-confirmation-page-view-model"),t=document.querySelector("yt-report-form-details-page-view-model"),E=document.querySelector("yt-report-form-reason-select-page-view-model"),e=document.querySelector("yt-contributor-zero-state-view-model"),
C=document.querySelector("yt-structured-context-note-view-model"),u=document.querySelector("yt-note-view-model");(!l&&y&&y.isKeyBoardInUse()||q||!l&&t||!l&&E||e||C||u)&&_.EL(this.hostElement);_.th(this,function(){_.Ub(p.hostElement,"yt-refit")})};
_.J.handleUpdateFlowCommand=function(p){this.data&&(p=_.G(p,Zh7),p.targetId===this.data.targetId&&(p.flowContinuationCommand&&(this.data.flowContinuationCommand=p.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(p),this.autofocusAndRefit()))};
_.J.handleFlowNextStepCommand=function(p){this.data&&this.flow&&this.flow.key&&(p=_.G(p,PvV),p.targetId===this.data.targetId&&(p=p.stepId||"",this.ytdReduxBehavior.dispatch(_.Ow("flowStateEntity",this.flow.key,{currentStepId:p,stepIdStack:(this.flow.stepIdStack||[]).concat(p)}))))};
_.J.handleFlowPrevStepCommand=function(p){if(this.data&&this.flow&&this.flow.key&&(p=_.G(p,AJm),p.targetId===this.data.targetId)){var y=[].concat(_.xq(this.flow.stepIdStack||[]));y.length>1?(y.pop(),this.ytdReduxBehavior.dispatch(_.Ow("flowStateEntity",this.flow.key,{currentStepId:y[y.length-1],stepIdStack:y}))):p.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(p.onFirstStepCommand)}};
_.J.handleYpcCancelRecurrenceCommand=function(p){if(this.data&&this.flow&&this.flow.key&&(p=_.G(p,wCm),p.targetId===this.data.targetId&&p.endpointCommand)){var y=_.G(this.flow,ihT);y&&_.G(p.endpointCommand,_.NZZ)&&(_.G(p.endpointCommand,_.NZZ).feedbackData=y.surveyFeedback);this.ytComponentBehavior.resolveCommand(p.endpointCommand)}};
_.J.handlePartialUpdateFlowStateEntity=function(p){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.Ow("flowStateEntity",this.flow.key,p,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
uO.prototype.flowChanged=uO.prototype.flowChanged;uO.prototype.dataChanged=uO.prototype.dataChanged;uO.prototype.onPopupClosed=uO.prototype.onPopupClosed;_.H([_.V(_.zL),_.x("design:type",Object)],uO.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],uO.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],uO.prototype,"ytComponentBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],uO.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],uO.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],uO.prototype,"initialState",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],uO.prototype,"isLoading",void 0);_.H([_.Q(),_.x("design:type",Object)],uO.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Object)],uO.prototype,"currentFlowStep",void 0);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],uO.prototype,"onPopupClosed",null);_.H([_.Q({selectorArgs:["data.flowStateEntityKey"],selector:gJA}),_.x("design:type",Object)],uO.prototype,"flow",void 0);_.H([_.rd("ytd-flow-top-bar-renderer"),_.x("design:type",HTMLElement)],uO.prototype,"topBar",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],uO.prototype,"dataChanged",null);_.H([_.k8("flow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],uO.prototype,"flowChanged",null);_.H([_.k({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],uO);
_.GXd=_.Al()(uO,"ytd-flow-root-renderer",function(){if(zsA!==void 0)return zsA;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return zsA=p},{mode:_.ZS("kevlar_poly_si_batch_j025")?1:2});var PG9;var wp=null;_.bp(_.aF(function(p){return _.R("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.R("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.R(_.CF,{text:function(){return p.data().text}}),_.R("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"cg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.Co}});var ApO=_.aF(function(p){var y=p.playerControlsProps;var l=p.isShortsPage;return _.R("yt-bigboard",null,_.R(_.W,{cond:function(){return y().isDragging},
then:function(){return _.R("div",{class:"ytBigboardStoryboardHost"},_.R(_.tOR,{progressBarProps:y,isShortsPage:l}))}}))},"dg");
ApO.idomCompat=!0;_.R1={ACCOUNT_LABEL:iT("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:iT("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:iT("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:iT("AD_BADGE_HINT"),AD_BADGE_TEXT:iT("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:iT("ALL_CHANNELS_LABEL"),AMBIENT_MODE:iT("AMBIENT_MODE"),AMBIENT_MODE_OFF:iT("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:iT("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:iT("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:iT("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:iT("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:iT("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:iT("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:iT("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:iT("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:iT("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:iT("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:iT("AUTO_ZOOM","Auto zoom"),BACK:iT("BACK"),CANCEL:iT("CANCEL"),CHANNEL_SWITCHER_LABEL:iT("CHANNEL_SWITCHER_LABEL"),CLOSE:iT("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:iT("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:iT("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:iT("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:iT("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:iT("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:iT("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:iT("COMMENT_MODAL_CONTENT"),CONFIRM_OK:iT("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:iT("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:iT("COPIED_TO_CLIPBOARD"),COPY:iT("COPY"),COPY_DEBUG_INFO:iT("COPY_DEBUG_INFO"),COPY_EMBED_CODE:iT("COPY_EMBED_CODE"),
COPY_LINK_LABEL:iT("COPY_LINK_LABEL"),COPY_VIDEO_URL:iT("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:iT("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:iT("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:iT("DELETE_FROM_DOWNLOADS"),DIALOG:iT("DIALOG"),DONE:iT("DONE"),DOWNLOAD:iT("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:iT("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:iT("FLAG_CONFIRM"),FLAG_CONTENT:iT("FLAG_CONTENT"),FLAG_LABEL:iT("FLAG_LABEL"),FLAG_TITLE:iT("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:iT("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:iT("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:iT("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:iT("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:iT("HIDE_SEARCH_FILTERS_LABEL"),HOME:iT("HOME","Home"),INVALID_RESPONSE_RECEIVED:iT("INVALID_RESPONSE_RECEIVED"),LIBRARY:iT("LIBRARY","Library"),LISTENING:iT("LISTENING"),LOADING:iT("LOADING"),LONG_PRESS_MIC_TO_SPEAK:iT("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:iT("LOOP"),MENU_DESKTOP:iT("MENU_DESKTOP"),
MENU_EXIT:iT("MENU_EXIT"),MENU_FEEDBACK:iT("MENU_FEEDBACK"),MENU_HELP:iT("MENU_HELP"),MENU_IMPRESSUM:iT("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:iT("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:iT("MENU_SETTINGS"),MENU_SIGN_IN:iT("MENU_SIGN_IN"),MENU_TITLE:iT("MENU_TITLE"),MENU_YOUR_DATA:iT("MENU_YOUR_DATA"),MORE_INFO:iT("MORE_INFO"),MORE_OPTIONS:iT("MORE_OPTIONS"),MUTE_VOLUME:iT("MUTE_VOLUME"),NEW_PLAYLIST:iT("NEW_PLAYLIST"),NEXT_VIDEO:iT("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:iT("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:iT("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:iT("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:iT("NOT_FOUND_TITLE"),NO_DOWNLOADS:iT("NO_DOWNLOADS"),NO_MIC_INPUT:iT("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:iT("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:iT("OOPS_MESSAGE"),OPEN_APP:iT("OPEN_APP"),OPEN_YOUTUBE:iT("OPEN_YOUTUBE"),PAUSE:iT("PAUSE"),PLAY:iT("PLAY"),PLAYER_CAPTION:iT("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:iT("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:iT("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:iT("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:iT("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:iT("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:iT("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:iT("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:iT("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:iT("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:iT("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:iT("PLAYER_MINIMIZE"),PLAYER_NEXT:iT("PLAYER_NEXT"),PLAYER_PAUSE:iT("PLAYER_PAUSE"),PLAYER_PLAY:iT("PLAYER_PLAY"),
PLAYER_PREVIOUS:iT("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:iT("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:iT("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:iT("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:iT("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:iT("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:iT("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:iT("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:iT("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:iT("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:iT("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:iT("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:iT("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:iT("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:iT("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:iT("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:iT("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:iT("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:iT("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:iT("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:iT("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:iT("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:iT("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:iT("PLAY_ALL"),PLEASE_FIX_ERRORS:iT("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:iT("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:iT("PREVIOUS_VIDEO"),PRIVACY_POLICY:iT("PRIVACY_POLICY"),RELOAD:iT("RELOAD"),REQUIRED_LABEL:iT("REQUIRED_LABEL"),SAVE_PLAYLIST:iT("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:iT("SCRUB_SLIDE_USER_EDU"),SEARCH:iT("SEARCH","Search"),
SEARCH_APPEND_LABEL:iT("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:iT("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:iT("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:iT("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:iT("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:iT("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:iT("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:iT("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:iT("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:iT("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:iT("SEEK_SLIDER"),SETTINGS_LABEL:iT("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:iT("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:iT("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:iT("SHOW_LESS"),SHOW_MORE:iT("SHOW_MORE"),SHOW_PLAYER_CONTROLS:iT("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:iT("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:iT("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:iT("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:iT("SIGN_IN_ON_WEB"),STABLE_VOLUME:iT("STABLE_VOLUME"),STABLE_VOLUME_OFF:iT("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:iT("STABLE_VOLUME_ON"),STATS_FOR_NERDS:iT("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:iT("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:iT("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:iT("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:iT("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:iT("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:iT("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:iT("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:iT("TIMESTAMP_SECONDS"),TOGGLE_OFF:iT("TOGGLE_OFF"),TOGGLE_ON:iT("TOGGLE_ON"),TRENDING:iT("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:iT("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:iT("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:iT("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:iT("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:iT("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:iT("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:iT("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:iT("VIDEO_LINK_LABEL")};var ZTd=_.aF(function(p){var y=p.playerApi;p=_.sM("button",function(q){_.EO(q,36843)});
var l=iT("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.R("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.R("button",{el:p,class:"ytPlayerControlsJumpForwardButtonButton",title:l,"aria-label":l,"on:click":_.Ff(function(){_.JX(36843);y&&y().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.R("span",null,_.R(_.DR,{icon:"FAST_FORWARD"}))))},"eg");var MF9=_.aF(function(p){var y=p.appApi;p=_.sM("button",function(q){_.EO(q,62946)});
var l=iT("OPEN_IN_MINIPLAYER");return _.R("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.R("button",{el:p,class:"ytMiniplayerButtonButton",title:l,"aria-label":l,"on:click":_.Ff(function(){_.JX(62946);var q,t;(t=(q=y()).openInMiniplayer)==null||t.call(q);return!1})},_.R(_.DR,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"fg");var VFi=_.aF(function(p){var y=p.playerApi;p=_.sM("button",function(E){_.EO(E,142812)});
var l=_.c(_.nr(!1,void 0,"I3VCyb")),q=l.next().value,t=l.next().value;l=function(){return iT("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(q()?1:2)})};
return _.R("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.R("button",{el:p,class:"ytPlaybackSpeedButtonButton",title:l,"aria-label":l,"on:click":_.Ff(function(){_.JX(142812);if(y){var E=y(),e=q();E.setPlaybackRate(e?1:2);t(!q())}return!1})},_.R("span",null,_.R(_.DR,{icon:function(){return q()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"gg");var gnR=_.aF(function(p){var y=p.title;var l=p.ariaLabel;var q=p.icon;var t=p.command;var E=p.veType;p=_.sM("button",function(e){E&&_.EO(e,E())});
return _.R("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.R("button",{el:p,class:"ytdThumbnailOverlayButtonButton",title:y,"aria-label":l,"on:click":_.Ff(function(){E&&_.JX(E());t&&_.WC().resolve(_.aK).resolveCommand(t())})},_.R(_.DR,{icon:q})))},"hg");var Pq="";var Qdi=_.aF(function(p){var y=p.playerControlsProps,l=p.onClickFn;p=_.MA(function(){var E=y(),e=-1;E.captionsAvailable&&(e=E.captionsEnabled?1:0);return e},void 0,"WecR8e");
var q=_.MA(function(){var E=y();return E.captionsAvailable?_.g$(E.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.g$("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),t=_.MA(function(){var E=y();
E=E.captionsAvailable?E.captionsEnabled:void 0;return E},void 0,"Q17ly");
return _.R("yt-closed-captions-toggle-button",null,_.R(_.YEO,{captionIconType:p,ariaLabel:q,ariaPressed:t,onClick:function(E){var e=y();if(e.captionsAvailable){var C=e.playerApi;if(C){var u=e.playerApi;if(u){var a=Pq;if(a){u=u.getOption("captions","track");var m;Pq=(m=u?u.displayName:null)!=null?m:a}else _.tX(u)?(a=_.Fo_(u),Pq=a.length?(m=KuO(a))?m.displayName:a[0].displayName:""):Pq=""}wQ6(C);_.n("mweb_disable_set_state_captions_killswitch")&&e.setState({captionsEnabled:!e.captionsEnabled})}}var U,
b;(b=(U=e.appApi).showCaptionsToggleToast)==null||b.call(U,e);l==null||l(E)},
isOverlay:!0}))},"ig");var KHi=_.aF(function(p){var y=p.data;return _.R("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.R(_.YG,{data:function(){return{type:16,text:_.l2u(y().label)}}}))},"jg");var wsm=_.aF(function(p){var y=_.ip("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return p.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return p.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return p.size()==="small"?p.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
p.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.R("animated-seek-arrows",{class:_.ip("ytPlayerControlsAnimatedSeekArrowsHost")},_.R("span",{class:y}),_.R("span",{class:y}),_.R("span",{class:y}))},"kg");
wsm.idomCompat=!0;var iT9=_.aF(function(){var p=_.g$("PLAYER_SECONDS",{seconds_placeholder:"30"}),y=_.c(_.nr(!1,void 0,"Yj8msb")),l=y.next().value,q=y.next().value,t=_.c(_.nr(!1,void 0,"r9Z50e"));y=t.next().value;var E=t.next().value;t={};var e=_.ip("jumpForwardOverlayOverlay",(t.jumpForwardOverlayOverlayHidden=y,t));_.xZ(function(){var C=null,u=null,a=function(){C!==null&&_.B3().cancelJob(C);u!==null&&_.B3().cancelJob(u);E(!0);q(!0);_.ZR(_.B3(),function(){E(!1)});
C=_.ZR(_.B3(),function(){E(!0);u=_.ZR(_.B3(),function(){q(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",a);_.TP(function(){window.removeEventListener("jump-forward-clicked",a)})});
return _.R("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.R(_.W,{cond:l,then:function(){return _.R("div",{class:e},_.R(wsm,{direction:1,size:"large"}),_.R("div",null,p))}}))},"lg");var rp7=_.R1.MUTE_VOLUME,SLO=_.R1.UNMUTE_VOLUME,FHu=_.aF(function(p){var y=p.muteIconType;var l=p.onClick;var q=p.useOutlineIcon;var t=p.useDelhiIcons;p=_.sM("button",function(C){_.EO(C,28662)});
var E=function(){var C=y(),u=q==null?void 0:q(),a=t==null?void 0:t(),m="",U="";switch(C){case -1:case 0:m=u?"VOLUME_OFF":a?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";U=SLO;break;case 1:m=u?"VOLUME_UP_OUTLINE":a?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";U=rp7;break;case 2:m=u?"VOLUME_DOWN_OUTLINE":a?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";U=rp7;break;default:_.qL(C)}return{iconName:m,ariaLabel:U}},e=function(){return E().ariaLabel};
return _.R("ytm-mute-button",{class:"ytmMuteButtonHost"},_.R("button",{el:p,class:"ytmMuteButtonButton",title:e,"aria-label":e,"on:click":_.Ff(function(C){_.JX(28662);l==null||l(C);return!1})},_.R("span",null,_.R(_.DR,{icon:function(){return E().iconName}}))))},"mg");var LH6=_.aF(function(p){var y=p.volumeProps;var l=p.onClickFn;var q=p.useOutlineIcon;var t=p.useDelhiIcons;return _.R("yt-mute-toggle-button",null,_.R(FHu,{muteIconType:function(){var E=y();return E.volumeMuted||E.volume===0?0:E.volume>50?1:2},
onClick:function(E){var e=y().playerApi;e&&(e.isMuted()?e.unMute():e.mute(!1));l==null||l(E)},
useOutlineIcon:function(){return!(q==null||!q())},
useDelhiIcons:function(){return!(t==null||!t())}}))},"ng");
LH6.idomCompat=!0;var kXR=_.aF(function(p){var y=p.data;var l=_.sM("ytm-paid-content-overlay-renderer");return _.R("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:l,"on:animationend":_.Ff(function(){l.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.R(_.sw,{command:function(){return y().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.R(_.W,{cond:function(){var q;return(q=y().icon)==null?void 0:q.iconType},
then:function(){return _.R("span",null,_.R(_.DR,{icon:function(){var q;return(q=y().icon)==null?void 0:q.iconType}}))}}),_.R("div",{class:"ytmPaidContentOverlayText"},_.R(_.CF,{text:function(){return y().text}})),_.R(_.W,{cond:function(){return y().navigationEndpoint},
then:function(){return _.R(_.DR,{icon:"CHEVRON_RIGHT"})}})))},"og");
kXR.idomCompat=!0;var yJi=[].concat(_.xq([{register:function(p){var y=Cv9(p),l;(l=p().playerApi)==null||l.addEventListener("onVolumeChange",y);return function(){}}},
{register:function(p){var y=u39(p);p=p().playerApi;p==null||p.addEventListener("captionschanged",y);p==null||p.addEventListener("captionssettingschanged",y);p==null||p.addEventListener("onCaptionsTrackListChanged",y);return function(){}}},
{register:function(p){if(!_.n("mweb_screenreader_accessible_player"))return function(){};
var y=Rs9(p),l=document.querySelector("video");l==null||l.addEventListener("touchend",y);return function(){l==null||l.removeEventListener("touchend",y)}}},
{register:function(p){if(!_.n("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var y=Rs9(p),l=document.querySelector("video");l==null||l.addEventListener("focus",y);return function(){l==null||l.removeEventListener("focus",y)}}}]),[{register:function(p){var y=JJA(p),l;
(l=p().playerApi)==null||l.addEventListener("onStateChange",y);return function(){}}},
{register:function(p){var y=cJR(p),l;(l=p().playerApi)==null||l.addEventListener("onPlaybackRateChange",y);return function(){}}},
{register:function(p){var y=esO(p),l;(l=p().playerApi)==null||l.addEventListener("onVideoDataChange",y);return function(){}}},
{register:function(p){var y=hsu(p),l,q;(l=p())==null||(q=l.playerApi)==null||q.addEventListener("onVideoProgress",y);return function(){}}}]);var NJm=_.aF(function(p){var y=p.data;var l=function(){return _.g$("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+y().playbackRate})};
return _.R(_.W,{cond:function(){return y().playbackRate&&y().playbackRate!==1},
then:function(){return _.R("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.R("div",{class:"ytPlaybackRateOverlayOverlay"},_.R(wsm,{direction:1,size:"small"}),_.R("div",{class:"ytPlaybackRateOverlayLabel"},l)))}})},"pg");var D$6=_.aF(function(p){var y=p.data;return _.R("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.R(_.W,{cond:function(){var l,q=(l=y())==null?void 0:l.playerResponse,t;return q==null?void 0:(t=q.paidContentOverlay)==null?void 0:t.paidContentOverlayRenderer},
then:function(l){return _.R(kXR,{data:l})}}))},"rg"),HTR=_.aF(function(p){var y=p.props;
var l=p.data;var q=p.options;var t=function(){var a,m,U,b;return(a=l())==null?void 0:(m=a.playerResponse)==null?void 0:(U=m.playerConfig)==null?void 0:(b=U.inlinePlaybackConfig)==null?void 0:b.showAudioControls},E=function(){var a,m;
if(t()&&((a=q())==null?void 0:(m=a.additionalButton)==null?void 0:m.button)!==void 0){var U,b,P;a=(U=l())==null?void 0:(b=U.playerApi)==null?void 0:(P=b.getSize())==null?void 0:P.height;if(!(a===void 0||a<180)){var Z,K;return(Z=q())==null?void 0:(K=Z.additionalButton)==null?void 0:K.button}}},e=function(){var a,m;
return(a=q())==null?void 0:(m=a.additionalButton)==null?void 0:m.thumbnailOverlayButtonRenderers},C=function(){var a,m;
return(a=q())==null?void 0:(m=a.additionalButton)==null?void 0:m.thumbnailOverlayButtonViewModels},u=function(){var a=[_.R(LH6,{volumeProps:y}),
_.R(Qdi,{playerControlsProps:y})];E()===1&&a.push(_.R(ZTd,{playerApi:function(){return y().playerApi}}));
E()===2&&a.push(_.R(MF9,{appApi:function(){return y().appApi}}));
E()===3&&a.push(_.R(VFi,{playerApi:function(){return y().playerApi}}));
var m=e();if(E()===4&&m){m=_.c(m);for(var U=m.next(),b={};!U.done;b={tooltip$jscomp$2:void 0,ariaLabel$jscomp$22:void 0,icon$jscomp$53:void 0,command$jscomp$580:void 0},U=m.next()){U=U.value;b.tooltip$jscomp$2=U.tooltip;var P=void 0,Z=void 0;b.ariaLabel$jscomp$22=((P=U.accessibility)==null?void 0:(Z=P.accessibilityData)==null?void 0:Z.label)||b.tooltip$jscomp$2;P=void 0;b.icon$jscomp$53=(P=U.icon)==null?void 0:P.iconType;b.command$jscomp$580=U.command;b.tooltip$jscomp$2&&b.ariaLabel$jscomp$22&&b.icon$jscomp$53&&
a.push(_.R(gnR,{title:function(K){return function(){return K.tooltip$jscomp$2}}(b),
ariaLabel:function(K){return function(){return K.ariaLabel$jscomp$22}}(b),
icon:function(K){return function(){return K.icon$jscomp$53}}(b),
command:function(K){return function(){return K.command$jscomp$580}}(b)}))}}m=C();
if(E()===4&&m)for(m=_.c(m),U=m.next(),b={};!U.done;b={tooltip$jscomp$3:void 0,ariaLabel$jscomp$23:void 0,icon$jscomp$54:void 0,command$jscomp$581:void 0},U=m.next())U=U.value,b.tooltip$jscomp$3=U.title,b.ariaLabel$jscomp$23=U.accessibilityText||b.tooltip$jscomp$3,b.icon$jscomp$54=U.iconName,b.command$jscomp$581=_.yM(U.onTap),b.tooltip$jscomp$3&&b.ariaLabel$jscomp$23&&b.icon$jscomp$54&&a.push(_.R(gnR,{title:function(K){return function(){return K.tooltip$jscomp$3}}(b),
ariaLabel:function(K){return function(){return K.ariaLabel$jscomp$23}}(b),
icon:function(K){return function(){return K.icon$jscomp$54}}(b),
command:function(K){return function(){return K.command$jscomp$581}}(b)}));
return a};
return _.R(_.W,{cond:t,then:function(){return _.R("div",{class:"ytInlinePlayerControlsTopRightControls"},_.R(_.rT,{each:u},function(a){return _.R("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.R("div",{class:"ytInlinePlayerControlsButtonIcon"},a))}))}})},"sg"),BJ7=_.aF(function(p){var y=p.props;
var l=p.data;var q=p.options;p={};p=_.ip("ytInlinePlayerControlsBottomRightControls",(p.ytInlinePlayerControlsBottomRightControlsHidden=function(){var t;return a3u(l(),q())&&((t=q())==null?void 0:t.insetProgressBar)&&(y().isHovering||y().isDragging)},p));
return _.R("div",{class:p},_.R(TJd,{data:l}),_.R(_.W,{cond:function(){var t;return!((t=q())==null?0:t.hideTimeDisplay)},
then:function(){return _.R(x$R,{props:y,data:l})}}))},"tg"),TJd=_.aF(function(p){var y=p.data;
return _.R(_.di,{data:function(){var l;return YY6((l=y())==null?void 0:l.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:KHi})},"ug"),x$R=_.aF(function(p){var y=p.props;
var l=p.data;return _.R(_.W,{cond:function(){return y().isLive},
then:function(){return _.R(fpm,null)},
else:function(){return _.R(vnV,{props:y,data:l})}})},"vg"),vnV=_.aF(function(p){var y=p.props;
var l=p.data;var q=_.MA(function(){var t;return pCd((t=l())==null?void 0:t.thumbnailOverlays)},void 0,"kUmuA");
return _.R("div",{class:_.ip("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.R1.PLAYER_TIME_ELAPSED+" "+_.Bxj(y().playedTime)}},_.R(_.YG,{data:function(){var t=_.Bxj(y().videoDuration-y().playedTime);
return Object.assign({},{type:16,text:t},q())}}))},"wg"),fpm=_.aF(function(){var p=_.ip("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.R("div",{class:p},_.R(_.YG,{data:{type:17,text:_.R1.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"xg"),XsL=_.aF(function(p){var y=p.props;
var l=p.data;var q=p.options;return _.R(_.CzR,{progressBarProps:y,config:function(){var t,E=_.G((t=l())==null?void 0:t.multiMarkersPlayerBar,_.hHP),e;t=((e=q())==null?0:e.insetProgressBar)?2:1;var C;e=(C=q())==null?void 0:C.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:t,chapterData:E,isInlinePlayback:!0,doSeekOnClick:e,playheadDotBehavior:e?1:0}}})},"yg");_.bp(_.aF(function(p){var y=p.data;var l=p.appApi;var q=p.options;var t=EhV(y,WIV(l));p={};l={};return _.R("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.R("div",{class:_.ip("ytInlinePlayerControlsDarkenedOverlay",(p.ytInlinePlayerControlsDarkenedOverlayShow=function(){return t().isHovering},p))}),_.R(iT9,null),_.R(NJm,{data:t}),_.R(D$6,{data:y}),_.R(ApO,{playerControlsProps:t,
isShortsPage:!1}),_.R("div",{class:_.ip((l.ytInlinePlayerControlsControlsHidden=function(){return t().isDragging},l))},_.R(HTR,{props:t,
data:y,options:q}),_.R(BJ7,{props:t,data:y,options:q})),_.R(_.W,{cond:function(){return a3u(y(),q())},
then:function(){return _.R(XsL,{props:t,data:y,options:q})}}))},"qg"),"yt-inline-player-controls",{props:{data:_.Co,
appApi:_.jw,options:_.Co}});var Wd=function(){var p=_.w.apply(this,arguments)||this;p.opts=null;p.playerControlsData=null;p.playerControlsAppApi={openInMiniplayer:function(){p.openInMiniplayer()}};
p.playerControlsOptions={};p.noAnimation=!1;p.playbackIntentTriggered=!1;p.positionData=null;p.hidden=!0;p.active=!1;p.playing=!1;p.videoPreviewDataIndex=0;p.JSC$18958_playerPromise=null;p.player=null;p.enableAudioControls=!1;p.hasBeenUnmuted=!1;p.captionsHaveBeenTurnedOff=!1;p.JSC$18958_playerEvents=new Map;p.videoPreviewFetchRequest=null;p.scheduledPreviewEndJobId=null;p.JSC$18958_preventProgressSaveTimer=null;p.watchEndpointStartTimeUpdaterInterval=null;p.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};p.windowOnBlurFn=function(){p.deactivate()};
return p};
_.A(Wd,_.w);_.J=Wd.prototype;
_.J.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.n("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.J.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$18958_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$18958_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$18958_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$18958_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.MH(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.MH(this,this.onScroll))};
_.J.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.MH(this,this.onScroll))};
_.J.onPageTypeChange=function(){this.deactivate()};
_.J.onWindowResized=function(){this.deactivate()};
_.J.onCaptionsChanged=function(p){p=!!p.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!p);this.setCaptionSize()};
_.J.setCaptionSize=function(){var p;if(this.active&&!this.captionsHaveBeenTurnedOff&&((p=this.player)==null?0:p.getCaptionWindowContainerId())){var y;(y=this.player)==null||y.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.J.currentPageAllowed=function(){return!this.isWatchPage};
_.J.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var p=this.positionData,y=p.initialTopPosition,l=p.initialHorizontalPosition;_.Ax(this.hostElement,{"--ytd-video-preview-translate-left":p.finalHorizontalPosition-l+"px","--ytd-video-preview-translate-top":p.finalTopPosition-y+"px","--ytd-video-preview-original-top-position":y+"px","--ytd-video-preview-original-horizontal-position":l+"px",
"--ytd-video-preview-initial-scale":"scale("+p.initialScale+")","--ytd-video-preview-width":p.videoPreviewWidth+"px","--ytd-video-preview-height":p.videoPreviewHeight+"px"});return!0};
_.J.handleOpenVideoPreviewAction=function(p){var y=this,l;return _.h(function(q){if(!y.currentPageAllowed())return q.return(0);y.opts=p;return(l=y.alignVideoPreviewForAnimation(p.thumbnail))?q.return(y.activate()):q.return(0)})};
_.J.onMouseLeave=function(p){this.shouldDeactivateOnMouseLeave(p)&&this.deactivate()};
_.J.onScroll=function(){var p,y;((p=this.opts)==null?0:p.isAutoplay)&&((y=this.opts)==null?0:y.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.J.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.TR.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.J.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.J.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",Wd.JSC$18957_DEFAULT_CLICK_LOCATION_BEHAVIOR,Wd.JSC$18957_CLICK_LOCATION_ID_MAP)};
_.J.shouldDeactivateOnMouseLeave=function(p){p=p.relatedTarget;if(!p)return!0;var y;return(y=this.opts)!=null&&y.mediaRenderer?!_.bt(this.opts.mediaRenderer).contains(p):!0};
_.J.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.J.onPlaybackStart=function(){var p=this;if(this.player&&this.playbackIntentTriggered&&this.currentPageAllowed()){this.playing=!0;this.allowUnmuting()&&this.hasBeenUnmuted&&(this.player.unMute(),this.player.syncVolume());this.player.isSubtitlesOn()?this.captionsHaveBeenTurnedOff||!this.allowCaptions()?this.player.toggleSubtitles():this.setCaptionSize():!this.captionsHaveBeenTurnedOff&&this.allowCaptions()&&this.player.toggleSubtitles();this.resetPreventProgressSaveTimer();this.JSC$18958_preventProgressSaveTimer=
_.ZR(_.TR,function(){p.resetPreventProgressSaveTimer()},1E4);
var y;if((y=this.opts)==null?0:y.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.ZR(_.TR,function(){p.hasMultipleVideoPreviews()?p.startPlaybackForNextVideo():p.deactivate()},this.opts.videoPreviewDurationMs);
var l;this.player.setGlobalCrop(((l=this.opts)==null?0:l.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.J.getRoundedCornersSize=function(){var p;if((p=this.opts)==null?0:p.roundedCornersSize){var y;return(y=this.opts)==null?void 0:y.roundedCornersSize}var l;if((l=this.opts)==null?0:l.enableRounding){var q;if(((q=this.opts)==null?void 0:q.thumbnailSize)==="small")return 1;var t;if(((t=this.opts)==null?void 0:t.thumbnailSize)==="medium")return 2;var E;if(((E=this.opts)==null?void 0:E.thumbnailSize)==="large")return 3}return _.n("web_imp_inset_progress_bar")?3:0};
_.J.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.J.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.J.onMediaContainerClick=function(p){this.isShortcutClick(p)||(this.navigateToWatch(p),p.preventDefault(),p.stopPropagation())};
_.J.activate=function(){var p=this,y,l,q,t,E,e,C,u,a;return _.h(function(m){switch(m.nextAddress){case 1:if(!p.currentPageAllowed())return m.return(0);l=(y=p.videoPreviewData)==null?void 0:y.inlinePlaybackEndpoint;q=_.Js.instance;if(!l||!q)return m.return(0);p.playbackIntentTriggered=!0;((t=p.opts)==null?0:t.mediaRenderer)&&((E=p.opts)==null||!E.isAutoplay)&&oZw(p.opts.mediaRenderer,function(){p.deactivate()});
_.th(p,function(){p.revealPreviewUi()});
e={};_.n("enable_unknown_lact_fix_on_html5")&&(_.WC().resolve(_.Xf),e.lact=_.Rd());p.videoPreviewFetchRequest=BT7(q,p.getInlinePlaybackRequestData(p.videoPreviewData),e);_.Ve(m,2);return m.yield(p.videoPreviewFetchRequest,4);case 4:C=m.yieldResult;if(((u=C)==null?void 0:(a=u.playabilityStatus)==null?void 0:a.status)==="OK")return m.return(p.handlePlayerResponse(C));throw Error("Mj");case 2:_.i6(m),p.deactivate();case 3:return m.return(1)}})};
_.J.getInlinePlaybackRequestData=function(p){var y,l=_.n("web_imp_player_mute_params")?((y=this.opts)==null?void 0:y.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:p.inlinePlaybackEndpoint,startPlaybackInMutedState:l}};
_.J.handlePlayerResponse=function(p){var y=this,l,q,t,E,e,C,u,a,m,U;return _.h(function(b){if(b.nextAddress==1){l=y.getInlinePlaybackVideoId();if(!(((q=p)==null?0:(t=q.videoDetails)==null?0:t.videoId)&&y.currentPageAllowed()&&y.playbackIntentTriggered&&y.opts&&l))return y.deactivate(),b.return(0);if(p.videoDetails.videoId!==l)return b.return(0);y.enableAudioControls=!!((E=p.playerConfig)==null?0:(e=E.inlinePlaybackConfig)==null?0:e.showAudioControls);p.trackingParams=y.getInlinePlaybackTrackingParams();
if(!y.inlinePlayer)return b.return(0);C={};if(a=_.G((u=y.videoPreviewData)==null?void 0:u.inlinePlaybackEndpoint,_.Eb))C.watch_endpoint=a;if(y.videoPreviewData){var P,Z=(P=_.G(y.videoPreviewData.inlinePlaybackEndpoint,_.Eb))==null?void 0:P.startTimeSeconds;Z!==void 0&&(p.playerConfig||(p.playerConfig={}),p.playerConfig.playbackStartConfig||(p.playerConfig.playbackStartConfig={}),p.playerConfig.playbackStartConfig.startPosition||(p.playerConfig.playbackStartConfig.startPosition={}),p.playerConfig.playbackStartConfig.startSeconds=
Z,p.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(Z*1E3))}y.inlinePlayer.loadVideoWithPlayerResponse(p,C);if(y.JSC$18958_playerPromise)return b.jumpTo(2);y.JSC$18958_playerPromise=y.inlinePlayer.getPlayerPromise();return b.yield(y.JSC$18958_playerPromise,3)}b.nextAddress!=2&&(m=b.yieldResult,m.setInlinePreview(!0),m.setSizeStyle(!1,!0),y.ytPlayerListenerBehavior.listenToPlayerEvents(m,y.JSC$18958_playerEvents),y.player=m,_.Ub(y.hostElement,"player-api-ready"));((U=y.opts)==
null?0:U.showPlayerControls)&&y.videoPreviewData&&y.player&&(y.playerControlsData={playerResponse:p,isInlinePlayback:!0,thumbnailOverlays:y.videoPreviewData.thumbnailOverlays,playerApi:y.player},y.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!y.unroundCornersForPlayback,additionalButton:y.getAdditionalButtonType(y.videoPreviewData.thumbnailOverlays)});return b.return(2)})};
_.J.revealPreviewUi=function(){var p=this;this.playbackIntentTriggered&&_.UYo(this,function(){p.hasThumbnailPositionChangedSinceTriggered()||(p.updateActiveState(!0),p.noAnimation=!1)})};
_.J.hasThumbnailPositionChangedSinceTriggered=function(){var p=this.positionData,y=this.getThumbnailPositionData();return(p==null?void 0:p.initialTopPosition)!==(y==null?void 0:y.initialTopPosition)||(p==null?void 0:p.initialHorizontalPosition)!==(y==null?void 0:y.initialHorizontalPosition)};
_.J.getThumbnailPositionData=function(){var p,y;if((y=this.opts)==null||!y.thumbnail)return null;y=this.opts.thumbnail;var l=((p=this.opts)==null?0:p.cropPlayerToFillThumbnailHorizontally)?!1:!0;var q=y.getBoundingClientRect();p=q.width;y=q.height;var t=q.top+window.scrollY;q=q.left+window.scrollX;var E=l?Math.ceil(p):p;l=l?Math.ceil(y):y;var e=p/E;p={initialScale:e,initialTopPosition:t-12*e,finalTopPosition:t-12-(l-y)/2,initialHorizontalPosition:q-(12+(E-p)/2),finalHorizontalPosition:q-12-(E-p)/
2,videoPreviewWidth:E,videoPreviewHeight:l};return p};
_.J.updateActiveState=function(p){this.active=p;this.ytdReduxBehavior.dispatch(_.$y({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:p}))};
_.J.stopPlayer=function(p){p=p.resetWatchEndpointStartTime===void 0?!1:p.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(p)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.TR.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.J.deactivate=function(p){p=p===void 0?{}:p;p=p.resetWatchEndpointStartTime===void 0?!1:p.resetWatchEndpointStartTime;wp&&(wp.disconnect(),wp=null);this.stopPlayer({resetWatchEndpointStartTime:p});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.J.isValidThumbnailOverlayButton=function(p,y){p=p.thumbnailOverlayButtonRenderer;var l;return!!p&&!!p.tooltip&&!((l=p.icon)==null||!l.iconType)&&y.includes(p.icon.iconType)};
_.J.isValidThumbnailOverlayButtonViewModel=function(p,y){var l;p=_.G((l=p.thumbnailOverlayButtonViewModel)==null?void 0:l.overlayButton,_.xo);return!!p&&!!p.title&&!!p.iconName&&y.includes(p.iconName)};
_.J.getAdditionalButtonType=function(p){var y=this;if(_.n("web_imp_fastforward_button"))return{button:1};if(_.n("web_imp_miniplayer_button"))return{button:2};if(_.n("web_imp_playback_speed_button"))return{button:3};var l=["BOX_STACK_3"],q=(p||[]).filter(function(E){return y.isValidThumbnailOverlayButton(E,l)}).map(function(E){return E.thumbnailOverlayButtonRenderer});
if(q.length)return{button:4,thumbnailOverlayButtonRenderers:q};var t=["BOX_STACK_3"];p=(p||[]).filter(function(E){return y.isValidThumbnailOverlayButtonViewModel(E,t)}).map(function(E){return _.G(E.thumbnailOverlayButtonViewModel.overlayButton,_.xo)});
if(p.length)return{button:4,thumbnailOverlayButtonViewModels:p}};
_.J.allowCaptions=function(){var p;return!((p=this.opts)==null?0:p.forceCaptionsOff)};
_.J.allowUnmuting=function(){var p;return this.enableAudioControls&&!((p=this.opts)==null?0:p.forceMutedVolume)};
_.J.beginStartTimeUpdater=function(){var p=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Go(function(){p.updateWatchEndpointStartTime()},1E3)};
_.J.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.J.resetPreventProgressSaveTimer=function(){this.JSC$18958_preventProgressSaveTimer!==null&&(_.TR.cancelJob(this.JSC$18958_preventProgressSaveTimer),this.JSC$18958_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.J.updateWatchEndpointStartTime=function(p){var y=this.videoPreviewData;if(this.player&&y!=null&&y.inlinePlaybackEndpoint&&!this.JSC$18958_preventProgressSaveTimer){p=p?0:Math.floor(this.player.getCurrentTime());var l=_.G(y.navigationEndpoint,_.Eb);l&&(l.startTimeSeconds=p);if(y=_.G(y.inlinePlaybackEndpoint,_.Eb))y.startTimeSeconds=p}};
_.J.isShortcutClick=function(p){return!!p&&(p.ctrlKey||p.shiftKey||p.metaKey)};
_.J.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.J.openInMiniplayer=function(){var p=this,y,l;return _.h(function(q){if(q.nextAddress==1){l=(y=p.videoPreviewData)==null?void 0:y.navigationEndpoint;if(!l)return q.return();_.Sy().lockupActivation=!0;return q.yield(_.W7B(_.WC().resolve(_.IA),l),2)}_.Sy().userActivation=!0;_.rR(q)})};
_.J.navigateToWatch=function(p){var y,l=(y=this.videoPreviewData)==null?void 0:y.navigationEndpoint;if(l){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(l,p,!0);else{var q;_.n("web_thumbnail_to_watch_transition")&&((q=this.opts)==null?0:q.thumbnail)&&(p=_.WC().resolve(_.xr),p.isLockupToWatchTransitionEnabled&&(y={},p.viewTransitionCoordinator.registerElement(this.opts.thumbnail,(y["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",y),!0)));_.Ub(this.hostElement,"yt-navigate",
{endpoint:l})}this.deactivate()}};
_.J.getInlinePlaybackVideoId=function(){var p,y;return(y=_.G((p=this.videoPreviewData)==null?void 0:p.inlinePlaybackEndpoint,_.Eb))==null?void 0:y.videoId};
_.J.getInlinePlaybackTrackingParams=function(){var p,y;return(p=this.videoPreviewData)==null?void 0:(y=p.inlinePlaybackEndpoint)==null?void 0:y.clickTrackingParams};
_.J.hasMultipleVideoPreviews=function(){var p;return!!(((p=this.opts)==null?0:p.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.J.startPlaybackForNextVideo=function(){var p;(p=this.opts)!=null&&p.videoPreviewData&&Array.isArray(this.opts.videoPreviewData)&&this.opts.videoPreviewData.length!==0&&(this.videoPreviewDataIndex=(this.videoPreviewDataIndex+1)%this.opts.videoPreviewData.length,this.stopPlayer({resetWatchEndpointStartTime:!0}),this.activate())};
_.Jh.Object.defineProperties(Wd.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.opts)==null?0:p.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.opts)==null||!p.isAdsVideo)}},
roundedCornersSmall:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===1}},
roundedCornersMedium:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===2}},
roundedCornersLarge:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===3}},
unroundCornersForPlayback:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===0}},
videoPreviewData:{configurable:!0,enumerable:!0,get:function(){var p;if(Array.isArray((p=this.opts)==null?void 0:p.videoPreviewData)){var y;return(y=this.opts)==null?void 0:y.videoPreviewData[this.videoPreviewDataIndex]}var l;return(l=this.opts)==null?void 0:l.videoPreviewData}}});
Wd.prototype.onIsAdsVideoChange=Wd.prototype.onIsAdsVideoChange;Wd.prototype.onInlinePreviewIsEnabledChange=Wd.prototype.onInlinePreviewIsEnabledChange;Wd.prototype.optsChanged=Wd.prototype.optsChanged;Wd.prototype.onMouseLeave=Wd.prototype.onMouseLeave;Wd.JSC$18957_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);Wd.JSC$18957_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"}];
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Wd.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Wd.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.c8.YtPlayerListenerBehavior),_.x("design:type",_.eE)],Wd.prototype,"ytPlayerListenerBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Wd.prototype,"componentBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Wd.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Wd.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.UW.YtSparklesClickLocationBehavior),_.x("design:type",Object)],Wd.prototype,"ytSparklesClickLocationBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Wd.prototype,"opts",void 0);_.H([_.Q(),_.x("design:type",Object)],Wd.prototype,"playerControlsData",void 0);
_.H([_.Q(),_.x("design:type",Object)],Wd.prototype,"playerControlsAppApi",void 0);_.H([_.Q(),_.x("design:type",Object)],Wd.prototype,"playerControlsOptions",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Wd.prototype,"noAnimation",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Wd.prototype,"hidden",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Wd.prototype,"active",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Wd.prototype,"playing",void 0);_.H([_.Q({selector:_.g7_}),_.x("design:type",Boolean)],Wd.prototype,"inlinePreviewIsEnabled",void 0);_.H([_.Q(),_.x("design:type",String)],Wd.prototype,"pagePath",void 0);_.H([_.Q({selector:_.XT}),_.x("design:type",Boolean)],Wd.prototype,"isWatchPage",void 0);_.H([_.g("videoPreviewData"),_.x("design:type",Object),_.x("design:paramtypes",[])],Wd.prototype,"thumbnailData",null);
_.H([_.g("opts","active"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Wd.prototype,"hidePlayerControls",null);_.H([_.g("opts"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Wd.prototype,"isAdsVideo",null);_.H([_.g("opts"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Wd.prototype,"roundedCornersSmall",null);
_.H([_.g("opts"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Wd.prototype,"roundedCornersMedium",null);_.H([_.g("opts"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Wd.prototype,"roundedCornersLarge",null);_.H([_.g("opts"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Wd.prototype,"unroundCornersForPlayback",null);
_.H([_.g("opts","videoPreviewDataIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],Wd.prototype,"videoPreviewData",null);_.H([_.Q(),_.x("design:type",Object)],Wd.prototype,"videoPreviewDataIndex",void 0);_.H([_.rd("#inline-player"),_.x("design:type",Object)],Wd.prototype,"inlinePlayer",void 0);_.H([_.VU("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[MouseEvent]),_.x("design:returntype")],Wd.prototype,"onMouseLeave",null);
_.H([_.k8("opts"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wd.prototype,"optsChanged",null);_.H([_.k8("inlinePreviewIsEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wd.prototype,"onInlinePreviewIsEnabledChange",null);_.H([_.gd("isAdsVideo"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wd.prototype,"onIsAdsVideoChange",null);
_.H([_.k({is:"ytd-video-preview",disableElementRegistration:!0})],Wd);
_.D(Wd,"ytd-video-preview",function(){if(PG9!==void 0)return PG9;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-preview--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview-container" class="style-scope ytd-video-preview">\n  <div id="endorsement" class="style-scope ytd-video-preview"></div>\n  <div id="media-container" class="style-scope ytd-video-preview">\n    <a id="media-container-link" class="yt-simple-endpoint style-scope ytd-video-preview" href$="[[computeHref_(videoPreviewData.navigationEndpoint)]]" data="[[videoPreviewData.navigationEndpoint]]" aria-label$="[[videoPreviewData.accessibilityText]]" on-click="onMediaContainerClick">\n      <div id="thumbnail-container" class="style-scope ytd-video-preview">\n        <ytd-thumbnail data="[[thumbnailData]]" hovered="false" no-rounded-corners="" object-fit="COVER" rich-grid-thumbnail="" width="9999" class="style-scope ytd-video-preview">\n        </ytd-thumbnail>\n      </div>\n      <div id="player-container" class="style-scope ytd-video-preview">\n        <ytd-player id="inline-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_INLINE_PREVIEW" class="style-scope ytd-video-preview">\n        </ytd-player>\n      </div>\n      <div id="overlays" class="style-scope ytd-video-preview"></div>\n    </a>\n    <div id="player-controls" class="style-scope ytd-video-preview">\n      <template is="dom-if" if="[[!!playerControlsData]]" class="style-scope ytd-video-preview">\n        <yt-inline-player-controls app-api="[[playerControlsAppApi]]" data="[[playerControlsData]]" options="[[playerControlsOptions]]" class="style-scope ytd-video-preview"></yt-inline-player-controls>\n      </template>\n    </div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return PG9=p},{mode:2});
}catch(e){_._DumpException(e)}
try{
var oEm,zTO,Yki;oEm=function(p){return _.n("kevlar_watch_cinematics_invisible")||p.fullscreen&&_.n("kevlar_watch_cinematics_invisible_in_fullscreen")||p.theater&&!p.fullscreen&&_.n("kevlar_watch_cinematics_invisible_in_theater")};
zTO=function(){var p=document.createElement("canvas"),y=p.getContext("2d");if(!y)throw Error("lo");_.zk(p,{position:"absolute",width:"100%",height:"100%"});return{element:p,context:y}};
Yki=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.n("kevlar_watch_cinematics_css_blur")};
_.IEV=function(p,y,l){return Math.abs(p-y)<=(l||1E-6)};
_.piR=function(p,y){return p==y?!0:p&&y?p.width==y.width&&p.height==y.height:!1};_.yn6=new _.uK("notificationActionRenderer");var ls7=function(p){var y=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.AB;this.element.addEventListener("load",function(){y.loaded=!0;y.resolver.resolve(y.element)});
this.element.addEventListener("error",function(){y.failed=!0});
this.element.src=p};var q2T=function(p,y){this.image=p;this.frame=y};
q2T.prototype.drawToCanvas=function(p,y){var l=this.frame.width/this.frame.columns,q=this.frame.height/this.frame.rows,t=y.offsetX,E=y.offsetY;oEm(y)?(p.fillStyle=y.fullscreen?"#000":"#0f0f0f",p.fillRect(t,E,(y==null?void 0:y.width)||l,(y==null?void 0:y.height)||q)):p.drawImage(this.image,this.frame.column*l,this.frame.row*q,l,q,t,E,(y==null?void 0:y.width)||l,(y==null?void 0:y.height)||q)};
var s61=function(p){this.color=p};
s61.prototype.drawToCanvas=function(p,y){var l=y.offsetX,q=y.offsetY,t=y.width,E=y.height;p.fillStyle=oEm(y)?y.fullscreen?"#000":"#0f0f0f":this.color;p.fillRect(l,q,t,E)};var Is=function(p,y){_.jS.call(this);this.playerApi=y;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.wV(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();tbR(this,p);EVd(this);this.update()};
_.A(Is,_.jS);Is.prototype.addEventListeners=function(){var p=this,y=function(){p.update()},l=function(t){p.paused||(t.type==="newdata"&&(p.mosaics.clear(),Jni(p),pR(p)),EVd(p),p.update())},q=function(){p.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",y);this.playerApi.addEventListener("onVideoDataChange",l);this.playerApi.addEventListener("onStateChange",q);this.addOnDisposeCallback(function(){p.playerApi.removeEventListener("onVideoProgress",y);p.playerApi.removeEventListener("onVideoDataChange",l);p.playerApi.removeEventListener("onStateChange",q)})};
var tbR=function(p,y){p.cinematicContainerRenderer!==y&&(p.cinematicContainerRenderer=y,Jni(p),pR(p),p.colorStoreUpdateJobId=_.TR.addLowPriorityJob(function(){var l;if((l=p.cinematicContainerRenderer.colorStore)!=null&&l.sampledColors){l=Infinity;for(var q=_.c(p.cinematicContainerRenderer.colorStore.sampledColors),t=q.next();!t.done;t=q.next()){t=t.value;var E=Number(t.key);E!==0&&E<l&&(l=E);E=_.Y9(t.value);p.colorStore.set(t.key,E)}p.colorStoreTimeInterval=l}}))},Jni=function(p){p.colorStoreUpdateJobId&&
(_.TR.cancelJob(p.colorStoreUpdateJobId),p.colorStoreUpdateJobId=void 0);
p.colorStore.clear();p.currentStoryboardColor=void 0},cn1=function(p,y){var l;
return(l=p.getStoryboardFrame(y))==null?void 0:l.url};
Is.prototype.onPlayerStateChange=function(){this.update()};
Is.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var EVd=function(p){var y=p.getStoryboardFrame(0);y&&(y=new _.wV(y.width/y.columns,y.height/y.rows),_.piR(p.currentStoryboardSize,y)||(p.currentStoryboardSize=y,p.publish("STORYBOARD_SIZE_CHANGED",p.currentStoryboardSize)))},eG9=function(p,y){p.currentStoryboardIndex=y;
p.pendingStoryboardIndex=NaN;y=p.getStoryboardFrame(p.currentStoryboardIndex);p.currentStoryboard=new q2T(p.mosaics.get(y.url).element,y);p.publish("STORYBOARD_CHANGED",p.currentStoryboard);p.lastUpdateTime=(0,_.uM)()};
Is.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var pR=function(p){p.currentStoryboardIndex=NaN;p.pendingStoryboardIndex=NaN;p.currentStoryboard&&(p.currentStoryboard=void 0,p.publish("STORYBOARD_CHANGED",void 0));p.lastUpdateTime=NaN};
Is.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)pR(this);else{var p=this.playerApi.getPlayerState(1);if(p===-1||p===5||p===0)pR(this);else if(isNaN(this.lastUpdateTime)||!((0,_.uM)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(p=this.playerApi.getCurrentTime()+(this.playerApi.getPlayerState(1)===2?0:this.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs*
this.cinematicContainerRenderer.config.animationConfig.crossfadeStartOffset/1E3),this.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR")if(this.colorStore.size){p=""+Math.round(p*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var y=this.colorStore.get(p);y?y!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=y,this.currentStoryboard=new s61(y),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.uM)()):(_.vs(new _.SM("Could not find color for timestamp: "+p,this.cinematicContainerRenderer)),pR(this))}else pR(this);else hGu(this,p)}};
var hGu=function(p,y){var l=p.getStoryboardFrameIndex(y);if(l!==p.currentStoryboardIndex&&l!==p.pendingStoryboardIndex){y=cn1(p,l);var q=p.mosaics.get(y);q?q.loaded&&eG9(p,l):(p.pendingStoryboardIndex=l,l=new ls7(y),p.mosaics.set(y,l),l.resolver.promise.then(function(){if(!p.isDisposed()&&!p.paused&&!isNaN(p.pendingStoryboardIndex)){var t=cn1(p,p.pendingStoryboardIndex);if(t){var E;(E=p.mosaics.get(t))!=null&&E.loaded&&eG9(p,p.pendingStoryboardIndex)}else pR(p)}}))}};
Is.prototype.getStoryboardFrameIndex=function(p){var y=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(p,y)};
Is.prototype.getStoryboardFrame=function(p){var y=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,l,q;return((q=(l=this.playerApi).getStoryboardFrame)==null?void 0:q.call(l,p,y))||null};
Is.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var l3=function(p,y,l,q){q=q===void 0?!1:q;_.Sr.call(this);this.cinematicContainerRenderer=y;this.playerApi=l;this.theater=this.fullscreen=!1;var t;this.ambientLightThemeEnabled=!q&&!!(y==null?0:(t=y.config)==null?0:t.enableInLightTheme);this.ambientFullscreenEnabled=q&&_.n("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=q&&_.n("web_cinematic_theater_mode");this.container=document.createElement("div");p.appendChild(this.container);var E;if(_.n("web_cinematic_theater_mode")||_.n("web_cinematic_fullscreen")||
(y==null?0:(E=y.config)==null?0:E.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);C36(this);p=this.ambientV2Container||this.container;this.backCanvas=zTO();this.frontCanvas=zTO();p.appendChild(this.backCanvas.element);p.appendChild(this.frontCanvas.element);this.storyboardManager=new Is(y,this.playerApi);_.P9(this,this.storyboardManager);this.addEventListeners();uj9(this)?RGd(this,100+yP(this)*3*2,100+yP(this)*3*2):WYw(this);
asR(this,this.storyboardManager.currentStoryboard)};
_.A(l3,_.Sr);var C36=function(p){p.ambientV2Container?m1d(p):(_.zk(p.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+U1L(p)+", "+$1T(p)+")"}),Yki()&&_.zk(p.container,"filter","blur("+_.UC("cinematic_watch_css_filter_blur_strength",40)+"px)"))},m1d=function(p){if(p.ambientV2Container){var y=p.playerApi.getVideoAspectRatio();
_.zk(p.container,{"aspect-ratio":""+y,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.zk(p.ambientV2Container,{"aspect-ratio":""+y,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+U1L(p)+", "+$1T(p)+")"});Yki()&&_.zk(p.ambientV2Container,"filter","blur("+_.UC("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
l3.prototype.setFullscreen=function(p,y){this.fullscreen=p;this.theater=!!y;C36(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),p=this.storyboardManager.currentStoryboard,j69(this),p&&bRu(this,p)};
l3.prototype.addEventListeners=function(){var p=this,y=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(t){asR(p,t)}),l=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){WYw(p)});
this.addOnDisposeCallback(function(){p.storyboardManager.unsubscribeByKey(y);p.storyboardManager.unsubscribeByKey(l)});
if(this.ambientV2Container){var q=function(){m1d(p)};
this.playerApi.addEventListener("onVideoDataChange",q);this.addOnDisposeCallback(function(){p.playerApi.removeEventListener("onVideoDataChange",q)})}};
var WYw=function(p){if(!uj9(p)){var y=p.storyboardManager.currentStoryboardSize;isNaN(y.width)||isNaN(y.height)||RGd(p,Number(y.width)+yP(p)*3*2,Number(y.height)+yP(p)*3*2)}},RGd=function(p,y,l){p.backCanvas.element.width=y;
p.backCanvas.element.height=l;p.frontCanvas.element.width=y;p.frontCanvas.element.height=l},uj9=function(p){return p.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},asR=function(p,y,l){l=l===void 0?!1:l;
var q=p.frontCanvas.element.getAnimations()[0];q?(q.pause(),p.backCanvas.context.globalAlpha=Number(getComputedStyle(p.frontCanvas.element).opacity),p.frontCanvas.element.style.opacity="0",q.finish()):p.backCanvas.context.globalAlpha=1;p.backCanvas.context.drawImage(p.frontCanvas.element,0,0,p.backCanvas.element.width,p.backCanvas.element.height);j69(p);y&&bRu(p,y);y=y?p.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.UC("cinematic_watch_fade_out_duration",500);q=_.UC("cinematic_watch_transition_frame_rate")/
1E3;var t={};q&&(t={easing:"steps("+Math.round(y*q)+")"});(l===void 0?0:l)||p.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:y,iterations:1},t));p.frontCanvas.element.style.opacity="1"},j69=function(p){var y=p.ambientLightThemeEnabled||p.ambientTheaterModeEnabled,l=p.ambientLightThemeEnabled||p.ambientFullscreenEnabled;
p.frontCanvas.context.fillStyle=p.theater&&y||p.fullscreen&&l?"#000":"#0f0f0f";Yki()||(p.frontCanvas.context.filter="blur(0)");p.frontCanvas.context.fillRect(0,0,p.frontCanvas.element.width,p.frontCanvas.element.height)},bRu=function(p,y){Yki()||(p.frontCanvas.context.filter="blur("+yP(p)+"px)");
p.frontCanvas.context.globalAlpha=p.fullscreen&&p.ambientFullscreenEnabled||p.theater&&p.ambientTheaterModeEnabled?_.UC("cinematic_watch_effect_letterbox_opacity",.8):_.UC("cinematic_watch_effect_opacity",.4);var l={offsetX:yP(p)*3,offsetY:yP(p)*3,theater:p.theater,fullscreen:p.fullscreen};uj9(p)&&(l.width=100,l.height=100);y.drawToCanvas(p.frontCanvas.context,l);p.frontCanvas.context.globalAlpha=1},yP=function(p){var y;
return(y=p.cinematicContainerRenderer.config.blurStrength)!=null?y:5},U1L=function(p){var y,l;
if((p.fullscreen||p.theater)&&((y=p.cinematicContainerRenderer.config)==null?0:(l=y.watchFullscreenConfig)==null?0:l.colorSourceWidthMultiplier))return p.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var q;return(q=p.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?q:p.cinematicContainerRenderer.config.colorSourceSizeMultiplier},$1T=function(p){var y,l;
if((p.fullscreen||p.theater)&&((y=p.cinematicContainerRenderer.config)==null?0:(l=y.watchFullscreenConfig)==null?0:l.colorSourceHeightMultiplier))return p.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var q;return(q=p.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?q:p.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
l3.prototype.disposeInternal=function(){_.Sr.prototype.disposeInternal.call(this);this.container.remove()};
l3.prototype.clear=function(){asR(this,void 0,!0)};
l3.prototype.pause=function(){this.storyboardManager.pause()};var nV6;nV6=_.Sz(function(){var p,y,l=!((y=(p=document.createElement("canvas")).getContext)==null||!y.call(p,"2d")),q;p=!((q=CSS)==null||!q.supports("filter: blur(0)"));q=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var t;return l&&p&&q&&!((t=CSS)==null||!t.supports("aspect-ratio: 1 / 1"))});
_.q1=function(p,y){_.jS.call(this);this.container=p;this.playerApi=y;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=GWd(this);this.update()};
_.A(_.q1,_.jS);_.P3A=function(p){var y=document.documentElement.hasAttribute("dark");p.isDarkModeEnabled=y;p.update()};
_.AnO=function(p,y){p.settingEnabled=y;p.update()};
_.q1.prototype.setFullscreen=function(p,y){this.fullscreen=p;this.theater=!!y;this.update()};
_.ZR9=function(p,y){p.cinematicContainerRenderer=y;p.cinematicContainerRenderer&&(p.cinematicsVe=_.fY(p.isShorts()?227858:159022),_.Vv(_.Ll(),p.cinematicsVe),p.loggingClientData={watchCinematicContainerData:{presentationStyle:p.cinematicContainerRenderer.presentationStyle}});p.update()};
_.q1.prototype.isShorts=function(){var p,y;return((p=this.cinematicContainerRenderer)==null?void 0:(y=p.config)==null?void 0:y.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.q1.prototype.isAllowed=function(){var p;if(p=nV6()){var y,l,q;p=((l=this.cinematicContainerRenderer)==null?void 0:l.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((q=this.cinematicContainerRenderer)==null||!q.colorStore)||((y=this.cinematicContainerRenderer)==null?void 0:y.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(p)if(_.n("web_cinematics_pausing")){var t,E;p=this.isDarkModeEnabled||!!((t=this.cinematicContainerRenderer)==
null?0:(E=t.config)==null?0:E.enableInLightTheme)}else{var e,C;t=!!((e=this.cinematicContainerRenderer)==null?0:(C=e.config)==null?0:C.enableInLightTheme)&&(_.OY("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);p=this.isDarkModeEnabled||t}if(e=p){var u,a;e=!((a=(u=this.prefersReducedMotionQuery)==null?void 0:u.matches)!=null&&a)}return e};
_.Mbd=function(p){(p=p.currentCinematicEffect)!=null&&(p=p.storyboardManager,p.paused=!1,EVd(p),p.update())};
_.q1.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var GWd=function(p){if(!_.n("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var y=window.matchMedia("(prefers-reduced-motion: reduce)"),l=function(){p.update()};
y.addListener(l);p.addOnDisposeCallback(function(){y.removeListener(l)});
return y}};
_.q1.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var p=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new l3(this.container,p,this.playerApi,this.isDarkModeEnabled),_.P9(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var y=this.currentCinematicEffect;y.cinematicContainerRenderer!==
p&&(y.cinematicContainerRenderer=p,tbR(y.storyboardManager,p),C36(y));p=_.w$();_.il(0,194,!0);p.save();p=_.B2();this.cinematicsVe&&p&&_.qs(p,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(p=_.B2(),this.cinematicsVe&&p&&_.st(p,[this.cinematicsVe],!1,this.loggingClientData),_.er(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Jh.Object.defineProperties(_.q1.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var ZBO;var Mnw;_.fv({_template:function(){if(Mnw!==void 0)return Mnw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-pages--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_pages.tp.yt.iron.pages.css.js--\x3e<slot class="style-scope tp-yt-iron-pages"></slot>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=
p.content,l=y.insertBefore;ZBO===void 0&&(ZBO=document.createElement("template"));var q=ZBO;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return Mnw=p},
is:"tp-yt-iron-pages",behaviors:[_.vG,_.Jl],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var nsd;_.G$O=function(){if(_.n("kevlar_home_skeleton")&&!nsd){var p=document.querySelector("#home-page-skeleton");p&&(_.fy("hgcr"),_.Qy(p),nsd=!0)}};
nsd=!1;_.b$=new _.uK("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var CU1,R1R,W7d,aiV,mJd,UJL,$Jm,jE7,nTu,G1i,PUm,MDO,gTT,QEu,VDV,AAi,Z_T,i_d;_.h19=function(p,y,l){y=y===void 0?5:y;if(y!==0){var q=typeof p==="function"?p():document.querySelector(p);q?(l==null?0:l.enableSmartFocus)?_.Nsl(q):q.focus():setTimeout(function(){_.h19(p,y-1,l)},500)}};
CU1=function(p){return String.raw.apply(String,[{raw:p}].concat(_.xq(_.oX.apply(1,arguments).map(function(y){return y instanceof Array?y.join(""):y}))))};
R1R=function(p){var y=_.oX.apply(1,arguments),l=y.length;if(!Array.isArray(p)||!Array.isArray(p.raw)||p.length!==p.raw.length||!_.GlU&&p===p.raw||!(_.GlU&&!_.P_Z||_.Nm(p))||l+1!==p.length)throw new TypeError("$");return new usi(Object.freeze({strings:Object.freeze(p),args:Object.freeze(y)}))};
W7d=function(p){return _.B4j(_.xIt(p&16777215))<.5};
aiV=function(p,y,l){var q=l.minimumRowsOfVideosBetweenSections===void 0?1:l.minimumRowsOfVideosBetweenSections;return p<(l.minimumRowsOfVideosAtStart===void 0?2:l.minimumRowsOfVideosAtStart)||y!==null&&p-y<=q?!1:!0};
mJd=function(p,y){var l=0,q=0;p=_.c(p);for(var t=p.next();!t.done;t=p.next()){var E=t.value;if(E.richItemRenderer)E.richItemRenderer.rowIndex=q,E.richItemRenderer.colIndex=l++,l===y&&(l=0,q++);else if(E.richGroupRenderer&&E.richGroupRenderer.numColumns!==void 0)E.richGroupRenderer.rowIndex=q,E.richGroupRenderer.colIndex=l,l+=E.richGroupRenderer.numColumns,l===y&&(l=0,q++);else if(E.richSectionRenderer){var e=t=void 0;if(E=_.G((t=E)==null?void 0:(e=t.richSectionRenderer)==null?void 0:e.content,_.gDN))E.rowIndex=
q++}}};
UJL=function(p,y){var l=y.contentElement;y=y.rendererToTagNameMap;if(l&&y&&y.size!==0){for(var q=new Map,t=_.c(l.children),E=t.next();!E.done;E=t.next()){E=E.value;var e=E.tagName.toLowerCase(),C=q.get(e);C||(C=[],q.set(e,C));C.push(E)}if(q.size!==0)for(t=Math.min(p.length,l.children.length),E=new Map,e=0;e<t;e++){C=Object.keys(p[e])[0];C=y.get(C);if(!C)break;var u=E.get(C);u===void 0&&(u=0,E.set(C,u));var a=q.get(C);if(!a||u>=a.length)break;E.set(C,u+1);C=a[u];u=l.children[e];u!==C&&(_.Hkg=!0,_.TGo.set(C,
!0),l.insertBefore(C,u),_.TGo.delete(C),_.Hkg=!1)}}};
$Jm=function(p,y,l,q,t,E,e){q=q===void 0?{}:q;if(!p||!p.length)return[];p=p.slice();var C=[],u=[];t=null;for(var a=0,m=function(L){u.sort(function(f,v){return v.skippedOnRow-f.skippedOnRow});
for(var T,O=(T=u.shift())==null?void 0:T.content;O;)!O.richSectionRenderer&&L||C.push(O),T=void 0,O=(T=u.shift())==null?void 0:T.content},U=void 0;p.length>0||u.length>0;){for(var b=[],P=y;P>0;){var Z=void 0,K=void 0,F=(K=u[0]&&u[0].skippedOnRow<a?(Z=u.shift())==null?void 0:Z.content:void 0)!=null?K:p.shift();
if(!F)break;if(F.richItemRenderer)Z=F.richItemRenderer.targetId,K=void 0,Z&&((K=e)==null?0:K.has(Z))&&(Z=e.get(Z),!U||Z&&Z.timestamp>U.timestamp)&&(U=Z),b.push(F),P--;else if(F.richGroupRenderer&&F.richGroupRenderer.numColumns!==void 0)F.richGroupRenderer.numColumns<=P?(b.push(F),P-=F.richGroupRenderer.numColumns):P===y&&F.richGroupRenderer.numColumns>y?(b.push({richGroupRenderer:Object.assign({},F.richGroupRenderer,{numColumns:y})}),P=0):u.push({content:F,skippedOnRow:a});else if(F.richSectionRenderer)if(aiV(a,
t,q)&&P===y){C.push(F);t=a;a++;continue}else u.push({content:F,skippedOnRow:a});else if(F.continuationItemRenderer){m(!0);C.push(F);P=0;break}if(P===0)C.push.apply(C,_.xq(b));else if(!l&&p.length===0){m(!1);C.push.apply(C,_.xq(b));P=0;break}}a++;U&&(C.push(U.content),a++);U=void 0}mJd(C,y);E&&UJL(C,E);return C};
jE7=function(){return _.oX.apply(0,arguments).flat().filter(function(p){return p}).join(";")};
nTu=function(){return R1R(b_T,jE7.apply(null,_.xq(_.oX.apply(0,arguments))))};
G1i=function(p){switch(p){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
PUm=function(p){return p.talkToRecs};
MDO=function(p,y){if(y){var l=_.ei().getState().entities.flowStateEntity,q=AAi(p),t=[y];q&&q!==y&&t.push(q);var E=!0,e;if(l&&p.flowStateEntityKey&&((e=l[p.flowStateEntityKey])==null?void 0:e.primaryButtonDisabled)!==void 0){var C;E=!((C=l[p.flowStateEntityKey])==null||!C.primaryButtonDisabled)}Z_T(p,q!=null?q:y,t,E)}};
gTT=function(p){return _.Lw(_.ei(),function(y){return y.entities.flowStateEntity},function(y,l){if(p.flowStateEntityKey){var q,t=y==null?void 0:(q=y[p.flowStateEntityKey])==null?void 0:q.currentStepId,E;
l=l==null?void 0:(E=l[p.flowStateEntityKey])==null?void 0:E.currentStepId;E=_.ei().getState().talkToRecs;if(t&&t!==l){var e;y=(y==null?void 0:(e=y[p.flowStateEntityKey])==null?void 0:e.stepIdStack)||Object.keys(E.stepStates);e=!VDV(E==null?void 0:E.stepStates[t]);Z_T(p,t,y,e)}}})};
QEu=function(p){return _.Lw(_.ei(),PUm,function(y){var l=AAi(p);if(l){var q=Object.keys(y.stepStates);y=!VDV(y==null?void 0:y.stepStates[l]);Z_T(p,l,q,y)}})};
VDV=function(p){var y=Object.keys((p==null?void 0:p.selectionStates)||{}).reduce(function(E,e){return E||(p==null?void 0:p.selectionStates[e].isSelected)},!1),l,q,t=!!(p==null?0:(l=p.userQuery)==null?0:(q=l.userQuery)==null?0:q.trim());
return y||t};
AAi=function(p){if(p.flowStateEntityKey){var y,l,q=(y=_.ei().getState().entities.flowStateEntity)==null?void 0:(l=y[p.flowStateEntityKey])==null?void 0:l.currentStepId;if(q)return q}};
Z_T=function(p,y,l,q){_.ei().dispatch(_.Fp("flowStateEntity",p.flowStateEntityKey,{currentStepId:y,stepIdStack:l,key:p.flowStateEntityKey,primaryButtonDisabled:q}))};
_.K7L=function(p,y){return _.Ae(p.entities,"youchatPendingResponseEntity",y)};
_.wXV=function(p){return function(y){_.Cl(_.Fp("youchatPendingResponseEntity",p,{entityKey:p,isPendingResponse:y}))}};
i_d=function(p){p==null||p.addEventListener("DOMLoaded",function(){p.goToAndPlay(p.totalFrames-48,!0)})};
_.C6=function(p){this.__isSoyCss=!0;this.css=CU1.apply(null,[p.strings].concat(_.xq(p.args)))};
_.C6.prototype.toString=function(){return this.css};
var usi=function(){_.C6.apply(this,arguments)};
_.A(usi,_.C6);var b_T=_.c0(["",""]);var rAd;var SmV;_.fv({_template:function(){if(SmV!==void 0)return SmV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-material--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_material.tp.yt.paper.material.css.js--\x3e<slot class="style-scope tp-yt-paper-material"></slot>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
var y=p.content,l=y.insertBefore;rAd===void 0&&(rAd=document.createElement("template"));var q=rAd;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return SmV=p},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var F7L=new _.uK("talkToRecsFlowRenderer");var L7m=new _.uK("flowRootRenderer");var k1m=new _.uK("learningJourneyQuizViewModel");var Nbd=new _.uK("chipsShelfViewModel");var DJu=new _.uK("responsiveContainerConfiguration");var H_d=new _.uK("horizontalShelfViewModel");_.TbL=new _.uK("engagementPanelSectionListRenderer");var xJd=new _.uK("conversationResourceViewModel");var Bbw=function(){this.horizontal=!1},fi9=function(p,y){p.horizontal=y};
Bbw.prototype.position=function(p,y,l,q){q=q===void 0?1:q;p=this.delta(p)*q+y;q=Math.max(y,l);return p>=Math.min(y,l)&&p<=q?p:l};
Bbw.prototype.axis=function(p){p=this.direction(p);return p==="up"||p==="down"?"Y":"X"};var J8=function(p,y,l){y=y===void 0?_.xa():y;this.target=p;this.manager=y;this.touchAction=l;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
J8.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(_.xq(this.events)));for(var p=_.c(this.events),y=p.next();!y.done;y=p.next())this.listen(y.value)}};
J8.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.xq(this.events)));for(var p=_.c(this.events),y=p.next();!y.done;y=p.next())this.unlisten(y.value)}};
J8.prototype.listen=function(p){this.eventMap[p]&&this.target.addEventListener(p,this.eventMap[p])};
J8.prototype.unlisten=function(p){this.eventMap[p]&&this.target.removeEventListener(p,this.eventMap[p])};var ch=function(){Bbw.apply(this,arguments)};
_.A(ch,Bbw);ch.prototype.direction=function(p){var y=p.detail;p=y.deltaY;y=y.deltaX;return p&&!this.horizontal?p>0?"down":"up":y&&this.horizontal?y>0?"right":"left":"none"};
ch.prototype.distance=function(p){return Math.abs(this.delta(p))};
ch.prototype.delta=function(p){var y=this.direction(p),l=p.detail;p=l.deltaX;l=l.deltaY;return y==="up"||y==="down"?l||0:p||0};
ch.prototype.velocity=function(p){var y=this.direction(p),l=p.detail;p=l.velocityX;l=l.velocityY;return Math.abs(y==="up"||y==="down"?l||0:p||0)};_.ep=function(p,y,l,q,t,E){t=t===void 0?new ch:t;E=E===void 0?_.xa():E;J8.call(this,y,E,q);var e=this;this.element=p;this.target=y;this.config=l;this.input=t;this.manager=E;this.events=["panstart","panmove","panend"];this.onPanStart=function(){e.config.draggingClass&&e.element.classList.add(e.config.draggingClass);e.config.startAction&&e.config.startAction()};
this.onPanMove=function(C){var u=vTR(e,C);if(u){e.move(C,u);u.fade&&e.fade(C,u);var a=e.input.direction(C);u.moveAction&&u.moveAction(XXw(e,C,u),a)}};
this.onPanEnd=function(C){var u,a,m,U,b,P;return _.h(function(Z){if(Z.nextAddress==1){e.animationRequestId&&cancelAnimationFrame(e.animationRequestId);e.animationRequestId=void 0;u=vTR(e,C);if(!u)return Z.return();a=u;m=a.triggerAction;U=a.fade;b=a.disableFinish;P=a.translateBack;var K=e.input.velocity(C),F=e.input.distance(C),L=e.threshold(u);return K>.3&&F>10||F>L?b?Z.jumpTo(6):U?Z.yield(dJd(e,C),6):Z.yield(O_6(e,C,u),6):P?Z.yield(e.translateBack(C),3):Z.jumpTo(3)}Z.nextAddress!=3&&m&&m();e.config.draggingClass&&
e.element.classList.remove(e.config.draggingClass);e.reset();_.rR(Z)})};
p=Object.keys(l.triggers);this.directions=new Set(p);fi9(this.input,this.directions.has("right")||this.directions.has("left"))};
_.A(_.ep,J8);_.ep.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var vTR=function(p,y){y=p.input.direction(y);return p.config.triggers[y]};
_.ep.prototype.move=function(p,y){var l=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var q=l.input.axis(p),t=l.input.position(p,l.config.startPosition,y.endPosition,y.moveRatio||1);l.element.style.transform="translate"+q+"("+t+"px)";l.animationRequestId=void 0}))};
var XXw=function(p,y,l){var q=l.moveRatio||1;l=Math.abs(p.config.startPosition-l.endPosition);return Math.min(p.input.distance(y)*q,l)/l};
_.ep.prototype.fade=function(p,y){var l=y.endOpacity;p=XXw(this,p,y);p>0&&(this.element.style.opacity=""+(((l||0)-1)*p+1))};
_.ep.prototype.threshold=function(p){return p.threshold?p.threshold:Math.abs(p.endPosition-this.config.startPosition)/3};
var O_6=function(p,y,l){var q,t,E,e,C,u,a;return _.h(function(m){if(m.nextAddress==1)return q=p.input.delta(y)+p.config.startPosition,t=p.input.axis(y),E=l,e=E.endPosition,C=E.transitionEndPosition,a=(u=C)!=null?u:e,m.yield(p.element.animate([{transform:"translate"+t+"("+q+"px)"},{transform:"translate"+t+"("+a+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);p.element.style.transform="translate"+t+"("+a+"px)";_.rR(m)})};
_.ep.prototype.translateBack=function(p){var y=this,l,q;return _.h(function(t){if(t.nextAddress==1){if(!y.element.style.transform)return t.return();l=y.input.axis(p);q=y.config.startPosition;return t.yield(y.element.animate([{transform:y.element.style.transform},{transform:"translate"+l+"("+q+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}y.element.style.transform="translate"+l+"("+q+"px)";_.rR(t)})};
var dJd=function(p,y){var l,q,t,E;return _.h(function(e){if(e.nextAddress==1)return l=p.input.delta(y)+p.config.startPosition,q=p.input.axis(y),t=l+70,E=p.element.style.opacity===""?1:p.element.style.opacity,e.yield(p.element.animate([{transform:"translate"+q+"("+l+"px)",opacity:E},{transform:"translate"+q+"("+t+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);p.element.style.transform="translate"+q+"("+t+"px)";p.element.style.opacity="0";_.rR(e)})};var h8=function(){var p=_.FA.apply(this,arguments)||this;p._noAccessors=!0;p.scrollRate=3;p.autoScrollAnimationStart=0;p.autoScrollPaused=!1;p.autoScrollRafId=0;return p};
_.A(h8,_.FA);_.J=h8.prototype;_.J.created=function(){var p=this;this.boundAutoScrollHandler=function(y){p.autoScroll(y)}};
_.J.detached=function(){this.hostElement.removeEventListener("mouseout",_.MH(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.MH(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.MH(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.J.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.MH(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.MH(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.MH(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.MH(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.MH(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.MH(this,this.endAutoScroll)),this.endAutoScroll())};
_.J.autoScroll=function(p){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=p);var y;if(y=!this.autoScrollPaused&&this.scrollTarget)y=this.scrollTarget,y=y.scrollHeight-y.scrollTop!==y.clientHeight;y&&(y=1E3/this.scrollRate,p-=this.autoScrollAnimationStart,p>y&&(this.scrollTarget.scrollTop+=Math.ceil(p/y),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.J.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.J.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
h8.prototype.autoScrollEnabledChanged=h8.prototype.autoScrollEnabledChanged;_.H([_.Q(),_.x("design:type",Object)],h8.prototype,"scrollRate",void 0);_.H([_.Q(),_.x("design:type",Object)],h8.prototype,"scrollTarget",void 0);_.H([_.Q(),_.x("design:type",Boolean)],h8.prototype,"autoScrollEnabled",void 0);_.H([_.gd("autoScrollEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],h8.prototype,"autoScrollEnabledChanged",null);_.H([_.Lv()],h8);_.oTO=[h8.prototype];var z17;var CL=function(){var p=_.w.apply(this,arguments)||this;p.buttonUpdate=_.n("web_button_rework");p.dismissButtonOverrides=_.n("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;p.forceDarkTheme=!1;p.forceLightTheme=!1;p.dynamicTextHeight=94;p.hasOverflowButton=!1;p.isInfeedModernization=!1;return p};
_.A(CL,_.w);_.J=CL.prototype;_.J.computeUrlImg=function(p){if(p)return _.GT(p.thumbnails)};
_.J.getLogoHeight=function(p){return this.logoWithPadding(p)?"31":"24"};
_.J.getLogoClassName=function(p){return this.logoWithPadding(p)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.J.logoWithPadding=function(p){var y,l;return(p=(y=p.thumbnails)==null?void 0:(l=y[0])==null?void 0:l.height)&&p%31===0?!0:!1};
_.J.sendImpressionEndpoints=function(p){p.impressionEndpoints&&_.ny(this.hostElement,p.impressionEndpoints)};
_.J.observeBasicPalette=function(){var p,y,l=(p=this.data)==null?void 0:(y=p.colorData)==null?void 0:y.basicColorPaletteData;l?_.dD(this.hostElement,l):_.dD(this.hostElement,{})};
_.J.observeDataChanged=function(){var p;this.dynamicTextHeight=((p=this.data)==null?0:p.supplementalText)?74:94;var y;this.hasSupplementalText=!((y=this.data)==null||!y.supplementalText);if(_.n("web_button_rework")){var l,q,t,E;p=(l=this.data)==null?void 0:(q=l.actionButton)==null?void 0:(t=q.buttonRenderer)==null?void 0:(E=t.colorData)==null?void 0:E.basicColorPaletteData;var e,C,u;if(!((e=this.data)==null?0:(C=e.actionButton)==null?0:(u=C.buttonRenderer)==null?0:u.style)&&p){this.computeIsInfeedModernization(this.data)||
(p.borderColor=p.foregroundTitleColor);var a,m;this.set("data.actionButton.buttonRenderer",_.Ts.unsafeClone((a=this.data)==null?void 0:(m=a.actionButton)==null?void 0:m.buttonRenderer))}}};
_.J.observeDataForCounterfactual=function(){if(_.n("kevlar_banner_cf_extra_logging")){var p;((p=this.data)==null?0:p.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.J.computeSupplementalStyle=function(){var p;if((p=this.data)!=null&&p.supplementalText){var y,l,q;if((y=this.data)==null?0:(l=y.colorData)==null?0:(q=l.basicColorPaletteData)==null?0:q.foregroundActivatedColor)return p=_.z5(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+p+"; --yt-endpoint-hover-color:"+p+"; --yt-endpoint-visited-color:"+p+"; --yt-formatted-string-bold-font-weight:700;"}};
_.J.computeForcedDarkTheme=function(){var p,y,l,q=(p=this.data)==null?void 0:(y=p.actionButton)==null?void 0:(l=y.buttonRenderer)==null?void 0:l.style,t,E,e;p=W7d(((t=this.data)==null?void 0:(E=t.colorData)==null?void 0:(e=E.basicColorPaletteData)==null?void 0:e.backgroundColor)||0);return q&&p};
_.J.computeForcedLightTheme=function(){var p,y,l,q=(p=this.data)==null?void 0:(y=p.actionButton)==null?void 0:(l=y.buttonRenderer)==null?void 0:l.style,t,E,e;p=!W7d(((t=this.data)==null?void 0:(E=t.colorData)==null?void 0:(e=E.basicColorPaletteData)==null?void 0:e.backgroundColor)||0);return q&&p};
_.J.computeHasOverflowButton=function(p){return!!p.overflowButton};
_.J.computeHasTitle=function(p){return!!p.title};
_.J.computeTitleMaxFontSize=function(p){return this.computeHasOverflowButton(p)?28:64};
_.J.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.J.computeIsInfeedModernization=function(){var p,y,l,q,t=(p=this.data)==null?void 0:(y=p.actionButton)==null?void 0:(l=y.buttonRenderer)==null?void 0:(q=l.colorData)==null?void 0:q.basicColorPaletteData;return(t==null?void 0:t.backgroundColor)===452984831||(t==null?void 0:t.backgroundColor)===218103808};
CL.prototype.observeDataForCounterfactual=CL.prototype.observeDataForCounterfactual;CL.prototype.observeDataChanged=CL.prototype.observeDataChanged;CL.prototype.observeBasicPalette=CL.prototype.observeBasicPalette;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],CL.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],CL.prototype,"ytdDismissibleItemBehavior",void 0);
_.H([_.V(_.qI.YtdGuideStateAwareBehavior),_.x("design:type",Object)],CL.prototype,"ytdGuideStateAwareBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],CL.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],CL.prototype,"buttonUpdate",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],CL.prototype,"hasSupplementalText",void 0);_.H([_.Q(),_.x("design:type",Object)],CL.prototype,"dismissButtonOverrides",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.x("design:type",Boolean)],CL.prototype,"hasTitle",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.x("design:type",Object)],CL.prototype,"forceDarkTheme",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.x("design:type",Object)],CL.prototype,"forceLightTheme",void 0);_.H([_.Q(),_.x("design:type",Object)],CL.prototype,"dynamicTextHeight",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.x("design:type",Object)],CL.prototype,"hasOverflowButton",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.x("design:type",Object)],CL.prototype,"isInfeedModernization",void 0);_.H([_.gd("data.colorData.basicColorPaletteData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CL.prototype,"observeBasicPalette",null);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CL.prototype,"observeDataChanged",null);_.H([_.gd("data.isVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CL.prototype,"observeDataForCounterfactual",null);_.H([_.k({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],CL);
_.D(CL,"ytd-banner-promo-renderer",function(){if(z17!==void 0)return z17;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.isVisible]]" class="style-scope ytd-banner-promo-renderer">\n  <div class="ytd-banner-promo-renderer-background style-scope ytd-banner-promo-renderer">\n    <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" hidden="[[data.overflowButton]]" overrides="[[dismissButtonOverrides]]" on-click="onDismissClick" class="style-scope ytd-banner-promo-renderer">\n    </ytd-button-renderer>\n    <ytd-menu-renderer id="overflow-button" data="[[data.overflowButton.menuRenderer]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-banner-promo-renderer">\n    </ytd-menu-renderer>\n    <div class="ytd-banner-promo-renderer-layout-container style-scope ytd-banner-promo-renderer">\n      <div class="ytd-banner-promo-renderer-layout style-scope ytd-banner-promo-renderer">\n        <img alt="" class="ytd-banner-promo-renderer-inline-image style-scope ytd-banner-promo-renderer" src$="[[computeUrlImg(data.backgroundImage)]]">\n        <template is="dom-if" if="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n          <h1 class$="[[getLogoClassName(data.logoImage)]] style-scope ytd-banner-promo-renderer">\n            <yt-img-shadow height$="[[getLogoHeight(data.logoImage)]]" thumbnail="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n            </yt-img-shadow>\n          </h1>\n        </template>\n        <div class="ytd-banner-promo-renderer-content style-scope ytd-banner-promo-renderer">\n          <div class="dynamic-text-container style-scope ytd-banner-promo-renderer">\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-short style-scope ytd-banner-promo-renderer" font-family="[[data.titleFontFamily]]" hidden="[[!data.title]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.title]]">\n            </yt-dynamic-sizing-formatted-string>\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-long style-scope ytd-banner-promo-renderer" hidden="[[!data.promoText]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.promoText]]">\n            </yt-dynamic-sizing-formatted-string>\n          </div>\n          <yt-attributed-string class="badge-text style-scope ytd-banner-promo-renderer" data="[[data.badgeText]]" hidden="[[!data.overflowButton]]">\n          </yt-attributed-string>\n          <yt-formatted-string class="supplemental-text style-scope ytd-banner-promo-renderer" style$="[[computeSupplementalStyle()]]" text="[[data.supplementalText]]">\n          </yt-formatted-string>\n          <ytd-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" invisible$="[[!data.actionButton.buttonRenderer]]" class="style-scope ytd-banner-promo-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return z17=p},{mode:1});var YmT;var Iid;var pjR;var u$=function(){return _.w.apply(this,arguments)||this};
_.A(u$,_.w);_.H([_.Q(),_.x("design:type",Object)],u$.prototype,"data",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.H([_.k({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],u$);
_.D(u$,"ytd-hashtag-grid-tile-renderer",function(){if(pjR!==void 0)return pjR;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-hashtag-grid-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]">\n  <div id="info" class="style-scope ytd-hashtag-grid-tile-renderer">\n    <yt-formatted-string id="hashtag" aria-label="[[data.suggestion]]" text="[[data.hashtag]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="hashtag-info" text="[[data.hashtagVideoCountText]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return pjR=p},{mode:1});var Rn=function(){return _.w.apply(this,arguments)||this};
_.A(Rn,_.w);Rn.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Rn.prototype.updateRichGridTrendingHashtagsVisibility=function(){var p,y;if(((p=this.data)==null||!p.isExpanded)&&(y=this.data)!=null&&y.tiles){p=this.data.tiles.length;y=p>this.richGridItemsPerRow?this.richGridItemsPerRow+1:p;var l=Math.ceil(p/y);this.fullyVisibleRows=p%y===1&&l===2?1:Math.min(l,2);this.isShowMoreVisible=this.fullyVisibleRows<l}};
Rn.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Rn.prototype.updateRichGridTrendingHashtagsVisibility=Rn.prototype.updateRichGridTrendingHashtagsVisibility;_.H([_.Q(),_.x("design:type",Object)],Rn.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Number)],Rn.prototype,"fullyVisibleRows",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Rn.prototype,"isShowMoreVisible",void 0);_.H([_.Q({selector:_.fW,value:0}),_.x("design:type",Number)],Rn.prototype,"richGridItemsPerRow",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Rn.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Rn.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Rn.prototype,"ytdReduxBehavior",void 0);_.H([_.gd("data","richGridItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Rn.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.H([_.k({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Rn);
_.D(Rn,"ytd-hashtag-grid-shelf-renderer",function(){if(Iid!==void 0)return Iid;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-text" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-formatted-string id="title" text="[[data.shelfTitle]]" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="tiles" class="style-scope ytd-hashtag-grid-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Iid=p},{mode:1});var y1w;var l$d;var Wh=function(){var p=_.w.apply(this,arguments)||this;p.visibleVideos=[];p.hiddenVideos=[];p.modern=_.n("web_modern_buttons");p.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.A(Wh,_.w);_.J=Wh.prototype;_.J.attached=function(){var p=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",p);this.onDarkModeToggledAction(p)};
_.J.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.header":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},visibleVideos:{id:"visible-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},
properties:{metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{metadataColor:"[[videoMetadataColor]]"}}}},hiddenVideos:{id:"hidden-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",
metadataColor:"[[videoMetadataColor]]"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.J.dataChanged=function(){var p=this;this.requestElementsPerRow();var y,l;this.currentColorPalette=this.isDarkTheme?(y=this.data)==null?void 0:y.darkColorData:(l=this.data)==null?void 0:l.lightColorData;var q;if((q=this.currentColorPalette)==null?0:q.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.th(this,function(){p.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.J.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.J.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.J.computeIsFirstFeedItem=function(p){return p};
_.J.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&this.set("isDarkTheme",p);this.data&&(this.currentColorPalette=p?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.J.getCurrentLogo=function(p,y){if(p)return y?p.darkLogoImage:p.lightLogoImage};
_.J.computeTitleStyle=function(p){var y;if((y=this.data)!=null&&y.title&&p&&p.textPrimary!==void 0)return"color:"+_.z5(p.textPrimary)+";"};
_.J.computeSubtitleStyle=function(p){var y;if((y=this.data)!=null&&y.subtitle&&p&&p.textSecondary!==void 0)return"color:"+_.z5(p.textSecondary)+";"};
_.J.computeDismissIconStyle=function(p){if(this.data&&this.data.dismissButton&&p&&p.textPrimary!==void 0)return"--yt-button-color:"+_.z5(p.textPrimary)+";"};
_.J.computeOverflowButtonStyle=function(p){if(this.data&&this.data.overflowButton&&p&&p.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.z5(p.textPrimary)+";--yt-spec-icon-active-other:"+_.z5(p.textPrimary)+";"};
_.J.computeBackgroundStyle=function(p){if(p&&this.data){var y="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var l=_.GT((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);l&&(y+='background-image:url("'+l+'");')}p.backgroundColor!==void 0&&(y+="background-color:"+_.Y9(p.backgroundColor)+";");return y}};
_.J.computeButton=function(){var p,y=Object.assign({},_.G((p=this.data)==null?void 0:p.showMoreButton,_.yv));if(this.modern&&y){y.style="STYLE_MONO_OUTLINE";var l;if(p=(l=this.currentColorPalette)==null?void 0:l.textPrimary)y.colorData={basicColorPaletteData:{foregroundTitleColor:p,borderColor:p}}}return y};
_.J.shouldShowBottomButton=function(p,y){return!(p==null?0:p.header)&&!(p==null||!p.primaryButton)&&y<3};
_.J.checkExpanded=function(p){this.isExpanded=p&&p.content?this.hiddenVideos.length===0:!0};
_.J.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.J.getLogoHeight=function(p){return this.logoWithPadding(p)?"26":"20"};
_.J.getLogoImageId=function(p){return this.logoWithPadding(p)?"logo-image-with-padding":"logo-image"};
_.J.computeHasSectionHeader=function(p){return!!p.header};
_.J.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var p;if((p=this.data.primaryButton)==null?0:p.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var y;((y=this.data.dismissButton)==null?0:y.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var l,q;((l=this.data)==null?0:(q=l.primaryButton)==null?0:q.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.J.setVisibleVideos=function(p){if(this.data&&this.data.content)if(this.data.content.length){var y=this.data.content.length;this.data.header?p?(this.visibleVideos=this.data.content.slice(0,Math.min(y,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(y,this.slimItemsPerRow),y)):(this.visibleVideos=this.data.content.slice(0,Math.min(y,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(y,this.elementsPerRow),y)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(y,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(y,this.elementsPerRow),y)):(this.visibleVideos=this.data.content.slice(0,Math.min(y,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(y,this.elementsPerRow-1),y))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.J.setHasMovieRenderer=function(){var p;if((p=this.data)!=null&&p.content){var y;this.hasMovieRenderer=!!_.G((y=this.data)==null?void 0:y.content[0],_.E0i)}else this.hasMovieRenderer=!1};
_.J.requestElementsPerRow=function(){_.Ub(this.hostElement,"yt-request-elements-per-row")};
_.J.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var p=_.c(this.hiddenMediaRenderers),y=p.next();!y.done;y=p.next())y.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(p=_.jR(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&p.focus()}};
_.J.updateTitleSpec=function(){var p;(p=this.data)!=null&&p.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.J.logoWithPadding=function(p){var y,l,q;return(p=(y=this.getCurrentLogo(p,this.isDarkTheme))==null?void 0:(l=y.thumbnails)==null?void 0:(q=l[0])==null?void 0:q.height)&&p%31===0?!0:!1};
_.J.onUpdateElementsPerRowAction=function(p,y,l){p&&this.elementsPerRow!==p&&(this.elementsPerRow=p);l&&this.slimItemsPerRow!==l&&(this.slimItemsPerRow=l)};
Wh.prototype.slimItemsPerRowChanged=Wh.prototype.slimItemsPerRowChanged;Wh.prototype.elementsPerRowChanged=Wh.prototype.elementsPerRowChanged;Wh.prototype.dataChanged=Wh.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Wh.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Wh.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],Wh.prototype,"ytdDismissibleItemBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Wh.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Wh.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Wh.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Wh.prototype,"currentColorPalette",void 0);_.H([_.Q(),_.x("design:type",Array)],Wh.prototype,"visibleVideos",void 0);_.H([_.Q(),_.x("design:type",Array)],Wh.prototype,"hiddenVideos",void 0);
_.H([_.Q(),_.x("design:type",Object)],Wh.prototype,"primaryButton",void 0);_.H([_.Q({reflectToAttribute:!0,value:3}),_.x("design:type",Number)],Wh.prototype,"elementsPerRow",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Wh.prototype,"isDarkTheme",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Wh.prototype,"isExpanded",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Wh.prototype,"largeTitle",void 0);
_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Wh.prototype,"hasMovieRenderer",void 0);_.H([_.Q(),_.x("design:type",Number)],Wh.prototype,"slimItemsPerRow",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Wh.prototype,"showLightVideoMetadata",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Wh.prototype,"showDarkVideoMetadata",void 0);_.H([_.Q(),_.x("design:type",Number)],Wh.prototype,"videoMetadataColor",void 0);
_.H([_.Q({reflectToAttribute:!0,selector:_.BV}),_.x("design:type",Boolean)],Wh.prototype,"miniMode",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.x("design:type",Boolean)],Wh.prototype,"isFirstFeedItem",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.x("design:type",Boolean)],Wh.prototype,"hasSectionHeader",void 0);
_.H([_.Q({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],Wh.prototype,"roundedContainer",void 0);_.H([_.SR("#visible-video-container ytd-rich-grid-media"),_.x("design:type",Array)],Wh.prototype,"visibleMediaRenderers",void 0);_.H([_.SR("#hidden-video-container ytd-rich-grid-media"),_.x("design:type",Array)],Wh.prototype,"hiddenMediaRenderers",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Wh.prototype,"modern",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wh.prototype,"dataChanged",null);_.H([_.gd("elementsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wh.prototype,"elementsPerRowChanged",null);_.H([_.gd("slimItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wh.prototype,"slimItemsPerRowChanged",null);
_.H([_.k({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Wh);
_.D(Wh,"ytd-brand-video-shelf-renderer",function(){if(l$d!==void 0)return l$d;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n    <div id="shelf-header-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="top-level-header-container" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="section-header-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        <div id="top-buttons-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" hidden="[[!data.primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n          <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        </div>\n      </div>\n      <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="visible-content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="metadata-container" hidden="[[data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="header-container" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="metadata-button-container" hidden="[[shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n      <div id="visible-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    </div>\n    <div id="hidden-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    <div id="bottom-button-container" hidden="[[!shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="show-more-button-container" hidden="[[isExpanded]]" class="style-scope ytd-brand-video-shelf-renderer">\n    <ytd-button-renderer id="show-more-button" data="[[computeButton(data.showMoreButton.buttonRenderer, currentColorPalette)]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" on-click="onShowMoreTap" class="style-scope ytd-brand-video-shelf-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-shelf-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return l$d=p},{mode:1});var q7d;var an=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.A(an,_.w);_.J=an.prototype;_.J.attached=function(){var p=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",p);this.onDarkModeToggledAction(p)};
_.J.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.J.dataChanged=function(){this.requestElementsPerRow();var p,y;this.currentColorPalette=this.isDarkTheme?(p=this.data)==null?void 0:p.darkColorData:(y=this.data)==null?void 0:y.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.J.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.J.computeIsFirstFeedItem=function(p){return p};
_.J.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&this.set("isDarkTheme",p);this.data&&(this.currentColorPalette=p?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(p),this.updateButtonPalette())};
_.J.shouldShowThumbnailInMetadata=function(p){return p<=1};
_.J.computeVideoMetadataColor=function(){if(this.data){var p;if((p=this.currentColorPalette)==null?0:p.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.J.computeTitleStyle=function(p){var y;if((y=this.data)!=null&&y.title&&p&&p.textPrimary!==void 0)return"color:"+_.z5(p.textPrimary)+";"};
_.J.computeSubtitleStyle=function(p){var y;if((y=this.data)!=null&&y.subtitle&&p&&p.textSecondary!==void 0)return"color:"+_.z5(p.textSecondary)+";"};
_.J.computeOverflowButtonStyle=function(p){if(this.data&&this.data.overflowButton&&p.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.z5(p.textPrimary)+";--yt-spec-icon-active-other:"+_.z5(p.textPrimary)+";"};
_.J.computeBackgroundStyle=function(p){if(p&&this.data){var y="";p.backgroundColor!==void 0&&(y+="background-color:"+_.Y9(p.backgroundColor)+";");return y}};
_.J.computeHasOverflowButton=function(p){return!!p.overflowButton};
_.J.updateButtonPalette=function(){if(this.data){var p;if((p=this.data.primaryButton)==null?0:p.buttonRenderer){var y;if((y=this.currentColorPalette)==null?0:y.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var l;((l=this.currentColorPalette)==null?0:l.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.J.requestElementsPerRow=function(){_.Ub(this.hostElement,"yt-request-elements-per-row")};
_.J.updateTitleSpec=function(){var p;(p=this.data)!=null&&p.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.J.onUpdateElementsPerRowAction=function(p){p&&this.elementsPerRow!==p&&(this.elementsPerRow=p)};
an.prototype.elementsPerRowChanged=an.prototype.elementsPerRowChanged;an.prototype.dataChanged=an.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],an.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],an.prototype,"ytdDismissibleItemBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],an.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],an.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],an.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],an.prototype,"currentColorPalette",void 0);_.H([_.Q(),_.x("design:type",Object)],an.prototype,"primaryButton",void 0);
_.H([_.Q({reflectToAttribute:!0,value:3}),_.x("design:type",Number)],an.prototype,"elementsPerRow",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],an.prototype,"isDarkTheme",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],an.prototype,"titleSize",void 0);_.H([_.Q(),_.x("design:type",Number)],an.prototype,"videoMetadataColor",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.BV}),_.x("design:type",Boolean)],an.prototype,"miniMode",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.x("design:type",Boolean)],an.prototype,"isFirstFeedItem",void 0);_.H([_.Q({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],an.prototype,"roundedContainer",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.x("design:type",Boolean)],an.prototype,"hasOverflowButton",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],an.prototype,"dataChanged",null);_.H([_.gd("elementsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],an.prototype,"elementsPerRowChanged",null);_.H([_.k({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],an);
_.D(an,"ytd-brand-video-singleton-renderer",function(){if(q7d!==void 0)return q7d;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="overflow-button" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="attached-survey" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return q7d=p},{mode:_.ZS("kevlar_poly_si_batch_j070")?1:2});var s86;var tXd=_.aF(function(p){var y=p.data;return _.R(_.W$,{data:function(){return y().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(y().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var l=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":l=88;break a;default:l=88}return l},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return y().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Pi"),J1R=_.aF(function(p){var y=p.metadataRow;
var l=p.delimiter;return _.R(_.rT,{each:function(){return y().textParts||[]},
keyBy:"INDEX"},function(q,t){return _.R(_.a4,null,_.R(_.CF,{text:q,noWrap:!0,userInput:!0}),_.R(EsR,{delimiter:l,max:function(){return y().textParts.length},
index:t}))})},"Qi"),EsR=_.aF(function(p){var y=p.delimiter;
var l=p.max;var q=p.index;return _.R(_.W,{cond:function(){return(y==null?void 0:y())&&l()-1>q()},
then:function(){return _.R("span",null,y)}})},"Ri"),c1T=_.aF(function(p){var y=p.data;
p={};return _.R("yt-profile-page-header-information-view-model",{class:_.ip("profile-page-header-information-view-model-wiz",(p["profile-page-header-information-view-model-wiz--mobile"]=!1,p))},_.R(_.W,{cond:function(){return y().onTap},
then:function(){return _.R(_.sw,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.yM(y().onTap)}},_.R(_.di,{data:function(){return y().thumbnail}},{profilePageHeaderThumbnailViewModel:tXd}))},
else:function(){return _.R("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.R(_.di,{data:function(){return y().thumbnail}},{profilePageHeaderThumbnailViewModel:tXd}))}}),_.R("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.R(_.W,{cond:function(){return y().onTap},
then:function(){return _.R(_.di,{data:function(){return y().title}},{profilePageHeaderTitleViewModel:function(l){var q=l.data;
return _.R(_.sw,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.yM(q().onTap)}},_.R(_.CF,{text:function(){return q().title}}))}})},
else:function(){return _.R(_.di,{data:function(){return y().title}},{profilePageHeaderTitleViewModel:function(l){var q=l.data;
return _.R(_.CF,{text:function(){return q().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.R(_.di,{data:function(){return y().metadata}},{profilePageHeaderMetadataViewModel:function(l){var q=l.data;
return _.R(_.W,{cond:function(){return q().metadataRows},
then:function(t){return _.R("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.R(_.rT,{each:t,keyBy:"INDEX"},function(E,e){return _.R(_.a4,null,_.R(J1R,{metadataRow:E,delimiter:" \u2022 "}),_.R(EsR,{delimiter:" \u2022 ",max:function(){return t().length},
index:e}))}))}})}})))},"Si");
c1T.idomCompat=!0;_.bp(c1T,"yt-profile-page-header-information-view-model",{props:{data:_.Co}});var ma=function(){return _.w.apply(this,arguments)||this};
_.A(ma,_.w);ma.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ma.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ma.prototype,"data",void 0);_.H([_.k({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],ma);
_.D(ma,"ytd-effect-pivot-header-view-model",function(){if(s86!==void 0)return s86;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-effect-pivot-header-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-effect-pivot-header-view-model"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return s86=
p},{mode:1});var e97;var US=function(){return _.w.apply(this,arguments)||this};
_.A(US,_.w);US.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],US.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],US.prototype,"data",void 0);_.H([_.k({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],US);
_.D(US,"ytd-source-pivot-header-renderer",function(){if(e97!==void 0)return e97;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-source-pivot-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-source-pivot-header-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return e97=p},{mode:1});_.h91=_.aF(function(p){var y=p.data;var l=function(){var q;return _.pF((q=y())==null?void 0:q.rendererContext)};
p={};return _.R("content-list-item-view-model",{el:_.mR(_.yn(function(){return y().rendererContext})),
class:_.ip("ytContentListItemViewModelHost",(p.ytContentListItemViewModelTappable=l,p)),role:function(){return l()?"listitem":void 0},
tabindex:function(){return l()?0:void 0}},_.R("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.R("div",{class:"ytContentListItemViewModelImageContainer"},_.R(_.W,{cond:function(){return y().image},
then:function(q){return _.R(_.W$,{data:q,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.R(_.di,{data:function(){var q;
return(q=y())==null?void 0:q.avatar}},{avatarViewModel:_.v5})),_.R("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.R("div",{class:_.ip("ytContentListItemViewModelTitle",function(){a:{switch(y().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var q="ytContentListItemViewModelProminentTitle";
break a}q=void 0}return q})},_.R(_.CF,{text:function(){return y().title}})),_.R("div",{class:"ytContentListItemViewModelMetadata"},_.R(_.di,{data:function(){return y().metadata}},{contentMetadataViewModel:function(q){return _.R(_.nH,{data:q.data,
layout:1})}})))),_.R("div",{class:"ytContentListItemViewModelActionButton"},_.R(_.di,{data:function(){var q;
return(q=y())==null?void 0:q.actionButton}},{buttonViewModel:_.wZ,
toggleButtonViewModel:_.fo})))},"Ti");_.bp(_.aF(function(p){var y=function(){return p.data().background},l=function(){return p.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},q=function(){return p.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.R("yt-card-view-model",{class:_.ip("ytCardViewModelHost",p.className)},_.R(_.G3,{contentId:function(){return p.data().contentId}},function(){return _.R("div",{class:_.ip("ytCardViewModelCardViewModelInner",function(){return G1i(p.data().cardStyle)})},_.R(_.di,{data:y},{cinematicContainerViewModel:function(t){return _.R(_.ulv,{data:t.data})}}),_.R("div",{class:"ytCardViewModelContentWrapper"},_.R(_.W,{cond:function(){return!l()},
then:function(){var t={};return _.R("div",{class:"ytCardViewModelTopContent"},_.R(_.di,{data:function(){return p.data().topContent}},{contentListItemViewModel:function(E){return _.R(_.h91,{data:E.data})}}),_.R("div",{class:_.ip("ytCardViewModelInlineTrailingAction",(t.ytCardViewModelInlineCenterTrailingAction=q,t))},_.R(_.di,{data:function(){return p.data().trailingAction}},{buttonViewModel:function(E){return _.R(_.wZ,{data:E.data})}})))}}),_.R("div",{class:"ytCardViewModelBodyContent"},_.R(_.di,
{data:function(){return p.data().bodyContent}},{contentListItemViewModel:function(t){return _.R(_.h91,{data:t.data})}}))),_.R(_.W,{cond:function(){return l()},
then:function(){return _.R("div",{class:"ytCardViewModelOverlayTrailingAction"},_.R(_.di,{data:function(){return p.data().trailingAction}},{buttonViewModel:function(t){return _.R(_.wZ,{data:t.data})}}))}}))}))},"Ui"),"yt-card-view-model",{props:{data:_.Co,
className:_.Co}});_.bp(_.aF(function(p){var y=function(){return _.G(p.data().flowRoot,L7m)};
_.xZ(function(){var l=y(),q=function(){},t=function(){};
if(l){var E,e,C,u=((C=_.G((E=y())==null?void 0:(e=E.steps)==null?void 0:e[0],_.MM6))==null?void 0:C.stepId)||"";MDO(l,u);q=gTT(l);t=QEu(l)}_.TP(function(){var a=y();a&&_.ei().dispatch(_.Fp("flowStateEntity",a.flowStateEntityKey));q();q=function(){};
t();t=function(){}})});
return _.R("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.R(_.G3,{contentId:function(){return p.data().contentId}},function(){return _.R("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.R(_.W,{cond:y,
then:function(l){return _.R(_.GXd,{data:l})}}))}))},"Vi"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.Co}});_.bp(_.aF(function(){return _.R("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.R("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.R("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.R(_.eI7,null)),_.R(_.ANv,{data:{rows:1},isExploreHub:!0}))},"Wi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.bp(_.aF(function(p){var y=p.data;var l=p.standardUnitMinWidth;p=_.c((0,_.g3B)(y));var q=p.next().value,t=p.next().value,E=function(){var C,u=(C=q())==null?void 0:C.contents;return u==null||u.length===0},e=function(){t(Object.assign({},q(),{contents:[]}))};
return _.R("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.mR(_.Ct({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var C=_.G(y().chipsShelf,Nbd);if(C!=null&&C!=null&&C.autoselectChipOnVisible){var u,a,m=_.G(C==null?void 0:(u=C.contents)==null?void 0:u[(a=C.autoselectedChipIndex)!=null?a:0],_.ti);m&&m.tapCommand&&_.tb(m.tapCommand)}}}))},_.R(_.G3,{contentId:function(){return y().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.R("div",null,_.R("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.R(_.di,{data:function(){return y().header}},{sectionHeaderViewModel:function(C){return _.R(_.Mp,{data:C.data,
disableHorizontalPadding:!0})}})),_.R("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.R(_.di,{data:function(){return y().chipsShelf}},{chipsShelfViewModel:function(C){return _.R(_.iDP,{data:C.data,
callback:e,enableSingleChipSelection:!0})}})),_.R("div",null,_.R(_.W,{cond:E,
then:function(){return _.R("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.R(_.ANv,{data:{rows:1},isExploreHub:!0}))}}),_.R(_.di,{data:function(){var C;
return(C=q())==null?void 0:C.contents}},{richShelfRenderer:function(C){return _.R(_.KoB,{data:C.data,
isInnerShelf:!0,standardUnitMinWidth:l})}})))}))},"Xi"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.Co,
standardUnitMinWidth:_.Co}});var $O=function(){return _.w.apply(this,arguments)||this};
_.A($O,_.w);
$O.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
$O.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.H([_.V(_.zL),_.x("design:type",Object)],$O.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],$O.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.tP),_.x("design:type",Object)],$O.prototype,"ytContinuationHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],$O.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],$O.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Number)],$O.prototype,"standardUnitMinWidth",void 0);_.H([_.k({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],$O);
_.D($O,"ytd-rich-section-renderer",function(){if(y1w!==void 0)return y1w;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-section-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return y1w=p},{mode:_.ZS("kevlar_poly_si_batch_j029")?
1:2});_.bp(_.f3u,"yt-profile-identity-info-view-model",{props:{data:_.Co,hideDivider:_.Co,isChannelInfoCard:_.Co}});_.bp(_.nOr,"yt-page-header-view-model",{props:{data:_.Co,noPadding:_.Co,enableBanner:_.Co,cinematicContainerTopbarOffset:_.Co,allowCinematicContainerOverflow:_.Co,displayAsSidebar:_.Co,displayAsPanel:_.Co,alwaysUseMediumTextMetadata:_.Co}});_.bp(_.aF(function(p){var y=p.data;var l=function(){var t;return(t=y().numColumns)!=null?t:2},q=function(){return l()>1?3:2};
p={};return _.R("ytd-rich-grid-group",{class:_.ip("ytdRichGridGroupHost",(p.ytdRichGridGroupHostFirstColumn=function(){return y().colIndex===0},p)),
style:_.NW({"--ytd-rich-grid-group-num-columns":l,"--ytd-rich-grid-items-per-group":q})},_.R("div",{class:"ytdRichGridGroupContents"},_.R(_.di,{data:function(){var t;return(t=y().contents)==null?void 0:t.slice(0,q())}},{richItemRenderer:function(t){return _.R(_.gMN,{data:t.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Yi"),"ytd-rich-grid-group",{props:{data:_.Co}});var jp=function(){var p=_.w.apply(this,arguments)||this;p.resizeOnObserverInit=!1;p.isInlinePreviewDisabled=_.n("web_disable_inline_preview");p.disableStickyFilterBar=!1;p.transparentBackgroundChipsBar=!1;p.hideChipsBar=!1;p.isWatchDefaultLayout=!0;p.continuationShowButton=!1;p.rowReducedHorizontalMargin=!1;p.useCompactList=!1;p.manualDownloadsPresent=!1;p.smartDownloadsPresent=!1;p.shouldRenderDownloadsBanner=!1;p.hasOptedIntoSmartDownloads=!1;p.elementsPerRow=4;p.typographyBump=!1;p.showGnomeContents=
!1;p.showExploreHubContents=!1;p.slimItemsPerRow=1;p.pageLoadingFromNavigation=!1;p.loggingRefactor=_.n("kevlar_rich_grid_logging_fix");p.resizeObserver=null;p.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-signal-action-soft-reload-page":"onSoftReloadPage","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-insert-rich-section-action":"insertRichSection"};p.rendererToTagNameMap=
new Map(Object.entries(p.contentMapping()).map(function(y){var l=_.c(y);y=l.next().value;l=l.next().value;return[y,l.component]}));
p.insertedContent=new Map;return p};
_.A(jp,_.w);_.J=jp.prototype;_.J.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var p=_.c(_.jR(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),y=p.next();!y.done;y=p.next())y.value.useCompactList=this.useCompactList};
_.J.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var p=_.c(_.jR(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),y=p.next();!y.done;y=p.next())y=y.value,y.sizing=this.sizing,y.typographyBump=this.typographyBump};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.J.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
isHomeGrid:"[[isHomePage]]"},params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.J.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1}}};
_.J.attached=function(){document.addEventListener("yt-page-type-changed",_.MH(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21627_throttledOnResize=new _.hy(this.resizeObserved,_.UC("rich_grid_resize_delay_ms",50),this)};
_.J.detached=function(){var p;(p=this.resizeObserver)==null||p.disconnect();document.removeEventListener("yt-page-type-changed",_.MH(this,this.onPageChange))};
_.J.insertRichSection=function(p){var y=p.richItemTargetId;p=p.richSectionRendererToInsert;y&&p&&(this.insertedContent.set(y,{content:p,timestamp:Date.now()}),this.reflowContent())};
_.J.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.J.computeIsInlinePreviewEnabled=function(p,y,l){return _.n("web_disable_inline_preview")?!1:!l&&_.mMm({miniplayerIsActive:p,miniplayerPlaybackState:y})};
_.J.computeSizing=function(){var p=_.LW6(this.data);if(p||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return p?this.useCompactList?"COMPACT":p:this.miniMode?"COMPACT":_.n("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.J.updateItemMinAndMaxWidth=function(){var p=_.UC("rich_grid_max_item_width",500);p>0&&_.Ax(this.hostElement,{"--ytd-rich-grid-item-max-width":p+"px"});var y;p=this.getRichItemMinWidth((y=this.hostElement)==null?void 0:y.clientWidth);p>0&&_.Ax(this.hostElement,{"--ytd-rich-grid-item-min-width":p+"px"})};
_.J.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.J.resizeObserved=function(){_.jN(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.J.navigateBackToHome=function(){_.n("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.n("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var p=_.WC().resolve(_.mm).isOnWatch(),y,l=((y=_.Qq(location.pathname))==null?void 0:y.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(l)||p)&&this.gnomeContents&&_.n("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);p&&this.exploreHubContents&&_.n("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.ei().dispatch(_.$y({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.J.onPageChange=function(){var p=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.n("disable_chip_select_on_nav")||_.jN(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.TR.addJob(function(){p.pageLoadingFromNavigation=!1;_.n("disable_chip_select_on_nav")&&_.n("h5_reset_cache_and_filter_before_update_masthead")&&p.resetCacheAndIsFilteredFeed();p.setMasthead();p.maybeSetBigYoodle();p.forceRefreshAndLog();p.terminateVideoPreview();_.n("web_hide_gnome_until_user_navigates_back_to_home")&&
(p.dataChanged(),_.th(p,function(){if(p.showGnomeContents){var y=Array.from(_.jR(p.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(q){q=_.jR(q).querySelector("ytd-rich-shelf-renderer");return!!q&&q.isGnomeShelf()});
if(y){y=y.offsetTop-p.contentsElement.offsetTop;var l=_.WC().resolve(_.mm).getCurrentPage();l&&l.getPageScrollingElement().scrollTo({top:y,behavior:"smooth"})}}}));
_.n("web_hide_explore_hub_until_user_navigates_back_to_home")&&(p.dataChanged(),_.th(p,function(){if(p.showExploreHubContents&&!_.n("web_explore_hub_no_scroll")){var y=Array.from(_.jR(p.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(q){return!!q.querySelector("ytd-talk-to-recs-flow-renderer")});
if(y){y=y.offsetTop-p.contentsElement.offsetTop;var l=_.WC().resolve(_.mm).getCurrentPage();l&&l.getPageScrollingElement().scrollTo({top:y,behavior:"smooth"})}}}))},8)):((_.n("web_hide_gnome_until_user_navigates_back_to_home")||_.n("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.J.dataChanged=function(){var p=this,y=_.UC("web_rich_grid_row_margin",0);y>0&&_.Ax(this.hostElement,{"--ytd-rich-grid-row-margin":y+"px"});_.jN(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.th(this,function(){p.updateRichItemGridPositions();p.contentsElement&&_.Ax(p.hostElement,{"--ytd-rich-grid-content-offset-top":p.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.J.initResizeObserver=function(){var p=this;if(window.ResizeObserver){var y;(y=this.resizeObserver)==null||y.disconnect();var l=!1;this.resizeObserver=new ResizeObserver(function(){if(l){var q;(q=p.resizeObserver)==null||q.disconnect();var t;(t=p.JSC$21627_throttledOnResize)==null||t.fire();requestAnimationFrame(function(){var e;(e=p.JSC$21627_throttledOnResize)==null||e.fire();p.initResizeObserver()})}else if(l=!0,p.resizeOnObserverInit){var E;
(E=p.JSC$21627_throttledOnResize)==null||E.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.J.contentLengthChanged=function(){if(_.n("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.jN(this.hostElement,"ytd-rich-item-index-update-action")};
_.J.updateElementsPerRow=function(){_.jN(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.$y({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.$y({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.J.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.J.onRichShelfRendererCollapse=function(p){if(this.shownItems){var y=p.detail;p=this.shownItems.findIndex(function(q){var t,E;return((E=_.G(q==null?void 0:(t=q.richSectionRenderer)==null?void 0:t.content,_.gDN))==null?void 0:E.trackingParams)===y});
var l=p+1;p<0||l>=this.contentsElement.children.length||!this.shownItems[l].richItemRenderer||this.contentsElement.children[l].scrollIntoView({behavior:"smooth",block:"start"})}};
_.J.onSoftReloadPage=function(){this.scrollUpToTop()};
_.J.handleRerenderDownloadsData=function(){_.n("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.J.handlePlaylistRemoveVideosAction=function(p){var y;if(((y=_.G(p,_.diB))==null?0:y.setVideoIds)&&this.data&&this.data.contents){p=_.G(p,_.diB).setVideoIds;for(y=this.data.contents.length-1;y>=0;){var l=_.G(this.data.contents[y],_.f5);(l=l&&_.G(l.content,_.pw))&&l.setVideoId&&p.includes(l.setVideoId)&&this.splice("data.contents",y,1);y--}this.updateIndices()}};
_.J.updateIndices=function(){if(this.data&&this.data.contents)for(var p=0;p<this.data.contents.length;p++)this.set("data.contents."+p+".richItemRenderer.index",_.EK(String(p+1)))};
_.J.hasTopRowInlinePlayableVideoWithEndorsement=function(p){var y;return!((y=p.slice(0,this.getItemsPerRow()))==null||!y.some(function(l){var q;l=_.G(l==null?void 0:(q=l.richItemRenderer)==null?void 0:q.content,_.qb);var t;return(l==null?void 0:l.inlinePlaybackEndpoint)&&(l==null?void 0:(t=l.thumbnailOverlays)==null?void 0:t.some(function(E){return E.thumbnailOverlayEndorsementRenderer}))}))};
_.J.refreshGridLayoutNew=function(p,y,l,q){var t=q.postsPerRow;var E=q.slimItemsPerRow;var e=q.gameCardsPerRow;q=q.miniGameCardsPerRow;var C;if((C=this.data)==null||!C.contents||!this.containerWidth)return!1;var u;if((u=this.data.responsiveContainerConfiguration)==null?0:u.responsiveSize){var a=_.wDa(this.data.responsiveContainerConfiguration,this.containerWidth),m;C=_.Jy(Object.assign({},a,{standardUnitMinWidth:(m=this.data)==null?void 0:m.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&a.isCompactList)}else C=_.Jy({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(a=this.data)==null?void 0:a.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=C.typographyBump;m=!1;if(p||this.elementsPerRow!==C.numItems||this.postsPerRow!==t||this.slimItemsPerRow!==E||this.gameCardsPerRow!==
e||this.miniGameCardsPerRow!==q||this.gutter!==C.gutter)m=this.elementsPerRow!==C.numItems,this.elementsPerRow=C.numItems,this.postsPerRow=t,this.slimItemsPerRow=E,this.gameCardsPerRow=e,this.miniGameCardsPerRow=q,this.gutter=C.gutter,this.itemWidth=C.itemWidth,this.reflowContent(y),_.Ax(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":C.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(l);this.ytdReduxBehavior.dispatch(_.$y({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:C.maxContainerWidth}));return m};
_.J.refreshGridLayout=function(p,y){var l,q=(l=this.hostElement)==null?void 0:l.clientWidth;this.containerWidth=this.adjustRichGridWidth(q,!0);var t;if((t=this.data)==null||!t.contents||!this.containerWidth)return p&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.n("rg_pending_reflow_ks")&&(p=!0,this.pendingForceReflow=!1);l=this.getRichItemMinWidth(q);var E=this.isShortsPanel?146:194,e=this.getMiniGameCardMinWidth(),C=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
q=l=this.calcElementsPerRow(l,C);(t=l<=3&&this.miniModeAllowed())&&(l=this.calcElementsPerRow(240,4));var u=this.calcMaxSlimElementsPerRow(l,C,this.isDefaultGrid);C=this.calcElementsPerRow(E,u);var a=this.calcElementsPerRow(this.isCompactGrid?E:154,u);E=this.calcElementsPerRow(this.isCompactGrid?E:e,u);e=!1;if(this.sizing)return this.refreshGridLayoutNew(p,y,t,{postsPerRow:q,slimItemsPerRow:C,gameCardsPerRow:a,miniGameCardsPerRow:E});if(p||this.elementsPerRow!==l||this.postsPerRow!==q||this.slimItemsPerRow!==
C||this.gameCardsPerRow!==a||this.miniGameCardsPerRow!==E)e=this.elementsPerRow!==l,this.elementsPerRow=l,this.postsPerRow=q,this.slimItemsPerRow=C,this.gameCardsPerRow=a,this.miniGameCardsPerRow=E,this.reflowContent(y),this.updateElementsPerRow(),_.Ax(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)&&_.Ax(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(t);_.jN(this.hostElement,"yt-rich-grid-layout-refreshed");return e};
_.J.getRichItemMinWidth=function(p){var y=_.UC("rich_grid_min_item_width",310);if(!_.n("kevlar_disable_min_width_override")){var l,q;y=(q=(l=this.data)==null?void 0:l.minItemWidth)!=null?q:y}return y+_.Qjt(p)};
_.J.calcMaxSlimElementsPerRow=function(p,y,l){return(l===void 0?0:l)?p===1?2:p%2===0?_.n("web_shorts_2_by_3_reduce_items_per_row")&&p>=4?p/2*3-1:p/2*3:_.n("web_shorts_2_by_3_reduce_items_per_row")&&p>=3?p+1:p+2:y*2};
_.J.adjustRichGridWidth=function(p,y){var l=_.n("disable_rich_grid_guide_compensation");if(!this.isWatch&&!l){l=_.WC().resolve(_.RK(_.l1));var q=l==null?void 0:l.guideElement;if(!(!l||l.getData()||q!=null&&q.opened||l.getMiniGuideVisible()))if(l.canFitPersistentGuide(p)&&l.getGuideExpandsAutomatically()){var t,E,e=Number((t=window.getComputedStyle(this.hostElement))==null?void 0:(E=t.getPropertyValue("--app-drawer-width"))==null?void 0:E.replace("px",""));p-=e||0}else if(l.canFitMiniGuide(p)){var C;
t=Number((e=window.getComputedStyle(this.hostElement))==null?void 0:(C=e.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:C.replace("px",""));p-=t||0}}p>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(p-=y?32:48));return p};
_.J.calcElementsPerRow=function(p,y){var l=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),q=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((l+q)/(p+q))||1,y)};
_.J.reflowContent=function(p){var y=this;if(!this.isReflowing){this.isReflowing=!0;var l,q,t=!!((l=this.data)==null?0:(q=l.contents)==null?0:q.some(function(P){return _.G(P,_.aA)}));
l=this.getItemsPerRow();var E;q=(E=this.data)==null?void 0:E.reflowOptions;p&&(_.fy("rgr_s"),_.th(this,function(){_.fy("rgr_nrf")}));
p={};(E=_.jR(this.hostElement).querySelector("#contents"))&&(p={contentElement:E,rendererToTagNameMap:this.rendererToTagNameMap});E=(E=this.data.contents)?E.slice():[];var e=(_.n("web_hide_gnome_behind_feed_filter_chip")||_.n("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,C=_.n("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,u=-1,a=-1;if(this.isHomePage&&C){for(C=0;C<E.length;C++){var m=void 0,U=void 0;_.G((m=E[C])==null?void 0:
(U=m.richSectionRenderer)==null?void 0:U.content,F7L)&&(a=C)}a>-1&&(this.exploreHubContents=E.splice(a,1))}if(this.isHomePage&&e){for(a=0;a<E.length;a++)U=m=void 0,(C=_.G((m=E[a])==null?void 0:(U=m.richSectionRenderer)==null?void 0:U.content,_.gDN))&&e&&(U=m=void 0,C=_.G((m=C)==null?void 0:(U=m.contents)==null?void 0:U[0],_.f5),m=void 0,_.G((m=C)==null?void 0:m.content,_.gfU)&&(u=a));u>-1&&(this.gnomeContents=E.splice(u,1))}var b=$Jm(E,l,t,q,this.getRichGridStyle(),p,this.insertedContent);t=function(){y.shownItems=
b;y.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(b),_.th(this,t)):t()}};
_.J.getFirstRowItems=function(p){for(var y=[],l=0;l<p.length;l++){var q=void 0,t=void 0,E=void 0,e=void 0,C=void 0,u=void 0;if(((q=p[l])==null?void 0:(t=q.richItemRenderer)==null?void 0:t.rowIndex)===0||((E=p[l])==null?void 0:(e=E.richGroupRenderer)==null?void 0:e.rowIndex)===0||((C=p[l])==null?void 0:(u=C.richSectionRenderer)==null?void 0:u.rowIndex)===0)y.push(p[l]);else break}return y};
_.J.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.J.handleChipCloudChipSelectAction=function(p,y){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.n("web_hide_gnome_behind_feed_filter_chip")&&(y?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.J.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.n("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.J.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.n("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.J.terminateVideoPreview=function(){_.jN(this.hostElement,"yt-terminate-video-preview-action")};
_.J.updateRichItemGridPositions=function(){var p={gridData:{gridColumnCount:this.elementsPerRow}},y;if((y=this.data)==null?0:y.trackingParams)this.loggingRefactor?_.Ll().stateChanged(this.data.trackingParams,p):(y=_.B2())&&_.Je(y,_.Tp(this.data.trackingParams),p);_.jN(this.hostElement,"ytd-rich-item-index-update-action")};
_.J.miniModeAllowed=function(){return _.n("disable_channels_mini_mode")?!1:this.isChannelPage};
_.J.getMiniGameCardMinWidth=function(){return 154};
_.J.updateMiniMode=function(p){this.miniMode=this.miniModeAllowed()&&p;this.ytdReduxBehavior.dispatch(_.$y({type:"SET_RICH_GRID_MINI_MODE",payload:p}))};
_.J.isCurrentPage=function(){return location.pathname===this.pagePath};
_.J.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var p=_.WC().resolve(_.mm).getCurrentPage();p&&p.setScrollTop(0)}};
_.J.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.J.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.J.maybeSetBigYoodle=function(){var p,y=(p=this.data)==null?void 0:p.bigYoodle;this.bigYoodleData!==y&&(this.bigYoodleData=y)};
_.J.setMasthead=function(){var p;((p=this.data)==null?0:p.masthead)?this.mastheadData=this.data.masthead:_.n("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.J.getRichGridStyle=function(){var p,y;return(y=(p=this.data)==null?void 0:p.style)!=null?y:"RICH_GRID_STYLE_UNKNOWN"};
_.J.onIsShortsGridChange=function(){var p=this.ytdReduxBehavior,y=p.dispatch,l=this.getRichGridStyle();y.call(p,_.$y({type:"SET_RICH_GRID_STYLE",payload:l}))};
_.Jh.Object.defineProperties(jp.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var p;return(((p=this.data)==null?void 0:p.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var p;return(((p=this.data)==null?void 0:p.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var p=_.WC().resolve(_.mm).getCurrentPage(),y,l,q;return(((y=this.data)==null?void 0:y.targetId)==="browse-feedFEsfv_audio_pivot"||_.n("web_enable_channel_pivot_panel")&&((l=this.data)==null?void 0:l.targetId)==="browse-feedFEsfv_channel_pivot"||_.n("web_enable_effect_pivot_panel")&&((q=this.data)==null?void 0:q.targetId)==="browse-feedFEsfv_effect_pivot")&&(p==null?void 0:p.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.n("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null?0:p.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var p;return((p=_.WC().resolve(_.mm).getCurrentPage())==null?void 0:p.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var p;return((p=_.WC().resolve(_.mm).getCurrentPage())==null?void 0:p.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var p;return this.hideChipsBar||(((p=this.data)==null?void 0:p.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.n("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var p;return(((p=this.data)==null?void 0:p.targetId)||"")==="watch-next-feed"&&!_.n("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return((p=this.data)==null?0:p.enableContentSpecificAspectRatio)||((y=this.data)==null?0:(l=y.responsiveContainerConfiguration)==null?0:l.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.UC("web_continuation_handler_margin",0):0}}});
jp.prototype.onIsShortsGridChange=jp.prototype.onIsShortsGridChange;jp.prototype.onReloadContinuationFinish=jp.prototype.onReloadContinuationFinish;jp.prototype.reflowContent=jp.prototype.reflowContent;jp.prototype.handleRerenderDownloadsData=jp.prototype.handleRerenderDownloadsData;jp.prototype.onRichShelfRendererCollapse=jp.prototype.onRichShelfRendererCollapse;jp.prototype.onRequestElementsPerRow=jp.prototype.onRequestElementsPerRow;jp.prototype.contentLengthChanged=jp.prototype.contentLengthChanged;
jp.prototype.dataChanged=jp.prototype.dataChanged;jp.prototype.onSizingChange=jp.prototype.onSizingChange;jp.prototype.onUseCompactListChange=jp.prototype.onUseCompactListChange;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],jp.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.vG),_.x("design:type",Object)],jp.prototype,"ironResizableBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],jp.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.tP),_.x("design:type",Object)],jp.prototype,"ytContinuationHandlerBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],jp.prototype,"componentBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],jp.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],jp.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0,selector:_.BV}),_.x("design:type",Boolean)],jp.prototype,"miniMode",void 0);_.H([_.Q({value:[]}),_.x("design:type",Array)],jp.prototype,"shownItems",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],jp.prototype,"isReflowing",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],jp.prototype,"isFilteredFeed",void 0);_.H([_.Q({selector:_.PVc}),_.x("design:type",Boolean)],jp.prototype,"guideIsExpanded",void 0);
_.H([_.Q({selectorArgs:["entitySelectorType"],selector:function(p,y){if(_.n("kevlar_modern_downloads_page")&&y&&y!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(y){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":y=p.entities;var l=_.HV(y),q=_.TU(y),t=_.Tzm(p),E=_.Hwl(p),e=_.xbu(p),C=_.R2c(y),u=_.S$(l),a=_.xy(y);return _.Arl(l,q,C,_.UbL(y),t,E,u,a,e,_.fUl(p),_.dN(p));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return p=_.HV(p.entities),_.M8c(p);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return p=
_.h2L(p.entities),_.V8L(p);default:_.vs(new _.SM("Error: entitySelectorType defined but not matched in selector.",p,y))}}}),
_.x("design:type",Object)],jp.prototype,"entityDrivenRichGridData",void 0);_.H([_.Q(),_.x("design:type",Object)],jp.prototype,"resizeOnObserverInit",void 0);_.H([_.Q(),_.x("design:type",Object)],jp.prototype,"bigYoodleData",void 0);_.H([_.Q(),_.x("design:type",Object)],jp.prototype,"mastheadData",void 0);_.H([_.Q(),_.x("design:type",Boolean)],jp.prototype,"isInlinePreviewDisabled",void 0);_.H([_.Q(),_.x("design:type",Object)],jp.prototype,"disableStickyFilterBar",void 0);
_.H([_.Q(),_.x("design:type",Object)],jp.prototype,"transparentBackgroundChipsBar",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],jp.prototype,"hideChipsBar",void 0);_.H([_.Q(),_.x("design:type",Object)],jp.prototype,"isWatchDefaultLayout",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],jp.prototype,"continuationShowButton",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],jp.prototype,"rowReducedHorizontalMargin",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],jp.prototype,"useCompactList",void 0);_.H([_.Q({selector:function(p){return _.TU(p.entities).length>0}}),
_.x("design:type",Object)],jp.prototype,"manualDownloadsPresent",void 0);_.H([_.Q({selector:function(p){return _.HV(p.entities).length>0}}),
_.x("design:type",Object)],jp.prototype,"smartDownloadsPresent",void 0);_.H([_.Q({selector:_.Hwl}),_.x("design:type",Object)],jp.prototype,"shouldRenderDownloadsBanner",void 0);_.H([_.Q({selector:_.Tzm}),_.x("design:type",Object)],jp.prototype,"hasOptedIntoSmartDownloads",void 0);_.H([_.gd("useCompactList"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jp.prototype,"onUseCompactListChange",null);
_.H([_.gd("sizing","typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jp.prototype,"onSizingChange",null);_.H([_.Q({selector:_.QBm}),_.x("design:type",Number)],jp.prototype,"miniplayerPlaybackState",void 0);_.H([_.Q({selector:_.vV}),_.x("design:type",Boolean)],jp.prototype,"miniplayerIsActive",void 0);
_.H([_.Q({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.x("design:type",Boolean)],jp.prototype,"isInlinePreviewEnabled",void 0);_.H([_.Q({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.x("design:type",String)],jp.prototype,"sizing",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],jp.prototype,"elementsPerRow",void 0);
_.H([_.Q(),_.x("design:type",Object)],jp.prototype,"typographyBump",void 0);_.H([_.Q(),_.x("design:type",Number)],jp.prototype,"itemWidth",void 0);_.H([_.rd("#header"),_.x("design:type",HTMLElement)],jp.prototype,"headerElement",void 0);_.H([_.rd("#contents"),_.x("design:type",HTMLElement)],jp.prototype,"contentsElement",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jp.prototype,"dataChanged",null);
_.H([_.k8("data.contents.length"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jp.prototype,"contentLengthChanged",null);_.H([_.VU("yt-request-elements-per-row"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jp.prototype,"onRequestElementsPerRow",null);
_.H([_.VU("yt-rich-shelf-renderer-collapse"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],jp.prototype,"onRichShelfRendererCollapse",null);_.H([_.k8("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jp.prototype,"handleRerenderDownloadsData",null);
_.H([_.g("data"),_.x("design:type",String),_.x("design:paramtypes",[])],jp.prototype,"entitySelectorType",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data.targetId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jp.prototype,"isSub",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data.targetId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jp.prototype,"isWatch",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("data.targetId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jp.prototype,"isShortsPanel",null);_.H([_.Q({reflectToAttribute:!0}),_.g("isWatch"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jp.prototype,"reducedTopMargin",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data","isWatch","isWatchDefaultLayout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jp.prototype,"noTopMargin",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("isInlinePreviewEnabled","shownItems"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jp.prototype,"topRowEndorsement",null);_.H([_.g("data.header"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jp.prototype,"hideHeader",null);_.H([_.VU("yt-rich-grid-reflow"),_.x("design:type",Function),_.x("design:paramtypes",[Boolean]),_.x("design:returntype")],jp.prototype,"reflowContent",null);
_.H([_.VU("yt-reload-continuation-finish"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jp.prototype,"onReloadContinuationFinish",null);_.H([_.g("data"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jp.prototype,"isSlimGrid",null);_.H([_.g("data"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jp.prototype,"isShortsGrid",null);
_.H([_.g("data","isSlimGrid","isShortsGrid"),_.Q(),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jp.prototype,"noRichItemGutterMargins",null);_.H([_.g("data"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jp.prototype,"isShortsGridSlim",null);_.H([_.g("data"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jp.prototype,"isCompactGrid",null);
_.H([_.g("data"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jp.prototype,"isDefaultGrid",null);_.H([_.g("data.targetId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jp.prototype,"hideChipsBarOnHome",null);_.H([_.g("data.targetId"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jp.prototype,"hideChipsBarOnWatch",null);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jp.prototype,"onIsShortsGridChange",null);_.H([_.g("data.enableContentSpecificAspectRatio"),_.Q(),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jp.prototype,"force16By9ThumbnailAspectRatio",null);_.H([_.g("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],jp.prototype,"continuationTriggerOffset",null);_.H([_.k({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],jp);
_.D(jp,"ytd-rich-grid-renderer",function(){if(YmT!==void 0)return YmT;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return YmT=p},{mode:2});var Cg7=_.aF(function(p){var y=p.thumbsUp,l=p.thumbsDown,q=p.rightAlignThumbs;p=_.c(_.nr(!1,void 0,"FjNDrf"));var t=p.next().value,E=p.next().value;p=_.c(_.nr(!1,void 0,"Tphjfb"));var e=p.next().value,C=p.next().value;p={};return _.R("div",{class:_.ip("ytwThumbsUpDownThumbs",(p.ytwThumbsUpDownRightAlign=function(){return q==null?void 0:q()},p))},_.R(_.fo,{data:y,
onToggle:function(u){E(u);e()&&C(!1)},
buttonShapeOverrides:function(){return{toggled:t()}}}),_.R(_.fo,{data:l,
onToggle:function(u){C(u);t()&&E(!1)},
buttonShapeOverrides:function(){return{toggled:e()}}}))},"Zi");
Cg7.idomCompat=!0;var R97=_.aF(function(p){var y=function(){return p.data().pendingStateEntityKey||""},l=_.So(_.K7L,y),q=function(){var C;
if(!(C=p.disabled())){var u;C=!((u=l())==null||!u.isPendingResponse)}return C},t=_.c(_.nr(nTu(""),void 0,"aC8eBe")),E=t.next().value,e=t.next().value;
_.Hu(function(){requestAnimationFrame(function(){var C=p.data().onShowAnimationMs||0;C=C>0?nTu("--chip-animation-duration: "+C+"ms;"):nTu("");e(C)})});
return _.R("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:E},_.R(_.rT,{each:function(){return p.data().chipData||[]},
keyBy:"REFERENCE"},function(C){return _.R(uNd,{data:C,disabled:q,pendingStateKey:y,onError:p.onError})}))},"$i"),uNd=_.aF(function(p){var y=_.tK("button"),l=_.c(_.nr(!0,void 0,"NaMiCd")),q=l.next().value,t=l.next().value,E=function(){return p.data().text.content},e=_.Ff(function(C){var u,a,m,U,b,P,Z,K;
return _.h(function(F){switch(F.nextAddress){case 1:C.stopPropagation();if(p.disabled())return F.return();a=String(Math.floor(((u=_.gi())==null?void 0:u.getCurrentTime())||0)*1E3);m="youchat-"+Date.now();U=function(){_.lp(p.data().onClick||{});var L={continuationCommand:{token:p.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},T={inputComposerFormData:{clientMessageId:m,playerOffsetMs:a}};return new Promise(function(O,f){_.lp(L,{form:{formData:T},commandController:{onSuccess:function(v,
z){O(z)},
onServerError:function(v,z){f(z.error)}}})})};
b=_.wXV(p.pendingStateKey());b(!0);_.h19("#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");t(!1);_.Ve(F,2);return F.yield(U(),4);case 4:_.pK(F,3);break;case 2:P=_.i6(F),(K=(Z=p).onError)==null||K.call(Z,P);case 3:b(!1),_.rR(F)}})});
return _.R(_.W,{cond:q,then:function(){return _.R("div",{class:"ytwYouChatChipsDataChipWrapper"},_.R("button",{el:y,class:"ytwYouChatChipsDataChip","data-disabled":p.disabled,"on:click":e,tabindex:0},E))}})},"aj");var W0A=_.aF(function(p){var y=p.data;var l=p.initiallyExpanded;var q=function(){var a;return(a=y().conversationResourceData)==null?void 0:a.learningGuideData};
p=_.c(_.kS(function(){var a;return(a=l==null?void 0:l())!=null?a:!1}));
var t=p.next().value,E=p.next().value,e=function(){E(!0)},C=_.MA(function(){var a,m;
return(m=(a=q())==null?void 0:a.sections)!=null?m:[]},void 0,"xl8NRc"),u=_.MA(function(){return C().length>4},void 0,"oAM7of");
p=_.MA(function(){var a;return!t()&&u()&&(a=q())!=null&&a.expandButton?C().slice(0,4):C()},void 0,"uzQ9rc");
return _.R("yt-conversation-resource-view-model",{class:_.ip("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.R(_.di,{data:p},{expandableMetadataViewModel:_.b7L}),_.R(_.W,{cond:function(){return u()&&!t()},
then:function(){return _.R("div",{id:"showMoreButton"},_.R(_.di,{data:function(){var a;return(a=q())==null?void 0:a.expandButton}},{buttonViewModel:function(a){return _.R(_.wZ,{data:a.data,
onClick:e})}}))}}))},"bj");var a$L=_.aF(function(p){var y=function(){var z;return(z=p.data().text)==null?void 0:z.content},l=function(){var z,sc;
return(z=p.data().webData)==null?void 0:(sc=z.textResult)==null?void 0:sc.content},q=_.WC().resolve(_.up),t=_.QS(),E=function(){return p.data().chatResponseStyle},e=function(){return!p.data().transparentBackground},C=function(){return p.data().rightAlignThumbs},u=function(){return p.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||p.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},a=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:u()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:p.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},m=function(){var z;
return p.data().webData||((z=p.data().text)==null?void 0:z.content)||p.data().videoResultsData||p.data().conversationResourceViewModel||p.data().quiz},U=function(){return!!p.data().sectionHeader||m()},b=function(){var z;
return(z=p.data().videoResultsData)==null?void 0:z.videoShelf},P=function(){var z;
return _.G(((z=p.data().videoResultsData)==null?void 0:z.videoShelf)||{},H_d)},Z=function(){var z;
return(z=p.data().webData)==null?void 0:z.sourcesShelf},K=function(){var z;
return _.G(((z=p.data().webData)==null?void 0:z.sourcesShelf)||{},H_d)},F=function(){return _.G(p.data().conversationResourceViewModel||{},xJd)},L=function(){return _.G(p.data().quiz||{},k1m)},T=function(){return E()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||E()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:p.data().thumbsDownViewModel&&p.data().thumbsUpViewModel},O=function(){return _.G(p.data().thumbsUpViewModel,_.BN)},f=function(){return _.G(p.data().thumbsDownViewModel,_.BN)};
_.Hu(function(){requestAnimationFrame(function(){var z;(z=p.shouldAnimateIcon)!=null&&z.call(p)&&i_d(t.lottieEl)})});
var v={};return _.R("you-chat-item-view-model",{class:_.ip("ytwYouChatItemViewModelYouChatItemViewModel",(v.ytwYouChatItemViewModelColumnLayout=function(){return u()},v)),
"data-target-id":function(){return p.data().id||""}},_.R(_.W,{cond:function(){return p.data().removeIcon?!1:U()},
then:function(){var z={};return _.R("div",{"aria-hidden":"true"},_.R(_.GS,{className:_.ip("ytwYouChatItemViewModelIcon",(z.ytwYouChatItemViewModelRtl=q==="rtl",z.ytwYouChatItemViewModelHidden=function(){return!(p.data().hideIcon||E()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||E()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:U())},z)),
animationName:"YOUCHAT_ICON",data:a,animationRef:t}))}}),_.R(_.W,{cond:U,
then:function(){var z={};return _.R("div",{class:_.ip("ytwYouChatItemViewModelHost",(z.ytwYouChatItemViewModelHostNoPadding=function(){return!!p.data().sectionHeader&&!m()},z.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return E()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},z.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return E()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},z.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return E()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
z.ytwYouChatItemViewModelGradientBackground=e,z)),
role:"alert"},_.R(_.W,{cond:y,then:function(sc){return _.R(_.GhO,{text:sc,wrapCodeBlocks:!0})}}),_.R(_.di,{data:function(){return p.data().sectionHeader}},{sectionHeaderViewModel:function(sc){var hR={};
return _.R(_.Mp,{data:sc.data,className:_.ip("ytwYouChatItemViewModelSectionHeader",(hR.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!p.data().sectionHeader&&!m()},hR))})}}),_.R(_.W,{cond:l,
then:function(sc){return _.R(_.GhO,{text:sc,wrapCodeBlocks:!0})}}),_.R(_.W,{cond:b,
then:function(){return _.R("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.R(_.IH,{data:P,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.R(_.W,{cond:Z,
then:function(){return _.R("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.R(_.IH,{data:K,hasPeek:!0,disableArrows:!1}))}}),_.R(_.W,{cond:F,
then:function(){return _.R(W0A,{data:F})}}),_.R(_.W,{cond:L,
then:function(){return _.R(_.l0i,{data:L})}}),_.R(_.W,{cond:T,
then:function(){return _.R(Cg7,{thumbsUp:O,thumbsDown:f,rightAlignThumbs:C})}}))}}),_.R(_.W,{cond:function(){return p.data().chipsData},
then:function(z){return _.R(R97,{data:z,disabled:p.pending,onError:p.onError})}}))},"cj");
a$L.idomCompat={callbacks:{onError:!0,onSend:!0}};var mSL=_.aF(function(p){var y=function(){return p.data().choiceSelectedText},l=function(){return p.data().hasGradientBackground},q={};
return _.R("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.R(_.W,{cond:y,then:function(){return _.R("div",{class:"ytYouChatUserTurnChoiceSelected"},_.R(_.CF,{text:y}))}}),_.R("div",{class:_.ip("ytYouChatUserTurnUserMessage",(q.ytYouChatUserTurnGradientContainer=l,q.ytYouChatUserTurnDefaultContainer=function(){return!l()},q))},function(){return p.data().text}))},"dj");var USw=_.aF(function(p){var y=_.c((0,_.wbP)(p.data)).next().value;return _.R("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return p.data().targetId||""}},_.R(_.di,{data:function(){return p.data().header}},{chipBarViewModel:_.PgN}),_.R(_.di,{data:function(){return y().contents}},{accordionViewModel:_.EOi,
alertBannerViewModel:_.K0r,chatLoadingViewModel:_.hI9,chatUserTurnViewModel:mSL,learningJourneyLoaderViewModel:_.y8$,lockupViewModel:function(l){return _.R(_.ZX,{data:l.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:p.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(l){return _.R(a$L,{data:l.data,pending:!1})}}))},"ej");_.bp(_.aF(function(p){var y=_.c((0,_.wbP)(p.data)).next().value,l=_.sM("yt-section-list-renderer"),q=_.c(_.nr(void 0,void 0,"rQpPgc")),t=q.next().value,E=q.next().value,e=function(){var C;return _.G((C=p.data().sectionListLayoutConfiguration)==null?void 0:C.layoutConfiguration,DJu)};
_.xZ(function(){var C,u=(C=l.value)==null?void 0:C.clientWidth;if(e()){C=e();var a=C.responsiveSize;u=u<528?"CONTAINER_SIZE_NARROW":u<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var m=_.c(C.responsiveMap||[]);for(var U=m.next();!U.done;U=m.next())if(U=U.value,U.containerSize===u){m=U.containerType;break b}m=void 0}if(m&&a){b:{if(m==="CONTAINER_TYPE_VERTICAL_LIST")if(a==="RESPONSIVE_SIZE_STANDARD"){if(u!=="CONTAINER_SIZE_NARROW"){U="50%";break b}}else{U=u==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}U=void 0}C={responsiveSize:a,containerSize:u,containerType:m,force16By9ThumbnailAspectRatio:!C.enableContentSpecificAspectRatio,contentPreviewWidth:U,fullbleed:(m==="CONTAINER_TYPE_VERTICAL_LIST"||m==="CONTAINER_TYPE_GRID")&&u==="CONTAINER_SIZE_NARROW"&&!1}}else C=void 0}else C=void 0;E(C)});
return _.R("yt-section-list-renderer",{class:_.ip("ytSectionListRendererHost",p.className),el:l,"data-target-id":function(){return p.data().targetId||""}},_.R(_.di,{data:function(){return y().contents}},{itemSectionRenderer:function(C){return _.R(USw,{data:C.data,
containerLayoutConfig:t})}}))},"fj"),"yt-section-list-renderer",{props:{data:_.Co,
className:_.jw}});var $ST;var j81;var bDT=function(){return _.w.apply(this,arguments)||this};
_.A(bDT,_.w);_.H([_.Q(),_.x("design:type",Object)],bDT.prototype,"data",void 0);_.H([_.z9({is:"yt-alert-renderer",disableElementRegistration:!0})],bDT);
_.D(bDT,"yt-alert-renderer",function(){if(j81===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_renderer.yt.alert.renderer.css.js--\x3e<div id="container" class$="[[data.type]] style-scope yt-alert-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope yt-alert-renderer"></yt-formatted-string>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;$ST===void 0&&($ST=document.createElement("template"));var q=$ST;l.call(y,q.content.cloneNode(!0),p.content.firstChild);j81=p}p=j81;return p},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.Vri=function(p,y){var l,q;y=y===void 0?{}:y;var t,E,e,C,u,a,m,U,b,P,Z,K;return _.h(function(F){switch(F.nextAddress){case 1:t=y;E=t.shouldWrap===void 0?!0:t.shouldWrap;e=t.skipTransitionTimeoutMs===void 0?300:t.skipTransitionTimeoutMs;C=t.beforeTransition;u=t.afterTransition;if(!E||!document.startViewTransition||document.visibilityState==="hidden")return F.return(p());l=window.innerWidth;q=window.innerHeight;a=!1;(m=C)==null||m();_.Ve(F,2);U=document.startViewTransition(p);b=setTimeout(function(){U.skipTransition();
a=!0},e);
return F.yield(U.ready,4);case 4:return clearTimeout(b),F.yield(U.finished,5);case 5:clearTimeout(b);(P=u)==null||P();_.pK(F,0);break;case 2:Z=_.i6(F),(K=u)==null||K(),Z&&!a&&document.visibilityState!=="hidden"&&l===window.innerWidth&&q===window.innerHeight&&_.Bs(Z),_.rR(F)}})};
_.Yr=function(){for(var p=Array(36),y=0,l,q=0;q<36;q++)q==8||q==13||q==18||q==23?p[q]="-":q==14?p[q]="4":(y<=2&&(y=33554432+Math.random()*16777216|0),l=y&15,y>>=4,p[q]=_.FmP[q==19?l&3|8:l]);return p.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var gP9=_.c0(['<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>']),
QYV=_.ny$(gP9);QYV.setAttribute("style","display: none;");document.head.appendChild(QYV.content);_.Io=_.Jkg(function(p){var y=_.gg("DIV");p&&(y.className=p);y.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";p=_.gg("DIV");_.n1U(p,"200px","200px");y.appendChild(p);document.body.appendChild(y);p=y.offsetWidth-y.clientWidth;_.Qy(y);return p});var K2d;var w9O;var pV=function(){var p=_.w.apply(this,arguments)||this;p.icon=null;return p};
_.A(pV,_.w);pV.prototype.dismiss=function(){_.Ub(this.hostElement,"yt-live-chat-error-message-dismiss")};
pV.prototype.computeIcon=function(p){return p&&p.iconType?"yt-icons:"+p.iconType.toLowerCase():"yt-icons:close"};
_.H([_.Q(),_.x("design:type",Object)],pV.prototype,"data",void 0);_.H([_.Q({computed:"computeIcon(data.icon)"}),_.x("design:type",Object)],pV.prototype,"icon",void 0);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],pV);
_.D(pV,"yt-live-chat-error-message-renderer",function(){if(w9O===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_error_message_renderer.yt.live.chat.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-error-message-renderer">\n  <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-error-message-renderer"></yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;K2d===void 0&&(K2d=document.createElement("template"));var q=K2d;l.call(y,q.content.cloneNode(!0),p.content.firstChild);w9O=p}p=w9O;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var gjA,QmV,Ky6,wed,Fyw,NXw,Ddi,HJR,Zs,TXV,xdw,M1,BX7,fWV,vju,XeO,ddi,OJ1,oju,zLR,YjR,IWA,pc6,yWV,lGu,qHA,sIV,tTu,EUi,JWL,cWO,VP,e6L,h69,CEV,WhR,aGA,mP1,UPR,$P6,jIO,u8d,R69,nUu,G0O,PE7,AWw,Zi9,bid,VTT;gjA=function(p,y){return _.Ae(p.entities,"timedMarkersListSyncEntity",y)};
QmV=function(p,y){return _.Ae(p.entities,"liveReactionsDataEntity",y)};
Ky6=function(p,y){p=_.Ae(p.entities,"booleanEntity",y);return!(!p||!p.value)};
wed=function(p,y){var l=_.B2();l&&p&&_.pW(l,_.Tp(p),y)};
_.iJT=function(p){return p.watch.isWatchActive};
_.r01=function(p){return _.YS(p)||_.Ix(p)||_.prj(p)};
_.Sjd=function(p){return!_.r01(p)};
_.An=function(p){return p.watch.watchScrollTop};
Fyw=function(p){return p.watch.isLiveChatCollapsed};
_.Lym=function(){_.n("web_watch_log_theater_mode")&&_.GQl("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.kzm=function(p,y,l){if(!p.includes("START_TIME_PLACEHOLDER")||!p.includes("END_TIME_PLACEHOLDER"))return p;var q=new Date(0),t=new Date(0);q.setUTCMilliseconds(y);t.setUTCMilliseconds(l);return p.replace("START_TIME_PLACEHOLDER",_.lS(q,7)).replace("END_TIME_PLACEHOLDER",_.lS(t,7))};
NXw=function(p,y){return _.Ae(p.entities,"booleanEntity",y)};
Ddi=function(){return function(p){_.Cl(_.Fp("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:p}))}};
HJR=function(p){switch(p){case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN":return 1;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS":return 6;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":return 2;default:return 3}};
Zs=function(p,y,l){var q=_.yM(l);p&&y&&q&&p.getPlayerPromise().then(function(t){_.Aa6(q)&&_.xn();(new _.T3(t)).executeCommand(q,y);_.n("continue_playback_on_desktop_companion_click")||t.pauseVideo()})};
TXV=function(p){var y=_.$o(),l;if(l=_.I4("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var q;l=(q=l())==null?void 0:q.layoutId}else l=null;Zs(y,l,p)};
xdw=function(p){var y=_.$o(),l;if(l=_.I4("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var q;l=(q=l())==null?void 0:q.layoutId}else l=null;Zs(y,l,p)};
M1=function(p,y){var l=p<0?"-":"";p=Math.abs(p);var q=Math.floor(p/3600),t=Math.floor(p)%3600,E=Math.floor(t/60);t=Math.floor(t)%60;var e="";(y===void 0?0:y)&&(e="."+Math.round((p-Math.floor(p))*10));return q>0?l+q+":"+(E<10?"0"+E:""+E)+":"+(t<10?"0"+t:""+t)+e:l+E+":"+(t<10?"0"+t:""+t)+e};
BX7=function(p){var y=p.match(/[^0-9:\.]/g);if(y&&y.length>0)return null;p=p.split(":");if(p.length===0||p.length>3)return null;y=1;for(var l=0;p.length>0;){var q=p.pop();if(q===void 0)break;var t=Number(q);if(q===""||isNaN(t))return null;l+=t*y;y*=60}return l};
fWV=function(p,y,l,q){p=Math.max(l,p);y=Math.min(y,q-l);p+y>q?(l=q,p=l-y):l=p+y;return{start:p,end:l}};
vju=function(p,y,l,q,t,E){p<l?p=l:p+t>q&&(p=q-t);y>q&&(y=q);y=Math.min(p+E,Math.max(p+t,y));return{start:p,end:y}};
XeO=function(p,y,l,q,t,E){y>q?y=q:y-t<l&&(y=l+t);p<l&&(p=l);p=Math.min(y-t,Math.max(y-E,p));return{start:p,end:y}};
ddi=function(p){return _.n("web_transcript_cue_id_killswitch")?String(p):"ytd-transcript-renderer_"+p};
OJ1=function(p){return _.n("web_transcript_cue_id_killswitch")?!0:p.startsWith("ytd-transcript-renderer")};
oju=function(p){var y=_.$o(),l;if(l=_.I4("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var q;l=(q=l())==null?void 0:q.layoutId}else l=null;Zs(y,l,p)};
zLR=function(p){p.style.height="auto";p.style.height=Math.min(p.scrollHeight||20,80)+"px"};
YjR=function(p,y,l){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:y,hasGradientBackground:l}}],insertByPositionInSection:{sectionTargetId:p,position:"INSERTION_POSITION_LAST"}}}]}}}};
IWA=function(p){var y=_.$o(),l;l=(l=_.I4("yt.www.ads.eventcache.getLastCompanionData"))?(l=l())&&l.layoutId:null;Zs(y,l,p)};
pc6=function(p){var y=_.$o(),l;l=(l=_.I4("yt.www.ads.eventcache.getLastCompanionData"))?(l=l())&&l.layoutId:null;Zs(y,l,p)};
yWV=function(p,y){y=y===void 0?!1:y;if(p.simpleText)p=[{text:p.simpleText}];else{var l;p=((l=p.runs)!=null?l:[]).map(function(q){return Object.assign({},q)})}if(y)for(y=_.c(p),l=y.next();!l.done;l=y.next())l.value.bold=!0;
return p};
lGu=function(p){var y=p.startEndTimeTemplate,l=p.startTimeUtcMillis;p=p.endTimeUtcMillis;if(y&&l&&p)return _.EK(_.kzm(_.JB(y),Number(l),Number(p)))};
qHA=function(p,y){var l,q,t=p==null?void 0:(l=p.viewCount)==null?void 0:(q=l.videoViewCountRenderer)==null?void 0:q.shortViewCount;if(!y&&t)return t;var E,e;return p==null?void 0:(E=p.viewCount)==null?void 0:(e=E.videoViewCountRenderer)==null?void 0:e.viewCount};
sIV=function(p,y){var l=p==null?void 0:p.relativeDateText;return!y&&l?[l,!0]:[p==null?void 0:p.dateText,!1]};
tTu=function(p,y,l,q,t){q=q===void 0?!0:q;t=t===void 0?"":t;var E=qHA(p,y),e=_.c(sIV(p,y)),C=e.next().value;e=e.next().value;y=y?p==null?void 0:p.sponsorsOnlyFirstTimeLongText:p==null?void 0:p.sponsorsOnlyFirstTimeShortText;var u=[];l&&E&&u.push(E);!l&&e||!C||u.push(C);p=[].concat(_.xq(u),[y,p==null?void 0:p.stationName,p==null?void 0:p.rating,p?lGu(p):void 0,p==null?void 0:p.upNextProgramText,p==null?void 0:p.superTitleLink]).filter(function(a){return!!a});
l={runs:[]};for(E=0;E<p.length;E++)l.runs.push.apply(l.runs,_.xq(yWV(p[E],q))),E<p.length-1&&l.runs.push({text:" "+t+" ",bold:q});return l};
EUi=function(p){if(p)return{runs:[{text:p,bold:!0}]}};
JWL=function(p){var y,l,q,t;if(p=p==null?void 0:(y=p.contents)==null?void 0:(l=y.twoColumnWatchNextResults)==null?void 0:(q=l.results)==null?void 0:(t=q.results)==null?void 0:t.contents){var E,e;return(e=(E=p.find(function(C){return!!C.videoPrimaryInfoRenderer}))==null?void 0:E.videoPrimaryInfoRenderer)==null?void 0:e.updatedMetadataEndpoint}};
cWO=function(p,y){var l;return(l=p.sourceConfigs)==null?void 0:l.find(function(q){return q.videoId===y})};
VP=function(p){return p==="End of video"||p==="End of playlist"};
e6L=function(p){var y,l,q,t;return(y=p.getWatchNextResponse())==null?void 0:(l=y.contents)==null?void 0:(q=l.twoColumnWatchNextResults)==null?void 0:(t=q.playlist)==null?void 0:t.playlist};
h69=function(p){var y,l,q,t,E,e;return(y=e6L(p))==null?void 0:(l=y.playlistButtons)==null?void 0:(q=l.menuRenderer)==null?void 0:(t=q.topLevelButtons)==null?void 0:(E=t[0])==null?void 0:(e=E.playlistLoopButtonRenderer)==null?void 0:e.playlistLoopStateEntityKey};
CEV=function(p){var y=_.WC().resolve(_.yh),l;return(y=(l=_.G(y.getAutoplayEndpoint(),_.Eb))==null?void 0:l.playlistId)&&y===p};
WhR=function(p,y,l,q,t){function E(){_.TR.cancelJob(g9);var e=u8d(y,l/p.getPlaybackRate()),C=e.hours,u=e.minutes;e=(e.seconds*1E3||6E4)/p.getPlaybackRate();p.setVideoTimeLeft(R69(C,u));q&&p.getPlayerState()!==0&&p.setSleepTimerTimeLeft(R69(C,u,!0));(C>0||u>0)&&!t&&(g9=_.D6(_.TR,E,e))}
_.TR.cancelJob(g9);g9=_.D6(_.TR,E)};
aGA=function(p,y,l){function q(){_.TR.cancelJob(QP);var t=u8d(y,l),E=t.hours;t=t.minutes;var e=6E4/p.getPlaybackRate();if(E>0||t>0)p.setSleepTimerTimeLeft(R69(E,t,!0)),QP=_.D6(_.TR,q,e)}
_.TR.cancelJob(QP);QP=_.D6(_.TR,q)};
mP1=function(p,y){var l=p.getVolume()/(y/500),q=function(t){_.TR.cancelJob(KR);var E=Math.floor(t-l);p.setVolume(E,!1);E>0&&(KR=_.D6(_.TR,function(){q(E)},500))};
_.TR.cancelJob(KR);KR=_.D6(_.TR,function(){q(p.getVolume())})};
UPR=function(p,y){_.TR.cancelJob(KR);y&&p.syncVolume()};
$P6=function(){var p={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.g$("SLEEP_TIMER_DISRUPTED")}}}}};_.WC().resolve(_.aK).resolveCommand(p)};
jIO=function(p){return(p.getDuration()-p.getProgressState().current)*1E3};
u8d=function(p,y){p=p+y-(0,_.uM)();if(p<=0)return{hours:0,minutes:0,seconds:0};var l=new bid(0,0,0,0,0,0,p);p=l.getHours();y=l.getMinutes();l=l.getSeconds();l!==0&&y++;y!==0&&y%60===0&&(p++,y=0);return{hours:p,minutes:y,seconds:l}};
R69=function(p,y,l){return p>0&&y>0?l?_.g$("TIME_LEFT_HOURS_MINUTES",{hours:p.toString(),minutes:y.toString()}):_.g$("TIME_HOURS_MINUTES",{hours:p.toString(),minutes:y.toString()}):p>0?l?_.Qt("TIME_LEFT_HOURS",p):_.Qt("TIME_HOURS",p):l?_.g$("TIME_LEFT_MINUTES",{minutes:y.toString()}):_.g$("TIME_MINUTES",{minutes:y.toString()})};
nUu=function(p,y){if(p.timelyActions)return p.timelyActions.find(function(l){var q;return((q=_.G(l,w9))==null?void 0:q.cueRangeId)===y})};
G0O=function(p){var y=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.PP(p);p.keyMap_.forEach(function(l,q){_.Tl(y,q)||this.remove(q)},p)};
PE7=function(p,y){p.reloadContinuationItemsCommandMatcher=y};
_.i3=function(p,y){p.insertBefore(y,p.childNodes[0]||null)};
AWw=function(p){if(p>=48&&p<=57||p>=96&&p<=106||p>=65&&p<=90||_.ZY&&p==0)return!0;switch(p){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return _.Aj;default:return!1}};
Zi9=function(p){if(p.altKey&&!p.ctrlKey||p.metaKey||p.keyCode>=112&&p.keyCode<=123)return!1;if(AWw(p.keyCode))return!0;switch(p.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!_.Aj;default:return p.keyCode<166||p.keyCode>183}};
bid=function(p,y,l,q,t,E,e){this.date=typeof p==="number"?new Date(p,y||0,l||1,q||0,t||0,E||0,e||0):new Date(p&&p.getTime?p.getTime():_.$t())};
_.j6(bid,_.DZ);_.J=bid.prototype;_.J.getHours=function(){return this.date.getHours()};
_.J.getMinutes=function(){return this.date.getMinutes()};
_.J.getSeconds=function(){return this.date.getSeconds()};
_.J.getMilliseconds=function(){return this.date.getMilliseconds()};
_.J.getUTCDay=function(){return this.date.getUTCDay()};
_.J.getUTCHours=function(){return this.date.getUTCHours()};
_.J.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.J.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.J.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.J.setHours=function(p){this.date.setHours(p)};
_.J.setMinutes=function(p){this.date.setMinutes(p)};
_.J.setSeconds=function(p){this.date.setSeconds(p)};
_.J.setMilliseconds=function(p){this.date.setMilliseconds(p)};
_.J.setUTCHours=function(p){this.date.setUTCHours(p)};
_.J.setUTCMinutes=function(p){this.date.setUTCMinutes(p)};
_.J.setUTCSeconds=function(p){this.date.setUTCSeconds(p)};
_.J.setUTCMilliseconds=function(p){this.date.setUTCMilliseconds(p)};
_.J.add=function(p){_.DZ.prototype.add.call(this,p);p.hours&&this.setUTCHours(this.date.getUTCHours()+p.hours);p.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+p.minutes);p.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+p.seconds)};
_.J.JSC$11213_toIsoString=function(p){var y=_.DZ.prototype.JSC$11213_toIsoString.call(this,p);return p?y+"T"+_.$C(this.getHours(),2)+":"+_.$C(this.getMinutes(),2)+":"+_.$C(this.getSeconds(),2):y+"T"+_.$C(this.getHours(),2)+_.$C(this.getMinutes(),2)+_.$C(this.getSeconds(),2)};
_.J.equals=function(p){return this.getTime()==p.getTime()};
_.J.toString=function(){return this.JSC$11213_toIsoString()};
_.J.clone=function(){var p=new bid(this.date);p.firstDayOfWeek_=this.firstDayOfWeek_;p.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return p};
_.MT9=function(p){return _.$y({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:p}})};
VTT=new _.uK("imageTileRenderer");var gU6=new _.uK("adGridCardCollectionViewModel");var QIi=new _.uK("carouselTitleViewModel");var Kh1=new _.uK("ctaCarouselItemViewModel");var wcT=new _.uK("textFieldViewModel");_.ii9=new _.uK("engagementPanelHeaderShowNavigationButtonCommand");var rWi=new _.uK("hideEngagementPanelScrimAction");var SHL=new _.uK("setActivePanelItemAction");var FhL=new _.uK("showEngagementPanelScrimAction");var Lh7=new _.uK("updateEngagementPanelAction");var k0O=new _.uK("updateSearchInVideoResultsAction");var Nfm=new _.uK("transcriptCueGroupRenderer");var DPA=new _.uK("transcriptCueRenderer");var Hiu=new _.uK("transcriptFooterRenderer");var TfT=new _.uK("engagementPanelAdSubtitleRenderer");var xP1=new _.uK("videoDescriptionFantasySectionViewModel");var Bf1=new _.uK("deleteClipEngagementPanelCommand");var fGi=new _.uK("loopCommand");var vUA=new _.uK("changeCreatorEndscreenVisibilityCommand");var XcV=new _.uK("liveChatCallForQuestionsRenderer");var dP9=new _.uK("updateTimedMarkersSyncObserverCommand");var w9=new _.uK("timelyActionViewModel");var Oi9=new _.uK("timelyActionsOverlayViewModel");var oUO=new _.uK("repeatChapterCommand");var z6u=new _.uK("watchPlayerOverflowMenuCommand");var YHL=new _.uK("compositeVideoOverlayRenderer");var IGu=new _.uK("sortFilterSubMenuRenderer");var ptX=new _.uK("switchListItemViewModel");var yRl=new _.uK("inputComposerViewModel");var ltB=new _.uK("transcriptEditSegmentCommand");var qcZ=new _.uK("transcriptUpdateSegmentTextCommand");var sg3=new _.uK("transcriptSearchBoxRenderer");var tjZ=new _.uK("transcriptSegmentListRenderer");var E6E=new _.uK("transcriptSegmentRenderer");_.JRl=new _.uK("updateDateTextAction");var cRB=new _.uK("updateTitleAction");var e5X=new _.uK("updateViewershipAction");var h5a=new _.uK("carouselLockupRenderer");var r9=new _.uK("expandableVideoDescriptionBodyRenderer");var C_l=new _.uK("videoDescriptionHeaderRenderer");var uo6=new _.uK("videoDescriptionYouchatSectionViewModel");_.Sb=_.UC("kevlar_watch_page_horizontal_margin",24);_.R5a=_.UC("kevlar_watch_page_columns_top_padding",24);_.WLu=426+_.Sb*2;_.Fj=_.UC("kevlar_watch_two_column_width_threshold",1E3);_.atO=_.Sb*2;_.maZ=_.UC("kevlar_watch_secondary_width",402);_.UaX=_.UC("kevlar_watch_max_player_width",1280);_.$au=_.UC("kevlar_watch_flexy_metadata_height",136);_.jgX=_.atO+310+_.Sb;_.b8B=_.atO+360+_.Sb;var n6X={PAUSE_CHAT:18};var GlO;var P_E;var LR=function(){return _.w.apply(this,arguments)||this};
_.A(LR,_.w);LR.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
LR.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var p=_.G(this.data.button,_.xo);p&&(p.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Jh.Object.defineProperties(LR,{template:{configurable:!0,enumerable:!0,get:function(){if(P_E===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-disableable-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_disableable_button_view_model.yt.disableable.button.view.model.css.js--\x3e<div id="button" class="style-scope yt-disableable-button-view-model"></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;GlO===void 0&&(GlO=document.createElement("template"));var q=GlO;l.call(y,q.content.cloneNode(!0),p.content.firstChild);P_E=p}p=P_E;return p}}});
_.H([_.V(_.lQ),_.x("design:type",Object)],LR.prototype,"ytLiveChatReduxBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],LR.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q({selectorArgs:["data.enabledEntityKey"],selector:Ky6,observer:"onEnabledChange"}),_.x("design:type",Boolean)],LR.prototype,"enabled",void 0);_.H([_.Q(),_.x("design:type",Object)],LR.prototype,"data",void 0);_.H([_.z9({is:"yt-disableable-button-view-model",noInjection:!0})],LR);var ARf;var Z8l;var Mj6=["transVert01","transVert02","transVert03"],VjO="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),kV=function(){var p=_.w.apply(this,arguments)||this;p.emojiManager=_.q4;p.isDarkTheme=document.documentElement.hasAttribute("dark");p.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};p.reactionBuckets=[];p.noEmojiIdentifier="NO_EMOJI";return p};
_.A(kV,_.w);_.J=kV.prototype;_.J.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.J.desktopFountainEmojiSizePxChanged=function(){_.Ax(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.J.createUserReactionAnimation=function(p){this.createEmojiAnimation(p,!0)};
_.J.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var p;((p=this.data)==null?0:p.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.Fp("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.xq(this.emojiContainer.children)).forEach(function(y){y.remove()})};
_.J.detached=function(){this.cleanupFountain()};
_.J.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var p;this.reactionBuckets=_.Ts.unsafeClone((p=this.emojiFountainData)==null?void 0:p.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.J.processEmojiBucket=function(p){var y=this;if(this.reactionBuckets&&!(p>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var l=this.reactionBuckets[p];this.generateEmojiAnimations(l);if(p<this.reactionBuckets.length-1){var q;if(l==null?0:(q=l.duration)==null?0:q.seconds)this.emojiBucketTimerId=setTimeout(function(){y.processEmojiBucket(p+1)},Number(l.duration.seconds)*1E3)}}};
_.J.generateEmojiAnimations=function(p){var y=this,l=this.getRandomEmojiIdFromBucketWithOverride(p);if(l&&l!==this.noEmojiIdentifier){var q=0;p.targetEps?(q=this.linearInterpolateBounded(1,20,100,12,p.emojiSizeIndex||0),this.createEmojiAnimation(l,!1,p.emojiAnimationMs,q),q=this.getEmojiDelayMsFromTargetEps(p.targetEps)):(this.createEmojiAnimation(l),q=this.getEmojiDelayMsFromDistribution(p.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){y.generateEmojiAnimations(p)},q)}};
_.J.getRandomEmojiIdFromBucketWithOverride=function(p){if(!(p&&p.reactionsData&&p.reactionsData.length&&p.totalReactions))return this.noEmojiIdentifier;for(var y=p.totalReactions,l=1,q=_.c(p.reactionsData),t=q.next();!t.done;t=q.next())t=t.value,(t.reactionWeightOverride||t.reactionWeightOverride===0)&&t.reactionCount&&(y-=t.reactionCount,l-=t.reactionWeightOverride);q=!0;l<0&&(q=!1,y=p.totalReactions,l=1);if(q&&l>0&&y===0)if(l===1){t=0;for(var E=_.c(p.reactionsData),e=E.next();!e.done;e=E.next())e=
e.value,e.reactionCount&&e.reactionCount>0&&t++;t=1/t;E=_.c(p.reactionsData);for(e=E.next();!e.done;e=E.next())e.value.reactionWeightOverride=t}else for(t=1/(1-l),E=_.c(p.reactionsData),e=E.next();!e.done;e=E.next())e=e.value,e.reactionWeightOverride&&(e.reactionWeightOverride*=t);t=Math.random();E=0;e=_.c(p.reactionsData);for(var C=e.next();!C.done;C=e.next())if(C=C.value,C.reactionCount&&(E=(C.reactionWeightOverride||C.reactionWeightOverride===0)&&q?E+C.reactionWeightOverride:E+l*C.reactionCount/
y,E>t&&(C.reactionCount--,p.totalReactions--,C=this.reactionItemToEmojiString(C),C!==this.noEmojiIdentifier)))return C;return this.noEmojiIdentifier};
_.J.reactionItemToEmojiString=function(p){if(p.unicodeEmojiId)return p.unicodeEmojiId;if(p.emoteId)return p.emoteId;if(p.videoReactionType)switch(p.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.J.createEmojiAnimation=function(p,y,l,q){y=y===void 0?!1:y;this.lastEmojiRequestedForTesting=p;var t=p.startsWith("yt-icons:"),E=_.yD(this.emojiManager,p);if(E||t){var e=document.createElement("emoji");e.classList.add("yt-emoji-fountain-view-model");e.classList.add(Mj6[Math.floor(Math.random()*Mj6.length)]);var C=document.createElement("div");C.classList.add("yt-emoji-fountain-view-model");C.classList.add("horizontal-container");C.classList.add(VjO[Math.floor(Math.random()*VjO.length)]);y?(l=document.createElement("div"),
l.classList.add("user-reaction-bubble"),l.classList.add("yt-emoji-fountain-view-model"),C.appendChild(l)):(l&&(e.style.animationDuration=l+"ms",C.style.animationDuration=l+"ms"),q&&(e.style.width=q+"px",e.style.height=q+"px"));t?(t=document.createElement("yt-icon"),t.polymerController.icon=p,q&&(t.style.width=q+"px",t.style.height=q+"px"),p=t):p=this.emojiManager.createEmoji(E,!1);p.classList.add("yt-emoji-fountain-view-model");C.appendChild(p);e.appendChild(C);this.emojiContainer.appendChild(e);
e.addEventListener("animationend",function(){e.remove()});
var u,a;if((u=this.data)==null?0:(a=u.loggingDirectives)==null?0:a.trackingParams)y=y?_.fY(183501):_.fY(183500),wed(this.data.loggingDirectives.trackingParams,y),_.Qyj(y);setTimeout(function(){e&&e.remove()},2E3)}};
_.J.getEmojiDelayMsFromDistribution=function(p){return Math.random()*(p||1)*1E3};
_.J.getEmojiDelayMsFromTargetEps=function(p){return Math.random()*2*(1/p)*1E3};
_.J.linearInterpolateBounded=function(p,y,l,q,t){t=Math.min(Math.max(t,p),l);return(y*(l-t)+q*(t-p))/(l-p)};
kV.prototype.onEmojiFountainDataEntityUpdate=kV.prototype.onEmojiFountainDataEntityUpdate;kV.prototype.desktopFountainEmojiSizePxChanged=kV.prototype.desktopFountainEmojiSizePxChanged;kV.prototype.isActiveChanged=kV.prototype.isActiveChanged;_.H([_.Q(),_.x("design:type",_.pP)],kV.prototype,"emojiManager",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],kV.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.lQ),_.x("design:type",Object)],kV.prototype,"ytLiveChatReduxBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],kV.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],kV.prototype,"data",void 0);_.H([_.Q({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(p,y){return _.Ae(p.entities,"emojiFountainDataEntity",y)}}),
_.x("design:type",Object)],kV.prototype,"emojiFountainData",void 0);_.H([_.Q(),_.x("design:type",Boolean)],kV.prototype,"isActive",void 0);_.H([_.gd("isActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kV.prototype,"isActiveChanged",null);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],kV.prototype,"isDarkTheme",void 0);_.H([_.Q(),_.x("design:type",String)],kV.prototype,"lastEmojiRequestedForTesting",void 0);
_.H([_.Q({value:function(){return _.UC("desktop_fountain_emoji_size_px",20)}}),
_.x("design:type",Number)],kV.prototype,"desktopFountainEmojiSizePx",void 0);_.H([_.gd("desktopFountainEmojiSizePx"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kV.prototype,"desktopFountainEmojiSizePxChanged",null);_.H([_.rd("#emoji-container"),_.x("design:type",HTMLElement)],kV.prototype,"emojiContainer",void 0);
_.H([_.gd("emojiFountainData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kV.prototype,"onEmojiFountainDataEntityUpdate",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],kV);
_.D(kV,"yt-emoji-fountain-view-model",function(){if(Z8l===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-fountain-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_fountain_view_model.yt.emoji.fountain.view.model.css.js--\x3e<div id="fountain-bounds" class="style-scope yt-emoji-fountain-view-model">\n  <div id="emoji-container" class="style-scope yt-emoji-fountain-view-model"></div>\n</div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;ARf===void 0&&(ARf=document.createElement("template"));var q=ARf;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Z8l=p}p=Z8l;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var g6Z;var Qgm;var N1=function(){return _.w.apply(this,arguments)||this};
_.A(N1,_.w);N1.prototype.onChoiceChanged=function(){this.data&&_.Ax(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
N1.prototype.onChoiceChanged=N1.prototype.onChoiceChanged;_.H([_.Q(),_.x("design:type",Object)],N1.prototype,"data",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],N1.prototype,"onChoiceChanged",null);_.H([_.k({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],N1);
_.D(N1,"yt-live-chat-banner-poll-choice",function(){if(Qgm===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-banner-poll-choice--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_banner_poll_choice.yt.live.chat.banner.poll.choice.css.js--\x3e<div id="content" class="style-scope yt-live-chat-banner-poll-choice">\n  <div id="percentage-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <div id="vote-percentage-bar" class="style-scope yt-live-chat-banner-poll-choice"></div>\n  </div>\n  <div id="text-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <yt-formatted-string id="label-text" no-styles="" text="[[data.text]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n    <yt-formatted-string id="vote-percentage-text" no-styles="" text="[[data.votePercentage]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n  </div>\n</div>\n\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;g6Z===void 0&&(g6Z=document.createElement("template"));var q=g6Z;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Qgm=p}p=Qgm;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var KL6;var wtB;var Ds=function(){var p=_.w.apply(this,arguments)||this;p.modern=_.n("web_button_rework_with_live");p.small=!1;return p};
_.A(Ds,_.w);Ds.prototype.computeIsSmall=function(){var p;return((p=this.buttonOverrides)==null?void 0:p.size)==="S"};
Ds.prototype.computeId=function(){return this.data&&this.data.targetId};
_.H([_.V(_.qC.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],Ds.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.H([_.Q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.x("design:type",String)],Ds.prototype,"id",void 0);_.H([_.Q(),_.x("design:type",Object)],Ds.prototype,"buttonOverrides",void 0);_.H([_.Q(),_.x("design:type",Object)],Ds.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Ds.prototype,"modern",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.x("design:type",Object)],Ds.prototype,"small",void 0);_.H([_.k({disableElementRegistration:!0,is:"yt-live-chat-button"})],Ds);
_.D(Ds,"yt-live-chat-button",function(){if(wtB===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_button.yt.live.chat.button.css.js--\x3e<yt-button-renderer data="[[data]]" overrides="[[buttonOverrides]]" class="style-scope yt-live-chat-button"></yt-button-renderer>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;KL6===void 0&&(KL6=document.createElement("template"));var q=KL6;l.call(y,q.content.cloneNode(!0),p.content.firstChild);wtB=p}p=wtB;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var i8Z;var rRE;var Hi=function(){var p=_.w.apply(this,arguments)||this;p.inCollapsedBanner=!1;p.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};p.questionButtonOverrides={style:"mono",type:"filled"};return p};
_.A(Hi,_.w);_.J=Hi.prototype;_.J.configureRendererStamper=function(){return{"data.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[buttonOverrides]]"}}}},"data.askQuestionButton":{id:"ask-question",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"ask-question-button"},properties:{overrides:"[[questionButtonOverrides]]"}}}}}};
_.J.onContextMenuButtonClick=function(p){this.ytLiveChatItemBehavior.showContextMenu(p)};
_.J.onYtRendererstamperFinished=function(){this.menuButton=_.jR(this.hostElement).querySelector("#menu-button")};
_.J.dataChanged=function(){var p,y;if((y=_.G((p=this.data)==null?void 0:p.overflowMenuButton,_.yv))==null?0:y.command)this.data.contextMenuEndpoint=_.G(this.data.overflowMenuButton,_.yv).command};
_.J.onButtonClick=function(){var p,y=_.G((p=this.data)==null?void 0:p.askQuestionButton,_.yv);if(y){if(y.trackingParams&&(p=_.Tp(y.trackingParams))){var l=_.B2();l&&_.te(l,p)}_.Ub(this.hostElement,"innertube-command",y.command)}};
Hi.prototype.onYtRendererstamperFinished=Hi.prototype.onYtRendererstamperFinished;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Hi.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.lQ),_.x("design:type",Object)],Hi.prototype,"ytLiveChatReduxBehavior",void 0);_.H([_.V(_.sg.YtLiveChatItemBehavior),_.x("design:type",_.tC)],Hi.prototype,"ytLiveChatItemBehavior",void 0);_.H([_.Q({observer:"dataChanged"}),_.x("design:type",Object)],Hi.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Hi.prototype,"inCollapsedBanner",void 0);_.H([_.Q(),_.x("design:type",Object)],Hi.prototype,"buttonOverrides",void 0);_.H([_.Q(),_.x("design:type",Object)],Hi.prototype,"questionButtonOverrides",void 0);_.H([_.VU("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hi.prototype,"onYtRendererstamperFinished",null);
_.H([_.k({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Hi);
_.D(Hi,"yt-live-chat-call-for-questions-renderer",function(){if(rRE===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-call-for-questions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_call_for_questions_renderer.yt.live.chat.call.for.questions.renderer.css.js--\x3e<div id="content-top" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorAvatar]]" thumbnail="[[data.creatorAvatar]]" width="24" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-img-shadow>\n\n  <div id="metadata-text" class="style-scope yt-live-chat-call-for-questions-renderer">\n    <yt-formatted-string id="author-name" hidden$="[[inCollapsedBanner]]" text="[[data.creatorAuthorName]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-collapsed" hidden$="[[inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="feature-label" text="[[data.featureLabel]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-extended" hidden$="[[!inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="collapsed-call-for-questions-text" hidden$="[[!inCollapsedBanner]]" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n  </div>\n\n  <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n\n<div id="main-content" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-formatted-string id="call-for-questions-text" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-formatted-string>\n\n  <div id="ask-question" on-click="onButtonClick" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;i8Z===void 0&&(i8Z=document.createElement("template"));var q=i8Z;l.call(y,q.content.cloneNode(!0),p.content.firstChild);rRE=p}p=rRE;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var ScO={};ScO.YtLiveChatDialogBehavior={properties:{hidden:{type:Boolean,reflectToAttribute:!0,observer:"hiddenChanged_"}},observers:["isAttachedChanged_(isAttached)"],created:function(){this.restoreFocusNode_=null},
attached:function(){document.addEventListener("focus",this.onFocus_.bind(this),!0)},
detached:function(){this.restoreFocusNode_=null;document.removeEventListener("focus",this.onFocus_.bind(this),!0)},
focusChild_:function(){var p=this;window.requestAnimationFrame(function(){p.restoreFocusNode_||(p.restoreFocusNode_=document.activeElement);var y=_.Xnv(p.hostElement);y.length&&y[y.length-1].focus()})},
isAttachedChanged_:function(p,y){p?this.focusChild_():y&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(p){this.hidden||_.Jx(p).indexOf(this.hostElement)!==-1||(p.stopPropagation(),this.focusChild_())}};var FLZ;var LLX;var TW=function(){return _.w.apply(this,arguments)||this};
_.A(TW,_.w);TW.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
TW.prototype.onClick=function(p){p.target!==this.confirmButton&&p.target!==this.cancelButton&&(this.hidden=!0)};
_.H([_.rd("#confirm_button"),_.x("design:type",Object)],TW.prototype,"confirmButton",void 0);_.H([_.rd("#cancel_button"),_.x("design:type",Object)],TW.prototype,"cancelButton",void 0);_.H([_.Q(),_.x("design:type",klB)],TW.prototype,"data",void 0);_.H([_.Q({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],TW.prototype,"hidden",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],TW.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(ScO.YtLiveChatDialogBehavior),_.x("design:type",Object)],TW.prototype,"ytLiveChatDialogBehavior",void 0);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],TW);
var klB=_.D(TW,"yt-live-chat-dialog-renderer",function(){if(LLX===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_dialog_renderer.yt.live.chat.dialog.renderer.css.js--\x3e<div id="inner" aria-describedby="live-chat-dialog-body" aria-labelledby="live-chat-dialog-title" role="dialog" class="style-scope yt-live-chat-dialog-renderer">\n  <yt-image id="image" alt="[[data.imageA11yLabel]]" data="[[data.image]]" height="200" preserve-height="" width="32" class="style-scope yt-live-chat-dialog-renderer">\n  </yt-image>\n  <yt-formatted-string id="live-chat-dialog-title" text="[[data.title]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n  <div id="live-chat-dialog-body" class="style-scope yt-live-chat-dialog-renderer">\n    \n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-live-chat-dialog-renderer">\n      <yt-formatted-string force-default-style="" split-lines="" text="[[item]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n    </template>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-dialog-renderer">\n    <div id="cancel_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n    <div id="confirm_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;FLZ===void 0&&(FLZ=document.createElement("template"));var q=FLZ;l.call(y,q.content.cloneNode(!0),p.content.firstChild);LLX=p}p=LLX;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var NmO;var Dau,H8u=function(){if(Dau!==void 0)return Dau;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-engagement-panel-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_engagement_panel_input_renderer.yt.live.chat.engagement.panel.input.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-engagement-panel-input-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;NmO===void 0&&(NmO=document.createElement("template"));var q=NmO;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return Dau=p};var Tmu;var xaE;var xV=function(){var p=_.w.apply(this,arguments)||this;p.tooltip=null;p.data=null;p.id="";p.active=!1;p.icon="";p.disabled=!1;p.showTooltip=!1;p.useToggledActiveState=!0;p.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return p};
_.A(xV,_.w);_.J=xV.prototype;
_.J.dataChanged=function(){var p;((p=this.data)==null?0:p.tooltip)?(this.tooltip||(this.tooltip=document.createElement("tp-yt-paper-tooltip"),this.tooltip.position="top",this.tooltip.offset=8,this.tooltip.fitToVisibleBounds=!0,this.tooltip.style.right="0",this.hostElement.appendChild(this.tooltip)),(0,_.Pm)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var y;if((y=this.data)==null?0:y.disabled)this.disabled=!0};
_.J.computeId=function(p){return p};
_.J.computeIcon=function(p,y){if(!p)return"";if(this.useToggledActiveState)return"yt-icons:"+p.toLowerCase();var l,q;return y&&((l=this.data)==null?0:(q=l.toggledIcon)==null?0:q.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+p.toLowerCase()};
_.J.logPDGEntryPoint=function(){_.T3o(_.Za("FLOW_EVENT_NAMESPACE_PDG_BUY_FLOW",1,{pdgBuyFlowContext:{entryPointClickedContext:{sharedPdgBuyFlowEntryPoint:"SHARED_PDG_BUY_FLOW_ENTRY_POINT_LIVE_CHAT_MONEY_BUTTON"}}}),"FLOW_TYPE_PDG_BUY_FLOW")};
_.J.immediatelyShowTooltip=function(){var p=_.jR(this.hostElement).querySelector("#tooltip");p.animationDelay=0;p.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};p.show()};
_.J.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.J.onClick=function(p){var y;((y=this.data)==null?0:y.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),p.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Ub(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.J.computeShowTooltip=function(p,y){return!!(p&&p.tooltip&&y)};
_.J.maybeUpdateTooltipText=function(){var p=this,y;if((y=this.data)==null?0:y.tooltip){var l=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Pm)(p.tooltip).textContent=l},250)}};
_.J.handleLiveChatActions=function(p){var y=this;p.length&&(this.id!=="creator"&&this.id!=="product-picker"||p.forEach(function(l){(l=y.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",l))&&l.durationSec===l.fullDurationSec&&y.startBubble(y.colorFromDecimal(l.startBackgroundColor))}))};
_.J.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.J.startBubble=function(p){_.Ax(this.hostElement,{"--yt-live-chat-monetization-button-glow":p});this.hostElement.setAttribute("bubble","")};
_.J.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.J.colorFromDecimal=function(p){typeof p==="string"&&(p=Number(p));return"rgba("+[p>>16&255,p>>8&255,p&255,(p>>24&255)/255].join()+")"};
xV.prototype.onAnimationEnd=xV.prototype.onAnimationEnd;xV.prototype.disabledChanged=xV.prototype.disabledChanged;xV.prototype.dataChanged=xV.prototype.dataChanged;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],xV.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],xV.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.qC.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],xV.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],xV.prototype,"data",void 0);_.H([_.Q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.x("design:type",Object)],xV.prototype,"id",void 0);_.H([_.Q({notify:!0,reflectToAttribute:!0}),_.x("design:type",Object)],xV.prototype,"active",void 0);
_.H([_.Q({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.x("design:type",Object)],xV.prototype,"icon",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],xV.prototype,"disabled",void 0);_.H([_.Q({computed:"computeShowTooltip(data, disabled)"}),_.x("design:type",Object)],xV.prototype,"showTooltip",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],xV.prototype,"useToggledActiveState",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xV.prototype,"dataChanged",null);_.H([_.gd("disabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xV.prototype,"disabledChanged",null);_.H([_.VU("animationend"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],xV.prototype,"onAnimationEnd",null);
_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],xV);
_.D(xV,"yt-live-chat-icon-toggle-button-renderer",function(){if(xaE===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-icon-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_icon_toggle_button_renderer.yt.live.chat.icon.toggle.button.renderer.css.js--\x3e<yt-icon-button id="button" disabled="[[disabled]]" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <span id="bubble" class="style-scope yt-live-chat-icon-toggle-button-renderer"></span>\n  <div class="style-scope yt-live-chat-icon-toggle-button-renderer">\n    <yt-icon active="[[active]]" icon="[[icon]]" class="style-scope yt-live-chat-icon-toggle-button-renderer"></yt-icon>\n    <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.iconBadgeText]]</span>\n  </div>\n</yt-icon-button>\n<template is="dom-if" if="[[showTooltip]]" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <tp-yt-paper-tooltip id="tooltip" for="button" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;Tmu===void 0&&(Tmu=document.createElement("template"));var q=Tmu;l.call(y,q.content.cloneNode(!0),p.content.firstChild);xaE=p}p=xaE;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var Bma;var ft6;var Bi=function(){return _.w.apply(this,arguments)||this};
_.A(Bi,_.w);Bi.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.H([_.Q(),_.x("design:type",Object)],Bi.prototype,"data",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Bi.prototype,"ytRendererstamperBehavior",void 0);_.H([_.k({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],Bi);
_.D(Bi,"yt-live-chat-message-input-prompt-header-renderer",function(){if(ft6===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-prompt-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_prompt_header_renderer.yt.live.chat.message.input.prompt.header.renderer.css.js--\x3e<div id="primary-content" class="style-scope yt-live-chat-message-input-prompt-header-renderer">\n  <div id="close-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n  <yt-formatted-string id="label-text" text="[[data.labelText]]" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></yt-formatted-string>\n  <div id="help-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n</div>\n<div id="underline" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;Bma===void 0&&(Bma=document.createElement("template"));var q=Bma;l.call(y,q.content.cloneNode(!0),p.content.firstChild);ft6=p}p=ft6;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var v6w;var XtZ;var daO;var O8f;var o63;var z5X;var Ycl=function(){return _.w.apply(this,arguments)||this};
_.A(Ycl,_.w);_.H([_.Q(),_.x("design:type",Object)],Ycl.prototype,"data",void 0);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],Ycl);
_.D(Ycl,"yt-live-chat-message-subtext-renderer",function(){if(z5X===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-subtext-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_subtext_renderer.yt.live.chat.message.subtext.renderer.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-message-subtext-renderer"></yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;o63===void 0&&(o63=document.createElement("template"));var q=o63;l.call(y,q.content.cloneNode(!0),p.content.firstChild);z5X=p}p=z5X;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var fR=function(){var p=_.w.apply(this,arguments)||this;p.subtextOnBottom=!1;p.buttonOverrides={style:"mono",type:"tonal"};return p};
_.A(fR,_.w);fR.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"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],fR.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],fR.prototype,"subtextOnBottom",void 0);_.H([_.Q(),_.x("design:type",Object)],fR.prototype,"buttonOverrides",void 0);
_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],fR);
_.D(fR,"yt-live-chat-message-renderer",function(){if(O8f===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_renderer.yt.live.chat.message.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-message-renderer"></yt-formatted-string>\n<div id="subtext" class="style-scope yt-live-chat-message-renderer"></div>\n<div id="button" class="style-scope yt-live-chat-message-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;daO===void 0&&(daO=document.createElement("template"));var q=daO;l.call(y,q.content.cloneNode(!0),p.content.firstChild);O8f=p}p=O8f;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var Itm;var pUa;var vi=function(){var p=_.w.apply(this,arguments)||this;p.isRemovable=!1;p.hasPrefilledText=!1;p.isInputDirty=!1;p.overCharacterLimit=!1;p.underCharacterLimit=!1;p.showErrorMessage=!1;return p};
_.A(vi,_.w);_.J=vi.prototype;_.J.computeId=function(){return this.data.id};
_.J.computeInputData=function(){return this.data.inputData};
_.J.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.J.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.J.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.J.getLiveChatRichMessageInput=function(){return _.jR(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.J.clearInput=function(){_.jR(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.J.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.J.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.J.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.J.handleTextInputCharCountChanged=function(p){p=p.detail&&p.detail.characterCount;p!==void 0&&(this.characterCount=p,p!==0&&(this.isInputDirty=!0))};
_.J.onInputFocusOut=function(){this.isInputDirty=!0};
_.J.onClickCloseButton=function(){_.Ub(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
vi.prototype.handleTextInputCharCountChanged=vi.prototype.handleTextInputCharCountChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],vi.prototype,"data",void 0);_.H([_.Q({computed:"computeId(data.id)"}),_.x("design:type",String)],vi.prototype,"id",void 0);_.H([_.Q({computed:"computeInputData(data.inputData)"}),_.x("design:type",Object)],vi.prototype,"inputData",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.x("design:type",Object)],vi.prototype,"isRemovable",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.x("design:type",Object)],vi.prototype,"hasPrefilledText",void 0);_.H([_.Q({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.x("design:type",Number)],vi.prototype,"charactersRemaining",void 0);
_.H([_.Q(),_.x("design:type",Number)],vi.prototype,"characterCount",void 0);_.H([_.Q(),_.x("design:type",Object)],vi.prototype,"isInputDirty",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.x("design:type",Object)],vi.prototype,"overCharacterLimit",void 0);_.H([_.Q({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.x("design:type",Object)],vi.prototype,"underCharacterLimit",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.x("design:type",Object)],vi.prototype,"showErrorMessage",void 0);_.H([_.VU("yt-live-chat-text-input-field-renderer-character-count-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],vi.prototype,"handleTextInputCharCountChanged",null);
_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],vi);
_.D(vi,"yt-live-chat-poll-editor-input",function(){if(pUa===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_input.yt.live.chat.poll.editor.input.css.js--\x3e<div id="input-container" class="style-scope yt-live-chat-poll-editor-input">\n  <yt-live-chat-text-input-field-renderer id="input" data="[[inputData]]" is-valid-with-no-input-text="[[hasPrefilledText]]" on-focusout="onInputFocusOut" class="style-scope yt-live-chat-poll-editor-input">\n  </yt-live-chat-text-input-field-renderer>\n  <div id="content-right" class="style-scope yt-live-chat-poll-editor-input">\n    <yt-icon-button id="close-button" aria-label$="[[getSimpleString(data.removeOptionAltText)]]" on-click="onClickCloseButton" class="style-scope yt-live-chat-poll-editor-input">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-live-chat-poll-editor-input"></yt-icon>\n    </yt-icon-button>\n    <span id="char-count" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(data.charsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-input">[[charactersRemaining]]</span>\n  </div>\n</div>\n<div id="error-message" role="alert" class="style-scope yt-live-chat-poll-editor-input">\n  [[getSimpleString(data.charCountErrorText)]]\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;Itm===void 0&&(Itm=document.createElement("template"));var q=Itm;l.call(y,q.content.cloneNode(!0),p.content.firstChild);pUa=p}p=pUa;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var yZX;var lV3;var q$X={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},Xj=function(){var p=_.w.apply(this,arguments)||this;p.modern=_.n("web_button_rework_with_live");p.closeButtonOverrides={iconPosition:"icon-only"};p.startButtonOverrides={style:"mono",type:"filled"};p.addOptionButtonOverrides={style:"mono",type:"text"};return p};
_.A(Xj,_.w);_.J=Xj.prototype;
_.J.configureRendererStamper=function(){return{"data.pollEditorInfo.addOptionButton":{id:"add-option-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[addOptionButtonOverrides]]"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[startButtonOverrides]]"}}}},pollQuestionData:{id:"poll-question",
mapping:{liveChatTextInputFieldRenderer:{component:"yt-live-chat-text-input-field-renderer",attributes:{id:"poll-question-input","is-valid-with-no-input-text":!0}}}},pollOptionsData:{id:"poll-options",mapping:{liveChatPollOptionInput:{component:"yt-live-chat-poll-editor-input"}}}}};
_.J.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var p;_.G((p=this.data)==null?void 0:p.startButton,_.yv)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.J.computeId=function(){return this.data&&this.data.id||""};
_.J.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.J.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.J.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.J.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.J.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var p=0;p<this.pollEditorInfoWithDefaults.minPollOptions;p++)this.addPollOptionData()};
_.J.getIsValidPoll=function(){var p=this;if(!this.pollEditorInfoWithDefaults)return!1;var y=this.pollEditorInfoWithDefaults,l=y.minPollOptionChars,q=y.maxPollOptionChars,t=y.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>y.maxPollQuestionChars)return!1;y=_.jR(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(y).every(function(E,e){E=E.characterCount;!E&&t[e]&&(E=p.ytRendererBehavior.getSimpleString(t[e]).length);return E!==void 0&&E>=l&&E<=q})};
_.J.isValidPollChanged=function(){var p;_.G((p=this.data)==null?void 0:p.startButton,_.yv)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.J.addPollOptionData=function(){var p=this.pollEditorInfoWithDefaults,y=p.maxPollOptionChars,l=p.optionPlaceholderText,q=p.customOptionPlaceholderText,t=p.pollOptionData;this.currentNumPollOptions>=p.maxPollOptions||(p={liveChatPollOptionInput:{inputData:{placeholder:q[this.currentNumPollOptions]||l,maxCharacterLimit:y},maxCharacterLimit:y,minCharacterLimit:p.minPollOptionChars,hasPrefilledText:!!q[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=p.minPollOptions}},t.charCountErrorText&&
(p.liveChatPollOptionInput.charCountErrorText=t.charCountErrorText),t.charsRemainingAltLabel&&(p.liveChatPollOptionInput.charsRemainingAltLabel=t.charsRemainingAltLabel),t.removeOptionAltText&&(p.liveChatPollOptionInput.removeOptionAltText=t.removeOptionAltText),this.push("pollOptionsData",p),t=Array.from(_.jR(_.jR(this.hostElement).querySelector("#poll-options")).children),t.forEach(function(E,e){E.polymerController.set("data.id",e)}),_.jR(t[t.length-1]).querySelector("#input").focus())};
_.J.getPollOptionInputValues=function(){var p=this,y=[],l=_.jR(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),q=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(l).forEach(function(t,E){var e=null;t=t.getLiveChatRichMessageInput();var C;(t==null?0:(C=t.textSegments)==null?0:C.length)?e=_.sZ(t):q[E]&&(e=p.formattedStringToLiveChatRichMessageInput(q[E]));y.push(e)});
return y};
_.J.requestCreateAndStartPoll=function(p){var y=this.getPollOptionInputValues();if(!y.some(function(q){return!q})){y={optionText:y};
var l=_.jR(_.jR(this.hostElement).querySelector("#poll-question")).firstChild;l&&l.liveChatRichMessageInput&&(y.questionText=_.sZ(l.liveChatRichMessageInput));_.ny(this.hostElement,[p,y])}};
_.J.selectedChanged=function(){if(this.selected){var p=_.jR(_.jR(this.hostElement).querySelector("#start-button")).firstElementChild;if(p){var y;(y=_.jR(p).querySelector("#button")||_.bt(p).querySelector("button"))==null||y.focus()}}};
_.J.handleTextInputChanged=function(p){var y;((y=p.target)==null?void 0:y.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=p.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.J.handleStartButtonAction=function(p){p.detail.actionName==="yt-service-request"&&(p.stopPropagation(),(p=p.detail.args[1])&&this.requestCreateAndStartPoll(p))};
_.J.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.J.handleServiceRequestCompleted=function(p){this.createPollRequestInFlight=!1;(p=p.detail&&p.detail.data)&&p.success&&(_.Ub(this.hostElement,"picker-cancelled"),_.$w(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.J.onCloseClick=function(){_.Ub(this.hostElement,"picker-cancelled");_.$w(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.J.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.J.handlePollEditorInputClosed=function(p){var y=this.pollOptionsData.findIndex(function(l){return l.liveChatPollOptionInput.id===p.detail.id});
this.splice("pollOptionsData",y,1);this.isValidPoll=this.getIsValidPoll()};
_.J.onPickerCancelled=function(){this.reset()};
_.J.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var p=_.jR(_.jR(this.hostElement).querySelector("#poll-question")).firstChild;p&&p.setLiveChatRichMessageInput(null);if(p=_.jR(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){p=_.c(Array.from(p));for(var y=p.next();!y.done;y=p.next())y.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.J.formattedStringToLiveChatRichMessageInput=function(p){return p.simpleText?{text_segments:[p.simpleText]}:{text_segments:p.runs}};
_.Jh.Object.defineProperties(Xj.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(q$X,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
Xj.prototype.onPickerCancelled=Xj.prototype.onPickerCancelled;Xj.prototype.handlePollEditorInputClosed=Xj.prototype.handlePollEditorInputClosed;Xj.prototype.handleServiceRequestCompleted=Xj.prototype.handleServiceRequestCompleted;Xj.prototype.handleServiceRequestSent=Xj.prototype.handleServiceRequestSent;Xj.prototype.handleTextInputChanged=Xj.prototype.handleTextInputChanged;Xj.prototype.selectedChanged=Xj.prototype.selectedChanged;Xj.prototype.isValidPollChanged=Xj.prototype.isValidPollChanged;
Xj.prototype.shouldInitializePollChanged=Xj.prototype.shouldInitializePollChanged;Xj.prototype.dataChanged=Xj.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Xj.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Xj.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Xj.prototype,"modern",void 0);
_.H([_.Q(),_.x("design:type",Object)],Xj.prototype,"closeButtonOverrides",void 0);_.H([_.Q(),_.x("design:type",Object)],Xj.prototype,"startButtonOverrides",void 0);_.H([_.Q(),_.x("design:type",Object)],Xj.prototype,"addOptionButtonOverrides",void 0);_.H([_.Q({computed:"computeId(data.id)",reflectToAttribute:!0}),_.x("design:type",String)],Xj.prototype,"id",void 0);_.H([_.Q({value:function(){return[]}}),
_.x("design:type",Array)],Xj.prototype,"pollOptionsData",void 0);_.H([_.g("pollEditorInfoWithDefaults"),_.x("design:type",Object),_.x("design:paramtypes",[])],Xj.prototype,"pollQuestionData",null);_.H([_.Q({value:0}),_.x("design:type",Number)],Xj.prototype,"pollQuestionCharacterCount",void 0);_.H([_.g("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.x("design:type",Object),_.x("design:paramtypes",[])],Xj.prototype,"pollQuestionCharactersRemaining",null);
_.H([_.Q({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.x("design:type",Boolean)],Xj.prototype,"overQuestionCharacterLimit",void 0);_.H([_.g("data.pollEditorInfo"),_.x("design:type",Object),_.x("design:paramtypes",[])],Xj.prototype,"pollEditorInfoWithDefaults",null);_.H([_.Q({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.x("design:type",Number)],Xj.prototype,"currentNumPollOptions",void 0);
_.H([_.Q({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Xj.prototype,"hasMaxNumPollOptions",void 0);_.H([_.g("pollEditorInfoWithDefaults","pollOptionsData"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Xj.prototype,"shouldInitializePoll",null);_.H([_.Q(),_.x("design:type",Object)],Xj.prototype,"isValidPoll",void 0);
_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Xj.prototype,"createPollRequestInFlight",void 0);_.H([_.Q(),_.x("design:type",Object)],Xj.prototype,"selected",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.x("design:type",Boolean)],Xj.prototype,"showQuestionErrorMessage",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xj.prototype,"dataChanged",null);_.H([_.gd("shouldInitializePoll"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xj.prototype,"shouldInitializePollChanged",null);_.H([_.gd("isValidPoll"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xj.prototype,"isValidPollChanged",null);
_.H([_.gd("selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xj.prototype,"selectedChanged",null);_.H([_.VU("yt-live-chat-text-input-field-renderer-character-count-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Xj.prototype,"handleTextInputChanged",null);
_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xj.prototype,"handleServiceRequestSent",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Xj.prototype,"handleServiceRequestCompleted",null);
_.H([_.VU("yt-live-chat-poll-editor-input-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Xj.prototype,"handlePollEditorInputClosed",null);_.H([_.VU("picker-cancelled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xj.prototype,"onPickerCancelled",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],Xj);
_.D(Xj,"yt-live-chat-poll-editor-panel-renderer",function(){if(lV3===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_panel_renderer.yt.live.chat.poll.editor.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <yt-icon hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <div id="poll-editor" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    <div id="poll-question" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="poll-question-sub-content" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n      <div id="poll-question-error-message" role="alert" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[getSimpleString(pollEditorInfoWithDefaults.pollQuestionCharCountErrorText)]]\n      </div>\n      <div id="poll-question-count" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharacterCount]]/[[pollEditorInfoWithDefaults.maxPollQuestionChars]]\n      </div>\n      <div id="poll-question-count-alt-label" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(pollEditorInfoWithDefaults.pollOptionData.pollQuestionCharsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharactersRemaining]]\n      </div>\n    </div>\n    <div id="poll-options" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="add-option-button" hidden$="[[hasMaxNumPollOptions]]" on-click="onAddOptionButtonClick" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;yZX===void 0&&(yZX=document.createElement("template"));var q=yZX;l.call(y,q.content.cloneNode(!0),p.content.firstChild);lV3=p}p=lV3;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var svX;var tBu;var d9=function(){return _.w.apply(this,arguments)||this};
_.A(d9,_.w);d9.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
d9.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Jh.Object.defineProperties(d9.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var p,y;return(p=this.data)==null?void 0:(y=p.title)==null?void 0:y.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var p;return _.yM((p=this.data)==null?void 0:p.onTapCommand)}}});
_.H([_.V(_.FW.YtEndpointBehavior),_.x("design:type",Object)],d9.prototype,"ytEndpointBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],d9.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],d9.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],d9.prototype,"itemId",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],d9.prototype,"hasPromotion",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],d9.prototype,"innertubeCommand",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],d9);
_.D(d9,"yt-live-chat-product-picker-panel-item-view-model",function(){if(tBu===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_item_view_model.yt.live.chat.product.picker.panel.item.view.model.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-picker-panel-item-view-model" data="[[innertubeCommand]]">\n  <tp-yt-paper-item id="container" on-click="onClick" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n    \n    <div id="image-container" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-image id="image" alt="product_animation" data="[[data.productImage.themedImageViewModel.imageLight]]" height="54" preserve-height="" preserve-width="" width="54" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-image>\n      <span id="dot" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n      <yt-attributed-string id="description" data="[[data.description]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n    </div>\n    <yt-icon id="icon" icon="CHEVRON_RIGHT" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-icon>\n  </tp-yt-paper-item>\n</a>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;svX===void 0&&(svX=document.createElement("template"));var q=svX;l.call(y,q.content.cloneNode(!0),p.content.firstChild);tBu=p}p=tBu;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var ExE;var JZu;var O2=function(){var p=_.w.apply(this,arguments)||this;p.id="product-picker";p.selected=!1;p.closeButtonId="close-button";p.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return p};
_.A(O2,_.w);_.J=O2.prototype;_.J.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.J.observeSelected=function(){this.selected&&this.hostElement.focus();var p=_.jR(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");p.length&&p[0].focus()};
_.J.onCloseBuyFlow=function(){_.Ub(this.hostElement,"picker-cancelled")};
_.J.onCloseClick=function(){_.Ub(this.hostElement,"picker-cancelled");var p;((p=this.data)==null?0:p.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.G(this.data.closeButton,_.xo))};
_.J.onCloseEngageWithAudienceEditorPanels=function(){_.Ub(this.hostElement,"picker-cancelled")};
O2.prototype.observeSelected=O2.prototype.observeSelected;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],O2.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],O2.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],O2.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],O2.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],O2.prototype,"id",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],O2.prototype,"selected",void 0);_.H([_.Q(),_.x("design:type",Object)],O2.prototype,"closeButtonId",void 0);_.H([_.gd("selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],O2.prototype,"observeSelected",null);
_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],O2);
_.D(O2,"yt-live-chat-product-picker-panel-view-model",function(){if(JZu===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_view_model.yt.live.chat.product.picker.panel.view.model.css.js--\x3e<div id="header" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  <yt-attributed-string id="title" data="[[data.title]]" ellipsis-truncate="true" no-pre-wrap="true" class="style-scope yt-live-chat-product-picker-panel-view-model"></yt-attributed-string>\n  <yt-button-view-model id="[[closeButtonId]]" data="[[data.closeButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  </yt-button-view-model>\n</div>\n<div id="items" class="style-scope yt-live-chat-product-picker-panel-view-model"></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;ExE===void 0&&(ExE=document.createElement("template"));var q=ExE;l.call(y,q.content.cloneNode(!0),p.content.firstChild);JZu=p}p=JZu;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var cZw;var erl;var o6=function(){var p=_.w.apply(this,arguments)||this;p.iconId="";p.icon="";p.disabled=!1;p.systemIcons=_.n("kevlar_system_icons");return p};
_.A(o6,_.w);_.J=o6.prototype;_.J.attached=function(){_.n("live_chat_compute_product_button_aria_label")||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1"))};
_.J.computeIconId=function(p){return p&&p.icon&&p.icon.iconType?p.icon.iconType.toLowerCase():""};
_.J.computeIcon=function(p){return p&&p.icon&&p.icon.iconType?(p=p.icon.iconType.toLowerCase(),(p.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+p):""};
_.J.computeDisabled=function(p){return!!p};
_.J.computeCommand=function(p,y){return y?void 0:p};
_.J.computeTooltip=function(p,y){return y&&p?p:""};
_.J.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Jh.Object.defineProperties(o6.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){if(!_.n("live_chat_compute_product_button_aria_label"))return"";var p="",y,l,q;if((y=this.data)==null?0:(l=y.text)==null?0:(q=l.runs)==null?0:q.length)p=this.data.text.runs[0].text||"";else{var t,E;if((t=this.data)==null?0:(E=t.text)==null?0:E.simpleText)p=this.data.text.simpleText}var e,C,u;if((e=this.data)==null?0:(C=e.subtext)==null?0:(u=C.runs)==null?0:u.length)p&&(p+=". "),p+=this.data.subtext.runs[0].text||
"";else{var a,m;if((a=this.data)==null?0:(m=a.subtext)==null?0:m.simpleText)p&&(p+=". "),p+=this.data.subtext.simpleText}return p}}});
_.H([_.V(_.FW.YtEndpointBehavior),_.x("design:type",Object)],o6.prototype,"ytEndpointBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],o6.prototype,"data",void 0);_.H([_.Q({computed:"computeIconId(data)",reflectToAttribute:!0}),_.x("design:type",Object)],o6.prototype,"iconId",void 0);
_.H([_.Q({computed:"computeIcon(data)",reflectToAttribute:!0}),_.x("design:type",Object)],o6.prototype,"icon",void 0);_.H([_.Q({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.x("design:type",Object)],o6.prototype,"disabled",void 0);_.H([_.Q({computed:"computeCommand(data.command, disabled)"}),_.x("design:type",Object)],o6.prototype,"command",void 0);_.H([_.Q({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.x("design:type",String)],o6.prototype,"tooltip",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],o6.prototype,"systemIcons",void 0);_.H([_.g("data.text","data.subtext"),_.Q(),_.x("design:type",String),_.x("design:paramtypes",[])],o6.prototype,"ariaLabel",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],o6);
_.D(o6,"yt-live-chat-product-button-renderer",function(){if(erl===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;cZw===void 0&&(cZw=document.createElement("template"));var q=cZw;l.call(y,q.content.cloneNode(!0),p.content.firstChild);erl=p}p=erl;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var hrX;var CNf;var zW=function(){var p=_.w.apply(this,arguments)||this;p.selected=!1;p.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return p};
_.A(zW,_.w);_.J=zW.prototype;_.J.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.computeId=function(p){return p.id||""};
_.J.onCloseClick=function(){_.Ub(this.hostElement,"picker-cancelled")};
_.J.observeSelected=function(){this.selected&&this.hostElement.focus();var p=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");p.length&&p[0].focus()};
_.J.onCloseBuyFlow=function(){_.Ub(this.hostElement,"picker-cancelled")};
_.J.onCloseEngageWithAudienceEditorPanels=function(){_.Ub(this.hostElement,"picker-cancelled")};
zW.prototype.observeSelected=zW.prototype.observeSelected;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],zW.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],zW.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],zW.prototype,"data",void 0);
_.H([_.Q({computed:"computeId(data)",reflectToAttribute:!0}),_.x("design:type",String)],zW.prototype,"id",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],zW.prototype,"selected",void 0);_.H([_.gd("selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zW.prototype,"observeSelected",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],zW);
_.D(zW,"yt-live-chat-product-picker-renderer",function(){if(CNf===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_renderer.yt.live.chat.product.picker.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.productPickerHeaderTitle]]" class="style-scope yt-live-chat-product-picker-renderer"> </yt-formatted-string>\n<div id="buttons" class="style-scope yt-live-chat-product-picker-renderer"></div>\n<div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;hrX===void 0&&(hrX=document.createElement("template"));var q=hrX;l.call(y,q.content.cloneNode(!0),p.content.firstChild);CNf=p}p=CNf;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var uia;var RrE;var WPX;var aVf;var YV=function(){return _.w.apply(this,arguments)||this};
_.A(YV,_.w);YV.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()};
YV.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
YV.prototype.created=function(){this.ids={background:_.Yr(),maskOne:_.Yr(),maskTwo:_.Yr(),gradient:_.Yr(),largeBackground:_.Yr(),largeGradientOne:_.Yr(),largeGradientTwo:_.Yr(),largeGradientPath:_.Yr()}};
YV.prototype.maybeLoadAnimationBackground=YV.prototype.maybeLoadAnimationBackground;_.H([_.Q({value:!1}),_.x("design:type",Boolean)],YV.prototype,"useLargeBackground",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],YV.prototype,"useAnimationBackground",void 0);_.H([_.Q({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.x("design:type",Boolean)],YV.prototype,"useRegularBackground",void 0);
_.H([_.Q(),_.x("design:type",Object)],YV.prototype,"ids",void 0);_.H([_.Q(),_.x("design:type",Object)],YV.prototype,"lottieAnimation",void 0);_.H([_.rd("#animation-background"),_.x("design:type",HTMLDivElement)],YV.prototype,"animationBackground",void 0);_.H([_.gd("useAnimationBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YV.prototype,"maybeLoadAnimationBackground",null);
_.H([_.z9({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],YV);
_.D(YV,"yt-live-interactivity-component-background",function(){if(aVf===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-interactivity-component-background--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_interactivity_component_background.yt.live.interactivity.component.background.css.js--\x3e<svg id$="[[ids.background]]" hidden$="[[!useRegularBackground]]" width="100%" height="280" viewBox="2 45 400 280" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskOne]]" width="611" height="468" x="1" y="-117" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <mask id$="[[ids.maskTwo]]" width="505" height="439" x="-4" y="-10" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <linearGradient id$="[[ids.gradient]]" x1="-53.35" x2="-54.44" y1="572.174" y2="571.817" gradientTransform="matrix(439 0 0 -439 23648 251318)" gradientUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0" stop-color="#1d3863" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop class="gradient-stop style-scope yt-live-interactivity-component-background" offset="1"></stop>\n    </linearGradient>\n  </defs>\n  <g class="style-scope yt-live-interactivity-component-background">\n    <g class="style-scope yt-live-interactivity-component-background">\n      <rect width="500" height="350" x="1" y="1" fill="#224072" stroke="#000" stroke-opacity=".15" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      <g mask$="url(#[[ids.maskOne]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill="#1a3259" fill-rule="evenodd" d="M612-117v420L192 92.998 611.99-117h.01z" opacity=".8" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n      <g mask$="url(#[[ids.maskTwo]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill$="url(#[[ids.gradient]])" fill-rule="evenodd" d="M-4-10v439l439-219.502L-3.989-10H-4z" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n    </g>\n  </g>\n</svg>\n<svg id$="[[ids.largeBackground]]" hidden$="[[!useLargeBackground]]" height="350" width="100%" viewBox="60 40 428 300" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <linearGradient id$="[[ids.largeGradientOne]]" x1="104.432%" x2="10.997%" y1="62.466%" y2="44.799%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#274C8A" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#1A3259" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <linearGradient id$="[[ids.largeGradientTwo]]" x1="53.199%" x2="-55.854%" y1="34.226%" y2="69.901%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#284F8F" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#234275" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <path id$="[[ids.largeGradientPath]]" d="M0 3.991A3.994 3.994 0 014.006 0h491.988C498.206 0 500 1.8 500 3.991v342.018a3.994 3.994 0 01-4.006 3.991H4.006C1.794 350 0 348.2 0 346.009V3.991z" class="style-scope yt-live-interactivity-component-background"></path>\n  </defs>\n  <g fill="none" fill-rule="evenodd" class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskTwo]]" fill="#fff" class="style-scope yt-live-interactivity-component-background">\n      <use href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    </mask>\n    <use fill="#224175" href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    <path fill$="url(#[[ids.largeGradientOne]])" d="M264-120v420L684 89.998 264.011-120z" mask="url(#[[ids.maskTwo]])" transform="matrix(-1 0 0 1 948 0)" class="style-scope yt-live-interactivity-component-background"></path>\n    <path fill$="url(#[[ids.largeGradientTwo]])" d="M-80-81v507l507-253.503L-79.987-81z" mask="url(#[[ids.maskTwo]])" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n  </g>\n</svg>\n<div id="animation-background" height="350" width="100%" hidden$="[[!useAnimationBackground]]" class="style-scope yt-live-interactivity-component-background"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;WPX===void 0&&(WPX=document.createElement("template"));var q=WPX;l.call(y,q.content.cloneNode(!0),p.content.firstChild);aVf=p}p=aVf;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var I6=function(){var p=_.w.apply(this,arguments)||this;p.characterCount=0;p.showInputErrorMessage=!1;p.startQnaRequestInFlight=!1;p.modern=_.n("web_button_rework_with_live");p.buttonOverrides={style:"mono",type:"filled"};p.closeButtonOverrides={iconPosition:"icon-only"};p.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return p};
_.A(I6,_.w);_.J=I6.prototype;
_.J.configureRendererStamper=function(){return{"data.creatorCallForQuestions.liveChatCreatorCallForQuestionsRenderer.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.J.onCharacterCountChanged=function(p){var y,l,q,t,E=(l=_.G(this==null?void 0:(y=this.data)==null?void 0:y.creatorCallForQuestions,XcV))==null?void 0:(q=l.inputField)==null?void 0:(t=q.liveChatTextInputFieldRenderer)==null?void 0:t.maxCharacterLimit,e,C;E!=null&&(p==null?void 0:(e=p.detail)==null?void 0:e.characterCount)!=null&&_.G(this==null?void 0:(C=this.data)==null?void 0:C.startButton,_.yv)&&(y=p.detail.characterCount>E,this.set("data.startButton.buttonRenderer.isDisabled",p.detail.characterCount===
0||y),this.showInputErrorMessage=y)};
_.J.onCloseClick=function(){_.Ub(this.hostElement,"picker-cancelled");_.$w(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.J.onPickerCancelled=function(){var p=_.jR(this.hostElement).querySelector("#qna-creator-text-input-field");p&&p.setLiveChatRichMessageInput(null)};
_.J.handleOpenQnaStartPanel=function(){var p=_.jR(this.hostElement).querySelector("#qna-creator-text-input-field");p&&p.focus()};
_.J.handleStartButtonAction=function(p){var y=this;if(p.detail.actionName==="yt-service-request"&&(p.stopPropagation(),p=p.detail.args[1])){var l=_.jR(this.hostElement).querySelector("#qna-creator-text-input-field"),q;(l==null?0:(q=l.liveChatRichMessageInput)==null?0:q.textSegments)&&l.liveChatRichMessageInput.textSegments.length!==0&&(q={rich_message:_.sZ(l.liveChatRichMessageInput)},_.ny(this.hostElement,[p,q]).then(function(){_.Ub(y.hostElement,"picker-cancelled")}))}};
_.J.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.J.handleServiceRequestCompleted=function(p){var y;p=p==null?void 0:(y=p.detail)==null?void 0:y.data;(p==null?0:p.actions)&&p.actions.length>0?this.startQnaRequestInFlight=!1:_.$w(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.J.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
I6.prototype.handleServiceRequestError=I6.prototype.handleServiceRequestError;I6.prototype.handleServiceRequestCompleted=I6.prototype.handleServiceRequestCompleted;I6.prototype.handleServiceRequestSent=I6.prototype.handleServiceRequestSent;I6.prototype.onPickerCancelled=I6.prototype.onPickerCancelled;I6.prototype.onCharacterCountChanged=I6.prototype.onCharacterCountChanged;_.H([_.Q(),_.x("design:type",Object)],I6.prototype,"characterCount",void 0);
_.H([_.Q(),_.x("design:type",Object)],I6.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],I6.prototype,"showInputErrorMessage",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],I6.prototype,"startQnaRequestInFlight",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],I6.prototype,"modern",void 0);_.H([_.Q(),_.x("design:type",Object)],I6.prototype,"buttonOverrides",void 0);
_.H([_.Q(),_.x("design:type",Object)],I6.prototype,"closeButtonOverrides",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],I6.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.lQ),_.x("design:type",Object)],I6.prototype,"ytLiveChatReduxBehavior",void 0);_.H([_.V(_.sg.YtLiveChatItemBehavior),_.x("design:type",_.tC)],I6.prototype,"ytLiveChatItemBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],I6.prototype,"ytActionHandlerBehavior",void 0);_.H([_.VU("yt-live-chat-text-input-field-renderer-character-count-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],I6.prototype,"onCharacterCountChanged",null);_.H([_.VU("picker-cancelled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],I6.prototype,"onPickerCancelled",null);
_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],I6.prototype,"handleServiceRequestSent",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],I6.prototype,"handleServiceRequestCompleted",null);
_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],I6.prototype,"handleServiceRequestError",null);_.H([_.k({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],I6);
_.D(I6,"yt-live-chat-qna-start-panel-renderer",function(){if(RrE===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-qna-start-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_qna_start_panel_renderer.yt.live.chat.qna.start.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <yt-icon aria-hidden="true" hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <div id="call_for_questions_banner" class="style-scope yt-live-chat-qna-start-panel-renderer">\n    <div id="banner-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n      <div id="banner-content-top" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" thumbnail="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" width="24" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        </yt-img-shadow>\n\n        <div id="metadata-text" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <yt-formatted-string id="author-name" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAuthorName]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="separator-collapsed" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.contentSeparator]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="feature-label" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.featureLabel]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n        </div>\n        <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n      </div>\n\n      <div id="banner-main-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <div id="input-container" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <template is="dom-if" if="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            <yt-live-chat-text-input-field-renderer id="qna-creator-text-input-field" character-count="{{characterCount}}" data="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer]]" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" ignore-color-mapping="" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            </yt-live-chat-text-input-field-renderer>\n          </template>\n        </div>\n        <div id="input-sub-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <div id="qna-error-message" role="alert" class="style-scope yt-live-chat-qna-start-panel-renderer">[[getSimpleString(data.characterLimitErrorMessage)]]</div>\n          <div id="qna-character-count" class="style-scope yt-live-chat-qna-start-panel-renderer">[[characterCount]]/[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer.maxCharacterLimit]]</div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;uia===void 0&&(uia=document.createElement("template"));var q=uia;l.call(y,q.content.cloneNode(!0),p.content.firstChild);RrE=p}p=RrE;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var mOO;var UOE;var pJ=function(){return _.w.apply(this,arguments)||this};
_.A(pJ,_.w);pJ.prototype.dismiss=function(){_.Ub(this.hostElement,"yt-live-chat-error-message-dismiss")};
pJ.prototype.edit=function(){_.Ub(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.H([_.Q(),_.x("design:type",Object)],pJ.prototype,"data",void 0);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],pJ);
_.D(pJ,"yt-live-chat-text-actions-error-message-renderer",function(){if(UOE===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-actions-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_actions_error_message_renderer.yt.live.chat.text.actions.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-icon icon="close" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<div id="error-text" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  <button id="edit" on-click="edit" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n    <yt-formatted-string text="[[data.editMessageText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  </button>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;mOO===void 0&&(mOO=document.createElement("template"));var q=mOO;l.call(y,q.content.cloneNode(!0),p.content.firstChild);UOE=p}p=UOE;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var $O6;var jvf;var bUZ;var nxm;var yk=function(){var p=_.w.apply(this,arguments)||this;p.isDarkTheme=document.documentElement.hasAttribute("dark");p.newnessDotEligible=!1;return p};
_.A(yk,_.w);yk.prototype.sendReaction=function(){var p,y,l=((p=this.data)==null?void 0:p.emojiId)||((y=this.data)==null?void 0:y.emoteId),q;l&&((q=this.data)==null?0:q.shouldTriggerAnimation)&&_.$w(this.hostElement,"yt-create-user-reaction-animation",[l]);var t;(p=_.yM((t=this.data)==null?void 0:t.onTap))&&_.iy(p,this.hostElement);this.showNewnessDot&&_.$w(this.hostElement,"yt-hide-newness-dot")};
yk.prototype.onClick=function(p){(!p||p.clientX||p.clientY)&&this.sendReaction()};
yk.prototype.onKeyDown=function(p){p.key!=="Enter"&&p.key!==" "||p.repeat||this.sendReaction()};
_.Jh.Object.defineProperties(yk.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var p,y;return!!(((p=this.data)==null?0:p.emojiId)||((y=this.data)==null?0:y.emoteId))}}});
_.H([_.Q(),_.x("design:type",Object)],yk.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],yk.prototype,"isDarkTheme",void 0);_.H([_.Q(),_.x("design:type",Object)],yk.prototype,"newnessDotEligible",void 0);_.H([_.g("data.maybeShowNewnessDot"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],yk.prototype,"showNewnessDot",null);_.H([_.g("data.emojiId","data.emoteId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],yk.prototype,"useYtImage",null);
_.H([_.z9({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],yk);
_.D(yk,"yt-reaction-control-panel-button-view-model",function(){if(nxm===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_button_view_model.yt.reaction.control.panel.button.view.model.css.js--\x3e<button on-click="onClick" on-keydown="onKeyDown" class="style-scope yt-reaction-control-panel-button-view-model">\n  <div class="image-container style-scope yt-reaction-control-panel-button-view-model">\n    <template is="dom-if" restamp="" if="[[useYtImage]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-image alt="[[data.a11yLabel]]" data="[[data.buttonIcon]]" height="24" preserve-height="" preserve-width="" should-render-lazy="" width="24" class="style-scope yt-reaction-control-panel-button-view-model"></yt-image>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-icon aria-label="[[data.a11yLabel]]" icon="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model"></yt-icon>\n    </template>\n    <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <div class="newness-dot style-scope yt-reaction-control-panel-button-view-model"></div>\n    </template>\n  </div>\n</button>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;bUZ===void 0&&(bUZ=document.createElement("template"));var q=bUZ;l.call(y,q.content.cloneNode(!0),p.content.firstChild);nxm=p}p=nxm;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var GMO;var PNZ;var lh=function(){var p=_.w.apply(this,arguments)||this;p.reactionControlPanelExpanded=!1;p.isDarkTheme=document.documentElement.hasAttribute("dark");p.newnessDotEligible=!1;return p};
_.A(lh,_.w);_.J=lh.prototype;_.J.expandedButtonsChanged=function(){var p,y;_.Ax(this.hostElement,{"--expanded-buttons-height":((y=(p=this.expandedButtonsData)==null?void 0:p.length)!=null?y:0)*36+"px"})};
_.J.configureRendererStamper=function(){return{expandedButtonsData:{id:"expanded-buttons",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0},"data.collapsedButton":{id:"collapsed-button",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.J.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.J.onMouseLeave=function(){var p=this;this.collapseTimer=setTimeout(function(){p.reactionControlPanelExpanded=!1},500)};
_.J.onFocusIn=function(){this.onMouseEnter()};
_.J.onFocusOut=function(){this.onMouseLeave()};
_.J.onCollapsedButtonFocusIn=function(){var p=this;setTimeout(function(){var y;(y=p.expandedButtons.querySelector("button"))==null||y.focus()},100)};
_.J.onCollapsedButtonFocusOut=function(p){p.stopPropagation()};
_.Jh.Object.defineProperties(lh.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var p,y;return _.Ts.unsafeClone((p=this.liveReactionsData)==null?void 0:p.emojiButtonData)||((y=this.data)==null?void 0:y.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var p;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((p=this.data)==null||!p.maybeShowNewnessDot)}}});
lh.prototype.expandedButtonsChanged=lh.prototype.expandedButtonsChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],lh.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],lh.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.lQ),_.x("design:type",Object)],lh.prototype,"ytLiveChatReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],lh.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],lh.prototype,"reactionControlPanelExpanded",void 0);_.H([_.Q({selectorArgs:["data.liveReactionsDataEntityKey"],selector:QmV}),_.x("design:type",Object)],lh.prototype,"liveReactionsData",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],lh.prototype,"isDarkTheme",void 0);_.H([_.Q(),_.x("design:type",Object)],lh.prototype,"newnessDotEligible",void 0);
_.H([_.g("liveReactionsData","data.expandedButtons"),_.x("design:type",Object),_.x("design:paramtypes",[])],lh.prototype,"expandedButtonsData",null);_.H([_.g("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.Q({reflectToAttribute:!0}),_.x("design:type",Object),_.x("design:paramtypes",[])],lh.prototype,"showNewnessDot",null);_.H([_.rd("#expanded-buttons"),_.x("design:type",HTMLElement)],lh.prototype,"expandedButtons",void 0);
_.H([_.gd("expandedButtonsData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lh.prototype,"expandedButtonsChanged",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],lh);
_.D(lh,"yt-reaction-control-panel-view-model",function(){if(PNZ===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_view_model.yt.reaction.control.panel.view.model.css.js--\x3e<div id="hover-area" on-mouseenter="onMouseEnter" on-mouseleave="onMouseLeave" on-focusin="onFocusIn" on-focusout="onFocusOut" class="style-scope yt-reaction-control-panel-view-model">\n  <div id="fab-container" class="style-scope yt-reaction-control-panel-view-model">\n    <div id="expanded-buttons" class="style-scope yt-reaction-control-panel-view-model"></div>\n    <div id="collapsed-button" on-focusin="onCollapsedButtonFocusIn" on-focusout="onCollapsedButtonFocusOut" class="style-scope yt-reaction-control-panel-view-model"></div>\n  </div>\n  <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-view-model">\n    <div class="newness-dot style-scope yt-reaction-control-panel-view-model"></div>\n  </template>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;GMO===void 0&&(GMO=document.createElement("template"));var q=GMO;l.call(y,q.content.cloneNode(!0),p.content.firstChild);PNZ=p}p=PNZ;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var qd=new _.XL("yt-live-chat"),AZ6=Date.parse("2024-7-24"),sj=function(){var p=_.w.apply(this,arguments)||this;p.emojiManager=_.q4;p.newnessDotEligible=!1;p.newnessDotImpressionCounted=!1;p.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return p};
_.A(sj,_.w);_.J=sj.prototype;_.J.emojiCustomizationEnabledChanged=function(){var p;((p=this.data)==null?0:p.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((p=qd.getCreationTime("emoji-customization-count"))&&p<AZ6&&qd.set("emoji-customization-count","0"),p=Number(qd.get("emoji-customization-count"))||0,p<3&&(this.newnessDotEligible=!0,qd.set("emoji-customization-count",(p+1).toString())),this.newnessDotImpressionCounted=!0)};
_.J.hideNewnessDot=function(){this.newnessDotEligible=!1;qd.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.J.handleReactionsMute=function(p){var y=_.B2(),l=_.fY(206221),q={checkboxData:{state:p?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};y&&_.te(y,l,q);this.reactionsMuted=p};
_.J.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.J.configureRendererStamper=function(){return{"data.emojiFountain":{id:"emoji-fountain",mapping:{emojiFountainViewModel:{component:"yt-emoji-fountain-view-model",properties:{emojiManager:"[[emojiManager]]",isActive:"[[liveReactionsEnabled]]"}}},reuseComponents:!0},"data.reactionControlPanel":{id:"reaction-control-panel",mapping:{reactionControlPanelViewModel:{component:"yt-reaction-control-panel-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.Jh.Object.defineProperties(sj.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var p;return(!((p=this.liveReactionsData)==null||!p.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
sj.prototype.liveReactionsSettingChanged=sj.prototype.liveReactionsSettingChanged;sj.prototype.emojiCustomizationEnabledChanged=sj.prototype.emojiCustomizationEnabledChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],sj.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],sj.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.lQ),_.x("design:type",Object)],sj.prototype,"ytLiveChatReduxBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],sj.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],sj.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",_.pP)],sj.prototype,"emojiManager",void 0);_.H([_.Q(),_.x("design:type",Object)],sj.prototype,"newnessDotEligible",void 0);_.H([_.Q(),_.x("design:type",Object)],sj.prototype,"newnessDotImpressionCounted",void 0);
_.H([_.Q({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:Ky6}),_.x("design:type",Boolean)],sj.prototype,"liveReactionsSetting",void 0);_.H([_.Q({selectorArgs:["data.liveReactionsDataEntityKey"],selector:QmV}),_.x("design:type",Object)],sj.prototype,"liveReactionsData",void 0);_.H([_.Q({value:function(){var p=_.n("enable_lwe_web_mute"),y=qd.get("allow-reactions");return y===void 0?!1:!y&&p}}),
_.x("design:type",Boolean)],sj.prototype,"reactionsMuted",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],sj.prototype,"liveReactionsEnabled",null);_.H([_.gd("data.emojiCustomizationEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sj.prototype,"emojiCustomizationEnabledChanged",null);
_.H([_.gd("liveReactionsEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sj.prototype,"liveReactionsSettingChanged",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],sj);
_.D(sj,"yt-reaction-control-panel-overlay-view-model",function(){if(jvf===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-overlay-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_overlay_view_model.yt.reaction.control.panel.overlay.view.model.css.js--\x3e<div id="reaction-control-panel" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n<div id="emoji-fountain" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;$O6===void 0&&($O6=document.createElement("template"));var q=$O6;l.call(y,q.content.cloneNode(!0),p.content.firstChild);jvf=p}p=jvf;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var ZUu={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(p){var y=this.$.pickers.selected;if(y){_.jR(this.hostElement).removeAttribute(y+"-open");var l="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(l="#picker-buttons",y==="emoji"&&_.jR(this.hostElement).querySelector("#emoji-picker-button")&&(l="#emoji-picker-button"));if(l=_.jR(this.hostElement).querySelector(l).querySelector("#"+y))l.active=!1}l=p;y==p&&(l=null);y!=
p&&_.jR(this.hostElement).setAttribute(p+"-open","");this.$.pickers.selected=l;_.$w(this.hostElement,"yt-live-chat-picker-changed",[l])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var t0=function(){var p=_.w.apply(this,arguments)||this;p.numSentMessages=0;p.timeoutDurationMs=0;p.timeoutMs=0;p.lastTimeoutTimeMs=0;p.pendingMessageId="";p.hasFiredInitialFocusActions=!1;p.isBeforeFocusEnabled=!0;p.id="";p.characterCount=0;p.maxCharacterLimit=0;p.remainingCharacterCount=0;p.inputExpanded=!1;p.buttonOverrides={iconPosition:"icon-only"};p.inReplyPanel=!1;p.countdownRatio=0;p.isTooltipVisible=!1;p.tooltipTimeout=1E4;p.systemIcons=_.n("kevlar_system_icons");p.tallerEmojiPicker=_.n("live_chat_taller_emoji_picker");
p.sendReplyMessageInFlight=!1;p.actionMap={"yt-open-popup-action":"onOpenPopupAction","yt-close-popup-action":"onClosePopupAction","yt-live-chat-disable-before-focus-action":"onDisableBeforeFocus","yt-live-chat-component-replaced":"onComponentReplaced"};p.onResize=function(){p.maybeToggleCharacterCount()};
return p};
_.A(t0,_.w);_.J=t0.prototype;
_.J.configureRendererStamper=function(){return{"data.sendButton":{id:"send-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.pickers":{id:"pickers",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{disableIncrementalLoading:"[[disableEmojiPickerIncrementalLoading]]"}},liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model",liveChatPollEditorPanelRenderer:"yt-live-chat-poll-editor-panel-renderer",
liveChatQnaStartPanelRenderer:"yt-live-chat-qna-start-panel-renderer"}},"data.emojiPickerButton":{id:"emoji-picker-button",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0}}}},"data.pickerButtons":{id:"picker-buttons",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",
properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0},properties:{overrides:"[[buttonOverrides]]"}},reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.interactionMessage":{id:"interaction-message",mapping:{messageRenderer:{component:"yt-live-chat-message-renderer",params:{subtextOnBottom:!0}}}},errorMessage:{id:"error-message",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer",
liveChatTextActionsErrorMessageRenderer:"yt-live-chat-text-actions-error-message-renderer"}}}};
_.J.attached=function(){window.addEventListener("resize",this.onResize)};
_.J.detached=function(){window.removeEventListener("resize",this.onResize)};
_.J.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.J.sendMessage=function(){var p=this,y,l,q,t;return _.h(function(E){if(p.sendDisabled)return E.return();p.isTooltipVisible&&_.$w(p.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(p.data.sendButton&&p.data.sendButton.buttonRenderer){p.input.completeEmojis();y=p.data.sendButton.buttonRenderer.serviceEndpoint;if(!y)return E.return();q=((l=_.G(y,_.zkB))==null?void 0:l.clientIdPrefix)||"";t={client_message_id:q+String(p.numSentMessages++),rich_message:_.sZ(p.input.liveChatRichMessageInput)};
p.pendingMessageId=t.client_message_id;p.inReplyPanel&&(p.sendReplyMessageInFlight=!0);_.ny(p.hostElement,[y,t]);p.input.setLiveChatRichMessageInput(null)}_.rR(E)})};
_.J.handleSendButtonAction=function(p){p.detail.actionName==="yt-service-request"&&(p.stopPropagation(),this.sendMessage())};
_.J.onSendCompleted=function(p,y){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(p=this.get("timeoutDurationUsec",y.data))&&this.handleTimeout(Number(p)/1E3);this.errorMessage=this.get("errorMessage",y.data);this.pendingMessageId=""};
_.J.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.$w(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.J.handlePickerButtonToggle=function(p){p=p.detail.targetId;this.ytPickerBehavior.togglePicker_(p);if(p==="emoji")this.input.focus();else if(p==="qna-start-panel"){var y,l;(y=_.jR(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(l=y.querySelector("#qna-creator-text-input-field"))==null||l.focus()}};
_.J.onComponentReplaced=function(p){var y,l;p.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((y=p.replacement.liveChatMessageInputRenderer)==null?0:(l=y.headerRenderer)==null?0:l.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.J.onEmojiSelect=function(p){this.input.focus();this.input.insertEmoji(p.detail)};
_.J.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.J.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.$w(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.$w(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.J.onOpenPopupAction=function(p,y){var l=this;y===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.$w(l.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.J.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.J.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.J.focusChanged=function(){this.maybeToggleCharacterCount()};
_.J.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var p=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",p>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.J.computeId=function(){return this.data&&this.data.targetId||""};
_.J.computeSendDisabled=function(p,y,l,q){p=!!(!p||y&&p>y||q);(y=_.jR(this.hostElement).querySelector("#send-button"))&&y.children.length&&(y.children[0].disabled=p);return p};
_.J.handleTimeout=function(p){this.timeoutDurationMs=this.timeoutMs=p;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.J.updateTimeout=function(p){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(p-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=p,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.J.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.J.onErrorMessageEdit=function(p){this.input.setLiveChatRichMessageInput(p.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.J.errorMessageChanged=function(){var p=this;_.sU(function(){_.$w(p.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.J.computeAuthorNameColor=function(p){var y;if(_.n("live_chat_author_name_color_usernames")&&(p==null?0:(y=p.authorName)==null?0:y.simpleText))return _.eha(_.hhl(p.authorName.simpleText));if(_.n("live_chat_seed_color_usernames")&&(p==null?0:p.authorSeedColorArgb))return _.eha(_.VZ(p.authorSeedColorArgb));if(_.n("live_chat_colored_usernames"))return"#cc0000";var l;return _.n("live_chat_simple_color_usernames")&&(p==null?0:(l=p.authorName)==null?0:l.simpleText)&&(p==null?0:p.authorUsernameColorLight)&&
(p==null?0:p.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.VZ(p.authorUsernameColorDark):_.VZ(p.authorUsernameColorLight):""};
_.J.onIsTooltipVisibleChanged=function(){var p=_.jR(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){p.hidden=!1;p.setAttribute("role","alert")},0):(p.hidden=!0,p.removeAttribute("role"))};
_.J.onFocusedChanged=function(p){this.inputFocused=p.detail.value};
_.Jh.Object.defineProperties(t0.prototype,{sendDisabled:{configurable:!0,enumerable:!0,get:function(){return this.computeSendDisabled(this.characterCount,this.maxCharacterLimit,this.countdownActive,this.sendReplyMessageInFlight)}},
countdownStrokeDashOffset:{configurable:!0,enumerable:!0,get:function(){return this.countdownRatio*10*2*Math.PI}},
countdownActive:{configurable:!0,enumerable:!0,get:function(){return!!this.countdownRatio}},
hasInteractionMessage:{configurable:!0,enumerable:!0,get:function(){return!!this.data.interactionMessage}},
hasEmojiPickerButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.emojiPickerButton}},
showAvatar:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.data)==null?void 0:(y=p.pickers)==null?void 0:y.find(function(l){return l.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var p=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return p?this.ytRendererBehavior.getSimpleString(p):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
t0.prototype.onIsTooltipVisibleChanged=t0.prototype.onIsTooltipVisibleChanged;t0.prototype.errorMessageChanged=t0.prototype.errorMessageChanged;t0.prototype.onErrorMessageEdit=t0.prototype.onErrorMessageEdit;t0.prototype.onErrorMessageDismiss=t0.prototype.onErrorMessageDismiss;t0.prototype.focusChanged=t0.prototype.focusChanged;t0.prototype.characterCountChanged=t0.prototype.characterCountChanged;t0.prototype.onEmojiSelect=t0.prototype.onEmojiSelect;t0.prototype.handlePickerButtonToggle=t0.prototype.handlePickerButtonToggle;
t0.prototype.onSendError=t0.prototype.onSendError;t0.prototype.onSendCompleted=t0.prototype.onSendCompleted;t0.prototype.sendMessage=t0.prototype.sendMessage;t0.prototype.dataChanged=t0.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],t0.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.V(ZUu.YtPickerBehavior),_.x("design:type",Object)],t0.prototype,"ytPickerBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],t0.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.qC.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],t0.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],t0.prototype,"hasFiredInitialFocusActions",void 0);
_.H([_.Q(),_.x("design:type",Object)],t0.prototype,"isBeforeFocusEnabled",void 0);_.H([_.Q(),_.x("design:type",Object)],t0.prototype,"data",void 0);_.H([_.Q({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.x("design:type",Object)],t0.prototype,"id",void 0);_.H([_.Q(),_.x("design:type",Object)],t0.prototype,"characterCount",void 0);_.H([_.Q(),_.x("design:type",Object)],t0.prototype,"maxCharacterLimit",void 0);
_.H([_.Q(),_.x("design:type",Object)],t0.prototype,"remainingCharacterCount",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],t0.prototype,"inputExpanded",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],t0.prototype,"inputFocused",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],t0.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.H([_.Q(),_.x("design:type",_.cS)],t0.prototype,"participantsManager",void 0);
_.H([_.Q(),_.x("design:type",Object)],t0.prototype,"buttonOverrides",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],t0.prototype,"inReplyPanel",void 0);_.H([_.g("characterCount, maxCharacterLimit, countdownActive"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],t0.prototype,"sendDisabled",null);_.H([_.Q(),_.x("design:type",Object)],t0.prototype,"countdownRatio",void 0);
_.H([_.g("countdownRatio"),_.x("design:type",Number),_.x("design:paramtypes",[])],t0.prototype,"countdownStrokeDashOffset",null);_.H([_.g("countdownRatio"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],t0.prototype,"countdownActive",null);_.H([_.g("data.interactionMessage"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],t0.prototype,"hasInteractionMessage",null);
_.H([_.g("data.emojiPickerButton"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],t0.prototype,"hasEmojiPickerButton",null);_.H([_.g("data, characterCount"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],t0.prototype,"showAvatar",null);_.H([_.g("data.pickers"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],t0.prototype,"hasProductPickerPanelViewModel",null);
_.H([_.Q(),_.x("design:type",Object)],t0.prototype,"errorMessage",void 0);_.H([_.Q(),_.x("design:type",Object)],t0.prototype,"genericErrorMessage",void 0);_.H([_.Q(),_.x("design:type",Object)],t0.prototype,"isTooltipVisible",void 0);_.H([_.Q(),_.x("design:type",Object)],t0.prototype,"tooltipTimeout",void 0);_.H([_.g("data.onInitialFocusCommand"),_.x("design:type",String),_.x("design:paramtypes",[])],t0.prototype,"tooltipMessage",null);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],t0.prototype,"systemIcons",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],t0.prototype,"tallerEmojiPicker",void 0);_.H([_.g("data"),_.x("design:type",String),_.x("design:paramtypes",[])],t0.prototype,"authorNameColor",null);_.H([_.Q(),_.x("design:type",Object)],t0.prototype,"sendReplyMessageInFlight",void 0);_.H([_.rd("#input"),_.x("design:type",_.FKv)],t0.prototype,"input",void 0);
_.H([_.rd("#count"),_.x("design:type",HTMLElement)],t0.prototype,"count",void 0);_.H([_.rd("#input-container"),_.x("design:type",HTMLElement)],t0.prototype,"inputContainer",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],t0.prototype,"dataChanged",null);_.H([_.VU("yt-live-chat-send-message"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],t0.prototype,"sendMessage",null);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[Event,_.RW]),_.x("design:returntype")],t0.prototype,"onSendCompleted",null);_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],t0.prototype,"onSendError",null);
_.H([_.VU("yt-live-chat-icon-toggle-button-renderer-toggle"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],t0.prototype,"handlePickerButtonToggle",null);_.H([_.VU("yt-emoji-select"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],t0.prototype,"onEmojiSelect",null);
_.H([_.gd("characterCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],t0.prototype,"characterCountChanged",null);_.H([_.gd("inputFocused"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],t0.prototype,"focusChanged",null);_.H([_.VU("yt-live-chat-error-message-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],t0.prototype,"onErrorMessageDismiss",null);
_.H([_.VU("yt-live-chat-error-message-edit"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],t0.prototype,"onErrorMessageEdit",null);_.H([_.gd("errorMessage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],t0.prototype,"errorMessageChanged",null);_.H([_.gd("isTooltipVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],t0.prototype,"onIsTooltipVisibleChanged",null);
_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],t0);
_.D(t0,"yt-live-chat-message-input-renderer",function(){if(XtZ===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_renderer.yt.live.chat.message.input.renderer.css.js--\x3e<yt-live-chat-message-input-prompt-header-renderer data="[[data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" hidden$="[[!data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-message-input-prompt-header-renderer><div id="container" class="style-scope yt-live-chat-message-input-renderer"><div id="top" class="style-scope yt-live-chat-message-input-renderer"><yt-img-shadow id="avatar" height="24" hidden$="[[!showAvatar]]" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope yt-live-chat-message-input-renderer"></yt-img-shadow><div id="input-container" class="style-scope yt-live-chat-message-input-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" hidden="" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-author-chip><yt-live-chat-text-input-field-renderer id="input" character-count="{{characterCount}}" data="[[data.inputField.liveChatTextInputFieldRenderer]]" disabled="[[hasInteractionMessage]]" input-expanded="[[inputExpanded]]" is-chat-message-input="" max-character-limit="{{maxCharacterLimit}}" no-underline="" participants-manager="[[participantsManager]]" remaining-character-count="{{remainingCharacterCount}}" on-focused-changed="onFocusedChanged" on-focusin="onInputFocusIn" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-text-input-field-renderer><div id="emoji-picker-button" class="style-scope yt-live-chat-message-input-renderer"></div></div><div id="right" class="style-scope yt-live-chat-message-input-renderer"><div id="count-container" class="style-scope yt-live-chat-message-input-renderer"><div id="count" class="style-scope yt-live-chat-message-input-renderer">[[remainingCharacterCount]]</div></div><div id="message-buttons" class="style-scope yt-live-chat-message-input-renderer"><div id="send-button" countdown-active$="[[countdownActive]]" hidden="[[!characterCount]]" on-yt-action="handleSendButtonAction" class="style-scope yt-live-chat-message-input-renderer"></div><svg id="countdown" countdown-active$="[[countdownActive]]" hidden$="[[!characterCount]]" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="style-scope yt-live-chat-message-input-renderer"><circle id="countdown-background" cx="12" cy="12" r="10" class="style-scope yt-live-chat-message-input-renderer"></circle><circle id="countdown-line" cx="12" cy="12" r="10" stroke-dashoffset$="[[countdownStrokeDashOffset]]" class="style-scope yt-live-chat-message-input-renderer"></circle></svg></div><div id="picker-buttons" hidden="[[characterCount]]" class="style-scope yt-live-chat-message-input-renderer"></div></div></div><div id="error-message" class="style-scope yt-live-chat-message-input-renderer"></div><tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-message-input-renderer"></tp-yt-iron-pages></div><div id="interaction-message" class="style-scope yt-live-chat-message-input-renderer"></div><div id="tooltip-accessibility-text" class="style-scope yt-live-chat-message-input-renderer">[[tooltipMessage]]</div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;v6w===void 0&&(v6w=document.createElement("template"));var q=v6w;l.call(y,q.content.cloneNode(!0),p.content.firstChild);XtZ=p}p=XtZ;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var MB3;var VBa;var Ej=function(){var p=_.w.apply(this,arguments)||this;p.systemIcons=_.n("kevlar_system_icons");p.firedOnClickCommand=!1;p.inReplyPanel=!1;return p};
_.A(Ej,_.w);
Ej.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"}}}};
Ej.prototype.onButtonToggle=function(p){p.target.disabled||this.ytPickerBehavior.togglePicker_(p.detail.targetId)};
Ej.prototype.onClick=function(){var p=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.$w(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return p.firedOnClickCommand=!1},5E3))};
_.Jh.Object.defineProperties(Ej.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.data)==null?void 0:(y=p.panels)==null?void 0:y.find(function(l){return l.liveChatProductPickerPanelViewModel}))!==void 0}}});
Ej.prototype.onButtonToggle=Ej.prototype.onButtonToggle;_.H([_.V(ZUu.YtPickerBehavior),_.x("design:type",Object)],Ej.prototype,"ytPickerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ej.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Ej.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Ej.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Ej.prototype,"systemIcons",void 0);_.H([_.Q({reflectToAttribute:!1}),_.x("design:type",Object)],Ej.prototype,"firedOnClickCommand",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Ej.prototype,"inReplyPanel",void 0);_.H([_.g("data.pickers"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ej.prototype,"hasProductPickerPanelViewModel",null);
_.H([_.VU("yt-live-chat-icon-toggle-button-renderer-toggle"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ej.prototype,"onButtonToggle",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],Ej);
_.D(Ej,"yt-live-chat-restricted-participation-renderer",function(){if(VBa===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-restricted-participation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_restricted_participation_renderer.yt.live.chat.restricted.participation.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-restricted-participation-renderer">\n  <tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-restricted-participation-renderer"></tp-yt-iron-pages>\n  <div id="explanation" class="style-scope yt-live-chat-restricted-participation-renderer">\n    <yt-icon id="icon" hidden$="[[!data.icon]]" icon="[[data.icon.iconType]]" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n    </yt-icon>\n    <div id="body" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n      <div id="message" class="style-scope yt-live-chat-restricted-participation-renderer">[[getSimpleString(data.message)]]</div><div id="message-button" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n    </div>\n    <div id="picker-buttons" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;MB3===void 0&&(MB3=document.createElement("template"));var q=MB3;l.call(y,q.content.cloneNode(!0),p.content.firstChild);VBa=p}p=VBa;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var J0=function(){var p=_.w.apply(this,arguments)||this;p.genericErrorMessage=_.EK("Error, try again.");p.inReplyPanel=!1;p.hideBorder=!1;return p};
_.A(J0,_.w);J0.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}}}}}};
_.Jh.Object.defineProperties(J0,{template:{configurable:!0,enumerable:!0,get:function(){return H8u()}}});
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],J0.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],J0.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],J0.prototype,"genericErrorMessage",void 0);_.H([_.Q(),_.x("design:type",Object)],J0.prototype,"inReplyPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],J0.prototype,"hideBorder",void 0);
_.H([_.z9({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],J0);_.D(J0,"yt-live-chat-engagement-panel-input-renderer",function(){return H8u()},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var gxO,QvE;gxO=_.fY(115994);QvE=_.fY(115993);_.ce=function(p,y,l){var q=this;var t=l.dragDownAction;this.layer=0;this.JSC$22278_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return q.dragDownAction()}}}};
this.JSC$22278_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return q.dragDownAction()}}}};
this.fullscreen=!1;var E=_.Ll();_.gz(E,gxO,this.layer);_.gz(E,QvE,this.layer);this.dragDownAction=function(){t();_.EZ(E,{visualElement:q.fullscreen?gxO:QvE})};
this.gesture=new _.ep(p,y,this.JSC$22278_watchConfig,"pandown");this.attach()};
_.ce.prototype.attach=function(){this.gesture.attach()};
_.ce.prototype.detach=function(){this.gesture.detach()};
_.ce.prototype.update=function(p){this.fullscreen=p;this.gesture.config=p?this.JSC$22278_watchFullScreenConfig:this.JSC$22278_watchConfig};var KP3={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(p){if(p&&p.length==1&&Array.isArray(p[0].loggingUrls)){p=_.Ts.unsafeClone(p[0]);var y=this.macros||{},l=this.getAdModuleClient_();if(!l)return _.PW();p.loggingUrls.forEach(function(q){if(q.baseUrl){var t=q.baseUrl;var E=y;E=E===void 0?{}:E;t=l.getOptions().includes("replaceUrlMacros")?_.oYr(l,"replaceUrlMacros",{url:t,additionalMapping:E}):t;q.baseUrl=t}},this);
p=[p]}return _.ny(this.hostElement,p)},
getAdModuleClient_:function(){var p=_.$o(this);return p?(p=p.getPlayer())?new _.T3(p):null:null}}]};var wUf;var e5=function(){var p=_.w.apply(this,arguments)||this;p.isCollapsed=!1;p.modernPanels=_.n("kevlar_watch_modern_panels");p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return p};
_.A(e5,_.w);_.J=e5.prototype;_.J.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.onDonateTap=function(){var p=this.get("data.donateButton.buttonRenderer.command");if(p){var y=_.B2(),l=this.get("data.donateButton.buttonRenderer.trackingParams");y&&l&&_.te(y,_.Tp(l));this.ytOpenPopupBehavior.openPopup(p)}};
_.J.onShowMore=function(){this.isCollapsed=!1;var p=_.B2(),y=this.get("data.expandButton.buttonRenderer.trackingParams");p&&y&&_.te(p,_.Tp(y))};
_.J.onShowLess=function(){this.isCollapsed=!0};
_.J.dataChanged=function(){_.Ax(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.J.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.J.handleUpdate=function(p){if(p=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",p))this.set("data.startLabel",p.startLabel),this.set("data.endLabel",p.endLabel),this.set("data.progress",p.progress),this.set("data.amountRaisedLabel",p.amountRaisedLabel),this.dataChanged()};
_.J.handleOpenPopupAction=function(p){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",p)&&_.$w(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.J.computeHeaderBackgroundUrl=function(p,y){if(p)return y?p.headerBackgroundDarkUrl:p.headerBackgroundUrl};
_.J.isProgressBarVisible=function(p){return!(!p||p.progress===void 0)};
_.J.headerBackgroundClass=function(){return _.OY("HTML_DIR")==="rtl"?"flip":""};
e5.prototype.dataChanged=e5.prototype.dataChanged;_.H([_.V(_.Ss.YtOpenPopupBehavior),_.x("design:type",Object)],e5.prototype,"ytOpenPopupBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],e5.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],e5.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],e5.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],e5.prototype,"isCollapsed",void 0);_.H([_.Q({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.x("design:type",String)],e5.prototype,"headerBackgroundUrl",void 0);_.H([_.Q(),_.x("design:type",Boolean)],e5.prototype,"isDarkTheme",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],e5.prototype,"modernPanels",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],e5.prototype,"dataChanged",null);_.H([_.k({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],e5);
_.D(e5,"ytd-donation-shelf-renderer",function(){if(wUf!==void 0)return wUf;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="header-text" class="style-scope ytd-donation-shelf-renderer">\n    [[getSimpleString(data.headerTitle)]]\n  </div>\n  <template is="dom-if" if="[[headerBackgroundUrl]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="header-background" class$="[[headerBackgroundClass()]] style-scope ytd-donation-shelf-renderer">\n      <yt-img-shadow delayed-src="[[headerBackgroundUrl]]" height="48" class="style-scope ytd-donation-shelf-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n</div>\n\n<div id="donate-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="title-row" class="style-scope ytd-donation-shelf-renderer">\n    <yt-img-shadow id="campaign-logo" object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-shelf-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-donation-shelf-renderer">\n      <div id="campaign-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignTitle)]]\n      </div>\n      <div id="campaign-subtitle" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignSubtitle)]]\n      </div>\n    </div>\n    <div id="donate-button" on-click="onDonateTap" class="style-scope ytd-donation-shelf-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[isProgressBarVisible(data)]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="progress-bar" class="style-scope ytd-donation-shelf-renderer">\n      <div id="progress-bar-fill" class="style-scope ytd-donation-shelf-renderer"></div>\n    </div>\n    <div id="progress-bar-labels" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string id="progress-bar-start" text="[[data.startLabel]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="progress-bar-end" text="[[data.endLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="amount-raised" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="matching-label" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string split-lines="" text="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n\n<template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="creator-messages-section" class="style-scope ytd-donation-shelf-renderer">\n      <template is="dom-repeat" items="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n        <div class="creator-message style-scope ytd-donation-shelf-renderer">\n          <div class="separator style-scope ytd-donation-shelf-renderer"></div>\n          <div class="creator-message-header style-scope ytd-donation-shelf-renderer">\n            <yt-img-shadow class="avatar style-scope ytd-donation-shelf-renderer" height="26" thumbnail="[[item.thumbnail]]">\n            </yt-img-shadow>\n            <yt-formatted-string class="creator-message-name style-scope ytd-donation-shelf-renderer" text="[[item.title]]">\n            </yt-formatted-string>\n          </div>\n          <div class="creator-message-description style-scope ytd-donation-shelf-renderer">\n            [[getSimpleString(item.description)]]\n          </div>\n        </div>\n      </template>\n    </div>\n  </template>\n\n  <div id="nonprofit-section" class="style-scope ytd-donation-shelf-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-shelf-renderer">\n      <div id="nonprofit-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.nonprofitTitle)]]<span id="verified-icon-wrapper" class="style-scope ytd-donation-shelf-renderer">\u00a0<yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-shelf-renderer" default-to-filled="true" icon="check_circle"></yt-icon>\n        </span>\n      </div>\n    </div>\n    <div id="nonprofit-subtitle" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="nonprofit-description" class="style-scope ytd-donation-shelf-renderer">\n      [[getSimpleString(data.nonprofitDescription)]]\n    </div>\n  </div>\n</template>\n\n<div id="collapse-controls-section" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-more" on-click="onShowMore" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showMoreText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-less" on-click="onShowLess" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showLessText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return wUf=p},{mode:1});var iUO;var rZX=function(){return _.w.apply(this,arguments)||this};
_.A(rZX,_.w);_.H([_.Q(),_.x("design:type",Object)],rZX.prototype,"data",void 0);_.H([_.k({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],rZX);
_.D(rZX,"ytd-donation-unavailable-renderer",function(){if(iUO!==void 0)return iUO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-unavailable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-donation-unavailable-renderer">\n  <yt-formatted-string id="message" text="[[data.text]]" class="style-scope ytd-donation-unavailable-renderer">\n  </yt-formatted-string>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return iUO=p},{mode:1});var S$X;var h0=function(){return _.w.apply(this,arguments)||this};
_.A(h0,_.w);h0.prototype.computeIconType=function(p){return p?"yt-icons:"+p.toLowerCase():null};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],h0.prototype,"data",void 0);_.H([_.k({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],h0);
_.D(h0,"ytd-limited-state-message-renderer",function(){if(S$X!==void 0)return S$X;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-limited-state-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-limited-state-message-renderer">\n  <yt-icon icon="[[computeIconType(data.icon.iconType)]]" class="style-scope ytd-limited-state-message-renderer"></yt-icon>\n  <yt-formatted-string id="title" text="[[data.headerText]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-limited-state-message-renderer">\n  <ytd-button-renderer data="[[data.learnMoreButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer"></ytd-button-renderer>\n  <ytd-button-renderer data="[[data.goHomeButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer">\n  </ytd-button-renderer>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return S$X=p},{mode:1});var FP6;var CJ=function(){return _.w.apply(this,arguments)||this};
_.A(CJ,_.w);CJ.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
CJ.prototype.onTap=function(p){var y=this.data&&this.data.endpoint;y&&!_.WN(_.Jx(p),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Ub(this.hostElement,"yt-navigate",{endpoint:y})};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],CJ.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],CJ.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],CJ.prototype,"data",void 0);_.H([_.k({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],CJ);
_.D(CJ,"ytd-autotagging-metadata-renderer",function(){if(FP6!==void 0)return FP6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="outer-container" on-tap="onTap" class="style-scope ytd-autotagging-metadata-renderer">\n  <ytd-thumbnail circular="" data="[[data]]" class="style-scope ytd-autotagging-metadata-renderer">\n  </ytd-thumbnail>\n  <div id="right-container" class="style-scope ytd-autotagging-metadata-renderer">\n    <div id="title-container" class="style-scope ytd-autotagging-metadata-renderer">\n      <div id="title" class="style-scope ytd-autotagging-metadata-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-autotagging-metadata-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="subscribe-button" class="style-scope ytd-autotagging-metadata-renderer"></div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return FP6=p},{mode:1});var LP6;var uh=function(){return _.w.apply(this,arguments)||this};
_.A(uh,_.w);uh.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],uh.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],uh.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],uh.prototype,"data",void 0);_.H([_.k({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],uh);
_.D(uh,"ytd-autotagging-metadata-row-renderer",function(){if(LP6!==void 0)return LP6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-autotagging-metadata-row-renderer">\n  [[getSimpleString(data.header)]]\n</div>\n<div id="contents" class="style-scope ytd-autotagging-metadata-row-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return LP6=p},{mode:1});var kMf;var NrX;var Rm=function(){var p=_.w.apply(this,arguments)||this;p.engagementPanelContent=!1;return p};
_.A(Rm,_.w);Rm.prototype.computeHasDividerLine=function(p,y){return p&&!y};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Rm.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Rm.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.x("design:type",Boolean)],Rm.prototype,"hasDividerLine",void 0);_.H([_.Q(),_.x("design:type",Object)],Rm.prototype,"engagementPanelContent",void 0);
_.H([_.k({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Rm);
_.D(Rm,"ytd-metadata-row-header-renderer",function(){if(NrX!==void 0)return NrX;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="content" class="style-scope ytd-metadata-row-header-renderer">\n  <yt-formatted-string class="content style-scope ytd-metadata-row-header-renderer" text="[[data.content]]"></yt-formatted-string>\n</h4>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return NrX=p},{mode:1});var DOm;var We=function(){return _.w.apply(this,arguments)||this};
_.A(We,_.w);We.prototype.computeHasDividerLine=function(p){return p};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],We.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.x("design:type",Boolean)],We.prototype,"hasDividerLine",void 0);_.H([_.k({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],We);
_.D(We,"ytd-metadata-row-renderer",function(){if(DOm!==void 0)return DOm;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="title" hidden$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-metadata-row-renderer"></yt-formatted-string>\n</h4>\n<div id="content" with-extra-margin$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <template is="dom-repeat" items="[[data.contents]]" class="style-scope ytd-metadata-row-renderer">\n    <yt-formatted-string class="content content-line-height-override style-scope ytd-metadata-row-renderer" text="[[item]]">\n    </yt-formatted-string>\n  </template>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return DOm=p},{mode:1});var HUE;var am=function(){return _.w.apply(this,arguments)||this};
_.A(am,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],am.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],am.prototype,"data",void 0);_.H([_.k({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],am);
_.D(am,"ytd-metadata-with-image-row-renderer",function(){if(HUE!==void 0)return HUE;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-with-image-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-metadata-with-image-row-renderer" href$="[[computeHref_(data.thumbnailEndpoint)]]" data="[[data.thumbnailEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="83" class="style-scope ytd-metadata-with-image-row-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope ytd-metadata-with-image-row-renderer">\n    <template is="dom-repeat" as="content" items="[[data.contents]]" strip-whitespace="" class="style-scope ytd-metadata-with-image-row-renderer">\n      <span class="content-text style-scope ytd-metadata-with-image-row-renderer">[[getSimpleString(content)]]</span>\n    </template>\n  </div>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return HUE=p},{mode:1});var Tr3;var my=function(){var p=_.w.apply(this,arguments)||this;p.rounded=!0;p.fixie=!1;p.fullWidth=!1;return p};
_.A(my,_.w);_.J=my.prototype;_.J.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.onDataChanged=function(){var p=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(y){p.onEndpointLinkKeyPress(y)}))};
_.J.onEndpointLinkKeyPress=function(p){p.target===this.endpointLink&&p.keyCode===13&&_.Ub(this.hostElement,"click")};
_.J.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var p;if((p=this.data)==null?0:p.endpoint)_.Gf(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.J.onYtNavigate=function(p){this.endpointHref||(p.stopPropagation(),p.preventDefault())};
_.J.onInformationButtonContainerClick=function(p){p.target.id!=="information-button-container"&&(p.stopPropagation(),p.preventDefault())};
_.J.computeStyle=function(p){return p};
_.J.computeIsThumbnailStyle=function(p){return p==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.J.computeThumbnailWidth=function(p){switch(p){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.J.computeThumbnailObjectFit=function(p){switch(p){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Jh.Object.defineProperties(my.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?0:p.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
my.prototype.onYtNavigate=my.prototype.onYtNavigate;my.prototype.onClick=my.prototype.onClick;my.prototype.onDataChanged=my.prototype.onDataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],my.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],my.prototype,"componentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],my.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],my.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],my.prototype,"componentStyle",void 0);_.H([_.Q({computed:"computeIsThumbnailStyle(data.style)"}),_.x("design:type",Boolean)],my.prototype,"isThumbnailStyle",void 0);_.H([_.Q({computed:"computeThumbnailObjectFit(data.style)"}),_.x("design:type",String)],my.prototype,"thumbnailObjectFit",void 0);
_.H([_.Q({computed:"computeThumbnailWidth(data.style)"}),_.x("design:type",Number)],my.prototype,"thumbnailWidth",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],my.prototype,"rounded",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],my.prototype,"fixie",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],my.prototype,"fullWidth",void 0);_.H([_.rd("#endpoint-link"),_.x("design:type",HTMLAnchorElement)],my.prototype,"endpointLink",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],my.prototype,"onDataChanged",null);_.H([_.g("data.endpoint"),_.x("design:type",Object),_.x("design:paramtypes",[])],my.prototype,"endpointHref",null);_.H([_.VU("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],my.prototype,"onClick",null);
_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],my.prototype,"onYtNavigate",null);_.H([_.k({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],my);
_.D(my,"ytd-rich-metadata-renderer",function(){if(Tr3!==void 0)return Tr3;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-rich-metadata-renderer" href$="[[endpointHref]]" data="[[data.endpoint]]">\n  <template is="dom-if" restamp="" if="[[isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-thumbnail>\n  </template>\n  <template is="dom-if" restamp="" if="[[!isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <div id="thumbnail" class="style-scope ytd-rich-metadata-renderer">\n      <yt-img-shadow object-fit="[[thumbnailObjectFit]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n  <div id="text-container" class="style-scope ytd-rich-metadata-renderer">\n    <div id="title" class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" hidden$="[[!data.subtitle]]" class="style-scope ytd-rich-metadata-renderer">\n      [[getSimpleString(data.subtitle)]]\n    </div>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="call-to-action" class="style-scope ytd-rich-metadata-renderer">\n      <div class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.callToAction)]]</div>\n      <yt-icon hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-icon>\n    </div>\n  </div>\n  <div id="information-button-container" on-click="onInformationButtonContainerClick" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-metadata-renderer"></div>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Tr3=p},{mode:_.ZS("kevlar_poly_si_batch_j075")?1:2});var xOE;var Uj=function(){var p=_.w.apply(this,arguments)||this;p.fixie=!1;p.fullWidth=!1;return p};
_.A(Uj,_.w);Uj.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Uj.prototype.computeHasDividerLine=function(p){return p};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Uj.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Uj.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.x("design:type",Boolean)],Uj.prototype,"hasDividerLine",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Uj.prototype,"fixie",void 0);_.H([_.Q(),_.x("design:type",Object)],Uj.prototype,"fullWidth",void 0);
_.H([_.k({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Uj);
_.D(Uj,"ytd-rich-metadata-row-renderer",function(){if(xOE!==void 0)return xOE;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-rich-metadata-row-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return xOE=p},{mode:1});var j5=function(){var p=_.w.apply(this,arguments)||this;p.engagementPanelContent=!1;p.fixie=!1;p.fullWidth=!1;return p};
_.A(j5,_.w);
j5.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"}}}};
j5.prototype.computeCollapsibleItems=function(p,y,l){return p===void 0||y===void 0||l===void 0||l?[]:p.slice(y)};
j5.prototype.computeAlwaysShownItems=function(p,y){return p&&p.length?p.slice(0,y):[]};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],j5.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],j5.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],j5.prototype,"data",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],j5.prototype,"collapsed",void 0);
_.H([_.Q({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.x("design:type",Array)],j5.prototype,"alwaysShownItems",void 0);_.H([_.Q({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.x("design:type",Array)],j5.prototype,"collapsibleItems",void 0);_.H([_.Q(),_.x("design:type",Object)],j5.prototype,"engagementPanelContent",void 0);_.H([_.Q(),_.x("design:type",Object)],j5.prototype,"fixie",void 0);
_.H([_.Q(),_.x("design:type",Object)],j5.prototype,"fullWidth",void 0);_.H([_.k({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],j5);
_.D(j5,"ytd-metadata-row-container-renderer",function(){if(kMf!==void 0)return kMf;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="always-shown" class="style-scope ytd-metadata-row-container-renderer"></div>\n<div id="collapsible" hidden="[[collapsed]]" class="style-scope ytd-metadata-row-container-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return kMf=p},{mode:1});var BrX;var bh=function(){var p=_.w.apply(this,arguments)||this;p.currentPageUrl="";p.baseUrl="";p.isHiddenByUser=null;p.hidden=!1;p.showAboveScrim=!1;p.watchNextGrid=_.n("kevlar_watch_grid");p.modernButtons=_.n("web_modern_buttons");p.roundedContainer=!0;p.noBorder=!1;p.roundBackground=!_.n("live_chat_round_background_killswitch");p.overflowHideChat=_.n("live_chat_overflow_hide_chat");p.forceDarkTheme=!1;p.theaterWatchWhile=!1;p.isListeningForPlayerProgress=!1;p.JSC$22314_playerEvents=new Map;p.isFrameReady=
!1;p.player=null;p.actionMap={"yt-set-live-chat-collapsed-state-action":"setCollapsedState","yt-forward-redux-action-to-live-chat-iframe":"forwardReduxActionToIframe","yt-dark-theme-action":"onDarkThemeAction","yt-light-theme-action":"onLightThemeAction","yt-signal-action-close-pdg-buy-flow":"onClosePdgBuyFlow"};return p};
_.A(bh,_.w);_.J=bh.prototype;_.J.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.jN(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.J.created=function(){var p=this;this.handleIframeEventListener=function(y){p.handleIframeEvent(y)};
this.handleKeyboardEventListener=function(y){p.handleKeyboardEvent(y)};
this.JSC$22314_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22314_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22314_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22314_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22314_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.J.attached=function(){window.addEventListener("message",this.handleIframeEventListener);window.addEventListener("keydown",this.handleKeyboardEventListener);window.addEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl=window.location.href;this.setupPlayerProgressRelay();this.collapsedChanged()};
_.J.detached=function(){window.removeEventListener("message",this.handleIframeEventListener);window.removeEventListener("keydown",this.handleKeyboardEventListener);window.removeEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl="";this.isListeningForPlayerProgress=!1;this.setPlayer(null);this.isFrameReady=!1};
_.J.computeBaseUrl=function(p){var y="/live_chat";this.isChatReplay()&&(y="/live_chat_replay");return _.$D(_.U0(_.mt(_.YP(p),y),null),"").toString()};
_.J.dataChanged=function(){_.n("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.J.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var p=this.url;if(this.isChatReplay()&&this.player){var y=Math.floor(this.player.getProgressState().current*1E3);p=_.pr(_.YP(p),"playerOffsetMs",y.toString()).toString()}y=this.chatframe;try{var l=p==="about:blank"?_.ARr:_.XX(p),q=y.contentDocument.location,t=_.zB(l);t!==void 0&&q.replace(t)}catch(E){y.src=p}}};
_.J.collapsedChanged=function(){_.Ub(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.J.handleIframeEvent=function(p){if(p&&this.baseUrl.startsWith(p.origin)&&p.source===this.chatframe.contentWindow&&_.yQ(p.data))if(p.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(p);else if(p.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(p.data["yt-show-feedback-dialog"]){var y=_.WC().resolve(_.RK(_.oj$));if(y){var l=p.ports,q;l&&l.length&&(q=function(){l[0].postMessage({})});
p=p.data["yt-show-feedback-dialog"];y.showFeedbackDialog(p.customProductData,p.feedbackContent,q,p.bucket)}}else if(p.data["yt-show-survey"])_.Ub(this.hostElement,"yt-show-survey",p.data["yt-show-survey"]);else if(p.data["yt-purchase-membership"])_.WC().resolve(_.aK).resolveCommand(p.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(p.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(p.data["yt-tunnel-out-live-service-request"]);else if(p.data["yt-user-activity"])_.uG();
else if(p.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(p.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(p.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(p.data["yt-open-popup"]);else if(p.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(p.data["yt-log-flow-logging-event-command"]);else if(p.data["yt-hide-live-chat"])this.onShowHideChat();else p.data["yt-report-moderation-state-log"]&&
this.player&&(y={cpn:this.player.getVideoData().cpn},_.TX("liveChatBeingModerated",y))};
_.J.attachLiveChatResponseVeTrackingParams=function(p){p=_.Tp(p);var y=_.B2(),l=_.I4("liveChatRenderer.trackingParams",this.data);y&&l&&_.pW(y,_.Tp(l),p)};
_.J.handleBuyflowMessages=function(p){var y=p.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,l=p.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,q=p.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.oMo(_.m8(_.Es),y.replace(/-/g,"+").replace(/_/g,"/"),function(t){p.ports[0].postMessage({success:!0,buyFlowResponse:t})},void 0,function(t){p.ports[0].postMessage({success:!1,
error:t&&t.message||"Buyflow rejected without error."})},_.w$().get("hl"),void 0,function(){p.ports[0].postMessage({closed:!0})},l,q)};
_.J.setupPlayerProgressRelay=function(){var p=this;if(!this.isListeningForPlayerProgress){var y=_.jo();y!=null&&y.getPlayerPromise&&(y.getPlayerPromise().then(function(l){p.playerApiReady(l)}),this.isListeningForPlayerProgress=!0)}};
_.J.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.J.playerApiReady=function(p){this.setPlayer(p)};
_.J.playerProgressHandler=function(){if(this.player){var p=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":p.current})}};
_.J.playerAdStartHandler=function(p){this.postToContentWindow({"yt-player-ad-start":p})};
_.J.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.J.playerStateChangeHandler=function(p){this.postToContentWindow({"yt-player-state-change":p})};
_.J.setPlayer=function(p){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22314_playerEvents);p&&(this.player=p,this.ytPlayerListenerBehavior.listenToPlayerEvents(p,this.JSC$22314_playerEvents),_.Ub(this.hostElement,"player-api-ready"))};
_.J.liveChatPageUrl=function(p,y,l,q){return!l||y?"about:blank":l.liveChatRenderer?(y=_.YP(this.currentPageUrl).JSC$9968_queryData_,G0O(y),p=_.YP(p),y.add("continuation",l.liveChatRenderer.continuations[0].reloadContinuationData.continuation),l=_.HI()==="USER_INTERFACE_THEME_DARK",(q||l)&&y.add("dark_theme","true"),_.U0(p,y),q=_.YP(p.toString()),l=q.JSC$9968_queryData_,"SESSION_INDEX"in _.XF&&(l.add("authuser",_.OY("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.XF&&l.add("pageId",_.OY("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.XF&&l.add("sdc",_.OY("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),q.toString()):""};
_.J.isCollapsed=function(p,y){return y!==null?y:this.isChatReplay()||p&&p.conversationBarRenderer&&p.conversationBarRenderer.availabilityMessage?!0:p?p.liveChatRenderer?p.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.n("live_chat_hide_premiere_replay_message")||p.conversationBarRenderer&&p.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.J.isHidden=function(p,y,l){var q=y&&y.conversationBarRenderer&&y.conversationBarRenderer.availabilityMessage,t=y&&y.liveChatRenderer&&y.liveChatRenderer.showHideButton,E=y&&y.liveChatRenderer&&y.liveChatRenderer.showButton;return l&&p&&!q&&!E||!l&&p&&!q&&!t?!0:y&&y.liveChatRenderer&&y.liveChatRenderer.initialDisplayState?y.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.J.computeButtonOverride=function(p,y){if(p&&y)return{type:"outline"}};
_.J.setCollapsedState=function(p){_.G(p,_.L4U)&&(this.isHiddenByUser=!!_.G(p,_.L4U).collapsed,!this.isHiddenByUser&&_.n("enable_teaser_framework_web_client")&&_.$w(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.J.forwardReduxActionToIframe=function(p){this.postToContentWindow({"yt-live-chat-forward-redux-action":p})};
_.J.onLoopRangeChange=function(p){this.showAboveScrim=!(p==null||!p.postId)};
_.J.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.J.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.J.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.J.sendDarkThemePostMessage=function(p){this.postToContentWindow({"yt-live-chat-set-dark-theme":p})};
_.J.onLiveChatBuyFlowCallback=function(p){this.postToContentWindow({"yt-live-chat-buy-flow-callback":p})};
_.J.handleKeyboardEvent=function(p){(0,_.Ts.containsValue)(n6X,p.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:p.type,keyCode:p.keyCode}})};
_.J.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.J.postToContentWindow=function(p){if(this.isFrameReady)try{var y=window.location.protocol+"//"+window.location.host,l;(l=this.chatframe)!=null&&l.contentWindow?this.chatframe.contentWindow.postMessage(p,y):_.vs(new _.SM("Tried posting a message to an iframe with no content window",p))}catch(q){_.Bs(q)}};
_.J.shouldHideChatFrame=function(p){return p&&_.n("hide_live_chat_button_when_collapsed")};
_.Jh.Object.defineProperties(bh.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.n("live_chat_overflow_hide_chat")||_.n("web_watch_chat_hide_button_killswitch"))return _.n("live_chat_overflow_hide_chat");var p,y,l,q;return!!((p=this.data)==null?0:(y=p.liveChatRenderer)==null?0:(l=y.header)==null?0:(q=l.liveChatHeaderRenderer)==null?0:q.collapseButton)}}});
bh.prototype.collapsedChanged=bh.prototype.collapsedChanged;bh.prototype.urlChanged=bh.prototype.urlChanged;bh.prototype.dataChanged=bh.prototype.dataChanged;bh.prototype.onShowHideChat=bh.prototype.onShowHideChat;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],bh.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],bh.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],bh.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.c8.YtPlayerListenerBehavior),_.x("design:type",_.eE)],bh.prototype,"ytPlayerListenerBehavior",void 0);_.H([_.V(_.Ss.YtOpenPopupBehavior),_.x("design:type",Object)],bh.prototype,"ytOpenPopupBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],bh.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],bh.prototype,"currentPageUrl",void 0);
_.H([_.Q({computed:"computeBaseUrl(currentPageUrl,data)"}),_.x("design:type",Object)],bh.prototype,"baseUrl",void 0);_.H([_.Q({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.x("design:type",String)],bh.prototype,"url",void 0);_.H([_.Q(),_.x("design:type",Object)],bh.prototype,"isHiddenByUser",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.x("design:type",Object)],bh.prototype,"hidden",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.x("design:type",Boolean)],bh.prototype,"collapsed",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.x("design:type",Boolean)],bh.prototype,"hideChatFrame",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],bh.prototype,"showAboveScrim",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],bh.prototype,"watchNextGrid",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],bh.prototype,"modernButtons",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],bh.prototype,"roundedContainer",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],bh.prototype,"noBorder",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],bh.prototype,"roundBackground",void 0);
_.H([_.Q({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.x("design:type",Object)],bh.prototype,"toggleButtonOverride",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],bh.prototype,"overflowHideChat",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],bh.prototype,"forceDarkTheme",void 0);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],bh.prototype,"enableShowWithoutHideChatButton",null);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],bh.prototype,"theaterWatchWhile",void 0);_.H([_.rd("#chatframe"),_.x("design:type",HTMLIFrameElement)],bh.prototype,"chatframe",void 0);_.H([_.VU("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bh.prototype,"onShowHideChat",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bh.prototype,"dataChanged",null);
_.H([_.gd("url"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bh.prototype,"urlChanged",null);_.H([_.gd("collapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bh.prototype,"collapsedChanged",null);_.H([_.k({is:"ytd-live-chat-frame",disableElementRegistration:!0})],bh);
_.D(bh,"ytd-live-chat-frame",function(){if(BrX!==void 0)return BrX;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-frame--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iframe frameborder="0" scrolling="no" id="chatframe" class="style-scope ytd-live-chat-frame"></iframe>\n<template is="dom-if" if="[[data.conversationBarRenderer.availabilityMessage]]" class="style-scope ytd-live-chat-frame">\n  <ytd-message-renderer data="[[data.conversationBarRenderer.availabilityMessage.messageRenderer]]" class="style-scope ytd-live-chat-frame">\n  </ytd-message-renderer>\n</template>\n<template is="dom-if" if="[[!enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" class="style-scope ytd-live-chat-frame">\n    <ytd-toggle-button-renderer data="[[data.liveChatRenderer.showHideButton.toggleButtonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" class="style-scope ytd-live-chat-frame">\n    </ytd-toggle-button-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" hidden="[[!collapsed]]" class="style-scope ytd-live-chat-frame">\n    <ytd-button-renderer data="[[data.liveChatRenderer.showButton.buttonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" on-click="onShowHideChat" class="style-scope ytd-live-chat-frame">\n    </ytd-button-renderer>\n  </div>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return BrX=p},{mode:1});var fVf;var nJ=function(){var p=_.w.apply(this,arguments)||this;p.modern=_.n("web_modern_buttons");p.buttonOverrides={style:"call-to-action",type:"filled"};return p};
_.A(nJ,_.w);nJ.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=_.z5(this.data.backgroundColor)))};
nJ.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var p=this.getFormattedStringLoggingDirectives(this.data.headline);p&&this.rendererBehavior.logExplicitClick(p)}};
nJ.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var p=this.getFormattedStringLoggingDirectives(this.data.description);p&&this.rendererBehavior.logExplicitClick(p)}};
nJ.prototype.getFormattedStringLoggingDirectives=function(p){return p&&p.runs&&p.runs.length>0&&p.runs[0]&&p.runs[0].loggingDirectives?p.runs[0].loggingDirectives:null};
nJ.prototype.dataChanged=nJ.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],nJ.prototype,"rendererBehavior",void 0);_.H([_.V(KP3.YtMacroReplacementBehavior),_.x("design:type",Object)],nJ.prototype,"macroReplacementBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],nJ.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],nJ.prototype,"navigationEndpoint",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],nJ.prototype,"enableColors",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],nJ.prototype,"modern",void 0);_.H([_.Q(),_.x("design:type",Object)],nJ.prototype,"buttonOverrides",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nJ.prototype,"dataChanged",null);_.H([_.k({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],nJ);
_.D(nJ,"ytd-action-basic-immersive-content-renderer",function(){if(fVf!==void 0)return fVf;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-basic-immersive-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="icon" hidden="[[!data.iconImage]]" thumbnail="[[data.iconImage]]" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-img-shadow>\n<yt-formatted-string id="headline" text="[[data.headline]]" on-click="onHeadlineClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<yt-formatted-string id="desc" text="[[data.description]]" on-click="onDescriptionClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<ytd-button-renderer id="action" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope ytd-action-basic-immersive-content-renderer">\n</ytd-button-renderer>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return fVf=p},{mode:1});var vxf;var XUw;var Gz=function(){return _.w.apply(this,arguments)||this};
_.A(Gz,_.w);Gz.prototype.dataChanged=function(){var p;((p=this.data)==null?void 0:p.backgroundColor)!==void 0&&_.Ax(this.hostElement,{"--bgu-color":_.z5(this.data.backgroundColor)})};
Gz.prototype.onImageTileClick=function(){var p;((p=this.data)==null?0:p.navigationEndpoint)&&_.Ub(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var y;((y=this.data)==null?0:y.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Jh.Object.defineProperties(Gz.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var p;if(((p=this.data)==null?void 0:p.objectFit)!==void 0)switch(this.data.objectFit){case "OBJECT_FIT_CONTAIN":return"CONTAIN";case "OBJECT_FIT_COVER":return"COVER";case "OBJECT_FIT_FILL":return"FILL"}return null}},
hasTileMetadata:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var p,y,l;if(((p=this.data)==null?void 0:(y=p.detailsLine)==null?void 0:y.texts)!=null&&((l=this.data)==null?void 0:l.detailsLine.texts.length)>0){var q;return(q=this.data)==null?void 0:q.detailsLine.texts.map(function(t){return t.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var p,y,l;if(((p=this.data)==null?void 0:(y=p.optionalDetailsLine)==null?void 0:y.texts)!=null&&((l=this.data)==null?void 0:l.optionalDetailsLine.texts.length)>0){var q;return(q=this.data)==null?void 0:q.optionalDetailsLine.texts.map(function(t){return t.text}).join("")}return null}}});
Gz.prototype.dataChanged=Gz.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Gz.prototype,"rendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Gz.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Gz.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("data.backgroundColor"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Gz.prototype,"hasBackgroundColor",null);
_.H([_.g("data.objectFit"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gz.prototype,"getObjectFit",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data.tileRenderingStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Gz.prototype,"hasTileMetadata",null);_.H([_.g("data.detailsLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gz.prototype,"getSecondaryDetails",null);
_.H([_.g("data.optionalDetailsLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gz.prototype,"getOptionalDetails",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gz.prototype,"dataChanged",null);_.H([_.k({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Gz);
_.D(Gz,"ytd-image-tile-renderer",function(){if(XUw!==void 0)return XUw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <button class="remove-default-button-style background-adjusted style-scope ytd-image-tile-renderer" on-click="onImageTileClick">\n      <yt-img-shadow class="thumbnail style-scope ytd-image-tile-renderer" aria-label$="[[data.image.thumbnail.accessibility.accessibility_data.label]]" hidden="[[!data.image]]" object-fit="[[getObjectFit]]" thumbnail="[[data.image.thumbnail]]"></yt-img-shadow>\n      <div class="badge style-scope ytd-image-tile-renderer" hidden="[[!data.imageBadge]]">\n        <yt-img-shadow class="badge-image style-scope ytd-image-tile-renderer" thumbnail="[[data.imageBadge.thumbnail]]"></yt-img-shadow>\n      </div>\n      <div class="metadata style-scope ytd-image-tile-renderer" hidden="[[!hasTileMetadata]]">\n        <div class="headline style-scope ytd-image-tile-renderer">[[data.headline.simpleText]]</div>\n        <div class="secondary-details style-scope ytd-image-tile-renderer">[[getSecondaryDetails]]</div>\n        <div class="price style-scope ytd-image-tile-renderer">[[getOptionalDetails]]</div>\n      </div>\n </button>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return XUw=p},{mode:1});var dOa;var Pe=function(){return _.w.apply(this,arguments)||this};
_.A(Pe,_.w);Pe.prototype.getOpenLinkIcon=function(){return _.n("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
Pe.prototype.onSitelinkTap=function(){_.Ub(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.n("kevlar_command_handler_migration_killswitch"))_.Gf(this.hostElement,this.data.clickCommands,this.hostElement);else for(var p=_.c(this.data.clickCommands),y=p.next();!y.done;y=p.next())this.ytComponentBehavior.resolveCommand(y.value)};
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Pe.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Pe.prototype,"rendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Pe.prototype,"data",void 0);_.H([_.k({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],Pe);
_.D(Pe,"ytd-sitelink-renderer",function(){if(dOa!==void 0)return dOa;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sitelink-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-sitelink-renderer">\n  <button id="clickable-area" class="remove-default-button-style style-scope ytd-sitelink-renderer" on-tap="onSitelinkTap">\n    <div id="sitelink" class="style-scope ytd-sitelink-renderer">\n      <span class="style-scope ytd-sitelink-renderer">[[data.text.text]]</span>\n      <yt-icon id="open-icon" icon="[[getOpenLinkIcon()]]" class="style-scope ytd-sitelink-renderer"></yt-icon>\n    </div>\n    <div id="description-texts" class="style-scope ytd-sitelink-renderer">\n      <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-sitelink-renderer">\n        <div id="desc" class="style-scope ytd-sitelink-renderer">[[item.text]]</div>\n      </template>\n    </div>\n  </button>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return dOa=p},{mode:1});var A0=function(){var p=_.w.apply(this,arguments)||this;p.paddingFix=_.n("enable_ads_web_ep_buenos_aires_and_padding_fix");return p};
_.A(A0,_.w);A0.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"}}}};
A0.prototype.dataChanged=function(){var p=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(y){y.clickTrackingParams&&delete y.clickTrackingParams;p.ytMacroReplacementBehavior.sendServiceRequestAction([y])})};
A0.prototype.shouldHideFooter=function(p){return!(p&&_.n("use_ads_engagement_panel_desktop_footer_cta"))};
_.Jh.Object.defineProperties(A0.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.data)==null?void 0:p.imageTileRenderers)===void 0||((y=this.data)==null?void 0:y.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(l){var q;return(q=_.G(l,VTT))==null?void 0:q.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.data)==null?void 0:p.imageTileRenderers)===void 0||((y=this.data)==null?void 0:y.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(l){var q;return((q=_.G(l,VTT))==null?void 0:q.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
A0.prototype.dataChanged=A0.prototype.dataChanged;_.H([_.V(KP3.YtMacroReplacementBehavior),_.x("design:type",Object)],A0.prototype,"ytMacroReplacementBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],A0.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],A0.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],A0.prototype,"paddingFix",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("data.imageTileRenderers"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],A0.prototype,"removeBorderFromImageTiles",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data.imageTileRenderers"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],A0.prototype,"useFooteredMetadataRenderingStyle",null);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],A0.prototype,"dataChanged",null);_.H([_.k({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],A0);
_.D(A0,"ytd-action-engagement-panel-content-renderer",function(){if(vxf!==void 0)return vxf;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="sitelinks" hidden="[[!data.sitelinkRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n  <div id="image-tiles" hidden="[[!data.imageTileRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n<div id="footer" hidden="[[shouldHideFooter(data.actionButton)]]" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="action" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return vxf=p},{mode:1});var OUX;var oxX=_.aF(function(p){var y=p.data;var l=p.customCommandResolver;return _.R("ad-grid-card-image-full-metadata-view-model",{class:function(){var q;return((q=y().interaction)==null?0:q.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.mR(_.Ct({visibilityCallback:function(q){var t,E=(t=y().interaction)==null?void 0:t.onFirstVisible;q&&E&&_.tb(E)},
showOption:_.mT}),_.Ew(function(){return y().interaction},l)),
"aria-label":function(){var q,t;return(q=y().interaction)==null?void 0:(t=q.accessibility)==null?void 0:t.label}},_.R("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.R(_.di,{data:function(){return y().adImage}},{adImageViewModel:function(q){return _.R(_.FU,{data:q.data,
customCommandResolver:l})}})),_.R("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.R(_.W,{cond:function(){return y().headline},
then:function(q){return _.R(_.CF,{text:q,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.R(_.W,{cond:function(){return y().detailsLine},
then:function(q){return _.R("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.R(_.di,{data:q},{adDetailsLineViewModel:function(t){return _.R(_.AI,{data:t.data,customCommandResolver:l,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.R(_.W,{cond:function(){return y().secondaryDetailsLine},
then:function(q){return _.R("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.R(_.di,{data:q},{adDetailsLineViewModel:function(t){return _.R(_.AI,{data:t.data,customCommandResolver:l,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"oj");var zrX=_.aF(function(p){var y=p.data;var l=p.customCommandResolver;return _.R("ad-grid-card-image-view-model",{class:function(){var q;return((q=y().interaction)==null?0:q.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.mR(_.Ct({visibilityCallback:function(q){var t,E=(t=y().interaction)==null?void 0:t.onFirstVisible;q&&E&&_.tb(E)},
showOption:_.mT}),_.Ew(function(){return y().interaction},l)),
"aria-label":function(){var q,t;return(q=y().interaction)==null?void 0:(t=q.accessibility)==null?void 0:t.label}},_.R(_.di,{data:function(){return y().adImage}},{adImageViewModel:function(q){return _.R(_.FU,{data:q.data,
customCommandResolver:l})}}),_.R("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.R(_.di,{data:function(){return y().adCardBadge}},{adCardBadgeViewModel:_.ber})))},"pj");var Y$X=_.aF(function(p){var y=p.data;var l=p.customCommandResolver;return _.R("ad-grid-card-text-view-model",{class:function(){var q;return((q=y().interaction)==null?0:q.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.mR(_.Ct({visibilityCallback:function(q){var t,E=(t=y().interaction)==null?void 0:t.onFirstVisible;q&&E&&_.tb(E)},
showOption:_.mT}),_.Ew(function(){return y().interaction},l)),
"aria-label":function(){var q,t;return(q=y().interaction)==null?void 0:(t=q.accessibility)==null?void 0:t.label}},_.R("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.R(_.W,{cond:function(){return y().title},
then:function(q){return _.R(_.CF,{text:q,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.R("div",{class:function(){return _.n("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.R(_.rT,{each:function(){var q;
return((q=y())==null?void 0:q.descriptions)||[]},
keyBy:"INDEX"},function(q){return _.R(_.CF,{text:q,className:function(){return _.n("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.R("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.R(_.di,{data:function(){return y().moreInfoButton}},{adButtonViewModel:function(q){return _.R(_.$k,{data:q.data,
customCommandResolver:l})}})))},"qj");var IV3=_.aF(function(p){var y=p.data;var l=p.customCommandResolver;var q=p.adGridCardCollectionStyle;return _.R("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.mR(_.Ct({visibilityCallback:function(t){var E,e=(E=y().interaction)==null?void 0:E.onFirstVisible;t&&e&&_.tb(e)},
showOption:_.mT})),style:function(){return"grid-template-columns: repeat("+HJR(q?q():y().style)+", minmax(0, 1fr));"}},_.R(_.di,{data:function(){var t;
return(t=y())==null?void 0:t.gridCards}},{adGridCardImageViewModel:function(t){return _.R(zrX,{data:t.data,
customCommandResolver:l})},
adGridCardImageFullMetadataViewModel:function(t){return _.R(oxX,{data:t.data,customCommandResolver:l})},
adGridCardTextViewModel:function(t){return _.R(Y$X,{data:t.data,customCommandResolver:l})}}))},"rj");_.bp(_.aF(function(p){var y=p.data;return _.R("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.mR(_.Ct({visibilityCallback:function(l){var q,t=(q=y().interaction)==null?void 0:q.onFirstVisible;l&&t&&_.tb(t)},
showOption:_.mT}),_.Ew(function(){return y().interaction},TXV))},_.R("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.R(_.W,{cond:_.MLl("(min-width: "+((0,_.Io)()+_.Fj)+"px)"),
then:function(){return _.R(_.di,{data:function(){return y().adGridCardCollection}},{adGridCardCollectionViewModel:function(l){return _.R(IV3,{data:l.data,
customCommandResolver:TXV})}})},
else:function(){return _.R(_.di,{data:function(){return y().adGridCardCollection}},{adGridCardCollectionViewModel:function(l){return _.R(IV3,{data:l.data,
customCommandResolver:TXV,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.R("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.R(_.di,{data:function(){return y().adButton}},{adButtonViewModel:function(l){return _.R(_.$k,{data:l.data,
customCommandResolver:TXV})}})))},"sj"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.Co}});_.bp(_.aF(function(p){var y=p.data;return _.R("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.mR(_.Ct({visibilityCallback:function(l){var q,t=(q=y().interaction)==null?void 0:q.onFirstVisible;l&&t&&_.tb(t)},
showOption:_.mT}),_.Ew(function(){return y().interaction},xdw))},_.R("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.R(_.di,{data:function(){if(_.MLl("(min-width: "+((0,_.Io)()+_.Fj)+"px)")())var l=y().adGridCardCollection;
else{l=Object.assign({},_.G(y().adGridCardCollection,gU6));var q;l.gridCards!==void 0&&((q=l.gridCards)==null?void 0:q.length)>1?l.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":l.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";l={adGridCardCollectionViewModel:l}}return l}},{adGridCardCollectionViewModel:function(l){return _.R(IV3,{data:l.data,
customCommandResolver:xdw})}})),_.R("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.R(_.di,{data:function(){return y().adButton}},{adButtonViewModel:function(l){return _.R(_.$k,{data:l.data,
customCommandResolver:xdw})}})))},"tj"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.Co}});var ZW=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return p};
_.A(ZW,_.w);_.J=ZW.prototype;_.J.configureRendererStamper=function(){return{"data.contentRenderer":{id:"content",mapping:{actionEngagementPanelContentRenderer:"ytd-action-engagement-panel-content-renderer",basicImmersiveEngagementPanelContentRenderer:"ytd-action-basic-immersive-content-renderer",panelTextIconImageTilesButtonLayoutContentViewModel:"panel-text-icon-image-tiles-button-layout-content-view-model",panelTextIconTextGridCardsSubLayoutContentViewModel:"panel-text-icon-text-grid-cards-sub-layout-content-view-model"}}}};
_.J.attached=function(){this.getDataFromPlayerAndRender()};
_.J.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.J.getDataFromPlayerAndRender=function(){var p=this,y=_.$o(this.hostElement);y&&y.getPlayerPromise().then(function(l){p.getCachedDataAndListen(l)})};
_.J.getCachedDataAndListen=function(p){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(p,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(p,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=p)};
_.J.resolveCachedActions=function(){var p=_.I4("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(p=p&&p())&&!_.Ts.isEmpty(p)&&this.sendUpdateEngagementPanelAction(p);(p=(p=_.I4("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&p())&&!_.Ts.isEmpty(p)&&this.sendChangeEngagementPanelVisibilityAction(p);(p=(p=_.I4("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&p())&&!_.Ts.isEmpty(p)&&this.sendScrollToEngagementPanelCommand(p)};
_.J.sendUpdateEngagementPanelAction=function(p){var y;_.$w(this.hostElement,"yt-update-engagement-panel-action",[(y=_.Ts.get(p,"action"))!=null?y:p])};
_.J.sendChangeEngagementPanelVisibilityAction=function(p){_.$w(this.hostElement,"yt-change-engagement-panel-visibility-action",[p])};
_.J.sendScrollToEngagementPanelCommand=function(p){_.$w(this.hostElement,"yt-scroll-to-engagement-panel-command",[p])};
_.J.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.n("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.vs(Error("vo"))};
ZW.prototype.dataChanged=ZW.prototype.dataChanged;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],ZW.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],ZW.prototype,"componentBehavior",void 0);_.H([_.V(_.c8.YtPlayerListenerBehavior),_.x("design:type",_.eE)],ZW.prototype,"ytPlayerListenerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ZW.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ZW.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],ZW.prototype,"player",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ZW.prototype,"dataChanged",null);_.H([_.k({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],ZW);
_.D(ZW,"ytd-ads-engagement-panel-content-renderer",function(){if(OUX!==void 0)return OUX;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ads-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ads-engagement-panel-content-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
return OUX=p},{mode:1});var pRO;var Md=function(){var p=_.w.apply(this,arguments)||this;p.player=null;p.JSC$22351_playerEvents=new Map;p.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return p};
_.A(Md,_.w);_.J=Md.prototype;_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer",commentActionButtonsRenderer:{component:"ytd-comment-action-buttons-renderer",properties:{voteCount:"[[voteCount]]"}}}}}};
_.J.created=function(){this.player=null;this.JSC$22351_playerEvents=new Map;this.JSC$22351_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22351_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22351_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22351_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.J.attached=function(){var p=this,y=_.$o();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));y&&y.getPlayerPromise().then(function(l){p.setPlayer(l);p.set("isPageLoad",!1)})};
_.J.setPlayer=function(p){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22351_playerEvents);this.set("player",p);p&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(p,this.JSC$22351_playerEvents),p.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.J.onLoopRangeChange=function(p){var y=_.WC().resolve(_.RK(_.mm));if((!y||y.isOnWatch())&&this.hostElement.clientHeight){var l;!p&&((l=this.data)==null?0:l.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.J.onVideoProgress=function(p){var y,l,q=((y=this.player)==null?void 0:(l=y.getPresentingPlayerType)==null?void 0:l.call(y))===2;this.isAdPlaying!==q&&this.set("isAdPlaying",q);var t;if(!q&&(t=this.player)!=null&&t.getLoopRange()){l=this.player.getLoopRange();y=l.startTimeMs;l=l.endTimeMs;q=this.player.getProgressState(1).seekableStart;var E;y<q*1E3&&((E=this.data)==null?0:E.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
p=l<p*1E3;var e;((e=this.player)==null?0:e.getLoopRange())&&p&&this.player.seekTo(y/1E3)}};
_.J.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.J.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.J.onYtDeleteClipEngagementPanelCommand=function(p){_.G(p,Bf1).command&&this.ytComponentBehavior.resolveCommand(_.G(p,Bf1).command)};
_.Jh.Object.defineProperties(Md.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.voteCount)||_.EK("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Md.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Md.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Md.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.c8.YtPlayerListenerBehavior),_.x("design:type",_.eE)],Md.prototype,"ytPlayerListenerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Md.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Md.prototype,"isAdPlaying",void 0);_.H([_.Q({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],Md.prototype,"isPageLoad",void 0);_.H([_.Q({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],Md.prototype,"isDarkTheme",void 0);
_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Md.prototype,"voteCount",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Md.prototype,"channelEndpoint",null);_.H([_.g("channelEndpoint"),_.x("design:type",Object),_.x("design:paramtypes",[])],Md.prototype,"channelHref",null);_.H([_.k({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Md);
_.D(Md,"ytd-clip-attribution-renderer",function(){if(pRO!==void 0)return pRO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-attribution-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-clip-attribution-renderer">\n  <div id="top" class="style-scope ytd-clip-attribution-renderer">\n    <a aria-hidden="true" class="yt-simple-endpoint author-endpoint author-avatar style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow class="author-avatar style-scope ytd-clip-attribution-renderer" height="40" thumbnail="[[data.authorAvatar]]" width="40">\n      </yt-img-shadow>\n    </a>\n    <div id="author-container" class="style-scope ytd-clip-attribution-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint author-endpoint style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n        <ytd-channel-name id="author" badges="[[data.authorBadges]]" channel-name="[[data.clipAuthor]]" no-endpoints="" class="style-scope ytd-clip-attribution-renderer">\n        </ytd-channel-name>\n      </a>\n      <span class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.createdText)]]</span>\n    </div>\n    <div id="menu" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <span id="title" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.title)]]</span>\n  <div id="bottom" class="style-scope ytd-clip-attribution-renderer">\n    <div id="buttons" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <div id="ad-overlay" class="style-scope ytd-clip-attribution-renderer">\n    <svg id="ad-image" viewBox="0 0 166.96 140.96" class="style-scope ytd-clip-attribution-renderer">\n      <g class="style-scope ytd-clip-attribution-renderer"><g class="style-scope ytd-clip-attribution-renderer">\n        <path class="cls-2 style-scope ytd-clip-attribution-renderer" d="M138.1,103.79l9.9-17h0l-9.9-5.44,9.9-17h0L138.1,59,148,42s-26,20.57-38.86,29.71-9.43-22.57-9.71-47.14S90.29-6,66.86,6,0,46.55,0,46.55l9.9,6.19L0,72.54l9.9,6.35L0,98.69,9.9,105,0,124.84s63.84-42,79.56-50.56c14.81-8.09,12.15,27.13,11.87,45.13s9.14,21.43,22,13.71c12.42-7.45,33.1-22.9,34.49-23.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M102.26,71.67V137c.27,0,.55,0,.84-.05V72.54A4.36,4.36,0,0,1,102.26,71.67Z" transform="translate(0 0.25)"></path>\n        <path class="cls-4 style-scope ytd-clip-attribution-renderer" d="M50.49,121.06c1.82-2.79,4.46-4.68,7.11-6.57,1.3-.93,2.61-1.85,3.86-2.84a4.06,4.06,0,0,0,.95-1.75c.22-3.44-2.51-6.92-5.93-6.42-3.62,0-7.24,2.84-10.08,4.72-3.78,2.5-7.06,6.32-9.77,9.91-1.43,1.9-2.72,3.71-4,5.68-2.76,4.13-4.4,8.7-6.6,13.21a16.79,16.79,0,0,1,.55-3.13c2-5.06,4.07-10.07,7.32-14.49,1-1.36,2-2.78,3-4.12a5.68,5.68,0,0,1,1.45-.86c.28-1.65,2-2.64,3-4.07,0-.06.5.19.77.3a7.55,7.55,0,0,1,.53-1.46c0-.09.61.11.94.17,0-.36,0-.72,0-1.08,0-.1.19-.18.28-.27,1.09-1.08,2.57-1.56,3.71-2.64a12.29,12.29,0,0,1,4.18-2.46,19.89,19.89,0,0,1,5.13-1.09c3.21-.27,6.5,3.42,7.27,5.72.21.64.41,1.28.69,2.15l3.71-1.73a1.57,1.57,0,0,1,2.13.26l-.35-1,5.12-1.33c1.06.89,2.1.2,3.16,0,.86-.18,1.78-.16,1.87-1.37,0-.06.5-.19.53-.13a4.74,4.74,0,0,1,.37.87l3.05-.58-.08.81c-3.69,1.11-7.47,1.69-11,2.9a28.1,28.1,0,0,0-7.73,4,12.91,12.91,0,0,0-4,5.89,33.12,33.12,0,0,1-7.84,11.43c-1.53,1.54-3.32,2.81-5,4.23a4.84,4.84,0,0,1-3.55,1.22c-1.33-.06-1.67-.23-2-1.49a4.81,4.81,0,0,1,.19-3.38c1.63-3.31,3.52-6.4,6.53-8.65l-.23.49c.11,0,.2.07.23.05l.86-.94Zm-6.3,11.57a1.69,1.69,0,0,0,1.3,1.43,6,6,0,0,0,2.76-1.2c2-1.71,4-3.53,5.94-5.33a4,4,0,0,0,.47-.89c.31-.52,1.52-1.1,1.84-1.61,1.49-2.4,2.76-4.89,4.22-7.31.27-.45.22-3.25-.1-3.46a19.68,19.68,0,0,0-3.49,2.44c-1,.5-1.65,1.85-2.64,2.33a13.34,13.34,0,0,0-3,2.67c-1,1-1.92,1.93-2.8,3a34.65,34.65,0,0,0-2.3,3.11C45.65,128.87,44.17,131.53,44.19,132.63Z" transform="translate(0 0.25)"></path>\n        <path class="cls-1 style-scope ytd-clip-attribution-renderer" d="M0,124.84V46.55S43.43,18,66.86,6,99.14,0,99.43,24.55s-3.14,56.29,9.71,47.14S148,42,148,42v67.14s-21.71,16.29-34.57,24-22.29,4.29-22-13.71,2.94-53.22-11.87-45.13C63.84,82.87,0,124.84,0,124.84Z" transform="translate(0 0.25)"></path>\n        <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M119,12.45c-.87,10.43-4.13,19.08-15,22.06,13.42.52,14.54,9.3,15.29,18.31,1.28-9.85,4.42-18.14,15-20.18C123.63,31.85,120.11,23.44,119,12.45Z" transform="translate(0 0.25)"></path>\n        <g class="cls-6 style-scope ytd-clip-attribution-renderer">\n          <polygon class="cls-4 style-scope ytd-clip-attribution-renderer" points="166.96 114.12 146.52 104.85 161.66 80.3 137.84 92.19 132.87 70.65 126.28 95.37 110.8 90.89 120.61 104.1 105.23 112.92 119.7 114.68 116.36 135.53 131.9 122.15 141.06 140.96 143.28 116.82 166.96 114.12"></polygon>\n          <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M73.23,20.28c1.5-8,.86-14.91-1.89-20.53L69.79.51C72.37,5.79,73,12.34,71.54,20c-3,16.13-14.32,29.76-28.12,33.92a31.14,31.14,0,0,1-7.73,1.27A39.72,39.72,0,0,0,19.94,24.42c-4-2.94-7.71-3.92-10.8-2.86-5.5,1.88-6.8,9.18-4.87,15.13,3.88,11.93,16.48,20,29.69,20.2,0,.43,0,.86-.07,1.29a37.87,37.87,0,0,1-19.27,30l.82,1.51a35.69,35.69,0,0,0,5.18-3.42,39.75,39.75,0,0,0,15-28c0-.47.06-.94.07-1.41a32.46,32.46,0,0,0,8.24-1.34C58.33,51.2,70.11,37,73.23,20.28ZM34,55.17c-12.5-.23-24.4-7.77-28.06-19C4.5,31.81,5,26.47,8.05,24.09a5.66,5.66,0,0,1,1.66-.9c3.18-1.1,6.76.82,9.2,2.62A38,38,0,0,1,34,55.17Z" transform="translate(0 0.25)"></path>\n        </g>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17.4,46.23,17,45.51,24.42,41l.44.71Q21.2,43.94,17.4,46.23Zm14.9-9.15-.44-.71,7.42-4.6.44.71ZM47.16,27.9l-.44-.72c2.57-1.58,5.07-3.09,7.47-4.54l.44.72Q51,25.52,47.16,27.9Zm15-8.94-.42-.73c2.85-1.62,5.37-3,7.69-4.19l.39.75C67.5,16,65,17.34,62.16,19ZM96,14.42a14,14,0,0,0-2.35-3.14l.58-.6A14.64,14.64,0,0,1,96.71,14ZM77.7,11.11l-.32-.77a32.13,32.13,0,0,1,8.49-2.4l.09.83A31.86,31.86,0,0,0,77.7,11.11Z" transform="translate(0 0.25)"></path>\n        <polygon class="cls-3 style-scope ytd-clip-attribution-renderer" points="57.21 88.12 56.37 88.65 56.37 11.92 57.21 11.45 57.21 88.12"></polygon>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M109.94,80.05a6.68,6.68,0,0,1-5.19-2.48l.64-.55c1.93,2.22,4.35,2.74,7.49,1.63l.28.79A9.59,9.59,0,0,1,109.94,80.05Zm10.81-5.11-.49-.69c2.11-1.48,4.48-3.21,7.06-5.14l.51.68C125.24,71.72,122.86,73.45,120.75,74.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17,103.93l-.46-.7,7.28-4.83.46.7Zm14.55-9.68-.46-.7q3.73-2.49,7.27-4.84l.47.7Zm14.57-9.64-.46-.7q3.84-2.5,7.36-4.73l.45.71C51.15,81.37,48.69,83,46.14,84.61Zm14.8-9.26-.43-.73c2.89-1.7,5.4-3.08,7.68-4.22l.38.75C66.3,72.28,63.81,73.66,60.94,75.35ZM84.8,68.18A10.48,10.48,0,0,0,80,67.31a13.7,13.7,0,0,0-3.47.55l-.22-.81A14.45,14.45,0,0,1,80,66.47a11.37,11.37,0,0,1,5.15,1Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M98.67,127.76c-2.62-.79-4.81-2.9-6.35-6.12l.76-.36c1,2.09,2.82,4.77,5.84,5.68Zm8.65-1.68-.4-.73c1.81-1,4.31-2.53,7.45-4.55l.45.7C111.67,123.53,109.15,125.07,107.32,126.08Zm14.81-9.4-.47-.7c2.38-1.59,4.82-3.26,7.24-4.92l.47.69C127,113.41,124.51,115.08,122.13,116.68Z" transform="translate(0 0.25)"></path>\n        <ellipse class="cls-4 style-scope ytd-clip-attribution-renderer" cx="71.33" cy="51.78" rx="8.55" ry="6.47" transform="translate(-6.69 93.03) rotate(-63.7)"></ellipse>\n      </g></g>\n    </svg>\n    <div id="ad-text" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.adPlayingText)]]</div>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return pRO=p},{mode:1});var ymm;var Vk=function(){var p=_.w.apply(this,arguments)||this;p.player=null;p.JSC$22356_playerEvents=new Map;return p};
_.A(Vk,_.w);_.J=Vk.prototype;_.J.created=function(){this.player=null;this.JSC$22356_playerEvents=new Map;this.JSC$22356_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22356_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22356_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.J.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.J.attached=function(){var p=this,y=_.$o();y&&y.getPlayerPromise().then(function(l){p.setPlayer(l);p.set("isPageLoad",!1)})};
_.J.setPlayer=function(p){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22356_playerEvents);this.set("player",p);if(p){this.ytPlayerListenerBehavior.listenToPlayerEvents(p,this.JSC$22356_playerEvents);var y;(p==null?void 0:(y=p.getPresentingPlayerType)==null?void 0:y.call(p))===2&&this.playerAdStartHandler()}};
_.J.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.J.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.J.onVideoProgress=function(){var p,y,l=((p=this.player)==null?void 0:(y=p.getPresentingPlayerType)==null?void 0:y.call(p))===2;this.isAdPlaying!==l&&this.set("isAdPlaying",l)};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Vk.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Vk.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.c8.YtPlayerListenerBehavior),_.x("design:type",_.eE)],Vk.prototype,"ytPlayerListenerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Vk.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Vk.prototype,"isAdPlaying",void 0);
_.H([_.Q({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],Vk.prototype,"isPageLoad",void 0);_.H([_.k({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],Vk);
_.D(Vk,"ytd-clip-section-footer-renderer",function(){if(ymm!==void 0)return ymm;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="buttons" class="style-scope ytd-clip-section-footer-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return ymm=p},{mode:1});var lAO;var qua;var gX=function(){return _.w.apply(this,arguments)||this};
_.A(gX,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],gX.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],gX.prototype,"data",void 0);_.H([_.k({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],gX);
_.D(gX,"ytd-clip-ad-state-renderer",function(){if(qua!==void 0)return qua;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-ad-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="message" class="style-scope ytd-clip-ad-state-renderer">\n  <div id="title" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="body" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.body)]]</div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return qua=p},{mode:1});var sTB;var Qk=function(){var p=_.w.apply(this,arguments)||this;p.value="";p.valid=!1;p.userChangedValue=!1;p.disabled=!1;p.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return p};
_.A(Qk,_.w);_.J=Qk.prototype;_.J.detached=function(){this.userChangedValue=!1};
_.J.handleKeyDown=function(p){if(_.Aj)var y=13;else _.KY_&&_.ZY?y=13:y=13;p.keyCode===y&&p.preventDefault()};
_.J.handleInput=function(){var p=_.jR(this.hostElement).querySelector("#title");if(p){var y=(p.value||"").replace(/\r|\n/g," ");this.set("value",y);p.value=y;this.valid=p.validate();this.userChangedValue=!0}};
_.J.handleBlur=function(){this.valid=_.jR(this.hostElement).querySelector("#title").validate()};
_.J.onValueChanged=function(){_.Ub(this.hostElement,"title-changed",{title:this.value})};
_.J.onValidChanged=function(){_.Ub(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.J.setInput=function(p,y){var l=_.jR(this.hostElement).querySelector("#title");l&&(l.value=p,this.handleInput(),y&&(l.invalid=!1,this.valid=!0))};
_.J.onClipCreationDisable=function(){this.set("disabled",!0)};
_.J.onClipCreationEnable=function(){this.set("disabled",!1)};
_.J.onClipCreationVisibilityChange=function(p){var y=this;p.visible?requestAnimationFrame(function(){var l;((l=_.jR(y.hostElement).querySelector("#title"))==null?void 0:l.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Qk.prototype.onValidChanged=Qk.prototype.onValidChanged;Qk.prototype.onValueChanged=Qk.prototype.onValueChanged;Qk.prototype.handleBlur=Qk.prototype.handleBlur;Qk.prototype.handleInput=Qk.prototype.handleInput;Qk.prototype.handleKeyDown=Qk.prototype.handleKeyDown;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Qk.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],Qk.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Qk.prototype,"value",void 0);_.H([_.Q(),_.x("design:type",Object)],Qk.prototype,"valid",void 0);_.H([_.Q(),_.x("design:type",Object)],Qk.prototype,"userChangedValue",void 0);_.H([_.Q(),_.x("design:type",Object)],Qk.prototype,"disabled",void 0);_.H([_.VU("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],Qk.prototype,"handleKeyDown",null);
_.H([_.VU("input"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qk.prototype,"handleInput",null);_.H([_.VU("blur"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qk.prototype,"handleBlur",null);_.H([_.gd("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qk.prototype,"onValueChanged",null);
_.H([_.gd("valid"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qk.prototype,"onValidChanged",null);_.H([_.k({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Qk);
_.D(Qk,"ytd-clip-creation-text-input-renderer",function(){if(sTB!==void 0)return sTB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-creation-text-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-textarea id="title" char-counter="" disabled="[[disabled]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="" pattern=".+" required="" use-v2-underline="" class="style-scope ytd-clip-creation-text-input-renderer"></tp-yt-paper-textarea>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return sTB=p},{mode:1});var tda;var E1a;var Jmf;var cmB;var eVZ;var KJ=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};p.pendingStoryboardImages_={};p.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];p.tickLabelInterval=30;p.mediumTickInterval=5;p.largeTickInterval=15;p.aboveRulerHeight=32;p.rulerHeight=50;p.smallTickHeight=4;p.mediumTickHeight=8;p.largeTickHeight=16;p.mediaListeners_=
{};return p};
_.A(KJ,_.w);_.J=KJ.prototype;_.J.attached=function(){var p=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(y){y=_.c(["screen and (min-resolution: "+y+")","screen and (max-resolution: "+y+")"]);for(var l=y.next();!l.done;l=y.next()){l=l.value;var q=window.matchMedia(l);q&&(p.mediaListeners_[l]=p.updatePixelRatio_.bind(p),q.addEventListener?q.addEventListener("change",p.mediaListeners_[l]):q.addListener?q.addListener(p.mediaListeners_[l]):delete p.mediaListeners_[l])}})};
_.J.detached=function(){this.setPlayer(null);for(var p=_.c(Object.keys(this.mediaListeners_)),y=p.next();!y.done;y=p.next()){var l=y.value;y=this.mediaListeners_[l];(l=window.matchMedia(l))&&(l.removeEventListener?l.removeEventListener("change",y):l.removeListener&&l.removeListener(y))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.J.onVisibilityChangedAction_=function(p){var y=this;p.visible&&!this.player_&&(p=_.$o())&&p.getPlayerPromise().then(function(l){y.setPlayer(l)})};
_.J.setPlayer=function(p){p&&this.set("player_",p)};
_.J.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.J.setUpCanvas_=function(){var p=this.rulerWidth,y=this.devicePixelRatio_,l=this.visible;this.set("canvasReady_",!1);if(l&&y!==0){l=this.aboveRulerHeight+this.rulerHeight;var q=_.jR(this.hostElement).querySelector("#ticks");q.width=p*y;q.height=l*y;q.style.width=p+"px";q.style.height=l+"px";q.getContext("2d").scale(y,y);this.set("canvasReady_",!0)}};
_.J.drawRuler_=function(p,y,l,q,t,E,e,C,u,a,m,U){p&&l&&y&&(p=_.jR(this.hostElement).querySelector("#ticks"),y=p.getContext("2d"),y.clearRect(0,0,p.width,p.height),y.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),y.lineWidth=2,y.beginPath(),y.moveTo(0,this.aboveRulerHeight),y.lineTo(p.width,this.aboveRulerHeight),y.moveTo(0,p.height),y.lineTo(p.width,p.height),y.stroke(),this.drawRulerTicks_(p,E,t,q),this.drawStoryboardImages_(p,l,E,t,q),y.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
y.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(e-E,q,!1),this.rulerHeight),l=this.timeToPixels_(C-E,q,!1),y.fillRect(l,this.aboveRulerHeight,p.width-l,this.rulerHeight),this.drawSpeedLines_(p,E,U))};
_.J.drawRulerTicks_=function(p,y,l,q){var t=p.getContext("2d");t.save();t.lineWidth=1;for(var E=Math.floor(Math.max(0,y-this.tickLabelInterval));E<y+l;E++){t.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var e=(E-y)*q;t.beginPath();t.moveTo(e,p.height);var C=this.smallTickHeight;E%this.largeTickInterval===0?C=this.largeTickHeight:E%this.mediumTickInterval===0&&(C=this.mediumTickHeight);t.lineTo(e,p.height-C);t.stroke();E%this.tickLabelInterval===0&&(t.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),t.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),t.fillText(M1(E),e+4,12),t.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),t.moveTo(e,0),t.lineTo(e,this.aboveRulerHeight),t.stroke())}t.restore()};
_.J.percentToHex_=function(p){p=Math.round(p*255).toString(16);p.length<2&&(p="0"+p);return p};
_.J.drawSpeedLines_=function(p,y,l){var q=p.getContext("2d");q.save();var t=Math.min(25,Math.abs(l)-15)/25,E=p.width*.3*t,e=p.width*-.3,C=p.width*1.3,u=this.aboveRulerHeight;p=p.height;var a=Math.round(4*t),m=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");m.length<7&&(m="#"+m.substring(1,4).repeat(2));var U=this.percentToHex_(.5+t/2);U=m+U;m+="00";if(t>0)for(t=0;t<a;t++){var b=e+Math.random()*(C-e),P=u+Math.random()*(p-u),Z=E+y%E,K=q.createLinearGradient(b,P,b+Z,P);
l<0?(K.addColorStop(0,U),K.addColorStop(.4,U),K.addColorStop(.9,m)):(K.addColorStop(.1,m),K.addColorStop(.6,U),K.addColorStop(1,U));q.strokeStyle=K;q.lineWidth=1;q.beginPath();q.moveTo(b,P);q.lineTo(b+Z,P);q.stroke()}q.restore()};
_.J.getStoryboardForTime_=function(p,y,l){l===void 0&&(l=y.getNumberOfStoryboardLevels()-1);p=y.getStoryboardFrameIndex(p,l);return y.getStoryboardFrame(p,l)};
_.J.drawStoryboardImages_=function(p,y,l,q,t){if(!this.disabled){p=p.getContext("2d");var E=this.getStoryboardForTime_(0,y);if(E){var e=E.width/E.columns;E=E.height/E.rows;var C=e/E,u=this.rulerHeight*C;u=this.tickLabelInterval*(C<this.tickLabelInterval*t/this.rulerHeight?1/Math.floor(this.tickLabelInterval*t/u):Math.round(u/(this.tickLabelInterval*t)));var a=u*t,m=this.rulerHeight,U=a/this.rulerHeight,b=Math.floor(Math.max(0,l-u));for(b-=b%u;b<l+q;b+=u){var P=this.getStoryboardForTime_(b,y),Z=this.getPreloadedStoryboard_(P.url);
if(Z){var K=(b-l)*t,F=this.aboveRulerHeight,L=P.column*e,T=P.row*E;if(C<U){var O=m/(a/C);P=e;O*=E;T+=(E-O)/2}else P=a/(m*C)*e,O=E,L+=(e-P)/2;p.drawImage(Z,L,T,P,O,K,F,a,m)}else this.fetchStoryboardImage_(P)}}}};
_.J.getPreloadedStoryboard_=function(p){return this.storyboardImages_.find(function(y){if(y.src==p)return!0;var l=y.src.indexOf(p);return l!=-1&&l==y.src.length-p.length})};
_.J.fetchStoryboardImage_=function(p){var y=this,l=this.getPreloadedStoryboard_(p.url),q=this.pendingStoryboardImages_[p.url];l||q!==void 0||(l=new Promise(function(t){var E=new Image(p.width,p.height);E.src=p.url;E.onload=function(){t(E)};
E.onerror=function(){t(null)}}),this.pendingStoryboardImages_[p.url]=l,l.then(function(t){t&&y.push("storyboardImages_",t);
return t}).finally(function(){delete y.pendingStoryboardImages_[p.url]}))};
_.J.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.J.timeToPixels_=function(p,y,l){p*=y;return l===void 0||l?p+"px":p};
_.J.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
KJ.prototype.drawRuler_=KJ.prototype.drawRuler_;KJ.prototype.setUpCanvas_=KJ.prototype.setUpCanvas_;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],KJ.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],KJ.prototype,"ytRendererBehavior",void 0);_.H([_.Q({value:0}),_.x("design:type",Number)],KJ.prototype,"start",void 0);_.H([_.Q({value:30}),_.x("design:type",Number)],KJ.prototype,"end",void 0);
_.H([_.Q({value:!1}),_.x("design:type",Boolean)],KJ.prototype,"visible",void 0);_.H([_.Q(),_.x("design:type",Object)],KJ.prototype,"player_",void 0);_.H([_.Q(),_.x("design:type",Number)],KJ.prototype,"tickSpacing",void 0);_.H([_.Q(),_.x("design:type",Number)],KJ.prototype,"windowSizeSec",void 0);_.H([_.Q({value:0}),_.x("design:type",Number)],KJ.prototype,"rulerWidth",void 0);_.H([_.Q({value:0}),_.x("design:type",Number)],KJ.prototype,"rulerShift",void 0);
_.H([_.Q({value:!1}),_.x("design:type",Boolean)],KJ.prototype,"canvasReady_",void 0);_.H([_.Q({value:function(){return[]}}),
_.x("design:type",Array)],KJ.prototype,"storyboardImages_",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],KJ.prototype,"disabled",void 0);_.H([_.Q({value:0}),_.x("design:type",Number)],KJ.prototype,"forceRender_",void 0);_.H([_.Q({value:1}),_.x("design:type",Number)],KJ.prototype,"devicePixelRatio_",void 0);_.H([_.Q({value:0}),_.x("design:type",Number)],KJ.prototype,"windowSpeed",void 0);
_.H([_.gd("visible","devicePixelRatio_","rulerWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KJ.prototype,"setUpCanvas_",null);
_.H([_.gd("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.x("design:type",Function),_.x("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.x("design:returntype")],KJ.prototype,"drawRuler_",null);_.H([_.z9({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],KJ);
_.D(KJ,"yt-clip-creation-scrubber-canvas",function(){if(eVZ===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-canvas--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<canvas id="ticks" class="style-scope yt-clip-creation-scrubber-canvas"></canvas>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);eVZ=p}p=eVZ;return p},
{mode:2});var hVX;var C9f;var wX=function(){var p=_.w.apply(this,arguments)||this;p.start=0;p.end=30;p.visible=!1;p.draggingLeft_=!1;p.draggingRight_=!1;p.draggingRuler_=!1;p.draggingWindow_=!1;p.seekableStart=0;p.seekableEnd=0;p.rulerWidth_=0;p.rulerShift_=0;p.windowSlideSpeed=0;p.disabled=!1;p.initialized=!1;p.durationAccessibilityLabel="";p.activeLoopRange_=!1;p.rulerDragMouseStart_=0;p.rulerDragRulerStart_=0;p.rulerDragStartTime_=0;p.rulerDragEndTime_=0;p.dragMouseLastX_=0;p.scrollInterval_=null;p.scrubberVe_=null;p.boundHandlers_=
{};p.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return p};
_.A(wX,_.w);_.J=wX.prototype;
_.J.created=function(){var p=this;this.JSC$22369_playerEvents=new Map;this.JSC$22369_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22369_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22369_playerEvents.set("onStateChange",this.onStateChange_);var y={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(y).forEach(function(l){p.boundHandlers_[l]=y[l].bind(p)})};
_.J.attached=function(){this.activeLoopRange_=!1;_.jR(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.jR(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.fY(156731)};
_.J.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.jR(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.jR(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.J.onVisibilityChangedAction_=function(p){var y=this;p.visible&&!this.player_&&(p=_.$o())&&p.getPlayerPromise().then(function(l){y.setPlayer(l)})};
_.J.setPlayer=function(p){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22369_playerEvents);p&&(this.set("player_",p),this.ytPlayerListenerBehavior.listenToPlayerEvents(p,this.JSC$22369_playerEvents))};
_.J.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.J.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.J.beginHandleDrag_=function(p){this.disabled||(p.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=p.clientX,p.target===_.jR(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():p.target===_.jR(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.J.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.J.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.J.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.J.beginRulerDrag_=function(p){this.disabled||(p.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=p.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.J.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.J.beginWindowScroll_=function(){var p=this;this.scrollInterval_=setInterval(function(){var y=p.windowSlideSpeed;if(y=_.IEV(p.start,p.boundedRulerStartLimit_())?y-.1:_.IEV(p.end,p.boundedRulerEndLimit_())?y+.1:0){var l=p.capRulerOffset_(p.rulerShift_+y);l==p.rulerShift_?y=0:(p.set("rulerShift_",l),_.Ub(p.hostElement,"set-fixed-length-range",{start:p.start+y,duration:p.end-p.start}))}p.set("windowSlideSpeed",y)},33)};
_.J.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.J.endDrag_=function(){this.logClick();var p=void 0;this.draggingRight_?p=this.end-1:this.draggingLeft_&&(p=this.start);this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1;this.endWindowScroll_();this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end,p);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.J.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.J.updateRulerSize_=function(){this.set("rulerWidth_",_.jR(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.J.handleMouseDrag_=function(p){p.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(p):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(p):this.draggingWindow_&&this.handleWindowDrag_(p))};
_.J.handleRulerDrag_=function(p){p=this.pixelsToTime_(p.clientX-this.rulerDragMouseStart_);p=this.capRulerOffset_(this.rulerDragRulerStart_-p);this.set("rulerShift_",p);var y=this.rulerDragStartTime_-(this.rulerDragRulerStart_-p);_.Ub(this.hostElement,"set-fixed-length-range",{start:y,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-p)-y})};
_.J.handleWindowDrag_=function(p){var y=p.clientX-this.dragMouseLastX_;this.dragMouseLastX_=p.clientX;p=this.pixelsToTime_(y);_.Ub(this.hostElement,"set-fixed-length-range",{start:this.start+p,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.J.capRulerOffset_=function(p){var y=this.seekableStart-this.pixelsToTime_(16),l=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(y,p),l)};
_.J.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.J.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.J.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.J.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.J.handleWindowHandleDrag_=function(p){var y=p.clientX-this.dragMouseLastX_;this.dragMouseLastX_=p.clientX;p=this.pixelsToTime_(y);if(this.draggingLeft_){var l=this.start+p;var q=this.end}else this.draggingRight_&&(l=this.start,q=this.end+p);_.Ub(this.hostElement,"set-range",{start:l,end:q,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.J.onVideoProgress_=function(p){this.disabled||(p=this.timeToPixels_(p-this.rulerShift_,this.tickSpacing_),_.jR(this.hostElement).querySelector("#playhead").style.transform="translateX("+p+")")};
_.J.onClipCreationDisable_=function(){this.endDrag_()};
_.J.timeToPixels_=function(p,y,l){p*=y;return l===void 0||l?p+"px":p};
_.J.pixelsToTime_=function(p){return p/this.tickSpacing_};
_.J.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.J.centerRuler_=function(p,y,l){this.set("rulerShift_",this.capRulerOffset_(p+(y-p)/2-l/2))};
_.J.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.J.updateLoopRange_=function(p,y,l,q,t,E,e){p&&(y&&q&&!l?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(p.pauseVideo(),p.seekTo(t,!1,void 0,void 0,50)):this.draggingRight_?(p.pauseVideo(),p.seekTo(E-.1,!1,void 0,void 0,50)):(e!==void 0?p.seekTo(e,!0,void 0,void 0,50):(y=p.getCurrentTime(),y<t||y>E?p.seekTo(t,!0,void 0,void 0,50):p.seekTo(y,!0,void 0,void 0,50)),p.playVideo()),p.setLoopRange({startTimeMs:t*1E3,endTimeMs:E*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(p.getCurrentTime())):
this.activeLoopRange_&&(p.setLoopRange(null),this.activeLoopRange_=!1))};
_.J.updateHandles_=function(){_.jR(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.jR(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.J.updateRuler_=function(){var p=this.end,y=this.start,l=this.draggableStartLimit_(),q=this.draggableEndLimit_();(y<l-.001||p>q+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.J.computeDurationLabel_=function(p,y){return p?p.replace("$clip_length",parseFloat(y).toFixed(1)):""};
_.J.computeDuration_=function(p,y){return this.isValidTime_(p)&&this.isValidTime_(y)&&p<y?y-p:0};
_.J.isValidTime_=function(p){return isNaN(parseFloat(p))||p<0?!1:this.player_?p>=this.seekableStart&&p<=this.seekableEnd:!0};
_.J.computeWindowSizeSec_=function(p,y,l){return Math.min((p||12E4)/1E3,l-y)};
_.J.computeTickSpacing_=function(p,y){return y?y/p:1};
_.J.onDragStateChanged_=function(){_.Ub(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.J.centerRangeOnTime_=function(p){var y=this.duration;p=fWV(p-y/2,y,this.seekableStart,this.seekableEnd);_.Ub(this.hostElement,"set-fixed-length-range",{start:p.start,duration:p.end-p.start})};
_.J.nearlyLessThan_=function(p,y,l){return p+(l===void 0?1E-6:l)<y};
_.J.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var p=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(p,this.start)||this.nearlyLessThan_(this.end,p))&&this.centerRangeOnTime_(p)}};
_.J.onStateChange_=function(p){this.visible&&!this.disabled&&p==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.J.computeDragState_=function(p,y,l,q){return p?"left":y?"right":l?"ruler":q?"window":"none"};
_.J.logClick=function(){var p=_.B2(),y=_.xc();p&&y&&this.scrubberVe_&&(_.n("combine_ve_grafts")?_.Vv(_.Ll(),this.scrubberVe_,y):_.pW(p,y,this.scrubberVe_),_.te(p,this.scrubberVe_))};
wX.prototype.onDragStateChanged_=wX.prototype.onDragStateChanged_;wX.prototype.updateRuler_=wX.prototype.updateRuler_;wX.prototype.updateHandles_=wX.prototype.updateHandles_;wX.prototype.onUpdateLoopRange=wX.prototype.onUpdateLoopRange;wX.prototype.onInitializedChanged_=wX.prototype.onInitializedChanged_;wX.prototype.onVisibleChanged_=wX.prototype.onVisibleChanged_;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],wX.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.V(_.c8.YtPlayerListenerBehavior),_.x("design:type",Object)],wX.prototype,"ytPlayerListenerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],wX.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],wX.prototype,"start",void 0);_.H([_.Q(),_.x("design:type",Object)],wX.prototype,"end",void 0);_.H([_.Q({computed:"computeDuration_(start, end)"}),_.x("design:type",Number)],wX.prototype,"duration",void 0);
_.H([_.Q(),_.x("design:type",String)],wX.prototype,"lengthTemplate",void 0);_.H([_.Q({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.x("design:type",String)],wX.prototype,"durationLabel",void 0);_.H([_.Q(),_.x("design:type",Object)],wX.prototype,"visible",void 0);_.H([_.Q(),_.x("design:type",Object)],wX.prototype,"player_",void 0);_.H([_.Q(),_.x("design:type",Object)],wX.prototype,"draggingLeft_",void 0);_.H([_.Q(),_.x("design:type",Object)],wX.prototype,"draggingRight_",void 0);
_.H([_.Q(),_.x("design:type",Object)],wX.prototype,"draggingRuler_",void 0);_.H([_.Q({value:!1}),_.x("design:type",Object)],wX.prototype,"draggingWindow_",void 0);_.H([_.Q({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.x("design:type",Number)],wX.prototype,"tickSpacing_",void 0);_.H([_.Q(),_.x("design:type",Object)],wX.prototype,"seekableStart",void 0);_.H([_.Q(),_.x("design:type",Object)],wX.prototype,"seekableEnd",void 0);
_.H([_.Q(),_.x("design:type",Number)],wX.prototype,"windowSizeMs",void 0);_.H([_.Q({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.x("design:type",Number)],wX.prototype,"windowSizeSec_",void 0);_.H([_.Q(),_.x("design:type",Object)],wX.prototype,"rulerWidth_",void 0);_.H([_.Q(),_.x("design:type",Object)],wX.prototype,"rulerShift_",void 0);_.H([_.Q(),_.x("design:type",Object)],wX.prototype,"windowSlideSpeed",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],wX.prototype,"disabled",void 0);_.H([_.Q(),_.x("design:type",Object)],wX.prototype,"initialized",void 0);_.H([_.Q(),_.x("design:type",Object)],wX.prototype,"durationAccessibilityLabel",void 0);_.H([_.Q({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.x("design:type",String)],wX.prototype,"dragState",void 0);
_.H([_.gd("visible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wX.prototype,"onVisibleChanged_",null);_.H([_.gd("initialized"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wX.prototype,"onInitializedChanged_",null);_.H([_.gd("player_","visible","disabled","initialized","start","end"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wX.prototype,"onUpdateLoopRange",null);
_.H([_.gd("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wX.prototype,"updateHandles_",null);_.H([_.gd("start","end"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wX.prototype,"updateRuler_",null);
_.H([_.gd("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wX.prototype,"onDragStateChanged_",null);_.H([_.z9({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],wX);
_.D(wX,"yt-clip-creation-scrubber-view",function(){if(C9f===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-view--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_view.yt.clip.creation.scrubber.view.css.js--\x3e<div id="trimmer" class="style-scope yt-clip-creation-scrubber-view">\n  <div id="ruler" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-view">\n    <yt-clip-creation-scrubber-canvas id="ticks" disabled="[[disabled]]" end="[[end]]" ruler-shift="[[rulerShift_]]" ruler-width="[[rulerWidth_]]" start="[[start]]" tick-spacing="[[tickSpacing_]]" visible="[[visible]]" window-size-sec="[[windowSizeSec_]]" window-speed="[[windowSlideSpeed]]" class="style-scope yt-clip-creation-scrubber-view">\n    </yt-clip-creation-scrubber-canvas>\n    <div id="handles" class="style-scope yt-clip-creation-scrubber-view">\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-left">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-right">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n    </div>\n    <div id="playhead" class="style-scope yt-clip-creation-scrubber-view"></div>\n  </div>\n</div>\n<div id="duration" aria-label="[[durationAccessibilityLabel]]" class="style-scope yt-clip-creation-scrubber-view">[[durationLabel]]</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;hVX===void 0&&(hVX=document.createElement("template"));var q=hVX;l.call(y,q.content.cloneNode(!0),p.content.firstChild);C9f=p}p=C9f;return p},{mode:2});var ih=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};p.startHighlightTimeout=0;p.endHighlightTimeout=0;return p};
_.A(ih,_.w);_.J=ih.prototype;_.J.attached=function(){var p=this;this.startInput.addEventListener("input",function(y){return p.handleStartInput_(y)});
this.endInput.addEventListener("input",function(y){return p.handleEndInput_(y)});
this.startInput.addEventListener("focusout",function(y){return p.handleStartBlur_(y)});
this.endInput.addEventListener("focusout",function(y){return p.handleEndBlur_(y)})};
_.J.setPlayer=function(p){this.set("player_",p)};
_.J.onSetFixedLengthRange_=function(p){var y=p.detail;p=y.start;var l=y.duration,q=y.startLimit;y=y.endLimit;q||(q=this.seekableStart_);y||(y=this.seekableEnd_);p=fWV(p,l,q,y);this.start=p.start;this.end=p.end};
_.J.onSetRange_=function(p){var y=p.detail;p=y.start;var l=y.end,q=y.startLimit;y=y.endLimit;q||(q=this.seekableStart_);y||(y=this.seekableEnd_);if(p=vju(p,l,q,y,this.minLengthSec,this.maxLengthSec))this.start=p.start,this.end=p.end};
_.J.updateInputs_=function(){var p=this.end,y=this.start;this.startInput.focused||(this.startInput.value=M1(y,!0));this.endInput.focused||(this.endInput.value=M1(p,!0))};
_.J.handleStartInput_=function(p){p=BX7(p.target.value);if(p===null)this.set("startValid",!1);else{var y=this.end,l=vju(p,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);l?(this.set("endWillUpdate",l.end!==y),this.set("startValid",l.start===p)):this.set("startValid",!1)}};
_.J.handleEndInput_=function(p){p=BX7(p.target.value);if(p===null)this.set("endValid",!1);else{var y=this.start,l=XeO(this.start,p,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);l?(this.set("startWillUpdate",l.start!==y),this.set("endValid",l.end===p)):this.set("endValid",!1)}};
_.J.handleStartBlur_=function(p){p=BX7(p.target.value);p===null?this.startInput.value=M1(this.start,!0):this.forceUpdateInputs_(vju(p,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.J.handleEndBlur_=function(p){p=BX7(p.target.value);p===null?this.endInput.value=M1(this.end,!0):this.forceUpdateInputs_(XeO(this.start,p,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.J.forceUpdateInputs_=function(p){p&&(this.start=p.start,this.end=p.end);this.startInput.value=M1(this.start,!0);this.endInput.value=M1(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.J.initializeClipRange_=function(){var p=this.seekableEnd_,y=this.seekableStart_,l=this.visible_,q=this.player_;if(!q||!l||y===null||!p)this.set("initialized",!1);else if(!this.initialized){var t=q.getCurrentTime(),E=this.getDefaultLengthSec_();l=q.getVideoData();var e=q.getPlayerState()==1,C=l.isLive;E=Math.min(E,p-y);t=Math.max(0,t);p=C?XeO(t-E,t,y,p,this.minLengthSec,this.maxLengthSec):e?fWV(t-E/2,E,y,p):fWV(t,E,y,p);this.start=p.start;this.end=p.end;this.set("initialized",!0);l.isLive&&q.seekTo(p.start);
this.startInput.value=M1(this.start,!0);this.endInput.value=M1(this.end,!0)}};
_.J.onStartChanged_=function(){var p=this;_.Ub(this.hostElement,"start-changed",{start:this.start});var y;isNaN((y=this.oldStart)!=null?y:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){p.set("highlightStart",!1);p.startHighlightTimeout=0;p.oldStart=p.start},3E3))};
_.J.onEndChanged_=function(){var p=this;_.Ub(this.hostElement,"end-changed",{end:this.end});var y;isNaN((y=this.oldEnd)!=null?y:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){p.set("highlightEnd",!1);p.endHighlightTimeout=0;p.oldEnd=p.end},3E3))};
_.J.onVisibilityChangedAction_=function(p){var y=this;this.set("visible_",p.visible);this.visible_&&!this.player_&&(p=_.$o())&&p.getPlayerPromise().then(function(l){y.setPlayer(l)})};
_.J.computeMinLengthSec_=function(p){return p/1E3||5};
_.J.computeMaxLengthSec_=function(p){return p/1E3||60};
_.J.computeDefaultLengthSec_=function(p){return p/1E3};
_.J.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.J.computeSeekableStart_=function(p,y){return p&&y?p.getProgressState(1).seekableStart:0};
_.J.computeSeekableEnd_=function(p,y){return p&&y?p.getProgressState(1).seekableEnd:0};
_.J.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.J.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.J.onDragState_=function(p){this.set("highlightStart",p.detail.startChanging);this.set("highlightEnd",p.detail.endChanging)};
ih.prototype.onDragState_=ih.prototype.onDragState_;ih.prototype.onEndChanged_=ih.prototype.onEndChanged_;ih.prototype.onStartChanged_=ih.prototype.onStartChanged_;ih.prototype.initializeClipRange_=ih.prototype.initializeClipRange_;ih.prototype.updateInputs_=ih.prototype.updateInputs_;ih.prototype.onSetRange_=ih.prototype.onSetRange_;ih.prototype.onSetFixedLengthRange_=ih.prototype.onSetFixedLengthRange_;
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],ih.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ih.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ih.prototype,"data",void 0);_.H([_.Q({value:0}),_.x("design:type",Number)],ih.prototype,"start",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],ih.prototype,"startValid",void 0);
_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],ih.prototype,"startWillUpdate",void 0);_.H([_.Q({value:30}),_.x("design:type",Number)],ih.prototype,"end",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],ih.prototype,"endValid",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],ih.prototype,"endWillUpdate",void 0);_.H([_.Q({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.x("design:type",Number)],ih.prototype,"minLengthSec",void 0);
_.H([_.Q({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.x("design:type",Number)],ih.prototype,"maxLengthSec",void 0);_.H([_.Q({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.x("design:type",Number)],ih.prototype,"defaultLengthSec",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],ih.prototype,"visible_",void 0);_.H([_.Q(),_.x("design:type",Object)],ih.prototype,"player_",void 0);
_.H([_.Q({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.x("design:type",Number)],ih.prototype,"seekableStart_",void 0);_.H([_.Q({computed:"computeSeekableEnd_(player_, visible_)"}),_.x("design:type",Number)],ih.prototype,"seekableEnd_",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],ih.prototype,"initialized",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],ih.prototype,"disabled",void 0);
_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],ih.prototype,"highlightStart",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],ih.prototype,"highlightEnd",void 0);_.H([_.rd("#start"),_.x("design:type",HTMLInputElement)],ih.prototype,"startInput",void 0);_.H([_.rd("#end"),_.x("design:type",HTMLInputElement)],ih.prototype,"endInput",void 0);
_.H([_.VU("set-fixed-length-range"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ih.prototype,"onSetFixedLengthRange_",null);_.H([_.VU("set-range"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ih.prototype,"onSetRange_",null);_.H([_.gd("start","end"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ih.prototype,"updateInputs_",null);
_.H([_.gd("player_","visible_","seekableStart_","seekableEnd_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ih.prototype,"initializeClipRange_",null);_.H([_.gd("start"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ih.prototype,"onStartChanged_",null);_.H([_.gd("end"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ih.prototype,"onEndChanged_",null);
_.H([_.VU("clips-drag-state"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ih.prototype,"onDragState_",null);_.H([_.z9({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],ih);
_.D(ih,"yt-clip-creation-scrubber-renderer",function(){if(cmB===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_renderer.yt.clip.creation.scrubber.renderer.css.js--\x3e<div id="text-inputs" class="style-scope yt-clip-creation-scrubber-renderer">\n  <yt-icon id="warning-start" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="start" placeholder="[[data.startAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <span id="spacer" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-renderer">\u2013</span>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="end" placeholder="[[data.endAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <yt-icon id="warning-end" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n</div>\n<yt-clip-creation-scrubber-view disabled="[[disabled]]" duration-accessibility-label="[[data.durationAccessibility.accessibilityData.label]]" end="[[end]]" initialized="[[initialized]]" length-template="[[data.lengthTemplate]]" seekable-end="[[seekableEnd_]]" seekable-start="[[seekableStart_]]" start="[[start]]" visible="[[visible_]]" window-size-ms="[[data.windowSizeMs]]" class="style-scope yt-clip-creation-scrubber-renderer">\n</yt-clip-creation-scrubber-view>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;Jmf===void 0&&(Jmf=document.createElement("template"));var q=Jmf;l.call(y,q.content.cloneNode(!0),p.content.firstChild);cmB=p}p=cmB;return p},{mode:2});var rX=function(){var p=_.w.apply(this,arguments)||this;p.player_=null;p.JSC$22383_playerEvents=new Map;p.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return p};
_.A(rX,_.w);_.J=rX.prototype;_.J.configureRendererStamper=function(){return{submitButton_:{id:"share",mapping:{buttonRenderer:"yt-button-renderer"}},cancelButton_:{id:"cancel",mapping:{buttonRenderer:"yt-button-renderer"}},"data.titleInput":{id:"title-input",mapping:{clipCreationTextInputRenderer:"ytd-clip-creation-text-input-renderer"}},"data.scrubber":{id:"scrubber",mapping:{clipCreationScrubberRenderer:"yt-clip-creation-scrubber-renderer"}},"data.adStateOverlay":{id:"ad-state",mapping:{clipAdStateRenderer:"ytd-clip-ad-state-renderer"}}}};
_.J.created=function(){this.JSC$22383_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22383_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22383_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22383_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.J.detached=function(){this.setPlayer(null)};
_.J.onVisibilityChangedAction_=function(p){var y=this,l;if((l=this.data)==null?0:l.externalVideoId){var q;this.videoId=(q=this.data)==null?void 0:q.externalVideoId}this.getPlayer().then(function(t){if(p.visible)y.returnTime=t.getCurrentTime(),y.isAtLiveHead=t.getProgressState().isAtLiveHead;else{var E=y.returnTime;y.isAtLiveHead&&(E=Number.POSITIVE_INFINITY);t.seekTo(E,void 0,void 0,void 0,51)}})};
_.J.getPlayer=function(){var p=this;if(!this.player_){var y=_.$o();if(y)return y.getPlayerPromise().then(function(l){p.setPlayer(l);return l})}return Promise.resolve(this.player_)};
_.J.setPlayer=function(p){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22383_playerEvents);if(p){this.player_=p;var y;((y=this.data)==null?0:y.externalVideoId)||this.set("videoId",p.getVideoData().video_id||"");var l;(p==null?void 0:(l=p.getPresentingPlayerType)==null?void 0:l.call(p))===2&&(this.set("isAdPlaying",!0),_.$w(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(p,this.JSC$22383_playerEvents)}};
_.J.ready=function(){_.jR(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.J.onTitleChanged_=function(p){this.set("titleValue",p.detail.title)};
_.J.onStartChanged_=function(p){this.set("start",p.detail.start)};
_.J.onEndChanged_=function(p){this.set("end",p.detail.end)};
_.J.onTitleValidChanged_=function(p){this.set("titleValid",p.detail.valid)};
_.J.onStartValidChanged_=function(p){this.set("startValid",p.detail.valid)};
_.J.onEndValidChanged_=function(p){this.set("endValid",p.detail.valid)};
_.J.onVideoDataChange_=function(){var p;if((p=this.data)==null||!p.externalVideoId){var y;this.set("videoId",((y=this.player_)==null?void 0:y.getVideoData().video_id)||"")}};
_.J.computeFormValid_=function(p,y,l,q){return!!(p&&y&&l&&q)};
_.J.computeCancelButton_=function(p,y,l){return p&&_.G(p,_.yv)?{buttonRenderer:Object.assign({},_.G(p,_.yv),{isDisabled:y||l})}:null};
_.J.computeSubmitButton_=function(p,y,l){return p&&_.G(p,_.yv)?{buttonRenderer:Object.assign({},_.G(p,_.yv),{command:void 0,isDisabled:!this.formValid||y||l})}:null};
_.J.computeSubmitCommand_=function(p){return p||null};
_.J.onSubmit_=function(p){var y=this;p.stopPropagation();p.preventDefault();this.submitCommand_&&(p={},p.comment_text=this.titleValue,p.clip_external_video_id=this.videoId,p.clip_offset_ms=parseInt(this.start*1E3,10),p.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.ny(this.hostElement,[this.submitCommand_,p]).then(function(){y.set("isLoading_",!1)},function(){y.set("isLoading_",!1)}))};
_.J.playerAdStartHandler_=function(){_.$w(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.J.playerAdEndHandler_=function(){_.$w(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.J.onVideoProgress_=function(){var p=this;this.getPlayer().then(function(y){var l,q=(y==null?void 0:(l=y.getPresentingPlayerType)==null?void 0:l.call(y))===2;p.isAdPlaying!==q&&(q?p.playerAdStartHandler_():p.playerAdEndHandler_())})};
rX.prototype.onEndValidChanged_=rX.prototype.onEndValidChanged_;rX.prototype.onStartValidChanged_=rX.prototype.onStartValidChanged_;rX.prototype.onTitleValidChanged_=rX.prototype.onTitleValidChanged_;rX.prototype.onEndChanged_=rX.prototype.onEndChanged_;rX.prototype.onStartChanged_=rX.prototype.onStartChanged_;rX.prototype.onTitleChanged_=rX.prototype.onTitleChanged_;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],rX.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.V(_.c8.YtPlayerListenerBehavior),_.x("design:type",Object)],rX.prototype,"ytPlayerListenerBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],rX.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],rX.prototype,"data",void 0);_.H([_.Q({value:""}),_.x("design:type",String)],rX.prototype,"titleValue",void 0);
_.H([_.Q({value:!1}),_.x("design:type",Boolean)],rX.prototype,"titleValid",void 0);_.H([_.Q({value:0}),_.x("design:type",Number)],rX.prototype,"start",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],rX.prototype,"startValid",void 0);_.H([_.Q({value:0}),_.x("design:type",Number)],rX.prototype,"end",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],rX.prototype,"endValid",void 0);_.H([_.Q({value:""}),_.x("design:type",String)],rX.prototype,"videoId",void 0);
_.H([_.Q({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.x("design:type",Boolean)],rX.prototype,"formValid",void 0);_.H([_.Q({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.x("design:type",Object)],rX.prototype,"submitButton_",void 0);_.H([_.Q({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.x("design:type",Object)],rX.prototype,"submitCommand_",void 0);
_.H([_.Q({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.x("design:type",Object)],rX.prototype,"cancelButton_",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],rX.prototype,"isLoading_",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],rX.prototype,"isAdPlaying",void 0);_.H([_.Q({value:0}),_.x("design:type",Number)],rX.prototype,"returnTime",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],rX.prototype,"isAtLiveHead",void 0);
_.H([_.VU("title-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],rX.prototype,"onTitleChanged_",null);_.H([_.VU("start-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],rX.prototype,"onStartChanged_",null);_.H([_.VU("end-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],rX.prototype,"onEndChanged_",null);
_.H([_.VU("title-valid-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],rX.prototype,"onTitleValidChanged_",null);_.H([_.VU("start-valid-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],rX.prototype,"onStartValidChanged_",null);_.H([_.VU("end-valid-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],rX.prototype,"onEndValidChanged_",null);
_.H([_.z9({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],rX);
_.D(rX,"yt-clip-creation-renderer",function(){if(E1a===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_renderer.yt.clip.creation.renderer.css.js--\x3e<div id="container" class="style-scope yt-clip-creation-renderer">\n  <div id="title" class="style-scope yt-clip-creation-renderer">\n    <div class="left-container style-scope yt-clip-creation-renderer">\n      <yt-img-shadow id="user-avatar" height="32" thumbnail="[[data.userAvatar]]" width="32" class="style-scope yt-clip-creation-renderer">\n      </yt-img-shadow>\n      <div id="display-name" class="style-scope yt-clip-creation-renderer">[[getSimpleString(data.displayName)]]</div>\n    </div>\n    <div id="publicity-label" class="style-scope yt-clip-creation-renderer">\n      <yt-icon id="publicity-icon" icon="yt-icons:privacy_public" class="style-scope yt-clip-creation-renderer"></yt-icon>\n      [[data.publicityLabel]]\n    </div>\n  </div>\n  <div id="title-input" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="scrubber" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="footer" class="style-scope yt-clip-creation-renderer">\n  <tp-yt-paper-spinner-lite active="[[isLoading_]]" hidden="[[!isLoading_]]" class="style-scope yt-clip-creation-renderer"></tp-yt-paper-spinner-lite>\n  <div id="cancel" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="share" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="ad-state" class="style-scope yt-clip-creation-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;tda===void 0&&(tda=document.createElement("template"));var q=tda;l.call(y,q.content.cloneNode(!0),p.content.firstChild);E1a=p}p=E1a;return p},{mode:2});var S5=function(){return _.w.apply(this,arguments)||this};
_.A(S5,_.w);S5.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"}}}};
S5.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(p){return p.hasOwnProperty("clipCreationRenderer")})&&_.$w(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
S5.prototype.onPanelContentVisibleChanged=S5.prototype.onPanelContentVisibleChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],S5.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],S5.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.JG.YtVisibilityBehavior),_.x("design:type",Object)],S5.prototype,"ytVisibilityBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],S5.prototype,"ytdReduxBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],S5.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],S5.prototype,"panelContentVisible",void 0);_.H([_.gd("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],S5.prototype,"onPanelContentVisibleChanged",null);_.H([_.k({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],S5);
_.D(S5,"ytd-clip-section-renderer",function(){if(lAO!==void 0)return lAO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-clip-section-renderer"></div>\n<div id="footer" class="style-scope ytd-clip-section-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return lAO=p},{mode:1});var uwf;var Fm=function(){return _.w.apply(this,arguments)||this};
_.A(Fm,_.w);_.J=Fm.prototype;
_.J.onKeyDown=function(p){if(this.snippetElements.length!==0&&(p=p.keyCode,p===38||p===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);p===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.OP(this.highlightedIndex,-1,this.snippetElements.length);p=this.snippetElements.length;var y=this.highlightedIndex%p;this.highlightedIndex=y*p<0?y+p:y;p=this.snippetElements[this.highlightedIndex];this.highlightSnippet(p);this.ensureVisible(p)}};
_.J.onKeyUp=function(p){var y=this;Zi9(p)&&(p.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.TR.cancelJob(this.inputTimerId),this.inputTimerId=_.TR.addLowPriorityJob(function(){y.typedValue&&(y.fetchSnippets(y.typedValue),y.logInputGesture(y.data))},1E3))};
_.J.onClick=function(p){(p=_.ULx(p.target,null,"snippet-item"))&&this.selectSnippet(p)};
_.J.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.J.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.J.ready=function(){var p=this;this.inputElement.addEventListener("focus",function(){p.snippetsWrapper.style.removeProperty("display")})};
_.J.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.J.getSourceTimelines=function(){if(!this.data)return[];var p=[];if(this.data.searchInVideoSources)for(var y=_.c(this.data.searchInVideoSources),l=y.next();!l.done;l=y.next())l=l.value,l==="SEARCH_IN_VIDEO_SOURCE_ASR"?p.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):l==="SEARCH_IN_VIDEO_SOURCE_OCR"&&p.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return p};
_.J.fetchSnippets=function(p){var y=_.$w(this.hostElement,"yt-get-current-video-id-action")[0],l=this.getSourceTimelines();p={getSearchInVideoCommand:{externalVideoId:y,query:p!=null?p:"",sourceTimelines:l},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.WC().resolve(_.aK).resolveCommand(p,{form:{element:this.hostElement}})};
_.J.filterSnippets=function(p,y){var l=this;if(y){this.filteredSnippets=(0,_.Ts.unsafeClone)(p);var q=RegExp(_.Zu8(y),"i");this.filteredSnippets=this.filteredSnippets.filter(function(e){return q.test(l.ytRendererBehavior.getSimpleString(e.snippet))});
p=_.c(this.filteredSnippets);for(var t=p.next();!t.done;t=p.next()){t=t.value;var E=this.ytRendererBehavior.getSimpleString(t.snippet);t.snippet={runs:[{text:E.substring(0,E.toLowerCase().indexOf(y))},{text:E.substring(E.toLowerCase().indexOf(y),E.toLowerCase().indexOf(y)+y.length),bold:!0},{text:E.substring(E.toLowerCase().indexOf(y)+y.length,E.length)}]}}}else this.filteredSnippets=p};
_.J.onUpdateSearchInVideoResults=function(p){if(!(this.snippets.length>0)){var y,l,q;if((q=(y=_.G(p,k0O))==null?void 0:(l=y.results)==null?void 0:l.length)!=null&&q){var t;this.filteredSnippets=this.snippets=((t=_.G(p,k0O))==null?void 0:t.results).map(function(E){var e,C,u;return{startMs:E==null?void 0:(e=E.searchInVideoResultRenderer)==null?void 0:e.startMs,startTimeText:E==null?void 0:(C=E.searchInVideoResultRenderer)==null?void 0:C.startTimeText,snippet:E==null?void 0:(u=E.searchInVideoResultRenderer)==
null?void 0:u.snippet}})}}};
_.J.updateSnippetElements=function(){this.snippetElements=Array.from(this.snippetsWrapper.getElementsByClassName("snippet-item"));this.highlightedIndex>=0&&this.highlightedIndex<this.snippetElements.length&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);this.highlightedIndex=-1;this.snippetsWrapper.scrollTop=0};
_.J.highlightSnippet=function(p){p.classList.add("highlighted")};
_.J.removeSnippetHighlight=function(p){p.classList.remove("highlighted")};
_.J.selectSnippet=function(p){this.typedValue=String(p.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(p);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.J.ensureVisible=function(p){var y=this.snippetsWrapper.scrollTop,l=y+this.snippetsWrapper.clientHeight,q=p.offsetTop-this.snippetsWrapper.offsetTop;p=q+p.clientHeight;q<y?this.snippetsWrapper.scrollTop-=y-q:p>l&&(this.snippetsWrapper.scrollTop+=p-l)};
_.J.seekPlayer=function(p){var y,l;return _.h(function(q){if(q.nextAddress==1){if(!p)return q.jumpTo(0);y=Number(p.dataset.startOffset);return q.yield(_.jo().getPlayerPromise(),3)}l=q.yieldResult;l.seekTo(y/1E3,!0);l.wakeUpControls();_.rR(q)})};
_.J.logInputGesture=function(p){var y=_.B2();y&&(p==null?0:p.trackingParams)&&_.Et(y,_.Tp(p.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.J.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JC("typed-value-changed",this.typedValue))};
_.J.updateTypedValueFromBinding=function(p){this.typedValue=p.currentTarget.value};
Fm.prototype.typedValueChangedForBinding=Fm.prototype.typedValueChangedForBinding;Fm.prototype.dataChanged=Fm.prototype.dataChanged;Fm.prototype.panelContentVisibleChanged=Fm.prototype.panelContentVisibleChanged;Fm.prototype.onClick=Fm.prototype.onClick;Fm.prototype.onKeyUp=Fm.prototype.onKeyUp;Fm.prototype.onKeyDown=Fm.prototype.onKeyDown;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Fm.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Fm.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Fm.prototype,"data",void 0);_.H([_.Q({value:[]}),_.x("design:type",Array)],Fm.prototype,"snippets",void 0);_.H([_.Q({value:[]}),_.x("design:type",Array)],Fm.prototype,"filteredSnippets",void 0);_.H([_.Q({value:[]}),_.x("design:type",Array)],Fm.prototype,"snippetElements",void 0);
_.H([_.rd("#siv-input"),_.x("design:type",HTMLElement)],Fm.prototype,"inputElement",void 0);_.H([_.rd("#siv-snippets-wrapper"),_.x("design:type",HTMLElement)],Fm.prototype,"snippetsWrapper",void 0);_.H([_.Q(),_.x("design:type",String)],Fm.prototype,"typedValue",void 0);_.H([_.Q({value:-1}),_.x("design:type",Number)],Fm.prototype,"highlightedIndex",void 0);_.H([_.VU("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[_.w5]),_.x("design:returntype")],Fm.prototype,"onKeyDown",null);
_.H([_.VU("keyup"),_.x("design:type",Function),_.x("design:paramtypes",[_.w5]),_.x("design:returntype")],Fm.prototype,"onKeyUp",null);_.H([_.VU("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Fm.prototype,"onClick",null);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Fm.prototype,"panelContentVisible",void 0);
_.H([_.gd("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Fm.prototype,"panelContentVisibleChanged",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Fm.prototype,"dataChanged",null);_.H([_.gd("typedValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Fm.prototype,"typedValueChangedForBinding",null);
_.H([_.k({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],Fm);
_.D(Fm,"ytd-search-in-video-renderer",function(){if(uwf!==void 0)return uwf;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-in-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-search-in-video-renderer" aria-owns="siv-snippets-wrapper" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-search-in-video-renderer" slot="prefix" icon="yt-icons:find_in_page"></yt-icon>\n  <input id="siv-input" slot="input" value="[[typedValue]]" type="text" placeholder="[[getSimpleString(data.placeholderText)]]" aria-autocomplete="list" aria-controls="siv-snippets-wrapper" aria-haspopup="listbox" role="combobox" on-input="updateTypedValueFromBinding" class="style-scope ytd-search-in-video-renderer">\n</tp-yt-paper-input-container>\n<div id="siv-snippets-wrapper" class="snippets-wrapper style-scope ytd-search-in-video-renderer" role="listbox">\n  <div class="no-results-item style-scope ytd-search-in-video-renderer" hidden="[[filteredSnippets.length]]">\n    [[getSimpleString(data.noResultsMessage)]]\n  </div>\n  <template is="dom-repeat" items="[[filteredSnippets]]" hidden="[[!filteredSnippets.length]]" on-dom-change="updateSnippetElements" class="style-scope ytd-search-in-video-renderer">\n    \n    <div class="snippet-item style-scope ytd-search-in-video-renderer" role="option" data-start-offset$="[[item.startMs]]" data-text$="[[getSimpleString(item.snippet)]]">\n      <yt-formatted-string class="start-time-text style-scope ytd-search-in-video-renderer" text="[[item.startTimeText]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="snippet-text style-scope ytd-search-in-video-renderer" text="[[item.snippet]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return uwf=p},{mode:1});var RVw;var LJ=function(){return _.w.apply(this,arguments)||this};
_.A(LJ,_.w);LJ.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
LJ.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]]"}}}}}};
LJ.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var p,y,l,q,t=(y=_.G((p=this.data)==null?void 0:p.onClickCommand,_.kB))==null?void 0:(l=y.item)==null?void 0:(q=l.notificationTextRenderer)==null?void 0:q.successResponseText;t&&_.Svt(this.hostElement,t)}};
_.Jh.Object.defineProperties(LJ.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q;return this.isProductPlaceholder&&((p=this.data)==null?void 0:(y=p.hiddenProductOptions)==null?void 0:y.showDropCountdown)&&!!((l=this.data)==null?0:(q=l.hiddenProductOptions)==null?0:q.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var p;return!this.isProductPlaceholder&&!((p=this.data)==null?0:p.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var p,y;return!((p=this.data)==null?0:p.priceReplacementText)&&!((y=this.data)==null||!y.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],LJ.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],LJ.prototype,"componentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],LJ.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],LJ.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("isProductPlaceholder"),_.x("design:type",Object),_.x("design:paramtypes",[])],LJ.prototype,"useCenterLayoutContainer",null);_.H([_.Q({computed:"computeButtonOverride(data)"}),_.x("design:type",Object)],LJ.prototype,"buttonOverride",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],LJ.prototype,"isProductPlaceholder",null);
_.H([_.g("isProductPlaceholder"),_.x("design:type",Object),_.x("design:paramtypes",[])],LJ.prototype,"showDropCountdown",null);_.H([_.g("isProductPlaceholder","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],LJ.prototype,"showBrandName",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],LJ.prototype,"showPriceReplacementText",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],LJ.prototype,"showPrice",null);
_.H([_.g("isProductPlaceholder"),_.x("design:type",Object),_.x("design:paramtypes",[])],LJ.prototype,"showMetadata",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],LJ);
_.D(LJ,"ytd-product-list-item-renderer",function(){if(RVw!==void 0)return RVw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div data-offer-version-id$="[[data.debugOfferVersionId]]" id="product-list-item" class="style-scope ytd-product-list-item-renderer"><a id="container" class="yt-simple-endpoint style-scope ytd-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" rel="[[computeNofollow_(data.onClickCommand)]]" data="[[data.onClickCommand]]" on-click="showSnackbarIfPlaceholder"><div id="product-thumbnail" class="style-scope ytd-product-list-item-renderer"><yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-product-list-item-renderer"></yt-img-shadow></div><div id="product-info-and-view" class="style-scope ytd-product-list-item-renderer"><div id="product-info" class="style-scope ytd-product-list-item-renderer"><h4 id="product-title" class="style-scope ytd-product-list-item-renderer">[[getSimpleString(data.title)]]</h4><template is="dom-if" if="[[showDropCountdown]]" class="style-scope ytd-product-list-item-renderer"><yt-countdown target-timestamp="[[data.hiddenProductOptions.dropTimestamp]]" class="style-scope ytd-product-list-item-renderer"></yt-countdown></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="merchant-name" class="style-scope ytd-product-list-item-renderer">[[data.merchantName]]</div></template><template is="dom-if" if="[[showBrandName]]" class="style-scope ytd-product-list-item-renderer"><div id="brand-name" class="style-scope ytd-product-list-item-renderer">[[data.brandName]]</div></template><template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price-replacement" class="style-scope ytd-product-list-item-renderer">[[data.priceReplacementText]]</div></template><template is="dom-if" restamp="" if="[[showPrice]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price" class="style-scope ytd-product-list-item-renderer">[[data.price]]</div></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="affiliate-disclaimer-text" class="style-scope ytd-product-list-item-renderer">\n            [[data.affiliateDisclaimerText]]\n          </div></template></div><div id="view-button" hidden="[[!showMetadata]]" class="style-scope ytd-product-list-item-renderer"></div></div></a><div id="action-button" class="style-scope ytd-product-list-item-renderer"></div></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return RVw=p},{mode:1});var Wi6;var kj=function(){return _.w.apply(this,arguments)||this};
_.A(kj,_.w);kj.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
kj.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
kj.prototype.panelContentVisibleChanged=function(){var p=this,y;return _.h(function(l){if(l.nextAddress==1)return p.playerApi?l.jumpTo(2):l.yield(_.jo().getPlayerPromise(),3);l.nextAddress!=2&&(p.playerApi=l.yieldResult);(y=p.playerApi)==null||y.productsInVideoVisibilityUpdated(!!p.panelContentVisible);_.rR(l)})};
kj.prototype.panelContentVisibleChanged=kj.prototype.panelContentVisibleChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],kj.prototype,"panelContentVisible",void 0);_.H([_.Q(),_.x("design:type",Object)],kj.prototype,"data",void 0);
_.H([_.gd("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],kj.prototype,"panelContentVisibleChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],kj);
_.D(kj,"ytd-product-list-renderer",function(){if(Wi6!==void 0)return Wi6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-product-list-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Wi6=p},{mode:1});var aA3;var Nd=function(){var p=_.w.apply(this,arguments)||this;p.hideTimestamps=!!_.Qh("hide-transcript-timestamps");p.currentCueIndex=-1;p.flatCues=[];p.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};p.TEST_ONLY={getFlatCues:function(){return p.flatCues}};
return p};
_.A(Nd,_.w);_.J=Nd.prototype;_.J.hideTimestampsChanged=function(){_.gB("hide-transcript-timestamps",this.hideTimestamps)};
_.J.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.J.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.J.dataChanged=function(){var p;if((p=this.data)!=null&&p.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;p=_.c(this.data.cueGroups);for(var y=p.next();!y.done;y=p.next()){y=_.c(_.G(y.value,Nfm).cues);for(var l=y.next();!l.done;l=y.next())this.flatCues.push(Number(_.G(l.value,DPA).startOffsetMs))}}};
_.J.onYtPlayerTimeChanged=function(p){if(!(p<0)){for(var y=this.currentCueIndex,l=y;;){var q=l>=0?this.flatCues[l]/1E3:-1;if(p+.5<q)--l;else if(q=l+1<this.flatCues.length?this.flatCues[l+1]/1E3:Infinity,p+.5>q)l+=1;else break}l!==y&&(y>=0&&((p=this.getCueElement(y))&&p.classList.remove("active"),(y=this.getCueGroupElement(y))&&y.classList.remove("active")),(y=this.getCueElement(l))&&y.classList.add("active"),(y=this.getCueGroupElement(l))&&y.classList.add("active"),this.currentCueIndex=l,this.isHovered||
this.scrollElementToTop(l))}};
_.J.scrollElementToTop=function(p){p=this.getCueElement(p>=3?p-3:0);this.hostElement.scrollTop=Math.min(p.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.J.getCueElement=function(p){return _.jR(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[p]+'"]')};
_.J.getCueGroupElement=function(p){return(p=this.getCueElement(p))&&p.parentElement?p.parentElement.parentElement:null};
_.J.onTap=function(p){var y=_.cm(p);p.target.classList.contains("cue")&&this.seekCueElement(y)};
_.J.onKeyPress=function(p){p.keyCode==13&&(p=_.ULx(p.target,null,"cue"))&&this.seekCueElement(p)};
_.J.seekCueElement=function(p){p=Number(p.getAttribute("start-offset"));_.$w(this.hostElement,"yt-transcript-player-seek",[p/1E3])};
_.J.onMouseEnter=function(){this.isHovered=!0};
_.J.onMouseLeave=function(){this.isHovered=!1};
Nd.prototype.onMouseLeave=Nd.prototype.onMouseLeave;Nd.prototype.onMouseEnter=Nd.prototype.onMouseEnter;Nd.prototype.onKeyPress=Nd.prototype.onKeyPress;Nd.prototype.onTap=Nd.prototype.onTap;Nd.prototype.dataChanged=Nd.prototype.dataChanged;Nd.prototype.hideTimestampsChanged=Nd.prototype.hideTimestampsChanged;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Nd.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Nd.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Nd.prototype,"hideTimestamps",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Nd.prototype,"isHovered",void 0);_.H([_.gd("hideTimestamps"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Nd.prototype,"hideTimestampsChanged",null);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Nd.prototype,"dataChanged",null);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Nd.prototype,"onTap",null);_.H([_.VU("keypress"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Nd.prototype,"onKeyPress",null);
_.H([_.VU("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Nd.prototype,"onMouseEnter",null);_.H([_.VU("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Nd.prototype,"onMouseLeave",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],Nd);
_.D(Nd,"ytd-transcript-body-renderer",function(){if(aA3!==void 0)return aA3;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template as="cueGroup" is="dom-repeat" items="[[data.cueGroups]]" class="style-scope ytd-transcript-body-renderer">\n  <div class="cue-group style-scope ytd-transcript-body-renderer">\n    <div class="cue-group-start-offset style-scope ytd-transcript-body-renderer">\n      [[getSimpleString(cueGroup.transcriptCueGroupRenderer.formattedStartOffset)]]\n    </div>\n    <div class="cues style-scope ytd-transcript-body-renderer">\n      <template is="dom-repeat" items="[[cueGroup.transcriptCueGroupRenderer.cues]]" class="style-scope ytd-transcript-body-renderer">\n        <div class="cue style-scope ytd-transcript-body-renderer" role="button" start-offset$="[[item.transcriptCueRenderer.startOffsetMs]]" tabindex="0">\n          [[getSimpleString(item.transcriptCueRenderer.cue)]]\n        </div>\n      </template>\n    </div>\n  </div>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return aA3=p},{mode:1});var mLX;var DW=function(){var p=_.w.apply(this,arguments)||this;p.darkerPanels=_.n("web_watch_darker_panels");return p};
_.A(DW,_.w);DW.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],DW.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],DW.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],DW.prototype,"darkerPanels",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],DW);
_.D(DW,"ytd-transcript-footer-renderer",function(){if(mLX!==void 0)return mLX;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="menu" class="style-scope ytd-transcript-footer-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return mLX=p},{mode:1});var ULX;var $LX;var He=function(){var p=_.w.apply(this,arguments)||this;p.systemIcons=_.n("kevlar_system_icons");p.showClearButton=!1;return p};
_.A(He,_.w);_.J=He.prototype;_.J.handleInput=function(p){var y=this;p.target.value.length?_.tl(this,"ytdTranscriptSearchBoxSearch",function(){y.emitSearchEvent(p)},500):(_.ana(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=p.target.value.length>0};
_.J.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.J.handleClick=function(){var p,y=(p=this.data)==null?void 0:p.trackingParams;y&&_.Kw(_.Ll(),y)};
_.J.handleClear=function(){_.ana(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var p,y,l=(y=_.G((p=this.data)==null?void 0:p.clearButton,_.yv))==null?void 0:y.trackingParams;l&&_.Kw(_.Ll(),l);this.clear()};
_.J.emitSearchEvent=function(p){_.Ub(this.hostElement,"yt-transcript-search-box-search",{query:p.target.value});var y,l;(p=(l=_.G((y=this.data)==null?void 0:y.searchButton,_.yv))==null?void 0:l.trackingParams)&&_.Kw(_.Ll(),p)};
_.J.emitClearEvent=function(){_.Ub(this.hostElement,"yt-transcript-search-box-clear")};
_.Jh.Object.defineProperties(He.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.jR(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],He.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],He.prototype,"systemIcons",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],He);
_.D(He,"ytd-transcript-search-box-renderer",function(){if($LX!==void 0)return $LX;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-transcript-search-box-renderer" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-transcript-search-box-renderer" slot="prefix" icon="yt-icons:search"></yt-icon>\n  <input id="transcript-search-box-input" slot="input" type="text" placeholder="[[getSimpleString(data.formattedPlaceholder)]]" aria-autocomplete="list" aria-haspopup="listbox" maxlength="1000" role="combobox" on-click="handleClick" on-input="handleInput" class="style-scope ytd-transcript-search-box-renderer">\n  <tp-yt-paper-icon-button class="clear-button style-scope ytd-transcript-search-box-renderer" slot="suffix" hidden="[[!showClearButton]]" icon="yt-sys-icons:close" on-click="handleClear"></tp-yt-paper-icon-button>\n</tp-yt-paper-input-container>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return $LX=p},{mode:1});var jTw;var b7m;var Tz=function(){return _.w.apply(this,arguments)||this};
_.A(Tz,_.w);Tz.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var p,y;this.sectionHeaderAriaLabel=(p=this.data)==null?void 0:(y=p.accessibility)==null?void 0:y.accessibilityData.label}};
Tz.prototype.fireSelectedEvent=function(p){_.Ub(this.hostElement,"ytd-transcript-section-header",{startMs:p})};
Tz.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
Tz.prototype.handleKeyPress=function(p){this.data&&p.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Jh.Object.defineProperties(Tz.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var p,y;return(y=(p=this.data)==null?void 0:p.enableTappableTranscriptHeader)!=null?y:!1}}});
Tz.prototype.dataChanged=Tz.prototype.dataChanged;_.H([_.Q(),_.x("design:type",Object)],Tz.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",String)],Tz.prototype,"sectionHeaderAriaLabel",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Tz.prototype,"enableTappableTranscriptHeader",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Tz.prototype,"dataChanged",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],Tz);
_.D(Tz,"ytd-transcript-section-header-renderer",function(){if(b7m!==void 0)return b7m;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" class="transcript-section-header style-scope ytd-transcript-section-header-renderer" aria-label$="[[sectionHeaderAriaLabel]]" tabindex="0" role="button" on-click="handleClick" on-keypress="handleKeyPress">\n    <yt-section-header-view-model data="[[data.sectionHeader.sectionHeaderViewModel]]" disable-vertical-padding="true" force-small-layout="true" class="style-scope ytd-transcript-section-header-renderer">\n  </yt-section-header-view-model></div>\n</template>\n<template is="dom-if" restamp="" if="[[!enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" aria-label$="[[sectionHeaderAriaLabel]]" class="style-scope ytd-transcript-section-header-renderer">\n    <yt-formatted-string id="title" aria-hidden="true" tabindex="-1" text="[[data.snippet]]" class="style-scope ytd-transcript-section-header-renderer">\n    </yt-formatted-string>\n  </div>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return b7m=p},{mode:1});var n16;var Gd6;var xj=function(){var p=_.w.apply(this,arguments)||this;p.isEditMode=!1;p.touchCaptionsEnabled=!1;p.deleteCaptionCorrectionPopupCommand=null;p.voteCaptionCorrectionPopupCommand=null;p.roundedContainer=!0;p.mouseOver=!1;p.textChanged=!1;p.messages={suggest_correction:_.g$("suggest_correction",void 0,"Edit caption"),suggested_caption:_.g$("suggested_caption",void 0,"Suggested caption"),submit_correction:_.g$("submit_correction",void 0,"Submit for review"),cancel_correction:_.g$("cancel_correction",
void 0,"Cancel"),replay_segment:_.g$("replay_segment",void 0,"Re-play segment"),delete_correction:_.g$("delete_correction",void 0,"Delete correction")};p.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return p};
_.A(xj,_.w);_.J=xj.prototype;_.J.dataChanged=function(){this.isEditMode=!1;this.editedText=this.data?this.data.userCorrection:void 0;this.data&&this.data.deleteCaptionCorrectionPopupCommand&&(this.deleteCaptionCorrectionPopupCommand=this.data.deleteCaptionCorrectionPopupCommand);this.data&&this.data.voteCaptionCorrectionPopupCommand&&(this.voteCaptionCorrectionPopupCommand=this.data.voteCaptionCorrectionPopupCommand);this.data&&this.data.accessibility&&(this.segmentAriaLabel=this.data.accessibility.accessibilityData.label)};
_.J.handleDelete=function(p){if(this.deleteCaptionCorrectionPopupCommand){var y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);y&&this.ytdOpenPopupBehavior.openPopup(y);p.stopPropagation()}};
_.J.handleSubmit=function(p){if(this.data&&this.data.submitCaptionCorrectionCommand&&(p.stopPropagation(),this.textChanged)){var y;p=(y=_.G(this.data.submitCaptionCorrectionCommand,_.luV))==null?void 0:y.params;y=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:p,correctionText:String(this.ironTextAreaElement.value),originalText:_.JB(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(y);this.isEditMode=!1}};
_.J.handleUpdateSegmentText=function(p){(p=_.G(p,qcZ))&&p.targetId&&this.data&&p.targetId===this.data.targetId&&(p.userCorrection&&(this.editedText=p.userCorrection),p.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.JB(this.data.snippet)),p.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=p.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=p.voteCaptionCorrectionPopupCommand?
p.voteCaptionCorrectionPopupCommand:null,p.accessibility&&(this.segmentAriaLabel=p.accessibility.accessibilityData.label))};
_.J.handleCancel=function(p){this.isEditMode=!1;p.stopPropagation();this.logClientVe(159409)};
_.J.handleEditSegmentCommand=function(p){(p=_.G(p,ltB))&&p.targetId&&this.data&&p.targetId===this.data.targetId&&this.handleEdit()};
_.J.handleEditButtonClick=function(p){this.data&&(this.handleEdit(),p.stopPropagation())};
_.J.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var p;(p=this.ironTextAreaElement.textarea)==null||p.focus();this.logClientVe(159407)}};
_.J.handleMouseEnter=function(){this.mouseOver=!0};
_.J.handleMouseLeave=function(){this.mouseOver=!1};
_.J.handleReplay=function(p){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),p.stopPropagation(),this.logClientVe(159408))};
_.J.handleClick=function(){this.data&&(this.voteCaptionCorrectionPopupCommand?(this.ytComponentBehavior.resolveCommand(this.voteCaptionCorrectionPopupCommand),this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs))):(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()))};
_.J.handleKeypress=function(p){this.data&&(this.isEditMode?p.stopPropagation():this.isEnterPress(p)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(p)&&this.logClientVe(138758))};
_.J.handleTextboxClick=function(p){p.stopPropagation()};
_.J.handleTextboxKeydown=function(p){this.isControlEnterPress(p)?this.handleSubmit(p):p.key==="Escape"&&this.handleCancel(p)};
_.J.handleTextboxKeyup=function(){this.textChanged=_.JB(this.latestText)!==String(this.ironTextAreaElement.value)};
_.J.fireSelectedEvent=function(p){_.Ub(this.hostElement,"yt-transcript-segment-selected",{startMs:p})};
_.J.fireReplayEvent=function(p,y){_.Ub(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(p-100,0),endMs:y})};
_.J.fireEditEvent=function(p,y){_.Ub(this.hostElement,"yt-transcript-segment-edit",{startMs:p,endMs:y})};
_.J.isEnterPress=function(p){return p.key==="Enter"||p.code==="Enter"||p.code==="NumpadEnter"||p.keyCode===13?!0:!1};
_.J.isControlEnterPress=function(p){var y=p.key==="Enter"||p.code==="Enter"||p.code==="NumpadEnter"||p.keyCode===13;return(p.ctrlKey||p.metaKey)&&y};
_.J.isCopyPress=function(p){var y=p.ctrlKey;return p.key==="c"&&y};
_.J.logClick=function(){var p,y=(p=this.data)==null?void 0:p.trackingParams;y&&_.Kw(_.Ll(),y)};
_.J.logClientVe=function(p){_.Qv(_.Ll(),_.fY(p))};
_.Jh.Object.defineProperties(xj.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}}});
xj.prototype.handleMouseLeave=xj.prototype.handleMouseLeave;xj.prototype.handleMouseEnter=xj.prototype.handleMouseEnter;xj.prototype.dataChanged=xj.prototype.dataChanged;_.H([_.V(_.no.YtActionHandlerBehavior),_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],xj.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.RP),_.x("design:type",Object)],xj.prototype,"ytdOpenPopupBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],xj.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],xj.prototype,"isEditMode",void 0);_.H([_.Q(),_.x("design:type",Object)],xj.prototype,"touchCaptionsEnabled",void 0);_.H([_.Q(),_.x("design:type",Object)],xj.prototype,"editedText",void 0);_.H([_.Q(),_.x("design:type",Object)],xj.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.H([_.Q(),_.x("design:type",Object)],xj.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.H([_.Q(),_.x("design:type",String)],xj.prototype,"segmentAriaLabel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],xj.prototype,"roundedContainer",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],xj.prototype,"mouseOver",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],xj.prototype,"textChanged",void 0);_.H([_.Q(),_.x("design:type",Object)],xj.prototype,"messages",void 0);
_.H([_.rd("#suggestion"),_.x("design:type",Object)],xj.prototype,"ironTextAreaElement",void 0);_.H([_.g("data","editedText"),_.x("design:type",Object),_.x("design:paramtypes",[])],xj.prototype,"latestText",null);_.H([_.g("touchCaptionsEnabled","isEditMode"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],xj.prototype,"enableEditButton",null);
_.H([_.g("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],xj.prototype,"enableUndoButton",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xj.prototype,"dataChanged",null);_.H([_.VU("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xj.prototype,"handleMouseEnter",null);
_.H([_.VU("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xj.prototype,"handleMouseLeave",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],xj);
_.D(xj,"ytd-transcript-segment-renderer",function(){if(Gd6!==void 0)return Gd6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="segment style-scope ytd-transcript-segment-renderer" aria-label$="[[segmentAriaLabel]]" role="button" tabindex="0" on-click="handleClick" on-keypress="handleKeypress">\n  <div class="segment-start-offset style-scope ytd-transcript-segment-renderer" tabindex="-1" aria-hidden="true" on-keypress="handleKeypress">\n    <div class="segment-timestamp style-scope ytd-transcript-segment-renderer">\n      [[getSimpleString(data.startTimeText)]]\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <tp-yt-paper-input-container hidden="[[!isEditMode]]" no-label-float="true" use-v2-underline="" on-click="handleTextboxClick" on-keydown="handleTextboxKeydown" on-keyup="handleTextboxKeyup" class="style-scope ytd-transcript-segment-renderer">\n      <tp-yt-iron-autogrow-textarea id="suggestion" class="paper-input-input style-scope ytd-transcript-segment-renderer" slot="input" label="[[messages.suggested_caption]]" max-rows="4" required="true" rows="1" value="[[getSimpleString(data.snippet)]]">\n      </tp-yt-iron-autogrow-textarea>\n    </tp-yt-paper-input-container>\n    <div id="actions" hidden="[[!isEditMode]]" class="style-scope ytd-transcript-segment-renderer">\n      <div class="submit style-scope ytd-transcript-segment-renderer" on-click="handleSubmit">\n        <yt-icon-button label="[[messages.submit_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:check" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.submit_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="cancel style-scope ytd-transcript-segment-renderer" on-click="handleCancel">\n        <yt-icon-button label="[[messages.cancel_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.cancel_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="replay style-scope ytd-transcript-segment-renderer" on-click="handleReplay">\n        <yt-icon-button label="[[messages.replay_segment]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:replay_arrow" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.replay_segment]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n    </div>\n  </template>\n  <yt-formatted-string class="segment-text style-scope ytd-transcript-segment-renderer" aria-hidden="true" hidden="[[isEditMode]]" tabindex="-1" text="[[latestText]]">\n  </yt-formatted-string>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <div class="segment-undo style-scope ytd-transcript-segment-renderer" on-click="handleDelete" hidden="[[!enableUndoButton]]">\n      <yt-icon-button label="[[messages.delete_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:arrow_undo" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.delete_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n    <div class="segment-edit style-scope ytd-transcript-segment-renderer" on-click="handleEditButtonClick" hidden="[[!enableEditButton]]">\n      <yt-icon-button label="[[messages.suggest_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:edit" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.suggest_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n  </template>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Gd6=p},{mode:1});var Be=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};p.isError=!1;p.darkerPanels=_.n("web_watch_darker_panels");p.useParentMaxHeight=_.n("web_watch_transscript_use_parent_max_height");p.segmentOffsets=[];p.segmentIndex=-1;return p};
_.A(Be,_.w);_.J=Be.prototype;_.J.configureRendererStamper=function(){return{segments:{id:"segments-container",mapping:{transcriptSegmentRenderer:{component:"ytd-transcript-segment-renderer",properties:{touchCaptionsEnabled:"[[data.touchCaptionsEnabled]]"}},transcriptSectionHeaderRenderer:{component:"ytd-transcript-section-header-renderer"}}}}};
_.J.segmentsChanged=function(){this.updateOffsets()};
_.J.onYtPlayerTimeChanged=function(p){for(var y=this.segmentIndex,l=y;;){if(l>=0){var q=this.segmentOffsets[l].start;var t=this.segmentOffsets[l].isAutoScrollable}else q=-1,t=!0;var E=p+.5;if(!t){q=l+1<this.segmentOffsets.length?this.segmentOffsets[l+1].start:Infinity;if(E>=q){l+=1;continue}l=-1;break}if(E<q)q=l-1>=0&&this.segmentOffsets[l-1].isAutoScrollable,t=l===0||q?1:2,l-=t;else if(t=l+1<this.segmentOffsets.length&&this.segmentOffsets[l+1].isAutoScrollable?1:2,q=l+t<this.segmentOffsets.length?
this.segmentOffsets[l+t].start:Infinity,E>q)l+=t;else{if(l<0)break;l<this.segmentOffsets.length&&E>this.segmentOffsets[l].end&&(l=-1);break}}if(y!==l){if(y>=0){var e;(e=this.getSegmentElement(y))==null||e.classList.remove("active")}this.segmentIndex=l;if(!(l<0)){var C;(C=this.getSegmentElement(l))==null||C.classList.add("active");this.isHovered||this.scrollElementToTop(l)}}};
_.J.handleSegmentEdit=function(p){p.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=p.target,_.$w(this.hostElement,"yt-transcript-player-edit",[p.detail.startMs/1E3,p.detail.endMs/1E3]))};
_.J.handleSegmentSelected=function(p){_.$w(this.hostElement,"yt-transcript-player-seek",[p.detail.startMs/1E3])};
_.J.handleSegmentReplay=function(p){_.$w(this.hostElement,"yt-transcript-player-replay",[p.detail.startMs/1E3,p.detail.endMs/1E3])};
_.J.handleSectionHeaderSelected=function(p){_.$w(this.hostElement,"yt-transcript-player-seek",[p.detail.startMs/1E3])};
_.J.onMouseEnter=function(){this.isHovered=!0};
_.J.onMouseLeave=function(){this.isHovered=!1};
_.J.onRetryButtonClick=function(){_.Ub(this.hostElement,"transcript-retry-button-click")};
_.J.getSegmentElement=function(p){return _.jR(this.hostElement).querySelector(":nth-child("+(p+1)+")")};
_.J.scrollElementToTop=function(p){p=this.getSegmentElement(p>=2?p-2:0);this.hostElement.scrollTop=Math.min(p.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.J.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(p){var y,l=(y=p.transcriptSegmentRenderer)!=null?y:p.transcriptSectionHeaderRenderer;return{start:Number(l.startMs)/1E3,end:Number(l.endMs)/1E3,isAutoScrollable:p.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.J.clearHighlightedSegments=function(){var p=_.jR(this.hostElement);p=_.c(p.querySelectorAll("ytd-transcript-segment-renderer"));for(var y=p.next();!y.done;y=p.next())y.value.classList.remove("active")};
_.Jh.Object.defineProperties(Be.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.data)==null?void 0:p.searchResultSegments)||((y=this.data)==null?void 0:y.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
Be.prototype.onMouseLeave=Be.prototype.onMouseLeave;Be.prototype.onMouseEnter=Be.prototype.onMouseEnter;Be.prototype.handleSectionHeaderSelected=Be.prototype.handleSectionHeaderSelected;Be.prototype.handleSegmentReplay=Be.prototype.handleSegmentReplay;Be.prototype.handleSegmentSelected=Be.prototype.handleSegmentSelected;Be.prototype.handleSegmentEdit=Be.prototype.handleSegmentEdit;Be.prototype.segmentsChanged=Be.prototype.segmentsChanged;
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Be.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Be.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Be.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Be.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Be.prototype,"isError",void 0);
_.H([_.Q(),_.x("design:type",Object)],Be.prototype,"noResultLabel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Be.prototype,"darkerPanels",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Be.prototype,"useParentMaxHeight",void 0);_.H([_.g("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],Be.prototype,"segments",null);
_.H([_.g("segments","noResultLabel"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Be.prototype,"displayNoResults",null);_.H([_.gd("segments"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Be.prototype,"segmentsChanged",null);_.H([_.VU("yt-transcript-segment-edit"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Be.prototype,"handleSegmentEdit",null);
_.H([_.VU("yt-transcript-segment-selected"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Be.prototype,"handleSegmentSelected",null);_.H([_.VU("yt-transcript-segment-replay"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Be.prototype,"handleSegmentReplay",null);
_.H([_.VU("ytd-transcript-section-header"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Be.prototype,"handleSectionHeaderSelected",null);_.H([_.VU("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Be.prototype,"onMouseEnter",null);_.H([_.VU("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Be.prototype,"onMouseLeave",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],Be);
_.D(Be,"ytd-transcript-segment-list-renderer",function(){if(n16!==void 0)return n16;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="segments-container" class="style-scope ytd-transcript-segment-list-renderer"></div>\n<div id="message-container" hidden="[[!displayNoResults]]" class="style-scope ytd-transcript-segment-list-renderer">\n  <yt-formatted-string id="no-results" text="[[noResultLabel]]" class="style-scope ytd-transcript-segment-list-renderer">\n  </yt-formatted-string>\n</div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return n16=p},{mode:1});var fJ=function(){var p=_.w.apply(this,arguments)||this;p.hideTimestamps=!!_.Qh("hide-transcript-timestamps");p.isLoadingTranscripts=!1;p.darkerPanels=_.n("web_watch_darker_panels");p.isError=!1;p.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return p};
_.A(fJ,_.w);_.J=fJ.prototype;_.J.headerChanged=function(){var p,y;this.baseGetTranscriptsCommand=(y=_.G((p=this.data)==null?void 0:p.header,sg3))==null?void 0:y.onTextChangeCommand};
_.J.bodyChanged=function(){var p=this.getBodyRenderer();p&&(p.initialSegments&&(this.initialTranscriptsRenderer=p),p.noResultLabel&&(this.noResultLabel=p.noResultLabel),p.retryLabel&&(this.retryLabel=p.retryLabel))};
_.J.detached=function(){this.clearSearchBoxText()};
_.J.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.J.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{transcriptSearchBoxRenderer:"ytd-transcript-search-box-renderer"}},"data.body":{id:"body",mapping:{transcriptSegmentListRenderer:{component:"ytd-transcript-segment-list-renderer",properties:{noResultLabel:"[[noResultLabel]]"}}}},"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}}}};
_.J.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.J.fireSearch=function(p){var y=this;if(p){var l=p.detail.query;if(this.baseGetTranscriptsCommand){var q;p=(q=_.G(this.baseGetTranscriptsCommand,_.Fti))==null?void 0:q.params;var t;q=_.G((t=this.data)==null?void 0:t.footer,Hiu);var E;if((t=(E=_.G(q==null?void 0:q.languageMenu,IGu))==null?void 0:E.subMenuItems)&&t.length>0&&(E=t.find(function(u){return u.selected}))){var e,C;
p=(e=E.continuation)==null?void 0:(C=e.reloadContinuationData)==null?void 0:C.continuation}e=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:p,searchQuery:l}});this.ytComponentBehavior.resolveCommand(e,{commandController:{onServerError:function(){y.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});PE7(this.ytContinuationHandlerBehavior,function(){return l===y.getCurrentSearchBoxText()})}}};
_.J.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.J.onRetryButtonClick=function(){this.isError=!1;var p={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:p}))};
_.J.hideTimestampsChanged=function(){_.gB("hide-transcript-timestamps",this.hideTimestamps)};
_.J.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.J.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.J.handleSignalActionCopyTranscript=function(){var p=this,y=this.getBodyRenderer();y&&(y=((y==null?void 0:y.searchResultSegments)||(y==null?void 0:y.initialSegments)||[]).map(function(l){return _.G(l,E6E)}).filter(function(l){return!!l}).map(function(l){return{snippet:l.snippet||{runs:[{text:""}]},
startTimeText:l.startTimeText||{simpleText:""}}}).map(function(l){var q=(l.snippet.runs||[]).reduce(function(t,E){return t+E.text},"");
return p.hideTimestamps?q:l.startTimeText.simpleText+" "+q}).join("\n"),this.copyToClipboard(y))};
_.J.copyToClipboard=function(p){navigator.clipboard&&navigator.clipboard.writeText(p)};
_.J.getCurrentSearchBoxText=function(){var p;return(p=this.searchBox)==null?void 0:p.value};
_.J.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.J.getBodyRenderer=function(){var p;return _.G((p=this.data)==null?void 0:p.body,tjZ)};
_.J.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Jh.Object.defineProperties(fJ.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.jR(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
fJ.prototype.hideTimestampsChanged=fJ.prototype.hideTimestampsChanged;fJ.prototype.searchCleared=fJ.prototype.searchCleared;fJ.prototype.fireSearch=fJ.prototype.fireSearch;fJ.prototype.onReloadContinuationFinish=fJ.prototype.onReloadContinuationFinish;fJ.prototype.bodyChanged=fJ.prototype.bodyChanged;fJ.prototype.headerChanged=fJ.prototype.headerChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],fJ.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],fJ.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],fJ.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.tP),_.x("design:type",Object)],fJ.prototype,"ytContinuationHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],fJ.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],fJ.prototype,"hideTimestamps",void 0);
_.H([_.Q(),_.x("design:type",Object)],fJ.prototype,"isLoadingTranscripts",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],fJ.prototype,"darkerPanels",void 0);_.H([_.Q(),_.x("design:type",Object)],fJ.prototype,"isError",void 0);_.H([_.gd("data.header"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fJ.prototype,"headerChanged",null);
_.H([_.k8("data.body"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fJ.prototype,"bodyChanged",null);_.H([_.VU("yt-reload-continuation-finish"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fJ.prototype,"onReloadContinuationFinish",null);_.H([_.VU("yt-transcript-search-box-search"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],fJ.prototype,"fireSearch",null);
_.H([_.VU("yt-transcript-search-box-clear"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fJ.prototype,"searchCleared",null);_.H([_.gd("hideTimestamps"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fJ.prototype,"hideTimestampsChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],fJ);
_.D(fJ,"ytd-transcript-search-panel-renderer",function(){if(jTw!==void 0)return jTw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="body" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="error-container" hidden="[[!isError]]" class="style-scope ytd-transcript-search-panel-renderer">\n  <tp-yt-paper-button id="retry-button" on-click="onRetryButtonClick" class="style-scope ytd-transcript-search-panel-renderer">\n    <yt-formatted-string text="[[retryLabel]]" class="style-scope ytd-transcript-search-panel-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-button>\n</div>\n<div class="spinner-container style-scope ytd-transcript-search-panel-renderer" hidden="[[!isLoadingTranscripts]]">\n  <tp-yt-paper-spinner active="[[isLoadingTranscripts]]" class="style-scope ytd-transcript-search-panel-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="footer" class="style-scope ytd-transcript-search-panel-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return jTw=p},{mode:1});var ve=function(){var p=_.w.apply(this,arguments)||this;p.player=null;p.playerPollJobId=0;return p};
_.A(ve,_.w);_.J=ve.prototype;_.J.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.J.onLoadReloadContinuation=function(p){_.n("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:p.target.data.continuation}}):(p={clickTrackingParams:p.target.data.clickTrackingParams,getTranscriptEndpoint:{params:p.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.WC().resolve(_.aK).resolveCommand(p,{form:{element:this.hostElement}}))};
_.J.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}},"data.body":{id:"body",mapping:{transcriptBodyRenderer:"ytd-transcript-body-renderer"}},"data.content":{id:"content",mapping:{transcriptSearchPanelRenderer:"ytd-transcript-search-panel-renderer"}}}};
_.J.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.J.attached=function(){this.updatePlayerListening()};
_.J.detached=function(){this.updatePlayerListening()};
_.J.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.J.startPlayerListening=function(){var p=this,y;return _.h(function(l){if(l.nextAddress==1)return(y=_.$o())?l.yield(y.getPlayerPromise(),2):l.return();p.player=l.yieldResult;p.playerPollJobId=_.TR.addLowPriorityJob(function(){p.getPlayerVideoProgress()},1E3);
p.player.addEventListener("onCueRangeEnter",function(q){p.onCueRangeEnter(q)});
p.player.addEventListener("onCueRangeExit",function(q){p.onCueRangeExit(q)});
p.player.addEventListener("onStateChange",function(q){p.onPlayerStateChange(q)});
p.player.addEventListener("SEEK_TO",function(q){p.onPlayerSeek(q)});
_.rR(l)})};
_.J.getPlayerVideoProgress=function(){var p=this;_.TR.cancelJob(this.playerPollJobId);if(this.player){var y=this.player.getCurrentTime();_.$w(this.hostElement,"yt-player-time-changed",[y])}this.playerPollJobId=_.TR.addLowPriorityJob(function(){p.getPlayerVideoProgress()},1E3)};
_.J.stopPlayerListening=function(){this.player=null;_.TR.cancelJob(this.playerPollJobId)};
_.J.onPlayerStateChange=function(p){p===2&&this.removePendingCue()};
_.J.onPlayerSeek=function(p){var y;if(y=this.pendingReplayCueId)y=this.pendingReplayCueId,y=p===(_.n("web_transcript_cue_id_killswitch")?Number(y):Number(y.split("_")[1]));y||this.removePendingCue()};
_.J.onCueRangeEnter=function(p){OJ1(p)&&(this.pendingReplayCueId=p)};
_.J.onCueRangeExit=function(p){OJ1(p)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.J.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.J.onYtTranscriptPlayerSeek=function(p){this.player&&this.player.seekTo(p,!0)};
_.J.onYtTranscriptPlayerReplay=function(p,y){this.player&&(this.player.addCueRange(ddi(p),p,y),this.player.seekTo(p,!0),this.player.playVideo())};
_.J.onYtTranscriptPlayerEdit=function(p,y){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(ddi(p),p,y),this.player.seekTo(p,!0))};
ve.prototype.onLoadReloadContinuation=ve.prototype.onLoadReloadContinuation;ve.prototype.panelContentVisibleChanged=ve.prototype.panelContentVisibleChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ve.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],ve.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ve.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],ve.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ve.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],ve.prototype,"panelContentVisible",void 0);_.H([_.gd("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ve.prototype,"panelContentVisibleChanged",null);
_.H([_.VU("yt-load-reload-continuation"),_.x("design:type",Function),_.x("design:paramtypes",[Object]),_.x("design:returntype")],ve.prototype,"onLoadReloadContinuation",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],ve);
_.D(ve,"ytd-transcript-renderer",function(){if(ULX!==void 0)return ULX;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" class="style-scope ytd-transcript-renderer"></div>\n<div id="content" class="style-scope ytd-transcript-renderer"></div>\n<div id="footer" class="style-scope ytd-transcript-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return ULX=p},{mode:1});var P9Z;var AmO;var Xm=function(){return _.w.apply(this,arguments)||this};
_.A(Xm,_.w);Xm.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Ub(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Gf(this.hostElement,[this.data.clickCommand],this.hostElement))};
Xm.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.Io)()+_.Fj)+"px)"};
Xm.prototype.updateShouldHideFromBinding=function(p){this.shouldHide=p.detail.value};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Xm.prototype,"rendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Xm.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Xm.prototype,"shouldHide",void 0);_.H([_.k({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Xm);
_.D(Xm,"ytd-ad-engagement-panel-banner-renderer",function(){if(AmO!==void 0)return AmO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-engagement-panel-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[computeHideMediaQuery()]]" query-matches="[[shouldHide]]" on-query-matches-changed="updateShouldHideFromBinding" class="style-scope ytd-ad-engagement-panel-banner-renderer">\n</iron-media-query>\n<a class="yt-simple-endpoint banner-click-container style-scope ytd-ad-engagement-panel-banner-renderer" hidden="[[shouldHide]]" on-tap="onTap">\n  <yt-img-shadow class="banner-image style-scope ytd-ad-engagement-panel-banner-renderer" fit="" thumbnail="[[data.bannerImage]]">\n  </yt-img-shadow>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return AmO=p},{mode:_.ZS("kevlar_poly_si_batch_j070")?1:2});var Z7Z;var dX=function(){var p=_.w.apply(this,arguments)||this;p.modernPanels=_.n("kevlar_watch_modern_panels");p.buttonUpdate=_.n("web_modern_buttons");p.adsSemanticText=_.n("enable_ads_web_ep_buenos_aires_and_padding_fix");return p};
_.A(dX,_.w);dX.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.H([_.Q(),_.x("design:type",Object)],dX.prototype,"data",void 0);_.H([_.Q({computed:"computeHideDefaultAdBadge(data)"}),_.x("design:type",Boolean)],dX.prototype,"hideDefaultAdBadge",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],dX.prototype,"modernPanels",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],dX.prototype,"buttonUpdate",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],dX.prototype,"adsSemanticText",void 0);
_.H([_.k({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],dX);
_.D(dX,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(Z7Z!==void 0)return Z7Z;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-ad-subtitle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="ad-badge" badges="[[data.badges]]" hidden="[[hideDefaultAdBadge]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-badge-supported-renderer>\n<ytd-ad-hover-text-button-renderer id="ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-ad-hover-text-button-renderer>\n<yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Z7Z=p},{mode:1});var Mda;var Oj=function(){var p=_.w.apply(this,arguments)||this;p.darkerPanels=_.n("web_watch_darker_panels");p.enableSqueezebackPanels=_.n("web_shorts_enable_squeezeback_panels");p.enableAnchoredPanel=_.n("desktop_shorts_v2_anchored_panel");p.modernPanels=_.n("kevlar_watch_modern_panels");p.headerClickListener=function(y){p.onHeaderClick(y)};
p.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return p};
_.A(Oj,_.w);_.J=Oj.prototype;_.J.computeAdsInfoButton=function(){if(_.n("web_modern_buttons")){var p,y;return(y=_.G((p=this.data)==null?void 0:p.subtitleComplex,TfT))==null?void 0:y.adInfoRenderer}};
_.J.updateHeaderClickListener=function(){var p,y,l;((p=this.data)==null?0:p.navigationEndpoint)||((y=this.data)==null?0:y.onClickCommand)||_.G((l=this.data)==null?void 0:l.visibilityButton,_.lV)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.J.configureRendererStamper=function(){return{"data.visibilityButton":{id:"visibility-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer",sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.subtitleComplex":{id:"subtitle-complex",mapping:{engagementPanelAdSubtitleRenderer:"ytd-engagement-panel-ad-subtitle-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
adsInfoButton:{id:"ads-info-button",mapping:{adHoverTextButtonRenderer:{component:"ytd-ad-hover-text-button-renderer",params:{modernUpdate:!0}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.banner":{id:"banner",mapping:{adEngagementPanelBannerRenderer:"ytd-ad-engagement-panel-banner-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"},reuseComponents:!1},"data.subheader":{id:"subheader",
mapping:{chipBarViewModel:{component:"chip-bar-view-model",params:{disableDeselection:!0}}}}}};
_.J.collapsedChanged=function(){var p;(p=this.data)!=null&&p.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.n("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.J.focus=function(p){var y=this;this.titleElement&&_.TR.addJob(function(){_.tp(y.titleElement,p)},0,500)};
_.J.computeTitleAriaLabel=function(p){var y=[];if(p.title){var l,q;y.push(this.ytRendererBehavior.getSimpleString(p.title)||((l=p.title.accessibility)==null?void 0:(q=l.accessibilityData)==null?void 0:q.label))}p.contextualInfo&&y.push(this.ytRendererBehavior.getSimpleString(p.contextualInfo));return y.join(" ")};
_.J.onHeaderClick=function(p){this.shouldTriggerHeaderClick(p)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Ub(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Gf(this.hostElement,[this.data.onClickCommand],this.hostElement)):(p=this.getVisibilityToggleButton())&&p.click())};
_.J.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var p=_.G(this.data.visibilityButton,_.yv)||_.G(this.data.visibilityButton,_.lV);p&&this.ytRendererBehavior.logExplicitClick(p)}};
_.J.getVisibilityToggleButton=function(){var p=_.jR(this.hostElement).querySelector("#visibility-button").firstElementChild;return(p==null?void 0:p.is)==="ytd-toggle-button-renderer"?p:null};
_.J.shouldTriggerHeaderClick=function(p){return!_.WN(_.Jx(p),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.J.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(p){p=_.G(p,_.ii9);this.targetId&&(p==null?void 0:p.targetId)===this.targetId&&(p=p.navigationButton)&&this.set("data.navigationButton",p)};
_.Jh.Object.defineProperties(Oj.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.n("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var p;return!!(((p=this.entity)==null?0:p.isActionButtonHidden)||this.hideActionButton)}}});
Oj.prototype.collapsedChanged=Oj.prototype.collapsedChanged;Oj.prototype.updateHeaderClickListener=Oj.prototype.updateHeaderClickListener;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Oj.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Oj.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Oj.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.zL),_.x("design:type",Object)],Oj.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Oj.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",String)],Oj.prototype,"targetId",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Oj.prototype,"collapsed",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Oj.prototype,"hideActionButton",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Oj.prototype,"shortsPanel",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Oj.prototype,"liveChatEngagementPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Oj.prototype,"learningChatEngagementPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Oj.prototype,"darkerPanels",void 0);_.H([_.rd("#title"),_.x("design:type",HTMLElement)],Oj.prototype,"titleElement",void 0);_.H([_.rd("#header"),_.x("design:type",HTMLElement)],Oj.prototype,"headerElement",void 0);
_.H([_.Q({computed:"computeAdsInfoButton(data)"}),_.x("design:type",Object)],Oj.prototype,"adsInfoButton",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Oj.prototype,"enableSqueezebackPanels",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Oj.prototype,"enableAnchoredPanel",void 0);_.H([_.Q({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(p,y){return _.Ae(p.entities,"engagementPanelTitleHeaderEntity",y)}}),
_.x("design:type",Object)],Oj.prototype,"entity",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Oj.prototype,"modernPanels",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("targetId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Oj.prototype,"adsSemanticText",null);_.H([_.gd("data","data.navigationEndpoint","data.onClickCommand"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Oj.prototype,"updateHeaderClickListener",null);
_.H([_.k8("collapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Oj.prototype,"collapsedChanged",null);_.H([_.g("entity","hideActionButton"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Oj.prototype,"isActionButtonHidden",null);_.H([_.k({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],Oj);
_.D(Oj,"ytd-engagement-panel-title-header-renderer",function(){if(Mda!==void 0)return Mda;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Mda=p},{mode:1});var VdO;var om=function(){return _.w.apply(this,arguments)||this};
_.A(om,_.w);om.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],om.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],om.prototype,"data",void 0);_.H([_.k({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],om);
_.D(om,"ytd-macro-markers-info-item-renderer",function(){if(VdO!==void 0)return VdO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-info-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.infoText]]" class="style-scope ytd-macro-markers-info-item-renderer"></yt-formatted-string>\n<div id="menu" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n<div id="edit" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return VdO=p},{mode:1});var g1l;var wRf=function(p,y,l,q,t,E){_.Sr.call(this);var e=this;this.JSC$22485_containerElement=p;this.hostElement=y;this.supportedSyncItems=l;this.syncEntityKey=q;this.options=t;this.renderLazyListItems=E;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;QTX(this);Kia(this);this.JSC$22485_scrollAnimation=new _.lu(function(C){p.scrollTop=C});
_.P9(this,this.JSC$22485_scrollAnimation);this.addOnDisposeCallback(function(){e.exitBrowsingMode(!1);e.activeItem&&e.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.A(wRf,_.Sr);var QTX=function(p){var y=_.Lw(_.WC().resolve(_.yF),function(l){return l.entities.markersEngagementPanelSyncEntity||{}},function(l,q){var t;
l[p.syncEntityKey]!==q[p.syncEntityKey]&&((t=l[p.syncEntityKey])==null?void 0:t.activeItemIndex)!==void 0&&p.updatePanelActiveItem(l[p.syncEntityKey].activeItemIndex)});
p.unsubscribeFromTimedMarkersListSyncEntity=y;p.addOnDisposeCallback(y);i7X(p)},i7X=function(p){var y=_.WC().resolve(_.yF);
y=_.Uz_(y.getState(),p.syncEntityKey);(y==null?void 0:y.activeItemIndex)!==void 0&&(y=p.getItemByIndex(y.activeItemIndex))&&p.setActiveItem(y)},Kia=function(p){var y=new _.hy(p.onScroll,50,p);
_.P9(p,y);var l=function(){y.fire()};
p.JSC$22485_containerElement.addEventListener("scroll",l);p.addOnDisposeCallback(function(){p.JSC$22485_containerElement.removeEventListener("scroll",l)})};
_.J=wRf.prototype;
_.J.updatePanelActiveItem=function(p){var y=this.getItemByIndex(p);if(y){if(this.setActiveItem(y),this.contentVisible)if(this.browsingMode){var l;((l=this.options)==null?void 0:l.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(p=rmf(this),y.offsetTop<this.JSC$22485_containerElement.clientHeight+this.JSC$22485_containerElement.scrollTop&&p&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));Suf(this)}else this.scrollToItem(y)}else _.vs(new _.SM("Could not find "+this.supportedSyncItems+
" sync child to set active.",p,this.JSC$22485_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.J.getItemByIndex=function(p){var y;(y=this.renderLazyListItems)==null||y.call(this,p);y=this.JSC$22485_containerElement.querySelectorAll(this.supportedSyncItems);if(y.length>p)return y[p]};
_.J.setActiveItem=function(p){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));p.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=p};
_.J.scrollToItem=function(p){p=this.getScrollPositionForItem(p);this.JSC$22485_containerElement.scrollTop!==p&&this.JSC$22485_scrollAnimation.start(this.JSC$22485_containerElement.scrollTop,p,300)};
_.J.getScrollPositionForItem=function(p){if(this.JSC$22485_containerElement.querySelectorAll(this.supportedSyncItems)[0]===p)return 0;var y,l=((y=this.options)==null?0:y.percentOffset)?this.JSC$22485_containerElement.clientHeight*this.options.percentOffset:0;p=_.Xq(p).y+this.JSC$22485_containerElement.scrollTop-(_.Xq(this.JSC$22485_containerElement).y+l);return Math.max(0,Math.min(p,this.JSC$22485_containerElement.scrollHeight-this.JSC$22485_containerElement.offsetHeight))};
_.J.onScroll=function(){this.activeItemBelowSyncPosition=rmf(this);if(this.activeItem&&!this.JSC$22485_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22485_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var p;switch((p=this.options)==null?void 0:p.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!Fia(this));Suf(this);break;default:this.enterBrowsingMode(!0)}}};
_.J.enterBrowsingMode=function(p){var y=this,l,q;return _.h(function(t){if(t.nextAddress==1){if(y.browsingMode)return t.return();y.browsingMode=!0;p&&y.hostElement.classList.add("browsing-mode");y.playerExitBrowsingModeListener=function(){y.exitBrowsingMode(!1)};
return t.yield(_.VS(),2)}l=t.yieldResult;(q=l)==null||q.addEventListener("SEEK_TO",y.playerExitBrowsingModeListener);_.rR(t)})};
_.J.exitBrowsingMode=function(p){p=p===void 0?!0:p;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),p&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.J.removePlayerSeekListener=function(){var p=this,y,l;return _.h(function(q){if(q.nextAddress==1)return p.playerExitBrowsingModeListener?q.yield(_.VS(),3):q.jumpTo(0);y=q.yieldResult;(l=y)==null||l.removeEventListener("SEEK_TO",p.playerExitBrowsingModeListener);p.playerExitBrowsingModeListener=void 0;_.rR(q)})};
var Suf=function(p){var y;((y=p.options)==null?void 0:y.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(Fia(p)?p.hostElement.classList.remove("browsing-mode"):p.activeItem&&p.hostElement.classList.add("browsing-mode"))},rmf=function(p){if(!p.activeItem)return!1;
var y,l=((y=p.options)==null?0:y.percentOffset)?p.JSC$22485_containerElement.clientHeight*p.options.percentOffset:0;return p.activeItem.offsetTop>=p.JSC$22485_containerElement.scrollTop+l},Fia=function(p){if(!p.activeItem)return!1;
var y=p.activeItem.offsetTop+14<=p.JSC$22485_containerElement.scrollTop+p.JSC$22485_containerElement.clientHeight;return p.activeItem.offsetTop+p.activeItem.clientHeight-14>=p.JSC$22485_containerElement.scrollTop&&y};
wRf.prototype.panelContentVisibleChanged=function(p){(this.contentVisible=p)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var LiZ=function(p,y){p.syncEntityKey=y;var l;(l=p.unsubscribeFromTimedMarkersListSyncEntity)==null||l.call(p);QTX(p)},kdZ=function(p,y){p.options=y};var zz=function(){var p=_.w.apply(this,arguments)||this;p.browsingMode=!1;p.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return p};
_.A(zz,_.w);_.J=zz.prototype;_.J.activeItemChanged=function(){if(!_.n("synced_panel_scrolling_controller")){var p;((p=this.syncEntity)==null?void 0:p.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.J.created=function(){var p=this;_.n("synced_panel_scrolling_controller")||(this.JSC$22489_scrollAnimation=new _.lu(function(y){p.contents.scrollTop=y}),this.boundExitBrowsingMode=function(){p.exitBrowsingMode(!1)})};
_.J.detached=function(){if(_.n("synced_panel_scrolling_controller")){var p;(p=this.scrollController)==null||p.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.J.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"},params:{seekWithAnimationOnClick:!0}},macroMarkersInfoItemRenderer:"ytd-macro-markers-info-item-renderer",itemSectionRenderer:"ytd-item-section-renderer"}}}};
_.J.dataChanged=function(){var p=this;_.n("synced_panel_scrolling_controller")?_.th(this,function(){if(p.scrollController){var y;(y=p.scrollController)==null||y.exitBrowsingMode(!1);var l,q,t;(q=p.scrollController)==null||LiZ(q,(t=(l=p.data)==null?void 0:l.syncModelEntityKey)!=null?t:"default-macro-markers-list-renderer-entity-key");var E,e,C;(C=p.scrollController)==null||kdZ(C,{percentOffset:(E=p.data)==null?void 0:E.selectedItemAlignmentPercentOffset,floatingPillType:(e=p.data)==null?void 0:e.floatingPillType})}else{var u,
a,m,U;p.scrollController=new wRf(p.contents,p.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(U=(u=p.data)==null?void 0:u.syncModelEntityKey)!=null?U:"default-macro-markers-list-renderer-entity-key",{percentOffset:(a=p.data)==null?void 0:a.selectedItemAlignmentPercentOffset,floatingPillType:(m=p.data)==null?void 0:m.floatingPillType},function(b){p.renderLazyListItems(b)})}p.scrollController.panelContentVisibleChanged(!!p.panelContentVisible)}):this.exitBrowsingMode()};
_.J.computeButtonShape=function(){var p=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){p.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.J.computeSyncEnabled=function(p){return!(p==null||!p.syncButtonLabel)};
_.J.renderLazyListItems=function(p){for(var y=this.contents.children,l=0,q=0;q<y.length;q++){var t=void 0;(t=y[q].ytLazyListBehavior)==null||t.fillRemainingListItems();var E=void 0,e=void 0;t=_.G((E=this.data)==null?void 0:(e=E.contents)==null?void 0:e[q],_.DvZ);e=E=void 0;if((E=t)==null?0:(e=E.contents)==null?0:e.length)l+=t.contents.length;if(l>=p)break}};
_.J.getItemByIndex=function(p){this.renderLazyListItems(p);var y=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(y.length>p)return y[p]};
_.J.setActiveItem=function(p){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);p.active!==void 0&&(p.active=!0);this.currentActiveItem=p};
_.J.handleSetActivePanelItemAction=function(p){if((p=_.G(p,SHL))&&this.panelTargetId===p.panelTargetId){p=p.itemIndex;if(_.n("synced_panel_scrolling_controller")){var y,l;var q=(l=(y=this.data)==null?void 0:y.syncModelEntityKey)!=null?l:"default-macro-markers-list-renderer-entity-key"}else{var t;q=(t=this.data)==null?void 0:t.syncModelEntityKey}if(q){var E;((E=this.syncEntity)==null?void 0:E.activeItemIndex)!==p&&this.ytdReduxBehavior.dispatch(_.Fp("markersEngagementPanelSyncEntity",q,{key:q,activeItemIndex:p}))}else this.updatePanelActiveItem(p)}};
_.J.updatePanelActiveItem=function(p){var y=this.getItemByIndex(p);y?(this.setActiveItem(y),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(y)):_.vs(new _.SM("Could not find ytd-macro-markers-list-renderer sync child to set active.",p,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.J.scrollToItem=function(p){p=this.getScrollPositionForItem(p);this.contents.scrollTop!==p&&this.JSC$22489_scrollAnimation.start(this.contents.scrollTop,p,300)};
_.J.getScrollPositionForItem=function(p){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===p)return 0;p=_.Xq(p).y+this.contents.scrollTop-_.Xq(this.contents).y-this.getStickyHeaderHeight(p);return Math.min(p,this.contents.scrollHeight-this.contents.offsetHeight)};
_.J.getStickyHeaderHeight=function(p){if(p.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var y,l,q;return(q=(y=p.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(l=y.header)==null?void 0:l.offsetHeight)!=null?q:0}return 0};
_.J.onScroll=function(){_.n("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$22489_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.J.enterBrowsingMode=function(){var p=this;return _.h(function(y){if(y.nextAddress==1){if(p.browsingMode)return y.return();p.browsingMode=!0;return y.yield(_.jo().getPlayerPromise(),2)}p.player=y.yieldResult;p.player.addEventListener("SEEK_TO",p.boundExitBrowsingMode);_.rR(y)})};
_.J.exitBrowsingMode=function(p){this.browsingMode&&(this.browsingMode=!1,(p===void 0||p)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.J.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.J.onSyncClick=function(){if(_.n("synced_panel_scrolling_controller")){var p;(p=this.scrollController)==null||p.exitBrowsingMode()}else this.exitBrowsingMode()};
_.J.panelContentVisibleChanged=function(){if(_.n("synced_panel_scrolling_controller")){var p;(p=this.scrollController)==null||p.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
zz.prototype.panelContentVisibleChanged=zz.prototype.panelContentVisibleChanged;zz.prototype.dataChanged=zz.prototype.dataChanged;zz.prototype.activeItemChanged=zz.prototype.activeItemChanged;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],zz.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],zz.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],zz.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],zz.prototype,"data",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],zz.prototype,"useCustomColors",void 0);_.H([_.Q({computed:"computeSyncEnabled(data)"}),_.x("design:type",Boolean)],zz.prototype,"syncEnabled",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],zz.prototype,"panelTargetId",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],zz.prototype,"panelContentVisible",void 0);_.H([_.rd("#contents"),_.x("design:type",HTMLElement)],zz.prototype,"contents",void 0);_.H([_.rd("#sync-container"),_.x("design:type",HTMLElement)],zz.prototype,"syncContainer",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],zz.prototype,"browsingMode",void 0);
_.H([_.Q({selectorArgs:["data.syncModelEntityKey"],selector:_.Uz_}),_.x("design:type",Object)],zz.prototype,"syncEntity",void 0);_.H([_.gd("syncEntity.activeItemIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zz.prototype,"activeItemChanged",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zz.prototype,"dataChanged",null);
_.H([_.gd("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zz.prototype,"panelContentVisibleChanged",null);_.H([_.k({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],zz);
_.D(zz,"ytd-macro-markers-list-renderer",function(){if(g1l!==void 0)return g1l;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return g1l=p},{mode:1});var N63;var Yj=function(){return _.w.apply(this,arguments)||this};
_.A(Yj,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Yj.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Yj.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Yj.prototype,"data",void 0);_.H([_.k({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Yj);
_.D(Yj,"ytd-error-corrections-section-item-renderer",function(){if(N63!==void 0)return N63;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="channel-thumbnail" height="36" thumbnail="[[data.thumbnail]]" width="36" class="style-scope ytd-error-corrections-section-item-renderer">\n</yt-img-shadow>\n<a id="correction-timestamp" class="yt-simple-endpoint style-scope ytd-error-corrections-section-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick">\n  <yt-formatted-string text="[[data.timeLabel]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</a>\n<div id="correction-text" class="style-scope ytd-error-corrections-section-item-renderer">\n  <yt-formatted-string text="[[data.correctionText]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return N63=p},{mode:1});var DLB;var Im=function(){return _.w.apply(this,arguments)||this};
_.A(Im,_.w);Im.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Im.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Im.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Im.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Im.prototype,"data",void 0);_.H([_.k({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],Im);
_.D(Im,"ytd-error-corrections-section-renderer",function(){if(DLB!==void 0)return DLB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-error-corrections-section-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-error-corrections-section-renderer"></yt-formatted-string>\n  <div id="flex" class="style-scope ytd-error-corrections-section-renderer"></div>\n  <ytd-button-renderer id="view_all_button" data="[[data.viewAllButton.buttonRenderer]]" class="style-scope ytd-error-corrections-section-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="items" class="style-scope ytd-error-corrections-section-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return DLB=p},{mode:1});var H7a;var pi=function(){return _.w.apply(this,arguments)||this};
_.A(pi,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],pi.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],pi.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],pi.prototype,"data",void 0);_.H([_.k({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],pi);
_.D(pi,"ytd-topic-link-renderer",function(){if(H7a!==void 0)return H7a;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="topic-link-container" class="yt-simple-endpoint style-scope ytd-topic-link-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnailDetails]]" width="32" class="style-scope ytd-topic-link-renderer">\n    </yt-img-shadow>\n    <div id="title" class="style-scope ytd-topic-link-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="call-to-action-icon" hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-topic-link-renderer">\n    </yt-icon>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return H7a=p},{mode:1});var T6l;var yV=function(){var p=_.w.apply(this,arguments)||this;p.modern=_.n("kevlar_modern_sd_v2");p.modernLockupV2=_.n("modernize_structured_description_playlist_lockups_v2");p.modernTypography=_.n("web_modern_typography");return p};
_.A(yV,_.w);yV.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"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],yV.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],yV.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],yV.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],yV.prototype,"modern",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],yV.prototype,"modernLockupV2",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],yV.prototype,"modernTypography",void 0);_.H([_.k({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],yV);
_.D(yV,"ytd-video-description-course-section-renderer",function(){if(T6l!==void 0)return T6l;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-course-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-course-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-course-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-course-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-course-section-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return T6l=p},{mode:1});var xLO;var lE=function(){var p=_.w.apply(this,arguments)||this;p.modern=_.n("kevlar_modern_sd_v2");p.modernTypography=_.n("web_modern_typography");return p};
_.A(lE,_.w);lE.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"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],lE.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],lE.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],lE.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],lE.prototype,"modern",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],lE.prototype,"modernTypography",void 0);
_.H([_.k({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],lE);
_.D(lE,"ytd-video-description-files-section-renderer",function(){if(xLO!==void 0)return xLO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-files-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-files-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n  <div id="flex" class="style-scope ytd-video-description-files-section-renderer"></div>\n  <div id="view-all-button" class="style-scope ytd-video-description-files-section-renderer"></div>\n</div>\n<div id="description" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionDescription)]]</div>\n<div id="file-buttons" class="style-scope ytd-video-description-files-section-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return xLO=p},{mode:1});var B6X;var qP=function(){return _.w.apply(this,arguments)||this};
_.A(qP,_.w);qP.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"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],qP.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],qP.prototype,"data",void 0);_.H([_.k({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],qP);
_.D(qP,"ytd-video-description-gaming-section-renderer",function(){if(B6X!==void 0)return B6X;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-gaming-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-gaming-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-gaming-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return B6X=p},{mode:1});var fAO;var sH=function(){var p=_.w.apply(this,arguments)||this;p.isExpanded=!1;return p};
_.A(sH,_.w);sH.prototype.computeHasDefaultMetadataEndpoint=function(p){var y;p=p==null?void 0:(y=p.defaultMetadata)==null?void 0:y.runs;return!(!p||p.length!==1||!p[0].navigationEndpoint)};
sH.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Jh.Object.defineProperties(sH.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],sH.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],sH.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],sH.prototype,"isExpanded",void 0);_.H([_.Q({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],sH.prototype,"hasDefaultMetadataEndpoint",void 0);
_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],sH.prototype,"isExpandable",null);_.H([_.g("data","isExpandable","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],sH.prototype,"showExpandedMetadata",null);_.H([_.k({is:"ytd-info-row-renderer",disableElementRegistration:!0})],sH);
_.D(sH,"ytd-info-row-renderer",function(){if(fAO!==void 0)return fAO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-row-container" on-click="onRowExpand" class="style-scope ytd-info-row-renderer">\n  <div id="info-row-header" class="style-scope ytd-info-row-renderer">\n    <div id="title" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="default-metadata-section" hidden="[[isExpanded]]" class="style-scope ytd-info-row-renderer">\n      <yt-formatted-string id="default-metadata" bold-links="" text="[[data.defaultMetadata]]" class="style-scope ytd-info-row-renderer">\n      </yt-formatted-string>\n      <span id="truncation-text" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.truncationText)]]</span>\n      <yt-icon id="icon" class="expand-icon style-scope ytd-info-row-renderer" hidden="[[!data.expandIcon.iconType]]" icon="[[data.expandIcon.iconType]]">\n      </yt-icon>\n    </div>\n  </div>\n  <yt-formatted-string id="expanded-metadata" hidden="[[!showExpandedMetadata]]" text="[[data.expandedMetadata]]" class="style-scope ytd-info-row-renderer">\n  </yt-formatted-string>\n</div>\n\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return fAO=p},{mode:1});var v1w;var tW=function(){var p=_.w.apply(this,arguments)||this;p.currentIndex=0;p.supportComponentResize=!0;p.modern=_.n("kevlar_modern_sd_v2");p.JSC$22515_lastScrollContainerWidth=NaN;return p};
_.A(tW,_.w);_.J=tW.prototype;
_.J.configureRendererStamper=function(){return{videoLockups:{id:"items",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",params:{forceOneLineTitle:!0,musicMetadataVideoLockup:!0,hideThumbnail:!0}}},reuseComponents:!1},infoRows:{id:"info-rows",mapping:{infoRowRenderer:"ytd-info-row-renderer"}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.J.getItemsPath=function(){return"videoLockups"};
_.J.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.J.onIronResize=function(){this.updateVideoLockupStyles()};
_.J.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.J.updateVideoLockupStyles=function(){var p;this.JSC$22515_scrollContainer!==void 0&&(p=this.videoLockups)!=null&&p.length&&(p=this.JSC$22515_scrollContainer.clientWidth,p!==this.JSC$22515_lastScrollContainerWidth&&(this.JSC$22515_lastScrollContainerWidth=p,_.Ax(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(p*.8,415)+"px"}),_.Ub(this.hostElement,"iron-resize")))};
_.Jh.Object.defineProperties(tW.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var p=[],y;if((y=this.data)==null||!y.carouselLockups)return p;y=_.c(this.data.carouselLockups);for(var l=y.next();!l.done;l=y.next()){l=l.value;var q=void 0;((q=_.G(l,h5a))==null?0:q.videoLockup)&&p.push(_.G(l,h5a).videoLockup)}return p}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.videoLockups)==null||!p.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var p=[],y;if((y=this.data)==null||!y.carouselLockups)return p;var l;return(l=_.G(this.data.carouselLockups[this.scrollCount],h5a))==null?void 0:l.infoRows}}});
tW.prototype.dataChanged=tW.prototype.dataChanged;tW.prototype.onIronResize=tW.prototype.onIronResize;tW.prototype.hiddenChanged=tW.prototype.hiddenChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],tW.prototype,"componentBehavior",void 0);_.H([_.V(_.jE.YtdHorizontalListBehavior),_.x("design:type",Object)],tW.prototype,"ytdHorizontalListBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],tW.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],tW.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],tW.prototype,"inlineStructuredDescription",void 0);_.H([_.Q({value:2}),_.x("design:type",Number)],tW.prototype,"initialCount",void 0);_.H([_.Q(),_.x("design:type",Object)],tW.prototype,"currentIndex",void 0);
_.H([_.Q(),_.x("design:type",Number)],tW.prototype,"scrollCount",void 0);_.H([_.Q(),_.x("design:type",Object)],tW.prototype,"supportComponentResize",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],tW.prototype,"contentHidden",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],tW.prototype,"modern",void 0);_.H([_.rd("#scroll-container"),_.x("design:type",HTMLDivElement)],tW.prototype,"JSC$22515_scrollContainer",void 0);
_.H([_.gd("contentHidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tW.prototype,"hiddenChanged",null);_.H([_.g("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],tW.prototype,"videoLockups",null);_.H([_.g("videoLockups"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],tW.prototype,"hasVideoLockups",null);
_.H([_.VU("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tW.prototype,"onIronResize",null);_.H([_.g("data","scrollCount"),_.x("design:type",Object),_.x("design:paramtypes",[])],tW.prototype,"infoRows",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tW.prototype,"dataChanged",null);_.H([_.k({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],tW);
_.D(tW,"ytd-video-description-music-section-renderer",function(){if(v1w!==void 0)return v1w;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-music-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-music-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-music-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="video-lockups" hidden="[[!hasVideoLockups]]" class="style-scope ytd-video-description-music-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="left-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atStart]]"></div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-music-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-music-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="right-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atEnd]]"></div>\n  </div>\n</div>\n<div id="info-rows" class="style-scope ytd-video-description-music-section-renderer"></div>\n<a id="premium-upsell-link" class="yt-simple-endpoint style-scope ytd-video-description-music-section-renderer" aria-label$="[[data.premiumUpsellLink.title.accessibility.accessibilityData.label]]" hidden="[[!data.premiumUpsellLink]]" href$="[[computeOptionalHref_(data.premiumUpsellLink.navigationEndpoint)]]" title$="[[getSimpleString(data.premiumUpsellLink.title)]]" data="[[data.premiumUpsellLink.navigationEndpoint]]">\n  <yt-formatted-string id="premium-upsell-text" text="[[data.premiumUpsellLink]]" class="style-scope ytd-video-description-music-section-renderer">\n  </yt-formatted-string>\n</a>\n<div id="topic-link" class="style-scope ytd-video-description-music-section-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return v1w=p},{mode:_.ZS("kevlar_poly_si_batch_j081")?1:2});var XRw;var EH=function(){var p=_.w.apply(this,arguments)||this;p.modern=_.n("kevlar_modern_sd_v2");p.modernTypography=_.n("web_modern_typography");return p};
_.A(EH,_.w);EH.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],EH.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],EH.prototype,"ytRendererBehavior",void 0);_.H([_.Q({}),_.x("design:type",Object)],EH.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],EH.prototype,"modern",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],EH.prototype,"modernTypography",void 0);
_.H([_.k({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],EH);
_.D(EH,"ytd-video-description-transcript-section-renderer",function(){if(XRw!==void 0)return XRw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-transcript-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="sub-header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <p id="sub-header-text" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.subHeaderText)]]</p>\n</div>\n<div id="button-container" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="primary-button" class="style-scope ytd-video-description-transcript-section-renderer"></div>\n</div>\n\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return XRw=p},{mode:1});var dLE;_.bp(_.aF(function(p){var y=_.So(_.WFL,function(){return p.data().firstProviderLinkStatusEntityKey}),l=_.So(_.WFL,function(){return p.data().secondProviderLinkStatusEntityKey}),q=function(){var t,E;
return((t=y())==null?void 0:t.linked)||((E=l())==null?void 0:E.linked)};
return _.R("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.R(_.CF,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return p.data().sectionTitle}}),_.R(_.CF,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return q()?p.data().connectedMessage:p.data().notConnectedMessage}}),_.R(_.W,{cond:q,
then:function(){return _.R(_.di,{data:function(){return p.data().connectedButton}},{buttonViewModel:function(t){return _.R(_.wZ,{data:t.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.R(_.W,{cond:function(){return!q()},
then:function(){return _.R(_.di,{data:function(){return p.data().notConnectedButton}},{buttonViewModel:function(t){return _.R(_.wZ,{data:t.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"uj"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.Co}});_.bp(_.aF(function(p){var y=p.data;return _.R("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.R("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.R(_.CF,{text:function(){return y().sectionTitle}})),_.R("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.R(_.CF,{text:function(){return y().bodyHeader}})),_.R("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.R(_.CF,{text:function(){return y().bodyText}})),_.R(_.W,
{cond:function(){return y().attributionText},
then:function(){return _.R("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.R(_.CF,{text:function(){return y().attributionText}}))}}))},"vj"),"how-this-was-made-section-view-model",{props:{data:_.Co}});_.bp(_.aF(function(p){return _.R("yt-video-description-youchat-section-view-model",{class:_.ip("ytVideoDescriptionYouchatSectionViewModelHost")},_.R("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.R(_.CF,{text:function(){return p.data().sectionTitle}})),_.R("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.R(_.CF,{text:function(){return p.data().subHeaderText}})),_.R("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.R(_.wZ,{data:function(){return _.G(p.data().primaryButton,
_.xo)}})))},"wj"),"yt-video-description-youchat-section-view-model",{props:{data:_.Co}});var JW=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return p};
_.A(JW,_.w);_.J=JW.prototype;
_.J.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{videoDescriptionHeaderRenderer:{component:"ytd-video-description-header-renderer",properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[watchWhileSdp]]",engagementPanel:"[[engagementPanel]]"}},expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{panelContentVisible:"[[panelContentVisible]]",hasDescriptionOnly:"[[hasDescriptionOnly]]",engagementPanel:"[[engagementPanel]]",
shortsPanel:"[[shortsPanel]]"}},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{engagementPanelContent:!0}},merchandiseShelfRenderer:"ytd-merch-shelf-renderer",videoDescriptionCourseSectionRenderer:"ytd-video-description-course-section-renderer",videoDescriptionFilesSectionRenderer:"ytd-video-description-files-section-renderer",
videoDescriptionTranscriptSectionRenderer:"ytd-video-description-transcript-section-renderer",videoDescriptionFantasySectionViewModel:"ytw-video-description-fantasy-section-view-model",videoDescriptionGamingSectionRenderer:"ytd-video-description-gaming-section-renderer",videoDescriptionInfocardsSectionRenderer:{component:"ytd-video-description-infocards-section-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoDescriptionMusicSectionRenderer:{component:"ytd-video-description-music-section-renderer",
properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},errorCorrectionsSectionRenderer:"ytd-error-corrections-section-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},shelfRenderer:"ytd-shelf-renderer",courseProgressViewModel:"yt-course-progress-view-model",howThisWasMadeSectionViewModel:"how-this-was-made-section-view-model",videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoDescriptionYouchatSectionViewModel:"yt-video-description-youchat-section-view-model"}},
videoSummary:{id:"video-summary",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},merchShelf:{id:"merch-shelf",mapping:{merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",params:{watchMetadataRefresh:!0,inStructuredDescription:!0}}}}}};
_.J.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.J.dataChanged=function(){var p,y;this.hasDescriptionOnly=!(((p=this.data)==null?void 0:(y=p.items)==null?void 0:y.length)!==1||!_.G(this.data.items[0],r9))};
_.J.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.J.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.J.autoFocusDescription=function(){var p;((p=_.WC().resolve(_.RK(_.Zu)))==null?0:p.isKeyBoardInUse())&&this.description&&_.EL(this.description)};
_.J.resize=function(){if(_.n("kevlar_disable_sd_resize"))this.JSC$22523_cardList&&_.Ub(this.JSC$22523_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Ub(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Ub(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.J.scrollToSection=function(p){if(p=this.getSectionElement(p))_.$w(this.hostElement,"yt-scroll-to-watch-element",[p]),p.focus()};
_.J.getSectionElement=function(p){switch(p){case "infocards-item-section":var y;return(y=this.infocardsSection)!=null?y:null;case "transcript-item-section":var l;return(l=this.transcriptSection)!=null?l:null;case "how-this-was-made-section-item-section":var q;return(q=this.howThisWasMadeSection)!=null?q:null;case "files-item-section":var t;return(t=this.filesSection)!=null?t:null;default:return null}};
_.J.handleSetActiveItemAction=function(p){var y=_.G(p,SHL),l=y&&(y==null?void 0:y.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22523_cardList;if(y&&l){p=this.currentActiveChapter;var q=this.currentActiveProblem;y=l==null?void 0:l.getItemByIndex(y.itemIndex);var t=l=!0;y&&(y.active=!0,y.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(l=p!==y,t=!1,this.currentActiveChapter=y):(y==null?void 0:y.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(l=!1,t=q!==y,this.currentActiveProblem=y));p&&l&&(p.active=!1);q&&t&&(q.active=!1)}};
_.Jh.Object.defineProperties(JW.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.n("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
JW.prototype.onYtExpanderMoreTapped=JW.prototype.onYtExpanderMoreTapped;JW.prototype.onHiddenChanged=JW.prototype.onHiddenChanged;JW.prototype.dataChanged=JW.prototype.dataChanged;JW.prototype.panelContentVisibleChanged=JW.prototype.panelContentVisibleChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],JW.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],JW.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],JW.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.vG),_.x("design:type",Object)],JW.prototype,"ironResizableBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],JW.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Boolean)],JW.prototype,"panelContentVisible",void 0);_.H([_.Q(),_.x("design:type",Boolean)],JW.prototype,"hasDescriptionOnly",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],JW.prototype,"inlineStructuredDescription",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],JW.prototype,"hidden",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],JW.prototype,"shortsPanel",void 0);_.H([_.Q(),_.x("design:type",Object)],JW.prototype,"videoSummary",void 0);_.H([_.Q(),_.x("design:type",Object)],JW.prototype,"merchShelf",void 0);
_.H([_.g("videoSummary"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],JW.prototype,"showVideoSummary",null);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],JW.prototype,"engagementPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],JW.prototype,"watchWhileSdp",void 0);_.H([_.rd("ytd-expandable-video-description-body-renderer"),_.x("design:type",Object)],JW.prototype,"description",void 0);
_.H([_.rd("ytd-horizontal-card-list-renderer"),_.x("design:type",Object)],JW.prototype,"JSC$22523_cardList",void 0);_.H([_.rd("ytd-horizontal-card-list-renderer[center-items]"),_.x("design:type",Object)],JW.prototype,"problemWalkthroughCardList",void 0);_.H([_.rd("ytd-shelf-renderer"),_.x("design:type",Object)],JW.prototype,"shelfSection",void 0);_.H([_.rd("ytd-video-description-music-section-renderer"),_.x("design:type",Object)],JW.prototype,"musicMetadataSection",void 0);
_.H([_.rd("ytd-video-description-infocards-section-renderer"),_.x("design:type",Object)],JW.prototype,"infocardsSection",void 0);_.H([_.rd("ytd-video-description-transcript-section-renderer"),_.x("design:type",Object)],JW.prototype,"transcriptSection",void 0);_.H([_.rd("how-this-was-made-section-view-model"),_.x("design:type",Object)],JW.prototype,"howThisWasMadeSection",void 0);_.H([_.rd("ytd-video-description-files-section-renderer"),_.x("design:type",Object)],JW.prototype,"filesSection",void 0);
_.H([_.gd("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JW.prototype,"panelContentVisibleChanged",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JW.prototype,"dataChanged",null);_.H([_.gd("hidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JW.prototype,"onHiddenChanged",null);
_.H([_.VU("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JW.prototype,"onYtExpanderMoreTapped",null);_.H([_.k({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],JW);
_.D(JW,"ytd-structured-description-content-renderer",function(){if(dLE!==void 0)return dLE;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-summary" hidden="[[!showVideoSummary]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="merch-shelf" hidden="[[!merchShelf]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="items" class="style-scope ytd-structured-description-content-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return dLE=p},{mode:2});var O7l;var o1a;var cc=function(){return _.w.apply(this,arguments)||this};
_.A(cc,_.w);cc.prototype.computeAriaLabel=function(p){var y,l;return(p==null?void 0:(y=p.accessibility)==null?void 0:(l=y.accessibilityData)==null?void 0:l.label)||_.g$("LOADING",void 0,"Loading")};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],cc.prototype,"data",void 0);_.H([_.Q({computed:"computeAriaLabel(data)"}),_.x("design:type",String)],cc.prototype,"ariaLabel",void 0);_.H([_.z9({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],cc);
_.D(cc,"yt-content-loading-renderer",function(){if(o1a===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-content-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_content_loading_renderer.yt.content.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[data.useSpinner]]" alt="[[ariaLabel]]" class="style-scope yt-content-loading-renderer">\n</tp-yt-paper-spinner>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;O7l===void 0&&(O7l=document.createElement("template"));var q=O7l;l.call(y,q.content.cloneNode(!0),p.content.firstChild);o1a=p}p=o1a;return p},{mode:_.ZS("kevlar_poly_si_batch_j043")?1:2});_.bp(_.aF(function(p){var y=_.c(_.nr(!1,void 0,"QkPiwb")),l=y.next().value,q=y.next().value;y=_.c(_.nr(!1,void 0,"AFECB"));var t=y.next().value,E=y.next().value;_.xZ(function(){var u=_.G(p.data().collaboratePlaylistCollaborationSetting,ptX);u&&q(u.switchedOnByDefault);var a=_.G(p.data().allowNewCollaboratorsPlaylistCollaborationSetting,ptX);a&&E(a.switchedOnByDefault);if(!u&&!a||!u&&p.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")q(!0),E(!0)});
var e=function(u){q(u);E(u);var a=p.data().playlistCollaborationEntityKey||"";var m=_.hl().getState();(m=_.Ae(m.entities,"playlistCollaborationEntity",a))&&(m==null?void 0:m.isCollaborative)===u||_.hl().dispatch(_.Fp("playlistCollaborationEntity",a,Object.assign({},m,{isCollaborative:u})))},C=function(u){E(u)};
return _.R("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.R("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.R(_.di,{data:function(){return p.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(u){return _.R(_.T_v,{data:u.data,
onSwitch:e})}})),_.R(_.W,{cond:l,
then:function(){return _.R(_.a4,null,_.R("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.R(_.di,{data:function(){return p.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(u){return _.R(_.T_v,{data:u.data,
onSwitch:C,overrideDisabled:!1})}})),_.R(_.W,{cond:t,
then:function(){return _.R("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.R(_.di,{data:function(){return p.data().copyLinkButton}},{buttonViewModel:_.wZ}))}}),_.R("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.R(_.di,{data:function(){return p.data().playlistCollaborators}},{contentListItemViewModel:_.h91})))}}))},"xj"),"playlist-collaboration-view-model",{props:{data:_.Co}});var zVm=_.aF(function(p){var y=p.data;var l=p.customCommandResolver;return _.R(_.a4,null,_.R("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.R(_.di,{data:function(){return y().adAvatar}},{adAvatarViewModel:function(q){return _.R(_.baP,{data:q.data,
customCommandResolver:l})}})),_.R("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.R(_.W,{cond:function(){return y().headline},
then:function(q){return _.R(_.CF,{text:q,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.R("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.R(_.di,{data:function(){return y().adBadge}},{adBadgeViewModel:function(q){return _.R(_.Px,{data:q.data,
hasDot:function(){return y().primaryDetailsLine!==void 0},
customCommandResolver:l,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.R(_.di,{data:function(){return y().primaryDetailsLine}},{adDetailsLineViewModel:function(q){return _.R(_.AI,{data:q.data,
customCommandResolver:l,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"yj"),YuX=_.aF(function(p){var y=p.data;
var l=p.customCommandResolver;return _.R("ad-avatar-lockup-view-model",{class:function(){var q;return((q=y().interaction)==null?0:q.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.mR(_.Ct({visibilityCallback:function(q){var t,E=(t=y().interaction)==null?void 0:t.onFirstVisible;q&&E&&_.tb(E)},
showOption:_.mT}),_.Ew(function(){return y().interaction},l)),
"aria-label":function(){var q,t;return(q=y().interaction)==null?void 0:(t=q.accessibility)==null?void 0:t.label}},_.R(_.L6,null,_.R(_.Sc,{when:function(){return y().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.R(zVm,{data:y,
customCommandResolver:l})}),_.R(_.FF,null,function(){return null})))},"zj");_.bp(_.aF(function(p){var y=p.data;var l=p.panelContentVisibility;p=_.Ct({visibilityCallback:function(E){var e,C=(e=y().interaction)==null?void 0:e.onFirstVisible;E&&C&&_.tb(C)},
showOption:_.mT});var q=_.Ew(function(){return y().interaction},oju);
_.fr(function(){var E,e;if(e=_.I4("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var C;e=(C=e())==null?void 0:C.onLayoutVisibleCallback}else e=null;(E=e)==null||E()});
var t=function(){return l()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.R("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.mR(p,q)},_.R("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.R("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.R(_.W,{cond:_.MLl("(min-width: "+((0,_.Io)()+_.Fj)+"px) or (max-width: 600px)"),then:function(){return _.R(_.di,{data:function(){return y().adImage}},{adImageViewModel:function(E){return _.R(_.FU,{data:E.data,
targetHeight:80,customCommandResolver:oju})}})}})),_.R("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.R("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.R(_.di,{data:function(){return y().adAvatarLockup}},{adAvatarLockupViewModel:function(E){return _.R(YuX,{data:E.data,
customCommandResolver:oju})}})),_.R(_.W,{cond:t,
then:function(){return _.R(_.di,{data:function(){return y().adButton}},{adButtonViewModel:function(E){return _.R(_.$k,{data:E.data,
customCommandResolver:oju})}})},
else:function(){return _.R(_.di,{data:function(){return y().menu}},{buttonViewModel:_.wZ})}}),_.R("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.R(_.di,{data:function(){var E=_.G(y().toggleButton,_.BN);
return{toggleButtonViewModel:Object.assign({},E,{isTogglingDisabled:!0,isToggled:t()})}}},{toggleButtonViewModel:_.fo})))))},"Aj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.Co,
panelContentVisibility:_.Co}});_.bp(_.aF(function(p){var y=function(){return _.G(p.data().inputComposerViewModel,yRl)},l=function(){var Z;
return((Z=y())==null?void 0:Z.youchatPendingResponseEntityKey)||""},q=_.So(_.K7L,l),t=function(){var Z;
return!((Z=q())==null||!Z.isPendingResponse)},E=_.c(_.nr(!0,void 0,"DR0q1d")),e=E.next().value,C=E.next().value,u=function(){return y().sectionTargetId||"youchat_messages_section"};
E=_.tK("yt-chat-input-view-model");var a=_.sM("textarea"),m=_.So(NXw,"chat_input_view_model_state"),U=Ddi(),b=function(){var Z;return!((Z=m())==null||!Z.value)};
_.xZ(function(){var Z;if(!b()&&((Z=y())==null?0:Z.welcomeFeatureContinuation)){Z={continuationCommand:{token:y().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var K,F=String(Math.floor(((K=_.gi())==null?void 0:K.getCurrentTime())||0)*1E3);K={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:F}};_.lp(Z,{form:{formData:K}});U(!0)}var L=u(),T;(T=_.WC().resolve(_.RK(_.HF)))==null||T.addEventListener("yt-navigate-start",function(){_.fX.remove(L);U(!1)},
{once:!0})});
var P=function(){var Z=a.value.value;a.value.value="";zLR(a.value);var K,F=((K=y())==null?void 0:K.enableGradientColorBg)||!1;K=YjR(u(),Z,F);_.lp(K);var L=_.wXV(l()),T;_.tb(((T=y())==null?void 0:T.onSubmitCommand)||{});L(!0);var O;T=String(Math.floor(((O=_.gi())==null?void 0:O.getCurrentTime())||0)*1E3);var f;O={continuationCommand:{token:(f=y())==null?void 0:f.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};Z={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:Z,
playerOffsetMs:T}};_.lp(O,{form:{formData:Z},commandController:{onSuccess:function(){L(!1)},
onServerError:function(){var v=u();_.lp({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:v}}]}}});L(!1)}}})};
return _.R("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:E},_.R("div",{class:"chatInputViewModelChatInputWrapper"},_.R("form",{class:"chatInputViewModelChatInputForm"},_.R("textarea",{class:"chatInputViewModelChatInput",el:a,"on:keydown":_.Ff(function(Z){var K=t()||!1;zLR(a.value);K||Z.key!=="Enter"||Z.shiftKey||(Z.preventDefault(),P());return!1}),
"on:keyup":_.Ff(function(){C(a.value.value.length===0);return!1}),
placeholder:function(){var Z,K;var F=_.G((K=y())==null?void 0:K.inputFormField,wcT);return F==null?void 0:(Z=F.contentProperties)==null?void 0:Z.placeholderText},
rows:1}),_.R(_.wZ,{data:function(){return _.G(p.data().sendButton,_.xo)},
onClick:function(Z){Z.preventDefault();P();C(a.value.value.length===0)},
buttonOverrides:function(){return{disabled:e()||t()}}})),_.R(_.CF,{className:"chatInputViewModelChatDisclaimer",
text:function(){var Z;return(Z=_.G(p.data().disclaimer,_.H5N))==null?void 0:Z.text}})))},"Bj"),"yt-chat-input-view-model",{props:{data:_.Co}});var IAX=["engagement-panel-clip-create","engagement-panel-clip-view"],p6f=0,eT=function(){var p=_.w.apply(this,arguments)||this;var y;p.headerData=(y=p.data)==null?void 0:y.header;p.darkerPanels=_.n("web_watch_darker_panels");p.matchContentTheme=_.n("web_watch_panel_content_match_theme");p.disableAutoFill=!1;p.isFullscreen=!1;p.isTheaterMode=!1;p.modernPanels=_.n("kevlar_watch_modern_panels");p.liveChatReplyPanel=!1;p.enableAnchoredPanel=_.n("desktop_shorts_v2_anchored_panel");p.disableBackdropFilter=
_.n("web_disable_backdrop_filter");p.trackEngagementPanelVisibility=_.n("web_watch_track_engagement_panel_visibility");p.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction","yt-scroll-to-engagement-panel-command":"onYtScrollToEngagementPanelCommand","yt-update-engagement-panel-action":"onYtUpdateEngagementPanelAction","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction"};
return p};
_.A(eT,_.w);_.J=eT.prototype;
_.J.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(p){var y;return(p==null?void 0:(y=p.webComponentHint)==null?void 0:y.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.J.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var p;if((p=this.hostElement.parentElement)==null?0:p.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.J.detached=function(){this.updateTheaterDisablement()};
_.J.showPanel=function(){var p=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.TR.addJob(function(){p.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.J.maybeScrollToItemSection=function(p){var y=this,l,q=p==null?void 0:(l=p.sectionListEngagementPanelExtras)==null?void 0:l.scrollToItemSectionIdentifier;q&&_.TR.addJob(function(){var t;(t=y.sectionListRendererElement)==null||t.scrollToItemSection(q)},8)};
_.J.hidePanel=function(){var p=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.TR.addJob(function(){p.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.J.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.J.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.J.updatePanel=function(p,y,l,q){var t=this;if((p=p==null?void 0:p.engagementPanelSectionListRenderer)||q){if(p){q=p.header;var E=p.content,e=p.footer;(p=p.targetId)&&this.set("data.targetId",p);q&&this.set("data.header",q);E&&this.set("data.content",E);e&&this.set("data.footer",e)}else q&&(p=q.content,E=q.secondaryHeaderContent,(q=q.targetId)&&this.set("data.targetId",q),p&&this.set("data.content",p),E&&(this.secondaryHeaderData=E));this.updateChildVisibilityProperties();if(y){var C;_.n("kevlar_update_panel_focus_scroll_killswitch")||
(C={preventScroll:!0});this.focus(C)}_.th(this,function(){_.Ub(t.hostElement,"yt-refit");t.maybeScrollToItemSection(l)})}};
_.J.computeHeaderData=function(){var p,y=(0,_.Ts.unsafeClone)((p=this.data)==null?void 0:p.header);if(y){p=new _.uK(Object.keys(y)[0]);var l=_.G(y,p),q=_.G(this.secondaryHeaderData,p);q&&_.oF(y,p,Object.assign({},q,l))}return y};
_.J.getReloadContinuation=function(){var p,y,l,q=_.c(((p=this.data)==null?void 0:(y=p.content)==null?void 0:(l=y.sectionListRenderer)==null?void 0:l.continuations)||[]);for(p=q.next();!p.done;p=q.next())if(p=p.value,p.reloadContinuationData)return p.reloadContinuationData.continuation};
_.J.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var p;((p=this.data)==null?0:p.targetId)&&(p=this.contentElement.firstElementChild)&&p.setAttribute("panel-target-id",this.data.targetId)};
_.J.forwardPopupClosedToFlowRootRenderer=function(){var p=_.jR(this.hostElement).querySelector("ytd-flow-root-renderer");if(p)p.onPopupClosed()};
_.J.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var p;if(!IAX.includes((p=this.theaterDisablementPanelIdentifier)!=null?p:""))if(p=_.n("web_watch_imax_theater_mode")&&this.isTheaterMode,p=_.n("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||p,_.n("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||p){var y;this.visibility=(y=this.data)==null?void 0:y.visibility;var l;this.trackEngagementPanelVisibility&&((l=this.data)==null?void 0:l.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var q,t,E,e;this.contentEmpty=!!(((q=this.data)==null?0:(t=q.content)==null?0:t.structuredDescriptionContentRenderer)&&Object.keys((E=this.data)==null?void 0:(e=E.content)==null?void 0:
e.structuredDescriptionContentRenderer).length===0);(y=_.WC().resolve(_.H8))&&y.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.J.isTheaterModeChanged=function(){_.n("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.J.isFullscreenChanged=function(){_.n("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.J.focus=function(p){if(this.header)this.header.focus(p);else{var y;(y=_.jR(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||y.focus(p)}};
_.J.visibilityChanged=function(){if(!_.n("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var p=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",y=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",l=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",q=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",t=q||!this.lastVisibility,E,e,C,u=((E=this.data)==null?void 0:(e=E.identifier)==null?void 0:
e.tag)||((C=this.data)==null?void 0:C.panelIdentifier);if(p&&t){var a;((a=this.data)==null?0:a.onShowCommands)&&_.Gf(this.hostElement,this.data.onShowCommands,this.hostElement);u&&_.ei().dispatch(_.$y({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:u}}))}else if(y&&l){var m;((m=this.data)==null?0:m.onHideCommands)&&_.Gf(this.hostElement,this.data.onHideCommands,this.hostElement);u&&_.ei().dispatch(_.$y({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:u}}))}p&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*p6f++));_.n("kevlar_watch_focus_on_engagement_panels")&&p&&q&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.J.notifyVisibilityChanged=function(p){var y;_.jN(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,p,(y=this.data)==null?void 0:y.targetId])};
_.J.updateTheaterDisablement=function(){if(!_.n("kevlar_watch_theater_disablement_killswitch")){var p=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&IAX.includes(p)&&!_.n("watch_next_grid_ignore_disallowed_panels")){var y=_.YS(_.ei().getState()),l=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";p!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():l?(this.originalTheaterState===void 0&&(this.originalTheaterState=y,this.theaterDisablementPanelIdentifier=
p),y&&_.$w(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.J.clearTheaterDisablement=function(){_.$w(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.J.updateChildVisibilityProperties=function(){this.hostElement||_.n("kevlar_panel_property_init_killswitch")||this._enableProperties();var p=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=p);var y,l=(y=this.headerElement)==null?void 0:y.firstElementChild;if(l&&!this.adHeaderImageLockupViewModel){y=p==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";l.collapsed=y;l=_.jR(l).querySelector("#visibility-button");if(!l)return;(l=l.firstElementChild)&&
l.polymerController.is==="ytd-toggle-button-renderer"&&l.polymerController.data.isToggled!==y&&l.polymerController.set("data.isToggled",y)}var q;if(y=(q=this.contentElement)==null?void 0:q.firstElementChild)if(p&&p!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")y.removeAttribute("panel-content-visible");else{y.setAttribute("panel-content-visible","");var t;(t=y.markDirty)==null||t.call(y)}};
_.J.onYtChangeEngagementPanelVisibilityAction=function(p){var y=this,l,q=(l=this.data)==null?void 0:l.targetId,t,E,e;l=((t=this.data)==null?void 0:(E=t.identifier)==null?void 0:E.tag)||((e=this.data)==null?void 0:e.panelIdentifier);var C=_.G(p,_.B5P),u;p=q&&(C==null?void 0:C.targetId)===q||l&&(C==null?void 0:(u=C.panelIdentifier)==null?void 0:u.tag)===l;this.dialog&&p&&(C==null?void 0:C.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(q==="engagement-panel-comments-section"?_.$w(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.$w(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",l]));!_.n("kevlar_use_engagement_panel_management_component")&&p&&(q=C.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!q?_.TR.addJob(function(){y.visibility=C.visibility},2,this.hideDelayMs):this.visibility=C.visibility,C.visibility&&this.notifyVisibilityChanged(C.visibility))};
_.J.onYtScrollToEngagementPanelCommand=function(p){var y,l=(y=this.data)==null?void 0:y.targetId,q,t,E;y=((q=this.data)==null?void 0:(t=q.identifier)==null?void 0:t.tag)||((E=this.data)==null?void 0:E.panelIdentifier);p=_.G(p,_.lv$);var e;(l&&(p==null?void 0:p.targetId)===l||y&&(p==null?void 0:(e=p.panelIdentifier)==null?void 0:e.tag)===y)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.$w(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.J.attachVEs=function(p){var y,l;(p==null?0:(y=p.content)==null?0:(l=y.productListRenderer)==null?0:l.trackingParams)&&_.Ll().graftServerVe(p.content.productListRenderer.trackingParams);var q,t;(p==null?0:(q=p.content)==null?0:(t=q.transcriptRenderer)==null?0:t.trackingParams)&&_.Ll().graftServerVe(p.content.transcriptRenderer.trackingParams)};
_.J.onYtUpdateEngagementPanelAction=function(p){var y,l=(y=this.data)==null?void 0:y.targetId;p=_.G(p,Lh7);l&&(p==null?void 0:p.targetId)===l&&(this.updatePanel({engagementPanelSectionListRenderer:{header:p==null?void 0:p.header,content:p==null?void 0:p.content}},!1),this.attachVEs(p))};
_.J.onYtShowEngagementPanelScrimAction=function(p){var y,l=(y=this.data)==null?void 0:y.targetId;p=_.G(p,FhL);l&&(p==null?void 0:p.engagementPanelTargetId)===l&&(this.scrimmed=!0)};
_.J.onYtHideEngagementPanelScrimAction=function(p){var y,l=(y=this.data)==null?void 0:y.targetId;p=_.G(p,rWi);l&&(p==null?void 0:p.engagementPanelTargetId)===l&&(this.scrimmed=!1)};
_.J.getIdentifier=function(){var p,y,l;return((p=this.data)==null?void 0:p.panelIdentifier)||((y=this.data)==null?void 0:(l=y.identifier)==null?void 0:l.tag)};
_.J.getSurface=function(){var p,y;return(p=this.data)==null?void 0:(y=p.identifier)==null?void 0:y.surface};
_.Jh.Object.defineProperties(eT.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var p=this.getIdentifier();return p==="engagement-panel-youchat"||p==="PAyouchat"}}});
eT.prototype.visibilityChanged=eT.prototype.visibilityChanged;eT.prototype.isFullscreenChanged=eT.prototype.isFullscreenChanged;eT.prototype.isTheaterModeChanged=eT.prototype.isTheaterModeChanged;eT.prototype.dataChanged=eT.prototype.dataChanged;eT.prototype.forwardPopupClosedToFlowRootRenderer=eT.prototype.forwardPopupClosedToFlowRootRenderer;eT.prototype.onYtRendererstamperFinished=eT.prototype.onYtRendererstamperFinished;
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],eT.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],eT.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],eT.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],eT.prototype,"ytEventForwardingBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],eT.prototype,"data",void 0);
_.H([_.Q({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.x("design:type",Object)],eT.prototype,"headerData",void 0);_.H([_.Q(),_.x("design:type",Object)],eT.prototype,"secondaryHeaderData",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],eT.prototype,"visibility",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],eT.prototype,"contentEmpty",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],eT.prototype,"scrimmed",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],eT.prototype,"dialog",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],eT.prototype,"dropdown",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],eT.prototype,"darkerPanels",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],eT.prototype,"matchContentTheme",void 0);_.H([_.Q(),_.x("design:type",Object)],eT.prototype,"disableAutoFill",void 0);
_.H([_.Q({reflectToAttribute:!0,value:_.n("optimal_reading_width_comments_ep")}),_.x("design:type",Boolean)],eT.prototype,"optimalReadingWidthComments",void 0);_.H([_.Q(),_.x("design:type",Number)],eT.prototype,"hideDelayMs",void 0);_.H([_.Q({selector:_.Ix,reflectToAttribute:!0}),_.x("design:type",Object)],eT.prototype,"isFullscreen",void 0);_.H([_.Q({selector:_.YS,reflectToAttribute:!0}),_.x("design:type",Object)],eT.prototype,"isTheaterMode",void 0);
_.H([_.Q(),_.x("design:type",Number)],eT.prototype,"showDelayMs",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("data.targetId"),_.x("design:type",Object),_.x("design:paramtypes",[])],eT.prototype,"targetId",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],eT.prototype,"webSize",null);_.H([_.Q(),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],eT.prototype,"hideFooterBorder",null);
_.H([_.Q(),_.x("design:type",Object)],eT.prototype,"isWatch",void 0);_.H([_.Q(),_.x("design:type",Object)],eT.prototype,"originalTheaterState",void 0);_.H([_.Q(),_.x("design:type",Object)],eT.prototype,"theaterDisablementPanelIdentifier",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],eT.prototype,"modernPanels",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],eT.prototype,"isWatchWhilePanel",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],eT.prototype,"shortsPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],eT.prototype,"liveChatEngagementPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],eT.prototype,"learningChatEngagementPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],eT.prototype,"liveChatReplyPanel",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],eT.prototype,"enableAnchoredPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],eT.prototype,"disableBackdropFilter",void 0);_.H([_.Q(),_.x("design:type",Object)],eT.prototype,"trackEngagementPanelVisibility",void 0);_.H([_.rd("#header"),_.x("design:type",HTMLElement)],eT.prototype,"headerElement",void 0);_.H([_.rd("#header > *"),_.x("design:type",HTMLElement)],eT.prototype,"header",void 0);
_.H([_.rd("ytd-section-list-renderer"),_.x("design:type",Object)],eT.prototype,"sectionListRendererElement",void 0);_.H([_.rd("panel-ad-header-image-lockup-view-model"),_.x("design:type",HTMLElement)],eT.prototype,"adHeaderImageLockupViewModel",void 0);_.H([_.rd("#content"),_.x("design:type",HTMLElement)],eT.prototype,"contentElement",void 0);
_.H([_.VU("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eT.prototype,"onYtRendererstamperFinished",null);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eT.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.H([_.k8("data","isFullscreen","isTheaterMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eT.prototype,"dataChanged",null);
_.H([_.gd("isTheaterMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eT.prototype,"isTheaterModeChanged",null);_.H([_.gd("isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eT.prototype,"isFullscreenChanged",null);_.H([_.gd("visibility"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eT.prototype,"visibilityChanged",null);
_.H([_.k({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],eT);
_.D(eT,"ytd-engagement-panel-section-list-renderer",function(){if(P9Z!==void 0)return P9Z;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="content" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="footer" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return P9Z=p},{mode:_.ZS("kevlar_poly_si_batch_j028")?1:2});var yEX;var hW=function(){var p=_.w.apply(this,arguments)||this;p.lastRenderedPanelIds=new Set;p.visiblePanels=[];p.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return p};
_.A(hW,_.w);_.J=hW.prototype;_.J.dataChanged=function(){if(this.data){for(var p=[],y=_.c(this.data),l=y.next();!l.done;l=y.next()){l=l.value;var q=void 0,t=void 0,E=(q=l)==null?void 0:(t=q.engagementPanelSectionListRenderer)==null?void 0:t.visibility;t=q=void 0;((q=l)==null?0:(t=q.engagementPanelSectionListRenderer)==null?0:t.targetId)&&E!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&p.push(l)}this.visiblePanels=p}else this.visiblePanels=[]};
_.J.configureRendererStamper=function(){return{visiblePanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0},properties:{hideDelayMs:"[[hideDelayMs]]",isWatchWhilePanel:"[[isWatchWhilePanel]]"}}},reuseComponents:!1}}};
_.J.withoutVisiblePanelById=function(p){return this.visiblePanels.filter(function(y){var l;return((l=y.engagementPanelSectionListRenderer)==null?void 0:l.targetId)!==p})};
_.J.onYtChangeEngagementPanelVisibilityAction=function(p){var y=this,l=_.G(p,_.B5P);if(this.data&&(l==null?0:l.targetId)&&(l==null?0:l.visibility)){var q,t=(q=this.data.find(function(e){var C;return((C=e.engagementPanelSectionListRenderer)==null?void 0:C.targetId)===l.targetId}))==null?void 0:q.engagementPanelSectionListRenderer;
if(t){var E=this.withoutVisiblePanelById(l.targetId);l.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(p=this.data.find(function(e){var C;return((C=e.engagementPanelSectionListRenderer)==null?void 0:C.targetId)===l.targetId}))&&(E=[p].concat(_.xq(E)));
this.hideDelayMs&&l.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&E.length===0?_.TR.addJob(function(){t.visibility=l.visibility;y.visiblePanels=E},10,this.hideDelayMs):(t.visibility=l.visibility,this.visiblePanels=E);
_.jN(this.hostElement,"yt-engagement-panels-visible-changed",[E])}}};
_.J.onRendererstamperFinished=function(){var p=new Set(this.visiblePanels.map(function(y){var l;return(l=y.engagementPanelSectionListRenderer)==null?void 0:l.targetId}));
this.handlePanelVisibilityChange(p,this.lastRenderedPanelIds);this.lastRenderedPanelIds=p};
_.J.handlePanelVisibilityChange=function(p,y){p=p===void 0?new Set:p;y=y===void 0?new Set:y;if(this.data)for(var l=_.c(this.data),q=l.next();!q.done;q=l.next()){q=q.value;var t=void 0,E=void 0,e=(t=q)==null?void 0:(E=t.engagementPanelSectionListRenderer)==null?void 0:E.targetId;if(e&&(t=y.has(e),E=p.has(e),e=void 0,!t&&E?(E=t=void 0,e=(t=q)==null?void 0:(E=t.engagementPanelSectionListRenderer)==null?void 0:E.onShowCommands):t&&!E&&(E=t=void 0,e=(t=q)==null?void 0:(E=t.engagementPanelSectionListRenderer)==
null?void 0:E.onHideCommands),e))for(q=_.c(e),e=q.next();!e.done;e=q.next())this.ytComponentBehavior.resolveCommand(e.value)}};
hW.prototype.onRendererstamperFinished=hW.prototype.onRendererstamperFinished;hW.prototype.dataChanged=hW.prototype.dataChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],hW.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],hW.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],hW.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],hW.prototype,"lastRenderedPanelIds",void 0);_.H([_.Q(),_.x("design:type",Number)],hW.prototype,"hideDelayMs",void 0);_.H([_.Q(),_.x("design:type",Array)],hW.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Array)],hW.prototype,"visiblePanels",void 0);_.H([_.Q(),_.x("design:type",Boolean)],hW.prototype,"isWatchWhilePanel",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hW.prototype,"dataChanged",null);_.H([_.VU("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hW.prototype,"onRendererstamperFinished",null);_.H([_.k({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],hW);
_.D(hW,"ytd-watch-engagement-panels",function(){if(yEX!==void 0)return yEX;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-engagement-panels--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="panels" class="style-scope ytd-watch-engagement-panels"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return yEX=p},{mode:1});var llu;var Ci=function(){return _.w.apply(this,arguments)||this};
_.A(Ci,_.w);Ci.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.hw(_.jR(this.hostElement).querySelector("#text"),_.wUr(_.S$i,this.data.companionLegalText))};
Ci.prototype.computeAutoScrollEnabled=function(p,y){return p&&!y};
Ci.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
Ci.prototype.onToggleTap=function(){this.expanded=!this.expanded};
Ci.prototype.expandedChanged=Ci.prototype.expandedChanged;Ci.prototype.dataChanged=Ci.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ci.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.oTO),_.x("design:type",Object)],Ci.prototype,"ytdAutoScrollBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Ci.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Ci.prototype,"expanded",void 0);
_.H([_.Q({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.x("design:type",Boolean)],Ci.prototype,"autoScrollEnabled",void 0);_.H([_.Q(),_.x("design:type",String)],Ci.prototype,"expanderIcon",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ci.prototype,"dataChanged",null);
_.H([_.gd("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ci.prototype,"expandedChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Ci);
_.D(Ci,"ytd-companion-legal-text-renderer",function(){if(llu!==void 0)return llu;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-legal-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.companionLegalText]]" class="style-scope ytd-companion-legal-text-renderer"></yt-formatted-string>\n\n<tp-yt-paper-material id="expand-button" elevation="1" on-tap="onToggleTap" class="style-scope ytd-companion-legal-text-renderer">\n  <yt-icon-button id="expander-icon" class="style-scope ytd-companion-legal-text-renderer">\n    <yt-icon id="expander-icon" icon="[[expanderIcon]]" class="style-scope ytd-companion-legal-text-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return llu=p},{mode:1});var q36;var uE=function(){var p=_.w.apply(this,arguments)||this;p.buttonUpdate=_.n("web_modern_buttons");p.kevlarWatchGrid=_.n("kevlar_watch_grid");p.centerAlignDescription=_.n("action_companion_center_align_description");p.truncateDomain=_.n("action_companion_truncate_domain");return p};
_.A(uE,_.w);_.J=uE.prototype;_.J.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.J.getOnLayoutVisibleCallback=function(){var p=_.I4("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.onLayoutVisibleCallback:null};
_.J.getLayoutId=function(){var p=_.I4("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.layoutId:null};
_.J.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",uE.JSC$22570_DEFAULT_AD_BADGE_RENDERER);var p=this.getOnLayoutVisibleCallback();p&&p()}};
_.J.getButtonRenderer=function(p){return p.actionButton&&_.G(p.actionButton,_.yv)?(delete _.G(p.actionButton,_.yv).navigationEndpoint,_.G(p.actionButton,_.yv)):{}};
_.J.onClick=function(p){var y=this;if((!_.n("web_modern_buttons")||!_.WN(_.Jx(p),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){p=_.$o();var l=this.getLayoutId();p&&l&&_.n("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?p.getPlayerPromise().then(function(q){(new _.T3(q)).executeCommand(y.data.navigationEndpoint,l)}):_.n("kevlar_companion_resolve_command_killswitch")?_.Ub(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.$w(this.hostElement,"yt-companion-ad-clicked",["action-companion",l])}};
_.Jh.Object.defineProperties(uE.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return((p=this.data)==null?0:(y=p.detailsLine)==null?0:(l=y.adRating)==null?0:l.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q;return((p=this.data)==null?0:(y=p.detailsLine)==null?0:(l=y.adRating)==null?0:(q=l.ratingIcon)==null?0:q.iconType)?_.QZ(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q;return((p=this.data)==null?0:(y=p.detailsLine)==null?0:(l=y.texts)==null?0:(q=l[0])==null?0:q.text)?this.data.detailsLine.texts[0].text:null}},
computeDetailsLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDetailsLine}},
getDescriptionText:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.data)==null?0:(y=p.description)==null?0:y.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var p=_.I4("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var p=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return p?p.indexOf("/default_banner")!==-1:!0}}});
uE.prototype.onClick=uE.prototype.onClick;uE.prototype.dataChanged=uE.prototype.dataChanged;uE.JSC$22570_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.g$("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],uE.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],uE.prototype,"rendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],uE.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],uE.prototype,"buttonUpdate",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],uE.prototype,"kevlarWatchGrid",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],uE.prototype,"centerAlignDescription",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],uE.prototype,"truncateDomain",void 0);
_.H([_.Q({computed:"computeButtonOverride(buttonUpdate)"}),_.x("design:type",Object)],uE.prototype,"buttonOverride",void 0);_.H([_.g("data.detailsLine.adRating.ratingText"),_.x("design:type",Object),_.x("design:paramtypes",[])],uE.prototype,"getRating",null);_.H([_.g("getRating"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uE.prototype,"computeRatingHidden",null);
_.H([_.g("data.detailsLine.adRating.ratingIcon.iconType"),_.x("design:type",Object),_.x("design:paramtypes",[])],uE.prototype,"iconType",null);_.H([_.g("data.detailsLine.texts.0.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],uE.prototype,"getDetailsLine",null);_.H([_.g("getDetailsLine"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uE.prototype,"computeDetailsLineHidden",null);
_.H([_.g("data.description.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],uE.prototype,"getDescriptionText",null);_.H([_.g("getDescriptionText"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uE.prototype,"computeDescriptionTextHidden",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],uE.prototype,"interactionLoggingClientData",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uE.prototype,"hideBanner",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uE.prototype,"dataChanged",null);_.H([_.VU("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],uE.prototype,"onClick",null);_.H([_.k({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],uE);
_.D(uE,"ytd-action-companion-ad-renderer",function(){if(q36!==void 0)return q36;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-companion-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="action-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-action-companion-ad-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div id="action-companion-click-target" class="yt-simple-endpoint style-scope ytd-action-companion-ad-renderer">\n  <yt-img-shadow id="banner" fit="" hidden="[[hideBanner]]" thumbnail="[[data.bannerImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer">\n  </yt-img-shadow>\n  <div id="block" class="style-scope ytd-action-companion-ad-renderer">\n    <yt-img-shadow id="icon" thumbnail="[[data.iconImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer"></yt-img-shadow>\n    <div id="text" class="style-scope ytd-action-companion-ad-renderer">\n      <div id="header" class="style-scope ytd-action-companion-ad-renderer">\n        [[data.headline.text]]\n      </div>\n      <div id="desc" class="style-scope ytd-action-companion-ad-renderer">\n        <div id="ad-badge-container" class="style-scope ytd-action-companion-ad-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-action-companion-ad-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n        <span id="domain" hidden="[[computeDescriptionTextHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDescriptionText]]</span>\n        <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getRating]]</span>\n        <yt-icon id="star-icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-action-companion-ad-renderer"></yt-icon>\n        <span id="details-line" hidden="[[computeDetailsLineHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDetailsLine]]</span>\n      </div>\n    </div>\n    <ytd-button-renderer id="action" button-raised="" data="[[getButtonRenderer(data)]]" overrides="[[buttonOverride]]" class="style-scope ytd-action-companion-ad-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return q36=p},{mode:_.ZS("kevlar_poly_si_batch_j067")?1:2});var sX3;var tZf;var RI=function(){var p=_.w.apply(this,arguments)||this;p.buttonUpdate=_.n("web_modern_buttons");p.hideLegacyBanner=_.n("enable_dsa_one_click_ata_translators_infeed_elements");p.adInfoButtonStyle="mono";p.adInfoButtonType="text";p.noDotAdBadge=!0;return p};
_.A(RI,_.w);_.J=RI.prototype;_.J.getOnLayoutVisibleCallback=function(){var p=_.I4("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.onLayoutVisibleCallback:null};
_.J.getLayoutId=function(){var p=_.I4("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.layoutId:null};
_.J.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var p=this.data.image.thumbnail.thumbnails[0];this.imageSrc=p.url?_.XX(p.url):void 0;this.imageWidth=p.width||0;this.imageHeight=p.height||0}this.data.clickthroughEndpoint&&_.G(this.data.clickthroughEndpoint,_.Id)&&(p=_.G(this.data.clickthroughEndpoint,_.Id).url,_.n("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
p||"":p?(p=_.XX(p),this.clickThroughUrl=_.xX(p)):this.clickThroughUrl=void 0);(p=this.getOnLayoutVisibleCallback())&&p()}};
_.J.onClick=function(p){_.WN(_.Jx(p),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(p)};
_.J.handleClick=function(){var p=this;this.data&&this.data.clickthroughEndpoint&&(_.Ub(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(y){p.macroReplacementBehavior.sendServiceRequestAction([y])}),_.$w(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.J.onLoad=function(){_.jN(this.hostElement,"yt-refit-popups-action")};
_.Jh.Object.defineProperties(RI.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var p=_.I4("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var p=_.I4("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.interactionLoggingClientData:null}}});
RI.prototype.onLoad=RI.prototype.onLoad;RI.prototype.onClick=RI.prototype.onClick;RI.prototype.dataChanged=RI.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],RI.prototype,"rendererBehavior",void 0);_.H([_.V(KP3.YtMacroReplacementBehavior),_.x("design:type",Object)],RI.prototype,"macroReplacementBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],RI.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],RI.prototype,"buttonUpdate",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],RI.prototype,"hideLegacyBanner",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],RI.prototype,"adInfoButtonStyle",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],RI.prototype,"adInfoButtonType",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],RI.prototype,"macros",null);
_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],RI.prototype,"interactionLoggingClientData",null);_.H([_.Q(),_.x("design:type",String)],RI.prototype,"clickThroughUrl",void 0);_.H([_.Q(),_.x("design:type",_.Dl)],RI.prototype,"imageSrc",void 0);_.H([_.Q(),_.x("design:type",Number)],RI.prototype,"imageWidth",void 0);_.H([_.Q(),_.x("design:type",Number)],RI.prototype,"imageHeight",void 0);_.H([_.Q(),_.x("design:type",Object)],RI.prototype,"noDotAdBadge",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RI.prototype,"dataChanged",null);_.H([_.VU("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],RI.prototype,"onClick",null);_.H([_.VU("load"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RI.prototype,"onLoad",null);_.H([_.k({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],RI);
_.D(RI,"ytd-image-companion-renderer",function(){if(tZf!==void 0)return tZf;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <div class="style-scope ytd-image-companion-renderer">\n    <yt-img-shadow id="banner" fit="" thumbnail="[[data.image.thumbnail]]" class="style-scope ytd-image-companion-renderer">\n    </yt-img-shadow>\n    <div id="block" class="style-scope ytd-image-companion-renderer">\n      <div id="text" class="style-scope ytd-image-companion-renderer">\n        <div id="desc" class="style-scope ytd-image-companion-renderer">\n          <div id="ad-badge-container" class="style-scope ytd-image-companion-renderer">\n            <ytd-badge-supported-renderer id="ad-badge" no-dot-ad-badge="[[noDotAdBadge]]" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-image-companion-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </div>\n      </div>\n      <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-menu" button-style="[[adInfoButtonStyle]]" button-type="[[adInfoButtonType]]" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n      </ytd-ad-hover-text-button-renderer>\n    </div>\n  </div>\n</template>\n\n\n<template is="dom-if" if="[[!hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n  </ytd-ad-hover-text-button-renderer>\n  <div class="style-scope ytd-image-companion-renderer">\n    <img height="[[imageHeight]]" src$="[[imageSrc]]" width="[[imageWidth]]" alt="" class="style-scope ytd-image-companion-renderer">\n  </div>\n</template>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return tZf=p},{mode:_.ZS("kevlar_poly_si_batch_j067")?1:2});var EXX;var Wc=function(){return _.w.apply(this,arguments)||this};
_.A(Wc,_.w);_.J=Wc.prototype;_.J.dataChanged=function(){this.set("data.adBadge",Wc.JSC$22579_DEFAULT_AD_BADGE_RENDERER);if(this.data){var p=this.getOnLayoutVisibleCallback();p&&p()}};
_.J.getOnLayoutVisibleCallback=function(){var p=_.I4("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.onLayoutVisibleCallback:null};
_.J.getLayoutId=function(){var p=_.I4("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.layoutId:null};
_.J.onCompanionClicked=function(p){this.data&&(p.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.$w(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.J.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var p=_.$o(),y=this.getLayoutId(),l=this.data.clickToAdvSiteEndpoint;p&&y&&_.n("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?p.getPlayerPromise().then(function(q){(new _.T3(q)).executeCommand(l,y)}):_.Ub(this.hostElement,"yt-navigate",{endpoint:l})}};
_.J.sendTrackingPings=function(p){if(p&&p.length!==0&&p[0].loggingUrls&&(p=p[0].loggingUrls.map(this.getBaseUrl)))for(var y=0;y<p.length;y++)_.pT(p[y])};
_.J.getBaseUrl=function(p){return p.baseUrl||""};
_.Jh.Object.defineProperties(Wc.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var p=_.I4("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.interactionLoggingClientData:null}}});
Wc.prototype.onCompanionClicked=Wc.prototype.onCompanionClicked;Wc.prototype.dataChanged=Wc.prototype.dataChanged;Wc.JSC$22579_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.g$("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Wc.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Wc.prototype,"data",void 0);_.H([_.rd("#title"),_.x("design:type",HTMLElement)],Wc.prototype,"shopTitle",void 0);
_.H([_.k8("data.impressionEndpoints"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wc.prototype,"dataChanged",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Wc.prototype,"interactionLoggingClientData",null);_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Wc.prototype,"onCompanionClicked",null);
_.H([_.k({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Wc);
_.D(Wc,"ytd-shopping-companion-renderer",function(){if(EXX!==void 0)return EXX;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="shopping-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div on-tap="onCompanionClicked" class="style-scope ytd-shopping-companion-renderer">\n  <div id="banner" class="style-scope ytd-shopping-companion-renderer">\n    <div id="ad-badge-container" class="style-scope ytd-shopping-companion-renderer">\n      <ytd-badge-supported-renderer id="ad-badge" large-font-ad-badge="true" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-shopping-companion-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="title" on-tap="onShopTextTap" class="style-scope ytd-shopping-companion-renderer">\n      [[getSimpleString(data.shopText)]]\n    </div>\n  </div>\n  <yt-horizontal-list-renderer id="companion-shelf" data="[[data.itemList.horizontalListRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return EXX=p},{mode:1});_.bp(_.aF(function(p){var y=p.data;p=_.Ct({visibilityCallback:function(q){var t,E=(t=y().interaction)==null?void 0:t.onFirstVisible;q&&E&&_.tb(E)},
showOption:_.mT});var l=_.Ew(function(){return y().interaction},IWA);
_.fr(function(){var q,t;t=(t=_.I4("yt.www.ads.eventcache.getLastCompanionData"))?(t=t())&&t.onLayoutVisibleCallback:null;(q=t)==null||q()});
return _.R("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.Ff(function(q){_.jN(q.currentTarget,"yt-refit-popups-action")}),
el:_.mR(p,l),"aria-label":function(){var q,t;return(q=y().interaction)==null?void 0:(t=q.accessibility)==null?void 0:t.label}},_.R("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.R(_.di,{data:function(){return y().adImage}},{adImageViewModel:function(q){return _.R(_.FU,{data:q.data,
targetHeight:80,customCommandResolver:IWA})}})),_.R("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.R("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.R(_.di,{data:function(){return y().adBadge}},{adBadgeViewModel:function(q){return _.R(_.Px,{data:q.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.R("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.R(_.di,{data:function(){return y().menu}},{buttonViewModel:_.wZ}))))},"Cj"),"banner-image-layout-view-model",{props:{data:_.Co}});_.bp(_.aF(function(p){var y=p.data;p=_.Ct({visibilityCallback:function(q){var t,E=(t=y().interaction)==null?void 0:t.onFirstVisible;q&&E&&_.tb(E)},
showOption:_.mT});var l=_.Ew(function(){return y().interaction},pc6);
_.fr(function(){var q,t;t=(t=_.I4("yt.www.ads.eventcache.getLastCompanionData"))?(t=t())&&t.onLayoutVisibleCallback:null;(q=t)==null||q()});
return _.R("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.mR(p,l)},_.R("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.R(_.di,{data:function(){return y().adImage}},{adImageViewModel:function(q){return _.R(_.FU,{data:q.data,
targetHeight:80,customCommandResolver:pc6})}})),_.R("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.R("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.R(_.di,{data:function(){return y().adAvatarLockup}},{adAvatarLockupViewModel:function(q){return _.R(YuX,{data:q.data,
customCommandResolver:pc6})}})),_.R(_.di,{data:function(){return y().adButton}},{adButtonViewModel:function(q){return _.R(_.$k,{data:q.data,
customCommandResolver:pc6})}}),_.R("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.R(_.di,{data:function(){return y().menu}},{buttonViewModel:_.wZ}))))},"Dj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.Co}});var JEB={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"},aI=function(){var p=_.w.apply(this,arguments)||this;p.updateCompanionDataJobId=0;p.contentVideoId=null;p.player=null;p.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return p};
_.A(aI,_.w);_.J=aI.prototype;_.J.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:JEB}}};
_.J.attached=function(){var p=this,y=_.$o();y&&y.getPlayerPromise().then(function(l){p.getCachedDataAndListen(l)})};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.J.updateRendererStamper=function(){var p={};if(this.data)for(var y in JEB)if(this.data[y]){p[y]=this.data[y];break}if(this.oneofRenderer!=void 0||Object.keys(p).length)this.oneofRenderer=p};
_.J.getCachedDataAndListen=function(p){var y=this.retrieveCachedCompanionData();y&&Object.keys(y).length&&this.receiveCompanionData(y);this.ytPlayerListenerBehavior.listenToPlayerEvent(p,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=p};
_.J.retrieveCachedCompanionData=function(){return _.l_.yt&&_.l_.yt.www&&_.l_.yt.www.ads&&_.l_.yt.www.ads.eventcache&&_.l_.yt.www.ads.eventcache.getLastCompanionData?_.l_.yt.www.ads.eventcache.getLastCompanionData():null};
_.J.receiveCompanionData=function(p){p&&Object.keys(p).length?(this.contentVideoId=p.contentVideoId,this.setCompanionData(p)):this.setCompanionData(p)};
_.J.setCompanionData=function(p){this.cancelPendingCompanionAdJobs();if(p){this.updateCompanionDataJobId=0;for(var y in JEB)JEB.hasOwnProperty(y)&&(this.data[y]=void 0);p.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",p.shoppingCompanionCarouselRenderer):p.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",p.imageCompanionAdRenderer):p.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",p.actionCompanionAdRenderer),_.jN(this.hostElement,
"yt-hide-unlimited-offer-module"),_.jN(this.hostElement,"yt-hide-tvfilm-offer-module")):p.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",p.bannerImageLayoutViewModel):p.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",p.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.J.dataChanged=function(){var p=this,y=_.$o();y?y.getPlayerPromise().then(function(l){p.contentVideoId&&l.getVideoUrl().includes("v="+p.contentVideoId)||(p.cancelPendingCompanionAdJobs(),p.updateRendererStamper())}):_.ph(Error("wo"))};
_.J.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.TR.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.J.handleCompanionAdClicked=function(p,y){this.player.onAdUxClicked(p,y);this.player.pauseVideo()};
aI.prototype.dataChanged=aI.prototype.dataChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],aI.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],aI.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],aI.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],aI.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.c8.YtPlayerListenerBehavior),_.x("design:type",_.eE)],aI.prototype,"ytPlayerListenerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],aI.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],aI.prototype,"oneofRenderer",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aI.prototype,"dataChanged",null);_.H([_.k({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],aI);
_.D(aI,"ytd-companion-slot-renderer",function(){if(sX3!==void 0)return sX3;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="companion" class="style-scope ytd-companion-slot-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return sX3=p},{mode:_.ZS("kevlar_poly_si_batch_j067")?
1:2});var cEu;var mh=function(){return _.w.apply(this,arguments)||this};
_.A(mh,_.w);mh.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
mh.prototype.dataChanged=mh.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],mh.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],mh.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],mh.prototype,"companionSlotData",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mh.prototype,"dataChanged",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],mh);
_.D(mh,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(cEu!==void 0)return cEu;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player-legacy-desktop-watch-ads-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-companion-legal-text-renderer data="[[data]]" disable-upgrade$="[[!data.companionLegalText]]" hidden="[[!data.companionLegalText]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-legal-text-renderer>\n<ytd-companion-slot-renderer data="[[companionSlotData]]" disable-upgrade$="[[!companionSlotData]]" hidden="[[!companionSlotData]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-slot-renderer>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return cEu=p},{mode:1});var efE;var UH=function(){var p=_.w.apply(this,arguments)||this;p.skinnyMode=!1;p.COMPACT_EVENT_COUNT=4;p.onShelfToggleButtonTap=function(){p.logTap(p.data);p.showingMore=!p.showingMore};
p.onShelfToggleButtonFocus=function(){p.showingMore||(p.logTap(p.data),p.showingMore=!0,_.th(p,function(){var y=p.COMPACT_EVENT_COUNT-1,l;(l=_.jR(p.hostElement).querySelector("#event-"+y))==null||l.focus()}))};
return p};
_.A(UH,_.w);_.J=UH.prototype;_.J.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.J.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.J.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.MH(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.MH(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.MH(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.MH(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.MH(this.infoTooltip,this.infoTooltip.hide))};
_.J.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.MH(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.MH(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.MH(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.MH(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.MH(this.infoTooltip,this.infoTooltip.hide))};
_.J.dataChanged=function(){this.firstEvent=this.get("data.events.0.ticketEventRenderer");this.data&&this.data.events&&(this.canShowMore=this.data.events.length>this.COMPACT_EVENT_COUNT,this.separator.style.visibility=this.data.events.length>1?"visible":"hidden");this.showingMore=!1;this.showingMoreChanged(!1)};
_.J.onShowingMoreChanged=function(){var p;this.showingMoreChanged((p=this.showingMore)!=null?p:!1)};
_.J.showingMoreChanged=function(p){var y=this.get("data.events")||[];this.set("restEvents",y.slice(1,p?y.length:this.COMPACT_EVENT_COUNT).map(function(l){return l.ticketEventRenderer}));
y.slice(0,p?y.length:this.COMPACT_EVENT_COUNT).forEach(function(l){var q=_.B2();l=l.ticketEventRenderer.trackingParams;_.xc()&&q&&l&&(l=_.Tp(l),q&&_.la(q,l))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.J.computeAriaLabel=function(p){return p.subtitle1+", "+p.subtitle2};
_.J.logTap=function(p){_.xc()&&this.ytRendererBehavior.logExplicitClick(p)};
_.J.isKeyboardAction=function(p){return this.get("detail.x",p)===0&&this.get("detail.y",p)===0};
_.J.onFirstEventTap=function(p){p.target&&this.handleTap(p.target,this.firstEvent,this.isKeyboardAction(p))};
_.J.onTicketLinkTap=function(p){p.target&&this.handleTap(p.target,p.model.item,this.isKeyboardAction(p))};
_.J.handleTap=function(p,y,l){if(y.buttonCommand)if(y.hasMultipleOffers)Object.assign(_.G(y.buttonCommand,_.xB),{properties:{source:l?"keyboard":"tap"}}),this.logTap(y),this.popupPositionTarget=p,_.Gf(this.hostElement,[y.buttonCommand],this.hostElement);else{var q;if((q=_.G(y.buttonCommand,_.Id))==null?0:q.url)this.logTap(y),_.s8(window,_.G(y.buttonCommand,_.Id).url)}};
UH.prototype.onShowingMoreChanged=UH.prototype.onShowingMoreChanged;UH.prototype.dataChanged=UH.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],UH.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],UH.prototype,"firstEvent",void 0);_.H([_.Q(),_.x("design:type",Object)],UH.prototype,"restEvents",void 0);_.H([_.Q(),_.x("design:type",String)],UH.prototype,"imageUrl",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],UH.prototype,"showingMore",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],UH.prototype,"canShowMore",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],UH.prototype,"skinnyMode",void 0);_.H([_.Q(),_.x("design:type",HTMLElement)],UH.prototype,"popupPositionTarget",void 0);_.H([_.rd("#banner-info-tooltip"),_.x("design:type",Object)],UH.prototype,"infoTooltip",void 0);
_.H([_.rd("#info-container"),_.x("design:type",HTMLElement)],UH.prototype,"infoContainer",void 0);_.H([_.rd("#shelf-toggler"),_.x("design:type",HTMLElement)],UH.prototype,"shelfToggleButton",void 0);_.H([_.rd("#separator"),_.x("design:type",HTMLDivElement)],UH.prototype,"separator",void 0);_.H([_.Q(),_.x("design:type",String)],UH.prototype,"shelfTogglerLabelText",void 0);_.H([_.Q(),_.x("design:type",String)],UH.prototype,"shelfTogglerIcon",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UH.prototype,"dataChanged",null);_.H([_.k8("showingMore"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UH.prototype,"onShowingMoreChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],UH);
_.D(UH,"ytd-ticket-shelf-renderer",function(){if(efE!==void 0)return efE;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ticket-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="head" class="style-scope ytd-ticket-shelf-renderer">\n  <h1 id="title" role="heading" aria-label$="[[firstEvent.title]]" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.title]]</h1>\n\n  <a id="info-container" href="javascript:" role="complementary" aria-label$="[[data.informationText]]" class="style-scope ytd-ticket-shelf-renderer">\n    <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n  </a>\n  \n  <tp-yt-paper-tooltip id="banner-info-tooltip" for="info-container" manual-mode="" position="bottom" class="style-scope ytd-ticket-shelf-renderer">\n    <div class="style-scope ytd-ticket-shelf-renderer">[[data.informationText]]</div>\n  </tp-yt-paper-tooltip>\n</div>\n<div id="body" class="style-scope ytd-ticket-shelf-renderer">\n  <div id="primary-event" class="style-scope ytd-ticket-shelf-renderer">\n    <template is="dom-if" if="[[data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <a id="calendar-avatar" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        <div id="calendar-avatar-month" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-month-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeMonth]]</div>\n        </div>\n        <div id="calendar-avatar-day" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-day-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeDay]]</div>\n        </div>\n      </a>\n    </template>\n\n    <template is="dom-if" if="[[!data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="thumbnail" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-img-shadow id="thumbnail-img" fit="" thumbnail="[[firstEvent.thumbnail]]" class="style-scope ytd-ticket-shelf-renderer">\n        </yt-img-shadow>\n      </div>\n    </template>\n\n    <div id="meta" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="meta-info" class="style-scope ytd-ticket-shelf-renderer">\n        <a id="nearest-with-location" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">[[data.title]]</a>\n        <div id="subtitle1" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.subtitle1]]</div>\n        <template is="dom-if" if="[[firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="subtitle2" class="style-scope ytd-ticket-shelf-renderer">\n            [[firstEvent.subtitle2]]\n          </div>\n        </template>\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <a class="vendor style-scope ytd-ticket-shelf-renderer" target="_blank" on-tap="onFirstEventTap" href$="[[firstEvent.buttonCommand.urlEndpoint.url]]">\n            [[firstEvent.linkText]]\n          </a>\n        </template>\n      </div>\n      <a id="view-tickets-link" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        [[firstEvent.buttonText]]\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n        </template>\n      </a>\n    </div>\n  </div>\n\n  <div id="separator" class="style-scope ytd-ticket-shelf-renderer"></div>\n\n  <div id="rest-events" class="style-scope ytd-ticket-shelf-renderer">\n    <div id="table" class="style-scope ytd-ticket-shelf-renderer">\n      <table cellspacing="0" cellpadding="0" class="style-scope ytd-ticket-shelf-renderer">\n        <template is="dom-repeat" items="[[restEvents]]" as="item" class="style-scope ytd-ticket-shelf-renderer">\n          <tr on-tap="onTicketLinkTap" class="style-scope ytd-ticket-shelf-renderer">\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-date-column style-scope ytd-ticket-shelf-renderer">[[item.timeDate]]</div>\n            </td>\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-weekday-column style-scope ytd-ticket-shelf-renderer">\n                <div class="style-scope ytd-ticket-shelf-renderer">\n                  [[item.timeWeekday]]<span id="time" class="style-scope ytd-ticket-shelf-renderer">[[item.timeTime]]</span>\n                </div>\n              </div>\n            </td>\n            <td class="where-column-td style-scope ytd-ticket-shelf-renderer">\n              <div class="where-column style-scope ytd-ticket-shelf-renderer">\n                <div class="venue-vendor-container style-scope ytd-ticket-shelf-renderer">\n                  <div class="venue style-scope ytd-ticket-shelf-renderer">[[item.subtitle2]]</div>\n                  <b class="dot style-scope ytd-ticket-shelf-renderer">\u00b7</b>\n                  <a class="vendor style-scope ytd-ticket-shelf-renderer" href="javascript:void(0)" id$="event-[[index]]">\n                    [[item.linkText]]\n                    <template is="dom-if" if="[[!item.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n                      <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n                    </template>\n                  </a>\n                </div>\n              </div>\n            </td>\n          </tr>\n        </template>\n      </table>\n      <yt-icon-button id="shelf-toggler" hidden="[[!canShowMore]]" label="[[shelfTogglerLabelText]]" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-icon icon="[[shelfTogglerIcon]]" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return efE=p},{mode:1});var hfX;var Cfl;var $U=function(){return _.w.apply(this,arguments)||this};
_.A($U,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],$U.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],$U);
_.D($U,"ytd-comments-entry-point-message-renderer",function(){if(Cfl!==void 0)return Cfl;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="message" text="[[data.messageText]]" class="style-scope ytd-comments-entry-point-message-renderer"></yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Cfl=p},{mode:1});var uXB;var jT=function(){return _.w.apply(this,arguments)||this};
_.A(jT,_.w);_.Jh.Object.defineProperties(jT.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.teaserAvatar)}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],jT.prototype,"data",void 0);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jT.prototype,"hasAvatar",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],jT);
_.D(jT,"ytd-comments-entry-point-teaser-renderer",function(){if(uXB!==void 0)return uXB;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-teaser-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="teaser" class="style-scope ytd-comments-entry-point-teaser-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-teaser-renderer" height="24" hidden="[[!hasAvatar]]" thumbnail="[[data.teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-teaser-renderer">[[getSimpleString(data.teaserContent)]]</div></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return uXB=p},{mode:1});var RfX;var bE=function(){return _.w.apply(this,arguments)||this};
_.A(bE,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],bE.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],bE.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],bE);
_.D(bE,"ytd-comments-simplebox-renderer",function(){if(RfX!==void 0)return RfX;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="simplebox" class="style-scope ytd-comments-simplebox-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-simplebox-renderer" height="24" thumbnail="[[data.simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-simplebox-renderer">[[getSimpleString(data.simpleboxPlaceholder)]]</div></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return RfX=p},{mode:1});var ni=function(){var p=_.w.apply(this,arguments)||this;p.fullHeight=!_.n("comment_teaser_full_height_kill_switch")&&_.n("kevlar_watch_grid");return p};
_.A(ni,_.w);ni.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"}}}};
ni.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
ni.prototype.onTap=function(){var p=this.tapCommand;p&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(p))};
ni.prototype.onKeyUp=function(p){if(p.keyCode===13)this.onTap()};
_.Jh.Object.defineProperties(ni.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null?0:p.onTap)return this.data.onTap;var y,l;if(((y=this.data)==null?0:y.teaserContent)||((l=this.data)==null?0:l.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)!=null&&p.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
ni.prototype.onKeyUp=ni.prototype.onKeyUp;ni.prototype.onTap=ni.prototype.onTap;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ni.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ni.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],ni.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ni.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],ni.prototype,"fullHeight",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ni.prototype,"tapCommand",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ni.prototype,"simpleboxPlaceholder",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ni.prototype,"hasSimpleboxPlaceholder",null);
_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ni.prototype,"simpleboxAvatar",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ni.prototype,"teaserContent",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ni.prototype,"hasTeaserContent",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ni.prototype,"teaserAvatar",null);
_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ni.prototype,"hasTeaserAvatar",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ni.prototype,"messageText",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ni.prototype,"contentRenderer",null);_.H([_.g("data"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ni.prototype,"hasContents",null);
_.H([_.g("data"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ni.prototype,"hasContentRenderer",null);_.H([_.VU("click"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ni.prototype,"onTap",null);_.H([_.VU("keypress"),_.x("design:type",Function),_.x("design:paramtypes",[_.w5]),_.x("design:returntype")],ni.prototype,"onKeyUp",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],ni);
_.D(ni,"ytd-comments-entry-point-header-renderer",function(){if(hfX!==void 0)return hfX;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-comments-entry-point-header-renderer"><div id="title" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.headerText)]]</div><div id="count" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.commentCount)]]</div></div><div id="content" class="style-scope ytd-comments-entry-point-header-renderer"><div id="simplebox" hidden="[[!hasSimpleboxPlaceholder]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" thumbnail="[[simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(simpleboxPlaceholder)]]</div></div><div id="teaser" hidden="[[!hasTeaserContent]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" hidden="[[!hasTeaserAvatar]]" thumbnail="[[teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(teaserContent)]]</div></div><yt-formatted-string id="message" text="[[messageText]]" class="style-scope ytd-comments-entry-point-header-renderer"></yt-formatted-string><div id="content-renderer" hidden="[[!hasContentRenderer]]" class="style-scope ytd-comments-entry-point-header-renderer"></div><div id="contents" class="style-scope ytd-comments-entry-point-header-renderer"></div></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return hfX=p},{mode:1});var Wwl;_.n("web_enable_sink_animated_rolling_character_and_number")?_.bp(_.x_v,"yt-animated-rolling-number",{props:{numberText:_.Co,numberValue:_.Co,heightPx:_.Co,fontSizeMultiplier:_.Co,shouldAnimate:_.Co,forceRollUp:_.Co}}):_.gD(_.hac,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var alf=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),mmZ={numberText:"",heightPx:2*alf,shouldAnimate:!1},G0=function(){var p=_.w.apply(this,arguments)||this;p.usingAnimatedComponents=!0;p.wasDetailed=!1;p.JSC$22616_browserSupportsAnimation=_.n("web_supports_animations_api");p.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};p.detailed=!1;p.shouldAnimate=!1;p.viewCountProps=mmZ;p.dateTextProps=
mmZ;p.metadataBadgesInDescription=_.n("web_metadata_badges_in_description");return p};
_.A(G0,_.w);_.J=G0.prototype;_.J.resetAnimationState=function(){this.shouldAnimate=!1};
_.J.updateDynamicMetadata=function(){if(this.JSC$22616_browserSupportsAnimation){if(!this.detailed){var p,y,l,q;var t=(p=this.videoPrimaryInfoRenderer)==null?void 0:(y=p.viewCount)==null?void 0:(l=y.videoViewCountRenderer)==null?void 0:(q=l.extraShortViewCount)==null?void 0:q.simpleText;var E,e,C,u;var a=(E=this.videoPrimaryInfoRenderer)==null?void 0:(e=E.viewCount)==null?void 0:(C=e.videoViewCountRenderer)==null?void 0:(u=C.shortViewCount)==null?void 0:u.simpleText}if(!a){var m,U,b,P;t=(m=this.videoPrimaryInfoRenderer)==
null?void 0:(U=m.viewCount)==null?void 0:(b=U.videoViewCountRenderer)==null?void 0:(P=b.unlabeledViewCountValue)==null?void 0:P.simpleText;var Z,K,F,L;a=(Z=this.videoPrimaryInfoRenderer)==null?void 0:(K=Z.viewCount)==null?void 0:(F=K.videoViewCountRenderer)==null?void 0:(L=F.viewCount)==null?void 0:L.simpleText}var T,O,f;p=Number((T=this.videoPrimaryInfoRenderer)==null?void 0:(O=T.viewCount)==null?void 0:(f=O.videoViewCountRenderer)==null?void 0:f.originalViewCount);var v,z;T=(v=this.videoPrimaryInfoRenderer)==
null?void 0:(z=v.relativeDateText)==null?void 0:z.simpleText;var sc;v=!((sc=this.videoPrimaryInfoRenderer)==null||!sc.relativeDateText);if(t&&a&&p&&(T||!v)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;sc=a.split(new RegExp("("+t+")"));t=EUi(sc[0]);var hR;a={numberText:(hR=sc[1])!=null?hR:"",numberValue:p,heightPx:2*alf,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Wt;hR=((Wt=sc[2])!=null?Wt:"")+"  ";this.setViewCount(a,t,EUi(hR));
if(!this.detailed&&v){t=T.split(/(\d+)/);Wt=EUi(t[0]);var AR;hR={numberText:(AR=t[1])!=null?AR:"",heightPx:2*alf,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Qu;AR=((Qu=t[2])!=null?Qu:"")+"  ";this.setDateText(hR,Wt,EUi(AR))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.J.setViewCount=function(p,y,l){_.JB(y)!==_.JB(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=y);this.viewCountProps.numberText!==(p==null?void 0:p.numberText)&&(this.viewCountProps=p||mmZ);_.JB(l)!==_.JB(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=l)};
_.J.setDateText=function(p,y,l){_.JB(y)!==_.JB(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=y);this.dateTextProps.numberText!==(p==null?void 0:p.numberText)&&(this.dateTextProps=p||mmZ);_.JB(l)!==_.JB(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=l)};
_.J.onYtUpdateViewershipAction=function(p){this.videoPrimaryInfoRenderer&&(_.G(p,e5X).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.G(p,e5X).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.G(p,e5X).viewCount)))};
_.J.onYtUpdateDateTextAction=function(p){if(this.videoPrimaryInfoRenderer){p=_.G(p,_.JRl).dateText;this.shouldAnimate=!0;var y;((y=this.videoPrimaryInfoRenderer)==null?0:y.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",p):this.set("videoPrimaryInfoRenderer.dateText",p)}};
_.Jh.Object.defineProperties(G0.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return tTu(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.JB(tTu(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.JB(this.viewCountPreNumberText),this.viewCountProps.numberText,_.JB(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.JB(this.dateTextPreNumberText),this.dateTextProps.numberText,_.JB(this.dateTextPostNumberText)].join("")}}});
G0.prototype.updateDynamicMetadata=G0.prototype.updateDynamicMetadata;G0.prototype.resetAnimationState=G0.prototype.resetAnimationState;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],G0.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],G0.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],G0.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],G0.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],G0.prototype,"videoPrimaryInfoRenderer",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],G0.prototype,"detailed",void 0);_.H([_.Q(),_.x("design:type",Object)],G0.prototype,"shouldAnimate",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],G0.prototype,"viewCountPreNumberText",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],G0.prototype,"viewCountProps",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],G0.prototype,"viewCountPostNumberText",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],G0.prototype,"dateTextPreNumberText",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],G0.prototype,"dateTextProps",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],G0.prototype,"dateTextPostNumberText",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],G0.prototype,"metadataBadgesInDescription",void 0);_.H([_.g("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.x("design:type",Object),_.x("design:paramtypes",[])],G0.prototype,"infoText",null);
_.H([_.g("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.x("design:type",String),_.x("design:paramtypes",[])],G0.prototype,"descriptionInfoTooltipText",null);_.H([_.g("detailed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],G0.prototype,"showDescriptionInfoTooltip",null);
_.H([_.g("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.x("design:type",String),_.x("design:paramtypes",[])],G0.prototype,"animatedViewCountAccessibilityLabel",null);_.H([_.g("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.x("design:type",String),_.x("design:paramtypes",[])],G0.prototype,"animatedDateTextAccessibilityLabel",null);
_.H([_.gd("videoPrimaryInfoRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],G0.prototype,"resetAnimationState",null);_.H([_.gd("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],G0.prototype,"updateDynamicMetadata",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-watch-info-text"})],G0);
_.D(G0,"ytd-watch-info-text",function(){if(Wwl!==void 0)return Wwl;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Wwl=p},{mode:1});var Umf;var $ml="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var jXX=_.aF(function(p){var y=p.data;var l=p.setTapCommand;_.NA(function(){var q=_.yM(y().onTap);l(q)},"X4onJd");
return _.R("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.R(_.di,{data:function(){return y().avatar}},{avatarViewModel:_.v5}),_.R("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.R("span",null,function(){return y().simpleboxText})))},"Ej");var bOX=_.aF(function(p){return _.R("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.R(_.W,{cond:function(){return _.G(p.data().avatar,_.lI)},
then:function(y){return _.R(_.v5,{data:y,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.R("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.R(_.CF,{text:function(){return p.data().teaserText}})))},"Fj");var nXX=_.aF(function(p){var y=p.data;var l=p.setTapCommand;_.NA(function(){var q=_.yM(y().onTap);l(q)},"PmAol");
return _.R("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.R(_.di,{data:function(){return y().teasers}},{commentsEntryPointTeaserViewModel:bOX}))},"Gj");var GBB=_.aF(function(p){var y=p.data;var l=p.setTapCommand;_.NA(function(){var q=_.yM(y().onTap);l(q)},"Nh3Hjd");
return _.R("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.R(_.CF,{text:function(){return y().messageText}}))},"Hj");var PfX=_.aF(function(p){var y=p.data;var l=p.setTapCommand;var q=p.isDisabled;_.NA(function(){var t=(q==null?0:q())?void 0:_.yM(y().onTap);l(t)},"omeiWe");
return _.R("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.R(_.DR,{icon:function(){return y().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.R(_.W,{cond:function(){return y().image},
then:function(t){return _.R(_.W$,{data:t,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.R(_.CF,{text:function(){return y().text},
className:function(){return y().image||y().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.R(_.di,{data:function(){return y().button}},{buttonViewModel:function(t){return _.R(_.wZ,{data:t.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:q==null?void 0:q()}}})}}))},"Ij");var AEm=_.aF(function(p){var y=p.data;var l=p.itemIndex;var q=p.selectedIndex;var t=p.indexUpdatedCallback;var E=p.observer;p=p.title;var e=_.sM("yt-carousel-item-view-model",function(U){_.n("web_metadata_carousel_elref_bugfix")&&E&&E().observe(U)}),C=function(U){l()===q()&&t(U)},u=_.yS(Fyw),a=_.yS(_.yo8),m=function(){var U,b,P;
return((U=y())==null?void 0:U.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!u()||((b=y())==null?void 0:b.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&a().includes("PAposts_by_host")||((P=y())==null?void 0:P.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&a().includes("PAyouchat")};
_.xZ(function(){_.n("web_metadata_carousel_elref_bugfix")||E&&E().observe(e.value)});
return _.R("yt-carousel-item-view-model",{el:e,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":p},_.R(_.di,{data:function(){var U,b;return(b=(U=_.G(y().carouselItem,Kh1))==null?void 0:U.textCarousel)!=null?b:y().carouselItem}},{textCarouselItemViewModel:function(U){return _.R(PfX,{data:U.data,
setTapCommand:C,isDisabled:m})},
commentTeaserCarouselItemViewModel:function(U){return _.R(nXX,{data:U.data,setTapCommand:C})},
commentInputBoxCarouselItemViewModel:function(U){return _.R(jXX,{data:U.data,setTapCommand:C})},
commentsEntryPointMessageViewModel:function(U){return _.R(GBB,{data:U.data,setTapCommand:C})}}))},"Jj");var ZOl=_.aF(function(p){var y=p.numDots;var l=p.activeIndex;return _.R("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.R(_.rT,{each:function(){return Array.from({length:y()})},
keyBy:"INDEX"},function(q,t){return _.R("div",{class:function(){var E={};return _.rD("ytCarouselDotsShapeDot",(E.ytCarouselDotsShapeDotActive=t===l(),E))}})}))},"Kj");var MZl=_.aF(function(p){var y=p.data;var l=p.handleCarouselNavigation;var q=p.numItems;var t=p.selectedIndex;var E=function(){return{disabled:t()===0}},e=function(){return{disabled:t()===q()-1}};
return _.R("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.R("div",null,_.R("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return y().title}),_.R(_.W,{cond:function(){return y().subtitle},
then:function(C){return _.R("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return y().subtitleAccessibilityText}},C)}})),_.R(_.W,{cond:function(){return q()>1},
then:function(){return _.R("div",{class:"ytCarouselTitleViewModelNavigation"},_.R(ZOl,{numDots:q,activeIndex:t}),_.R(_.W,{cond:function(){return y().previousButton},
then:function(C){return _.R(_.di,{data:C},{buttonViewModel:function(u){return _.R(_.wZ,{data:u.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return l(-1)},
buttonOverrides:E})}})}}),_.R(_.W,{cond:function(){return y().nextButton},
then:function(C){return _.R(_.di,{data:C},{buttonViewModel:function(u){return _.R(_.wZ,{data:u.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return l(1)},
buttonOverrides:e})}})}}))}}))},"Lj");_.bp(_.aF(function(p){var y=p.data;var l,q=_.sM("yt-video-metadata-carousel-view-model"),t=_.sM("div",function(v){if(_.n("web_metadata_carousel_elref_bugfix")){var z=function(){var sc=v.offsetWidth*K(),hR=24*(K()-1);b(sc+hR)};
z();window.ResizeObserver&&(l=new ResizeObserver(z),l.observe(v))}}),E=_.OY("HTML_DIR")==="rtl",e=!1,C=0,u=0;
p=_.c(_.nr(0,void 0,"f4aYxe"));var a=p.next().value,m=p.next().value;p=_.c(_.nr(0,void 0,"kU9O9"));var U=p.next().value,b=p.next().value;p=_.c(_.nr(!1,void 0,"GqphDd"));var P=p.next().value,Z=p.next().value,K=function(){var v,z,sc;return(sc=(v=y())==null?void 0:(z=v.carouselTitles)==null?void 0:z.length)!=null?sc:0},F=function(){t.value&&t.value.scrollLeft!==C&&m((E?t.value.scrollLeft<C:t.value.scrollLeft>C)?Math.min(a()+1,K()-1):Math.max(a()-1,0))},L;
window.IntersectionObserver&&(L=new IntersectionObserver(function(v){v=_.c(v);for(var z=v.next();!z.done;z=v.next())if(z.value.isIntersecting){if(e){e=!1;break}F()}else m(u)},{threshold:.2}));
_.NA(function(){if(t.value){var v=(E?-1:1)*(U()/K()+12)*(P()&&L?u:a());typeof t.value.scrollTo==="function"?t.value.scrollTo({left:v,behavior:"smooth"}):t.value.scrollLeft=v;C=v;u=P()&&L?u:a()}},"ZP1VMb");
var T,O=function(v){T=v};
_.xZ(function(){if(!_.n("web_metadata_carousel_elref_bugfix")){var v=function(){var sc=t.value.offsetWidth*K(),hR=24*(K()-1);b(sc+hR)};
v();if(window.ResizeObserver){var z=new ResizeObserver(v);z.observe(t.value);_.TP(function(){z.disconnect();L&&L.disconnect()})}}});
_.TP(function(){if(_.n("web_metadata_carousel_elref_bugfix")){var v;(v=l)==null||v.disconnect();var z;(z=L)==null||z.disconnect()}});
var f=function(v){v=a()+v;v>=0&&v<K()&&(e=!0,m(v))};
return _.R("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:q,"on:click":_.Ff(function(v){if(_.Yo(_.z4(v),q.value,["BUTTON".toString()])||!T)return!1;_.WC().resolve(_.aK).resolveCommand(T,{forceClickLogging:!0});return!1}),
"on:touchstart":_.Ff(function(){Z(!0);return!1}),
"on:touchend":_.Ff(function(){L||F();Z(!1);return!1}),
hidden:function(){var v,z;return!((v=y())==null?0:(z=v.carouselItems)==null?0:z.length)}},_.R("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.R(_.W,{cond:function(){return y().carouselTitles},
then:function(v){return _.R(_.di,{data:function(){return v()[P()&&L?u:a()]}},{carouselTitleViewModel:function(z){return _.R(MZl,{data:z.data,
handleCarouselNavigation:f,numItems:K,selectedIndex:a})}})}})),_.R("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:t},_.R("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+U()+"px;"}},_.R(_.W,{cond:function(){return y().carouselItems},
then:function(v){return _.R(_.rT,{each:v},function(z,sc){return _.R(_.di,{data:function(){return z}},{carouselItemViewModel:function(hR){return _.R(AEm,{data:hR.data,
itemIndex:sc,selectedIndex:a,indexUpdatedCallback:O,observer:L,title:function(){a:{var Wt=sc();var AR,Qu=(AR=y())==null?void 0:AR.carouselTitles;if(Qu&&(Wt=Qu[Wt])){var jj;Wt=(jj=_.G(Wt,QIi))==null?void 0:jj.title;break a}Wt=void 0}return Wt}})}})})}}))))},"Mj"),"yt-video-metadata-carousel-view-model",{props:{data:_.Co}});var VZE=_.n("web_action_buttons_update_owner_width")?32:12,Pc=function(){var p=_.w.apply(this,arguments)||this;p.isHovering=!1;p.enableColorSampling=_.n("web_delhi_colorful_sd");p.metadataBadgesInDescription=_.n("web_metadata_badges_in_description");p.descriptionCollapsed=!0;p.useFadedScrimDescription=_.n("kevlar_enable_faded_scrim_on_description");p.skinnyMode=!1;p.playlist=!1;p.isDark=document.documentElement.hasAttribute("dark");p.disableVideoOwnerOnTap=_.n("swatchie_video_owner_on_tap_ks");p.swatcherooDelayLoad=
_.n("swatcheroo_enable_ghost_cards");p.primaryMenuWidth=0;p.videoId="";p.titleHeadlineXs=_.n("web_watch_typography_title_headline_xs");p.titleHeadlineS=_.n("web_watch_typography_title_headline_s");p.titleHeadlineM=_.n("web_watch_typography_title_headline_m");p.titleHashtagBlackLinkified=_.n("web_title_hashtag_black_linkified");p.titleHashtagGreyLinkified=_.n("web_title_hashtag_grey_linkified");p.actionButtonsUpdateOwnerWidth=_.n("web_action_buttons_update_owner_width");p.shouldForceIconOnly=!1;p.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};p.isFullscreen=!1;p.isTheaterMode=!1;return p};
_.A(Pc,_.w);_.J=Pc.prototype;_.J.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.J.updateOwnerAndDescriptionPosition=function(){_.n("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.i3(this.bottomRowElement,this.ownerElement)):(_.i3(this.bottomRowElement,this.descriptionElement),_.i3(this.topRowElement,this.ownerElement)))};
_.J.titleOnTap=function(p){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.WN(_.Jx(p)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var y;((y=window.getSelection())==null?0:y.toString().length)||this.handleExpandDescriptionCommands()}};
_.J.videoOwnerOnTap=function(p){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.WN(_.Jx(p)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.J.detached=function(){var p=this,y;return _.h(function(l){(y=p.resizeObserver)==null||y.disconnect();_.rR(l)})};
_.J.maybeAttachResizeObserver=function(){var p=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.hy(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){p.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.J.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var p=this.hostElement.clientWidth,y=Math.max(this.largerItemWrap?400:350,p/2-VZE);if(_.n("web_action_buttons_update_owner_width")){var l;y=(((l=document.getElementById("owner"))==null?void 0:l.clientWidth)||0)+VZE}this.actionsOnSeparateLine=this.primaryMenuWidth>p-y?!0:!1}};
_.J.stripAttributedDescription=function(p){return{content:p.content.replace(/[\r\n]{2,}/g,"\n")}};
_.J.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.n("web_modern_buttons"),forceIconButton:!_.n("web_modern_buttons")},properties:{topLevelIconsOnly:"[[skinnyMode]]"}}},events:!0},"videoSecondaryInfoRenderer.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",
params:{withCount:!0,showTextWhileAnimating:_.n("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},
infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.J.videoPrimaryInfoRendererChanged=function(){var p;if((p=this.videoPrimaryInfoRenderer)==null?0:p.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.J.videoSecondaryInfoRendererChanged=function(){var p,y;(y=(p=this.descriptionInlineExpander).collapse)==null||y.call(p);this.descriptionExpandClientVe=_.fY(110509);this.descriptionCollapseClientVe=_.fY(110510);p=_.B2();y=_.xc();p&&y&&(_.n("combine_ve_grafts")?(_.Vv(_.Ll(),this.descriptionExpandClientVe,y),_.Vv(_.Ll(),this.descriptionCollapseClientVe,y)):_.yj(p,y,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.J.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.J.updateTopLevelIconsOnly=function(){var p=this;_.n("top_level_update_killswitch")||this.menu&&_.TR.addLowPriorityJob(function(){p.menu.topLevelIconsOnly=p.skinnyMode},_.UC("swathceroo_delay_flexible_menu_update",100))};
_.J.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.n("web_action_buttons_minimize_subscribe")};
_.J.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.J.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.J.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.J.onYtTextInlineExpanderExpandedChanged=function(){if(!_.n("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var p,y;(y=(p=this.structuredDescriptionContentRendererElement).resize)==null||y.call(p)}};
_.J.onRenderStamperFinished=function(p){(p==null?void 0:p.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.J.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.J.onYtExpanderLessTapped=function(){var p,y=(p=this.videoSecondaryInfoRenderer)==null?void 0:p.showLessCommand;y&&this.ytComponentBehavior.resolveCommand(y)};
_.J.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.J.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.J.onDescriptionClick=function(p){if(!_.WN(_.Jx(p)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var y;((y=window.getSelection())==null?0:y.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.n("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.J.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.J.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.J.logCollapseClick=function(){var p=_.B2();p&&this.descriptionCollapseClientVe&&_.te(p,this.descriptionCollapseClientVe)};
_.J.logExpandClick=function(){var p=_.B2();p&&this.descriptionExpandClientVe&&_.te(p,this.descriptionExpandClientVe)};
_.J.collapseDescription=function(){this.descriptionCollapsed=!0};
_.J.scrollToTopOfContainer=function(){_.$w(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.J.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.J.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.J.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.J.resize=function(){if(this.descriptionInlineExpander){var p,y;(y=(p=this.descriptionInlineExpander).resize)==null||y.call(p)}else _.vs(new _.SM("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var l;(l=this.menu)==null||l.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.n("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.J.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var p,y,l,q,t=_.n("web_action_buttons_update_owner_width")?(l=(p=_.jR(this.menu).querySelector("#button-shape"))==null?void 0:p.clientWidth)!=null?l:0:(q=(y=_.jR(this.menu).querySelector("#button"))==null?void 0:y.clientWidth)!=null?q:0,E,e;p=((e=(E=_.jR(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:E.clientWidth)!=null?e:0)+8+t;var C,u;t=(u=(C=_.jR(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:C.children.length)!=null?u:2;p<=8*t||(this.primaryMenuWidth=p)}};
_.J.onYtUpdateTitleAction=function(p){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.G(p,cRB).title)};
_.J.onYtUpdateDescriptionAction=function(p){if(p=_.G(p,_.JGN)){var y,l=!((y=this.videoSecondaryInfoRenderer)==null||!y.attributedDescription);p.isEmpty||!p.description&&!p.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):p.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",p.attributedDescription):p.description&&(l?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.zp(p.description)):this.set("videoSecondaryInfoRenderer.description",p.description))}};
_.J.onYtDarkModeToggledAction=function(p){this.isDark=p};
_.J.registerPanel=function(){if(!_.n("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var p=_.n("web_watch_imax_theater_mode")&&this.isTheaterMode;p=_.n("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||p;var y=_.WC().resolve(_.H8);y&&!p&&y.registerPanel("engagement-panel-structured-description",this)}};
_.J.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.J.parseColorSamplingData=function(){var p;if(_.n("web_delhi_colorful_sd")&&((p=this.structuredDescriptionContentRenderer)==null?0:p.items)&&(p=this.structuredDescriptionContentRenderer.items.find(function(t){return!!_.G(t,r9)}))){var y,l;
this.hoverColor={lightTheme:(y=_.G(p,r9))==null?void 0:y.lightThemeColorPalette,darkTheme:(l=_.G(p,r9))==null?void 0:l.darkThemeColorPalette};var q;this.hoverText=(q=_.G(p,r9))==null?void 0:q.colorSampledDescriptionBodyText}};
_.J.updateHoverColor=function(){if(_.n("web_delhi_colorful_sd")){var p=this.hoverColor,y={},l;p=(l=this.isDark?p==null?void 0:p.darkTheme:p==null?void 0:p.lightTheme)!=null?l:{};l=_.c($ml);for(var q=l.next();!q.done;q=l.next()){q=q.value;var t=p[q];y["--yt-saturated-"+_.Mf(q)]=t?_.Y9(t):"initial"}_.Ax(this.hostElement,y)}};
_.J.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.J.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.J.showPanel=function(p){this.expandDescription();var y=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;y.resize();var l,q=p==null?void 0:(l=p.sectionListEngagementPanelExtras)==null?void 0:l.scrollToItemSectionIdentifier;q?_.TR.addJob(function(){y==null||y.scrollToSection(q)},8):this.scrollToTopOfContainer()};
_.J.isVisible=function(){return!this.descriptionCollapsed};
_.J.getReloadContinuation=function(){};
_.J.hidePanel=function(){};
_.J.updatePanel=function(){};
_.Jh.Object.defineProperties(Pc.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var p;return _.n("web_delhi_colorful_sd")&&(p=this.structuredDescriptionContentRenderer)!=null&&p.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(y){return!_.G(y,r9)&&!_.G(y,C_l)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.structuredDescriptionContentRendererComputed)!=null&&p.items){var y;p=_.c((y=this.structuredDescriptionContentRendererComputed)==null?void 0:y.items);for(y=p.next();!y.done;y=p.next())if(y=_.G(y.value,_.s$x))return y}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.videoPrimaryInfoRenderer)==null?0:p.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return!!((p=this.videoSecondaryInfoRenderer)==null?0:(y=p.owner)==null?0:(l=y.videoOwnerRenderer)==null?0:l.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var p,y;if((p=this.videoSecondaryInfoRenderer)==null?0:(y=p.attributedDescription)==null?0:y.content){var l,q;return(q=this.stripAttributedDescription((l=this.videoSecondaryInfoRenderer)==null?void 0:l.attributedDescription))!=null?q:{runs:[]}}}if(_.n("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var t,E,e,C;return(C=(e=(t=this.videoSecondaryInfoRenderer)==
null?void 0:t.description)!=null?e:(E=this.videoSecondaryInfoRenderer)==null?void 0:E.attributedDescription)!=null?C:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var p,y;return(y=(p=this.videoSecondaryInfoRenderer)==null?void 0:p.headerRuns)!=null?y:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.commentsEntryPointHeaderRenderer)==null||!p.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.videoMetadataCarousel)==null||!p.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.UC("swatchie_desc_lines",3):this.hasTeaserCarousel?_.UC("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var p,y,l=Object.assign({},(p=this.videoSecondaryInfoRenderer)==null?void 0:(y=p.metadataRowContainer)==null?void 0:y.metadataRowContainerRenderer);if(l&&l.rows&&l.collapsedItemCount!==void 0&&!(l.rows.length<=l.collapsedItemCount))return l.rows=l.rows.slice(l.collapsedItemCount),l.collapsedItemCount=0,l}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var p,y,l=Object.assign({},(p=this.videoSecondaryInfoRenderer)==null?void 0:(y=p.metadataRowContainer)==null?void 0:y.metadataRowContainerRenderer);if(l&&l.rows&&l.collapsedItemCount!==void 0)return l.rows=l.rows.slice(0,l.collapsedItemCount),l.collapsedItemCount=l.rows.length,l}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var p,y;return!!((p=this.structuredDescriptionContentRendererComputed)==null?0:(y=p.items)==null?0:y.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var p;return(p=this.videoSecondaryInfoRenderer)==null?void 0:p.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return((p=this.videoSecondaryInfoRenderer)==null?0:(y=p.owner)==null?0:(l=y.videoOwnerRenderer)==null?0:l.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q;return!!((p=this.videoPrimaryInfoRenderer)==null?0:(y=p.videoActions)==null?0:(l=y.menuRenderer)==null?0:(q=l.flexibleItems)==null?0:q.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.CY(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.CY(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var p=this;if(_.n("web_title_hashtag_grey_delinkified")){var y,l=_.Ts.unsafeClone((y=this.videoPrimaryInfoRenderer)==null?void 0:y.title);(y=l==null?void 0:l.runs)&&y.forEach(function(q){if(q==null?0:q.navigationEndpoint)q.textColor=4284506208,p.isDark&&(q.textColor=4289374890)});
return l}return(l=this.videoPrimaryInfoRenderer)==null?void 0:l.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.n("web_title_hashtag_black_delinkified")||_.n("web_title_hashtag_grey_delinkified")}}});
Pc.prototype.updateHoverColor=Pc.prototype.updateHoverColor;Pc.prototype.parseColorSamplingData=Pc.prototype.parseColorSamplingData;Pc.prototype.resetDescriptionState=Pc.prototype.resetDescriptionState;Pc.prototype.registerPanel=Pc.prototype.registerPanel;Pc.prototype.onYtExpanderLessTapped=Pc.prototype.onYtExpanderLessTapped;Pc.prototype.onYtExpanderMoreTapped=Pc.prototype.onYtExpanderMoreTapped;Pc.prototype.onRenderStamperFinished=Pc.prototype.onRenderStamperFinished;
Pc.prototype.onYtTextInlineExpanderExpandedChanged=Pc.prototype.onYtTextInlineExpanderExpandedChanged;Pc.prototype.onYtTextInlineExpanderCollapseClicked=Pc.prototype.onYtTextInlineExpanderCollapseClicked;Pc.prototype.onYtTextInlineExpanderExpandClicked=Pc.prototype.onYtTextInlineExpanderExpandClicked;Pc.prototype.moveActionsElement=Pc.prototype.moveActionsElement;Pc.prototype.updateShouldForceIconOnly=Pc.prototype.updateShouldForceIconOnly;Pc.prototype.updateTopLevelIconsOnly=Pc.prototype.updateTopLevelIconsOnly;
Pc.prototype.structuredDescriptionContentRendererChanged=Pc.prototype.structuredDescriptionContentRendererChanged;Pc.prototype.videoSecondaryInfoRendererChanged=Pc.prototype.videoSecondaryInfoRendererChanged;Pc.prototype.videoPrimaryInfoRendererChanged=Pc.prototype.videoPrimaryInfoRendererChanged;Pc.prototype.maybeUpdateActionsOnSeparateLine=Pc.prototype.maybeUpdateActionsOnSeparateLine;Pc.prototype.updateOwnerAndDescriptionPosition=Pc.prototype.updateOwnerAndDescriptionPosition;
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Pc.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Pc.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.zL),_.x("design:type",Object)],Pc.prototype,"ytdReduxBehavior",void 0);_.H([_.rd("#above-the-fold"),_.x("design:type",HTMLElement)],Pc.prototype,"aboveTheFoldContainer",void 0);_.H([_.rd("#menu ytd-menu-renderer"),_.x("design:type",Object)],Pc.prototype,"menu",void 0);_.H([_.rd("#description-inline-expander"),_.x("design:type",Object)],Pc.prototype,"descriptionInlineExpander",void 0);
_.H([_.rd("#faded-structured-description"),_.x("design:type",Object)],Pc.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.H([_.rd("#structured-description"),_.x("design:type",Object)],Pc.prototype,"structuredDescriptionContentRendererElement",void 0);_.H([_.rd("#title"),_.x("design:type",HTMLElement)],Pc.prototype,"titleElement",void 0);_.H([_.rd("#description"),_.x("design:type",HTMLElement)],Pc.prototype,"descriptionElement",void 0);
_.H([_.rd("#description-interaction"),_.x("design:type",Object)],Pc.prototype,"descriptionInteraction",void 0);_.H([_.rd("#owner"),_.x("design:type",HTMLElement)],Pc.prototype,"ownerElement",void 0);_.H([_.rd("#top-row"),_.x("design:type",HTMLElement)],Pc.prototype,"topRowElement",void 0);_.H([_.rd("#bottom-row"),_.x("design:type",HTMLElement)],Pc.prototype,"bottomRowElement",void 0);_.H([_.rd("#actions"),_.x("design:type",HTMLElement)],Pc.prototype,"actionsElement",void 0);
_.H([_.rd("#bottom-actions"),_.x("design:type",HTMLElement)],Pc.prototype,"bottomActionsElement",void 0);_.H([_.rd("#ytd-watch-info-text"),_.x("design:type",Object)],Pc.prototype,"watchInfoTextElement",void 0);_.H([_.Q(),_.x("design:type",Object)],Pc.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Pc.prototype,"videoPrimaryInfoRenderer",void 0);_.H([_.Q(),_.x("design:type",Object)],Pc.prototype,"videoSecondaryInfoRenderer",void 0);
_.H([_.Q(),_.x("design:type",Object)],Pc.prototype,"commentsEntryPointHeaderRenderer",void 0);_.H([_.Q(),_.x("design:type",Object)],Pc.prototype,"videoMetadataCarousel",void 0);_.H([_.Q(),_.x("design:type",Object)],Pc.prototype,"structuredDescriptionContentRenderer",void 0);_.H([_.g("structuredDescriptionContentRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pc.prototype,"structuredDescriptionContentRendererComputed",null);
_.H([_.Q(),_.x("design:type",Object)],Pc.prototype,"videoSummary",void 0);_.H([_.Q(),_.x("design:type",Object)],Pc.prototype,"merchShelf",void 0);_.H([_.Q(),_.x("design:type",Object)],Pc.prototype,"infoPanelBelowMetadata",void 0);_.H([_.Q(),_.x("design:type",Object)],Pc.prototype,"hoverColor",void 0);_.H([_.Q(),_.x("design:type",Object)],Pc.prototype,"hoverText",void 0);_.H([_.Q(),_.x("design:type",Object)],Pc.prototype,"isHovering",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Pc.prototype,"enableColorSampling",void 0);_.H([_.g("structuredDescriptionContentRendererComputed"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pc.prototype,"productShelf",null);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Pc.prototype,"metadataBadgesInDescription",void 0);_.H([_.g("videoPrimaryInfoRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pc.prototype,"shouldHideBadges",null);
_.H([_.g("productShelf","descriptionCollapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Pc.prototype,"shouldShowProductShelf",null);_.H([_.Q(),_.x("design:type",Boolean)],Pc.prototype,"isWatchFlexy",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Pc.prototype,"descriptionCollapsed",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Pc.prototype,"useFadedScrimDescription",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Pc.prototype,"skinnyMode",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("videoSecondaryInfoRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pc.prototype,"largerItemWrap",null);_.H([_.Q(),_.x("design:type",Object)],Pc.prototype,"playlist",void 0);_.H([_.Q(),_.x("design:type",Object)],Pc.prototype,"clarifyBox",void 0);_.H([_.Q(),_.x("design:type",Object)],Pc.prototype,"playerAds",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],Pc.prototype,"isDark",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Pc.prototype,"actionsOnSeparateLine",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Pc.prototype,"disableVideoOwnerOnTap",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Pc.prototype,"swatcherooDelayLoad",void 0);_.H([_.Q(),_.x("design:type",Boolean)],Pc.prototype,"suppressTopLevelMetadataRows",void 0);
_.H([_.Q(),_.x("design:type",Object)],Pc.prototype,"primaryMenuWidth",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Pc.prototype,"videoId",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Pc.prototype,"titleHeadlineXs",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Pc.prototype,"titleHeadlineS",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Pc.prototype,"titleHeadlineM",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Pc.prototype,"titleHashtagBlackLinkified",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Pc.prototype,"titleHashtagGreyLinkified",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Pc.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.H([_.Q(),_.x("design:type",Object)],Pc.prototype,"shouldForceIconOnly",void 0);
_.H([_.k8("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pc.prototype,"updateOwnerAndDescriptionPosition",null);_.H([_.k8("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pc.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.H([_.g("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pc.prototype,"descriptionText",null);_.H([_.g("videoSecondaryInfoRenderer.headerRuns"),_.x("design:type",Array),_.x("design:paramtypes",[])],Pc.prototype,"headerRuns",null);
_.H([_.Q({value:!1}),_.g("commentsEntryPointHeaderRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pc.prototype,"hasTeaser",null);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.g("videoMetadataCarousel"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pc.prototype,"hasTeaserCarousel",null);_.H([_.Q({value:3}),_.g("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pc.prototype,"descriptionMaxLines",null);
_.H([_.g("videoSecondaryInfoRenderer.metadataRowContainer"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pc.prototype,"collapsibleMetadataRows",null);_.H([_.g("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pc.prototype,"alwaysVisibleMetadataRows",null);
_.H([_.g("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Pc.prototype,"hasInlineStructuredDescription",null);_.H([_.g("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Pc.prototype,"showInlineStructuredDescription",null);
_.H([_.g("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pc.prototype,"descriptionExpandCommand",null);_.H([_.g("videoSecondaryInfoRenderer.owner"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pc.prototype,"videoOwnerCommand",null);_.H([_.Q({reflectToAttribute:!0}),_.g("videoPrimaryInfoRenderer.videoActions"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Pc.prototype,"flexMenuEnabled",null);
_.H([_.Q({selector:_.Ix,reflectToAttribute:!0}),_.x("design:type",Object)],Pc.prototype,"isFullscreen",void 0);_.H([_.Q({selector:_.YS,reflectToAttribute:!0}),_.x("design:type",Object)],Pc.prototype,"isTheaterMode",void 0);_.H([_.g("descriptionText","useFadedScrimDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Pc.prototype,"showAttributedStringDescription",null);
_.H([_.g("descriptionText","useFadedScrimDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Pc.prototype,"showFormattedStringDescription",null);_.H([_.g("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Pc.prototype,"showFadedStructuredDescription",null);
_.H([_.k8("videoPrimaryInfoRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pc.prototype,"videoPrimaryInfoRendererChanged",null);_.H([_.g("videoPrimaryInfoRenderer.title"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pc.prototype,"videoTitle",null);_.H([_.g("videoPrimaryInfoRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pc.prototype,"noEndpoints",null);
_.H([_.k8("videoSecondaryInfoRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pc.prototype,"videoSecondaryInfoRendererChanged",null);_.H([_.gd("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pc.prototype,"structuredDescriptionContentRendererChanged",null);
_.H([_.gd("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pc.prototype,"updateTopLevelIconsOnly",null);_.H([_.gd("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pc.prototype,"updateShouldForceIconOnly",null);_.H([_.gd("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pc.prototype,"moveActionsElement",null);
_.H([_.VU("yt-text-inline-expander-expand-clicked"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pc.prototype,"onYtTextInlineExpanderExpandClicked",null);_.H([_.VU("yt-text-inline-expander-collapse-clicked"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pc.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.H([_.VU("yt-text-inline-expander-expanded-changed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pc.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.H([_.VU("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Pc.prototype,"onRenderStamperFinished",null);
_.H([_.VU("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pc.prototype,"onYtExpanderMoreTapped",null);_.H([_.VU("yt-expander-less-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pc.prototype,"onYtExpanderLessTapped",null);
_.H([_.gd("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pc.prototype,"registerPanel",null);_.H([_.gd("videoSecondaryInfoRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pc.prototype,"resetDescriptionState",null);
_.H([_.gd("structuredDescriptionContentRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pc.prototype,"parseColorSamplingData",null);_.H([_.gd("hoverColor","isDark"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pc.prototype,"updateHoverColor",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Pc);
_.D(Pc,"ytd-watch-metadata",function(){if(Umf!==void 0)return Umf;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata"> </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Umf=p},{mode:2});_.FwZ=function(p){_.Sr.call(this);this.JSC$22640_watchApi=p;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;gXZ(this);QXw(this);Kw3(this);w6O(this);iOl(this);rEw(this);S3l(this)};
_.A(_.FwZ,_.Sr);var Kw3=function(p){var y=function(){_.n("kevlar_is_pupi_enabled")||AW(p)};
p.JSC$22640_watchApi.getRoot().addEventListener("yt-player-updated",y);p.addOnDisposeCallback(function(){p.JSC$22640_watchApi.getRoot().removeEventListener("yt-player-updated",y)})},iOl=function(p){if(_.n("kevlar_endscreen_auto_theater_mode")){var y=p.JSC$22640_watchApi.subscribeToActiveChanged(function(){Lw6(p)},!1);
p.addOnDisposeCallback(y)}},gXZ=function(p){var y,l,q,t,E;
_.h(function(e){if(e.nextAddress==1)return e.yield(p.JSC$22640_watchApi.playerApi,2);y=e.yieldResult;l=function(C){C=!!C;ZG(p)&&(C=C?2:1,_.md.getInstance().setState(C,!0,!1))};
q=function(C){C&&_.Sjd(_.ei().getState())&&(_.$w(p.JSC$22640_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),p.temporaryTheaterMode=!0)};
t=function(C){_.n("kevlar_player_update_autonav_on_new_data")&&C.type==="newdata"&&(_.n("kevlar_is_pupi_enabled")||AW(p))};
E=function(C){p.onPlayerStateChange(C)};
_.n("kevlar_endscreen_auto_theater_mode")&&y.addEventListener("onAutonavCancelled",q);y.addEventListener("onAutonavChangeRequest",l);y.addEventListener("onVideoDataChange",t);y.addEventListener("onStateChange",E);p.addOnDisposeCallback(function(){y.removeEventListener("onAutonavChangeRequest",l);y.removeEventListener("onVideoDataChange",t);y.removeEventListener("onStateChange",E);_.n("kevlar_endscreen_auto_theater_mode")&&y.removeEventListener("onAutonavCancelled",q)});
_.rR(e)})},QXw=function(p){p.JSC$22640_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){p.autonavCancelledBySignal=!0;
_.n("kevlar_is_pupi_enabled")||AW(p)});
p.JSC$22640_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(y,l,q){l&&AW(p,q)});
p.JSC$22640_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){ZG(p)&&_.md.getInstance().setState(2,!0,!0)});
p.JSC$22640_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){ZG(p)&&_.md.getInstance().setState(1,!0,!0)});
p.addOnDisposeCallback(function(){p.JSC$22640_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");p.JSC$22640_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");p.JSC$22640_watchApi.unregisterActionHandler("yt-enable-autoplay-command");p.JSC$22640_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},w6O=function(p){var y=p.JSC$22640_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){S3l(p)}),l=p.JSC$22640_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){rEw(p)});
p.addOnDisposeCallback(function(){p.JSC$22640_watchApi.unsubscribeByKey(y);p.JSC$22640_watchApi.unsubscribeByKey(l)})},S3l=function(p){p.autonavCancelledBySignal=!1;
_.n("kevlar_is_pupi_enabled")||AW(p)},rEw=function(p){var y=p.JSC$22640_watchApi.getWatchNextResponse(),l,q;
var t=(y=(q=_.G(y==null?void 0:(t=y.playerOverlays)==null?void 0:(l=t.playerOverlayRenderer)==null?void 0:l.autonavToggle,_.eHi))==null?void 0:q.enabled)?2:1;_.n("kevlar_is_pupi_enabled")?_.md.getInstance().setState(t,!1,!1):AW(p);_.n("web_persist_server_autonav_state_on_client")&&typeof y==="boolean"&&_.cct(t===2)},ZG=function(p){if(p.autonavCancelledBySignal)return!1;
var y,l,q,t;return!!((y=p.JSC$22640_watchApi.getWatchNextResponse())==null?0:(l=y.contents)==null?0:(q=l.twoColumnWatchNextResults)==null?0:(t=q.autoplay)==null?0:t.autoplay)};
_.FwZ.prototype.onPlayerStateChange=function(p){if(p===0){p=!_.md.getInstance().isAutoplaySetExplicitly();var y=this.JSC$22640_watchApi.getWatchNextResponse(),l,q,t,E;y=_.G(y==null?void 0:(l=y.contents)==null?void 0:(q=l.twoColumnWatchNextResults)==null?void 0:(t=q.autoplay)==null?void 0:(E=t.autoplay)==null?void 0:E.autoplayExplicitChoiceDialogRenderer,_.K1B);ZG(this)&&p&&y&&_.wW.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:y},popupType:"DIALOG"}})}else Lw6(this)};
var Lw6=function(p){p.temporaryTheaterMode&&(p.temporaryTheaterMode=!1,_.$w(p.JSC$22640_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},AW=function(p,y){y=y===void 0?!1:y;
var l;_.h(function(q){if(q.nextAddress==1)return q.yield(p.JSC$22640_watchApi.playerApi,2);l=q.yieldResult;ZG(p)?l.setAutonavState(_.md.getInstance().getState(),y):l.setAutonavState(1,y);_.rR(q)})};var kBX={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.DmX=function(p){_.Sr.call(this);var y=this;this.JSC$22645_watchApi=p;var l=this.JSC$22645_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){NuX(y)});
this.addOnDisposeCallback(function(){y.JSC$22645_watchApi.unsubscribeByKey(l)});
NuX(this)};
_.A(_.DmX,_.Sr);var NuX=function(p){var y=p.JSC$22645_watchApi.getPlayerResponse(),l=p.JSC$22645_watchApi.getWatchNextResponse();if(!_.XXo(y==null?void 0:y.playabilityStatus,l==null?void 0:l.playerOverlays)){var q;var t=y==null?void 0:(q=y.playabilityStatus)==null?void 0:q.errorScreen}p.JSC$22645_watchApi.provideRenderingData("ERROR_SCREEN",t)};var HOu=_.aF(function(p){var y=p.data;p=_.n("web_watch_video_details_hide_subtitle");var l=_.n("web_watch_video_details_single_line_title"),q=_.Ff(function(){var C=y().onTap;C&&_.WC().resolve(_.aK).resolveCommand(C)}),t={},E={},e={};
return _.R("yt-player-overlay-video-details-renderer",{class:_.ip("ytPlayerOverlayVideoDetailsRendererHost",(t.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.n("web_watch_video_details_transparent_background"),t)),"on:click":q,role:"button"},_.R("h2",{class:_.ip("ytPlayerOverlayVideoDetailsRendererTitle",(E.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return l},E))},_.R(_.CF,{text:function(){return y().title}})),_.R("div",{class:_.ip("ytPlayerOverlayVideoDetailsRendererSubtitle",
(e.ytPlayerOverlayVideoDetailsRendererHideSubtitle=p,e))},_.R(_.CF,{text:function(){return y().subtitle}})))},"Nj");var MP={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},Tul=_.aF(function(p){var y=p.data;var l=_.yS(_.Ix),q=_.n("web_watch_action_bar_resize_buttons"),t=_.n("delhi_modern_web_player_icons")&&!_.n("enable_web_delhi_icons"),E=function(){return q&&!l()?{size:"M"}:void 0};
p={};return _.R("yt-player-quick-action-buttons",{class:_.ip("ytPlayerQuickActionButtonsHost",(p.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!l()},p))},_.R(_.rT,{each:function(){if(t){var e=y();
e=JSON.parse(JSON.stringify(e));for(var C=_.c(e),u=C.next();!u.done;u=C.next()){var a=u.value,m=void 0;u=_.G((m=_.G(a,_.o5))==null?void 0:m.toggleButtonViewModel,_.BN);var U=void 0;m=_.G((U=_.G(a,_.Ox))==null?void 0:U.toggleButtonViewModel,_.BN);U=_.G(a,_.xo);a=_.G(a,_.BN);if(u)m=_.G(u.defaultButtonViewModel,_.xo),u=_.G(u.toggledButtonViewModel,_.xo),m&&m.iconName&&(m.iconName=MP[m.iconName]),u&&u.iconName&&(u.iconName=MP[u.iconName]);else if(m)u=_.G(m.defaultButtonViewModel,_.xo),m=_.G(m.toggledButtonViewModel,
_.xo),u&&u.iconName&&(u.iconName=MP[u.iconName]),m&&m.iconName&&(m.iconName=MP[m.iconName]);else if(U)U.iconName&&(U.iconName=MP[U.iconName]);else if(a){u=_.G(a.defaultButtonViewModel,_.xo);m=_.G(a.toggledButtonViewModel,_.xo);a=void 0;if((a=u)==null?0:a.iconName)u.iconName=MP[u.iconName];u=void 0;if((u=m)==null?0:u.iconName)m.iconName=MP[m.iconName]}}}else e=y();return e}},function(e){return _.R(_.di,{data:function(){return e}},{buttonViewModel:function(C){return _.R(_.wZ,{data:C.data,
buttonOverrides:E})},
likeButtonViewModel:function(C){return _.R(_.ow,{data:C.data,buttonShapeOverrideables:E,disableIconAnimation:!0})},
dislikeButtonViewModel:function(C){return _.R(_.OW,{data:C.data,buttonShapeOverrideables:E})},
toggleButtonViewModel:function(C){return _.R(_.fo,{data:C.data,buttonShapeOverrides:E})}})}))},"Oj");_.Bua=function(p){_.Sr.call(this);var y=this;this.JSC$22650_watchApi=p;p=_.c(_.nr({},void 0,"ufFdVc"));this.quickActionsViewModel=p.next().value;this.setQuickActionsViewModel=p.next().value;p=_.c(_.nr({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=p.next().value;this.setPlayerOverlayVideoDetailsRenderer=p.next().value;var l=this.JSC$22650_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){xmX(y)});
this.addOnDisposeCallback(function(){y.JSC$22650_watchApi.unsubscribeByKey(l)});
xmX(this)};
_.A(_.Bua,_.Sr);
var xmX=function(p){var y,l,q,t,E,e,C,u,a,m,U,b,P,Z;_.h(function(K){if(K.nextAddress==1)return K.yield(p.JSC$22650_watchApi.playerApi,2);y=K.yieldResult;l=p.JSC$22650_watchApi.getWatchNextResponse();E=(q=l)==null?void 0:(t=q.playerOverlays)==null?void 0:t.playerOverlayRenderer;C=_.G((e=E)==null?void 0:e.fullscreenQuickActionsBar,_.Cci);(a=(u=p).setQuickActionsViewModel)==null||a.call(u,C||{});C&&fla(p,y);b=(m=E)==null?void 0:(U=m.videoDetails)==null?void 0:U.playerOverlayVideoDetailsRenderer;(Z=(P=
p).setPlayerOverlayVideoDetailsRenderer)==null||Z.call(P,b||{});b&&vXa(p,y);_.rR(K)})},fla=function(p,y){if(!p.quickActionButtonsContainer){p.quickActionButtonsContainer=document.createElement("div");
y.setFullscreenQuickActions(p.quickActionButtonsContainer);var l=function(){return p.quickActionsViewModel().quickActionButtons||[]},q=_.kZ(p.quickActionButtonsContainer,function(){return _.R(Tul,{data:l})});
p.addOnDisposeCallback(function(){y.setFullscreenQuickActions(void 0);q()})}},vXa=function(p,y){if(!p.playerOverlayVideoDetailsRendererContainer){p.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
y.setPlayerOverlayVideoDetailsRenderer(p.playerOverlayVideoDetailsRendererContainer);var l=_.kZ(p.playerOverlayVideoDetailsRendererContainer,function(){return _.R(HOu,{data:p.playerOverlayVideoDetailsRenderer})});
p.addOnDisposeCallback(function(){y.setPlayerOverlayVideoDetailsRenderer(void 0);l()})}};_.VV=function(p){_.Sr.call(this);var y=this;this.JSC$22655_watchApi=p;this.JSC$22655_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;p=_.Lw(_.ei(),_.Ix,function(l){y.onFullscreenChanged(l)});
this.addOnDisposeCallback(p);p=_.Lw(_.ei(),_.An,function(l){y.onWatchScroll(l)});
this.addOnDisposeCallback(p);_.n("kevlar_watch_while_v2")&&(p=_.Lw(_.ei(),_.vV,function(l){X6f(y,l)}),this.addOnDisposeCallback(p));
dmX(this);OOO(this);oXX();this.onWatchScroll(_.An(_.ei().getState()));_.o4("START_IN_FULL_WINDOW_MODE")&&this.JSC$22655_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.A(_.VV,_.Sr);var dmX=function(p){p.JSC$22655_watchApi.registerActionHandler("yt-fullscreen-change-action",function(y){var l=p.JSC$22655_watchApi.isActive();y&&!l||_.ei().dispatch(_.$y({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!y}}))});
p.addOnDisposeCallback(function(){p.JSC$22655_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},OOO=function(p){var y,l;
_.h(function(q){if(q.nextAddress==1)return q.yield(p.JSC$22655_watchApi.playerApi,2);y=q.yieldResult;l=function(){p.onFullerscreenEduClicked()};
y.addEventListener("onFullerscreenEduClicked",l);p.addOnDisposeCallback(function(){y.removeEventListener("onFullerscreenEduClicked",l)});
_.rR(q)})};
_.VV.prototype.onFullscreenChanged=function(p){var y=this,l;return _.h(function(q){if(q.nextAddress==1)return y.isFullscreen=!!_.RJ(),q.yield(y.JSC$22655_watchApi.playerApi,2);l=q.yieldResult;y.JSC$22655_miniplayerActive||l.setFauxFullscreen(y.isFullscreen);if(p&&(y.JSC$22655_watchApi.focusOnPlayer(),!y.fullerscreenEduButtonShownThisPlayback)){y.fullerscreenEduButtonShownThisPlayback=!0;var t=_.Qh("yt-fullerscreen-edu-button-shown-count")||0;_.gB("yt-fullerscreen-edu-button-shown-count",t+1,31536E3);
y.updateFullerscreenEduButtonSubtleModeState()}_.rR(q)})};
var X6f=function(p,y){var l;_.h(function(q){if(q.nextAddress==1)return p.JSC$22655_miniplayerActive=y,q.yield(p.JSC$22655_watchApi.playerApi,2);l=q.yieldResult;l.setFauxFullscreen(!p.JSC$22655_miniplayerActive&&p.isFullscreen);_.rR(q)})};
_.VV.prototype.onWatchScroll=function(p){var y=this,l,q;return _.h(function(t){if(t.nextAddress==1)return _.n("external_fullscreen_with_edu")?t.yield(y.JSC$22655_watchApi.playerApi,2):t.return();l=t.yieldResult;q=p<=0;y.shouldShowFullerscreenEdu!==q&&(y.shouldShowFullerscreenEdu=q,l.updateFullerscreenEduButtonVisibility(!y.shouldShowFullerscreenEdu));_.rR(t)})};
_.VV.prototype.onFullerscreenEduClicked=function(){this.JSC$22655_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var p=_.Qh("yt-fullerscreen-edu-button-click-count")||0;_.gB("yt-fullerscreen-edu-button-click-count",p+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.VV.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var p=this,y,l,q,t,E,e;return _.h(function(C){if(C.nextAddress==1)return y=_.Qh("yt-fullerscreen-edu-button-click-count")||0,l=_.Qh("yt-fullerscreen-edu-button-shown-count")||0,q=_.UC("external_fullscreen_button_click_threshold"),t=_.UC("external_fullscreen_button_shown_threshold"),E=y>=q||l>=t,C.yield(p.JSC$22655_watchApi.playerApi,2);e=C.yieldResult;e.updateFullerscreenEduButtonSubtleModeState(E);_.rR(C)})};
_.VV.prototype.disposeInternal=function(){_.Sr.prototype.disposeInternal.call(this);var p=_.RJ();_.n("kevlar_exit_fullscreen_leaving_watch")&&p&&_.WW(p)};
var oXX=function(){if(_.n("web_watch_add_viewport_meta_tag")){var p=document.querySelector("meta[name=viewport]"),y=document.head;y&&!p&&(p=document.createElement("meta"),p.name="viewport",p.content="width=device-width, initial-scale=1.0, viewport-fit=cover",y.appendChild(p))}};_.gf=function(p){_.Sr.call(this);var y=this;this.JSC$22659_watchApi=p;this.jobId=0;this.pendingRequestId=void 0;var l=this.JSC$22659_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){zfE(y)});
this.addOnDisposeCallback(function(){y.JSC$22659_watchApi.unsubscribeByKey(l)});
zfE(this)};
_.A(_.gf,_.Sr);var Y3X=function(p){_.TR.cancelJob(p.jobId);p.pendingRequestId=void 0},zfE=function(p){Y3X(p);
var y=JWL(p.JSC$22659_watchApi.getWatchNextResponse());if(y){var l=250,q,t=(q=_.G(y,_.e2N))==null?void 0:q.initialDelayMs;_.n("web_watch_updated_metadata_server_initial_delay")&&t&&(l=t);p.jobId=_.TR.addLowPriorityJob(function(){return p.fetchUpdatedMetadata(y)},l)}};
_.gf.prototype.fetchUpdatedMetadata=function(p,y){var l=this,q,t,E,e,C,u,a,m,U,b,P,Z,K,F,L;return _.h(function(T){switch(T.nextAddress){case 1:y&&(q={continuation:y});if(!_.n("web_get_updated_metadata_fantasy_panel_continuation_params")){T.jumpTo(2);break}t=_.WC().resolve(_.H8);E="PAsports_fantasy";return T.yield(t.isVisible(E,!0),3);case 3:T.yieldResult&&(a=(C=(e=t).getUpdatePanelContinuationData)==null?void 0:(u=C.call(e,E))==null?void 0:u.updatePanelContinuationRequest)&&(q||(q={}),q.clientParams=
{panelContinuationParams:{panelContinuation:a}});case 2:m=_.WC().resolve(_.XC);if(!m)return _.Bs(Error("xo")),T.return();U={};l.pendingRequestId=U;return T.yield(_.eo(m,p,q),4);case 4:b=T.yieldResult;if(U!==l.pendingRequestId)return T.return();K=(P=b)==null?void 0:(Z=P.continuation)==null?void 0:Z.timedContinuationData;((F=K)==null?0:F.continuation)&&((L=K)==null?0:L.timeoutMs)&&(l.jobId=_.TR.addLowPriorityJob(function(){return l.fetchUpdatedMetadata(p,K.continuation)},K.timeoutMs));
_.rR(T)}})};
_.gf.prototype.disposeInternal=function(){_.Sr.prototype.disposeInternal.call(this);Y3X(this)};var Ila=_.aF(function(p){var y=_.Ff(function(){var q=p.data().videoId;if(p.active())q=_.WV(q),_.WC().resolve(_.aK).resolveCommand(q);else{var t=p.playerApi(),E=t.getAvailableAudioTracks(),e,C,u=(e=p.sourceVideoConfig().audioTracks)==null?void 0:(C=e.find(function(a){return a.isDefaultForSource}))==null?void 0:C.id;
if(E=E.find(function(a){return a.getLanguageInfo().getId()===u}))t.setAudioTrack(E,!0),t.setCompositeParam({activeVideoId:q}),p.setActiveSourceId(q)}}),l={};
return _.R("ytw-composite-source-video-overlay",{class:_.ip("ytwCompositeSourceVideoOverlayHost",(l.ytwCompositeSourceVideoOverlayActive=p.active,l.ytwCompositeSourceVideoOverlayInteracting=p.interacting,l)),style:_.NW({left:function(){var q;return((q=p.data().topLeftCornerX)!=null?q:0)*100+"%"},
top:function(){var q;return((q=p.data().topLeftCornerY)!=null?q:0)*100+"%"},
width:function(){var q;return((q=p.data().width)!=null?q:0)*100+"%"},
height:function(){var q;return((q=p.data().height)!=null?q:0)*100+"%"}}),
"on:click":y},_.R("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Pj");var pHu=_.aF(function(p){var y=_.c(_.kS(function(){var e,C=(e=p.data().sources)==null?void 0:e.find(function(u){return u.isActive});
if(C)return C.videoId})),l=y.next().value,q=y.next().value;
y=_.c(_.nr(!1,void 0,"WI4BUb"));var t=y.next().value,E=y.next().value;return _.R("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.Ff(function(){E(!0)}),
"on:mouseout":_.Ff(function(){E(!1)})},_.R(_.W,{cond:function(){return p.data().sources},
then:function(e){return _.R(_.rT,{each:e},function(C){return _.R(Ila,{data:C,active:function(){return C.videoId===l()},
setActiveSourceId:q,interacting:t,playerApi:p.playerApi,sourceVideoConfig:function(){return cWO(p.compositeVideoConfig(),C.videoId)}})})}}))},"Qj");_.q8X=function(p){_.Sr.call(this);this.JSC$22675_watchApi=p;p=_.c(_.nr({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=p.next().value;this.setCompositeVideoOverlayRenderer=p.next().value;p=_.c(_.nr({},void 0,"U5hcq"));this.compositeVideoConfig=p.next().value;this.setCompositeVideoConfig=p.next().value;yww(this);lhu(this)};
_.A(_.q8X,_.Sr);var yww=function(p){var y=p.JSC$22675_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){lhu(p)});
p.addOnDisposeCallback(function(){p.JSC$22675_watchApi.unsubscribeByKey(y)})},s9X=function(p){var y;
return _.h(function(l){if(l.nextAddress==1)return l.yield(p.JSC$22675_watchApi.playerApi,2);y=l.yieldResult;y.setCompositeVideoOverlayRendererComponent(p.container);_.rR(l)})},t_X=function(p){var y;
return _.h(function(l){if(l.nextAddress==1)return l.yield(p.JSC$22675_watchApi.playerApi,2);y=l.yieldResult;y.setCompositeVideoOverlayRendererComponent(void 0);_.rR(l)})},EqX=function(p){var y,l;
return _.h(function(q){if(q.nextAddress==1)return q.yield(p.JSC$22675_watchApi.playerApi,2);y=q.yieldResult;p.container=document.createElement("div");l=_.kZ(p.container,function(){return _.R(pHu,{data:p.compositeVideoOverlayRenderer,compositeVideoConfig:p.compositeVideoConfig,playerApi:y})});
p.addOnDisposeCallback(l);_.rR(q)})},lhu=function(p){var y,l,q,t,E,e,C,u;
_.h(function(a){return a.nextAddress==1?(y=p.JSC$22675_watchApi.getPlayerResponse(),E=_.G((l=y)==null?void 0:(q=l.overlay)==null?void 0:(t=q.playerControlsOverlayRenderer)==null?void 0:t.compositeVideoOverlay,YHL),u=(e=y)==null?void 0:(C=e.playerConfig)==null?void 0:C.compositeVideoConfig,E&&p.setCompositeVideoOverlayRenderer(E),u&&p.setCompositeVideoConfig(u),E&&u?p.container?a.jumpTo(6):a.yield(EqX(p),6):Jwm(p)?a.yield(t_X(p),0):a.jumpTo(0)):Jwm(p)?a.jumpTo(0):a.yield(s9X(p),0)})},Jwm=function(p){var y;
return!((y=p.container)==null||!y.parentElement)};
_.q8X.prototype.disposeInternal=function(){Jwm(this)&&t_X(this);_.Sr.prototype.disposeInternal.call(this)};_.uDf=function(p){_.Sr.call(this);var y=this;this.JSC$22681_watchApi=p;var l=this.JSC$22681_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var q=y.JSC$22681_watchApi.getPlayerResponse();if(q){var t,E;if(q=_.G((t=q.endscreen)==null?void 0:(E=t.endscreenRenderer)==null?void 0:E.hideButton,_.BN)){var e;(e=y.setEndscreenHideButton)==null||e.call(y,q);cw6(y)}}});
this.addOnDisposeCallback(function(){y.JSC$22681_watchApi.unsubscribeByKey(l)});
p=_.c(_.nr({},void 0,"PPHRb"));this.endscreenHideButton=p.next().value;this.setEndscreenHideButton=p.next().value;e_3(this);h_f(this);C6Z(this)};
_.A(_.uDf,_.Sr);var cw6=function(p){var y,l;_.h(function(q){if(q.nextAddress==1)return p.creatorEndscreenHideButtonContainer?q.return():q.yield(p.JSC$22681_watchApi.playerApi,2);y=q.yieldResult;p.creatorEndscreenHideButtonContainer=document.createElement("div");_.yc(p.creatorEndscreenHideButtonContainer,!1);y.setCreatorEndscreenHideButton(p.creatorEndscreenHideButtonContainer);l=_.kZ(p.creatorEndscreenHideButtonContainer,function(){return _.R(_.fo,{data:p.endscreenHideButton,useOutlinedIcon:!0})});
p.addOnDisposeCallback(function(){l();var t;(t=y)==null||t.setCreatorEndscreenHideButton(void 0)});
_.rR(q)})},e_3=function(p){var y,l;
_.h(function(q){if(q.nextAddress==1)return q.yield(p.JSC$22681_watchApi.playerApi,2);y=q.yieldResult;l=function(){p.creatorEndscreenHideButtonContainer&&_.yc(p.creatorEndscreenHideButtonContainer,!0)};
y.addEventListener("endscreenelementshown",l);p.addOnDisposeCallback(function(){var t;(t=y)==null||t.removeEventListener("endscreenelementshown",l)});
_.rR(q)})},h_f=function(p){var y=function(){p.creatorEndscreenHideButtonContainer&&_.yc(p.creatorEndscreenHideButtonContainer,!1)},l=p.JSC$22681_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",y),q=p.JSC$22681_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",y);
p.addOnDisposeCallback(function(){p.JSC$22681_watchApi.unsubscribeByKey(l);p.JSC$22681_watchApi.unsubscribeByKey(q)})},C6Z=function(p){p.JSC$22681_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(y){var l=_.G(y,vUA);
p.JSC$22681_watchApi.playerApi.then(function(q){q==null||q.setCreatorEndscreenVisibility(!!l.hide)})});
p.addOnDisposeCallback(function(){p.JSC$22681_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.Wbf=function(p){_.Sr.call(this);this.JSC$22687_watchApi=p;R_f(this)};
_.A(_.Wbf,_.Sr);var R_f=function(p){var y,l;_.h(function(q){if(q.nextAddress==1)return q.yield(p.JSC$22687_watchApi.playerApi,2);y=q.yieldResult;l=function(t){_.ei().dispatch(_.$y({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:t}}))};
y.addEventListener("onRetroModeChanged",l);p.addOnDisposeCallback(function(){y.removeEventListener("onRetroModeChanged",l)});
_.rR(q)})};var QP=0,g9=0,KR=0;var ahX;ahX=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.QV=function(p){_.Sr.call(this);this.JSC$22700_watchApi=p;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;mNu(this)};
_.A(_.QV,_.Sr);
var mNu=function(p){var y,l,q;_.h(function(t){if(t.nextAddress==1)return t.yield(p.JSC$22700_watchApi.playerApi,2);y=t.yieldResult;if(p.isDisposed())return t.return();p.sessionStorage=_.AEL("yt-sleep-timer");p.sessionStorage||_.vs(new _.SM("SessionStorage for Sleep Timer is undefined."));((l=p.sessionStorage)==null?void 0:l.get("yt-sleep-timer"))==="true"&&($P6(),(q=p.sessionStorage)==null||q.remove("yt-sleep-timer"),y.syncVolume());UNX(p,y);$Na(p,y);j9X(p,y);_.rR(t)})},UNX=function(p,y){var l=function(a){p.onSleepTimerSettingsChanged(a,
y)},q=function(a){p.onPlayerStateChange(a,y)},t=function(){p.onLoopChange(y)},E=function(){p.onCloseMiniplayer(y)},e=function(){WhR(y,(0,_.uM)(),jIO(y),p.selectedOption==="End of video",y.getPlayerState()!==1)},C=function(){p.onSeekComplete(y)},u=function(){_.TR.cancelJob(g9);
var a=y.getCurrentTime()>=y.getDuration(),m=p.selectedOption==="End of video"||p.selectedOption==="End of playlist"&&!CEV(p.playlistId);a&&m&&bCm(p,y)};
y.addEventListener("onSleepTimerSettingsChanged",l);y.addEventListener("onLoopChange",t);y.addEventListener("onLoopRangeChange",t);y.addEventListener("onStateChange",q);y.addEventListener("onCloseMiniplayer",E);y.addEventListener("onSleepTimerFeatureAvailable",e);y.addEventListener("SEEK_COMPLETE",C);y.addEventListener("onAdStart",u);p.addOnDisposeCallback(function(){y.removeEventListener("onSleepTimerSettingsChanged",l);y.removeEventListener("onLoopChange",t);y.removeEventListener("onLoopRangeChange",
t);y.removeEventListener("onStateChange",q);y.removeEventListener("onCloseMiniplayer",E);y.removeEventListener("onSleepTimerFeatureAvailable",e);y.removeEventListener("SEEK_COMPLETE",C);y.removeEventListener("onAdStart",u)})},$Na=function(p,y){var l=p.JSC$22700_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var q=y.getVideoData().video_id,t,E=(t=e6L(p.JSC$22700_watchApi))==null?void 0:t.playlistId;
p.pauseAutonavPlayback&&(y.pauseVideo(),y.syncVolume(),p.pauseAutonavPlayback=!1);if(p.selectedOption==="End of video"&&q!==p.videoId)Ki(p,y);else{if(p.selectedOption==="End of playlist"){t=CEV(p.playlistId);if(E!==p.playlistId){Ki(p,y);break a}t?t&&nqf(p,y):GwZ(p,y)}p.videoId=q;p.playlistId=E}}});
p.addOnDisposeCallback(function(){p.JSC$22700_watchApi.unsubscribeByKey(l)})},j9X=function(p,y){var l=_.WC().resolve(_.yF),q=_.Lw(l,_.My_,function(E){E&&p.selectedOption!=="Off"&&Ki(p,y)}),t=p.JSC$22700_watchApi.subscribeToActiveChanged(function(E){var e,C;
return _.h(function(u){if(u.nextAddress==1)return u.yield(_.Sy().navigationFinishPromise,2);e=!_.GOM();C=_.WC().resolve(_.IA).isMiniplayerActive();E||!VP(p.selectedOption)||C||e||Ki(p,y);_.rR(u)})},!1);
l=_.Lw(l,function(E){return E.entities.playlistLoopStateEntity||{}},function(E){E=E===void 0?{}:E;
var e=h69(p.JSC$22700_watchApi);if(e){var C;((C=E[e])==null?void 0:C.state)==="PLAYLIST_LOOP_STATE_ALL"&&VP(p.selectedOption)&&Ki(p,y)}});
p.addOnDisposeCallback(q);p.addOnDisposeCallback(l);p.addOnDisposeCallback(t)};
_.QV.prototype.onSleepTimerSettingsChanged=function(p,y){switch(p){case "Off":this.selectedOption!=="Off"&&Ki(this,y);break;case "End of video":case "End of playlist":P6w(this,p,y);break;default:P6w(this,p,y,ahX.get(p))}};
_.QV.prototype.onLoopChange=function(p){(p.getLoopVideo()||p.getLoopRange())&&VP(this.selectedOption)&&Ki(this,p)};
_.QV.prototype.onCloseMiniplayer=function(p){VP(this.selectedOption)&&Ki(this,p)};
var P6w=function(p,y,l,q){AwZ(p,l);p.selectedOption=y;p.videoId=l.getVideoData().video_id;p.playlistId="";var t;(t=p.sessionStorage)==null||t.set("yt-sleep-timer","true");p.adjustmentsCount++;WhR(l,(0,_.uM)(),jIO(l),p.selectedOption==="End of video");if(p.selectedOption==="End of video")GwZ(p,l),ZC3(p,l);else if(p.selectedOption==="End of playlist"){ZC3(p,l);var E,e;p.playlistId=(e=(E=e6L(p.JSC$22700_watchApi))==null?void 0:E.playlistId)!=null?e:"";CEV(p.playlistId)||GwZ(p,l)}else q&&(p.presetFadeSchedulerId=
_.D6(_.TR,function(){mP1(l,15E3)},q-15E3),p.presetPauseSchedulerId=_.D6(_.TR,function(){bCm(p,l)},q),aGA(l,(0,_.uM)(),q))},bCm=function(p,y){if(p.JSC$22700_watchApi.isActive()){var l={dismissDialogEndpoint:{}};
var q={commandExecutorCommand:{commands:[l,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};l={buttonViewModel:{title:_.g$("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:l}}};q={buttonViewModel:{title:_.g$("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:q}}};var t={dialogHeaderViewModel:{headline:{content:_.g$("SLEEP_TIMER_ENDED_TITLE")}}},
E={basicContentViewModel:{paragraphs:[{text:{content:_.g$("SLEEP_TIMER_ENDED_TEXT")}}]}};l={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:t,content:E,footer:{panelFooterViewModel:{primaryButton:l,secondaryButton:q,shouldHideDivider:!0}}}}}}};_.WC().resolve(_.aK).resolveCommand(l,{form:{element:p}})}else $P6();M_3(p,!1);V_X(p,y);y.pauseVideo();_.md.getInstance().getState()===2&&y.getPlayerState()===5&&(p.pauseAutonavPlayback=!0)},Ki=function(p,y){M_3(p,!0);
V_X(p,y);$P6()},V_X=function(p,y){AwZ(p,y);
p.selectedOption="Off";p.videoId="";p.playlistId="";p.adjustmentsCount=0;var l;(l=p.sessionStorage)==null||l.remove("yt-sleep-timer");_.TR.cancelJob(QP);y.resetSleepTimerMenuSettings()},M_3=function(p,y){y={timer_length_adjustment_times_during_session:p.adjustmentsCount-1,
is_session_cancelled:y};switch(p.selectedOption){case "Off":y.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":y.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":y.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:y.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",y.option_duration_in_minutes=ahX.get(p.selectedOption)/6E4}_.TX("sleepTimerSessionFinishEvent",y)};
_.QV.prototype.onPlayerStateChange=function(p,y){p===1?WhR(y,(0,_.uM)(),jIO(y),this.selectedOption==="End of video"):p===0?(_.TR.cancelJob(g9),y.setVideoTimeLeft(R69(0,0))):p===2&&_.TR.cancelJob(g9);this.selectedOption==="End of video"?p===0?bCm(this,y):p===2&&UPR(y):this.selectedOption!=="End of playlist"||CEV(this.playlistId)||(p===0?bCm(this,y):p===2&&UPR(y))};
_.QV.prototype.onSeekComplete=function(p){p.getPlayerState()===2&&WhR(p,(0,_.uM)(),jIO(p),this.selectedOption==="End of video",!0)};
_.QV.prototype.onCueRangeEnter=function(p,y){p==="sleep-timer-fade-audio"&&mP1(y,(y.getDuration()-y.getProgressState().current)*1E3)};
_.QV.prototype.onCueRangeExit=function(p,y){p==="sleep-timer-fade-audio"&&y.getPlayerState()!==0&&UPR(y,!0)};
var GwZ=function(p,y){y.addCueRange("sleep-timer-fade-audio",y.getDuration()-15,y.getDuration());y.addEventListener("onCueRangeEnter",function(l){p.onCueRangeEnter(l,y)});
y.addEventListener("onCueRangeExit",function(l){p.onCueRangeExit(l,y)})},nqf=function(p,y){y.removeCueRange("sleep-timer-fade-audio");
y.removeEventListener("onCueRangeEnter",function(l){p.onCueRangeEnter(l,y)});
y.removeEventListener("onCueRangeExit",function(l){p.onCueRangeExit(l,y)})},AwZ=function(p,y){VP(p.selectedOption)?nqf(p,y):(_.TR.cancelJob(p.presetPauseSchedulerId),_.TR.cancelJob(p.presetFadeSchedulerId),p.presetPauseSchedulerId=0,p.presetFadeSchedulerId=0);
UPR(y,!0)},ZC3=function(p,y){y.setLoop(!1);
y.setLoopVideo(!1);y.setLoopRange(null);(p=h69(p.JSC$22700_watchApi))&&_.WC().resolve(_.yF).dispatch(_.Fp("playlistLoopStateEntity",p,{key:p,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.wHX=function(p){_.Sr.call(this);this.JSC$22703_watchApi=p;gq6(this);Q9B(this);Kb3(this);p=p.getRoot();if(p.is==="ytd-watch-flexy"||p.is==="ytd-watch-grid")p.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.Lym();_.n("web_watch_log_theater_mode_cookie_state")&&_.Q$.get("wide","0")==="1"&&_.GQl("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.A(_.wHX,_.Sr);var gq6=function(p){var y,l;_.h(function(q){if(q.nextAddress==1)return q.yield(p.JSC$22703_watchApi.playerApi,2);y=q.yieldResult;l=function(t){iCu(p,!!t)};
y.addEventListener("SIZE_CLICKED",l);p.addOnDisposeCallback(function(){y.removeEventListener("SIZE_CLICKED",l)});
_.rR(q)})},Q9B=function(p){p.JSC$22703_watchApi.registerActionHandler("yt-toggle-theater-mode",function(y,l){iCu(p,y,l===void 0?!0:l)});
p.addOnDisposeCallback(function(){p.JSC$22703_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.wHX.prototype.getState=function(){return _.YS(_.ei().getState())};
var iCu=function(p,y,l){l=l===void 0?!0:l;var q,t,E,e=_.n("enable_player_resize_transition")&&!!p.JSC$22703_watchApi.getWatchNextResponse()&&!((q=p.JSC$22703_watchApi.getWatchNextResponse())==null?0:(t=q.contents)==null?0:(E=t.twoColumnWatchNextResults)==null?0:E.conversationBar);_.Vri(function(){_.ei().dispatch(_.$y({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:y}}));_.n("theater_mode_scroll_to_top_killswitch")||p.JSC$22703_watchApi.scrollWatchTo(0,!1);_.RJ()&&_.n("external_fullscreen")&&_.WW(document.documentElement);
Kb3(p);l&&_.Kh("wide",y?"1":"0",-1);_.$w(p.JSC$22703_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);p.JSC$22703_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:y});y&&_.Lym()},{shouldWrap:e})},Kb3=function(p){var y;
_.h(function(l){if(l.nextAddress==1)return l.yield(p.JSC$22703_watchApi.playerApi,2);y=l.yieldResult;y.setSizeStyle(!0,p.getState());_.rR(l)})};var FbB=function(p){_.Sr.call(this);var y=this;this.playerApi=p;this.timeToPanelSyncKeyMap={};var l;if(p==null?0:(l=p.isReady)==null?0:l.call(p)){l=_.Lw(_.WC().resolve(_.yF),function(t){return t.entities.timedMarkersListSyncEntity||{}},function(t,E){t=t===void 0?{}:t;
E=E===void 0?{}:E;for(var e=_.c(Object.keys(E)),C=e.next();!C.done;C=e.next())C=C.value,t[C]!==E[C]&&rwX(y,E[C]);E=_.c(Object.keys(t));for(e=E.next();!e.done;e=E.next())e=e.value,C=t[e],y.timeToPanelSyncKeyMap[e]&&S8m(y,C)});
this.addOnDisposeCallback(l);var q=function(t){y.onCueRangeEnter(t)};
p.addEventListener("onCueRangeEnter",q);this.addOnDisposeCallback(function(){var t;(t=p.removeEventListener)==null||t.call(p,"onCueRangeEnter",q)})}};
_.A(FbB,_.Sr);
var S8m=function(p,y){var l,q;if((l=p.playerApi)==null?0:(q=l.isReady)==null?0:q.call(l)){var t;if((l=y==null?void 0:(t=y.timedListData)==null?void 0:t.sections)&&y!=null&&y.key)for(t=_.c(l),l=t.next();!l.done;l=t.next())if(l=l.value,l.timedSyncDataList&&l.sectionId)for(q=0;q<l.timedSyncDataList.length;q++){var E=l.timedSyncDataList[q];E.syncItemId&&p.playerApi.addCueRange(l.sectionId+"_"+y.key+"_"+E.syncItemId,Number(E.videoTimeMs)/1E3,q===l.timedSyncDataList.length-1?0x8000000000000:Number(l.timedSyncDataList[q+
1].videoTimeMs)/1E3)}}},rwX=function(p,y){var l,q;
if((l=p.playerApi)==null?0:(q=l.isReady)==null?0:q.call(l)){var t;if((l=y==null?void 0:(t=y.timedListData)==null?void 0:t.sections)&&y!=null&&y.key)for(t=_.c(l),l=t.next();!l.done;l=t.next())if(l=l.value,l.timedSyncDataList&&l.sectionId){q=_.c(l.timedSyncDataList);for(var E=q.next();!E.done;E=q.next())E=E.value,E.syncItemId&&p.playerApi.removeCueRange(l.sectionId+"_"+y.key+"_"+E.syncItemId)}}};
FbB.prototype.onCueRangeEnter=function(p){for(var y=_.c(Object.keys(this.timeToPanelSyncKeyMap)),l=y.next();!l.done;l=y.next()){l=l.value;var q=_.c(p.split("_"+l+"_")),t=q.next().value;q=q.next().value;if(t&&q){p=_.WC().resolve(_.yF);y=this.timeToPanelSyncKeyMap[l];var E=_.Uz_(p.getState(),y);l=Lb3(l,t,q);if(l===-1)break;l={activeSyncId:q,activeItemIndex:l,activeSectionInfo:{sectionIdentifier:t}};E?p.dispatch(_.Ow("markersEngagementPanelSyncEntity",y,l)):p.dispatch(_.Fp("markersEngagementPanelSyncEntity",
y,Object.assign({},{key:y},l)));break}}};
var Lb3=function(p,y,l){var q=_.WC().resolve(_.yF),t,E;p=(t=gjA(q.getState(),p))==null?void 0:(E=t.timedListData)==null?void 0:E.sections;if(!p)return-1;t=0;E=_.c(p);for(p=E.next();!p.done;p=E.next()){p=p.value;q=p.timedSyncDataList||[];if(p.sectionId===y)return y=q.findIndex(function(e){return e.syncItemId===l}),y===-1?y:t+y;
t+=q.length}return-1};_.DNl=function(p){_.Sr.call(this);var y=this;this.JSC$22716_watchApi=p;this.unresolvedCommands=[];this.JSC$22716_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(l){kw3(y,l)});
this.addOnDisposeCallback(function(){y.JSC$22716_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
NRl(this)};
_.A(_.DNl,_.Sr);var NRl=function(p){var y;_.h(function(l){if(l.nextAddress==1)return l.yield(p.JSC$22716_watchApi.playerApi,2);y=l.yieldResult;if(p.isDisposed())return l.return();p.timedSyncObserver=new FbB(y);p.unresolvedCommands.length&&(p.unresolvedCommands.forEach(function(q){return kw3(p,q)}),p.unresolvedCommands=[]);
_.P9(p,p.timedSyncObserver);_.rR(l)})},kw3=function(p,y){if(p.timedSyncObserver){var l=_.G(y,dP9);
if(l&&l.timedSyncEntityKey&&l.panelSyncEntityKey){p=p.timedSyncObserver;y=l.timedSyncEntityKey;var q=l.panelSyncEntityKey;l=!!l.isEnabled;l=l===void 0?!0:l;var t=_.WC().resolve(_.yF);t=gjA(t.getState(),y);l?p.timeToPanelSyncKeyMap[y]||(p.timeToPanelSyncKeyMap[y]=q,S8m(p,t)):(delete p.timeToPanelSyncKeyMap[y],rwX(p,t))}}else p.unresolvedCommands.push(y)};var HCX=_.aF(function(p){var y=p.data,l=p.maybeLogSmartSkipClientData,q=null,t=null,E=_.n("web_enable_auto_focus_for_timely_action_button"),e=function(){q=document.activeElement},C=function(){y().smartSkipMetadata&&(q=document.activeElement,_.h19(function(){return t}))},u=function(m){if(y().smartSkipMetadata&&(!m||m.key!=="Enter")){q&&q.isConnected&&(_.h19(function(){return q}),q=null);
var U;(U=t)==null||U.blur()}};
p=_.Ff(function(){l==null||l(!0,y());return!1});
var a=_.mR(_.yn(function(){return y().rendererContext},{onTap:function(m,U){U({disableClickTracking:!0})}}),_.Ct({visibilityCallback:function(m){if(E)m?t&&y().smartSkipMetadata&&(C(),document.addEventListener("focusin",e)):(document.removeEventListener("focusin",e),u());
else if(m){m=_.IW(y().rendererContext);var U=Number(y().maxVisibleDurationMilliseconds),b,P=(b=_.G(y().rendererContext,_.L5))==null?void 0:b.label;m&&U&&P&&(b={label:P,command:m,durationMs:U},_.WC().resolve(_.r2).enqueue(b))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.Hu(function(){if(E){var m;if((t=(m=a.value)==null?void 0:m.querySelector("button"))&&y().smartSkipMetadata){var U;(U=a.value)==null||U.addEventListener("keydown",u)}}});
_.TP(function(){E&&(t&&y().smartSkipMetadata&&t.removeEventListener("keydown",u),document.removeEventListener("focusin",e),u())});
return _.R("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:a,"on:click":p},_.R(_.di,{data:function(){return y().content}},{buttonViewModel:_.wZ}))},"Rj");var TRO=_.aF(function(p){var y=p.data,l=p.playerApi,q=_.WC().resolve(_.n6w);p=_.c(_.kS(function(){y()}));
var t=p.next().value,E=p.next().value,e=function(){return nUu(y(),t())},C=function(a,m){var U,b,P=(U=_.G(m==null?void 0:m.rendererContext,_.kg))==null?void 0:(b=U.loggingDirectives)==null?void 0:b.trackingParams;
if((m=m==null?void 0:m.smartSkipMetadata)&&m.loggingData&&(b=m.loggingData,m=b.algorithmId,U=b.startMilliseconds,b=b.endMilliseconds,m&&U!==void 0&&b!==void 0)){var Z,K;a={smartSkipData:Object.assign({},{versionName:m,startMediaTimeMs:U,endMediaTimeMs:b},a&&{userInteractionMediaTimeMs:(Math.floor(((Z=_.$o())==null?void 0:(K=Z.getPlayer())==null?void 0:K.getCurrentTime())||0)*1E3).toString()})};Z=_.B2();var F;P&&(F=_.Tp(P));Z&&F&&_.Je(Z,F,a)}},u=function(a,m){var U=nUu(y(),a);
if(U){var b=_.G(U,w9),P;if(P=m)P=l(),U=_.G(U,w9),P=U!=null&&U.smartSkipMetadata?!(P==null?0:P.isSameMarkerTypeVisible((U==null?void 0:U.smartSkipMetadata.markerKey)||"")):!0;if(P){var Z,K;(b==null?0:(Z=b.smartSkipMetadata)==null?0:(K=Z.loggingData)==null?0:K.isCounterfactual)||(C(!1,b),E(a))}else m||t()!==a||E(void 0)}};
_.NA(function(){var a=y().timelyActions;if(a){a=_.c(a);for(var m=a.next();!m.done;m=a.next()){m=_.G(m.value,w9);var U=void 0;(U=m)!=null&&U.cueRangeId&&q.timelyActionsMap.set(m.cueRangeId,u)}_.TP(function(){q.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.R("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.R(_.di,{data:e},{timelyActionViewModel:function(a){return _.R(HCX,{data:a.data,maybeLogSmartSkipClientData:function(){C(!0,_.G(e(),w9))}})}}))},"Sj");_.BRm=function(p){_.Sr.call(this);this.JSC$22728_watchApi=p;p=_.c(_.nr({},void 0,"pLDp2"));this.timelyActionsOverlay=p.next().value;this.setTimelyActionsOverlay=p.next().value;xNO(this)};
_.A(_.BRm,_.Sr);var xNO=function(p){var y,l,q,t;_.h(function(E){if(E.nextAddress==1)return fh6(p),vqO(p),p.timelyActionsContainer=document.createElement("div"),E.yield(p.JSC$22728_watchApi.playerApi,2);y=E.yieldResult;(q=(l=y).insertTimelyActionUi)==null||q.call(l,p.timelyActionsContainer);t=_.kZ(p.timelyActionsContainer,function(){return _.R(TRO,{data:p.timelyActionsOverlay,playerApi:y})});
p.addOnDisposeCallback(t);_.rR(E)})},vqO=function(p){var y=p.JSC$22728_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){fh6(p)});
p.addOnDisposeCallback(function(){p.JSC$22728_watchApi.unsubscribeByKey(y)})},fh6=function(p){var y=p.JSC$22728_watchApi.getWatchNextResponse();
if(y){var l,q;if(y=_.G((l=y.playerOverlays)==null?void 0:(q=l.playerOverlayRenderer)==null?void 0:q.timelyActionsOverlayViewModel,Oi9)){var t;(t=p.setTimelyActionsOverlay)==null||t.call(p,y)}}};_.dNX=function(p){_.Sr.call(this);this.JSC$22732_watchApi=p;XH3(this)};
_.A(_.dNX,_.Sr);var XH3=function(p){var y,l;_.h(function(q){if(q.nextAddress==1)return q.yield(p.JSC$22732_watchApi.playerApi,2);y=q.yieldResult;l=function(t){_.wW.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.G(t,_.yn6)},popupType:"TOAST"}})};
y.addEventListener("onYtShowToast",l);p.addOnDisposeCallback(function(){y.removeEventListener("onYtShowToast",l)});
_.rR(q)})};var OCf,Y8X,q6f,oql,z_O,l7u,pJB,yQl,slX,tO6;OCf=!1;_.Ihw=function(p){_.Sr.call(this);this.JSC$22735_watchApi=p;this.fullscreen=this.theater=!1;oql(this);z_O(this);Y8X(this)};
_.A(_.Ihw,_.Sr);Y8X=function(p){var y,l,q;_.h(function(t){if(t.nextAddress==1)return t.yield(p.JSC$22735_watchApi.playerApi,2);y=t.yieldResult;if(p.isDisposed())return t.return();l=p.JSC$22735_watchApi.getElement("CINEMATICS");if(!l)return t.return();p.JSC$22735_cinematicController=new _.q1(l,y);_.P9(p,p.JSC$22735_cinematicController);_.P3A(p.JSC$22735_cinematicController);pJB(p,_.yFt());q=p.JSC$22735_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(E){yQl(p,E)});
p.addOnDisposeCallback(function(){p.JSC$22735_watchApi.unsubscribeByKey(q)});
l7u(p);yQl(p,p.JSC$22735_cinematicController.isAllowed());_.n("web_cinematic_manager_redux_killswitch")?_.wf(p,p.fullscreen,p.theater):q6f(p);slX(p);_.rR(t)})};
q6f=function(p){p.fullscreen=_.Ix(_.ei().getState());p.theater=_.YS(_.ei().getState());_.wf(p,p.fullscreen,p.theater);var y=_.Lw(_.ei(),_.Ix,function(q){p.fullscreen=q;_.wf(p,p.fullscreen,p.theater)}),l=_.Lw(_.ei(),_.YS,function(q){p.theater=q;
_.wf(p,p.fullscreen,p.theater)});
p.addOnDisposeCallback(y);p.addOnDisposeCallback(l)};
oql=function(p){var y=p.JSC$22735_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){l7u(p)});
p.addOnDisposeCallback(function(){p.JSC$22735_watchApi.unsubscribeByKey(y)})};
z_O=function(p){var y,l;_.h(function(q){if(q.nextAddress==1)return q.yield(p.JSC$22735_watchApi.playerApi,2);y=q.yieldResult;l=function(t){pJB(p,t)};
y.addEventListener("cinematicSettingsToggleChange",l);p.addOnDisposeCallback(function(){y.removeEventListener("cinematicSettingsToggleChange",l)});
_.rR(q)})};
l7u=function(p){var y=p.JSC$22735_watchApi.getWatchNextResponse(),l;y=_.G(y==null?void 0:(l=y.pageVisualEffects)==null?void 0:l[0],_.b$);var q;(q=p.JSC$22735_cinematicController)==null||_.ZR9(q,y)};
pJB=function(p,y){var l;(l=p.JSC$22735_cinematicController)==null||_.AnO(l,y);tO6(p)};
yQl=function(p,y){var l;_.h(function(q){if(q.nextAddress==1)return _.n("kevlar_watch_cinematics_invisible")&&(y=!1),q.yield(p.JSC$22735_watchApi.playerApi,2);l=q.yieldResult;l.updateCinematicSettings(y);tO6(p);_.rR(q)})};
slX=function(p){var y=_.w$();if(_.n("kevlar_measure_ambient_mode_idle")&&!y.getFlag(192)&&!OCf){OCf=!0;var l=_.rJ(_.TR,function(){_.WC().resolve(_.GBd).start(1E4)},5E3);
p.addOnDisposeCallback(function(){_.TR.cancelJob(l);_.WC().resolve(_.GBd).stop()})}};
_.wf=function(p,y,l){p.fullscreen=y;p.theater=l;var q;(q=p.JSC$22735_cinematicController)==null||q.setFullscreen(p.fullscreen,p.theater);if(_.n("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(p.theater||p.fullscreen){var t;(t=p.JSC$22735_cinematicController)==null||_.Mbd(t)}else if((p=p.JSC$22735_cinematicController)!=null){var E;(E=p.currentCinematicEffect)==null||E.pause()}};
tO6=function(p){if(_.n("web_cinematic_theater_mode")||_.n("web_cinematic_fullscreen")){var y;p.JSC$22735_watchApi.getRoot().toggleCinematicsActive(!((y=p.JSC$22735_cinematicController)==null||!y.isEnabled()))}};_.e$f=function(p){_.Sr.call(this);var y=this;this.JSC$22738_watchApi=p;this.commentsReady=!1;this.setCommentsJobId=0;p=_.Lw(_.ei(),_.An,function(){EI3(y)});
this.addOnDisposeCallback(p);var l=this.JSC$22738_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){JQl(y)}),q=this.JSC$22738_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){JQl(y)});
this.addOnDisposeCallback(function(){y.JSC$22738_watchApi.unsubscribeByKey(l);y.JSC$22738_watchApi.unsubscribeByKey(q)});
var t=function(){_.n("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&cQX(y,"false")};
this.JSC$22738_watchApi.getRoot().addEventListener("yt-page-data-will-update",t);this.addOnDisposeCallback(function(){y.JSC$22738_watchApi.getRoot().removeEventListener("yt-page-data-will-update",t)});
JQl(this)};
_.A(_.e$f,_.Sr);var JQl=function(p){p.commentsReady=!1;_.TR.cancelJob(p.setCommentsJobId);p.setCommentsJobId=_.rJ(_.TR,function(){EI3(p)},1E3)},EI3=function(p){if(!p.commentsReady){_.fy("cmi");
_.TR.cancelJob(p.setCommentsJobId);var y,l,q,t,E=(y=p.JSC$22738_watchApi.getWatchNextResponse())==null?void 0:(l=y.contents)==null?void 0:(q=l.twoColumnWatchNextResults)==null?void 0:(t=q.results)==null?void 0:t.results.contents;y=void 0;if(E&&E.length)for(E=_.c(E),l=E.next();!l.done;l=E.next())if(l=l.value,t=q=void 0,((q=l)==null?void 0:(t=q.itemSectionRenderer)==null?void 0:t.sectionIdentifier)==="comment-item-section"){_.n("web_watch_provide_undefined_comments")?y=l.itemSectionRenderer:p.JSC$22738_watchApi.provideRenderingData("COMMENTS",
l.itemSectionRenderer);cQX(p,"true");break}_.n("web_watch_provide_undefined_comments")&&p.JSC$22738_watchApi.provideRenderingData("COMMENTS",y);p.commentsReady=!0;p.JSC$22738_watchApi.dispatchEvent("yt-watch-comments-ready")}},cQX=function(p,y){var l;
(l=p.JSC$22738_watchApi.getElement("COMMENTS"))==null||l.setAttribute("canScheduleJobs",y)};_.F8=function(p){_.Sr.call(this);var y=this;this.JSC$22741_watchApi=p;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.n("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.n("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.n("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.UC("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)h$w(this);
else{var l=this.JSC$22741_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){iE(y);rf(y)}),q=this.JSC$22741_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ST(y);
rf(y)});
this.JSC$22741_watchApi.getRoot().is==="ytd-watch-grid"&&_.n("swatcheroo_pbs_load_grid")&&(Cz6(this),uqO(this));this.addOnDisposeCallback(function(){y.JSC$22741_watchApi.unsubscribeByKey(l);y.JSC$22741_watchApi.unsubscribeByKey(q);_.TR.cancelJob(y.provideRichGridJobId)});
iE(this);ST(this)}};
_.A(_.F8,_.Sr);var h$w=function(p){var y=p.JSC$22741_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){p.providePlayerJobId=_.Xp(_.TR,function(){iE(p);rf(p)},p.provideAllDataDelayMs)}),l=p.JSC$22741_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){p.provideWatchNextJobId=_.Xp(_.TR,function(){ST(p);
rf(p)},p.provideAllDataDelayMs)}),q=p.JSC$22741_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){p.provideWatchNextJobId=_.Xp(_.TR,function(){ST(p);
rf(p)},p.provideAllDataDelayMs)});
p.JSC$22741_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.rJ(_.TR,function(){iE(p);ST(p);rf(p)},100)});
p.JSC$22741_watchApi.addPageDisposeJob(function(){_.TR.cancelJob(p.provideWatchNextJobId);_.TR.cancelJob(p.providePlayerJobId)});
p.addOnDisposeCallback(function(){p.JSC$22741_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");p.JSC$22741_watchApi.unsubscribeByKey(y);p.JSC$22741_watchApi.unsubscribeByKey(l);p.JSC$22741_watchApi.unsubscribeByKey(q);_.TR.cancelJob(p.providePlayerJobId);_.TR.cancelJob(p.provideWatchNextJobId)});
iE(p);ST(p)},iE=function(p){var y=p.JSC$22741_watchApi.getPlayerResponse(),l,q,t=(q=y==null?void 0:(l=y.playabilityStatus)==null?void 0:l.messageRenderers)!=null?q:[],E,e;
y=(e=y==null?void 0:(E=y.playabilityStatus)==null?void 0:E.messages)!=null?e:[];E=_.c(y);for(e=E.next();!e.done;e=E.next())t.push({alertRenderer:{text:_.EK(e.value),type:"WARNING"}});p.JSC$22741_watchApi.provideRenderingData("ALERTS",t)},ST=function(p){var y=[],l,q,t,E=p.JSC$22741_watchApi.getWatchNextResponse(),e,C,u,a,m=E==null?void 0:(e=E.contents)==null?void 0:(C=e.twoColumnWatchNextResults)==null?void 0:(u=C.results)==null?void 0:(a=u.results)==null?void 0:a.contents;
if(m)for(e=_.c(m),C=e.next();!C.done;C=e.next())if(C=C.value,C.videoPrimaryInfoRenderer)var U=C;else if(C.videoSecondaryInfoRenderer){var b=C;a=u=void 0;C=Object.assign({},(u=C.videoSecondaryInfoRenderer)==null?void 0:(a=u.metadataRowContainer)==null?void 0:a.metadataRowContainerRenderer);if(C.rows&&C.collapsedItemCount!==void 0){C.rows=C.rows.slice(0,C.collapsedItemCount).filter(function(xx){return!!xx.richMetadataRowRenderer});
C.collapsedItemCount=C.rows.length;var P={metadataRowContainerRenderer:C}}}else if(C.merchandiseShelfRenderer)var Z=C;else if(C.ticketShelfRenderer)var K=C;else if(C.expandableMetadataRenderer)var F=C;else if(C.itemSectionRenderer)if(u=C.itemSectionRenderer.contents,a=void 0,p.directlyProvideComments&&((a=C.itemSectionRenderer)==null?void 0:a.sectionIdentifier)==="comment-item-section")_.fy("cmi"),p.JSC$22741_watchApi.provideRenderingData("COMMENTS",C.itemSectionRenderer);else if(u)for(C=_.c(u),u=
C.next();!u.done;u=C.next())if(u=u.value,u.commentsEntryPointHeaderRenderer)var L=u;else if(u.clarificationRenderer||u.infoPanelContainerRenderer||u.infoPanelContentRenderer||u.emergencyOneboxRenderer){y.push(u);var T=T||!!b}else u.limitedStateMessageRenderer?q=u:u.videoMetadataCarouselViewModel&&(t=u);if(_.n("web_watch_merch_in_sd_when_ticket_shelf_present")&&Z&&K){var O=Z;Z=void 0}if(p.provideWatchNextSecondaryResults){var f,v,z;p.JSC$22741_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
E==null?void 0:(f=E.contents)==null?void 0:(v=f.twoColumnWatchNextResults)==null?void 0:(z=v.secondaryResults)==null?void 0:z.secondaryResults)}if(p.JSC$22741_watchApi.getRoot().is==="ytd-watch-grid"){var sc,hR;p.JSC$22741_watchApi.provideRenderingData("LIVE_CHAT",E==null?void 0:(sc=E.contents)==null?void 0:(hR=sc.twoColumnWatchNextResults)==null?void 0:hR.conversationBar)}var Wt,AR,Qu,jj;(f=E==null?void 0:(Wt=E.contents)==null?void 0:(AR=Wt.twoColumnWatchNextResults)==null?void 0:(Qu=AR.secondaryResults)==
null?void 0:(jj=Qu.secondaryResults)==null?void 0:jj.offerModule)&&(f.donationShelfRenderer||f.donationUnavailableRenderer)&&p.JSC$22741_watchApi.getRoot().is!=="ytd-watch-grid"&&(l=f);Wt=p.JSC$22741_watchApi.getPlayerResponse();if(!Wt||!_.XXo(Wt.playabilityStatus,E==null?void 0:E.playerOverlays)){var x6;if(E==null?0:(x6=E.contents)==null?0:x6.singleColumnWatchNextResults){var L8,Y6;var AZ=E==null?void 0:(L8=E.contents.singleColumnWatchNextResults.results)==null?void 0:(Y6=L8.results)==null?void 0:
Y6.contents}else{var cU,Xo,U$,WU;x6=!!(m==null?0:(cU=m[0])==null?0:(Xo=cU.itemSectionRenderer)==null?0:(U$=Xo.contents)==null?0:(WU=U$[0])==null?0:WU.backgroundPromoRenderer);var VQ,b9;cU=!!(E==null?0:(VQ=E.contents)==null?0:(b9=VQ.twoColumnWatchNextResults)==null?0:b9.secondaryResults);x6&&!cU&&(AZ=m)}}m=y[0];VQ=y[1];T&&y.length===1&&(VQ=m,m=void 0);p.JSC$22741_watchApi.provideRenderingData("PRIMARY_INFO",U);p.JSC$22741_watchApi.provideRenderingData("SECONDARY_INFO",b);p.JSC$22741_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
L);p.JSC$22741_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",t);p.JSC$22741_watchApi.provideRenderingData("CLARIFICATION",m);p.JSC$22741_watchApi.provideRenderingData("RICH_METADATA",P);p.JSC$22741_watchApi.provideRenderingData("MERCH_SHELF",Z);_.n("web_watch_merch_in_sd_when_ticket_shelf_present")&&p.JSC$22741_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",O);p.JSC$22741_watchApi.provideRenderingData("TICKET_SHELF",K);p.JSC$22741_watchApi.provideRenderingData("LIMITED_STATE",q);p.JSC$22741_watchApi.getRoot().is!==
"ytd-watch-grid"&&p.JSC$22741_watchApi.provideRenderingData("DONATION_SHELF",l);p.JSC$22741_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",AZ);p.JSC$22741_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",VQ);p.JSC$22741_watchApi.provideRenderingData("EXPANDABLE_METADATA",F);if(p.swatcherooProvideAllDataOnScheduledJob){var kx,JR,s$,PU,Uu,jB;U=E==null?void 0:(kx=E.contents)==null?void 0:(JR=kx.twoColumnWatchNextResults)==null?void 0:(s$=JR.secondaryResults)==null?void 0:(PU=s$.secondaryResults)==
null?void 0:(Uu=PU.results)==null?void 0:(jB=Uu[0])==null?void 0:jB.richGridRenderer;p.JSC$22741_watchApi.provideRenderingData("RICH_GRID_RENDERER",U)}};
_.F8.prototype.hasCompanionAds=function(p){var y,l;return(l=p==null?void 0:(y=p.adPlacements)==null?void 0:y.some(function(q){var t,E,e,C;return(q==null?void 0:(t=q.adPlacementRenderer)==null?void 0:(E=t.renderer)==null?void 0:E.actionCompanionAdRenderer)||(q==null?void 0:(e=q.adPlacementRenderer)==null?void 0:(C=e.renderer)==null?void 0:C.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?l:!1};
var rf=function(p){if(!_.n("swaterdoo_ps_wn_handle_ks")){p.swatcherooProvideAllDataOnScheduledJob||uqO(p,3E3);var y=p.JSC$22741_watchApi.getPlayerResponse(),l,q,t,E,e,C=(l=p.JSC$22741_watchApi.getWatchNextResponse())==null?void 0:(q=l.contents)==null?void 0:(t=q.twoColumnWatchNextResults)==null?void 0:(E=t.secondaryResults)==null?void 0:(e=E.secondaryResults)==null?void 0:e.offerModule;y=p.hasCompanionAds(y);var u,a;l=(C==null?void 0:(u=C.tvfilmOfferModuleRenderer)==null?void 0:u.clientShouldSuppressIfCompanionAdDisplayed)||
(C==null?void 0:(a=C.unlimitedOfferModuleRenderer)==null?void 0:a.suppressIfCompanionAds);u=y&&l;p.JSC$22741_watchApi.getRoot().is==="ytd-watch-grid"&&p.JSC$22741_watchApi.provideRenderingData("OFFER_MODULE",u?void 0:C)}},uqO=function(p,y){_.n("swatcheroo_pbs_load_grid")&&(p.provideRichGridJobId&&_.TR.cancelJob(p.provideRichGridJobId),p.provideRichGridJobId=_.Xp(_.TR,function(){p.provideRichGridJobId=0;
var l,q,t,E,e,C,u,a=(l=p.JSC$22741_watchApi.getWatchNextResponse())==null?void 0:(q=l.contents)==null?void 0:(t=q.twoColumnWatchNextResults)==null?void 0:(E=t.secondaryResults)==null?void 0:(e=E.secondaryResults)==null?void 0:(C=e.results)==null?void 0:(u=C[0])==null?void 0:u.richGridRenderer;a&&p.JSC$22741_watchApi.provideRenderingData("RICH_GRID_RENDERER",a)},y))},Cz6=function(p){var y,l;
_.h(function(q){if(q.nextAddress==1)return q.yield(p.JSC$22741_watchApi.playerApi,2);y=q.yieldResult;l=function(){p.onPlaybackStart()};
y.addEventListener("onPlaybackStartExternal",l);p.addOnDisposeCallback(function(){y.removeEventListener("onPlaybackStartExternal",l)});
_.rR(q)})};
_.F8.prototype.onPlaybackStart=function(){uqO(this)};_.WJw=function(p){_.Sr.call(this);var y=this;this.JSC$22751_watchApi=p;p.playerApi.then(function(l){y.player=l});
this.gestures=new _.ce(this.JSC$22751_watchApi.getRoot(),p.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.iJT(_.ei().getState())&&_.An(_.ei().getState())<=0)if(_.Ix(_.ei().getState())){var l;(l=y.player)==null||l.toggleFullscreen()}else _.$w(y.JSC$22751_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
R$X(this)};
_.A(_.WJw,_.Sr);var R$X=function(p){var y=_.Lw(_.ei(),_.Ix,function(l){p.onFullscreenChanged(l)});
p.addOnDisposeCallback(y);y=_.Lw(_.ei(),_.An,function(l){p.gestures&&(l>0?p.gestures.detach():p.gestures.attach())});
p.addOnDisposeCallback(y)};
_.WJw.prototype.onFullscreenChanged=function(p){this.gestures&&this.gestures.update(p)};_.mQw=function(p){_.Sr.call(this);var y=this;this.JSC$22754_watchApi=p;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(p.subscribeToActiveChanged(function(l){y.onActiveChanged(l)}));
a7O(this)};
_.A(_.mQw,_.Sr);var UQm=function(p){if(_.n("swatcheroo_page_dispose_all_watch_data"))p.pageDisposalDataTypes=Object.values(kBX).filter(function(l){return l!=="PLAYLIST"});
else if(_.n("swatcheroo_page_dispose_rich_grid")){var y;(y=p.pageDisposalDataTypes)==null||y.push("RICH_GRID_RENDERER")}},a7O=function(p){_.n("swatcheroo_enable_ghost_cards")&&(UQm(p),p.JSC$22754_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.TR.cancelJob(p.clearDataJobId);
p.clearDataJobId=0}),p.runPageDisposeJob=function(){var y=_.WC().resolve(_.mm).getDestinationPageType()==="watch";
p.clearDataJobId=_.Xp(_.TR,p.runClearDataJob,y?0:_.UC("web_watch_delay_page_dispose_ms",1E4))},p.runClearDataJob=function(){$Qf(p)},p.runOnYtNavigateAwayFinish=function(){p.clearDataJobId&&(_.TR.cancelJob(p.clearDataJobId),p.clearDataJobId=0,$Qf(p))},document.addEventListener("yt-navigate-finish",p.runOnYtNavigateAwayFinish),p.JSC$22754_watchApi.addPageDisposeJob(p.runPageDisposeJob),p.addOnDisposeCallback(function(){p.JSC$22754_watchApi.removePageDisposeJob(p.runPageDisposeJob);
p.JSC$22754_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",p.runOnYtNavigateAwayFinish)}))},$Qf=function(p){p.pageDisposalDataTypes.forEach(function(y){p.JSC$22754_watchApi.provideRenderingData(y,void 0)});
p.clearDataJobId=0};
_.mQw.prototype.onActiveChanged=function(p){p&&((p=document.querySelector("#watch-page-skeleton"))&&_.Qy(p),jlO(this),document.body.removeAttribute("no-y-overflow"),_.o4("IS_SHELL_LOAD")&&_.G$O())};
var jlO=function(p){_.h(function(y){if(y.nextAddress==1)return y.yield(p.JSC$22754_watchApi.playerApi,2);_.t2();_.rR(y)})};var b0f;b0f=_.n("kevlar_watch_while_counterfactual")?0:.25;_.Li=function(p){_.Sr.call(this);this.JSC$22757_watchApi=p;this.JSC$22757_watchWhileEnabled=_.n("kevlar_watch_while_v2");this.pipEnabled=_.n("web_enable_pip_on_miniplayer");nIZ(this);GsZ(this);Pzw(this)};
_.A(_.Li,_.Sr);var nIZ=function(p){p.JSC$22757_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){AQE(p)});
p.addOnDisposeCallback(function(){p.JSC$22757_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},GsZ=function(p){var y,l;
_.h(function(q){if(q.nextAddress==1)return q.yield(p.JSC$22757_watchApi.playerApi,2);y=q.yieldResult;l=function(){AQE(p)};
y.addEventListener("onCollapseMiniplayer",l);p.addOnDisposeCallback(function(){y.removeEventListener("onCollapseMiniplayer",l)});
_.rR(q)})},Pzw=function(p){var y=p.JSC$22757_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&y&&p.JSC$22757_watchWhileEnabled&&(p.playerIntersectionObserver=new IntersectionObserver(function(l){p.handleIntersect(l)},{threshold:[b0f]}),p.playerIntersectionObserver.observe(y),p.addOnDisposeCallback(function(){var l;
(l=p.playerIntersectionObserver)==null||l.disconnect()}))},AQE=function(p){var y,l,q;
_.h(function(t){if(t.nextAddress==1){y=_.WC().resolve(_.mm);l=y.data;q=_.a0c(l.response,l.playerResponse);_.Sy().miniplayerButtonActivation=!0;if(p.pipEnabled)return _.Sy().watchPipActivation=!0,t.jumpTo(2);_.WC().resolve(_.IA).collapse();return t.yield(_.Sy().navigationFinishPromise,2)}if(t.nextAddress!=4)return _.Sy().currentEndpoint=q.watchEndpoint||null,t.yield(_.WC().resolve(_.IA).activate(p.JSC$22757_watchApi.getElement("PLAYER"),q,l),4);_.Sy().userActivation=!0;_.rR(t)})};
_.Li.prototype.handleIntersect=function(p){Z03(this,p[p.length-1])};
var Z03=function(p,y){p.watchWhileJobId&&_.TR.cancelJob(p.watchWhileJobId);p.watchWhileJobId=_.TR.addLowPriorityJob(function(){var l,q;return _.h(function(t){if(t.nextAddress==1)return p.watchWhileJobId=void 0,l=_.WC().resolve(_.IA),y.intersectionRatio>b0f?l.isMiniplayerActive()?t.yield(l.deactivate(),0):t.jumpTo(0):(q=!l.isMiniplayerActive())?t.yield(MOm(p),5):t.jumpTo(4);t.nextAddress!=4&&(q=t.yieldResult);if(!q)return t.jumpTo(0);_.Sy().watchWhileActivation=!0;return t.yield(VOu(p),0)})},100)},
MOm=function(p){return _.h(function(y){return y.nextAddress==1?_.n("kevlar_watch_while_paused")?y.return(!0):y.yield(p.isPlayerPlaying(),2):y.return(y.yieldResult)})};
_.Li.prototype.isPlayerPlaying=function(){var p=this,y;return _.h(function(l){if(l.nextAddress==1)return l.yield(p.JSC$22757_watchApi.playerApi,2);y=l.yieldResult;return l.return(y.getPlayerStateObject().isPlaying)})};
var VOu=function(p){var y,l;return _.h(function(q){y=_.WC().resolve(_.mm).data;l=_.a0c(y.response,y.playerResponse);_.Sy().currentEndpoint=l.watchEndpoint||null;return q.yield(_.WC().resolve(_.IA).activate(p.JSC$22757_watchApi.getElement("PLAYER"),l,y),0)})};_.KJf=function(p){_.Sr.call(this);this.JSC$22761_watchApi=p;gIX(this);Ql3(this)};
_.A(_.KJf,_.Sr);var Ql3=function(p){var y,l;_.h(function(q){if(q.nextAddress==1)return q.yield(p.JSC$22761_watchApi.playerApi,2);y=q.yieldResult;l=function(t){var E;t.sessionData&&t.sessionData.itct&&(E=t.sessionData.itct);var e=t.watchEndpoint;if(e&&t.sessionData&&t.sessionData.autonav)e=_.D9c(e,E);else{var C;e=_.WV(t.videoId,(C=t.listId)!=null?C:void 0,E)}E={endpoint:e};t.sessionData&&(E.tempData=t.sessionData);p.JSC$22761_watchApi.dispatchEvent("yt-navigate",E)};
y.addEventListener("onPlayVideo",l);p.addOnDisposeCallback(function(){y.removeEventListener("onPlayVideo",l)});
_.rR(q)})},gIX=function(p){var y=function(l){p.onYtNavigate(l)};
p.JSC$22761_watchApi.getRoot().addEventListener("yt-navigate",y);p.addOnDisposeCallback(function(){p.JSC$22761_watchApi.getRoot().removeEventListener("yt-navigate",y)})};
_.KJf.prototype.onYtNavigate=function(p){var y=this,l,q,t,E,e,C,u,a,m;return _.h(function(U){if(U.nextAddress==1){if(!((l=p.detail)==null?0:(q=l.endpoint)==null?0:q.watchEndpoint))return U.return();t=p.detail.endpoint.watchEndpoint;E=y.JSC$22761_watchApi.getWatchNextResponse();C=_.G((e=E)==null?void 0:e.currentVideoEndpoint,_.Eb);if(!C)return U.return();if(t.videoId!==C.videoId||t.playlistId&&t.playlistId!==C.playlistId||typeof t.startTimeSeconds!=="number")return U.jumpTo(0);p.stopPropagation();
(u=_.n("kevlar_watch_while_v2")&&!_.n("kevlar_watch_while_counterfactual"))&&_.WC().resolve(_.IA).isMiniplayerActive()||y.JSC$22761_watchApi.scrollWatchTo(0,!0);return U.yield(y.JSC$22761_watchApi.playerApi,3)}a=U.yieldResult;m=t.startTimeSeconds;a.seekTo(m,void 0,void 0,void 0,84);a.wakeUpControls();m<a.getDuration()&&a.playVideo();_.rR(U)})};_.i0B=function(p){_.Sr.call(this);var y=this;this.JSC$22764_watchApi=p;var l=this.JSC$22764_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){wJf(y)});
this.addOnDisposeCallback(function(){y.JSC$22764_watchApi.unsubscribeByKey(l)});
wJf(this)};
_.A(_.i0B,_.Sr);var wJf=function(p){var y=p.JSC$22764_watchApi.getWatchNextResponse();if(y){var l,q=[].concat(_.xq((l=y==null?void 0:y.engagementPanels)!=null?l:[]));q.unshift.apply(q,_.xq(rQZ(y)));p.JSC$22764_watchApi.provideRenderingData("ENGAGEMENT_PANELS",q)}},S6Z=function(p){var y,l,q,t=(y=p.engagementPanels)==null?void 0:(l=y.find(function(P){var Z;
return((Z=P.engagementPanelSectionListRenderer)==null?void 0:Z.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(q=l.engagementPanelSectionListRenderer.content)==null?void 0:q.structuredDescriptionContentRenderer,E;
if(_.G(t==null?void 0:(E=t.items)==null?void 0:E.find(function(P){return!!_.G(P,uo6)}),uo6))return!0;
var e,C,u,a;if(p=(((e=p.contents)==null?void 0:(C=e.twoColumnWatchNextResults)==null?void 0:(u=C.results)==null?void 0:(a=u.results)==null?void 0:a.contents)||[]).find(function(P){return P.videoPrimaryInfoRenderer})){var m,U,b;
return(((m=p.videoPrimaryInfoRenderer)==null?void 0:(U=m.videoActions)==null?void 0:(b=U.menuRenderer)==null?void 0:b.flexibleItems)||[]).some(function(P){P=_.G(P,_.i5i);if(!P)return!1;var Z,K;P=(Z=P.topLevelButton)==null?void 0:(K=Z.buttonViewModel)==null?void 0:K.onTap;if(!P)return!1;Z=_.yM(P);if(!Z)return!1;var F;return((F=_.G(Z,_.Xy))==null?void 0:F.panelIdentifier)==="PAyouchat"})}return!1},rQZ=function(p){var y=[];
if(!_.n("web_watch_inject_placeholder_fantasy_panel_killswitch")){var l,q,t,E=(l=p.engagementPanels)==null?void 0:(q=l.find(function(C){var u;return((u=C.engagementPanelSectionListRenderer)==null?void 0:u.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(t=q.engagementPanelSectionListRenderer.content)==null?void 0:t.structuredDescriptionContentRenderer,e;
_.G(E==null?void 0:(e=E.items)==null?void 0:e.find(function(C){return!!_.G(C,xP1)}),xP1)&&(l=_.rdm("PAsports_fantasy"),l.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",y.push(l))}S6Z(p)&&(p=_.rdm("PAyouchat"),p.engagementPanelSectionListRenderer.targetId="PAyouchat",p.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",y.push(p));
return y};_.LJf=function(p){_.Sr.call(this);this.JSC$22767_watchApi=p;FJ3(this)};
_.A(_.LJf,_.Sr);var FJ3=function(p){p.JSC$22767_watchApi.registerActionHandler("yt-loop-command",function(y){ksm(p,y)});
p.JSC$22767_watchApi.registerActionHandler("yt-repeat-chapter-command",function(y){NVl(p,y)});
p.addOnDisposeCallback(function(){p.JSC$22767_watchApi.unregisterActionHandler("yt-loop-command");p.JSC$22767_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},ksm=function(p,y){var l;
_.h(function(q){if(q.nextAddress==1)return q.yield(p.JSC$22767_watchApi.playerApi,2);l=q.yieldResult;_.G(y,fGi).loop?(l.setLoopRange({startTimeMs:Number(_.G(y,fGi).startTimeMs),endTimeMs:Number(_.G(y,fGi).endTimeMs),postId:_.G(y,fGi).postId,type:"clips"}),l.playVideo()):l.setLoopRange(null);_.rR(q)})},NVl=function(p,y){var l,q;
_.h(function(t){if(t.nextAddress==1)return t.yield(p.JSC$22767_watchApi.playerApi,2);l=t.yieldResult;q=_.G(y,oUO).repeat;q==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(l.setLoopRange({startTimeMs:Number(_.G(y,oUO).startTimeMs),endTimeMs:Number(_.G(y,oUO).endTimeMs),type:"repeatChapter"}),l.playVideo()):q==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&l.setLoopRange(null);_.rR(t)})};_.H0E=function(p){_.Sr.call(this);this.JSC$22772_watchApi=p;DQf(this)};
_.A(_.H0E,_.Sr);var DQf=function(p){p.JSC$22772_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(y){TVX(p,y)});
p.addOnDisposeCallback(function(){p.JSC$22772_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},TVX=function(p,y){var l,q,t,E,e,C,u,a,m,U,b;
_.h(function(P){if(P.nextAddress==1)return P.yield(p.JSC$22772_watchApi.playerApi,2);l=P.yieldResult;if(E=(t=(q=_.G(y,z6u))==null?void 0:q.highlightedMenuItemKey)!=null?t:"")(C=(e=l).highlightSettingsMenuItem)==null||C.call(e,E);if(m=(a=(u=_.G(y,z6u))==null?void 0:u.openMenuItemKey)!=null?a:"")(b=(U=l).openSettingsMenuItem)==null||b.call(U,m);_.rR(P)})};var xQ3=_.PV("/youtube/app/watch/player_state","playerStateEntity");_.f7f=function(p){_.Sr.call(this);this.JSC$22775_watchApi=p;BVZ(this)};
_.A(_.f7f,_.Sr);var vIB=function(p){switch(p){case 0:return"PLAYER_STATE_FINISHED";case 1:return"PLAYER_STATE_PLAYING";case 2:return"PLAYER_STATE_PAUSED";case 3:return"PLAYER_STATE_LOADING_CONTENT";default:return"PLAYER_STATE_UNKNOWN"}},BVZ=function(p){var y,l;
_.h(function(q){if(q.nextAddress==1)return q.yield(p.JSC$22775_watchApi.playerApi,2);y=q.yieldResult;l=function(t){p.onPlayerStateChange(t)};
y.addEventListener("onStateChange",l);p.addOnDisposeCallback(function(){y.removeEventListener("onStateChange",l)});
_.rR(q)})};
_.f7f.prototype.onPlayerStateChange=function(p){var y=this,l,q;return _.h(function(t){if(t.nextAddress==1)return t.yield(y.JSC$22775_watchApi.playerApi,2);l=t.yieldResult;q=l.getVideoData().video_id;_.hl().dispatch(_.Fp("playerStateEntity",xQ3,{key:xQ3,playerState:vIB(p),videoId:q}));_.rR(t)})};_.dQ6=function(p){_.Sr.call(this);var y=this;this.JSC$22779_watchApi=p;this.enableExternalPlaylistPanelInPlayer=_.n("delhi_web_player_use_external_playlist_panel");_.WC().resolve(_.yh).setPlayer(this.JSC$22779_watchApi.getElement("PLAYER"));p=this.JSC$22779_watchApi.subscribeToActiveChanged(function(l){y.onActiveChanged(l)});
this.addOnDisposeCallback(p);XJE(this)};
_.A(_.dQ6,_.Sr);var XJE=function(p){var y,l;_.h(function(q){if(q.nextAddress==1)return p.enableExternalPlaylistPanelInPlayer?q.yield(p.JSC$22779_watchApi.playerApi,2):q.return();y=q.yieldResult;l=function(){if(p.playlistPanelElement)p.playlistPanelElement.onToggleExpanded()};
y.addEventListener("onToggleExternalPlaylistPanel",l);p.addOnDisposeCallback(function(){y.removeEventListener("onToggleExternalPlaylistPanel",l)});
_.rR(q)})};
_.dQ6.prototype.onActiveChanged=function(p){var y=this,l=_.WC().resolve(_.yh),q=function(){O0E(y)};
p?(this.playlistPanelElement=this.JSC$22779_watchApi.getElement("PLAYLIST_PANEL"))?(l.setPlaylistComponent(this.playlistPanelElement),l.addEventListener("yt-playlist-data-updated",q),this.addOnDisposeCallback(function(){l.removeEventListener("yt-playlist-data-updated",q)}),O0E(this)):_.ph(Error("yo")):(l.removeEventListener("yt-playlist-data-updated",q),l.cancelVideoSkip())};
var O0E=function(p){var y=_.WC().resolve(_.yh);p.JSC$22779_watchApi.provideRenderingData("PLAYLIST",y.getPlaylistData())};_.kU=function(p){_.Sr.call(this);var y=this;this.JSC$22782_watchApi=p;this.onPageScroll=function(){y.scrollThrottle.fire();y.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.hy(this.onThrottledScroll,200,this);_.P9(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.hy(this.onMastheadThrottledScroll,50,this);_.P9(this,this.mastheadScrollThrottle);this.animation=new _.lu(function(l){y.JSC$22782_watchApi.getRoot().setScrollTop(l)});
p=_.Lw(_.ei(),_.Ix,function(){y.onFullscreenChanged()});
this.addOnDisposeCallback(p);oIf(this);z$w(this);this.onThrottledScroll()};
_.A(_.kU,_.Sr);
_.kU.prototype.onFullscreenChanged=function(){var p=this,y=this.JSC$22782_watchApi.getRoot();!this.pageScrollElement&&y.pageScrollElement?(this.pageScrollElement=y.pageScrollElement,y.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){p.pageScrollElement&&p.pageScrollElement.removeEventListener("scroll",p.onPageScroll)})):this.pageScrollElement&&!y.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var oIf=function(p){window.addEventListener("scroll",p.onPageScroll);p.addOnDisposeCallback(function(){window.removeEventListener("scroll",p.onPageScroll)})},z$w=function(p){p.JSC$22782_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(y){a:{var l;
if(l=p.JSC$22782_watchApi.getRoot().contains(y)&&!p.animation.isAnimating()){l=y.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var q,t,E=(y==null?void 0:(q=y.parentElement)==null?void 0:(t=q.parentElement)==null?void 0:t.id)==="fixed-secondary";l=!(l&&E)}if(l){if(_.n("kevlar_watch_scroll_manager_absolute_offset_killswitch"))q=y.offsetTop;else for(q=0,t=y;t!==null;)q+=t.offsetTop,q-=t.scrollTop,t=t.offsetParent;t=q;q=t-24;y=t+y.offsetHeight+24;t=p.JSC$22782_watchApi.getRoot().getPageScrollingElement();
l=p.JSC$22782_watchApi.getRoot().getScrollTop();E=l+t.clientHeight-56;if(q<l+56)y=q-56;else if(y>E)y-=t.clientHeight;else break a;p.scrollWatchTo(Math.max(0,y),!0)}}});
p.addOnDisposeCallback(function(){p.JSC$22782_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.kU.prototype.onThrottledScroll=function(){var p=_.ei(),y=p.dispatch,l=this.JSC$22782_watchApi.getRoot().getScrollTop();y.call(p,_.$y({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:l}}))};
_.kU.prototype.onMastheadThrottledScroll=function(){this.JSC$22782_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$22782_watchApi.getRoot().getScrollTop())};
_.kU.prototype.scrollWatchTo=function(p,y){(y===void 0?0:y)?this.animation.start(this.JSC$22782_watchApi.getRoot().getScrollTop(),Math.max(0,p),500):this.JSC$22782_watchApi.getRoot().setScrollTop(p)};_.p9f=function(p){_.Sr.call(this);var y=this;this.JSC$22785_watchApi=p;var l=this.JSC$22785_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Y6X(y)}),q=this.JSC$22785_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){I7X(y)});
this.addOnDisposeCallback(function(){y.JSC$22785_watchApi.unsubscribeByKey(l);y.JSC$22785_watchApi.unsubscribeByKey(q)});
Y6X(this);I7X(this)};
_.A(_.p9f,_.Sr);
var Y6X=function(p){var y,l,q,t=(q=(y=p.JSC$22785_watchApi.getPlayerResponse())==null?void 0:(l=y.videoDetails)==null?void 0:l.title)!=null?q:"";p.JSC$22785_watchApi.dispatchEvent("yt-update-title",t)},I7X=function(p){var y,l,q,t,E,e,C,u=(C=((e=(y=p.JSC$22785_watchApi.getWatchNextResponse())==null?void 0:(l=y.contents)==null?void 0:(q=l.twoColumnWatchNextResults)==null?void 0:(t=q.results)==null?void 0:(E=t.results)==null?void 0:E.contents)!=null?e:[]).find(function(a){return!!a.videoPrimaryInfoRenderer}))==null?
void 0:C.videoPrimaryInfoRenderer;
(y=_.JB(u==null?void 0:u.title))&&p.JSC$22785_watchApi.dispatchEvent("yt-update-title",y)};_.lzB=function(p){_.Sr.call(this);this.JSC$22788_watchApi=p;yql(this)};
_.A(_.lzB,_.Sr);var yql=function(p){var y,l;_.h(function(q){if(q.nextAddress==1)return q.yield(p.JSC$22788_watchApi.playerApi,2);y=q.yieldResult;l=function(){p.onYpcContentRequest()};
y.addEventListener("onYpcContentRequest",l);p.addOnDisposeCallback(function(){y.removeEventListener("onYpcContentRequest",l)});
_.rR(q)})};
_.lzB.prototype.onYpcContentRequest=function(){var p,y,l,q,t,E=(p=this.JSC$22788_watchApi.getWatchNextResponse())==null?void 0:(y=p.contents)==null?void 0:(l=y.twoColumnWatchNextResults)==null?void 0:(q=l.secondaryResults)==null?void 0:(t=q.secondaryResults)==null?void 0:t.offerModule,e,C,u,a;p=(a=(u=(C=(e=E==null?void 0:E.episodeOfferModuleRenderer)!=null?e:E==null?void 0:E.movieOfferModuleRenderer)!=null?C:E==null?void 0:E.unlimitedOfferModuleRenderer)!=null?u:E==null?void 0:E.liveOfferModuleRenderer)!=
null?a:E==null?void 0:E.tvfilmOfferModuleRenderer;var m,U,b;E=(b=E==null?void 0:(m=E.tvfilmOfferModuleRenderer)==null?void 0:(U=m.actionButtons)==null?void 0:U.length)!=null?b:0;U=Math.max(E-1,0);var P,Z,K;m=(K=p==null?void 0:(P=p.offerButton)==null?void 0:P.buttonRenderer)!=null?K:p==null?void 0:(Z=p.actionButtons)==null?void 0:Z[U].buttonRenderer;var F,L;(P=(L=(F=m==null?void 0:m.navigationEndpoint)!=null?F:m==null?void 0:m.serviceEndpoint)!=null?L:m==null?void 0:m.command)&&_.wW.instance.resolveCommand(P)};
}catch(e){_._DumpException(e)}
try{
var yKT,YLO,on6;_.zKd=function(){var p=_.Ts.clone(OTd),y;return(new _.Ps(function(l,q){p.onSuccess=function(t){_.byt(t)?l(new on6(t)):q(new _.a1("Request failed, status="+_.bv(t),"net.badstatus",t))};
p.onError=function(t){q(new _.a1("Unknown request error","net.unknown",t))};
p.onTimeout=function(t){q(new _.a1("Request timed out","net.timeout",t))};
y=_.Z3("//googleads.g.doubleclick.net/pagead/id",p)})).thenCatch(function(l){if(l instanceof _.lW){var q;
(q=y)==null||q.abort()}return _.vL(l)})};
_.IpT=function(p){a:{var y="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(y="EMBEDDED_PLAYER_MODE_PFL");var l=p.raw_embedded_player_response;if(!l&&(p=p.embedded_player_response))try{l=JSON.parse(p)}catch(t){break a}if(l)b:for(var q in YLO)if(YLO[q]==l.embeddedPlayerMode){y=YLO[q];break b}}return y==="EMBEDDED_PLAYER_MODE_PFL"};
_.pK6=function(){if(_.n("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.TIo())return Error("pf");var p=_.OY("PLAYER_VARS",{});if(_.Ts.get(p,"privembed",!1)=="1")return Error("qf");if(_.IpT(p))return Error("rf")};
yKT=function(p){switch(p){case 0:return"BISCOTTI_BASED_DETECTION_RESULT_DETECTED";case 1:return"BISCOTTI_BASED_DETECTION_RESULT_NOT_DETECTED";case 2:return"BISCOTTI_BASED_DETECTION_RESULT_UNSPECIFIED";case 3:return"BISCOTTI_BASED_DETECTION_RESULT_KNOWN_FAILURE";case 4:return"BISCOTTI_BASED_DETECTION_RESULT_UNKNOWN_FAILURE";default:_.qL(p,"unknown result type")}};
_.lei=function(p,y,l){y=_.D4R[y];l={detected:p===0,source:y.jfe,detectionResult:yKT(p),contentCpn:l};_.TX("biscottiBasedDetection",l);_.uUO.increment(y.jfe,p);y.kKu!==void 0&&_.dT("CATSTAT",_.kLg(p,y))};
_.mF=function(p,y){var l={};l.key=p;l.value=y;return _.jwu().then(function(q){return new Promise(function(t,E){try{var e=q.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(l);e.onsuccess=function(){t()};
e.onerror=function(){E()}}catch(C){E(C)}})})};
_.spd=function(){var p=_.UC("user_engagement_experiments_rate_limit_ms"),y=qMV.get("last-user-engagement-exp-trigger-timestamp");return!y||(0,_.uM)()>=y+p?(qMV.set("last-user-engagement-exp-trigger-timestamp",(0,_.uM)()),!0):!1};
_.Up=function(p,y,l,q,t){y=y===void 0?null:y;l=l===void 0?null:l;q=q===void 0?null:q;t=t===void 0?null:t;p={youThereEventType:p};l&&(p.lactThresholdMs=l.lactThresholdMs,p.mediaPosSec=l.promptDelaySec,p.lactServerRequestMs=l.lactServerRequestMs,p.triggerReason=l.triggerReason);t!=null&&(p.renderingMediaPosSec=Math.round(t));y||(y=_.B2());y&&(p.clientScreenNonce=y);q&&(p.clientPlaybackNonce=q);_.TX("youThere",p)};
YLO={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"};on6=function(p){this.xhr=p};
_.a1=function(p,y,l){_.p8.call(this,p+", errorCode="+y);this.errorCode=y;this.xhr=l;this.name="PromiseAjaxError"};
_.A(_.a1,_.p8);var OTd={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var qMV=new _.XL("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.d$i=function(p){return _.$y({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:p})};
}catch(e){_._DumpException(e)}
try{
var T0,azX,UFX,$FX,jYl,bSw,GHO,K2Z,w9a,iSE,nPZ,mFu,Mrm,ZSB,F26;_.W23=function(){var p=window.location.hash;p.charAt(0)==="#"&&(p=p.charAt(1)==="!"?p.substring(2):p.substring(1));return _.qM(p)};
T0=function(p,y,l){var q;return _.h(function(t){if(t.nextAddress==1)return t.yield(y(),2);q=t.yieldResult;l(q,p);_.rR(t)})};
azX=function(){return _.h(function(p){return p.nextAddress==1?p.yield((_.pK6()!==void 0?_.vL(Error("sf")):_.zKd()).then(function(){return 1},function(y){if(y.message==="Biscotti id is disabled")return 3;
_.vs("Failed fetching bid");return 0}),2):p.return(p.yieldResult)})};
UFX=function(){var p=_.RU("M3cxeDNhbm5seHV3eXQtaGF2ZW4tZW1iZWQtcGxheWVyIw=="),y=_.RU("NmJnNHdyemppZnJhbWUjdWZscg==");return document.querySelector(y+mFu+p)?0:1};
$FX=function(){return _.ACj(_.e4)};
jYl=function(){return _.ZPu()===0?0:_.Mk5()};
bSw=function(){return _.wSj(_.X_L([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
GHO=function(){return _.m4t(nPZ)};
_.P4f=function(p){_.h(function(y){switch(y.nextAddress){case 1:return y.yield(T0("b.f_",azX,p),2);case 2:return y.yield(T0("j.s_",_.WsL,p),3);case 3:return y.yield(T0("r.s_",_.CAl,p),4);case 4:return y.yield(T0("e.h_",GHO,p),5);case 5:if(!_.n("ab_det_sc_inj")){y.jumpTo(6);break}return y.yield(T0("s.i_",_.GL8,p),6);case 6:if(_.n("ab_deg_unex_thr")){y.jumpTo(8);break}return y.yield(T0("a.o_",_.bPL,p),8);case 8:if(_.n("ks_get_o_pp")){y.jumpTo(10);break}return y.yield(T0("g.o_",_.jPg,p),10);case 10:if(_.n("ks_det_gpbl")){y.jumpTo(12);
break}return y.yield(T0("p.i_",_.$4a,p),12);case 12:return y.yield(T0("f.i_",_.pSL,p),14);case 14:return y.yield(T0("a.b_",_.e8c,p),15);case 15:return y.yield(T0("p.m_",_.qgc,p),16);case 16:if(!_.n("ab_det_el_h_v2")){y.jumpTo(17);break}return y.yield(T0("n.h_",bSw,p),17);case 17:return y.yield(T0("o.p_",$FX,p),19);case 19:return y.yield(T0("e.i_",UFX,p),20);case 20:if(_.n("ab_det_apm"))return y.yield(T0("o.a_",jYl,p),0);y.jumpTo(0)}})};
_.Aql=function(p,y){p={videoId:p};y&&(p.playlistId=y);return p};
_.Vrw=function(){if(_.TIo()){var p=_.OY("PLAYER_VARS",{});if(_.Ts.get(p,"privembed",!1)!="1"&&!_.IpT(p)){var y=function(){ZSB=!0;"google_ad_status"in window?_.dT("DCLKSTAT",1):_.dT("DCLKSTAT",2)};
try{_.zc(_.e6O,y)}catch(l){}Mrm.push(_.TR.addLowPriorityJob(function(){if(!(ZSB||"google_ad_status"in window)){try{_.r6c(_.e6O.toString(),y)}catch(l){}ZSB=!0;_.dT("DCLKSTAT",3)}},5E3))}}};
_.xU=function(p,y,l){l=l===void 0?!1:l;var q=Math.max(p.width,_.WLu);if(_.n("kevlar_watch_feed_big_thumbs")&&p.width>=1550-_.Io()&&p.height>=800)q-=_.b8B;else if(p.width>=_.Fj){var t=_.atO+_.maZ+_.Sb;_.n("kevlar_watch_feed_big_thumbs")&&(t=_.jgX);q-=t}else q-=_.atO;q=Math.min(q,_.UaX);t=240;l&&(t=380);y<.5624||(!_.n("kevlar_watch_flexy_disable_small_window_sizing")&&(p.height<630&&p.width>=657||p.height>=630&&p.width>=_.Fj&&p.width<1327)?t=360:!_.n("kevlar_watch_flexy_disable_large_window_sizing")&&
p.height>=630&&p.width>=1327&&(t=480));var E=Math.min(q*y,p.height-(56+_.R5a+_.$au));E=Math.max(E,t);y<1?q=E/y:p.width>=_.Fj&&(q=_.xU(p,.5625,l).width);return new _.wV(Math.round(q),Math.round(E))};
_.gPf=function(p){var y=0;p.indexOf("h")!=-1&&(p=p.split("h"),y=p[0]*60*60,p=p[1]);p.indexOf("m")!=-1&&(p=p.split("m"),y=p[0]*60+y,p=p[1]);p.indexOf("s")!=-1?(p=p.split("s"),y=p[0]*1+y):y=p*1+y;return y};
_.QYf=function(){_.UC("service_worker_push_logged_out_prompt_watches")!=-1&&_.Ga("WatchCount").then(function(p){p>=100||_.mF("WatchCount",p+1)})};
K2Z=function(p){var y=p.externalVideoId||"";return y?p.isShortsEligible?"https://www.youtube.com/shorts/"+y:"https://www.youtube.com/watch?v="+y:""};
w9a=function(p){var y=[];p.viewCount&&y.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:p.viewCount});p.likeCount&&y.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:p.likeCount});return y};
iSE=function(p){var y,l,q={"@context":"https://schema.org","@type":"VideoObject",description:_.JB(p.description),duration:"PT"+(p.lengthSeconds||"0")+"S",embedUrl:p.embed?p.embed.iframeUrl:"",name:_.JB(p.title),thumbnailUrl:((y=p.thumbnail)==null?void 0:(l=y.thumbnails)==null?void 0:l.map(function(m){return m&&m.url||""}))||[],
uploadDate:p.publishDate};_.n("mweb_video_schema_id_killswitch")||(q["@id"]=K2Z(p));y=w9a(p);y.length&&(q.interactionStatistic=y);p.category&&(q.genre=p.category);p.ownerChannelName&&(q.author=p.ownerChannelName);p.liveBroadcastDetails&&(q.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:p.liveBroadcastDetails.startTimestamp,endDate:p.liveBroadcastDetails.endTimestamp}]);if(p.learningResource){p=p.learningResource;q["@type"]=["VideoObject","LearningResource"];var t;if((t=p.learningResourceType)==
null?0:t.length)q.learningResourceType=p.learningResourceType[0];var E;if((E=p.educationalAlignment)==null?0:E.length)q.educationalAlignment={"@type":"AlignmentObject",targetName:p.educationalAlignment[0]};var e;if((e=p.educationalLevel)==null?0:e.length){t=p.educationalLevel[0];var C;if((C=p.educationalLevelCountry)==null?0:C.length)t+=" ("+p.educationalLevelCountry+")";q.educationalLevel=t}var u,a;if(((u=p.learningResourceType)==null?0:u.length)&&p.learningResourceType[0]==="Problem walkthrough"&&
((a=p.problemDescriptions)==null?0:a.length))for(q.hasPart=[],C=_.c(p.problemDescriptions),u=C.next();!u.done;u=C.next())t=u.value,u=t.problemDescriptionText,a=t.startOffset,t=t.url,u&&a!==void 0&&t&&q.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:u,text:u,startOffset:a,url:t})}return q};
_.rq6=function(p){return _.$y({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:p}})};
nPZ=[[["dTFoOTVwcHJpbWFyeSNteG9uYWQ=",null,null],[null,["d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI2lmM3Z3bmIxaTN5OXl0ZC10","c3R5bGUtc2NvcGUjbmF0aG95OTRkaXo="],null],["c3RoZWFkLWFkIzZ3NDhidHFkbTVuZ21h",["MzhzeTVzdzljOHd5dGQtcmljaC1ncmlkLXJlbmRlcmVyI3E="],null],[null,["NWFsNTFtZzA3ZzR5dGQtcmljaC1ncmlkLXJlbmRlcmVyI2M=","eWxlLXNjb3BlI2lkM3NnYzE0aDV0cnN0"],null],[null,["bXR2Y3lyNWJ5dGQtYmFubmVyLXByb21vLXJlbmRlcmVyI2wyanI=","eWxlLXNjb3BlI3I2ZDR3ODNsbW01bXN0"],null],[null,["IzlveGpjMWNqaTF6b3l0ZC1hZC1zbG90LXJlbmRlcmVy"],
null]],[["cGxheWVyLWFkcyNhbGRod3Rsd2o1MDk=",null,null]],[["bmVyI2xwaGd6Z2t4cGxlcWRlc2NyaXB0aW9uLWlu",null,null],[null,null,"dzZkNmJkMjBveXRkLW1lcmNoLXNoZWxmLXJlbmRlcmVyI2JkNA=="],["ZjIwM3Z5bHR6ZGNlbWFpbiM=",["bTdncjV2czZueXRkLW1lcmNoLXNoZWxmLXJlbmRlcmVyI21tdQ=="],null]]];mFu="#";Mrm=[];ZSB=!1;_.SE3=["engagement-panel-ads"];F26=new _.uK("updateSentimentBarStateCommand");_.L2f=new _.uK("showSurveyCommand");_.Bc=new _.uK("changeMarkersVisibilityCommand");var Ng3,DFf,Bgu,xFf,TgE,fi;_.kHu=function(p,y){this.playerProvider_=p;this.actionSenderElement_=y;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.kHu.prototype.reset=function(){Ng3(this);this.isUserPredictedAbsent_=!1};
Ng3=function(p,y){!p.youThereData_||p.showWarningJob_||y!==void 0&&y||(_.Up("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.B2(),p.youThereData_,p.clientPlaybackNonce_),_.xn());_.TR.cancelJob(p.showWarningJob_);p.showWarningJob_=0;_.TR.cancelJob(p.showBlockingWarningJob_);p.showBlockingWarningJob_=0;_.TR.cancelJob(p.pausePlaybackJob_);p.pausePlaybackJob_=0;p.youThereData_=null;p.clientPlaybackNonce_=void 0;p.inYouThereFlow_=!1};
_.HSX=function(p,y){var l,q,t;_.h(function(E){if(E.nextAddress==1)return p.reset(),E.yield(p.playerProvider_().getPlayerPromise(),2);l=E.yieldResult;p.clientPlaybackNonce_=l.getVideoData().cpn;p.youThereData_=y.configData.youThereData;if(!p.youThereData_)return E.return();if(p.youThereData_.triggerReason&&p.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.spd())return _.Up("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.B2(),p.youThereData_,p.clientPlaybackNonce_),E.return();q=p.youThereData_.promptDelaySec;
t=l.getCurrentTime();p.showWarningJob_=_.TR.addLowPriorityJob(function(){return _.h(function(e){p.showWarningJob_=0;return e.yield(DFf(p),0)})},Math.max(q-t,0)*1E3);
_.rR(E)})};
DFf=function(p){var y,l,q,t,E,e;return _.h(function(C){if(C.nextAddress==1)return C.yield(p.playerProvider_().getPlayerPromise(),2);if(C.nextAddress!=3)return y=C.yieldResult,l=y.getCurrentTime(),C.yield(TgE(p),3);q=C.yieldResult;if(!q||!p.youThereData_)return C.return();if(_.n("check_user_lact_at_prompt_shown_time_on_web")&&(t=parseInt(p.youThereData_.lactThresholdMs,10),_.Rd()<t))return _.Up("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.B2(),p.youThereData_,p.clientPlaybackNonce_),C.return();if(p.youThereData_.playbackPauseDelayMs<=
0)return xFf(p),C.return();!_.n("external_fullscreen")&&(E=_.RJ())&&(p.ignoreFullscreenExitUserActivity_=!0,_.TR.addLowPriorityJob(function(){p.ignoreFullscreenExitUserActivity_=!1},2E3),_.WW(E));
p.youThereData_.showToastWarningPrompt&&(fi(p,p.youThereData_.showWarningActions),p.inYouThereFlow_=!0,_.Up("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.B2(),p.youThereData_,p.clientPlaybackNonce_,l),_.Up("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.B2(),p.youThereData_,p.clientPlaybackNonce_,l));e=0;p.youThereData_.blockingPromptDelayMs&&(e=p.youThereData_.blockingPromptDelayMs);p.showBlockingWarningJob_=_.TR.addLowPriorityJob(function(){return _.h(function(u){p.showBlockingWarningJob_=0;return u.yield(Bgu(p),
0)})},e);
_.rR(C)})};
Bgu=function(p){var y,l,q;return _.h(function(t){if(t.nextAddress==1)return t.yield(TgE(p),2);y=t.yieldResult;if(!p.youThereData_)return t.return();y&&(p.youThereData_.showBlockingWarningAction&&(_.Up("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.B2(),p.youThereData_,p.clientPlaybackNonce_),(l=_.G(p.youThereData_.showBlockingWarningAction,_.AO))?fi(p,l.commands):fi(p,[p.youThereData_.showBlockingWarningAction]),p.inYouThereFlow_=!0),q=p.youThereData_.playbackPauseDelayMs,p.pausePlaybackJob_=
_.TR.addLowPriorityJob(function(){return _.h(function(E){p.pausePlaybackJob_=0;return E.yield(xFf(p),0)})},q));
_.rR(t)})};
xFf=function(p){var y;return _.h(function(l){if(l.nextAddress==1)return l.yield(TgE(p),2);y=l.yieldResult;if(!p.youThereData_)return l.return();y&&(_.Up("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.B2(),p.youThereData_,p.clientPlaybackNonce_),fi(p,p.youThereData_.showPausedActions),p.inYouThereFlow_=!0);_.rR(l)})};
_.kHu.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var p=_.G(this.youThereData_.userActiveDuringFlowAction,_.AO);p?fi(this,p.commands):fi(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.Up("YOU_THERE_EVENT_TYPE_LACT_RESET",_.B2(),this.youThereData_,this.clientPlaybackNonce_),_.xn());Ng3(this,!0)}_.fzX(this,!1)};
_.vPa=function(p){_.Up("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.B2(),p.youThereData_,p.clientPlaybackNonce_)};
TgE=function(p){var y,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(p.playerProvider_().getPlayerPromise(),2);y=q.yieldResult;l=y.getPlayerState();return q.return(l==-1||l==1||l==3)})};
_.fzX=function(p,y){var l;_.h(function(q){if(q.nextAddress==1){if(p.isUserPredictedAbsent_==y)return q.jumpTo(0);p.isUserPredictedAbsent_=y;return q.yield(p.playerProvider_().getPlayerPromise(),3)}l=q.yieldResult;l.setUserEngagement(y);y&&_.Up("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.B2(),p.youThereData_,p.clientPlaybackNonce_);_.rR(q)})};
fi=function(p,y){if(_.n("handle_service_request_actions")||_.n("kevlar_youthere_service_endpoint_actions_killswitch"))_.Gf(p.actionSenderElement_,y,p.actionSenderElement_);else{y=_.c(y);for(var l=y.next();!l.done;l=y.next())l=l.value,l.commandMetadata&&l.commandMetadata.webCommandMetadata&&l.commandMetadata.webCommandMetadata.sendPost?_.ny(p.actionSenderElement_,[l]):_.Gf(p.actionSenderElement_,[l],p.actionSenderElement_)}};var X9Z;var dFa;var vc=function(){var p=_.w.apply(this,arguments)||this;p.systemIcons=_.n("kevlar_system_icons");p.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return p};
_.A(vc,_.w);vc.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var p=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(p=this.data.percentIfLiked||0,this.activated=!0):(p=this.data.percentIfIndifferent||0,this.activated=!1);_.jR(this.hostElement).querySelector("#like-bar").style.width=p+"%"}};
vc.prototype.handleUpdateSentimentBarStateCommand=function(p){this.data&&this.set("data.likeStatus",_.G(p,F26).likeStatus)};
vc.prototype.observeLikeStatus=vc.prototype.observeLikeStatus;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],vc.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],vc.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],vc.prototype,"activated",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],vc.prototype,"systemIcons",void 0);_.H([_.gd("data.likeStatus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vc.prototype,"observeLikeStatus",null);_.H([_.k({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],vc);
_.D(vc,"ytd-sentiment-bar-renderer",function(){if(dFa!==void 0)return dFa;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sentiment-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-sentiment-bar-renderer">\n  <div id="like-bar" class="style-scope ytd-sentiment-bar-renderer"></div>\n</div>\n<tp-yt-paper-tooltip position="top" class="style-scope ytd-sentiment-bar-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return dFa=p},{mode:1});var OS3;var X8=function(){var p=_.w.apply(this,arguments)||this;p.small=!0;return p};
_.A(X8,_.w);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],X8.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],X8.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],X8.prototype,"small",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],X8);
_.D(X8,"ytd-video-view-count-renderer",function(){if(OS3!==void 0)return OS3;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-view-count-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.viewCount)]]</span><span class="short-view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.shortViewCount)]]</span>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return OS3=p},{mode:_.ZS("kevlar_poly_si_batch_j080")?1:2});var df=function(){var p=_.w.apply(this,arguments)||this;p.infoFormattedStrings=[];p.wrapVideoActions=_.n("kevar_watch_wrap_video_actions");p.hideSentimentBar=_.n("kevlar_watch_hide_sentiment_bar");p.actionMap={};return p};
_.A(df,_.w);_.J=df.prototype;_.J.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.n("web_modern_buttons"),forceIconButton:!_.n("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.J.dataChanged=function(){_.n("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.J.computeInfoFormattedStrings=function(p){if(!p)return[];var y=[];p.dateText&&y.push(p.dateText);p.stationName&&y.push(p.stationName);p.rating&&y.push(p.rating);p.startEndTimeTemplate&&p.startTimeUtcMillis&&p.endTimeUtcMillis&&y.push(_.EK(_.kzm(_.JB(p.startEndTimeTemplate),Number(p.startTimeUtcMillis),Number(p.endTimeUtcMillis))));p.upNextProgramText&&y.push(p.upNextProgramText);return y};
_.J.scheduleInitialUpdatedMetadataRequest=function(){var p,y=(p=this.data)==null?void 0:p.updatedMetadataEndpoint;if(y){var l;p=Number((l=_.G(y,_.e2N))==null?void 0:l.initialDelayMs);l=isNaN(p)?250:p;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),l)}};
_.J.setSentimentBarWidth=function(){var p=this;_.th(this,function(){var y=_.jR(p.hostElement).querySelector("ytd-menu-renderer");if(y){y=y.topLevelButtons;for(var l=0,q=0;q<y.length;q++){var t=y[q],E=p.get("toggleButtonSupportedData.toggleButtonIdData.id",t.data);if(E==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||E==="TOGGLE_BUTTON_ID_TYPE_LIKE")l+=t.clientWidth+8;else break}l&&(p.sentiment.style.width=l-8+" px")}})};
_.J.fetchUpdatedMetadata=function(p){var y;p&&(y={continuation:p});var l;(p=(l=this.data)==null?void 0:l.updatedMetadataEndpoint)&&_.WC().resolve(_.aK).resolveCommand(p,{form:Object.assign({},y,{element:this.hostElement})})};
_.J.onYtServiceRequestSent=function(p,y){y.endpoint&&_.G(y.endpoint,_.yG)&&(this.hasUpdateSentimentBarStateCommands()&&!_.n("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.G(y.endpoint,_.yG).status),this.setSentimentBarWidth())};
_.J.hasUpdateSentimentBarStateCommands=function(){var p,y,l,q,t=(q=(p=this.data)==null?void 0:(y=p.videoActions)==null?void 0:(l=y.menuRenderer)==null?void 0:l.topLevelButtons)!=null?q:[];p=_.c(t);for(y=p.next();!y.done;y=p.next()){y=y.value;t=q=l=void 0;var E=(l=y.toggleButtonRenderer)==null?void 0:(q=l.toggleButtonSupportedData)==null?void 0:(t=q.toggleButtonIdData)==null?void 0:t.id;if(E==="TOGGLE_BUTTON_ID_TYPE_LIKE"||E==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){q=l=void 0;y=(q=_.G((l=y.toggleButtonRenderer)==
null?void 0:l.defaultServiceEndpoint,_.AO))==null?void 0:q.commands;if(!y)break;y=_.c(y);for(l=y.next();!l.done;l=y.next())if(_.G(l.value,F26))return!0}}return!1};
_.J.onYtServiceRequestCompleted=function(p,y){var l;(p=(l=y.data)==null?void 0:l.loggingDirectives)&&_.DSa(_.Ll(),p);this.get("continuation.timedContinuationData",y.data)&&this.data&&this.data.updatedMetadataEndpoint&&(y=y.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,y.continuation),y.timeoutMs))};
_.J.computeHasDateText=function(p){return!!p&&!!p.dateText};
_.Jh.Object.defineProperties(df.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q;return!((q=(p=this.data)==null?void 0:(y=p.videoActions)==null?void 0:(l=y.menuRenderer)==null?void 0:l.flexibleItems)==null||!q.length)}}});
df.prototype.onYtServiceRequestCompleted=df.prototype.onYtServiceRequestCompleted;df.prototype.onYtServiceRequestSent=df.prototype.onYtServiceRequestSent;df.prototype.dataChanged=df.prototype.dataChanged;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],df.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],df.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],df.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.m$.YtTaskEmitterBehavior),_.x("design:type",Object)],df.prototype,"ytTaskEmitterBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],df.prototype,"data",void 0);_.H([_.Q({computed:"computeInfoFormattedStrings(data)"}),_.x("design:type",Array)],df.prototype,"infoFormattedStrings",void 0);
_.H([_.Q({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],df.prototype,"hasDateText",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],df.prototype,"wrapVideoActions",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],df.prototype,"hideSentimentBar",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],df.prototype,"flexMenuEnabled",null);
_.H([_.rd("#sentiment"),_.x("design:type",Object)],df.prototype,"sentiment",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],df.prototype,"dataChanged",null);_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],df.prototype,"onYtServiceRequestSent",null);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],df.prototype,"onYtServiceRequestCompleted",null);
_.D(df,"ytd-video-primary-info-renderer",function(){if(X9Z===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-primary-info-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><a class="yt-simple-endpoint style-scope ytd-video-primary-info-renderer" hidden="[[!data.superTitleIcon]]" href$="[[computeHref_(data.superTitleLink.runs.0.navigationEndpoint)]]" aria-label$="[[data.superTitleLink.accessibility.accessibilityData.label]]" data="[[data.superTitleLink.runs.0.navigationEndpoint]]"><yt-icon class="super-title-icon style-scope ytd-video-primary-info-renderer" icon="yt-icons:location_pin"></yt-icon></a><yt-formatted-string class="super-title style-scope ytd-video-primary-info-renderer" force-default-style="" text="[[data.superTitleLink]]"></yt-formatted-string><h1 class="title style-scope ytd-video-primary-info-renderer"><yt-formatted-string force-default-style="" text="[[data.title]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></h1><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><div id="info" class="style-scope ytd-video-primary-info-renderer"><div id="info-text" class="style-scope ytd-video-primary-info-renderer"><div id="count" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></div><div id="info-strings" hidden="[[!infoFormattedStrings.length]]" class="style-scope ytd-video-primary-info-renderer"><span id="dot" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></span><template is="dom-repeat" items="[[infoFormattedStrings]]" class="style-scope ytd-video-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></template></div></div><div id="flex" class="style-scope ytd-video-primary-info-renderer"></div><div id="menu-container" class="style-scope ytd-video-primary-info-renderer"><div id="menu" class="style-scope ytd-video-primary-info-renderer"></div><ytd-sentiment-bar-renderer id="sentiment" data="[[data.sentimentBar.sentimentBarRenderer]]" hidden="[[!data.sentimentBar.sentimentBarRenderer]]" class="style-scope ytd-video-primary-info-renderer"></ytd-sentiment-bar-renderer></div></div></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);X9Z=p}p=X9Z;return p},{mode:1});var oPa;var OH=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return p};
_.A(OH,_.w);_.J=OH.prototype;_.J.configureRendererStamper=function(){return{subscribeButtonData:{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",params:{withCount:!0}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.J.dataChanged=function(){var p;this.descriptionToggled=!((p=this.data)==null||!p.defaultExpanded);var y;this.collapsed=this.descriptionAlwaysCollapsed||!((y=this.data)==null?0:y.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.fY(110509);this.showLessClientVe=_.fY(110510);p=_.B2();y=_.xc();p&&y&&_.yj(p,y,[this.showMoreClientVe,this.showLessClientVe])};
_.J.onYtExpanderMoreTapped=function(){var p,y=(p=this.data)==null?void 0:p.showMoreCommand;y&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(y);(p=_.B2())&&this.showMoreClientVe&&_.te(p,this.showMoreClientVe)};
_.J.onYtExpanderLessTapped=function(){var p=_.B2();p&&this.showLessClientVe&&_.te(p,this.showLessClientVe);var y;(p=(y=this.data)==null?void 0:y.showLessCommand)&&this.componentBehavior.resolveCommand(p)};
_.J.handleUpdateDateTextAction=function(p){this.data&&this.data.dateText&&this.set("data.dateText",_.G(p,_.JRl).dateText)};
_.J.handleUpdateDescriptionAction=function(p){if(p=_.G(p,_.JGN))p.isEmpty||!p.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.zp(p.description)):this.set("data.description",p.description)};
_.J.onYtChangeEngagementPanelVisibilityAction=function(p){if(_.n("web_structured_description_show_more")||_.n("web_engagement_panel_open_description")){var y,l=(y=_.G(p,_.B5P))==null?void 0:y.targetId,q;p=((q=_.G(p,_.B5P))==null?void 0:q.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";l==="engagement-panel-structured-description"&&p&&(this.descriptionToggled=!0)}};
_.J.updateCollapsedFromBinding=function(p){this.collapsed=p.detail.value};
_.J.updateDescriptionToggledFromBinding=function(p){this.descriptionToggled=p.detail.value};
_.J.updateCanCollapseFromBinding=function(p){this.canCollapse=p.detail.value};
_.Jh.Object.defineProperties(OH.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var p,y,l=(p=this.data)==null?void 0:(y=p.metadataRowContainer)==null?void 0:y.metadataRowContainerRenderer;return!!l&&!!l.rows&&l.rows.length>l.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription&&!this.collapsed}},
descriptionAlwaysCollapsible:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription||this.metadataCollapsible}}});
OH.prototype.onYtExpanderLessTapped=OH.prototype.onYtExpanderLessTapped;OH.prototype.onYtExpanderMoreTapped=OH.prototype.onYtExpanderMoreTapped;OH.prototype.dataChanged=OH.prototype.dataChanged;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],OH.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],OH.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],OH.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Boolean)],OH.prototype,"collapsed",void 0);_.H([_.Q(),_.x("design:type",Boolean)],OH.prototype,"descriptionToggled",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],OH.prototype,"canCollapse",void 0);_.H([_.Q(),_.x("design:type",Object)],OH.prototype,"subscribeButtonData",void 0);_.H([_.Q(),_.x("design:type",Number)],OH.prototype,"descriptionCollapsedHeight",void 0);_.H([_.Q(),_.x("design:type",Object)],OH.prototype,"structuredDescriptionContentRenderer",void 0);_.H([_.Q({value:function(){return _.n("web_watch_description_always_collapsed")}}),
_.x("design:type",Boolean)],OH.prototype,"descriptionAlwaysCollapsed",void 0);_.H([_.rd("#description"),_.x("design:type",HTMLDivElement)],OH.prototype,"description",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OH.prototype,"dataChanged",null);_.H([_.VU("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OH.prototype,"onYtExpanderMoreTapped",null);
_.H([_.VU("yt-expander-less-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OH.prototype,"onYtExpanderLessTapped",null);_.H([_.g("data.metadataRowContainer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OH.prototype,"metadataCollapsible",null);_.H([_.g("data","structuredDescriptionContentRenderer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OH.prototype,"hasInlineStructuredDescription",null);
_.H([_.g("data.attributedDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OH.prototype,"hasAttributedDescription",null);_.H([_.g("hasInlineStructuredDescription","collapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OH.prototype,"loadStructuredDescription",null);_.H([_.g("data","structuredDescriptionContentRenderer","collapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OH.prototype,"showInlineStructuredDescription",null);
_.H([_.g("data","hasInlineStructuredDescription","metadataCollapsible"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OH.prototype,"descriptionAlwaysCollapsible",null);
_.D(OH,"ytd-video-secondary-info-renderer",function(){if(oPa===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-secondary-info-renderer"><div id="top-row" class="style-scope ytd-video-secondary-info-renderer"><ytd-video-owner-renderer data="[[data.owner.videoOwnerRenderer]]" subscribe-key="[[subscribeButtonData.subscribedEntityKey]]" class="style-scope ytd-video-secondary-info-renderer"><span class="date style-scope ytd-video-secondary-info-renderer" slot="date">[[getSimpleString(data.dateText)]]</span></ytd-video-owner-renderer><div id="subscribe-button" class="style-scope ytd-video-secondary-info-renderer"></div></div><ytd-expander always-collapsed="[[descriptionAlwaysCollapsed]]" always-toggleable="[[descriptionAlwaysCollapsible]]" can-toggle="[[canCollapse]]" collapsed="[[collapsed]]" collapsed-height="[[descriptionCollapsedHeight]]" is-toggled="[[descriptionToggled]]" on-can-toggle-changed="updateCanCollapseFromBinding" on-collapsed-changed="updateCollapsedFromBinding" on-is-toggled-changed="updateDescriptionToggledFromBinding" class="style-scope ytd-video-secondary-info-renderer"><div id="description" slot="content" class="style-scope ytd-video-secondary-info-renderer"><yt-attributed-string class="content style-scope ytd-video-secondary-info-renderer" data="[[data.attributedDescription]]" disable-upgrade$="[[!hasAttributedDescription]]" hidden="[[!hasAttributedDescription]]" user-input=""></yt-attributed-string><yt-formatted-string class="content style-scope ytd-video-secondary-info-renderer" disable-upgrade$="[[hasAttributedDescription]]" force-default-style="" hidden="[[hasAttributedDescription]]" split-lines="[[!hasAttributedDescription]]" text="[[data.description]]"></yt-formatted-string><ytd-structured-description-content-renderer data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!loadStructuredDescription]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="[[hasInlineStructuredDescription]]" class="style-scope ytd-video-secondary-info-renderer"></ytd-structured-description-content-renderer></div><ytd-metadata-row-container-renderer class="sticky style-scope ytd-video-secondary-info-renderer" slot="sticky" collapsed="[[collapsed]]" data="[[data.metadataRowContainer.metadataRowContainerRenderer]]"></ytd-metadata-row-container-renderer><yt-formatted-string class="more-button style-scope ytd-video-secondary-info-renderer" slot="more-button" role="button" text="[[data.showMoreText]]"></yt-formatted-string><yt-formatted-string class="less-button style-scope ytd-video-secondary-info-renderer" slot="less-button" role="button" text="[[data.showLessText]]"></yt-formatted-string></ytd-expander></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);oPa=p}p=oPa;return p},{mode:2});var zyl;var oI=function(){return _.w.apply(this,arguments)||this};
_.A(oI,_.w);oI.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:_.n("web_modern_buttons"),forceIconButton:!_.n("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
oI.prototype.activate=function(p){p.appendTo(this.player);p.getPlayerPromise().then(function(y){y.setMinimized(!0)});
this.active=!0};
oI.prototype.deactivate=function(){var p=this.player.firstElementChild;p.getPlayerPromise().then(function(y){y.setMinimized(!1)});
this.active=!1;return p};
oI.prototype.onScrollUpTap=function(){var p=_.WC().resolve(_.mm).getCurrentPage();p&&p.setScrollTop(0)};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],oI.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],oI.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],oI.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],oI.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],oI.prototype,"active",void 0);
_.H([_.Q({reflectToAttribute:!0,value:function(){return _.n("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.x("design:type",Boolean)],oI.prototype,"darkLaunch",void 0);_.H([_.rd("#player"),_.x("design:type",HTMLDivElement)],oI.prototype,"player",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],oI);
_.D(oI,"ytd-miniplayer-bar-renderer",function(){if(zyl!==void 0)return zyl;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player" class="style-scope ytd-miniplayer-bar-renderer"></div>\n<div id="meta" class="style-scope ytd-miniplayer-bar-renderer">\n  <div id="title-row" class="style-scope ytd-miniplayer-bar-renderer">\n    <h1 id="title" class="style-scope ytd-miniplayer-bar-renderer">[[getSimpleString(data.title)]]</h1>\n    <div id="scroll-up" on-tap="onScrollUpTap" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n  <yt-formatted-string id="owner" link-inherit-color="" text="[[data.owner]]" class="style-scope ytd-miniplayer-bar-renderer"></yt-formatted-string>\n  <div id="buttons" class="style-scope ytd-miniplayer-bar-renderer">\n    <div id="menu" class="style-scope ytd-miniplayer-bar-renderer"></div>\n    <div id="subscribe" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return zyl=p},{mode:1});_.bp(_.aF(function(p){var y=_.sM("script");_.NA(function(){var l;if(l=JSON)l=iSE(p.data()),l=_.Jw(JSON.stringify(l).replace(/</g,"\\u003C"));var q=p.data(),t=_.JB(q.title).trim().length===0,E=!q.publishDate||q.publishDate.trim().length===0,e,C,u,a,m=!((e=q.thumbnail)==null?0:(C=e.thumbnails)==null?0:C.length)||!((u=q.thumbnail)==null?0:u.thumbnails[0].url)||((a=q.thumbnail)==null?void 0:a.thumbnails[0].url.trim().length)===0;y.value&&l&&!(t||E||m)&&_.cH(y.value,l)},"I9AhLd");
return _.R("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.R("script",{el:y,type:"application/ld+json"}))},"Tj"),"player-microformat-renderer",{props:{data:_.jw}});
}catch(e){_._DumpException(e)}
try{
var sYZ,hyE;_.qEf=function(p){return p.watch.watchWindowSize};
sYZ=function(p,y,l,q){if(p.isLockupToWatchTransitionEnabled){if(y){var t={};p.viewTransitionCoordinator.registerElement(y,(t["lockup-to-watch"]="player-lockup-to-watch",t["watch-next-appears"]="player-watch-next-loaded",t))}l&&(y={},p.viewTransitionCoordinator.registerElement(l,(y["lockup-to-watch"]="below-lockup-to-watch",y["watch-next-appears"]="below-watch-next-loaded",y)));q&&(l={},p.viewTransitionCoordinator.registerElement(q,(l["watch-next-appears"]="secondary-watch-next-loaded",l)))}};
_.trX=function(p){return _.$y({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:p}})};
hyE=function(p){_.Sr.call(this);var y=this;this.JSC$22792_watchApi=p;p=_.Lw(_.ei(),_.prj,function(){EPX(y)});
this.addOnDisposeCallback(p);p=_.Lw(_.ei(),_.qEf,function(){EPX(y)});
this.addOnDisposeCallback(p);Jq6(this);cqf(this);eya()};
_.A(hyE,_.Sr);var Jq6=function(p){var y=function(q){_.ei().dispatch(_.MT9(q.matches))},l=window.matchMedia("(max-width: "+(999+_.Io())+"px)");
l.addListener(y);p.addOnDisposeCallback(function(){l.removeListener(y)});
y(l)},cqf=function(p){p.JSC$22792_watchApi.registerActionHandler("yt-window-resized",function(){eya()});
p.addOnDisposeCallback(function(){p.JSC$22792_watchApi.unregisterActionHandler("yt-window-resized")})},eya=function(){var p=_.Si();
_.ei().dispatch(_.$y({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:p.width,height:p.height}}}))},EPX=function(p){var y;
_.h(function(l){if(l.nextAddress==1)return l.yield(p.JSC$22792_watchApi.playerApi,2);y=l.yieldResult;y.setSize(NaN,NaN);_.rR(l)})};var C43=function(p){_.Sr.call(this);var y=_.WC().resolve(_.xr);sYZ(y,p.getElement("PLAYER_CONTAINER"),p.getElement("BELOW_THE_PLAYER"),p.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var l=p.getElement("PLAYER_CONTAINER"),q=p.getElement("BELOW_THE_PLAYER"),t=p.getElement("SECONDARY");y.isLockupToWatchTransitionEnabled&&(l&&_.ty(y.viewTransitionCoordinator,l),q&&_.ty(y.viewTransitionCoordinator,q),t&&_.ty(y.viewTransitionCoordinator,t))})};
_.A(C43,_.Sr);_.NP=function(p){_.jS.call(this);var y=this;this.rootElement=p;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return y.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(l){y.initOrDisposeActiveModules(l)}));
this.onAttached()};
_.A(_.NP,_.jS);_.J=_.NP.prototype;_.J.getRoot=function(){return this.rootElement};
_.J.getElement=function(p){return this.rootElement.getElement(p)};
_.J.setPlayerResponse=function(p){this.playerResponse=p;this.publish("PLAYER_RESPONSE_UPDATED",p)};
_.J.getPlayerResponse=function(){return this.playerResponse};
_.J.setWatchNextResponse=function(p){this.watchNextResponse===p?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=p,this.publish("WATCH_NEXT_RESPONSE_UPDATED",p))};
_.J.getWatchNextResponse=function(){return this.watchNextResponse};
_.J.registerActionHandler=function(p,y){var l=this;if(_.n("web_watch_controller_reg_multiple_handlers_killswitch")){var q={};_.y2(_.pt.getInstance(),(q[p]=y,q),this.getRoot())}else this.actionHandlers.has(p)||(this.actionHandlers.set(p,[]),q={},_.y2(_.pt.getInstance(),(q[p]=function(){var t=_.oX.apply(0,arguments);return(l.actionHandlers.get(p)||[]).map(function(E){return E.apply(null,_.xq(t))})},q),this.getRoot())),this.actionHandlers.get(p).push(y)};
_.J.unregisterActionHandler=function(p){if(_.n("web_watch_controller_reg_multiple_handlers_killswitch")){var y={};_.lX(_.pt.getInstance(),(y[p]=!0,y),this.getRoot())}else(y=this.actionHandlers.get(p))?(y.pop(),y.length===0&&(y={},_.lX(_.pt.getInstance(),(y[p]=!0,y),this.getRoot()),this.actionHandlers.delete(p))):_.vs(new _.SM("Attempted to unregister an action handler which is not registered.",p))};
_.J.addPageDisposeJob=function(p){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.f8(this.rootElement.pageDisposeJobs,p)};
_.J.removePageDisposeJob=function(p){this.rootElement.pageDisposeJobs&&_.Oc(this.rootElement.pageDisposeJobs,p)};
_.J.dispatchEvent=function(p,y){_.Ub(this.rootElement,p,y)};
_.J.provideRenderingData=function(p,y){this.rootElement.provideRenderingData(p,y)};
_.J.scrollWatchTo=function(p,y){var l;(l=this.watchScrollManager)==null||l.scrollWatchTo(p,y)};
_.J.focusOnPlayer=function(){var p=this.getElement("PLAYER");_.th(p,function(){if(p&&p.firstElementChild){var y=p.querySelector(".html5-video-player");y&&(_.aw(_.WC().resolve(_.Xf)),y.focus())}else _.vs(Error("zo"))})};
_.J.updateCinematicFullscreenConfig=function(){if(_.n("web_cinematic_manager_redux_killswitch")){var p=!!this.rootElement.theater,y=!!this.rootElement.fullscreen,l;(l=this.watchCinematicManager)==null||_.wf(l,y,p)}};
_.J.subscribeToActiveChanged=function(p,y){y=y===void 0?!0:y;var l=_.Lw(_.ei(),_.iJT,function(q){p(q)});
y&&p(_.iJT(_.ei().getState()));return l};
_.J.isActive=function(){return _.iJT(_.ei().getState())};
_.J.onAttached=function(){var p=_.n("external_fullscreen");_.n("use_unified_flag_accessor")&&(p=_.WC().resolve(_.yE1).retriever.getFlag(_.cUM));(p||_.o4("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var uZB=function(p){return p.getRoot().is==="ytd-watch-flexy"||p.getRoot().is==="ytd-watch-grid"},DG=function(p){return p.getRoot().is==="ytd-watch-fixie"};
_.NP.prototype.initPersistentModules=function(){if(DG(this)||uZB(this)&&_.n("kevlar_watch_flexy_theater_manager")){var p=new _.wHX(this);_.P9(this,p)}p=new _.mQw(this);_.P9(this,p);p=new _.VV(this);_.P9(this,p);p=new _.F8(this);_.P9(this,p);p=new _.f7f(this);_.P9(this,p);p=new _.QV(this);_.P9(this,p);if(DG(this)||uZB(this)&&_.n("kevlar_watch_flexy_playlist_manager"))p=new _.dQ6(this),_.P9(this,p);_.n("web_thumbnail_to_watch_transition")&&(p=new C43(this),_.P9(this,p))};
_.NP.prototype.initOrDisposeActiveModules=function(p){p?(this.watchScrollManager=new _.kU(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.KJf(this)),this.activeModules.push(new _.FwZ(this)),DG(this)&&this.activeModules.push(new hyE(this)),this.activeModules.push(new _.p9f(this)),this.activeModules.push(new _.Li(this)),(DG(this)||_.n("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.DmX(this)),this.activeModules.push(new _.LJf(this)),
(DG(this)||_.n("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.lzB(this)),(DG(this)||_.n("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.dNX(this)),_.n("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Ihw(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.n("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.H0E(this)),_.n("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.WJw(this)),
p=_.n("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.n("kevlar_watch_flexy_comments_manager")&&!p&&this.activeModules.push(new _.e$f(this)),_.n("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.gf(this)),this.activeModules.push(new _.DNl(this)),this.activeModules.push(new _.i0B(this)),_.n("web_enable_timely_actions")&&this.activeModules.push(new _.BRm(this)),_.n("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.uDf(this)),
_.n("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.q8X(this)),_.n("web_fullscreen_components")&&this.activeModules.push(new _.Bua(this)),_.n("web_player_rtr_ctrls")&&this.activeModules.push(new _.Wbf(this))):(_.hq(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.NP.prototype.disposeInternal=function(){_.jS.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Jh.Object.defineProperties(_.NP.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var A1A,Gh,ZDV,MXi,gsi,Q89,VX1,K06;A1A=function(){var p=_.r$();p.info||(p.info={});return p.info};
Gh=function(p){return Math.round(_.kw()+p)};
ZDV=function(){var p;if(_.n("csi_use_performance_navigation_timing")){var y,l,q,t=_.Ly==null?void 0:(p=_.Ly.getEntriesByType)==null?void 0:(y=p.call(_.Ly,"navigation"))==null?void 0:(l=y[0])==null?void 0:(q=l.toJSON)==null?void 0:q.call(l);t?(t.requestStart=Gh(t.requestStart),t.responseEnd=Gh(t.responseEnd),t.redirectStart=Gh(t.redirectStart),t.redirectEnd=Gh(t.redirectEnd),t.domainLookupEnd=Gh(t.domainLookupEnd),t.connectStart=Gh(t.connectStart),t.connectEnd=Gh(t.connectEnd),t.responseStart=Gh(t.responseStart),
t.secureConnectionStart=Gh(t.secureConnectionStart),t.domainLookupStart=Gh(t.domainLookupStart),t.isPerformanceNavigationTiming=!0,p=t):p=_.Ly.timing}else p=_.n("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.Ly.timing)):_.Ly.timing;return p};
MXi=function(){if(_.Ly.getEntriesByType){var p=_.Ly.getEntriesByType("paint");if(p=_.Na(p,function(l){return l.name==="first-paint"}))return Gh(p.startTime)}var y;
_.n("csi_use_performance_navigation_timing")?y=_.Ly.getEntriesByType("first-paint")[0].startTime:y=_.Ly.timing.msFirstPaint;return y?Math.max(0,y):0};
gsi=function(){var p=window.location.protocol,y=_.Ly.getEntriesByType("resource");y=_.nq(y,function(l){return l.name.indexOf(p+"//fonts.gstatic.com/s/")===0});
(y=VX1(y,function(l,q){return q.duration>l.duration?q:l}))&&y.startTime>0&&y.responseEnd>0&&(_.Nn("wffs",Gh(y.startTime)),_.Nn("wffe",Gh(y.responseEnd)))};
Q89=function(p,y){p=document.querySelector(p);if(!p)return!1;var l="",q=p.nodeName;q==="SCRIPT"?(l=p.src,l||(l=p.getAttribute("data-timing-href"))&&(l=window.location.protocol+l)):q==="LINK"&&(l=p.href);_.tw(document)&&p.setAttribute("nonce",_.tw(document));return l?(p=_.Ly.getEntriesByName(l))&&p[0]&&(p=p[0],l=_.kw(),_.Nn("rsf_"+y,l+Math.round(p.fetchStart)),_.Nn("rse_"+y,l+Math.round(p.responseEnd)),p.transferSize!==void 0&&p.transferSize===0)?!0:!1:!1};
_.Ph=function(p,y){_.YZ(function(){_.F_("").info.actionType=p;y&&_.dT("TIMING_AFT_KEYS",y);_.dT("TIMING_ACTION",p);var l=_.rc6(_.OY("TIMING_INFO",{}));Object.keys(l).length>0&&_.Db(l);l={isNavigation:!0,actionType:_.bz8(_.OY("TIMING_ACTION"))};var q=_.OY("PREVIOUS_ACTION");q&&(l.previousAction=_.bz8(q));if(q=_.OY("CLIENT_PROTOCOL"))l.httpProtocol=q;if(q=_.OY("CLIENT_TRANSPORT"))l.transportProtocol=q;(q=_.B2())&&q!=="UNDEFINED_CSN"&&(l.clientScreenNonce=q);q=_.izL();if(q===1||q===-1)l.isVisible=!0;
q=_.u6L().loadType==="cold";var t=A1A();q||(q=t.yt_lt==="cold");if(q){l.loadType="cold";q=A1A();t=ZDV();var E=_.kw(),e=_.OY("CSI_START_TIMESTAMP_MILLIS",0);e>0&&!_.n("embeds_web_enable_csi_start_override_killswitch")&&(E=e);E&&(_.Nn("srt",t.responseStart),q.prerender!==1&&_.Zza(E));q=MXi();q>0&&_.Nn("fpt",q);q=ZDV();q.isPerformanceNavigationTiming&&_.Db({performanceNavigationTiming:!0},void 0);_.Nn("nreqs",q.requestStart,void 0);_.Nn("nress",q.responseStart,void 0);_.Nn("nrese",q.responseEnd,void 0);
q.redirectEnd-q.redirectStart>0&&(_.Nn("nrs",q.redirectStart,void 0),_.Nn("nre",q.redirectEnd,void 0));q.domainLookupEnd-q.domainLookupStart>0&&(_.Nn("ndnss",q.domainLookupStart,void 0),_.Nn("ndnse",q.domainLookupEnd,void 0));q.connectEnd-q.connectStart>0&&(_.Nn("ntcps",q.connectStart,void 0),_.Nn("ntcpe",q.connectEnd,void 0));q.secureConnectionStart>=_.kw()&&q.connectEnd-q.secureConnectionStart>0&&(_.Nn("nstcps",q.secureConnectionStart,void 0),_.Nn("ntcpe",q.connectEnd,void 0));_.Ly&&"getEntriesByType"in
_.Ly&&gsi();q=[];if(document.querySelector&&_.Ly&&_.Ly.getEntriesByName)for(var C in K06)K06.hasOwnProperty(C)&&(t=K06[C],Q89(C,t)&&q.push(t));if(q.length>0)for(l.resourceInfo=[],C=_.c(q),q=C.next();!q.done;q=C.next())l.resourceInfo.push({resourceCache:q.value})}_.Db(l);l=_.SN();l.preLoggedGelInfos||(l.preLoggedGelInfos=[]);C=l.preLoggedGelInfos;l=_.Wg6();q=void 0;for(t=0;t<C.length;t++)if(E=C[t],E.loadType){q=E.loadType;break}if(_.u6L().loadType==="cold"&&(l.loadType==="cold"||q==="cold")){q=_.Rvt();
t=_.SN();t=t.gelTicks?t.gelTicks:t.gelTicks={};for(var u in q)if(!(u in t))if(typeof q[u]==="number")_.Nn(u,_.HW(u));else if(_.n("log_repeated_ytcsi_ticks"))for(E=_.c(q[u]),e=E.next();!e.done;e=E.next())e=e.value,_.Nn(u.slice(1),e);u={};q=!1;C=_.c(C);for(t=C.next();!t.done;t=C.next())q=t.value,_.da(l,q),_.da(u,q),q=!0;q&&_.Db(u)}_.krt(!0);u=_.OY("TIMING_ACTION");_.I4("ytglobal.timingready_")&&u&&_.d6m()&&_.Lgc()&&_.Kg_()})()};
VX1=function(p,y){return Array.prototype.reduce.call(p,y,{duration:0})};
K06={'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 wjV={};wjV.YtVisibilityRootBehavior=[_.EeZ.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.er(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.OY("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var p=_.OY("INNERTUBE_CLIENT_NAME")!=="WEB";_.n("kevlar_use_vimio_behavior")&&p&&_.tKr()}}];_.A8={};_.A8.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(p){p.detail.contextProvider=this;p.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
wjV.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.hs();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(p){var y=this;this.pageCount+=1;_.n("kevlar_use_vimio_behavior")&&(_.OY("INNERTUBE_CLIENT_NAME")==="WEB"?_.TR.addJob(function(){y.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(p)},
loadPage_:function(p){this.data=p},
ytPageBehaviorActiveObserver_:function(p){var y=this;_.n("kevlar_use_vimio_behavior")&&(p?_.OY("INNERTUBE_CLIENT_NAME")==="WEB"?_.TR.addJob(function(){y.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(p){if(!this.setScrollTopJobId_){var y=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){y.setScrollTopJobId_=0;var l=_.WC().resolve(_.RK(_.Xf));l&&_.aw(l);this.getPageScrollingElement().scrollTop=p}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.HZ(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var Pg9;var nL=function(){var p=_.w.apply(this,arguments)||this;p.playerListenerConfig=null;p.actionMap={"yt-show-watch-page-survey":"openSurvey"};return p};
_.A(nL,_.w);_.J=nL.prototype;_.J.dataChanged=function(){var p=this,y=_.$o();y&&y.getPlayerPromise().then(function(q){p.maybeRemovePlayerListeners(q)});
var l=this.data&&this.data.survey;l&&((l=(l=l.singleOptionSurveyRenderer||l.checkboxSurveyRenderer||l.multiStageSurveyRenderer)&&l.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(y,l):this.openSurvey())};
_.J.triggerWatchPageSurvey=function(p,y){var l=this,q,t,E,e,C,u,a,m,U;return _.h(function(b){if(b.nextAddress==1)return p?b.yield(p.getPlayerPromise(),2):b.return();l.player=b.yieldResult;if(!l.player)return b.return();q={};t=_.c(y);for(E=t.next();!E.done;E=t.next())e=E.value,C=_.c(l.createEventListenerPair(e)),u=C.next().value,a=C.next().value,m=u,U=a,m&&U&&(q[m]=U,l.ytPlayerListenerBehavior.listenToPlayerEvent(l.player,m,U));l.playerListenerConfig=q;_.rR(b)})};
_.J.createEventListenerPair=function(p){var y=p.playbackEventTrigger;return y?this.handlePlaybackTrigger(y):(p=p.watchTimeTrigger)?this.handleWatchTimeTrigger(p):[void 0,void 0]};
_.J.handleWatchTimeTrigger=function(p){var y=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var l=p.videoWatchFraction,q=p.watchTimeSec;return q&&l?["onVideoProgress",function(){y.player&&y.isWatchTimeConditionMet(y.player,l,q)&&y.showSurvey()}]:[void 0,
void 0]};
_.J.isWatchTimeConditionMet=function(p,y,l){var q=p.getProgressState(),t=q.current-this.lastKnownPlaybackPosition;t<5&&(this.accumulatedMediaTime+=t);this.lastKnownPlaybackPosition=q.current;q=Math.round(this.accumulatedMediaTime/q.duration*1E3)/1E3;return p.getPresentingPlayerType&&p.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>l||q>y)};
_.J.handlePlaybackTrigger=function(p){var y=this;p=p.playbackEvent;if(p==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var l="onStateChange";var q=function(t){t===0&&y.showSurvey()}}else p==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(l="onVideoProgress",q=function(t){y.player&&y.player.getPresentingPlayerType&&y.player.getPresentingPlayerType()===1&&t&&y.showSurvey()}):p==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(l="onAdEnd",q=this.showSurvey);
return[l,q]};
_.J.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.J.openSurvey=function(){var p=this,y=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.d$i(!!y));_.TR.addJob(function(){p.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:y}})},0,0)};
_.J.maybeRemovePlayerListeners=function(p){if(this.playerListenerConfig){for(var y=_.c(Object.keys(this.playerListenerConfig)),l=y.next();!l.done;l=y.next())l=l.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(p,l,this.playerListenerConfig[l]);this.playerListenerConfig=null}};
nL.prototype.dataChanged=nL.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],nL.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.RP),_.x("design:type",Object)],nL.prototype,"ytdOpenPopupBehavior",void 0);_.H([_.V(_.c8.YtPlayerListenerBehavior),_.x("design:type",_.eE)],nL.prototype,"ytPlayerListenerBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],nL.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.V(_.zL),_.x("design:type",Object)],nL.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],nL.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],nL.prototype,"playerListenerConfig",void 0);_.H([_.Q({value:0}),_.x("design:type",Number)],nL.prototype,"lastKnownPlaybackPosition",void 0);_.H([_.Q({value:0}),_.x("design:type",Number)],nL.prototype,"accumulatedMediaTime",void 0);_.H([_.Q(),_.x("design:type",Object)],nL.prototype,"player",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nL.prototype,"dataChanged",null);_.H([_.k({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],nL);
_.D(nL,"ytd-survey-trigger-renderer",function(){if(Pg9!==void 0)return Pg9;var p=document.createElement("template");_.M(p,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-trigger-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Pg9=p},{mode:1});
}catch(e){_._DumpException(e)}
try{
var mdu=new _.uK("promotedSparklesWebRenderer");var UdT=new _.uK("relatedChipCommand");var $d1;var jmw;var a6=function(){return _.w.apply(this,arguments)||this};
_.A(a6,_.w);a6.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],a6.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],a6.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],a6);
_.D(a6,"ytd-compact-tvfilm-entry-point-renderer",function(){if(jmw!==void 0)return jmw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-tvfilm-entry-point-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-compact-tvfilm-entry-point-renderer"><span id="title" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.title)]]</span><span id="subtitle" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.subtitle)]]</span></div><div id="action-button" class="style-scope ytd-compact-tvfilm-entry-point-renderer"></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return jmw=p},{mode:1});var bJO;var njA;var Gzw;var mY=function(){return _.w.apply(this,arguments)||this};
_.A(mY,_.w);mY.prototype.ready=function(){this.initializeDefs()};
mY.prototype.initializeDefs=function(){var p=this.meta.byKey("yt-icons"),y=_.jR(p).querySelector("#star"),l=_.jR(p).querySelector("#star_half");p=_.jR(p).querySelector("#star_border");y&&this.defs.appendChild(y.cloneNode(!0));l&&this.defs.appendChild(l.cloneNode(!0));p&&this.defs.appendChild(p.cloneNode(!0))};
mY.prototype.percentChanged=function(){for(var p=this.rating;p.firstChild;)p.removeChild(p.firstChild);var y=Math.round(this.percent/10);p=Math.floor(y/2);y%=2;var l=5-p-y;this.appendStars("star",p,0);this.appendStars("star_half",y,p);this.appendStars("star_border",l,p+y)};
mY.prototype.appendStars=function(p,y,l){for(var q=0;q<y;q++){var t=(18+this.spacing)*(q+l),E=document.createElementNS("http://www.w3.org/2000/svg","use");_.Vhd(E,"#"+p);E.setAttribute("x",""+t);E.setAttribute("y","0");this.rating.appendChild(E)}};
mY.prototype.percentChanged=mY.prototype.percentChanged;_.H([_.rd("#defs"),_.x("design:type",HTMLElement)],mY.prototype,"defs",void 0);_.H([_.rd("#rating"),_.x("design:type",HTMLElement)],mY.prototype,"rating",void 0);_.H([_.Q(),_.x("design:type",Number)],mY.prototype,"percent",void 0);_.H([_.Q({value:6}),_.x("design:type",Number)],mY.prototype,"spacing",void 0);_.H([_.Q({value:_.N6.create("iron-meta",{type:"iconset"})}),_.x("design:type",_.Tb)],mY.prototype,"meta",void 0);
_.H([_.gd("percent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mY.prototype,"percentChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-ratings"})],mY);
_.D(mY,"ytd-ratings",function(){if(Gzw!==void 0)return Gzw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ratings--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg id="svg" width="90px" height="18px" viewBox="0 0 120 24" class="style-scope ytd-ratings">\n  <defs id="defs" class="style-scope ytd-ratings">\n  </defs>\n  <g id="rating" class="style-scope ytd-ratings"></g>\n</svg>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Gzw=p},{mode:1});var U2=function(){return _.w.apply(this,arguments)||this};
_.A(U2,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],U2.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],U2.prototype,"data",void 0);_.H([_.k({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],U2);
_.D(U2,"ytd-offer-review-renderer",function(){if(njA!==void 0)return njA;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-review-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ratings percent="[[data.percent]]" class="style-scope ytd-offer-review-renderer"></ytd-ratings>\n<yt-formatted-string text="[[data.score]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n-\n<yt-formatted-string link-inherit-color="" text="[[data.source]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return njA=p},{mode:1});var $V=function(){var p=_.w.apply(this,arguments)||this;p.badges=[{textBadge:{label:_.EK("CC")}}];return p};
_.A($V,_.w);_.J=$V.prototype;_.J.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.J.dataChanged=function(){var p=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(p&&p.commandMetadata&&_.G(p.commandMetadata,_.BY)&&_.G(p.commandMetadata,_.BY).fireAutomatically)_.WC().resolve(_.aK).resolveCommand(p,{form:{element:this.hostElement}});else{var y;p&&((y=_.G(p,_.BY))==null?0:y.fireAutomatically)&&_.WC().resolve(_.aK).resolveCommand(p,{form:{element:this.hostElement}})}};
_.J.isEmptyContent=function(p){return this.isStorefrontEntryPointEmpty(p)&&this.shouldHideOfferModule(p)};
_.J.isStorefrontEntryPointEmpty=function(p){return!p||!p.storefrontEntryPoint};
_.J.shouldHideOfferModule=function(p){return!!p.hideVideoDetails};
_.J.isOfferModuleNavigationInactive=function(p){return!p.navigationEndpoint&&!p.serviceEndpoint};
_.J.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.WC().resolve(_.aK).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
$V.prototype.dataChanged=$V.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],$V.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],$V.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],$V.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.x("design:type",Boolean)],$V.prototype,"hidden",void 0);
_.H([_.Q(),_.x("design:type",Object)],$V.prototype,"badges",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$V.prototype,"dataChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],$V);
_.D($V,"ytd-movie-offer-module-renderer",function(){if(bJO!==void 0)return bJO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module-container" hidden="[[shouldHideOfferModule(data)]]" class="style-scope ytd-movie-offer-module-renderer">\n  <div id="header" class="style-scope ytd-movie-offer-module-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-offer-module-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string id="manage-purchase-text" link-inherit-color="" text="[[data.managePurchasesText]]" class="style-scope ytd-movie-offer-module-renderer">\n    </yt-formatted-string>\n  </div>\n  <a aria-label$="[[getSimpleString(data.title)]]" id="wide-clickable-area" class="yt-simple-endpoint flexed style-scope ytd-movie-offer-module-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" inactive$="[[isOfferModuleNavigationInactive(data)]]" on-tap="maybeNavigateWithServiceEndpoint">\n    <yt-img-shadow id="img" thumbnail="[[data.thumbnail]]" class="style-scope ytd-movie-offer-module-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-movie-offer-module-renderer">\n      <template is="dom-if" if="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-if" if="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="details" split-lines="true" text="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-repeat" items="[[data.reviews]]" as="review" class="style-scope ytd-movie-offer-module-renderer">\n        <ytd-offer-review-renderer data="[[review.offerReviewRenderer]]" class="style-scope ytd-movie-offer-module-renderer"></ytd-offer-review-renderer>\n      </template>\n      <template is="dom-repeat" items="[[data.attributes]]" as="attribute" class="style-scope ytd-movie-offer-module-renderer">\n        <p class="style-scope ytd-movie-offer-module-renderer">\n          <template is="dom-if" if="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer">\n            <yt-formatted-string text="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>:\n          </template>\n          <yt-formatted-string ellipsis-truncate="" link-inherit-color="" text="[[attribute.value]]" title="[[getSimpleString(attribute.value)]]" class="style-scope ytd-movie-offer-module-renderer">\n          </yt-formatted-string>\n        </p>\n      </template>\n     <ytd-badge-supported-renderer badges="[[badges]]" hidden="[[!data.showCc]]" class="style-scope ytd-movie-offer-module-renderer">\n     </ytd-badge-supported-renderer>\n    </div>\n  </a>\n</div>\n<div id="storefront-entry-point" hidden="[[isStorefrontEntryPointEmpty(data)]]" class="style-scope ytd-movie-offer-module-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return bJO=p},{mode:1});var PhO;var jb=function(){return _.w.apply(this,arguments)||this};
_.A(jb,_.w);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],jb.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],jb.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],jb);
_.D(jb,"ytd-media-masthead-renderer",function(){if(PhO!==void 0)return PhO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-media-masthead-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n      <div id="image" class="style-scope ytd-media-masthead-renderer">\n        <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n      </div>\n      <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n        <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n          <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n        </template>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n    <div id="image" class="style-scope ytd-media-masthead-renderer">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n    </div>\n    <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n      <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n        <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return PhO=p},{mode:1});var A0O;_.bp(_.mh$,"course-metadata-view-model",{props:{data:_.jw,isOverlay:_.jw}});var b3=function(){var p=_.w.apply(this,arguments)||this;p.isMetadataVisible=!1;p.modernPanels=_.n("kevlar_watch_modern_panels");p.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return p};
_.A(b3,_.w);_.J=b3.prototype;
_.J.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.expandMetadataButton":{id:"expand-metadata-button",mapping:{toggleButtonViewModel:{component:"yt-toggle-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.masthead":{id:"masthead",mapping:{mediaMastheadRenderer:{component:"ytd-media-masthead-renderer"},channelMastheadRenderer:{component:"ytd-channel-masthead-renderer",params:{isInOfferModule:!0}}}},
"data.expandedMetadata":{id:"expanded-metadata",mapping:{courseMetadataViewModel:{component:"course-metadata-view-model"}}}}};
_.J.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.J.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.J.expanderChanged=function(){var p;if((p=this.data)==null?0:p.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.J.isExpandButtonToggled=function(){var p,y;return(y=_.G((p=this.data)==null?void 0:p.expandMetadataButton,_.BN))==null?void 0:y.isToggled};
_.J.onVisibilityButtonClick=function(){var p;if((p=this.data)==null?0:p.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.J.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
b3.prototype.expanderChanged=b3.prototype.expanderChanged;b3.prototype.dataChanged=b3.prototype.dataChanged;b3.prototype.descriptionChanged=b3.prototype.descriptionChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],b3.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V([_.no.YtActionHandlerBehavior]),_.x("design:type",Object)],b3.prototype,"actionHandlerBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],b3.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],b3.prototype,"isMetadataVisible",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],b3.prototype,"modernPanels",void 0);_.H([_.rd("#expander"),_.x("design:type",Object)],b3.prototype,"expander",void 0);_.H([_.gd("data.description"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],b3.prototype,"descriptionChanged",null);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],b3.prototype,"dataChanged",null);_.H([_.gd("isMetadataVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],b3.prototype,"expanderChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],b3);
_.D(b3,"ytd-tvfilm-offer-module-renderer",function(){if(A0O!==void 0)return A0O;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="header" hidden="[[!data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="title" text="[[data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-formatted-string>\n  <div id="expand-metadata-button" on-click="onVisibilityButtonClick" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n</h2>\n\n<div id="masthead" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<div id="action-buttons" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="3" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="description" slot="content" disable-upgrade$="[[!data.description]]" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-tvfilm-offer-module-renderer" slot="more-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="expand-more-icon" icon="yt-icons:expand-more" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-tvfilm-offer-module-renderer" slot="less-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="expand-less-icon" icon="yt-icons:expand-less" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n\n<div id="expanded-metadata" hidden="[[!isMetadataVisible]]" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return A0O=p},{mode:2});var ZJL;var nR=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return p};
_.A(nR,_.w);nR.prototype.dataChanged=function(){this.hostElement.hidden=!1};
nR.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
nR.prototype.onThumbnailTap=function(p){this.data&&this.data.serviceEndpoint&&(_.WC().resolve(_.aK).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),p.stopPropagation())};
nR.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
nR.prototype.dataChanged=nR.prototype.dataChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],nR.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],nR.prototype,"rendererBehaviors",void 0);_.H([_.V([_.no.YtActionHandlerBehavior]),_.x("design:type",Object)],nR.prototype,"actionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],nR.prototype,"data",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nR.prototype,"dataChanged",null);_.H([_.k({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],nR);
_.D(nR,"ytd-unlimited-offer-module-renderer",function(){if(ZJL!==void 0)return ZJL;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-checkout-offers" class="style-scope ytd-unlimited-offer-module-renderer">\n  <div id="header" class="style-scope ytd-unlimited-offer-module-renderer">\n    <div id="title-section" class="style-scope ytd-unlimited-offer-module-renderer">\n      <yt-formatted-string id="main-title" text="[[data.title]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n      <yt-formatted-string id="sub-title" text="[[data.subtitle]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n    </div>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" class="style-scope ytd-unlimited-offer-module-renderer">\n    </ytd-button-renderer>\n  </div>\n  <ytd-thumbnail id="thumbnail" data="[[data]]" hidden$="[[!data.thumbnail]]" width="402" on-click="onThumbnailTap" class="style-scope ytd-unlimited-offer-module-renderer">\n  </ytd-thumbnail>\n  <div id="storefront-entry-point" hidden="[[!data.storefrontEntryPoint]]" class="style-scope ytd-unlimited-offer-module-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return ZJL=p},{mode:1});var M5L;var V5w;var GW=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return p};
_.A(GW,_.w);GW.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
GW.prototype.handleRelatedChipCommand=function(p){p=_.G(p,UdT);var y=p.contents;y?_.jN(this.hostElement,"yt-item-section-replace-action",[y,p.targetSectionIdentifier]):_.jN(this.hostElement,"yt-item-section-continuation-action",[p.continuationData,p.targetSectionIdentifier])};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],GW.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],GW.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],GW.prototype,"actionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],GW.prototype,"data",void 0);_.H([_.z9({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],GW);
_.D(GW,"yt-related-chip-cloud-renderer",function(){if(V5w===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-related-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_related_chip_cloud_renderer.yt.related.chip.cloud.renderer.css.js--\x3e<div id="content" class="style-scope yt-related-chip-cloud-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;M5L===void 0&&(M5L=document.createElement("template"));var q=M5L;l.call(y,q.content.cloneNode(!0),p.content.firstChild);V5w=p}p=V5w;return p},{mode:2});var Pi=function(){var p=_.w.apply(this,arguments)||this;p.isTwoColumns=!0;p.hideOfferModules=!1;p.watchFeedBigThumbs=_.n("kevlar_watch_feed_big_thumbs");p.watchNextGridHideChips=_.n("kevlar_watch_grid_hide_chips");p.eligibleToSwitchToGrid=_.n("web_watch_eligible_to_switch_to_grid");p.disableShortsShelfHeightOverride=_.n("web_shorts_wn_shelf_ratio_tuning");p.isWatchNextGrid=!1;p.reuseComponents=!_.n("kevlar_watch_grid");p.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return p};
_.A(Pi,_.w);_.J=Pi.prototype;
_.J.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.n("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.J.getItemsPath=function(){return"data.results"};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.J.created=function(){this.ytLazyListBehavior.initialCount=1};
_.J.ready=function(){_.Ax(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.J.resultsChanged=function(){if(this.data&&this.data.results){for(var p=this.data.results,y=null,l=null,q=0;q<p.length;q++)p[q].relatedChipCloudRenderer?y=p[q].relatedChipCloudRenderer:p[q].itemSectionRenderer&&(l=p[q].itemSectionRenderer);if(y&&l)for(this.set("data.continuations",[]),p=_.G(y.content,_.F1$).chips,y=0;y<p.length;y++)if(q=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",p[y]),q.loadCached||!q.contents){q.contents=l.contents;break}}};
_.J.dataChanged=function(){var p=this,y;if((y=this.data)!=null&&y.results&&this.hasAllowedInstreamAd(this.playerData)){if(y=this.data.results.filter(function(C){return!!C.promotedSparklesWebRenderer})){for(var l=0;l<y.length;l++){var q=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",y[l]);
if(q)for(var t=0;t<q.length;t++)q[t]&&q[t].baseUrl&&_.pT(q[t].baseUrl)}this.set("data.results",this.data.results.filter(function(C){return!C.promotedSparklesWebRenderer}))}if(y=this.data.results.filter(function(C){return!!p.getSparklesAd(C)})){y=_.c(y);
for(t=y.next();!t.done;t=y.next())if(q=l=void 0,t=(l=this.getSparklesAd(t.value))==null?void 0:(q=l.errorCommand)==null?void 0:q.loggingUrls)for(l=_.c(t),q=l.next();!q.done;q=l.next())(q=q.value)&&q.baseUrl&&_.pT(q.baseUrl);var E,e;this.set("data.results",(E=this.data)==null?void 0:(e=E.results)==null?void 0:e.filter(function(C){return!C.adSlotRenderer}))}}};
_.J.getSparklesAd=function(p){var y,l;p=_.G((y=p.adSlotRenderer)==null?void 0:(l=y.fulfillmentContent)==null?void 0:l.fulfilledLayout,_.xZQ);return _.G(p==null?void 0:p.renderingContent,mdu)};
_.J.hasAllowedInstreamAd=function(p){p=this.get("adPlacements",p)||[];for(var y=0;y<p.length;y++){var l=this.get("adPlacementRenderer.config.adPlacementConfig",p[y]);if(l&&l.suppressDisplayAd)return!0}return!1};
_.J.computeHideUnlimitedOfferModule=function(p,y){return p&&p.offerModule&&y&&p.offerModule.unlimitedOfferModuleRenderer&&p.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(y)?!0:!1};
_.J.hideUnlimitedOfferModuleChanged=function(){var p=_.jR(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");p&&(p.hidden=this.hideUnlimitedOfferModule)};
_.J.updateLockupContainerTypes=function(p){if(this.eligibleToSwitchToGrid){var y;(y=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||y.forEach(function(l){l.containerType=p})}};
_.J.computeHideTvfilmOfferModule=function(p,y){var l,q;return!!((p==null?0:(l=p.offerModule)==null?0:(q=l.tvfilmOfferModuleRenderer)==null?0:q.clientShouldSuppressIfCompanionAdDisplayed)&&y&&this.hasCompanionAds(y))};
_.J.hideTvfilmOfferModuleChanged=function(){var p=_.jR(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");p&&(p.hidden=this.hideTvfilmOfferModule)};
_.J.hasCompanionAds=function(p){p=this.get("adPlacements",p)||[];for(var y=0;y<p.length;y++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",p[y]))return!0;var l=void 0,q=void 0,t=void 0;if(!_.n("web_watch_top_banner_companion_check_killswitch")&&((l=p[y])==null?0:(q=l.adPlacementRenderer)==null?0:(t=q.renderer)==null?0:t.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.J.hasSuppressedResults=function(p){return p==null?!0:p.filter(function(y){return!y.continuationItemRenderer&&!y.compactPromotedVideoRenderer&&!y.promotedSparklesWebRenderer}).length===0};
_.J.computeShowButton=function(p,y){return this.isWatchNextGrid?p:p||this.hasSuppressedResults(y)};
_.J.showButtonChanged=function(){if(this.isWatchNextGrid){var p=_.jR(this.hostElement).querySelector("ytd-rich-grid-renderer");p&&this.showButton!==null&&(p.continuationShowButton=this.showButton)}else{p=_.jR(this.hostElement).querySelector("yt-next-continuation");var y=_.jR(this.hostElement).querySelector("ytd-continuation-item-renderer"),l=_.jR(this.hostElement).querySelector("ytd-item-section-renderer");p&&(p.showButton=this.showButton);y&&(y.showButton=this.showButton);l&&(l.continuationShowButton=
this.showButton)}};
_.J.continuationTap=function(p){var y;if(((y=this.data)==null?void 0:y.continuations)!=null&&p.target.tagName==="TP-YT-PAPER-BUTTON")for(p=this.data.continuations,y=0;y<p.length;y++)p[y].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(p[y].nextContinuationData||{})};
_.J.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JC("shown-items-changed",this.shownItems))};
_.Jh.Object.defineProperties(Pi.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.shownItems)==null||!p.some(function(y){return!!y.lockupViewModel||y.compactVideoRenderer}))}}});
Pi.prototype.shownItemsChangedForBinding=Pi.prototype.shownItemsChangedForBinding;Pi.prototype.showButtonChanged=Pi.prototype.showButtonChanged;Pi.prototype.hideTvfilmOfferModuleChanged=Pi.prototype.hideTvfilmOfferModuleChanged;Pi.prototype.updateLockupContainerTypes=Pi.prototype.updateLockupContainerTypes;Pi.prototype.hideUnlimitedOfferModuleChanged=Pi.prototype.hideUnlimitedOfferModuleChanged;Pi.prototype.dataChanged=Pi.prototype.dataChanged;Pi.prototype.resultsChanged=Pi.prototype.resultsChanged;
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Pi.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.$G.YtLazyListBehavior),_.x("design:type",Object)],Pi.prototype,"ytLazyListBehavior",void 0);_.H([_.V(_.Eo.YtNextContinuationBehavior),_.x("design:type",Object)],Pi.prototype,"ytNextContinuationBehavior",void 0);
_.H([_.V(_.tP),_.x("design:type",Object)],Pi.prototype,"ytContinuationHandlerBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Pi.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Pi.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Pi.prototype,"playerData",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],Pi.prototype,"autoFill",void 0);_.H([_.Q({value:60}),_.x("design:type",Number)],Pi.prototype,"targetFramerate",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Pi.prototype,"isTwoColumns",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Pi.prototype,"hideOfferModules",void 0);_.H([_.Q(),_.x("design:type",Object)],Pi.prototype,"shownItems",void 0);_.H([_.Q({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.x("design:type",Boolean)],Pi.prototype,"hideUnlimitedOfferModule",void 0);
_.H([_.Q({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.x("design:type",Boolean)],Pi.prototype,"hideTvfilmOfferModule",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Pi.prototype,"watchFeedBigThumbs",void 0);_.H([_.Q(),_.x("design:type",Object)],Pi.prototype,"watchNextGridHideChips",void 0);_.H([_.Q(),_.x("design:type",Object)],Pi.prototype,"eligibleToSwitchToGrid",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Pi.prototype,"disableShortsShelfHeightOverride",void 0);_.H([_.Q({selector:_.pX,reflectToAttribute:!0}),_.x("design:type",Object)],Pi.prototype,"isGridViewEnabled",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Pi.prototype,"showMoreButton",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Pi.prototype,"isWatchNextGrid",void 0);
_.H([_.Q({computed:"computeShowButton(showMoreButton, data.results)"}),_.x("design:type",Boolean)],Pi.prototype,"showButton",void 0);_.H([_.k8("data.results.*"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pi.prototype,"resultsChanged",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pi.prototype,"dataChanged",null);
_.H([_.gd("hideUnlimitedOfferModule"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pi.prototype,"hideUnlimitedOfferModuleChanged",null);_.H([_.g("isGridViewEnabled","containsLockups","data"),_.Q({reflectToAttribute:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],Pi.prototype,"lockupContainerType",null);
_.H([_.gd("lockupContainerType","data"),_.x("design:type",Function),_.x("design:paramtypes",[Number]),_.x("design:returntype")],Pi.prototype,"updateLockupContainerTypes",null);_.H([_.gd("hideTvfilmOfferModule"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pi.prototype,"hideTvfilmOfferModuleChanged",null);_.H([_.gd("showButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pi.prototype,"showButtonChanged",null);
_.H([_.gd("shownItems"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pi.prototype,"shownItemsChangedForBinding",null);_.H([_.g("shownItems"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Pi.prototype,"containsLockups",null);
_.D(Pi,"ytd-watch-next-secondary-results-renderer",function(){if($d1===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);$d1=p}p=$d1;return p},{mode:1});
}catch(e){_._DumpException(e)}
try{
var YEa=function(p){if((p==null?void 0:p.value)===void 0||p==null||!p.unit)return"initial";a:{switch(p.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var y="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":y="%";break a}y=void 0}return y?""+p.value+y:"initial"},IzB=new _.uK("shoppingContentLineItemViewModel");var pQa=_.aF(function(p){var y=_.RF(p,{}).data;return _.R("yt-shopping-content-line-item-view-model",{class:_.ip("ytShoppingContentLineItemViewModelHost")},_.R(_.CF,{text:function(){var l;return(l=y().text)==null?void 0:l.attributedString}}))},"Uj");var yUB=_.aF(function(p){p=_.RF(p,{});var y=p.data;return _.R("yt-shopping-content-line-view-model",{class:_.ip("ytShoppingContentLineViewModelHost",p.className),style:_.NW({"--shopping-content-line-gap":function(){return y().itemGap?y().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return y().lineHeight?y().lineHeight+"px":void 0}})},_.R(_.rT,{each:function(){return(y().items||[]).map(function(l){return _.G(l,IzB)}).filter(function(l){return!!l})}},function(l){return _.R(pQa,{data:l})}))},"Vj");_.bp(_.aF(function(p){var y=_.RF(p,{}).data,l=function(){var t;return((t=y().image)==null?void 0:t.width)||40},q=function(){var t;
return((t=y().image)==null?void 0:t.height)||40};
return _.R("yt-shopping-timely-shelf-content-view-model",{class:_.ip("ytShoppingTimelyShelfContentViewModelHost"),style:_.NW({"--shopping-timely-shelf-content-padding-top":function(){var t;return YEa((t=y().padding)==null?void 0:t.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var t;return YEa((t=y().padding)==null?void 0:t.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var t;return YEa((t=y().padding)==null?void 0:t.start)},
"--shopping-timely-shelf-content-padding-end":function(){var t;return YEa((t=y().padding)==null?void 0:t.end)}})},_.R(_.W,{cond:function(){var t;
return(t=y().image)==null?void 0:t.image},
then:function(t){return _.R(_.W$,{preserveHeight:!0,preserveWidth:!0,width:l,height:q,data:t,alt:""})}}),_.R(_.di,{data:function(){return y().avatar}},{avatarViewModel:_.v5}),_.R("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.R(_.di,{data:function(){return y().line1}},{shoppingContentLineViewModel:function(t){return _.R(yUB,{data:t.data})}}),_.R(_.di,{data:function(){return y().line2}},{shoppingContentLineViewModel:function(t){return _.R(yUB,{data:t.data})}})),_.R("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},
_.R(_.rT,{each:function(){var t;
return(t=y().button)!=null?t:[]}},function(t){return _.R(_.di,{data:function(){return t}},{buttonViewModel:_.wZ})})))},"Wj"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.Co}});_.lHX={};
_.lHX.YtdWatchBehavior=[_.X.YtRendererBehavior,_.c8.YtPlayerListenerBehavior,_.bQ.YtRendererstamperBehavior,_.no.YtActionHandlerBehavior,_.A8.YtPageBehavior,_.FW.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.o4("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.n("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,reflectToAttribute:!0,value:function(){return _.n("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.o4("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)"},playerUnavailableFixedVisibility:{type:Boolean,reflectToAttribute:!0,value:function(){return _.n("web_watch_error_screen_fix")}},
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 _.n("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.n("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.UC("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.UC("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!_.n("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.n("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 _.n("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.n("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.n("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.n("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.n("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.n("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.n("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isTwoColumns_)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.n("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.n("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.n("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.n("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.n("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.n("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 _.n("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.n("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 _.n("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var p={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.lT(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.lT(["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"||_.n("swa_prov_panels_ks")?p.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(p.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},p.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return p},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var p=this;this.watchController=void 0;this.pageDisposeJobs=[function(){p.showMetadataPlaceholder_()},
function(){_.n("web_watch_dont_clear_comments")||p.clearComments_()},
function(){p.clearPlayerAds_()},
function(){p.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.n("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.n("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.kHu(function(){return _.UZ(p)},this.hostElement);
this.pageDisposeJobs.push(function(){p.youThereManager_.reset()});
_.n("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){p.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.Ag;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.n("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));_.n("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.MH(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(p){p&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:p}),p.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(p){_.n("kevlar_watch_flexy_theater_manager")&&(this.theater=p,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(p){!_.n("kevlar_watch_while_v2")&&!_.n("web_watch_pip")||p||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(p){this.active!==void 0&&(this.fullscreen=p,_.n("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(p){this.active!==void 0&&(_.Ub(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.n("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.n("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(p>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(p){this.initCsi_();this.updatePageData_(p)},
updatePageData_:function(p){var y=this;if(p)if(this.data===p){this.onPageLoadWithSameData_();var l;(l=this.watchController)==null||l.setWatchNextResponse(this.data)}else this.data=p;this.playlist&&_.xw({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.fy("nw");this.loading=!1;_.rJ(_.TR,function(){y.initDclkstatus_();var q,t=((q=y.player)==null?void 0:q.getVideoData().cpn)||"";_.P4f(function(E,e){_.lei(E,e,t)})})},
onPageLoadWithSameData_:function(){_.n("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var p=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!p);this.set("loadingData.playlistLoading",p&&p!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),p=this.watchNextSkeletonEl_.firstElementChild;p;)p.classList.remove("hidden"),p=p.nextElementSibling;if(_.n("kevlar_watch_frame0_loading_state")){var y,l,q;p=(y=this.loadingData)==null?void 0:(l=y.endpoint)==null?void 0:(q=l.watchEndpoint)==null?void 0:q.videoId;var t;p&&(t="https://i.ytimg.com/vi/"+p+"/frame0.jpg");_.jR(this.hostElement).querySelector("#player").style.backgroundImage=t?"url("+t+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var p=_.jR(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&p&&(p.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var y,l;(l=(y=this.watchMetadata).updateSentimentBarWidth)==
null||l.call(y);var q,t;(t=(q=this.watchMetadata).resize)==null||t.call(q)}_.n("kevlar_watch_frame0_loading_state")&&(_.jR(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(p){var y=_.jR(this.hostElement).querySelector(p);y?_.aJ(y,!1):_.vs(new _.SM("Overscroll monitor not found for component: ",p))},
removeSplitScrollMouseTrap:function(p){var y=_.jR(this.hostElement).querySelector(p);y?_.mO(y):_.vs(new _.SM("Disposal component for  overscroll monitoring not found: ",p))},
onLoadingChanged_:function(p){p?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.n("web_thumbnail_to_watch_transition")&&!_.Gwd||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.n("web_thumbnail_to_watch_transition")&&!_.Gwd||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(p){var y=this;p?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.TR.addLowPriorityJob(function(){y.onWindowResized_(_.Si(!0))})},
updateTheaterModeState_:function(p){if(!_.n("kevlar_watch_flexy_theater_manager")){p=p||this.fullWindowMode_;if(this.theater!==void 0||p)this.theater=p;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();p&&_.Lym()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();_.n("web_watch_error_screen_fix")&&this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var p=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.n("external_fullscreen")&&this.fullscreen&&(p=!0);_.n("web_watch_error_screen_fix")&&(p=this.fullBleedPlayer);p=p?_.jR(this.hostElement).querySelector("#player-full-bleed-container"):_.jR(this.hostElement).querySelector("#player-container-inner");var y=this.getPlayerContainer(),l=_.n("kevlar_watch_while_v2")||_.n("web_watch_pip");y.parentElement!==p&&(l&&this.isMiniplayerActive()?
this.deactivateMiniplayerAndResetPlayer():(_.UZ(this).appendTo(p,y),_.n("web_watch_error_screen_fix")||p.appendChild(_.jR(this.hostElement).querySelector("#error-screen"))))},
updateErrorScreenLocation:function(){var p=_.jR(this.hostElement).querySelector("#error-screen"),y=this.fullBleedPlayer?_.jR(this.hostElement).querySelector("#player-full-bleed-container"):_.jR(this.hostElement).querySelector("#player");p.parentElement!==y&&y.appendChild(p)},
deactivateMiniplayerAndResetPlayer:function(){var p=this;return _.h(function(y){if(y.nextAddress==1)return y.yield(_.WC().resolve(_.IA).deactivate(),2);p.updatePlayerLocation();_.rR(y)})},
updateCinematicsLocation:function(){var p=this.getElement("CINEMATICS");if(p){var y=this.getCinematicsLocationContainer();p.parentElement!==y&&y.appendChild(p);var l;(l=this.watchController)==null||l.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.enableFullBleedSingleColumnDefaultPlayer&&!this.isTwoColumns_)?_.jR(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.jR(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(p,y,l){var q=document.documentElement.hasAttribute("dark"),t=q&&_.n("web_cinematic_theater_mode"),E=q&&_.n("web_cinematic_fullscreen");q=!q&&this.cinematicLightTheme;return l||p&&t||y&&E||(y||p)&&q},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var p=this,y;(y=this.watchController)==null||y.setWatchNextResponse(this.data);_.n("kevlar_watch_flexy_comments_manager")||this.initComments_();_.n("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.WC().resolve(_.yh).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,_.n("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.TR.addLowPriorityJob(function(){_.jN(p.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.n("web_watch_start_chat_in_theater_mode")){var l,q,t;if((l=this.data)==null?0:(q=l.contents)==null?0:(t=q.twoColumnWatchNextResults)==null?0:t.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var E,e;((E=this.data)==null?0:(e=E.contents)==null?0:e.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(p){var y;(y=this.watchController)==null||y.setPlayerResponse(this.playerData);p&&p.playabilityStatus&&(y=this.isVideoPlayable_(p.playabilityStatus,this.getPlayerOverlays_(this.data)),p=this.isLiveStreamOffline_(p.playabilityStatus),y&&!p||_.th(this,function(){_.fy("pbu")}));
this.setPlayerAds_();_.jN(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(p,y){if((_.n("kevlar_watch_while_v2")||_.n("web_watch_pip"))&&this.playerData&&y)return this.playerData.videoDetails},
watchPageActiveChanged_:function(p){_.ei().dispatch(_.trX(this.active));p?this.activate_():this.deactivate_()},
attached:function(){var p=this;this.watchController=new _.NP(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.n("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var y=_.UZ(this);_.n("kevlar_disable_prepare_player")||
y.preparePlayer();_.n("kevlar_watch_flexy_playlist_manager")||_.WC().resolve(_.yh).setPlayer(y);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();y={"--ytd-watch-flexy-scrollbar-width":_.Io()+"px"};this.is==="ytd-watch-grid"&&(y["--ytd-watch-flexy-sidebar-width"]=_.maZ+"px",y["--ytd-watch-grid-horizontal-page-margins"]=_.Sb+"px",y["--ytd-watch-grid-columns-top-margins"]=_.R5a+"px",y["--ytd-watch-grid-min-player-height-medium"]="360px");!_.UC("kv_pl_mx_sz_ks")&&
_.UC("kevlar_watch_max_player_width")&&(y["--ytd-watch-flexy-max-player-width-wide-screen"]=_.UaX+"px");_.UC("kevlar_watch_flexy_metadata_height")&&(y["--ytd-watch-flexy-space-below-player"]=_.$au+"px");this.safeUpdateStyles(y);_.n("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.ce(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return p.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.jR(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var p=_.Io(),y=_.Fj+p,l=y;this.fixedPanels&&(y+=_.maZ);var q=657+p;p=1327+p;_.jR(this.hostElement).querySelector("#two-column-query").query="(min-width: "+y+"px)";_.jR(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(q+"px), (min-height: 630px) and (min-width: ")+(y+"px) and (max-width: ")+(p+"px)");_.jR(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(p+"px)");
_.jR(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+l+"px)"},
calculateCurrentPlayerSize_:function(){var p=_.jR(this.hostElement).querySelector("#miniplayer-bar").firstChild,y=this.squeezeback&&!_.n("web_watch_squeezeback_player_size_killswitch");return p&&p.active||this.theater||_.n("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||y||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.wV(NaN,NaN):_.xU(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.xU(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.er(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var p=this;this.onWindowResized_(_.Si());_.n("browse_skeleton_removal_on_watch_killswitch")||_.o4("IS_SHELL_LOAD")&&_.G$O();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var y=_.UZ(this);y.addEventListener("yt-player-updated",_.MH(this,this.onPlayerUpdated_));y.getPlayerPromise().then(function(l){p.playerApiReady_(l)});
_.n("kevlar_watch_flexy_playlist_manager")||(y=_.WC().resolve(_.yh),_.n("kevlar_watch_observe_playlist_navigations_killswitch")&&y.addEventListener("yt-navigate",_.MH(this,this.onYtNavigate_)),y.setPlaylistComponent(_.jR(this.hostElement).querySelector("#playlist")),y.addEventListener("yt-playlist-data-updated",_.MH(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.TR.addLowPriorityJob(function(){_.Ub(p.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.UZ(this).removeEventListener("yt-player-updated",_.MH(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.n("kevlar_watch_flexy_playlist_manager")){var p=_.WC().resolve(_.yh);_.n("kevlar_watch_observe_playlist_navigations_killswitch")&&p.removeEventListener("yt-navigate",_.MH(this,this.onYtNavigate_));
p.cancelVideoSkip();p.removeEventListener("yt-playlist-data-updated",_.MH(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.n("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Ub(this.hostElement,"yt-autonav-pause-player",!1);p=_.RJ();_.n("kevlar_exit_fullscreen_leaving_watch")&&p&&_.WW(p)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(p){this.player&&this.player.updateVideoData({rvs:p.rvs})},
getPageContents:function(p){return p&&p.contents&&p.contents.twoColumnWatchNextResults&&p.contents.twoColumnWatchNextResults.results&&p.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(p){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",p)},
onRetrieveLocation_:function(p,y){y.hasComments?y.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):y.locationRetrieved("/related_ajax",void 0);p.stopPropagation()},
onSubscriptionChanged_:function(p,y){this.player&&(y?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.Ph("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.jR(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.jR(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(p){this.player=p;this.setPlayerState(p.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.n("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.n("kevlar_unified_player")||_.n("kevlar_player_new_bootstrap_adoption"))&&_.t2()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(p,y){y=y===void 0?!0:y;_.RJ()&&_.n("external_fullscreen")&&_.WW(document.documentElement);this.theaterRequested_=p;y&&_.Kh("wide",p?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.$w(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Ub(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(p){_.X$(p,typeof this.player),this.player&&_.X$(p,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var p;((p=this.player)==null?0:p.isFullscreen())?this.player.toggleFullscreen():_.$w(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(p,y){return this.loading?y:!!Object.keys(p).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(p){if(p){p=_.c(p);for(var y=p.next();!y.done;y=p.next())y=y.value,y.youThereRenderer&&_.HSX(this.youThereManager_,y.youThereRenderer)}},
setPlaylistData_:function(p){return p||{}},
userEngagementConfigDataChanged_:function(p){if(p)if(p.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var y=this.youThereManager_;_.Rd()<p.lowEngagementThresholdMs||_.fzX(y,!0)}else p.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.$w(this.hostElement,"yt-autonav-pause-user-engagement",[p])},
isPlayerUnavailable_:function(p,y,l){return!!p&&!this.isVideoPlayable_(p,l)&&!y},
getPlayerOverlays_:function(p){return(p==null?void 0:p.playerOverlays)||null},
isVideoPlayable_:function(p,y){if(!p)return!1;var l=p.status==="OK"||p.status==="LIVE_STREAM_OFFLINE",q=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",p)||this.get("errorScreen.ypcTrailerRenderer",p);p=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",p);var t;y=y==null?void 0:(t=y.playerOverlayRenderer)==null?void 0:t.gatedActionsOverlayRenderer;return!!l||!!q||!!p||!!y},
hasWatchNextResponseErrorRenderer:function(p){var y=this.getPageContents(p),l,q,t,E,e;return!(p==null?0:(l=p.contents)==null?0:(q=l.twoColumnWatchNextResults)==null?0:q.secondaryResults)&&!!((t=y[0])==null?0:(E=t.itemSectionRenderer)==null?0:(e=E.contents[0])==null?0:e.backgroundPromoRenderer)},
isLiveStreamOffline_:function(p){return p?p.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(p,y,l){var q=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",y),t=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];t=_.n("web_no_skip_video_on_verification_checks")?(p==null?void 0:p.status)&&t.includes(p.status):p&&p.status==="AGE_CHECK_REQUIRED";var E=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",p);E==void 0&&(E=!0);!l||this.isVideoPlayable_(p,this.getPlayerOverlays_(y))||
q||t||!E||_.WC().resolve(_.yh).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.QYf()},
onPlayerFeedbackStartRequest_:function(p){_.$w(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:p}])},
onPlayerFeedbackArticleRequest_:function(p){_.$w(this.hostElement,"yt-help-dialog-requested",[p])},
onPlayerYpcContentRequest_:function(){var p,y,l,q,t,E,e,C,u=((p=this.data)==null?NaN:(y=p.contents)==null?NaN:(l=y.twoColumnWatchNextResults)==null?NaN:(q=l.secondaryResults)==null?NaN:(t=q.secondaryResults)==null?NaN:(E=t.offerModule)==null?NaN:(e=E.tvfilmOfferModuleRenderer)==null?NaN:(C=e.actionButtons)==null?NaN:C.length)-1;p=[".offerButton.buttonRenderer.",".actionButtons."+(u>=0?u:0)+".buttonRenderer."];y=_.c(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(l=y.next();!l.done;l=y.next())for(l=l.value,q=_.c(p),t=q.next();!t.done;t=q.next())if(t="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+l+t.value,t=this.get(t+"navigationEndpoint",this.data)||this.get(t+"serviceEndpoint",this.data)||this.get(t+"command",this.data)){_.iy(t,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(p){_.Ub(this.hostElement,"yt-autonav-pause-player",p)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(p){p()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(p){switch(p){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(p){switch(p){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Ub(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(p)},
setPlayerState:function(p){_.ei().dispatch(_.$wQ(p))},
onPlayerSubscribe_:function(p){_.$w(this.hostElement,"yt-player-subscribe",[p])},
onPlayerUnsubscribe_:function(p){_.$w(this.hostElement,"yt-player-unsubscribe",[p])},
onPlayerAdYtShowToast_:function(p){_.$w(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:p.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(p){if(p)return p},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.swatcherooBinaryLayout?this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue:this.isTwoColumns_?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowRichGridContinuationButton:function(){return this.is!=="ytd-watch-grid"?!1:this.commentTeaserEnabled?this.swatcherooBinaryLayout?!1:!this.commentsEntryPointHeaderRenderer:!this.isTwoColumns_},
computeShowExpandableMetadata:function(p){return!_.n("web_watch_move_summary_to_sd")&&!!p},
computeWatchMetadataRefresh:function(){return _.n("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.n("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var p,y,l,q;this.watchNextSecondaryResults=(p=this.data)==null?void 0:(y=p.contents)==null?void 0:(l=y.twoColumnWatchNextResults)==null?void 0:(q=l.secondaryResults)==null?void 0:q.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.n("swatcheroo_pbs_load_grid")&&!_.n("swatcheroo_provide_all_data_on_scheduled_job")){_.TR.cancelJob(this.setRichGridJobId_);var p,y,l,q,t,E,e;this.setRichGridRendererData((p=this.data)==null?void 0:(y=p.contents)==null?void 0:(l=y.twoColumnWatchNextResults)==null?void 0:(q=l.secondaryResults)==null?void 0:(t=q.secondaryResults)==null?void 0:(E=t.results)==null?void 0:(e=E[0])==null?
void 0:e.richGridRenderer)}},
setRichGridRendererData:function(p){this.richGridRendererData=p},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var p,y=(p=this.data)==null?void 0:p.engagementPanels;if(y==null?0:y.length){p=null;y=_.c(y);for(var l=y.next();!l.done;l=y.next()){l=l.value;var q=void 0;if(((q=l.engagementPanelSectionListRenderer)==null?void 0:q.targetId)==="engagement-panel-structured-description"){p=l;break}}var t,E,e;p=(t=p)==null?void 0:(E=t.engagementPanelSectionListRenderer)==null?void 0:(e=E.content)==null?void 0:e.structuredDescriptionContentRenderer;if(p==null?0:p.items){t=
[];E=_.c(p.items);for(e=E.next();!e.done;e=E.next()){e=e.value;if(!_.n("sd_horizontal_list_show_nav_killswitch")){var C=q=l=y=p=void 0,u=void 0,a=(p=e.horizontalCardListRenderer)==null?void 0:(y=p.header)==null?void 0:(l=y.richListHeaderRenderer)==null?void 0:(q=l.navigationButton)==null?void 0:(C=q.buttonRenderer)==null?void 0:(u=C.command)==null?void 0:u.commandExecutorCommand;a&&a.commands&&(a.commands=a.commands.filter(function(m){return!_.G(m,_.ii9)}))}(!e.expandableVideoDescriptionBodyRenderer&&
!e.videoDescriptionHeaderRenderer||_.n("web_delhi_colorful_sd"))&&t.push(e)}return{items:t}}}},
constructWarning_:function(p){return{text:_.EK(p),type:"WARNING"}},
isPlaShelfEnabled_:function(p){if((this.get("adPlacements",p)||[]).length)return!0;p=this.get("playerAds",p)||[];return!(!p.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",p[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var p=this;_.Ub(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.n("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var y=this.getScrollTop()>0;this.gestures_&&(y?this.gestures_.detach():this.gestures_.attach());y!==this.showFullerscreenEdu_&&_.n("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=y,_.UZ(this).getPlayerPromise().then(function(l){l.updateFullerscreenEduButtonVisibility(p.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Ub(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var p=this;this.commentsReady=!1;_.TR.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.rJ(_.TR,function(){p.setComments_()},1E3)},
setComments_:function(){if(!_.n("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.fy("cmi");_.TR.cancelJob(this.setCommentsJobId_);var p=this.getPageContents(this.data);if(p&&p.length){p=_.c(p);for(var y=p.next();!y.done;y=p.next())if(y=y.value,this.get("itemSectionRenderer.sectionIdentifier",y)==="comment-item-section"){this.comments=y.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Ub(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.n("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.n("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.fy("cmc")},
doRemoveComments_:function(){this.comments={};_.n("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.TR.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.TR.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(p,y){var l=_.G(y.endpoint,_.Eb);l&&(!(y=this.get("data.currentVideoEndpoint.watchEndpoint"))||l.videoId!==y.videoId||l.playlistId&&l.playlistId!==y.playlistId||l.index!==void 0&&l.index!==y.index||typeof l.startTimeSeconds!=="number"||(p.stopPropagation(),this.setScrollTop(0),_.UZ(this).getPlayerPromise().then(function(q){var t=l.startTimeSeconds;q.seekTo(t);q.wakeUpControls();t<q.getDuration()&&q.playVideo()})))},
updatePlayerStartTime_:function(){var p=_.W23();"t"in p&&(p=_.gPf(p.t),this.player.seekTo(p,!0))},
updateTitleFromWatchNext:function(p){p=this.getPageContents(p);var y,l;(p=_.JB(p==null?void 0:(y=p[0])==null?void 0:(l=y.videoPrimaryInfoRenderer)==null?void 0:l.title))&&_.Ub(this.hostElement,"yt-update-title",p)},
updateTitle_:function(p){p=this.get("videoDetails.title",p)||"";_.Ub(this.hostElement,"yt-update-title",p)},
syncWithRemoteVideo_:function(p,y,l){if(this.active&&this.player){var q=this.player.getVideoData();if(q.video_id===l&&(l=q.list,_.n("polymer_enable_mdx_queue")&&l&&l.startsWith("RQ")&&(l=void 0),q.video_id!==p||l!=y)){var t;_.n("kevlar_player_watch_endpoint_navigation")?t=_.D9c(_.Aql(p,y)):t=this.buildWatchEndpoint_(p,y);_.Ub(this.hostElement,"yt-navigate",{endpoint:t,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(p,y,l){return _.WV(p,y,l)},
initDclkstatus_:function(){_.Vrw()},
attachWatchPageSkeleton_:function(){var p=document.querySelector("#watch-page-skeleton");if(p){var y=p.querySelector("#primary-info"),l=p.querySelector("#secondary-info"),q=p.querySelector("#related");y&&_.jR(this.hostElement).querySelector("#info-skeleton").appendChild(y);l&&_.jR(this.hostElement).querySelector("#meta-skeleton").appendChild(l);q&&(_.jR(this.hostElement).querySelector("#related-skeleton").appendChild(q),this.watchNextSkeletonEl_=q);_.Qy(p)}},
handlePlayerUpdated_:function(){_.UZ(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(p,y){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof y!=="undefined"){var l=this.watchNextSkeletonEl_.children,q=p&&p.indexSplices.length?p.indexSplices[0].index:0;p=Math.min(this.watchNextShownItems.length,l.length);y||(q=0,p=l.length);for(y=q;y<p;y++)l[y].classList.add("hidden")}},
onPlayerFullscreenChange_:function(p){_.n("external_fullscreen")||_.$w(this.hostElement,"yt-player-fullscreen",[p.fullscreen])},
onFullscreenChange_:function(p){this.fullscreen=p;this.gestures_&&this.gestures_.update(this.fullscreen);var y=_.UZ(this);y.getPlayerPromise().then(function(l){l.setFauxFullscreen(!!_.RJ())});
this.updateFullBleedElementLocations();p&&(y.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(p,y){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!y},
computeIsDonationShelfCollapsed_:function(p){return p},
computeShouldShowMerchShelf:function(p,y){return y&&!!p},
computeResponseHasComments:function(p){var y,l,q,t,E;return!!(p==null?0:(y=p.contents)==null?0:(l=y.twoColumnWatchNextResults)==null?0:(q=l.results)==null?0:(t=q.results)==null?0:(E=t.contents)==null?0:E.some(function(e){var C;return(e==null?void 0:(C=e.itemSectionRenderer)==null?void 0:C.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(p,y,l,q){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&q?!1:!!p&&!!Object.keys(p).length&&!y},
identity:_.Dt,onWindowResized_:function(p){this.windowSize_=p;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.n("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(p){var y=this;p&&p.type!=="dataloaded"&&p.type!=="dataupdated"||_.UZ(this).getPlayerPromise().then(function(l){var q=l.getPlayerState();q!==5&&q!==0&&(l=1/l.getVideoAspectRatio(),y.videoHeightToWidthRatio_!==l&&(y.videoHeightToWidthRatio_=l))})},
schedulePlayerSizeUpdate_:function(p){var y=this,l=_.n("kevlar_watch_while_v2")||_.n("web_watch_pip"),q=function(){if(y.watchMetadata){var t,E;(E=(t=y.watchMetadata).resize)==null||E.call(t)}_.UZ(y).getPlayerPromise().then(function(e){if(_.n("kevlar_set_internal_player_size")){if(!l||!y.isMiniplayerActive()){var C=y.calculateCurrentPlayerSize_();e.setInternalSize(C.width,C.height)}}else e.setSize(NaN,NaN);_.n("kevlar_watch_while")&&y.updateWatchWhileScrollThreshold_()})};
p?q():_.Xp(_.TR,q)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(p){this.set("data.survey",p.detail)},
onYtShowSurveyCommand_:function(p){this.set("data.survey",_.G(p,_.L2f).survey)},
onDownloadedVideoDeleted:function(p){var y=this,l,q;return _.h(function(t){if(t.nextAddress==1){if(!y.active||(l=y.playerData)==null||!l.offlineState||y.videoId!==p)return t.return();(q=y.player)==null||q.stopVideo();_.Sy().navigatingAwayFromWatchDeletedVideo=!0;_.iy(_.eYa,y.hostElement);return t.yield(_.Sy().navigationFinishPromise,2)}_.Sy().navigatingAwayFromWatchDeletedVideo=!1;_.rR(t)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var p;this.theater?p=_.OP(.5625*this.windowSize_.width,480,this.windowSize_.height-185):p=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==p&&(this.watchWhileScrollThreshold_=p,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var p=_.jR(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&p){var y=this.windowSize_.height>=624,l=this.active?this.getScrollTop():0;!p.active&&y&&l>=this.watchWhileScrollThreshold_?(p.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):p.active&&(!y||l<this.watchWhileScrollThreshold_&&!_.RJ())&&(p.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var p=_.jR(this.hostElement).querySelector("#secondary-inner");if(p){var y=_.jR(this.hostElement).querySelector("#below"),l=_.jR(this.hostElement).querySelector("#secondary"),q=_.jR(this.hostElement).querySelector("#comments");q&&l&&y&&(this.defaultTwoColumnLayout?(p.appendChild(q),l.appendChild(p)):(y.appendChild(q),_.i3(y,p)))}}},
isTwoColumnsChanged_:function(p,y){if(p!==!0||y!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(p=_.jR(this.hostElement).querySelector("#secondary-inner"))){y=_.jR(this.hostElement).querySelector("#below");var l=_.jR(this.hostElement).querySelector("#secondary"),q=_.jR(this.hostElement).querySelector("#comments");q&&l&&y&&(this.isTwoColumns_?(p.appendChild(q),l.appendChild(p)):(y.appendChild(q),
_.i3(y,p)))}}else{p=!_.n("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);y=_.jR(this.hostElement).querySelector("#panels");var t=_.jR(this.hostElement).querySelector("#alerts");l=_.jR(this.hostElement).querySelector("#playlist");q=_.jR(this.hostElement).querySelector("#related");var E=_.jR(this.hostElement).querySelector("#donation-shelf"),e=_.jR(this.hostElement).querySelector("#comments");this.isTwoColumns_?(t=_.jR(this.hostElement).querySelector("#secondary-inner"),
p&&(t.appendChild(y),t.appendChild(l)),t.appendChild(E),t.appendChild(q)):(p&&(_.vZ(y,t),_.vZ(l,t)),_.vZ(E,t),e&&_.vZ(q,e));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.n("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.n("web_watch_enable_fs_squeezeback_panels")&&_.n("web_watch_theater_chat")){var p=_.jR(this.hostElement).querySelector("#chat-container"),y=this.theater&&!this.fullscreen||_.n("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&y?(y=_.jR(this.hostElement).querySelector("#columns"),(p==null?void 0:p.parentElement)!==y&&y.append(p),this.fixedPanels=!0):(this.fixedPanels=
!1,y=_.jR(this.hostElement).querySelector("#playlist"),p&&y?_.Xd(p,y):_.vs(new _.SM("Missing element when updating chat location",{"chatContainer defined":!!p,"playlist defined":!!y})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(p,y){return _.n("sw_metadata_vis_toggle_ks")?!0:!!p||!!y},
computeForceDarkPanelTheme:function(p){return _.n("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&p:!1},
safeUpdateStyles:function(p){try{_.Ax(this.hostElement,p)}catch(y){_.vs(y)}},
videoHeightToWidthRatioChanged_:function(p,y){y&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(p){this.videoHeightToWidthRatio_=1/p},
computeIsVerticalVideo_:function(p){return p>=1},
computeIsFourThreeToSixteenNineVideo_:function(p){return p<=.7501&&p>=.5624},
computeIsExtraWideVideo_:function(p){return p<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.UZ(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.UZ(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.vPa(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(p){var y=_.Qh(p)||0;_.gB(p,y+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var p=_.Qh("yt-fullerscreen-edu-button-click-count")||0,y=_.Qh("yt-fullerscreen-edu-button-shown-count")||0,l=_.UC("external_fullscreen_button_shown_threshold"),q=p>=_.UC("external_fullscreen_button_click_threshold")||y>=l;_.UZ(this).getPlayerPromise().then(function(t){t.updateFullerscreenEduButtonSubtleModeState(q)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(p,y){return y},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.WC().resolve(_.yh).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var p=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.TR.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.TR.addLowPriorityJob(function(){p.fullHeightPanelPositionUpdateJobId=0;var y=_.jR(p.hostElement).querySelector("#secondary"),l=_.jR(p.hostElement).querySelector("#fixed-secondary");y=y.getBoundingClientRect();var q=y.width;p.swatcherooSqueezeback&&
(q+=_.Sb);if(p.swatcherooSqueezeback){var t=_.jR(p.hostElement).querySelector("#squeezeback-constraining-container");t.style.width=q+"px";t.style.flex="0 0 "+q+"px"}l.style.width=q+"px";l.style.left=y.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var p=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.TR.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.TR.addLowPriorityJob(function(){p.panelMaxHeightUpdateJob_=0;var y;!p.isTwoColumns_||p.theater||p.fullscreen?y=460:y=p.calculateNormalPlayerSize_().height;var l=y+"px";_.n("live_chat_taller_height")&&!p.theater&&(l="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.n("live_chat_medium_height")&&!p.theater&&(l="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.n("live_chat_scaled_height")&&!p.theater&&(l="calc(100vh - var(--ytd-toolbar-height) - 238px)");p.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":y+"px","--ytd-watch-flexy-chat-max-height":l,"--ytd-watch-flexy-structured-description-max-height":y+"px","--ytd-watch-flexy-comments-panel-max-height":y+"px","--ytd-comments-engagement-panel-content-height":y+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(p){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",p)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Gf(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(p){var y=_.jR(this.hostElement).querySelector("#engagement-panel-scrim");p?y.addEventListener("tap",_.MH(this,this.onEngagementPanelScrimClick_)):y.removeEventListener("tap",_.MH(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(p){if(this.hostElement.contains(p)&&!this.scrollToAnimation_.isAnimating()){var y=p.offsetTop-24;p=p.offsetTop+p.offsetHeight+24;var l=this.getPageScrollingElement(),q=this.getScrollTop(),t=q+l.clientHeight-56;if(y<q+56)y-=56;else if(p>t)y=p-l.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,y),500)}},
onYtSignalActionScrollToComments:function(){var p=this.hostElement.querySelector("#comments");if(p&&!this.scrollToAnimation_.isAnimating()){p=p.offsetTop-56-24;if(_.n("kevlar_comment_teaser_scroll_to_midpoint")&&(p-=_.iz().height/3,p<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,p),500)}},
onYtEngagementPanelVisibleChanged:function(p,y,l){if(this.active&&this.trackEngagementPanelVisibility&&!_.SE3.includes(l)){if(y==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.jN(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var q=_.WC().resolve(_.H8);this.visiblePanelIdentifiers_.forEach(function(t){t!==l&&q.hidePanel(t)})}this.visiblePanelIdentifiers_.add(l)}y!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&y!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(l);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(p){return p?"":"watch-active-metadata"},
computeNewMetadataClass:function(p){return p?"watch-active-metadata":""},
computeFullBleedPlayer:function(p,y,l){return _.n("web_watch_error_screen_fix")?_.n("external_fullscreen")&&p||y||this.enableFullBleedSingleColumnDefaultPlayer&&!l:p||y||this.enableFullBleedSingleColumnDefaultPlayer&&!l},
computeDefaultLayout:function(p){return!p},
computeDefaultTwoColumnLayout:function(p,y){return!p&&y},
updatePanelsLocation:function(){if(_.n("web_watch_enable_fs_squeezeback_panels")&&this.isAttached){var p=_.jR(this.hostElement).querySelector("#below"),y=_.jR(this.hostElement).querySelector("#panels"),l=_.jR(this.hostElement).querySelector("#playlist"),q=_.jR(this.hostElement).querySelector("#chat-container"),t=_.jR(this.hostElement).querySelector("#panels-full-bleed-container"),E=_.jR(this.hostElement).querySelector("#secondary-inner"),e=this.fullscreen||this.theater&&this.iMaxTheaterMode,C=this.theater&&
!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;e?(t.appendChild(y),t.appendChild(q),t.appendChild(l)):this.isTwoColumns_?(C?(p=_.jR(this.hostElement).querySelector("#columns"),(q==null?void 0:q.parentElement)!==p&&p.append(q),this.fixedPanels=!0):_.i3(E,q),_.i3(E,y),_.i3(E,l)):(p.appendChild(y),p.appendChild(q),p.appendChild(l))}},
swatcherooUpdatePanelsLocation:function(p,y,l,q,t,E){if(this.is==="ytd-watch-grid"){y=p&&!y;this.swatcherooSplitScroll&&(y?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));l=_.jR(this.hostElement).querySelector("#panels");var e=_.jR(this.hostElement).querySelector("#playlist"),C=_.jR(this.hostElement).querySelector("#fixed-secondary"),u=_.jR(this.hostElement).querySelector("#fixed-below"),
a=_.jR(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),m=_.jR(this.hostElement).querySelector("#chat-container");E&&(p?C.appendChild(l):u.appendChild(l));t?p?C.appendChild(m):u.appendChild(m):_.Xd(m,a);q?p?C.appendChild(e):u.appendChild(e):_.Xd(e,a);this.swatcherooSplitScroll&&(p=_.jR(this.hostElement).querySelector("#secondary"),q=_.jR(this.hostElement).querySelector("#columns"),t=_.jR(this.hostElement).querySelector("#fixed-columns-secondary"),y?
t.appendChild(p):q.appendChild(p))}},
computeMetadataSkinnyMode:function(p,y,l){return this.is!=="ytd-watch-grid"?!1:p?l:y},
computeWatchWhilePanelsActive:function(p,y){return p||y},
computeNoBorderOnChat:function(p){return _.n("web_watch_theater_chat_no_border")&&p},
computeLiveChatPresentAndExpanded:function(p,y){return p&&!y},
computePanelExpanded:function(p,y,l){return p||y||l},
computeSqueezeback:function(p,y,l,q){if(_.n("web_watch_enable_fs_squeezeback_panels")){var t=this.iMaxTheaterMode&&this.theater;return(p||y||l)&&(q||t)}},
computeSwatcherooSqueezeback:function(p,y,l){return this.is!=="ytd-watch-grid"||_.n("ww_squeezeback_killswitch")?!1:p&&y&&l},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(p){_.UZ(this).getPlayerPromise().then(function(y){var l;(l=y.changeMarkerVisibility)==null||l.call(y,_.G(p,_.Bc).isVisible||!1,_.G(p,_.Bc).entityKeys||[],_.G(p,_.Bc).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(p){this.liveChatCollapsed=p.detail;_.ei().dispatch(_.rq6(p.detail));if(!this.liveChatCollapsed&&this.squeezeback){var y=_.WC().resolve(_.H8);this.visiblePanelIdentifiers_.forEach(function(l){y.hidePanel(l)})}},
onSetPlaylistCollapsed:function(p){_.n("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!p)},
provideRenderingData:function(p,y){switch(p){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=y;break;case "PRIMARY_INFO":_.n("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=y);this.videoPrimaryInfoRendererValue=y==null?void 0:y.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.n("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=y);this.videoSecondaryInfoRendererValue=y==null?void 0:y.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
y;break;case "CLARIFICATION":this.clarifyBoxValue=y;break;case "LIVE_CHAT":this.conversationBar=y;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=y;break;case "PLAYLIST":this.externalPlaylistData_=y!=null?y:{};break;case "MERCH_SHELF":this.merchShelfValue=y==null?void 0:y.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=y;break;case "TICKET_SHELF":this.ticket=y;break;case "OFFER_MODULE":this.offerModule=y;break;case "LIMITED_STATE":this.limitedStateValue=
y;break;case "DONATION_SHELF":this.donation=y;break;case "ALERTS":this.alertsValue=y;break;case "COMMENTS":this.comments=y;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=y;break;case "ENGAGEMENT_PANELS":this.engagementPanels=y;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=y;break;case "RICH_GRID_RENDERER":this.richGridRendererData=y;break;case "EXPANDABLE_METADATA":this.expandableMetadata=y;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
y;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=y}},
toggleCinematicsActive:function(p){this.cinematicsActive=p},
isMiniplayerActive:function(){return _.WC().resolve(_.IA).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var EHw;_.tWu=function(p){if(!(0,_.sm_)(p))throw Error("K``"+String(p));};
_.JKO=function(p){return p.findIndex(function(y){return EHw.indexOf(y.tagName)>-1})>-1};
_.cKV=function(){var p=_.WC().resolve(_.LI);_.Pyg(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(p.isFullscreenEnabled()?_.WW(document.documentElement):_.ofL(document.documentElement))};
EHw=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.bO=new Map;_.bO.set(32,59972);_.bO.set(27,50765);_.bO.set(70,60102);_.bO.set(76,60221);_.bO.set(77,60222);_.bO.set(74,60223);_.bO.set(84,60224);_.bO.set(38,61941);_.bO.set(40,61942);_.bO.set(73,62521);_.bO.set(67,62522);_.bO.set(80,63390);_.bO.set(78,63397);_.bO.set(75,59972);_.bO.set(188,63385);_.bO.set(190,63384);_.bO.set(36,63387);
_.bO.set(35,63386);_.bO.set(37,63388);_.bO.set(39,63389);_.bO.set(79,63423);_.bO.set(87,63424);_.bO.set(107,63426);_.bO.set(109,63425);_.bO.set(65,63428);_.bO.set(83,63430);_.bO.set(68,63429);_.bO.set(221,63431);_.bO.set(219,63432);_.bO.set(97,63439);_.bO.set(98,63440);_.bO.set(99,63441);_.bO.set(100,63442);_.bO.set(101,63443);_.bO.set(102,63444);_.bO.set(103,63445);_.bO.set(104,63446);_.bO.set(105,63447);_.nA=new Map;_.nA.set(80,63390);_.nA.set(78,63397);_.nA.set(188,63400);_.nA.set(190,63401);
_.nA.set(191,60765);_.nA.set(13,247917);_.GQ=new Map;_.Pd=new Map;
}catch(e){_._DumpException(e)}
try{
var qru,EJV,JUV,cUd;_.Izd=function(p){return p.ui.guideIsVisibleButNotPersistent};
_.pQO=function(p){return p.ui.tabGesturesIsActive};
_.yUd=function(){var p=_.$h("service_worker_scope");try{return navigator.serviceWorker.getRegistration(p)}catch(y){return Promise.reject(y)}};
_.lHw=function(p){return!(!p||!p.pushManager)};
qru=function(){return _.yUd().then(_.lHw).catch(function(){return!1})};
_.seA=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?qru():Promise.resolve(!1)};
_.thV=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
EJV=function(){var p,y,l;return _.h(function(q){switch(q.nextAddress){case 1:return q.yield(_.B4.getInstance(),2);case 2:p=q.yieldResult;if(!p){y=void 0;q.jumpTo(3);break}return q.yield(p.get("lmqf"),4);case 4:y=q.yieldResult;case 3:switch((l=y)||(l="SD"),l){case "HD":return q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
JUV=function(p){var y,l,q;return _.h(function(t){if(t.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.n("disable_av1_setting")){var E=window.localStorage["yt-player-av1-pref"];E=E==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":E==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else E="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(y=p===E)return t.jumpTo(2);q=l=p;return t.yield(EJV(),3)}t.nextAddress!=2&&(y=q===t.yieldResult);return t.return(y)})};var emi;var hmi=_.Dr.IronButtonState,Cb7=(0,_.kd)(HTMLElement);
_.fv({_template:function(){if(emi!==void 0)return emi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" aria-hidden="true" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;cUd===void 0&&(cUd=document.createElement("template"));var q=cUd;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return emi=p},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[hmi,_.k0,_.HG,_.BG],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},fitInto:{type:Object}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(p){var y=(0,_.Q2)(this);y.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:p});y.shadowRoot.appendChild(p);return Cb7.prototype._attachDom.call(this,p)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var p=this.contentElement;p&&p.selectedItem&&this._setSelectedItem(p.selectedItem)},
get contentElement(){for(var p=_.FK(this.$.content).getDistributedNodes(),y=0,l=p.length;y<l;y++)if(p[y].nodeType===Node.ELEMENT_NODE)return p[y]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(p){this._setSelectedItem(p.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(p){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p)===this&&this.open()},
_selectedItemChanged:function(p){var y="";p?y=p.label||p.getAttribute("label")||p.textContent.trim():y="";this.value=y;this._setSelectedItemLabel(y)},
_computeMenuVerticalOffset:function(p,y){return y?y:p?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var p=this.opened?"true":"false",y=this.contentElement;y&&y.setAttribute("aria-expanded",p)}});_.uT=new _.uK("navigateAction");var uIw=new _.uK("formRenderer");var R0=function(){var p=_.FA.apply(this,arguments)||this;p.showInput=!1;return p};
_.A(R0,_.FA);_.J=R0.prototype;_.J.detached=function(){this.showInput&&window.removeEventListener("click",_.MH(this,this.closeOnOutsideClick_))};
_.J.stopPropagation_=function(p){this.showInput&&p.stopPropagation()};
_.J.closeOnOutsideClick_=function(p){this.closeOnOutsideClickCondition(p)&&(this.showInput=!1,window.removeEventListener("click",_.MH(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.J.closeOnOutsideClickCondition=function(){return!0};
_.J.closeOnOutsideClickHandler=function(){};
_.J.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.MH(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.J.openOnClickHandler=function(){};
_.J.showInputChanged=function(){};
_.J.setShowInput=function(p){this.showInput=p};
R0.prototype.setShowInput=R0.prototype.setShowInput;R0.prototype.showInputChanged=R0.prototype.showInputChanged;R0.prototype.openOnClickHandler=R0.prototype.openOnClickHandler;R0.prototype.openOnClick_=R0.prototype.openOnClick_;R0.prototype.closeOnOutsideClickHandler=R0.prototype.closeOnOutsideClickHandler;R0.prototype.closeOnOutsideClickCondition=R0.prototype.closeOnOutsideClickCondition;R0.prototype.closeOnOutsideClick_=R0.prototype.closeOnOutsideClick_;R0.prototype.stopPropagation_=R0.prototype.stopPropagation_;
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],R0.prototype,"showInput",void 0);_.H([_.VU("click"),_.VU("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],R0.prototype,"stopPropagation_",null);_.H([_.gd("showInput"),_.x("design:type",Function),_.x("design:paramtypes",[Boolean]),_.x("design:returntype")],R0.prototype,"showInputChanged",null);_.H([_.Lv()],R0);_.RmO=[R0.prototype];var WuR;var aHd;var Wq=function(){return _.w.apply(this,arguments)||this};
_.A(Wq,_.w);_.J=Wq.prototype;_.J.computePreselectedOption=function(p,y){return y===this.itemSelected_?p:void 0};
_.J.dataChanged_=function(){var p=this;this.preselectedSubreason=this.itemSelected_=-1;var y;(y=this.data)!=null&&y.key&&_.th(this,function(){var l,q=Number((l=p.data)==null?void 0:l.key);!Number.isNaN(q)&&(p.itemSelected_=q,l=(l=(p.data.items||[])[q])&&l.optionSelectableItemRenderer&&l.optionSelectableItemRenderer.preselectedIndex)&&(p.preselectedSubreason=l)})};
_.J.isSubReasonHidden_=function(p,y){return p!=y};
_.J.onTopItemSelected_=function(p,y){for(var l=_.jR(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),q=0,t=l.length;q<t;q++)l[q].select(0);_.$w(this.hostElement,"yt-report-form-update",[y.item.value]);p.stopPropagation()};
_.J.onItemSelected_=function(p,y){_.$w(this.hostElement,"yt-report-form-update",[y.item.value]);p.stopPropagation()};
_.J.getItem_=function(p){return p.serviceItem?p.serviceItem:p.navigationItem?p.navigationItem:p.optionSelectableItemRenderer?p.optionSelectableItemRenderer:null};
_.J.computeText_=function(p){return(p=this.getItem_(p))?this.ytRendererBehavior.getSimpleString(p.text):null};
_.J.validate=function(){return this.itemSelected_!==-1};
_.J.computeAriaLabel_=function(p){var y=_.JB(p.text);(p=p.accessibility&&p.accessibility.accessibilityData&&p.accessibility.accessibilityData.label)&&(y+=". "+p);return y};
_.J.computeItemSelected_=function(p){return p};
_.J.preventSelection_=function(p){p.stopPropagation();this.tooltipTapped=!0};
_.J.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.J.updateItemSelectedFromBinding=function(p){this.itemSelected_=p.detail.value};
_.J.save=function(){var p;this.validate()&&(p=this.data)!=null&&p.items&&(p=this.data.items[this.itemSelected_],p!=null&&p.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(p.optionSelectableItemRenderer.submitEndpoint)||_.ny(this.hostElement,[p.optionSelectableItemRenderer.submitEndpoint])))};
Wq.prototype.onPaperRippleTransitionEnd_=Wq.prototype.onPaperRippleTransitionEnd_;Wq.prototype.dataChanged_=Wq.prototype.dataChanged_;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Wq.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Wq.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Wq.prototype,"data",void 0);_.H([_.Q({value:-1}),_.x("design:type",Number)],Wq.prototype,"itemSelected_",void 0);
_.H([_.Q({computed:"computeItemSelected_(itemSelected_)"}),_.x("design:type",Number)],Wq.prototype,"value",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Wq.prototype,"restoreFocusOnClose",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Wq.prototype,"tooltipTapped",void 0);_.H([_.Q({value:-1}),_.x("design:type",Number)],Wq.prototype,"preselectedSubreason",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wq.prototype,"dataChanged_",null);_.H([_.VU("transitionend"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wq.prototype,"onPaperRippleTransitionEnd_",null);_.H([_.z9({is:"yt-options-renderer",disableElementRegistration:!0})],Wq);
_.D(Wq,"yt-options-renderer",function(){if(aHd===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.menus.yt_options_renderer.yt.options.renderer.css.js--\x3e<div id="options-select" class="style-scope yt-options-renderer">\n  <tp-yt-paper-radio-group id="yt-options-renderer-options" selected="[[itemSelected_]]" on-iron-select="onTopItemSelected_" on-selected-changed="updateItemSelectedFromBinding" class="style-scope yt-options-renderer">\n    <template is="dom-repeat" items="[[data.items]]" class="style-scope yt-options-renderer">\n      <tp-yt-paper-radio-button class="radio style-scope yt-options-renderer" aria-label$="[[computeAriaLabel_(item.optionSelectableItemRenderer)]]" name$="[[index]]" value="[[item.optionSelectableItemRenderer]]">\n        <div class="content style-scope yt-options-renderer">\n          <div class="text style-scope yt-options-renderer">\n            <yt-formatted-string text="[[item.optionSelectableItemRenderer.text]]" class="style-scope yt-options-renderer">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtext style-scope yt-options-renderer" hidden="[[!item.optionSelectableItemRenderer.subtext]]" text="[[item.optionSelectableItemRenderer.subtext]]">\n            </yt-formatted-string>\n          </div>\n          <template is="dom-if" if="[[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]" class="style-scope yt-options-renderer">\n            <div class="info-container style-scope yt-options-renderer" on-tap="preventSelection_">\n              <yt-icon icon="yt-icons:help_outline" size="16" class="style-scope yt-options-renderer"></yt-icon>\n              <tp-yt-paper-tooltip animation-delay="0" class="style-scope yt-options-renderer">\n                [[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]\n              </tp-yt-paper-tooltip>\n            </div>\n          </template>\n        </div>\n      </tp-yt-paper-radio-button>\n      <template is="dom-if" if="[[item.optionSelectableItemRenderer.subOptions]]" class="style-scope yt-options-renderer">\n        <tp-yt-paper-dropdown-menu aria-label$="[[item.optionSelectableItemRenderer.subOptionsAccessibility.label]]" hidden="[[isSubReasonHidden_(index, itemSelected_)]]" no-label-float="" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-select="onItemSelected_" class="style-scope yt-options-renderer">\n          <tp-yt-paper-listbox class="dropdown-content style-scope yt-options-renderer" slot="dropdown-content" selected="[[computePreselectedOption(preselectedSubreason, index)]]">\n            <template is="dom-repeat" items="[[item.optionSelectableItemRenderer.subOptions]]" as="subOption" class="style-scope yt-options-renderer">\n              <tp-yt-paper-item value="[[getItem_(subOption)]]" class="style-scope yt-options-renderer">\n                [[computeText_(subOption)]]\n              </tp-yt-paper-item>\n            </template>\n         </tp-yt-paper-listbox>\n        </tp-yt-paper-dropdown-menu>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;WuR===void 0&&(WuR=document.createElement("template"));var q=WuR;l.call(y,q.content.cloneNode(!0),p.content.firstChild);aHd=p}p=aHd;return p},{mode:2});var mAi;var UAw;var $A7;var je9;var brV;var nJm;var a0=function(){return _.w.apply(this,arguments)||this};
_.A(a0,_.w);a0.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
a0.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
a0.prototype.onTap=function(p){if(this.hostElement.classList.contains("selected")||_.bl(this.hostElement,"yt-share-panel-can-select-contact-action"))p&&p.detail&&(p.detail.x||p.detail.y)&&_.jR(this.hostElement).querySelector("#target").blur(),(p=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),p={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:p?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.$w(this.hostElement,"yt-share-panel-select-contact-action",[p])};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],a0.prototype,"ytRendererBehavior",void 0);_.H([_.Q({observer:"onDataChanged"}),_.x("design:type",Object)],a0.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.x("design:type",String)],a0.prototype,"componentTitle",void 0);_.H([_.rd("#thumbnail"),_.x("design:type",Object)],a0.prototype,"thumbnail",void 0);_.H([_.z9({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],a0);
_.D(a0,"yt-enrolled-contact-renderer",function(){if(nJm===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-enrolled-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_enrolled_contact_renderer.yt.enrolled.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-enrolled-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-enrolled-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-enrolled-contact-renderer"></div>\n  <div id="name" class="style-scope yt-enrolled-contact-renderer">[[componentTitle]]</div>\n</button>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;brV===void 0&&(brV=document.createElement("template"));var q=brV;l.call(y,q.content.cloneNode(!0),p.content.firstChild);nJm=p}p=nJm;return p},{mode:2});var GPV;var Pbd;var mM=function(){return _.w.apply(this,arguments)||this};
_.A(mM,_.w);mM.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
mM.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
mM.prototype.onTap=function(p){if(this.hostElement.classList.contains("selected")||_.bl(this.hostElement,"yt-share-panel-can-select-contact-action"))p&&p.detail&&(p.detail.x||p.detail.y)&&_.jR(this.hostElement).querySelector("#target").blur(),(p=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),p={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:p?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.$w(this.hostElement,"yt-share-panel-select-contact-action",[p])};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);_.H([_.Q({observer:"onDataChanged"}),_.x("design:type",Object)],mM.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.x("design:type",String)],mM.prototype,"componentTitle",void 0);_.H([_.rd("#thumbnail"),_.x("design:type",Object)],mM.prototype,"thumbnail",void 0);_.H([_.z9({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],mM);
_.D(mM,"yt-suggested-contact-renderer",function(){if(Pbd===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-suggested-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_suggested_contact_renderer.yt.suggested.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-suggested-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.avatar.thumbnail]]" class="style-scope yt-suggested-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-suggested-contact-renderer"></div>\n  <div id="name" class="style-scope yt-suggested-contact-renderer">[[componentTitle]]</div>\n</button>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;GPV===void 0&&(GPV=document.createElement("template"));var q=GPV;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Pbd=p}p=Pbd;return p},{mode:2});var UO=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-share-panel-reset-action":"onReset"};return p};
_.A(UO,_.w);UO.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"}}}}}};
UO.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.$w(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
UO.prototype.onReset=function(){for(var p=_.jR(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),y=p.length-1;y>=0;y--)p[y].classList.toggle("selected")};
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],UO.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],UO.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q({observer:"onDataChanged"}),_.x("design:type",Object)],UO.prototype,"data",void 0);
_.H([_.z9({is:"yt-contact-section-renderer",disableElementRegistration:!0})],UO);
_.D(UO,"yt-contact-section-renderer",function(){if(je9===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-contact-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_contact_section_renderer.yt.contact.section.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-contact-section-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-contact-section-renderer">\n</yt-formatted-string>\n<div id="contents" role="listbox" class="style-scope yt-contact-section-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;$A7===void 0&&($A7=document.createElement("template"));var q=$A7;l.call(y,q.content.cloneNode(!0),p.content.firstChild);je9=p}p=je9;return p},{mode:2});var $p=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return p};
_.A($p,_.w);_.J=$p.prototype;_.J.configureRendererStamper=function(){return{"data.fields":{id:"fields",mapping:{textInputFormFieldRenderer:{component:"yt-text-input-form-field-renderer",params:{required:!0},properties:{hideLabel:"[[data.hideLabels]]"}},toggleFormFieldRenderer:{component:"yt-toggle-form-field-renderer"},optionsRenderer:"yt-options-renderer",contactSectionRenderer:"yt-contact-section-renderer"}}}};
_.J.onYtRefreshFormCommand=function(p){var y;(p=_.G((y=_.G(p,_.pPQ))==null?void 0:y.formRenderer,uIw))&&this.set("data",p)};
_.J.reset=function(){var p=_.jR(this.hostElement).querySelector("#fields").children;p=_.c(p);for(var y=p.next();!y.done;y=p.next())y=y.value,y.reset&&y.reset()};
_.J.getForm=function(){var p={},y=_.jR(this.hostElement).querySelector("#fields").children;y=_.c(y);for(var l=y.next();!l.done;l=y.next()){l=l.value;if(!l.validate())return null;p[l.data.key]=l.value}return p};
_.J.submitFormFields=function(){if(this.fields)for(var p=_.c(this.fields),y=p.next();!y.done;y=p.next())y=y.value,y.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?y.save():y.nodeName==="YT-OPTIONS-RENDERER"&&y.save()};
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],$p.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],$p.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],$p.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],$p.prototype,"data",void 0);_.H([_.SR("#fields > *"),_.x("design:type",Array)],$p.prototype,"fields",void 0);
_.H([_.z9({is:"yt-form-renderer",disableElementRegistration:!0})],$p);
_.D($p,"yt-form-renderer",function(){if(UAw===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.forms.yt_form_renderer.yt.form.renderer.css.js--\x3e<div id="fields" class="style-scope yt-form-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;mAi===void 0&&(mAi=document.createElement("template"));var q=mAi;l.call(y,q.content.cloneNode(!0),p.content.firstChild);UAw=p}p=UAw;return p},{mode:2});var AU1;var jv=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return p};
_.A(jv,_.w);jv.prototype.onCheckboxChange=function(p){this.data&&(p=(this.checked=_.cm(p).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.WC().resolve(_.aK).resolveCommand(p,{form:{element:this.hostElement}})};
jv.prototype.handleUpdateCheckboxCommand=function(p){(p=_.G(p,_.mDi))&&this.data&&this.data.id===p.id&&(this.set("data.disabled",p.disabled),this.set("data.title",p.title))};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],jv.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],jv.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],jv.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Boolean)],jv.prototype,"checked",void 0);_.H([_.k({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],jv);
_.D(jv,"ytd-settings-checkbox-renderer",function(){if(AU1!==void 0)return AU1;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-checkbox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-option" class="style-scope ytd-settings-checkbox-renderer">\n  <tp-yt-paper-checkbox id="checkbox" aria-label$="[[getSimpleString(data.title)]]" checked="[[data.enabled]]" disabled="[[data.disabled]]" on-change="onCheckboxChange" class="style-scope ytd-settings-checkbox-renderer">\n    <div id="checkbox-container" class="style-scope ytd-settings-checkbox-renderer"></div>\n    <div id="checkbox-label" class="style-scope ytd-settings-checkbox-renderer">\n      <yt-formatted-string id="label" split-lines="" text="[[data.title]]" class="style-scope ytd-settings-checkbox-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-checkbox>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-checkbox-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-checkbox-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return AU1=p},{mode:1});var Zri;var bT=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return p};
_.A(bT,_.w);bT.prototype.dataChanged=function(){var p=this,y;return _.h(function(l){if(l.nextAddress==1)return p.radio.removeAttribute("checked"),!p.data||!p.data.id||p.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.thV()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(y=p.data&&p.data.id)?l.yield(JUV(p.data.id),4):l.jumpTo(3):(p.set("data.hidden",!0),l.jumpTo(0));l.nextAddress!=3&&(y=l.yieldResult);y&&_.$w(p.hostElement,"yt-select-settings-radio-option",[p.data.id]);_.rR(l)})};
bT.prototype.onButtonChanged=function(p){_.cm(p).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.WC().resolve(_.aK).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.$w(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
bT.prototype.onSelectOption=function(p){this.data&&this.data.id&&(this.data.id===p?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
bT.prototype.dataChanged=bT.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],bT.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],bT.prototype,"ytActionHandlerBehavior",void 0);_.H([_.rd("#radio"),_.x("design:type",Object)],bT.prototype,"radio",void 0);_.H([_.Q(),_.x("design:type",Object)],bT.prototype,"data",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],bT.prototype,"dataChanged",null);_.H([_.k({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],bT);
_.D(bT,"ytd-settings-radio-option-renderer",function(){if(Zri!==void 0)return Zri;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="start" class="style-scope ytd-settings-radio-option-renderer">\n  <tp-yt-paper-radio-button id="radio" aria-label$="[[getSimpleString(data.title)]]" hidden="[[data.hidden]]" on-change="onButtonChanged" class="style-scope ytd-settings-radio-option-renderer">\n    <div id="label" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.title)]]</div>\n  </tp-yt-paper-radio-button>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-radio-option-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="3" position="top" class="style-scope ytd-settings-radio-option-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n<div id="end" class="style-scope ytd-settings-radio-option-renderer">\n  <div id="aside-text" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.asideText)]]</div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Zri=p},{mode:1});var MhT;var nV=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return p};
_.A(nV,_.w);
nV.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"}}}};
nV.prototype.handleUpdateTextCommand=function(p){(p=_.G(p,_.UDx))&&this.data&&this.data.id===p.id&&this.set("data",p)};
nV.prototype.handleUpdateConnectedAppRendererCommand=function(p){if(_.G(p,_.b2Z)&&this.data){var y,l;if(p=(y=_.G(p,_.b2Z))==null?void 0:(l=y.newConnectedAppRenderer)==null?void 0:l.connectedAppRenderer)this.data=p}};
nV.prototype.computeConnectedAppStyle=function(p){return p.style?p.style.toLowerCase().replace(/_/g,"-"):""};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],nV.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],nV.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],nV.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],nV.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.x("design:type",String)],nV.prototype,"connectedAppStyle",void 0);_.H([_.k({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],nV);
_.D(nV,"ytd-connected-app-renderer",function(){if(MhT!==void 0)return MhT;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-connected-app-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-connected-app-renderer"></yt-img-shadow>\n<div id="app" class="style-scope ytd-connected-app-renderer">\n  <div id="app-info" class="style-scope ytd-connected-app-renderer">\n    <div id="title" class="style-scope ytd-connected-app-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-formatted-string id="text" force-default-style="" split-lines="" text="[[data.text]]" class="style-scope ytd-connected-app-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-row" class="style-scope ytd-connected-app-renderer">\n    <div id="button-container" hidden="[[!data.connectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="connect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n    <div id="button-container" hidden="[[!data.disconnectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="disconnect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return MhT=p},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.TH("iuT5Oc");

_.xP();
}catch(e){_._DumpException(e)}
try{
_.TH("L3n37");
var emw=function(p){return p.watch.isLearningJourneyActive},hmw=_.fY(115994),CbO=_.fY(115993),uIX=function(p,y,l){var q=this;
var t=l.dragDownAction;this.layer=0;this.JSC$22861_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return q.dragDownAction()}}}};
this.JSC$22861_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return q.dragDownAction()}}}};
this.fullscreen=!1;var E=_.Ll();_.gz(E,hmw,this.layer);_.gz(E,CbO,this.layer);this.dragDownAction=function(){t();_.EZ(E,{visualElement:q.fullscreen?hmw:CbO})};
this.gesture=new _.ep(p,y,this.JSC$22861_watchConfig,"pandown");this.attach()};
uIX.prototype.attach=function(){this.gesture.attach()};
uIX.prototype.detach=function(){this.gesture.detach()};
uIX.prototype.update=function(p){this.fullscreen=p;this.gesture.config=p?this.JSC$22861_watchFullScreenConfig:this.JSC$22861_watchConfig};var Rma=function(p){_.jS.call(this);var y=this;this.rootElement=p;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return y.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(l){y.initOrDisposeActiveModules(l)}));
this.onAttached()};
_.A(Rma,_.jS);_.J=Rma.prototype;_.J.getRoot=function(){return this.rootElement};
_.J.getElement=function(p){return this.rootElement.getElement(p)};
_.J.setPlayerResponse=function(p){this.playerResponse=p;this.publish("PLAYER_RESPONSE_UPDATED",p)};
_.J.getPlayerResponse=function(){return this.playerResponse};
_.J.setWatchNextResponse=function(p){this.watchNextResponse===p?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=p,this.publish("WATCH_NEXT_RESPONSE_UPDATED",p))};
_.J.getWatchNextResponse=function(){return this.watchNextResponse};
_.J.registerActionHandler=function(p,y){var l=this;if(_.n("web_watch_controller_reg_multiple_handlers_killswitch")){var q={};_.y2(_.pt.getInstance(),(q[p]=y,q),this.getRoot())}else this.actionHandlers.has(p)||(this.actionHandlers.set(p,[]),q={},_.y2(_.pt.getInstance(),(q[p]=function(){var t=_.oX.apply(0,arguments);return(l.actionHandlers.get(p)||[]).map(function(E){return E.apply(null,_.xq(t))})},q),this.getRoot())),this.actionHandlers.get(p).push(y)};
_.J.unregisterActionHandler=function(p){if(_.n("web_watch_controller_reg_multiple_handlers_killswitch")){var y={};_.lX(_.pt.getInstance(),(y[p]=!0,y),this.getRoot())}else(y=this.actionHandlers.get(p))?(y.pop(),y.length===0&&(y={},_.lX(_.pt.getInstance(),(y[p]=!0,y),this.getRoot()),this.actionHandlers.delete(p))):_.vs(new _.SM("Attempted to unregister an action handler which is not registered.",p))};
_.J.addPageDisposeJob=function(p){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.f8(this.rootElement.pageDisposeJobs,p)};
_.J.removePageDisposeJob=function(p){this.rootElement.pageDisposeJobs&&_.Oc(this.rootElement.pageDisposeJobs,p)};
_.J.dispatchEvent=function(p,y){_.Ub(this.rootElement,p,y)};
_.J.provideRenderingData=function(p,y){this.rootElement.provideRenderingData(p,y)};
_.J.scrollWatchTo=function(p,y){var l;(l=this.watchScrollManager)==null||l.scrollWatchTo(p,y)};
_.J.focusOnPlayer=function(){var p=this.getElement("PLAYER");_.th(p,function(){if(p&&p.firstElementChild){var y=p.querySelector(".html5-video-player");y&&(_.aw(_.WC().resolve(_.Xf)),y.focus())}else _.vs(Error("zo"))})};
_.J.updateCinematicFullscreenConfig=function(){var p=!!this.rootElement.theater,y=!!this.rootElement.fullscreen,l;(l=this.watchCinematicManager)==null||_.wf(l,y,p)};
_.J.subscribeToActiveChanged=function(p,y){y=y===void 0?!0:y;var l=_.Lw(_.ei(),emw,function(q){p(q)});
y&&p(emw(_.ei().getState()));return l};
_.J.isActive=function(){return emw(_.ei().getState())};
_.J.onAttached=function(){var p=_.n("external_fullscreen");_.n("use_unified_flag_accessor")&&(p=_.WC().resolve(_.yE1).retriever.getFlag(_.cUM));(p||_.o4("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.J.initPersistentModules=function(){if(_.n("kevlar_watch_flexy_theater_manager")){var p=new _.wHX(this);_.P9(this,p)}p=new _.mQw(this);_.P9(this,p);p=new _.VV(this);_.P9(this,p);p=new _.F8(this);_.P9(this,p);p=new _.f7f(this);_.P9(this,p);p=new _.QV(this);_.P9(this,p);_.n("kevlar_watch_flexy_playlist_manager")&&(p=new _.dQ6(this),_.P9(this,p))};
_.J.initOrDisposeActiveModules=function(p){p?(this.watchScrollManager=new _.kU(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.KJf(this)),this.activeModules.push(new _.FwZ(this)),this.activeModules.push(new _.p9f(this)),this.activeModules.push(new _.Li(this)),_.n("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.DmX(this)),this.activeModules.push(new _.LJf(this)),_.n("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.lzB(this)),
_.n("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.dNX(this)),_.n("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Ihw(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.n("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.H0E(this)),_.n("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.WJw(this)),p=_.n("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.n("kevlar_watch_flexy_comments_manager")&&!p&&this.activeModules.push(new _.e$f(this)),_.n("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.gf(this)),this.activeModules.push(new _.DNl(this)),this.activeModules.push(new _.i0B(this)),_.n("web_enable_timely_actions")&&this.activeModules.push(new _.BRm(this)),_.n("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.uDf(this)),_.n("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.q8X(this)),
_.n("web_fullscreen_components")&&this.activeModules.push(new _.Bua(this)),_.n("web_player_rtr_ctrls")&&this.activeModules.push(new _.Wbf(this))):(_.hq(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.J.disposeInternal=function(){_.jS.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Jh.Object.defineProperties(Rma.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var Wu6={},aHZ=["learning-journey-engagement-panel","PAlearning_chat"];
Wu6.YtdLearningJourneyWatchBehavior=[_.X.YtRendererBehavior,_.c8.YtPlayerListenerBehavior,_.bQ.YtRendererstamperBehavior,_.no.YtActionHandlerBehavior,_.A8.YtPageBehavior,_.FW.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},
learningJourneyEngagementPanels:{type:Object,computed:"getLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},nonLearningJourneyEngagementPanels:{type:Object,computed:"getNonLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},clarifyBoxValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},
limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},
externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.o4("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.n("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 _.o4("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 _.n("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.n("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.n("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
richItemMinWidth:{type:Number,value:function(){return _.UC("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.UC("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.n("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.n("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 _.n("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.n("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.n("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.n("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.n("web_watch_rounded_player_large")||_.n("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},trackEngagementPanelVisibility:{type:Boolean,
value:function(){return _.n("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.n("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.n("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 _.n("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.n("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.lT(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.lT(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var p=this;this.watchController=void 0;this.pageDisposeJobs=[function(){p.showMetadataPlaceholder_()},
function(){_.n("web_watch_dont_clear_comments")||p.clearComments_()},
function(){p.clearPlayerAds_()},
function(){p.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.n("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.n("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.kHu(function(){return _.UZ(p)},this.hostElement);
this.pageDisposeJobs.push(function(){p.youThereManager_.reset()});
_.n("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){p.resetFullerscreenEduButtonForNewPlayback_()}));
_.n("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.Ag;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;_.n("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.n("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));_.n("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.MH(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(p){p&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:p}),p.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(p){_.n("kevlar_watch_flexy_theater_manager")&&(this.theater=p,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.n("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(p){!_.n("kevlar_watch_while_v2")&&!_.n("web_watch_pip")||p||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(p){this.active!==void 0&&(this.fullscreen=p,_.n("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(p){this.active!==void 0&&(_.Ub(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.n("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.n("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(p>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(p){this.initCsi_();this.updatePageData_(p)},
updatePageData_:function(p){var y=this;if(p)if(this.data===p){this.onPageLoadWithSameData_();var l;(l=this.watchController)==null||l.setWatchNextResponse(this.data)}else this.data=p;this.playlist&&_.xw({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.fy("nw");this.loading=!1;_.rJ(_.TR,function(){y.initDclkstatus_();var q,t=((q=y.player)==null?void 0:q.getVideoData().cpn)||"";_.P4f(function(E,e){_.lei(E,e,t)})})},
onPageLoadWithSameData_:function(){_.n("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var p=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!p);this.set("loadingData.playlistLoading",p&&p!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),p=this.watchNextSkeletonEl_.firstElementChild;p;)p.classList.remove("hidden"),p=p.nextElementSibling;var y,l,q;p=(y=this.loadingData)==null?void 0:(l=y.endpoint)==null?void 0:(q=l.watchEndpoint)==null?void 0:q.videoId;var t;p&&(t="https://i.ytimg.com/vi/"+p+"/frame0.jpg");_.jR(this.hostElement).querySelector("#player").style.backgroundImage=t?"url("+t+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var p=_.jR(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&p&&(p.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var y,l;(l=(y=this.watchMetadata).updateSentimentBarWidth)==
null||l.call(y);var q,t;(t=(q=this.watchMetadata).resize)==null||t.call(q)}_.jR(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(p){var y=_.jR(this.hostElement).querySelector(p);y?_.aJ(y,!1):_.vs(new _.SM("Overscroll monitor not found for component: ",p))},
removeSplitScrollMouseTrap:function(p){var y=_.jR(this.hostElement).querySelector(p);y?_.mO(y):_.vs(new _.SM("Disposal component for  overscroll monitoring not found: ",p))},
onLoadingChanged_:function(p){p?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(p){var y=this;p?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.TR.addLowPriorityJob(function(){y.onWindowResized_(_.Si(!0))})},
updateTheaterModeState_:function(p){if(!_.n("kevlar_watch_flexy_theater_manager")){p=p||this.fullWindowMode_;if(this.theater!==void 0||p)this.theater=p;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();p&&_.Lym()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var p=this.theater;_.n("external_fullscreen")&&this.fullscreen&&(p=!0);p=p?_.jR(this.hostElement).querySelector("#player-full-bleed-container"):_.jR(this.hostElement).querySelector("#player-container-inner");var y=this.getPlayerContainer(),l=_.n("kevlar_watch_while_v2")||_.n("web_watch_pip");y.parentElement!==p&&(l&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.UZ(this).appendTo(p,y),p.appendChild(_.jR(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var p=this;return _.h(function(y){if(y.nextAddress==1)return y.yield(_.WC().resolve(_.IA).deactivate(),2);p.updatePlayerLocation();_.rR(y)})},
updateCinematicsLocation:function(){var p=this.getElement("CINEMATICS");if(p){var y=this.getCinematicsLocationContainer();p.parentElement!==y&&y.appendChild(p);var l;(l=this.watchController)==null||l.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.jR(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.jR(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(p,y){var l=document.documentElement.hasAttribute("dark"),q=l&&_.n("web_cinematic_theater_mode"),t=l&&_.n("web_cinematic_fullscreen");l=!l&&this.cinematicLightTheme;return p&&q||y&&t||(y||p)&&l},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var p;(p=this.watchController)==null||p.setWatchNextResponse(this.data);_.n("kevlar_watch_flexy_comments_manager")||this.initComments_();_.n("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.WC().resolve(_.yh).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.n("web_watch_start_chat_in_theater_mode")){var y,
l,q;if((y=this.data)==null?0:(l=y.contents)==null?0:(q=l.twoColumnWatchNextResults)==null?0:q.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var t,E;((t=this.data)==null?0:(E=t.contents)==null?0:E.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(p){var y;(y=this.watchController)==null||y.setPlayerResponse(this.playerData);p&&p.playabilityStatus&&(y=this.isVideoPlayable_(p.playabilityStatus,this.getPlayerOverlays_(this.data)),p=this.isLiveStreamOffline_(p.playabilityStatus),y&&!p||_.th(this,function(){_.fy("pbu")}));
this.setPlayerAds_();_.jN(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(p){_.ei().dispatch(_.$y({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));p?this.activate_():this.deactivate_()},
attached:function(){var p=this;this.watchController=new Rma(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.n("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var y=_.UZ(this);_.n("kevlar_disable_prepare_player")||y.preparePlayer();_.n("kevlar_watch_flexy_playlist_manager")||_.WC().resolve(_.yh).setPlayer(y);this.updatePageMediaQueries();y={"--ytd-watch-flexy-scrollbar-width":_.Io()+
"px"};!_.UC("kv_pl_mx_sz_ks")&&_.UC("kevlar_watch_max_player_width")&&(y["--ytd-watch-flexy-max-player-width-wide-screen"]=_.UaX+"px");_.UC("kevlar_watch_flexy_metadata_height")&&(y["--ytd-watch-flexy-space-below-player"]=_.$au+"px");this.safeUpdateStyles(y);_.n("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new uIX(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return p.onPlayerTouchPanDown_()}}));
_.n("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.jR(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var p=_.Io(),y=_.Fj+p,l=y;this.fixedPanels&&(y+=_.maZ);var q=657+p;p=1327+p;_.jR(this.hostElement).querySelector("#two-column-query").query="(min-width: "+y+"px)";_.jR(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(q+"px), (min-height: 630px) and (min-width: ")+(y+"px) and (max-width: ")+(p+"px)");_.jR(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(p+"px)");
_.jR(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+l+"px)"},
calculateCurrentPlayerSize_:function(){var p=_.jR(this.hostElement).querySelector("#miniplayer-bar").firstChild;return p&&p.active||this.theater||_.n("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.wV(NaN,NaN):_.xU(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.xU(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.er(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var p=this;this.onWindowResized_(_.Si());_.n("browse_skeleton_removal_on_watch_killswitch")||_.o4("IS_SHELL_LOAD")&&_.G$O();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var y=_.UZ(this);y.addEventListener("yt-player-updated",_.MH(this,this.onPlayerUpdated_));y.getPlayerPromise().then(function(l){p.playerApiReady_(l)});
_.n("kevlar_watch_flexy_playlist_manager")||(y=_.WC().resolve(_.yh),_.n("kevlar_watch_observe_playlist_navigations_killswitch")&&y.addEventListener("yt-navigate",_.MH(this,this.onYtNavigate_)),y.setPlaylistComponent(_.jR(this.hostElement).querySelector("#playlist")),y.addEventListener("yt-playlist-data-updated",_.MH(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.TR.addLowPriorityJob(function(){_.Ub(p.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.UZ(this).removeEventListener("yt-player-updated",_.MH(this,this.onPlayerUpdated_));if(!_.n("kevlar_watch_flexy_playlist_manager")){var p=_.WC().resolve(_.yh);_.n("kevlar_watch_observe_playlist_navigations_killswitch")&&p.removeEventListener("yt-navigate",_.MH(this,this.onYtNavigate_));p.cancelVideoSkip();p.removeEventListener("yt-playlist-data-updated",_.MH(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.n("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Ub(this.hostElement,"yt-autonav-pause-player",!1);p=_.RJ();_.n("kevlar_exit_fullscreen_leaving_watch")&&p&&_.WW(p)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(p){this.player&&this.player.updateVideoData({rvs:p.rvs})},
getPageContents:function(p){return p&&p.contents&&p.contents.twoColumnWatchNextResults&&p.contents.twoColumnWatchNextResults.results&&p.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(p){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",p)},
onRetrieveLocation_:function(p,y){y.hasComments?y.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):y.locationRetrieved("/related_ajax",void 0);p.stopPropagation()},
onSubscriptionChanged_:function(p,y){this.player&&(y?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.Ph("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.jR(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.jR(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(p){this.player=p;this.setPlayerState(p.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.n("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.n("kevlar_unified_player")||_.n("kevlar_player_new_bootstrap_adoption"))&&_.t2()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(p,y){y=y===void 0?!0:y;_.RJ()&&_.n("external_fullscreen")&&_.WW(document.documentElement);this.theaterRequested_=p;y&&_.Kh("wide",p?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.n("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.$w(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Ub(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(p){_.X$(p,typeof this.player),this.player&&_.X$(p,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var p;((p=this.player)==null?0:p.isFullscreen())?this.player.toggleFullscreen():_.$w(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(p,y){return this.loading?y:!!Object.keys(p).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(p){if(p){p=_.c(p);for(var y=p.next();!y.done;y=p.next())y=y.value,y.youThereRenderer&&_.HSX(this.youThereManager_,y.youThereRenderer)}},
setPlaylistData_:function(p){return p||{}},
userEngagementConfigDataChanged_:function(p){if(p)if(p.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var y=this.youThereManager_;_.Rd()<p.lowEngagementThresholdMs||_.fzX(y,!0)}else p.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.$w(this.hostElement,"yt-autonav-pause-user-engagement",[p])},
isPlayerUnavailable_:function(p,y,l){return!!p&&!this.isVideoPlayable_(p,l)&&!y},
getPlayerOverlays_:function(p){return(p==null?void 0:p.playerOverlays)||null},
isVideoPlayable_:function(p,y){if(!p)return!1;var l=p.status==="OK"||p.status==="LIVE_STREAM_OFFLINE",q=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",p)||this.get("errorScreen.ypcTrailerRenderer",p);p=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",p);var t;y=y==null?void 0:(t=y.playerOverlayRenderer)==null?void 0:t.gatedActionsOverlayRenderer;return!!l||!!q||!!p||!!y},
hasWatchNextResponseErrorRenderer:function(p){var y=this.getPageContents(p),l,q,t,E,e;return!(p==null?0:(l=p.contents)==null?0:(q=l.twoColumnWatchNextResults)==null?0:q.secondaryResults)&&!!((t=y[0])==null?0:(E=t.itemSectionRenderer)==null?0:(e=E.contents[0])==null?0:e.backgroundPromoRenderer)},
isLiveStreamOffline_:function(p){return p?p.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(p,y,l){var q=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",y),t=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];t=_.n("web_no_skip_video_on_verification_checks")?(p==null?void 0:p.status)&&t.includes(p.status):p&&p.status==="AGE_CHECK_REQUIRED";var E=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",p);E==void 0&&(E=!0);!l||this.isVideoPlayable_(p,this.getPlayerOverlays_(y))||
q||t||!E||_.WC().resolve(_.yh).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.QYf()},
onPlayerFeedbackStartRequest_:function(p){_.$w(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:p}])},
onPlayerFeedbackArticleRequest_:function(p){_.$w(this.hostElement,"yt-help-dialog-requested",[p])},
onPlayerYpcContentRequest_:function(){var p,y,l,q,t,E,e,C,u=((p=this.data)==null?NaN:(y=p.contents)==null?NaN:(l=y.twoColumnWatchNextResults)==null?NaN:(q=l.secondaryResults)==null?NaN:(t=q.secondaryResults)==null?NaN:(E=t.offerModule)==null?NaN:(e=E.tvfilmOfferModuleRenderer)==null?NaN:(C=e.actionButtons)==null?NaN:C.length)-1;p=[".offerButton.buttonRenderer.",".actionButtons."+(u>=0?u:0)+".buttonRenderer."];y=_.c(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(l=y.next();!l.done;l=y.next())for(l=l.value,q=_.c(p),t=q.next();!t.done;t=q.next())if(t="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+l+t.value,t=this.get(t+"navigationEndpoint",this.data)||this.get(t+"serviceEndpoint",this.data)||this.get(t+"command",this.data)){_.iy(t,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(p){_.Ub(this.hostElement,"yt-autonav-pause-player",p)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(p){p()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(p){switch(p){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(p){switch(p){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Ub(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(p)},
setPlayerState:function(p){_.ei().dispatch(_.$wQ(p))},
onPlayerSubscribe_:function(p){_.$w(this.hostElement,"yt-player-subscribe",[p])},
onPlayerUnsubscribe_:function(p){_.$w(this.hostElement,"yt-player-unsubscribe",[p])},
onPlayerAdYtShowToast_:function(p){_.$w(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:p.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(p){if(p)return p},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(p){return!_.n("web_watch_move_summary_to_sd")&&!!p},
computeWatchMetadataRefresh:function(){return _.n("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var p,y,l,q;this.watchNextSecondaryResults=(p=this.data)==null?void 0:(y=p.contents)==null?void 0:(l=y.twoColumnWatchNextResults)==null?void 0:(q=l.secondaryResults)==null?void 0:q.secondaryResults}},
setRichGridRendererData:function(p){this.richGridRendererData=p},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var p,y=(p=this.data)==null?void 0:p.engagementPanels;if(y==null?0:y.length){p=null;y=_.c(y);for(var l=y.next();!l.done;l=y.next()){l=l.value;var q=void 0;if(((q=l.engagementPanelSectionListRenderer)==null?void 0:q.targetId)==="engagement-panel-structured-description"){p=l;break}}var t,E,e;p=(t=p)==null?void 0:(E=t.engagementPanelSectionListRenderer)==null?void 0:(e=E.content)==null?void 0:e.structuredDescriptionContentRenderer;if(p==null?0:p.items){t=
[];E=_.c(p.items);for(e=E.next();!e.done;e=E.next()){e=e.value;if(!_.n("sd_horizontal_list_show_nav_killswitch")){var C=q=l=y=p=void 0,u=void 0,a=(p=e.horizontalCardListRenderer)==null?void 0:(y=p.header)==null?void 0:(l=y.richListHeaderRenderer)==null?void 0:(q=l.navigationButton)==null?void 0:(C=q.buttonRenderer)==null?void 0:(u=C.command)==null?void 0:u.commandExecutorCommand;a&&a.commands&&(a.commands=a.commands.filter(function(m){return!_.G(m,_.ii9)}))}e.expandableVideoDescriptionBodyRenderer||
e.videoDescriptionHeaderRenderer||t.push(e)}return{items:t}}}},
constructWarning_:function(p){return{text:_.EK(p),type:"WARNING"}},
isPlaShelfEnabled_:function(p){if((this.get("adPlacements",p)||[]).length)return!0;p=this.get("playerAds",p)||[];return!(!p.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",p[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var p=this;_.Ub(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.n("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var y=this.getScrollTop()>0;this.gestures_&&(y?this.gestures_.detach():this.gestures_.attach());y!==this.showFullerscreenEdu_&&_.n("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=y,_.UZ(this).getPlayerPromise().then(function(l){l.updateFullerscreenEduButtonVisibility(p.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Ub(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var p=this;this.commentsReady=!1;_.TR.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.rJ(_.TR,function(){p.setComments_()},1E3)},
setComments_:function(){if(!_.n("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.fy("cmi");_.TR.cancelJob(this.setCommentsJobId_);var p=this.getPageContents(this.data);if(p&&p.length){p=_.c(p);for(var y=p.next();!y.done;y=p.next())if(y=y.value,this.get("itemSectionRenderer.sectionIdentifier",y)==="comment-item-section"){this.comments=y.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Ub(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.n("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.n("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.fy("cmc")},
doRemoveComments_:function(){this.comments={};_.n("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.TR.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.TR.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(p,y){var l=_.G(y.endpoint,_.Eb);l&&(!(y=this.get("data.currentVideoEndpoint.watchEndpoint"))||l.videoId!==y.videoId||l.playlistId&&l.playlistId!==y.playlistId||l.index!==void 0&&l.index!==y.index||typeof l.startTimeSeconds!=="number"||(p.stopPropagation(),this.setScrollTop(0),_.UZ(this).getPlayerPromise().then(function(q){var t=l.startTimeSeconds;q.seekTo(t);q.wakeUpControls();t<q.getDuration()&&q.playVideo()})))},
updatePlayerStartTime_:function(){var p=_.W23();"t"in p&&(p=_.gPf(p.t),this.player.seekTo(p,!0))},
updateTitleFromWatchNext:function(p){p=this.getPageContents(p);var y,l;(p=_.JB(p==null?void 0:(y=p[0])==null?void 0:(l=y.videoPrimaryInfoRenderer)==null?void 0:l.title))&&_.Ub(this.hostElement,"yt-update-title",p)},
updateTitle_:function(p){p=this.get("videoDetails.title",p)||"";_.Ub(this.hostElement,"yt-update-title",p)},
syncWithRemoteVideo_:function(p,y,l){if(this.active&&this.player){var q=this.player.getVideoData();if(q.video_id===l&&(l=q.list,_.n("polymer_enable_mdx_queue")&&l&&l.startsWith("RQ")&&(l=void 0),q.video_id!==p||l!=y)){var t;_.n("kevlar_player_watch_endpoint_navigation")?t=_.D9c(_.Aql(p,y)):t=this.buildWatchEndpoint_(p,y);_.Ub(this.hostElement,"yt-navigate",{endpoint:t,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(p,y,l){return _.WV(p,y,l)},
initDclkstatus_:function(){_.Vrw()},
attachWatchPageSkeleton_:function(){var p=document.querySelector("#watch-page-skeleton");if(p){var y=p.querySelector("#primary-info"),l=p.querySelector("#secondary-info"),q=p.querySelector("#related");y&&_.jR(this.hostElement).querySelector("#info-skeleton").appendChild(y);l&&_.jR(this.hostElement).querySelector("#meta-skeleton").appendChild(l);q&&(_.jR(this.hostElement).querySelector("#related-skeleton").appendChild(q),this.watchNextSkeletonEl_=q);_.Qy(p)}},
handlePlayerUpdated_:function(){_.UZ(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(p,y){if(this.watchNextSkeletonEl_&&typeof y!=="undefined"){var l=this.watchNextSkeletonEl_.children,q=p&&p.indexSplices.length?p.indexSplices[0].index:0;p=Math.min(this.watchNextShownItems.length,l.length);y||(q=0,p=l.length);for(y=q;y<p;y++)l[y].classList.add("hidden")}},
onPlayerFullscreenChange_:function(p){_.n("external_fullscreen")||_.$w(this.hostElement,"yt-player-fullscreen",[p.fullscreen])},
onFullscreenChange_:function(p){this.fullscreen=p;this.gestures_&&this.gestures_.update(this.fullscreen);var y=_.UZ(this);y.getPlayerPromise().then(function(l){l.setFauxFullscreen(!!_.RJ())});
this.updateFullBleedElementLocations();p&&(y.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(p,y){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!y},
computeIsDonationShelfCollapsed_:function(p){return p},
computeShouldShowMerchShelf:function(p,y){return y&&!!p},
computeResponseHasComments:function(p){var y,l,q,t,E;return!!(p==null?0:(y=p.contents)==null?0:(l=y.twoColumnWatchNextResults)==null?0:(q=l.results)==null?0:(t=q.results)==null?0:(E=t.contents)==null?0:E.some(function(e){var C;return(e==null?void 0:(C=e.itemSectionRenderer)==null?void 0:C.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(p,y){this.responseHasComments=this.computeResponseHasComments(this.data);return!!p&&!!Object.keys(p).length&&!y},
identity:_.Dt,onWindowResized_:function(p){this.windowSize_=p;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.n("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.n("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(p){var y=this;p&&p.type!=="dataloaded"&&p.type!=="dataupdated"||_.UZ(this).getPlayerPromise().then(function(l){var q=l.getPlayerState();q!==5&&q!==0&&(l=1/l.getVideoAspectRatio(),y.videoHeightToWidthRatio_!==l&&(y.videoHeightToWidthRatio_=l))})},
schedulePlayerSizeUpdate_:function(p){var y=this,l=_.n("kevlar_watch_while_v2")||_.n("web_watch_pip"),q=function(){if(y.watchMetadata){var t,E;(E=(t=y.watchMetadata).resize)==null||E.call(t)}_.UZ(y).getPlayerPromise().then(function(e){if(_.n("kevlar_set_internal_player_size")){if(!l||!y.isMiniplayerActive()){var C=y.calculateCurrentPlayerSize_();e.setInternalSize(C.width,C.height)}}else e.setSize(NaN,NaN);_.n("kevlar_watch_while")&&y.updateWatchWhileScrollThreshold_()})};
p?q():_.Xp(_.TR,q)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(p){this.set("data.survey",p.detail)},
onYtShowSurveyCommand_:function(p){this.set("data.survey",_.G(p,_.L2f).survey)},
onDownloadedVideoDeleted:function(p){var y=this,l,q;return _.h(function(t){if(t.nextAddress==1){if(!y.active||(l=y.playerData)==null||!l.offlineState||y.videoId!==p)return t.return();(q=y.player)==null||q.stopVideo();_.Sy().navigatingAwayFromWatchDeletedVideo=!0;_.iy(_.eYa,y.hostElement);return t.yield(_.Sy().navigationFinishPromise,2)}_.Sy().navigatingAwayFromWatchDeletedVideo=!1;_.rR(t)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var p;this.theater?p=_.OP(.5625*this.windowSize_.width,480,this.windowSize_.height-185):p=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==p&&(this.watchWhileScrollThreshold_=p,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var p=_.jR(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&p){var y=this.windowSize_.height>=624,l=this.active?this.getScrollTop():0;!p.active&&y&&l>=this.watchWhileScrollThreshold_?(p.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):p.active&&(!y||l<this.watchWhileScrollThreshold_&&!_.RJ())&&(p.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(p,y){if(p!==!0||y!==void 0){p=!_.n("live_chat_over_engagement_panels");y=_.jR(this.hostElement).querySelector("#chat-container");var l=_.jR(this.hostElement).querySelector("#plj-sidebar"),q=_.jR(this.hostElement).querySelector("#panels"),t=_.jR(this.hostElement).querySelector("#plj-panels"),E=_.jR(this.hostElement).querySelector("#plj-playlist"),e=_.jR(this.hostElement).querySelector("#alerts"),C=_.jR(this.hostElement).querySelector("#playlist"),u=_.jR(this.hostElement).querySelector("#related"),
a=_.jR(this.hostElement).querySelector("#donation-shelf"),m=_.jR(this.hostElement).querySelector("#comments");this.isTwoColumns_?(e=_.jR(this.hostElement).querySelector("#secondary-inner"),e.appendChild(l),l.appendChild(E),E.appendChild(C),l.appendChild(t),p&&e.appendChild(q),_.n("web_watch_theater_chat")||e.appendChild(y),p||e.appendChild(q),e.appendChild(a),e.appendChild(u)):(p&&_.vZ(q,e),_.vZ(C,e),_.n("web_watch_theater_chat")||_.vZ(y,e),p||_.vZ(q,e),_.vZ(a,e),m&&(t&&_.vZ(t,m),_.vZ(u,m)));_.n("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.n("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.n("web_watch_theater_chat")){var p=_.jR(this.hostElement).querySelector("#chat-container"),y=this.theater&&!this.fullscreen||_.n("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&y?_.n("web_watch_theater_chat_beside_player")?(y=_.jR(this.hostElement).querySelector("#panels-full-bleed-container"),(p==null?void 0:p.parentElement)!==y&&y.append(p),this.panelsBesidePlayer=!0):_.n("web_watch_theater_fixed_chat")&&
(y=_.jR(this.hostElement).querySelector("#columns"),(p==null?void 0:p.parentElement)!==y&&y.append(p),this.fixedPanels=!0):(_.n("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.n("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),y=_.jR(this.hostElement).querySelector("#playlist"),p&&y?_.Xd(p,y):_.vs(new _.SM("Missing element when updating chat location",{"chatContainer defined":!!p,"playlist defined":!!y})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(p,y){return _.n("sw_metadata_vis_toggle_ks")?!0:!!p||!!y},
computeForceDarkPanelTheme:function(p){return _.n("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&p:!1},
safeUpdateStyles:function(p){try{_.Ax(this.hostElement,p)}catch(y){_.vs(y)}},
videoHeightToWidthRatioChanged_:function(p,y){y&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.n("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(p){this.videoHeightToWidthRatio_=1/p},
computeIsVerticalVideo_:function(p){return p>=1},
computeIsFourThreeToSixteenNineVideo_:function(p){return p<=.7501&&p>=.5624},
computeIsExtraWideVideo_:function(p){return p<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.UZ(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.UZ(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.vPa(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(p){var y=_.Qh(p)||0;_.gB(p,y+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var p=_.Qh("yt-fullerscreen-edu-button-click-count")||0,y=_.Qh("yt-fullerscreen-edu-button-shown-count")||0,l=_.UC("external_fullscreen_button_shown_threshold"),q=p>=_.UC("external_fullscreen_button_click_threshold")||y>=l;_.UZ(this).getPlayerPromise().then(function(t){t.updateFullerscreenEduButtonSubtleModeState(q)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(p,y){return y},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.WC().resolve(_.yh).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var p=this;this.panelMaxHeightUpdateJob_&&_.TR.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.TR.addLowPriorityJob(function(){p.panelMaxHeightUpdateJob_=0;var y;!p.isTwoColumns_||p.theater||p.fullscreen?y=460:y=p.calculateNormalPlayerSize_().height;var l=y+"px";_.n("live_chat_taller_height")&&!p.theater&&(l="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.n("live_chat_medium_height")&&
!p.theater&&(l="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.n("live_chat_scaled_height")&&!p.theater&&(l="calc(100vh - var(--ytd-toolbar-height) - 238px)");p.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":y+"px","--ytd-watch-flexy-chat-max-height":l,"--ytd-watch-flexy-structured-description-max-height":y+"px","--ytd-watch-flexy-comments-panel-max-height":y+"px","--ytd-comments-engagement-panel-content-height":y+"px"})})},
onYtShowEngagementPanelScrimAction_:function(p){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",p)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Gf(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(p){var y=_.jR(this.hostElement).querySelector("#engagement-panel-scrim");p?y.addEventListener("tap",_.MH(this,this.onEngagementPanelScrimClick_)):y.removeEventListener("tap",_.MH(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(p){if(this.hostElement.contains(p)&&!this.scrollToAnimation_.isAnimating()){var y=p.offsetTop-24;p=p.offsetTop+p.offsetHeight+24;var l=this.getPageScrollingElement(),q=this.getScrollTop(),t=q+l.clientHeight-56;if(y<q+56)y-=56;else if(p>t)y=p-l.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,y),500)}},
onYtSignalActionScrollToComments:function(){var p=this.hostElement.querySelector("#comments");if(p&&!this.scrollToAnimation_.isAnimating()){p=p.offsetTop-56-24;if(_.n("kevlar_comment_teaser_scroll_to_midpoint")&&(p-=_.iz().height/3,p<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,p),500)}},
onYtEngagementPanelVisibleChanged:function(p,y,l){this.active&&this.trackEngagementPanelVisibility&&!_.SE3.includes(l)&&(y==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(l),y!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&y!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(l),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(p){return p?"":"watch-active-metadata"},
computeNewMetadataClass:function(p){return p?"watch-active-metadata":""},
computeFullBleedPlayer:function(p,y){return p||y},
computeDefaultLayout:function(p){return!p},
computeDefaultTwoColumnLayout:function(p,y){return!p&&y},
computeWatchWhilePanelsActive:function(p,y){return p||y},
computeNoBorderOnChat:function(p){return _.n("web_watch_theater_chat_no_border")&&p},
computeLiveChatPresentAndExpanded:function(p,y){return p&&!y},
computePanelExpanded:function(p,y,l){return p||y||l},
onChangeMarkersVisibility:function(p){_.UZ(this).getPlayerPromise().then(function(y){var l;(l=y.changeMarkerVisibility)==null||l.call(y,_.G(p,_.Bc).isVisible||!1,_.G(p,_.Bc).entityKeys||[],_.G(p,_.Bc).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(p){this.liveChatCollapsed=p.detail;_.ei().dispatch(_.rq6(p.detail))},
provideRenderingData:function(p,y){switch(p){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=y;break;case "PRIMARY_INFO":_.n("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=y);this.videoPrimaryInfoRendererValue=y==null?void 0:y.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.n("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=y);this.videoSecondaryInfoRendererValue=y==null?void 0:y.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
y;break;case "CLARIFICATION":this.clarifyBoxValue=y;break;case "LIVE_CHAT":this.conversationBar=y;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=y;break;case "PLAYLIST":this.externalPlaylistData_=y!=null?y:{};break;case "MERCH_SHELF":this.merchShelfValue=y==null?void 0:y.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=y;break;case "OFFER_MODULE":this.offerModule=y;break;case "LIMITED_STATE":this.limitedStateValue=y;break;case "DONATION_SHELF":this.donation=y;break;
case "ALERTS":this.alertsValue=y;break;case "COMMENTS":this.comments=y;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=y;break;case "ENGAGEMENT_PANELS":this.engagementPanels=y;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=y;break;case "RICH_GRID_RENDERER":this.richGridRendererData=y;break;case "EXPANDABLE_METADATA":this.expandableMetadata=y;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=y}},
toggleCinematicsActive:function(p){this.cinematicsActive=p},
isMiniplayerActive:function(){return _.WC().resolve(_.IA).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(p){return aHZ.map(function(y){return p.find(function(l){var q;return(l==null?void 0:(q=l.engagementPanelSectionListRenderer)==null?void 0:q.targetId)===y})}).filter(function(y){return y!==void 0})},
getNonLearningJourneyEngagementPanels:function(p){return p.filter(function(y){var l;return!aHZ.includes((y==null?void 0:(l=y.engagementPanelSectionListRenderer)==null?void 0:l.targetId)||"")})}}];var mAw;var II=function(){var p=_.w.apply(this,arguments)||this;p.flexy=!0;p.learningJourney=!0;p.roundedInfoPanel=!0;p.viewTransitionEnabled=_.n("enable_player_resize_transition");p.smallerChatMinHeight=_.n("live_chat_smaller_min_height");p.cinematicTheaterMode=_.n("web_cinematic_theater_mode");p.transparentTheaterMode=_.n("web_transparent_theater_mode");p.cinematicFullscreen=_.n("web_cinematic_fullscreen");p.useLargerMaxPlayerValue=_.n("kevlar_flexy_use_larger_player_value");p.cinematicFullscreenV2=_.n("web_cinematic_fullscreen_v2");
p.isDarkTheme=document.documentElement.hasAttribute("dark");p.theaterLargerPlayer=_.n("web_watch_theater_larger_player");p.defaultCollapsePlaylist=_.n("web_watch_default_collapse_playlist");return p};
_.A(II,_.w);_.J=II.prototype;_.J.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.J.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.J.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.J.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.J.ready=function(){var p=this,y=function(){p.onColumnScroll()};
this.primary.addEventListener("scroll",y);this.secondary.addEventListener("scroll",y)};
_.J.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.J.updateIsTwoColumnsFromBinding=function(p){_.n("web_watch_update_narrow_width_killswitch")||_.ei().dispatch(_.MT9(!p.detail.value));this.ytdWatchBehavior.isTwoColumns_=p.detail.value};
_.J.updateFlexySmallWindowFromBinding=function(p){this.ytdWatchBehavior.flexySmallWindow_=p.detail.value};
_.J.updateFlexyLargeWindowFromBinding=function(p){this.ytdWatchBehavior.flexyLargeWindow_=p.detail.value};
_.J.updateWatchWhileWindowSizeSufficientFromBinding=function(p){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=p.detail.value};
_.J.updateWatchNextCanShowMoreFromBinding=function(p){this.ytdWatchBehavior.watchNextCanShowMore=p.detail.value};
_.J.updateShownItemsFromBinding=function(p){p.detail.path?this.set(p.detail.path,p.detail.value):this.ytdWatchBehavior.watchNextShownItems=p.detail.value};
_.J.getElement=function(p){switch(p){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22870_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22870_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Jh.Object.defineProperties(II.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.pageVisualEffects)return!1;for(var y=0;y<this.data.pageVisualEffects.length;y++)if(p=_.G(this.data.pageVisualEffects[y],_.b$))return y=void 0,(y=p.config)==null?void 0:y.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.learningJourneyEngagementPanels)==null?void 0:p.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var p,y=(p=this.learningJourneyEngagementPanels)==null?void 0:p.find(function(b){var P;return(b==null?void 0:(P=b.engagementPanelSectionListRenderer)==null?void 0:P.panelIdentifier)==="learning-journey-engagement-panel"});
if(y){var l,q,t,E,e,C,u,a,m;if(p=(a=((u=(e=((E=y==null?void 0:(l=y.engagementPanelSectionListRenderer)==null?void 0:(q=l.content)==null?void 0:(t=q.sectionListRenderer)==null?void 0:t.contents)!=null?E:[])[0])==null?void 0:(C=e.itemSectionRenderer)==null?void 0:C.contents)!=null?u:[])[0])==null?void 0:(m=a.accordionViewModel)==null?void 0:m.onTitleTap){var U=_.yM(p);if(U)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.wW.instance.resolveCommand(U)}}}}}}});
_.Jh.Object.defineProperties(II,{template:{configurable:!0,enumerable:!0,get:function(){if(mAw===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n          <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n            <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n          </yt-button-shape></div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);mAw=p}p=mAw;return p}}});
II.prototype.updateMiniplayerIsActiveValue=II.prototype.updateMiniplayerIsActiveValue;II.prototype.updateScrollTopValue=II.prototype.updateScrollTopValue;II.prototype.updateFullscreenValue=II.prototype.updateFullscreenValue;II.prototype.updateTheaterValue=II.prototype.updateTheaterValue;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],II.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],II.prototype,"ytComponentBehavior",void 0);
_.H([_.V(Wu6.YtdLearningJourneyWatchBehavior),_.x("design:type",Object)],II.prototype,"ytdWatchBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],II.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],II.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],II.prototype,"playerData",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],II.prototype,"flexy",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],II.prototype,"learningJourney",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],II.prototype,"roundedInfoPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],II.prototype,"viewTransitionEnabled",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],II.prototype,"smallerChatMinHeight",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],II.prototype,"cinematicTheaterMode",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],II.prototype,"transparentTheaterMode",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],II.prototype,"cinematicFullscreen",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],II.prototype,"useLargerMaxPlayerValue",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],II.prototype,"cinematicFullscreenV2",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],II.prototype,"isDarkTheme",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],II.prototype,"theaterLargerPlayer",void 0);_.H([_.Q(),_.x("design:type",Object)],II.prototype,"defaultCollapsePlaylist",void 0);_.H([_.Q({selector:_.YS}),_.x("design:type",Object)],II.prototype,"theaterValue",void 0);
_.H([_.Q({selector:_.Ix}),_.x("design:type",Object)],II.prototype,"fullscreenValue",void 0);_.H([_.Q({selector:_.An}),_.x("design:type",Object)],II.prototype,"scrollTopValue",void 0);_.H([_.Q({selector:_.vV}),_.x("design:type",Object)],II.prototype,"miniplayerIsActiveValue",void 0);_.H([_.rd("#ytd-plj-player"),_.x("design:type",HTMLElement)],II.prototype,"ytdPlayer",void 0);_.H([_.rd("#playlist"),_.x("design:type",HTMLElement)],II.prototype,"JSC$22870_ytdPlaylistPanelRenderer",void 0);
_.H([_.$K("ytd-comments"),_.x("design:type",HTMLElement)],II.prototype,"ytdComments",void 0);_.H([_.rd("#primary"),_.x("design:type",HTMLElement)],II.prototype,"primary",void 0);_.H([_.rd("#secondary"),_.x("design:type",HTMLElement)],II.prototype,"secondary",void 0);_.H([_.rd("#player-container"),_.x("design:type",HTMLElement)],II.prototype,"playerContainer",void 0);_.H([_.rd("#cinematics"),_.x("design:type",HTMLElement)],II.prototype,"JSC$22870_cinematics",void 0);
_.H([_.gd("theaterValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],II.prototype,"updateTheaterValue",null);_.H([_.gd("fullscreenValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],II.prototype,"updateFullscreenValue",null);_.H([_.gd("scrollTopValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],II.prototype,"updateScrollTopValue",null);
_.H([_.gd("miniplayerIsActiveValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],II.prototype,"updateMiniplayerIsActiveValue",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],II.prototype,"cinematicLightTheme",null);_.H([_.Q({reflectToAttribute:!0}),_.g("learningJourneyEngagementPanels"),_.x("design:type",Object),_.x("design:paramtypes",[])],II.prototype,"hasLearningJourneyPanels",null);
_.H([_.g("learningJourneyEngagementPanels"),_.x("design:type",Object),_.x("design:paramtypes",[])],II.prototype,"backButtonData",null);_.H([_.k({is:"ytd-watch-learning-journey"})],II);_.AS.registerService(_.eTo,II);
_.xP();
}catch(e){_._DumpException(e)}
try{
_.TH("Tm0L3c");
var sel;var thf;var EJf=function(){return _.w.apply(this,arguments)||this};
_.A(EJf,_.w);_.H([_.k({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],EJf);
_.D(EJf,"ytd-ghost-comments-renderer",function(){if(thf===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-comments-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-section style-scope ytd-ghost-comments-renderer">\n  <div class="header ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="input-box ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="avatar style-scope ytd-ghost-comments-renderer">\n      <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n    </div>\n    <div class="ghost-input style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);thf=p}p=thf;return p},{mode:1});var JUf;var cUB=function(){return _.w.apply(this,arguments)||this};
_.A(cUB,_.w);_.H([_.k({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],cUB);
_.D(cUB,"ytd-ghost-watch-metadata-renderer",function(){if(JUf===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-watch-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-card style-scope ytd-ghost-watch-metadata-renderer">\n  <div class="title style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="byline style-scope ytd-ghost-watch-metadata-renderer">\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n  </div>\n  <div class="description style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-3 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="owner-box style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="left style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n      <div class="text style-scope ytd-ghost-watch-metadata-renderer">\n        <div class="top style-scope ytd-ghost-watch-metadata-renderer"></div>\n        <div class="bottom style-scope ytd-ghost-watch-metadata-renderer"></div>\n      </div>\n    </div>\n    <div class="right style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    </div>\n  </div>\n  <div class="action-bar style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);JUf=p}p=JUf;return p},{mode:1});var YU=function(){var p=_.w.apply(this,arguments)||this;p.ghostGridRenderer={rows:6};p.roundedInfoPanel=!0;p.hideOfferModules=!0;p.smallerChatMinHeight=_.n("live_chat_smaller_min_height");p.cinematicTheaterMode=_.n("web_cinematic_theater_mode");p.transparentTheaterMode=_.n("web_transparent_theater_mode");p.darkerPanels=_.n("web_watch_darker_panels");p.cinematicFullscreen=_.n("web_cinematic_fullscreen");p.cinematicFullscreenV2=_.n("web_cinematic_fullscreen_v2");p.isDarkTheme=document.documentElement.hasAttribute("dark");
return p};
_.A(YU,_.w);_.J=YU.prototype;_.J.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.J.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.J.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.J.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.J.ready=function(){var p=this,y=function(){p.onColumnScroll()};
this.primary.addEventListener("scroll",y);this.secondary.addEventListener("scroll",y)};
_.J.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.J.updateIsTwoColumnsFromBinding=function(p){this.ytdWatchBehavior.isTwoColumns_=p.detail.value};
_.J.updateFlexySmallWindowFromBinding=function(p){this.ytdWatchBehavior.flexySmallWindow_=p.detail.value};
_.J.updateFlexyLargeWindowFromBinding=function(p){this.ytdWatchBehavior.flexyLargeWindow_=p.detail.value};
_.J.updateWatchWhileWindowSizeSufficientFromBinding=function(p){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=p.detail.value};
_.J.updateWatchNextCanShowMoreFromBinding=function(p){this.ytdWatchBehavior.watchNextCanShowMore=p.detail.value};
_.J.updateShownItemsFromBinding=function(p){_.n("swatcheroo_direct_use_rich_grid")||(p.detail.path?this.set(p.detail.path,p.detail.value):this.ytdWatchBehavior.watchNextShownItems=p.detail.value)};
_.J.getElement=function(p){switch(p){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22858_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22858_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Jh.Object.defineProperties(YU.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.pageVisualEffects)return!1;for(var y=0;y<this.data.pageVisualEffects.length;y++)if(p=_.G(this.data.pageVisualEffects[y],_.b$))return y=void 0,(y=p.config)==null?void 0:y.enableInLightTheme;return!1}}});
YU.prototype.updateMiniplayerIsActiveValue=YU.prototype.updateMiniplayerIsActiveValue;YU.prototype.updateScrollTopValue=YU.prototype.updateScrollTopValue;YU.prototype.updateFullscreenValue=YU.prototype.updateFullscreenValue;YU.prototype.updateTheaterValue=YU.prototype.updateTheaterValue;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],YU.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],YU.prototype,"ytComponentBehavior",void 0);
_.H([_.V(_.lHX.YtdWatchBehavior),_.x("design:type",Object)],YU.prototype,"ytdWatchBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],YU.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],YU.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],YU.prototype,"ghostGridRenderer",void 0);_.H([_.Q(),_.x("design:type",Object)],YU.prototype,"playerData",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],YU.prototype,"roundedInfoPanel",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],YU.prototype,"hideOfferModules",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],YU.prototype,"smallerChatMinHeight",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],YU.prototype,"cinematicTheaterMode",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],YU.prototype,"transparentTheaterMode",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],YU.prototype,"darkerPanels",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],YU.prototype,"cinematicFullscreen",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],YU.prototype,"cinematicFullscreenV2",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],YU.prototype,"isDarkTheme",void 0);_.H([_.Q({selector:_.YS}),_.x("design:type",Object)],YU.prototype,"theaterValue",void 0);
_.H([_.Q({selector:_.Ix}),_.x("design:type",Object)],YU.prototype,"fullscreenValue",void 0);_.H([_.Q({selector:_.An}),_.x("design:type",Object)],YU.prototype,"scrollTopValue",void 0);_.H([_.Q({selector:_.vV}),_.x("design:type",Object)],YU.prototype,"miniplayerIsActiveValue",void 0);_.H([_.rd("#ytd-player"),_.x("design:type",HTMLElement)],YU.prototype,"ytdPlayer",void 0);_.H([_.rd("#playlist"),_.x("design:type",HTMLElement)],YU.prototype,"JSC$22858_ytdPlaylistPanelRenderer",void 0);
_.H([_.rd("#ytd-comments"),_.x("design:type",HTMLElement)],YU.prototype,"ytdComments",void 0);_.H([_.rd("#primary"),_.x("design:type",HTMLElement)],YU.prototype,"primary",void 0);_.H([_.rd("#secondary"),_.x("design:type",HTMLElement)],YU.prototype,"secondary",void 0);_.H([_.rd("#player-container"),_.x("design:type",HTMLElement)],YU.prototype,"playerContainer",void 0);_.H([_.rd("#cinematics"),_.x("design:type",HTMLElement)],YU.prototype,"JSC$22858_cinematics",void 0);
_.H([_.gd("theaterValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YU.prototype,"updateTheaterValue",null);_.H([_.gd("fullscreenValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YU.prototype,"updateFullscreenValue",null);_.H([_.gd("scrollTopValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YU.prototype,"updateScrollTopValue",null);
_.H([_.gd("miniplayerIsActiveValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YU.prototype,"updateMiniplayerIsActiveValue",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],YU.prototype,"cinematicLightTheme",null);
_.D(YU,"ytd-watch-grid",function(){if(sel===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);sel=p}p=sel;return p},{mode:2});_.AS.registerService(_.cYa,YU);
_.xP();
}catch(e){_._DumpException(e)}
try{
_.TH("CF909");
var qr3;var z0=function(){var p=_.w.apply(this,arguments)||this;p.flexy=!0;p.roundedInfoPanel=!0;p.viewTransitionEnabled=_.n("enable_player_resize_transition");p.smallerChatMinHeight=_.n("live_chat_smaller_min_height");p.cinematicTheaterMode=_.n("web_cinematic_theater_mode");p.transparentTheaterMode=_.n("web_transparent_theater_mode");p.cinematicFullscreen=_.n("web_cinematic_fullscreen");p.useLargerMaxPlayerValue=_.n("kevlar_flexy_use_larger_player_value");p.isDarkTheme=document.documentElement.hasAttribute("dark");
p.defaultCollapsePlaylist=_.n("web_watch_default_collapse_playlist");p.retroModeReduxValue=!1;return p};
_.A(z0,_.w);_.J=z0.prototype;_.J.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.J.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.J.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.J.updateRetroModeReduxValue=function(){_.n("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.J.ready=function(){var p=this,y=function(){p.onColumnScroll()};
this.primary.addEventListener("scroll",y);this.secondary.addEventListener("scroll",y)};
_.J.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.J.updateIsTwoColumnsFromBinding=function(p){_.n("web_watch_update_narrow_width_killswitch")||_.ei().dispatch(_.MT9(!p.detail.value));this.ytdWatchBehavior.isTwoColumns_=p.detail.value};
_.J.updateFlexySmallWindowFromBinding=function(p){this.ytdWatchBehavior.flexySmallWindow_=p.detail.value};
_.J.updateFlexyLargeWindowFromBinding=function(p){this.ytdWatchBehavior.flexyLargeWindow_=p.detail.value};
_.J.updateWatchWhileWindowSizeSufficientFromBinding=function(p){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=p.detail.value};
_.J.updateWatchNextCanShowMoreFromBinding=function(p){this.ytdWatchBehavior.watchNextCanShowMore=p.detail.value};
_.J.updateShownItemsFromBinding=function(p){p.detail.path?this.set(p.detail.path,p.detail.value):this.ytdWatchBehavior.watchNextShownItems=p.detail.value};
_.J.getElement=function(p){switch(p){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22853_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22853_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary}};
_.Jh.Object.defineProperties(z0.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.pageVisualEffects)return!1;for(var y=0;y<this.data.pageVisualEffects.length;y++)if(p=_.G(this.data.pageVisualEffects[y],_.b$))return y=void 0,(y=p.config)==null?void 0:y.enableInLightTheme;return!1}}});
_.Jh.Object.defineProperties(z0,{template:{configurable:!0,enumerable:!0,get:function(){if(qr3===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);qr3=p}p=qr3;return p}}});
z0.prototype.updateRetroModeReduxValue=z0.prototype.updateRetroModeReduxValue;z0.prototype.updateScrollTopValue=z0.prototype.updateScrollTopValue;z0.prototype.updateFullscreenValue=z0.prototype.updateFullscreenValue;z0.prototype.updateTheaterValue=z0.prototype.updateTheaterValue;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],z0.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],z0.prototype,"ytComponentBehavior",void 0);
_.H([_.V(_.lHX.YtdWatchBehavior),_.x("design:type",Object)],z0.prototype,"ytdWatchBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],z0.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],z0.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],z0.prototype,"playerData",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],z0.prototype,"flexy",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],z0.prototype,"roundedInfoPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],z0.prototype,"viewTransitionEnabled",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],z0.prototype,"smallerChatMinHeight",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],z0.prototype,"cinematicTheaterMode",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],z0.prototype,"transparentTheaterMode",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],z0.prototype,"cinematicFullscreen",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],z0.prototype,"useLargerMaxPlayerValue",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],z0.prototype,"isDarkTheme",void 0);_.H([_.Q(),_.x("design:type",Object)],z0.prototype,"defaultCollapsePlaylist",void 0);
_.H([_.Q({selector:_.YS}),_.x("design:type",Object)],z0.prototype,"theaterValue",void 0);_.H([_.Q({selector:_.Ix}),_.x("design:type",Object)],z0.prototype,"fullscreenValue",void 0);_.H([_.Q({selector:_.An}),_.x("design:type",Object)],z0.prototype,"scrollTopValue",void 0);_.H([_.Q({selector:_.vV}),_.x("design:type",Object)],z0.prototype,"miniplayerIsActive",void 0);_.H([_.Q({selector:function(p){return p.watch.isWatchRetroMode}}),
_.x("design:type",Object)],z0.prototype,"retroModeReduxValue",void 0);_.H([_.$K("ytd-player"),_.x("design:type",HTMLElement)],z0.prototype,"ytdPlayer",void 0);_.H([_.rd("#playlist"),_.x("design:type",HTMLElement)],z0.prototype,"JSC$22853_ytdPlaylistPanelRenderer",void 0);_.H([_.$K("ytd-comments"),_.x("design:type",HTMLElement)],z0.prototype,"ytdComments",void 0);_.H([_.rd("#primary"),_.x("design:type",HTMLElement)],z0.prototype,"primary",void 0);
_.H([_.rd("#secondary"),_.x("design:type",HTMLElement)],z0.prototype,"secondary",void 0);_.H([_.rd("#player-container"),_.x("design:type",HTMLElement)],z0.prototype,"playerContainer",void 0);_.H([_.rd("#below"),_.x("design:type",HTMLElement)],z0.prototype,"below",void 0);_.H([_.rd("#cinematics"),_.x("design:type",HTMLElement)],z0.prototype,"JSC$22853_cinematics",void 0);
_.H([_.gd("theaterValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],z0.prototype,"updateTheaterValue",null);_.H([_.gd("fullscreenValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],z0.prototype,"updateFullscreenValue",null);_.H([_.gd("scrollTopValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],z0.prototype,"updateScrollTopValue",null);
_.H([_.gd("retroModeReduxValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],z0.prototype,"updateRetroModeReduxValue",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],z0.prototype,"cinematicLightTheme",null);_.H([_.k({is:"ytd-watch-flexy"})],z0);_.AS.registerService(_.JYl,z0);
_.xP();
}catch(e){_._DumpException(e)}
try{
_.TH("nmfa2d");
var RyE;var Hc=function(){var p=_.w.apply(this,arguments)||this;p.hidden=!1;p.errorScreen=null;p.playlistData={};return p};
_.A(Hc,_.w);_.J=Hc.prototype;_.J.getPlayer=function(){return this.ytdPlayer};
_.J.configureRendererStamper=function(){return{singleColumnContents:{id:"single-column",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},clarificationData:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",
attributes:{"class":"watch"}}}},donationShelf:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[hasChat]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},richMetadataRowContainer:{id:"rich-metadata",mapping:{metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{fixie:!0}}}},
ticketShelf:{id:"ticket-shelf",mapping:{ticketShelfRenderer:"ytd-ticket-shelf-renderer"}},"playerData.playerAds":{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.lT(["aa","eocs"])}}};
_.J.onActiveChanged=function(){_.ei().dispatch(_.trX(this.ytPageBehavior.active))};
_.J.playerDataChanged=function(){var p;(p=this.watchController)==null||p.setPlayerResponse(this.playerData)};
_.J.dataChanged=function(){var p;(p=this.watchController)==null||p.setWatchNextResponse(this.data)};
_.J.sizeChanged=function(){var p,y;(y=(p=this.metadata).resize)==null||y.call(p)};
_.J.attached=function(){this.watchController=new _.NP(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.J.detached=function(){_.er(this.watchController);this.watchController=void 0};
_.J.getPlayerContainer=function(){return this.playerContainer};
_.J.getElement=function(p){switch(p){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22801_playlistPanel}};
_.J.provideRenderingData=function(p,y){switch(p){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=y;break;case "ERROR_SCREEN":this.errorScreen=y!=null?y:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=y;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=y;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=y;break;case "RICH_METADATA":this.richMetadataRowContainer=y;break;case "CLARIFICATION":this.clarificationData=y;break;case "PLAYLIST":this.playlistData=
y!=null?y:{};break;case "MERCH_SHELF":this.merchShelf=y;break;case "TICKET_SHELF":this.ticketShelf=y;break;case "LIMITED_STATE":this.limitedState=y;break;case "DONATION_SHELF":this.donationShelf=y;break;case "ALERTS":this.alerts=y}};
_.Jh.Object.defineProperties(Hc.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return!this.hidden&&!!((p=this.data)==null?0:(y=p.contents)==null?0:(l=y.twoColumnWatchNextResults)==null?0:l.conversationBar)}}});
Hc.prototype.sizeChanged=Hc.prototype.sizeChanged;Hc.prototype.dataChanged=Hc.prototype.dataChanged;Hc.prototype.playerDataChanged=Hc.prototype.playerDataChanged;Hc.prototype.onActiveChanged=Hc.prototype.onActiveChanged;_.H([_.V(_.A8.YtPageBehavior),_.x("design:type",Object)],Hc.prototype,"ytPageBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Hc.prototype,"ytComponentBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Hc.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Hc.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Hc.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Hc.prototype,"playerData",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Hc.prototype,"hidden",void 0);_.H([_.rd("#ytd-player"),_.x("design:type",HTMLElement)],Hc.prototype,"ytdPlayer",void 0);_.H([_.rd("#player-container"),_.x("design:type",HTMLElement)],Hc.prototype,"playerContainer",void 0);_.H([_.rd("#metadata"),_.x("design:type",Object)],Hc.prototype,"metadata",void 0);_.H([_.rd("#playlist"),_.x("design:type",HTMLElement)],Hc.prototype,"JSC$22801_playlistPanel",void 0);
_.H([_.Q({selector:_.Sjd,reflectToAttribute:!0}),_.x("design:type",Object)],Hc.prototype,"fixie",void 0);_.H([_.Q({selector:_.r01,reflectToAttribute:!0}),_.x("design:type",Object)],Hc.prototype,"singleColumn",void 0);_.H([_.Q({selector:function(p){return _.YS(p)&&!_.Ix(p)},
reflectToAttribute:!0}),_.x("design:type",Object)],Hc.prototype,"theater",void 0);_.H([_.Q({selector:_.Ix,reflectToAttribute:!0}),_.x("design:type",Object)],Hc.prototype,"fullscreen",void 0);_.H([_.Q({selector:_.qEf}),_.x("design:type",Object)],Hc.prototype,"windowSize",void 0);_.H([_.Q(),_.x("design:type",Object)],Hc.prototype,"singleColumnContents",void 0);_.H([_.Q(),_.x("design:type",Object)],Hc.prototype,"errorScreen",void 0);_.H([_.Q(),_.x("design:type",Object)],Hc.prototype,"playlistData",void 0);
_.H([_.Q(),_.x("design:type",Object)],Hc.prototype,"videoPrimaryInfoRenderer",void 0);_.H([_.Q(),_.x("design:type",Object)],Hc.prototype,"videoSecondaryInfoRenderer",void 0);_.H([_.Q(),_.x("design:type",Object)],Hc.prototype,"richMetadataRowContainer",void 0);_.H([_.Q(),_.x("design:type",Object)],Hc.prototype,"clarificationData",void 0);_.H([_.Q(),_.x("design:type",Object)],Hc.prototype,"commentsEntryPointHeaderRenderer",void 0);_.H([_.Q(),_.x("design:type",Object)],Hc.prototype,"ticketShelf",void 0);
_.H([_.Q(),_.x("design:type",Object)],Hc.prototype,"merchShelf",void 0);_.H([_.Q(),_.x("design:type",Object)],Hc.prototype,"donationShelf",void 0);_.H([_.Q(),_.x("design:type",Object)],Hc.prototype,"limitedState",void 0);_.H([_.Q(),_.x("design:type",Object)],Hc.prototype,"alerts",void 0);_.H([_.g("playlistData"),_.x("design:type",Object),_.x("design:paramtypes",[])],Hc.prototype,"hasPlaylistData",null);
_.H([_.g("data","hidden"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Hc.prototype,"hasChat",null);_.H([_.gd("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hc.prototype,"onActiveChanged",null);_.H([_.gd("playerData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hc.prototype,"playerDataChanged",null);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hc.prototype,"dataChanged",null);_.H([_.gd("windowSize","singleColumn"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hc.prototype,"sizeChanged",null);
_.D(Hc,"ytd-watch-fixie",function(){if(RyE===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-fixie--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="single-column" hidden="[[!singleColumnContents]]" class="style-scope ytd-watch-fixie"></div>\n\n<div id="fixed-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="primary" class="style-scope ytd-watch-fixie">\n    <div id="player" class="style-scope ytd-watch-fixie">\n      <div id="player-container" class="style-scope ytd-watch-fixie">\n        <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-fixie">\n        </ytd-player>\n      </div>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" disable-upgrade$="[[!errorScreen]]" hidden$="[[!errorScreen]]" class="style-scope ytd-watch-fixie">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <div id="alerts" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-metadata id="metadata" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" suppress-top-level-metadata-rows="" video-id="[[data.currentVideoEndpoint.watchEndpoint.videoId]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer.videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer.videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-metadata>\n  </div>\n</div>\n\n<div id="static-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="secondary" class="style-scope ytd-watch-fixie">\n    <div id="clarify-box" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="limited-state" class="feed-item style-scope ytd-watch-fixie"></div>\n    \n    <template is="dom-if" if="[[merchShelf.merchandiseShelfRenderer]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-fixie">\n      <ytd-merch-shelf-renderer class="feed-item style-scope ytd-watch-fixie" data="[[merchShelf.merchandiseShelfRenderer]]" watch-metadata-refresh="">\n      </ytd-merch-shelf-renderer>\n    </template>\n    \n    <div id="ticket-shelf" class="feed-item style-scope ytd-watch-fixie" hidden=""></div>\n    <ytd-watch-engagement-panels data="[[data.engagementPanels]]" class="style-scope ytd-watch-fixie"></ytd-watch-engagement-panels>\n    \n    <template is="dom-if" if="[[hasChat]]" restamp="" class="style-scope ytd-watch-fixie">\n      <ytd-live-chat-frame id="chat" class="feed-item style-scope ytd-watch-fixie" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]">\n      </ytd-live-chat-frame>\n    </template>\n    <div id="donation-shelf" class="feed-item style-scope ytd-watch-fixie"></div>\n    <ytd-playlist-panel-renderer id="playlist" class="feed-item style-scope ytd-watch-fixie" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" data="[[playlistData]]" disable-upgrade$="[[!hasPlaylistData]]" hidden="[[!hasPlaylistData]]" js-panel-height="">\n    </ytd-playlist-panel-renderer>\n    <div id="rich-metadata" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="player-ads" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-next-secondary-results-renderer data="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" disable-upgrade$="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" hidden="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" player-data="[[playerData]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-next-secondary-results-renderer>\n  </div>\n</div>\n\n\n\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);RyE=p}p=RyE;return p},{mode:1});_.AS.registerService(_.EEt,Hc);
_.xP();
}catch(e){_._DumpException(e)}
try{
_.TH("xwEKAe");
var Vbw=function(p){return _.Jp(p)?p.getAttribute("jsname")==="coFSxe":!1},gVw=function(p,y){y.id||(y.id="ow"+_.qO(y));
p.setAttribute("jsowner",y.id);p.__owner=y;var l=_.dV(y,Vbw);l&&(_.GXB.has(l)||_.GXB.set(l,[]),_.GXB.get(l).push(p));(l=_.nnV.get(y))||_.nnV.set(y,l=[]);l.includes(p)||l.push(p);y.setAttribute("__IS_OWNER",!0)},Q6i=function(){var p=_.uL6(1);
p=_.cQ(p,_.$U5);if(!(_.CM_(p)||p[_.FX6]&&!p.__hasBeenSet))return p.value},KY9=function(p){var y=_.w$();
if(y.getFlag(202))y=y.getFlag(201);else{var l;y=(p==null?void 0:(l=p.config)==null?void 0:l.settingOnByDefault)!==void 0?p.config.settingOnByDefault:!_.n("web_shorts_cinematics_disabled_by_default")}return y},wi1=function(p){var y=_.w$();
_.il(0,201,p);_.il(0,202,!0);y.save()},iRR=function(p){return(p=_.pwg(p))?_.ljo(p):0},rnu=function(p){return p.shorts.isSmallScreenSqueezeback},S2d=function(p){return p.shorts.isPlaybackStarted},kWA=function(p){var y=_.uL6(2),l=new Set;
_.TP(function(){return void l.forEach(function(q){return void q()})});
return function(q){var t=_.JU(y);try{var E=FYT(LY1(p),q);l.add(E);return function(){E();l.delete(E)}}finally{_.JU(t)}}},N9T=function(p){var y=p.children;
var l=p.root;_.Hu(function(){var q=kWA(l)(y);_.TP(q)});
return document.createTextNode("")},FYT=function(p,y){var l=D17(p);
(p=Q6i())&&gVw(l,p);y=_.c(_.qw8(y,!0));p=y.next().value;var q=y.next().value;l.append.apply(l,_.xq(p));return function(){q();l.remove()}},LY1=function(p){if(typeof p==="string")return p=document.querySelector(p),_.tWu(p),p;
if(_.UY(p)&&p.nodeType===Node.ELEMENT_NODE)return p;if(!p.__value&&!p.__optional){var y=_.kco.USE_ELEMENT_NOT_ASSIGNED(p.__expectedTagName);p.__hasErrored=!0;throw y;}return p.value},D17=function(p){var y=document.createElementNS(p.namespaceURI,p.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return p.appendChild(y)},HR6=function(p,y,l,q){p=y-p;
l=q-l;return Math.sqrt(p*p+l*l)},T9u=function(p,y){p&&_.WC().resolve(_.aK).resolveCommand(p,{forceClickLogging:!0,
form:{element:y}})},x1d=function(p,y,l,q){p=y-p;
l=q-l;return Math.sqrt(p*p+l*l)},B9d=function(p,y){p&&_.WC().resolve(_.aK).resolveCommand(p,{forceClickLogging:!0,
form:{element:y}})},fsu=function(){return _.WC().resolve(_.LI).dismissedIndices},vV1=function(p){return _.$y({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:p}})},Xim=function(p){return _.$y({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:p}})},s2=function(p){return _.$y({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:p}})};var tn=function(p,y){if(p instanceof tn)this.array_=p.array_;else{var l;if(l=_.zl(p))a:{for(var q=l=0;q<p.length;q++){if(!_.zl(p[q])||l>0&&p[q].length!=l){l=!1;break a}for(var t=0;t<p[q].length;t++)if(typeof p[q][t]!=="number"){l=!1;break a}l==0&&(l=p[q].length)}l=l!=0}if(l)this.array_=_.og(p);else if(p instanceof _.wV)this.array_=d11(p.height,p.width);else if(typeof p==="number"&&typeof y==="number"&&p>0&&y>0)this.array_=d11(p,y);else throw Error("mo");}this.size_=new _.wV(this.array_[0].length,
this.array_.length)},ORd=function(p,y,l){for(var q=0;q<p.getSize().height;q++)for(var t=0;t<p.getSize().width;t++)y.call(l,p.array_[q][t],q,t,p)},oV1=function(p,y){var l=new tn(p.getSize());
ORd(p,function(q,t,E){l.array_[t][E]=y.call(void 0,q,t,E,p)});
return l},d11=function(p,y){for(var l=[],q=0;q<p;q++){l[q]=[];
for(var t=0;t<y;t++)l[q][t]=0}return l};
tn.prototype.add=function(p){if(!_.piR(this.size_,p.getSize()))throw Error("no");return oV1(this,function(y,l,q){return y+p.array_[l][q]})};
tn.prototype.equals=function(p,y){if(this.size_.width!=p.size_.width||this.size_.height!=p.size_.height)return!1;y=y||0;for(var l=0;l<this.size_.height;l++)for(var q=0;q<this.size_.width;q++)if(!_.IEV(this.array_[l][q],p.array_[l][q],y))return!1;return!0};
tn.prototype.getSize=function(){return this.size_};
var E2=function(p,y,l){return y>=0&&y<p.size_.height&&l>=0&&l<p.size_.width?p.array_[y][l]:null};
tn.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var Jn=function(p,y,l,q){if(!(y>=0&&y<p.size_.height&&l>=0&&l<p.size_.width))throw Error("oo`"+y+"`"+l+"`"+p.size_.height+"`"+p.size_.width);p.array_[y][l]=q};
tn.prototype.multiply=function(p){if(p instanceof tn){if(this.size_.width!=p.getSize().height)throw Error("po");return zGR(this,p)}if(typeof p==="number")return Y2i(this,p);throw Error("qo");};
var zGR=function(p,y){var l=new tn(p.size_.height,y.getSize().width);ORd(l,function(q,t,E){for(var e=q=0;e<this.size_.width;e++)q+=E2(this,t,e)*E2(y,e,E);Jn(l,t,E,q)},p);
return l},Y2i=function(p,y){return oV1(p,function(l){return l*y})};var Is6=new _.uK("inlineSurveyRenderer");var ped=new _.uK("interstitialViewModel");var y0w=new _.uK("reelNavigateCommand");var lW7=new _.uK("reelNonVideoContentDismissalCommand");var qjw=new _.uK("showReelsCommentsOverlayCommand");var sm9=new _.uK("shortsSuggestedActionViewModel");var t5L=new _.uK("videoInteractionPopUpRenderer");var EjR;var J0T;var c0d;var ci=function(){var p=_.w.apply(this,arguments)||this;p.ctaVisualElement=null;p.currentCsn=null;return p};
_.A(ci,_.w);_.J=ci.prototype;_.J.onDataChanged=function(){this.maybeLogShows()};
_.J.computeButtonShape=function(){var p=this;if(this.data)return{buttonText:_.JB(this.data.text),state:"active",onTap:function(){p.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.J.maybeCreateCtaVe=function(){var p;if((p=this.data)!=null&&p.badgeInteractionLogging){var y;if(p=(y=this.data.badgeInteractionLogging)==null?void 0:y.trackingParams)this.ctaVisualElement=_.Tp(p)}};
_.J.maybeLogClicks=function(){this.currentCsn=_.B2(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.te(this.currentCsn,this.ctaVisualElement)};
_.J.maybeLogShows=function(){this.currentCsn=_.B2(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.qs(this.currentCsn,[this.ctaVisualElement])};
_.J.onTap=function(){var p;if((p=this.data)!=null&&p.onClickCommand){var y;this.ytComponentBehavior.resolveCommand((y=this.data)==null?void 0:y.onClickCommand);this.maybeLogClicks()}};
ci.prototype.onDataChanged=ci.prototype.onDataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],ci.prototype,"ytComponentBehavior",void 0);_.H([_.Q({}),_.x("design:type",Object)],ci.prototype,"data",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ci.prototype,"onDataChanged",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],ci);
_.D(ci,"ytd-shopping-overlay-badge-renderer",function(){if(c0d!==void 0)return c0d;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-overlay-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape data="[[computeButtonShape(data)]]" icon-name="bag" class="style-scope ytd-shopping-overlay-badge-renderer">\n</yt-button-shape>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return c0d=p},{mode:1});_.bp(_.GdR,"reel-sound-metadata-view-model",{props:{data:_.jw,overlayDensity:_.jw}});_.bp(_.a77,"player-disclosure-view-model",{props:{data:_.Co}});_.bp(_.Ze$,"pivot-button-view-model",{props:{data:_.jw,className:_.jw}});_.bp(_.M8$,"reel-action-bar-view-model",{props:{data:_.Co,buttonShapeOverrideables:_.Co}});_.bp(_.aF(function(p){function y(){var hR,Wt,AR,Qu,jj=(Wt=_.G((hR=O())==null?void 0:hR.command,_.kB))==null?void 0:(AR=Wt.item)==null?void 0:(Qu=AR.notificationTextRenderer)==null?void 0:Qu.successResponseText;if(jj)_.$w(q.value,"yt-open-popup-action",[_.C4(jj),q.value]);else if(f())T9u(f(),Z.value);else{var x6;T9u((x6=O())==null?void 0:x6.command,Z.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var l=p.data;var q=_.sM("yt-player-overlay-video-interactions");p=_.c(_.nr("0px",void 0,"O1N7Ce"));var t=p.next().value,E=p.next().value;p=_.c(_.nr("0px",void 0,"tTDBdb"));var e=p.next().value,C=p.next().value;p=_.c(_.nr(0,void 0,"fh8Zkc"));var u=p.next().value,a=p.next().value;p=_.c(_.nr(0,void 0,"CUjqGd"));var m=p.next().value,U=p.next().value,b=function(){var hR;if(((hR=_.gi())==null?void 0:hR.getPlayerState())!==-1){q.value.style.display="inherit";var Wt;(Wt=_.gi())==null||Wt.removeEventListener("onStateChange",
b)}P()},P=function(){var hR=document.querySelector("video");
if(hR){a(hR.getBoundingClientRect().width);U(hR.getBoundingClientRect().height);var Wt;E((hR==null?void 0:(Wt=hR.style)==null?void 0:Wt.left)||"0px");var AR;C((hR==null?void 0:(AR=hR.style)==null?void 0:AR.top)||"0px")}};
_.NA(function(){var hR,Wt,AR;if(((hR=_.gi())==null?void 0:hR.getPlayerState())===-1&&Math.round(((AR=(Wt=_.gi())==null?void 0:Wt.getVideoAspectRatio())!=null?AR:0)*100)!==Math.round(u()/m()*100)){q.value.style.display="none";var Qu,jj;U(u()/((jj=(Qu=_.gi())==null?void 0:Qu.getVideoAspectRatio())!=null?jj:1))}},"VB5m5");
_.Hu(function(){var hR;(hR=_.gi())==null||hR.addEventListener("onStateChange",b);window.addEventListener("resize",P);P();var Wt,AR,Qu;if((Qu=(Wt=l())==null?void 0:(AR=Wt.regions)==null?void 0:AR[0])==null||!Qu.transformationMatrix)throw Error("uo");var jj;if((jj=l())==null?0:jj.trackingParams){var x6;_.Ll().graftServerVe((x6=l().trackingParams)!=null?x6:"")}_.TP(function(){var L8;(L8=_.gi())==null||L8.removeEventListener("onStateChange",b);window.removeEventListener("resize",P)})});
var Z=_.sM("svg"),K=_.c(_.nr(!1,void 0,"TPsTce"));p=K.next().value;var F=K.next().value,L=_.c(_.nr(!1,void 0,"Uz6CHf"));K=L.next().value;var T=L.next().value,O=function(){var hR;return _.G((hR=l())==null?void 0:hR.popUp,t5L)},f=function(){var hR;
return(hR=l())==null?void 0:hR.command},v=function(){return _.G(f(),_.LX)!==void 0};
L=_.Ff(function(){y();return!1});
var z={},sc={};return _.R("yt-player-overlay-video-interactions",{el:q},_.R("svg",{"on:mouseover":_.Ff(function(){v()&&F(!0);T(!0);return!1}),
"on:mouseout":_.Ff(function(){F(!1);T(!1);return!1}),
"on:keydown":_.Ff(function(hR){hR.key==="Enter"&&y();return!1}),
"on:focus":_.Ff(function(){v()&&F(!0);return!1}),
"on:blur":_.Ff(function(){v()&&F(!1);return!1}),
el:Z,tabindex:0,"aria-label":function(){var hR;return(hR=l())==null?void 0:hR.a11yString},
id:"player-overlay-video-interaction-svg",class:_.ip("yt-player-overlay-video-interactions__interactions-svg",(z["yt-player-overlay-video-interactions__interactions-svg-hover"]=p,z),(sc["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=K,sc)),role:"button",style:function(){var hR,Wt,AR,Qu=(AR=(hR=l())==null?void 0:(Wt=hR.regions)==null?void 0:Wt[0].transformationMatrix)!=null?AR:[];hR=u();Wt=m();AR=[];for(var jj=0,x6=-1;jj<Qu.length;jj++)jj%3===0&&(x6++,AR[x6]=[]),AR[x6].push(Qu[jj]);
Qu=new tn(AR);AR=new tn([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);AR=Qu.multiply(AR);Qu=new tn([[0,0],[0,0],[0,0],[0,0]]);for(jj=0;jj<AR.getSize().width;jj++){x6=E2(AR,0,jj);var L8=E2(AR,1,jj);if(x6===null||L8===null)throw Error("to`"+(jj+1).toString());Jn(Qu,jj,0,x6*hR);Jn(Qu,jj,1,L8*Wt)}hR=E2(Qu,0,0);jj=E2(Qu,1,0);Wt=E2(Qu,0,1);x6=E2(Qu,1,1);if(hR===null||jj===null||Wt===null||x6===null)throw Error("ro");AR=HR6(hR,jj,Wt,x6);L8=E2(Qu,3,0);Qu=E2(Qu,3,1);if(L8===null||Qu===null)throw Error("so");Qu=HR6(hR,
L8,Wt,Qu);x6=(Number((x6*-1).toFixed(2))-Number((Wt*-1).toFixed(2)))/(Number(jj.toFixed(2))-Number(hR.toFixed(2)));L8=Math.atan(x6)*180/Math.PI;jj=x6===Number.POSITIVE_INFINITY?-90:x6===Number.NEGATIVE_INFINITY?90:Object.is(x6,-0)?180:x6===0?0:x6>0?L8*-1:hR<jj?L8*-1:Math.abs(L8)+180;return"left:calc("+hR+"px + "+t()+"); top:calc("+(Wt+"px + "+e()+"); width:")+(AR+"px; height:")+(Qu+"px; transform:rotate(")+(jj+"deg);")},
"on:click":L}))},"jj"),"yt-player-overlay-video-interactions",{props:{data:_.Co}});_.bp(_.b09,"yt-reel-metapanel-view-model",{props:{data:_.Co,overlayDensity:_.Co}});var eLw=_.aF(function(p){var y=p.children;var l=p.region;p=_.c(_.nr(void 0,void 0,"rwJZyc"));var q=p.next().value,t=p.next().value;p=_.c(_.nr("0px",void 0,"H14H5c"));var E=p.next().value,e=p.next().value;p=_.c(_.nr("0px",void 0,"Mn8Uvf"));var C=p.next().value,u=p.next().value;p=_.c(_.nr(0,void 0,"QQCIqc"));var a=p.next().value,m=p.next().value;p=_.c(_.nr(0,void 0,"HyEvh"));var U=p.next().value,b=p.next().value,P=function(){var O=q();if(O){var f;if(((f=_.gi())==null?void 0:f.getPlayerState())!==-1){O.style.display=
"inherit";var v;(v=_.gi())==null||v.removeEventListener("onStateChange",P)}K()}},Z=function(){var O=document.querySelectorAll("video");
return Array.from(O).find(function(f){var v;return f==null?void 0:(v=f.style)==null?void 0:v.width})},K=function(){var O=Z();
if(O){m(O.getBoundingClientRect().width);b(O.getBoundingClientRect().height);var f;e((O==null?void 0:(f=O.style)==null?void 0:f.left)||"0px");var v;u((O==null?void 0:(v=O.style)==null?void 0:v.top)||"0px")}};
_.NA(function(){var O=q();if(O){var f,v,z;if(((f=_.gi())==null?void 0:f.getPlayerState())===-1&&Math.round(((z=(v=_.gi())==null?void 0:v.getVideoAspectRatio())!=null?z:0)*100)!==Math.round(a()/U()*100)){O.style.display="none";var sc,hR;b(a()/((hR=(sc=_.gi())==null?void 0:sc.getVideoAspectRatio())!=null?hR:1))}}},"RdGxIf");
var F=function(){K()},L;
_.Hu(function(){K();var O;if(!(l==null?0:(O=l())==null?0:O.transformationMatrix))throw Error("uo");var f;(f=_.gi())==null||f.addEventListener("onStateChange",P);if(window.ResizeObserver){if(O=Z())L=new ResizeObserver(F),L.observe(O)}else window.addEventListener("resize",K);_.TP(function(){var v;(v=_.gi())==null||v.removeEventListener("onStateChange",P);L?L.disconnect():window.removeEventListener("resize",K)})});
var T=function(){var O,f,v=(f=l==null?void 0:(O=l())==null?void 0:O.transformationMatrix)!=null?f:[];O=a();f=U();for(var z=[],sc=0,hR=-1;sc<v.length;sc++)sc%3===0&&(hR++,z[hR]=[]),z[hR].push(v[sc]);v=new tn(z);z=new tn([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);z=v.multiply(z);v=new tn([[0,0],[0,0],[0,0],[0,0]]);for(sc=0;sc<z.getSize().width;sc++){hR=E2(z,0,sc);var Wt=E2(z,1,sc);if(hR===null||Wt===null)throw Error("to`"+(sc+1).toString());Jn(v,sc,0,hR*O);Jn(v,sc,1,Wt*f)}O=E2(v,0,0);sc=E2(v,1,0);f=E2(v,0,1);
hR=E2(v,1,1);if(O===null||sc===null||f===null||hR===null)throw Error("ro");z=x1d(O,sc,f,hR);Wt=E2(v,3,0);v=E2(v,3,1);if(Wt===null||v===null)throw Error("so");v=x1d(O,Wt,f,v);hR=(Number((hR*-1).toFixed(2))-Number((f*-1).toFixed(2)))/(Number(sc.toFixed(2))-Number(O.toFixed(2)));Wt=Math.atan(hR)*180/Math.PI;sc=hR===Number.POSITIVE_INFINITY?-90:hR===Number.NEGATIVE_INFINITY?90:Object.is(hR,-0)?180:hR===0?0:hR>0?Wt*-1:O<sc?Wt*-1:Math.abs(Wt)+180;return"left:calc("+O+"px + "+E()+"); top:calc("+(f+"px + "+
C()+"); width:")+(z+"px; height:")+(v+"px; transform:rotate(")+(sc+"deg);")};
return _.R(N9T,{root:"#sticker-layer"},function(){return _.R("yt-overlay-sticker",{el:_.mR(t),style:T,class:"ytOverlayStickerHost"},y)})},"kj");var hLR=_.aF(function(p){function y(){var P,Z,K,F,L=(Z=_.G((P=u())==null?void 0:P.command,_.kB))==null?void 0:(K=Z.item)==null?void 0:(F=K.notificationTextRenderer)==null?void 0:F.successResponseText;if(L)_.$w(q.value,"yt-open-popup-action",[_.C4(L),q.value]);else if(a())B9d(a(),q.value);else{var T;B9d((T=u())==null?void 0:T.command,q.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var l=p.data;var q=_.sM("svg"),t=_.c(_.nr(!1,void 0,"T9Bq7b"));p=t.next().value;var E=t.next().value,e=_.c(_.nr(!1,void 0,"iMHq9c"));t=e.next().value;var C=e.next().value,u=function(){var P;return _.G((P=l())==null?void 0:P.popUp,t5L)},a=function(){var P;
return(P=l())==null?void 0:P.command},m=function(){return _.G(a(),_.LX)!==void 0};
e=_.Ff(function(){y();return!1});
var U={},b={};return _.R("svg",{"on:mouseover":_.Ff(function(){m()&&E(!0);C(!0);return!1}),
"on:mouseout":_.Ff(function(){E(!1);C(!1);return!1}),
"on:keydown":_.Ff(function(P){P.key==="Enter"&&y();return!1}),
"on:focus":_.Ff(function(){m()&&E(!0);return!1}),
"on:blur":_.Ff(function(){m()&&E(!1);return!1}),
el:q,tabindex:0,"aria-label":function(){var P;return(P=l())==null?void 0:P.a11yString},
id:"player-overlay-video-interaction-svg",class:_.ip("ytPlayerOverlayInteractionInteractionsSvg",(U.ytPlayerOverlayInteractionInteractionsSvgHover=p,U),(b.ytPlayerOverlayInteractionInteractionsSvgHideOutline=t,b)),role:"button","on:click":e})},"mj");_.bp(_.aF(function(p){var y=p.data;_.Hu(function(){var l;if((l=y())==null?0:l.trackingParams){var q;_.Ll().graftServerVe((q=y().trackingParams)!=null?q:"")}});
return _.R("yt-player-overlay-interaction",null,_.R(eLw,{region:function(){var l,q;return(l=y())==null?void 0:(q=l.regions)==null?void 0:q[0]}},_.R(hLR,Object.assign({},p))))},"lj"),"yt-player-overlay-interaction",{props:{data:_.Co}});var eb=function(){var p=_.w.apply(this,arguments)||this;p.showScrubber=!1;p.isWatchWhileMode=!1;p.enableRemixButton=_.n("web_enable_shorts_remix_handoff_ep");p.enableAnchoredPanel=_.n("desktop_shorts_v2_anchored_panel");p.enableNewStickers=_.n("use_shorts_sticker_overlay_web");p.anchoredPanelActive=!1;p.enableLivingroomLayout=_.n("reels_enable_livingroom_layout");p.enablePlayerMetadataContainer=_.n("reels_web_enable_metadata_container");p.enableSqueezebackPanels=_.n("web_shorts_enable_squeezeback_panels");
p.useAspectRatio=_.n("web_use_aspect_ratio");p.isSqueezebackActive=!1;p.smallScreenSqueezeback=!1;p.isPlayerStarted=!1;p.overlayDensity=0;p.isOverlay=!1;p.isImmersive=!1;p.isImmersiveHorizontal=!1;p.isFullscreen=!1;p.onWindowResized=function(){var y;p.set("isImmersive",((y=window.getComputedStyle(p.hostElement))==null?void 0:y.getPropertyValue("--immersive-mode-on"))==="1");p.set("isImmersiveHorizontal",p.isImmersive&&p.enableLivingroomLayout&&!p.isWatchWhileMode)};
return p};
_.A(eb,_.w);_.J=eb.prototype;_.J.updateIsOverlay=function(p){this.isOverlay=p.detail.value};
_.J.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.n("web_enable_flexible_overlay")||_.n("web_enable_format_first")||_.n("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.J.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.J.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.J.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.J.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.J.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.J.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.J.ready=function(){(_.n("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.n("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.$h("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.$h("reels_action_justified_content")||"flex-start")};
_.J.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.J.setFakeLoadingButtons=function(){_.n("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.g$("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.g$("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.g$("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.g$("SHARE_LABEL",void 0,"Share")}}}),_.n("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.g$("REMIX_LABEL",void 0,"Remix")}}}));this.set("data.menu",{menuRenderer:{items:[{menuServiceItemRenderer:{}}]}});this.set("data.pivotButton",{pivotButtonViewModel:{backgroundColor:"THEME_ATTRIBUTE_OVERLAY_BACKGROUND_MEDIUM",icon:{iconType:"WAVEFORM"}}});this.setEmptyOverlayMetadata()};
_.J.setEmptyOverlayMetadata=function(){_.n("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}))};
_.Jh.Object.defineProperties(eb.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.infoPanel)}}});
eb.prototype.onIsActiveChanged=eb.prototype.onIsActiveChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],eb.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],eb.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],eb.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.qI.YtdGuideStateAwareBehavior),_.x("design:type",Object)],eb.prototype,"ytdGuideStateAwareBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],eb.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Boolean)],eb.prototype,"isActive",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],eb.prototype,"hidden",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],eb.prototype,"useShortsIcon",void 0);_.H([_.Q({value:"left"}),_.x("design:type",String)],eb.prototype,"buttonTooltipPosition",void 0);
_.H([_.Q({value:_.n("reels_enable_livingroom_layout")?"top":"left"}),_.x("design:type",String)],eb.prototype,"likeButtonTooltipPosition",void 0);_.H([_.Q({value:"none"}),_.x("design:type",String)],eb.prototype,"textTransform",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],eb.prototype,"showScrubber",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],eb.prototype,"isWatchWhileMode",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("data.infoPanel"),_.x("design:type",Object),_.x("design:paramtypes",[])],eb.prototype,"hasInfoPanel",null);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],eb.prototype,"enableRemixButton",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],eb.prototype,"enableAnchoredPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],eb.prototype,"enableNewStickers",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],eb.prototype,"anchoredPanelActive",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],eb.prototype,"enableLivingroomLayout",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],eb.prototype,"enablePlayerMetadataContainer",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],eb.prototype,"enableSqueezebackPanels",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],eb.prototype,"useAspectRatio",void 0);_.H([_.Q({selector:_.uko,reflectToAttribute:!0}),_.x("design:type",Object)],eb.prototype,"isSqueezebackActive",void 0);_.H([_.Q({selector:rnu,reflectToAttribute:!0}),_.x("design:type",Object)],eb.prototype,"smallScreenSqueezeback",void 0);_.H([_.Q({selector:S2d}),_.x("design:type",Object)],eb.prototype,"isPlayerStarted",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],eb.prototype,"overlayDensity",void 0);_.H([_.Q(),_.x("design:type",Object)],eb.prototype,"isOverlay",void 0);_.H([_.Q({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.x("design:type",Boolean)],eb.prototype,"isShortsOverlay",void 0);_.H([_.Q(),_.x("design:type",Object)],eb.prototype,"isImmersive",void 0);_.H([_.Q(),_.x("design:type",Object)],eb.prototype,"isImmersiveHorizontal",void 0);
_.H([_.Q({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.x("design:type",Boolean)],eb.prototype,"isShortsImmersive",void 0);_.H([_.Q({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.x("design:type",Object)],eb.prototype,"buttonOverride",void 0);_.H([_.Q({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.x("design:type",Object)],eb.prototype,"actionBarButtonOverride",void 0);
_.H([_.Q({selector:_.MG,reflectToAttribute:!0}),_.x("design:type",Object)],eb.prototype,"isFullscreen",void 0);_.H([_.gd("isActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eb.prototype,"onIsActiveChanged",null);_.H([_.k({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],eb);
_.D(eb,"ytd-reel-player-overlay-renderer",function(){if(J0T!==void 0)return J0T;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <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    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return J0T=p},{mode:1});var ChA;var hn=function(){var p=_.w.apply(this,arguments)||this;p.videoDuration=0;p.playedTime=0;p.isActive=!1;p.JSC$22057_playerEvents=new Map;return p};
_.A(hn,_.w);_.J=hn.prototype;_.J.created=function(){this.JSC$22057_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22057_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.J.attached=function(){this.getPlayerAndInitializeListeners()};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22057_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.MH(this,this.onPageChanged))};
_.J.getPlayerAndInitializeListeners=function(){var p=this,y;return _.h(function(l){if(l.nextAddress==1)return y=_.$o(),y?l.yield(y.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.MH(p,p.onPageChanged)),l.jumpTo(0));p.player=l.yieldResult;p.initializePlayerListeners();_.rR(l)})};
_.J.onPageChanged=function(p){var y=this;return _.h(function(l){if(l.nextAddress==1)return p.detail.newPageType!=="ytd-shorts"?l.return():l.yield(_.jo().getPlayerPromise(),2);y.player=l.yieldResult;y.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.MH(y,y.onPageChanged));_.rR(l)})};
_.J.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22057_playerEvents)};
_.J.onVideoDataChange=function(p){var y=this;return _.h(function(l){if(!y.player||p.type!=="newdata")return l.return();y.videoDuration=_.n("web_shorts_use_progress_state_for_gapless")?y.player.getProgressState(p.playertype).seekableEnd:y.player.getDuration(p.playertype);y.playedTime=0;_.rR(l)})};
_.J.onVideoProgress=function(p){var y=this,l,q;return _.h(function(t){if(!y.player)return t.return();l=y.player.getPresentingPlayerType();q=y.player.getPlayerState();y.videoDuration=_.n("web_shorts_use_progress_state_for_gapless")?y.player.getProgressState(l).seekableEnd:y.player.getDuration(l);y.playedTime=q===0?y.videoDuration:p;_.rR(t)})};
_.J.getPercentPlayed=function(p,y){return p?_.OP(y/p,0,1):0};
_.Jh.Object.defineProperties(hn.prototype,{percentPlayed:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration&&this.playedTime?Math.floor(this.getPercentPlayed(this.videoDuration,this.playedTime)*100):0}},
percentPlayedStyle:{configurable:!0,enumerable:!0,get:function(){var p="";return p=this.videoDuration&&this.playedTime?p+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):p+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],hn.prototype,"componentBehavior",void 0);_.H([_.V(_.c8.YtPlayerListenerBehavior),_.x("design:type",_.eE)],hn.prototype,"ytPlayerListenerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],hn.prototype,"player",void 0);_.H([_.Q(),_.x("design:type",Object)],hn.prototype,"videoDuration",void 0);_.H([_.Q(),_.x("design:type",Object)],hn.prototype,"playedTime",void 0);_.H([_.Q(),_.x("design:type",Object)],hn.prototype,"isActive",void 0);
_.H([_.g("videoDuration","playedTime"),_.x("design:type",Number),_.x("design:paramtypes",[])],hn.prototype,"percentPlayed",null);_.H([_.g("videoDuration","playedTime"),_.x("design:type",Object),_.x("design:paramtypes",[])],hn.prototype,"percentPlayedStyle",null);_.H([_.g("videoDuration","isActive"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],hn.prototype,"hideProgressBar",null);
_.D(hn,"ytd-progress-bar-line",function(){if(ChA===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-progress-bar-line--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress-bar-line" hidden="[[hideProgressBar]]" role="progressbar" aria-valuenow$="[[percentPlayed]]" class="style-scope ytd-progress-bar-line">\n  <div class="progress-bar-background style-scope ytd-progress-bar-line"></div>\n  <div class="progress-bar-played style-scope ytd-progress-bar-line" style$="[[percentPlayedStyle]]"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);ChA=p}p=ChA;return p},{mode:_.ZS("kevlar_poly_si_batch_j028")?1:2});var um7;_.bp(_.YEO,"ytm-closed-captioning-button",{props:{captionIconType:_.Co,onClick:_.jw,ariaLabel:_.Co,ariaPressed:_.Co,isOverlay:_.jw,isModern:_.jw}});_.bp(_.WJi,"desktop-shorts-volume-controls",{props:{orientation:_.Co}});var CR=function(){var p=_.w.apply(this,arguments)||this;p.playerState=null;p.isMuted=!1;p.shortsModernControlsEnabled=_.n("web_shorts_modern_controls");p.volumeControlsOrientationState=_.n("web_shorts_modern_controls")?"vertical_down":"horizontal_right";p.isOverlay=!0;p.captionIconType=-1;p.ariaLabel="";p.overlayDensity=0;p.JSC$22060_playerEvents=new Map;p.onClosedCaptionsButtonClick=function(){p.player&&_.tX(p.player)&&(p.player.toggleSubtitles(),p.updateCaptionIconType())};
return p};
_.A(CR,_.w);_.J=CR.prototype;_.J.created=function(){this.JSC$22060_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22060_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22060_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.J.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.fY(28662);this.playPauseButtonClientVE=_.fY(36842);this.fullscreenButtonToggleOffClientVE=_.fY(222256);this.fullscreenButtonToggleOnClientVE=_.fY(222257);var p=_.B2(),y=_.xc();p&&y&&(_.n("combine_ve_grafts")?(_.Vv(_.Ll(),this.muteButtonClientVE,y),_.Vv(_.Ll(),this.playPauseButtonClientVE,y)):_.yj(p,y,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22060_playerEvents),this.player=null)};
_.J.updateCaptionIconType=function(){var p=-1,y=void 0,l=_.g$("CLOSED_CAPTIONS_DISABLED");this.player&&_.tX(this.player)&&(_.DF9(this.player)?(y=!0,l=_.g$("CLOSED_CAPTIONS_ON"),p=1):(y=!1,l=_.g$("CLOSED_CAPTIONS_OFF"),p=0));this.captionIconType=p;this.ariaPressedState=y;this.ariaLabel=l};
_.J.getPlayerAndInitializeListeners=function(){var p=this,y;return _.h(function(l){if(l.nextAddress==1)return y=_.$o(),y?l.yield(y.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.MH(p,p.onPageChanged)),l.jumpTo(0));p.player=l.yieldResult;p.initializePlayerListeners();_.rR(l)})};
_.J.onPageChanged=function(p){var y=this;return _.h(function(l){if(l.nextAddress==1)return p.detail.newPageType!=="ytd-shorts"?l.return():l.yield(_.jo().getPlayerPromise(),2);y.player=l.yieldResult;y.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.MH(y,y.onPageChanged));_.rR(l)})};
_.J.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22060_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.J.onPlayerStateChange=function(p){this.playerState=p};
_.J.onPlayerVolumeChange=function(p){this.isMuted=p.muted};
_.J.onPlayPauseButtonClick=function(){var p=this,y,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(_.jo().getPlayerPromise(),2);y=q.yieldResult;(l=_.B2())&&p.playPauseButtonClientVE&&_.te(l,p.playPauseButtonClientVE);y.getPlayerState()!==1?y.playVideo():y.pauseVideo();_.rR(q)})};
_.J.computePlayPauseIcon=function(p){return p===2||p===-1||p===5?_.n("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.n("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.n("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.J.computeFullscreenLabel=function(p){return p?_.g$("FULLSCREEN_EXIT_LABEL"):_.g$("FULLSCREEN_ENTER_LABEL")};
_.J.computePlayPauseLabel=function(p){return p===1||p===3?_.g$("PLAYER_LABEL_PAUSE"):_.g$("PLAYER_LABEL_PLAY")};
_.J.onMuteButtonClick=function(){var p=this,y,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(_.jo().getPlayerPromise(),2);y=q.yieldResult;(l=_.B2())&&p.muteButtonClientVE&&_.te(l,p.muteButtonClientVE);y.isMuted()?y.unMute(!0):y.mute(!0);_.rR(q)})};
_.J.computeMuteIcon=function(p){return p?"miniplayer:volume-off":"miniplayer:volume-up"};
_.J.computeMuteLabel=function(p){return p?_.g$("PLAYER_LABEL_UNMUTE"):_.g$("PLAYER_LABEL_MUTE")};
_.J.onFullscreenButtonClick=function(){var p=_.B2();p&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.te(p,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.te(p,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.cKV()};
_.Jh.Object.defineProperties(CR.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var p=this;return{disabled:!1,accessibilityLabel:this.computePlayPauseLabel(this.playerState),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computePlayPauseLabel(this.playerState),onTap:function(){p.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.n("web_shorts_modern_controls")?"player_full_exit_alt":_.n("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.n("web_shorts_modern_controls")?"player_full_enter_alt":_.n("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],CR.prototype,"componentBehavior",void 0);_.H([_.V(_.c8.YtPlayerListenerBehavior),_.x("design:type",_.eE)],CR.prototype,"ytPlayerListenerBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],CR.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],CR.prototype,"player",void 0);_.H([_.Q(),_.x("design:type",Object)],CR.prototype,"playerState",void 0);_.H([_.Q(),_.x("design:type",Object)],CR.prototype,"isMuted",void 0);
_.H([_.Q({computed:"computePlayPauseIcon(playerState)"}),_.x("design:type",String)],CR.prototype,"playPauseIcon",void 0);_.H([_.Q({computed:"computeMuteIcon(isMuted)"}),_.x("design:type",String)],CR.prototype,"muteIcon",void 0);_.H([_.Q({selector:_.MG}),_.x("design:type",Boolean)],CR.prototype,"isFullscreen",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],CR.prototype,"shortsModernControlsEnabled",void 0);
_.H([_.Q(),_.x("design:type",Object)],CR.prototype,"volumeControlsOrientationState",void 0);_.H([_.Q(),_.x("design:type",Object)],CR.prototype,"isOverlay",void 0);_.H([_.Q(),_.x("design:type",Object)],CR.prototype,"captionIconType",void 0);_.H([_.Q(),_.x("design:type",Object)],CR.prototype,"ariaLabel",void 0);_.H([_.Q(),_.x("design:type",Object)],CR.prototype,"ariaPressedState",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],CR.prototype,"overlayDensity",void 0);
_.H([_.g("playerState"),_.x("design:type",Object),_.x("design:paramtypes",[])],CR.prototype,"playPauseButtonData",null);_.H([_.g("isFullscreen"),_.x("design:type",Object),_.x("design:paramtypes",[])],CR.prototype,"fullscreenButtonData",null);_.H([_.Q(),_.x("design:type",Object)],CR.prototype,"onClosedCaptionsButtonClick",void 0);_.H([_.g("isFullscreen"),_.x("design:type",String),_.x("design:paramtypes",[])],CR.prototype,"fullscreenIcon",null);
_.D(CR,"ytd-shorts-player-controls",function(){if(um7===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);um7=p}p=um7;return p},{mode:1});var RL7;_.bp(_.qHV,"yt-interstitial-view-model",{props:{data:_.Co}});var WyO=_.aF(function(p){var y=p.data;return _.R("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.R("h1",{class:"reelWatchBreakViewModelHostTitle"},_.R(_.CF,{text:function(){return y().title}})),_.R("h2",{class:"reelWatchBreakViewModelHostBody"},_.R(_.CF,{text:function(){return y().body},
isOverlay:!0})),_.R(_.di,{data:function(){return y().buttons}},{buttonViewModel:function(l,q){return _.R("div",{class:function(){return q()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.R(_.wZ,{data:l.data}))}}))},"nj");
WyO.idomCompat=!0;_.bp(WyO,"reel-watch-break-view-model",{props:{data:_.Co}});var u3=function(){return _.w.apply(this,arguments)||this};
_.A(u3,_.w);u3.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}}};
_.Jh.Object.defineProperties(u3.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var p;return!!_.G((p=this.data)==null?void 0:p.renderer,Is6)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var p;return!!_.G((p=this.data)==null?void 0:p.renderer,ped)}}});
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],u3.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],u3.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],u3.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],u3.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("data.renderer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u3.prototype,"isSurvey",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data.renderer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u3.prototype,"isInterstitialViewModel",null);_.H([_.k({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],u3);
_.D(u3,"ytd-reel-non-video-content-renderer",function(){if(RL7!==void 0)return RL7;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-non-video-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="nvc-container" class="nvc-container style-scope ytd-reel-non-video-content-renderer">\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
return RL7=p},{mode:_.ZS("kevlar_poly_si_batch_j028")?1:2});var aW6;_.bp(_.R$T,"desktop-shorts-player-controls",{});var R6=function(){var p=_.w.apply(this,arguments)||this;p.isPlayerPaused=!1;p.isPlayerStarted=!1;p.showPlayerControls=!1;p.showScrubber=!1;p.autoHideJobId=0;p.modern=_.n("web_button_rework");p.overlayType=_.$h("web_shorts_expanded_overlay_type");p.panelData=void 0;p.isWatchWhileMode=!1;p.hasError=!1;p.panelShowDelayMs=1;p.scrubberComponent={};p.isFullscreen=!1;p.shouldHideOverlay=!1;p.enableAnchoredPanel=_.n("desktop_shorts_v2_anchored_panel");p.enablePersistentAnchoredPanel=_.n("desktop_shorts_v2_persistent_anchored_panel");
p.hideWatchWhilePanel=_.n("web_shorts_hide_watch_while_panel");p.useAspectRatio=_.n("web_use_aspect_ratio");p.isPersistentPanelActive=!1;p.anchoredPanelActive=!1;p.isShortsPipActive=!1;p.smallScreenSqueezeback=!1;p.enableFlexibleOverlay=_.n("web_enable_flexible_overlay");p.overlayDensity=0;p.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};p.onWindowResized=function(){_.tl(p,
"calculateOverlayDensity",function(){p.calculateOverlayDensity()},100)};
return p};
_.A(R6,_.w);_.J=R6.prototype;_.J.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.J.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.J.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var p=_.WC().resolve(_.H8);this.isWatchWhileMode&&(_.n("web_enable_shorts_new_carousel")?_.TR.addJob(function(){p.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):p.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.J.handleShowReelsCommentsOverlayCommand=function(p){p=_.G(p,qjw);this.isActive&&(p==null?0:p.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.J.updateEngagementPanelVisibility=function(p,y){p&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:y?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:p}})};
_.J.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.J.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.WC().resolve(_.LI).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.J.handleWatchWhilePanelScrimClick=function(){var p=_.WC().resolve(_.H8);this.activeWatchWhilePanel&&(p.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.J.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.J.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.n("web_enable_shorts_new_carousel")?0:void 0}}};
_.J.handlePlayerClick=function(p){var y=this,l,q;if((q=(l=window).matchMedia)!=null&&q.call(l,"(any-pointer: coarse)").matches||!p)this.showPlayerControls=!0,_.TR.cancelJob(this.autoHideJobId),this.autoHideJobId=_.rJ(_.TR,function(){y.showPlayerControls=!1},4E3)};
_.J.isFirstReel=function(){return this.index===0};
_.J.handleMouseenter=function(){_.TR.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.J.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.J.handleScrubberEnter=function(){this.showScrubber=!0};
_.J.handleScrubberLeave=function(){this.showScrubber=!1};
_.J.maybeLogNonDefaultAspectRatio=function(){var p;(p=this.data)!=null&&p.thumbnail&&this.isActive&&.5625!==iRR(this.data.thumbnail)&&_.GQl("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.J.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var p=document.querySelector("#shorts-container");if(p){p=p.offsetWidth/2-this.playerContainer.offsetWidth/2;p=p>=368?1:p>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&p===1&&(p=0);this.isPersistentPanelActive&&(p=0);window.innerWidth<=599&&(p=2);this.overlayDensity=p;var y;(y=this.onOverlayDensityChanged)==null||y.call(this,this.index,this.overlayDensity)}}};
_.J.onOverlayDensityChange=function(){var p;(p=this.onOverlayDensityChanged)==null||p.call(this,this.index,this.overlayDensity);(p=_.jR(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&p.set("overlayDensity",this.overlayDensity);if(p=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))p.overlayDensity=this.overlayDensity};
_.J.isVideoContent=function(p){_.WC().resolve(_.LI);return!!_.G(p,_.FC)};
_.J.isNonVideoContent=function(p){_.WC().resolve(_.LI);return!!_.G(p,_.I5)};
_.J.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Jh.Object.defineProperties(R6.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var p,y;return _.n("web_enable_format_first")||((p=this.data)==null?void 0:p.adsOverlay)&&_.n("web_enable_format_first_ads_only")||((y=this.data)==null?void 0:y.reelPlayerOverlayRenderer)&&_.n("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.n("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var p;return!this.isActive||!this.isPlayerStarted||(p=this.data)!=null&&p.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var p;if(((p=this.data)==null?0:p.command)&&this.isVideoContent(this.data.command)){var y,l;if(((y=this.data)==null?0:y.adsOverlay)&&Object.keys((l=this.data)==null?void 0:l.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var q,t;if(((q=this.data)==null?0:q.reelPlayerOverlayRenderer)&&Object.keys((t=this.data)==null?void 0:t.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
R6.prototype.onOverlayDensityChange=R6.prototype.onOverlayDensityChange;R6.prototype.calculateOverlayDensity=R6.prototype.calculateOverlayDensity;R6.prototype.maybeLogNonDefaultAspectRatio=R6.prototype.maybeLogNonDefaultAspectRatio;R6.prototype.onEngagementPanelsChanged=R6.prototype.onEngagementPanelsChanged;R6.prototype.onScrubberDataChange=R6.prototype.onScrubberDataChange;R6.prototype.updateShouldHideOverlay=R6.prototype.updateShouldHideOverlay;
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],R6.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],R6.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.qI.YtdGuideStateAwareBehavior),_.x("design:type",Object)],R6.prototype,"ytdGuideStateAwareBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],R6.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Number)],R6.prototype,"index",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],R6.prototype,"isActive",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],R6.prototype,"isHiddenInDom",void 0);_.H([_.Q(),_.x("design:type",Object)],R6.prototype,"isPlayerPaused",void 0);_.H([_.Q({selector:S2d}),_.x("design:type",Object)],R6.prototype,"isPlayerStarted",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],R6.prototype,"showPlayerControls",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],R6.prototype,"showScrubber",void 0);_.H([_.Q(),_.x("design:type",Object)],R6.prototype,"autoHideJobId",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],R6.prototype,"modern",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],R6.prototype,"overlayType",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],R6.prototype,"ytdReduxBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],R6.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],R6.prototype,"watchWhileEngagementPanels",void 0);_.H([_.Q(),_.x("design:type",Object)],R6.prototype,"panelData",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],R6.prototype,"isWatchWhileMode",void 0);_.H([_.Q(),_.x("design:type",String)],R6.prototype,"activeWatchWhilePanel",void 0);
_.H([_.Q(),_.x("design:type",Object)],R6.prototype,"hasError",void 0);_.H([_.Q(),_.x("design:type",Object)],R6.prototype,"panelShowDelayMs",void 0);_.H([_.Q(),_.x("design:type",Object)],R6.prototype,"scrubberComponent",void 0);_.H([_.Q({selector:_.MG,reflectToAttribute:!0}),_.x("design:type",Object)],R6.prototype,"isFullscreen",void 0);_.H([_.Q(),_.x("design:type",Object)],R6.prototype,"shouldHideOverlay",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],R6.prototype,"enableAnchoredPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],R6.prototype,"enablePersistentAnchoredPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],R6.prototype,"hideWatchWhilePanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],R6.prototype,"useAspectRatio",void 0);
_.H([_.Q({selector:_.uko,reflectToAttribute:!0}),_.x("design:type",Object)],R6.prototype,"isPersistentPanelActive",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],R6.prototype,"anchoredPanelActive",void 0);_.H([_.Q({selector:_.Vn,reflectToAttribute:!0}),_.x("design:type",Object)],R6.prototype,"isShortsPipActive",void 0);_.H([_.Q({selector:rnu,reflectToAttribute:!0}),_.x("design:type",Object)],R6.prototype,"smallScreenSqueezeback",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],R6.prototype,"enableFormatFirst",null);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],R6.prototype,"enableFlexibleOverlay",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],R6.prototype,"overlayDensity",void 0);_.H([_.Q(),_.x("design:type",Function)],R6.prototype,"onOverlayDensityChanged",void 0);
_.H([_.Q(),_.g("isActive","hasError","isPlayerStarted"),_.x("design:type",Object),_.x("design:paramtypes",[])],R6.prototype,"shouldRenderPlayerElements",null);_.H([_.Q(),_.g("isActive","isWatchWhileMode"),_.x("design:type",Object),_.x("design:paramtypes",[])],R6.prototype,"watchWhileOrPersistentActive",null);_.H([_.gd("isActive","hasError","showingExpandedOverlay"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],R6.prototype,"updateShouldHideOverlay",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("isActive","isPlayerStarted","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],R6.prototype,"shouldRenderScrubber",null);_.H([_.gd("shouldRenderScrubber"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],R6.prototype,"onScrubberDataChange",null);_.H([_.g("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],R6.prototype,"overlayComponent",null);
_.H([_.gd("watchWhileEngagementPanels"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],R6.prototype,"onEngagementPanelsChanged",null);_.H([_.rd("#player-container"),_.x("design:type",HTMLElement)],R6.prototype,"playerContainer",void 0);_.H([_.rd("#cinematic-container"),_.x("design:type",HTMLElement)],R6.prototype,"cinematicContainer",void 0);
_.H([_.gd("isPersistentPanelActive","data.thumbnail"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],R6.prototype,"maybeLogNonDefaultAspectRatio",null);_.H([_.gd("isPersistentPanelActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],R6.prototype,"calculateOverlayDensity",null);_.H([_.gd("overlayDensity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],R6.prototype,"onOverlayDensityChange",null);
_.H([_.k({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],R6);
_.D(R6,"ytd-reel-video-renderer",function(){if(aW6!==void 0)return aW6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return aW6=p},{mode:_.ZS("kevlar_poly_si_batch_j028")?1:2});var Wi=function(){var p=_.w.apply(this,arguments)||this;p.isPreviousPageShorts=!1;p.index=0;p.delayedActiveIndex=0;p.playablePreviousIndex=null;p.isPlayerPaused=!1;p.isPlayerStarted=!1;p.intersectionObserverThreshold=.6;p.fitToVisibleBounds=!1;p.pageSubtype="shorts";p.enablePreviousContinuation=_.n("shorts_in_playlists_web");p.shortsPipEnabled=_.n("web_shorts_pip");p.isDark=document.documentElement.hasAttribute("dark");p.shortsViewTransitions=_.n("web_shorts_view_transitions");p.isFullscreen=!1;p.isShortsPipActive=
!1;p.buttonOverride={iconPosition:"icon-only",size:"XL"};p.anchoredPanelActive=!1;p.isActive=!1;p.smallScreenPersistentPanel=!1;p.isPersistentPanelActive=!1;p.smallScreenSqueezeBack=!1;p.enableScrollIntoViewCenter=_.n("web_scroll_into_view_center");p.formatFirst=_.n("web_enable_format_first")||_.n("web_enable_format_first_ads_only")||_.n("web_enable_format_first_organic_only");p.enableFlexibleOverlay=_.n("web_enable_flexible_overlay");p.useAspectRatio=_.n("web_use_aspect_ratio");p.isShortsInitialized=
!1;p.hidePreviousButtonImmediately=!1;p.showPreviousButtonImmediately=!1;p.endOfNextContinuation=!1;p.currentPlayerIndex=0;p.nextReelVe=_.fY(56921);p.prevReelVe=_.fY(56922);p.loopToggleOffVe=_.fY(198013);p.loopToggleOnVe=_.fY(198014);p.ambientModeToggleVe=_.fY(227860);p.reelPlayerPausedStateRendererVe=_.fY(141313);p.storedPlaybackSpeed=null;p.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction","yt-reel-navigate-command":"handleReelNavigateCommand",
"yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand","yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged","yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff",
"yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};p.onOverlayDensityChanged=function(y,l){var q;(q=p.getActiveReelVideo(y))==null||q.setAttribute("overlay-density",String(l))};
return p};
_.A(Wi,_.w);_.J=Wi.prototype;
_.J.deflateInactivePreviousSlides=function(){var p=_.UC("web_shorts_deflate_inactive_slides_aggressive_distance");if(p>0&&this.shortsProcessedSequence&&this.activeIndex){p=this.activeIndex-p;for(var y=0;y<=p;y++){var l=void 0;((l=this.shortsProcessedSequence[y].reelPlayerOverlayRenderer)==null?0:l.metapanel)&&this.set("shortsProcessedSequence."+y+".reelPlayerOverlayRenderer",{});l=void 0;((l=this.shortsProcessedSequence[y].adsOverlay)==null?0:l.adSlotMetadata)&&this.set("shortsProcessedSequence."+y+
".adsOverlay",{})}}};
_.J.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.J.onResize=function(){var p=_.ei(),y=p.dispatch,l=this.calculateIsSmallWidth();y.call(p,_.$y({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:l}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.J.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:_.n("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.J.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var p=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,y=p,l=0;p<250&&(y=p+this.shortsInnerContainer.clientWidth,l=24);_.Ax(this.hostElement,{"--ytd-shorts-header-width":y+"px","--ytd-shorts-top-spacing":l+"px"})}};
_.J.isFirstShorts=function(p){return p?this.index===-p.length:this.index===0};
_.J.isActiveReel=function(p,y,l){l&&(y=this.calculatePrevIndex(y,l));return p===y};
_.J.onFullscreenChange=function(){if(_.n("web_fullscreen_shorts")){var p;(p=this.getActiveReelVideo(this.activeIndex))==null||p.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.WC().resolve(_.IA).close(!0)}};
_.J.engagementPanelsChanged=function(){var p;this.watchWhileEngagementPanels=(p=this.data)==null?void 0:p.engagementPanels};
_.J.unregisterPanels=function(){var p=_.WC().resolve(_.H8);if(this.watchWhileEngagementPanels)for(var y=_.c(this.watchWhileEngagementPanels),l=y.next();!l.done;l=y.next()){var q=l.value,t=void 0,E=void 0;l=(t=q.engagementPanelSectionListRenderer)==null?void 0:(E=t.identifier)==null?void 0:E.tag;q=this.getPanelContentIdentifier(q.engagementPanelSectionListRenderer);p&&(l&&p.panelMap.delete(l),q&&_.n("web_shorts_panel_caching_bugfix")&&(t=l=void 0,(t=(l=p).unregisterPanelContent)==null||t.call(l,q)))}};
_.J.isVideoContent=function(p){return this.isVideoContentCommand(p==null?void 0:p.command)};
_.J.getActiveReelVideo=function(p){return _.jR(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+p+'"]')};
_.J.calculatePrevIndex=function(p,y){return y?p-((y==null?void 0:y.length)||0):-1};
_.J.onKeydown=function(p){var y=_.Jx(p)||[];if(!_.JKO(y))if(p.code==="ArrowUp")p.preventDefault(),this.handlePrevButtonClick();else if(p.code==="ArrowDown")p.preventDefault(),this.handleNextButtonClick();else if(p.code==="KeyM")this.toggleMuteUnmuteVideo();else if(p.code==="KeyK"||p.code==="Space")this.togglePlayPauseVideo();else if((p.code==="KeyA"||p.code==="ArrowLeft")&&_.n("web_shorts_keyboard_enable_seek_shortcuts")){var l;(l=this.player)==null||l.seekBy(-5)}else if((p.code==="KeyD"||p.code===
"ArrowRight")&&_.n("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var q;(q=this.player)==null||q.seekBy(5)}};
_.J.onServiceRequestCompleted=function(p,y){p=y.data;p.continuationEndpoint&&p.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:p.entries,continuationEndpoint:p.continuationEndpoint}}):p.prevContinuationEndpoint&&p.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:p.prevEntries,prevContinuationEndpoint:p.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.J.handleEngagementPanelVisibilityChanged=function(p,y){var l=_.WC().resolve(_.H8);if(p&&l){var q=this.getPanelIdentifier(p);if(y==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==q){l.hidePanel(this.activePanel);var t;this.activePanel=((t=p.identifier)==null?void 0:t.tag)||p.panelIdentifier}else this.isPersistentPanelActive=!0,_.ei().dispatch(vV1(!0)),this.anchoredPanelActive=!0,this.activePanel=q;else y==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
q&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.ei().dispatch(vV1(!1)))}};
_.J.handlePanelScrimClick=function(){var p=_.WC().resolve(_.H8);this.activePanel&&(p.hidePanel(this.activePanel),_.ei().dispatch(vV1(!1)))};
_.J.getShortsLoopSetting=function(){var p,y,l,q,t;return _.h(function(E){switch(E.nextAddress){case 1:return _.n("kevlar_shorts_auto_advance")?E.yield(_.B4.getInstance(),2):E.return(!0);case 2:return(p=E.yieldResult)?E.yield(p.get("sfvles"),3):E.return(!0);case 3:return l=(y=E.yieldResult)!=null?y:!1,E.yield(p.get("sfvle"),4);case 4:return t=(q=E.yieldResult)!=null?q:!0,l?E.return(t):E.return(!0)}})};
_.J.handleSignalActionToggleLoopShortsOff=function(){var p=this,y,l,q;return _.h(function(t){switch(t.nextAddress){case 1:if(!p.player)return t.return();p.player.setLoopVideo(!1);y=_.Ll();_.Qv(y,p.loopToggleOffVe);return t.yield(_.B4.getInstance(),2);case 2:return(l=t.yieldResult)?t.yield(l.set("sfvle",!1),3):t.return();case 3:return t.yield(l.set("sfvles",!0),4);case 4:q=_.w$(),_.il(0,203,!1),_.il(0,204,!0),q.save(),_.rR(t)}})};
_.J.handleSignalActionToggleLoopShortsOn=function(){var p=this,y,l,q;return _.h(function(t){switch(t.nextAddress){case 1:if(!p.player)return t.return();p.player.setLoopVideo(!0);y=_.Ll();_.Qv(y,p.loopToggleOnVe);return t.yield(_.B4.getInstance(),2);case 2:return(l=t.yieldResult)?t.yield(l.set("sfvle",!0),3):t.return();case 3:return t.yield(l.set("sfvles",!0),4);case 4:q=_.w$(),_.il(0,203,!0),_.il(0,204,!0),q.save(),_.rR(t)}})};
_.J.handleSignalActionToggleCinematicShortsOn=function(){wi1(!0);var p;(p=this.JSC$22084_cinematicController)==null||_.AnO(p,!0);_.Qv(_.Ll(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.J.handleSignalActionToggleCinematicShortsOff=function(){wi1(!1);var p;(p=this.JSC$22084_cinematicController)==null||_.AnO(p,!1);_.Qv(_.Ll(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.J.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.J.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.J.unhideCurrentOverlay=function(){if(this.overlayContainer){var p=this.overlayContainer.querySelector("#experiment-overlay");p&&_.TR.addLowPriorityJob(function(){p.style.display="unset"},100)}};
_.J.getCurrentShort=function(){if(this.currentEndpoint){var p=this.currentEndpoint;if(this.isNonVideoContentCommand(p)){var y=_.G(p,_.I5);return{reelNonVideoContentRenderer:_.G(y==null?void 0:y.renderer,_.ATU),command:p}}if(this.data){var l;y=(l=_.G(this.currentEndpoint,_.FC))==null?void 0:l.thumbnail;var q;l=(q=this.data.overlay)==null?void 0:q.reelPlayerOverlayRenderer;_.WC().resolve(_.LI);p=this.data;var t,E;q=(t=p.overlay)==null?void 0:(E=t.shortsAdsRenderer)==null?void 0:E.adSlots;if(q!==void 0)q.length===
0?(_.Rk("Shorts ads returned no ad slots."),p=void 0):(q.length>1&&_.Rk("Shorts ads has more than one ad slots."),p=_.G(q[0],_.fIU));else{var e,C;p=_.G((e=p.overlay)==null?void 0:(C=e.shortsAdsRenderer)==null?void 0:C.overlay,_.fIU)}e=p;p=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.G(this.currentEndpoint,_.FC),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:l,thumbnail:y,command:p,adsOverlay:e}}}};
_.J.created=function(){var p=this;this.scrollToVideoThrottle=new _.hy(function(y){var l;(l=p.getActiveReelVideo(y))==null||l.scrollIntoView({behavior:"smooth",block:"nearest",inline:p.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.hy(function(y){var l;(l=p.getActiveReelVideo(y))==null||l.scrollIntoView({behavior:"auto",block:"nearest",inline:p.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.J.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.J.attached=function(){var p=this;_.WC().resolve(_.LI).registerRootElement(this);this.pageScrollElement=_.jR(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.MH(this,this.processResetAction));_.n("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var y=p.getActiveReelVideo(p.activeIndex);p.maybeCreateIntersectionObserver();y==null||y.scrollIntoView({behavior:"instant",
block:"nearest",inline:p.enableScrollIntoViewCenter?"center":"start"});p.shortsContainer.style.overflowY="scroll"}))};
_.J.calculateSqueezebackPanelSize=function(){var p=this,y=window.innerWidth-456-(window.innerHeight-106)*.5625;_.TR.addLowPriorityJob(function(){y<360?_.ei().dispatch(Xim(!0)):(p.hostElement.style.setProperty("--anchored-panel-width",Math.min(y,480)+"px"),_.ei().dispatch(Xim(!1)))})};
_.J.detached=function(){var p=_.WC().resolve(_.LI);p.rootElement=void 0;var y;(y=p.unsubscribeFromStore)==null||y.call(p);p.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.MH(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.J.onResizeFinished=function(p,y){var l=this,q=new ResizeObserver(function(){l.shortsContainer.style.overflowY="hidden";_.TR.addLowPriorityJob(function(){y()},100)});
q.observe(p);return q};
_.J.resetDocumentScrollTop=function(){var p,y;if((p=document)==null?0:(y=p.scrollingElement)==null?0:y.scrollTop)document.scrollingElement.scrollTop=0};
_.J.loadPage_=function(p){var y=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),p){var l;!_.n("web_enable_delay_shorts_sequence_call")&&((l=_.G(this.currentEndpoint,_.FC))==null?0:l.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=p;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){y.isPlayerStarted&&(y.handleOnPlaybackCommand(),y.afterPlayerStarted=function(){})};
this.registerPanel(p)}};
_.J.afterPlayerStarted=function(){};
_.J.handleOnPlaybackCommand=function(){if(_.n("web_shorts_comment_stickers")&&this.isPlayerStarted){var p,y=(p=_.G(this.currentEndpoint,_.FC))==null?void 0:p.onPlaybackCommand;y&&this.ytComponentBehavior.resolveCommand(y)}};
_.J.maybeCreateIntersectionObserver=function(){var p=this,y=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==y){this.intersectionObserverThreshold=y;var l={rootMargin:"0px",threshold:y},q;(q=this.intersectionObserver)==null||q.disconnect();this.intersectionObserver=new IntersectionObserver(function(t){t=_.c(t);for(var E=t.next();!E.done;E=t.next())if(E=E.value,E.intersectionRatio>y){E=Number(E.target.id);if(isNaN(E))break;if(E===p.index)break;
_.Bct();p.loadVideo(E);_.X_("r_vtc")}},l);
this.observeShorts()}};
_.J.observeShorts=function(){var p=[].concat(_.xq(_.jR(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));p=_.c(p);for(var y=p.next();!y.done;y=p.next()){y=y.value;var l=void 0;(l=this.intersectionObserver)==null||l.observe(y)}};
_.J.initCsi=function(){_.Ph("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var p={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},y,l;if((y=this.playerData)==null?0:(l=y.cacheMetadata)==null?0:l.isCacheHit)p.isCacheHit=!0;var q;if(y=(q=_.G(this.currentEndpoint,_.FC))==null?void 0:
q.prefetchTaskId)p.prefetchInfo={taskId:y};_.xw(p)};
_.J.isAd=function(){var p,y;return!!((p=_.G(this.currentEndpoint,_.FC))==null?0:(y=p.adClientParams)==null?0:y.isAd)};
_.J.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.J.getPlayerContainer=function(){var p;return(p=_.jR(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:p.playerContainer};
_.J.onPlayerStateChange=function(p){var y=this;this.isPlayerPaused=p===2;p!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?p===1&&this.index===0&&(this.isPlayerStarted||_.ei().dispatch(s2(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.ei().dispatch(s2(!0)));this.player&&!this.player.getLoopVideo()&&_.TR.addLowPriorityJob(function(){y.getShortsLoopSetting().then(function(l){var q;(q=y.player)==null||q.setLoopVideo(l)})});
this.isPlayerPaused&&_.n("web_shorts_paused_state_logging")&&_.qs(_.B2(),[this.reelPlayerPausedStateRendererVe])};
_.J.isInBackground=function(){var p=window.document.visibilityState;return!(!p||p==="visible")};
_.J.isShortPlayable=function(){if(_.n("kevlar_playable_short_killswitch"))return!0;var p;return(p=this.playerData)!=null&&p.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.J.setNormalPlaybackSpeed=function(){var p=this,y,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(p.getPlayer().getPlayerPromise(),2);y=q.yieldResult;l=y.getPlaybackRate();l!==1&&(p.storedPlaybackSpeed=l,y.setPlaybackRate(1));_.rR(q)})};
_.J.restorePlaybackSpeed=function(){var p=this,y;return _.h(function(l){if(l.nextAddress==1)return p.storedPlaybackSpeed===null?l.jumpTo(0):l.yield(p.getPlayer().getPlayerPromise(),3);y=l.yieldResult;y.setPlaybackRate(p.storedPlaybackSpeed);p.storedPlaybackSpeed=null;_.rR(l)})};
_.J.playerDataChanged=function(){var p=this,y,l,q,t,E,e,C,u,a;return _.h(function(m){if(m.nextAddress==1){y=p.getPlayer();(l=p.intersectionObserver)==null||l.disconnect();if(p.playerData){if(((q=p.playerData.videoDetails)==null?void 0:q.videoId)!==((t=y.getPlayer())==null?void 0:t.getVideoData().video_id)){E={};if(e=_.G(p.currentEndpoint,_.FC))E.watch_endpoint=e,e.endTimeSeconds&&(E.end=e.endTimeSeconds);y.loadVideoWithPlayerResponse(p.playerData,E)}}else return m.return();return p.player?m.jumpTo(2):
m.yield(y.getPlayerPromise(),3)}m.nextAddress!=2&&(p.player=m.yieldResult,p.JSC$22084_playerStateChangeListener=p.onPlayerStateChange.bind(p),p.player.addEventListener("onStateChange",p.JSC$22084_playerStateChangeListener),_.n("kevlar_client_enable_shorts_player_bootstrap")&&_.t2(),p.scrollToVideoThrottle.fire(p.index),p.movePlayerToVideo(p.index),_.TR.addLowPriorityJob(function(){p.getShortsLoopSetting().then(function(U){var b;(b=p.player)==null||b.setLoopVideo(U)})}),_.ej$.resolve(p.player),p.player.syncVolume(),
p.getPlayer().focusOnPlayer());
_.TR.addLowPriorityJob(function(){p.observeShorts()},100);
C=p.player.getPlayerState(p.player.getPresentingPlayerType());C!==1||p.isPlayerStarted||_.ei().dispatch(s2(!0));p.updateBackNavContainerWidth();u=_.G(p.currentEndpoint,_.FC);((a=u)==null?0:a.startTimeSeconds)&&p.player.seekTo(u.startTimeSeconds);if(p.JSC$22084_cinematicController||p.cinematicsInitializeJobId)return m.return();p.cinematicsInitializeJobId=_.TR.addLowPriorityJob(function(){p.initCinematicController();p.cinematicsInitializeJobId=void 0});
_.rR(m)})};
_.J.onShortUndoDismiss=function(){var p=this,y=fsu().pop();y!==void 0&&(_.th(this,function(){p.showCardWithIndex(y)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.J.onShortsDismiss=function(p){if(p=p.detail.reelDismissalActionRenderer)(p=_.G(p.onDismissalCompletionRenderer,_.yn6))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:p}}}),this.scrollAndDismissCard()};
_.J.processReelNonVideoContentDismissalCommand=function(p){var y=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);p=_.G(p,lW7);this.activeDimissalTimeout=setTimeout(function(){y.scrollAndDismissCard()},Number(p==null?void 0:p.delayMs))};
_.J.scrollAndDismissCard=function(){var p=this,y=this.index;fsu().push(y);_.th(this,function(){var l=p.getPlayableNextIndex();l!==null&&(l=p.getActiveReelVideo(l),p.hideCardWithIndex(y),l==null||l.scrollIntoView({behavior:"smooth",block:"nearest",inline:p.enableScrollIntoViewCenter?"center":"start"}))})};
_.J.hideCardWithIndex=function(p){if(p=this.getActiveReelVideo(p))p.hidden=!0};
_.J.showCardWithIndex=function(p){if(p=this.getActiveReelVideo(p))p.hidden=!1};
_.J.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.J.activeChanged=function(p){_.ei().dispatch(_.$y({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:p}}));if(p)document.addEventListener("keydown",_.MH(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var y;(y=this.player)==null||y.sendAbandonmentPing()}var l;(l=this.player)==null||l.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.MH(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.J.graftClientVisualElements=function(){if(this.data){var p=_.Ll();_.eRU(p,_.PW({response:this.reelWatchSequenceResponse}));_.Vv(p,this.nextReelVe);_.Vv(p,this.prevReelVe);_.n("kevlar_shorts_auto_advance")&&(_.Vv(p,this.loopToggleOffVe),_.Vv(p,this.loopToggleOnVe));_.Vv(p,this.ambientModeToggleVe);_.qs(_.B2(),[this.nextReelVe,this.prevReelVe]);_.n("web_shorts_paused_state_logging")&&_.Vv(p,this.reelPlayerPausedStateRendererVe)}};
_.J.graftNvcRenderer=function(){var p,y,l,q,t=this.index<0?(p=this.shortsProcessedPrevSequence)==null?void 0:(y=p[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:y.command:(l=this.shortsProcessedSequence)==null?void 0:(q=l[this.index])==null?void 0:q.command;if(t&&this.isNonVideoContentCommand(t)){p=_.G(t,_.I5);var E,e;(p=(E=_.G(p==null?void 0:p.renderer,_.ATU))==null?void 0:(e=E.loggingDirectives)==null?void 0:e.trackingParams)&&_.Ll().graftServerVe(p)}};
_.J.setActiveIndex=function(){_.WC().resolve(_.LI).setActiveIndex(this.index)};
_.J.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.J.lazyUpdateMiniplayerData=function(){var p=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.TR.addLowPriorityJob(function(){p.updateMiniplayerData();p.updateMiniplayerDataJobId=void 0}))};
_.J.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.TR.cancelJob(this.updateMiniplayerDataJobId)};
_.J.updateMiniplayerData=function(){var p,y,l,q=_.WC().resolve(_.IA),t={shortsData:this.getCurrentShort(),previousButtonDisabled:!((p=this.prevButtonData)==null||!p.isDisabled),nextButtonDisabled:!((y=this.nextButtonData)==null||!y.isDisabled),playabilityStatus:(l=this.playerData)==null?void 0:l.playabilityStatus};_.d2(q,t)};
_.J.resetPlayerLocation=function(){var p=this.getPlayer();this.initialPlayerContainer&&p.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.J.movePlayerToVideo=function(p,y){var l=this;y=y===void 0?!0:y;var q=this.getActiveReelVideo(p),t=this.getPlayer();if(q){this.overlayContainer?q.appendChild(this.overlayContainer):(this.overlayContainer=_.jR(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,q.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||t.appendTo(this.overlayContainer.playerContainer,void 0,!0));var E;(E=this.player)==null||E.setSize(NaN,NaN);this.isActive||_.rJ(_.TR,function(){l.isActive=
!0});
t.style.visibility="visible";_.n("reels_web_disable_rtr_tick")||_.n("reels_web_use_pbs_first_shorts")&&p===0||_.fy("r_tr");this.currentPlayerIndex=p;q.appendChild(this.errorScreenContainer);var e;(e=this.JSC$22084_cinematicController)==null||_.Mbd(e)}else y?_.TR.addLowPriorityJob(function(){l.movePlayerToVideo(l.index,!1)}):Math.random()<=_.UC("web_shorts_error_logging_threshold")&&_.fT(new _.SM("Trying to movePlayerToVideo with undefined container.",{firstAttempt:y,
index:p}))};
_.J.enableFormatFirst=function(p){return _.n("web_enable_format_first")||p.adsOverlay&&_.n("web_enable_format_first_ads_only")||p.reelPlayerOverlayRenderer&&_.n("web_enable_format_first_organic_only")};
_.J.getAspectRatio=function(p){if(p!=null&&p.thumbnail&&this.enableFormatFirst(p))return"--ytd-shorts-player-ratio: "+iRR(p.thumbnail)};
_.J.getBackgroundImage=function(p){if(p!=null&&p.thumbnail)return(p=_.GT(p.thumbnail.thumbnails))?'background-image:url("'+p+'");':"background-color:black;"};
_.J.onPersistentPanelActiveChanged=function(){var p=this.getCurrentShort();if(p&&this.enableFormatFirst(p)&&(p==null?0:p.thumbnail)&&iRR(p.thumbnail)!==.5625){var y;(y=this.player)==null||y.setSize(NaN,NaN)}};
_.J.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.J.moveCinematicsToVideo=function(){var p=_.jR(this.hostElement).querySelector("ytd-reel-video-renderer");(p==null?0:p.cinematicContainer)&&p.cinematicContainer!==this.shortsCinematicContainer.parentElement&&p.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.J.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.J.updatePrevButtonData=function(){var p=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(p){var y;this.prevButtonData=p=Object.assign({},p,{accessibility:{label:_.g$("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:p.isDisabled||this.index===-(((y=this.shortsProcessedPrevSequence)==null?void 0:y.length)||0),tooltip:this.isUpArrowHidden?"":_.g$("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=p=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.J.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.J.updateNextButtonData=function(){var p=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(p){var y;this.nextButtonData=p=Object.assign({},p,{accessibility:{label:_.g$("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:p.isDisabled||this.index===((y=this.shortsProcessedSequence)==null?void 0:y.length),tooltip:_.g$("NEXT_VIDEO_LABEL")||""})}};
_.J.getPlayablePreviousIndex=function(){for(var p,y=this.index-1;y>=-(((p=this.prevShortsSequence)==null?void 0:p.length)||0);y--)if(!fsu().includes(y))return y;return null};
_.J.getIndexInSequence=function(p,y){return p.findIndex(function(l){var q;return((q=_.G(l.command,_.FC))==null?void 0:q.videoId)===y})};
_.J.handlePrevButtonClick=function(p){var y=this,l,q;return _.h(function(t){l=y.getPlayablePreviousIndex();if(l===null)return t.return();y.gestureType=((q=p)==null?void 0:q.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";l===0&&(y.hidePreviousButtonImmediately=!0);if(y.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){y.transitionToVideoThrottle.fire(l)}),t.return();
y.scrollToVideoThrottle.fire(l);_.rR(t)})};
_.J.getPlayableNextIndex=function(){for(var p,y=this.index+1;y<(((p=this.shortsProcessedSequence)==null?void 0:p.length)||0);y++)if(!fsu().includes(y))return y;return null};
_.J.handleNextButtonClick=function(p,y){var l=this,q,t;return _.h(function(E){q=l.getPlayableNextIndex();if(q===null)return E.return();q===1&&(l.showPreviousButtonImmediately=!0);l.gestureType=((t=p)==null?void 0:t.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";y&&(l.gestureType=y);if(l.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){l.transitionToVideoThrottle.fire(q)}),E.return();
l.scrollToVideoThrottle.fire(q);_.rR(E)})};
_.J.handleReelNavigateCommand=function(p,y,l){(p=_.G(p,y0w))&&y&&p.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(l)};
_.J.loadVideo=function(p,y){y=y===void 0?!1:y;if(p!==this.currentPlayerIndex){_.ei().dispatch(s2(!1));if(this.isAd()&&!y){var l;(l=this.player)==null||l.notifyShortsAdSwipeEvent()}if((y=this.JSC$22084_cinematicController)!=null){var q;(q=y.currentCinematicEffect)==null||q.pause()}if((q=this.JSC$22084_cinematicController)!=null){var t;(t=q.currentCinematicEffect)==null||t.clear()}q=p>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(q));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var E,e,C,u;t=p<0?(E=this.shortsProcessedPrevSequence)==null?void 0:(e=E[this.shortsProcessedPrevSequence.length+p])==null?void 0:e.command:(C=this.shortsProcessedSequence)==null?void 0:(u=C[p])==null?void 0:u.command;this.index=p;this.gestureType||(this.gestureType=q?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
t&&this.isVideoContentCommand(t)&&(this.ytComponentBehavior.resolveCommand(t,{form:{createScreenConfig:{clickedVisualElement:q?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(t&&this.isNonVideoContentCommand(t)){this.currentEndpoint=t;this.data=void 0;E=_.Ll();e=_.G(t,_.I5);var a,m;(e=(a=_.G(e==null?void 0:e.renderer,_.ATU))==null?void 0:(m=a.screenLoggingData)==null?void 0:m.screenVeType)&&_.Mb(E,e);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(a=this.getActiveReelVideo(p))&&a.appendChild(this.overlayContainer)}var U,b;if(((U=this.reelWatchSequenceResponse)==null?0:U.continuationEndpoint)&&((b=this.reelWatchSequenceResponse)==null?0:b.entries)&&p===this.reelWatchSequenceResponse.entries.length-1){var P,Z;U={contentPlaybackContext:_.NE({},(Z=_.G((P=this.currentEndpoint)==null?void 0:P.commandMetadata,_.ul))==null?void 0:Z.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:U})}var K,F,L;((K=this.reelWatchSequenceResponse)==null?0:K.prevContinuationEndpoint)&&p===-(((F=this.reelWatchSequenceResponse)==null?void 0:(L=F.prevEntries)==null?void 0:L.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.J.setMiniplayerPreview=function(p){p=(p===void 0?0:p)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var y,l,q=_.WC().resolve(_.IA),t={shortsData:void 0,shortsPreviewThumbnail:p?(y=this.shortsProcessedSequence)==null?void 0:(l=y[p])==null?void 0:l.thumbnail:void 0};_.d2(q,t)};
_.J.updateTitle=function(p){var y,l;p=(p==null?0:p.adSlots)?"":(l=p==null?void 0:(y=p.videoDetails)==null?void 0:y.title)!=null?l:"";_.Ub(this.hostElement,"yt-update-title",p)};
_.J.registerPanel=function(p){var y=_.WC().resolve(_.H8);if(y){p=_.c(p.engagementPanels||[]);for(var l=p.next();!l.done;l=p.next()){l=l.value;var q=this.getPanelContentIdentifier(l.engagementPanelSectionListRenderer),t=void 0,E=void 0;(E=(t=y).registerPanelContent)==null||E.call(t,q,l)}}};
_.J.getPanelIdentifier=function(p){var y;return(p==null?void 0:(y=p.identifier)==null?void 0:y.tag)||(p==null?void 0:p.panelIdentifier)||(p==null?void 0:p.targetId)};
_.J.getPanelContentIdentifier=function(p){var y;return(p==null?void 0:p.targetId)||(p==null?void 0:p.panelIdentifier)||(p==null?void 0:(y=p.identifier)==null?void 0:y.tag)};
_.J.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.ei().dispatch(s2(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;_.ei().dispatch(vV1(!1));var p=_.WC().resolve(_.LI);p.dismissedIndices=[];p.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&
_.WC().resolve(_.IA).close(!0)};
_.J.processAppendReelWatchSequenceContinuationEntriesAction=function(p){var y=this,l;(l=this.intersectionObserver)==null||l.disconnect();p=p.appendReelWatchSequenceContinuationEntriesAction;if(p==null?0:p.entries){var q;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.xq(((q=this.reelWatchSequenceResponse)==null?void 0:q.entries)||[]),_.xq(p.entries)),continuationEndpoint:p.continuationEndpoint})}else if(p==null?0:p.prevEntries){var t;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.xq(((t=this.reelWatchSequenceResponse)==null?void 0:t.prevEntries)||[]),_.xq(p.prevEntries)),prevContinuationEndpoint:p.prevContinuationEndpoint});_.TR.addLowPriorityJob(function(){y.movePlayerToVideo(y.index);var E;(E=y.getActiveReelVideo(y.index))==null||E.scrollIntoView({block:"nearest",inline:y.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.TR.addLowPriorityJob(function(){y.observeShorts()},100)};
_.J.processWatchSequence=function(p){var y=this;return p.map(function(l){l=l.command;if(y.isVideoContentCommand(l)){var q=_.G(l,_.FC);return{reelPlayerOverlayRenderer:_.G(q==null?void 0:q.overlay,_.Z5v),thumbnail:q.thumbnail,command:l}}return y.isNonVideoContentCommand(l)?(q=_.G(l,_.I5),{reelNonVideoContentRenderer:_.G(q==null?void 0:q.renderer,_.ATU),command:l}):{command:l}})};
_.J.calculateIntersectionObserverThreshold=function(){var p=_.jR(this.hostElement).querySelector("ytd-reel-video-renderer"),y=1;(p==null?0:p.offsetHeight)&&(p==null?0:p.offsetWidth)&&(y=Math.min(p.offsetHeight,this.shortsContainer.offsetHeight)/p.offsetHeight*(Math.min(p.offsetWidth,this.shortsContainer.offsetWidth)/p.offsetWidth));return Math.round(y*.6*10)/10};
_.J.isVideoContentCommand=function(p){_.WC().resolve(_.LI);return!!_.G(p,_.FC)};
_.J.isNonVideoContentCommand=function(p){_.WC().resolve(_.LI);return!!_.G(p,_.I5)};
_.J.initCinematicController=function(){var p=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22084_cinematicController=new _.q1(this.shortsCinematicContainer,this.player);var y,l=_.G((y=this.data)==null?void 0:y.background,_.b$);_.ZR9(this.JSC$22084_cinematicController,l);_.AnO(this.JSC$22084_cinematicController,KY9(l));_.P3A(this.JSC$22084_cinematicController);_.TR.addLowPriorityJob(function(){p.moveCinematicsToVideo()})}};
_.J.handleMiniplayerNavigateShorts=function(p){p==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():p==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.J.handleSignalActionToggleShortsPictureInPicture=function(){if(_.WC().resolve(_.IA).pictureInPictureSupported()){var p=_.WC().resolve(_.LI);if(_.n("web_shorts_pip")){var y=_.WC().resolve(_.IA);p.isShortsPipActive()?y.deactivate():y.isMiniplayerActive()||(_.Sy().shortsPipActivation=!0,_.AQm(y))}}else(p=this.player)==null||p.togglePictureInPicture()};
_.Jh.Object.defineProperties(Wi.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.reelWatchSequenceResponse)!=null&&p.prevEntries)return this.processWatchSequence([].concat(_.xq(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var p=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!p)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var y=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.xq(this.prevShortsSequence.slice(0,y)),[p],_.xq(this.prevShortsSequence.slice(y+
1)))}y=this.index+this.shortsProcessedPrevSequence.length;p.thumbnail=this.shortsProcessedPrevSequence[y].thumbnail;return[].concat(_.xq(this.shortsProcessedPrevSequence.slice(0,y)),[p],_.xq(this.shortsProcessedPrevSequence.slice(y+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.reelWatchSequenceResponse)!=null&&p.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var p=this.getCurrentShort();if(!p||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[p];if(p==null||!p.reelNonVideoContentRenderer){var y=this.getIndexInSequence(this.shortsSequence,_.G(this.currentEndpoint,_.FC).videoId);if(this.index===0&&y!==-1)return this.currentPlayerIndex=this.index=y,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.xq(this.shortsSequence.slice(0,this.index)),[p],_.xq(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){p.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var l,q,t,E;y=((q=_.G((l=this.shortsProcessedSequence[0])==null?void 0:l.command,_.FC))==null?void 0:q.videoId)===((E=_.G((t=this.shortsSequence[0])==null?void 0:t.command,_.FC))==null?void 0:E.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.xq(this.shortsProcessedSequence.slice(0,
this.index)),[p],_.xq(this.shortsSequence.slice(y)))}return[p].concat(_.xq(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var p=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;p&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(p)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var p,y;return this.index===((p=this.reelWatchSequenceResponse)==null?void 0:(y=p.entries)==null?void 0:y.length)}var l;return!((l=this.reelWatchSequenceResponse)==null?0:l.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var p;(p=this.delayedActiveIndexUpdateDebouncer)==null||p.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return this.isShortPlayable()||((y=_.G((p=this.data)==null?void 0:p.watchStatus,_.SxO))==null?void 0:(l=y.style)==null?void 0:l.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var p=this,y=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),l;if((this.data||y)&&(((l=this.data)==null?0:l.engagementPanels)||this.isAd()||y)){y=!1;this.activePanel="shorts-comments-panel";var q;l=_.c(((q=this.data)==null?void 0:q.engagementPanels)||[]);for(q=l.next();!q.done;q=l.next())if(this.getPanelIdentifier(q.value.engagementPanelSectionListRenderer)===this.activePanel){y=!0;break}if(this.isPersistentPanelActive){var t=
_.WC().resolve(_.H8);_.rJ(_.TR,function(){t.showPanel(p.activePanel,void 0,void 0,void 0,null)},100)}var E;
q=[].concat(_.xq(Object.values(((E=this.data)==null?void 0:E.engagementPanels)||{})));if(_.n("enable_preview_panel_for_shorts_search_suggested_action")){var e,C,u,a,m;((a=_.G((e=this.data)==null?void 0:(C=e.overlay)==null?void 0:(u=C.reelPlayerOverlayRenderer)==null?void 0:u.metapanel,_.Pcr))==null?void 0:(m=a.metadataItems)==null?void 0:m.find(function(U){var b,P;return((b=_.G(U,sm9))==null?void 0:(P=b.icon)==null?void 0:P.iconType)==="SEARCH"}))!==void 0&&q.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}E=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);e=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return E===void 0&&e===void 0||(E==null?0:E.isDisabled)||(e==null?void 0:e.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!y?(y=q==null?void 0:q.findIndex(function(U){var b,
P;return((b=U.engagementPanelSectionListRenderer)==null?void 0:(P=b.identifier)==null?void 0:P.tag)==="shorts-comments-panel"}),y===-1||y===void 0||q!=null&&q.splice(y,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.g$("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.g$("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:_.g$("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.g$("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(_.xq(Object.values(q||
{})))):q}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.shortsProcessedSequence)==null?void 0:p[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var p=this,y,l,q;if((y=this.playerData)==null?0:(l=y.playabilityStatus)==null?0:(q=l.errorScreen)==null?0:q.playerInterstitialRenderer)return _.TR.addLowPriorityJob(function(){p.movePlayerToVideo(p.index)}),this.playerData.playabilityStatus.errorScreen;
var t,E;return((t=this.data)==null?void 0:t.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((E=this.data)==null?0:E.watchStatus)&&_.G(this.data.watchStatus,_.K4Z)?(_.TR.addLowPriorityJob(function(){p.movePlayerToVideo(p.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Jh.Object.defineProperties(Wi,{template:{configurable:!0,enumerable:!0,get:function(){if(EjR===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[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    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);EjR=p}p=EjR;return p}}});
Wi.prototype.onNextButtonDataChange=Wi.prototype.onNextButtonDataChange;Wi.prototype.onPrevButtonDataChange=Wi.prototype.onPrevButtonDataChange;Wi.prototype.onPersistentPanelActiveChanged=Wi.prototype.onPersistentPanelActiveChanged;Wi.prototype.lazyUpdateMiniplayerData=Wi.prototype.lazyUpdateMiniplayerData;Wi.prototype.onShortsPipActiveChanged=Wi.prototype.onShortsPipActiveChanged;Wi.prototype.setActiveIndex=Wi.prototype.setActiveIndex;Wi.prototype.graftNvcRenderer=Wi.prototype.graftNvcRenderer;
Wi.prototype.graftClientVisualElements=Wi.prototype.graftClientVisualElements;Wi.prototype.onActiveChanged=Wi.prototype.onActiveChanged;Wi.prototype.onShortsDismiss=Wi.prototype.onShortsDismiss;Wi.prototype.onShortUndoDismiss=Wi.prototype.onShortUndoDismiss;Wi.prototype.playerDataChanged=Wi.prototype.playerDataChanged;Wi.prototype.afterPlayerStarted=Wi.prototype.afterPlayerStarted;Wi.prototype.unhideCurrentOverlay=Wi.prototype.unhideCurrentOverlay;Wi.prototype.onServiceRequestCompleted=Wi.prototype.onServiceRequestCompleted;
Wi.prototype.engagementPanelsChanged=Wi.prototype.engagementPanelsChanged;Wi.prototype.onFullscreenChange=Wi.prototype.onFullscreenChange;Wi.prototype.onResize=Wi.prototype.onResize;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Wi.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.A8.YtPageBehavior),_.x("design:type",Object)],Wi.prototype,"ytPageBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Wi.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.V(_.vG),_.x("design:type",Object)],Wi.prototype,"ironResizableBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Wi.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],Wi.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.V(_.qI.YtdGuideStateAwareBehavior),_.x("design:type",Object)],Wi.prototype,"ytdGuideStateAwareBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Wi.prototype,"ytdReduxBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"playerData",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"reelWatchSequenceResponse",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"cachedReelWatchSequenceResponse",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"cachedSequenceParams",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"cachedSequenceProvider",void 0);
_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"currentEndpoint",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"nextButtonData",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"prevButtonData",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"isPreviousPageShorts",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"index",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"delayedActiveIndex",void 0);
_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"playablePreviousIndex",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"player",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"isPlayerPaused",void 0);_.H([_.Q({selector:S2d}),_.x("design:type",Object)],Wi.prototype,"isPlayerStarted",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"intersectionObserver",void 0);_.H([_.Q(),_.x("design:type",Number)],Wi.prototype,"cinematicsInitializeJobId",void 0);
_.H([_.Q(),_.x("design:type",Number)],Wi.prototype,"updateMiniplayerDataJobId",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"fitToVisibleBounds",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"pageSubtype",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Wi.prototype,"enablePreviousContinuation",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Wi.prototype,"shortsPipEnabled",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Wi.prototype,"isDark",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Wi.prototype,"shortsViewTransitions",void 0);_.H([_.Q({selector:_.MG,reflectToAttribute:!0}),_.x("design:type",Object)],Wi.prototype,"isFullscreen",void 0);_.H([_.Q({selector:_.Vn,reflectToAttribute:!0}),_.x("design:type",Object)],Wi.prototype,"isShortsPipActive",void 0);
_.H([_.rd("#shorts-inner-container"),_.x("design:type",HTMLElement)],Wi.prototype,"shortsInnerContainer",void 0);_.H([_.rd("#back-nav-button ytd-button-renderer"),_.x("design:type",_.aP)],Wi.prototype,"backNavButton",void 0);_.H([_.rd("#shorts-container"),_.x("design:type",HTMLElement)],Wi.prototype,"shortsContainer",void 0);_.H([_.$K("error-screen"),_.x("design:type",HTMLElement)],Wi.prototype,"errorScreenContainer",void 0);
_.H([_.$K("player"),_.x("design:type",Object)],Wi.prototype,"playerElement",void 0);_.H([_.$K("shorts-cinematic-container"),_.x("design:type",HTMLElement)],Wi.prototype,"shortsCinematicContainer",void 0);_.H([_.$K("initial-player-container"),_.x("design:type",HTMLElement)],Wi.prototype,"initialPlayerContainer",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"buttonOverride",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Wi.prototype,"anchoredPanelActive",void 0);
_.H([_.Q(),_.x("design:type",String)],Wi.prototype,"activePanel",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"isActive",void 0);_.H([_.Q({selector:rnu,reflectToAttribute:!0}),_.x("design:type",Object)],Wi.prototype,"smallScreenPersistentPanel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Wi.prototype,"isPersistentPanelActive",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"smallScreenSqueezeBack",void 0);
_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"enableScrollIntoViewCenter",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Wi.prototype,"formatFirst",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Wi.prototype,"enableFlexibleOverlay",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Wi.prototype,"useAspectRatio",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"panelContainer",void 0);
_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"overlayContainer",void 0);_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"isShortsInitialized",void 0);_.H([_.g("reelWatchSequenceResponse"),_.x("design:type",Object),_.x("design:paramtypes",[])],Wi.prototype,"prevShortsSequence",null);_.H([_.g("data","prevShortsSequence"),_.x("design:type",Object),_.x("design:paramtypes",[])],Wi.prototype,"shortsProcessedPrevSequence",null);
_.H([_.g("reelWatchSequenceResponse"),_.x("design:type",Object),_.x("design:paramtypes",[])],Wi.prototype,"shortsSequence",null);_.H([_.g("data","shortsSequence"),_.x("design:type",Object),_.x("design:paramtypes",[])],Wi.prototype,"shortsProcessedSequence",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Wi.prototype,"isUpArrowHidden",null);_.H([_.Q({reflectToAttribute:!0}),_.g("reelWatchSequenceResponse","index","endOfNextContinuation"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Wi.prototype,"isDownArrowHidden",null);
_.H([_.Q(),_.g("index"),_.x("design:type",Number),_.x("design:paramtypes",[])],Wi.prototype,"activeIndex",null);_.H([_.g("isShortPlayable","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Wi.prototype,"shouldRenderOfflineContent",null);_.H([_.VU("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wi.prototype,"onResize",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Wi.prototype,"anchoredEngagementPanels",null);
_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"watchWhileEngagementPanels",void 0);_.H([_.gd("isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wi.prototype,"onFullscreenChange",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wi.prototype,"engagementPanelsChanged",null);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],Wi.prototype,"onServiceRequestCompleted",null);_.H([_.g("data","shortsSequence","index"),_.x("design:type",Object),_.x("design:paramtypes",[])],Wi.prototype,"activeReel",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wi.prototype,"unhideCurrentOverlay",null);
_.H([_.gd("isPlayerStarted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wi.prototype,"afterPlayerStarted",null);_.H([_.g("playerData","reelWatchSequenceResponse","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Wi.prototype,"errorScreen",null);_.H([_.g("errorScreen"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Wi.prototype,"hasError",null);
_.H([_.gd("playerData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],Wi.prototype,"playerDataChanged",null);_.H([_.VU("yt-dismissible-item-undo-feedback"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wi.prototype,"onShortUndoDismiss",null);_.H([_.VU("yt-disable-lockup-interaction"),_.x("design:type",Function),_.x("design:paramtypes",[Object]),_.x("design:returntype")],Wi.prototype,"onShortsDismiss",null);
_.H([_.k8("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wi.prototype,"onActiveChanged",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wi.prototype,"graftClientVisualElements",null);_.H([_.gd("currentPlayerIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wi.prototype,"graftNvcRenderer",null);
_.H([_.gd("index"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wi.prototype,"setActiveIndex",null);_.H([_.gd("isShortsPipActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wi.prototype,"onShortsPipActiveChanged",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wi.prototype,"lazyUpdateMiniplayerData",null);
_.H([_.Q(),_.x("design:type",Object)],Wi.prototype,"onOverlayDensityChanged",void 0);_.H([_.gd("isPersistentPanelActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wi.prototype,"onPersistentPanelActiveChanged",null);_.H([_.gd("index","data","isUpArrowHidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wi.prototype,"onPrevButtonDataChange",null);
_.H([_.gd("index","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wi.prototype,"onNextButtonDataChange",null);_.H([_.k({is:"ytd-shorts"})],Wi);_.AS.registerService(_.tnm,Wi);
_.xP();
}catch(e){_._DumpException(e)}
try{
_.TH("JzFVk");
var gEu=function(p){return _.R("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},VnL(p.data.ctaButton,{buttonViewModel:{}}),_.R(_.CF,{text:p.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var Qsi;var K5d;var wM=function(){return _.w.apply(this,arguments)||this};
_.A(wM,_.w);wM.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
wM.prototype.computeBlueBottomLink=function(p){return p};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],wM.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],wM.prototype,"data",void 0);_.H([_.Q({computed:"computeIcon_(data.bottomIcon)"}),_.x("design:type",String)],wM.prototype,"bottomIcon",void 0);
_.H([_.Q({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.x("design:type",Boolean)],wM.prototype,"enableBlueBottomLink",void 0);_.H([_.k({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],wM);
_.D(wM,"ytd-web-answer-renderer",function(){if(K5d!==void 0)return K5d;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-web-answer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section-header" class="style-scope ytd-web-answer-renderer">\n  <yt-formatted-string id="section-title" text="[[data.sectionTitle]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n  <div id="menu" class="style-scope ytd-web-answer-renderer"></div>\n</div>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]">\n  <div id="content" class="style-scope ytd-web-answer-renderer">\n    <div id="content-text" class="style-scope ytd-web-answer-renderer">\n      <div id="content-title" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string id="content-title" text="[[data.contentTitle]]" class="style-scope ytd-web-answer-renderer">\n        </yt-formatted-string>\n        <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n      </div>\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      <div id="source-group" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string text="[[data.sourceName]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n        <div id="separator" hidden="[[!data.publishedDate]]" class="style-scope ytd-web-answer-renderer">\u2022</div>\n        <yt-formatted-string text="[[data.publishedDate]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <yt-img-shadow id="answer-image" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="100" class="style-scope ytd-web-answer-renderer">\n    </yt-img-shadow>\n  </div>\n</a>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" hidden="[[!data.bottomLink]]" href$="[[computeHref_(data.bottomLinkCommand)]]" data="[[data.bottomLinkCommand]]">\n  <div id="bottom-section" class="style-scope ytd-web-answer-renderer">\n    <yt-icon id="bottom-icon" icon="[[bottomIcon]]" class="style-scope ytd-web-answer-renderer"></yt-icon>\n    <yt-formatted-string id="bottom-link" text="[[data.bottomLink]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n    <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n  </div>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return K5d=p},{mode:_.ZS("kevlar_poly_si_batch_j035")?1:2});var wlV;var iw=function(){var p=_.w.apply(this,arguments)||this;p.hasChipBar=!1;return p};
_.A(iw,_.w);iw.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}}};
iw.prototype.computeHasChipBar=function(p){return!(p==null||!p.chipBar)};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],iw.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],iw.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],iw.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.x("design:type",Object)],iw.prototype,"hasChipBar",void 0);_.H([_.k({is:"ytd-search-header-renderer",disableElementRegistration:!0})],iw);
_.D(iw,"ytd-search-header-renderer",function(){if(wlV!==void 0)return wlV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chip-bar" class="style-scope ytd-search-header-renderer"></div>\n<div id="about-these-results" class="style-scope ytd-search-header-renderer"></div>\n<div id="filter-button" class="style-scope ytd-search-header-renderer"></div>\n\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return wlV=p},{mode:1});var iBi;var rM=function(){return _.w.apply(this,arguments)||this};
_.A(rM,_.w);rM.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],rM.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],rM.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-page-continuation"})],rM);
_.D(rM,"ytd-page-continuation",function(){if(iBi!==void 0)return iBi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pages" class="style-scope ytd-page-continuation"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return iBi=p},{mode:1});var rY6;var Sk7;var F5m;var Sn=function(){return _.w.apply(this,arguments)||this};
_.A(Sn,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Sn.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Sn.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Sn);
_.D(Sn,"ytd-watch-card-one-vs-one-event",function(){if(F5m!==void 0)return F5m;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeParticipantResult)]]</span>\n</div>\n<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayParticipantResult)]]</span>\n</div>\n<div class="main-event event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.eventDescription)]]</div>\n<div class="event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.additionalEventDescription)]]</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return F5m=p},{mode:1});var FE=function(){return _.w.apply(this,arguments)||this};
_.A(FE,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],FE.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],FE.prototype,"data",void 0);_.H([_.k({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],FE);
_.D(FE,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(Sk7!==void 0)return Sk7;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-one-vs-one-event-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-one-vs-one-event-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<ytd-thumbnail data="[[data]]" disable-rounding="" width="386" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer"></ytd-thumbnail>\n\n<div id="bottom-fade" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer">\n  <ytd-watch-card-one-vs-one-event class="hero style-scope ytd-watch-card-hero-one-vs-one-event-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</div>\n    </a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Sk7=p},{mode:1});var L5i;var LB=function(){return _.w.apply(this,arguments)||this};
_.A(LB,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],LB.prototype,"data",void 0);_.H([_.k({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],LB);
_.D(LB,"ytd-banner-and-box-hero-image-renderer",function(){if(L5i!==void 0)return L5i;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-and-box-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="banner" thumbnail="[[data.banner]]" width="386" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow><svg id="bg" viewBox="0 0 1300 304" preserveAspectRatio="xMaxYMid slice" class="style-scope ytd-banner-and-box-hero-image-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path></svg><yt-img-shadow id="box" height="184" thumbnail="[[data.box]]" width="131" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return L5i=p},{mode:1});var kZO;var kE=function(){var p=_.w.apply(this,arguments)||this;p.modern=_.n("web_modern_buttons");return p};
_.A(kE,_.w);kE.prototype.computeIcon=function(){var p,y,l=(p=this.data)==null?void 0:(y=p.icon)==null?void 0:y.iconType;if(l)return _.QZ(l)};
kE.prototype.computeButtonShape=function(){var p;return{buttonText:_.JB((p=this.data)==null?void 0:p.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Jh.Object.defineProperties(kE.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"}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],kE.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],kE.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],kE.prototype,"modern",void 0);_.H([_.Q({type:_.n("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.g("data.style"),_.x("design:type",Object),_.x("design:paramtypes",[])],kE.prototype,"buttonColor",null);
_.H([_.k({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],kE);
_.D(kE,"ytd-call-to-action-button-renderer",function(){if(kZO!==void 0)return kZO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-call-to-action-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="overlay-button" hidden="[[modern]]" raised="" tabindex="-1" class="style-scope ytd-call-to-action-button-renderer">\n  <yt-icon id="overlay-icon" icon="[[data.icon.iconType]]" class="style-scope ytd-call-to-action-button-renderer"></yt-icon>\n  <span id="overlay-text" class="style-scope ytd-call-to-action-button-renderer">[[getSimpleString(data.label)]]</span>\n</tp-yt-paper-button>\n<yt-button-shape data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden$="[[!modern]]" icon-name="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-call-to-action-button-renderer">\n</yt-button-shape>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return kZO=p},{mode:1});var NMd;var NK=function(){return _.w.apply(this,arguments)||this};
_.A(NK,_.w);NK.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.jR(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.nY(this.data.leftThumbnail.thumbnails,216)+")")};
NK.prototype.onLeftThumbnailChanged=NK.prototype.onLeftThumbnailChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],NK.prototype,"data",void 0);_.H([_.gd("data.leftThumbnail"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NK.prototype,"onLeftThumbnailChanged",null);_.H([_.k({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],NK);
_.D(NK,"ytd-collage-hero-image-renderer",function(){if(NMd!==void 0)return NMd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-collage-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="collage" class="style-scope ytd-collage-hero-image-renderer"><div id="section-left" class="style-scope ytd-collage-hero-image-renderer"></div><div id="section-right" class="style-scope ytd-collage-hero-image-renderer"><yt-img-shadow id="top-right" height="105" thumbnail="[[data.topRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow><yt-img-shadow height="105" thumbnail="[[data.bottomRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow></div></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return NMd=p},{mode:1});var DKO;var DE=function(){return _.w.apply(this,arguments)||this};
_.A(DE,_.w);DE.prototype.computeStyle=function(p){return p};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],DE.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],DE.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],DE.prototype,"componentStyle",void 0);_.H([_.k({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],DE);
_.D(DE,"ytd-single-hero-image-renderer",function(){if(DKO!==void 0)return DKO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="image" thumbnail="[[data.thumbnail]]" width="386" class="style-scope ytd-single-hero-image-renderer"></yt-img-shadow>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return DKO=p},{mode:1});var HBu;var Hl=function(){return _.w.apply(this,arguments)||this};
_.A(Hl,_.w);_.J=Hl.prototype;
_.J.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.n("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.J.computeSubtitle=function(p){if(this.data){var y;if(this.data.upcomingEventData){p=_.JB(p.subtitle);var l=Number(this.data.upcomingEventData.startTime);isNaN(l)||(y=_.EK(_.OZ(p,l)))}else y=p.subtitle;return y}};
_.J.onHeroTap=function(p){p.preventDefault();var y=this.data&&this.data.navigationEndpoint;!y||!_.WN(_.Jx(p),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.WN(_.Jx(p),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.n("kevlar_watchcard_hero_video_renderer_killswitch")?_.Ub(this.hostElement,"yt-navigate",{navigationEndpoint:y}):this.ytComponentBehavior.resolveCommand(y))};
_.J.computeHeroTabIndex=function(p){return p&&p.simpleText?-1:0};
_.J.computeHeroRole=function(p){return p&&p.simpleText?"":"link"};
_.J.computeIsReminderButtonPresent=function(p){return!(!p||!p.reminderButton)};
_.J.computeHideBottomItems=function(p){return!(this.computeIsReminderButtonPresent(p)||p.subtitle)};
_.J.dataChanged=function(){var p=this.get("data.buttons.buttonRenderer.serviceEndpoint"),y;((y=_.G(p==null?void 0:p.commandMetadata,_.BY))==null?0:y.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(p)};
Hl.prototype.dataChanged=Hl.prototype.dataChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Hl.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Hl.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Hl.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Hl.prototype,"data",void 0);
_.H([_.Q({computed:"computeSubtitle(data)"}),_.x("design:type",String)],Hl.prototype,"subtitle",void 0);_.H([_.Q({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Hl.prototype,"isReminderButtonPresent",void 0);_.H([_.Q({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Hl.prototype,"hideBottomItems",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hl.prototype,"dataChanged",null);_.H([_.k({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],Hl);
_.D(Hl,"ytd-watch-card-hero-video-renderer",function(){if(HBu!==void 0)return HBu;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-card-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" on-tap="onHeroTap" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex$="[[computeHeroTabIndex(data.title)]]" role$="[[computeHeroRole(data.title)]]">\n  <ytd-thumbnail data="[[data]]" disable-rounding="" hidden$="[[!data.thumbnail]]" width="386" class="style-scope ytd-watch-card-hero-video-renderer">\n  </ytd-thumbnail>\n  <div id="hero-image" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div class="title-container style-scope ytd-watch-card-hero-video-renderer" hidden="[[!data.title]]">\n    <div class="title-fade style-scope ytd-watch-card-hero-video-renderer">\n      <a id="watch-card-title" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string id="watch-card-title" text="[[data.title]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n      </a>\n      <div id="bottom-items" hidden="[[hideBottomItems]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        <ytd-badge-supported-renderer id="watch-card-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="watch-card-subtitle" text="[[subtitle]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n        <div id="reminder-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="call-to-action-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div id="overlays" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return HBu=p},{mode:1});var TMT;var TZ=function(){return _.w.apply(this,arguments)||this};
_.A(TZ,_.w);_.J=TZ.prototype;_.J.configureRendererStamper=function(){return{"data.callToActionButtons":{id:"call-to-action-buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.J.computeTitleBadges=function(p){return p?[p]:[]};
_.J.computeHeaderStyle=function(p){return p?p.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.J.computeAvatarAriaLabel=function(p){if(p){var y,l,q,t;return(t=(y=p.avatar)==null?void 0:(l=y.accessibility)==null?void 0:(q=l.accessibilityData)==null?void 0:q.label)!=null?t:_.JB(p==null?void 0:p.title)}};
_.J.computeAvatarHeight=function(p){return p==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.J.computeBadgeRowClass=function(p){return(p==null?0:p[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],TZ.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],TZ.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],TZ.prototype,"data",void 0);_.H([_.Q({computed:"computeTitleBadges(data.titleBadge)"}),_.x("design:type",Array)],TZ.prototype,"titleBadges",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.x("design:type",String)],TZ.prototype,"headerStyle",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.x("design:type",String)],TZ.prototype,"badgeRowClass",void 0);_.H([_.k({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],TZ);
_.D(TZ,"ytd-watch-card-rich-header-renderer",function(){if(TMT!==void 0)return TMT;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-rich-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-watch-card-rich-header-renderer">\n  <div id="body" class="style-scope ytd-watch-card-rich-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]">\n      <ytd-channel-name id="channel-name" badges="[[titleBadges]]" channel-name="[[data.title]]" tooltip-position="bottom" wrap-text="" class="style-scope ytd-watch-card-rich-header-renderer">\n      </ytd-channel-name>\n      <div id="badge-row" class$="[[badgeRowClass]] style-scope ytd-watch-card-rich-header-renderer">\n        <span id="watch-card-subtitle" class="style-scope ytd-watch-card-rich-header-renderer">\n          <yt-formatted-string respect-lang-dir="" text="[[data.subtitle]]" class="style-scope ytd-watch-card-rich-header-renderer"></yt-formatted-string>\n        </span>\n        <template is="dom-if" if="[[data.badges.0.metadataBadgeRenderer]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          </ytd-badge-supported-renderer>\n        </template>\n      </div>\n    </a>\n    \n    <div id="call-to-action-buttons" hidden="[[!data.callToActionButtons]]" class="style-scope ytd-watch-card-rich-header-renderer"></div>\n  </div>\n  <a id="avatar-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]" aria-label="[[computeAvatarAriaLabel(data)]]" hidden="[[!data.avatar]]">\n    <yt-img-shadow id="avatar" height="[[computeAvatarHeight(data.style)]]" thumbnail="[[data.avatar]]" class="style-scope ytd-watch-card-rich-header-renderer">\n    </yt-img-shadow>\n  </a>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return TMT=p},{mode:1});var xKA;var BMR;var xE=function(){return _.w.apply(this,arguments)||this};
_.A(xE,_.w);xE.prototype.onMetadataTap=function(p){var y=this.data&&this.data.navigationEndpoint;y&&!_.WN(_.Jx(p),this.hostElement,["A".toString()])&&_.Ub(this.hostElement,"yt-navigate",{endpoint:y})};
_.Jh.Object.defineProperties(xE.prototype,{isCondensed:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style==="WATCH_CARD_COMPACT_VIDEO_RENDERER_STYLE_CONDENSED":!1}},
subtitle:{configurable:!0,enumerable:!0,get:function(){if(this.data){var p;if(this.data.upcomingEventData){var y=_.JB(this.data.subtitle),l=Number(this.data.upcomingEventData.startTime);isNaN(l)||(p=_.EK(_.OZ(y,l)))}else p=this.data.subtitle;return p}}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],xE.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("data.style"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],xE.prototype,"isCondensed",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],xE.prototype,"subtitle",null);
_.H([_.k({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],xE);
_.D(xE,"ytd-watch-card-compact-video-renderer",function(){if(BMR!==void 0)return BMR;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-compact-video-renderer"></ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-watch-card-compact-video-renderer" on-click="onMetadataTap">\n    <div class="title-wrapper style-scope ytd-watch-card-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n      </a>\n    </div>\n    <yt-formatted-string class="byline style-scope ytd-watch-card-compact-video-renderer" hidden="[[!data.byline]]" link-inherit-color="" text="[[data.byline]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[subtitle]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div class="metadata style-scope ytd-watch-card-compact-video-renderer">\n      <div class="text style-scope ytd-watch-card-compact-video-renderer">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" text="[[subtitle]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string class="duration style-scope ytd-watch-card-compact-video-renderer" text="[[data.lengthText]]">\n      </yt-formatted-string>\n    </div>\n  </a>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return BMR=p},{mode:1});var fEi;var Bl=function(){return _.w.apply(this,arguments)||this};
_.A(Bl,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Bl.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Bl.prototype,"data",void 0);_.H([_.k({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],Bl);
_.D(Bl,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(fEi!==void 0)return fEi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint metadata style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.navigationEndpoint]]" href$="[[computeHref_(data.navigationEndpoint)]]">\n  <ytd-watch-card-one-vs-one-event class="compact style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return fEi=p},{mode:1});var fB=function(){return _.w.apply(this,arguments)||this};
_.A(fB,_.w);fB.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}}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],fB.prototype,"ytRendererStamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],fB.prototype,"data",void 0);_.H([_.k({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],fB);
_.D(fB,"ytd-vertical-watch-card-list-renderer",function(){if(xKA!==void 0)return xKA;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-watch-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-watch-card-list-renderer">\n  \n</div>\n<a id="view-all-endpoint" class="yt-simple-endpoint style-scope ytd-vertical-watch-card-list-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[!data.viewAllEndpoint]]" disable-upgrade$="[[!data.viewAllEndpoint]]">\n    [[getSimpleString(data.viewAllText)]]\n</a>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return xKA=p},{mode:1});var vEw;var vl=function(){var p=_.w.apply(this,arguments)||this;p.ariaExpanded="false";return p};
_.A(vl,_.w);_.J=vl.prototype;_.J.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.J.dataChanged=function(){var p;this.currentSeasonIndex=((p=this.data)==null?void 0:p.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.J.computeEpisodesInfo=function(p,y,l){if(p!==void 0&&y.length===p.length)return p[l]};
_.J.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.J.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.J.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.J.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.J.getUppercaseSimpleString=function(p){return this.ytRendererBehavior.getSimpleString(p).toUpperCase()};
_.J.updateCurrentSeasonIndexFromBinding=function(p){this.currentSeasonIndex=p.detail.value};
vl.prototype.onIronOverlayClosed=vl.prototype.onIronOverlayClosed;vl.prototype.currentSeasonIndexChanged=vl.prototype.currentSeasonIndexChanged;vl.prototype.dataChanged=vl.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],vl.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],vl.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],vl.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",String)],vl.prototype,"label",void 0);_.H([_.Q({value:0}),_.x("design:type",Number)],vl.prototype,"currentSeasonIndex",void 0);_.H([_.Q({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.x("design:type",Object)],vl.prototype,"episodesInfo",void 0);_.H([_.Q({value:"false"}),_.x("design:type",Object)],vl.prototype,"ariaExpanded",void 0);_.H([_.rd("#lists"),_.x("design:type",Object)],vl.prototype,"lists",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vl.prototype,"dataChanged",null);_.H([_.k8("currentSeasonIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vl.prototype,"currentSeasonIndexChanged",null);_.H([_.VU("iron-overlay-closed"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],vl.prototype,"onIronOverlayClosed",null);
_.H([_.k({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],vl);
_.D(vl,"ytd-watch-card-section-dropdown-renderer",function(){if(vEw!==void 0)return vEw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return vEw=p},{mode:1});var Xlu;var XE=function(){var p=_.w.apply(this,arguments)||this;p.isSearch=!1;return p};
_.A(XE,_.w);XE.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}}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],XE.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],XE.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],XE.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],XE.prototype,"isSearch",void 0);_.H([_.k({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],XE);
_.D(XE,"ytd-watch-card-section-sequence-renderer",function(){if(Xlu!==void 0)return Xlu;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-sequence-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="lists" class="style-scope ytd-watch-card-section-sequence-renderer">\n  \n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
return Xlu=p},{mode:1});var VnL=_.T4({buttonViewModel:_.wZ});_.uX(gEu);_.gD(gEu,"ytd-button-banner-view-model",{propNames:["data"]});var dM=function(){var p=_.w.apply(this,arguments)||this;p.isSearch=!1;return p};
_.A(dM,_.w);
dM.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"}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],dM.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],dM.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],dM.prototype,"rounded",void 0);_.H([_.Q(),_.x("design:type",Object)],dM.prototype,"isSearch",void 0);
_.H([_.k({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],dM);
_.D(dM,"ytd-universal-watch-card-renderer",function(){if(rY6!==void 0)return rY6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-universal-watch-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="hero" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="action-buttons" hidden="[[!data.actionButtons]]" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="sections" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="footer" class="style-scope ytd-universal-watch-card-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return rY6=p},{mode:1});var dKd;_.bp(_.aF(function(p){var y=p.data;var l;p=!((l=_.WC().resolve(_.RK(_.hb)))==null||!l());l={};return _.R("overview-message-view-model",{class:_.ip("ytwOverviewMessageViewModelHost",(l.ytwOverviewMessageViewModelDarkBackground=p,l.ytwOverviewMessageViewModelLightBackground=!p,l))},_.R(_.W,{cond:function(){return y().primaryImage},
then:function(q){return _.R(_.W$,{data:q,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.R(_.W,{cond:function(){return y().primaryText},
then:function(){return _.R("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.R(_.CF,{text:function(){return y().primaryText}}))}}),_.R(_.W,{cond:function(){return y().secondaryText},
then:function(){return _.R("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.R(_.CF,{text:function(){return y().secondaryText}}))}}))},"ij"),"overview-message-view-model",{props:{data:_.Co}});_.gD(_.Vpv,"ytd-overview-answer-view-model",{propNames:["data"]});var Ok=function(){return _.w.apply(this,arguments)||this};
_.A(Ok,_.w);Ok.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"}}}};
Ok.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Ok.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ok.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.tP),_.x("design:type",Object)],Ok.prototype,"ytContinuationHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Ok.prototype,"data",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Ok.prototype,"isSearch",void 0);
_.H([_.k({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],Ok);
_.D(Ok,"ytd-secondary-search-container-renderer",function(){if(dKd!==void 0)return dKd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-secondary-search-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-secondary-search-container-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
return dKd=p},{mode:1});var OBV;var zZ=function(){var p=_.w.apply(this,arguments)||this;p.renderSecondarySearchContainer=!1;p.isSearch=!1;return p};
_.A(zZ,_.w);_.J=zZ.prototype;_.J.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.J.created=function(){var p=this;this.boundStampSecondarySearchContainerIfFits=function(){p.stampSecondarySearchContainerIfFits()};
_.dT("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.J.computeIsSearchFrictionPage=function(p){var y,l,q,t,E;p=p==null?void 0:(y=p.primaryContents)==null?void 0:(l=y.sectionListRenderer)==null?void 0:(q=l.contents)==null?void 0:(t=q[0])==null?void 0:(E=t.itemSectionRenderer)==null?void 0:E.contents;if(!p)return!1;y=_.c(p);for(l=y.next();!l.done;l=y.next())if(q=void 0,(q=l.value)==null?0:q.searchFrictionViewModel)return!0;return!1};
_.J.computeShowSecondaryColumn=function(p,y){return!!(y&&y.secondaryContents&&p)};
_.J.activeChanged=function(){var p=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.MH(this,this.debounceStampSecondarySearchContainerIfFits)),_.sU(function(){p.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.MH(this,this.debounceStampSecondarySearchContainerIfFits))};
_.J.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.J.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.J.debounceStampSecondarySearchContainerIfFits=function(){_.tl(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.J.onRetrieveLocation=function(p,y){y.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);p.stopPropagation()};
_.J.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
zZ.prototype.dataChanged=zZ.prototype.dataChanged;zZ.prototype.onRetrieveLocation=zZ.prototype.onRetrieveLocation;zZ.prototype.persistentGuideChanged=zZ.prototype.persistentGuideChanged;zZ.prototype.activeChanged=zZ.prototype.activeChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],zZ.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.qI.YtdGuideStateAwareBehavior),_.x("design:type",Object)],zZ.prototype,"ytdGuideStateAwareBehavior",void 0);_.H([_.V(_.vG),_.x("design:type",Object)],zZ.prototype,"ironResizableBehavior",void 0);_.H([_.Q(),_.x("design:type",Boolean)],zZ.prototype,"active",void 0);_.H([_.Q(),_.x("design:type",Object)],zZ.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.n("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],zZ.prototype,"useBiggerThumbs",void 0);_.H([_.Q({reflectToAttribute:!0,value:function(){return _.$h("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],zZ.prototype,"biggerThumbsStyle",void 0);_.H([_.Q(),_.x("design:type",Object)],zZ.prototype,"renderSecondarySearchContainer",void 0);_.H([_.Q({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.x("design:type",Boolean)],zZ.prototype,"showSecondaryColumn",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.x("design:type",Boolean)],zZ.prototype,"isSearchFrictionPage",void 0);
_.H([_.Q(),_.x("design:type",Object)],zZ.prototype,"isSearch",void 0);_.H([_.gd("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zZ.prototype,"activeChanged",null);_.H([_.gd("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zZ.prototype,"persistentGuideChanged",null);
_.H([_.VU("yt-retrieve-location"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],zZ.prototype,"onRetrieveLocation",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zZ.prototype,"dataChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],zZ);
_.D(zZ,"ytd-two-column-search-results-renderer",function(){if(OBV!==void 0)return OBV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-search-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-search-results-renderer">\n  <div id="continuations" class="style-scope ytd-two-column-search-results-renderer"></div>\n</div>\n<ytd-secondary-search-container-renderer id="secondary" data="[[data.secondaryContents.secondarySearchContainerRenderer]]" disable-upgrade$="[[!showSecondaryColumn]]" hidden="[[!showSecondaryColumn]]" is-search="[[isSearch]]" class="style-scope ytd-two-column-search-results-renderer">\n</ytd-secondary-search-container-renderer>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return OBV=p},{mode:1});var YE=function(){var p=_.w.apply(this,arguments)||this;p.hasSearchHeader=!1;p.hasSecondaryContent=!1;p.hasBiggerThumbs=_.n("enable_desktop_search_bigger_thumbs");p.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return p};
_.A(YE,_.w);_.J=YE.prototype;_.J.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{searchHeaderRenderer:{component:"ytd-search-header-renderer"}}},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:_.lT(["aa","eocs"])}}};
_.J.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.J.loadPage_=function(p){this.initCsi();p&&(this.data=p,_.dT("REFINEMENTS_TUPLE",["FromSearchResponse",p.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.EL(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.J.initCsi=function(){_.Ph("results",["ol","cpt"])};
_.J.updateTitle=function(){var p=_.oY(window.location.href,"q");p||(p=_.oY(window.location.href,"search_query"));_.Ub(this.hostElement,"yt-update-title",p||"")};
_.J.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.J.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.n("web_srp_data_changed_terminate_imp_killswitch")||_.$w(this.hostElement,"yt-terminate-video-preview-action")};
_.J.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.J.computeHasSearchHeader=function(p){var y;p=p==null?void 0:(y=p.header)==null?void 0:y.searchHeaderRenderer;return!!p&&(!!p.searchFilterButton||!!p.chipBar)};
_.J.computeHasSecondaryContent=function(p){var y,l;return!!(p==null?0:(y=p.contents)==null?0:(l=y.twoColumnSearchResultsRenderer)==null?0:l.secondaryContents)};
_.Jh.Object.defineProperties(YE,{template:{configurable:!0,enumerable:!0,get:function(){if(Qsi===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="container" class="style-scope ytd-search">\n  <div id="header" class="style-scope ytd-search"></div>\n  <ytd-two-column-search-results-renderer active="[[active]]" data="[[data.contents.twoColumnSearchResultsRenderer]]" hidden="[[data.hideContents]]" is-search="true" class="style-scope ytd-search">\n  </ytd-two-column-search-results-renderer>\n</div>\n<div id="survey" class="style-scope ytd-search"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);Qsi=p}p=Qsi;return p}}});
YE.prototype.onReloadContinuationFinish=YE.prototype.onReloadContinuationFinish;YE.prototype.dataChanged=YE.prototype.dataChanged;_.H([_.V(_.A8.YtPageBehavior),_.x("design:type",Object)],YE.prototype,"ytPageBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],YE.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],YE.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],YE.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.tP),_.x("design:type",Object)],YE.prototype,"ytContinuationHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],YE.prototype,"data",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],YE.prototype,"monitorScroll",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],YE.prototype,"hasSearchHeader",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],YE.prototype,"hasSecondaryContent",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],YE.prototype,"hasBiggerThumbs",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YE.prototype,"dataChanged",null);
_.H([_.VU("yt-reload-continuation-finish"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YE.prototype,"onReloadContinuationFinish",null);_.H([_.k({is:"ytd-search"})],YE);_.AS.registerService(_.ssg,YE);
_.xP();
}catch(e){_._DumpException(e)}
try{
_.TH("h8y2qb");
var iDi=function(p){if(p=_.pwg(p)){var y;(y=p.sources)!=null&&y[0]?(y=_.ljo(p),y=y<1?"VERTICAL":y>1?"HORIZONTAL":"SQUARE"):y=void 0;return y}},Z0=function(p){_.L2.call(this,"upload");
this.opts.query=p},S7O=function(p,y){return _.R(r16,{data:p,
onYtNavigate:y})},F0V=function(p,y){return _.Ae(p.entities,"pageHeaderEntity",y)},k$d=function(p,y){return p.map(function(l){if(l.tabRenderer)return L0m(l.tabRenderer);
if(l.expandableTabRenderer&&y){var q=l.expandableTabRenderer;return{customTabRenderable:function(){return y(q)}}}return{}})},L0m=function(p){return{identifier:p.tabIdentifier,
aTagConfig:_.qW({innertubeCommand:p.endpoint,forceNewState:!0}),title:p.title,selected:p.selected,disabled:p.unselectable,icon:p.icon}},N_w=function(p){return _.$y({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:p})},DSL=function(p){if(!_.bj(document,"gtm-noscript")){var y=document.createElement("noscript");
y.id="gtm-noscript";y.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+p+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(y)}};_.j6(Z0,_.L2);Z0.prototype.JSC$10010_setLabel=function(p){Z0.superClass_.JSC$10010_setLabel.call(this,p);return this};
Z0.prototype.addUploadMetadata=function(p,y){Z0.superClass_.addUploadMetadata.call(this,p,y);return this};var HDw=function(p){if(p!=="youtubebanner"&&p!=="youtube-channel-banner")throw Error("io");Z0.call(this,p)};
_.A(HDw,Z0);HDw.prototype.JSC$10010_setLabel=function(p){Z0.prototype.JSC$10010_setLabel.call(this,p);return this};
HDw.prototype.addUploadMetadata=function(p,y){Z0.prototype.addUploadMetadata.call(this,p,y);return this};var T_T=[_.vG,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(p){_.FK(p).path[0]!==this&&(this.resetLayout(),p.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var p=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Gr(this._layoutDebouncer,_.fl,p);_.Pz(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var p=this;requestAnimationFrame(function(){p.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(p){this.resizerShouldNotify(p)&&this._notifyDescendant(p)},this)}}];_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers={};_._scrollTimer$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers=null;var xSd=[_.QWr,{properties:{effects:{type:String},effectsConfig:{type:Object,value:function(){return{}}},
disabled:{type:Boolean,reflectToAttribute:!0,value:!1},threshold:{type:Number,value:0},thresholdTriggered:{type:Boolean,notify:!0,readOnly:!0,reflectToAttribute:!0}},observers:["_effectsChanged(effects, effectsConfig, isAttached)"],_updateScrollState:function(){},
isOnScreen:function(){return!1},
isContentBelow:function(){return!1},
_effectsRunFn:null,_effects:null,get _clampedScrollTop(){return Math.max(0,this._scrollTop)},attached:function(){this._scrollStateChanged()},
detached:function(){this._tearDownEffects()},
createEffect:function(p,y){var l=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[p];if(!l)throw new ReferenceError(this._getUndefinedMsg(p));p=this._boundEffect(l,y||{});p.setUp();return p},
_effectsChanged:function(p,y,l){this._tearDownEffects();p&&l&&(p.split(" ").forEach(function(q){var t;q!==""&&((t=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[q])?this._effects.push(this._boundEffect(t,y[q])):console.warn(this._getUndefinedMsg(q)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(p,y){y=y||{};var l=parseFloat(y.startsAt||0),q=parseFloat(y.endsAt||1),t=q-l,E=function(){};
q=l===0&&q===1?p.run:function(e,C){p.run.call(this,Math.max(0,(e-l)/t),C)};
return{setUp:p.setUp?p.setUp.bind(this,y):E,run:p.run?q.bind(this):E,tearDown:p.tearDown?p.tearDown.bind(this):E}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(p){p.setUp()!==!1&&this._effectsRunFn.push(p.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(p){p.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(p,y){this._effectsRunFn&&this._effectsRunFn.forEach(function(l){l(p,y)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var p=this._clampedScrollTop;this._updateScrollState(p);this.threshold>0&&this._setThresholdTriggered(p>=this.threshold)}},
_getDOMRef:function(p){console.warn("_getDOMRef","`"+p+"` is undefined")},
_getUndefinedMsg:function(p){return"Scroll effect `"+p+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+p+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("jo`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(p){var y={};p=parseFloat(p.scalar);y.background=this._getDOMRef("background");y.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");y.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");y.deltaBg=y.backgroundFrontLayer.offsetHeight-y.background.offsetHeight;y.deltaBg===0?(isNaN(p)&&(p=.8),y.deltaBg=(this._dHeight||0)*p):(isNaN(p)&&(p=
1),y.deltaBg*=p);this._fxParallaxBackground=y},
run:function(p){var y=this._fxParallaxBackground;this.transform("translate3d(0px, "+y.deltaBg*Math.min(1,p)+"px, 0px)",y.backgroundFrontLayer);y.backgroundRearLayer&&this.transform("translate3d(0px, "+y.deltaBg*Math.min(1,p)+"px, 0px)",y.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var B_T;var f$6;var vsO=function(){};
_.J=vsO.prototype;_.J._scrollTargetChanged=function(){};
_.J.scroll=function(){};
_.J._isValidScrollTarget=function(){};
_.J._toggleScrollListener=function(){};
_.J.toggleScrollListener=function(){};
_.J.createEffect=function(){};
_.J._effectsChanged=function(){};
_.J._layoutIfDirty=function(){};
_.J._boundEffect=function(){};
_.J._setUpEffect=function(){};
_.J._tearDownEffects=function(){};
_.J._runEffects=function(){};
_.J._scrollHandler=function(){};
_.J._scrollStateChanged=function(){};
_.J._getUndefinedMsg=function(){};
_.J.notifyResize=function(){};
_.J.assignParentResizable=function(){};
_.J.stopResizeNotificationsFor=function(){};
_.J._subscribeIronResize=function(){};
_.J._unsubscribeIronResize=function(){};
_.J.resizerShouldNotify=function(){};
_.J._onDescendantIronResize=function(){};
_.J._fireResize=function(){};
_.J._onIronRequestResizeNotifications=function(){};
_.J._parentResizableChanged=function(){};
_.J._notifyDescendant=function(){};
_.J._requestResizeNotifications=function(){};
_.J._findParent=function(){};
_.J._appResetLayoutHandler=function(){};
_.J.resetLayout=function(){};
_.J._notifyLayoutChanged=function(){};
_.J._notifyDescendantResize=function(){};
_.J._setThresholdTriggered=function(){};
vsO=_.fv({_template:function(){if(f$6!==void 0)return f$6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header.tp.yt.app.header.css.js--\x3e<div id="contentContainer" class="style-scope tp-yt-app-header">\n  <slot id="slot" class="style-scope tp-yt-app-header"></slot>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;B_T===void 0&&(B_T=document.createElement("template"));var q=B_T;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return f$6=p},
is:"tp-yt-app-header",behaviors:[xSd,T_T],properties:{condenses:{type:Boolean,value:!1},fixed:{type:Boolean,value:!1},reveals:{type:Boolean,value:!1},shadow:{type:Boolean,reflectToAttribute:!0,value:!1}},observers:["_configChanged(isAttached, condenses, fixed)"],_height:0,_dHeight:0,_stickyElTop:0,_stickyElRef:null,_top:0,_progress:0,_wasScrollingDown:!1,_initScrollTop:0,_initTimestamp:0,_lastTimestamp:0,_lastScrollTop:0,get _maxHeaderTop(){return this.fixed?this._dHeight:this._height+5},get _stickyEl(){if(this._stickyElRef)return this._stickyElRef;
for(var p=_.FK(this.$.slot).getDistributedNodes(),y=0,l;l=p[y];y++)if(l.nodeType===Node.ELEMENT_NODE)if(l.hasAttribute("sticky")){this._stickyElRef=l;break}else this._stickyElRef||(this._stickyElRef=l);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var p=this._clampedScrollTop,y=this._height===0||p===0,l=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;y||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();y?this._updateScrollState(p,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=l}},
_updateScrollState:function(p,y){if(this._height!==0){var l=0,q=this._top;var t=this._maxHeaderTop;var E=p-this._lastScrollTop,e=Math.abs(E),C=p>this._lastScrollTop,u=performance.now();this._mayMove()&&(l=this._clamp(this.reveals?q+E:p,0,t));p>=this._dHeight&&(l=this.condenses&&!this.fixed?Math.max(this._dHeight,l):l,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&e<100){if(u-this._initTimestamp>300||this._wasScrollingDown!==C)this._initScrollTop=p,this._initTimestamp=u;p>=t&&
(Math.abs(this._initScrollTop-p)>30||e>10?(C&&p>=t?l=t:!C&&p>=this._dHeight&&(l=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((l-q)/(E/(u-this._lastTimestamp)),0,300)+"ms"):l=this._top)}t=this._dHeight===0?p>0?1:0:l/this._dHeight;y||(this._lastScrollTop=p,this._top=l,this._wasScrollingDown=C,this._lastTimestamp=u);if(y||t!==this._progress||q!==l||p===0)this._progress=t,this._runEffects(t,l),this._transformHeader(l)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(p){this.translate3d(0,-p+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&p>=this._stickyElTop?Math.min(p,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(p,y,l){return Math.min(l,Math.max(y,p))},
_ensureBgContainers:function(){this._bgContainer||(this._bgContainer=document.createElement("div"),this._bgContainer.id="background",this._bgRear=document.createElement("div"),this._bgRear.id="backgroundRearLayer",this._bgContainer.appendChild(this._bgRear),this._bgFront=document.createElement("div"),this._bgFront.id="backgroundFrontLayer",this._bgContainer.appendChild(this._bgFront),_.FK(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(p){switch(p){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.FK(this).querySelector("[main-title]");case "condensedTitle":return _.FK(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var Xj9;var dS7;_.fv({_template:function(){if(dS7!==void 0)return dS7;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header-layout--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header_layout.tp.yt.app.header.layout.css.js--\x3e<div id="wrapper" class="initializing style-scope tp-yt-app-header-layout">\n  <slot id="headerSlot" name="header" class="style-scope tp-yt-app-header-layout"></slot>\n\n  <div id="contentContainer" class="style-scope tp-yt-app-header-layout">\n    <slot class="style-scope tp-yt-app-header-layout"></slot>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;Xj9===void 0&&(Xj9=document.createElement("template"));var q=Xj9;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return dS7=p},
is:"tp-yt-app-header-layout",behaviors:[T_T],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.FK(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var p=this.header;if(this.isAttached&&p){this.$.wrapper.classList.remove("initializing");p.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)p.style.left=
"",p.style.right="";else{var y=this.getBoundingClientRect(),l=document.documentElement.clientWidth-y.right;p.style.left=y.left+"px";p.style.right=l+"px"}y=this.$.contentContainer.style;l=p.offsetHeight;p.fixed&&!p.condenses&&this.hasScrollingRegion?(y.marginTop=l+"px",y.paddingTop=""):(y.paddingTop=l+"px",y.marginTop="")}}});var OD9=new _.uK("replaceFeedContentAction");var osm=new _.uK("alertCommand");var z9w=new _.uK("manageLabsStateCommand");var Y7L=new _.uK("inlineFormRenderer");var Mh=new _.uK("playlistSidebarPrimaryInfoRenderer");var I$u=new _.uK("productDetailsThumbnailRenderer"),ph7=new _.uK("productDetailsVariantRenderer"),y8u=new _.uK("productDetailsVariantOptionRenderer"),l0w=new _.uK("productDetailsOffersContainerRenderer"),qSu=new _.uK("productDetailsOfferRenderer");var snT=new _.uK("shoppingFlaggingRenderer");var tpd=new _.uK("playlistBylineRenderer");var EOw=new _.uK("insertChannelTabCommand");var VC=function(){return _.FA.apply(this,arguments)||this};
_.A(VC,_.FA);_.J=VC.prototype;_.J.activeChanged=function(){if(this.active){var p=_.jR(this.hostElement).querySelector("#header");p&&_.Ub(p,"iron-resize");window.addEventListener("scroll",_.MH(this,this.onScroll))}else window.removeEventListener("scroll",_.MH(this,this.onScroll)),_.Ub(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.J.guideVisibleChanged=function(){var p=_.jR(this.hostElement).querySelector("#header");p&&_.Ub(p,"iron-resize")};
_.J.onScroll=function(){var p=this;_.tl(this,"onScroll",function(){var y=_.jR(p.hostElement).querySelector("#header");y&&y.polymerController&&(y=y.polymerController.getScrollState().progress===1?"standard":"seamed",_.Ub(p.hostElement,"yt-request-panel-mode-change",{mode:y}))},10)};
_.J.tabsChanged=function(){if(this.tabs){for(var p=null,y=0,l=this.tabs.length;y<l;++y){var q=this.tabs[y].tabRenderer;if(q&&q.selected){p=y;break}}this.selected=p}};
_.J.onTabsActivate=function(p){_.Ub(this.hostElement,"yt-navigate",{endpoint:this.tabs[p.detail.selected].tabRenderer.endpoint})};
VC.prototype.tabsChanged=VC.prototype.tabsChanged;VC.prototype.guideVisibleChanged=VC.prototype.guideVisibleChanged;VC.prototype.activeChanged=VC.prototype.activeChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],VC.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.qI.YtdGuideStateAwareBehavior),_.x("design:type",Object)],VC.prototype,"ytdGuideStateAwareBehavior",void 0);_.H([_.Q(),_.x("design:type",Array)],VC.prototype,"tabs",void 0);
_.H([_.Q(),_.x("design:type",Object)],VC.prototype,"selected",void 0);_.H([_.Q(),_.x("design:type",Boolean)],VC.prototype,"active",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],VC.prototype,"disableHeaderFluidWidth",void 0);_.H([_.gd("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VC.prototype,"activeChanged",null);
_.H([_.gd("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VC.prototype,"guideVisibleChanged",null);_.H([_.gd("tabs"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VC.prototype,"tabsChanged",null);_.H([_.Lv()],VC);var J8O=[_.X.YtRendererBehavior,_.qI.YtdGuideStateAwareBehavior,VC.prototype];var c8i=2/3,egA=_.fY(130749),hgi=function(p,y){var l=this;this.element=p;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){l.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:c8i,moveAction:function(q){l.moveAction(q)},
triggerAction:function(){l.element.isReloading=!0;_.EZ(_.Ll(),{visualElement:egA});_.wW.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:l.element}})}}}};
_.gz(_.Ll(),egA,this.layer);this.gesture=new _.ep(p,y,this.refreshConfig,"pan-down");this.attach()};
_.J=hgi.prototype;_.J.attach=function(){this.gesture.attach()};
_.J.detach=function(){this.gesture.detach()};
_.J.reset=function(){this.element.close()};
_.J.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.J.moveAction=function(p){this.element.rotation=p*360};var C$u=_.fY(130750),gx=function(p,y,l,q,t){var E=this;this.element=p;this.parent=l;this.channelHeader=q;this.ytdReduxDispatch=t;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){E.tabsStartAtInPx=E.channelHeader.clientHeight-48;var e;(e=E.selectedTab)!=null&&e.title&&(e=_.WC().resolve(_.RK(_.mm)))&&(e=e.getCurrentPage(),E.lastVisitedTabScrollPosition=e.getScrollTop(),E.previousTab&&
((E.lastVisitedTabScrollPosition===void 0?0:E.lastVisitedTabScrollPosition<E.channelHeader.clientHeight-48)?E.scrollPositionForTabs.has(E.selectedTab.title)&&E.scrollPositionForTabs.delete(E.selectedTab.title):E.scrollPositionForTabs.set(E.selectedTab.title,e.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:ulT(),triggerAction:function(){E.navigate(E.previousTab)},
moveAction:function(e,C){E.moveAction(e,C)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-ulT(),triggerAction:function(){E.navigate(E.nextTab)},
moveAction:function(e,C){E.moveAction(e,C)}}}};
_.gz(_.Ll(),C$u,this.layer);this.gesture=new _.ep(p,y,this.tabConfig);this.attach()};
gx.prototype.attach=function(){this.gesture.attach()};
gx.prototype.detach=function(){this.gesture.detach()};
gx.prototype.tabsChanged=function(p){if(p){var y=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;p=_.c(p);for(var l=p.next();!l.done;l=p.next()){l=l.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=l);var q=void 0;if((q=l)==null?0:q.selected)this.previousTab=y,this.selectedTab=l;y=l}y=this.gesture;p=this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}});
y.config=p;this.scrollPositionNeedsUpdate=!0}};
gx.prototype.moveAction=function(p,y){if(!this.tabsElement){var l;this.tabsElement=(l=this.parent.header)==null?void 0:l.tabsElement;y==="right"&&this.previousTab?_.tav(_.NB.instance,this.previousTab.endpoint,{},""):y==="left"&&this.nextTab&&_.tav(_.NB.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}l=this.tabsElement._pos;y==="right"&&(p*=-1);this.tabsElement._positionBar(l.width,l.left*1+l.width*p)};
var ulT=function(){var p,y;return(y=(p=_.WC().resolve(_.mm).getCurrentPage())==null?void 0:p.clientWidth)!=null?y:0};
gx.prototype.navigate=function(p){this.element.data=void 0;if(p=p==null?void 0:p.endpoint)this.ytdReduxDispatch(N_w(!0)),_.EZ(_.Ll(),{visualElement:C$u}),_.wW.instance.resolveCommand({navigateAction:{endpoint:p}},{form:{element:this.element}})};var Rgd;var Wau;var QC=function(){return _.w.apply(this,arguments)||this};
_.A(QC,_.w);QC.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],QC.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],QC.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],QC.prototype,"data",void 0);_.H([_.k({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],QC);
_.D(QC,"ytd-labs-edit-renderer",function(){if(Wau!==void 0)return Wau;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-edit-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-edit-renderer">\n  <h2 id="title" class="style-scope ytd-labs-edit-renderer">[[getSimpleString(data.title)]]</h2>\n  <div id="delete-button" class="style-scope ytd-labs-edit-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Wau=p},{mode:1});var a0u;var KL=function(){var p=_.w.apply(this,arguments)||this;p.dark=!1;p.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";p.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.A(KL,_.w);KL.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
KL.prototype.ready=function(){var p=document.documentElement.hasAttribute("dark");this.setBackgroundImage(p);this.dark=p};
KL.prototype.onDarkModeToggledAction=function(p){this.setBackgroundImage(p);this.dark=p};
KL.prototype.setBackgroundImage=function(p){_.Ax(this.hostElement,{"--yt-labs-header-background":"url("+(p?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],KL.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],KL.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],KL.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],KL.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],KL.prototype,"dark",void 0);
_.H([_.k({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],KL);
_.D(KL,"ytd-labs-header-renderer",function(){if(a0u!==void 0)return a0u;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-labs-header-renderer">\n  <div id="contents" class="style-scope ytd-labs-header-renderer">\n    <div id="metadata" class="style-scope ytd-labs-header-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-labs-header-renderer">\n      </ytd-badge-supported-renderer>\n      <h3 id="title" class="style-scope ytd-labs-header-renderer">[[getSimpleString(data.title)]]</h3>\n      <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-header-renderer"></yt-formatted-string>\n      <div id="primary-button" class="style-scope ytd-labs-header-renderer"></div>\n    </div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return a0u=p},{mode:1});var mhu;var wx=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return p};
_.A(wx,_.w);wx.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"}}}}}};
wx.prototype.onYtToggleButton=function(p){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",p.detail.toggled)};
wx.prototype.onManageLabsState=function(p){if(p=_.G(p,z9w))p.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?p.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&p.labsItemId===this.data.labsItemId&&(p.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.$w(this.hostElement,"yt-check-labs-opted-in-state").some(function(y){return y})&&this.data.confirmationDialogCommand?_.Gf(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.WC().resolve(_.aK).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&p.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.WC().resolve(_.aK).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
wx.prototype.onCheckLabsOptedInState=function(){var p=this.get("data.primaryButton.toggleButtonRenderer");return p?p.isToggled:!1};
_.Jh.Object.defineProperties(wx.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
wx.prototype.onYtToggleButton=wx.prototype.onYtToggleButton;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],wx.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],wx.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],wx.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],wx.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],wx.prototype,"itemStyle",null);_.H([_.VU("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],wx.prototype,"onYtToggleButton",null);_.H([_.k({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],wx);
_.D(wx,"ytd-labs-item-renderer",function(){if(mhu!==void 0)return mhu;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-item-renderer">\n  <div id="metadata" class="style-scope ytd-labs-item-renderer">\n    <div id="badge" hidden="[[!data.badgeTitle]]" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.badgeTitle)]]</div>\n    <h2 id="title" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.title)]]</h2>\n    <div id="expiration-date" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.expirationDate)]]</div>\n    <yt-formatted-string id="availability-text" hidden="[[data.primaryButton.toggleButtonRenderer.isToggled]]" text="[[data.experimentalInfo.availabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="disclaimer-text" split-lines="" text="[[data.experimentalInfo.disclaimerText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope ytd-labs-item-renderer">\n      <div id="primary-button" class="style-scope ytd-labs-item-renderer"></div>\n      <div id="feedback-button" hidden="[[!data.primaryButton.toggleButtonRenderer.isToggled]]" class="style-scope ytd-labs-item-renderer">\n      </div>\n    </div>\n    <yt-formatted-string id="no-availability-text" text="[[data.experimentalInfo.noAvailabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="promo-image" hidden="[[data.experimentalLabelText]]" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n  </yt-img-shadow>\n  <div id="experimental-img" hidden="[[!data.experimentalLabelText]]" width="395" class="style-scope ytd-labs-item-renderer">\n    <yt-img-shadow id="promo-image" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="experimental-label" text="[[data.experimentalLabelText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return mhu=p},{mode:1});var UhO;var $hw;var i$=function(){return _.w.apply(this,arguments)||this};
_.A(i$,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],i$.prototype,"data",void 0);_.H([_.k({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],i$);
_.D(i$,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if($hw!==void 0)return $hw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-new-sponsor-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.newSponsorMessage]]" class="style-scope ytd-live-chat-history-new-sponsor-chip-renderer"></yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return $hw=p},{mode:1});var jn6;var rx=function(){return _.w.apply(this,arguments)||this};
_.A(rx,_.w);rx.prototype.observeSuperchatChip=function(){if(this.data){var p={"--yt-live-chat-history-super-chat-chip-renderer-background-color":this.colorFromDecimal(this.data.backgroundColor),"--yt-live-chat-history-super-chat-chip-renderer-text-color":this.colorFromDecimal(this.data.textColor)};_.Ax(this.hostElement,p)}};
rx.prototype.colorFromDecimal=function(p){return _.Y9(Number(p||0))};
rx.prototype.observeSuperchatChip=rx.prototype.observeSuperchatChip;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],rx.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],rx.prototype,"data",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rx.prototype,"observeSuperchatChip",null);_.H([_.k({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],rx);
_.D(rx,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(jn6!==void 0)return jn6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-super-chat-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope ytd-live-chat-history-super-chat-chip-renderer"></yt-formatted-string>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return jn6=p},{mode:1});var Sp=function(){return _.w.apply(this,arguments)||this};
_.A(Sp,_.w);Sp.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"}}}};
_.Jh.Object.defineProperties(Sp.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Sp.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Sp.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.IP),_.x("design:type",Object)],Sp.prototype,"ytdDismissibleItemBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Sp.prototype,"data",void 0);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Sp.prototype,"hideMessageBlock",null);
_.H([_.k({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Sp);
_.D(Sp,"ytd-live-chat-history-entry-renderer",function(){if(UhO!==void 0)return UhO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-live-chat-history-entry-renderer">\n  <div id="text" class="style-scope ytd-live-chat-history-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.videoTitle]]" class="style-scope ytd-live-chat-history-entry-renderer"></yt-formatted-string>\n    <div id="chip-container" class="style-scope ytd-live-chat-history-entry-renderer">\n      <div id="superchat-container" hidden="[[!data.chip]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        <span id="chips" class="style-scope ytd-live-chat-history-entry-renderer"></span>\n        <yt-formatted-string id="charity-name" text="[[data.charityName]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="sc4g-message" hidden="[[data.charityName]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="message" hidden="[[hideMessageBlock]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="sticker" class="style-scope ytd-live-chat-history-entry-renderer">\n      <yt-img-shadow height="64" hidden="[[!data.stickerThumbnail]]" thumbnail="[[data.stickerThumbnail]]" width="64" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-img-shadow>\n    </div>\n    <span id="timestamp" class="style-scope ytd-live-chat-history-entry-renderer">[[getSimpleString(data.timestamp)]]</span>\n  </div>\n  <div id="delete-button" class="style-scope ytd-live-chat-history-entry-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return UhO=p},{mode:1});var bLi;var Fl=function(){return _.w.apply(this,arguments)||this};
_.A(Fl,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Fl.prototype,"data",void 0);_.H([_.k({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],Fl);
_.D(Fl,"ytd-channel-options-renderer",function(){if(bLi!==void 0)return bLi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel-info" hidden="[[!data.name]]" class="style-scope ytd-channel-options-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-channel-options-renderer" href$="[[computeHref_(data.avatarEndpoint)]]" data="[[data.avatarEndpoint]]" aria-label$="[[data.avatarAccessibility.accessibilityData.label]]">\n    <yt-img-shadow height="50" thumbnail="[[data.avatar]]" width="50" class="style-scope ytd-channel-options-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="channel-info-text" class="style-scope ytd-channel-options-renderer">\n    <div id="name" class="style-scope ytd-channel-options-renderer">[[data.name]]</div>\n  </div>\n</div>\n<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-channel-options-renderer">\n  <yt-formatted-string class="link style-scope ytd-channel-options-renderer" force-default-style="" split-lines="" text="[[item]]">\n  </yt-formatted-string>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return bLi=p},{mode:1});var nOV;var LL=function(){return _.w.apply(this,arguments)||this};
_.A(LL,_.w);LL.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],LL.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],LL.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],LL.prototype,"data",void 0);_.H([_.k({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],LL);
_.D(LL,"ytd-settings-email-item-renderer",function(){if(nOV!==void 0)return nOV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info" class="style-scope ytd-settings-email-item-renderer">\n  <yt-img-shadow height="36" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="36" class="style-scope ytd-settings-email-item-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-settings-email-item-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="button-container" class="style-scope ytd-settings-email-item-renderer">\n  <div id="resume-button" class="style-scope ytd-settings-email-item-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return nOV=p},{mode:1});var GhL;var kO=function(){return _.w.apply(this,arguments)||this};
_.A(kO,_.w);kO.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"}}}};
kO.prototype.getExpansionIcon=function(p){return p?"COLLAPSE":"EXPAND"};
kO.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Jh.Object.defineProperties(kO.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],kO.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],kO.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],kO.prototype,"data",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],kO.prototype,"expanded",void 0);_.H([_.g("expanded"),_.x("design:type",String),_.x("design:paramtypes",[])],kO.prototype,"emailListExpanded",null);
_.H([_.rd("#options"),_.x("design:type",Object)],kO.prototype,"options",void 0);_.H([_.k({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],kO);
_.D(kO,"ytd-settings-email-list-renderer",function(){if(GhL!==void 0)return GhL;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-settings-email-list-renderer">\n  <tp-yt-paper-button id="list-expansion" aria-expanded$="[[emailListExpanded]]" aria-label$="[[getSimpleString(data.title)]]" noink="" on-tap="onToggleListExpansion" class="style-scope ytd-settings-email-list-renderer">\n    <div id="title" class="style-scope ytd-settings-email-list-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" class="style-scope ytd-settings-email-list-renderer"></yt-icon>\n    <tp-yt-paper-tooltip for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-email-list-renderer">\n      [[getSimpleString(data.helpText)]]\n    </tp-yt-paper-tooltip>\n    <yt-icon class="expand-icon style-scope ytd-settings-email-list-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </tp-yt-paper-button>\n  <div id="button-container" hidden="[[!data.resumeButton]]" on-tap="onResumeAll" class="style-scope ytd-settings-email-list-renderer">\n    <div id="resume-button" class="style-scope ytd-settings-email-list-renderer"></div>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-settings-email-list-renderer">\n  <div id="options" class="style-scope ytd-settings-email-list-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return GhL=p},{mode:1});var P$T;var Nh=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return p};
_.A(Nh,_.w);Nh.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"}}}};
Nh.prototype.handleSignalActionSubmitForm=function(){var p,y=(p=this.formRenderer)==null?void 0:p.getForm();y&&this.data.serviceEndpoint&&_.WC().resolve(_.aK).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},y,{element:this.hostElement})})};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Nh.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Nh.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Nh.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Nh.prototype,"data",void 0);_.H([_.rd("yt-form-renderer"),_.x("design:type",Object)],Nh.prototype,"formRenderer",void 0);
_.H([_.k({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Nh);
_.D(Nh,"ytd-settings-gaia-link-renderer",function(){if(P$T!==void 0)return P$T;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-gaia-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form-container" class="style-scope ytd-settings-gaia-link-renderer">\n  <div id="username-password-form" class="style-scope ytd-settings-gaia-link-renderer"></div>\n  <div id="claim-button" class="style-scope ytd-settings-gaia-link-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return P$T=p},{mode:1});var A8d;var D0=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return p};
_.A(D0,_.w);D0.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.thV()&&this.set("data.hidden",!1)};
D0.prototype.onSwitchReady=function(){var p=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.n("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.seA().then(function(y){y&&(Notification.permission==="default"?p.set("data.hidden",!1):Notification.permission==="granted"&&_.Ga("NotificationsDisabled").then(function(l){l||_.$w(p.hostElement,"yt-toggle-settings-switch",[p.data.id,!l]);p.set("data.hidden",!1)}).catch(function(){}))})})};
D0.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}}}}};
D0.prototype.handleUpdateOptionsCommand=function(p){(p=_.G(p,_.$DV))&&this.data&&this.data.id===p.id&&(this.set("data.hidden",p.hidden),p.text!==void 0&&this.set("data.text",p.text),p.clearOptions&&this.set("data.options",[]))};
D0.prototype.onSwitchReady=D0.prototype.onSwitchReady;D0.prototype.dataChanged=D0.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],D0.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],D0.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],D0.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],D0.prototype,"data",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],D0.prototype,"dataChanged",null);_.H([_.VU("yt-settings-switch-ready"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],D0.prototype,"onSwitchReady",null);_.H([_.k({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],D0);
_.D(D0,"ytd-settings-options-renderer",function(){if(A8d!==void 0)return A8d;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" hidden="[[data.hidden]]" class="style-scope ytd-settings-options-renderer">\n  <div id="title" class="style-scope ytd-settings-options-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="content" class="style-scope ytd-settings-options-renderer">\n    <div id="options" class="style-scope ytd-settings-options-renderer"></div>\n    <yt-formatted-string id="text" force-default-style="" hidden="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-settings-options-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return A8d=p},{mode:1});var ZL6;var Hh=function(){return _.w.apply(this,arguments)||this};
_.A(Hh,_.w);Hh.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Hh.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
Hh.prototype.onYtExpanderMoreTapped=Hh.prototype.onYtExpanderMoreTapped;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Hh.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Hh.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Hh.prototype,"data",void 0);
_.H([_.VU("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hh.prototype,"onYtExpanderMoreTapped",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],Hh);
_.D(Hh,"ytd-product-details-description-renderer",function(){if(ZL6!==void 0)return ZL6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-description-renderer">\n  <div class="description-row row style-scope ytd-product-details-description-renderer">\n      <ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="4" recompute-on-resize="" class="style-scope ytd-product-details-description-renderer">\n        <div class="description style-scope ytd-product-details-description-renderer" slot="content">[[data.description]]\n        </div>\n        <span id="attribution-link-button" slot="sticky-secondary" hidden="[[!data.attributionLinkButtonRenderer]]" class="style-scope ytd-product-details-description-renderer"></span>\n        <span class="more-button style-scope ytd-product-details-description-renderer" slot="more-button">[[getSimpleString(data.moreButtonRenderer.buttonRenderer.text)]]</span>\n        <span class="less-button style-scope ytd-product-details-description-renderer" slot="less-button">[[getSimpleString(data.lessButtonRenderer.buttonRenderer.text)]]</span>\n      </ytd-expander>\n    </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return ZL6=p},{mode:1});var MpT;var Th=function(){var p=_.w.apply(this,arguments)||this;p.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";p.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";p.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";p.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return p};
_.A(Th,_.w);Th.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Jh.Object.defineProperties(Th.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.data)==null?void 0:(y=p.offerData)==null?void 0:y.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.data)==null?void 0:p.purchaseButtonRenderers)!==void 0&&((y=this.data)==null?void 0:y.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var p,y;return!((p=this.data)==null||!p.formattedFromMerchantText)&&(!((y=this.data)==null||!y.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Th.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Th.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Th.prototype,"data",void 0);
_.H([_.Q({type:_.n("kevlar_property_type_migration_killswitch")?String:void 0}),_.x("design:type",Object)],Th.prototype,"shippingIcon",void 0);_.H([_.Q({type:_.n("kevlar_property_type_migration_killswitch")?String:void 0}),_.x("design:type",Object)],Th.prototype,"shippingAddressIcon",void 0);_.H([_.Q({type:_.n("kevlar_property_type_migration_killswitch")?String:void 0}),_.x("design:type",Object)],Th.prototype,"googleGuaranteeIcon",void 0);
_.H([_.Q({type:_.n("kevlar_property_type_migration_killswitch")?String:void 0}),_.x("design:type",Object)],Th.prototype,"returnPolicyIcon",void 0);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Th.prototype,"showAdditionalFees",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Th.prototype,"showMultiPurchaseButtons",null);
_.H([_.g("data","showMultiPurchaseButtons"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Th.prototype,"showPurchaseData",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],Th);
_.D(Th,"ytd-product-details-hero-offer-renderer",function(){if(MpT!==void 0)return MpT;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-hero-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="price-and-action-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showPurchaseData]]" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="price-column style-scope ytd-product-details-hero-offer-renderer">\n    <div class="price style-scope ytd-product-details-hero-offer-renderer">\n      <span class="item-price style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.price]]</span>\n      <template is="dom-if" restamp="" if="[[showAdditionalFees]]" class="style-scope ytd-product-details-hero-offer-renderer">\n        <span class="additional-fees style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n      </template>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.title]]</div>\n    <template is="dom-if" restamp="" if="[[!data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="merchant-row row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n          <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n        </div>\n        <yt-formatted-string text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      </yt-formatted-string></div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="shipping-details row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="shipping-details-inner column style-scope ytd-product-details-hero-offer-renderer">\n          <div class="row shipping-details-inner-row secondary-color style-scope ytd-product-details-hero-offer-renderer">\n            <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n              <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n            </div>\n            <yt-formatted-string link-inherit-color="" text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n          </yt-formatted-string></div>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="date-and-price" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="return-policy" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[returnPolicyIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string link-inherit-color="" text="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="shipping-address" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingAddressIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shoutoutText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="google-guarantee" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[googleGuaranteeIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <span class="shoutout-text secondary-color style-scope ytd-product-details-hero-offer-renderer">[[data.shoutoutText]]</span>\n              <ytd-button-renderer class="google-guarantee-info style-scope ytd-product-details-hero-offer-renderer" data="[[data.shoutoutButtonRenderer.buttonRenderer]]">\n              </ytd-button-renderer>\n            </div>\n          </template>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.affiliateDisclaimerText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div id="affiliate-disclaimer" class="affiliate-disclaimer-text-row row style-scope ytd-product-details-hero-offer-renderer">\n        <span class="secondary-color style-scope ytd-product-details-hero-offer-renderer"> [[data.affiliateDisclaimerText]] </span>\n      </div>\n    </template>\n    <div class="purchase-buttons-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showMultiPurchaseButtons]]">\n      <div id="purchase-buttons" class="purchase-buttons-inner column style-scope ytd-product-details-hero-offer-renderer">\n      </div>\n    </div>\n  </div>\n  <div class="action-column style-scope ytd-product-details-hero-offer-renderer">\n    <div id="purchase-button" class="style-scope ytd-product-details-hero-offer-renderer"></div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return MpT=p},{mode:1});var VpT;var gOT;var xO=function(){return _.w.apply(this,arguments)||this};
_.A(xO,_.w);_.J=xO.prototype;_.J.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.J.onKeyDown=function(p){p=p.keyCode;p!==13&&p!==32||this.handleSelection()};
_.J.onMouseEnterImage=function(){var p;((p=this.data)==null?void 0:p.thumbnailDetails)!==void 0&&_.jN(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.J.onMouseLeaveImage=function(){_.jN(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.J.handleSelection=function(){this.data&&_.Ub(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Jh.Object.defineProperties(xO.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.isSelected)}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],xO.prototype,"data",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],xO.prototype,"isSelected",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],xO);
_.D(xO,"ytd-product-details-thumbnail-renderer",function(){if(gOT!==void 0)return gOT;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product-card-renderer-container" class="style-scope ytd-product-details-thumbnail-renderer">\n  <div id="card" class="style-scope ytd-product-details-thumbnail-renderer">\n    <div hidden="[[!isSelected]]" id="card-selection-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <div id="card-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <yt-img-shadow id="card-image" aria-label="[[data.thumbnailDetails.accessibility.accessibilityData.label]]" object-fit="CONTAIN" thumbnail="[[data.thumbnailDetails]]" width="56px" class="style-scope ytd-product-details-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return gOT=p},{mode:1});var Bh=function(){var p=_.w.apply(this,arguments)||this;var y={};p.actionMap=(y["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",y["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",y);p.selectedThumbnailIndex=0;p.selectItem=function(l){l.target.onKeyDown(l)};
return p};
_.A(Bh,_.w);_.J=Bh.prototype;_.J.handlePreviewImageSelect=function(p){this.hoverThumbnail=p};
_.J.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.J.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.J.onThumbnailSelected=function(p,y){this.selectedThumbnailIndex=y};
_.J.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.J.updateOffset=function(){var p=_.jR(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-p));this.ytdHorizontalListBehavior.reposition_()};
_.Jh.Object.defineProperties(Bh.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null?0:p.imageRenderer){var y,l;return((y=this.data)==null?void 0:(l=y.imageRenderer)==null?void 0:l.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var p;if((p=this.data)==null?0:p.imageRenderer){var y;return(y=_.G(this.data.imageRenderer[this.selectedThumbnailIndex],I$u))==null?void 0:y.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var p=this,y,l,q,t=(q=(y=this.data)==null?void 0:(l=y.imageRenderer)==null?void 0:l.map(function(E,e){return{productDetailsThumbnailRenderer:Object.assign({},_.G(E,I$u),{index:e,isSelected:e===p.selectedThumbnailIndex})}}))!=null?q:[];
return Object.assign({},this.data,{imageRenderer:t})}}});
Bh.prototype.updateOffset=Bh.prototype.updateOffset;Bh.prototype.dataChanged=Bh.prototype.dataChanged;Bh.prototype.onThumbnailSelected=Bh.prototype.onThumbnailSelected;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Bh.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Bh.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.jE.YtdHorizontalListBehavior),_.x("design:type",Object)],Bh.prototype,"ytdHorizontalListBehavior",void 0);
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Bh.prototype,"componentBehavior",void 0);_.H([_.V([_.no.YtActionHandlerBehavior]),_.x("design:type",Object)],Bh.prototype,"actionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Bh.prototype,"data",void 0);_.H([_.Q({value:"$.items.children"}),_.x("design:type",String)],Bh.prototype,"itemsPath",void 0);_.H([_.Q({value:3}),_.x("design:type",Number)],Bh.prototype,"initialCount",void 0);
_.H([_.rd("#items"),_.x("design:type",Object)],Bh.prototype,"items",void 0);_.H([_.Q(),_.x("design:type",Object)],Bh.prototype,"selectedThumbnailIndex",void 0);_.H([_.Q(),_.x("design:type",Object)],Bh.prototype,"hoverThumbnail",void 0);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bh.prototype,"showThumbnails",null);
_.H([_.VU("ytd-product-details-thumbnail-renderer-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Number]),_.x("design:returntype")],Bh.prototype,"onThumbnailSelected",null);_.H([_.g("data","selectedThumbnailIndex","hoverThumbnail"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bh.prototype,"thumbnailDetails",null);_.H([_.g("data","selectedThumbnailIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bh.prototype,"populatedData",null);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bh.prototype,"dataChanged",null);_.H([_.VU("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bh.prototype,"updateOffset",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],Bh);
_.D(Bh,"ytd-product-details-image-carousel-renderer",function(){if(VpT!==void 0)return VpT;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-image-carousel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="preview style-scope ytd-product-details-image-carousel-renderer">\n  <template is="dom-if" restamp="" if="[[thumbnailDetails]]" class="style-scope ytd-product-details-image-carousel-renderer">\n    <yt-img-shadow class="preview-image style-scope ytd-product-details-image-carousel-renderer" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="512"></yt-img-shadow>\n  </template>\n</div>\n<div id="main" class="main style-scope ytd-product-details-image-carousel-renderer" hidden="[[!showThumbnails]]">\n  <div id="left-arrow-container" class="left-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="left-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-product-details-image-carousel-renderer">\n    <tp-yt-paper-listbox id="items" on-keydown="selectItem" class="style-scope ytd-product-details-image-carousel-renderer"></tp-yt-paper-listbox>\n  </div>\n  <div id="right-arrow-container" class="right-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="right-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return VpT=p},{mode:_.ZS("kevlar_poly_si_batch_j079")?1:2});var Qnw;var fL=function(){return _.w.apply(this,arguments)||this};
_.A(fL,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],fL.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],fL.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],fL.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],fL.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],fL);
_.D(fL,"ytd-product-details-offer-renderer",function(){if(Qnw!==void 0)return Qnw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="offer-details offer-details-new-ux style-scope ytd-product-details-offer-renderer" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="offer-details-information style-scope ytd-product-details-offer-renderer">\n    <div class="offer-price style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.price]]\n      <span class="additional-fees style-scope ytd-product-details-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.title]]\n    </div>\n    <div class="vendor-information style-scope ytd-product-details-offer-renderer">\n      <div class="vendor-logo style-scope ytd-product-details-offer-renderer">\n        <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <div class="vendor-name style-scope ytd-product-details-offer-renderer">[[data.offerData.vendorName]]</div>\n    </div>\n  </div>\n  <div class="offer-cta style-scope ytd-product-details-offer-renderer">\n    <div class="checkout style-scope ytd-product-details-offer-renderer">\n      <ytd-button-renderer data="[[data.purchaseButtonRenderer.buttonRenderer]]" class="style-scope ytd-product-details-offer-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Qnw=p},{mode:1});var Ka1;var vh=function(){var p=_.w.apply(this,arguments)||this;p.isOffersHidden=!0;return p};
_.A(vh,_.w);vh.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var p,y=_.G((p=this.data)==null?void 0:p.viewOffersButton,_.yv);y&&this.ytRendererBehavior.logExplicitClick(y)};
vh.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Jh.Object.defineProperties(vh.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q;return(l=_.G((p=this.data)==null?void 0:(y=p.offers)==null?void 0:y[0],qSu))==null?void 0:(q=l.offerData)==null?void 0:q.vendorLogoUrl}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],vh.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],vh.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],vh.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],vh.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],vh.prototype,"isOffersHidden",void 0);
_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],vh.prototype,"firstOfferVendorLogoUrl",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],vh);
_.D(vh,"ytd-product-details-offers-container-renderer",function(){if(Ka1!==void 0)return Ka1;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offers-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-container style-scope ytd-product-details-offers-container-renderer">\n  <div class="header style-scope ytd-product-details-offers-container-renderer" on-click="toggleOffers">\n    <div class="title-description-container style-scope ytd-product-details-offers-container-renderer">\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionLeft]]">\n      </yt-formatted-string>\n      <div class="vendor-logo style-scope ytd-product-details-offers-container-renderer">\n        <img src$="[[firstOfferVendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offers-container-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionRight]]">\n      </yt-formatted-string>\n    </div>\n    <div class="action style-scope ytd-product-details-offers-container-renderer">\n      <ytd-button-renderer id="view-offers" class="view-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="false" data="[[data.viewOffersButton.buttonRenderer]]" hidden="[[!isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n      <ytd-button-renderer id="hide-offers" class="hide-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="true" data="[[data.hideOffersButton.buttonRenderer]]" hidden="[[isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="offer" hidden="[[isOffersHidden]]" class="style-scope ytd-product-details-offers-container-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Ka1=p},{mode:1});var whd;var iL9;var Xl=function(){return _.w.apply(this,arguments)||this};
_.A(Xl,_.w);Xl.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
Xl.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.jN(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
Xl.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.jN(this,"ytd-product-details-variant-image-unselect")};
_.Jh.Object.defineProperties(Xl.prototype,{isImageButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE"}},
isPillButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL"||this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST"}},
isActive:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return((p=this.data)==null?void 0:p.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((y=this.data)==null?void 0:y.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((l=this.data)==null?void 0:l.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var p;if(((p=this.data)==null?void 0:p.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var p,y;return this.isUnavailable?(p=this.data)==null?void 0:p.variantOptionUnavailableAccessibilityLabel:(y=this.data)==null?void 0:y.variantOptionAccessibilityLabel}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Xl.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Xl.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Xl.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",String)],Xl.prototype,"displayType",void 0);
_.H([_.g("displayType","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Xl.prototype,"isImageButton",null);_.H([_.g("displayType","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Xl.prototype,"isPillButton",null);_.H([_.g("data"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Xl.prototype,"isActive",null);
_.H([_.g("data"),_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Xl.prototype,"isUnavailable",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Xl.prototype,"thumbnailDetails",null);_.H([_.g("isUnavailable","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Xl.prototype,"accessibilityLabel",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],Xl);
_.D(Xl,"ytd-product-details-variant-option-renderer",function(){if(iL9!==void 0)return iL9;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-variant-option-renderer">\n  <template is="dom-if" restamp="" if="[[isImageButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-image style-scope ytd-product-details-variant-option-renderer">\n        <yt-img-shadow alt="[[data.name]]" height="52" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="52" class="style-scope ytd-product-details-variant-option-renderer"></yt-img-shadow>\n      </div>\n    </a>\n    <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n      [[accessibilityLabel]]\n    </tp-yt-paper-tooltip>\n  </template>\n  <template is="dom-if" restamp="" if="[[isPillButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-pill style-scope ytd-product-details-variant-option-renderer">\n        <span class="style-scope ytd-product-details-variant-option-renderer">[[data.name]]</span>\n      </div>\n    </a>\n    <template is="dom-if" restamp="" if="[[isUnavailable]]" class="style-scope ytd-product-details-variant-option-renderer">\n      <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n        [[data.unavailableText]]\n      </tp-yt-paper-tooltip>\n    </template>\n  </template>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return iL9=p},{mode:1});var r87;var dx=function(){var p=_.w.apply(this,arguments)||this;p.variantsExpanded=!1;p.hideShowMoreLessVariantButton=!0;p.initialized=!1;p.computeVariantsDebouncer=null;p.computeVariants=function(y){y=y===void 0?!1:y;p.variantsExpanded||p.showOptions()||!y||(p.variantsExpanded=!0);if(p.variantsExpanded){y=_.c(p.items.children);for(var l=y.next();!l.done;l=y.next())l.value.hidden=!1}p.initialized=!0};
return p};
_.A(dx,_.w);_.J=dx.prototype;_.J.ready=function(){var p=this;setTimeout(function(){p.computeVariants(!0)})};
_.J.showOptions=function(){for(var p=_.c(this.items.children),y=p.next();!y.done;y=p.next())y.value.hidden=!0;var l=this.container.getBoundingClientRect().width,q=0,t=p=0;y=!1;for(var E=_.c(this.items.children),e=E.next();!e.done;e=E.next()){e=e.value;e.hidden=!1;var C=e.getBoundingClientRect().width;if(q+C<l)q+=C;else if(++t<2)q=C;else break;p+=1;e.hasAttribute("is-active")&&(y=!0)}for(l=p;l<this.items.children.length;l++)this.items.children[l].hidden=!0;this.hideShowMoreLessVariantButton=p===this.items.children.length;
return y};
_.J.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Gr(this.computeVariantsDebouncer,_.hc.after(100),this.computeVariants)};
_.J.onShowMoreLessVariantsButtonClick=function(){var p;(p=this.data)!=null&&p.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.J.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.Jh.Object.defineProperties(dx.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var p,y,l=(p=this.data)==null?void 0:(y=p.variantOptionRenderers)==null?void 0:y.find(function(E){return _.G(E,y8u).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),q,t;
return(t=(q=_.G(l,y8u))==null?void 0:q.name)!=null?t:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.displayType)||"VARIANT_ATTRIBUTE_DISPLAY_TYPE_UNKNOWN"}},
variantItemsClassname:{configurable:!0,enumerable:!0,get:function(){switch(this.displayType){case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL":return"pill";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST":return"dropdown";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE":return"image";default:return"unknown"}}}});
dx.prototype.debouncedComputeVariants=dx.prototype.debouncedComputeVariants;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],dx.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],dx.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],dx.prototype,"componentBehavior",void 0);_.H([_.V(_.vG),_.x("design:type",Object)],dx.prototype,"ironResizableBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],dx.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],dx.prototype,"variantsExpanded",void 0);_.H([_.Q(),_.x("design:type",Object)],dx.prototype,"hideShowMoreLessVariantButton",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],dx.prototype,"initialized",void 0);_.H([_.rd("#items"),_.x("design:type",HTMLDivElement)],dx.prototype,"items",void 0);_.H([_.rd("#container"),_.x("design:type",HTMLDivElement)],dx.prototype,"container",void 0);
_.H([_.rd("#more-variants-button"),_.x("design:type",HTMLElement)],dx.prototype,"moreVariantsButton",void 0);_.H([_.g("data"),_.x("design:type",String),_.x("design:paramtypes",[])],dx.prototype,"selectedOptionName",null);_.H([_.gd("data","variantsExpanded"),_.VU("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dx.prototype,"debouncedComputeVariants",null);
_.H([_.g("data"),_.x("design:type",String),_.x("design:paramtypes",[])],dx.prototype,"displayType",null);_.H([_.g("displayType"),_.x("design:type",Object),_.x("design:paramtypes",[])],dx.prototype,"variantItemsClassname",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],dx);
_.D(dx,"ytd-product-details-variant-renderer",function(){if(r87!==void 0)return r87;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-product-details-variant-renderer">\n  <div class="variant-title-container style-scope ytd-product-details-variant-renderer">\n    <div class="variant-title style-scope ytd-product-details-variant-renderer">[[data.title]]</div><div class="variant-selected-option style-scope ytd-product-details-variant-renderer">[[selectedOptionName]]</div>\n  </div>\n  <div class$="variant-items-container variant-items-container-[[variantItemsClassname]] style-scope ytd-product-details-variant-renderer">\n    <div id="items" class="style-scope ytd-product-details-variant-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[!hideShowMoreLessVariantButton]]" class="style-scope ytd-product-details-variant-renderer">\n    <ytd-button-renderer class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showMoreVariants.buttonRenderer]]" hidden$="[[variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="more-variants-button" class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showLessVariants.buttonRenderer]]" hidden$="[[!variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n  </template>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return r87=p},{mode:1});var OS=function(){return _.w.apply(this,arguments)||this};
_.A(OS,_.w);
OS.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"}}}};
_.Jh.Object.defineProperties(OS.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var p,y,l=(y=_.G((p=this.data)==null?void 0:p.offersContainerRenderer,l0w))==null?void 0:y.offers;return l!==void 0&&(l==null?void 0:l.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return((l=(p=this.data)==null?void 0:(y=p.variants)==null?void 0:y.map(function(q){var t,E;q=(E=(t=_.G(q,ph7))==null?void 0:t.variantOptionRenderers)==null?void 0:E.find(function(C){var u;return((u=_.G(C,y8u))==null?void 0:u.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var e;return(e=_.G(q,y8u))==null?void 0:e.name}).filter(function(q){return typeof q==="string"}))!=null?l:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q=(y=_.G((p=this.data)==null?void 0:p.shoppingFlaggingRenderer,snT))==null?void 0:(l=y.reportButton)==null?void 0:l.buttonRenderer;if(q)return{text:q.text,command:q.command,icon:{iconType:"FLAG"},accessibilityData:q.accessibilityData,trackingParams:q.trackingParams,loggingDirectives:q.loggingDirectives}}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],OS.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],OS.prototype,"data",void 0);_.H([_.rd("#image-carousel-renderer"),_.x("design:type",Object)],OS.prototype,"imageCarouselRenderer",void 0);
_.H([_.rd("#hero-offer-renderer"),_.x("design:type",Object)],OS.prototype,"productDetailsHeroOfferRenderer",void 0);_.H([_.rd("#variants"),_.x("design:type",Object)],OS.prototype,"productDetailsVariantRenderer",void 0);_.H([_.rd("#offers"),_.x("design:type",Object)],OS.prototype,"productDetailsOffersContainerRenderer",void 0);_.H([_.rd("#description-renderer"),_.x("design:type",Object)],OS.prototype,"productDetailsDescriptionRenderer",void 0);
_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OS.prototype,"showPurchaseData",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OS.prototype,"showHeroOfferRenderer",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OS.prototype,"showBrandText",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OS.prototype,"showOffers",null);
_.H([_.g("showOffers","showPurchaseData"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OS.prototype,"showBuySeparator",null);_.H([_.g("showOffers","showPurchaseData"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OS.prototype,"showBuyCard",null);_.H([_.g("data"),_.x("design:type",String),_.x("design:paramtypes",[])],OS.prototype,"selectedVariantsText",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],OS.prototype,"shoppingReportingButtonData",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],OS);
_.D(OS,"ytd-product-details-renderer",function(){if(whd!==void 0)return whd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-renderer">\n  <div class="column column-image-carousel style-scope ytd-product-details-renderer">\n    <div id="image-carousel-renderer" class="style-scope ytd-product-details-renderer"></div>\n  </div>\n  <div class="column column-description style-scope ytd-product-details-renderer">\n    <div class="title-row row style-scope ytd-product-details-renderer">\n      <div class="style-scope ytd-product-details-renderer">[[getSimpleString(data.title)]]</div>\n      <div class="title-row-buttons row style-scope ytd-product-details-renderer">\n        <div id="share-button" class="style-scope ytd-product-details-renderer"></div>\n        <div id="action-button" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="brand-row row style-scope ytd-product-details-renderer">\n      <template is="dom-if" restamp="" if="[[showBrandText]]" class="style-scope ytd-product-details-renderer">\n        <yt-formatted-string class="formatted-brand style-scope ytd-product-details-renderer" text="[[data.formattedByBrandText]]">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="description-renderer" class="style-scope ytd-product-details-renderer"></div>\n    <div id="variants" class="style-scope ytd-product-details-renderer"></div>\n    <div class="buy style-scope ytd-product-details-renderer" hidden="[[!showBuyCard]]">\n      <div hidden="[[!showHeroOfferRenderer]]" id="hero-offer-renderer" class="style-scope ytd-product-details-renderer"></div>\n      <div class="style-scope ytd-product-details-renderer">\n        <hr class="buy-separator style-scope ytd-product-details-renderer" hidden="[[!showBuySeparator]]">\n        <div id="offers" hidden="[[!showOffers]]" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="buy offer-unavailable style-scope ytd-product-details-renderer" hidden="[[showBuyCard]]">\n        <yt-formatted-string class="offer-unavailable-title style-scope ytd-product-details-renderer" text="[[data.unavailableText]]">\n        </yt-formatted-string>\n        <div class="offer-unavailable-variants style-scope ytd-product-details-renderer">[[selectedVariantsText]]</div>\n    </div>\n    <div class="flagging-container style-scope ytd-product-details-renderer" hidden="[[!data.shoppingFlaggingRenderer]]">\n      <ytd-button-renderer id="flagging-button" data="[[shoppingReportingButtonData]]" class="style-scope ytd-product-details-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return whd=p},{mode:1});var SSw;var FaV;var La9;var on=function(){return _.w.apply(this,arguments)||this};
_.A(on,_.w);on.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Jh.Object.defineProperties(on.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],on.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],on.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],on.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",String)],on.prototype,"formattedAmount",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],on.prototype,"ariaLabel",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("data.style"),_.x("design:type",String),_.x("design:paramtypes",[])],on.prototype,"vcBalanceWidgetStyle",null);_.H([_.z9({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],on);
_.D(on,"yt-vc-balance-renderer",function(){if(La9===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_balance_renderer.yt.vc.balance.renderer.css.js--\x3e<div id="vc-icon" hidden$="[[!data.vcIcon]]" class="style-scope yt-vc-balance-renderer">\n</div>\n<p id="vc-balance" class="style-scope yt-vc-balance-renderer">[[formattedAmount]]</p>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;FaV===void 0&&(FaV=document.createElement("template"));var q=FaV;l.call(y,q.content.cloneNode(!0),p.content.firstChild);La9=p}p=La9;return p},{mode:2});_.ox("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var zh=function(){return _.w.apply(this,arguments)||this};
_.A(zh,_.w);_.Jh.Object.defineProperties(zh.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:""}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],zh.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],zh.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],zh.prototype,"data",void 0);_.H([_.Q({selectorArgs:["data.vcBalanceEntityKey"],selector:function(p,y){return _.Ae(p.entities,"vcBalanceEntity",y)}}),
_.x("design:type",Object)],zh.prototype,"vcBalanceEntity",void 0);_.H([_.g("vcBalanceEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],zh.prototype,"formattedAmount",null);_.H([_.g("vcBalanceEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],zh.prototype,"vcBalanceAriaLabel",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],zh);
_.D(zh,"ytd-vc-balance-renderer",function(){if(SSw!==void 0)return SSw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-vc-balance-renderer aria-label="[[vcBalanceAriaLabel]]" data="[[data]]" formatted-amount="[[formattedAmount]]" class="style-scope ytd-vc-balance-renderer">\n</yt-vc-balance-renderer>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return SSw=p},{mode:1});var khi;var YO=function(){var p=_.w.apply(this,arguments)||this;p.rotation=0;p.isReloading=!1;return p};
_.A(YO,_.w);YO.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
YO.prototype.reset=function(){this.hostElement.style.opacity=""};
YO.prototype.close=function(){var p=this;return _.h(function(y){if(y.nextAddress==1)return y.yield(p.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);p.hostElement.style.opacity="0";_.rR(y)})};
YO.prototype.rotationChanged=YO.prototype.rotationChanged;_.H([_.Q(),_.x("design:type",Object)],YO.prototype,"rotation",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],YO.prototype,"isReloading",void 0);_.H([_.rd("#icon"),_.x("design:type",HTMLElement)],YO.prototype,"icon",void 0);_.H([_.gd("rotation"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YO.prototype,"rotationChanged",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-refresh"})],YO);
_.D(YO,"ytd-refresh",function(){if(khi!==void 0)return khi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-refresh--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[isReloading]]" icon="refresh" class="style-scope ytd-refresh"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[isReloading]]" hidden="[[!isReloading]]" class="style-scope ytd-refresh">\n</tp-yt-paper-spinner-lite>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return khi=p},{mode:1});var Nx9;var In=function(){return _.w.apply(this,arguments)||this};
_.A(In,_.w);In.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"}}}};
In.prototype.dataChanged=function(){if(this.data){var p=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var y=_.nY(this.data.banner.thumbnails,this.hostElement.clientWidth);y&&(y.indexOf("//")===0&&(y="https:"+y),this.hasBannerArt=!0,_.Ax(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+y+")"}))}this.hasBannerArt!==p&&_.jR(this.hostElement).querySelector("#header").fire("iron-resize")}};
In.prototype.updateSelectedFromBinding=function(p){this.selected=p.detail.value};
In.prototype.dataChanged=In.prototype.dataChanged;_.H([_.V(J8O),_.x("design:type",Object)],In.prototype,"ytdTabbedHeaderBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],In.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.yd),_.x("design:type",Object)],In.prototype,"ytdGridStateAwareBehavior",void 0);_.H([_.V(_.qI.YtdGuideStateAwareBehavior),_.x("design:type",Object)],In.prototype,"ytdGuideStateAwareBehavior",void 0);
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],In.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],In.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Number)],In.prototype,"selected",void 0);_.H([_.Q(),_.x("design:type",Boolean)],In.prototype,"active",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],In.prototype,"hasBannerArt",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],In.prototype,"dataChanged",null);_.H([_.k({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],In);
_.D(In,"ytd-interactive-tabbed-header-renderer",function(){if(Nx9!==void 0)return Nx9;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Nx9=p},{mode:1});var Dh9;var pB=function(){return _.w.apply(this,arguments)||this};
_.A(pB,_.w);pB.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
pB.prototype.computeActionsAlignment=function(p){return(p==null?void 0:p.actionsAlignment)||""};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],pB.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],pB.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.x("design:type",String)],pB.prototype,"actionsAlignment",void 0);_.H([_.k({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],pB);
_.D(pB,"ytd-page-footer-renderer",function(){if(Dh9!==void 0)return Dh9;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-actions" class="style-scope ytd-page-footer-renderer"></div>\n<div id="actions" class="style-scope ytd-page-footer-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Dh9=p},{mode:1});var HLu;var Tx7;var y8=function(){var p=_.w.apply(this,arguments)||this;p.isEditing=!1;p.useSlot=!1;p.isMultiline=!1;return p};
_.A(y8,_.w);_.J=y8.prototype;_.J.onKeydown=function(p){if(p.keyCode===13&&!this.isMultiline)this.onSave();else if(p.keyCode===27)this.onCancel()};
_.J.computeComponentStyle=function(p){return(p==null?0:p.style)?p.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.J.computeisMultiline=function(p){if(this.multilineOverride!==void 0)return this.multilineOverride;var y,l;return!!(p==null?0:(y=p.formField)==null?0:(l=y.textInputFormFieldRenderer)==null?0:l.isMultiline)};
_.J.computeTextDisplayed=function(p,y){if(p)return p;if(y)return y};
_.J.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.J.onSave=function(){if(this.textForm.validate()){this.textForm.save();var p=this.textForm.value;if(p)this.set("data.textDisplayed",_.EK(p));else{var y;((y=this.data)==null?0:y.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.JC("inline-form-changed",this.data));this.isEditing=!1}};
_.J.onCancel=function(){var p=_.JB(this.data.textDisplayed);p===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(p);this.isEditing=!1};
y8.prototype.onKeydown=y8.prototype.onKeydown;_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],y8.prototype,"ytEventForwardingBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],y8.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],y8.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],y8.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],y8.prototype,"isEditing",void 0);_.H([_.Q(),_.x("design:type",Object)],y8.prototype,"useSlot",void 0);_.H([_.Q(),_.x("design:type",Boolean)],y8.prototype,"multilineOverride",void 0);_.H([_.Q(),_.x("design:type",Boolean)],y8.prototype,"enableOverlayTheme",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.x("design:type",String)],y8.prototype,"componentStyle",void 0);
_.H([_.Q({computed:"computeisMultiline(data)"}),_.x("design:type",Object)],y8.prototype,"isMultiline",void 0);_.H([_.rd("#text-form"),_.x("design:type",Object)],y8.prototype,"textForm",void 0);_.H([_.VU("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],y8.prototype,"onKeydown",null);_.H([_.k({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],y8);
_.D(y8,"ytd-inline-form-renderer",function(){if(Tx7!==void 0)return Tx7;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="display-dialog" hidden="[[isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <template is="dom-if" restamp="" if="[[useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <slot name="text-display" id="text-displayed" class="style-scope ytd-inline-form-renderer"></slot>\n  </template>\n  <template is="dom-if" restamp="" if="[[!useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <yt-formatted-string id="text-displayed" split-lines="" text="[[computeTextDisplayed(data.textDisplayed, data.placeholder)]]" class="style-scope ytd-inline-form-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<ytd-button-renderer id="edit-button" button-tooltip-position="left" data="[[data.editButton.buttonRenderer]]" hidden="[[isEditing]]" on-click="onEdit" class="style-scope ytd-inline-form-renderer">\n</ytd-button-renderer>\n<div id="edit-dialog" hidden="[[!isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <yt-text-input-form-field-renderer id="text-form" component-style="[[componentStyle]]" data="[[data.formField.textInputFormFieldRenderer]]" enable-overlay-theme="[[enableOverlayTheme]]" is-multiline-override="[[isMultilineOverride]]" no-label-float="" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-inline-form-renderer">\n  </yt-text-input-form-field-renderer>\n  <div id="edit-buttons" class="style-scope ytd-inline-form-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancel" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSave" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Tx7=p},{mode:1});var xhd;var lw=function(){var p=_.w.apply(this,arguments)||this;p.previousSelectValue=void 0;p.selectedItemMessage=void 0;return p};
_.A(lw,_.w);lw.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
lw.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var p,y,l,q,t=(p=this.data)==null?void 0:(y=p.dropdown)==null?void 0:(l=y.dropdownRenderer)==null?void 0:(q=l.entries)==null?void 0:q.map(function(C){return C.privacyDropdownItemRenderer});
p=_.c(t!=null?t:[]);for(y=p.next();!y.done;y=p.next())if((y=y.value)&&y.int32Value===this.selectedValue){this.selectedItemMessage=y.itemMessage;break}}else this.selectedItemMessage=void 0;var E;(E=this.onValueChanged)==null||E.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var e;(e=this.data)!=null&&e.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
lw.prototype.onValueChangedForSelectedValue=function(p){this.selectedValue=p.detail.value};
lw.prototype.selectedValueChanged=lw.prototype.selectedValueChanged;_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],lw.prototype,"ytEventForwardingBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],lw.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],lw.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],lw.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],lw.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",String)],lw.prototype,"theme",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Number)],lw.prototype,"selectedValue",void 0);_.H([_.Q(),_.x("design:type",Function)],lw.prototype,"onValueChanged",void 0);
_.H([_.k8("selectedValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lw.prototype,"selectedValueChanged",null);_.H([_.k({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],lw);
_.D(lw,"ytd-dropdown-form-field-renderer",function(){if(xhd!==void 0)return xhd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-dropdown-form-field-renderer">\n  <ytd-dropdown-renderer id="dropdown" autosize="" data="[[data.dropdown.dropdownRenderer]]" min-autosize-width="0" no-label-float="" no-underline="" theme="[[theme]]" value="[[selectedValue]]" on-value-changed="onValueChangedForSelectedValue" class="style-scope ytd-dropdown-form-field-renderer">\n  </ytd-dropdown-renderer>\n  <yt-formatted-string id="selected-item-message" hidden="[[!selectedItemMessage]]" text="[[selectedItemMessage]]" class="style-scope ytd-dropdown-form-field-renderer">\n  </yt-formatted-string>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return xhd=p},{mode:_.ZS("kevlar_poly_si_batch_j025")?1:2});var Bxd;var qK=function(){return _.w.apply(this,arguments)||this};
_.A(qK,_.w);_.Jh.Object.defineProperties(qK.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var p=[],y=_.c(this.data||[]),l=y.next();!l.done;l=y.next())(l=_.G(l.value,tpd))&&p.push(l);return p}}});
_.H([_.Q(),_.x("design:type",Array)],qK.prototype,"data",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],qK.prototype,"byline",null);_.H([_.k({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],qK);
_.D(qK,"ytd-playlist-byline-renderer",function(){if(Bxd!==void 0)return Bxd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-byline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-stats style-scope ytd-playlist-byline-renderer">\n  <template is="dom-repeat" items="[[byline]]" class="style-scope ytd-playlist-byline-renderer">\n    <yt-icon id="byline-icon" hidden="[[!item.icon]]" icon="[[item.icon.iconType]]" class="style-scope ytd-playlist-byline-renderer"></yt-icon>\n    <yt-formatted-string class="byline-item style-scope ytd-playlist-byline-renderer" text="[[item.text]]"></yt-formatted-string>\n  </template>\n</div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Bxd=p},{mode:1});var f0V;var sk=function(){var p=_.w.apply(this,arguments)||this;p.rtlBullet=_.n("web_playlist_stats_rtl_bullet_icon_killswitch");p.modern=_.n("web_modern_buttons");p.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return p};
_.A(sk,_.w);_.J=sk.prototype;_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more"}}}},"data.playButtons":{id:"play-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"},toggleButtonRenderer:{component:"ytd-toggle-button-renderer"},compactLinkRenderer:{component:"ytd-compact-link-renderer"}}}}};
_.J.attached=function(){};
_.J.computeIsCustomThumbnail=function(p){return p?!!p.playlistCustomThumbnailRenderer:!1};
_.J.onYtNavigate=function(p,y){if(y&&y.actions&&y.actions.indexOf("shuffle")>-1){p=_.WC().resolve(_.yh);var l=y.tempData||{};l.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);y.tempData=l;p.isShuffleNextPlaylist=!0}};
_.J.onUpdatePlaylistAction=function(p){var y;p=(y=_.G(p,_.Our))==null?void 0:y.updatedRenderer;if(y=_.G(p,Mh))this.data=y};
_.J.computeStyleType=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.J.computeThumbnailWidth=function(p){return p==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.J.computeHideThumbnailAria=function(p){if(p==null?0:p.thumbnailOverlays)for(var y=0;y<p.thumbnailOverlays.length;y++){var l=void 0;if((l=p.thumbnailOverlays[y])==null?0:l.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
sk.prototype.onYtNavigate=sk.prototype.onYtNavigate;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],sk.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],sk.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],sk.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],sk.prototype,"ytComponentBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],sk.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],sk.prototype,"rtlBullet",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.x("design:type",String)],sk.prototype,"styleType",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.x("design:type",Number)],sk.prototype,"thumbnailWidth",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],sk.prototype,"modern",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.x("design:type",Boolean)],sk.prototype,"isCustomThumbnail",void 0);_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[Event,Object]),_.x("design:returntype")],sk.prototype,"onYtNavigate",null);_.H([_.k({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],sk);
_.D(sk,"ytd-playlist-sidebar-primary-info-renderer",function(){if(f0V!==void 0)return f0V;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail bottom-side-panel="" custom-thumbnail-size="[[thumbnailWidth]]" data="[[data]]" hidden="[[!data.thumbnailRenderer]]" hide-aria="[[computeHideThumbnailAria(data)]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-playlist-thumbnail><h1 id="title" hidden="[[!data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string link-inherit-color="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></h1><template is="dom-if" restamp="" if="[[data.titleForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="title-form" data="[[data.titleForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></template><div id="stats" hidden="[[!data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><div id="privacy-stats" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-badge-supported-renderer><div id="show-stats" hidden="[[!data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><template is="dom-if" restamp="" if="[[data.privacyForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-dropdown-form-field-renderer></template></div><div id="play-buttons" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><div id="menu" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><template is="dom-if" restamp="" if="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template><template is="dom-if" restamp="" if="[[data.descriptionForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description-form" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="description-form" data="[[data.descriptionForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return f0V=p},{mode:1});var vO1;var tY=function(){return _.w.apply(this,arguments)||this};
_.A(tY,_.w);tY.prototype.computeOwnerVisibility=function(p){return!(!p.videoOwner&&!p.button)};
tY.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"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],tY.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],tY.prototype,"data",void 0);_.H([_.k({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],tY);
_.D(tY,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(vO1!==void 0)return vO1;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n<div id="owner-container" hidden$="[[!computeOwnerVisibility(data)]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n  <div id="video-owner" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n  <div id="button" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n</div>\n<yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return vO1=p},{mode:1});var Xhi;var Ek=function(){var p=_.w.apply(this,arguments)||this;p.expanded=!1;p.isCompact=!1;return p};
_.A(Ek,_.w);_.J=Ek.prototype;_.J.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.J.dataChanged=function(){this.data&&_.hw(_.jR(this.text),_.wUr(_.S$i,_.JB(this.data.text||null)))};
_.J.computeAutoScrollEnabled=function(p,y){return p&&!y};
_.J.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.J.toggleOnTap=function(){this.expanded=!this.expanded};
Ek.prototype.expandedChanged=Ek.prototype.expandedChanged;Ek.prototype.dataChanged=Ek.prototype.dataChanged;_.H([_.V(_.oTO),_.x("design:type",Object)],Ek.prototype,"ytdAutoScrollBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ek.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Ek.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Ek.prototype,"expanded",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Ek.prototype,"isCompact",void 0);_.H([_.Q({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.x("design:type",Boolean)],Ek.prototype,"autoScrollEnabled",void 0);_.H([_.rd("#text"),_.x("design:type",Object)],Ek.prototype,"text",void 0);_.H([_.rd("#expander-icon"),_.x("design:type",Object)],Ek.prototype,"expanderIcon",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ek.prototype,"dataChanged",null);_.H([_.gd("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ek.prototype,"expandedChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],Ek);
_.D(Ek,"ytd-channel-legal-info-renderer",function(){if(Xhi!==void 0)return Xhi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-legal-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" class="style-scope ytd-channel-legal-info-renderer"></yt-formatted-string>\n<tp-yt-paper-material id="expand-button" elevation="1" on-click="toggleOnTap" class="style-scope ytd-channel-legal-info-renderer">\n  <yt-icon-button class="style-scope ytd-channel-legal-info-renderer">\n    <yt-icon id="expander-icon" class="style-scope ytd-channel-legal-info-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Xhi=p},{mode:1});var dhR;var OL7=_.g$("DOWNLOAD",{},"Download"),oO9=_.g$("DOWNLOADING",{},"Downloading"),zg1=_.g$("DOWNLOADED",{},"Downloaded"),JY=function(){var p=_.w.apply(this,arguments)||this;p.downloadProgress=0;p.isDownloadComplete=!1;p.transferState="TRANSFER_STATE_UNKNOWN";return p};
_.A(JY,_.w);_.J=JY.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.dataChanged=function(){var p;(p=this.data)!=null&&p.tooltip||(p=_.or(_.ei().getState(),this.playlistId),this.updateButtonState(p))};
_.J.computePlaylistId=function(p){return p};
_.J.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.J.updateButtonState=function(p){if(this.data&&(this.data.tooltip!==oO9||!_.rN(p))){this.isDownloadComplete=!1;switch(p){case "TRANSFER_STATE_UNKNOWN":p=OL7;var y="OFFLINE_DOWNLOAD";var l="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":p=zg1;y="OFFLINE_PIN";l="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":p=oO9;y="OFFLINE_DOWNLOADING_ZERO";l="ACTION_REMOVE_WITH_PROMPT";
break;default:p=OL7,y="OFFLINE_DOWNLOAD",l="ACTION_ADD"}var q=Object.assign({},this.data);q.tooltip=p;q.accessibilityData={accessibilityData:{label:p}};q.icon={iconType:y};q.size="SIZE_DEFAULT";_.G(q.command,_.ij)&&(_.G(q.command,_.ij).action=l);this.set("data",q)}};
_.J.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var p="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?p="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?p="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?p="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?p="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?p="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(p="OFFLINE_PIN",this.isDownloadComplete=!0);var y;p!==((y=this.data.icon)==null?void 0:y.iconType)&&(y=Object.assign({},this.data),y.tooltip=oO9,y.accessibilityData={accessibilityData:{label:oO9}},y.icon={iconType:p},_.G(y.command,_.ij)&&(_.G(y.command,_.ij).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",y))}};
JY.prototype.updateProgress=JY.prototype.updateProgress;JY.prototype.onTransferStateChanged=JY.prototype.onTransferStateChanged;JY.prototype.dataChanged=JY.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],JY.prototype,"ytdReduxBehavior",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],JY.prototype,"forceIconButton",void 0);
_.H([_.Q({value:!0}),_.x("design:type",Boolean)],JY.prototype,"forceIconOnly",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],JY.prototype,"overrides",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],JY.prototype,"buttonTooltipPosition",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],JY.prototype,"styleActionButton",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],JY.prototype,"disableTextTransform",void 0);
_.H([_.Q({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.x("design:type",String)],JY.prototype,"playlistId",void 0);_.H([_.Q(),_.x("design:type",Object)],JY.prototype,"data",void 0);_.H([_.Q({selector:_.Ld_,selectorArgs:["playlistId"]}),_.x("design:type",Object)],JY.prototype,"downloadProgress",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],JY.prototype,"isDownloadComplete",void 0);
_.H([_.Q({selector:_.or,selectorArgs:["playlistId"]}),_.x("design:type",String)],JY.prototype,"transferState",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],JY.prototype,"showTooltips",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],JY.prototype,"sendCommandWhenDisabled",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],JY.prototype,"disabled",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JY.prototype,"dataChanged",null);_.H([_.k8("transferState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JY.prototype,"onTransferStateChanged",null);_.H([_.k8("downloadProgress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JY.prototype,"updateProgress",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],JY);
_.D(JY,"ytd-download-playlist-button-renderer",function(){if(dhR!==void 0)return dhR;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-playlist-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-playlist-button-renderer"></ytd-button-renderer>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return dhR=p},{mode:1});var YSd;_.bp(_.Y9P,"thumbnail-overlay-button-view-model",{props:{data:_.Co,lockupExperiments:_.Co}});var cl=function(){var p=_.w.apply(this,arguments)||this;p.isSquare=!1;p.isVertical=!1;return p};
_.A(cl,_.w);cl.prototype.computeIsSquare=function(p){return p!=null&&p.thumbnail?iDi(p.thumbnail)==="SQUARE":!1};
cl.prototype.computeIsVertical=function(p){return p!=null&&p.thumbnail?iDi(p.thumbnail)==="VERTICAL":!1};
cl.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],cl.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.x("design:type",Object)],cl.prototype,"isSquare",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.x("design:type",Object)],cl.prototype,"isVertical",void 0);
_.H([_.Q(),_.x("design:type",Object)],cl.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],cl);
_.D(cl,"ytd-hero-playlist-thumbnail-renderer",function(){if(YSd!==void 0)return YSd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hero-playlist-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="horizontally-centered-container style-scope ytd-hero-playlist-thumbnail-renderer">\n  <div class="image-wrapper style-scope ytd-hero-playlist-thumbnail-renderer">\n    <yt-img-shadow class="image style-scope ytd-hero-playlist-thumbnail-renderer" alt="hidden" aria-hidden="true" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div id="overlays" class="style-scope ytd-hero-playlist-thumbnail-renderer"></div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return YSd=p},{mode:1});var en=function(){var p=_.w.apply(this,arguments)||this;p.isDarkTheme=!1;p.isUltraWide=!1;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return p};
_.A(en,_.w);_.J=en.prototype;_.J.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.WC();var p;(p=_.WC().resolve(_.RK(_.Wv)))!=null&&(p.headerElement=this.hostElement)};
_.J.detached=function(){var p;(p=_.WC().resolve(_.RK(_.Wv)))!=null&&(p.headerElement=void 0)};
_.J.onUpdateHeader=function(p){(p=p.detail)&&this.set("data",p)};
_.J.computeTextDisplayed=function(p){if(p)return p.textDisplayed?p.textDisplayed:p.placeholder};
_.J.gradientColorToLinearGradientStop=function(p){var y=this.isDarkTheme?p.darkThemeColor:p.lightThemeColor;return y?_.Y9(y)+" "+((p==null?void 0:p.startLocation)||0)*100+"%":"transparent"};
_.J.onWindowResize=function(){var p;((p=this.data)==null?0:p.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.J.onIronResize=function(p){this.isUltraWide=!p.detail.value};
_.J.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.J.onUpdatePlaylistName=function(p){var y=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},p.detail.value));_.th(this,function(){var l;(l=y.editableTitle)==null||l.resize()})};
_.J.onUpdatePlaylistDescription=function(p){var y=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},p.detail.value));_.th(this,function(){var l;(l=y.editableDescriptionInlineExpander)==null||l.resize()})};
_.J.getCinematicData=function(p){return _.G(p==null?void 0:p.cinematicContainer,_.b$)};
_.Jh.Object.defineProperties(en.prototype,{maxDescriptionLines:{configurable:!0,enumerable:!0,get:function(){return this.isUltraWide?999:2}},
noCinematicData:{configurable:!0,enumerable:!0,get:function(){return!this.getCinematicData(this.data)}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var p,y=(p=this.getCinematicData(this.data))==null?void 0:p.config;return(p=this.isDarkTheme?y==null?void 0:y.darkThemeBackgroundColor:y==null?void 0:y.lightThemeBackgroundColor)?"background-color:"+_.z5(p)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var p;return _.G((p=this.data)==null?void 0:p.descriptionForm,Y7L)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var p=this,y,l,q;return"background:linear-gradient(to bottom, "+(((q=(y=this.getCinematicData(this.data))==null?void 0:(l=y.gradientColorConfig)==null?void 0:l.map(function(t){return p.gradientColorToLinearGradientStop(t)}))==null?void 0:q.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var p;return _.JB((p=this.data)==null?void 0:p.descriptionTapText)}}});
en.prototype.onUpdateHeader=en.prototype.onUpdateHeader;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],en.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],en.prototype,"actionHandlerBehavior",void 0);_.H([_.rd("#description-inline-expander"),_.x("design:type",Object)],en.prototype,"descriptionInlineExpander",void 0);
_.H([_.rd("#editable-description-inline-expander"),_.x("design:type",Object)],en.prototype,"editableDescriptionInlineExpander",void 0);_.H([_.Q(),_.x("design:type",Object)],en.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],en.prototype,"isUltraWide",void 0);_.H([_.rd("#editable-title-display"),_.x("design:type",Object)],en.prototype,"editableTitle",void 0);_.H([_.g("isUltraWide"),_.x("design:type",Object),_.x("design:paramtypes",[])],en.prototype,"maxDescriptionLines",null);
_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],en.prototype,"noCinematicData",null);_.H([_.VU("yt-new-playlist-header"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],en.prototype,"onUpdateHeader",null);_.H([_.g("data","isDarkTheme"),_.x("design:type",Object),_.x("design:paramtypes",[])],en.prototype,"backgroundStyle",null);
_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],en.prototype,"descriptionFormData",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],en.prototype,"getDropdownTheme",null);_.H([_.g("data","isDarkTheme"),_.x("design:type",String),_.x("design:paramtypes",[])],en.prototype,"gradientStyle",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],en.prototype,"descriptionTapText",null);
_.H([_.k({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],en);
_.D(en,"ytd-playlist-header-renderer",function(){if(HLu!==void 0)return HLu;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query id="resize-query" query="(max-width: 1080px)" on-query-matches-changed="onIronResize" class="style-scope ytd-playlist-header-renderer"></iron-media-query>\n\n<div class="immersive-header-container style-scope ytd-playlist-header-renderer" style="">\n  <div class="immersive-header-background-wrapper style-scope ytd-playlist-header-renderer" style$="[[backgroundStyle]]">\n    <yt-img-shadow class="blurred-image style-scope ytd-playlist-header-renderer" alt="hidden" aria-hidden="true" fit-width="" hidden="[[!data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]" thumbnail="[[data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]">\n    </yt-img-shadow>\n    <div class="immersive-header-gradient style-scope ytd-playlist-header-renderer" style$="[[gradientStyle]]"></div>\n  </div>\n  <div class="immersive-header-content style-scope ytd-playlist-header-renderer">\n    <div class="thumbnail-and-metadata-wrapper style-scope ytd-playlist-header-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-playlist-header-renderer" href$="[[computeHref_(data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap)]]" data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap]]">\n        <div class="thumbnail-wrapper style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.thumbnail]]">\n          <ytd-hero-playlist-thumbnail-renderer data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer]]" class="style-scope ytd-playlist-header-renderer"></ytd-hero-playlist-thumbnail-renderer>\n        </div>\n      </a>\n\n      <div class="metadata-wrapper style-scope ytd-playlist-header-renderer">\n        <yt-dynamic-sizing-formatted-string hidden="[[data.titleForm]]" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.title]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n\n        <ytd-inline-form-renderer data="[[data.titleForm.inlineFormRenderer]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.titleForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistName" class="style-scope ytd-playlist-header-renderer">\n          <yt-dynamic-sizing-formatted-string id="editable-title-display" slot="text-display" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.titleForm.inlineFormRenderer.textDisplayed]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n        </ytd-inline-form-renderer>\n\n        <div class="metadata-action-bar style-scope ytd-playlist-header-renderer">\n          <div class="metadata-text-wrapper style-scope ytd-playlist-header-renderer">\n            <div class="metadata-owner style-scope ytd-playlist-header-renderer">\n              <yt-formatted-string id="owner-text" hidden="[[!data.ownerText]]" link-inherit-color="" text="[[data.ownerText]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n              <yt-formatted-string hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n\n              <div class="badges style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistBadges]]">\n                <span class="middot style-scope ytd-playlist-header-renderer">\u00b7</span>\n                <ytd-badge-supported-renderer badges="[[data.playlistBadges]]" class="style-scope ytd-playlist-header-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n            </div>\n\n            <ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" hidden="[[!data.privacyForm]]" theme="[[getDropdownTheme]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-dropdown-form-field-renderer>\n            <ytd-playlist-byline-renderer data="[[data.byline]]" class="style-scope ytd-playlist-header-renderer"></ytd-playlist-byline-renderer>\n          </div>\n          <div class="metadata-buttons-wrapper style-scope ytd-playlist-header-renderer">\n            <ytd-toggle-button-renderer data="[[data.saveButton.toggleButtonRenderer]]" force-modern-icon-button="" hidden="[[!data.saveButton.toggleButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-toggle-button-renderer>\n            <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.shareButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-button-renderer data="[[data.addVideosButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.addVideosButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-download-playlist-button-renderer data="[[data.offlineability.downloadButtonRenderer]]" force-icon-button="" force-modern-icon-button="" hidden="[[!data.offlineability.downloadButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-download-playlist-button-renderer>\n            <ytd-menu-renderer data="[[data.moreActionsMenu.menuRenderer]]" force-icon-button="" hidden="[[!data.moreActionsMenu.menuRenderer]]" is-overlay="[[!noCinematicData]]" tonal-override="" class="style-scope ytd-playlist-header-renderer"></ytd-menu-renderer>\n          </div>\n        </div>\n\n        <div class="play-menu spaced-row wide-screen-form style-scope ytd-playlist-header-renderer">\n          <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n          </ytd-button-renderer>\n          <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n\n        <div class="description style-scope ytd-playlist-header-renderer">\n          <ytd-text-inline-expander id="description-inline-expander" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" hidden="[[data.descriptionForm]]" max-lines="[[maxDescriptionLines]]" text="[[data.descriptionText]]" class="style-scope ytd-playlist-header-renderer">\n          </ytd-text-inline-expander>\n          <ytd-inline-form-renderer data="[[descriptionFormData]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.descriptionForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistDescription" class="style-scope ytd-playlist-header-renderer">\n            <ytd-text-inline-expander id="editable-description-inline-expander" slot="text-display" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" max-lines="[[maxDescriptionLines]]" text="[[computeTextDisplayed(data.descriptionForm.inlineFormRenderer)]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-text-inline-expander>\n          </ytd-inline-form-renderer>\n        </div>\n      </div>\n    </div>\n    <div class="play-menu spaced-row small-screen-form style-scope ytd-playlist-header-renderer">\n      <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n      </ytd-button-renderer>\n      <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n\n  <tp-yt-paper-tooltip for="owner-text" offset="5" position="top" class="style-scope ytd-playlist-header-renderer">\n    [[getSimpleString(data.ownerText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return HLu=p},{mode:_.ZS("kevlar_poly_si_batch_j078")?1:2});var I0d;var plL;var hY=function(){return _.w.apply(this,arguments)||this};
_.A(hY,_.w);hY.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],hY.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],hY.prototype,"data",void 0);_.H([_.k({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],hY);
_.D(hY,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(plL!==void 0)return plL;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-tertiary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer">\n</yt-formatted-string>\n<div id="items" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return plL=p},{mode:1});var CB=function(){return _.w.apply(this,arguments)||this};
_.A(CB,_.w);
CB.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}}}}};
CB.prototype.computeUsePremiumShowStyle=function(p){if(!p||!p.items)return!1;for(var y=0;y<p.items.length;y++)if(_.G(p.items[y],Mh)){var l=void 0;return((l=_.G(p.items[y],Mh))==null?void 0:l.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],CB.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],CB.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.x("design:type",Boolean)],CB.prototype,"usePremiumShowStyle",void 0);
_.H([_.k({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],CB);
_.D(CB,"ytd-playlist-sidebar-renderer",function(){if(I0d!==void 0)return I0d;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-playlist-sidebar-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return I0d=p},{mode:1});var yYA;var lEd;var qk6=function(p,y,l,q,t,E,e,C){this.minWidth=p;this.minHeight=y;this.recommendedWidth=l;this.recommendedHeight=q;this.JSC$21841_maxFileSize=t;this.title=E;this.bannerGalleryTitle=e;this.channelId=C;this.picker_=null;p=_.hcl("yt-banner");y=p.addView;l=(new HDw("youtubebanner")).addUploadMetadata("silo_id","19");l.opts.ytMaxFileSize=this.JSC$21841_maxFileSize;q=this.recommendedHeight;l.opts.ytRecWidth=this.recommendedWidth;l.opts.ytRecHeight=q;y.call(p,l);p.addView(new _.Dv);y=p.addView;l=new _.Dv;
l.opts.type="ytbanner";y.call(p,l.JSC$10010_setLabel(this.bannerGalleryTitle));y=p.setTitle(this.title).setSize(1E3);y.urlParamMap_.set("thumbs","orig");l=this.minWidth;q=this.minHeight;if(isNaN(l)||isNaN(q))throw Error("gb`"+l+"`"+q);y.urlParamMap_.set("minSize",l+"x"+q);y.urlParamMap_.set("cropMode","ytcb");this.builder_=p};
qk6.prototype.open=function(){var p=this;return new _.Ps(function(y,l){_.bhV(p.builder_,function(q){q.action=="picked"?y(q):q.action=="cancel"&&l(Error("ko"))});
p.picker_&&p.picker_.dispose();p.picker_=p.builder_.build();p.picker_.setVisible(!0)})};
qk6.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var ssT=function(p){this.channelId=p};
ssT.prototype.upload=function(p){var y="";p.viewToken&&(y=p.viewToken[2].type);var l=p.docs[0];p=l.crop;y={channel_id:this.channelId,fife_url:l.thumbnails[0].url,photo_id:l.id,is_gallery_image:y=="ytbanner"};p&&(y.crop_top=p.top,y.crop_right=p.right,y.crop_bottom=p.bottom,y.crop_left=p.left);return _.VfR("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:y})};var uw=function(){var p=_.w.apply(this,arguments)||this;p.ariaLabel=null;return p};
_.A(uw,_.w);_.J=uw.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.detached=function(){this.picker&&this.picker.dispose()};
_.J.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.J.computeAriaLabel=function(p){return p};
_.J.onTap=function(){var p=this,y;if((y=this.data)==null||!y.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new qk6(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 l;(l=this.picker)==null||l.open().then(function(q){p.handleBannerPicked(q)},function(){})}};
_.J.handleBannerPicked=function(p){var y=this;this.uploader||(this.uploader=new ssT(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(p).then(function(l){y.handleBannerUploadSucceeded(l)},function(l){y.handleBannerUploadFailed(l)})};
_.J.handleBannerUploadSucceeded=function(p){p&&p.errors?this.handleBannerUploadFailed(p):(_.Ub(this.hostElement,"yt-banner-updated",p),this.message=null)};
_.J.handleBannerUploadFailed=function(p){this.message=p&&p.errors&&p.errors.length?p.errors[0]:null};
uw.prototype.dataChanged=uw.prototype.dataChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],uw.prototype,"componentBehavior",void 0);_.H([_.V(_.dn),_.x("design:type",Object)],uw.prototype,"ironButtonState",void 0);_.H([_.Q(),_.x("design:type",Object)],uw.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.x("design:type",Object)],uw.prototype,"ariaLabel",void 0);
_.H([_.Q(),_.x("design:type",Object)],uw.prototype,"message",void 0);_.H([_.Q(),_.x("design:type",Object)],uw.prototype,"picker",void 0);_.H([_.Q(),_.x("design:type",Object)],uw.prototype,"uploader",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uw.prototype,"dataChanged",null);_.H([_.k({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],uw);
_.D(uw,"ytd-channel-banner-editor-renderer",function(){if(lEd!==void 0)return lEd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-banner-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="edit-banner-link" class="yt-simple-endpoint style-scope ytd-channel-banner-editor-renderer" data="[[data.editBannerCommand]]" href$="[[computeHref_(data.editBannerCommand)]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-banner-editor-renderer"></yt-icon>\n  <tp-yt-paper-tooltip position="top" class="style-scope ytd-channel-banner-editor-renderer">[[ariaLabel]]</tp-yt-paper-tooltip>\n  <div id="message" hidden$="[[!message]]" class="style-scope ytd-channel-banner-editor-renderer">[[message]]</div>\n</a>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return lEd=p},{mode:1});var tn6;var EER=_.c0(["#"]),Rs=function(){return _.w.apply(this,arguments)||this};
_.A(Rs,_.w);Rs.prototype.computeHrefWithDefault=function(p){return this.ytComponentBehavior.computeHref_(p,!0)||_.Tut(EER)};
Rs.prototype.dataChanged=function(){var p=this.data;p&&p.targetId&&_.n2$(_.T7(),p.targetId,this.moreIcon)};
Rs.prototype.dataChanged=Rs.prototype.dataChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Rs.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Rs.prototype,"data",void 0);_.H([_.rd("#more-icon"),_.x("design:type",Object)],Rs.prototype,"moreIcon",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Rs.prototype,"dataChanged",null);
_.H([_.k({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],Rs);
_.D(Rs,"ytd-channel-tagline-renderer",function(){if(tn6!==void 0)return tn6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-tagline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-channel-tagline-renderer" href$="[[computeHrefWithDefault(data.moreEndpoint)]]" data="[[data.moreEndpoint]]">\n  <div id="wrapper" class="style-scope ytd-channel-tagline-renderer">\n    <div id="content" dir="auto" class="style-scope ytd-channel-tagline-renderer">\n      [[data.content]]\n    </div>\n    <yt-icon id="more-icon" hidden="[[!data.moreIcon]]" icon="[[data.moreIcon.iconType]]" class="style-scope ytd-channel-tagline-renderer">\n    </yt-icon>\n  </div>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return tn6=p},{mode:1});var JYd;var Wl=function(){return _.w.apply(this,arguments)||this};
_.A(Wl,_.w);_.J=Wl.prototype;_.J.ready=function(){var p=this;_.jR(this.hostElement).querySelector("#form").addEventListener("submit",function(y){p.onSubmit(y)})};
_.J.onDataChanged=function(){var p;((p=this.data)==null?0:p.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.J.onIconButtonKeydown=function(p){p.keyCode===13&&this.iconButton.click()};
_.J.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.J.openOnClickHandler=function(){this.input.focus()};
_.J.onSubmit=function(p){p.preventDefault();return!1};
_.J.submitOnEnterKeyUp=function(p){var y;if(p.keyCode===13&&((y=this.data)==null?0:y.expandedText)){p=this.data.endpoint;y=_.Ts.unsafeClone(p);var l;((l=_.G(y==null?void 0:y.commandMetadata,_.ul))==null?0:l.url)?(_.G(y.commandMetadata,_.ul).url=_.OL(_.G(y.commandMetadata,_.ul).url,"query",this.data.expandedText),_.G(y,_.wC)&&(_.G(y,_.wC).query=this.data.expandedText),_.Ub(this.hostElement,"yt-navigate",{endpoint:y,tempData:{disableCache:!0}})):(l=new _.SM("Error: Trying to navigate to an endpoint without url",
p),_.Bs(l))}};
_.J.updateDataExpandedTextFromBinding=function(p){this.set("data.expandedText",p.detail.value)};
_.Jh.Object.defineProperties(Wl.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.n("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
Wl.prototype.onDataChanged=Wl.prototype.onDataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Wl.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.RmO),_.x("design:type",Object)],Wl.prototype,"ytdExpandableInputBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Wl.prototype,"data",void 0);_.H([_.rd("#input"),_.x("design:type",Object)],Wl.prototype,"input",void 0);_.H([_.rd("#icon-button"),_.x("design:type",HTMLElement)],Wl.prototype,"iconButton",void 0);
_.H([_.Q(),_.x("design:type",String),_.x("design:paramtypes",[])],Wl.prototype,"searchIcon",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wl.prototype,"onDataChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],Wl);
var r16=_.Al()(Wl,"ytd-expandable-tab-renderer",function(){if(JYd===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);JYd=p}p=JYd;return p},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var cYL;var as=function(){var p=_.w.apply(this,arguments)||this;p.avatarSize=80;p.ariaLabel=_.g$("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return p};
_.A(as,_.w);as.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
as.prototype.computeHref=function(p){var y;return((y=_.G(p,_.Id))==null?0:y.url)?this.componentBehavior.computeHref_(p):null};
as.prototype.onTap=function(){var p,y;(p=this.data)==null||!p.editAvatarServiceEndpoint||((y=_.G(this.data.editAvatarServiceEndpoint,_.Id))==null?0:y.url)||_.WC().resolve(_.aK).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.H([_.V(_.dn),_.x("design:type",Object)],as.prototype,"ironButtonState",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],as.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],as.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],as.prototype,"avatarSize",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],as.prototype,"ariaLabel",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],as);
_.D(as,"ytd-channel-avatar-editor",function(){if(cYL!==void 0)return cYL;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-avatar-editor--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-avatar-editor" href$="[[computeHref(data.editAvatarServiceEndpoint)]]" data="[[data.editAvatarServiceEndpoint]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-avatar-editor"></yt-icon>\n  <yt-img-shadow thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-channel-avatar-editor"></yt-img-shadow>\n  <tp-yt-paper-tooltip position="bottom" class="style-scope ytd-channel-avatar-editor">[[ariaLabel]]</tp-yt-paper-tooltip>\n</a>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return cYL=p},{mode:1});var eTw=_.aF(function(p){var y=p.data;var l=p.noPadding;var q=p.enableBanner;var t=p.cinematicContainerTopbarOffset;var E=p.allowCinematicContainerOverflow;var e=p.displayAsSidebar;p=p.className;_.NA(function(){y().tagManagerId&&(_.vF(y().tagManagerId,_.OY("GL")),DSL(y().tagManagerId))},"xVTVTe");
var C=_.So(F0V,function(){return y().pageHeaderEntityKey});
return _.R("yt-page-header-renderer",{class:_.ip("page-header-renderer-wiz",p)},_.R(_.di,{data:function(){var u;return((u=C())==null?0:u.header)?C().header:(e==null?0:e())&&y().sidebarContent?y().sidebarContent:y().content}},{pageHeaderViewModel:function(u){return _.R(_.nOr,{data:u.data,
noPadding:l,enableBanner:q,cinematicContainerTopbarOffset:t,allowCinematicContainerOverflow:E,displayAsSidebar:function(){return(e==null?void 0:e())&&y().enableSidebarView}})}}))},"gj");
eTw.idomCompat=!0;_.bp(eTw,"yt-page-header-renderer",{props:{data:_.Co,noPadding:_.Co,enableBanner:_.Co,cinematicContainerTopbarOffset:_.Co,allowCinematicContainerOverflow:_.Co,displayAsSidebar:_.Co,className:_.Co}});_.bp(_.jnr,"yt-image-banner-view-model",{props:{data:_.Co,isPositionRelative:_.Co}});_.bp(_.NxN,"yt-tab-group-shape",{props:{shape:_.Co}});var m5=function(){var p=_.w.apply(this,arguments)||this;p.expandableCustomTabRenderable=function(y){return S7O(y,function(){return void p.onSearchNavigate()})};
p.isRichGrid=!1;p.isConstrainedList=!1;p.richGridMiniMode=!1;p.richGridStyle="RICH_GRID_STYLE_UNKNOWN";p.isRichGridShorts=!1;p.responsiveSizing="COMPACT";p.disableGridStateAware=!1;p.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return p};
_.A(m5,_.w);_.J=m5.prototype;_.J.computeHeaderDisabled=function(p,y){return y||!p||this.tabsHidden};
_.J.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.J.computeIsRichGridShorts=function(p){return p==="RICH_GRID_STYLE_SHORTS_GRID"||p==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.J.computeImageBannerViewModel=function(){var p,y;return _.G((y=_.G((p=this.data)==null?void 0:p.content,_.vax))==null?void 0:y.banner,_.NBi)};
_.J.computeHasCinematicContainer=function(){var p,y;return!((y=_.G((p=this.data)==null?void 0:p.content,_.vax))==null||!y.background)};
_.J.handleHeaderResize=function(){var p=_.jR(this.hostElement).querySelector("#header");p&&_.Ub(p,"iron-resize")};
_.J.handleInsertTabCommand=function(p){var y=_.G(p,EOw);y&&(y.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(l){return l.tabRenderer&&l.tabRenderer.tabIdentifier===y.tabIdentifier})||this.splice("tabs",y.tabIndex||-1,0,y.tab))};
_.J.handleRefreshChannelTabAction=function(p){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===p&&_.Ub(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.J.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Ax(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.J.observerRichGridSlimItemsPerRow=function(){_.Ax(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.J.updateCssVars=function(){this.richGridItemsPerRow&&_.Ax(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.UC("rich_grid_max_item_width",500))+16)-16+"px"})};
_.J.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Ax(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.J.onDataChanged=function(){this.handleHeaderResize()};
_.J.onWindowResize=function(){this.handleHeaderResize()};
_.J.onFocusedChanged=function(p){(p=_.cm(p))&&p.is==="tp-yt-paper-tab"&&p.hasRipple()&&(p.getRipple().holdDown=!p.pointerDown&&p.focused)};
_.J.updateSelectedFromBinding=function(p){this.ytdTabbedHeaderBehavior.selected=p.detail.value};
_.J.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Jh.Object.defineProperties(m5.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:k$d(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.imageBannerViewModel)==null?void 0:p.style)==="IMAGE_BANNER_STYLE_INSET"}}});
m5.prototype.onDataChanged=m5.prototype.onDataChanged;m5.prototype.updateCssVarsForResponsiveGrid=m5.prototype.updateCssVarsForResponsiveGrid;m5.prototype.updateCssVars=m5.prototype.updateCssVars;m5.prototype.observerRichGridSlimItemsPerRow=m5.prototype.observerRichGridSlimItemsPerRow;m5.prototype.observerRichGridItemsPerRow=m5.prototype.observerRichGridItemsPerRow;_.H([_.V(_.yd),_.x("design:type",Object)],m5.prototype,"ytdGridStateAwareBehavior",void 0);
_.H([_.V(J8O),_.x("design:type",Object)],m5.prototype,"ytdTabbedHeaderBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],m5.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],m5.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.qI.YtdGuideStateAwareBehavior),_.x("design:type",Object)],m5.prototype,"ytdGuideStateAwareBehavior",void 0);
_.H([_.V(_.zL),_.x("design:type",Object)],m5.prototype,"ytdReduxBehavior",void 0);_.H([_.rd("#tabs"),_.x("design:type",Object)],m5.prototype,"tabsElement",void 0);_.H([_.Q(),_.x("design:type",Array)],m5.prototype,"tabs",void 0);_.H([_.Q(),_.x("design:type",Object)],m5.prototype,"expandableCustomTabRenderable",void 0);_.H([_.g("tabs.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],m5.prototype,"tabGroupShape",null);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],m5.prototype,"isRichGrid",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],m5.prototype,"isConstrainedList",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.BV}),_.x("design:type",Object)],m5.prototype,"richGridMiniMode",void 0);_.H([_.Q({selector:function(p){return p.ui.richGridStyle}}),
_.x("design:type",Object)],m5.prototype,"richGridStyle",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.x("design:type",Object)],m5.prototype,"isRichGridShorts",void 0);_.H([_.Q({selector:_.fW}),_.x("design:type",Number)],m5.prototype,"richGridItemsPerRow",void 0);_.H([_.Q({selector:function(p){return p.ui.richGridContainerWidth}}),
_.x("design:type",Number)],m5.prototype,"richGridContainerWidth",void 0);_.H([_.Q({selector:_.G_m}),_.x("design:type",Number)],m5.prototype,"richGridSlimItemsPerRow",void 0);_.H([_.Q(),_.x("design:type",Object)],m5.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],m5.prototype,"responsiveSizing",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],m5.prototype,"disableGridStateAware",void 0);
_.H([_.Q({computed:"computeImageBannerViewModel(data)"}),_.x("design:type",Object)],m5.prototype,"imageBannerViewModel",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.x("design:type",Boolean)],m5.prototype,"hasCinematicContainer",void 0);_.H([_.Q({selector:_.Izd,reflectToAttribute:!0}),_.x("design:type",Boolean)],m5.prototype,"guideIsVisibleButNotPersistent",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("imageBannerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],m5.prototype,"hasBanner",null);_.H([_.Q({reflectToAttribute:!0}),_.g("imageBannerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],m5.prototype,"hasInsetBanner",null);_.H([_.Q({computed:"computeTabsHidden(tabs)",value:!0}),_.x("design:type",Boolean)],m5.prototype,"tabsHidden",void 0);
_.H([_.gd("richGridItemsPerRow","isRichGrid"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m5.prototype,"observerRichGridItemsPerRow",null);_.H([_.gd("richGridSlimItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m5.prototype,"observerRichGridSlimItemsPerRow",null);
_.H([_.gd("richGridItemsPerRow","richGridMiniMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m5.prototype,"updateCssVars",null);_.H([_.gd("richGridContainerWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m5.prototype,"updateCssVarsForResponsiveGrid",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m5.prototype,"onDataChanged",null);
_.H([_.k({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],m5);
_.D(m5,"ytd-tabbed-page-header",function(){if(yYA!==void 0)return yYA;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return yYA=p},{mode:1});var hTi;var Uk=function(){return _.w.apply(this,arguments)||this};
_.A(Uk,_.w);Uk.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Ax(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Jh.Object.defineProperties(Uk.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var p,y;return this.componentBehavior.computeIcon_(((y=_.G((p=this.data)==null?void 0:p.badge,_.Q2Z))==null?void 0:y.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var p,y;return(y=_.G((p=this.data)==null?void 0:p.badge,_.Q2Z))==null?void 0:y.label}}});
Uk.prototype.observerRichGridItemsPerRow=Uk.prototype.observerRichGridItemsPerRow;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Uk.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Uk.prototype,"componentBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Uk.prototype,"ytdReduxBehavior",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.BV}),_.x("design:type",Boolean)],Uk.prototype,"richGridMiniMode",void 0);
_.H([_.Q({selector:_.fW}),_.x("design:type",Number)],Uk.prototype,"richGridItemsPerRow",void 0);_.H([_.Q(),_.x("design:type",Object)],Uk.prototype,"data",void 0);_.H([_.gd("richGridItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Uk.prototype,"observerRichGridItemsPerRow",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Uk.prototype,"badgeIconName",null);
_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Uk.prototype,"badgeLabel",null);_.H([_.k({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],Uk);
_.D(Uk,"ytd-member-hub-profile-renderer",function(){if(hTi!==void 0)return hTi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-member-hub-profile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-member-hub-profile-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" class="style-scope ytd-member-hub-profile-renderer">\n  </yt-img-shadow>\n  <div id="details-container" class="style-scope ytd-member-hub-profile-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-member-hub-profile-renderer">\n    </ytd-badge-supported-renderer>\n    <h2 class="style-scope ytd-member-hub-profile-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-member-hub-profile-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-member-hub-profile-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return hTi=p},{mode:1});var Cwd;var $E=function(){return _.w.apply(this,arguments)||this};
_.A($E,_.w);$E.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],$E.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],$E.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],$E.prototype,"data",void 0);_.H([_.k({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],$E);
_.D($E,"ytd-settings-sidebar-renderer",function(){if(Cwd!==void 0)return Cwd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-settings-sidebar-renderer">[[getSimpleString(data.title)]]</div>\n<div id="items" class="style-scope ytd-settings-sidebar-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Cwd=p},{mode:1});var uEu;var jn=function(){var p=_.w.apply(this,arguments)||this;p.expandableCustomTabRenderable=function(y){return S7O(y,function(){return void p.onSearchNavigate()})};
return p};
_.A(jn,_.w);jn.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
jn.prototype.onSearchNavigate=function(){this.selected=void 0};
jn.prototype.onTabsChange=function(){var p,y=(p=this.tabs)==null?void 0:p.findIndex(function(l){var q;return l==null?void 0:(q=l.tabRenderer)==null?void 0:q.selected});
y!==void 0&&(this.selected=y)};
jn.prototype.onTabsActive=function(p){if(this.tabs!==void 0){var y,l;(p=(y=this.tabs[p.detail.selected])==null?void 0:(l=y.tabRenderer)==null?void 0:l.endpoint)&&_.Ub(this.hostElement,"yt-navigate",{endpoint:p})}};
_.Jh.Object.defineProperties(jn.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:k$d(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
jn.prototype.onTabsChange=jn.prototype.onTabsChange;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],jn.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.yd),_.x("design:type",Object)],jn.prototype,"ytdGridStateAwareBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.qI.YtdGuideStateAwareBehavior),_.x("design:type",Object)],jn.prototype,"ytdGuideStateAwareBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],jn.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Array)],jn.prototype,"tabs",void 0);_.H([_.Q(),_.x("design:type",Number)],jn.prototype,"selected",void 0);_.H([_.g("tabs.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],jn.prototype,"tabGroupShape",null);_.H([_.Q(),_.x("design:type",Object)],jn.prototype,"expandableCustomTabRenderable",void 0);
_.H([_.g("tabs"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jn.prototype,"tabsEnabled",null);_.H([_.k8("tabs"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jn.prototype,"onTabsChange",null);_.H([_.k({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],jn);
_.D(jn,"ytd-topic-channel-details-renderer",function(){if(uEu!==void 0)return uEu;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return uEu=p},{mode:1});var RTw;var bw=function(){var p=_.w.apply(this,arguments)||this;p.disableGridStateAware=!1;return p};
_.A(bw,_.w);bw.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]]"}}}}}};
bw.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
bw.prototype.updateCssVars=function(){_.Ax(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.UC("rich_grid_max_item_width",500))+16)-16+"px"})};
bw.prototype.updateCssVars=bw.prototype.updateCssVars;bw.prototype.activeChanged=bw.prototype.activeChanged;_.H([_.V(_.qI.YtdGuideStateAwareBehavior),_.x("design:type",Object)],bw.prototype,"ytdGuideStateAwareBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],bw.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],bw.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],bw.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],bw.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Array)],bw.prototype,"tabs",void 0);_.H([_.Q(),_.x("design:type",Boolean)],bw.prototype,"active",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],bw.prototype,"disableGridStateAware",void 0);
_.H([_.Q({selector:_.fW}),_.x("design:type",Number)],bw.prototype,"richGridItemsPerRow",void 0);_.H([_.Q({selector:_.BV}),_.x("design:type",Boolean)],bw.prototype,"richGridMiniMode",void 0);_.H([_.rd("ytd-carousel-item-renderer"),_.x("design:type",Object)],bw.prototype,"carousel",void 0);_.H([_.gd("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bw.prototype,"activeChanged",null);
_.H([_.gd("richGridItemsPerRow","richGridMiniMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bw.prototype,"updateCssVars",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],bw);
_.D(bw,"ytd-carousel-header-renderer",function(){if(RTw!==void 0)return RTw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-carousel-header-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return RTw=p},{mode:1});var W5A;var aEu=_.c0(["https://www.google-analytics.com/analytics.js"]),nB=function(){var p=_.w.apply(this,arguments)||this;p.scriptAnalyticsAdded=!1;return p};
_.A(nB,_.w);nB.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var p,y=(p=this.data)==null?void 0:p.tagManagerId;y&&(_.vF(y,_.OY("GL")),DSL(y))};
nB.prototype.sendGoogleAnalyticsPageview=function(p){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var l=_.oX.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(l)};
var y=window.ga;y("set","page",window.location.pathname);y.l=+new Date;y("set","forceSSL",!0);y("create",p,"'auto'");y("send","pageview")};
nB.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var p=_.gg("SCRIPT");p.name="ga-analytics";var y=_.bz(aEu);_.e_(p,y);p.async=!0;_.jR(this.hostElement).appendChild(p)};
nB.prototype.dataChanged=nB.prototype.dataChanged;_.H([_.Q(),_.x("design:type",Object)],nB.prototype,"data",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nB.prototype,"dataChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],nB);
_.D(nB,"ytd-channel-metadata-renderer",function(){if(W5A!==void 0)return W5A;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.trackingImageUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.trackingImageUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n<template is="dom-if" if="[[data.channelConversionUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.channelConversionUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return W5A=p},{mode:1});var mKV;var UK9;var GZ=function(){return _.w.apply(this,arguments)||this};
_.A(GZ,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],GZ.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],GZ.prototype,"data",void 0);_.H([_.k({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],GZ);
_.D(GZ,"ytd-sub-feed-option-renderer",function(){if(UK9!==void 0)return UK9;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-sub-feed-option-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1">\n  <tp-yt-paper-radio-button checked="[[data.isSelected]]" class="style-scope ytd-sub-feed-option-renderer">\n    <yt-formatted-string text="[[data.name]]" class="style-scope ytd-sub-feed-option-renderer"></yt-formatted-string>\n  </tp-yt-paper-radio-button>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return UK9=p},{mode:1});var $K1;var Pl=function(){return _.w.apply(this,arguments)||this};
_.A(Pl,_.w);Pl.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Pl.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Pl.prototype,"ytRendererStamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Pl.prototype,"data",void 0);_.H([_.k({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],Pl);
_.D(Pl,"ytd-sub-feed-selector-renderer",function(){if($K1!==void 0)return $K1;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-sub-feed-selector-renderer">\n   [[getSimpleString(data.title)]]\n</h2>\n<div id="options" class="style-scope ytd-sub-feed-selector-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return $K1=p},{mode:1});var AY=function(){return _.w.apply(this,arguments)||this};
_.A(AY,_.w);
AY.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}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],AY.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],AY.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],AY.prototype,"data",void 0);_.H([_.k({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],AY);
_.D(AY,"ytd-browse-feed-actions-renderer",function(){if(mKV!==void 0)return mKV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-feed-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-feed-actions-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return mKV=p},{mode:1});var jsR;var bB9;var ZE=function(){return _.w.apply(this,arguments)||this};
_.A(ZE,_.w);ZE.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ZE.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ZE.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ZE.prototype,"data",void 0);_.H([_.k({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],ZE);
_.D(ZE,"ytd-mini-channel-renderer",function(){if(bB9!==void 0)return bB9;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="channel-info" class="yt-simple-endpoint style-scope ytd-mini-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" rel$="[[computeNofollow_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-mini-channel-renderer">\n  </yt-img-shadow>\n  <span class="title style-scope ytd-mini-channel-renderer">[[getSimpleString(data.title)]]</span>\n</a>\n\n<div id="subscribe" class="style-scope ytd-mini-channel-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return bB9=p},{mode:1});var nEu;var MK=function(){return _.w.apply(this,arguments)||this};
_.A(MK,_.w);MK.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],MK.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],MK.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],MK);
_.D(MK,"ytd-vertical-channel-section-renderer",function(){if(nEu!==void 0)return nEu;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-channel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-vertical-channel-section-renderer">[[data.title]]</h2>\n<div id="items" class="style-scope ytd-vertical-channel-section-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return nEu=p},{mode:1});var V8=function(){return _.w.apply(this,arguments)||this};
_.A(V8,_.w);V8.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],V8.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],V8.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],V8.prototype,"data",void 0);_.H([_.k({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],V8);
_.D(V8,"ytd-browse-secondary-contents-renderer",function(){if(jsR!==void 0)return jsR;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-secondary-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-secondary-contents-renderer">\n</div>');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
return jsR=p},{mode:1});var GZ9;var gM=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};p.notActive=!1;p.isConstrainedList=!1;return p};
_.A(gM,_.w);_.J=gM.prototype;
_.J.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(p){var y;return(p==null?void 0:(y=p.webComponentHint)==null?void 0:y.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":
"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.J.getPath=function(p,y){var l="data.tabs.#"+y+".";p.tabs[y].tabRenderer?l+="tabRenderer.":p.tabs[y].expandableTabRenderer&&(l+="expandableTabRenderer.");return l+"content.sectionListRenderer"};
_.J.computeDisplayedContent=function(p){this.unlinkPaths("content");if(p&&p.tabs)for(var y=p.tabs.length,l=0;l<y;l++){var q=p.tabs[l].tabRenderer||p.tabs[l].expandableTabRenderer;if(q.selected&&q.content)return this.linkPaths("content",this.getPath(p,l)),q.content}return null};
_.J.computeHasSecondaryColumnData=function(p){return!!p&&!!p.secondaryContents};
_.J.onRetrieveLocation=function(p,y){y.locationRetrieved(y.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);p.stopPropagation()};
_.J.onYtServiceRequestSent=function(p,y){_.n("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(y)};
_.J.onYtServiceRequestCompleted=function(p,y){_.n("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(y)};
_.J.onReplaceFeedContentAction=function(p){if(!_.n("replace_feed_content_action_killswitch")&&!this.notActive){var y;(p=(y=_.G(p,OD9))==null?void 0:y.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(p)}};
_.J.handleServiceRequestActions=function(p){if(p=p.actions){p=_.c(p);for(var y=p.next();!y.done;y=p.next()){y=y.value;var l=void 0;((l=_.G(y,OD9))==null?0:l.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.G(y,OD9).items)}}};
gM.prototype.onYtServiceRequestCompleted=gM.prototype.onYtServiceRequestCompleted;gM.prototype.onYtServiceRequestSent=gM.prototype.onYtServiceRequestSent;gM.prototype.onRetrieveLocation=gM.prototype.onRetrieveLocation;_.H([_.V(_.yd),_.x("design:type",Object)],gM.prototype,"ytdGridStateAwareBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],gM.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],gM.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],gM.prototype,"data",void 0);_.H([_.Q({computed:"computeDisplayedContent(data)"}),_.x("design:type",Object)],gM.prototype,"content",void 0);
_.H([_.Q({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],gM.prototype,"hasSecondaryColumnData",void 0);_.H([_.Q({value:function(){return window.outerHeight>1024?3:2}}),
_.x("design:type",Number)],gM.prototype,"initialCount",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],gM.prototype,"pageSubtype",void 0);_.H([_.rd("ytd-section-list-renderer"),_.x("design:type",Object)],gM.prototype,"listRenderer",void 0);_.H([_.Q(),_.x("design:type",Object)],gM.prototype,"notActive",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],gM.prototype,"isConstrainedList",void 0);
_.H([_.Q(),_.x("design:type",String)],gM.prototype,"responsiveSizing",void 0);_.H([_.VU("yt-retrieve-location"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],gM.prototype,"onRetrieveLocation",null);_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],gM.prototype,"onYtServiceRequestSent",null);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],gM.prototype,"onYtServiceRequestCompleted",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],gM);
_.D(gM,"ytd-two-column-browse-results-renderer",function(){if(GZ9!==void 0)return GZ9;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-browse-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-browse-results-renderer"></div>\n<div id="secondary" class="style-scope ytd-two-column-browse-results-renderer">\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return GZ9=p},{mode:2});var Pw9;var AY9;var Q8=function(){var p=_.w.apply(this,arguments)||this;p.closeOnDismissButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);p.closeOnAcceptButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);p.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return p};
_.A(Q8,_.w);_.J=Q8.prototype;_.J.attached=function(){this.requestElementsPerRow()};
_.J.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[dismissBoundButtonTap_]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[acceptBoundButtonTap_]]"}}}}}};
_.J.onUpdateElementsPerRowAction=function(p){p&&this.elementsPerRow!==p&&(this.elementsPerRow=p)};
_.J.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.J.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.J.computeAlertStyle_=function(p){return p};
_.J.observerElementsPerRow=function(){this.elementsPerRow&&_.Ax(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.J.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.J.requestElementsPerRow=function(){_.Ub(this.hostElement,"yt-request-elements-per-row")};
Q8.prototype.onIsVisibleChanged_=Q8.prototype.onIsVisibleChanged_;Q8.prototype.observerElementsPerRow=Q8.prototype.observerElementsPerRow;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Q8.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Q8.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Q8.prototype,"actionHandlerBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],Q8.prototype,"data",void 0);_.H([_.Q({value:6,reflectToAttribute:!0}),_.x("design:type",Number)],Q8.prototype,"elementsPerRow",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Q8.prototype,"wrapButtons",void 0);_.H([_.Q({value:_.OY("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.x("design:type",Boolean)],Q8.prototype,"isMusic",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.x("design:type",String)],Q8.prototype,"alertStyle",void 0);_.H([_.Q({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.x("design:type",Function)],Q8.prototype,"dismissBoundButtonTap_",void 0);_.H([_.Q({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.x("design:type",Function)],Q8.prototype,"acceptBoundButtonTap_",void 0);_.H([_.gd("elementsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Q8.prototype,"observerElementsPerRow",null);_.H([_.gd("data.isVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Q8.prototype,"onIsVisibleChanged_",null);_.H([_.z9({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Q8);
_.D(Q8,"yt-alert-with-actions-renderer",function(){if(AY9===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-with-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_with_actions_renderer.yt.alert.with.actions.renderer.css.js--\x3e<div id="content-wrapper" hidden="[[!data.isVisible]]" class="style-scope yt-alert-with-actions-renderer">\n  <div id="content" class="style-scope yt-alert-with-actions-renderer">\n    <yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope yt-alert-with-actions-renderer"></yt-icon>\n    <div id="text-content" class="style-scope yt-alert-with-actions-renderer">\n      <yt-formatted-string id="title" hidden$="[[!!data.title]]" text="[[data.title]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="actions" class="style-scope yt-alert-with-actions-renderer">\n    <div id="dismiss-button" hidden$="[[!!data.dismissButton]]" class="style-scope yt-alert-with-actions-renderer"></div>\n    <div id="action-buttons" hidden$="[[!!data.actionButtons]]" class="style-scope yt-alert-with-actions-renderer"></div>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;Pw9===void 0&&(Pw9=document.createElement("template"));var q=Pw9;l.call(y,q.content.cloneNode(!0),p.content.firstChild);AY9=p}p=AY9;return p},{mode:2});_.bp(_.aF(function(p){function y(b){var P={};return _.R(_.CF,{text:b,className:_.ip("ytPersonalGreetingViewModelHeadline",(P.ytPersonalGreetingViewModelHeadlineSmall=function(){return C()===48},P))})}
function l(b,P){return _.R("span",{el:b,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},y(P))}
var q=_.mR(_.yn(function(){var b;return(b=p.data())==null?void 0:b.rendererContext},void 0,void 0,void 0,!0)),t=_.sM("span"),E=_.sM("span"),e=function(){return p.data().canvasPromoData},C=function(){var b;
return(b=p.data().bannerHeight)!=null?b:56},u=_.y3m(q,{throttleMs:100}),a=_.y3m(t,{throttleMs:100}),m=_.y3m(E,{throttleMs:100}),U=function(){return a.width()-u.width()>1};
return _.R("yt-personal-greeting-view-model",{el:q,"aria-hidden":U,class:_.ip(p.className,"ytPersonalGreetingViewModelHost"),style:_.NW({height:(0,_.OG)(function(){return U()?0:C()})})},_.R(_.W,{cond:function(){return p.data().avatar&&!(m.width()+(p.data().avatar?48:0)-u.width()>1)},
then:function(){return _.R(_.di,{data:function(){return p.data().avatar}},{decoratedAvatarViewModel:function(b){return _.R(_.X9,{data:b.data,
className:_.ip("ytPersonalGreetingViewModelAvatar")})}})}}),_.R("h1",null,y(function(){var b;
return(e==null?void 0:(b=e())==null?void 0:b.headline)||(m.width()+(p.data().avatar?48:0)-u.width()>1?p.data().shorterGreeting:p.data().greeting)})),l(E,function(){return p.data().greeting}),l(t,function(){return p.data().shorterGreeting}))},"hj"),"yt-personal-greeting-view-model",{props:{data:_.Co,
className:_.Co}});var KB=function(){var p=_.w.apply(this,arguments)||this;p.hidden=!1;p.isConstrainedList=!1;p.darkerDarkTheme=_.n("web_darker_dark_theme");p.responsiveSizing="COMPACT";p.attachedPlayers=_.n("kevlar_channel_trailer_multi_attach")?[]:void 0;p.player=null;p.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return p};
_.A(KB,_.w);_.J=KB.prototype;
_.J.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.J.created=function(){var p=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){p.disposeMastheadAd()}]};
_.J.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new hgi(this.refresh,this.contents))};
_.J.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.J.activeChanged=function(){var p=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=p)};
_.J.tabsChanged=function(){var p=this,y,l;if(this.pageSubtype==="channels"||_.n("kevlar_tab_gestures_for_tabbed_header_data")&&((y=this.data)==null?0:(l=y.header)==null?0:l.carouselHeaderRenderer))this.tabGestures=new gx(this.contents,this.contents,this.hostElement,this.header,function(e){p.ytdReduxBehavior.dispatch(e)});
var q,t,E;y=(q=this.data)==null?void 0:(t=q.contents)==null?void 0:(E=t.twoColumnBrowseResultsRenderer)==null?void 0:E.tabs;this.tabGestures&&this.tabGestures.tabsChanged(y)};
_.J.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.J.engagementPanelsChanged=function(){var p=_.WC().resolve(_.H8);if(p){if(this.engagementPanels)for(var y=_.c(this.engagementPanels),l=y.next();!l.done;l=y.next()){var q=void 0;(l=(q=l.value.identifier)==null?void 0:q.tag)&&p.panelMap.delete(l)}this.engagementPanels=[];var t;y=_.c(((t=this.data)==null?void 0:t.panels)||[]);for(t=y.next();!t.done;t=y.next()){t=_.G(t.value,_.TbL);var E=l=void 0,e=void 0,C=void 0;if(q=((l=t)==null?void 0:l.targetId)||((E=t)==null?void 0:E.panelIdentifier)||((e=t)==
null?void 0:(C=e.identifier)==null?void 0:C.tag))E=l=void 0,(E=(l=p).registerPanelContent)==null||E.call(l,q,{engagementPanelSectionListRenderer:t}),this.engagementPanels.push(t)}}};
_.J.onStampFinished=function(){var p=this;_.th(this,function(){if(p.tabGestures){var y=p.tabGestures;if(y.scrollPositionNeedsUpdate){var l=_.WC().resolve(_.RK(_.mm)),q;if((q=y.selectedTab)!=null&&q.title&&l&&(q=l.getCurrentPage())){if(y.scrollPositionForTabs.has(y.selectedTab.title)){var t,E;l=(E=(t=l.getCurrentPage())==null?void 0:t.clientHeight)!=null?E:0;t=y.scrollPositionForTabs.get(y.selectedTab.title);q.setScrollTop(t);l>t+100&&(y.scrollPositionNeedsUpdate=!1)}else q.setScrollTop(Math.min(y.lastVisitedTabScrollPosition!==
void 0?y.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,y.tabsStartAtInPx)),y.scrollPositionNeedsUpdate=!1;y.ytdReduxDispatch(N_w(!1))}}}})};
_.J.loadPage_=function(p){this.initCsi();p&&(this.data=p);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.J.getTitle=function(p){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",p))return this.get("microformat.microformatDataRenderer.title",p);if(this.get("header.feedTabbedHeaderRenderer.title",p))return _.JB(this.get("header.feedTabbedHeaderRenderer.title",p));if(this.get("header.interactiveTabbedHeaderRenderer.title",p))return this.get("header.interactiveTabbedHeaderRenderer.title",p);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
p))return _.JB(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",p));var y,l;return _.n("enable_page_header_page_title")&&(p==null?0:(y=p.header)==null?0:(l=y.pageHeaderRenderer)==null?0:l.pageTitle)?p.header.pageHeaderRenderer.pageTitle:""};
_.J.updateTitle=function(p){_.Ub(this.hostElement,"yt-update-title",this.getTitle(p))};
_.J.initCsi=function(){_.Ph(this.pageSubtype||"browse",["ol","cpt"])};
_.J.getPlayer=function(){if(_.n("kevlar_channel_trailer_multi_attach")){for(var p=_.c(this.attachedPlayers),y=p.next();!y.done;y=p.next())if(y=y.value,y.isConnected||_.OE(this.hostElement,y))return y;return null}return this.player};
_.J.getPlayerContainer=function(){return null};
_.J.onPlayerAttached=function(p,y){_.n("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(y):this.player=y};
_.J.onPlayerDetached=function(p,y){_.n("kevlar_channel_trailer_multi_attach")?(p=this.attachedPlayers.indexOf(y),p<0||this.attachedPlayers.splice(p,1)):this.player=null};
_.J.getServiceTrackingParams=function(){var p,y;return((p=this.data)==null?void 0:(y=p.responseContext)==null?void 0:y.serviceTrackingParams)||[]};
_.J.setMastheadAd=function(p){p&&p.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=p&&p.mastheadAd};
_.J.dataChanged=function(){var p=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.G$O();_.th(this,function(){_.jN(p.hostElement,"ytd-update-grid-state-action")})};
_.J.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.J.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var p=this.data.alerts;return p&&p.find(function(y){return!!y.alertWithActionsRenderer})}};
_.J.computeGreetingData=function(){if(this.data&&this.data.alerts){var p=this.data.alerts;return p&&p.find(function(y){return!!y.personalGreetingViewModel})}};
_.J.computeHasMemberHubProfileRenderer=function(p){var y;return!!(p==null?0:(y=p.header)==null?0:y.memberHubProfileRenderer)};
_.J.handleAlertCommand=function(p){this.get("alertCommand.alert.alertWithActionsRenderer",p)&&(p=_.G(p,osm),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",p.alert))};
_.J.handleYtPlaylistDeletionRedirect=function(p){p=this.get("playlistDeletionRedirectCommand.redirectEndpoint",p);_.Ub(this.hostElement,"yt-navigate",{endpoint:p})};
_.J.computeFluidWidth=function(p,y,l){if(y==="mini_app"||l)return!0;var q,t,E;p=p==null?void 0:(q=p.contents)==null?void 0:(t=q.twoColumnBrowseResultsRenderer)==null?void 0:(E=t.tabs)==null?void 0:E.find(function(u){var a;return u==null?void 0:(a=u.tabRenderer)==null?void 0:a.selected});
if(!p)return!1;var e,C;return!!((e=p.tabRenderer)==null?0:(C=e.content)==null?0:C.richGridRenderer)&&!["channel","channels","playables"].includes(y)};
_.J.computeHeaderFluidWidth=function(p){return p==="hashtag-landing-page"};
_.J.computeHasSidebar=function(p){var y;return!!(p.sidebar||((y=p.header)==null?0:y.playlistHeaderRenderer))};
_.J.computeHasPageHeaderSidebar=function(p){var y,l;return!!((y=p.header)==null?0:(l=y.pageHeaderRenderer)==null?0:l.enableSidebarView)};
_.J.computeUseUnifiedShowPageLayout=function(p){if(!p||this.pageSubtype!=="show"||!p.sidebar||!p.sidebar.playlistSidebarRenderer)return!1;p=p.sidebar.playlistSidebarRenderer;if(!p.items)return!1;for(var y=0;y<p.items.length;y++)if(_.G(p.items[y],Mh)){var l=void 0;return((l=_.G(p.items[y],Mh))==null?void 0:l.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.J.computeIsConstrainedList=function(p){return _.n("web_enable_constrained_list_subscriptions_channels")&&p==="subscriptions-channels"};
_.J.computeResponsiveSizing=function(p){return p==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Jh.Object.defineProperties(KB.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var p,y;return((p=this.data)==null?0:(y=p.header)==null?0:y.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var p,y;if(!((p=this.data)==null?0:(y=p.sidebar)==null?0:y.playlistSidebarRenderer))return!1;var l;return(l=this.data)!=null&&l.header?!1:!0}}});
_.Jh.Object.defineProperties(KB,{template:{configurable:!0,enumerable:!0,get:function(){if(Rgd===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" display-as-sidebar="">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);Rgd=p}p=Rgd;return p}}});
KB.prototype.dataChanged=KB.prototype.dataChanged;KB.prototype.onPlayerDetached=KB.prototype.onPlayerDetached;KB.prototype.onPlayerAttached=KB.prototype.onPlayerAttached;KB.prototype.onStampFinished=KB.prototype.onStampFinished;KB.prototype.engagementPanelsChanged=KB.prototype.engagementPanelsChanged;KB.prototype.scrollAtTopChanged=KB.prototype.scrollAtTopChanged;KB.prototype.tabsChanged=KB.prototype.tabsChanged;KB.prototype.activeChanged=KB.prototype.activeChanged;
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],KB.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.RP),_.x("design:type",Object)],KB.prototype,"ytdOpenPopupBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],KB.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.A8.YtPageBehavior),_.x("design:type",Object)],KB.prototype,"ytPageBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.qI.YtdGuideStateAwareBehavior),_.x("design:type",Object)],KB.prototype,"ytdGuideStateAwareBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],KB.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],KB.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],KB.prototype,"hidden",void 0);
_.H([_.Q(),_.x("design:type",Object)],KB.prototype,"mastheadAdData",void 0);_.H([_.Q({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.x("design:type",Object)],KB.prototype,"alertBannerData",void 0);_.H([_.Q({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.x("design:type",Object)],KB.prototype,"greetingData",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],KB.prototype,"pageSubtype",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.x("design:type",Boolean)],KB.prototype,"hasMemberHubProfileRenderer",void 0);_.H([_.Q({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],KB.prototype,"hasSidebar",void 0);_.H([_.Q({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],KB.prototype,"hasPageHeaderSidebar",void 0);
_.H([_.Q({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],KB.prototype,"roundedContainer",void 0);_.H([_.Q({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],KB.prototype,"useUnifiedShowPageLayout",void 0);_.H([_.Q({computed:"computeIsConstrainedList(pageSubtype)"}),_.x("design:type",Object)],KB.prototype,"isConstrainedList",void 0);
_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],KB.prototype,"usePlaylistHeaderRenderer",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],KB.prototype,"useOldPlaylistSidebarRenderer",null);_.H([_.Q({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.x("design:type",Boolean)],KB.prototype,"fluidWidth",void 0);_.H([_.Q({selector:function(p){return p.ui.scrollAtTop}}),
_.x("design:type",Boolean)],KB.prototype,"scrollAtTop",void 0);_.H([_.Q({selector:_.pQO}),_.x("design:type",Boolean)],KB.prototype,"tabGesturesIsActive",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],KB.prototype,"darkerDarkTheme",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.x("design:type",Boolean)],KB.prototype,"disableHeaderFluidWidth",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.x("design:type",String)],KB.prototype,"responsiveSizing",void 0);_.H([_.rd("ytd-two-column-browse-results-renderer"),_.x("design:type",HTMLElement)],KB.prototype,"contents",void 0);_.H([_.rd("#header"),_.x("design:type",HTMLElement)],KB.prototype,"header",void 0);_.H([_.rd("ytd-refresh"),_.x("design:type",Object)],KB.prototype,"refresh",void 0);
_.H([_.gd("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KB.prototype,"activeChanged",null);_.H([_.gd("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KB.prototype,"tabsChanged",null);_.H([_.gd("scrollAtTop"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KB.prototype,"scrollAtTopChanged",null);
_.H([_.Q(),_.x("design:type",Object)],KB.prototype,"engagementPanels",void 0);_.H([_.gd("data.panels"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KB.prototype,"engagementPanelsChanged",null);_.H([_.VU("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KB.prototype,"onStampFinished",null);
_.H([_.VU("yt-player-attached"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Element]),_.x("design:returntype")],KB.prototype,"onPlayerAttached",null);_.H([_.VU("yt-player-detached"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Element]),_.x("design:returntype")],KB.prototype,"onPlayerDetached",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KB.prototype,"dataChanged",null);
_.H([_.k({is:"ytd-browse"})],KB);_.AS.registerService(_.qkm,KB);
_.xP();
}catch(e){_._DumpException(e)}
try{
_.TH("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 Av=function(p){if(!p)return"browse";var y=p.page,l=p.url,q,t,E,e=(q=p.response)==null?void 0:(t=q.responseContext)==null?void 0:(E=t.webResponseContextExtensionData)==null?void 0:E.pageTheme;if(e)y=e.toLowerCase().replace(/_/g,"-");else if(y!=="watch"&&y!=="learning_journey_watch"){var C,u;if((y==="browse"||y==="settings")&&((C=p.response)==null?0:(u=C.sidebar)==null?0:u.settingsSidebarRenderer))y="WEB_PAGE_TYPE_SETTINGS";else{var a,m;y==="browse"&&((a=p.response)==null?0:(m=a.metadata)==null?
0:m.channelMetadataRenderer)?y="channel":l&&(y=_.Qq(l)||y)}}return y},CXw=function(){var p=_.I4("yt.aba.att");
return p?p:_.nk.instance!==void 0?_.nk.instance.fCk.bind(_.nk.instance):null},uz9=function(p,y){var l;
return _.h(function(q){return(l=CXw())?q.return(l(p,y,6E4)):q.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},RIV=function(p,y,l,q,t){y=y===void 0?[]:y;
t=t?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:t}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.ar(p),dialogMessages:y.map(function(E){return _.ar(E)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ar(l),serviceEndpoint:t}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ar(q)}}}}}},Wl7=function(p){var y=!!_.EX().queueProxy;
var l,q,t;p=p==null?void 0:(l=p.response)==null?void 0:(q=l.currentVideoEndpoint)==null?void 0:(t=q.watchEndpoint)==null?void 0:t.playlistId;return!(!y&&!p)},aew=function(p,y){var l=_.Sy();
if(Wl7(p))return l.playlistWatchPageActivation=!0;switch(Av(y)){case "yts-products":return l.productDetailsPageActivation=!0;case "mini_app":return l.miniAppPageActivation=!0;case "playables":return l.playablesDestPageActivation=!0;default:return!1}},mt9=function(p,y,l){for(var q=typeof p==="string"?p.split(""):p,t=p.length-1;t>=0;--t)t in q&&y.call(l,q[t],t,p)},UtV=function(p,y){y=_.Uao(p,y);
y>=0&&_.dm(p,y)},$tV=function(p){return Array.prototype.concat.apply([],arguments)},jpm=function(p){var y=0;
y=y===void 0?0:y;if(!_.Jm(p))throw _.Rv("uint64");var l=typeof p;switch(y){case 512:switch(l){case "string":return _.mO8(p);case "bigint":return String((0,_.QO)(64,p));default:return _.WPg(p)}case 1024:switch(l){case "string":return _.UOR(p);case "bigint":return _.Xi((0,_.QO)(64,p));default:return _.aV5(p)}case 0:switch(l){case "string":return _.mO8(p);case "bigint":return _.Xi((0,_.QO)(64,p));default:return _.RrR(p)}default:return _.qL(y,"Unknown format requested type for int64")}},bti=function(p){p!=
null&&(p=p.JSC$8753_value_||"",p=typeof p==="string"?p:new Uint8Array(p));
return p},nH9=function(p){for(var y=_.oX.apply(1,arguments),l=p[0],q=0;q<p.length-1;q++)l+=String(y[q]),l+=p[q+1];
y=document.implementation.createHTMLDocument("");q=y.createElement("style");y.head.appendChild(q);y=q.sheet;y.insertRule(l,0);if(y.cssRules.length===1&&(l=y.cssRules[0],l instanceof CSSStyleRule))return new _.WH(l.cssText.replace(/</g,"\\3C "))},Ge1=function(p,y){if(/-[a-z]/.test(y))return null;
if(_.o1Q&&p.dataset){if(_.cRl()&&!(y in p.dataset))return null;p=p.dataset[y];return p===void 0?null:p}return p.getAttribute("data-"+_.Mf(y))},AK6=function(){var p=PXu;
_.I4("yt.ads.biscotti.getId_")||_.e0("yt.ads.biscotti.getId_",p)},ZtR=function(p){_.e0("yt.ads.biscotti.lastId_",p)},VW9=function(){var p={};
for(_.D3=new MWu(p.handleError===void 0?_.fT:p.handleError,p.logEvent===void 0?_.TX:p.logEvent);_.HC.length>0;)switch(p=_.HC.shift(),p.type){case "ERROR":_.D3.logError(p.payload);break;case "EVENT":_.D3.logEvent(p.eventType,p.payload)}},gH7=function(p,y,l){return _.Ae8(function(q){return l?q.userIdentifier!==void 0&&!p.includes(q.userIdentifier)&&l.includes(q.publicName):q.userIdentifier!==void 0&&!p.includes(q.userIdentifier)},y)},Qpd=function(p){var y,l;
return _.h(function(q){if(q.nextAddress==1)return y=_.iv("YtIdbMeta hasAnyMeta other"),q.yield(_.Ae8(function(t){return t.userIdentifier!==void 0&&t.userIdentifier!==y},p),2);
l=q.yieldResult;return q.return(l.length>0)})},wKO=function(p,y){Klm||(Klm=_.TR.addLowPriorityJob(function(){var l,q,t,E,e;
return _.h(function(C){switch(C.nextAddress){case 1:return C.yield(_.hk(),2);case 2:l=C.yieldResult;if(!l)return C.return();q=!0;_.Ve(C,3);return C.yield(gH7(p,l,y),5);case 5:t=C.yieldResult;if(!t.length){q=!1;C.jumpTo(6);break}E=t[0];return C.yield(_.yx(E.actualName),7);case 7:return C.yield(_.tk(E.actualName,l),6);case 6:_.pK(C,4);break;case 3:e=_.i6(C),_.To(e),q=!1;case 4:_.TR.cancelJob(Klm),Klm=0,q&&wKO(p,y),_.rR(C)}})}))},it9=function(){var p;
return _.h(function(y){return y.nextAddress==1?y.yield(_.hk(),2):(p=y.yieldResult)?y.return(Qpd(p)):y.return(!1)})},rK6=function(p){var y=100;
y=y===void 0?500:y;var l,q,t,E,e,C;return _.h(function(u){return u.nextAddress==1?(l=_.OY("INNERTUBE_CONTEXT_CLIENT_NAME",0),q=[l,(0,_.uM)()-2592E6],t=[l,(0,_.uM)()],E=IDBKeyRange.bound(q,t),u.yield(_.zbm(p),2)):u.nextAddress!=3?(e=u.yieldResult,C=[],u.yield(_.s1(e,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(a){C.length=0;return _.R7(a.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:E,direction:"prev"},function(m){if(m.getValue()&&C.length<y)return C.push(m.getValue()),
m.delete().then(function(){return m.continue()})})}),3)):u.return(C)})},SMi=function(){var p;
return _.h(function(y){if(y.nextAddress==1)return y.yield(_.hk(),2);p=y.yieldResult;if(!p||!_.rs()&&!_.n("nwl_init_require_datasync_id_killswitch")||!_.mej())return y.jumpTo(0);_.$ej=!0;_.Ueu.isNwlInitialized=_.$ej;return y.yield(_.UfU().awaitInitialization(),0)})},ZB=function(p,y){_.SUg[p]=!0;
var l=_.Ws();l&&l.publish.apply(l,arguments);_.SUg[p]=!1},Ll1=function(){if(_.uA8()&&!Fl9){var p=function(l){l=l.data;
if(l.op==="serializedGelBatch"){var q=_.FRa.get(l.key);q&&(_.kTl(l.serializedBatch,q.client,q.resolve,q.networklessOptions,q.isIsolated,q.useVSSEndpoint,q.dangerousLogToVisitorSession,q.requestsOutstanding),_.FRa.delete(l.key))}},y=_.Ctu();
y&&(y.addEventListener("message",p),y.onerror=function(){_.FRa.clear()});
Fl9=!0}},M5=function(){this.relativeTimeStart_=_.$t()},ke9=function(p,y){p!=null&&this.append.apply(this,arguments)},NFd=function(){return _.On("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},DtT=function(p,y,l){l=l===void 0?!1:l;
var q,t,E,e,C;return _.h(function(u){switch(u.nextAddress){case 1:_.Kh("SOCS",p,34128E3,"youtube.com",!0);if(_.VR)return t=fetch(y,{method:"POST",mode:_.ll(y),credentials:_.py(y),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),E=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.ll("/upgrade_visitor_cookie?eom=1"),credentials:_.py("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),u.yield(Promise.all([t,E]).then(function(a){return a[1]}),5);
fetch(y,{method:"POST",mode:_.ll(y),credentials:_.py(y),cache:"no-store",headers:{"Content-Type":"text/plain"}});return u.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.ll("/upgrade_visitor_cookie?eom=1"),credentials:_.py("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:q=u.yieldResult;u.jumpTo(3);break;case 5:q=e=u.yieldResult;case 3:if(!q.ok)throw Error("nf");return u.yield(q.text(),7);case 7:C=u.yieldResult,
!C.includes('"state_switch":true')&&!l||C.includes("skip_reload_for_test")||window.location.reload(),_.rR(u)}})},Htd=function(p){return _.h(function(y){return y.nextAddress==1?y.yield(DtT(p.socsCookie,p.savePreferenceUrl,!0),2):y.return()})},TF6=function(p){return _.h(function(y){return y.nextAddress==1?y.yield(DtT(p.socsCookie,p.savePreferenceUrl),2):y.return()})},BF7=function(p){p=p.xhr.responseText;
if(!_.tR(p,")]}'"))throw new VY;p=JSON.parse(p.substr(4));if((p.type||1)>1)throw new VY;p=p.id;ZtR(p);gk=_.hi(p);xtV(18E5,2);return p},vHd=function(p,y){y=new fed(y);
ZtR("");gk=_.lJx(y);p>0&&xtV(12E4,p-1);throw y;},xtV=function(p,y){_.nh(function(){_.zKd().then(BF7,function(l){return vHd(y,l)}).thenCatch(_.rH)},p)},PXu=function(){var p=_.pK6();
if(p!==void 0)return _.vL(p);gk||(gk=_.zKd().then(BF7).thenCatch(function(y){return vHd(2,y)}));
return gk},XK1=function(){var p=document;
return _.Na(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(y){return"on"+y.toLowerCase()in p})},dtA=function(p){p.addEventListener("click",function(y){var l=y.target;
l&&l.getAttribute("href")&&(l=l.getAttribute("href"),_.s8(window,l,"_blank"),y.preventDefault(),y.stopImmediatePropagation())})},OtL=function(p){var y,l,q,t=(q=(l=((y=p.mainDownloadsListEntity)!=null?y:{})[_.WdR])==null?void 0:l.refresh)!=null?q:"",E;
p=(E=p.refresh)==null?void 0:E[t];t=p!=null?p:{};return(t==null?0:t.refreshTime)?Number(t==null?void 0:t.refreshTime):0},oHR=function(p,y){var l=_.Ns(p);
return y.every(function(q){var t;q=q==null?void 0:(t=q.playbackDataEntity)==null?void 0:t.key;if(!q)return!1;t=_.PV(_.ba(q).entityId,"mainVideoEntity");return!!l[t]})},zIL=function(p){p=_.FT(p.entities);
return _.gBm(p).length},YM9=function(p,y){if(y){var l;
p=(l=_.Ae(p.entities,"downloadQualityPickerEntity",y))!=null?l:void 0}else p=void 0;return p},yhm=function(){Ieu||(_.tB=_.ROt,Ieu=new p2O);
return Ieu},l_R=function(p){var y=document.getElementsByTagName("ytd-enforcement-message-view-model");
y.length===0||getComputedStyle(y[0]).display==="none"?p(0,"p.h_"):p(1,"p.h_")},qnm=function(){QY=0;
var p=[_.Si(!0)];KA&&_.jN(KA,"yt-window-resized",p)},sGm=function(){QY||(QY=_.TR.addLowPriorityJob(qnm,200))},EcV=function(){wk=0;
tYm=_.zri(document);var p=[tYm];KA&&_.jN(KA,"yt-window-scrolled",p)},Jh6=function(){wk||(wk=_.TR.addLowPriorityJob(EcV,200))},eoA=function(p){p=p===void 0?null:p;
chm.push(_.hp(window,"resize",sGm));chm.push(_.hp(window,"scroll",Jh6));p&&(KA=p)},CLL=function(){var p={isWide:_.Q$.get("wide","0")==="1"},y=_.w$();
if(y=y.getFlag(165)||y.getFlag(174))p.theme=_.HI(!0);if(_.swa()){var l=_.Da()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";p.systemTheme=l}!y&&_.n("parent_tools_enable_app_settings")&&_.tJ(window.location.href).theme!==void 0&&(p.theme=_.HI());if((y=iO)?!_.Ts.equals(y,p):p)y={currentValue:p},hod&&(y.timeSinceLastSnapshotSecs=Math.round(((0,_.uM)()-hod)/1E3)),iO&&(y.previousValue=iO),_.TX("appSettingsCaptured",y),iO=p,hod=(0,_.uM)()},uKm=function(p){_.h(function(y){if(y.nextAddress==1)return y.yield(p.delete("yt-appshell-assets"),
2);
_.rR(y)})},Roi=function(p){return _.lM((0,_.KxB)(),p)},a_O=function(){var p;
_.h(function(y){return y.nextAddress==1?y.yield(rk.getInstance(),2):(p=y.yieldResult)?y.yield(WXw(p),0):y.jumpTo(0)})},UfR=function(){var p;
_.h(function(y){return y.nextAddress==1?y.yield(SS.getInstance(),2):(p=y.yieldResult)?y.yield(mfi(p),0):y.jumpTo(0)})},$fm=function(p){uKm(p);
a_O();UfR()},jGR=function(p){var y,l;
return _.h(function(q){if(q.nextAddress==1)return q.yield(_.MEc(p),2);if(y=q.yieldResult){var t;a:{if(y.headers&&(t=y.headers.get("date"))&&(t=Date.parse(t),!isNaN(t))){t=Math.round((0,_.uM)()-t);break a}t=-1}l=t;if(l>-1)return q.return(l)}return q.return(-1)})},bxi=function(){var p=_.l_.caches,y=_.o4("IS_SHELL_LOAD"),l,q;
_.h(function(t){if(t.nextAddress==1)return l=-1,y?t.yield(jGR(p),3):(q=_.kw(),l=Math.round((0,_.uM)()-q),t.jumpTo(2));t.nextAddress!=2&&(l=t.yieldResult);l>=0&&l<2147483648&&_.xw({appInstallDataAgeMs:l});_.rR(t)})},ncO=function(p){var y=_.YP(_.l_.location.href),l={};
"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(q){var t=y.JSC$9968_queryData_.getValues(q);if(t==null?0:t.length)l[q]=t});
return _.n0(p,new Map(Object.entries(l)))},GcT=function(p){p=p.match(/(.*)::.*::.*/);
if(p!==null)return p[1]},PL6=function(p){if(_.foR()){var y=Object.keys(window.localStorage);
y=_.c(y);for(var l=y.next();!l.done;l=y.next()){l=l.value;var q=GcT(l);q===void 0||p.includes(q)||self.localStorage.removeItem(l)}}},AhO=function(){if(!_.foR())return!1;
var p=_.iv(),y=Object.keys(window.localStorage);y=_.c(y);for(var l=y.next();!l.done;l=y.next())if(l=GcT(l.value),l!==void 0&&l!==p)return!0;return!1},ZxO=function(p){return _.mF("NotificationsDisabled",p)},MYV=function(){return Notification.permission!="granted"?Promise.resolve():_.yUd().then(function(p){return p?p.pushManager.getSubscription().then(function(y){if(y)return Promise.resolve();
y={userVisibleOnly:!0,applicationServerKey:_.hZ("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return p.pushManager.subscribe(y).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},VY9=function(p){return _.yUd().then(function(y){if(!y||!y.active)return Promise.reject(new _.SM("serviceworker.postMessage",p,y));
try{return y.active.postMessage(p),Promise.resolve()}catch(l){return Promise.reject(l)}})},gc7=function(){VY9({type:"notifications_register",
data:_.OY("ID_TOKEN")})},QGR=function(){if(!_.o4("LOGGED_IN"))return Promise.resolve(!1);
var p=_.$h("service_worker_push_force_notification_prompt_tag");return p?_.Ga("PromptTags").then(function(y){if(!y)return!0;var l=[];try{l=JSON.parse(y)}catch(q){return!1}return l&&l.indexOf(p)==-1}):Promise.resolve(!1)},KXR=function(){var p=_.UC("service_worker_push_prompt_delay_microseconds");
return p?_.Ga("PromptTime").then(function(y){return Promise.resolve(Date.now()-p>(y||0))}):Promise.resolve(!0)},w21=function(){var p=_.UC("service_worker_push_logged_out_prompt_watches");
return p==-1?Promise.resolve(!1):_.Ga("WatchCount").then(function(y){return y>=p})},ix6=function(){var p=_.bj(document,"yt-push-prompt-modal-bg");
p&&_.Qy(p)},rhV=function(){return _.UC("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.Ga("PromptCount").then(function(p){p||(p=0);
return Promise.resolve(p<_.UC("service_worker_push_prompt_cap"))})},SnO=function(p){return _.o4("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.o4("LOGGED_IN")&&(p===void 0?0:p)?QGR().then(function(y){if(y)return!0;
y=[rhV(),KXR()];_.o4("LOGGED_IN")||y.push(w21());return Promise.all(y).then(function(l){return l.every(function(q){return q})})}):Promise.resolve(!1)},FX1=function(){_.Ga("PromptCount").then(function(p){return _.mF("PromptCount",p+1)}).then(function(){return _.mF("PromptTime",Date.now())}).then(function(){var p=_.$h("service_worker_push_force_notification_prompt_tag");
if(p)return _.Ga("PromptTags").then(function(y){var l=[];if(y)try{l=JSON.parse(y)}catch(q){return!1}l||(l=[]);l.push(p);return _.mF("PromptTags",JSON.stringify(l))})})},kcw=function(){LX6||ix6()},Nad=function(p){p.style.zIndex=2147483648;
p.style.pointerEvents="auto";p.style.backgroundColor="rgba(0, 0, 0, 0.6)";p.style.width="100%";p.style.height="100vh";p.style.position="absolute";p.style.top="0";p.style.left="0";p.style.border="none"},Dfi=function(){var p=_.bj(document,"yt-push-prompt-modal-bg");
LX6=_.n("service_worker_push_prompt_modal_ignore_click");p?Nad(p):(p=_.Tk("div",{id:"yt-push-prompt-modal-bg"}),Nad(p),document.body.appendChild(p),_.Kco(document,"click",kcw))},Hx6=function(){var p=arguments;
_.n("service_worker_push_prompt_modal_enable")&&Dfi();return Notification.requestPermission().then(function(y){ix6();var l=document.getElementById("ticker");l&&(l.className=l.classList.remove("show"));if(y=="granted")return MYV().then(function(){ZxO(!1);gc7();return Promise.resolve(!0)});
y=="denied"&&gc7();return Promise.resolve(!1)}).catch(function(){ix6();
return Promise.reject.apply(Promise,_.xq(p))})},Ta9=function(p){p=p===void 0?!1:p;
var y=_.ecu().client;if(y&&y.browserVersion){var l=y.browserVersion,q=y.browserName=="CHROME"&&_.ag(l,"50.0.0")<0;y=y.browserName=="OPERA"&&_.ag(l,"42.0.0")<0;if(q||y)return Promise.resolve()}return _.seA().then(function(t){if(!t)return Promise.resolve();t=MYV().then(function(){return VY9({type:"notifications_check_registration",data:_.OY("ID_TOKEN")})});
return Notification.permission!="default"?t.catch(function(){}):t.then(function(){return SnO(p)}).then(function(E){if(E)return FX1(),Hx6().then(function(){})}).catch(function(){})})},xfi=function(p){return _.lHw(p)?Ta9():Promise.resolve()},BaL=function(p){var y=p.installing||p.waiting;
return p.active||!y?Promise.resolve(p):new Promise(function(l){var q=function(t){t=t.target;if(t.state==="activated"||t.state==="redundant")y.removeEventListener("statechange",q),l(p)};
y.addEventListener("statechange",q)})},f_9=function(){var p=new _.bga("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.gU(p,{mainAppWeb:_.qH()});var y=_.d3Q;_.n("service_worker_forward_exp_params")&&(y=ncO(y));try{var l=_.Cx5(y).catch(function(){_.QG(p,"FAILURE");return new Promise(function(){})});
_.n("service_worker_push_enabled")&&l.then(function(q){_.QG(p,"SUCCESS");return q}).then(BaL).then(xfi)}catch(q){if(_.QG(p,"FAILURE"),q.name!=="SecurityError")throw q;
}},vci=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&f_9()},X26=function(p,y){var l={};
y&&(l.serializedYpcFamilyCreateLoggingParams=y);_.TX(p,l);_.xn()},df1=function(p,y){var l={};
l.serializedYpcRefundFlowLoggingParams=y;p&&(l.eventType=p);_.TX("ypcRefundFlowEvent",l);_.xn()},Oxd=function(p){p&&_.RRm("transactionFlowSucceeded",p)},ocd=function(p){p&&_.yH("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",p,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},zod=function(p){var y,l,q,t,E,e,C;
_.h(function(u){if(u.nextAddress==1)return u.yield(_.yzl(),2);if(u.nextAddress!=3){if(!u.yieldResult)return u.return(!1);y=[];return u.yield(_.MW.keys(),3)}l=u.yieldResult;q=_.c(l);for(t=q.next();!t.done;t=q.next())E=t.value,e=_.IjR(E),C=e.datasyncId,!C||p.includes(C)||y.push(_.MW.delete(E));return u.return(Promise.all(y).then(function(a){return a.some(function(m){return m})}))})},YnV=function(){var p,y,l,q,t,E,e;
return _.h(function(C){if(C.nextAddress==1)return C.yield(_.yzl(),2);if(C.nextAddress!=3){if(!C.yieldResult)return C.return(!1);p=_.iv("cache contains other");return C.yield(_.MW.keys(),3)}y=C.yieldResult;l=_.c(y);for(q=l.next();!q.done;q=l.next())if(t=q.value,E=_.IjR(t),(e=E.datasyncId)&&e!==p)return C.return(!0);return C.return(!1)})},I_u=function(){var p=_.WC().resolve(_.RK(_.f8v));
return p?p.getCurrentTime():0},pWV=function(){var p,y,l,q,t,E,e,C,u,a,m,U,b,P;
return _.h(function(Z){switch(Z.nextAddress){case 1:p={},y=_.sol(),l=_.c(Object.entries(y)),q=l.next();case 4:if(q.done){Z.jumpTo(3);break}t=q.value;E=_.c(t);e=E.next().value;C=E.next().value;u=e;a=C;if(!a){Z.jumpTo(5);break}return Z.yield(a(),8);case 8:p[u]=Z.yieldResult;case 5:q=l.next();Z.jumpTo(4);break;case 2:m=_.c(void 0),U=m.next();case 9:if(U.done){Z.jumpTo(3);break}b=U.value;P=y[b];if(!P){Z.jumpTo(10);break}return Z.yield(P(),13);case 13:p[b]=Z.yieldResult;case 10:U=m.next();Z.jumpTo(9);
break;case 3:return Z.return(p)}})},yOR=function(){var p;
_.h(function(y){if(y.nextAddress==1)return y.yield(pWV(),2);p=y.yieldResult;return y.yield(navigator.clipboard.writeText(JSON.stringify(p,null,2)),0)})},lbi=function(p,y){return _.Ae(p.entities,"superThanksSelectedTierEntity",y)},qbT=function(p,y){var l=_.aT6();
_.Ti(function(){var q=p.value;if(q)return _.NkL(q,y),_.D5j(q,y,void 0,void 0,void 0,l)},[y])},sJw=function(p){var y;
return(y=p.sharedUi)==null?void 0:y.currentPageType},tNO=function(p,y){return{popup:{searchSuggestionReportDialog:{searchQuery:p,
title:_.g$("SBOX_INAPPROPRIATE_TITLE"),suggestions:y,categoryLabel:_.g$("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.g$("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.g$("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.g$("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.g$("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.g$("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.g$("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.g$("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.g$("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.g$("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},Ewd=function(p){var y,l,q,t,E,e,C,u,a,m,U,b,P,Z,K,F,L,T,O;
return _.h(function(f){switch(f.nextAddress){case 1:return f.yield(_.Vj(),2);case 2:return(y=f.yieldResult)?f.yield(_.b_g(y),3):f.return();case 3:l=f.yieldResult;if(!l)return f.return();t=((q=l.offlineVideos)==null?void 0:q.length)||0;e=((E=l.offlinePlaylists)==null?void 0:E.length)||0;if(t===0&&e===0)return f.return();C=0;if(l.offlineVideos)for(u=_.c(l.offlineVideos),a=u.next();!a.done;a=u.next())m=a.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===m.videoState&&(C+=1);p.offline_videos_count=t.toString();
_.n("kevlar_log_offline_current_network_type_ks")||(p.offline_current_network_type=(U=_.Yb6())!=null?U:"CONN_INVALID");_.n("kevlar_log_updated_time_for_smart_downloads")&&(b=_.ei().getState().entities,P=_.xy(b),Z=OtL(b),p.offline_smart_downloads_last_sync_time_ms=P.toString(),p.offline_smart_downloads_next_sync_time_ms=Z.toString());p.offline_videos_playable=C.toString();p.offline_playlists_count=e.toString();l.offlineVideos&&(K=l.offlineVideos.reduce(function(v,z){z.downloadedBytes&&(v+=Number(z.downloadedBytes));
return v},0).toString())&&(p.offline_used_disk_space_bytes=K);
if(!((F=navigator)==null?0:(L=F.storage)==null?0:L.estimate)){f.jumpTo(4);break}return f.yield(navigator.storage.estimate(),5);case 5:T=f.yieldResult,p.offline_free_disk_space_bytes=(((O=T)==null?void 0:O.quota)||0).toString();case 4:p.offline_client_state=JSON.stringify(l),_.rR(f)}})},JOu=function(p){p=_.c(p);
for(var y=p.next(),l={};!y.done;l={setter$jscomp$5:void 0},y=p.next()){var q=y.value;y=q.params;q=q.service;y&&q&&(l.setter$jscomp$5=_.tZV[q],l.setter$jscomp$5&&y.forEach(function(t){return function(E){var e=E.key;E=E.value;e&&E&&(0,t.setter$jscomp$5)(e,E)}}(l)))}},cOu=function(p){p=p.match(/(.*)::.*::.*/);
if(p!==null)return p[1]},eSO=function(p){if(_.MXL()){var y=Object.keys(window.sessionStorage);
y=_.c(y);for(var l=y.next();!l.done;l=y.next()){l=l.value;var q=cOu(l);q===void 0||p.includes(q)||self.sessionStorage.removeItem(l)}}},hSA=function(){if(!_.MXL())return!1;
var p=_.iv(),y=Object.keys(window.sessionStorage);y=_.c(y);for(var l=y.next();!l.done;l=y.next())if(l=cOu(l.value),l!==void 0&&l!==p)return!0;return!1},FM=function(p,y,l){(_.n("desktop_keyboard_shortcut_usage_log")||l&&_.n("web_shorts_keyboard_shortcut_usage_log"))&&(y?_.nA.get(p):_.bO.get(p))&&(p=y?_.Pd.get(p):_.GQ.get(p))&&_.te(_.B2(),p)},ClA=function(){var p,y;
return typeof CSS!=="undefined"&&((y=(p=CSS).supports)==null?void 0:y.call(p,"selector(:has(*))"))},u_7=function(p){return p.visibility!=="hidden"&&p.display!=="none"},WOV=function(p){if(ClA()||p.tagName!=="DETAILS"?!p.matches(RST):p.querySelector("summary")!==null)return-1;
p=p.getAttribute("tabindex")||"0";return Number(p)},abi=function(p){return p.some(function(y){return WOV(y)>0})},mnw=function(p){if(p.textContent)return!0;
if(p instanceof HTMLInputElement){if(!p.labels)return!1;p=_.c(p.labels);for(var y=p.next();!y.done;y=p.next())if(y.value.textContent)return!0}return!1},Unw=function(p){return p.sort(function(y,l){return WOV(l)-WOV(y)})},$nd=function(p){p=Array.from(p.querySelectorAll(RST)).filter(function(y){return(u_7(y.style)?u_7(window.getComputedStyle(y)):!1)&&mnw(y)});
return abi(p)?Unw(p):p},jJR=function(p){p=$nd(p);
p.length>0&&p[0].focus()},byR=function(p,y){y.stack&&(p.stack+="\n"+y.stack);
return p},Pld=function(p){var y=LA(p,"Content-Type");
if(!y)return null;y=y.toLowerCase();if(y.startsWith("application/json"))return y.startsWith("application/json+protobuf")?new nw6:new _.nn;if(y.startsWith("application/x-protobuf")){p=LA(p,"Content-Transfer-Encoding");if(!p)return new kK;if(p.toLowerCase()=="base64")return new Gfd}return null},iyL=function(p,y,l,q){var t=new AOV(function(C,u){return Zyi.has(u)?C.sentinel==="gal"&&C.event!==void 0:!1},function(C){C.event?(C=MNL(C.event),C=!C||VNR(q,C)?!0:_.S6(p.lastEvent,N5,2,DB)?!_.S6(C,Hd,1,DB)&&
!_.S6(C,N5,2,DB):!_.S6(C,Hd,1,DB)&&!_.S6(C,N5,3,DB)):C=!0;
return C});
l=_.n0(p.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",gwd(l)]]));if(p.nestedOrigins!==void 0)for(var E=_.c(p.nestedOrigins),e=E.next();!e.done;e=E.next())l=_.n0(l,new Map([["origin",e.value]]));return QJu(t,l,y).then(function(C){C=KOR(C.event);if(_.S6(C,Hd,1,DB)){var u,a=(u=_.oN(C,Hd,1,DB))==null?void 0:_.v0(u,2);a&&q.JSC$19176_logErrorEvent(wWO(a));u=_.oN(C,Hd,1,DB);_.v0(u,2)===4?(C=_.oN(C,Hd,1,DB),C={statusCode:11,statusMessage:_.fq(C,
3)}):(C=_.oN(C,Hd,1,DB),C={statusCode:12,statusMessage:_.fq(C,3)});return C}_.S6(C,N5,3,DB)?(C=_.oN(C,N5,3,DB),C={statusCode:1,consentLanguageKeys:_.fq(C,2)}):C={statusCode:1};return C}).catch(function(C){return C.errorCode!==void 0?{statusCode:C.errorCode,
statusMessage:C.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},LOd=function(p){var y={};
if(p===void 0||p===null)return y;p.getToken()!==void 0&&rOw(p.getToken())&&rOw(p.getToken()).length>0&&(y.scopes=new Set(rOw(p.getToken())));p.getToken()!==void 0&&SbA(p.getToken())&&SbA(p.getToken()).length>0&&(y.capabilities=new Set(SbA(p.getToken())));_.fq(p,3)!==void 0&&(y.consistencyKey=_.fq(p,3));p.getName()!==void 0&&p.getName()!==""&&(y.linkName=p.getName());_.rl(p,FO7,4)&&(p=_.MF(p,FO7,4),p=Object.assign({},_.fq(p,1)&&{userId:_.fq(p,1)},_.fq(p,2)&&{displayName:_.fq(p,2)},_.fq(p,3)&&{email:_.fq(p,
3)},_.fq(p,5)&&{username:_.fq(p,5)},_.fq(p,4)&&{profilePicture:_.fq(p,4)}),y.profile=p);return y},kfu=function(p,y){var l=p.flowParams,q;
return{serviceId:l.serviceId,sessionId:l.sessionId,currentFlow:p.currentFlow,googleScopesString:y,linkingSessionSerialized:p.session.serialize(),consentLanguageKeys:l.consentLanguageKeys,callerState:p.callerState,dynamicUrlParameters:l.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(q=l.partnerConfigMinReadTimestamp)==null?void 0:q.serialize()}},xnO=function(p){var y=p.googleScopes!==void 0?Array.from(p.googleScopes).join(","):"";
N$u(kfu(p,y));y=DnV(p);return y===null?Promise.resolve(Hyd):y.start().then(function(l){var q,t=(q=l.link)==null?void 0:q.consistencyKey;return l.statusCode===1&&p.googleScopes!==void 0&&p.googleScopes.size>0&&t!==void 0?(q=p.flowParams,T$d(q.serviceId,q.sessionId,p.googleScopes,t,q.galService,p.config,l)):l})},B$9=function(p){var y=DnV(p);
return y===null?Promise.resolve(TQ({statusCode:7,statusMessage:"Failed to create flow object"},p.callerState)):y.complete().then(function(l){var q,t=(q=l.link)==null?void 0:q.consistencyKey;return l.statusCode===1&&p.googleScopes!==void 0&&p.googleScopes.size>0&&t!==void 0?(q=p.flowParams,T$d(q.serviceId,q.sessionId,p.googleScopes,t,q.galService,p.config,l)):TQ(l,p.callerState)},function(l){return TQ({statusCode:12,
statusMessage:"Failed to complete the flow: "+l.message},p.callerState)})},T$d=function(p,y,l,q,t,E,e){return fbu(t,{serviceId:p,
sessionId:y,googleScopes:l,consistencyKey:q}).then(function(){return e},function(C){return t.deleteLink({serviceId:p,
sessionId:y,accountLinkingEntryPoint:E.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+C.message}},function(u){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+u.message}})})},DnV=function(p){switch(p.currentFlow){case 1:var y=p.flowParams;
p=_.MF(p.session,vwV,1);return xK.createOAuthFlow(y,p);case 2:case 3:return y=p.flowParams,p=_.MF(p.session,XWO,6),Bd.createStreamlinedFlow(y,p);default:return null}},dni=function(p,y){p===2&&(p=3);
var l=0;fA.indexOf(p)!==-1&&(l=fA.indexOf(p)+1);for(p=l;p<fA.length;p++)if(y.has(fA[p]))return fA[p]},zS1=function(p){var y=p.serviceId;
var l=p.sessionId;var q=p.config;var t=p.galService;var E=p.capabilities;var e=p.scopes;var C=p.loginHint;var u=p.callerState;var a=p.consentLanguageKeys;var m=p.linkName;var U=p.dynamicUrlParameters;var b=p.partnerConfigMinReadTimestamp;p=q.dataUsageNoticeConfig?q.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return t.startLinkingSession({serviceId:y,sessionId:l,capabilities:E,scopes:e,loginHint:C,callerState:u,supportedFlows:OyR(q.supportedFlows),completionUrl:q.completionUrl,accountLinkingEntryPoint:q.accountLinkingEntryPoint,
consentLanguageKeys:a,dataUsageNoticeConfig:p,linkName:m,dynamicUrlParameters:U,partnerConfigMinReadTimestamp:b}).then(function(P){return new owO(y,l,q,t,P,void 0,u,a,U,b)})},qtd=function(p,y,l){var q=(new Yb1).getSession(p);
if(q===null)return Promise.resolve({statusCode:2});Ib7(p);var t=pVV(q.linkingSessionSerialized),E=q.googleScopesString!==""&&q.googleScopesString!==void 0?new Set(q.googleScopesString.split(",")):void 0,e=q.partnerConfigMinReadTimestampSerialized?yem(q.partnerConfigMinReadTimestampSerialized):void 0;return lFO(new owO(p,q.sessionId,y,l,t,E,q.callerState,q.consentLanguageKeys,q.dynamicUrlParameters,e),q.currentFlow,q.consentLanguageKeys)},N$u=function(p){var y=new Yb1;
y.storage!==null&&y.storage.set("SAVED_SESSION",p)},Ib7=function(p){var y=new Yb1;
if(y.storage!==null){var l=y.storage.get("SAVED_SESSION");l!==void 0&&l.serviceId===p&&y.storage.remove("SAVED_SESSION")}},OyR=function(p){var y=new Set;
p=_.c(p);for(var l=p.next();!l.done;l=p.next())l=l.value,l!==1&&sr1.has(l)&&y.add(sr1.get(l));return y},TQ=function(p,y){y!==void 0&&(p.callerState=y);
return p},t$d=function(p){switch(p){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},ced=function(p){return new Ey1(p,new JeA(p))},Cad=function(p,y){y=y===void 0?!1:y;
var l=document.createElement("div");p&&(l.style.transform="scaleX(-1)");l.style.backgroundColor=y?"rgba(138,180,248,.24)":"#e8f0fe";l.style.height="4px";l.style.overflow="hidden";l.style.position="absolute";l.style.top="0";l.style.width="100%";l.style.zIndex="1500";l.setAttribute("aria-label","Loading");l.setAttribute("aria-live","polite");p=document.createElement("style");p.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
l.appendChild(p);p=e36();p.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";p.style.left="-145.166611%";var q=h3O(y);q.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";p.appendChild(q);l.appendChild(p);p=e36();p.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";p.style.left="-54.888891%";y=h3O(y);y.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
p.appendChild(y);l.appendChild(p);return l},e36=function(){var p=document.createElement("div");
p.style.height="100%";p.style.position="absolute";p.style.transformOrigin="top left";p.style.width="100%";return p},h3O=function(p){var y=document.createElement("span");
y.style.borderTop=p?"4px solid #669df6":"4px solid #4285f4";y.style.display="inline-block";y.style.position="absolute";y.style.width="100%";return y},uTm=function(p){return p==null?void 0:_.sX$(p).valueOf()},msR=function(p){var y=document.body,l=!1,q=function(){l||(l=!0,R3d(t,E),setTimeout(function(){y.removeChild(E);
y.removeChild(t)},150))},t=WNd(p,getComputedStyle(y).direction==="rtl",q),E=aFd(q);
R3d(t,E);y.appendChild(E);y.appendChild(t);window.requestAnimationFrame(function(){E.style.opacity="1";t.style.opacity="1";t.style.transform="translate(-50%, -50%) scale(1)";t.children[0].focus()})},WNd=function(p,y,l){var q=document.createElement("div");
q.style.position="fixed";q.style.alignItems="center";q.style.backgroundColor=p?"rgb(32, 33, 36)":"white";q.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";q.style.display="flex";q.style.flexDirection="column";q.style.justifyContent="center";q.style.left="50%";q.style.top="50%";q.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";q.style.zIndex="2002";document.body.clientWidth>=660?(q.style.borderRadius="8px",q.style.minHeight="220px",
q.style.maxHeight="90%",q.style.maxWidth="90%",q.style.minWidth="540px"):(q.style.height="100%",q.style.width="100%");q.setAttribute("aria-label","Error");q.setAttribute("aria-modal","true");q.setAttribute("role","alertdialog");q.addEventListener("keydown",function(E){E.key==="Escape"&&l()});
y=Usi(p,y,l);q.appendChild($sT(y));q.appendChild(y);var t=document.createElement("img");t.src=p?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";t.style.height="72px";t.style.width="72px";t.style.color="#9aa0a6";t.setAttribute("alt","");q.appendChild(t);t=document.createElement("h1");t.textContent="Something went wrong.  Try again.";
t.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";t.style.lineHeight="24px";t.style.fontSize="16px";t.style.textAlign="center";t.style.letterSpacing="0.1px";t.style.color=p?"rgb(232,234,237)":"#3c4043";q.appendChild(t);q.appendChild($sT(y));return q},Usi=function(p,y,l){var q=document.createElement("button");
q.style.backgroundColor="transparent";q.style.border="none";q.style.borderRadius="50%";q.style.cursor="pointer";q.style.outline="none";q.style.padding="12px";q.setAttribute("aria-label","Close dialog");q.style.position="absolute";q.style.top="0";y?q.style.right="0":q.style.left="0";q.addEventListener("focus",function(){q.style.backgroundColor=p?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
q.addEventListener("blur",function(){q.style.backgroundColor="transparent"});
q.addEventListener("mouseenter",function(){q.style.backgroundColor=p?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
q.addEventListener("mouseleave",function(){q.style.backgroundColor="transparent"});
q.addEventListener("click",l);q.addEventListener("keydown",function(t){t.key!=="Enter"&&t.key!=="Space"||l()});
y=document.createElement("img");y.src=p?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";y.style.display="block";y.style.height="24px";y.style.width="24px";y.setAttribute("alt","");q.appendChild(y);return q},$sT=function(p){var y=document.createElement("div");
y.setAttribute("tabindex","0");y.setAttribute("aria-hidden","true");y.addEventListener("focus",function(){return void p.focus()});
return y},aFd=function(p){var y=document.createElement("div");
y.style.backgroundColor="rgba(32,33,36,0.6)";y.style.bottom="0";y.style.left="0";y.style.position="fixed";y.style.right="0";y.style.top="0";y.style.transition=" opacity 150 ms linear";y.style.zIndex="2001";y.addEventListener("click",p);return y},R3d=function(p,y){y.style.opacity="0";
p.style.opacity="0";p.style.transform="translate(-50%, -50%) scale(0.8)"},jr1=function(p,y){p.sandbox&&p.sandbox.add&&(p.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),p.sandbox.add("allow-downloads"));
p.src=y},vd=function(p){bWR.call(this,p)},XM=function(p,y){y=y===void 0?!1:y;
this.parsedImageUrl_=null;p instanceof nyu||(GUA==void 0&&(GUA=new Pa9),p=GUA.parse(p.toString(),y));p=this.parsedImageUrl_=p;p.JSC$19388_parsedOptions_==void 0&&((y=p.getOptions())||(y=""),p.JSC$19388_parsedOptions_=(new Ae7).parse(y));bWR.call(this,p.JSC$19388_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;p=this.parsedImageUrl_;y=p.uri_.JSC$9968_port_;this.JSC$19390_domain_=p.uri_.JSC$9968_domain_+(y?":"+y:"");this.JSC$19390_query_=this.parsedImageUrl_.uri_.JSC$9968_queryData_.toString()},
ZWi=function(p){this.mode=4;
this.data=p;this.parsedData=[];p=0;for(var y=this.data.length;p<y;p++){var l=[],q=this.data.charCodeAt(p);q>65536?(l[0]=240|(q&1835008)>>>18,l[1]=128|(q&258048)>>>12,l[2]=128|(q&4032)>>>6,l[3]=128|q&63):q>2048?(l[0]=224|(q&61440)>>>12,l[1]=128|(q&4032)>>>6,l[2]=128|q&63):q>128?(l[0]=192|(q&1984)>>>6,l[1]=128|q&63):l[0]=q;this.parsedData.push(l)}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))},M$R=function(p){this.typeNumber=0;
this.errorCorrectLevel=p===void 0?2:p;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},dk=function(p,y){if(p.length==void 0)throw Error("tk`"+p.length+"`"+y);
for(var l=0;l<p.length&&p[l]==0;)l++;this.num=Array(p.length-l+y);for(y=0;y<p.length-l;y++)this.num[y]=p[y+l]},V$O=function(p,y){this.totalCount=p;
this.dataCount=y},gyA=function(){this.buffer=[];
this.length=0},Qrw=function(){var p=!1;
if(_.uot()){p=_.mL();var y="";_.at8()?(y=/Windows (?:NT|Phone) ([0-9.]+)/,y=(p=y.exec(p))?p[1]:"0.0"):_.Sj()?(y=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,y=(p=y.exec(p))&&p[1].replace(/_/g,".")):_.WLm()?(y=/Mac OS X ([0-9_.]+)/,y=(p=y.exec(p))?p[1].replace(/_/g,"."):"10"):_.u_(_.mL(),"KaiOS")?(y=/(?:KaiOS)\/(\S+)/i,y=(p=y.exec(p))&&p[1]):_.uot()?(y=/Android\s+([^\);]+)(\)|;)/,y=(p=y.exec(p))&&p[1]):_.maj()&&(y=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,y=(p=y.exec(p))&&p[1]);p=y||""}return p},FN9=function(p,
y){this.JSC$19413__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(y)for(var l in y)this.JSC$19413__htOption[l]=y[l];this.JSC$19413__htOption.useSVG&&(KN7=wVR);this.JSC$19413__android=Qrw();this.JSC$19413__el=p;this._oQRCode=null;this._oDrawing=new KN7(this.JSC$19413__el,this.JSC$19413__htOption);this.JSC$19413__htOption.text&&(p=this.JSC$19413__htOption.text,this._oQRCode=new M$R(this.JSC$19413__htOption.correctLevel),iWi(this._oQRCode,p),y=this._oQRCode,rei(y,!1,StV(y)),this.JSC$19413__el.title=
p,this._oDrawing.draw(this._oQRCode),this.makeImage())},LNT=function(p,y,l,q,t){p.save();
var E=new Path2D;E.roundRect(y,l,q*7,q*7,q*2);E.roundRect(y+q,l+q,q*5,q*5,q*1.3);E.roundRect(y+2*q,l+2*q,q*3,q*3,q);p.clip(E,"evenodd");p.fillStyle=t;p.fillRect(0,0,p.canvas.width,p.canvas.height);p.restore()},Op=function(p,y){if(typeof p!=="function")throw Error("wk");
return _.l_.setTimeout(function(){p()},y)},o1=function(){},NNu=function(p,y,l,q,t){(new o1).debug("TestLoadImageWithRetries: "+t);
if(q==0)l(!1);else{var E=t||0;q--;kUm(p,y,function(e){e?l(!0):_.l_.setTimeout(function(){NNu(p,y,l,q,E)},E)})}},kUm=function(p,y,l){var q=new o1;
q.debug("TestLoadImage: loading "+p);var t=new Image;t.onload=function(){try{q.debug("TestLoadImage: loaded"),DsO(t),l(!0)}catch(E){}};
t.onerror=function(){try{q.debug("TestLoadImage: error"),DsO(t),l(!1)}catch(E){}};
t.onabort=function(){try{q.debug("TestLoadImage: abort"),DsO(t),l(!1)}catch(E){}};
t.ontimeout=function(){try{q.debug("TestLoadImage: timeout"),DsO(t),l(!1)}catch(E){}};
_.l_.setTimeout(function(){if(t.ontimeout)t.ontimeout()},y);
t.src=p},DsO=function(p){p.onload=null;
p.onerror=null;p.onabort=null;p.ontimeout=null},HW7=function(){this.front_=[];
this.back_=[]},TNT=function(p,y){_.Sr.call(this);
this.delay_=new _.LS(this.JSC$19539_onTick_,0,this);_.P9(this,this.delay_);this.JSC$19537_interval_=5E3;this.nextTickTime_=0;if(typeof p==="function")y&&(p=(0,_.FZ)(p,y));else if(p&&typeof p.handleEvent==="function")p=(0,_.FZ)(p.handleEvent,p);else throw Error("ya");this.JSC$19539_listener_=p},zQ=function(p,y,l,q,t,E,e,C,u,a,m,U,b,P){l=l===void 0?!1:l;
q=q===void 0?function(){return""}:q;
t=t===void 0?!1:t;E=E===void 0?!1:E;e=e===void 0?!1:e;C=C===void 0?function(){return _.PW({})}:C;
u=u===void 0?!1:u;m=m===void 0?!1:m;U=U===void 0?!1:U;b=b===void 0?!1:b;P=P===void 0?!1:P;this.JSC$19540_pathPrefix_=p;this.defaultQueryParams_=y;this.pubsub_=new _.V$;this.reconnectTimer_=new TNT(this.safeReconnect_,this);this.JSC$19540_channel_=null;this.JSC$19540_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19540_pendingMessages_=[];this.enableAsyncTest_=l;this.JSC$19540_getXsrfToken_=q;this.useAsyncBrowserChannelHandler_=E;this.getAuthorizationHeader_=
C;this.getAuthorizationHeaderSync_=a;this.enableCachedUpdateAuthorizationHeader_=e;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.PW();this.enableLoungeTokenRefresh_=t;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=u;this.disableMdxAuthForNonPlaybackMessages_=m;this.disableMdxAuthForAdMessages_=U;this.enableMdxAuthForConnectionOnly_=b;this.disableMdxAuthForShortsMessages_=P;this.JSC$19540_channelOpenedCounter=new xsw;this.JSC$19540_channelClosedCounter=new BNd;this.channelMessageSentCounter=
new fFL;this.JSC$19540_channelMessageReceivedCounter=new vyV;this.JSC$19540_channelErrorCounter=new XVA;this.pendingMapsOnClosedCounter=new dsO;this.undeliveredMapsOnClosedCounter=new OW7},YK=function(p){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;p=p||document.location.href;var y=Number(_.cC(p)[4]||null)||"";y&&(this.port=":"+y);this.domain=_.eM(p)||"";p=_.mL();p.search("MSIE")>=0&&_.ag(p.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},I1=function(p){p=p||{};
this.name=p.name||"";this.id=p.id||p.screenId||"";this.token=p.token||p.loungeToken||"";this.uuid=p.uuid||p.dialId||"";this.idType=p.screenIdType||"normal"},oyw=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(p){var y=Math.random()*16|0;
return(p=="x"?y:y&3|8).toString(16)})},z37=function(p){return _.xI(p,function(y){return{key:y.id,
name:y.name}})},Yt6=function(p,y){return _.Na(p,function(l){return l||y?!l!=!y?!1:l.id==y.id:!0})},yw=function(p,y){return _.Na(p,function(l){return pc(l,y)})},qKu=function(){var p=IFu(),y=pI1();
if(yBO()){var l=p,q=_.n6o(l,y);q<0&&_.b8l(l,-(q+1),0,y)}p=lai(p);if(p.length==0)try{_.dnL("remote_sid")}catch(t){}else try{_.Kh("remote_sid",p.join(","),-1)}catch(t){}},IFu=function(){var p=_.Qh("yt-remote-connected-devices")||[];
p.sort(_.JZ);return p},lai=function(p){if(p.length==0)return[];
var y=p[0].indexOf("#"),l=y==-1?p[0]:p[0].substring(0,y);return _.xI(p,function(q,t){return t==0?q:q.substring(l.length)})},sUi=function(p){_.gB("yt-remote-connected-devices",p,86400)},pI1=function(){if(tii)return tii;
var p=_.Qh("yt-remote-device-id");p||(p=oyw(),_.gB("yt-remote-device-id",p,31536E3));for(var y=IFu(),l=1,q=p;_.Tl(y,q);)l++,q=p+"#"+l;return tii=q},E9d=function(){return _.Qh("yt-remote-session-browser-channel")},yBO=function(){return _.Qh("yt-remote-session-screen-id")},eAR=function(p){p.length>5&&(p=p.slice(p.length-5));
var y=_.xI(JB7(),function(q){return q.loungeToken}),l=_.xI(p,function(q){return q.loungeToken});
_.T46(l,function(q){return!_.Tl(y,q)})&&cBL();
_.gB("yt-remote-local-screens",p,31536E3)},JB7=function(){return _.Qh("yt-remote-local-screens")||[]},cBL=function(){_.gB("yt-remote-lounge-token-expiration",!0,86400)},ld=function(p){p||(_.KI("yt-remote-session-screen-id"),_.KI("yt-remote-session-video-id"));
qKu();p=IFu();_.Oc(p,pI1());sUi(p)},CSO=function(){hAL();
return q2?!!q2.get("yt-remote-use-staging-server"):!1},hAL=function(){if(!q2){var p=_.qtl();
p&&(q2=new _.F3(p))}},aa9=function(p,y,l,q,t){l=l===void 0?function(){return""}:l;
var E=function(){return new zQ(s9(p,"/bc"),y,!1,l,q)};
return _.n("enable_mdx_web_channel_desktop")?new uCi(function(){return new RAi(s9(p,"/wc"),y,l)}):new W3R(E,t)},jUd=function(){var p=mEu;
UEu();tu.push(p);$E7()},E9=function(p,y){UEu();
var l=b47(p,String(y));tu.length==0?n9u(l):($E7(),_.lv(tu,function(q){q(l)}))},Ju=function(p){E9("CP",p)},UEu=function(){tu||(tu=_.I4("yt.mdx.remote.debug.handlers_")||[],_.e0("yt.mdx.remote.debug.handlers_",tu))},n9u=function(p){var y=(cB+1)%50;
cB=y;G5w[y]=p;PS1||(PS1=y==49)},$E7=function(){var p=tu;
if(G5w[0]){var y=PS1?cB:-1,l={};do l={record$jscomp$15:void 0},y=(y+1)%50,l.record$jscomp$15=G5w[y],_.lv(p,function(q){return function(t){t(q.record$jscomp$15)}}(l));
while(y!=cB);G5w=Array(50);cB=-1;PS1=!1}},b47=function(p,y){var l=(Date.now()-ABd)/1E3;
l.toFixed&&(l=l.toFixed(3));var q=[];q.push("[",l+"s","] ");q.push("[","yt.mdx.remote","] ");q.push(p+": "+y,"\n");return q.join("")},eU=function(p){_.jS.call(this);
this.JSC$19564_logName_=p;this.screens=[]},Cc=function(p){eU.call(this,"LocalScreenService");
this.JSC$19571_http_=p;this.loungeTokenRefreshTimer_=NaN;hu(this);this.info("Initializing with "+Z49(this.screens))},ud=function(p,y){y=y===void 0?!1:y;
eU.call(this,"ScreenService");this.JSC$19577_http_=p;this.disableAutomaticScreenCache_=y;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};MiL(this)},Rj=function(p,y,l){_.jS.call(this);
this.JSC$19581_logName_=l;this.JSC$19581_screenService_=p;this.receiver_=y;this.screen_=null},xEu=function(p,y,l){l.disableCastApi?WB("Cannot initialize because disabled by Mdx config."):Vid()?g9m(p,l)&&(QUR(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?K3d(y):(window.__onGCastApiAvailable=function(q,t){q?K3d(y):(aj("Failed to load cast API: "+t),wIA(!1),QUR(!1),_.KI("yt-remote-cast-available"),_.KI("yt-remote-cast-receiver"),i4d(),y(!1))},l.loadCastApiSetupScript?_.zc(rB6):window.navigator.userAgent.indexOf("Android")>=
0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?SKT()>=60&&F3d():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?L39():SKT()>=89?k5R():(NC7(),DE9(H47.map(TC6))))):WB("Cannot initialize because not running Chrome")},i4d=function(){WB("dispose");
var p=mW();p&&p.dispose();_.e0("yt.mdx.remote.cloudview.instance_",null);BCA(!1);_.Fcl(fam);fam.length=0},v91=function(){return!!_.Qh("yt-remote-cast-installed")},XIR=function(){var p=_.Qh("yt-remote-cast-receiver");
return p?p.friendlyName:null},dE1=function(){WB("clearCurrentReceiver");
_.KI("yt-remote-cast-receiver")},O4T=function(){return v91()?mW()?mW().getCastSession():(aj("getCastSelector: Cast is not initialized."),null):(aj("getCastSelector: Cast API is not installed!"),null)},zA1=function(p,y){o9O()?mW().setConnectedScreenStatus(p,y):aj("setConnectedScreenStatus called before ready.")},Vid=function(){var p=_.mL().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.gl||p},g9m=function(p,y){var l=!1;
mW()||(p=new U9(p,y),p.subscribe("yt-remote-cast2-availability-change",function(q){_.gB("yt-remote-cast-available",q);ZB("yt-remote-cast2-availability-change",q)}),p.subscribe("yt-remote-cast2-receiver-selected",function(q){WB("onReceiverSelected: "+q.friendlyName);
_.gB("yt-remote-cast-receiver",q);ZB("yt-remote-cast2-receiver-selected",q)}),p.subscribe("yt-remote-cast2-receiver-resumed",function(q){WB("onReceiverResumed: "+q.friendlyName);
_.gB("yt-remote-cast-receiver",q);ZB("yt-remote-cast2-receiver-resumed",q)}),p.subscribe("yt-remote-cast2-session-change",function(q){WB("onSessionChange: "+YKO(q));
q||_.KI("yt-remote-cast-receiver");ZB("yt-remote-cast2-session-change",q)}),_.e0("yt.mdx.remote.cloudview.instance_",p),l=!0);
WB("cloudview.createSingleton_: "+l);return l},mW=function(){return _.I4("yt.mdx.remote.cloudview.instance_")},K3d=function(p){wIA(!0);
QUR(!1);mW().init(!1,function(y){y?(BCA(!0),_.Lc8("yt-remote-cast2-api-ready")):(aj("Failed to initialize cast API."),wIA(!1),_.KI("yt-remote-cast-available"),_.KI("yt-remote-cast-receiver"),i4d());p(y)})},WB=function(p){E9("cloudview",p)},aj=function(p){E9("cloudview",p)},wIA=function(p){WB("setCastInstalled_ "+p);
_.gB("yt-remote-cast-installed",p)},o9O=function(){return!!_.I4("yt.mdx.remote.cloudview.apiReady_")},BCA=function(p){WB("setApiReady_ "+p);
_.e0("yt.mdx.remote.cloudview.apiReady_",p)},QUR=function(p){_.e0("yt.mdx.remote.cloudview.initializing_",p)},$L=function(p){this.index=-1;
this.videoId=this.listId="";this.volume=this.playerState=-1;this.muted=!1;this.audioTrackId=null;this.playerTimeAt_=this.playerTime_=0;this.trackData=null;this.hasNext=this.hasPrevious=!1;this.loadedTime=this.duration_=this.seekableEnd_=this.seekableStart_=0;this.liveIngestionTime_=NaN;this.isLive_=!1;this.reset(p)},Ia1=function(){var p,y;
return _.h(function(l){if(l.nextAddress==1)return(_.jF5()||_.n("use_new_nwl"))&&_.aS5().isNetworkAvailable()?l.yield(_.hk(),2):l.return();if(l.nextAddress!=3)return(p=l.yieldResult)?l.yield(rK6(p),3):l.return();y=l.yieldResult;if(!y.length)return l.return();y.forEach(function(q){var t={timestamp:q.timestamp};q=q.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:q.appShellAssetLoadReport,options:t}:q.clientError?{payloadName:"clientError",payload:q.clientError,options:t}:void 0;
q&&_.TX(q.payloadName,q.payload,q.options)});
y.length===100&&_.TR.addLowPriorityJob(Ia1);_.rR(l)})},pmw=function(p){if(p.playerResponse){if(p=p.playerResponse,p.messages&&p.messages.length>0&&(p=p.messages.find(function(y){return!(!y||!y.mealbarPromoRenderer)}))&&p.mealbarPromoRenderer)return p.mealbarPromoRenderer}else if(p.response&&(p=p.response)&&p.overlay&&p.overlay.mealbarPromoRenderer)return p.overlay.mealbarPromoRenderer},yxw=function(p){if(p.response){var y=p.response;
if(y&&y.overlay&&y.overlay.tooltipRenderer)return y.overlay.tooltipRenderer}if(p.playerResponse&&(p=p.playerResponse,p.messages&&p.messages.length>0&&(p=p.messages.find(function(l){return!(!l||!l.tooltipRenderer)}))&&p.tooltipRenderer))return p.tooltipRenderer},qsd=function(p){if(!lLw&&(p=p||_.OY("ZWIEBACK_PING_URLS"))&&p.length){lLw=!0;
for(var y=0;y<p.length;y++)_.pT(p[y])}},tRd=function(p){if(_.Ts.get(_.OY("PLAYER_VARS",{}),"privembed",!1)!="1"){p&&AK6();
try{sM1().then(function(){},function(){}),_.nh(tRd,18E5)}catch(y){_.zi(y)}}},E8d=function(){var p=_.w$(),y=p.getFlag(119),l=window.devicePixelRatio>1;
document.body&&_.lR(document.body,"exp-invert-logo")&&(l&&!_.lR(document.body,"inverted-hdpi")?_.ax(document.body,"inverted-hdpi"):!l&&_.lR(document.body,"inverted-hdpi")&&_.Rx(document.body,"inverted-hdpi"));y!=l&&(_.il(0,119,l),p.save())},Jxd=function(p){return p.filter(function(y){return"ypcGetCartEndpoint"in y||"ypcFixInstrumentEndpoint"in y})},cxV=function(p){return p.filter(function(y){return!_.G(y,_.HoP)})},hbO=function(p,y){var l,q,t,E,e,C,u;
_.h(function(a){switch(a.nextAddress){case 1:l=_.BI.getInstance();q=_.wW.instance;t=_.Js.instance;if(!t)return eb6(p,q,y),a.return();_.Ve(a,2);p.onLoadingCommand&&q.resolveCommand(p.onLoadingCommand);return a.yield(l.getCurrentPositionFromGeolocation(),4);case 4:E=a.yieldResult;if(!p.resolveLocationCommand){a.jumpTo(5);break}e=l.createLocationInfo(E);return a.yield(_.eo(t,p.resolveLocationCommand,{locationInfo:e}),6);case 6:C=a.yieldResult;if(!C||"error"in C&&C.error||C.errorMetadata)return eb6(p,
q,y),a.return();var m;if(C==null?0:(m=C.onResponseReceivedActions)==null?0:m.length){m=_.c(C.onResponseReceivedActions);for(var U=m.next();!U.done;U=m.next())q.resolveCommand(U.value)}(_.G(p.onSuccessCommand,_.Eb)||_.G(p.onSuccessCommand,_.wC))&&_.Ub(y.hostElement,"yt-navigate",{endpoint:p.onSuccessCommand,reload:!0});case 5:_.pK(a,0);break;case 2:u=_.i6(a);if(u instanceof GeolocationPositionError&&u.code===GeolocationPositionError.PERMISSION_DENIED)return p.onDeniedCommand&&q.resolveCommand(p.onDeniedCommand),
a.return();eb6(p,q,y);_.rR(a)}})},eb6=function(p,y,l){p.onFailureCommand&&(y.resolveCommand(p.onFailureCommand),_.$w(l.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},uA7=function(p,y){var l=_.G(p,_.ovU);
if(l&&y){p=l.videoIds||[l.videoId];var q;y=(q=_.Ub(y,"yt-lockup-requested",{videoIds:p}).detail)==null?void 0:q.returnValue;var t;l.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?t=y?y:p.map(function(E){return{videoId:E,navigationEndpoint:l.videoCommand}}):y&&(t=y);
t&&(q=t.map(function(E){var e=Object,C=e.assign;var u=E.navigationEndpoint;if(!_.G(u,_.FC)){var a=_.G(u,_.Eb);if(a){if(delete a.index,delete a.playlistId,a=_.G(u==null?void 0:u.commandMetadata,_.ul),a==null?0:a.url){var m=a.url;m=_.Cy(m,"list");m=_.Cy(m,"index");a.url=m}}else u=void 0}return C.call(e,{},E,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:u})}),CtO(q,l))}},Rb9=function(p){var y=_.EX();
if(p=_.G(p,_.zBU))p.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&y.clearQueue(),p.closeMiniplayer&&_.WC().resolve(_.IA).close(!0)},aLi=function(p){Wrw(_.EX(),p)},mHA=function(p){var y;
(p=(y=_.G(p,_.diB))==null?void 0:y.setVideoIds)&&p.forEach(function(l){_.zjV(_.EX(),l)})},$H7=function(p){UHV(_.EX(),p)},jMw=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(p){return!1}},bvO=function(){var p,y;
return(y=(p=window).matchMedia)==null?void 0:y.call(p,"(prefers-reduced-motion: reduce)").matches},G9u=function(p){var y=_.WC().resolve(_.RK(_.xr));
y&&n81(y,p)},Pti=function(p,y,l){return{horizontalAlignment:p.x+l.width/2<y.width/2?"west":"east",
verticalAlignment:p.y+l.height/2<y.height/2?"north":"south"}},MR7=function(p,y,l,q,t){t=t===void 0?new _.BJ(0,0):t;
return Axd(Zvw(p,y,l,q),t)},Zvw=function(p,y,l,q){return new _.BJ(p==="west"?16:l.width-q.width-16,y==="north"?16:l.height-q.height-16)},VRO=function(p,y){var l=0;
p&&(l+=76);y&&(l+=285);return l},g8d=function(p){var y=["h",
"m","s"],l=_.og(y);l.reverse();var q={};p=(p.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(e){var C=(e.match(/[hms]/)||[""])[0];return C?(q[C]=parseInt(e.match(/\d+/)[0],10),!1):!0});
for(p.reverse();p.length&&l.length;){var t=l.shift();t in q||(q[t]=parseInt(p.shift(),10))}if(p.length||q.s>59||q.m>59||q.h>9)return null;var E="";y.forEach(function(e){q[e]&&(E+=""+q[e]+e)});
return E||null},QMd=function(p){p=p.data;
return _.R("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.R("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.R(_.W$,{data:{thumbnails:[{url:p.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.R("div",{class:"profile-badge-view-model-wiz__content"},_.R("div",{class:"profile-badge-view-model-wiz__badge-description"},p.badgeDesc),p.badgeSubtitle?_.R("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},p.badgeSubtitle):null))},Krd=function(p){p=
p.data;
var y=_.sM("yt-comment-interaction-view-model");qbT(y,p.rendererContext);return _.R("yt-comment-interaction-view-model",{el:y,class:"yt-comment-interaction-view-model-wiz"},_.R("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":p.onTapA11yLabel,"on:keydown":_.Spu(),tabindex:0},_.R("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.R("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},p.headerPrefix,' "',p.videoTitle),_.R("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.R("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.R("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},p.commentContent),_.R("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.R(_.W$,{data:{thumbnails:[{url:p.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},ivA=function(p){p=p.data;
return _.R("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},wm6(p.avatar),_.R("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},p.channelName))},rx1=function(p){p=p.data;
var y;return _.R("div",{class:"yt-profile-info-view-model-wiz__activity"},_.R("div",{class:"yt-profile-info-view-model-wiz__header"},_.R("div",{class:"yt-profile-info-view-model-wiz__section-title"},p.commentsInteractionTitle)),(y=p.comments)==null?void 0:y.map(function(l){return _.R("div",{class:"yt-profile-info-view-model-wiz__activity"},jU(l))}))},SsR=function(p){p=p.data;
var y=_.qW({elementsCommand:p.subscriptionsAccessButtonCommand}),l=_.sM("a");_.nYg(l,_.yM(p.subscriptionsAccessButtonCommand));var q;return _.R("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.R("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.R("a",{el:l,"on:click":_.Ff(function(t){if(y==null?0:y.onclick)y.onclick(t);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.R("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},p.sharedSubscriptionsTitle),_.R("div",null,jU(p.subscriptionsAccessButton)))),_.R("div",{class:"yt-profile-info-view-model-wiz__subs"},(q=p.sharedSubscriptions)==null?void 0:q.slice(0,5).map(function(t){return _.R("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",jU(t))})))},FrV=function(p){p=p.data;
var y;return _.R("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.R("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.R("h2",{class:"yt-profile-info-view-model-wiz__section-title"},p.sharedSubscriptionsTitle)),_.R("div",{class:"yt-profile-info-view-model-wiz__subs"},(y=p.sharedSubscriptions)==null?void 0:y.slice(0,5).map(function(l){return _.R("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",jU(l))})))},LrA=function(p){p=p.data;
return _.R("div",{class:"yt-profile-info-view-model-wiz__activity"},[p.profileBadgeInfoYtWide,p.profileBadgeInfoChannelWide].map(function(y){var l,q,t,E,e;return y?_.R(_.a4,null,_.R("div",{class:"yt-profile-info-view-model-wiz__header"},_.R("div",{class:"yt-profile-info-view-model-wiz__section-title"},y==null?void 0:y.profileSectionTitle),_.R("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.R("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},y==null?void 0:(l=y.commentBadge)==
null?void 0:l.commentDesc),(y==null?0:(q=y.commentBadge)==null?0:q.blackHeartDesc)?_.R("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.R("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.R(_.W$,{data:{thumbnails:[{url:y==null?void 0:(t=y.commentBadge)==null?void 0:t.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.R("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},y==null?void 0:(E=
y.commentBadge)==null?void 0:E.blackHeartDesc))),_.R("div",{class:"yt-profile-info-view-model-wiz__badge"},y==null?void 0:(e=y.badges)==null?void 0:e.map(function(C){return _.R(QMd,{data:C})}))):null}))},k9m=function(p){p=p.data;
return _.R("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.R(LrA,{data:p}),p.videosHorizontalShelf?_.R("div",{class:"yt-profile-info-view-model-wiz__videoShelfContainer"},jU(p.videosHorizontalShelf)):null,p.comments?_.R(rx1,{data:p}):null,p.sharedSubscriptionsTitle?p.subscriptionsAccessButtonCommand?_.R(SsR,{data:p}):_.R(FrV,{data:p}):null)},DH7=function(p){p=p.data;
if(p){var y=p.profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD";y=Ndi(p.profileIdentityInfo,{profileIdentityInfoViewModel:{hideDivider:y,isChannelInfoCard:y}})}else y=void 0;p=p?Ndi(p.profileInfo):void 0;return _.R("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},y,p)},HvA=function(p,y){var l=_.bjr(y,{},p,!0);
return new Promise(function(q,t){l.listenOnce("n",function(){t(Error("hl`"+l.JSC$29148_getErrorDescription()))});
l.listenOnce("l",function(){var E=l.getResponseCode();if(E!==200)t(Error("il`"+y+"`"+p.type+"`"+p.size+"`"+E));else try{q(JSON.parse(l.getResponseText()).encryptedBlobId)}catch(e){t(e)}});
l.run()})},TdO=function(p){return p.substring(p.indexOf(":")+1,p.indexOf(";"))},xHV=function(p){return new Promise(function(y,l){var q=new FileReader;
q.onloadend=function(){try{var t=new Uint8Array(q.result);t.length<8&&l(void 0);var E=t.subarray(0,8);t="";for(var e=0;e<E.length;e++)t+=("0"+E[e].toString(16)).substr(-2);t.startsWith("ffd8ff")?y("image/jpeg"):t.startsWith("47494638")?y("image/gif"):t.startsWith("89504e470d0a1a0a")?y("image/png"):t.startsWith("424d")?y("image/bmp"):y(void 0)}catch(C){l(C)}};
q.onerror=l;q.readAsArrayBuffer(p)})},Bd7=function(p){return new Promise(function(y,l){var q=new Image;
q.crossOrigin="anonymous";q.onload=function(){var t=document.createElement("canvas");t.width=q.naturalWidth;t.height=q.naturalHeight;var E=t.getContext("2d");if(!E)throw Error("jl");E.drawImage(q,0,0);E=TdO(p);t.toBlob(function(e){e?y(e):l()},E)};
q.src=p})},v8R=function(p,y){var l;
if(((l=_.G(p,_.FC))==null?void 0:l.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var q;_.Ub((q=y.hostElement)!=null?q:y,"yt-shorts-reset");_.y$Q(_.WC().resolve(_.LI),p).then(function(E){fLV(E,y,p)})}else{var t;
_.ny((t=y.hostElement)!=null?t:y,[p]).then(function(E){E&&fLV(E.data,y,p)})}},fLV=function(p,y,l){if(p){var q=_.G(p.replacementEndpoint,_.FC);
if(q){p.sequenceContinuation&&(q.sequenceParams=p.sequenceContinuation);var t;_.Ub((t=y.hostElement)!=null?t:y,"yt-navigate",{endpoint:p.replacementEndpoint})}else if((p==null?void 0:p.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(p==null?0:p.watchStatus)&&_.G(p.watchStatus,_.K4Z)){var E;_.Ub((E=y.hostElement)!=null?E:y,"yt-navigate",{endpoint:l})}}},Xm7=function(p){var y=_.WC().resolve(_.yF),l=sJw(y.getState())||"";
y=_.bcL(y.getState())||"";l=l==="ytd-browse"&&y==="home";return _.n("web_guide_entry_enable_cache_for_non_home_pages")?(p=(p==null?void 0:p.navigationEndpoint)&&_.K4(p.navigationEndpoint)==="home",{disableCache:l&&p}):{disableCache:l}},dHO=function(p){if(!p)return!1;
try{if(p.host&&p.host.tagName==="YT-FORMATTED-STRING"&&p.host.id==="contenteditable-textarea"||p.nodeType===Node.ELEMENT_NODE&&p.tagName==="YTD-COMMENT-INPUT")return!0}catch(y){return!1}return dHO(p.parentNode)},bd=function(p){return p?p.tagName==="A"&&p.href&&p.classList.contains("yt-simple-endpoint"):!1},OvO=function(p){return p?p.tagName==="IMG"&&p.classList.contains("emoji"):!1},o89=function(p,y,l){if(!p)return null;
var q=bd(p);if(q&&l)return y=p.pathname.substring(p.pathname.indexOf("/channel/")+9),document.createTextNode("@"+y);if(q&&!l)return document.createTextNode("");if(OvO(p))return l=p.alt,p=p.dataset.emojiId,!p&&y&&(y=_.Qn(y,l))&&y.isCustomEmoji&&(p=y.emojiId),p?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+p+">"):document.createTextNode(l);q=p.cloneNode(!1);for(var t=0;t<p.childNodes.length;++t){var E=o89(p.childNodes[t],y,l);E&&q.appendChild(E)}return q},nc=function(p){return p?bd(p)?p:nc(p.lastChild):
null},zb6=function(p){return p?bd(p)?p:zb6(p.firstChild):null},YsV=function(p){if(!p)return null;
for(var y=p.previousSibling;y;)if(y.nodeType===Node.ELEMENT_NODE&&y.nodeName==="BR")y=y.previousSibling;else if(y.nodeType===Node.TEXT_NODE&&/\s+/.test(y.textContent))y=y.previousSibling;else break;(y=nc(y))?p=y:p=(p=p.parentNode)?nc(p.previousElementSibling):null;return p},ILL=function(p){if(!p)return null;
for(var y=p.nextSibling;y;)if(y.nodeType===Node.ELEMENT_NODE&&y.nodeName==="BR")y=y.nextSibling;else if(y.nodeType===Node.TEXT_NODE&&/\s+/.test(y.textContent))y=y.nextSibling;else break;return(y=zb6(y))?y:ILL(p.parentNode)},pLO=function(p){var y=_.wP(),l=y.JSC$11230_getStartNode();
if(!dHO(l.parentNode))return null;y=y.JSC$11230_getStartOffset();if(l.nodeType===Node.TEXT_NODE){var q=_.dV(l,bd);if(q){if(p&&y===0||!p&&y===l.length)return q}else{if(p&&y===l.length)return!l||l.nodeName==="BR"||l.nextElementSibling&&_.iI(l.nextElementSibling,"display")==="block"?null:zb6(l.nextElementSibling);if(!p&&y===0)return l?nc(l.previousElementSibling):null}}if(l.nodeType===Node.ELEMENT_NODE)if(p){if(0<=y&&y<l.childNodes.length)return zb6(l.childNodes[y])}else if(0<y&&y<=l.childNodes.length)return nc(l.childNodes[y-
1]);return null},ylm=function(p,y,l){if(!p)return null;
if(p.nodeType===Node.TEXT_NODE)if(l){var q=YsV(p);if(q&&!/^\s+\S/.test(p.wholeText.substr(0,y)))return q}else if((q=ILL(p))&&!/\S\s+/.test(p.wholeText.substr(y,p.wholeText.length)))return q;return p.nodeType===Node.ELEMENT_NODE?l?YsV(p.childNodes[y]):ILL(p.childNodes[y]):ylm(p.parentNode,y,l)},lSm=function(p){if(p.hasChildNodes())switch(p.tagName){case "DIV":case "A":case "SPAN":var y="";
for(p=p.firstChild;p;p=p.nextSibling)y+=lSm(p);return y;default:return""}else switch(p.nodeType){case 3:return p.textContent;default:return""}},qU9=function(p){p=p.data;
return _.R("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.R("div",null,_.R(_.CF,{text:p.title})),p.subtitle?_.R("div",{class:"ytd-menu-title-renderer__subtitle"},_.R(_.CF,{text:p.subtitle})):null)},sFV=function(p){switch(p){case "UNKNOWN_FORMAT_TYPE":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN";
case "HD_1080":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080";case "SD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD";case "LD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD";default:return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD"}},tmV=function(p){return p.map(function(y){return{settingsRadioOptionRenderer:{title:_.Ut(y.name),
asideText:_.Ut(y.approximateSize),id:sFV(y.format)}}})},JlT=function(p){if(p&&p.length!==0)return p.filter(Egd()).map(function(y){return{settingsRadioOptionRenderer:{title:y.name,
asideText:y.approximateSize,id:sFV(y.formatType)}}})},Gn=function(p){if(p)return p.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},clO=function(p,y){p=new Set(p!=null?p:[]);
if(p.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(p.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(p.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(p.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(p.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(y)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},eUd=function(p){var y=p.indexOf("(");
return y!==-1?p.substring(y+1,p.length-1):p},hUL=function(p){switch(p){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},uHV=function(p,y,l,q,t,E){var e=_.Ts.clone(CyR);
e.locale=_.OY("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;e.report={description:t||"<empty>"};t=_.OY("SBOX_SETTINGS",{});y=y.join(",");var C=Date.now();p={choice_cc:q,choice_id_cc:l,choices_sc:y,gl:t.REQUEST_DOMAIN,hl:t.REQUEST_LANGUAGE,query:p,time:C};E&&(p.choice_additional_comment_cc=E);_.MzZ(e,p)},RUm=function(p){var y=new Map;
y.set("authuser",_.OY("SESSION_INDEX","0"));return _.n0(p,y)},aSV=function(p){var y;
return _.h(function(l){switch(l.nextAddress){case 1:if(!p||!Wc6(p))return l.return(null);y=null;switch(_.OY("INNERTUBE_CLIENT_NAME")){case "WEB":return l.jumpTo(2);case "WEB_REMIX":y=p.getPlayer()}l.jumpTo(3);break;case 2:return l.yield(p.getPlayerPromise(),4);case 4:y=l.yieldResult;l.jumpTo(3);break;case 3:return l.return(y)}})},Wc6=function(p){return["ytd-player",
"ytmusic-player"].includes(String(p.tagName||"").toLowerCase())},med=function(p){p=Math.round(p);
return p%2?p-1:p},UeO=function(p){p=Math.round(p);
return p%2===0?p-1:p},$ed=function(p){var y,l,q;
if(p=(y=p.createPlaylistDialogFormSchema)==null?void 0:(l=y.fieldSchemas)==null?void 0:(q=l.title)==null?void 0:q.validationSchema)for(y=[p.syncStep,p.asyncStep].filter(function(t){return t!==void 0}),y=_.c(y),l=y.next();!l.done;l=y.next()){l=l.value.rules;
if(!l)break;l=_.c(l);for(l=l.next();!l.done;l=l.next())return _.G(l.value,_.nZw)}},blR=function(p){var y,l,q;
if(p=(y=p.createPlaylistDialogFormSchema)==null?void 0:(l=y.fieldSchemas)==null?void 0:(q=l.visibility)==null?void 0:q.validationSchema)for(y=[p.syncStep,p.asyncStep].filter(function(t){return t!==void 0}),y=_.c(y),l=y.next();!l.done;l=y.next()){l=l.value.rules;
if(!l)break;l=_.c(l);for(q=l.next();!q.done;q=l.next())if(q=_.G(q.value,jFV))return y=void 0,(y=q.translations)==null?void 0:y.visibilityNotValidErrorMessage}},ngw=function(){var p,y;
return(y=(p=_.WC().resolve(_.RK(_.hb)))==null?void 0:p())!=null?y:!1},Gpd=function(p){var y=21;
if(!p)return y;y+=p.headerTitle?27:0;y+=p.headerTitle&&p.hasHeaderActionHeader?4:0;return y+=p.headerTitle&&p.headerSubtitle?16:0},PyT=function(p){var y=0;
if(!p)return y;y+=p.hasFooterPrimaryButton||p.hasFooterSecondaryButton?48:0;y+=p.footerTrailingLabel||p.footerLeadingLabel?30:0;return y+=p.hasFooterPrimaryButton||p.hasFooterSecondaryButton||!p.footerTrailingLabel&&!p.footerLeadingLabel?0:12},AlR=function(p){var y=new _.V$,l=p;
return{subscribe:function(q){y.subscribe("changed",q)},
dispatch:function(q,t){var E=l;q==="Touch Start"?l=Object.assign({},E,{isAnimating:!1,initialY:t.event.touches[0].clientY}):q==="Touch Move"?(q=Math.min(t.fullContentWrapperHeight,t.contentHeightMap[t.contentWrapperId]+Gpd(t.header)-PyT(t.footer)),l=Object.assign({},E,{currentY:Math.max(t.contentScrollable?-1*(E.initialY-24):0,t.event.touches[0].clientY-E.initialY),maxHeightForContentWrapper:Math.min(q,Math.max(0,(E.isFullScreen?q:t.contentWrapperHeight)-E.currentY))})):l=q==="Snap To Full Screen"?
Object.assign({},E,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:t.maxHeight}):q==="Snap To Neutral Position"?Object.assign({},E,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:t.maxHeight}):q==="Close Sheet"?Object.assign({},E,{isAnimating:!0,currentY:t.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:t.maxHeight}):E;y.publish("changed",l)}}},Zlm=function(p){return _.Ff(function(y){p(y);
return!1})},MmT=function(){_.WC().resolve(_.Tu).closeSheet()},Vm7=function(p){var y,l,q,t,E,e,C,u,a,m,U;
return{headerTitle:(y=p.headerTitle)==null?void 0:y.call(p),headerSubtitle:(l=p.headerSubtitle)==null?void 0:l.call(p),headerActionHeader:p.headerActionHeader,footerPrimaryButton:p.footerPrimaryButton,footerSecondaryButton:p.footerSecondaryButton,footerButtonType:(q=p.footerButtonType)==null?void 0:q.call(p),footerLeadingLabel:(t=p.footerLeadingLabel)==null?void 0:t.call(p),footerTrailingLabel:(E=p.footerTrailingLabel)==null?void 0:E.call(p),shouldShowIcons:(e=p.shouldShowIcons)==null?void 0:e.call(p),
skipContentClick:(C=p.skipContentClick)==null?void 0:C.call(p),additionalClassName:(u=p.additionalClassName)==null?void 0:u.call(p),onClosedCallback:p.onClosedCallback,focusOnClose:(a=p.focusOnClose)==null?void 0:a.call(p),isDisabled:(m=p.isDisabled)==null?void 0:m.call(p),disabledCommand:(U=p.disabledCommand)==null?void 0:U.call(p),headerFn:p.headerFn,contentFn:p.contentFn,footerFn:p.footerFn,hasHeaderFn:p.hasHeaderFn(),hasContentFn:p.hasContentFn(),hasFooterFn:p.hasFooterFn(),hasFooterPrimaryButton:p.hasFooterPrimaryButton(),
hasFooterSecondaryButton:p.hasFooterSecondaryButton(),hasHeaderActionHeader:p.hasHeaderActionHeader()}},ggA=function(p){switch(p){case "FLEXBOX_FLEX_DIRECTION_ROW":return"row";
case "FLEXBOX_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "FLEXBOX_FLEX_DIRECTION_COLUMN":return"column";case "FLEXBOX_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse";default:return""}},QFu=function(p){switch(p){case "FLEXBOX_JUSTIFY_CONTENT_CENTER":return"center";
case "FLEXBOX_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "FLEXBOX_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around";default:return""}},Kcw=function(p){switch(p){case "FLEXBOX_ALIGN_ITEMS_CENTER":return"center";
case "FLEXBOX_ALIGN_ITEMS_START":return"flex-start";case "FLEXBOX_ALIGN_ITEMS_END":return"flex-end";case "FLEXBOX_ALIGN_ITEMS_STRETCH":return"stretch";default:return""}},wLd=function(p,y,l){y.forEach(function(q){_.Kw(_.WC().resolve(_.B_),q)});
_.$w(p,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",l])},Fcd=function(p,y,l,q){var t=_.G(l,_.E_).commandLifeCycleConfig;
t&&t.onStartCommand&&_.Gf(p,[t.onStartCommand],y);_.qR(y);var E=_.Js.instance;E&&_.cN(E,l)?_.eo(E,l,q).then(function(e){if(!e||(e==null?0:e.error))return e=_.G(l,_.E_).serializedTransactionFlowLoggingParams,_.sP(y),_.vL(new PB("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",e));_.sP(y);return{data:e}}).then(function(e){_.sP(y);
ilm(e.data);var C=e.data.command;C&&_.Gf(p,[C],y);C=rl1(l,e.data);if(!C){var u=e.data;e=!1;if(u&&u.command&&_.G(u.command,_.AO)){var a;u=((a=_.G(u.command,_.AO))==null?void 0:a.commands)||[];for(a=0;a<u.length;a++)if(_.G(u[a],_.PQr)){e=!0;break}}e||_.Xt('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!C&&t&&t.onSuccessCommand?_.Gf(p,[t.onSuccessCommand],y):C&&t&&t.onFailureCommand&&_.Gf(p,[t.onFailureCommand],y)},function(){_.sP(y);
t&&t.onFailureCommand&&_.Gf(p,[t.onFailureCommand],y);SUT(l)}):_.Bs(Error("Al"),"ERROR")},Lc7=function(p,y,l){var q=[y];
l&&q.push(l);return _.ny(p,q).then(function(t){var E=_.G(y,_.E_).serializedTransactionFlowLoggingParams,e=t.data,C=rl1(y,e);C?t=_.vL(new PB(C,E)):ilm(e);return t},function(){var t=_.G(y,_.E_).serializedTransactionFlowLoggingParams;
SUT(y);return _.vL(new PB("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",t))})},rl1=function(p,y){p=_.G(p,_.E_).serializedTransactionFlowLoggingParams;
var l=null;switch(y.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":l="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":l="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":l="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}l?_.tx(l,p):Oxd(p);return l},SUT=function(p){_.tx("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.G(p,_.E_).serializedTransactionFlowLoggingParams)},
ilm=function(p){if(p.trackingParams){var y=_.B2(),l=_.xc();
y&&l&&_.pW(y,l,_.Tp(p.trackingParams))}},kpL=function(p,y,l){var q=_.Js.instance,t=_.Xgo(_.OY("YPC_MB_URL")),E=(new _.fMt).init(),e=_.vML(),C=_.G(l,_.jiB).languageCode;
C===void 0?_.Bs(Error("Ei"),"ERROR"):_.Ni([E,t]).then(function(){var u={ctk:payments.business.integration.ClientTokenFactory.createClientToken(C,e)};q&&_.cN(q,l)?_.eo(q,l,u).then(function(a){return{data:a}}).then(function(a){_.Ub(y,"yt-service-request-completed",a);
a.code!=="ERROR"&&(a=a.data.command)&&_.Gf(p,[a],y)}):_.Bs(Error("Al"),"ERROR")})},HlT=function(p,y,l,q){var t=_.Js.instance;
t&&_.cN(t,l)?_.eo(t,l,q).then(function(E){return{data:E}}).then(function(E){NWw(p,y,l,E)},function(){Ded(l)}):(t=_.WC().resolve(_.RK(_.vI)))&&t.requestDataForServiceEndpoint(l,q).then(function(E){NWw(p,y,l,E)},function(){Ded(l)})},NWw=function(p,y,l,q){_.Ub(y,"yt-service-request-completed",q);
if(q.code&&q.code=="ERROR")Ded(l);else{(q=q.data.commands)&&_.Gf(p,q,y);var t;(p=(t=_.G(l,_.Zoi))==null?void 0:t.serializedYpcPauseFlowLoggingParams)&&p&&_.yH("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",p)}},Ded=function(p){var y;
(p=(y=_.G(p,_.Zoi))==null?void 0:y.serializedYpcPauseFlowLoggingParams)&&p&&_.yH("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",p,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},BWO=function(p,y,l){var q=_.Js.instance;
q&&_.cN(q,l)?_.eo(q,l).then(function(t){return{data:t}}).then(function(t){TW1(p,y,l,t)},function(){xe6(l)}):(q=_.WC().resolve(_.RK(_.vI)))&&q.requestDataForServiceEndpoint(l).then(function(t){TW1(p,y,l,t)},function(){xe6(l)})},TW1=function(p,y,l,q){_.Ub(y,"yt-service-request-completed",q);
q.code&&q.code=="ERROR"?xe6(l):((q=q.data.commands)&&_.Gf(p,q,y),(p=_.G(l,_.Msv).serializedYpcResumeFlowLoggingParams)&&p&&_.yH("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",p))},xe6=function(p){(p=_.G(p,_.Msv).serializedYpcResumeFlowLoggingParams)&&p&&_.yH("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",p,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},fSA=function(p){p=p===void 0?{}:p;
_.WC().resolve(_.oj$).showFeedbackDialog(p.customProductData,p.feedbackContent,p.onFeedbackSubmitted,p.bucket)},vgu=function(p){p=p===void 0?{}:p;
_.WC().resolve(_.oj$).showHelpDialog(p.helpContext,p.articleId,p.productData)},XLi=function(){vgu()},de9=function(){fSA()},og1=function(p,y,l){var q,t,E,e,C,u,a;
return _.h(function(m){switch(m.nextAddress){case 1:q=_.G(p,OlV);if((t=q)==null?0:t.productId){u={productId:q.productId,bucket:q.bucket,enableAnonymousFeedback:(C=q.enableAnonymousFeedback)!=null?C:!0,allowNonLoggedInFeedback:!0};a={feedbackChoice:l.feedbackChoice};if(!_.n("web_collect_offline_state")){m.jumpTo(8);break}_.Ve(m,9);return m.yield(Ewd(a),11)}e={bucket:(E=q)==null?void 0:E.bucket};if(!_.n("web_collect_offline_state")){m.jumpTo(4);break}e.customProductData={};_.Ve(m,5);return m.yield(Ewd(e.customProductData),
7);case 7:_.pK(m,4);break;case 5:_.i6(m);case 4:fSA(e);m.jumpTo(0);break;case 11:_.pK(m,8);break;case 9:_.i6(m);case 8:_.SDL(a),_.rDt("GFEEDBACK",a),q.productId==="5295751"&&(a.client_attestation=Number(_.OY("CATSTAT",0))),q.productId==="5295751"&&(a.client_time=Date.now()/1E3/3600),q.productId==="5295751"&&(a.original_playback_id=_.cPM||""),_.MzZ(u,a),_.rR(m)}})},zUw=function(p){if(p=_.G(p,_.D7a)){var y={bucket:p.bucketIdentifier};
p.additionalDatas&&(y.customProductData={},p.additionalDatas.forEach(function(l){if(l=l.userFeedbackEndpointProductSpecificValueData)y.customProductData[l.key]=l.value}));
fSA(y)}},YUO=function(p){var y=_.pt.getInstance();
var l=_.g$("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var q=_.g$("DELETE",void 0,"Delete"),t=_.g$("CANCEL",void 0,"Cancel");l=RIV(l,void 0,q,t,{signal:"DELETE_ALL_DOWNLOADS"});_.oL(y,[{openPopupAction:l}],p)},p$d=function(){return _.h(function(p){return p.nextAddress==1?p.yield(_.WC().resolve(_.bq),2):p.yield(IS1(),0)})},ybu=function(p){var y,l;
return _.h(function(q){return q.nextAddress==1?(l=(y=_.G(p,_.zX))==null?void 0:y.targetId)?q.yield(_.WC().resolve(_.bq),3):q.jumpTo(0):q.yield(_.WC().resolve(_.jQ).deleteVideo(l),0)})},q5A=function(p){var y,l;
return _.h(function(q){return q.nextAddress==1?(l=(y=_.G(p,_.zX))==null?void 0:y.targetId)?q.yield(_.WC().resolve(_.bq),3):q.jumpTo(0):q.yield(lRT(_.WC().resolve(_.jQ),l),0)})},twV=function(p){var y,l;
return _.h(function(q){return(l=(y=_.G(p,_.zX))==null?void 0:y.targetId)?q.yield(sx6(l),0):q.jumpTo(0)})},Jb9=function(){_.n("kevlar_woffle_refresh_dl_load_killswitch")||ESO()},ex9=function(){_.n("kevlar_woffle")&&_.x9.instance&&cbR()},CpV=function(p){var y;
if((y=_.G(p,_.wi))==null||!y.videoId)return!1;hxu(_.WC().resolve(_.jQ),_.G(p,_.wi),p.clickTrackingParams);return!0},RxO=function(p){var y;
if((y=_.G(p,_.ij))==null||!y.playlistId)return!1;ufV(_.WC().resolve(_.jQ),_.G(p,_.ij),p.clickTrackingParams);return!0},aRi=function(p){var y=_.G(p,_.CVU);
(y==null?void 0:y.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(y==null?void 0:y.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||WR9(_.WC().resolve(_.jQ),_.G(p,_.CVU))},UWw=function(p){p=_.G(p,_.xlr);
var y;(p==null?0:(y=p.actions)==null?0:y.length)&&mWO(p)},bY6=function(p){var y,l;
return _.h(function(q){y=_.G(p,$WA);return(l=y)!=null&&l.localWatchHistoryCommandType?q.yield(jxi(y),0):q.return()})},nS6=function(p){setTimeout(function(){requestAnimationFrame(p)},80)},GTi=function(p){return Object.entries(p).map(function(y){return y.join(":")}).join(";")},Abi=function(p){var y,l,q;
_.h(function(t){if(t.nextAddress==1)return t.yield(PpA(),2);y=t.yieldResult;l=_.wW.instance;switch(y){case "granted":q=p.getLocationCommand;break;case "denied":q=p.openDeniedDialogAction;break;case "prompt":q=p.openCollectionDialogAction;break;default:q=p.openCollectionDialogAction}q&&l.resolveCommand(q);_.rR(t)})},PpA=function(){var p,y;
return _.h(function(l){if(l.nextAddress==1)return p="prompt",navigator.permissions?l.yield(navigator.permissions.query({name:"geolocation"}),3):l.jumpTo(2);l.nextAddress!=2&&(y=l.yieldResult,p=y.state);return l.return(p)})},Mww=function(){_.h(function(p){return p.yield(_.ZYT(),0)})},VwV=function(){var p,y,l;
return _.h(function(q){if(q.nextAddress==1)return p=_.WC().resolve(_.XC),p?q.yield(_.eo(p,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.vs(Error("Dl")),q.return(void 0));if(y=q.yieldResult){if(y.errorMetadata)return _.vs(Error("El`"+y.errorMetadata.status+"`"+y.error)),q.return(void 0);l=y.datasyncIds;_.pt1=l.length;return q.return(l)}_.vs(Error("Fl"));return q.return(void 0)})},gSu=function(){VwV().then(function(p){p&&(wKO(p),zod(p),PL6(p),eSO(p))})},QxV=function(p){_.TR.addLowPriorityJob(function(){var y,
l,q,t,E;
return _.h(function(e){switch(e.nextAddress){case 1:if(_.n("ytidb_clear_optimizations_killswitch")){e.jumpTo(2);break}y=_.iv("clear");if(y.startsWith("V")&&y.endsWith("||")){var C=[y];wKO(C);zod(C);PL6(C);eSO(C);return e.return()}l=AhO();q=hSA();return e.yield(YnV(),3);case 3:return t=e.yieldResult,e.yield(it9(),4);case 4:if(E=e.yieldResult,!(l||q||t||E))return e.return();case 2:p.isNetworkAvailable()?gSu():p.listenOnce("publicytnetworkstatus-online",gSu),_.rR(e)}})})},Au=function(p){p={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.EK(p)}}}};_.wW.instance&&_.wW.instance.resolveCommand(p)},KRT=function(p){if(p){var y=_.Ll();
_.Mb(y,3854,void 0,{layer:0,parentLayer:4});switch(p){case 1:var l=238708;break;case 2:l=238715;break;case 3:l=238710;break;case 6:l=238709}l&&(p=_.FH(y,{veType:l}))&&_.Qv(y,p)}},w$d=function(p){if(p){var y=_.Ll();
_.Mb(y,3854,void 0,{layer:0,parentLayer:4});switch(p){case 1:var l=238714;break;case 2:l=238711;break;case 8:l=238709;break;case 7:l=238713;break;case 3:case 4:case 5:l=238712}l&&(p=_.FH(y,{veType:l}))&&_.Qv(y,p)}},iYR=function(p){switch(p.latencyType){case 0:_.BW("consent_primitive_flow");
_.fy("cpit",p.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.fy("cpist",p.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.fy("cprtif",p.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.fy("cprtli",p.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.fy("cprt",p.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.fy("cpdt",p.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.fy("cpjct",p.timestampEpochMillis,"consent_primitive_flow")}},
xWL=function(p,y){var l,q,t,E,e,C,u,a,m,U,b,P,Z,K,F,L,T,O,f,v;
return _.h(function(z){switch(z.nextAddress){case 1:_.Ve(z,2);(q=(l=_.G(p,rbL))==null?void 0:l.serializedConsentRequest)||(q=(t=_.G(p,S51))==null?void 0:t.serializedConsentRequest);q&&(E=FRL(_.hZ(q)));if(E===void 0)return z.return();e=LR1(E);e.latencyCallback=iYR;y&&kTd(e,function(){y.then(function(sc){sc.pauseVideo();(new NDi).increment()})});
return((C=_.G(p,rbL))==null?void 0:C.consentAction)==="CONSENT_ACTION_PREWARM"||((u=_.G(p,S51))==null?void 0:u.consentAction)==="CONSENT_ACTION_PREWARM"?z.yield(DWd(e),5):z.yield(HY9(e),6);case 6:a=z.yieldResult;m=_.kt(a,Zc);if(m===1){if(((U=_.oN(a,M2,1,Zc))==null?void 0:_.v0(U,1))===1||((b=_.oN(a,M2,1,Zc))==null?void 0:_.v0(b,1))===2||((P=_.oN(a,M2,1,Zc))==null?void 0:_.v0(P,1))===3)_.G(p,S51)?Au(_.g$("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Au(_.g$("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));KRT((Z=_.oN(a,M2,1,Zc))==null?void 0:_.v0(Z,1),_.u4(a,TDA,3,_.RY()))}else m===2?(((K=Vw(a))==null?void 0:_.v0(K,1))===5?_.G(p,S51)?Au(_.g$("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Au(_.g$("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((F=Vw(a))==null?void 0:_.v0(F,1))===1||((L=Vw(a))==null?void 0:_.v0(L,1))===4?Au(_.g$("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((T=Vw(a))==null?void 0:_.v0(T,1))===7&&((O=E)==null?void 0:(f=_.MF(O,gE,4))==null?void 0:_.v0(f,4))!==1&&Au(_.g$("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),w$d((v=Vw(a))==null?void 0:_.v0(v,1))):Au(_.g$("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));z.jumpTo(5);break;case 5:_.pK(z,0);break;case 2:_.i6(z),Au(_.g$("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.rR(z)}})},fR1=function(){if(!BDO.has("Worker")){BDO.set("Worker",
!0);
var p={api:"BROWSER_API_WEB_WORKER"};p.available="Worker"in window?!0:!1;_.TX("apiTest",p)}},vS7=function(p){return typeof p==="undefined"?"-1":String(Math.ceil(p/1048576))},oSw=function(p,y){X$1(new dWV(_.G(y,OYO).addToken,_.G(y,OYO).commonToken)).then(function(){_.Ub(p,"yt-invoke-instrument-manager-action-completed")},function(l){_.Ub(p,"yt-invoke-instrument-manager-action-error",l)})},zxi=function(p){return _.y0(p)},Y5R=function(p){var y=1;
p=p.split(":");for(var l=[];y>0&&p.length;)l.push(p.shift()),y--;p.length&&l.push(p.join(":"));return l},IRA=function(p,y){y=p.aspectRatio()<=y.aspectRatio()?y.width/p.width:y.height/p.height;
p.scale(y)},pN7=function(p,y){y=p.aspectRatio()>y.aspectRatio()?y.width/p.width:y.height/p.height;
return p.scale(y)},ys9=function(p){var y=new _.Pf;
return _.z6(y,11,p)},l6T=function(p){var y={};
p=p.getAllResponseHeaders().split("\r\n");for(var l=0;l<p.length;l++)if(!_.ej(p[l])){var q=Y5R(p[l]),t=q[0];q=q[1];if(typeof q==="string"){q=q.trim();var E=y[t]||[];y[t]=E;E.push(q)}}return _.Ts.map(y,function(e){return e.join(", ")})},LA=function(p,y){return p.JSC$9731_xhr_?p.JSC$9731_xhr_.getResponseHeader(y):null},qZ7=function(p,y){if(p.isDisposed())throw Error("Ea");
p.cY.yq("n");var l=_.Xn(p.cY,function(){return p.nz0([y.m3,y.dGX,y.oGP,y.vOF])},"n");
p.cY.kik(l.length);p.cY.iC();return l},Qw=function(p,y,l){Array.isArray(l)||(l=[String(l)]);
_.qYP(p.JSC$9968_queryData_,y,l);return p},cbR=function(){var p=_.x9.instance;
_.h(function(y){return p.deferredInstallPrompt?y.yield(p.deferredInstallPrompt.prompt(),0):y.jumpTo(0)})},sWd=function(p,y,l){if(_.zl(p))_.lv(p,y,l);
else for(p=_.mtN(p);;){var q=p.next();if(q.done)break;y.call(l,q.value,void 0,p)}},toR={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}"]},yy9,ly1,qw7,sku,tq7,EFd,JyL,cyR,eQO,sx6,lRT,IS1,hQ9,CIR,urO,RQd,WV6,ayR,ufV,hxu,mGR,UGT,$GA,ESO,WR9,jkw,mWO,bFO,jxi,nFi,GYA,PIT,AyR,ZF7,MqV,VqV,gFA,
Qkd,KVO,wn1,iFd,n81,ryT,Sww,FVd,LVw,kYO,NP1,DGi,Wrw,CtO,HFR,F5,Lc,kL,N2,TPd,xGO,BPi,fyd,vFV,XnT,dG7,OFT,oFR,zQi;toR={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 EoL=function(p,y){var l=[];sWd(y,function(q){try{var t=_.mX.prototype.getWrapper.call(this,q,!0)}catch(E){if(E=="Storage: Invalid value was encountered")return;throw E;}t===void 0?l.push(q):_.aei(t)&&l.push(q)},p);
return l},JsO=function(p,y){EoL(p,y).forEach(function(l){_.mX.prototype.remove.call(this,l)},p)},cs6=function(p){var y=_.tT;
y._minimumZ=Math.max(y._minimumZ,p)},eWu=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],hWd=function(p,y){_.er(p.vm);p.vm=y},Cj1=function(p,y,l,q){p.setState(5);
var t=!!p.xOV&&eWu.includes(_.eM(p.xOV)||"");try{var E=new _.d5({program:y,globalName:l,rVk:{disable:!_.n("att_web_record_metrics")||!_.n("att_skip_metrics_for_cookieless_domains_ks")&&t,ak:"aGIf"}});E.f1g.then(function(){p.setState(6);q&&q(y)});
hWd(p,E)}catch(e){p.setState(7),e instanceof Error&&_.vs(e)}},up1=function(p,y,l,q,t,E){var e=e===void 0?"trayride":e;
l?(p.setState(2),_.zc(_.kP(l),function(){if(window[e])Cj1(p,q,e,t);else{p.setState(3);var C=_.SAt(l),u=document.getElementById(C);u&&(_.NWo(C),u.parentNode.removeChild(u));_.vs(new _.SM("BL:ULB",l))}},E)):y?(E=_.gg("SCRIPT"),y instanceof _.E8?_.cH(E,y):E.textContent=y,E.nonce=_.tw(document),document.head.appendChild(E),document.head.removeChild(E),window[e]?Cj1(p,q,e,t):(p.setState(4),_.vs(new _.SM("BL:ULBJ")))):_.vs(new _.SM("BL:ULV"))},RW6=function(){this.state=1;
this.vm=null;this.xOV=void 0};
_.J=RW6.prototype;_.J.initialize=function(p,y,l,q){this.xOV=q;if(p.program){var t;q=(t=p.interpreterUrl)!=null?t:null;if(p.interpreterSafeScript)t=_.Jxl(p.interpreterSafeScript);else{var E;t=(E=p.interpreterScript)!=null?E:null}p.interpreterSafeUrl&&(q=_.xQ(p.interpreterSafeUrl).toString());up1(this,t,q,p.program,y,l)}else _.vs(Error("lf"))};
_.J.isInitialized=function(){return!!this.vm};
_.J.getState=function(){return this.state};
_.J.isLoading=function(){return this.state===2};
_.J.invoke=function(p){p=p===void 0?{}:p;var y;this.vm?y=qZ7(this.vm,{m3:p}):y=null;return y};
_.J.dispose=function(){hWd(this,null);this.setState(8)};
_.J.setState=function(p){this.state=p};
var Wmi=function(p,y){return p.vm.snapshot(y)},a6u=function(p,y){var l=_.UC("botguard_async_snapshot_timeout_ms",3E3);
y=y===void 0?{}:y;l=l===void 0?3E3:l;return p.vm?new Promise(function(q,t){var E=!1,e=_.TR.addJob(function(){E=!0;t(Error("mf"))},1,l);
p.vm?Wmi(p,{m3:y}).then(function(C){_.TR.cancelJob(e);E||q(C)}).catch(function(C){_.TR.cancelJob(e);
E||t(C)}):(_.TR.cancelJob(e),q(null))}):Promise.resolve(null)},mrO=["att/log"],Uru;
Uru={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var $rV={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},jWi=function(p,y){return _.KW(p,{mode:"readwrite",enableRetries:!0},function(l){return _.RF5(l,y,"settingEntity")})},bX7=function(p,y,l){return _.KW(p,{mode:"readonly",
enableRetries:!0},function(q){return _.v$i(q,y,l)})},no6=function(p){if(!p.storage)return!1;
a:{if(p.storage){try{var y=p.storage.get("TLPQtimestamp")}catch(l){}p=Number(y);if(!isNaN(p))break a}p=void 0}return p?Date.now()-p<864E5:!1},G4i=function(p){if(p.storage){try{var y=p.storage.get("TLPQindex")}catch(l){}p=Number(y);
if(!isNaN(p))return p}},Pjd=function(p,y){p.queueProxy&&y.forEach(function(l){if(l.videoId&&l.trackingParams&&p.queueProxy instanceof _.Y7){var q=_.B2();
p.queueProxy.attributionData.set(l.videoId,{enqueueingVe:_.Tp(l.trackingParams).getAsJson(),enqueueingCsn:q?q:void 0,clientEnqueueingTimeMs:Math.floor((0,_.uM)()).toString()})}})},Asd=function(p){var y=_.Mli(p);
y!=p.currentSnapState_&&(p.currentSnapState_=y,p.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},Kc=function(p){this.JSC$13036_networkManager_=p;
this.partCallbacks_=[]};
Kc.prototype.getCacheKeyForEndpoint=function(p){return _.om5(p,!1)};
Kc.prototype.onPartsCallback_=function(p){this.partCallbacks_.forEach(function(y){p&&y(p)})};
var wE=function(p,y,l){Kc.call(this,p);this.player_=y;this.autoplayData_=l};
_.A(wE,Kc);wE.prototype.getCacheKeyForEndpoint=function(p){return _.om5(p,!!this.autoplayData_)};
wE.prototype.getTempData=function(p,y){y=y.timeBeforeNextVideo;p={itct:p.clickTrackingParams,lact:_.Rd(),pbis:y,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(p.autonav=1);return p};
wE.prototype.getXhrParams=function(p){return Object.assign({pbj:"prefetch"},p)};
wE.prototype.getParams=function(p){p={frags:p.fragmentsRequested.join(",")};_.n("kevlar_droppable_prefetchable_requests")&&(p.prefetch=1);return p};
var ZXw=function(p){p.playerEvents_.forEach(function(y){p.player.removeEventListener(y.eventName,y.callback)});
p.playerEvents_.length=0},id=function(p,y,l){this.player=p;
this.JSC$13046_taskManager=y;this.prefetchDelay=l;this.completionResolver_=null;this.playerEvents_=[]};
id.prototype.start=function(){var p=this;this.completionResolver_=_.hs();_.DO(this.completionResolver_.promise,function(){ZXw(p);p.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var MoV=function(p,y,l){p.player.addEventListener(y,l);p.playerEvents_.push({eventName:y,callback:l})},Voi={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},gow={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},QWV=function(p,y,l){id.call(this,p,y,l);this.cueId_="playbackTrigger-"+Math.random()};
_.A(QWV,id);
QWV.prototype.prepareTrigger=function(p){var y=this,l=this.player.getDuration(),q=this.player.getVideoData(),t=q.isLive&&q.hasProgressBarBoundaries;if(t&&q.progressBarEndPositionUtcTimeMillis){var E=q.progressBarEndPositionUtcTimeMillis/1E3;isNaN(E)||(l=E)}var e=0;this.prefetchDelay>=0?t?q.progressBarStartPositionUtcTimeMillis&&(q=q.progressBarStartPositionUtcTimeMillis/1E3,isNaN(q)||(e=q+this.prefetchDelay)):e=this.prefetchDelay:e=l+this.prefetchDelay;t?this.player.addUtcCueRange(this.cueId_,e,l):
this.player.addCueRange(this.cueId_,e,l);_.DO(p.promise,function(){y.player.removeCueRange(y.cueId_)});
MoV(this,"onCueRangeEnter",function(C){C==y.cueId_&&p.resolve(l-e)})};
var KmA=function(p,y){p.fragmentConfiguration_[y].requiredKeys.every(function(l){return!!p.prefetchedData_[l]})&&(p.validatedFragments_.push(y),y=p.missingFragments_.indexOf(y),y!==-1&&p.missingFragments_.splice(y,1))},wN1=function(p){p.prefetchedFragments_.forEach(function(y){KmA(p,y)})},iXi=function(p,y,l){this.pageFragments_=p;
this.prefetchedFragments_=y;this.fragmentConfiguration_=gow;this.prefetchedData_=l;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;wN1(this)},rsu=function(){},SZu=function(p){this.JSC$13060_playlistManager_=p};
_.A(SZu,rsu);SZu.prototype.getPrefetchEndpoint=function(){return this.JSC$13060_playlistManager_.getAutoplayEndpoint()};
var Fmi=function(p){this.autonavEndpoints_=p};
_.A(Fmi,rsu);Fmi.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var LmV=function(p,y,l,q,t){this.autonavEndpoints=p;this.foregroundTrigger=y;this.backgroundTrigger=l;this.pageType=q;this.isInPlaylist=t},k41=function(p,y){if(p.webPrefetchData&&p.webPrefetchData.navigationEndpoints&&p.webPrefetchData.navigationEndpoints.length){p=p.webPrefetchData.navigationEndpoints;
var l=_.G(p[0],_.Eb);if(l.watchEndpointSupportedPrefetchConfig&&l.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var q=l.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;l=q.playbackRelativeSecondsPrefetchCondition;l=typeof l==="number"&&Math.abs(l)<y.videoDuration?l:void 0;q=q.countdownUiRelativeSecondsPrefetchCondition;q=typeof q!=="number"||_.n("prefetch_job_config_cleanup_ks")&&y.inPlaylist?void 0:q;if(typeof q==="number")return new LmV(p,y.makeUpNextTrigger(q),y.makePlaybackTrigger(q),
"watch",y.inPlaylist);if(typeof l==="number")return new LmV(p,y.makePlaybackTrigger(l),null,"watch",y.inPlaylist)}}},Nii=function(p){return p.prefetchJobConfig_.backgroundTrigger?_.YZ(_.izL)()==0?p.prefetchJobConfig_.backgroundTrigger:p.prefetchJobConfig_.foregroundTrigger:p.prefetchJobConfig_.foregroundTrigger},DrR=function(p){_.SJ(document,"visibilitychange",p.onVisibilityChange_,!1,p)},rE=function(p){Kc.call(this,p)};
_.A(rE,Kc);rE.prototype.getCacheKeyForEndpoint=function(p){return Kc.prototype.getCacheKeyForEndpoint.call(this,p)};
rE.prototype.getTempData=function(){return{}};
rE.prototype.getXhrParams=function(p){return p};
rE.prototype.getParams=function(){return{}};
var HX1=function(p,y,l){var q=p.prefetchDelay*1E3;if(Math.abs(q)>y)l.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var t=q,E=y-q;q<0&&(t=y+q,E=Math.abs(q));var e=p.JSC$13046_taskManager.addJob(function(){l.resolve(E/1E3)},10,t);
l.promise.thenCatch(function(){p.JSC$13046_taskManager.cancelJob(e)})}},Ti1=function(p,y,l){id.call(this,p,y,l)};
_.A(Ti1,id);Ti1.prototype.prepareTrigger=function(p){var y=this;MoV(this,"onAutonavCoundownStarted",function(l){HX1(y,l,p)})};
var xr7=function(p){p.pendingPrefetchJob_&&(p.pendingPrefetchJob_.cancel(),p.pendingPrefetchJob_=null)},Bi6=function(p,y,l){if(!p.triggeredTargets.has(y)){var q=_.bEV(p,y);
q.action=l;_.$3N(p,y,q)}},f6w=function(p){_.ElZ();
_.Xzo("cpt")&&_.vs(Error("lh"));_.l_.requestAnimationFrame(function(){_.l_.setTimeout(function(){_.fy("cpt");var y=_.d$("vpl"),l=_.d$("cpt");y&&l&&_.fy("ol",Math.max(y,l))})});
try{_.fy("fr_s"),p()}catch(y){_.Bs(y)}_.l_.requestAnimationFrame(function(){_.fy("bcp")})},voO=function(p,y){p.serviceEndpointHandlers.push(y)},XNm=function(p,y){y=p.pendingPages_.indexOf(y);
y>-1&&p.pendingPages_.splice(y,1)},drV=function(p,y){var l=_.KDV.indexOf(y);
l>-1&&_.KDV.splice(l,1);p.targetPage_==y?(p.abort(),_.iMN(p)):XNm(p,y)},OX1=function(p,y,l,q){y={challenge:y};
l&&(y.webResponse=l);return _.pI(p.innertubeTransportService,y,_.hB(mrO),q)},oo9=function(p,y,l){if(!y.challenge)throw Error("ni");
if(y.botguardData&&y.botguardData.program){var q=new RW6;q.initialize(y.botguardData,function(){a6u(q,{atr_challenge:y.challenge}).then(function(t){if(!t)throw Error("oi");return OX1(p,y.challenge,t,l)}).catch(function(t){_.vs(t);
return OX1(p,y.challenge,void 0,l)})},void 0)}else OX1(p,y.challenge,void 0,l)},zWA=function(p,y,l){var q={};
y.ids&&(q.ids=[].concat(_.xq(y.ids)));y.engagementType&&(q.engagementType=y.engagementType);return _.pI(p.innertubeTransportService,q,_.hB(_.CAM),l).then(function(t){if(!t)throw new _.SM("GetAttestationChallenge returned falsy");oo9(p,t,l)}).thenCatch(function(t){_.Bs(t)})},YZA=function(p,y,l){return new _.Ps(function(q,t){var E;
return _.h(function(e){if(e.nextAddress==1){var C=e.yield,u=y.engagementType,a=y.ids,m={};a=_.c(a!=null?a:[]);for(var U=a.next();!U.done;U=a.next())U=U.value,U.encryptedVideoId?m.encryptedVideoId=U.encryptedVideoId:U.externalChannelId?m.externalChannelId=U.externalChannelId:U.commentId?m.commentId=U.commentId:U.externalOwnerId?m.externalOwnerId=U.externalOwnerId:U.artistId?m.artistId=U.artistId:U.playlistId?m.playlistId=U.playlistId:U.externalPostId?m.externalPostId=U.externalPostId:U.shareId&&(m.shareId=
U.shareId);return C.call(e,uz9(u,m),2)}E=e.yieldResult;if(!E.challenge)return _.vs(Error("pi")),zWA(p,y,l).then(q,t),e.return();C=E;u={challenge:C.challenge};u.webResponse=C.webResponse;u.engagementType=y.engagementType;u.ids=y.ids;_.pI(p.innertubeTransportService,u,_.hB(mrO),l).then(q,t);_.rR(e)})})},UHV=function(p,y){var l,q,t,E;
_.h(function(e){if(e.nextAddress==1){l=_.G(y,_.IO$);if(!(l&&l.listId&&p.response&&p.response.playingVideoId)||p.listId!==l.listId)return e.return();p.index===void 0&&(p.index=0);return e.yield(_.gkr(p.JSC$12791_playlistNetworkManager,l.listId,p.index,p.response.playingVideoId),2)}q=e.yieldResult;if(!q)return e.return();t=q.playlistId;E=q.playlistPanelRenderer;p.setPlaylistData(t,E,q.autoplayRenderer);_.rR(e)})},I6R=function(p,y,l){var q=p.getParams(l),t=_.mru(y,q),E=p.getTempData(y,l);
E.endpoint=JSON.stringify(y);_.n("enable_unknown_lact_fix_on_html5")&&(_.WC().resolve(_.Xf),E.lact=_.Rd());var e={headers:{"X-YouTube-STS":_.OY("STS"),"x-youtube-csoc":1}};_.hO(t,E);return new _.Ps(function(C,u){var a=p.getXhrParams(q),m;_.n("kevlar_cache_on_ttl_player")&&(m=_.NB.instance);m&&_.zZQ(m,y)?_.tav(m,y,E,window.location.href).then(function(U){U?C(U):u()},u):_.M3N(p.JSC$13036_networkManager_,y,a,p.onPartsCallback_.bind(p),e).then(function(U){U?C(U):u()},u)})},pn9=function(p,y){p.triggerPromise_=
y.start();
p.triggerPromise_.then(function(l){var q=p.prefetchEndpointProvider_.getPrefetchEndpoint();if(q){var t=Voi[p.prefetchJobConfig_.pageType].prefetchedFragments;p.prefetchRequestPromise_=I6R(p.JSC$13072_networkPrefetchRequest_,q,{fragmentsRequested:t,timeBeforeNextVideo:l});p.prefetchResponseCacheKey_=p.JSC$13072_networkPrefetchRequest_.getCacheKeyForEndpoint(q);DrR(p);p.prefetchRequestPromise_.then(function(E){p.storePrefetchedDataCallback_(p.prefetchResponseCacheKey_,E);if(_.n("web_prefetch_preload_video")&&
t.length===1&&t[0]==="pl"&&E&&!E.playerAds&&!E.adPlacements){var e=_.G(q,_.FC),C=e!=null,u={raw_player_response:E,watch_endpoint:e};(E=_.WC().resolve(C?_.hjU:_.PN))&&q&&E.then(function(a){C&&_.n("web_queue_preload_video")?(u.prefer_gapless=!0,a.queueNextVideo(u)):a.preloadVideoByPlayerVars(u)})}})}})},SU=function(p,y,l,q){this.prefetchEndpointProvider_=p;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=y;this.prefetchJobConfig_=l;this.JSC$13072_networkPrefetchRequest_=q;this.prefetchResponseCacheKey_=null};
SU.prototype.enqueue=function(){this.triggerPromise_||(pn9(this,Nii(this)),_.BL(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
SU.prototype.resolve=function(){this.cancel()};
SU.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.");DrR(this)};
SU.prototype.onVisibilityChange_=function(){var p=this;_.YZ(_.izL)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){p.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||pn9(this,Nii(this))};
yy9=function(p,y,l,q,t){y&&(y==null?0:y.videoId)&&l&&l.entries&&_.n("kevlar_enable_shorts_prefetch_in_sequence")&&(xr7(p),y=l.entries.map(function(E){var e;return(e=_.G(E.command,_.FC))==null?void 0:e.videoId}).indexOf(y.videoId),l=l.entries[y+1],l!=null&&l.command&&!_.G(l==null?void 0:l.command,_.I5)&&(q=new LmV([l.command],new QWV(q,_.TR,1),null,"shorts",!1),p.pendingPrefetchJob_=new SU(new Fmi(q.autonavEndpoints),function(){return!1},q,new rE(t)),p.pendingPrefetchJob_.enqueue()))};
ly1=function(p,y,l,q,t,E){var e=_.md.getInstance();if(!_.n("block_all_player_prefetch_requests")){xr7(p);var C=!!l.getPlaylistId(),u=l.getVideoData().isLive&&l.getVideoData().hasProgressBarBoundaries;if((e.getState()==2||C||u)&&(!l.getVideoData().isLive||u)){e={inPlaylist:C,videoDuration:l.getDuration(),makeUpNextTrigger:function(m){return new Ti1(l,_.TR,m)},
makePlaybackTrigger:function(m){return new QWV(l,_.TR,m)}};
var a=k41(y,e);a&&(p.pendingPrefetchJob_=new SU(a.isInPlaylist?new SZu(t):new Fmi(a.autonavEndpoints),function(m,U){U=new iXi(Voi[a.pageType].pageFragments,Voi[a.pageType].prefetchedFragments,U);return _.elQ(U)?(p.prefetchCache_.set(m,U),!0):!1},a,new wE(q,l,E,t)),p.pendingPrefetchJob_.enqueue())}}};
qw7=function(){var p=_.EX();p.signals.parkOrScheduleJob(function(){var y=p.storage;if(y.storage)if(no6(y)){var l=y.getPlaylistId();y=G4i(y);l=!!l&&y!==void 0}else y.clear(),l=!1;else l=!1;if(l){l=p.pageManager.isOnWatch();a:{var q=p.storage;if(q.storage&&no6(q)&&(y=q.getPlaylistId(),q=G4i(q),y&&q!==void 0)){l={recoverPlaylistCommand:{listId:y,index:q,openMiniplayer:!l,openListPanel:l,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}l=void 0}l&&_.oL(p.JSC$12791_actionRouter,[l],null)}},0,"ma")};
sku=function(p,y,l,q,t,E){var e=_.fY(7111);_.Vv(p.JSC$18152_screenManager,e,E?_.Tp(E):void 0);_.Qv(p.JSC$18152_screenManager,e,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:q,offlineId:y,offlineabilityFormatType:l,isDefaultFormatType:t==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:t}})};
tq7=function(p,y,l,q,t){var E,e,C,u,a;return _.h(function(m){if(m.nextAddress==1)return m.yield(p.JSC$18152_playerApiPromise,2);E=m.yieldResult;sku(p,y,l,"OFFLINE_OBJECT_TYPE_PLAYLIST",q,t);if(C=_.IqQ[p.entityTypeMap.listEntityType])a={},e=(a[C]={maximumDownloadQuality:(u=l)!=null?u:void 0},a);return m.yield(E.queueOfflineAction(y,p.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",e),0)})};
EFd=function(p,y){var l,q,t,E;return _.h(function(e){if(e.nextAddress==1)return e.yield(p.JSC$18152_persistentStorePromiseAccessor(),2);if(e.nextAddress!=3){l=e.yieldResult;if(!l)return _.vs(new _.SM("PES is undefined")),e.return();q=_.PV(y,"downloadStatusEntity");return e.yield(bX7(l,q,"downloadStatusEntity"),3)}t=e.yieldResult;return e.return((E=t)==null?void 0:E.downloadState)})};
JyL=function(p,y,l,q,t){var E,e,C,u,a,m;return _.h(function(U){switch(U.nextAddress){case 1:return U.yield(p.JSC$18152_playerApiPromise,2);case 2:E=U.yieldResult;sku(p,y,l,"OFFLINE_OBJECT_TYPE_VIDEO",q,t);if(C=_.IqQ[p.entityTypeMap.singleEntityType])a={},e=(a[C]={maximumDownloadQuality:(u=l)!=null?u:void 0},a);return U.yield(EFd(p,y),3);case 3:m=U.yieldResult;if(m!=="DOWNLOAD_STATE_USER_DELETED"){U.jumpTo(4);break}return U.yield(p.deleteVideo(y),4);case 4:return U.yield(E.queueOfflineAction(y,p.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",e),0)}})};
cyR=function(p,y,l,q,t){return _.h(function(E){return E.nextAddress==1?E.yield(p.deleteVideo(y,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):E.yield(JyL(p,y,l,q,t),0)})};
eQO=function(p,y,l){var q,t;return _.h(function(E){if(E.nextAddress==1)return E.yield(p.JSC$18152_playerApiPromise,2);q=E.yieldResult;t=_.PV(y,"mainVideoDownloadStateEntity");return E.yield(q.updateDownloadState(t,l),0)})};
sx6=function(p){var y=_.WC().resolve(_.jQ);return _.h(function(l){if(l.nextAddress==1)return y.previousDownloadStateForVideo[p]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&y.previousDownloadStateForVideo[p]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?l.jumpTo(2):l.yield(y.resumeVideoDownload(p),2);if(l.nextAddress!=4)return l.yield(eQO(y,p,y.previousDownloadStateForVideo[p]),4);delete y.previousDownloadStateForVideo[p];_.rR(l)})};
lRT=function(p,y){var l;return _.h(function(q){if(q.nextAddress==1)return q.yield(p.JSC$18152_playerApiPromise,2);l=q.yieldResult;return q.yield(l.queueOfflineAction(y,p.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
IS1=function(){var p=_.WC().resolve(_.jQ),y,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(p.JSC$18152_playerApiPromise,2);if(q.nextAddress!=3)return y=q.yieldResult,l={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},q.yield(y.queueOfflineAction("!*$_ALL_ENTITIES_!*$",p.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",l),3);var t=p.JSC$18152_commandHandler,E=t.resolveCommand,e=_.g$("DELETING_ALL",void 0,"Downloads are being deleted");
E.call(t,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.ar(e)}},popupType:"TOAST"}});_.rR(q)})};
hQ9=function(p,y){var l,q,t,E,e,C;return _.h(function(u){if(u.nextAddress==1)return u.yield(p.JSC$18152_persistentStorePromiseAccessor(),2);if(u.nextAddress!=3)return l=u.yieldResult,l?u.yield(bX7(l,_.DF,"downloadsPageViewConfigurationEntity"),3):(_.vs(new _.SM("PES is undefined")),u.return());t=(q=u.yieldResult)!=null?q:{};C=(e=(E=t)==null?void 0:E.downloadsUpsellBannerVisibility)!=null?e:{};return C.visibleWithConnection?u.yield(y.refreshAllStaleEntities(0),0):u.jumpTo(0)})};
CIR=function(p){var y,l;return _.h(function(q){if(q.nextAddress==1)return q.yield(p.JSC$18152_prefStorage,2);y=q.yieldResult;return q.return((l=y)==null?void 0:l.get("sdois"))})};
urO=function(p){var y,l,q,t,E,e;return _.h(function(C){if(C.nextAddress==1)return C.yield(p.JSC$18152_persistentStorePromiseAccessor(),2);if(C.nextAddress!=3){y=C.yieldResult;if(!y)return _.vs(new _.SM("PES is undefined")),C.return();l=_.PV("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return C.yield(bX7(y,l,"settingEntity"),3)}q=C.yieldResult;return C.return((e=(t=q)==null?void 0:(E=t.settingOptionValue)==null?void 0:E.boolValue)!=null?e:!1)})};
RQd=function(p,y){var l,q,t,E;return _.h(function(e){switch(e.nextAddress){case 1:return((l=y)==null?void 0:l.formatType)===void 0?e.return():e.yield(p.JSC$18152_prefStorage,2);case 2:q=e.yieldResult;if(q===void 0)return e.return();if(((t=y)==null?void 0:t.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return e.yield(q.set("lmqf",y.formatType),8);if(((E=y)==null?void 0:E.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){e.jumpTo(0);break}return e.yield(q.set("lmqf",y.formatType),
6);case 6:return e.yield(q.set("lmqflst",Math.floor((0,_.uM)())),0);case 8:return e.yield(q.remove("lmqflst"),0)}})};
WV6=function(p){var y,l;return _.h(function(q){switch(q.nextAddress){case 1:return q.yield(p.JSC$18152_prefStorage,2);case 2:y=q.yieldResult;if(!y){q.jumpTo(3);break}return q.yield(y.get("lmqflst"),4);case 4:if(l=q.yieldResult,l!==void 0)return q.return(l);case 3:return q.return(0)}})};
ayR=function(p){var y,l;return _.h(function(q){switch(q.nextAddress){case 1:return q.yield(p.JSC$18152_prefStorage,2);case 2:y=q.yieldResult;if(y===void 0){q.jumpTo(3);break}return q.yield(y.get("lmqf"),4);case 4:if(l=q.yieldResult,l!==void 0)return q.return(l);case 3:return q.return("SD")}})};
ufV=function(p,y,l){var q,t,E,e,C,u,a,m;_.h(function(U){switch(U.nextAddress){case 1:return U.yield(RQd(p,(q=y)==null?void 0:q.actionParams),2);case 2:t=y.playlistId;if(!t)return U.return();if(y.action==="ACTION_ADD")return((e=y.actionParams)==null?0:e.formatType)?U.yield(tq7(p,t,y.actionParams.formatType,(m=y.actionParams)==null?void 0:m.settingsAction,l),0):U.yield(p.offlineWebClientEligibility,14);if(y.action==="ACTION_REMOVE_WITH_PROMPT"){var b=p.JSC$18152_commandHandler,P=b.resolveCommand,Z=
_.OY("INNERTUBE_CLIENT_NAME");var K=Z==="WEB_REMIX"?_.g$("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.g$("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var F=Z==="WEB_REMIX"?[_.g$("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];Z=Z==="WEB_REMIX"?_.g$("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.g$("DELETE",void 0,"Delete");var L=_.g$("CANCEL",void 0,"Cancel");K=RIV(K,F,Z,L,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:t});
P.call(b,{openPopupAction:K});return U.return()}if(y.action==="ACTION_REMOVE")return U.yield(lRT(p,t),0);if(y.action!=="ACTION_SYNC"){U.jumpTo(0);break}return U.yield(p.JSC$18152_playerApiPromise,9);case 9:return E=U.yieldResult,U.yield(E.queueOfflineAction(t,p.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return C=U.yieldResult,U.yield(ayR(p),15);case 15:return u=U.yieldResult,U.yield(WV6(p),16);case 16:a=U.yieldResult,y.onAddCommand&&p.JSC$18152_commandHandler.resolveCommand(y.onAddCommand,
{form:{preferredFormatType:u,offlineWebClientEligibility:C,lastOfflineQualitySettingsSavedMs:a.toString()}}),U.jumpTo(0)}})};
hxu=function(p,y,l){var q,t,E,e,C,u,a,m,U,b,P,Z,K,F;_.h(function(L){switch(L.nextAddress){case 1:return L.yield(RQd(p,(q=y)==null?void 0:q.actionParams),2);case 2:t=y.videoId;if(!t)return L.return();if(y.action==="ACTION_REMOVE_WITH_PROMPT"){var T=p.JSC$18152_commandHandler,O=T.resolveCommand,f=_.OY("INNERTUBE_CLIENT_NAME");var v=f==="WEB_REMIX"?_.g$("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.g$("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var z=f==="WEB_REMIX"?[_.g$("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];f=f==="WEB_REMIX"?_.g$("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.g$("DELETE",void 0,"Delete");var sc=_.g$("CANCEL",void 0,"Cancel");v=RIV(v,z,f,sc,{signal:"DELETE_DOWNLOAD",targetId:t});O.call(T,{openPopupAction:v});return L.return()}if(y.action==="ACTION_ADD")return((b=y.actionParams)==null?0:b.formatType)?L.yield(JyL(p,t,y.actionParams.formatType,(F=y.actionParams)==null?void 0:F.settingsAction,l),0):L.yield(p.offlineWebClientEligibility,
23);if(y.action==="ACTION_RETRY")return L.yield(ayR(p),19);if(y.action==="ACTION_PAUSE")return L.yield(p.pauseVideoDownload(t),0);if(y.action==="ACTION_RESUME")return L.yield(p.resumeVideoDownload(t),0);if(y.action!=="ACTION_REMOVE"){L.jumpTo(0);break}return L.yield(EFd(p,t),13);case 13:return E=L.yieldResult,p.previousDownloadStateForVideo[t]=(e=E)!=null?e:"DOWNLOAD_STATE_UNKNOWN",L.yield(eQO(p,t,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(p.previousDownloadStateForVideo[t]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
p.previousDownloadStateForVideo[t]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){L.jumpTo(15);break}return L.yield(p.pauseVideoDownload(t),15);case 15:T=_.g$("DELETED_VIDEO",void 0,"Video deleted from downloads.");O=_.g$("UNDO_ACTION",void 0,"Undo");v=_.g$("CLOSE",void 0,"Close");C={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.ar(T),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.ar(O),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:t}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:T+" "+O}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:t}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:v}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};p.JSC$18152_commandHandler.resolveCommand(C);
L.jumpTo(0);break;case 19:u=L.yieldResult;u==="UNKNOWN_FORMAT_TYPE"&&(u="SD");a="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((m=y.actionParams)==null?0:m.formatType)u=y.actionParams.formatType,a=(U=y.actionParams)==null?void 0:U.settingsAction;return L.yield(cyR(p,t,u,a,l),20);case 20:return L.return();case 23:return P=L.yieldResult,L.yield(ayR(p),24);case 24:return Z=L.yieldResult,L.yield(WV6(p),25);case 25:K=L.yieldResult,y.onAddCommand&&p.JSC$18152_commandHandler.resolveCommand(y.onAddCommand,
{form:{preferredFormatType:Z,offlineWebClientEligibility:P,lastOfflineQualitySettingsSavedMs:K.toString()}}),L.jumpTo(0)}})};
mGR=function(p,y){var l,q,t,E,e,C,u;return _.h(function(a){if(a.nextAddress==1)return a.yield(p.JSC$18152_persistentStorePromiseAccessor(),2);l=a.yieldResult;if(!l)return _.vs(new _.SM("PES is undefined")),a.return();if((q=y)==null||!q.settingItemId)return a.return();t=y;E=t.settingItemId;e=t.boolValue;C=_.PV(E,"settingEntity");u={key:C,settingOptionValue:{boolValue:e}};return a.yield(jWi(l,u),0)})};
UGT=function(p,y){var l,q,t,E,e,C,u;return _.h(function(a){switch(a.nextAddress){case 1:return a.yield(p.JSC$18152_prefStorage,2);case 2:return l=a.yieldResult,q=_.w$(),a.yield(p.JSC$18152_persistentStorePromiseAccessor(),3);case 3:return t=a.yieldResult,l?t?a.yield(l.get("sdois"),4):(_.vs(new _.SM("PES is undefined")),a.return()):(_.vs(new _.SM("prefStorage is undefined")),a.return());case 4:E=a.yieldResult;C=(e=y)==null?void 0:e.boolValue;C===void 0||_.n("kevlar_set_sd_enabled_flag_killswitch")||
_.il(0,197,!0);E===void 0&&C===void 0&&(C=!1);if(C===void 0){a.jumpTo(0);break}return a.yield(l.set("sdois",C),6);case 6:return _.n("kevlar_set_sd_enabled_flag_killswitch")||(_.il(0,196,C),q.save()),u={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:C},a.yield(mGR(p,u),0)}})};
$GA=function(p,y,l){var q,t,E,e,C;return _.h(function(u){switch(u.nextAddress){case 1:return u.yield(CIR(p),2);case 2:return q=u.yieldResult,u.yield(UGT(p,l),3);case 3:return u.yield(CIR(p),4);case 4:return t=u.yieldResult,E=t!==q,u.yield(urO(p),5);case 5:e=u.yieldResult&&!_.n("kevlar_modern_downloads_page");if((C=!t&&!e)||E)return u.yield(y.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);u.jumpTo(0)}})};
ESO=function(){var p=_.WC().resolve(_.jQ),y;_.h(function(l){switch(l.nextAddress){case 1:return l.yield(p.JSC$18152_playerApiPromise,2);case 2:y=l.yieldResult;if(!_.n("kevlar_force_refresh_smart_downloads")){l.jumpTo(3);break}return l.yield(y.refreshAllStaleEntities(0),4);case 4:return l.return();case 3:return l.yield(y.refreshAllStaleEntities(),5);case 5:return l.yield($GA(p,y),6);case 6:if(_.n("enable_download_pep_for_premium_countries_web"))return l.yield(hQ9(p,y),0);l.jumpTo(0)}})};
WR9=function(p,y){var l,q;_.h(function(t){switch(t.nextAddress){case 1:return t.yield(p.JSC$18152_playerApiPromise,2);case 2:l=t.yieldResult;switch((q=y)==null?void 0:q.settingItemId){case "SMART_DOWNLOADS_ENABLED":return t.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return t.jumpTo(4)}t.jumpTo(0);break;case 3:return t.yield($GA(p,l,y),6);case 6:t.jumpTo(0);break;case 4:return t.yield(mGR(p,y),7);case 7:t.jumpTo(0)}})};
jkw=function(p,y){var l,q,t;return _.h(function(E){if(E.nextAddress==1)return E.yield(p.JSC$18152_persistentStorePromiseAccessor(),2);if(E.nextAddress!=3){l=E.yieldResult;if(!l)return _.vs(new _.SM("PES is undefined")),E.return(!1);if(!y)return E.return(!1);q=_.PV(y,"mainVideoEntity");return E.yield(bX7(l,q,"mainVideoEntity"),3)}t=E.yieldResult;return E.return(t!==void 0)})};
mWO=function(p){var y=_.WC().resolve(_.jQ),l,q,t,E,e,C,u,a,m,U,b;_.h(function(P){switch(P.nextAddress){case 1:return P.yield(y.JSC$18152_playerApiPromise,2);case 2:l=P.yieldResult;t=(q=p)==null?void 0:q.actions;if(!t)return P.return();E=_.c(t);e=E.next();case 3:if(e.done){P.jumpTo(0);break}C=e.value;a=u=void 0;if(!(((u=C)==null?0:u.entityKey)&&((a=C)==null?0:a.actionType))){P.jumpTo(4);break}m=_.ba(C.entityKey);U=m.entityId;b=m.entityType;return P.yield(l.queueOfflineAction(U,b,C.actionType),4);case 4:e=
E.next(),P.jumpTo(3)}})};
bFO=function(p,y){var l,q,t,E,e;return _.h(function(C){if(C.nextAddress==1)return C.yield(p.JSC$18152_prefStorage,2);if(C.nextAddress!=3)return(l=C.yieldResult)?C.yield(l.get("psi"),3):C.return();q=C.yieldResult;e={isPaused:y,lastSyncTimestamp:(E=(t=q)==null?void 0:t.lastSyncTimestamp)!=null?E:"0"};return C.yield(l.set("psi",e),0)})};
jxi=function(p){var y=_.WC().resolve(_.jQ),l,q,t,E,e,C,u,a;return _.h(function(m){switch(m.nextAddress){case 1:return m.yield(y.JSC$18152_playerApiPromise,2);case 2:l=m.yieldResult;t=((q=p)==null?void 0:q.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((C=p)==null?void 0:C.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":E="!*$_ALL_ENTITIES_!*$";e="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return m.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return m.jumpTo(4)}m.jumpTo(5);break;case 3:return m.yield(bFO(y,t),6);case 6:m.jumpTo(5);break;case 4:return m.yield(jkw(y,(u=p)==null?void 0:u.videoId),7);case 7:m.yieldResult&&(E=(a=p)==null?void 0:a.videoId,e="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");m.jumpTo(5);break;case 5:if(E&&e)return m.yield(l.queueOfflineAction(E,"videoPlaybackPositionEntity",e),0);m.jumpTo(0)}})};
nFi=function(p,y){var l;y!==1||((l=p.currentPersistentToast)==null?0:l.isOpened())?p.openToast():p.currentPersistentToast=void 0};
GYA=function(p,y){var l;return(l=p.transitionTasksMap.get(y))!=null?l:[]};
PIT=function(p,y){var l=[];p.elementTasksMap.forEach(function(q){(q=q.get(y))&&l.push(q)});
return l};
AyR=function(p,y,l,q){q=q===void 0?{}:q;var t=p.defaultViewTransitionOptions;return Object.assign({},t,q,{beforeTransition:function(){l.forEach(function(u){u.beforeTransition()});
var E;(E=t.beforeTransition)==null||E.call(t);var e,C;(C=(e=q).beforeTransition)==null||C.call(e);y.forEach(function(u){u.beforeTransition()})},
afterTransition:function(){l.forEach(function(u){u.afterTransition()});
var E;(E=t.afterTransition)==null||E.call(t);var e,C;(C=(e=q).afterTransition)==null||C.call(e);y.forEach(function(u){u.afterTransition()})}})};
ZF7=function(p,y,l){p.transitionTasksMap.has(y)?p.transitionTasksMap.get(y).push(l):(p=new _.SM("Transition task registered for unknown transition type",y),_.Bs(p))};
MqV=function(p,y,l){if(p.transitionTasksMap.has(y)){var q=p.transitionTasksMap.get(y).filter(function(t){return t!==l});
p.transitionTasksMap.set(y,q)}};
VqV=function(p,y){var l=GYA(p,y);l=_.c(l);for(var q=l.next();!q.done;q=l.next())q=q.value,q.runOnce&&MqV(p,y,q);p.elementTasksMap.forEach(function(t,E){t.forEach(function(e,C){e.runOnce&&y===C&&(t.delete(C),t.size===0&&p.elementTasksMap.delete(E))})})};
gFA=function(p,y,l){var q,t,E,e,C,u,a,m,U;_.h(function(b){if(b.nextAddress==1){if(p.config.disableAllTransitions)return b.return(y());if((q=l)==null||!q.transitionType)return b.return(_.Vri(y,(t=l)==null?void 0:t.viewTransitionOptions));E=l;e=E.transitionType;C=E.viewTransitionOptions;u=p.config.transitionConfigs.get(e);if(!u)return b.return(y());a=GYA(p,e);m=PIT(p,e);U=_.Vri(y,AyR(u,a,m,C));return b.yield(U,2)}VqV(p,e);_.rR(b)})};
Qkd=function(){var p,y,l,q;return _.h(function(t){if(t.nextAddress==1)return p=navigator,(y=p.storage)!=null&&y.persisted?t.yield((l=p.storage)==null?void 0:l.persisted(),2):t.return("PERSISTED_STATE_NOT_SUPPORTED");q=t.yieldResult;return t.return(q?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
KVO=function(){var p,y,l,q;return _.h(function(t){if(t.nextAddress==1)return p=navigator,(y=p.storage)!=null&&y.persist?t.yield((l=p.storage)==null?void 0:l.persist(),2):t.return("PERSISTED_STATE_NOT_SUPPORTED");q=t.yieldResult;return t.return(q?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
wn1=function(){var p,y;return _.h(function(l){switch(l.nextAddress){case 1:return p="PERSISTED_STATE_NOT_SUPPORTED",_.Ve(l,2),l.yield(Qkd(),4);case 4:p=l.yieldResult;if(p!=="PERSISTED_STATE_NOT_GRANTED"){l.jumpTo(5);break}return l.yield(KVO(),6);case 6:p=l.yieldResult;case 5:_.pK(l,3);break;case 2:y=_.i6(l),y instanceof Error&&_.Bs(y);case 3:return _.TX("persistentStorageStateChecked",{persistedState:p}),l.return(p)}})};
iFd=function(p,y){var l=[],q=!1;y=_.c(y);for(var t=y.next();!t.done;t=y.next()){t=p.moduleRegistry[t.value];var E=void 0,e=void 0;((E=t)==null?0:E.isFetching)&&((e=t)==null?0:e.resolver)?(l.push(t.resolver.promise),q=!0):(t=new _.AB,t.resolve(void 0),l.push(t.promise))}return q?Promise.all(l):void 0};
n81=function(p,y){if(p.isAnyTransitionEnabled){var l={};p.viewTransitionCoordinator.registerElement(y,(l.slide="miniplayer-page-transition",l["lockup-to-watch"]="miniplayer-page-transition",l["learning-journey"]="miniplayer-page-transition",l))}};
ryT=function(p,y,l){if(p.isAnyTransitionEnabled){var q={beforeTransition:function(){l(!0);y.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){y.style.viewTransitionName&&(y.style.viewTransitionName="",l(!1))}};
ZF7(p.viewTransitionCoordinator,"slide",q);ZF7(p.viewTransitionCoordinator,"lockup-to-watch",q);ZF7(p.viewTransitionCoordinator,"watch-next-appears",q);ZF7(p.viewTransitionCoordinator,"learning-journey",q)}};
Sww=function(p,y){p.isBrowseTransitionEnabled?gFA(p.viewTransitionCoordinator,y,{transitionType:"slide"}):(y(),Promise.resolve())};
FVd=function(p,y){p.isLockupToWatchTransitionEnabled?gFA(p.viewTransitionCoordinator,y,{transitionType:"lockup-to-watch"}):(y(),Promise.resolve())};
LVw=function(p,y){p.isLockupToWatchTransitionEnabled?gFA(p.viewTransitionCoordinator,y,{transitionType:"watch-next-appears"}):(y(),Promise.resolve())};
kYO=function(p,y){p.isLearningJourneyTransitionEnabled?gFA(p.viewTransitionCoordinator,y,{transitionType:"learning-journey"}):(y(),Promise.resolve())};
NP1=function(p,y,l){if(p.isInitialized()){var q=Av(l),t=q==="watch";q=q==="shorts";var E=Av(y)==="watch";if(t)E||(p.backgroundPageData=y),p.watchPipMode&&E||p.deactivate(l.endpoint);else if(q){if(Av(y)!=="shorts"){var e;(e=p.getPlayerElement())==null||e.pause()}}else E&&!p.watchPipMode&&(aew(y,l)?(p.watchWhileMode&&_.Qlu(p,!1),_.Pzi(p,y)):p.isMiniplayerActive()&&p.watchWhileMode&&p.deactivate());E&&_.wJ9(p);p.shortsPipMode&&!q&&(window.focus(),p.deactivate());if(p.pictureInPictureEnabled())if(q&&
p.shortsPipEnabled||t&&p.watchPipEnabled)_.gTg(p.handleMediaSessionPipActivation);else if(!p.isMiniplayerActive()&&(p.shortsPipEnabled||p.watchPipEnabled)&&window.documentPictureInPicture&&_.K8()&&_.C_t("Chromium")>=120){p=_.VD5().mediaSession;try{p.setActionHandler("enterpictureinpicture",null)}catch(C){}}}};
DGi=function(p,y){var l,q;_.h(function(t){if(t.nextAddress==1){if(!p||!p.navigationEndpoint)return t.return();_.Sy().lockupActivation=!0;var E;y?E=_.EK(_.g$("QUEUE",void 0,"Queue")):E=p.longBylineText;q=(l=E)&&p.title?{miniplayerTitle:p.title,miniplayerSubtitle:l,playlistData:null}:void 0;return t.yield(_.W7B(_.WC().resolve(_.IA),p.navigationEndpoint,!0,q),2)}_.Sy().userActivation=!0;_.rR(t)})};
Wrw=function(p,y){var l,q,t,E,e,C;_.h(function(u){if(u.nextAddress==1){l=_.G(y,_.YVP);if(!l||!l.listId)return u.return();p.index=l.index||p.index||0;q=p.response&&p.response.playingVideoId||void 0;return u.yield(_.gkr(p.JSC$12791_playlistNetworkManager,l.listId,p.index,q),2)}t=u.yieldResult;if(!t)return u.return();E=t.playlistId;e=t.playlistPanelRenderer;!p.queueProxy&&E&&e&&E.startsWith("TLPQ")&&(p.queueProxy=new _.Y7(p.JSC$12791_playlistNetworkManager,E,p.setPlaylistData.bind(p),p.clearQueue.bind(p),
_.TZu(e),p.storage));if(l.openMiniplayer&&(C=_.xC_(e))&&!p.pageManager.isOnWatch()){var a=C,m=l.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";p.isMiniplayerActive()?p.openToast(a):DGi(a,m)}p.setPlaylistData(E,e,t.autoplayRenderer);_.rR(u)})};
CtO=function(p,y){var l=_.EX();l.index===void 0&&(l.index=0);l.temporaryItems.push.apply(l.temporaryItems,_.xq(p));if((y.videoId||y.videoIds)&&l.index!==void 0&&y.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!l.queueProxy){var q=[];if(l.response){var t=_.WC().resolve(_.IA).isMiniplayerActive();if(l.response.playlistPanelRenderer&&l.response.playlistId&&!l.response.playlistId.startsWith("TLPQ")){if(l.pageManager.isOnWatch()||t)q=_.TZu(l.response.playlistPanelRenderer)}else l.response.playingVideoId&&
!y.openMiniplayer?q.push(l.response.playingVideoId):t&&l.response.playingVideoId&&y.openMiniplayer&&q.push(l.response.playingVideoId)}l.queueProxy=new _.Y7(l.JSC$12791_playlistNetworkManager,"",l.setPlaylistData.bind(l),l.clearQueue.bind(l),q,l.storage);l.queueProxy.JSC$12737_setCurrentIndex(l.index)}l.queueProxy.addVideos(y.videoIds||[y.videoId],y)}Pjd(l,p);l.response&&_.JS(l,_.cF(l,l.response.autoplayRenderer));l.pageManager.isOnWatch()?l.isMiniplayerActive()&&l.openToast(p[0]):(p=p[0],y=y.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",l.isMiniplayerActive()?l.openToast(p):DGi(p,y))};
HFR=function(p){var y=_.tm(p);if(y=="object"||y=="array"){if(typeof p.clone==="function")return p.clone();if(typeof Map!=="undefined"&&p instanceof Map)return new Map(p);if(typeof Set!=="undefined"&&p instanceof Set)return new Set(p);y=y=="array"?[]:{};for(var l in p)y[l]=HFR(p[l]);return y}return p};
F5=function(p,y){return _.pUu(_.i8(p,y,void 0,_.wl))};
Lc=function(p,y){return _.aT(_.i8(p,y,void 0,_.wl))};
kL=function(p,y){return _.nxa(_.i8(p,y,void 0,_.wl))};
N2=function(p,y){return _.i8(p,y,void 0,_.wl,_.Yct)};
TPd=_.aX(function(p,y,l){if(p.nextWireType_!==0)return!1;_.U3(y,l,_.pj(p.decoder_,_.o6c));return!0},_.P6,_.sf);
xGO=_.aX(function(p,y,l,q){if(p.nextWireType_!==0)return!1;_.Lq(y,l,q,_.pj(p.decoder_,_.o6c));return!0},_.P6,_.sf);
BPi=_.aX(function(p,y,l){if(p.nextWireType_!==1)return!1;var q=p.decoder_;p=_.lk(q);q=_.lk(q);p=_.yO(p,q);_.U3(y,l,p);return!0},_.Um_,_.xdo);
fyd=_.aX(function(p,y,l){if(p.nextWireType_!==5)return!1;_.U3(y,l,_.lk(p.decoder_));return!0},function(p,y,l){y=_.q$6(y);
y!=null&&(_.bf(p,l,5),_.GB(p.encoder_,y))},_.TX5);
vFV=_.aX(function(p,y,l){if(p.nextWireType_!==0)return!1;p=_.Gzo(p.decoder_);_.U3(y,l,p===!1?void 0:p);return!0},_.$mt,_.kzR);
XnT=_.aX(function(p,y,l){if(p.nextWireType_!==2)return!1;p=_.gjt(p);_.U3(y,l,p===""?void 0:p);return!0},_.bOg,_.NXo);
dG7=_.aX(function(p,y,l){if(p.nextWireType_!==2)return!1;p=_.Qm5(p);_.U3(y,l,p===_.DV()?void 0:p);return!0},_.GBl,_.vjc);
OFT=_.cEm(function(p,y,l){if(p.nextWireType_!==0&&p.nextWireType_!==2)return!1;y=_.UL6(y,y[_.gr]|0,l);p.nextWireType_==2?_.Kym(p,zxi,y):y.push(_.y0(p.decoder_));return!0},function(p,y,l){y=_.JEl(_.aT,y,!0);
if(y!=null&&y.length){l=_.wR5(p,l);for(var q=0;q<y.length;q++)_.Wwt(p.encoder_,y[q]);_.i7g(p,l)}},_.Xeu);
oFR=_.aX(function(p,y,l){if(p.nextWireType_!==0)return!1;p=_.y0(p.decoder_);_.U3(y,l,p===0?void 0:p);return!0},_.Pf6,_.Xeu);
zQi=_.aX(function(p,y,l,q){if(p.nextWireType_!==0)return!1;_.Lq(y,l,q,_.y0(p.decoder_));return!0},_.Pf6,_.Xeu);
_.WH=function(p){this.privateDoNotAccessOrElseWrappedStyleSheet=p};
_.WH.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var Axd=function(p,y){return new _.BJ(p.x+y.x,p.y+y.y)},YwL=function(p){return p.previousElementSibling!==void 0?p.previousElementSibling:_.sTM(p.previousSibling,!1)},Iyu=function(p,y){var l=[];
for(y=y||0;y<p.length;y+=2)_.XRP(p[y],p[y+1],l);return l.join("&")},p3V=function(p,y){var l=arguments.length==2?Iyu(arguments[1],0):Iyu(arguments,1);
return _.v1P(p,l)},yem=_.Mm(_.ok),y2d=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(y2d,_.RX);y2d.prototype.getTypeName=function(){return _.fq(this,1).split("/").pop()};
y2d.prototype.getValue=function(){var p=_.i8(this,2);if(Array.isArray(p)||p instanceof _.RX)throw Error("W");return _.Fc(this,2)};
var xsw=function(){var p=_.bS();this.JSC$9854_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.UE("channel_type"))};
xsw.prototype.increment=function(p){this.JSC$9854_streamzService.JSC$9722_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",p)};
var BNd=function(){var p=_.bS();this.JSC$9857_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.UE("channel_type"))};
BNd.prototype.increment=function(p){this.JSC$9857_streamzService.JSC$9722_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",p)};
var vyV=function(){var p=_.bS();this.JSC$9860_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.UE("channel_type"))};
vyV.prototype.increment=function(p){this.JSC$9860_streamzService.JSC$9722_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",p)};
var fFL=function(){var p=_.bS();this.JSC$9863_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
fFL.prototype.increment=function(){this.JSC$9863_streamzService.JSC$9722_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var XVA=function(){var p=_.bS();this.JSC$9866_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.UE("channel_type"),_.UE("error_type"))};
XVA.prototype.increment=function(p,y){this.JSC$9866_streamzService.JSC$9722_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",p,y)};
var dsO=function(){var p=_.bS();this.JSC$9869_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
dsO.prototype.increment=function(){this.JSC$9869_streamzService.JSC$9722_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var OW7=function(){var p=_.bS();this.JSC$9872_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
OW7.prototype.increment=function(){this.JSC$9872_streamzService.JSC$9722_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var NDi=function(){var p=_.bS();this.JSC$9878_streamzService=p;p.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
NDi.prototype.increment=function(){this.JSC$9878_streamzService.JSC$9722_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var lQw=function(p){return p.getCount&&typeof p.getCount=="function"?p.getCount():_.zl(p)||typeof p==="string"?p.length:_.Ts.getCount(p)},qPL=function(p,y){if(typeof p.every=="function")return p.every(y,void 0);
if(_.zl(p)||typeof p==="string")return Array.prototype.every.call(p,y,void 0);for(var l=_.dAi(p),q=_.C2(p),t=q.length,E=0;E<t;E++)if(!y.call(void 0,q[E],l&&l[E],p))return!1;return!0},sAA=function(p,y,l,q){var t=new _.JO(null);
p&&_.uR(t,p);y&&_.R2(t,y);l&&_.WP(t,l);q&&_.mt(t,q);return t},tPd=function(){var p=_.ds&&_.ag(_.ckQ,10)>=0,y;
if(y=_.LY6)y=_.ag(_.Jkv,10)>=0;var l=_.gl&&_.ag(_.ckQ,85)>=0;return _.Aj||p||y||l},Ezm=function(p){var y=_.MdQ(p);
return y&&tPd()?-p.scrollLeft:y&&_.dg(p,"overflowX")!="visible"?p.scrollWidth-p.clientWidth-p.scrollLeft:p.scrollLeft},J2u=function(p,y){y=Math.max(y,0);
_.MdQ(p)?tPd()?p.scrollLeft=-y:p.scrollLeft=p.scrollWidth-y-p.clientWidth:p.scrollLeft=y},Klm=0,Fl9=!1;
M5.prototype.set=function(p){this.relativeTimeStart_=p};
M5.prototype.reset=function(){this.set(_.$t())};
M5.prototype.get=function(){return this.relativeTimeStart_};
var c2d=null,eEL=function(){c2d||(c2d=new M5)},hEi=function(){c2d||(c2d=new M5)};
_.j6(hEi,eEL);_.J=ke9.prototype;_.J.JSC$11239_buffer_="";_.J.set=function(p){this.JSC$11239_buffer_=""+p};
_.J.append=function(p,y,l){this.JSC$11239_buffer_+=String(p);if(y!=null)for(var q=1;q<arguments.length;q++)this.JSC$11239_buffer_+=arguments[q];return this};
_.J.clear=function(){this.JSC$11239_buffer_=""};
_.J.getLength=function(){return this.JSC$11239_buffer_.length};
_.J.toString=function(){return this.JSC$11239_buffer_};
var CWm=function(){var p={type:"unit",style:"narrow"};this.listType_=p&&p.type?p.type:"conjunction";this.listStyle_=p&&p.style?p.style:"long";this.listSymbols_=toR;p=0;switch(this.listStyle_){case "short":p=1;break;case "narrow":p=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[p];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[p];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[p];this.listEndPattern_=
this.listSymbols_.AND_END[p];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[p];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[p];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[p];this.listEndPattern_=this.listSymbols_.OR_END[p];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[p],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[p],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[p],this.listEndPattern_=this.listSymbols_.UNIT_END[p]}};
CWm.prototype.format=function(p){return uyL(this,p)};
var uyL=function(p,y){var l=y.length;switch(l){case 0:return"";case 1:return String(y[0]);case 2:return p.listTwoPattern_.replace("{0}",String(y[0])).replace("{1}",String(y[1]))}for(var q=p.listStartPattern_.replace("{0}",String(y[0])).replace("{1}",String(y[1])),t=2;t<l-1;++t)q=p.listMiddlePattern_.replace("{0}",q).replace("{1}",String(y[t]));return p.listEndPattern_.replace("{0}",q).replace("{1}",String(y[l-1]))},p2O=function(){var p={style:1};
this.style_=(p==null?void 0:p.style)||0;this.durationSymbols_=_.yIr||_.XmU},REm=function(p,y){switch(y){default:case "years":return p.durationSymbols_.YEAR;
case "months":return p.durationSymbols_.MONTH;case "weeks":return p.durationSymbols_.WEEK;case "days":return p.durationSymbols_.DAY;case "hours":return p.durationSymbols_.HOUR;case "minutes":return p.durationSymbols_.MINUTE;case "seconds":return p.durationSymbols_.SECOND}},Dc=function(p,y,l){a:{l=REm(p,l);
switch(p.style_){case 1:if(l.LONG!=void 0){p=l.LONG;break a}case 2:if(l.NARROW!=void 0){p=l.NARROW;break a}default:p=l.SHORT;break a}p=void 0}return p?(new _.aSr("{DURATION_VALUE,plural,"+p+"}")).format({DURATION_VALUE:y}):""};
p2O.prototype.format=function(p){var y=[],l=p.years,q=p.months,t=p.weeks,E=p.days,e=p.hours,C=p.minutes;p=p.seconds;l!=null&&y.push(Dc(this,l,"years"));q!=null&&y.push(Dc(this,q,"months"));t!=null&&y.push(Dc(this,t,"weeks"));E!=null&&y.push(Dc(this,E,"days"));e!=null&&y.push(Dc(this,e,"hours"));C!=null&&y.push(Dc(this,C,"minutes"));p!=null&&y.push(Dc(this,p,"seconds"));return(new CWm).format(y)};
var W86=!1,fed=function(p){_.p8.call(this,p.message||p.description||p.name);this.isMissing=p instanceof VY;this.isTimeout=p instanceof _.a1&&p.errorCode=="net.timeout";this.isCanceled=p instanceof _.lW};
_.A(fed,_.p8);fed.prototype.name="BiscottiError";var VY=function(){_.p8.call(this,"Biscotti ID is missing from server")};
_.A(VY,_.p8);VY.prototype.name="BiscottiMissingError";var gk=null,sM1=function(){try{var p=_.I4("yt.ads.biscotti.getId_");return p?p():PXu()}catch(y){return _.vL(y)}},Ieu,aQi=function(p,y){return _.$y({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:p,command:y}})},mR6=function(p){return _.$y({type:"SET_GUIDE_IS_EXPANDED",
payload:p})},URR=function(p){return _.$y({type:"SET_ONLINE_STATUS",
payload:p})},$Rm=function(p,y){return _.$y({type:"SET_TRANSCRIPTION_STATE",
payload:{high:p,low:y}})},jAi=function(p){return _.$y({type:"SET_OVERLAY_STATE",
payload:p})},bpV=0,nzd=function(p,y,l){var q=this;
this.priority=y;this.delay=l;this.jobId=0;this.completionCallback=_.rH;this.wrappedJob=function(){p();q.completionCallback()};
this.id=++bpV};
nzd.prototype.enqueue=function(p){this.completionCallback=p;this.jobId=_.TR.addJob(this.wrappedJob,this.priority,this.delay)};
var HB=function(){_.UA.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.A(HB,_.UA);HB.prototype.addJob=function(p,y,l){p=new nzd(p,y,l);this.taskIdToTask.set(p.id,p);this.isActive?GK7(this,p):this.suspendedTasks.add(p);return p.id};
var GK7=function(p,y){p.scheduledTasks.add(y);y.enqueue(function(){p.scheduledTasks.delete(y)})};
HB.prototype.cancelJob=function(p){(p=this.taskIdToTask.get(p))&&(this.scheduledTasks.delete(p)?_.TR.cancelJob(p.jobId):this.suspendedTasks.delete(p))};
HB.prototype.pause=function(){var p=this;this.isActive=!1;this.scheduledTasks.forEach(function(y){_.TR.cancelJob(y.jobId);p.suspendedTasks.add(y)});
this.scheduledTasks.clear()};
HB.prototype.start=function(){var p=this;this.isActive=!0;this.suspendedTasks.forEach(function(y){GK7(p,y)});
this.suspendedTasks.clear()};
HB.prototype.reset=function(){this.scheduledTasks.forEach(function(p){_.TR.cancelJob(p.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var Tn=function(p,y){this.JSC$12920_networkService_=p;this.pageRequestPromise=y};
Tn.prototype.fetchData=function(p){PWA(this,this.JSC$12920_networkService_.fetchData(p))};
Tn.prototype.postData=function(p,y){PWA(this,this.JSC$12920_networkService_.postData(p,y))};
Tn.prototype.requestDataForServiceEndpoint=function(p,y){PWA(this,this.JSC$12920_networkService_.requestDataForServiceEndpoint(p,y))};
var PWA=function(p,y){y.then(p.pageRequestPromise.onSuccess,p.pageRequestPromise.onFailure,p.pageRequestPromise)};
Tn.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var xL=function(p){this.buildNetworkRequest_=p;this.pendingRequests_=new Set};
xL.prototype.reset=function(){this.pendingRequests_.forEach(function(p){p.cancel()});
this.pendingRequests_.clear()};
xL.prototype.fetchData=function(p){var y=A26(this);y.fetchData(p);return y.pageRequestPromise};
xL.prototype.postData=function(p,y){var l=A26(this);l.postData(p,y);return l.pageRequestPromise};
xL.prototype.requestDataForServiceEndpoint=function(p,y){var l=A26(this);l.requestDataForServiceEndpoint(p,y);return l.pageRequestPromise};
var A26=function(p){var y=p.buildNetworkRequest_();p.pendingRequests_.add(y);var l=function(){p.pendingRequests_.delete(y)};
y.pageRequestPromise.then(l,l);return y},Zp7=function(p){var y=new HB;
this.JSC$12927_networkService_=p;this.JSC$12927_taskManager_=y;this.JSC$12927_networkManager_=new xL(this.networkRequestFactory_.bind(this))};
_.J=Zp7.prototype;_.J.networkRequestFactory_=function(){return new Tn(this.JSC$12927_networkService_,new _.nI(this.JSC$12927_taskManager_))};
_.J.reset=function(){this.JSC$12927_taskManager_.reset();this.JSC$12927_networkManager_.reset()};
_.J.start=function(){this.JSC$12927_taskManager_.start()};
_.J.pause=function(){this.JSC$12927_taskManager_.pause()};
_.J.getTaskManager=function(){return this.JSC$12927_taskManager_};
_.J.getNetworkManager=function(){return this.JSC$12927_networkManager_};
var tYm=null,chm=[],QY=0,wk=0,KA=null,MPu=!1,iO=null,hod=void 0,VPd=function(){var p=(0,_.ThZ)();p&&JsO(p,p.mechanism.__iterator__(!0))},SS=function(p){this.token=p};
SS.getInstance=function(){var p;return _.h(function(y){if(y.nextAddress==1)return y.yield(_.hk(),2);p=y.yieldResult;if(!p)return y.return();SS.instance||(SS.instance=new SS(p));return y.return(SS.instance)})};
var mfi=function(p){var y;return _.h(function(l){if(l.nextAddress==1)return l.yield(Roi(p.token),2);y=l.yieldResult;return l.return(y.clear("resource-manifest-assets"))})},rk=function(p){this.token=p};
rk.getInstance=function(){var p;return _.h(function(y){if(y.nextAddress==1)return y.yield(_.hk(),2);p=y.yieldResult;if(!p)return y.return();rk.instance||(rk.instance=new rk(p));return y.return(rk.instance)})};
var WXw=function(p){var y;return _.h(function(l){if(l.nextAddress==1)return l.yield(Roi(p.token),2);y=l.yieldResult;return l.yield(y.clear("auth"),0)})},LX6=!1,gzV=function(p){_.p8.call(this,p)};
_.A(gzV,_.UxQ);var QAd="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");ClA()&&QAd.push("details:not(:has(summary))");var RST=QAd.join(",");var SKT=function(){var p=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return p?parseInt(p[1],10):0},K8u=function(p){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+p)!=-1||document.currentScript.src.indexOf("&"+p)!=-1)},w3L=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},DE9=function(p){p.length?ip6(p.shift(),function(){DE9(p)}):L39()},TC6=function(p){return"chrome-extension://"+p+"/cast_sender.js"},ip6=function(p,
y,l){var q=document.createElement("script");
q.onerror=y;l&&(q.onload=l);_.e_(q,_.kP(p));(document.head||document.documentElement).appendChild(q)},r29=function(){var p=SKT(),y=[];
if(p>1){var l=p-1;y.push("//www.gstatic.com/eureka/clank/"+p+"/cast_sender.js");y.push("//www.gstatic.com/eureka/clank/"+l+"/cast_sender.js")}return y},L39=function(){var p=w3L();
p&&p(!1,"No cast extension found")},NC7=function(){if(SPV){var p=2,y=w3L(),l=function(){p--;
p==0&&y&&y(!0)};
window.__onGCastApiAvailable=l;ip6("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",L39,l)}},F3d=function(){NC7();
var p=r29();p.push("//www.gstatic.com/eureka/clank/cast_sender.js");DE9(p)},k5R=function(){NC7();
var p=r29();p.push.apply(p,_.xq(H47.map(TC6)));p.push("//www.gstatic.com/eureka/clank/cast_sender.js");DE9(p)},SPV=K8u("loadCastFramework")||K8u("loadCastApplicationFramework"),H47=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var F8d=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(F8d,_.RX);var L81=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(L81,_.RX);var kK9=function(){var p=new L81;return _.Yt(p,1,3)};var BB=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(BB,_.RX);var FO7=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(FO7,_.RX);var NUd=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(NUd,_.RX);NUd.prototype.getToken=function(){return _.fq(this,1)};
NUd.prototype.setToken=function(p){return _.J2(this,1,p)};
var rOw=function(p){return _.pO(p,3,_.r6,_.RY())},SbA=function(p){return _.pO(p,6,_.r6,_.RY())};var fc=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(fc,_.RX);fc.prototype.getToken=function(){return _.MF(this,NUd,2)};
fc.prototype.setToken=function(p){return _.gu(this,2,p)};
fc.prototype.getName=function(){return _.fq(this,6)};
var DRR=_.Mm(fc);var Hpm=function(p,y,l){this.requestMessage=p;this.methodDescriptor=y;this.metadata=l};
Hpm.prototype.getMetadata=function(){return this.metadata};var TUd=function(p,y){y=y===void 0?{}:y;this.responseMessage=p;this.metadata=y;this.status=null};
TUd.prototype.getMetadata=function(){return this.metadata};
TUd.prototype.getStatus=function(){return this.status};var vB=function(p,y,l,q,t){this.name=p;this.methodType="unary";this.requestType=y;this.responseType=l;this.requestSerializeFn=q;this.responseDeserializeFn=t},xRi=function(p,y,l){l=l===void 0?{}:l;
return new Hpm(y,p,l)};
vB.prototype.getName=function(){return this.name};var X5=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(X5,_.RX);X5.prototype.getHeader=function(){return _.MF(this,BB,1)};
X5.prototype.setHeader=function(p){return _.gu(this,1,p)};
X5.prototype.hasHeader=function(){return _.rl(this,BB,1)};var BU6=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(BU6,_.RX);var fQw=new vB("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",X5,BU6,function(p){return p.serialize()},_.Mm(BU6));var dE=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(dE,_.RX);dE.prototype.getHeader=function(){return _.MF(this,BB,1)};
dE.prototype.setHeader=function(p){return _.gu(this,1,p)};
dE.prototype.hasHeader=function(){return _.rl(this,BB,1)};var vz9=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(vz9,_.RX);var X3i=new vB("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",dE,vz9,function(p){return p.serialize()},_.Mm(vz9));var O9=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(O9,_.RX);O9.prototype.getHeader=function(){return _.MF(this,BB,1)};
O9.prototype.setHeader=function(p){return _.gu(this,1,p)};
O9.prototype.hasHeader=function(){return _.rl(this,BB,1)};var dRO=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(dRO,_.RX);dRO.prototype.getLink=function(){return _.MF(this,fc,1)};var OpL=new vB("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",O9,dRO,function(p){return p.serialize()},_.Mm(dRO));var oj=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(oj,_.RX);oj.prototype.getHeader=function(){return _.MF(this,BB,1)};
oj.prototype.setHeader=function(p){return _.gu(this,1,p)};
oj.prototype.hasHeader=function(){return _.rl(this,BB,1)};var ozV=new vB("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",oj,fc,function(p){return p.serialize()},DRR);var zEd=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(zEd,_.RX);var YPV=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(YPV,_.RX);YPV.prototype.getUrl=function(){return _.fq(this,2)};
YPV.prototype.setUrl=function(p){return _.J2(this,2,p)};var IQA=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(IQA,_.RX);var p0d=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(p0d,_.RX);var yjO=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(yjO,_.RX);var XWO=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(XWO,_.RX);var vwV=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(vwV,_.RX);var lYw=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(lYw,_.RX);var pVV=_.Mm(lYw);var qad=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(qad,_.RX);var sNR=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(sNR,_.RX);_.J=sNR.prototype;_.J.getHeader=function(){return _.MF(this,BB,1)};
_.J.setHeader=function(p){return _.gu(this,1,p)};
_.J.hasHeader=function(){return _.rl(this,BB,1)};
_.J.getCompletionUrl=function(){return _.fq(this,6)};
_.J.getDeviceId=function(){return _.fq(this,11)};var t6T=new vB("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",sNR,lYw,function(p){return p.serialize()},pVV);var EtO=new Set(["SAPISIDHASH","APISIDHASH"]);var Jj1=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Jj1,_.RX);Jj1.prototype.getMessage=function(){return _.fq(this,2)};
var cj9=_.Mm(Jj1);var zn=function(p,y){this.xhrNodeReadableStream_=p.nodeReadableStream;this.grpcResponseDeserializeFn_=y;this.JSC$19103_xhr_=p.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19103_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&e7d(this)},aY9=function(p,y){var l=new h71;
_.BL(p.JSC$19103_xhr_,"complete",function(){if(p.JSC$19103_xhr_.isSuccess()){var q=p.JSC$19103_xhr_.getResponseText();var t;if(t=y)t=p.JSC$19103_xhr_,t.JSC$9731_xhr_&&t.isComplete()?(t=t.JSC$9731_xhr_.getResponseHeader("Content-Type"),t=t===null?void 0:t):t=void 0,t=t==="text/plain";if(t){if(!atob)throw Error("Nj");q=atob(q)}try{var E=p.grpcResponseDeserializeFn_(q)}catch(C){YL(p,byR(new _.Tt(13,"Error when deserializing response data; error: "+C+(", response: "+q)),l));return}q=_.NT8(p.JSC$19103_xhr_.getStatus());
C8d(p,ucT(p));q==0?R7d(p,E):YL(p,byR(new _.Tt(q,"Xhr succeeded but the status code is not 200"),l))}else{q=p.JSC$19103_xhr_.getResponseText();E=ucT(p);if(q){var e=Wnu(p,q);q=e.code;t=e.details;e=e.metadata}else q=2,t="Rpc failed due to xhr error. uri: "+String(p.JSC$19103_xhr_.JSC$9731_lastUri_)+", error code: "+p.JSC$19103_xhr_.JSC$9731_lastErrorCode_+", error: "+p.JSC$19103_xhr_.getLastError(),e=E;C8d(p,E);YL(p,byR(new _.Tt(q,t,e),l))}})},e7d=function(p){p.xhrNodeReadableStream_.on("data",function(y){if("1"in
y){var l=y["1"];
try{var q=p.grpcResponseDeserializeFn_(l)}catch(t){YL(p,new _.Tt(13,"Error when deserializing response data; error: "+t+(", response: "+l)))}q&&R7d(p,q)}if("2"in y)for(y=Wnu(p,y["2"]),l=0;l<p.onStatusCallbacks_.length;l++)p.onStatusCallbacks_[l](y)});
p.xhrNodeReadableStream_.on("end",function(){C8d(p,ucT(p));for(var y=0;y<p.onEndCallbacks_.length;y++)p.onEndCallbacks_[y]()});
p.xhrNodeReadableStream_.on("error",function(){if(p.JSC$19103_onErrorCallbacks_.length!=0){var y=p.JSC$19103_xhr_.JSC$9731_lastErrorCode_;y!==0||p.JSC$19103_xhr_.isSuccess()||(y=6);var l=-1;switch(y){case 0:var q=2;break;case 7:q=10;break;case 8:q=4;break;case 6:l=p.JSC$19103_xhr_.getStatus();q=_.NT8(l);break;default:q=14}C8d(p,ucT(p));y=_.MOO(y)+", error: "+p.JSC$19103_xhr_.getLastError();l!=-1&&(y+=", http status code: "+l);YL(p,new _.Tt(q,y))}})},ucT=function(p){var y={},l=l6T(p.JSC$19103_xhr_);
Object.keys(l).forEach(function(q){y[q]=l[q]});
return y},Wnu=function(p,y){var l=2,q={};
try{var t=cj9(y);l=_.W9(t,1);var E=t.getMessage();_.u4(t,y2d,3,_.RY()).length&&(q["grpc-web-status-details-bin"]=y)}catch(e){p.JSC$19103_xhr_&&p.JSC$19103_xhr_.getStatus()===404?(l=5,E="Not Found: "+String(p.JSC$19103_xhr_.JSC$9731_lastUri_)):(l=14,E="Unable to parse RpcStatus: "+e)}return{code:l,details:E,metadata:q}};
zn.prototype.on=function(p,y){p=="data"?this.onDataCallbacks_.push(y):p=="metadata"?this.onMetadataCallbacks_.push(y):p=="status"?this.onStatusCallbacks_.push(y):p=="end"?this.onEndCallbacks_.push(y):p=="error"&&this.JSC$19103_onErrorCallbacks_.push(y);return this};
var Ij=function(p,y){y=p.indexOf(y);y>-1&&p.splice(y,1)};
zn.prototype.removeListener=function(p,y){p=="data"?Ij(this.onDataCallbacks_,y):p=="metadata"?Ij(this.onMetadataCallbacks_,y):p=="status"?Ij(this.onStatusCallbacks_,y):p=="end"?Ij(this.onEndCallbacks_,y):p=="error"&&Ij(this.JSC$19103_onErrorCallbacks_,y);return this};
zn.prototype.cancel=function(){this.JSC$19103_xhr_.abort()};
var R7d=function(p,y){for(var l=0;l<p.onDataCallbacks_.length;l++)p.onDataCallbacks_[l](y)},C8d=function(p,y){for(var l=0;l<p.onMetadataCallbacks_.length;l++)p.onMetadataCallbacks_[l](y)},YL=function(p,y){for(var l=0;l<p.JSC$19103_onErrorCallbacks_.length;l++)p.JSC$19103_onErrorCallbacks_[l](y)};
zn.prototype.cancel=zn.prototype.cancel;zn.prototype.removeListener=zn.prototype.removeListener;zn.prototype.on=zn.prototype.on;var h71=function(){var p=Error.call(this);this.message=p.message;"stack"in p&&(this.stack=p.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.A(h71,Error);var pa=function(p){this.JSC$19112_worker_=p.worker||null;this.JSC$19112_streamBinaryChunks_=p.streamBinaryChunks||!1;this.JSC$19112_credentialsMode_=void 0};
_.j6(pa,_.H68);pa.prototype.createInstance=function(){var p=new y3(this.JSC$19112_worker_,this.JSC$19112_streamBinaryChunks_);this.JSC$19112_credentialsMode_&&p.setCredentialsMode(this.JSC$19112_credentialsMode_);return p};
pa.prototype.setCredentialsMode=function(p){this.JSC$19112_credentialsMode_=p};
var y3=function(p,y){_.Fn.call(this);this.JSC$19116_worker_=p;this.JSC$19116_streamBinaryChunks_=y;this.JSC$19116_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$19116_responseHeaders_=null;this.JSC$19116_method_="GET";this.JSC$19116_url_="";this.inProgress_=!1;this.JSC$19116_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.j6(y3,_.Fn);y3.prototype.open=function(p,y){if(this.readyState!=0)throw this.abort(),Error("Oj");this.JSC$19116_method_=p;this.JSC$19116_url_=y;this.readyState=1;lZ(this)};
y3.prototype.send=function(p){if(this.readyState!=1)throw this.abort(),Error("Pj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Qj");this.inProgress_=!0;var y={headers:this.requestHeaders_,method:this.JSC$19116_method_,credentials:this.JSC$19116_credentialsMode_,cache:void 0,signal:this.abortController_.signal};p&&(y.body=p);(this.JSC$19116_worker_||_.l_).fetch(new Request(this.JSC$19116_url_,y)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
y3.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,qg(this));this.readyState=0};
y3.prototype.handleResponse_=function(p){if(this.inProgress_&&(this.fetchResponse_=p,this.JSC$19116_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19116_responseHeaders_=p.headers,this.readyState=2,lZ(this)),this.inProgress_&&(this.readyState=3,lZ(this),this.inProgress_)))if(this.responseType==="arraybuffer")p.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.l_.ReadableStream!==
"undefined"&&"body"in p){this.currentReader_=p.body.getReader();if(this.JSC$19116_streamBinaryChunks_){if(this.responseType)throw Error("Rj");this.response=[]}else this.response=this.responseText="",this.JSC$19116_textDecoder_=new TextDecoder;mYu(this)}else p.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var mYu=function(p){p.currentReader_.read().then(p.handleDataFromStream_.bind(p)).catch(p.handleSendFailure_.bind(p))};
y3.prototype.handleDataFromStream_=function(p){if(this.inProgress_){if(this.JSC$19116_streamBinaryChunks_&&p.value)this.response.push(p.value);else if(!this.JSC$19116_streamBinaryChunks_){var y=p.value?p.value:new Uint8Array(0);if(y=this.JSC$19116_textDecoder_.decode(y,{stream:!p.done}))this.response=this.responseText+=y}p.done?qg(this):lZ(this);this.readyState==3&&mYu(this)}};
y3.prototype.handleResponseText_=function(p){this.inProgress_&&(this.response=this.responseText=p,qg(this))};
y3.prototype.handleResponseArrayBuffer_=function(p){this.inProgress_&&(this.response=p,qg(this))};
y3.prototype.handleSendFailure_=function(){this.inProgress_&&qg(this)};
var qg=function(p){p.readyState=4;p.fetchResponse_=null;p.currentReader_=null;p.JSC$19116_textDecoder_=null;lZ(p)};
y3.prototype.setRequestHeader=function(p,y){this.requestHeaders_.append(p,y)};
y3.prototype.getResponseHeader=function(p){return this.JSC$19116_responseHeaders_?this.JSC$19116_responseHeaders_.get(p.toLowerCase())||"":""};
y3.prototype.getAllResponseHeaders=function(){if(!this.JSC$19116_responseHeaders_)return"";for(var p=[],y=this.JSC$19116_responseHeaders_.entries(),l=y.next();!l.done;)l=l.value,p.push(l[0]+": "+l[1]),l=y.next();return p.join("\r\n")};
y3.prototype.setCredentialsMode=function(p){this.JSC$19116_credentialsMode_=p};
var lZ=function(p){p.onreadystatechange&&p.onreadystatechange.call(p)};
Object.defineProperty(y3.prototype,"withCredentials",{get:function(){return this.JSC$19116_credentialsMode_==="include"},
set:function(p){this.setCredentialsMode(p?"include":"same-origin")}});var UYw=function(p){var y="";_.Ts.forEach(p,function(l,q){y+=q;y+=":";y+=l;y+="\r\n"});
return y},$YO=function(p,y,l){if(_.Ts.isEmpty(l))return p;
l=UYw(l);if(typeof p==="string")return _.qi(p,_.y$(y),l);_.pr(p,y,l);return p};var jNO=function(){this.isInputValid_=!0;this.JSC$19121_streamPos_=0;this.leftoverInput_=""};
jNO.prototype.isInputValid=function(){return this.isInputValid_};
jNO.prototype.decode=function(p){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("Sj`"+this.JSC$19121_streamPos_+"`stream already broken`"+p);this.leftoverInput_+=p;p=Math.floor(this.leftoverInput_.length/4);if(p==0)return null;try{var y=_.oNa(this.leftoverInput_.slice(0,p*4))}catch(l){throw y=this.leftoverInput_,p=l.message,this.isInputValid_=!1,Error("Sj`"+this.JSC$19121_streamPos_+"`"+p+"`"+y);}this.JSC$19121_streamPos_+=p*4;this.leftoverInput_=this.leftoverInput_.slice(p*4);return y};var kK=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19124_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
kK.prototype.isInputValid=function(){return this.state_!=3};
var sv=function(p,y,l,q){p.state_=3;p.errorMessage_="The stream is broken @"+p.JSC$19124_streamPos_+"/"+l+". Error: "+q+". With input:\n"+y;throw Error(p.errorMessage_);};
kK.prototype.acceptsBinaryInput=function(){return!0};
kK.prototype.parse=function(p){function y(u){u&128&&sv(E,e,C,"invalid tag");(u&7)!=2&&sv(E,e,C,"invalid wire type");E.tag_=u>>>3;E.tag_!=1&&E.tag_!=2&&E.tag_!=15&&sv(E,e,C,"unexpected tag");E.state_=1;E.length_=0;E.countLengthBytes_=0}
function l(u){E.countLengthBytes_++;E.countLengthBytes_==5&&u&240&&sv(E,e,C,"message length too long");E.length_|=(u&127)<<(E.countLengthBytes_-1)*7;u&128||(E.state_=2,E.countMessageBytes_=0,typeof Uint8Array!=="undefined"?E.messageBuffer_=new Uint8Array(E.length_):E.messageBuffer_=Array(E.length_),E.length_==0&&t())}
function q(u){E.messageBuffer_[E.countMessageBytes_++]=u;E.countMessageBytes_==E.length_&&t()}
function t(){if(E.tag_<15){var u={};u[E.tag_]=E.messageBuffer_;E.result_.push(u)}E.state_=0}
for(var E=this,e=p instanceof Array?p:new Uint8Array(p),C=0;C<e.length;){switch(E.state_){case 3:sv(E,e,C,"stream already broken");break;case 0:y(e[C]);break;case 1:l(e[C]);break;case 2:q(e[C]);break;default:throw Error("Tj`"+E.state_);}E.JSC$19124_streamPos_++;C++}p=E.result_;E.result_=[];return p.length>0?p:null};var Gfd=function(){this.errorMessage_=null;this.JSC$19127_streamPos_=0;this.base64Decoder_=new jNO;this.pbParser_=new kK};
Gfd.prototype.isInputValid=function(){return this.errorMessage_===null};
var bqd=function(p,y,l){p.errorMessage_="The stream is broken @"+p.JSC$19127_streamPos_+". Error: "+l+". With input:\n"+y;throw Error(p.errorMessage_);};
Gfd.prototype.acceptsBinaryInput=function(){return!1};
Gfd.prototype.parse=function(p){this.errorMessage_!==null&&bqd(this,p,"stream already broken");var y=null;try{var l=this.base64Decoder_.decode(p);y=l===null?null:this.pbParser_.parse(l)}catch(q){bqd(this,p,q.message)}this.JSC$19127_streamPos_+=p.length;return y};var nw6=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19130_streamPos_=0;this.result_=[];this.statusParsed_=!1};
nw6.prototype.isInputValid=function(){return this.errorMessage_===null};
nw6.prototype.acceptsBinaryInput=function(){return!1};
nw6.prototype.parse=function(p){function y(u){E.state_=6;E.errorMessage_="The stream is broken @"+E.JSC$19130_streamPos_+"/"+e+". Error: "+u+". With input:\n";throw Error(E.errorMessage_);}
function l(){E.jsonStreamParser_=new _.nn({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function q(u){if(u)for(var a=0;a<u.length;a++){var m={};m[1]=u[a];E.result_.push(m)}}
function t(u){if(u){(E.statusParsed_||u.length>1)&&y("extra status: "+u);E.statusParsed_=!0;var a={};a[2]=u[0];E.result_.push(a)}}
for(var E=this,e=0;e<p.length;){var C;if(C=E.state_!==2){a:{for(;e<p.length;){if(!_.bo(p[e])){C=!0;break a}e++;E.JSC$19130_streamPos_++}C=!1}C=!C}if(C)return null;switch(E.state_){case 6:y("stream already broken");break;case 0:p[e]==="["?(E.state_=1,e++,E.JSC$19130_streamPos_++):y("unexpected input token");break;case 1:p[e]==="["?(E.state_=2,l()):p[e]===","||p.slice(e,e+5)=="null,"?E.state_=3:p[e]==="]"?(E.state_=5,e++,E.JSC$19130_streamPos_++):y("unexpected input token");break;case 2:C=E.jsonStreamParser_.parse(p.substring(e));
q(C);E.jsonStreamParser_.done()?(E.state_=3,C=E.jsonStreamParser_.JSC$11366_buffer_,E.JSC$19130_streamPos_+=p.length-e-C.length,p=C,e=0):(E.JSC$19130_streamPos_+=p.length-e,e=p.length);break;case 3:p[e]===","||p.slice(e,e+5)=="null,"?(E.state_=4,l(),E.jsonStreamParser_.parse("["),e+=p[e]===","?1:5,E.JSC$19130_streamPos_++):p[e]==="]"&&(E.state_=5,e++,E.JSC$19130_streamPos_++);break;case 4:C=E.jsonStreamParser_.parse(p.substring(e));t(C);E.jsonStreamParser_.done()?(E.state_=5,C=E.jsonStreamParser_.JSC$11366_buffer_,
E.JSC$19130_streamPos_+=p.length-e-C.length,p=C,e=0):(E.JSC$19130_streamPos_+=p.length-e,e=p.length);break;case 5:y("extra input after stream end")}}return E.result_.length>0?(p=E.result_,E.result_=[],p):null};var nt1=function(p){this.JSC$19133_xhr_=p;this.JSC$19133_parser_=null;this.status_=this.JSC$19133_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19133_textDecoder_=null;this.JSC$19133_eventHandler_=new _.W2(this);this.JSC$19133_eventHandler_.listen(this.JSC$19133_xhr_,"readystatechange",this.JSC$19135_readyStateChangeHandler_)},tf=function(p,y){p.status_!=y&&(p.status_=y,p.statusHandler_&&p.statusHandler_())},Ev=function(p){p.JSC$19133_eventHandler_.removeAll();
if(p.JSC$19133_xhr_){var y=p.JSC$19133_xhr_;p.JSC$19133_xhr_=null;y.abort();y.dispose()}};
nt1.prototype.getStatus=function(){return this.status_};
nt1.prototype.JSC$19135_readyStateChangeHandler_=function(p){p=p.target;try{if(p==this.JSC$19133_xhr_)a:{var y=_.fu(this.JSC$19133_xhr_),l=this.JSC$19133_xhr_.JSC$9731_lastErrorCode_,q=this.JSC$19133_xhr_.getStatus(),t=this.JSC$19133_xhr_.getResponseText();p=[];if(this.JSC$19133_xhr_.getResponse()instanceof Array){var E=this.JSC$19133_xhr_.getResponse();E.length>0&&E[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,p=E)}if(!(y<3||y==3&&!t&&p.length==0))if(q=q==200||q==206,y==4&&(l==8?tf(this,
7):l==7?tf(this,8):q||tf(this,3)),this.JSC$19133_parser_||(this.JSC$19133_parser_=Pld(this.JSC$19133_xhr_),this.JSC$19133_parser_==null&&tf(this,5)),this.status_>2)Ev(this);else{if(p.length>this.JSC$19133_pos_){var e=p.length;l=[];try{if(this.JSC$19133_parser_.acceptsBinaryInput())for(var C=0;C<e;C++){var u=this.JSC$19133_parser_.parse(Array.from(p[C]));u&&(l=l.concat(u))}else{u="";if(!this.JSC$19133_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Uj");this.JSC$19133_textDecoder_=new TextDecoder}for(C=
0;C<e;C++)u+=this.JSC$19133_textDecoder_.decode(p[C],{stream:y==4&&C==e-1});l=this.JSC$19133_parser_.parse(u)}p.splice(0,e);l&&this.dataHandler_(l)}catch(m){tf(this,5);Ev(this);break a}}else if(t.length>this.JSC$19133_pos_){C=t.slice(this.JSC$19133_pos_);this.JSC$19133_pos_=t.length;try{var a=this.JSC$19133_parser_.parse(C);a!=null&&this.dataHandler_&&this.dataHandler_(a)}catch(m){tf(this,5);Ev(this);break a}}y==4?(t.length!=0||this.hasStreamingResponseData_?tf(this,2):tf(this,4),Ev(this)):tf(this,
1)}}}catch(m){tf(this,6),Ev(this)}};var G61=function(p){p=this.xhrReader_=p;var y=(0,_.FZ)(this.onData_,this);p.dataHandler_=y;p=this.xhrReader_;y=(0,_.FZ)(this.onStatusChange_,this);p.statusHandler_=y;this.JSC$19137_callbackMap_={};this.callbackOnceMap_={}};
_.J=G61.prototype;_.J.on=function(p,y){var l=this.JSC$19137_callbackMap_[p];l||(l=[],this.JSC$19137_callbackMap_[p]=l);l.push(y);return this};
_.J.addListener=function(p,y){this.on(p,y);return this};
_.J.removeListener=function(p,y){var l=this.JSC$19137_callbackMap_[p];l&&_.Oc(l,y);(p=this.callbackOnceMap_[p])&&_.Oc(p,y);return this};
_.J.once=function(p,y){var l=this.callbackOnceMap_[p];l||(l=[],this.callbackOnceMap_[p]=l);l.push(y);return this};
_.J.onData_=function(p){var y=this.JSC$19137_callbackMap_.data;y&&P8u(p,y);(y=this.callbackOnceMap_.data)&&P8u(p,y);this.callbackOnceMap_.data=[]};
var P8u=function(p,y){for(var l={},q=0;q<p.length;l={message$jscomp$1001:void 0},q++)l.message$jscomp$1001=p[q],y.forEach(function(t){return function(E){try{E(t.message$jscomp$1001)}catch(e){}}}(l))};
G61.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:AjV(this,"readable");break;case 5:case 6:case 4:case 7:case 3:AjV(this,"error");break;case 8:AjV(this,"close");break;case 2:AjV(this,"end")}};
var AjV=function(p,y){var l=p.JSC$19137_callbackMap_[y];l&&l.forEach(function(q){try{q()}catch(t){}});
(l=p.callbackOnceMap_[y])&&l.forEach(function(q){q()});
p.callbackOnceMap_[y]=[]};var Zqi=function(){var p={format:"jspb"};p=p===void 0?{}:p;this.suppressCorsPreflight=p.suppressCorsPreflight||_.I4("suppressCorsPreflight",p)||!1;this.withCredentials=p.withCredentials||_.I4("withCredentials",p)||!1;this.streamInterceptors=p.streamInterceptors||[];this.unaryInterceptors=p.unaryInterceptors||[];this.workerScope=p.workerScope;this.chunkedServerStreaming=p.useFetchDownloadStreams||!1},gtO=function(p,y,l,q,t,E){E=E===void 0?{}:E;
var e=y.substring(0,y.length-t.name.length),C,u=(C=E)==null?void 0:C.signal;return M6d(function(a){return new Promise(function(m,U){if(u==null?0:u.aborted){var b=new _.Tt(1,"Aborted");b.cause=u.reason;U(b)}else{var P={},Z=V66(p,a,e);Z.on("error",function(K){return void U(K)});
Z.on("metadata",function(K){P=K});
Z.on("data",function(K){var F=P;F=F===void 0?{}:F;m(new TUd(K,F))});
u&&u.addEventListener("abort",function(){Z.cancel();var K=new _.Tt(1,"Aborted");K.cause=u.reason;U(K)})}})},p.unaryInterceptors).call(p,xRi(t,l,q)).then(function(a){return a.responseMessage})},Jf=function(p,y,l,q,t,E){E=E===void 0?{}:E;
return gtO(p,y,l,q,t,E)};
Zqi.prototype.serverStreaming=function(p,y,l,q){var t=this,E=p.substring(0,p.length-q.name.length);return QNT(function(e){var C=e.methodDescriptor,u=e.getMetadata(),a=Kn7(t,!1);u=w0d(t,u,a,E+C.getName());var m=iq7(a,C.responseDeserializeFn,!0);e=C.requestSerializeFn(e.requestMessage);a.send(u,"POST",e);return m},this.streamInterceptors).call(this,xRi(q,y,l))};
var V66=function(p,y,l){var q=y.methodDescriptor,t=y.getMetadata(),E=Kn7(p,!0);p=w0d(p,t,E,l+q.getName());l=iq7(E,q.responseDeserializeFn,!1);aY9(l,t["X-Goog-Encode-Response-If-Executable"]==="base64");y=q.requestSerializeFn(y.requestMessage);E.send(p,"POST",y);return l},Kn7=function(p,y){y=p.chunkedServerStreaming&&!y;
return p.workerScope||y?new _.Bf(new pa({worker:p.workerScope,streamBinaryChunks:y})):new _.Bf},w0d=function(p,y,l,q){y["Content-Type"]="application/json+protobuf";
y["X-User-Agent"]="grpc-web-javascript/0.1";var t=y.Authorization;if(t&&EtO.has(t.split(" ")[0])||p.withCredentials)l.JSC$9731_withCredentials_=!0;if(p.suppressCorsPreflight)q=$YO(q,"$httpHeaders",y);else for(p=_.c(Object.keys(y)),t=p.next();!t.done;t=p.next())t=t.value,l.headers.set(t,y[t]);return q},iq7=function(p,y,l){if(l){l=new nt1(p);
var q=new G61(l)}return new zn({xhr:p,nodeReadableStream:q},y)},QNT=function(p,y){return y.reduce(function(l,q){return function(t){return q.intercept(t,l)}},p)},M6d=function(p,y){return y.reduce(function(l,q){return function(t){return q.intercept(t,l)}},p)};var rjO=function(p){this.client_=new Zqi;this.hostname_=p==void 0?p:p.replace(/\/+$/,"")};
_.J=rjO.prototype;_.J.JSC$19155_depositGoogleCredential=function(p,y,l){return Jf(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",p,y||{},X3i,l)};
_.J.deleteLink=function(p,y,l){return Jf(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",p,y||{},fQw,l)};
_.J.JSC$19155_finishOAuth=function(p,y,l){return Jf(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",p,y||{},OpL,l)};
_.J.getLink=function(p,y,l){return Jf(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",p,y||{},ozV,l)};
_.J.startLinkingSession=function(p,y,l){return Jf(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",p,y||{},t6T,l)};var SaV=[0,vFV,1,OFT,[0,_.ez,[0,XnT,-1]],[0,dG7],[0,oFR,-1]];var FnR=function(){this.storage=new Map},k6u=function(p,y,l,q,t){if(!p.storage.has(y))return null;
p=_.c(p.storage.get(y));for(y=p.next();!y.done;y=p.next())if(y=y.value,!t||y.linkName===t)if(l&&y.scopes&&LnL(y.scopes,l)||q&&y.capabilities&&LnL(y.capabilities,q))return y;return null},Nlw=function(p,y,l){if(!l)p.storage.delete(y);
else if(p.storage.has(y)){var q=p.storage.get(y).filter(function(t){return t.linkName!==l});
q.length>0?p.storage.set(y,q):p.storage.delete(y)}},LnL=function(p,y){y=_.c(y);
for(var l=y.next();!l.done;l=y.next())if(!p.has(l.value))return!1;return!0};var DY6=function(){var p=_.OY("LINK_GAL_DOMAIN");this.alsDomain1p=_.OY("LINK_GAL_DOMAIN");this.alsDomain3p=p;this.clientEnvironment=0;this.supportedFlows=this.clientXd3=void 0;this.accountLinkingEntryPoint=0;this.galSdkEventHandler=this.dataUsageNoticeConfig=void 0;this.loggerType=0;this.colorScheme=2;this.showCloseOption=!0},Hqw=function(p,y){p.apiKey=y;
return p};
DY6.prototype.build=function(){var p={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Vj");p.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Wj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Xj");p.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(p.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)p.apiKey=
this.apiKey,p.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Yj");p.oauthToken=this.oauthToken;p.alsDomain=this.alsDomain3p}p.clientXd3=this.clientXd3;p.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(p.authUser=this.authUser);this.bucket!==void 0&&(p.bucket=this.bucket);this.completionUrl!==void 0&&(p.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(p.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(p.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(p.locale=this.locale);p.loggerType=this.loggerType;p.clientEnvironment=this.clientEnvironment;p.colorScheme=this.colorScheme;p.showCloseOption=this.showCloseOption;return p};var N5=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(N5,_.RX);var Tlm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Tlm,_.RX);var xYd=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(xYd,_.RX);var Hd=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Hd,_.RX);var BlA=function(p){return _.v0(p,1)};var fYw=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(fYw,_.RX);var KOR=_.Mm(fYw),DB=[1,2,3,4,5];var MNL=function(p){try{return KOR(p)}catch(y){return null}},vtT=function(){},VNR=function(p,y){switch(_.kt(y,DB)){case 4:return(y=_.oN(y,xYd,4,DB))&&p.logStateTransition(_.v0(y,1)),!0;
case 5:return(y=_.oN(y,Tlm,5,DB))&&p.logInternalEvent(_.v0(y,1)),!0}return!1},wWO=function(p){switch(p){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.qL(p)}};var AOV=function(p,y){var l=this;this.validator=p;this.messageListener=y;this.dismissCallback=function(){X07(l,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19184_receiveMessage=function(q){q.type==="message"&&(q=q.event_,q!==null&&(new URL(l.iframe.src)).origin===q.origin&&l.validator(q.data,q.origin)&&!l.messageListener(q.data)&&(l.JSC$19184_resolveCb!==void 0&&l.JSC$19184_resolveCb(q.data),dYV(l)))}},QJu=function(p,y,l){p.uiHandler!==void 0&&X07(p,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(q,t){p.JSC$19184_resolveCb=q;p.JSC$19184_rejectCb=t;p.iframe=document.createElement("iframe");_.l6(p.iframe,y);p.uiHandler=l.displayContent(p.iframe,p.dismissCallback);_.BL(window,"message",p.JSC$19184_receiveMessage,!1,p)})},X07=function(p,y){p.JSC$19184_rejectCb!==void 0&&p.JSC$19184_rejectCb(y);
dYV(p)},dYV=function(p){p.uiHandler!==void 0&&p.uiHandler.hideContent();
_.SJ(window,"message",p.JSC$19184_receiveMessage,!1,p);p.JSC$19184_resolveCb=void 0;p.JSC$19184_rejectCb=void 0;p.uiHandler=void 0;p.iframe=void 0};var Oq9=function(p){if(p===2){var y;p=((y=window)==null?0:y.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return p},gwd=function(p){p=Oq9(p);
switch(p){case 0:return"light";case 1:return"dark";default:_.qL(p)}};var Zyi=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),ot7=function(p,y){this.JSC$19196_linkingSession=p;this.noticeConfig=y;this.displayInfoMap=new Map;var l=new Map;if(_.rl(this.JSC$19196_linkingSession,IQA,7))for(p=_.MF(this.JSC$19196_linkingSession,IQA,7),p=_.u4(p,YPV,1,_.RY()),p=_.c(p),y=p.next();!y.done;y=p.next())y=y.value,l.set(_.v0(y,1),_.l36(_.MF(y,_.ydl,3)));if(l.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){y=this.noticeConfig.enabledDataUsageNoticeUis;p=y.has(0)?l.get(1):void 0;y=y.has(1)?l.get(2):void 0;l=p!==void 0&&y!==void 0?l.get(3):void 0;var q=this.noticeConfig.nestedOrigins;var t=new fYw;var E=new N5;t=_.Qa(t,2,DB,E);E=new fYw;var e=new N5;E=_.Qa(E,3,DB,e);e=[];p!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:p,lastEvent:t,nestedOrigins:q}]),e.push({trustedUrl:p,lastEvent:t,nestedOrigins:q}));y!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:y,lastEvent:E,nestedOrigins:q}]),e.push({trustedUrl:y,lastEvent:E,nestedOrigins:q}));l!==void 0?this.displayInfoMap.set(3,[{trustedUrl:l,lastEvent:E,nestedOrigins:q}]):this.displayInfoMap.set(3,e)}};var z7d=function(p){var y=new FnR;this.galService=p;this.galCache=y};
z7d.prototype.getLink=function(p){var y=p.serviceId;var l=p.scopes;var q=p.capabilities;var t=p.linkName;var E=this,e;return _.h(function(C){if(q!==void 0&&l!==void 0)throw Error("Zj");e=k6u(E.galCache,y,l,q,t);return e!==null?C.return(e):C.return(E.galService.getLink({serviceId:y,sessionId:Math.floor(Math.random()*2147483648),scopes:l,capabilities:q,linkName:t}).then(function(u){u=LOd(u);var a=E.galCache;a.storage.has(y)?a.storage.get(y).push(u):a.storage.set(y,[u]);return u}))})};
z7d.prototype.deleteLink=function(p,y,l){var q=this;return _.h(function(t){Nlw(q.galCache,p,l);return t.return(q.galService.deleteLink({serviceId:p,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:y,linkName:l}).then(function(){return!0}))})};var IYm=function(p,y){var l=this;this.validator=p;this.msgHandler=y;this.closedPopupTimeout=this.JSC$19218_rejectCb=this.JSC$19218_resolveCb=this.popup=null;this.JSC$19218_receiveMessage=function(q){if(q!==null&&(q=q.event_,q.source===l.popup)){var t=q.data;if(l.validator(t,q.origin)){var E;(E=l.msgHandler)!=null&&E.call(l,t)||(l.JSC$19218_resolveCb!==null&&l.JSC$19218_resolveCb(t),Yad(l))}}}};
IYm.prototype.open=function(p,y){var l=this;this.popup!==null&&pZu(this);return new Promise(function(q,t){l.JSC$19218_resolveCb=q;l.JSC$19218_rejectCb=t;l.popup=_.s8(window,p,"",y);_.BL(window,"message",l.JSC$19218_receiveMessage,!1,l);yLA(l)})};
var pZu=function(p,y){p.JSC$19218_rejectCb!==null&&p.JSC$19218_rejectCb(y);Yad(p)},Yad=function(p){p.closedPopupTimeout&&(p.closedPopupTimeout.cancel(),p.closedPopupTimeout=null);
p.popup&&p.popup.close();_.SJ(window,"message",p.JSC$19218_receiveMessage,!1,p);p.popup=null;p.JSC$19218_resolveCb=null;p.JSC$19218_rejectCb=null},yLA=function(p){p.closedPopupTimeout=_.nIB(100).then(function(){p.popup?p.popup.closed?lId(p):yLA(p):pZu(p,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},lId=function(p){p.closedPopupTimeout=_.nIB(100).then(function(){pZu(p,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var qfi=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),sCw=function(p,y,l,q,t,E,e,C,u,a){var m=this;this.serviceId=p;this.sessionId=y;this.galService=l;this.oauthDetails=q;this.galLogger=t;this.interactionMode=E;this.redirectServiceUrl=e;this.consentLanguageKeys=C;this.dynamicUrlParameters=u;this.partnerConfigMinReadTimestamp=a;this.started=!1;this.JSC$19224_dataValidator=function(U,
b){var P=qfi.has(b);P||m.redirectServiceUrl===void 0||(P=m.redirectServiceUrl===b);return P?U.sentinel==="gdi":!1}};
sCw.prototype.complete=function(){var p=this,y;return _.h(function(l){if(p.interactionMode!==1)return l.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));y=xK.getRedirectStateFromUri();return y===null?l.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):l.return(tz7(p,y))})};
sCw.prototype.start=function(){var p=this,y;return _.h(function(l){if(p.started)return l.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.fq(p.oauthDetails,1))return l.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(p.interactionMode===1)return xK.setLocation(_.fq(p.oauthDetails,1)),l.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));p.started=!0;p.galLogger.logStateTransition(5);
y=xK.getPostMessagePopup(p.JSC$19224_dataValidator);return l.return(y.open(_.fq(p.oauthDetails,1),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(q){p.started=!1;var t=p.galLogger;if((q==null?void 0:q.error)!==void 0)throw t.logInternalEvent(59),Error("$j");if((q==null?void 0:q.redirect_state)===void 0)throw t.logInternalEvent(131),Error("ak");return tz7(p,q.redirect_state)}).catch(function(q){p.started=
!1;
return q.errorCode!==void 0?{statusCode:q.errorCode,statusMessage:q.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var tz7=function(p,y){return _.h(function(l){return l.return(EC9(p.galService,{serviceId:p.serviceId,sessionId:p.sessionId,dynamicUrlParameters:p.dynamicUrlParameters,redirectState:y,consentLanguageKeys:p.consentLanguageKeys,partnerConfigMinReadTimestamp:p.partnerConfigMinReadTimestamp}).then(function(q){var t={statusCode:1,link:LOd(q.getLink())};bti(_.Fc(q,3))!==void 0&&(t.callerState=bti(_.Fc(q,3)));p.galLogger.logInternalEvent(134);return t}))})},xK={getPostMessagePopup:function(p){return new IYm(p)},
getRedirectStateFromUri:function(){var p=_.YP(xK.getLocation()).fragment_;return(new _.bR(p)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(p){_.ywL(window.location,_.XX(p))},
createOAuthFlow:function(p,y){return new sCw(p.serviceId,p.sessionId,p.galService,y,p.galLogger,p.interactionMode,p.redirectServiceUrl,p.consentLanguageKeys,p.dynamicUrlParameters,p.partnerConfigMinReadTimestamp)}};var JLu=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(JLu,_.RX);var cLL=_.Mm(JLu);var eu1=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),huu=function(p,y,l,q,t,E,e,C,u){var a=this;this.serviceId=p;this.sessionId=y;this.galService=l;this.gsiWebFlowDetails=q;this.colorScheme=t;this.showCloseOption=E;this.galLogger=e;this.interactionMode=C;this.redirectServiceUrl=u;this.started=!1;this.JSC$19236_dataValidator=function(m,U){var b=eu1.has(U);b||a.redirectServiceUrl===
void 0||(b=a.redirectServiceUrl===U);return b?m.sentinel==="gal":!1};
this.logEventProcessor=function(m){return m.result?(m=MNL(m.result))?VNR(a.galLogger,m):!1:!1}};
huu.prototype.complete=function(){var p=this,y,l;return _.h(function(q){if(p.interactionMode!==1)return q.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));y=Bd.getRedirectStateFromUri();if(y===void 0)return p.galLogger.JSC$19176_logErrorEvent(131),q.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return l=Ck9(p,y),q.return(udR(p,l))}catch(t){return q.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
huu.prototype.start=function(){var p=this,y;return _.h(function(l){if(p.started)return l.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.fq(p.gsiWebFlowDetails,1))return l.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(p.interactionMode===1)return Bd.setLocation(Ru7(p,_.fq(p.gsiWebFlowDetails,1))),l.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
p.started=!0;y=Bd.getPostMessagePopup(p.JSC$19236_dataValidator,p.logEventProcessor);return l.return(y.open(Ru7(p,_.fq(p.gsiWebFlowDetails,1)),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(q){p.started=!1;if((q==null?void 0:q.result)===void 0)throw p.galLogger.JSC$19176_logErrorEvent(131),Error("ak");q=Ck9(p,q.result);return udR(p,q)}).catch(function(q){p.started=!1;
return q.errorCode!==void 0?{statusCode:q.errorCode,statusMessage:q.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var Ru7=function(p,y){p=["result_channel",p.interactionMode===1?"2":"1","color_scheme",gwd(p.colorScheme),"show_close_option",p.showCloseOption];return p3V(y,p)},udR=function(p,y){if(y!==null&&_.rl(y,Hd,2)){var l,q=y==null?void 0:(l=_.MF(y,Hd,2))==null?void 0:_.v0(l,2);
q&&p.galLogger.JSC$19176_logErrorEvent(wWO(q));return BlA(_.MF(y,Hd,2))===1?Promise.resolve({statusCode:10,statusMessage:"flow cannot start due to recoverable reason"}):Promise.resolve({statusMessage:"Web-endpoint returned an error",statusCode:7})}return p.galService.getLink({serviceId:p.serviceId,sessionId:p.sessionId,consistencyKey:_.fq(y,1)}).then(function(t){t=LOd(t);p.galLogger.logInternalEvent(134);return{statusCode:1,link:t}})},Ck9=function(p,y){y=cLL(y);
if(!_.rl(y,Hd,2)&&_.fq(y,1)==="")throw p.galLogger.JSC$19176_logErrorEvent(5),Error("bk");return y},Bd={getPostMessagePopup:function(p,y){return new IYm(p,y)},
getRedirectStateFromUri:function(){return _.IY(_.YP(Bd.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(p){_.ywL(window.location,_.XX(p))},
createStreamlinedFlow:function(p,y){return new huu(p.serviceId,p.sessionId,p.galService,y,p.colorScheme,p.showCloseOption,p.galLogger,p.interactionMode,p.redirectServiceUrl)}};var Yb1=function(){var p=_.sr6("GAL");this.storage=p?new _.F3(p):null};
Yb1.prototype.getSession=function(p){if(this.storage!==null)try{var y=this.storage.get("SAVED_SESSION");if(y===void 0)return null;if(y.serviceId===p)return y}catch(l){}return null};var cA=function(){};
_.A(cA,vtT);cA.prototype.logStateTransition=function(){};
cA.prototype.logInternalEvent=function(){};
cA.prototype.JSC$19176_logErrorEvent=function(){};var WCA=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(WCA,_.RX);WCA.prototype.getCompletionUrl=function(){return _.fq(this,15)};var eH=function(p,y,l,q,t,E){this.serviceId=p;this.environment=y;this.sessionId=l;this.colorSchemeSelected=q;this.colorThemeDisplayed=t;this.JSC$19249_transport=E;this.currentState=1};
_.A(eH,vtT);eH.prototype.logStateTransition=function(p){var y=aIR(this);y=_.a7(y,3,this.currentState);y=_.a7(y,1,p);this.currentState=p;p=ys9(1);this.dispatch(y,p)};
eH.prototype.logInternalEvent=function(p){p=ys9(p);this.dispatch(aIR(this),p)};
eH.prototype.JSC$19176_logErrorEvent=function(p){var y=aIR(this);y=_.a7(y,1,10);p=ys9(p);this.dispatch(y,p)};
var aIR=function(p){var y=new WCA;y=_.a7(y,1,p.currentState);y=_.Fq(y,7,p.serviceId);var l,q;var t=((l=window)==null?0:(q=l.location)==null?0:q.href)?_.YP(window.location.href).JSC$9968_domain_:"NO_PACKAGE_NAME";l=_.Fq(y,8,t);l=_.a7(l,6,p.environment);l=_.Fq(l,5,"100");l=_.a7(l,11,p.colorSchemeSelected);return _.a7(l,12,p.colorThemeDisplayed)};
eH.prototype.dispatch=function(p,y){y===void 0&&(y=new _.Pf);var l=y;p=p.serialize();l=_.Fq(l,8,p);_.wJ(l,12,this.sessionId);this.JSC$19249_transport.dispatch(y)};var mZd=function(p,y){this.loggerType=p;this.sessionIndex=y!=null?y:0},UZT;
mZd.prototype.create=function(p,y,l,q,t){switch(this.loggerType){case 0:return new cA;case 1:return UZT||(UZT=(new _.GH(555,this.sessionIndex.toString())).build()),new eH(p,y,l,q,t,UZT);default:_.qL(this.loggerType,"unknown logger type")}};var fA=[6,2,3,1],sr1=new Map([[4,1],[1,6],[2,2],[3,3]]),Hyd={statusCode:7,statusMessage:"Failed to create flow object"},owO=function(p,y,l,q,t,E,e,C,u,a){this.serviceId=p;this.sessionId=y;this.config=l;this.galService=q;this.JSC$19256_linkingSession=t;this.googleScopes=E;this.callerState=e;this.consentLanguageKeys=C;this.dynamicUrlParameters=u;this.partnerConfigMinReadTimestamp=a;this.currentFlow=0;q=this.JSC$19256_linkingSession;t=new Set;_.rl(q,vwV,1)&&t.add(1);_.rl(q,yjO,2)&&_.rl(q,XWO,6)&&t.add(2);
_.rl(q,p0d,3)&&_.rl(q,XWO,6)&&t.add(3);_.rl(q,zEd,4)&&t.add(6);this.supportedFlows=t;q=l.loggerType;t=l.clientEnvironment;a:{E=l.colorScheme;switch(E){case 0:E=1;break a;case 1:E=2;break a;case 2:E=3;break a;default:_.qL(E)}E=void 0}a:{e=l.colorScheme;e=Oq9(e);switch(e){case 0:e=1;break a;case 1:e=2;break a;default:_.qL(e)}e=void 0}this.galLogger=(new mZd(q,l.authUser)).create(p,t,y,E,e)},jCw=function(p){return new Promise(function(y){var l,q,t,E,e,C,u,a,m,U;
return _.h(function(b){switch(b.nextAddress){case 1:l=dni(p.currentFlow,p.supportedFlows),q=!1,t=new ot7(p.JSC$19256_linkingSession,p.config.dataUsageNoticeConfig);case 2:if(l===void 0){b.jumpTo(4);break}_.Ve(b,5);var P=t,Z=l,K=void 0;q?Z===1&&(K=P.displayInfoMap.get(2)):Z===2||Z===3?K=P.displayInfoMap.get(1):Z===1&&(K=P.displayInfoMap.get(3));E=K?K:[];e=p.consentLanguageKeys;C=_.c(E);u=C.next();case 7:if(u.done)return p.currentFlow=l,b.yield(xnO($ZV(p,e)),11);a=u.value;return b.yield(iyL(a,p.config.dataUsageNoticeConfig.uiAdapter,
p.config.colorScheme,p.galLogger),10);case 10:m=b.yieldResult;if(m.statusCode!==1)return Ib7(p.serviceId),p.currentFlow=0,y(TQ({statusCode:m.statusCode,statusMessage:m.statusMessage},p.callerState)),b.return();m.consentLanguageKeys!==void 0&&(e=m.consentLanguageKeys);u=C.next();b.jumpTo(7);break;case 11:U=b.yieldResult;if(U.statusCode!==10)return U.statusCode!==6&&(Ib7(p.serviceId),p.currentFlow=0),U.statusCode!==1&&p.callerState!==void 0&&(U.callerState=p.callerState),y(U),b.return();_.pK(b,6);break;
case 5:_.i6(b);case 6:l=dni(p.currentFlow,p.supportedFlows);q=!0;b.jumpTo(2);break;case 4:Ib7(p.serviceId),p.currentFlow=0,y(TQ({statusCode:12,statusMessage:"Linking failed"},p.callerState)),_.rR(b)}})})},lFO=function(p,y,l){p.currentFlow=y;
return B$9($ZV(p,l)).then(function(q){return q.statusCode===10&&p.config.interactionMode===1&&dni(p.currentFlow,p.supportedFlows)!==void 0?jCw(p):q})},$ZV=function(p,y){return{flowParams:{serviceId:p.serviceId,
sessionId:p.sessionId,galService:p.galService,galLogger:p.galLogger,interactionMode:p.config.interactionMode,redirectServiceUrl:p.config.redirectServiceUrl,colorScheme:p.config.colorScheme,consentLanguageKeys:y,dynamicUrlParameters:p.dynamicUrlParameters,showCloseOption:p.config.showCloseOption,partnerConfigMinReadTimestamp:p.partnerConfigMinReadTimestamp},currentFlow:p.currentFlow,config:p.config,session:p.JSC$19256_linkingSession,googleScopes:p.googleScopes,callerState:p.callerState}};var Ey1=function(p,y){this.config=p;this.galService=y.getService();this.JSC$19269_galRepository=y.JSC$19287_galRepository};
Ey1.prototype.getLink=function(p,y){return bj6(this,p,y)};
var bj6=function(p,y,l){return p.JSC$19269_galRepository.getLink({serviceId:y,scopes:void 0,capabilities:void 0,linkName:l}).then(function(q){return{statusCode:1,link:q}}).catch(function(q){return{statusCode:t$d(q.code),
statusMessage:q.message}})};
Ey1.prototype.deleteLink=function(p,y){return this.JSC$19269_galRepository.deleteLink(p,this.config.accountLinkingEntryPoint,y).then(function(){return{statusCode:1}}).catch(function(l){return{statusCode:t$d(l.code),
statusMessage:l.message}})};
Ey1.prototype.startLinkingSession=function(p){var y=p.serviceId;var l=p.sessionId;return zS1({serviceId:y,sessionId:l!==void 0?l:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:p.loginHint,callerState:p.callerState,consentLanguageKeys:p.consentLanguageKeys,linkName:p.linkName,dynamicUrlParameters:p.dynamicUrlParameters,partnerConfigMinReadTimestamp:p.partnerConfigMinReadTimestamp})};var hf=function(p,y,l,q,t,E,e){this.apiKey=y;this.authUser=l;this.oauthToken=q;this.bucket=t;this.locale=E;this.galSdkEventHandler=e;if(q===void 0){if(y===void 0)throw Error("ck");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new rjO(p)};
hf.prototype.deleteLink=function(p){var y=p.serviceId;var l=p.sessionId;var q=p.accountLinkingEntryPoint;var t=p.linkName;var E=this,e;return _.h(function(C){var u=(new X5).setHeader(E.getHeader(l));var a=nCu({serviceId:y,linkName:t});u=_.gu(u,2,a);e=_.Yt(u,3,q);return C.return(E.makeRequest(E.galServiceClient.deleteLink,e,[1,3],[2,4]))})};
var EC9=function(p,y){var l=y.serviceId;var q=y.sessionId;var t=y.dynamicUrlParameters;var E=y.redirectState;var e=y.consentLanguageKeys;var C=y.partnerConfigMinReadTimestamp;var u;return _.h(function(a){var m=(new O9).setHeader(p.getHeader(q,t));m=_.J2(m,2,l);u=_.J2(m,4,E);e!==void 0&&_.J2(u,5,e);C!==void 0&&_.gu(u,6,C);return a.return(p.makeRequest(p.galServiceClient.JSC$19155_finishOAuth,u,[1,3],[2,4]))})};
hf.prototype.getLink=function(p){var y=p.serviceId;var l=p.sessionId;var q=p.scopes;var t=p.capabilities;var E=p.consistencyKey;var e=p.linkName;var C=this,u;return _.h(function(a){var m=(new oj).setHeader(C.getHeader(l)),U=nCu({serviceId:y,scopes:q,capabilities:t,linkName:e});u=_.gu(m,2,U);E!==void 0&&(m=kK9(),m=_.J2(m,2,E),_.gu(u,3,m));return a.return(C.makeRequest(C.galServiceClient.getLink,u,[1,3],[2,4]))})};
var fbu=function(p,y){var l=y.serviceId;var q=y.sessionId;var t=y.googleScopes;var E=y.consistencyKey;var e;return _.h(function(C){var u=(new dE).setHeader(p.getHeader(q));u=_.J2(u,2,l);var a=Array.from(t.values());u=_.tE(u,3,a,_.w6);a=kK9();a=_.J2(a,2,E);e=_.gu(u,4,a);return C.return(p.makeRequest(p.galServiceClient.JSC$19155_depositGoogleCredential,e,[1,3],[2,4]))})};
hf.prototype.startLinkingSession=function(p){var y=p.serviceId;var l=p.sessionId;var q=p.scopes;var t=p.capabilities;var E=p.loginHint;var e=p.supportedFlows;var C=p.completionUrl;var u=p.usePingPong;var a=p.twoWayLinking;var m=p.accountLinkingEntryPoint;var U=p.callerState;var b=p.consentLanguageKeys;var P=p.googleScopes;var Z=p.dataUsageNoticeConfig;var K=p.linkName;var F=p.dynamicUrlParameters;var L=p.partnerConfigMinReadTimestamp;var T=this,O,f;return _.h(function(v){if(t!==void 0&&q!==void 0)throw Error("Zj");
var z=(new sNR).setHeader(T.getHeader(l,F));O=_.J2(z,2,y);K!==void 0&&_.J2(O,14,K);if(t!==void 0){z=O;var sc=Array.from(t.values());_.tE(z,5,sc,_.w6)}else q!==void 0&&(z=O,sc=Array.from(q.values()),_.tE(z,3,sc,_.w6));C!==void 0&&_.J2(O,6,C);u!==void 0&&_.D_(O,15,u);e!==void 0&&(z=O,sc=Array.from(e.values()),_.tE(z,4,sc,_.hm));if(a!==void 0){if(a&&(!P||P.size===0))throw Error("dk");_.D_(O,8,a)}m!==void 0&&_.Yt(O,9,m);E!==void 0&&_.J2(O,13,E);U!==void 0&&(z=O,sc=(new TextEncoder).encode(U),_.E3(z,12,
_.HU(sc,!1),_.DV()));b!==void 0&&_.J2(O,16,b);L!==void 0&&_.gu(O,18,L);if(Z!==void 0&&Z.size>0||P!==void 0&&P.size>0)f=new qad,P!==void 0&&P.size>0&&(z=f,sc=Array.from(P.values()),_.tE(z,1,sc,_.w6)),Z!==void 0&&(Z.has(0)&&_.Am8(f,2,_.hm,1,_.C7),Z.has(1)&&_.Am8(f,2,_.hm,2,_.C7)),_.gu(O,17,f);return v.return(T.makeRequest(T.galServiceClient.startLinkingSession,O,[1],[2]))})};
hf.prototype.getMetadata=function(){var p=this,y,l;return _.h(function(q){y={};p.useFpa?(y["X-Goog-Api-Key"]=p.apiKey,y["X-Goog-AuthUser"]=p.authUser!==void 0?p.authUser.toString():"0",(l=_.Krl([]))&&(y.Authorization=l)):y.Authorization="Bearer "+p.oauthToken;p.locale&&(y["accept-language"]=p.locale);return q.return(y)})};
hf.prototype.makeRequest=function(p,y,l,q){var t=this,E;return _.h(function(e){if(e.nextAddress==1)return e.yield(t.getMetadata(),2);E=e.yieldResult;GkL(t,l);return e.return(p.bind(t.galServiceClient)(y,E).finally(function(){GkL(t,q)}))})};
var GkL=function(p,y){p.galSdkEventHandler!==void 0&&y.forEach(function(l){p.galSdkEventHandler.onEvent(l)})};
hf.prototype.getHeader=function(p,y){var l=new BB;p=_.E3(l,2,_.WR(p),0);p=_.Yt(p,5,3);y=_.tE(p,8,y,_.w6);this.bucket!==void 0&&_.J2(y,1,this.bucket);return y};
var nCu=function(p){var y=p.serviceId;var l=p.scopes;var q=p.capabilities;p=p.linkName;if(q!==void 0&&l!==void 0)throw Error("Zj");var t=new F8d;y=_.J2(t,1,y);q!==void 0?(l=Array.from(q.values()),_.tE(y,5,l,_.w6)):l!==void 0&&(l=Array.from(l.values()),_.tE(y,3,l,_.w6));p!==void 0&&_.J2(y,6,p);return y};var JeA=function(p){this.galService=new hf(p.alsDomain,p.apiKey,p.authUser,p.oauthToken,p.bucket,p.locale,p.galSdkEventHandler);this.JSC$19287_galRepository=new z7d(this.galService)};
JeA.prototype.getService=function(){return this.galService};var PkT=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(PkT,_.RX);var ALT=function(p){var y=new PkT;return _.a7(y,1,p)};
PkT.prototype.setErrorMessage=function(p){return _.Fq(this,2,p)};var Zjw=[0,_.Cj,_.cZ,_.Cj];var Ca=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Ca,_.RX);var Mzm=[0,[1,2,3],_.hL,[0,TPd,fyd,-1],_.hL,[0,BPi,-1],_.sI5];var Vzi=[0,_.Ef,1,_.Cj,_.cZ,-1,1,_.JWa,_.tL,_.Cj,-1,Mzm];var gCm=[0,_.Cj,[0,_.JWa,_.tL,[0,_.cZ]],_.JL,[0,_.Cj,-1]];var gE=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(gE,_.RX);var QCL=[0,_.cZ,_.Cj,-2,_.Ef,_.Cj,_.Ef,_.Cj,-2,1,_.JL];var KCA=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(KCA,_.RX);var wZT=[0,_.Ef];var ijT=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(ijT,_.RX);var rLu=[0,_.Cj,gCm,wZT,QCL,Vzi];var FRL=_.AE(ijT,rLu);var SfO=[0,SaV];var TDA=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(TDA,_.RX);var FCL=[0,[1,3],zQi,_.Cj,zQi];var M2=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(M2,_.RX);var LCu=[0,_.Cj];var kku=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(kku,_.RX);var Vw=function(p){return _.oN(p,PkT,2,Zc)},NHT=function(p){var y=new kku;
return _.Qa(y,2,Zc,p)},Zc=[1,
2];var DZT=[0,Zc,_.hL,LCu,_.hL,Zjw,_.ez,FCL,1,_.Cj,SfO];var Hjm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(Hjm,_.RX);var xZO=function(p){var y=new Hjm;return _.Qa(y,3,THA,p)},THA=[2,
3];var uZ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(uZ,_.RX);var BHw=function(p,y){return _.gu(p,2,y)},fI7=function(p,y){return _.gu(p,8,y)},vCi=function(p,y){return _.gu(p,3,y)};var XZ9=[0,_.Cj,DZT,rLu,_.mmB,[0,[5,6],[0,_.Cj,-2],[0,_.Ef,_.Cj,_.cZ],[0,Mzm],[0,_.cZ,_.Cj,-1,_.alN,_.Cj],_.hL,[0,[0,_.Ef],_.Cj,-1],_.hL,[0,[3,4],_.Cj,-1,_.hL,[0,[0,_.Cj,_.JL]],_.hL,[0,[0,[0,[1,2],_.hL,[0],_.hL,[0]]]]]],_.mmB,-1,[0,THA,_.Cj,_.hL,LCu,_.hL,Zjw,_.ez,FCL,[0,SaV]]];var dZA=_.AE(uZ,XZ9),Ojm=_.Zl(XZ9);var oC1=function(){_.Sr.call(this)};
_.A(oC1,_.Sr);oC1.prototype.init=function(){};
new oC1;var zu9=_.c0(["data-"]),Yfm=_.c0(["aria-"]),IId=_.c0(["aria-"]),RD=function(p,y){this.isLatencyMeasurementExperiment=p===void 0?!1:p;this.enableDialogA11yFix=y===void 0?!1:y;this.JSC$19316_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.T6V(_.l_.location.href)},kTd=function(p,y){p.onConsentPrimitiveShownCallback=y},pfT=function(p,y){return p.overriddenIframeLoadTimeout?p.overriddenIframeLoadTimeout:y!==void 0?y:5E3},DWd=function(p){if(p.prewarmPromise!==void 0)return p.prewarmPromise;
p.prewarmPromise=new Promise(function(y,l){WA(p,1);y7m(p,lOV(p,!0),qVR(p));p.iframe?p.prewarmChannel||sZ9(p,p.iframe,y):l(Error("ek"))});
p.prewarmPromise.finally(function(){p.prewarmPromise=void 0});
return p.prewarmPromise};
RD.prototype.showPrimitive=function(){var p=this;if(this.consentPromise!==void 0)return this.consentPromise;var y=Date.now();tJi(this,y);this.consentPromise=new Promise(function(l,q){WA(p,0,y);var t=p.isDarkTheme();p.isLatencyMeasurementExperiment||p.initialLoadingStrategy===1||p.initialLoadingStrategy===2||(p.loadingBar||(p.loadingBar=Cad(getComputedStyle(document.body).direction==="rtl",t),p.loadingBar.style.position="fixed",p.loadingBar.style.zIndex="15000"),document.body.appendChild(p.loadingBar));
y7m(p,lOV(p),qVR(p));p.iframe?p.channel||EvT(p,p.iframe,l,q):(J7L(p),q(Error("ek")))});
this.consentPromise.finally(function(){p.consentPromise=void 0});
return this.consentPromise};
var EvT=function(p,y,l,q){var t,E;_.h(function(e){switch(e.nextAddress){case 1:WA(p,3);t=!1;setTimeout(function(){if(!t){J7L(p);c76(p);eB7(p);var C=ALT(7).setErrorMessage("Timeout connecting to iframe");l(fI7(BHw(new uZ,NHT(C)),xZO(C)))}},pfT(p,hBi(p)));
if(!p.prewarmPromise){e.jumpTo(2);break}_.Ve(e,3);return e.yield(p.prewarmPromise,5);case 5:_.pK(e,2);break;case 3:_.i6(e),E=ALT(4).setErrorMessage("Error while prewarming."),l(fI7(BHw(new uZ,NHT(E)),xZO(E)));case 2:p.prewarmChannel&&p.prewarmChannel.send(Ojm(vCi(new uZ,p.consentPrimitiveRequest))),p.channel=_.aC({destination:p.JSC$19316_win,iframe:y,origin:C09(p),channelName:"cpw",onEstablished:function(){t=!0;J7L(p);p.isLatencyMeasurementExperiment||(p.JSC$19316_previousBodyOverflow=document.body.style.overflow,
p.JSC$19316_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,p.JSC$19316_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",p.enableDialogA11yFix&&window.addEventListener("blur",p.focusChangeListener));var C=p.iframe;C.style.bottom="0";C.style.position="fixed";C.style.right="0";C.style.border="none";C.style.left="0";C.style.top=
"0";C.style.zIndex="5000";C.style.pointerEvents="";C.style.visibility="";p.initialLoadingStrategy===2||p.initialLoadingStrategy===3?WA(p,4):WA(p,6);var u;(u=p.onConsentPrimitiveShownCallback)==null||u.call(p)},
onMessage:function(C){C=dZA(C.data);switch(_.v0(C,1)){case 1:c76(p);var u=uTm(_.MF(C,_.ok,7));u&&(p.initialLoadingStrategy!==2&&p.initialLoadingStrategy!==3||WA(p,6,u),WA(p,5,u));if(u=uTm(_.MF(C,_.ok,6)))WA(p,7,u),WA(p,8);var a,m;((a=_.MF(C,kku,2))==null?void 0:_.kt(a,Zc))!==0&&((m=_.MF(C,Hjm,8))==null?void 0:_.kt(m,THA))!==0||q(Error("fk"));l(C);break;case 2:eB7(p)}}}),_.rR(e)}})},sZ9=function(p,y,l){p.prewarmChannel=_.aC({destination:p.JSC$19316_win,
iframe:y,origin:C09(p),channelName:"pwcp",onEstablished:function(){WA(p,2);l()}})},C09=function(p){var y=_.LO(p.src).toString();
return y&&y.indexOf("://")<0&&y.indexOf("//")!==0?p.origin:_.T6V(y)},lOV=function(p,y){y=y===void 0?!1:y;
var l,q=new Map([["origin",p.origin],["hl",(l=und(p))!=null?l:null]]);y&&q.set("pw","1");y=_.c([["cpr",p.consentPrimitiveRequest.serialize()]]);for(l=y.next();!l.done;l=y.next()){var t=_.c(l.value);l=t.next().value;t=t.next().value;q.set(l,t)}p.isDarkTheme()&&q.set("color_scheme","dark");return _.n0(p.src,q)},J7L=function(p){p.isLatencyMeasurementExperiment||p.loadingBar&&document.body.removeChild(p.loadingBar)};
RD.prototype.getSrc=function(){var p=_.eM(this.origin),y;var l=(y=_.MF(this.consentPrimitiveRequest,KCA,3))==null?void 0:_.W9(y,1);y="consent.google.com";l=l?"/u/"+encodeURIComponent(l.toString()):"";(p==null?0:p.endsWith("youtube.com"))?y="consent.youtube.com":(p=p==null?void 0:p.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(y="consent.google."+((p[1]?"co.":"")+encodeURIComponent(p[2])));return _.FX("https://"+y+"/signedin"+l+"/landing")};
var y7m=function(p,y,l){p.iframe||(p.iframe=document.createElement("iframe"),p.iframe.style.width="100%",p.iframe.style.height="100%",l!==112496729&&(p.iframe.style.colorScheme="auto"),p.isLatencyMeasurementExperiment&&(p.iframe.style.display="none"),_.l6(p.iframe,y),p.iframe.setAttribute("jsname","C5o1O"),RBd(p.iframe),document.body.appendChild(p.iframe))},RBd=function(p){p.style.bottom="-200vh";
p.style.position="fixed";p.style.right="-200vw";p.style.border="";p.style.left="";p.style.top="";p.style.zIndex="";p.style.pointerEvents="none";p.style.visibility="hidden"},c76=function(p){p.iframe&&(p.isLatencyMeasurementExperiment||(p.JSC$19316_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=p.JSC$19316_previousHtmlOverscroll),p.JSC$19316_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=p.JSC$19316_previousBodyOverscroll),p.JSC$19316_previousBodyOverflow!==
void 0&&(document.body.style.overflow=p.JSC$19316_previousBodyOverflow),p.enableDialogA11yFix&&W67(p,!1)),RBd(p.iframe))};
RD.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(W67(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var W67=function(p,y){var l,q,t=(l=p.iframe)==null?void 0:(q=l.parentElement)==null?void 0:q.children;if(t)for(l=0;l<t.length;l++)q=t[l],q!==p.iframe&&(y?(q.hasAttribute("aria-hidden")&&_.CC([_.$I(zu9)],q,"data-old-aria-hidden",q.getAttribute("aria-hidden")),_.CC([_.$I(Yfm)],q,"aria-hidden","true")):(q.removeAttribute("aria-hidden"),q.hasAttribute("data-old-aria-hidden")&&(_.CC([_.$I(IId)],q,"aria-hidden",q.getAttribute("data-old-aria-hidden")),q.removeAttribute("data-old-aria-hidden"))))},WA=function(p,
y,l){var q;
(q=p.latencyCallback)==null||q.call(p,{latencyType:y,timestampEpochMillis:l!=null?l:Date.now()})};var aOA=function(p,y,l){RD.call(this,y,l===void 0?!1:l);this.consentPrimitiveRequest=p;p=und(this);_.tWu(p);this.src=this.getSrc();var q;this.initialLoadingStrategy=(q=_.MF(this.consentPrimitiveRequest,gE,4))==null?void 0:_.v0(q,4)},miA;
_.A(aOA,RD);var LR1=function(p){var y=_.n("enable_primitive_dialog_aria_hide_siblings");p={request:p,enableDialogA11yFix:y===void 0?!1:y};miA||(miA=new aOA(p.request,p.isLatencyMeasurementExperiment||_.v0(p.request,1)===2,p.enableDialogA11yFix));return miA},und=function(p){var y;
return(y=_.MF(p.consentPrimitiveRequest,gE,4))==null?void 0:_.fq(y,1)},tJi=function(p,y){if(!_.rl(p.consentPrimitiveRequest,Ca,5)){var l=p.consentPrimitiveRequest,q=new Ca;
_.gu(l,5,q)}var t;if((t=_.MF(p.consentPrimitiveRequest,Ca,5))==null||_.jv5(_.i8(t,8))==null){var E;(E=_.MF(p.consentPrimitiveRequest,Ca,5))!=null&&_.wJ(E,8,y)}},qVR=function(p){var y;
return(y=_.MF(p.consentPrimitiveRequest,Ca,5))==null?void 0:_.W9(y,1)};
aOA.prototype.isDarkTheme=function(){var p;return((p=_.MF(this.consentPrimitiveRequest,gE,4))==null?void 0:_.v0(p,2))===2};
var hBi=function(p){var y;return((y=_.MF(p.consentPrimitiveRequest,gE,4))==null?void 0:_.W9(y,5))||void 0},eB7=function(p){p.channel=void 0;
p.prewarmChannel=void 0;p.iframe&&(document.body.contains(p.iframe)&&document.body.removeChild(p.iframe),p.iframe=void 0);miA=void 0},HY9=function(p){return RD.prototype.showPrimitive.call(p).then(function(y){return _.MF(y,kku,2)})};for(var aD={},Uiu=(aD[64]="ma",aD[73]="ogb",aD[89]="cr",aD[21]="test",aD[0]="unkn",aD[137]="con",aD[155]="hl",aD[78]="yt",aD[171]="lp",aD[172]="ap",aD[177]="amo",aD[178]="pqe",aD[74]="gg",aD[1]="gm",aD[140]="am",aD[193]="sc",aD),$i9=_.c(Object.keys(Uiu)),jZO=$i9.next();!jZO.done;jZO=$i9.next());var buO=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(buO,_.RX);var nv1=[0,[2,3,4],_.Cj,xGO,zQi,_.sI5];var GtL=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(GtL,_.RX);var P07=_.AE(GtL,[0,oFR,_.cZ,_.Cj,_.cZ,_.Cj,nv1]);var A79=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(A79,_.RX);A79.prototype.getCommand=function(){return _.v0(this,1)};
var Zu7=function(){var p=new A79;return _.Yt(p,1,0)};var MJL=_.Zl([0,oFR,_.cZ,[0,_.Cj,_.cZ,-1]]);var VJL=new _.Q4("s"),gvu=new _.Q4("t"),QZw=new _.Q4("u"),K6w=new _.Q4("v"),wf1=function(p,y,l){_.Ku.call(this,VJL);this.mediaKey=p;this.photoUrl=y;this.photoSource=l};
_.A(wf1,_.Ku);var iud=function(){_.Ku.call(this,gvu)};
_.A(iud,_.Ku);var r7w=function(p){p=p===void 0?!1:p;_.Ku.call(this,QZw);this.isError=p};
_.A(r7w,_.Ku);var SVA=function(){_.Ku.call(this,K6w)};
_.A(SVA,_.Ku);var F6w=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,Di9=function(p){if(typeof p=="string"){if(p.charAt(0)==".")return L6V(p.substr(1));if(p.charAt(0)=="["){var y=F6w.exec(p);p=p.indexOf("=")==-1?void 0:y[3];return ktd(y[1],p)}return N5T(p)}return p},L6V=function(p){return function(y){return y.getAttribute&&_.lR(y,p)}},ktd=function(p,y){return function(l){return y!==void 0?l.getAttribute&&l.getAttribute(p)==y:l.hasAttribute&&l.hasAttribute(p)}},N5T=function(p){p=p.toUpperCase();
return function(y){return(y=y.tagName)&&y.toUpperCase()==p}},Hud=function(){return!0};var m_=function(p,y){this.JSC$19344_key_=p;this.JSC$19344_value_=y},Uv=function(p){throw Error("gk`"+p.JSC$19344_key_);
},T5O=function(p,y){return new TypeError("hk`"+y+"`"+p.JSC$19344_key_+"`"+p.JSC$19344_value_+"`"+typeof p.JSC$19344_value_)};
m_.prototype.string=function(p){return arguments.length==0?xiV(this):B5i(this,p)};
var B5i=function(p,y){var l;return(l=fO1(p))!=null?l:y},xiV=function(p){var y=fO1(p);
y===null&&Uv(p);return y},fO1=function(p){var y=p.JSC$19344_value_;
if(y==null)return null;if(typeof y==="string")return y;throw T5O(p,"string");};
m_.prototype.bool=function(p){if(arguments.length==0){var y=this.optionalBool();y===null&&Uv(this)}else{var l;y=(l=this.optionalBool())!=null?l:p}return y};
m_.prototype.optionalBool=function(){var p=this.JSC$19344_value_;if(p==null)return null;if(typeof p==="boolean")return p;if(typeof p==="string"){p=p.toLowerCase();if(p==="true"||p==="1")return!0;if(p==="false"||p==="0")return!1}throw T5O(this,"boolean");};
m_.prototype.number=function(p){if(arguments.length==0){var y=vvm(this);y===null&&Uv(this)}else y=Xfi(this,p);return y};
var Xfi=function(p,y){var l;return(l=vvm(p))!=null?l:y},vvm=function(p){var y=p.JSC$19344_value_;
if(y==null)return null;if(typeof y==="number")return y;if(typeof y==="string"){var l=Number(y);if(!isNaN(l)&&(l!==0||y.trim().length!==0))return l}throw T5O(p,"number");};
m_.prototype.toString=function(){return xiV(this)};
m_.prototype.enum=function(p,y){var l=!0,q=void 0,t;for(t in p){var E=p[t];l&&(l=!1,q=typeof E==="number"?Xfi(this,y):B5i(this,y));if(E==q)return q}JSON.stringify(p);return q};
m_.prototype.array=function(p){if(arguments.length==0){var y=did(this);y===null&&Uv(this);return y}y=did(this);return y==null?p:y};
var did=function(p){var y=p.JSC$19344_value_;if(y==null)return null;Array.isArray(y)||(typeof y!=="string"?y=[y]:(y=y.trim(),y=y==""?[]:y.split(",").map(function(l){return l.trim()})));
return Ou6(p,y)},Ou6=function(p,y){var l=p.JSC$19344_key_+"[";
return Array.from(y,function(q,t){return new m_(l+t+"]",q)})};
m_.prototype.object=function(p){var y=this.JSC$19344_value_;if(y==null)return p===void 0&&Uv(this),p;if(typeof y==="object"&&y.constructor===Object){p={};var l=this.JSC$19344_key_+".",q;for(q in y)p[q]=new m_(l+q,y[q]);return p}throw T5O(this,"object");};var $Y=function(p){this.list_=ov7(p)},ov7=function(p){if(p instanceof $Y)p=p.list_;
else if(p[0]instanceof $Y){for(var y=new Set,l=0;l<p.length;l++)for(var q=_.c(p[l].list_),t=q.next();!t.done;t=q.next())y.add(t.value);p=y}return[].concat(_.xq(p))};
_.J=$Y.prototype;_.J.each=function(p,y,l){((l===void 0?0:l)?mt9:_.lv)(this.list_,p,y);return this};
_.J.size=function(){return this.list_.length};
_.J.isEmpty=function(){return this.list_.length===0};
_.J.get=function(p){return this.list_[p]||null};
_.J.el=function(){return this.list_[0]||null};
_.J.map=function(p,y){return _.xI(this.list_,p,y)};
_.J.equals=function(p){return this===p||_.eB(this.list_,p.list_)};
_.J.first=function(){return this.list_.length==0?null:new jH(this.list_[0])};
_.J.last=function(){return this.list_.length==0?null:new jH(this.list_[this.list_.length-1])};
_.J.find=function(p){var y=[];this.each(function(l){l=l.querySelectorAll(String(p));for(var q=0;q<l.length;q++)y.push(l[q])});
return new $Y(y)};
_.J.parent=function(){var p=[];this.each(function(y){(y=y.parentElement||null)&&!_.Tl(p,y)&&p.push(y)});
return new $Y(p)};
_.J.children=function(){var p=[];this.each(function(y){y=_.dH(y);for(var l=0;l<y.length;l++)p.push(y[l])});
return new $Y(p)};
_.J.filter=function(p){p=_.nq(this.list_,Di9(p));return new $Y(p)};
_.J.closest=function(p){var y=[],l=Di9(p),q=function(t){return _.Jp(t)&&l(t)};
this.each(function(t){(t=_.dV(t,q,!0))&&!_.Tl(y,t)&&y.push(t)});
return new $Y(y)};
_.J.next=function(p){return zB7(this,_.tdQ,p)};
_.J.prev=function(p){return zB7(this,YwL,p)};
var zB7=function(p,y,l){var q=[];var t=l?Di9(l):Hud;p.each(function(E){(E=y(E))&&t(E)&&q.push(E)});
return new $Y(q)};
$Y.prototype.setClass=function(p){return this.each(function(y){_.yz(y,p)})};
var YVi=function(p,y){return p.each(function(l){_.ax(l,y)})},IOu=function(p,y){return p.each(function(l){_.Rx(l,y)})};
$Y.prototype.toggleClass=function(p,y){return y===!0?YVi(this,p):y===!1?IOu(this,p):this.each(function(l){_.lR(l,p)?_.Rx(l,p):_.ax(l,p)})};
$Y.prototype.setText=function(p){return this.each(function(y){_.Of(y,p)})};
var pPO=function(p){p.each(function(y){y.removeAttribute("aria-hidden")})};
$Y.prototype.getStyle=function(p){if(this.list_.length>0){var y=this.list_[0],l=y.style[_.Vl(p)];return typeof l!=="undefined"?l:y.style[_.$Lv(y,p)]||""}};
$Y.prototype.getData=function(p){if(this.list_.length===0)return new m_(p,null);var y=Ge1(this.list_[0],p);return new m_(p,y)};
$Y.prototype.focus=function(p){try{p?this.el().focus(p):this.el().focus()}catch(y){}return this};
$Y.prototype.click=function(){var p=_.vJ(this.el());if(p.createEvent){var y=p.createEvent("MouseEvents");y.initMouseEvent("click",!0,!0,p.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(y)}else p=p.createEventObject(),p.clientX=0,p.clientY=0,p.screenX=0,p.screenY=0,p.altKey=!1,p.ctrlKey=!1,p.shiftKey=!1,p.button=0,this.el().fireEvent("onclick",p)};
var bZ=function(p,y,l,q){function t(C,u,a){var m=u;u&&u.parentNode&&(m=u.cloneNode(!0));C(m,a)}
q=q===void 0?!1:q;if(p.list_.length==1){var E=p.list_[0],e=function(C){return y(C,E)};
l instanceof $Y?l.each(e,void 0,q):Array.isArray(l)?(q?mt9:_.lv)(l,e):e(l);return p}return p.each(function(C){l instanceof $Y?l.each(function(u){t(y,u,C)}):Array.isArray(l)?_.lv(l,function(u){t(y,u,C)}):t(y,l,C)})};
_.J=$Y.prototype;_.J.append=function(p){return bZ(this,function(y,l){y&&l.appendChild(y)},p)};
_.J.appendTo=function(p){(new $Y([p])).append(this);return this};
_.J.remove=function(){return bZ(this,function(p,y){_.Qy(y)},null)};
_.J.empty=function(){return bZ(this,function(p,y){_.fj(y)},null)};
_.J.after=function(p,y){return bZ(this,function(l,q){l&&_.Xd(l,q)},p,!(y===void 0||y))};
_.J.before=function(p){return bZ(this,function(y,l){y&&_.vZ(y,l)},p)};
_.J.replaceWith=function(p){return bZ(this,function(y,l){y&&_.lAU(y,l)},p)};
_.J.toggle=function(p){return this.each(function(y){_.yc(y,p)})};
_.J.show=function(){return this.toggle(!0)};
_.J.hide=function(){return this.toggle(!1)};
_.J.trigger=function(p,y,l,q){return yH6(this,p,y,l,q)};
var yH6=function(p,y,l,q,t){return p.each(function(E){_.eJo(_.vJ(E)).triggerWizEventInternal(E,y,l,q,t)})},jH=function(p,y){p instanceof $Y&&(y=p.list_,p=null);
this.list_=ov7(p!=null?[p]:y)};
_.j6(jH,$Y);_.J=jH.prototype;_.J.children=function(){return new $Y(Array.prototype.slice.call(_.dH(this.list_[0])))};
_.J.each=function(p,y){p.call(y,this.list_[0],0);return this};
_.J.size=function(){return 1};
_.J.el=function(){return this.list_[0]};
_.J.first=function(){return this};var na=function(p,y){y=y===void 0?window:y;this.hostId=p;this.JSC$19355_win=y;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$19355_previousHtmlOverscroll=this.JSC$19355_previousBodyOverscroll=this.JSC$19355_previousBodyOverflow="";this.eventTarget=new _.Fn;this.JSC$19355_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
s2u=function(p){var y=lvu(lvu(lvu(new q0d(78),"po"),"hppp"),"hhc");
y.authUser=Number(_.OY("SESSION_INDEX","0"));y.colorScheme=p;return y};
na.prototype.getOrigin=function(){return this.origin?this.origin:_.WP(_.R2(_.uR(new _.JO,this.JSC$19355_win.location.protocol),this.JSC$19355_win.location.hostname),this.JSC$19355_win.location.port).toString()};
na.prototype.getTargetOrigin=function(){return _.WP(_.R2(_.uR(new _.JO,this.scheme),this.domain),this.port)};
na.prototype.preloadIframe=function(p){var y=this;if(this.iframeLoadPromise===void 0){var l=document.createElement("iframe");this.iframe=l;jr1(l,p);this.iframeLoadPromise=new Promise(function(q,t){var E=!1,e=function(C){C.stopPropagation();l.removeEventListener("error",e);l.removeEventListener("securitypolicyviolation",e);t(Error("ik",{cause:C}))};
l.addEventListener("error",e);l.addEventListener("securitypolicyviolation",e);setTimeout(function(){E||t(Error("jk"))},3E4);
t2w(y,l,function(){E=!0;l.removeEventListener("error",e);l.removeEventListener("securitypolicyviolation",e);q()})});
EDO(this);p=this.getTargetOrigin().toString();l.setAttribute("allow","camera "+p+"; display-capture "+p);this.parentElement.appendChild(l)}return this.iframeLoadPromise};
var eN7=function(p,y){var l,q;return _.h(function(t){if(t.nextAddress==1)return l=Cad(getComputedStyle(p.parentElement).direction==="rtl"),p.parentElement.appendChild(l),document.activeElement instanceof HTMLElement&&(p.elementToFocusAfterClose=document.activeElement),_.Ve(t,2),t.yield(p.preloadIframe(y),4);if(t.nextAddress!=2){p.parentElement.removeChild(l);p.JSC$19355_previousBodyOverflow=p.parentElement.style.overflow;p.JSC$19355_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
p.JSC$19355_previousBodyOverscroll=p.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";p.parentElement.style.overscrollBehavior="contain";p.parentElement.style.overflow="hidden";var E=p.iframe;E.style.bottom="0";E.style.border="none";E.style.height="100%";E.style.left="0";E.style.position=p.iframePosition;E.style.right="0";E.style.top="0";E.style.width="100%";E.style.zIndex="2202";E.setAttribute("aria-hidden","false");E.setAttribute("aria-modal","true");
p.opened=!0;JH6(p);return _.pK(t,0)}q=_.i6(t);p.parentElement.removeChild(l);msR(p.isDarkTheme());cHO(p,!1);throw Error("kk",{cause:q});})},cHO=function(p,y){y=y===void 0?!0:y;
p.iframe!==void 0&&(hN7(p),document.documentElement.style.overscrollBehavior=p.JSC$19355_previousHtmlOverscroll,p.parentElement.style.overscrollBehavior=p.JSC$19355_previousBodyOverscroll,p.parentElement.style.overflow=p.JSC$19355_previousBodyOverflow,p.elementToFocusAfterClose!==void 0&&(p.elementToFocusAfterClose.focus(),p.elementToFocusAfterClose=void 0),y?EDO(p):(p.parentElement.removeChild(p.iframe),p.iframe=void 0,p.iframeLoadPromise=void 0,p.mainChannel=void 0),p.opened=!1)},hN7=function(p){p.backgroundElementsAriaHiddenIsNull&&
(pPO(p.backgroundElementsAriaHiddenIsNull),p.backgroundElementsAriaHiddenIsNull=void 0);
p.backgroundElementsAriaHiddenIsFalse&&(p.backgroundElementsAriaHiddenIsFalse.each(function(y){y.setAttribute("aria-hidden","false")}),p.backgroundElementsAriaHiddenIsFalse=void 0);
p.backgroundElementsWithoutInert&&(p.backgroundElementsWithoutInert.each(function(y){y.removeAttribute("inert")}),p.backgroundElementsWithoutInert=void 0)},JH6=function(p){p.backgroundElementsAriaHiddenIsNull=(new jH(p.iframe.parentElement)).children().filter(function(y){return y.getAttribute("aria-hidden")===null&&y!==p.iframe});
p.backgroundElementsAriaHiddenIsNull.each(function(y){y.setAttribute("aria-hidden","true")});
p.backgroundElementsAriaHiddenIsFalse=(new jH(p.iframe.parentElement)).children().filter(function(y){return y.getAttribute("aria-hidden")==="false"&&y!==p.iframe});
p.backgroundElementsAriaHiddenIsFalse.each(function(y){y.setAttribute("aria-hidden","true")});
p.backgroundElementsWithoutInert=(new jH(p.iframe.parentElement)).children().filter(function(y){return!y.hasAttribute("inert")&&y!==p.iframe});
p.backgroundElementsWithoutInert.each(function(y){y.setAttribute("inert","true")})},EDO=function(p){p=p.iframe;
p.style.bottom="-1000px";p.style.position="fixed";p.style.right="-1000px";p.style.border="";p.style.height="";p.style.left="";p.style.top="";p.style.width="";p.style.zIndex="";p.setAttribute("aria-hidden","true");p.setAttribute("aria-modal","false")};
na.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var q0d=function(p,y){na.call(this,Uiu[p],y);this.options=[];this.style=""};
_.A(q0d,na);var CRm=function(p){p.style="youtube";return p},ueT=function(p,y){p.eventTarget.listen(QZw,y);
return p},RNd=function(p,y){p.eventTarget.listen(VJL,y);
return p},lvu=function(p,y){p.options.push(y);
return p},Wt6=function(p){var y=[p.getOrigin()];
p.ancestorOrigins&&y.push.apply(y,_.xq(p.ancestorOrigins));var l=new _.JO(p.JSC$19355_win.location.href),q=p.startUrl?p.startUrl:p.options.includes("po")?"profile-picture/art":"profile-picture";y=Qw(_.mt(p.getTargetOrigin(),q),"origin",y);p.startUrl&&_.pr(y,"startPath",p.startUrl);p.authUser>0&&_.pr(y,"authuser",p.authUser);p.pageId!==void 0&&_.pr(y,"pageId",p.pageId);_.pr(y,"hostId",p.hostId);p.jsMode!==void 0&&_.pr(y,"jsmode",p.jsMode);p.rectangleRatio!==void 0&&_.pr(y,"rectangleRatio",p.rectangleRatio);
p.options.length>0&&_.pr(y,"opts",p.options.join(","));try{for(var t=_.c(["utm_source","utm_medium","utm_campaign","utm_content"]),E=t.next();!E.done;E=t.next()){var e=E.value;_.IY(l,e)&&_.pr(y,e,_.IY(l,e))}var C,u=(C=p.hl)!=null?C:_.IY(l,"hl");u!==void 0&&_.pr(y,"hl",u)}catch(a){if(!(a instanceof URIError))throw a;}p.colorScheme&&_.pr(y,"theme",p.colorScheme);p.style&&_.pr(y,"style",p.style);return y},avR=function(p,y){p.mainChannel=_.aC({destination:p.JSC$19355_win,
iframe:y,origin:p.getTargetOrigin().toString(),channelName:"ow",onMessage:function(l){l=P07(l.data);if(y===p.iframe)switch(_.v0(l,1)){case 1:p.eventTarget.dispatchEvent(new r7w);cHO(p);break;case 2:p.eventTarget.dispatchEvent(new wf1(_.fq(l,4),_.fq(l,2),_.v0(l,5),_.MF(l,buO,6)));break;case 0:var q;p.eventTarget.dispatchEvent(new iud(_.fq(l,2),(q=_.v0(l,3))!=null?q:0));break;case 3:p.eventTarget.dispatchEvent(new r7w(!0));cHO(p,!1);break;case 4:p.eventTarget.dispatchEvent(new SVA)}}})},t2w=function(p,
y,l){_.aC({destination:p.JSC$19355_win,
iframe:y,origin:_.WP(_.R2(_.uR(new _.JO,p.scheme),p.domain),p.port).toString(),channelName:"owi",onMessage:function(q){y===p.iframe&&(l!==void 0&&l(),avR(p,y),p.opened&&p.mainChannel.send(MJL(Zu7())),q.reply(),t2w(p,y))}})};
q0d.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?na.prototype.preloadIframe.call(this,Wt6(this).toString()):this.iframeLoadPromise};
q0d.prototype.openPicker=function(p){var y=this;return _.h(function(l){if(l.nextAddress==1)return y.startUrl=p?p:y.options.includes("po")?"profile-picture/art":"profile-picture",l.yield(eN7(y,Wt6(y).toString()),2);if(y.mainChannel){var q=y.mainChannel,t=q.send;var E=Zu7();E=_.Fq(E,2,y.startUrl);t.call(q,MJL(E))}_.rR(l)})};var mDw=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(mDw,_.RX);_.J=mDw.prototype;_.J.getSize=function(){return Lc(this,1)};
_.J.setSize=function(p){return _.z6(this,1,p)};
_.J.getWidth=function(){return Lc(this,12)};
_.J.getHeight=function(){return Lc(this,13)};
_.J.setCenterCrop=function(p){return _.jr(this,20,p)};
_.J.getHtml=function(){return _.T6(this,4)};
_.J.getToken=function(){return _.Vy(this,24)};
_.J.setToken=function(p){return _.Fq(this,24,p)};
_.J.getBackgroundColor=function(){return Lc(this,87)};
_.J.hasBackgroundColor=function(){return _.aT(_.i8(this,87))!=null};
_.J.getStoryboardLevel=function(){return Lc(this,109)};var GE=function(p){this.JSC$19363_value_=void 0;this.childNodes_={};if(p){var y=_.dAi(p);p=_.C2(p);for(var l=0;l<y.length;l++)this.set(y[l],p[l])}};
GE.prototype.set=function(p,y){UD1(this,p,y,!1)};
GE.prototype.add=function(p,y){UD1(this,p,y,!0)};
var UD1=function(p,y,l,q){for(var t=0;t<y.length;t++){var E=y.charAt(t);p.childNodes_[E]||(p.childNodes_[E]=new GE);p=p.childNodes_[E]}if(q&&p.JSC$19363_value_!==void 0)throw Error("lk`"+y);p.JSC$19363_value_=l},$DA=function(p,y){for(var l=0;l<y.length;l++)if(p=p.childNodes_[y.charAt(l)],!p)return;
return p};
GE.prototype.get=function(p){return(p=$DA(this,p))?p.JSC$19363_value_:void 0};
GE.prototype.getValues=function(){var p=[];j2R(this,p);return p};
var j2R=function(p,y){p.JSC$19363_value_!==void 0&&y.push(p.JSC$19363_value_);for(var l in p.childNodes_)j2R(p.childNodes_[l],y)};
GE.prototype.getKeys=function(p){var y=[];if(p){for(var l=this,q=0;q<p.length;q++){var t=p.charAt(q);if(!l.childNodes_[t])return[];l=l.childNodes_[t]}b2m(l,p,y)}else b2m(this,"",y);return y};
var b2m=function(p,y,l){p.JSC$19363_value_!==void 0&&l.push(y);for(var q in p.childNodes_)b2m(p.childNodes_[q],y+q,l)};
_.J=GE.prototype;_.J.containsKey=function(p){return this.get(p)!==void 0};
_.J.containsValue=function(p){if(this.JSC$19363_value_===p)return!0;for(var y in this.childNodes_)if(this.childNodes_[y].containsValue(p))return!0;return!1};
_.J.clear=function(){this.childNodes_={};this.JSC$19363_value_=void 0};
_.J.remove=function(p){for(var y=this,l=[],q=0;q<p.length;q++){var t=p.charAt(q);if(!y.childNodes_[t])throw Error("mk`"+p);l.push([y,t]);y=y.childNodes_[t]}p=y.JSC$19363_value_;for(delete y.JSC$19363_value_;l.length>0;)if(q=l.pop(),y=q[0],q=q[1],y.childNodes_[q].isEmpty())delete y.childNodes_[q];else break;return p};
_.J.clone=function(){return new GE(this)};
_.J.getCount=function(){return lQw(this.getValues())};
_.J.isEmpty=function(){return this.JSC$19363_value_===void 0&&_.Ts.isEmpty(this.childNodes_)};var Ae7=function(){if(!nDO){var p=nDO=new GE,y;for(y in GC1)p.add(y,GC1[y])}},nDO,PA=function(p,y){this.types=p;
this.setters=y},GC1={a:new PA([3,
0],[function(p,y){_.jr(p,21,y)},
function(p,y){_.z6(p,56,y)}]),
al:new PA([3],[function(p,y){_.jr(p,74,y)}]),
b:new PA([3,0],[function(p,y){_.jr(p,23,y)},
function(p,y){_.z6(p,38,y)}]),
ba:new PA([0],[function(p,y){_.z6(p,85,y)}]),
bc:new PA([0],[function(p,y){_.z6(p,87,y)}]),
br:new PA([0],[function(p,y){_.z6(p,86,y)}]),
c:new PA([3,0],[function(p,y){_.jr(p,2,y)},
function(p,y){_.z6(p,39,y)}]),
cc:new PA([3],[function(p,y){_.jr(p,51,y)}]),
ci:new PA([3],[function(p,y){_.jr(p,32,y)}]),
ckm:new PA([3],[function(p,y){_.jr(p,104,y)}]),
cp:new PA([0],[function(p,y){_.z6(p,92,y)}]),
cr:new PA([3],[function(p,y){_.jr(p,108,y)}]),
cv:new PA([0],[function(p,y){_.z6(p,94,y)}]),
d:new PA([3],[function(p,y){_.jr(p,3,y)}]),
dc:new PA([5],[function(p,y){_.Fq(p,99,y)}]),
df:new PA([3],[function(p,y){_.jr(p,80,y)}]),
dv:new PA([3],[function(p,y){_.jr(p,90,y)}]),
e:new PA([0],[function(p,y){_.z6(p,15,y)}]),
em:new PA([0],[function(p,y){_.z6(p,107,y)}]),
f:new PA([4],[function(p,y){_.Fq(p,16,y)}]),
fg:new PA([3],[function(p,y){_.jr(p,34,y)}]),
fh:new PA([3],[function(p,y){_.jr(p,30,y)}]),
fm:new PA([3],[function(p,y){_.jr(p,84,y)}]),
fo:new PA([2],[function(p,y){_.mj(p,79,_.su(y))}]),
ft:new PA([3],[function(p,y){_.jr(p,50,y)}]),
fv:new PA([3],[function(p,y){_.jr(p,31,y)}]),
g:new PA([3],[function(p,y){_.jr(p,14,y)}]),
gce:new PA([4],[function(p,y){_.Fq(p,112,y)}]),
gd:new PA([3],[function(p,y){_.jr(p,83,y)}]),
gm:new PA([3],[function(p,y){_.jr(p,105,y)}]),
h:new PA([3,0],[function(p,y){_.jr(p,4,y)},
function(p,y){_.z6(p,13,y)}]),
i:new PA([3],[function(p,y){_.jr(p,22,y)}]),
ic:new PA([0],[function(p,y){_.z6(p,71,y)}]),
id:new PA([3],[function(p,y){_.jr(p,70,y)}]),
il:new PA([3],[function(p,y){_.jr(p,96,y)}]),
ip:new PA([3],[function(p,y){_.jr(p,54,y)}]),
iv:new PA([0],[function(p,y){_.wJ(p,75,y)}]),
j:new PA([1],[function(p,y){y=y==null?y:jpm(y);_.mj(p,29,y)}]),
k:new PA([3,0],[function(p,y){_.jr(p,17,y)},
function(p,y){_.z6(p,42,y)}]),
l:new PA([0],[function(p,y){_.z6(p,44,y)}]),
lf:new PA([3],[function(p,y){_.jr(p,65,y)}]),
lo:new PA([3],[function(p,y){_.jr(p,97,y)}]),
m:new PA([0],[function(p,y){_.z6(p,63,y)}]),
md:new PA([3],[function(p,y){_.jr(p,91,y)}]),
mm:new PA([4],[function(p,y){_.Fq(p,81,y)}]),
mo:new PA([3],[function(p,y){_.jr(p,73,y)}]),
mp:new PA([0],[function(p,y){_.z6(p,115,y)}]),
mv:new PA([3],[function(p,y){_.jr(p,66,y)}]),
n:new PA([3],[function(p,y){p.setCenterCrop(y)}]),
nc:new PA([3],[function(p,y){_.jr(p,55,y)}]),
nd:new PA([3],[function(p,y){_.jr(p,53,y)}]),
ng:new PA([3],[function(p,y){_.jr(p,95,y)}]),
ngm:new PA([3],[function(p,y){_.jr(p,106,y)}]),
no:new PA([3],[function(p,y){_.jr(p,37,y)}]),
ns:new PA([3],[function(p,y){_.jr(p,40,y)}]),
nt0:new PA([4],[function(p,y){_.Fq(p,36,y)}]),
ntm:new PA([3],[function(p,y){_.jr(p,114,y)}]),
nu:new PA([3],[function(p,y){_.jr(p,46,y)}]),
nw:new PA([3],[function(p,y){_.jr(p,48,y)}]),
o:new PA([1,3],[function(p,y){y=y==null?y:jpm(y);_.mj(p,7,y)},
function(p,y){_.jr(p,27,y)}]),
p:new PA([3,0],[function(p,y){_.jr(p,19,y)},
function(p,y){_.z6(p,43,y)}]),
pa:new PA([3],[function(p,y){_.jr(p,61,y)}]),
pc:new PA([0],[function(p,y){_.z6(p,88,y)}]),
pd:new PA([3],[function(p,y){_.jr(p,60,y)}]),
pf:new PA([3],[function(p,y){_.jr(p,67,y)}]),
pg:new PA([3],[function(p,y){_.jr(p,72,y)}]),
pi:new PA([2],[function(p,y){_.mj(p,76,_.su(y))}]),
pp:new PA([3],[function(p,y){_.jr(p,52,y)}]),
pt:new PA([4],[function(p,y){_.Fq(p,111,y)}]),
q:new PA([4],[function(p,y){_.Fq(p,28,y)}]),
r:new PA([3,0],[function(p,y){_.jr(p,6,y)},
function(p,y){_.z6(p,26,y)}]),
ra:new PA([3],[function(p,y){_.jr(p,103,y)}]),
rf:new PA([3],[function(p,y){_.jr(p,100,y)}]),
rg:new PA([3],[function(p,y){_.jr(p,59,y)}]),
rh:new PA([3],[function(p,y){_.jr(p,49,y)}]),
rj:new PA([3],[function(p,y){_.jr(p,57,y)}]),
ro:new PA([2],[function(p,y){_.mj(p,78,_.su(y))}]),
rp:new PA([3],[function(p,y){_.jr(p,58,y)}]),
rw:new PA([3],[function(p,y){_.jr(p,35,y)}]),
rwa:new PA([3],[function(p,y){_.jr(p,64,y)}]),
rwu:new PA([3],[function(p,y){_.jr(p,41,y)}]),
s:new PA([3,0],[function(p,y){_.jr(p,33,y)},
function(p,y){p.setSize(y)}]),
sb:new PA([0],[function(p,y){_.z6(p,110,y)}]),
sc:new PA([0],[function(p,y){_.z6(p,89,y)}]),
sg:new PA([3],[function(p,y){_.jr(p,82,y)}]),
sl:new PA([0],[function(p,y){_.z6(p,109,y)}]),
sm:new PA([3],[function(p,y){_.jr(p,93,y)}]),
t:new PA([4],[function(p,y){p.setToken(y)}]),
tm:new PA([3],[function(p,y){_.jr(p,113,y)}]),
u:new PA([3],[function(p,y){_.jr(p,18,y)}]),
ut:new PA([3],[function(p,y){_.jr(p,45,y)}]),
v:new PA([0],[function(p,y){_.z6(p,62,y)}]),
vb:new PA([0],[function(p,y){_.wJ(p,68,y)}]),
vf:new PA([4],[function(p,y){_.Fq(p,102,y)}]),
vl:new PA([0],[function(p,y){_.wJ(p,69,y)}]),
vm:new PA([3],[function(p,y){_.jr(p,98,y)}]),
w:new PA([0],[function(p,y){_.z6(p,12,y)}]),
x:new PA([0],[function(p,y){_.z6(p,9,y)}]),
y:new PA([0],[function(p,y){_.z6(p,10,y)}]),
ya:new PA([2],[function(p,y){_.mj(p,77,_.su(y))}]),
z:new PA([0],[function(p,y){_.z6(p,11,y)}])};
Ae7.prototype.parse=function(p){var y=new mDw,l=new mDw;if(p=="")p=!0;else{p=p.split("-");for(var q=!0,t=0;t<p.length;t++){var E=p[t];if(E.length==0)q=!1;else{var e=E,C=!1;var u=e;var a=e.charAt(0);a!=a.toLowerCase()&&(C=!0,u=e.charAt(0).toLowerCase()+e.substring(1));var m=nDO;for(a=1;a<=u.length;++a){var U=m,b=u.substring(0,a);if(b.length==0?U.isEmpty():!$DA(U,b))break}u=a==1?null:(u=m.get(u.substring(0,a-1)))?{option:e.substring(0,a-1),value:e.substring(a-1),signed:C,attributes:u}:null;if(u){e=
[];C=[];a=!1;for(m=0;m<u.attributes.types.length;m++){U=u.attributes.types[m];var P=u.value;b=t;if(u.signed&&U==1)for(var Z=P.length;Z<12&&b<p.length-1;)P+="-"+p[b+1],Z=P.length,++b;else if(U==2)for(;b<p.length-1&&p[b+1].match(/^[\d\.]/);)P+="-"+p[b+1],++b;Z=u.attributes.setters[m];P=PRd(this,U)(u.option,P,y,l,Z);if(P===null){a=!0;t=b;break}else e.push(U),C.push(P)}if(!a)for(u=0;u<C.length;u++)m=e[u],P=C[u],AHi(this,m)(E,P);q=q&&a}else q=!1}}p=q}return new Z2u(y,l,p)};
var Af=function(p,y,l,q,t,E){t(l,y);p=p.charAt(0);E=E(p==p.toUpperCase());t(q,E)};
_.J=Ae7.prototype;_.J.parseAndSetIntOption_=function(p,y,l,q,t){if(y=="")return 0;isFinite(y)&&(y=String(y));y=typeof y==="string"?/^\s*-?0x/i.test(y)?parseInt(y,16):parseInt(y,10):NaN;if(isNaN(y))return 1;Af(p,y,l,q,t,Number);return null};
_.J.logIntParseError_=function(){};
_.J.parseAndSetFloatOption_=function(p,y,l,q,t){if(y=="")return 0;var E=Number(y);y=E==0&&_.ej(y)?NaN:E;if(isNaN(y))return 1;Af(p,y,l,q,t,Number);return null};
_.J.logFloatParseError_=function(){};
_.J.parseAndSetBoolOption_=function(p,y,l,q,t){if(y!="")return 2;Af(p,!0,l,q,t,Boolean);return null};
_.J.logBoolParseError_=function(){};
_.J.parseAndSetStringOption_=function(p,y,l,q,t){if(y=="")return 0;Af(p,y,l,q,t,function(E){return E?"1":""});
return null};
_.J.logStringParseError_=function(){};
_.J.parseAndSetUint64Base64Option_=function(p,y,l,q,t){if(y=="")return 0;Af(p,y,l,q,t,function(E){return E?1:0});
return null};
var PRd=function(p,y){switch(y){case 0:return(0,_.FZ)(p.parseAndSetIntOption_,p);case 2:return(0,_.FZ)(p.parseAndSetFloatOption_,p);case 3:return(0,_.FZ)(p.parseAndSetBoolOption_,p);case 4:return(0,_.FZ)(p.parseAndSetStringOption_,p);case 1:return(0,_.FZ)(p.parseAndSetUint64Base64Option_,p);default:return function(){}}},AHi=function(p,y){switch(y){case 0:return(0,_.FZ)(p.logIntParseError_,p);
case 2:return(0,_.FZ)(p.logFloatParseError_,p);case 3:return(0,_.FZ)(p.logBoolParseError_,p);case 4:case 1:return(0,_.FZ)(p.logStringParseError_,p);default:return function(){}}},Z2u=function(p,y,l){this.valueProto_=p;
this.signatureFlagProto_=y;this.JSC$19375_valid_=l};
Z2u.prototype.isValid=function(){return this.JSC$19375_valid_};var bWR=function(p){this.JSC$19376_parser_=null;this.JSC$19376_components_=[];this.JSC$19376_parsedOptions_=null;M2i(this,p)},V29=function(p){p.JSC$19376_parser_==null&&(p.JSC$19376_parser_=new Ae7);
return p.JSC$19376_parser_},M2i=function(p,y){p.JSC$19376_parsedOptions_=y?typeof y==="string"?V29(p).parse(y):y:V29(p).parse("")},Zw=function(p,y){return p==y?!1:!0};
_.J=bWR.prototype;_.J.JSC$19378_setCrop=function(p){p=p||void 0;var y=this.JSC$19376_parsedOptions_,l=y.valueProto_;Zw(p,_.T6(l,2),_.T6(y.signatureFlagProto_,2))&&_.jr(l,2,p);return this};
_.J.JSC$19378_setCircleCrop=function(p){p=p||void 0;var y=this.JSC$19376_parsedOptions_,l=y.valueProto_;Zw(p,F5(l,51),F5(y.signatureFlagProto_,51))&&_.jr(l,51,p);return this};
_.J.JSC$19378_setImageCrop=function(p){p=p||void 0;var y=this.JSC$19376_parsedOptions_,l=y.valueProto_;Zw(p,F5(l,32),F5(y.signatureFlagProto_,32))&&_.jr(l,32,p);return this};
_.J.JSC$19378_setHeight=function(p){var y=this.JSC$19376_parsedOptions_,l=y.valueProto_;Zw(p,l.getHeight(),y.signatureFlagProto_.getHeight())&&_.z6(l,13,p);return this};
_.J.setCenterCrop=function(p){p=p||void 0;var y=this.JSC$19376_parsedOptions_,l=y.valueProto_;Zw(p,_.T6(l,20),_.T6(y.signatureFlagProto_,20))&&l.setCenterCrop(p);return this};
_.J.JSC$19378_setSmartCrop=function(p){p=p||void 0;var y=this.JSC$19376_parsedOptions_,l=y.valueProto_;Zw(p,_.T6(l,19),_.T6(y.signatureFlagProto_,19))&&_.jr(l,19,p);return this};
_.J.JSC$19378_setPad=function(p){p=p||void 0;var y=this.JSC$19376_parsedOptions_,l=y.valueProto_;Zw(p,F5(l,60),F5(y.signatureFlagProto_,60))&&_.jr(l,60,p);return this};
_.J.JSC$19378_setSmartCropUseFace=function(p){p=p||void 0;var y=this.JSC$19376_parsedOptions_,l=y.valueProto_;Zw(p,_.T6(l,67),_.T6(y.signatureFlagProto_,67))&&_.jr(l,67,p);return this};
_.J.JSC$19378_setSmartCropNoClip=function(p){p=p||void 0;var y=this.JSC$19376_parsedOptions_,l=y.valueProto_;Zw(p,_.T6(l,52),_.T6(y.signatureFlagProto_,52))&&_.jr(l,52,p);return this};
_.J.setSize=function(p){var y=this.JSC$19376_parsedOptions_,l=y.valueProto_;Zw(p,l.getSize(),y.signatureFlagProto_.getSize())&&l.setSize(p);return this};
_.J.setToken=function(p){p=p||void 0;var y=this.JSC$19376_parsedOptions_,l=y.valueProto_;Zw(p,l.getToken(),y.signatureFlagProto_.getToken())&&l.setToken(p);return this};
_.J.JSC$19378_setWidth=function(p){var y=this.JSC$19376_parsedOptions_,l=y.valueProto_;Zw(p,l.getWidth(),y.signatureFlagProto_.getWidth())&&_.z6(l,12,p);return this};
_.J.clearOptions=function(){M2i(this,"");return this};
_.J.build=function(){this.JSC$19376_components_.length=0;var p=this.JSC$19376_parsedOptions_,y=p.valueProto_;p=p.signatureFlagProto_;Mg(this,"s",y.getSize(),p.getSize());Mg(this,"w",y.getWidth(),p.getWidth());V3(this,"c",_.T6(y,2),_.T6(p,2));V3(this,"d",_.T6(y,3),_.T6(p,3));Mg(this,"h",y.getHeight(),p.getHeight());V3(this,"s",F5(y,33),F5(p,33));V3(this,"h",y.getHtml(),p.getHtml());V3(this,"p",_.T6(y,19),_.T6(p,19));V3(this,"pp",_.T6(y,52),_.T6(p,52));V3(this,"pf",_.T6(y,67),_.T6(p,67));V3(this,"n",
_.T6(y,20),_.T6(p,20));Mg(this,"r",Lc(y,26),Lc(p,26));V3(this,"r",_.T6(y,6),_.T6(p,6));V3(this,"o",F5(y,27),F5(p,27));var l=_.H0(y,7,_.wl);gO(this,"o",l,_.H0(p,7,_.wl));l=_.H0(y,29,_.wl);gO(this,"j",l,_.H0(p,29,_.wl));Mg(this,"x",Lc(y,9),Lc(p,9));Mg(this,"y",Lc(y,10),Lc(p,10));Mg(this,"z",Lc(y,11),Lc(p,11));V3(this,"g",_.T6(y,14),_.T6(p,14));Mg(this,"e",Lc(y,15),Lc(p,15));gO(this,"f",_.Vy(y,16),_.Vy(p,16));V3(this,"k",F5(y,17),F5(p,17));V3(this,"u",F5(y,18),!0);V3(this,"ut",F5(y,45),!0);V3(this,"i",
F5(y,22),!0);V3(this,"a",F5(y,21),F5(p,21));V3(this,"b",_.T6(y,23),_.T6(p,23));Mg(this,"b",Lc(y,38),Lc(p,38));Mg(this,"c",Lc(y,39),Lc(p,39),16,8);gO(this,"q",_.Vy(y,28),_.Vy(p,28));V3(this,"fh",F5(y,30),F5(p,30));V3(this,"fv",F5(y,31),F5(p,31));V3(this,"fg",_.T6(y,34),_.T6(p,34));V3(this,"ci",F5(y,32),F5(p,32));gO(this,"t",y.getToken(),p.getToken());gO(this,"nt0",_.Vy(y,36),_.Vy(p,36));V3(this,"rw",_.T6(y,35),_.T6(p,35));V3(this,"rwu",_.T6(y,41),_.T6(p,41));V3(this,"rwa",_.T6(y,64),_.T6(p,64));V3(this,
"nw",_.T6(y,48),_.T6(p,48));V3(this,"rh",_.T6(y,49),_.T6(p,49));V3(this,"no",_.T6(y,37),_.T6(p,37));V3(this,"ns",F5(y,40),F5(p,40));Mg(this,"k",Lc(y,42),Lc(p,42));Mg(this,"p",Lc(y,43),Lc(p,43));Mg(this,"l",Lc(y,44),Lc(p,44));Mg(this,"v",Lc(y,62),Lc(p,62));V3(this,"nu",F5(y,46),F5(p,46));V3(this,"ft",F5(y,50),F5(p,50));V3(this,"cc",F5(y,51),F5(p,51));V3(this,"nd",F5(y,53),F5(p,53));V3(this,"ip",F5(y,54),F5(p,54));V3(this,"nc",F5(y,55),F5(p,55));Mg(this,"a",Lc(y,56),Lc(p,56));V3(this,"rj",F5(y,57),
F5(p,57));V3(this,"rp",F5(y,58),F5(p,58));V3(this,"rg",F5(y,59),F5(p,59));V3(this,"pd",F5(y,60),F5(p,60));V3(this,"pa",F5(y,61),F5(p,61));Mg(this,"m",Lc(y,63),Lc(p,63));Mg(this,"vb",kL(y,68),kL(p,68));Mg(this,"vl",kL(y,69),kL(p,69));V3(this,"lf",F5(y,65),F5(p,65));V3(this,"mv",F5(y,66),F5(p,66));V3(this,"id",F5(y,70),F5(p,70));Mg(this,"ic",Lc(y,71),!0);V3(this,"pg",_.T6(y,72),_.T6(p,72));V3(this,"mo",F5(y,73),F5(p,73));V3(this,"al",F5(y,74),F5(p,74));Mg(this,"iv",kL(y,75),kL(p,75));Mg(this,"pi",N2(y,
76),N2(p,76));Mg(this,"ya",N2(y,77),N2(p,77));Mg(this,"ro",N2(y,78),N2(p,78));Mg(this,"fo",N2(y,79),N2(p,79));V3(this,"df",F5(y,80),F5(p,80));gO(this,"mm",_.Vy(y,81),_.Vy(p,81));V3(this,"sg",F5(y,82),F5(p,82));V3(this,"gd",F5(y,83),F5(p,83));V3(this,"fm",F5(y,84),F5(p,84));Mg(this,"ba",Lc(y,85),Lc(p,85));Mg(this,"br",Lc(y,86),Lc(p,86));Mg(this,"bc",y.getBackgroundColor(),p.getBackgroundColor(),16,8);Mg(this,"pc",Lc(y,88),Lc(p,88),16,8);Mg(this,"sc",Lc(y,89),Lc(p,89),16,8);V3(this,"dv",F5(y,90),F5(p,
90));V3(this,"md",F5(y,91),F5(p,91));Mg(this,"cp",Lc(y,92),Lc(p,92));V3(this,"sm",F5(y,93),F5(p,93));Mg(this,"cv",Lc(y,94),Lc(p,94));V3(this,"ng",F5(y,95),F5(p,95));V3(this,"il",F5(y,96),F5(p,96));V3(this,"lo",F5(y,97),F5(p,97));V3(this,"vm",F5(y,98),F5(p,98));gO(this,"dc",_.Vy(y,99),_.Vy(p,99));V3(this,"rf",F5(y,100),F5(p,100));gO(this,"vf",_.Vy(y,102),_.Vy(p,102));V3(this,"ra",_.T6(y,103),_.T6(p,103));V3(this,"ckm",F5(y,104),F5(p,104));V3(this,"gm",F5(y,105),F5(p,105));V3(this,"ngm",F5(y,106),F5(p,
106));Mg(this,"em",Lc(y,107),Lc(p,107));V3(this,"cr",F5(y,108),F5(p,108));Mg(this,"sl",y.getStoryboardLevel(),p.getStoryboardLevel());Mg(this,"sb",Lc(y,110),Lc(p,110));gO(this,"pt",_.Vy(y,111),_.Vy(p,111));gO(this,"gce",_.Vy(y,112),_.Vy(p,112));V3(this,"tm",F5(y,113),F5(p,113));V3(this,"ntm",F5(y,114),F5(p,114));Mg(this,"mp",Lc(y,115),Lc(p,115));return this.JSC$19376_components_.join("-")};
var Mg=function(p,y,l,q,t,E){if(l!=null){var e=t==void 0||t!=10&&t!=16?10:t;l=Number(l).toString(e);t=new ke9;t.append(e==16?"0x":"");e=t.append;E==void 0?E="":(E-=l.length,E=E<=0?"":(0,_.Tmr)("0",E));e.call(t,E);t.append(l);gD9(p,y,t.toString(),!!Number(q))}},V3=function(p,y,l,q){l&&gD9(p,y,"",!!q)},gO=function(p,y,l,q){l&&gD9(p,y,String(l),!!Number(q))},gD9=function(p,y,l,q){q&&(y=y.charAt(0).toUpperCase()+y.substring(1));
p.JSC$19376_components_.push(y+l)};_.j6(vd,bWR);_.J=vd.prototype;_.J.JSC$19378_setCrop=function(p){p&&Q3(this);return vd.superClass_.JSC$19378_setCrop.call(this,p)};
_.J.JSC$19378_setHeight=function(p){p=p==null||p<0?void 0:p;p!=null&&this.setSize();return vd.superClass_.JSC$19378_setHeight.call(this,p)};
_.J.JSC$19378_setImageCrop=function(p){p&&Q3(this);return vd.superClass_.JSC$19378_setImageCrop.call(this,p)};
_.J.JSC$19378_setCircleCrop=function(p){p&&Q3(this);return vd.superClass_.JSC$19378_setCircleCrop.call(this,p)};
_.J.setSize=function(p){_.yQ(p)&&(p=Math.max(p.width,p.height));p=p==null||p<0?void 0:p;p!=null&&(this.JSC$19378_setWidth(),this.JSC$19378_setHeight());return vd.superClass_.setSize.call(this,p)};
_.J.JSC$19378_setSmartCrop=function(p){p&&Q3(this);return vd.superClass_.JSC$19378_setSmartCrop.call(this,p)};
_.J.JSC$19378_setSmartCropNoClip=function(p){p&&Q3(this);return vd.superClass_.JSC$19378_setSmartCropNoClip.call(this,p)};
_.J.JSC$19378_setSmartCropUseFace=function(p){p&&Q3(this);return vd.superClass_.JSC$19378_setSmartCropUseFace.call(this,p)};
_.J.setCenterCrop=function(p){p&&Q3(this);return vd.superClass_.setCenterCrop.call(this,p)};
_.J.JSC$19378_setPad=function(p){p&&Q3(this);return vd.superClass_.JSC$19378_setPad.call(this,p)};
_.J.JSC$19378_setWidth=function(p){p=p==null||p<0?void 0:p;p!=null&&this.setSize();return vd.superClass_.JSC$19378_setWidth.call(this,p)};
var Q2m=function(p){p.clearOptions();var y=p.JSC$19376_parsedOptions_,l=y.valueProto_;Zw(!0,_.T6(l,3),_.T6(y.signatureFlagProto_,3))&&_.jr(l,3,!0);return p},Q3=function(p){p.setCenterCrop();
p.JSC$19378_setCircleCrop();p.JSC$19378_setCrop();p.JSC$19378_setImageCrop();p.JSC$19378_setPad();p.JSC$19378_setSmartCrop();p.JSC$19378_setSmartCropNoClip();p.JSC$19378_setSmartCropUseFace()};
vd.prototype.build=function(){var p=this.JSC$19376_parsedOptions_.valueProto_;F5(p,18)||F5(p,45)?p.getSize()||this.setSize(0):(p=this.JSC$19376_parsedOptions_.valueProto_,p.getSize()||p.getWidth()||p.getHeight()||(this.setSize(),this.JSC$19378_setHeight(),this.JSC$19378_setWidth(),Q3(this)));return vd.superClass_.build.call(this)};var Kt9=/^[^\/]*\/\//,Ka=function(p,y){y=y===void 0?!1:y;this.original_=p;this.originalPrefix_="";(p=this.original_.match(Kt9))&&p[0]?(this.originalPrefix_=p[0],p=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):p="http://"+this.original_;this.uri_=_.YP(p,!0);this.isFreeformUrl_=y;this.JSC$19382_valid_=!0;this.obfuscated_=!1},wPA=function(p,y){p.JSC$19384_pathPrefix_=p.JSC$19384_pathPrefix_?p.JSC$19384_pathPrefix_+("/"+y):y},wO=function(p){if(p.JSC$19384_components_==
void 0){var y=p.uri_.getPath().substring(1);
p.JSC$19384_pathPrefix_=null;if(p.isFreeformUrl_){p.JSC$19384_components_=[];if((y.match(/=/g)||[]).length>1)return p.JSC$19382_valid_=!1,p.JSC$19384_components_;var l=y.indexOf("=");l!=-1?(p.JSC$19384_components_.push(y.substr(0,l)),p.JSC$19384_components_.push(y.substr(l+1))):p.JSC$19384_components_.push(y);return p.JSC$19384_components_}p.JSC$19384_components_=y.split("/");y=p.JSC$19384_components_.length;y>2&&p.JSC$19384_components_[0]=="u"&&(wPA(p,p.JSC$19384_components_[0]+"/"+p.JSC$19384_components_[1]),
p.JSC$19384_components_.shift(),p.JSC$19384_components_.shift(),y-=2);if(y==0||y==4||y>7)return p.JSC$19382_valid_=!1,p.JSC$19384_components_;if(y==2)wPA(p,p.JSC$19384_components_[0]);else if(p.JSC$19384_components_[0]=="image")wPA(p,p.JSC$19384_components_[0]);else if(y==7||y==3)return p.JSC$19382_valid_=!1,p.JSC$19384_components_;if(y<=3){p.obfuscated_=!0;y==3&&(wPA(p,p.JSC$19384_components_[1]),p.JSC$19384_components_.shift(),--y);--y;l=p.JSC$19384_components_[y];var q=l.indexOf("=");q!=-1&&(p.JSC$19384_components_[y]=
l.substr(0,q),p.JSC$19384_components_.push(l.substr(q+1)))}}return p.JSC$19384_components_};
Ka.prototype.isValid=function(){wO(this);return this.JSC$19382_valid_};
Ka.prototype.isObfuscated=function(){wO(this);return this.obfuscated_};
var i2w=function(p){wO(p);return p.isFreeformUrl_},iZ=function(p){wO(p);
p.JSC$19384_pathPrefix_==void 0&&(p.JSC$19384_pathPrefix_=null);return p.JSC$19384_pathPrefix_},rHm=function(p){switch(wO(p).length){case 7:return!0;
case 6:return iZ(p)==null;case 5:return!1;case 3:return!0;case 2:return iZ(p)==null;case 1:return!1;default:return!1}},rO=function(p,y){if(i2w(p))a:{switch(y){case 7:y=0;
break;case 4:if(!rHm(p)){p=null;break a}y=1;break;default:p=null;break a}p=wO(p)[y]}else if(p.isObfuscated())a:{var l=iZ(p)!=null?1:0;switch(y){case 6:y=l;break;case 4:if(!rHm(p)){p=null;break a}y=1+l;break;default:p=null;break a}p=wO(p)[y]}else a:{l=iZ(p)!=null?1:0;switch(y){case 0:y=l;break;case 1:y=1+l;break;case 2:y=2+l;break;case 3:y=3+l;break;case 4:if(!rHm(p)){p=null;break a}y=4+l;break;case 5:y=rHm(p)?1:0;y=4+l+y;break;default:p=null;break a}p=wO(p)[y]}return p};
Ka.prototype.getOptions=function(){this.options_==void 0&&(this.options_=rO(this,4));return this.options_};var Pa9=function(){};
Pa9.prototype.parse=function(p,y){return new nyu(p,y===void 0?!1:y)};
var nyu=function(p,y){Ka.call(this,p,y===void 0?!1:y)};
_.A(nyu,Ka);_.j6(XM,vd);var GUA;XM.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
XM.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var p=XM.superClass_.build.call(this),y=[];iZ(this.parsedImageUrl_)!=null&&y.push(iZ(this.parsedImageUrl_));var l=i2w(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var q=this.parsedImageUrl_;q.obfuscatedData_==void 0&&(q.obfuscatedData_=rO(q,6));y.push(q.obfuscatedData_+(p?"="+p:""))}else if(l){q=y.push;var t=this.parsedImageUrl_;t.freeformUrlPath_===void 0&&(t.freeformUrlPath_=rO(t,
7));q.call(y,t.freeformUrlPath_);p&&y.push(p)}else q=y.push,t=this.parsedImageUrl_,t.obfuscatedGaiaId_==void 0&&(t.obfuscatedGaiaId_=rO(t,0)),q.call(y,t.obfuscatedGaiaId_),q=y.push,t=this.parsedImageUrl_,t.photoId_==void 0&&(t.photoId_=rO(t,1)),q.call(y,t.photoId_),q=y.push,t=this.parsedImageUrl_,t.imageVersion_==void 0&&(t.imageVersion_=rO(t,2)),q.call(y,t.imageVersion_),q=y.push,t=this.parsedImageUrl_,t.signature_==void 0&&(t.signature_=rO(t,3)),q.call(y,t.signature_),p&&y.push(p),p=y.push,q=this.parsedImageUrl_,
q.filename_==void 0&&(q.filename_=rO(q,5)),p.call(y,q.filename_);y=l?y.join("="):y.join("/");y=_.YP(this.protocolPrefix_+this.JSC$19390_domain_+"/"+y+(this.JSC$19390_query_?"?"+this.JSC$19390_query_:"")).toString();y.startsWith("%3a//")&&(y=y.replace("%3a//","://"));return y};var S0u=_.c0(["viewBox"]),Ftw=_.c0(["width"]),Ltu=_.c0(["height"]),kC9=_.c0(["fill"]),NY1=_.c0(["id"]),DDR=_.c0(["x"]),H26=_.c0(["y"]);ZWi.prototype.getLength=function(){return this.parsedData.length};
ZWi.prototype.write=function(p){for(var y=0,l=this.parsedData.length;y<l;y++)p.put(this.parsedData[y],8)};
var iWi=function(p,y){var l=new ZWi(y);p.dataList.push(l);l=p.errorCorrectLevel;var q=1,t=encodeURI(y).toString().replace(/%[0-9a-fA-F]{2}/g,"a");y=t.length+(t.length!=y?3:0);t=0;for(var E=SH.length;t<=E;t++){var e=0;switch(l){case 1:e=SH[t][0];break;case 0:e=SH[t][1];break;case 3:e=SH[t][2];break;case 2:e=SH[t][3]}if(y<=e)break;else q++}if(q>SH.length)throw Error("vk");p.typeNumber=q;p.dataCache=null};
M$R.prototype.isDark=function(p,y){if(p<0||this.moduleCount<=p||y<0||this.moduleCount<=y)throw Error("nk`"+p+"`"+y);return this.modules[p][y]};
for(var rei=function(p,y,l){p.moduleCount=p.typeNumber*4+17;p.modules=Array(p.moduleCount);for(var q=0;q<p.moduleCount;q++){p.modules[q]=Array(p.moduleCount);for(var t=0;t<p.moduleCount;t++)p.modules[q][t]=null}TYm(p,0,0);TYm(p,p.moduleCount-7,0);TYm(p,0,p.moduleCount-7);q=xDR[p.typeNumber-1];for(t=0;t<q.length;t++)for(var E=0;E<q.length;E++){var e=q[t],C=q[E];if(p.modules[e][C]==null)for(var u=-2;u<=2;u++)for(var a=-2;a<=2;a++)p.modules[e+u][C+a]=u==-2||u==2||a==-2||a==2||u==0&&a==0?!0:!1}for(q=
8;q<p.moduleCount-8;q++)p.modules[q][6]==null&&(p.modules[q][6]=q%2==0);for(q=8;q<p.moduleCount-8;q++)p.modules[6][q]==null&&(p.modules[6][q]=q%2==0);q=p.errorCorrectLevel<<3|l;for(t=q<<10;FY(t)-FY(1335)>=0;)t^=1335<<FY(t)-FY(1335);q=(q<<10|t)^21522;for(t=0;t<15;t++)E=!y&&(q>>t&1)==1,t<6?p.modules[t][8]=E:t<8?p.modules[t+1][8]=E:p.modules[p.moduleCount-15+t][8]=E;for(t=0;t<15;t++)E=!y&&(q>>t&1)==1,t<8?p.modules[8][p.moduleCount-t-1]=E:t<9?p.modules[8][15-t-1+1]=E:p.modules[8][15-t-1]=E;p.modules[p.moduleCount-
8][8]=!y;if(p.typeNumber>=7){q=p.typeNumber;for(t=q<<12;FY(t)-FY(7973)>=0;)t^=7973<<FY(t)-FY(7973);q=q<<12|t;for(t=0;t<18;t++)E=!y&&(q>>t&1)==1,p.modules[Math.floor(t/3)][t%3+p.moduleCount-8-3]=E;for(t=0;t<18;t++)E=!y&&(q>>t&1)==1,p.modules[t%3+p.moduleCount-8-3][Math.floor(t/3)]=E}if(p.dataCache==null){t=p.typeNumber;E=p.dataList;y=p.errorCorrectLevel;q=BYL(t,y);if(q==void 0)throw Error("uk`"+t+"`"+y);e=q.length/3;y=[];for(C=0;C<e;C++){u=q[C*3];a=q[C*3+1];for(var m=q[C*3+2],U=0;U<u;U++)y.push(new V$O(a,
m))}q=new gyA;for(e=0;e<E.length;e++)C=E[e],q.put(C.mode,4),q.put(C.getLength(),fvm(C.mode,t)),C.write(q);for(e=t=0;e<y.length;e++)t+=y[e].dataCount;if(q.length>t*8)throw Error("ok`"+q.length+"`"+t*8);for(q.length+4<=t*8&&q.put(0,4);q.length%8!=0;)vDA(q,!1);for(;!(q.length>=t*8);){q.put(236,8);if(q.length>=t*8)break;q.put(17,8)}E=t=a=0;e=Array(y.length);C=Array(y.length);for(u=0;u<y.length;u++){U=y[u].dataCount;var b=y[u].totalCount-U;t=Math.max(t,U);E=Math.max(E,b);e[u]=Array(U);for(m=0;m<e[u].length;m++)e[u][m]=
255&q.buffer[m+a];a+=U;m=b;U=new dk([1],0);for(b=0;b<m;b++)U=U.multiply(new dk([1,XPm(b)],0));m=U;U=(new dk(e[u],m.getLength()-1)).mod(m);C[u]=Array(m.getLength()-1);for(m=0;m<C[u].length;m++)b=m+U.getLength()-C[u].length,C[u][m]=b>=0?U.get(b):0}for(m=q=0;m<y.length;m++)q+=y[m].totalCount;q=Array(q);for(m=a=0;m<t;m++)for(u=0;u<y.length;u++)m<e[u].length&&(q[a++]=e[u][m]);for(m=0;m<E;m++)for(u=0;u<y.length;u++)m<C[u].length&&(q[a++]=C[u][m]);p.dataCache=q}y=p.dataCache;q=-1;t=p.moduleCount-1;E=7;e=
0;for(C=p.moduleCount-1;C>0;C-=2)for(C==6&&C--;;){for(u=0;u<2;u++)p.modules[t][C-u]==null&&(a=!1,e<y.length&&(a=(y[e]>>>E&1)==1),dDd(l,t,C-u)&&(a=!a),p.modules[t][C-u]=a,E--,E==-1&&(e++,E=7));t+=q;if(t<0||p.moduleCount<=t){t-=q;q=-q;break}}},TYm=function(p,y,l){for(var q=-1;q<=7;q++)if(!(y+q<=-1||p.moduleCount<=y+q))for(var t=-1;t<=7;t++)l+t<=-1||p.moduleCount<=l+t||(p.modules[y+q][l+t]=0<=q&&q<=6&&(t==0||t==6)||0<=t&&t<=6&&(q==0||q==6)||2<=q&&q<=4&&2<=t&&t<=4?!0:!1)},StV=function(p){for(var y=0,
l=0,q=0;q<8;q++){rei(p,!0,q);
var t=p;for(var E=t.moduleCount,e=0,C=0;C<E;C++)for(var u=0;u<E;u++){for(var a=0,m=t.isDark(C,u),U=-1;U<=1;U++)if(!(C+U<0||E<=C+U))for(var b=-1;b<=1;b++)u+b<0||E<=u+b||(U!=0||b!=0)&&m==t.isDark(C+U,u+b)&&a++;a>5&&(e+=3+a-5)}for(C=0;C<E-1;C++)for(u=0;u<E-1;u++)if(a=0,t.isDark(C,u)&&a++,t.isDark(C+1,u)&&a++,t.isDark(C,u+1)&&a++,t.isDark(C+1,u+1)&&a++,a==0||a==4)e+=3;for(C=0;C<E;C++)for(u=0;u<E-6;u++)t.isDark(C,u)&&!t.isDark(C,u+1)&&t.isDark(C,u+2)&&t.isDark(C,u+3)&&t.isDark(C,u+4)&&!t.isDark(C,u+5)&&
t.isDark(C,u+6)&&(e+=40);for(u=0;u<E;u++)for(C=0;C<E-6;C++)t.isDark(C,u)&&!t.isDark(C+1,u)&&t.isDark(C+2,u)&&t.isDark(C+3,u)&&t.isDark(C+4,u)&&!t.isDark(C+5,u)&&t.isDark(C+6,u)&&(e+=40);for(u=a=0;u<E;u++)for(C=0;C<E;C++)t.isDark(C,u)&&a++;t=e+=Math.abs(100*a/E/E-50)/5*10;if(q==0||y>t)y=t,l=q}return l},xDR=[[],
[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]],FY=function(p){for(var y=0;p!=0;)y++,p>>>=1;return y},dDd=function(p,y,l){switch(p){case 0:return(y+l)%2==0;
case 1:return y%2==0;case 2:return l%3==0;case 3:return(y+l)%3==0;case 4:return(Math.floor(y/2)+Math.floor(l/3))%2==0;case 5:return y*l%2+y*l%3==0;case 6:return(y*l%2+y*l%3)%2==0;case 7:return(y*l%3+(y+l)%2)%2==0;default:throw Error("pk`"+p);}},fvm=function(p,y){if(1<=y&&y<10)switch(p){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("qk`"+p);}else if(y<27)switch(p){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("qk`"+p);}else if(y<41)switch(p){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("qk`"+p);}else throw Error("rk`"+y);},La=function(p){if(p<1)throw Error("sk`"+p);
return O27[p]},XPm=function(p){for(;p<0;)p+=255;
for(;p>=256;)p-=255;return kY[p]},kY=Array(256),O27=Array(256),oDd=0;oDd<8;oDd++)kY[oDd]=1<<oDd;
for(var Ng=8;Ng<256;Ng++)kY[Ng]=kY[Ng-4]^kY[Ng-5]^kY[Ng-6]^kY[Ng-8];for(var zNd=0;zNd<255;zNd++)O27[kY[zNd]]=zNd;dk.prototype.get=function(p){return this.num[p]};
dk.prototype.getLength=function(){return this.num.length};
dk.prototype.multiply=function(p){for(var y=Array(this.getLength()+p.getLength()-1),l=0;l<this.getLength();l++)for(var q=0;q<p.getLength();q++)y[l+q]^=XPm(La(this.get(l))+La(p.get(q)));return new dk(y,0)};
dk.prototype.mod=function(p){if(this.getLength()-p.getLength()<0)return this;for(var y=La(this.get(0))-La(p.get(0)),l=Array(this.getLength()),q=0;q<this.getLength();q++)l[q]=this.get(q);for(q=0;q<p.getLength();q++)l[q]^=XPm(La(p.get(q))+y);return(new dk(l,0)).mod(p)};
var Y0d=[[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]],BYL=function(p,y){switch(y){case 1:return Y0d[(p-1)*4];case 0:return Y0d[(p-1)*4+1];case 3:return Y0d[(p-1)*4+2];case 2:return Y0d[(p-1)*4+3]}};
gyA.prototype.get=function(p){return(this.buffer[Math.floor(p/8)]>>>7-p%8&1)==1};
gyA.prototype.put=function(p,y){for(var l=0;l<y;l++)vDA(this,(p>>>y-l-1&1)==1)};
var vDA=function(p,y){var l=Math.floor(p.length/8);p.buffer.length<=l&&p.buffer.push(0);y&&(p.buffer[l]|=128>>>p.length%8);p.length++},SH=[[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]],wVR=function(){var p=function(y,l){this.JSC$19410__el=y;this.JSC$19410__htOption=l};
p.prototype.draw=function(y){function l(m,U){m=document.createElementNS("http://www.w3.org/2000/svg",m);for(var b in U)U.hasOwnProperty(b)&&(b==="href"?_.Vhd(m,U[b]):_.CC([_.$I(S0u),_.$I(Ftw),_.$I(Ltu),_.$I(kC9),_.$I(NY1),_.$I(DDR),_.$I(H26)],m,b,U[b]));return m}
var q=this.JSC$19410__htOption,t=this.JSC$19410__el,E=y.moduleCount;this.clear();var e=l("svg",{viewBox:"0 0 "+String(E)+" "+String(E),width:"100%",height:"100%",fill:q.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});t.appendChild(e);e.appendChild(l("rect",{fill:q.colorLight,width:"100%",height:"100%"}));e.appendChild(l("rect",{fill:q.colorDark,width:"1",height:"1",id:"template"}));for(var C=0;C<E;C++)for(var u=0;u<E;u++)if(y.isDark(C,u)){var a=l("use",{x:String(C),y:String(u),href:"#template"});
e.appendChild(a)}};
p.prototype.clear=function(){for(;this.JSC$19410__el.hasChildNodes();)this.JSC$19410__el.removeChild(this.JSC$19410__el.lastChild)};
return p}(),KN7=document.documentElement.tagName.toLowerCase()==="svg"?wVR:typeof CanvasRenderingContext2D!="undefined"?function(){var p=function(y,l){this._bIsPainted=!1;
Qrw();this.JSC$19410__htOption=l;this._elCanvas=document.createElement("canvas");this._elCanvas.width=l.width;this._elCanvas.height=l.height;y.appendChild(this._elCanvas);this.JSC$19410__el=y;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$19410__el.appendChild(this._elImage);this._bSupportDataURI=null};
p.prototype._onMakeImage=function(){var y=this._elCanvas.toDataURL("image/png");this._elImage.src=y;this._elImage.style.display="block";this._elCanvas.style.display="none"};
p.prototype._safeSetDataURI=function(y,l){var q=this;q._fFail=l;q._fSuccess=y;q._bSupportDataURI===null?(y=_.gg("IMG"),l=function(){q._bSupportDataURI=!1;q._fFail&&q._fFail.call(q)},y.onabort=l,y.onerror=l,y.onload=function(){q._bSupportDataURI=!0;
q._fSuccess&&q._fSuccess.call(q)},y.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):q._bSupportDataURI===!0&&q._fSuccess?q._fSuccess.call(q):q._bSupportDataURI===!1&&q._fFail&&q._fFail.call(q)};
p.prototype.draw=function(y){var l=this._oContext,q=this.JSC$19410__htOption,t=y.moduleCount,E=q.width/t,e=q.height/t,C=Math.round(E),u=Math.round(e);this._elImage.style.display="none";this.clear();for(var a=0;a<t;a++)for(var m=0;m<t;m++){var U=y.isDark(a,m),b=m*E,P=a*e;l.strokeStyle=U?q.colorDark:q.colorLight;l.lineWidth=1;l.fillStyle=U?q.colorDark:q.colorLight;l.fillRect(b,P,E,e);l.strokeRect(Math.floor(b)+.5,Math.floor(P)+.5,C,u);l.strokeRect(Math.ceil(b)-.5,Math.ceil(P)-.5,C,u)}this._bIsPainted=
!0};
p.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
p.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
p.prototype.round=function(y){return y?Math.floor(y*1E3)/1E3:y};
return p}():function(){var p=function(y,l){this.JSC$19410__el=y;
this.JSC$19410__htOption=l};
p.prototype.draw=function(y){for(var l=this.JSC$19410__htOption,q=this.JSC$19410__el,t=y.moduleCount,E=Math.floor(l.width/t),e=Math.floor(l.height/t),C=['<table style="border:0;border-collapse:collapse;">'],u=0;u<t;u++){C.push("<tr>");for(var a=0;a<t;a++)C.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+E+"px;height:"+e+"px;background-color:"+(y.isDark(u,a)?l.colorDark:l.colorLight)+';"></td>');C.push("</tr>")}C.push("</table>");y=C.join("");y=_.wUr(_.rZi,y);_.hw(q,y);
y=q.childNodes[0];t=(l.width-y.offsetWidth)/2;E=(l.height-y.offsetHeight)/2;t>0&&E>0&&(y.style.margin=E+"px "+t+"px")};
p.prototype.clear=function(){this.JSC$19410__el.textContent=""};
return p}();
FN9.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19413__android||this.JSC$19413__android>=3)&&this._oDrawing.makeImage()};
FN9.prototype.clear=function(){this._oDrawing.clear()};
_.l_.QRCode=FN9;var Ivw={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var Dw=function(){};
Dw.prototype.stringify=function(p){return _.l_.JSON.stringify(p,void 0)};
Dw.prototype.parse=function(p){return _.l_.JSON.parse(p,void 0)};var pET=function(){_.Ku.call(this,"z")};
_.j6(pET,_.Ku);var y6R=function(){_.Ku.call(this,"y")};
_.j6(y6R,_.Ku);var lmd=null,qA7=function(){return lmd=lmd||new _.Fn},sLd=function(p){_.Ku.call(this,"serverreachability",p)};
_.j6(sLd,_.Ku);var HA=function(p){var y=qA7();y.dispatchEvent(new sLd(y,p))},txO=function(p,y){_.Ku.call(this,"statevent",p);
this.stat=y};
_.j6(txO,_.Ku);var TE=function(p){var y=qA7();y.dispatchEvent(new txO(y,p))},Efu=function(p,y,l,q){_.Ku.call(this,"timingevent",p);
this.size=y;this.rtt=l;this.retries=q};
_.j6(Efu,_.Ku);var J66=function(p,y,l){var q=qA7();q.dispatchEvent(new Efu(q,p,y,l))},xY=function(p,y){if(typeof p!=="function")throw Error("wk");
return _.l_.setTimeout(function(){p()},y)};var BA=function(){this.redactEnabled_=!0};
BA.prototype.disableRedact=function(){this.redactEnabled_=!1};
var c6R=function(p,y,l,q,t,E){p.info(function(){if(p.redactEnabled_)if(E){var e="";for(var C=E.split("&"),u=0;u<C.length;u++){var a=C[u].split("=");if(a.length>1){var m=a[0];a=a[1];var U=m.split("_");e=U.length>=2&&U[1]=="type"?e+(m+"="+a+"&"):e+(m+"=redacted&")}}}else e=null;else e=E;return"XMLHTTP REQ ("+q+") [attempt "+t+"]: "+y+"\n"+l+"\n"+e})},ek7=function(p,y,l,q,t,E,e){p.info(function(){return"XMLHTTP RESP ("+q+") [ attempt "+t+"]: "+y+"\n"+l+"\n"+E+" "+e})},fa=function(p,y,l,q){p.info(function(){return"XMLHTTP TEXT ("+
y+"): "+hk1(p,l)+(q?" "+q:"")})},CKd=function(p,y){p.info(function(){return"TIMEOUT: "+y})};
BA.prototype.debug=function(){};
BA.prototype.info=function(){};
BA.prototype.warning=function(){};
var hk1=function(p,y){if(!p.redactEnabled_)return y;if(!y)return null;try{var l=JSON.parse(y);if(l)for(var q=0;q<l.length;q++)if(Array.isArray(l[q])){var t=l[q];if(!(t.length<2)){var E=t[1];if(Array.isArray(E)&&!(E.length<1)){var e=E[0];if(e!="noop"&&e!="stop"&&e!="close")for(var C=1;C<E.length;C++)E[C]=""}}}return(0,_.xv)(l)}catch(u){return p.debug("Exception parsing expected JS array - probably was not JS"),y}};var vA=function(p,y,l,q,t){this.JSC$19435_channel_=p;this.JSC$19435_channelDebug_=y;this.sid_=l;this.JSC$19435_rid_=q;this.JSC$19435_retryId_=t||1;this.JSC$19435_eventHandler_=new _.W2(this);this.timeout_=45E3;this.JSC$19435_extraHeaders_=null;this.JSC$19435_successful_=!1;this.JSC$19435_postData_=this.JSC$19435_requestUri_=this.JSC$19435_baseUri_=this.JSC$19435_type_=this.JSC$19435_requestStartTime_=this.JSC$19435_watchDogTimeoutTime_=this.JSC$19435_watchDogTimerId_=null;this.JSC$19435_pendingMessages_=
[];this.JSC$19435_xmlHttp_=null;this.JSC$19435_xmlHttpChunkStart_=0;this.JSC$19435_lastError_=this.JSC$19435_verb_=null;this.JSC$19435_lastStatusCode_=-1;this.JSC$19435_cancelled_=!1;this.JSC$19435_readyStateChangeThrottleMs_=0;this.JSC$19435_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new uad},uad=function(){this.JSC$19437_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},RkR=function(p,y){switch(p){case 0:return"Non-200 return code ("+y+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},W4d={},am6={};
vA.prototype.setTimeout=function(p){this.timeout_=p};
var Uyd=function(p,y,l){p.JSC$19435_type_=1;p.JSC$19435_baseUri_=_.GC(y.clone());p.JSC$19435_postData_=l;p.decodeChunks_=!0;myV(p,null)},myV=function(p,y){p.JSC$19435_requestStartTime_=Date.now();
$yi(p);p.JSC$19435_requestUri_=p.JSC$19435_baseUri_.clone();Qw(p.JSC$19435_requestUri_,"t",p.JSC$19435_retryId_);p.JSC$19435_xmlHttpChunkStart_=0;var l=p.JSC$19435_channel_.JSC$19454_supportsCrossDomainXhrs_;p.fetchResponseState_=new uad;p.JSC$19435_xmlHttp_=jLO(p.JSC$19435_channel_,l?y:null,!p.JSC$19435_postData_);p.JSC$19435_readyStateChangeThrottleMs_>0&&(p.JSC$19435_readyStateChangeThrottle_=new _.hy((0,_.FZ)(p.JSC$19439_xmlHttpHandler_,p,p.JSC$19435_xmlHttp_),p.JSC$19435_readyStateChangeThrottleMs_));
p.JSC$19435_eventHandler_.listen(p.JSC$19435_xmlHttp_,"readystatechange",p.JSC$19439_readyStateChangeHandler_);y=p.JSC$19435_extraHeaders_?_.Ts.clone(p.JSC$19435_extraHeaders_):{};p.JSC$19435_postData_?(p.JSC$19435_verb_||(p.JSC$19435_verb_="POST"),y["Content-Type"]="application/x-www-form-urlencoded",p.JSC$19435_xmlHttp_.send(p.JSC$19435_requestUri_,p.JSC$19435_verb_,p.JSC$19435_postData_,y)):(p.JSC$19435_verb_="GET",p.JSC$19435_xmlHttp_.send(p.JSC$19435_requestUri_,p.JSC$19435_verb_,null,y));HA(1);
c6R(p.JSC$19435_channelDebug_,p.JSC$19435_verb_,p.JSC$19435_requestUri_,p.JSC$19435_rid_,p.JSC$19435_retryId_,p.JSC$19435_postData_)};
vA.prototype.JSC$19439_readyStateChangeHandler_=function(p){p=p.target;var y=this.JSC$19435_readyStateChangeThrottle_;y&&_.fu(p)==3?(this.JSC$19435_channelDebug_.debug("Throttling readystatechange."),y.fire()):this.JSC$19439_xmlHttpHandler_(p)};
vA.prototype.JSC$19439_xmlHttpHandler_=function(p){try{p==this.JSC$19435_xmlHttp_?bgL(this):this.JSC$19435_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(y){this.JSC$19435_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),nf9(this)}finally{}};
var bgL=function(p){var y=_.fu(p.JSC$19435_xmlHttp_),l=p.JSC$19435_xmlHttp_.JSC$9731_lastErrorCode_,q=p.JSC$19435_xmlHttp_.getStatus();if(!(y<3||y==3&&!nf9(p))){p.JSC$19435_cancelled_||y!=4||l==7||(l==8||q<=0?HA(3):HA(2));Gvd(p);var t=p.JSC$19435_xmlHttp_.getStatus();p.JSC$19435_lastStatusCode_=t;l=PK1(p);nf9(p)||p.JSC$19435_channelDebug_.debug(function(){return"No response text for uri "+p.JSC$19435_requestUri_+" status "+t});
p.JSC$19435_successful_=t==200;ek7(p.JSC$19435_channelDebug_,p.JSC$19435_verb_,p.JSC$19435_requestUri_,p.JSC$19435_rid_,p.JSC$19435_retryId_,y,t);if(p.JSC$19435_successful_){if(p.decodeInitialResponse_&&!p.initialResponseDecoded_)if(q=A6O(p))fa(p.JSC$19435_channelDebug_,p.JSC$19435_rid_,q,"Initial handshake response via X-HTTP-Initial-Response"),p.initialResponseDecoded_=!0,ZgV(p,q);else{p.JSC$19435_successful_=!1;p.JSC$19435_lastError_=3;TE(12);p.JSC$19435_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
p.JSC$19435_rid_+")");XY(p);dO(p);return}p.decodeChunks_?Mxi(p,y,l):(fa(p.JSC$19435_channelDebug_,p.JSC$19435_rid_,l,null),ZgV(p,l));y==4&&XY(p);p.JSC$19435_successful_&&!p.JSC$19435_cancelled_&&(y==4?Vxd(p.JSC$19435_channel_,p):(p.JSC$19435_successful_=!1,$yi(p)))}else l6T(p.JSC$19435_xmlHttp_),t==400&&l.indexOf("Unknown SID")>0?(p.JSC$19435_lastError_=3,TE(12),p.JSC$19435_channelDebug_.warning("XMLHTTP Unknown SID ("+p.JSC$19435_rid_+")")):(p.JSC$19435_lastError_=0,TE(13),p.JSC$19435_channelDebug_.warning("XMLHTTP Bad status "+
t+" ("+p.JSC$19435_rid_+")")),XY(p),dO(p)}},A6O=function(p){return p.JSC$19435_xmlHttp_&&(p=LA(p.JSC$19435_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.ej(p)?p:null},PK1=function(p){if(!gfR(p))return p.JSC$19435_xmlHttp_.getResponseText();
var y=p.JSC$19435_xmlHttp_.getResponse();if(y==="")return"";var l="",q=y.length,t=_.fu(p.JSC$19435_xmlHttp_)==4;if(!p.fetchResponseState_.JSC$19437_textDecoder){if(typeof TextDecoder==="undefined")return XY(p),dO(p),"";p.fetchResponseState_.JSC$19437_textDecoder=new _.l_.TextDecoder}for(var E=0;E<q;E++)p.fetchResponseState_.responseArrivedForFetch=!0,l+=p.fetchResponseState_.JSC$19437_textDecoder.decode(y[E],{stream:!(t&&E==q-1)});y.length=0;p.fetchResponseState_.responseBuffer+=l;p.JSC$19435_xmlHttpChunkStart_=
0;return p.fetchResponseState_.responseBuffer},nf9=function(p){return p.JSC$19435_xmlHttp_?p.fetchResponseState_.responseArrivedForFetch?!0:!(!p.JSC$19435_xmlHttp_.getResponseText()&&!p.JSC$19435_xmlHttp_.getResponse()):!1},gfR=function(p){return p.JSC$19435_xmlHttp_?p.JSC$19435_verb_=="GET"&&p.JSC$19435_type_!=2&&p.JSC$19435_channel_.usesFetchStreams_:!1},Mxi=function(p,y,l){for(var q=!0,t;!p.JSC$19435_cancelled_&&p.JSC$19435_xmlHttpChunkStart_<l.length;)if(t=QLm(p,l),t==am6){y==4&&(p.JSC$19435_lastError_=
4,TE(14),q=!1);
fa(p.JSC$19435_channelDebug_,p.JSC$19435_rid_,null,"[Incomplete Response]");break}else if(t==W4d){p.JSC$19435_lastError_=4;TE(15);fa(p.JSC$19435_channelDebug_,p.JSC$19435_rid_,l,"[Invalid Chunk]");q=!1;break}else fa(p.JSC$19435_channelDebug_,p.JSC$19435_rid_,t,null),ZgV(p,t);gfR(p)&&p.JSC$19435_xmlHttpChunkStart_!=0&&(p.fetchResponseState_.responseBuffer=p.fetchResponseState_.responseBuffer.slice(p.JSC$19435_xmlHttpChunkStart_),p.JSC$19435_xmlHttpChunkStart_=0);y!=4||l.length!=0||p.fetchResponseState_.responseArrivedForFetch||
(p.JSC$19435_lastError_=1,TE(16),q=!1);p.JSC$19435_successful_=p.JSC$19435_successful_&&q;q?l.length>0&&!p.firstByteReceived_&&(p.firstByteReceived_=!0,y=p.JSC$19435_channel_,y.JSC$19454_backChannelRequest_==p&&y.detectBufferingProxy_&&!y.bpDetectionDone_&&(y.JSC$19454_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+l.length),K4m(y),y.bpDetectionDone_=!0,TE(11))):(fa(p.JSC$19435_channelDebug_,p.JSC$19435_rid_,l,"[Invalid Chunked Response]"),XY(p),dO(p))},QLm=function(p,y){var l=
p.JSC$19435_xmlHttpChunkStart_,q=y.indexOf("\n",l);
if(q==-1)return am6;l=Number(y.substring(l,q));if(isNaN(l))return W4d;q+=1;if(q+l>y.length)return am6;y=y.slice(q,q+l);p.JSC$19435_xmlHttpChunkStart_=q+l;return y};
vA.prototype.cancel=function(){this.JSC$19435_cancelled_=!0;XY(this)};
var $yi=function(p){p.JSC$19435_watchDogTimeoutTime_=Date.now()+p.timeout_;wEV(p,p.timeout_)},wEV=function(p,y){if(p.JSC$19435_watchDogTimerId_!=null)throw Error("xk");
p.JSC$19435_watchDogTimerId_=xY((0,_.FZ)(p.JSC$19439_onWatchDogTimeout_,p),y)},Gvd=function(p){p.JSC$19435_watchDogTimerId_&&(_.l_.clearTimeout(p.JSC$19435_watchDogTimerId_),p.JSC$19435_watchDogTimerId_=null)};
vA.prototype.JSC$19439_onWatchDogTimeout_=function(){this.JSC$19435_watchDogTimerId_=null;var p=Date.now();p-this.JSC$19435_watchDogTimeoutTime_>=0?(CKd(this.JSC$19435_channelDebug_,this.JSC$19435_requestUri_),this.JSC$19435_type_!=2&&(HA(3),TE(17)),XY(this),this.JSC$19435_lastError_=2,dO(this)):(this.JSC$19435_channelDebug_.warning("WatchDog timer called too early"),wEV(this,this.JSC$19435_watchDogTimeoutTime_-p))};
var dO=function(p){p.JSC$19435_channel_.state_==0||p.JSC$19435_cancelled_||Vxd(p.JSC$19435_channel_,p)},XY=function(p){Gvd(p);
_.er(p.JSC$19435_readyStateChangeThrottle_);p.JSC$19435_readyStateChangeThrottle_=null;p.JSC$19435_eventHandler_.removeAll();if(p.JSC$19435_xmlHttp_){var y=p.JSC$19435_xmlHttp_;p.JSC$19435_xmlHttp_=null;y.abort();y.dispose()}};
vA.prototype.getLastError=function(){return this.JSC$19435_lastError_};
var ZgV=function(p,y){try{var l=p.JSC$19435_channel_;if(l.state_!=0&&(l.JSC$19454_backChannelRequest_==p||ig7(l.forwardChannelRequestPool_,p)))if(!p.initialResponseDecoded_&&ig7(l.forwardChannelRequestPool_,p)&&l.state_==3){try{var q=l.wireCodec_.JSC$19449_parser_.parse(y)}catch(C){q=null}if(Array.isArray(q)&&q.length==3){y=q;if(y[0]==0)a:if(l.JSC$19454_channelDebug_.debug("Server claims our backchannel is missing."),l.JSC$19454_backChannelTimerId_)l.JSC$19454_channelDebug_.debug("But we are currently starting the request.");
else{if(l.JSC$19454_backChannelRequest_)if(l.JSC$19454_backChannelRequest_.JSC$19435_requestStartTime_+3E3<p.JSC$19435_requestStartTime_)r6u(l),SAA(l);else break a;else l.JSC$19454_channelDebug_.warning("We do not have a BackChannel established");F4d(l);TE(18)}else{l.JSC$19454_lastPostResponseArrayId_=y[1];var t=l.JSC$19454_lastPostResponseArrayId_-l.JSC$19454_lastArrayId_;if(0<t){var E=y[2];l.JSC$19454_channelDebug_.debug(E+" bytes (in "+t+" arrays) are outstanding on the BackChannel");E<37500&&
l.enableStreaming_&&l.JSC$19454_backChannelRetryCount_==0&&!l.JSC$19454_deadBackChannelTimerId_&&(l.JSC$19454_deadBackChannelTimerId_=xY((0,_.FZ)(l.JSC$19456_onBackChannelDead_,l),6E3))}}if(L4R(l.forwardChannelRequestPool_)<=1&&l.forwardChannelFlushedCallback_){try{l.forwardChannelFlushedCallback_()}catch(C){}l.forwardChannelFlushedCallback_=void 0}}else l.JSC$19454_channelDebug_.debug("Bad POST response data returned"),Ov(l,11)}else if((p.initialResponseDecoded_||l.JSC$19454_backChannelRequest_==
p)&&r6u(l),!_.ej(y)){var e=l.wireCodec_.JSC$19449_parser_.parse(y);l.onInput_(e,p)}HA(4)}catch(C){}};var kvV=function(p,y){this.JSC$19442_mapId=p;this.map=y;this.context=null};var NIO=function(p){this.maxPoolSizeConfigured_=p||10;_.l_.PerformanceNavigationTiming?(p=_.l_.performance.getEntriesByType("navigation"),p=p.length>0&&(p[0].nextHopProtocol=="hq"||p[0].nextHopProtocol=="h2")):p=!!(_.l_.chrome&&_.l_.chrome.loadTimes&&_.l_.chrome.loadTimes()&&_.l_.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19445_maxSize_=p?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19445_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19445_request_=null;this.JSC$19445_pendingMessages_=
[]},Dym=function(p){return p.JSC$19445_request_?!0:p.requestPool_?p.requestPool_.size>=p.JSC$19445_maxSize_:!1},L4R=function(p){return p.JSC$19445_request_?1:p.requestPool_?p.requestPool_.size:0},ig7=function(p,y){return p.JSC$19445_request_?p.JSC$19445_request_==y:p.requestPool_?p.requestPool_.has(y):!1},HgR=function(p,y){p.requestPool_?p.requestPool_.add(y):p.JSC$19445_request_=y},TIw=function(p,y){p.JSC$19445_request_&&p.JSC$19445_request_==y?p.JSC$19445_request_=null:p.requestPool_&&p.requestPool_.has(y)&&
p.requestPool_.delete(y)};
NIO.prototype.cancel=function(){this.JSC$19445_pendingMessages_=xyT(this);if(this.JSC$19445_request_)this.JSC$19445_request_.cancel(),this.JSC$19445_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var p=_.c(this.requestPool_.values()),y=p.next();!y.done;y=p.next())y.value.cancel();this.requestPool_.clear()}};
var xyT=function(p){if(p.JSC$19445_request_!=null)return p.JSC$19445_pendingMessages_.concat(p.JSC$19445_request_.JSC$19435_pendingMessages_);if(p.requestPool_!=null&&p.requestPool_.size!==0){var y=p.JSC$19445_pendingMessages_;p=_.c(p.requestPool_.values());for(var l=p.next();!l.done;l=p.next())y=y.concat(l.value.JSC$19435_pendingMessages_);return y}return _.og(p.JSC$19445_pendingMessages_)},BIO=function(p,y){p.JSC$19445_pendingMessages_=p.JSC$19445_pendingMessages_.concat(y)};var fm9=function(p,y){var l=new BA;l.debug("TestLoadImage: loading "+p);if(_.l_.Image){var q=new Image;q.onload=_.Ky(oD,l,"TestLoadImage: loaded",!0,y,q);q.onerror=_.Ky(oD,l,"TestLoadImage: error",!1,y,q);q.onabort=_.Ky(oD,l,"TestLoadImage: abort",!1,y,q);q.ontimeout=_.Ky(oD,l,"TestLoadImage: timeout",!1,y,q);_.l_.setTimeout(function(){if(q.ontimeout)q.ontimeout()},1E4);
q.src=p}else y(!1)},vf7=function(p,y){var l=new BA,q=new AbortController,t=setTimeout(function(){q.abort();
oD(l,"TestPingServer: timeout",!1,y)},1E4);
fetch(p,{signal:q.signal}).then(function(E){clearTimeout(t);E.ok?oD(l,"TestPingServer: ok",!0,y):oD(l,"TestPingServer: server error",!1,y)}).catch(function(){clearTimeout(t);
oD(l,"TestPingServer: error",!1,y)})},oD=function(p,y,l,q,t){try{p.debug(y),t&&(t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null),q(l)}catch(E){}};var XEd=function(){this.JSC$19449_parser_=new Dw};var zE=function(p,y,l){return l&&l.internalChannelParams?l.internalChannelParams[p]||y:y},YY=function(p){this.serverVersion_=0;
this.JSC$19454_outgoingMaps_=[];this.JSC$19454_channelDebug_=new BA;this.JSC$19454_hostPrefix_=this.JSC$19454_backChannelUri_=this.JSC$19454_forwardChannelUri_=this.JSC$19454_path_=this.JSC$19454_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19454_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19454_extraHeaders_=null;this.JSC$19454_nextMapId_=this.JSC$19454_nextRid_=0;this.JSC$19454_failFast_=zE("failFast",!1,p);this.enableStreaming_=this.JSC$19454_deadBackChannelTimerId_=
this.JSC$19454_backChannelTimerId_=this.JSC$19454_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19454_lastPostResponseArrayId_=this.JSC$19454_lastArrayId_=-1;this.JSC$19454_backChannelAttemptId_=this.JSC$19454_backChannelRetryCount_=this.JSC$19454_forwardChannelRetryCount_=0;this.JSC$19454_baseRetryDelayMs_=zE("baseRetryDelayMs",5E3,p);this.JSC$19454_retryDelaySeedMs_=zE("retryDelaySeedMs",1E4,p);this.JSC$19454_forwardChannelMaxRetries_=
zE("forwardChannelMaxRetries",2,p);this.JSC$19454_forwardChannelRequestTimeoutMs_=zE("forwardChannelRequestTimeoutMs",2E4,p);this.JSC$19454_xmlHttpFactory_=p&&p.xmlHttpFactory||void 0;this.networkTestUrl_=p&&p.networkTestUrl||void 0;this.usesFetchStreams_=p&&p.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19454_supportsCrossDomainXhrs_=p&&p.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new NIO(p&&p.concurrentRequestLimit);this.wireCodec_=new XEd;this.fastHandshake_=
p&&p.fastHandshake||!1;this.encodeInitMessageHeaders_=p&&p.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19454_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=p&&p.blockingHandshake||!1;p&&p.disableRedact&&this.JSC$19454_channelDebug_.disableRedact();p&&p.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
p&&p.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;p&&p.longPollingTimeout&&p.longPollingTimeout>0&&(this.longPollingTimeout_=p.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
YY.prototype.JSC$19456_channelVersion_=8;YY.prototype.state_=1;
YY.prototype.connect=function(p,y,l,q){this.JSC$19454_channelDebug_.debug("connect()");TE(0);this.JSC$19454_path_=p;this.JSC$19454_extraParams_=y||{};l&&q!==void 0&&(this.JSC$19454_extraParams_.OSID=l,this.JSC$19454_extraParams_.OAID=q);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19454_channelDebug_.debug("connectChannel_()");p=dyL(this,null,this.JSC$19454_path_);this.JSC$19454_channelDebug_.debug("GetForwardChannelUri: "+p);this.JSC$19454_forwardChannelUri_=p;Og1(this)};
YY.prototype.disconnect=function(){this.JSC$19454_channelDebug_.debug("disconnect()");ofi(this);if(this.state_==3){var p=this.JSC$19454_nextRid_++,y=this.JSC$19454_forwardChannelUri_.clone();_.pr(y,"SID",this.sid_);_.pr(y,"RID",p);_.pr(y,"TYPE","terminate");ID(this,y);p=new vA(this,this.JSC$19454_channelDebug_,this.sid_,p);p.JSC$19435_type_=2;p.JSC$19435_baseUri_=_.GC(y.clone());y=!1;if(_.l_.navigator&&_.l_.navigator.sendBeacon)try{y=_.l_.navigator.sendBeacon(p.JSC$19435_baseUri_.toString(),"")}catch(l){}!y&&
_.l_.Image&&((new Image).src=p.JSC$19435_baseUri_,y=!0);y||(p.JSC$19435_xmlHttp_=jLO(p.JSC$19435_channel_,null),p.JSC$19435_xmlHttp_.send(p.JSC$19435_baseUri_));p.JSC$19435_requestStartTime_=Date.now();$yi(p)}zkd(this)};
var SAA=function(p){p.JSC$19454_backChannelRequest_&&(K4m(p),p.JSC$19454_backChannelRequest_.cancel(),p.JSC$19454_backChannelRequest_=null)},ofi=function(p){SAA(p);
p.JSC$19454_backChannelTimerId_&&(_.l_.clearTimeout(p.JSC$19454_backChannelTimerId_),p.JSC$19454_backChannelTimerId_=null);r6u(p);p.forwardChannelRequestPool_.cancel();p.JSC$19454_forwardChannelTimerId_&&(typeof p.JSC$19454_forwardChannelTimerId_==="number"&&_.l_.clearTimeout(p.JSC$19454_forwardChannelTimerId_),p.JSC$19454_forwardChannelTimerId_=null)};
YY.prototype.getState=function(){return this.state_};
var Og1=function(p){Dym(p.forwardChannelRequestPool_)||p.JSC$19454_forwardChannelTimerId_||(p.JSC$19454_forwardChannelTimerId_=!0,_.kv(p.JSC$19456_onStartForwardChannelTimer_,p),p.JSC$19454_forwardChannelRetryCount_=0)},ImL=function(p,y){if(L4R(p.forwardChannelRequestPool_)>=p.forwardChannelRequestPool_.JSC$19445_maxSize_-(p.JSC$19454_forwardChannelTimerId_?1:0))return!1;
if(p.JSC$19454_forwardChannelTimerId_)return p.JSC$19454_channelDebug_.debug("Use the retry request that is already scheduled."),p.JSC$19454_outgoingMaps_=y.JSC$19435_pendingMessages_.concat(p.JSC$19454_outgoingMaps_),!0;if(p.state_==1||p.state_==2||p.JSC$19454_forwardChannelRetryCount_>=(p.JSC$19454_failFast_?0:p.JSC$19454_forwardChannelMaxRetries_))return!1;p.JSC$19454_channelDebug_.debug("Going to retry POST");p.JSC$19454_forwardChannelTimerId_=xY((0,_.FZ)(p.JSC$19456_onStartForwardChannelTimer_,
p,y),YAA(p,p.JSC$19454_forwardChannelRetryCount_));p.JSC$19454_forwardChannelRetryCount_++;return!0};
YY.prototype.JSC$19456_onStartForwardChannelTimer_=function(p){if(this.JSC$19454_forwardChannelTimerId_)if(this.JSC$19454_forwardChannelTimerId_=null,this.JSC$19454_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!p){this.JSC$19454_channelDebug_.debug("open_()");this.JSC$19454_nextRid_=Math.floor(Math.random()*1E5);p=this.JSC$19454_nextRid_++;var y=new vA(this,this.JSC$19454_channelDebug_,"",p),l=this.JSC$19454_extraHeaders_;this.initHeaders_&&(l?(l=_.Ts.clone(l),_.Ts.extend(l,this.initHeaders_)):
l=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(y.JSC$19435_extraHeaders_=l,l=null);var q;if(this.fastHandshake_)a:{for(var t=q=0;t<this.JSC$19454_outgoingMaps_.length;t++){b:{var E=this.JSC$19454_outgoingMaps_[t];if("__data__"in E.map&&(E=E.map.__data__,typeof E==="string")){E=E.length;break b}E=void 0}if(E===void 0)break;q+=E;if(q>4096){q=t;break a}if(q===4096||t===this.JSC$19454_outgoingMaps_.length-1){q=t+1;break a}}q=1E3}else q=1E3;q=pzw(this,y,q);
t=this.JSC$19454_forwardChannelUri_.clone();_.pr(t,"RID",p);_.pr(t,"CVER",22);this.httpSessionIdParam_&&_.pr(t,"X-HTTP-Session-Id",this.httpSessionIdParam_);ID(this,t);l&&(this.encodeInitMessageHeaders_?q="headers="+_.y$(UYw(l))+"&"+q:this.httpHeadersOverwriteParam_&&$YO(t,this.httpHeadersOverwriteParam_,l));HgR(this.forwardChannelRequestPool_,y);this.blockingHandshake_&&_.pr(t,"TYPE","init");this.fastHandshake_?(_.pr(t,"$req",q),_.pr(t,"SID","null"),y.decodeInitialResponse_=!0,Uyd(y,t,null)):Uyd(y,
t,q);this.state_=2}}else this.state_==3&&(p?yc1(this,p):this.JSC$19454_outgoingMaps_.length==0?this.JSC$19454_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):Dym(this.forwardChannelRequestPool_)||(yc1(this),this.JSC$19454_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var yc1=function(p,y){var l;y?l=y.JSC$19435_rid_:l=p.JSC$19454_nextRid_++;var q=p.JSC$19454_forwardChannelUri_.clone();_.pr(q,"SID",p.sid_);_.pr(q,"RID",l);_.pr(q,"AID",p.JSC$19454_lastArrayId_);ID(p,q);p.httpHeadersOverwriteParam_&&p.JSC$19454_extraHeaders_&&$YO(q,p.httpHeadersOverwriteParam_,p.JSC$19454_extraHeaders_);l=new vA(p,p.JSC$19454_channelDebug_,p.sid_,l,p.JSC$19454_forwardChannelRetryCount_+1);p.httpHeadersOverwriteParam_===null&&(l.JSC$19435_extraHeaders_=p.JSC$19454_extraHeaders_);y&&
(p.JSC$19454_outgoingMaps_=y.JSC$19435_pendingMessages_.concat(p.JSC$19454_outgoingMaps_));y=pzw(p,l,1E3);l.setTimeout(Math.round(p.JSC$19454_forwardChannelRequestTimeoutMs_*.5)+Math.round(p.JSC$19454_forwardChannelRequestTimeoutMs_*.5*Math.random()));HgR(p.forwardChannelRequestPool_,l);Uyd(l,q,y)},ID=function(p,y){p.JSC$19454_extraParams_&&_.Ts.forEach(p.JSC$19454_extraParams_,function(l,q){_.pr(y,q,l)});
p.handler_&&_.Ts.forEach({},function(l,q){_.pr(y,q,l)})},pzw=function(p,y,l){l=Math.min(p.JSC$19454_outgoingMaps_.length,l);
var q=p.handler_?(0,_.FZ)(p.handler_.JSC$19460_badMapError,p.handler_,p):null;a:{for(var t=p.JSC$19454_outgoingMaps_,E=-1;;){var e=["count="+l];E==-1?l>0?(E=t[0].JSC$19442_mapId,e.push("ofs="+E)):E=0:e.push("ofs="+E);for(var C=!0,u=0;u<l;u++){var a=t[u].JSC$19442_mapId,m=t[u].map;a-=E;if(a<0)E=Math.max(0,t[u].JSC$19442_mapId-100),C=!1;else try{a="req"+a+"_"||"";try{var U=m instanceof Map?m:Object.entries(m);for(var b=_.c(U),P=b.next();!P.done;P=b.next()){var Z=_.c(P.value),K=Z.next().value,F=Z.next().value,
L=F;_.yQ(F)&&(L=(0,_.xv)(F));e.push(a+K+"="+encodeURIComponent(L))}}catch(T){throw e.push(a+"type="+encodeURIComponent("_badmap")),T;}}catch(T){q&&q(m)}}if(C){U=e.join("&");break a}}U=void 0}p=p.JSC$19454_outgoingMaps_.splice(0,l);y.JSC$19435_pendingMessages_=p;return U},lZm=function(p){p.JSC$19454_backChannelRequest_||p.JSC$19454_backChannelTimerId_||(p.JSC$19454_backChannelAttemptId_=1,_.kv(p.JSC$19456_onStartBackChannelTimer_,p),p.JSC$19454_backChannelRetryCount_=0)},F4d=function(p){if(p.JSC$19454_backChannelRequest_||
p.JSC$19454_backChannelTimerId_||p.JSC$19454_backChannelRetryCount_>=3)return!1;
p.JSC$19454_channelDebug_.debug("Going to retry GET");p.JSC$19454_backChannelAttemptId_++;p.JSC$19454_backChannelTimerId_=xY((0,_.FZ)(p.JSC$19456_onStartBackChannelTimer_,p),YAA(p,p.JSC$19454_backChannelRetryCount_));p.JSC$19454_backChannelRetryCount_++;return!0};
YY.prototype.JSC$19456_onStartBackChannelTimer_=function(){this.JSC$19454_backChannelTimerId_=null;qTi(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19454_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19454_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19454_backChannelRequest_+" "+this.handshakeRttMs_);else{var p=4*this.handshakeRttMs_;this.JSC$19454_channelDebug_.info("BP detection timer enabled: "+p);this.bpDetectionTimerId_=xY((0,_.FZ)(this.onBpDetectionTimer_,
this),p)}};
YY.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19454_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19454_backChannelRequest_.JSC$19435_xmlHttp_!=null){var p=this.JSC$19454_backChannelRequest_.JSC$19435_xmlHttp_.getResponseText();p&&this.JSC$19454_channelDebug_.warning("Timer should have been cancelled : "+p)}this.JSC$19454_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;TE(10);SAA(this);qTi(this)}else this.JSC$19454_channelDebug_.warning("Invalid operation.")};
var K4m=function(p){p.bpDetectionTimerId_!=null&&(p.JSC$19454_channelDebug_.debug("Cancel the BP detection timer."),_.l_.clearTimeout(p.bpDetectionTimerId_),p.bpDetectionTimerId_=null)},qTi=function(p){p.JSC$19454_channelDebug_.debug("Creating new HttpRequest");
p.JSC$19454_backChannelRequest_=new vA(p,p.JSC$19454_channelDebug_,p.sid_,"rpc",p.JSC$19454_backChannelAttemptId_);p.httpHeadersOverwriteParam_===null&&(p.JSC$19454_backChannelRequest_.JSC$19435_extraHeaders_=p.JSC$19454_extraHeaders_);p.JSC$19454_backChannelRequest_.JSC$19435_readyStateChangeThrottleMs_=0;var y=p.JSC$19454_backChannelUri_.clone();_.pr(y,"RID","rpc");_.pr(y,"SID",p.sid_);_.pr(y,"AID",p.JSC$19454_lastArrayId_);_.pr(y,"CI",p.enableStreaming_?"0":"1");!p.enableStreaming_&&p.longPollingTimeout_&&
_.pr(y,"TO",p.longPollingTimeout_);_.pr(y,"TYPE","xmlhttp");ID(p,y);p.httpHeadersOverwriteParam_&&p.JSC$19454_extraHeaders_&&$YO(y,p.httpHeadersOverwriteParam_,p.JSC$19454_extraHeaders_);p.backChannelRequestTimeoutMs_&&p.JSC$19454_backChannelRequest_.setTimeout(p.backChannelRequestTimeoutMs_);var l=p.JSC$19454_backChannelRequest_,q=p.JSC$19454_hostPrefix_;l.JSC$19435_type_=1;l.JSC$19435_baseUri_=_.GC(y.clone());l.JSC$19435_postData_=null;l.decodeChunks_=!0;myV(l,q);p.JSC$19454_channelDebug_.debug("New Request created")};
YY.prototype.JSC$19456_onBackChannelDead_=function(){this.JSC$19454_deadBackChannelTimerId_!=null&&(this.JSC$19454_deadBackChannelTimerId_=null,SAA(this),F4d(this),TE(19))};
var r6u=function(p){p.JSC$19454_deadBackChannelTimerId_!=null&&(_.l_.clearTimeout(p.JSC$19454_deadBackChannelTimerId_),p.JSC$19454_deadBackChannelTimerId_=null)},Vxd=function(p,y){p.JSC$19454_channelDebug_.debug("Request complete");
var l=null;if(p.JSC$19454_backChannelRequest_==y){r6u(p);K4m(p);p.JSC$19454_backChannelRequest_=null;var q=2}else if(ig7(p.forwardChannelRequestPool_,y))l=y.JSC$19435_pendingMessages_,TIw(p.forwardChannelRequestPool_,y),q=1;else return;if(p.state_!=0)if(y.JSC$19435_successful_)q==1?(J66(y.JSC$19435_postData_?y.JSC$19435_postData_.length:0,Date.now()-y.JSC$19435_requestStartTime_,p.JSC$19454_forwardChannelRetryCount_),Og1(p)):lZm(p);else{var t=y.JSC$19435_lastStatusCode_,E=y.getLastError();if(E==3||
E==0&&t>0)p.JSC$19454_channelDebug_.debug("Not retrying due to error type"),t>200&&(p.errorResponseStatusCode_=y.JSC$19435_lastStatusCode_);else{p.JSC$19454_channelDebug_.debug(function(){return"Maybe retrying, last error: "+RkR(E,p.errorResponseStatusCode_)});
if(q==1&&ImL(p,y)||q==2&&F4d(p))return;p.JSC$19454_channelDebug_.debug("Exceeded max number of retries")}l&&l.length>0&&BIO(p.forwardChannelRequestPool_,l);p.JSC$19454_channelDebug_.debug("Error: HTTP request failed");switch(E){case 1:Ov(p,5);break;case 4:Ov(p,10);break;case 3:Ov(p,6);break;default:Ov(p,2)}}},YAA=function(p,y){var l=p.JSC$19454_baseRetryDelayMs_+Math.floor(Math.random()*p.JSC$19454_retryDelaySeedMs_);
p.isActive()||(p.JSC$19454_channelDebug_.debug("Inactive channel"),l*=2);return l*y};
YY.prototype.onInput_=function(p,y){for(var l=0;l<p.length;l++){var q=p[l];this.JSC$19454_lastArrayId_=q[0];q=q[1];if(this.state_==2)if(q[0]=="c"){this.sid_=q[1];this.JSC$19454_hostPrefix_=q[2];var t=q[3];t!=null&&(this.JSC$19456_channelVersion_=t,this.JSC$19454_channelDebug_.info("VER="+this.JSC$19456_channelVersion_));t=q[4];t!=null&&(this.serverVersion_=t,this.JSC$19454_channelDebug_.info("SVER="+this.serverVersion_));q=q[5];q!=null&&typeof q==="number"&&q>0&&(this.backChannelRequestTimeoutMs_=
q*=1.5,this.JSC$19454_channelDebug_.info("backChannelRequestTimeoutMs_="+q));if(q=y.JSC$19435_xmlHttp_){var E=LA(q,"X-Client-Wire-Protocol");E&&(t=this.forwardChannelRequestPool_,!t.requestPool_&&(_.C8(E,"spdy")||_.C8(E,"quic")||_.C8(E,"h2"))&&(t.JSC$19445_maxSize_=t.maxPoolSizeConfigured_,t.requestPool_=new Set,t.JSC$19445_request_&&(HgR(t,t.JSC$19445_request_),t.JSC$19445_request_=null)));this.httpSessionIdParam_&&((q=LA(q,"X-HTTP-Session-Id"))?(this.httpSessionId_=q,_.pr(this.JSC$19454_forwardChannelUri_,
this.httpSessionIdParam_,q)):this.JSC$19454_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$19460_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-y.JSC$19435_requestStartTime_,this.JSC$19454_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));q=y;t=dyL(this,this.JSC$19454_supportsCrossDomainXhrs_?this.JSC$19454_hostPrefix_:null,this.JSC$19454_path_);this.JSC$19454_channelDebug_.debug("GetBackChannelUri: "+
t);this.JSC$19454_backChannelUri_=t;q.initialResponseDecoded_?(this.JSC$19454_channelDebug_.debug("Upgrade the handshake request to a backchannel."),TIw(this.forwardChannelRequestPool_,q),t=q,(E=this.backChannelRequestTimeoutMs_)&&t.setTimeout(E),t.JSC$19435_watchDogTimerId_&&(Gvd(t),$yi(t)),this.JSC$19454_backChannelRequest_=q):lZm(this);this.JSC$19454_outgoingMaps_.length>0&&Og1(this)}else q[0]!="stop"&&q[0]!="close"||Ov(this,7);else this.state_==3&&(q[0]=="stop"||q[0]=="close"?q[0]=="stop"?Ov(this,
7):this.disconnect():q[0]!="noop"&&this.handler_&&this.handler_.JSC$19460_channelHandleArray(q),this.JSC$19454_backChannelRetryCount_=0)}};
var Ov=function(p,y){p.JSC$19454_channelDebug_.info("Error code "+y);if(y==2){var l=(0,_.FZ)(p.testNetworkCallback_,p),q=p.networkTestUrl_,t=!q;q=new _.JO(q||"//www.google.com/images/cleardot.gif");_.l_.location&&_.l_.location.protocol=="http"||_.uR(q,"https");_.GC(q);t?fm9(q.toString(),l):vf7(q.toString(),l)}else TE(2);p.onError_(y)};
YY.prototype.testNetworkCallback_=function(p){p?(this.JSC$19454_channelDebug_.info("Successfully pinged google.com"),TE(2)):(this.JSC$19454_channelDebug_.info("Failed to ping google.com"),TE(1))};
YY.prototype.onError_=function(p){this.JSC$19454_channelDebug_.debug("HttpChannel: error - "+p);this.state_=0;this.handler_&&this.handler_.JSC$19460_channelError(p);zkd(this);ofi(this)};
var zkd=function(p){p.state_=0;p.nonAckedMapsAtChannelClose_=[];if(p.handler_){var y=xyT(p.forwardChannelRequestPool_);if(y.length!=0||p.JSC$19454_outgoingMaps_.length!=0)p.JSC$19454_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+y.length+", outgoing: "+p.JSC$19454_outgoingMaps_.length}),_.pU(p.nonAckedMapsAtChannelClose_,y),_.pU(p.nonAckedMapsAtChannelClose_,p.JSC$19454_outgoingMaps_),p.forwardChannelRequestPool_.JSC$19445_pendingMessages_.length=0,_.og(p.JSC$19454_outgoingMaps_),
p.JSC$19454_outgoingMaps_.length=0;
p.handler_.JSC$19460_channelClosed()}},sam=function(p){if(p.state_==0)return p.nonAckedMapsAtChannelClose_;
var y=[];_.pU(y,xyT(p.forwardChannelRequestPool_));_.pU(y,p.JSC$19454_outgoingMaps_);return y},dyL=function(p,y,l){var q=_.YP(l);
q.JSC$9968_domain_!=""?(y&&_.R2(q,y+"."+q.JSC$9968_domain_),_.WP(q,q.JSC$9968_port_)):(q=_.l_.location,q=sAA(q.protocol,y?y+"."+q.hostname:q.hostname,+q.port,l));y=p.httpSessionIdParam_;l=p.httpSessionId_;y&&l&&_.pr(q,y,l);_.pr(q,"VER",p.JSC$19456_channelVersion_);ID(p,q);return q},jLO=function(p,y,l){if(y&&!p.JSC$19454_supportsCrossDomainXhrs_)throw Error("yk");
y=p.usesFetchStreams_&&!p.JSC$19454_xmlHttpFactory_?new _.Bf(new pa({streamBinaryChunks:l})):new _.Bf(p.JSC$19454_xmlHttpFactory_);y.JSC$9731_withCredentials_=p.JSC$19454_supportsCrossDomainXhrs_;return y};
YY.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var O57=function(){};
_.J=O57.prototype;_.J.JSC$19460_channelOpened=function(){};
_.J.JSC$19460_channelHandleArray=function(){};
_.J.JSC$19460_channelError=function(){};
_.J.JSC$19460_channelClosed=function(){};
_.J.isActive=function(){return!0};
_.J.JSC$19460_badMapError=function(){};var oB6=function(){},yA=function(p,y){_.Fn.call(this);
this.JSC$19463_channel_=new YY(y);this.JSC$19463_url_=p;this.messageUrlParams_=y&&y.messageUrlParams||null;p=y&&y.messageHeaders||null;y&&y.clientProtocolHeaderRequired&&(p?_.Ts.set(p,"X-Client-Protocol","webchannel"):p=_.Ts.create("X-Client-Protocol","webchannel"));this.JSC$19463_channel_.JSC$19454_extraHeaders_=p;p=y&&y.initMessageHeaders||null;y&&y.messageContentType&&(p?_.Ts.set(p,"X-WebChannel-Content-Type",y.messageContentType):p=_.Ts.create("X-WebChannel-Content-Type",y.messageContentType));
y&&y.clientProfile&&(p?_.Ts.set(p,"X-WebChannel-Client-Profile",y.clientProfile):p=_.Ts.create("X-WebChannel-Client-Profile",y.clientProfile));this.JSC$19463_channel_.initHeaders_=p;(p=y&&y.httpHeadersOverwriteParam)&&!_.ej(p)&&(this.JSC$19463_channel_.httpHeadersOverwriteParam_=p);this.supportsCrossDomainXhr_=y&&y.supportsCrossDomainXhr||!1;this.sendRawJson_=y&&y.sendRawJson||!1;(y=y&&y.httpSessionIdParam)&&!_.ej(y)&&(this.JSC$19463_channel_.httpSessionIdParam_=y,_.Ts.containsKey(this.messageUrlParams_,
y)&&_.Ts.remove(this.messageUrlParams_,y));this.channelHandler_=new pb(this)};
_.j6(yA,_.Fn);yA.prototype.open=function(){this.JSC$19463_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19463_channel_.JSC$19454_supportsCrossDomainXhrs_=!0);this.JSC$19463_channel_.connect(this.JSC$19463_url_,this.messageUrlParams_||void 0)};
yA.prototype.close=function(){this.JSC$19463_channel_.disconnect()};
yA.prototype.send=function(p){var y=this.JSC$19463_channel_;if(typeof p==="string"){var l={};l.__data__=p;p=l}else this.sendRawJson_&&(l={},l.__data__=(0,_.xv)(p),p=l);y.JSC$19454_outgoingMaps_.push(new kvV(y.JSC$19454_nextMapId_++,p));y.state_==3&&Og1(y)};
yA.prototype.disposeInternal=function(){this.JSC$19463_channel_.handler_=null;delete this.channelHandler_;this.JSC$19463_channel_.disconnect();delete this.JSC$19463_channel_;yA.superClass_.disposeInternal.call(this)};
var zFm=function(p){pET.call(this);p.__headers__&&(this.headers=p.__headers__,this.statusCode=p.__status__,delete p.__headers__,delete p.__status__);var y=p.__sm__;y?this.data=(this.metadataKey=_.Ts.getAnyKey(y))?_.Ts.get(y,this.metadataKey):y:this.data=p};
_.j6(zFm,pET);var Yx6=function(p){y6R.call(this);this.status=1;this.errorCode=p};
_.j6(Yx6,y6R);var pb=function(p){this.JSC$19470_channel_=p};
_.j6(pb,O57);pb.prototype.JSC$19460_channelOpened=function(){this.JSC$19470_channel_.dispatchEvent("w")};
pb.prototype.JSC$19460_channelHandleArray=function(p){this.JSC$19470_channel_.dispatchEvent(new zFm(p))};
pb.prototype.JSC$19460_channelError=function(p){this.JSC$19470_channel_.dispatchEvent(new Yx6(p))};
pb.prototype.JSC$19460_channelClosed=function(){this.JSC$19470_channel_.dispatchEvent("x")};
var I91=function(p,y){this.transportChannel_=p;this.JSC$19473_channel_=y},p4m=function(p){return sam(p.JSC$19473_channel_).map(function(y){var l=p.transportChannel_;
y=y.map;"__data__"in y?(y=y.__data__,l=l.sendRawJson_?(0,_.Z0$)(y):y):l=y;return l})};var lC=function(p){yi7.dispatchEvent(new lU6(yi7,p))},yi7=new _.Fn,lU6=function(p,y){_.Ku.call(this,"statevent",p);
this.stat=y};
_.A(lU6,_.Ku);var qx=function(p,y,l,q,t){this.JSC$19478_channel_=p;this.JSC$19478_channelDebug_=y;this.sid_=l;this.JSC$19478_rid_=q;this.JSC$19478_retryId_=t||1;this.timeout_=45E3;this.JSC$19478_eventHandler_=new _.W2(this);this.pollingTimer_=new _.RG;this.pollingTimer_.setInterval(250)};
_.J=qx.prototype;_.J.JSC$19480_extraHeaders_=null;_.J.JSC$19480_successful_=!1;_.J.JSC$19480_watchDogTimerId_=null;_.J.JSC$19480_watchDogTimeoutTime_=null;_.J.JSC$19480_requestStartTime_=null;_.J.JSC$19480_type_=null;_.J.JSC$19480_baseUri_=null;_.J.JSC$19480_requestUri_=null;_.J.JSC$19480_postData_=null;_.J.JSC$19480_xmlHttp_=null;_.J.JSC$19480_xmlHttpChunkStart_=0;_.J.trident_=null;_.J.JSC$19480_verb_=null;_.J.JSC$19480_lastError_=null;_.J.JSC$19480_lastStatusCode_=-1;_.J.sendClose_=!0;
_.J.JSC$19480_cancelled_=!1;_.J.JSC$19480_readyStateChangeThrottleMs_=0;_.J.JSC$19480_readyStateChangeThrottle_=null;var q_1=function(p,y){switch(p){case 0:return"Non-200 return code ("+y+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},sB9={},ty1={};
qx.prototype.setTimeout=function(p){this.timeout_=p};
var JiR=function(p,y,l){p.JSC$19480_type_=1;p.JSC$19480_baseUri_=_.GC(y.clone());p.JSC$19480_postData_=l;p.decodeChunks_=!0;E7T(p,null)},cid=function(p,y,l,q,t){p.JSC$19480_type_=1;
p.JSC$19480_baseUri_=_.GC(y.clone());p.JSC$19480_postData_=null;p.decodeChunks_=l;t&&(p.sendClose_=!1);E7T(p,q)},E7T=function(p,y){p.JSC$19480_requestStartTime_=Date.now();
e29(p);p.JSC$19480_requestUri_=p.JSC$19480_baseUri_.clone();Qw(p.JSC$19480_requestUri_,"t",p.JSC$19478_retryId_);p.JSC$19480_xmlHttpChunkStart_=0;p.JSC$19480_xmlHttp_=p.JSC$19478_channel_.JSC$19487_createXhrIo(p.JSC$19478_channel_.JSC$19487_shouldUseSecondaryDomains()?y:null);p.JSC$19480_readyStateChangeThrottleMs_>0&&(p.JSC$19480_readyStateChangeThrottle_=new _.hy((0,_.FZ)(p.JSC$19480_xmlHttpHandler_,p,p.JSC$19480_xmlHttp_),p.JSC$19480_readyStateChangeThrottleMs_));p.JSC$19478_eventHandler_.listen(p.JSC$19480_xmlHttp_,
"readystatechange",p.JSC$19480_readyStateChangeHandler_);y=p.JSC$19480_extraHeaders_?_.Ts.clone(p.JSC$19480_extraHeaders_):{};p.JSC$19480_postData_?(p.JSC$19480_verb_="POST",y["Content-Type"]="application/x-www-form-urlencoded",p.JSC$19480_xmlHttp_.send(p.JSC$19480_requestUri_,p.JSC$19480_verb_,p.JSC$19480_postData_,y)):(p.JSC$19480_verb_="GET",p.sendClose_&&!_.ZY&&(y.Connection="close"),p.JSC$19480_xmlHttp_.send(p.JSC$19480_requestUri_,p.JSC$19480_verb_,null,y));p.JSC$19478_channel_.notifyServerReachabilityEvent(1);
y=p.JSC$19478_channelDebug_;var l=p.JSC$19480_postData_;if(l){var q="";l=l.split("&");for(var t=0;t<l.length;t++){var E=l[t].split("=");if(E.length>1){var e=E[0];E=E[1];var C=e.split("_");q=C.length>=2&&C[1]=="type"?q+(e+"="+E+"&"):q+(e+"=redacted&")}}}else q=null;y.info("XMLHTTP REQ ("+p.JSC$19478_rid_+") [attempt "+p.JSC$19478_retryId_+"]: "+p.JSC$19480_verb_+"\n"+p.JSC$19480_requestUri_+"\n"+q)};
qx.prototype.JSC$19480_readyStateChangeHandler_=function(p){p=p.target;var y=this.JSC$19480_readyStateChangeThrottle_;y&&_.fu(p)==3?(this.JSC$19478_channelDebug_.debug("Throttling readystatechange."),y.fire()):this.JSC$19480_xmlHttpHandler_(p)};
qx.prototype.JSC$19480_xmlHttpHandler_=function(p){try{if(p==this.JSC$19480_xmlHttp_)a:{var y=_.fu(this.JSC$19480_xmlHttp_),l=this.JSC$19480_xmlHttp_.JSC$9731_lastErrorCode_,q=this.JSC$19480_xmlHttp_.getStatus();if(_.ZY&&!_.MY("420+")){if(y<4)break a}else if(y<3||y==3&&!this.JSC$19480_xmlHttp_.getResponseText())break a;this.JSC$19480_cancelled_||y!=4||l==7||(l==8||q<=0?this.JSC$19478_channel_.notifyServerReachabilityEvent(3):this.JSC$19478_channel_.notifyServerReachabilityEvent(2));h2i(this);var t=
this.JSC$19480_xmlHttp_.getStatus();this.JSC$19480_lastStatusCode_=t;var E=this.JSC$19480_xmlHttp_.getResponseText();E||this.JSC$19478_channelDebug_.debug("No response text for uri "+this.JSC$19480_requestUri_+" status "+t);this.JSC$19480_successful_=t==200;this.JSC$19478_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19478_rid_+") [ attempt "+this.JSC$19478_retryId_+"]: "+this.JSC$19480_verb_+"\n"+this.JSC$19480_requestUri_+"\n"+y+" "+t);if(this.JSC$19480_successful_){y==4&&sR(this);if(this.decodeChunks_){for(p=
!0;!this.JSC$19480_cancelled_&&this.JSC$19480_xmlHttpChunkStart_<E.length;){var e=CVR(this,E);if(e==ty1){y==4&&(this.JSC$19480_lastError_=4,lC(15),p=!1);tN(this.JSC$19478_channelDebug_,this.JSC$19478_rid_,null,"[Incomplete Response]");break}else if(e==sB9){this.JSC$19480_lastError_=4;lC(16);tN(this.JSC$19478_channelDebug_,this.JSC$19478_rid_,E,"[Invalid Chunk]");p=!1;break}else tN(this.JSC$19478_channelDebug_,this.JSC$19478_rid_,e,null),uxT(this,e)}y==4&&E.length==0&&(this.JSC$19480_lastError_=1,
lC(17),p=!1);this.JSC$19480_successful_=this.JSC$19480_successful_&&p;p||(tN(this.JSC$19478_channelDebug_,this.JSC$19478_rid_,E,"[Invalid Chunked Response]"),sR(this),R2u(this))}else tN(this.JSC$19478_channelDebug_,this.JSC$19478_rid_,E,null),uxT(this,E);this.JSC$19480_successful_&&!this.JSC$19480_cancelled_&&(y==4?this.JSC$19478_channel_.JSC$19487_onRequestComplete(this):(this.JSC$19480_successful_=!1,e29(this)))}else t==400&&E.indexOf("Unknown SID")>0?(this.JSC$19480_lastError_=3,lC(13),this.JSC$19478_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19478_rid_+")")):(this.JSC$19480_lastError_=0,lC(14),this.JSC$19478_channelDebug_.warning("XMLHTTP Bad status "+t+" ("+this.JSC$19478_rid_+")")),sR(this),R2u(this)}else this.JSC$19478_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(C){this.JSC$19478_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var CVR=function(p,y){var l=p.JSC$19480_xmlHttpChunkStart_,q=y.indexOf("\n",l);if(q==-1)return ty1;l=Number(y.substring(l,q));if(isNaN(l))return sB9;q+=1;if(q+l>y.length)return ty1;y=y.slice(q,q+l);p.JSC$19480_xmlHttpChunkStart_=q+l;return y};
qx.prototype.cancel=function(){this.JSC$19480_cancelled_=!0;sR(this)};
var e29=function(p){p.JSC$19480_watchDogTimeoutTime_=Date.now()+p.timeout_;Wdm(p,p.timeout_)},Wdm=function(p,y){if(p.JSC$19480_watchDogTimerId_!=null)throw Error("xk");
p.JSC$19480_watchDogTimerId_=Op((0,_.FZ)(p.JSC$19480_onWatchDogTimeout_,p),y)},h2i=function(p){p.JSC$19480_watchDogTimerId_&&(_.l_.clearTimeout(p.JSC$19480_watchDogTimerId_),p.JSC$19480_watchDogTimerId_=null)};
qx.prototype.JSC$19480_onWatchDogTimeout_=function(){this.JSC$19480_watchDogTimerId_=null;var p=Date.now();p-this.JSC$19480_watchDogTimeoutTime_>=0?(this.JSC$19478_channelDebug_.info("TIMEOUT: "+this.JSC$19480_requestUri_),this.JSC$19480_type_!=2&&this.JSC$19478_channel_.notifyServerReachabilityEvent(3),sR(this),this.JSC$19480_lastError_=2,lC(18),R2u(this)):(this.JSC$19478_channelDebug_.warning("WatchDog timer called too early"),Wdm(this,this.JSC$19480_watchDogTimeoutTime_-p))};
var R2u=function(p){p.JSC$19478_channel_.JSC$19487_isClosed()||p.JSC$19480_cancelled_||p.JSC$19478_channel_.JSC$19487_onRequestComplete(p)},sR=function(p){h2i(p);
_.er(p.JSC$19480_readyStateChangeThrottle_);p.JSC$19480_readyStateChangeThrottle_=null;p.pollingTimer_.stop();p.JSC$19478_eventHandler_.removeAll();if(p.JSC$19480_xmlHttp_){var y=p.JSC$19480_xmlHttp_;p.JSC$19480_xmlHttp_=null;y.abort();y.dispose()}p.trident_&&(p.trident_=null)};
qx.prototype.getLastError=function(){return this.JSC$19480_lastError_};
var uxT=function(p,y){try{p.JSC$19478_channel_.JSC$19487_onRequestData(p,y),p.JSC$19478_channel_.notifyServerReachabilityEvent(4)}catch(l){}};var tN=function(p,y,l,q){var t=p.info;a:if(l&&l!="y2f%"){try{var E=JSON.parse(l);if(E)for(var e=0;e<E.length;e++)if(Array.isArray(E[e])){var C=E[e];if(!(C.length<2)){var u=C[1];if(Array.isArray(u)&&!(u.length<1)){var a=u[0];if(a!="noop"&&a!="stop")for(var m=1;m<u.length;m++)u[m]=""}}}var U=(0,_.xv)(E);break a}catch(b){p.debug("Exception parsing expected JS array - probably was not JS");U=l;break a}U=void 0}else U=l;t.call(p,"XMLHTTP TEXT ("+y+"): "+U+(q?" "+q:""))};
o1.prototype.debug=function(p){this.info(p)};
o1.prototype.info=function(){};
o1.prototype.warning=function(){};var aUV=function(p,y){this.JSC$19485_channel_=p;this.JSC$19485_channelDebug_=y;this.JSC$19485_parser_=new Dw};
_.J=aUV.prototype;_.J.JSC$19487_extraHeaders_=null;_.J.JSC$19487_request_=null;_.J.receivedIntermediateResult_=!1;_.J.JSC$19487_path_=null;_.J.state_=null;_.J.JSC$19487_lastStatusCode_=-1;_.J.JSC$19487_hostPrefix_=null;_.J.blockedPrefix_=null;
_.J.connect=function(p){this.JSC$19487_path_=p;p=mbV(this.JSC$19485_channel_,this.JSC$19487_path_);lC(3);Date.now();var y=this.JSC$19485_channel_.firstTestResults_;y!=null?(this.JSC$19487_hostPrefix_=y[0],(this.blockedPrefix_=y[1])?(this.state_=1,Ubi(this)):(this.state_=2,$bR(this))):(Qw(p,"MODE","init"),this.JSC$19487_request_=new qx(this,this.JSC$19485_channelDebug_),this.JSC$19487_request_.JSC$19480_extraHeaders_=this.JSC$19487_extraHeaders_,cid(this.JSC$19487_request_,p,!1,null,!0),this.state_=
0)};
var Ubi=function(p){var y=jBm(p.JSC$19485_channel_,p.blockedPrefix_,"/mail/images/cleardot.gif");_.GC(y);NNu(y.toString(),5E3,(0,_.FZ)(p.checkBlockedCallback_,p),3,2E3);p.notifyServerReachabilityEvent(1)};
aUV.prototype.checkBlockedCallback_=function(p){if(p)this.state_=2,$bR(this);else{lC(4);var y=this.JSC$19485_channel_;y.JSC$19488_channelDebug_.debug("Test Connection Blocked");y.JSC$19492_lastStatusCode_=y.connectionTest_.JSC$19487_lastStatusCode_;ER(y,9)}p&&this.notifyServerReachabilityEvent(2)};
var $bR=function(p){p.JSC$19485_channelDebug_.debug("TestConnection: starting stage 2");var y=p.JSC$19485_channel_.secondTestResults_;y!=null?(p.JSC$19485_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+y?"Buffered":"Unbuffered"),lC(5),y?(lC(11),JN(p.JSC$19485_channel_,p,!1)):(lC(12),JN(p.JSC$19485_channel_,p,!0))):(p.JSC$19487_request_=new qx(p,p.JSC$19485_channelDebug_),p.JSC$19487_request_.JSC$19480_extraHeaders_=p.JSC$19487_extraHeaders_,y=bwT(p.JSC$19485_channel_,
p.JSC$19487_hostPrefix_,p.JSC$19487_path_),lC(5),Qw(y,"TYPE","xmlhttp"),cid(p.JSC$19487_request_,y,!1,p.JSC$19487_hostPrefix_,!1))};
_.J=aUV.prototype;_.J.JSC$19487_createXhrIo=function(p){return this.JSC$19485_channel_.JSC$19487_createXhrIo(p)};
_.J.abort=function(){this.JSC$19487_request_&&(this.JSC$19487_request_.cancel(),this.JSC$19487_request_=null);this.JSC$19487_lastStatusCode_=-1};
_.J.JSC$19487_isClosed=function(){return!1};
_.J.JSC$19487_onRequestData=function(p,y){this.JSC$19487_lastStatusCode_=p.JSC$19480_lastStatusCode_;if(this.state_==0)if(this.JSC$19485_channelDebug_.debug("TestConnection: Got data for stage 1"),y){try{var l=this.JSC$19485_parser_.parse(y)}catch(q){n7i(this.JSC$19485_channel_,this);return}this.JSC$19487_hostPrefix_=l[0];this.blockedPrefix_=l[1]}else this.JSC$19485_channelDebug_.debug("TestConnection: Null responseText"),n7i(this.JSC$19485_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(lC(7),Date.now()):y=="11111"?(lC(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19487_lastStatusCode_=200,this.JSC$19487_request_.cancel(),this.JSC$19485_channelDebug_.debug("Test connection succeeded; using streaming connection"),lC(12),JN(this.JSC$19485_channel_,this,!0)):(lC(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.J.JSC$19487_onRequestComplete=function(){this.JSC$19487_lastStatusCode_=this.JSC$19487_request_.JSC$19480_lastStatusCode_;this.JSC$19487_request_.JSC$19480_successful_?this.state_==0?(this.JSC$19485_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,Ubi(this)):(this.state_=2,$bR(this))):this.state_==2&&(this.JSC$19485_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19485_channelDebug_.debug("Test connection succeeded; using streaming connection"),
lC(12),JN(this.JSC$19485_channel_,this,!0)):(this.JSC$19485_channelDebug_.debug("Test connection failed; not using streaming"),lC(11),JN(this.JSC$19485_channel_,this,!1))):(this.JSC$19485_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?lC(9):this.state_==2&&lC(10),n7i(this.JSC$19485_channel_,this,this.JSC$19487_request_.getLastError()))};
_.J.JSC$19487_shouldUseSecondaryDomains=function(){return this.JSC$19485_channel_.JSC$19487_shouldUseSecondaryDomains()};
_.J.isActive=function(){return this.JSC$19485_channel_.isActive()};
_.J.notifyServerReachabilityEvent=function(p){this.JSC$19485_channel_.notifyServerReachabilityEvent(p)};var cb=function(p,y,l){this.state_=1;this.JSC$19488_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19488_channelDebug_=new o1;this.JSC$19488_parser_=new Dw;this.firstTestResults_=p||null;this.secondTestResults_=y!=null?y:null;this.asyncTest_=l||!1},G_6=function(p,y){this.JSC$19490_mapId=p;
this.map=y;this.context=null};
_.J=cb.prototype;_.J.JSC$19492_extraHeaders_=null;_.J.JSC$19492_extraParams_=null;_.J.forwardChannelRequest_=null;_.J.JSC$19492_backChannelRequest_=null;_.J.JSC$19492_path_=null;_.J.JSC$19492_forwardChannelUri_=null;_.J.JSC$19492_backChannelUri_=null;_.J.JSC$19492_hostPrefix_=null;_.J.JSC$19492_nextRid_=0;_.J.JSC$19492_nextMapId_=0;_.J.handler_=null;_.J.JSC$19492_forwardChannelTimerId_=null;_.J.JSC$19492_backChannelTimerId_=null;_.J.JSC$19492_deadBackChannelTimerId_=null;_.J.connectionTest_=null;
_.J.useChunked_=null;_.J.JSC$19492_lastArrayId_=-1;_.J.JSC$19492_lastPostResponseArrayId_=-1;_.J.JSC$19492_lastStatusCode_=-1;_.J.JSC$19492_forwardChannelRetryCount_=0;_.J.JSC$19492_backChannelRetryCount_=0;_.J.JSC$19492_channelVersion_=8;var PVu={OK:0,REQUEST_FAILED:2,LOGGED_OUT:4,NO_DATA:5,UNKNOWN_SESSION_ID:6,STOP:7,NETWORK:8,BLOCKED:9,BAD_DATA:10,BAD_RESPONSE:11,ACTIVE_X_BLOCKED:12},Ai6=function(p,y,l,q){_.Ku.call(this,"timingevent",p);this.size=y;this.rtt=l;this.retries=q};
_.j6(Ai6,_.Ku);var Zwd=function(p){_.Ku.call(this,"serverreachability",p)};
_.j6(Zwd,_.Ku);cb.prototype.connect=function(p,y,l,q,t){this.JSC$19488_channelDebug_.debug("connect()");lC(0);this.JSC$19492_path_=y;this.JSC$19492_extraParams_=l||{};q&&t!==void 0&&(this.JSC$19492_extraParams_.OSID=q,this.JSC$19492_extraParams_.OAID=t);this.asyncTest_?(Op((0,_.FZ)(this.connectTest_,this,p),100),My9(this)):this.connectTest_(p)};
cb.prototype.disconnect=function(){this.JSC$19488_channelDebug_.debug("disconnect()");Vyd(this);if(this.state_==3){var p=this.JSC$19492_nextRid_++,y=this.JSC$19492_forwardChannelUri_.clone();_.pr(y,"SID",this.sid_);_.pr(y,"RID",p);_.pr(y,"TYPE","terminate");eu(this,y);p=new qx(this,this.JSC$19488_channelDebug_,this.sid_,p);p.JSC$19480_type_=2;p.JSC$19480_baseUri_=_.GC(y.clone());(new Image).src=p.JSC$19480_baseUri_.toString();p.JSC$19480_requestStartTime_=Date.now();e29(p)}g79(this)};
cb.prototype.connectTest_=function(p){this.JSC$19488_channelDebug_.debug("connectTest_()");this.connectionTest_=new aUV(this,this.JSC$19488_channelDebug_);this.connectionTest_.JSC$19487_extraHeaders_=this.JSC$19492_extraHeaders_;this.connectionTest_.JSC$19485_parser_=this.JSC$19488_parser_;this.connectionTest_.connect(p)};
var My9=function(p){p.JSC$19488_channelDebug_.debug("connectChannel_()");p.JSC$19492_ensureInState_(1,0);p.JSC$19492_forwardChannelUri_=mbV(p,p.JSC$19492_path_);QB6(p)},Vyd=function(p){p.connectionTest_&&(p.connectionTest_.abort(),p.connectionTest_=null);
p.JSC$19492_backChannelRequest_&&(p.JSC$19492_backChannelRequest_.cancel(),p.JSC$19492_backChannelRequest_=null);p.JSC$19492_backChannelTimerId_&&(_.l_.clearTimeout(p.JSC$19492_backChannelTimerId_),p.JSC$19492_backChannelTimerId_=null);Kd1(p);p.forwardChannelRequest_&&(p.forwardChannelRequest_.cancel(),p.forwardChannelRequest_=null);p.JSC$19492_forwardChannelTimerId_&&(_.l_.clearTimeout(p.JSC$19492_forwardChannelTimerId_),p.JSC$19492_forwardChannelTimerId_=null)},w46=function(p,y){if(p.state_==0)throw Error("Ak");
p.JSC$19488_outgoingMaps_.length==1E3&&p.JSC$19488_parser_.stringify(y);p.JSC$19488_outgoingMaps_.push(new G_6(p.JSC$19492_nextMapId_++,y));p.state_!=2&&p.state_!=3||QB6(p)};
cb.prototype.JSC$19487_isClosed=function(){return this.state_==0};
cb.prototype.getState=function(){return this.state_};
var QB6=function(p){p.forwardChannelRequest_||p.JSC$19492_forwardChannelTimerId_||(p.JSC$19492_forwardChannelTimerId_=Op((0,_.FZ)(p.JSC$19492_onStartForwardChannelTimer_,p),0),p.JSC$19492_forwardChannelRetryCount_=0)};
cb.prototype.JSC$19492_onStartForwardChannelTimer_=function(p){this.JSC$19492_forwardChannelTimerId_=null;iwi(this,p)};
var iwi=function(p,y){p.JSC$19488_channelDebug_.debug("startForwardChannel_");if(p.state_==1){if(!y){p.JSC$19488_channelDebug_.debug("open_()");p.JSC$19492_nextRid_=Math.floor(Math.random()*1E5);y=p.JSC$19492_nextRid_++;var l=new qx(p,p.JSC$19488_channelDebug_,"",y);l.JSC$19480_extraHeaders_=p.JSC$19492_extraHeaders_;var q=rid(p),t=p.JSC$19492_forwardChannelUri_.clone();_.pr(t,"RID",y);_.pr(t,"CVER","1");eu(p,t);JiR(l,t,q);p.forwardChannelRequest_=l;p.state_=2}}else p.state_==3&&(y?S_R(p,y):p.JSC$19488_outgoingMaps_.length==
0?p.JSC$19488_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):p.forwardChannelRequest_||(S_R(p),p.JSC$19488_channelDebug_.debug("startForwardChannel_ finished, sent request")))},S_R=function(p,y){if(y)if(p.JSC$19492_channelVersion_>6){p.JSC$19488_outgoingMaps_=p.pendingMaps_.concat(p.JSC$19488_outgoingMaps_);
p.pendingMaps_.length=0;var l=p.JSC$19492_nextRid_-1;y=rid(p)}else l=y.JSC$19478_rid_,y=y.JSC$19480_postData_;else l=p.JSC$19492_nextRid_++,y=rid(p);var q=p.JSC$19492_forwardChannelUri_.clone();_.pr(q,"SID",p.sid_);_.pr(q,"RID",l);_.pr(q,"AID",p.JSC$19492_lastArrayId_);eu(p,q);l=new qx(p,p.JSC$19488_channelDebug_,p.sid_,l,p.JSC$19492_forwardChannelRetryCount_+1);l.JSC$19480_extraHeaders_=p.JSC$19492_extraHeaders_;l.setTimeout(1E4+Math.round(1E4*Math.random()));p.forwardChannelRequest_=l;JiR(l,q,y)},
eu=function(p,y){p.handler_&&(p=p.handler_.JSC$19499_getAdditionalParams())&&_.Ts.forEach(p,function(l,q){_.pr(y,q,l)})},rid=function(p){var y=Math.min(p.JSC$19488_outgoingMaps_.length,1E3),l=["count="+y];
if(p.JSC$19492_channelVersion_>6&&y>0){var q=p.JSC$19488_outgoingMaps_[0].JSC$19490_mapId;l.push("ofs="+q)}else q=0;for(var t={},E=0;E<y;t={mapId$jscomp$3:void 0},E++){t.mapId$jscomp$3=p.JSC$19488_outgoingMaps_[E].JSC$19490_mapId;var e=p.JSC$19488_outgoingMaps_[E].map;t.mapId$jscomp$3=p.JSC$19492_channelVersion_<=6?E:t.mapId$jscomp$3-q;try{_.Ts.forEach(e,function(C){return function(u,a){l.push("req"+C.mapId$jscomp$3+"_"+a+"="+encodeURIComponent(u))}}(t))}catch(C){l.push("req"+t.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}p.pendingMaps_=p.pendingMaps_.concat(p.JSC$19488_outgoingMaps_.splice(0,y));
return l.join("&")},FdR=function(p){p.JSC$19492_backChannelRequest_||p.JSC$19492_backChannelTimerId_||(p.JSC$19492_backChannelAttemptId_=1,p.JSC$19492_backChannelTimerId_=Op((0,_.FZ)(p.JSC$19492_onStartBackChannelTimer_,p),0),p.JSC$19492_backChannelRetryCount_=0)},k_m=function(p){if(p.JSC$19492_backChannelRequest_||p.JSC$19492_backChannelTimerId_||p.JSC$19492_backChannelRetryCount_>=3)return!1;
p.JSC$19488_channelDebug_.debug("Going to retry GET");p.JSC$19492_backChannelAttemptId_++;p.JSC$19492_backChannelTimerId_=Op((0,_.FZ)(p.JSC$19492_onStartBackChannelTimer_,p),Ld9(p,p.JSC$19492_backChannelRetryCount_));p.JSC$19492_backChannelRetryCount_++;return!0};
cb.prototype.JSC$19492_onStartBackChannelTimer_=function(){this.JSC$19492_backChannelTimerId_=null;this.JSC$19488_channelDebug_.debug("Creating new HttpRequest");this.JSC$19492_backChannelRequest_=new qx(this,this.JSC$19488_channelDebug_,this.sid_,"rpc",this.JSC$19492_backChannelAttemptId_);this.JSC$19492_backChannelRequest_.JSC$19480_extraHeaders_=this.JSC$19492_extraHeaders_;this.JSC$19492_backChannelRequest_.JSC$19480_readyStateChangeThrottleMs_=0;var p=this.JSC$19492_backChannelUri_.clone();_.pr(p,
"RID","rpc");_.pr(p,"SID",this.sid_);_.pr(p,"CI",this.useChunked_?"0":"1");_.pr(p,"AID",this.JSC$19492_lastArrayId_);eu(this,p);_.pr(p,"TYPE","xmlhttp");cid(this.JSC$19492_backChannelRequest_,p,!0,this.JSC$19492_hostPrefix_,!1);this.JSC$19488_channelDebug_.debug("New Request created")};
var JN=function(p,y,l){p.JSC$19488_channelDebug_.debug("Test Connection Finished");p.useChunked_=p.secondTestResults_==null?l:!p.secondTestResults_;p.JSC$19492_lastStatusCode_=y.JSC$19487_lastStatusCode_;p.asyncTest_||My9(p)},n7i=function(p,y){p.JSC$19488_channelDebug_.debug("Test Connection Failed");
p.JSC$19492_lastStatusCode_=y.JSC$19487_lastStatusCode_;ER(p,2)};
cb.prototype.JSC$19487_onRequestData=function(p,y){if(this.state_!=0&&(this.JSC$19492_backChannelRequest_==p||this.forwardChannelRequest_==p))if(this.JSC$19492_lastStatusCode_=p.JSC$19480_lastStatusCode_,this.forwardChannelRequest_==p&&this.state_==3)if(this.JSC$19492_channelVersion_>7){try{var l=this.JSC$19488_parser_.parse(y)}catch(q){l=null}if(Array.isArray(l)&&l.length==3)if(y=l,y[0]==0)a:if(this.JSC$19488_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19492_backChannelTimerId_)this.JSC$19488_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19492_backChannelRequest_)if(this.JSC$19492_backChannelRequest_.JSC$19480_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19480_requestStartTime_)Kd1(this),this.JSC$19492_backChannelRequest_.cancel(),this.JSC$19492_backChannelRequest_=null;else break a;else this.JSC$19488_channelDebug_.warning("We do not have a BackChannel established");k_m(this);lC(19)}else this.JSC$19492_lastPostResponseArrayId_=y[1],p=this.JSC$19492_lastPostResponseArrayId_-this.JSC$19492_lastArrayId_,0<
p&&(y=y[2],this.JSC$19488_channelDebug_.debug(y+" bytes (in "+p+" arrays) are outstanding on the BackChannel"),y<37500&&this.useChunked_&&this.JSC$19492_backChannelRetryCount_==0&&!this.JSC$19492_deadBackChannelTimerId_&&(this.JSC$19492_deadBackChannelTimerId_=Op((0,_.FZ)(this.JSC$19492_onBackChannelDead_,this),6E3)));else this.JSC$19488_channelDebug_.debug("Bad POST response data returned"),ER(this,11)}else y!="y2f%"&&(this.JSC$19488_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
ER(this,11));else this.JSC$19492_backChannelRequest_==p&&Kd1(this),_.ej(y)||(p=this.JSC$19488_parser_.parse(y),this.onInput_(p))};
cb.prototype.JSC$19492_onBackChannelDead_=function(){this.JSC$19492_deadBackChannelTimerId_!=null&&(this.JSC$19492_deadBackChannelTimerId_=null,this.JSC$19492_backChannelRequest_.cancel(),this.JSC$19492_backChannelRequest_=null,k_m(this),lC(20))};
var Kd1=function(p){p.JSC$19492_deadBackChannelTimerId_!=null&&(_.l_.clearTimeout(p.JSC$19492_deadBackChannelTimerId_),p.JSC$19492_deadBackChannelTimerId_=null)};
cb.prototype.JSC$19487_onRequestComplete=function(p){this.JSC$19488_channelDebug_.debug("Request complete");if(this.JSC$19492_backChannelRequest_==p){Kd1(this);this.JSC$19492_backChannelRequest_=null;var y=2}else if(this.forwardChannelRequest_==p)this.forwardChannelRequest_=null,y=1;else return;this.JSC$19492_lastStatusCode_=p.JSC$19480_lastStatusCode_;if(this.state_!=0)if(p.JSC$19480_successful_)if(y==1){y=p.JSC$19480_postData_?p.JSC$19480_postData_.length:0;p=Date.now()-p.JSC$19480_requestStartTime_;
var l=yi7;l.dispatchEvent(new Ai6(l,y,p,this.JSC$19492_forwardChannelRetryCount_));QB6(this);this.handler_&&this.handler_.JSC$19499_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else FdR(this);else{l=p.getLastError();if(l==3||l==7||l==0&&this.JSC$19492_lastStatusCode_>0)this.JSC$19488_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19488_channelDebug_.debug("Maybe retrying, last error: "+q_1(l,this.JSC$19492_lastStatusCode_));var q;if(q=y==1)this.forwardChannelRequest_||
this.JSC$19492_forwardChannelTimerId_||this.state_==1||this.JSC$19492_forwardChannelRetryCount_>=2?q=!1:(this.JSC$19488_channelDebug_.debug("Going to retry POST"),this.JSC$19492_forwardChannelTimerId_=Op((0,_.FZ)(this.JSC$19492_onStartForwardChannelTimer_,this,p),Ld9(this,this.JSC$19492_forwardChannelRetryCount_)),this.JSC$19492_forwardChannelRetryCount_++,q=!0);if(q||y==2&&k_m(this))return;this.JSC$19488_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19488_channelDebug_.debug("Error: HTTP request failed");
switch(l){case 1:ER(this,5);break;case 4:ER(this,10);break;case 3:ER(this,6);break;case 7:ER(this,12);break;default:ER(this,2)}}};
var Ld9=function(p,y){var l=5E3+Math.floor(Math.random()*1E4);p.isActive()||(p.JSC$19488_channelDebug_.debug("Inactive channel"),l*=2);return l*y};
cb.prototype.onInput_=function(p){for(var y=0;y<p.length;y++){var l=p[y];this.JSC$19492_lastArrayId_=l[0];l=l[1];this.state_==2?l[0]=="c"?(this.sid_=l[1],this.JSC$19492_hostPrefix_=l[2],l=l[3],l!=null?this.JSC$19492_channelVersion_=l:this.JSC$19492_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19499_channelOpened(),this.JSC$19492_backChannelUri_=bwT(this,this.JSC$19492_hostPrefix_,this.JSC$19492_path_),FdR(this)):l[0]=="stop"&&ER(this,7):this.state_==3&&(l[0]=="stop"?ER(this,7):
l[0]!="noop"&&this.handler_&&this.handler_.JSC$19499_channelHandleArray(l),this.JSC$19492_backChannelRetryCount_=0)}};
cb.prototype.JSC$19492_ensureInState_=function(p){if(!_.Tl(arguments,this.state_))throw Error("Bk`"+this.state_);};
var ER=function(p,y){p.JSC$19488_channelDebug_.info("Error code "+y);if(y==2||y==9){var l=null;p.handler_&&(l=null);var q=(0,_.FZ)(p.testGoogleComCallback_,p);l||(l=new _.JO("//www.google.com/images/cleardot.gif"),_.GC(l));kUm(l.toString(),1E4,q)}else lC(2);p.onError_(y)};
cb.prototype.testGoogleComCallback_=function(p){p?(this.JSC$19488_channelDebug_.info("Successfully pinged google.com"),lC(2)):(this.JSC$19488_channelDebug_.info("Failed to ping google.com"),lC(1),this.onError_(8))};
cb.prototype.onError_=function(p){this.JSC$19488_channelDebug_.debug("HttpChannel: error - "+p);this.state_=0;this.handler_&&this.handler_.JSC$19499_channelError(p);g79(this);Vyd(this)};
var g79=function(p){p.state_=0;p.JSC$19492_lastStatusCode_=-1;if(p.handler_)if(p.pendingMaps_.length==0&&p.JSC$19488_outgoingMaps_.length==0)p.handler_.JSC$19499_channelClosed();else{p.JSC$19488_channelDebug_.debug("Number of undelivered maps, pending: "+p.pendingMaps_.length+", outgoing: "+p.JSC$19488_outgoingMaps_.length);var y=_.og(p.pendingMaps_),l=_.og(p.JSC$19488_outgoingMaps_);p.pendingMaps_.length=0;p.JSC$19488_outgoingMaps_.length=0;p.handler_.JSC$19499_channelClosed(y,l)}},mbV=function(p,
y){y=jBm(p,null,y);
p.JSC$19488_channelDebug_.debug("GetForwardChannelUri: "+y);return y},bwT=function(p,y,l){y=jBm(p,p.JSC$19487_shouldUseSecondaryDomains()?y:null,l);
p.JSC$19488_channelDebug_.debug("GetBackChannelUri: "+y);return y},jBm=function(p,y,l){var q=_.YP(l);
if(q.JSC$9968_domain_!="")y&&_.R2(q,y+"."+q.JSC$9968_domain_),_.WP(q,q.JSC$9968_port_);else{var t=window.location;q=sAA(t.protocol,y?y+"."+t.hostname:t.hostname,+t.port,l)}p.JSC$19492_extraParams_&&_.Ts.forEach(p.JSC$19492_extraParams_,function(E,e){_.pr(q,e,E)});
_.pr(q,"VER",p.JSC$19492_channelVersion_);eu(p,q);return q};
cb.prototype.JSC$19487_createXhrIo=function(p){if(p)throw Error("yk");p=new _.Bf;p.JSC$9731_withCredentials_=!1;return p};
cb.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
cb.prototype.notifyServerReachabilityEvent=function(p){var y=yi7;y.dispatchEvent(new Zwd(y,p))};
cb.prototype.JSC$19487_shouldUseSecondaryDomains=function(){return!1};
new hEi;var Nz6=function(){};
_.J=Nz6.prototype;_.J.JSC$19499_channelOpened=function(){};
_.J.JSC$19499_channelHandleArray=function(){};
_.J.JSC$19499_channelSuccess=function(){};
_.J.JSC$19499_channelError=function(){};
_.J.JSC$19499_channelClosed=function(){};
_.J.JSC$19499_getAdditionalParams=function(){return{}};
_.J.isActive=function(){return!0};var DbO=function(p){p.front_.length===0&&(p.front_=p.back_,p.front_.reverse(),p.back_=[])};
_.J=HW7.prototype;_.J.enqueue=function(p){this.back_.push(p)};
_.J.peek=function(){DbO(this);return _.Fo(this.front_)};
_.J.getCount=function(){return this.front_.length+this.back_.length};
_.J.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.J.clear=function(){this.front_=[];this.back_=[]};
_.J.contains=function(p){return _.Tl(this.front_,p)||_.Tl(this.back_,p)};
_.J.remove=function(p){var y=this.front_;var l=Array.prototype.lastIndexOf.call(y,p,y.length-1);l>=0?(_.dm(y,l),y=!0):y=!1;return y||_.Oc(this.back_,p)};
_.J.getValues=function(){for(var p=[],y=this.front_.length-1;y>=0;--y)p.push(this.front_[y]);y=this.back_.length;for(var l=0;l<y;++l)p.push(this.back_[l]);return p};var hN=function(p){this.JSC$19503_map_=new _.Ag;this.size=0;p&&this.addAll(p)},Hwd=function(p){var y=typeof p;
return y=="object"&&p||y=="function"?"o"+_.qO(p):y.charAt(0)+p};
_.J=hN.prototype;_.J.getCount=function(){return this.JSC$19503_map_.size};
_.J.add=function(p){this.JSC$19503_map_.set(Hwd(p),p);this.size=this.JSC$19503_map_.size};
_.J.addAll=function(p){p=_.C2(p);for(var y=p.length,l=0;l<y;l++)this.add(p[l]);this.size=this.JSC$19503_map_.size};
_.J.removeAll=function(p){p=_.C2(p);for(var y=p.length,l=0;l<y;l++)this.remove(p[l]);this.size=this.JSC$19503_map_.size};
_.J.delete=function(p){p=this.JSC$19503_map_.remove(Hwd(p));this.size=this.JSC$19503_map_.size;return p};
_.J.remove=function(p){return this.delete(p)};
_.J.clear=function(){this.JSC$19503_map_.clear();this.size=0};
_.J.isEmpty=function(){return this.JSC$19503_map_.size===0};
_.J.has=function(p){return this.JSC$19503_map_.containsKey(Hwd(p))};
_.J.contains=function(p){return this.JSC$19503_map_.containsKey(Hwd(p))};
_.J.getValues=function(){return this.JSC$19503_map_.getValues()};
_.J.values=function(){return this.JSC$19503_map_.values()};
_.J.clone=function(){return new hN(this)};
_.J.equals=function(p){return this.getCount()==lQw(p)&&Tz6(this,p)};
var Tz6=function(p,y){var l=lQw(y);if(p.getCount()>l)return!1;!(y instanceof hN)&&l>5&&(y=new hN(y));return qPL(p,function(q){var t=y;return t.contains&&typeof t.contains=="function"?t.contains(q):t.containsValue&&typeof t.containsValue=="function"?t.containsValue(q):_.zl(t)||typeof t==="string"?_.Tl(t,q):_.Ts.containsValue(t,q)})};
hN.prototype.__iterator__=function(){return this.JSC$19503_map_.__iterator__(!1)};
hN.prototype[Symbol.iterator]=function(){return this.values()};var xbO={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(p){return(this._clampValue(p)-this.min)/(this.max-this.min)},
_clampValue:function(p){return Math.min(this.max,Math.max(this.min,this._calcStep(p)))},
_calcStep:function(p){p=parseFloat(p);if(!this.step)return p;p=Math.round((p-this.min)/this.step);return this.step<1?p/(1/this.step)+this.min:p*this.step+this.min},
_validateValue:function(){var p=this._clampValue(this.value);this.value=this.oldValue=isNaN(p)?this.oldValue:p;return this.value!==p},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var Bzm;var fUd;_.fv({_template:function(){if(fUd!==void 0)return fUd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-drawer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_drawer.tp.yt.app.drawer.css.js--\x3e<div id="scrim" on-click="close" class="style-scope tp-yt-app-drawer"></div>\n\n\n<div id="contentContainer" opened$="[[opened]]" persistent$="[[persistent]]" position$="[[position]]" swipe-open$="[[swipeOpen]]" class="style-scope tp-yt-app-drawer">\n  <slot class="style-scope tp-yt-app-drawer"></slot>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;Bzm===void 0&&(Bzm=document.createElement("template"));var q=Bzm;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return fUd=p},
is:"tp-yt-app-drawer",properties:{opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},persistent:{type:Boolean,value:!1,reflectToAttribute:!0},transitionDuration:{type:Number,value:200},align:{type:String,value:"left"},position:{type:String,readOnly:!0,reflectToAttribute:!0},swipeOpen:{type:Boolean,value:!1,reflectToAttribute:!0},noFocusTrap:{type:Boolean,value:!1},disableSwipe:{type:Boolean,value:!1}},observers:["resetLayout(position, isAttached)","_resetPosition(align, isAttached)","_styleTransitionDuration(transitionDuration)",
"_openedPersistentChanged(opened, persistent)"],_translateOffset:0,_trackDetails:null,_drawerState:0,_boundEscKeydownHandler:null,_firstTabStop:null,_lastTabStop:null,attached:function(){_.th(this,function(){this._boundEscKeydownHandler=this._escKeydownHandler.bind(this);this.addEventListener("keydown",this._tabKeydownHandler.bind(this));this.listen(this,"track","_track");this.setScrollDirection("y")});
this.fire("app-reset-layout")},
detached:function(){document.removeEventListener("keydown",this._boundEscKeydownHandler)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
toggle:function(){this.opened=!this.opened},
getWidth:function(){return this._savedWidth||this.$.contentContainer.offsetWidth},
_isRTL:function(){return window.getComputedStyle(this).direction==="rtl"},
_resetPosition:function(){switch(this.align){case "start":this._setPosition(this._isRTL()?"right":"left");return;case "end":this._setPosition(this._isRTL()?"left":"right");return}this._setPosition(this.align)},
_escKeydownHandler:function(p){p.keyCode===27&&(p.preventDefault(),this.close())},
_track:function(p){if(!this.persistent&&!this.disableSwipe)switch(p.preventDefault(),p.detail.state){case "start":this._trackStart(p);break;case "track":this._trackMove(p);break;case "end":this._trackEnd(p)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var p=this.$.contentContainer.getBoundingClientRect();this._savedWidth=p.width;this._translateOffset=this.position==="left"?p.left:p.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(p){this._trackDetails&&(this._translateDrawer(p.detail.dx+this._translateOffset),this._trackDetails.push({dx:p.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(p){if(this._trackDetails){var y=p.detail.dx+this._translateOffset,l=this.getWidth();y=this.position==="left"?y>=0||y<=-l:y<=0||y>=l;if(!y){var q=this._trackDetails;this._trackDetails=null;this._flingDrawer(p,q);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}l/=2;p.detail.dx<-l?this.opened=this.position==="right":p.detail.dx>l&&(this.opened=this.position==="left");y?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(p,y){for(var l=Date.now(),q=l-100,t,E=0,e=y.length-1;E<=e;){var C=E+e>>1,u=y[C];u.timeStamp>=q?(t=u,e=C-1):E=C+1}return t?(p.detail.dx-t.dx)/(l-t.timeStamp||1):0},
_flingDrawer:function(p,y){y=this._calculateVelocity(p,y);if(!(Math.abs(y)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;p=p.detail.dx+this._translateOffset;var l=this.getWidth(),q=this.position==="left",t=y>0;t?(y=Math.max(y,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(y=Math.min(y,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");y=this._FLING_INITIAL_SLOPE*(!t&&q?-(p+l):t&&!q?l-p:-p)/y;this._styleTransitionDuration(y);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,y)}},
_styleTransitionDuration:function(p){this.style.transitionDuration=p+"ms";this.$.contentContainer.style.transitionDuration=p+"ms";this.$.scrim.style.transitionDuration=p+"ms"},
_styleTransitionTimingFunction:function(p){this.$.contentContainer.style.transitionTimingFunction=p;this.$.scrim.style.transitionTimingFunction=p},
_translateDrawer:function(p){var y=this.getWidth();this.position==="left"?(p=Math.max(-y,Math.min(p,0)),this.$.scrim.style.opacity=1+p/y):(p=Math.max(0,Math.min(p,y)),this.$.scrim.style.opacity=1-p/y);this.translate3d(p+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var p=this._drawerState;p===this._DRAWER_STATE.FLINGING&&(this._styleTransitionDuration(this.transitionDuration),this._styleTransitionTimingFunction(""),this.style.visibility="");this._savedWidth=null;this._drawerState=this.opened?this.persistent?this._DRAWER_STATE.OPENED_PERSISTENT:this._DRAWER_STATE.OPENED:this._DRAWER_STATE.CLOSED;p!==this._drawerState&&(this._drawerState===this._DRAWER_STATE.OPENED?(this._setKeyboardFocusTrap(),document.addEventListener("keydown",
this._boundEscKeydownHandler),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",this._boundEscKeydownHandler),document.body.style.overflow=""),p!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var p=_.FK(this).querySelectorAll('a[href]:not([tabindex="-1"]),area[href]:not([tabindex="-1"]),input:not([disabled]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),iframe:not([tabindex="-1"]),[tabindex]:not([tabindex="-1"]),[contentEditable=true]:not([tabindex="-1"])');p.length>0?(this._firstTabStop=p[0],this._lastTabStop=p[p.length-1]):
this._lastTabStop=this._firstTabStop=null;(p=this.getAttribute("tabindex"))&&parseInt(p,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(p){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||p.keyCode!==9||(p.shiftKey?this._firstTabStop&&_.FK(p).localTarget===this._firstTabStop&&(p.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.FK(p).localTarget===this._lastTabStop&&(p.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(p,y){this.toggleClass("visible",p&&!y,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 v7d;var X4R;_.fv({_template:function(){if(X4R!==void 0)return X4R;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_progress.tp.yt.paper.progress.css.js--\x3e<div id="progressContainer" class="style-scope tp-yt-paper-progress">\n  <div id="secondaryProgress" hidden$="[[_hideSecondaryProgress(secondaryRatio)]]" class="style-scope tp-yt-paper-progress"></div>\n  <div id="primaryProgress" class="style-scope tp-yt-paper-progress"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;v7d===void 0&&(v7d=document.createElement("template"));var q=v7d;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return X4R=p},
is:"tp-yt-paper-progress",behaviors:[xbO],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(p){this.toggleClass("indeterminate",p,this.$.primaryProgress)},
_transformProgress:function(p,y){p.style.transform=p.style.webkitTransform="scaleX("+y/100+")"},
_mainRatioChanged:function(p){this._transformProgress(this.$.primaryProgress,p)},
_progressChanged:function(p,y,l,q,t){p=this._clampValue(p);y=this._clampValue(y);var E=this._calcRatio(p)*100,e=this._calcRatio(y)*100;this._setSecondaryRatio(E);this._transformProgress(this.$.secondaryProgress,E);this._transformProgress(this.$.primaryProgress,e);this.secondaryProgress=p;t?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",y);this.setAttribute("aria-valuemin",l);this.setAttribute("aria-valuemax",q)},
_disabledChanged:function(p){this.setAttribute("aria-disabled",p?"true":"false")},
_hideSecondaryProgress:function(p){return p===0}});var dbi;var Ow6;var o7w=function(){};
_.J=o7w.prototype;_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._buttonStateChanged=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._noinkChanged=function(){};
_.J._calcRatio=function(){};
_.J._clampValue=function(){};
_.J._calcStep=function(){};
_.J._validateValue=function(){};
_.J._update=function(){};
_.J._setImmediateValue=function(){};
_.J._setExpand=function(){};
_.J._setDragging=function(){};
_.J._setTransiting=function(){};
_.J._setMarkers=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
_.J._setRatio=function(){};
o7w=_.fv({_template:function(){if(Ow6!==void 0)return Ow6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-slider--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_slider.tp.yt.paper.slider.css.js--\x3e<div id="sliderContainer" class$="[[_getClassNames(disabled, pin, snaps, immediateValue, min, expand, dragging, transiting, editable)]] style-scope tp-yt-paper-slider">\n  <div class="bar-container style-scope tp-yt-paper-slider">\n    <tp-yt-paper-progress disabled$="[[disabled]]" id="sliderBar" aria-hidden="true" min="[[min]]" max="[[max]]" step="[[step]]" value="[[immediateValue]]" secondary-progress="[[secondaryProgress]]" on-down="_bardown" on-up="_resetKnob" on-track="_bartrack" on-tap="_barclick" class="style-scope tp-yt-paper-slider">\n    </tp-yt-paper-progress>\n  </div>\n\n  <template is="dom-if" if="[[snaps]]" class="style-scope tp-yt-paper-slider">\n    <div class="slider-markers style-scope tp-yt-paper-slider">\n      <template is="dom-repeat" items="[[markers]]" class="style-scope tp-yt-paper-slider">\n        <div class="slider-marker style-scope tp-yt-paper-slider"></div>\n      </template>\n    </div>\n  </template>\n\n  <div id="sliderKnobContainer" class="slider-knob-container style-scope tp-yt-paper-slider">\n    <div id="sliderKnob" class="slider-knob style-scope tp-yt-paper-slider" on-down="_knobdown" on-up="_resetKnob" on-track="_onTrack" on-transitionend="_knobTransitionEnd">\n      <div class="slider-knob-inner style-scope tp-yt-paper-slider" value$="[[immediateValue]]"></div>\n    </div>\n  </div>\n</div>\n\n<template is="dom-if" if="[[editable]]" class="style-scope tp-yt-paper-slider">\n  <tp-yt-paper-input id="input" type="number" step="[[step]]" min="[[min]]" max="[[max]]" class="slider-input style-scope tp-yt-paper-slider" disabled$="[[disabled]]" value="[[immediateValue]]" on-change="_changeValue" on-keydown="_inputKeyDown" no-label-float="">\n  </tp-yt-paper-input>\n</template>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;dbi===void 0&&(dbi=document.createElement("template"));var q=dbi;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return Ow6=p},
is:"tp-yt-paper-slider",behaviors:[_.Ln,_.HG,_.REZ,xbO],properties:{value:{type:Number,value:0},snaps:{type:Boolean,value:!1,notify:!0},pin:{type:Boolean,value:!1,notify:!0},secondaryProgress:{type:Number,value:0,notify:!0,observer:"_secondaryProgressChanged"},editable:{type:Boolean,value:!1},immediateValue:{type:Number,value:0,readOnly:!0,notify:!0},maxMarkers:{type:Number,value:0,notify:!0},expand:{type:Boolean,value:!1,readOnly:!0},ignoreBarTouch:{type:Boolean,value:!1},dragging:{type:Boolean,
value:!1,readOnly:!0,notify:!0},transiting:{type:Boolean,value:!1,readOnly:!0},markers:{type:Array,readOnly:!0,value:function(){return[]}},
light:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["_updateKnob(value, min, max, snaps, step)","_valueChanged(value)","_immediateValueChanged(immediateValue)","_updateMarkers(maxMarkers, min, max, snaps)"],hostAttributes:{role:"slider",tabindex:0},keyBindings:{left:"_leftKey",right:"_rightKey","down pagedown home":"_decrementKey","up pageup end":"_incrementKey"},ready:function(){this.ignoreBarTouch&&_.BK(this.$.sliderBar,"auto")},
increment:function(){this.value=this._clampValue(this.value+this.step)},
decrement:function(){this.value=this._clampValue(this.value-this.step)},
_updateKnob:function(p,y,l){this.setAttribute("aria-valuemin",y);this.setAttribute("aria-valuemax",l);this.setAttribute("aria-valuenow",p);this._positionKnob(this._calcRatio(p)*100)},
_valueChanged:function(){this.fire("value-change",{composed:!0})},
_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue},
_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},
_expandKnob:function(){this._setExpand(!0)},
_resetKnob:function(){this.cancelDebouncer("expandKnob");this._setExpand(!1)},
_positionKnob:function(p){this._setImmediateValue(this._calcStep(this._calcKnobPosition(p)));this._setRatio(this._calcRatio(this.immediateValue)*100);this.$.sliderKnob.style.left=this.ratio+"%";this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))},
_calcKnobPosition:function(p){return(this.max-this.min)*p/100+this.min},
_onTrack:function(p){p.stopPropagation();switch(p.detail.state){case "start":this._trackStart(p);break;case "track":this._trackX(p);break;case "end":this._trackEnd()}},
_trackStart:function(){this._setTransiting(!1);this._w=this.$.sliderBar.offsetWidth;this._knobstartx=this._startx=this._x=this.ratio*this._w/100;this._minx=-this._startx;this._maxx=this._w-this._startx;this.$.sliderKnob.classList.add("dragging");this._setDragging(!0)},
_trackX:function(p){this.dragging||this._trackStart(p);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,p.detail.dx*(this._isRTL?-1:1)));p=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(p);p=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(p+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var p=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;p.transform=p.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(p){this._expandKnob();p.preventDefault();this.focus()},
_bartrack:function(p){this._allowBarEvent(p)&&this._onTrack(p)},
_barclick:function(p){this._w=this.$.sliderBar.offsetWidth;var y=this.$.sliderBar.getBoundingClientRect();y=(p.detail.x-y.left)/this._w*100;this._isRTL&&(y=100-y);var l=this.ratio;this._setTransiting(!0);this._positionKnob(y);l===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
p.preventDefault();this.focus()},
_bardown:function(p){this._allowBarEvent(p)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(p))},
_knobTransitionEnd:function(p){p.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(p,y,l,q){q||this._setMarkers([]);y=Math.round((l-y)/this.step);y>p&&(y=p);if(y<0||!isFinite(y))y=0;this._setMarkers(Array(y))},
_mergeClasses:function(p){return Object.keys(p).filter(function(y){return p[y]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(p){return!this.ignoreBarTouch||p.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(p){this._isRTL?this._incrementKey(p):this._decrementKey(p)},
_rightKey:function(p){this._isRTL?this._decrementKey(p):this._incrementKey(p)},
_incrementKey:function(p){this.disabled||(p.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),p.preventDefault())},
_decrementKey:function(p){this.disabled||(p.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),p.preventDefault())},
_changeValue:function(p){this.value=p.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(p){p.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.uyO._createRipple.call(this)},
_focusedChanged:function(p){p&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=p?"":"none",this._ripple.holdDown=p)}});var z2V;var Y_6;var Cb=null,IUu=function(){};
_.J=IUu.prototype;_.J.fit=function(){};
_.J._discoverInfo=function(){};
_.J.resetFit=function(){};
_.J.refit=function(){};
_.J.position=function(){};
_.J.constrain=function(){};
_.J._sizeDimension=function(){};
_.J.__sizeDimension=function(){};
_.J.center=function(){};
_.J.__getNormalizedRect=function(){};
_.J.__getOffscreenArea=function(){};
_.J.__getPosition=function(){};
_.J.notifyResize=function(){};
_.J.assignParentResizable=function(){};
_.J.stopResizeNotificationsFor=function(){};
_.J._subscribeIronResize=function(){};
_.J._unsubscribeIronResize=function(){};
_.J.resizerShouldNotify=function(){};
_.J._onDescendantIronResize=function(){};
_.J._fireResize=function(){};
_.J._onIronRequestResizeNotifications=function(){};
_.J._parentResizableChanged=function(){};
_.J._notifyDescendant=function(){};
_.J._requestResizeNotifications=function(){};
_.J._findParent=function(){};
_.J.toggle=function(){};
_.J.open=function(){};
_.J.close=function(){};
_.J.cancel=function(){};
_.J.invalidateTabbables=function(){};
_.J._ensureSetup=function(){};
_.J._canceledChanged=function(){};
_.J._withBackdropChanged=function(){};
_.J._prepareRenderOpened=function(){};
_.J._finishRenderOpened=function(){};
_.J._finishRenderClosed=function(){};
_.J._preparePositioning=function(){};
_.J._finishPositioning=function(){};
_.J._applyFocus=function(){};
_.J._onCaptureClick=function(){};
_.J._onCaptureFocus=function(){};
_.J._onCaptureEsc=function(){};
_.J._onCaptureTab=function(){};
_.J._onIronResize=function(){};
_.J._onNodesChange=function(){};
_.J.__ensureFirstLastFocusables=function(){};
_.J.__openedChanged=function(){};
_.J.__deraf=function(){};
_.J.__updateScrollObservers=function(){};
_.J.__addScrollListeners=function(){};
_.J.__removeScrollListeners=function(){};
_.J.__isValidScrollAction=function(){};
_.J.__onCaptureScroll=function(){};
_.J.__saveScrollPosition=function(){};
_.J.__restoreScrollPosition=function(){};
_.J._setCanceled=function(){};
IUu=_.fv({_template:function(){if(Y_6!==void 0)return Y_6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toast--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toast.tp.yt.paper.toast.css.js--\x3e<span id="label" class="style-scope tp-yt-paper-toast">{{text}}</span>\n<slot class="style-scope tp-yt-paper-toast"></slot>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;z2V===void 0&&(z2V=document.createElement("template"));var q=z2V;l.call(y,q.content.cloneNode(!0),p.content.firstChild);return Y_6=p},
is:"tp-yt-paper-toast",behaviors:[_.JT],properties:{fitInto:{type:Object,value:window,observer:"_onFitIntoChanged"},horizontalAlign:{type:String,value:"left"},verticalAlign:{type:String,value:"bottom"},duration:{type:Number,value:3E3},text:{type:String,value:""},label:{type:String,value:"",observer:"_onLabelChanged"},noCancelOnOutsideClick:{type:Boolean,value:!0},noAutoFocus:{type:Boolean,value:!0},noIronAnnounce:{type:Boolean,value:!1},announceLabelUpdates:{type:Boolean,value:!1}},listeners:{transitionend:"__onTransitionEnd"},
get visible(){_.N6._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.lc.requestAvailability()},
show:function(p){typeof p=="string"&&(p={text:p});for(var y in p)y.indexOf("_")===0?_.N6._warn('The property "'+y+'" is private and was not set.'):y in this?this[y]=p[y]:_.N6._warn('The property "'+y+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(p){p&&p.target===this&&p.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(Cb&&Cb!==this&&Cb.close(),Cb=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Cb===this&&(Cb=null);_.Ex._openedChanged.apply(this,arguments)},
_onLabelChanged:function(){this.opened&&this.announceLabelUpdates&&this._fireIronAnnounce()},
_renderOpened:function(){this.classList.add("paper-toast-open")},
_renderClosed:function(){this.classList.remove("paper-toast-open")},
_onFitIntoChanged:function(p){this.positionTarget=p},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var pFm=new _.uK("disablePersonalizationAction");var rbL=new _.uK("showDmaConsentFlowCommand");var S51=new _.uK("showMmgNoticeCommand");var ySw=new _.uK("saveConsentAction");var l11=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.vR(p)};
_.A(l11,_.RX);var qXi=_.MZt(l11);var suT=new _.uK("updateTopbarAvatarAction");var t4V=new _.uK("channelHandleValidationResultRenderer");var Ea7=new _.uK("generateHandleFromNameResultRenderer");var JS6=new _.uK("channelHandleInputRenderer");var cS1=new _.uK("copyLinkRenderer");var eO6=new _.uK("timedCommand");var hO7=new _.uK("clearCookieAction");var C2A=new _.uK("getMultiPageMenuAction");var ut1=new _.uK("addToGuideSectionAction"),ROA=new _.uK("removeFromGuideSectionAction");var WZV=new _.uK("updateNotificationsUnseenCountAction");var a1d=new _.uK("resetChannelUnreadCountCommand");var mBd=new _.uK("resetSubscriptionsUnreadDotCommand");var UBd=new _.uK("selectLanguageCommand");var OlV=new _.uK("sendFeedbackAction");var $Bm=new _.uK("uploadImageToScottyCommand");var jui=new _.uK("registerPromoCommand");var bId=new _.uK("setPushNotificationsEnabledCommand");var naO=new _.uK("desktopTopbarRenderer");var G7d=new _.uK("surveyFollowUpRenderer");var P27=new _.uK("handlesClaimingRadioOptionRenderer");var AS9=new _.uK("hotkeyDialogRenderer");var ZIR=new _.uK("modifyReportFormCommand");var M4i=new _.uK("accountLinkCommand");var V4L=new _.uK("accountUnlinkCommand");var ga1=new _.uK("logAccountLinkingEventCommand");var QuO=new _.uK("guideCollapsibleEntryRenderer");var KZu=new _.uK("guideDownloadsEntryRenderer");var uC=new _.uK("guideEntryRenderer");var wFR=new _.uK("getLocationCommand");var iI7=new _.uK("locationCollectionCommand");var rSw=new _.uK("storiesItemViewModel");var SXu=new _.uK("addToRemoteQueueAction");var FZA=new _.uK("insertInRemoteQueueAction");var LZd=new _.uK("removeFromRemoteQueueAction");var k76=new _.uK("notificationRenderer");var $WA=new _.uK("localWatchHistoryCommand");var NBw=new _.uK("pdgBuyFlowHeaderRenderer");var DBL=new _.uK("pdgColorSliderRenderer");var HIi=new _.uK("pdgCommentOptionRenderer");var TB9=new _.uK("pdgCommentPreviewRenderer");var xBw=new _.uK("superVodSelectableItemButtonRenderer");var BB7=new _.uK("switchButtonRenderer");var f1i=new _.uK("upsellDialogRenderer");var va1=new _.uK("feedbackQuestionRenderer"),XF7=new _.uK("feedbackOptionRenderer");var dBw=new _.uK("sponsorshipsTierRenderer"),OIO=new _.uK("sponsorshipsPromotionChannelRenderer");var oa7=new _.uK("simpleSurveyMessageRenderer");var OYO=new _.uK("invokeInstrumentManagerAction");var zOu=new _.uK("logYpcFlowDismissCommand");var YXV=new _.uK("logYpcFlowStartCommand");var I1m=new _.uK("unlimitedCreateFamilyEndpoint");var p_6=new _.uK("iconBadgeRenderer");var jFV=new _.uK("collaborativePlaylistVisibilityValidationRule");var yGT=function(p){_.Ku.call(this,"channelMessage");this.message=p};
_.A(yGT,_.Ku);var luA=function(p){_.Ku.call(this,"channelError");this.error=p};
_.A(luA,_.Ku);var qdT={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw"},si6={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",
GAMING:"g",UNPLUGGED:"up"},tsV={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},E5d={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},JG9={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var RS=function(p){this.name=this.id="";this.clientName="UNKNOWN_INTERFACE";this.app="";this.type="REMOTE_CONTROL";this.ownerObfuscatedGaiaId=this.obfuscatedGaiaId=this.avatar=this.username="";this.connected=!1;this.capabilities=new Set;this.compatibleSenderThemes=new Set;this.experiments=new Set;this.theme="u";new _.Ag;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;p&&(this.id=p.id||p.name,this.name=p.name,this.clientName=p.clientName?p.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=p.app,this.type=p.type||"REMOTE_CONTROL",this.username=p.user||"",this.avatar=p.userAvatarUri||"",this.obfuscatedGaiaId=p.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=p.ownerObfuscatedGaiaId||"",this.castUserId=p.castUserId||"",this.theme=p.theme||"u",cGV(this,p.capabilities||""),eHw(this,
p.compatibleSenderThemes||""),hHi(this,p.experiments||""),this.remoteControllerUrl=p.remoteControllerUrl||"",this.localChannelEncryptionKey=p.localChannelEncryptionKey||"",this.deviceContext=p.deviceContext,this.brand=p.brand||"",this.model=p.model||"",this.year=p.year||0,this.os=p.os||"",this.osVersion=p.osVersion||"",this.chipset=p.chipset||"",this.mdxDialServerType=p.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=p.pairingType||"unknown",p=p.deviceInfo)&&(p=JSON.parse(p),this.brand=
p.brand||"",this.model=p.model||"",this.year=p.year||0,this.os=p.os||"",this.osVersion=p.osVersion||"",this.chipset=p.chipset||"",this.clientName=p.clientName?p.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=p.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
RS.prototype.copy=function(){var p={id:this.id,name:this.name,app:this.app,type:this.type,user:this.username,userAvatarUri:this.avatar,obfuscatedGaiaId:this.obfuscatedGaiaId,ownerObfuscatedGaiaId:this.ownerObfuscatedGaiaId,theme:this.theme,capabilities:Array.from(this.capabilities.values()).join(","),compatibleSenderThemes:Array.from(this.compatibleSenderThemes.values()).join(","),experiments:Array.from(this.experiments.values()).join(","),pairingType:this.pairingType};this.brand&&(p.brand=this.brand);
this.model&&(p.model=this.model);this.year&&(p.year=this.year);this.os&&(p.os=this.os);this.osVersion&&(p.osVersion=this.osVersion);this.chipset&&(p.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(p.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(p.mdxDialServerType=this.mdxDialServerType);p=new RS(p);p.connected=this.connected;p.remoteControllerUrl=this.remoteControllerUrl;p.localChannelEncryptionKey=this.localChannelEncryptionKey;p.deviceContext=
this.deviceContext;p.castUserId=this.castUserId;return p};
RS.prototype.equals=function(p){return p?this.id==p.id:!1};
var cGV=function(p,y){p.capabilities.clear();_.nq(y.split(","),_.Ky(_.Ts.contains,qdT)).forEach(function(l){p.capabilities.add(l)})},eHw=function(p,y){p.compatibleSenderThemes.clear();
_.nq(y.split(","),_.Ky(_.Ts.contains,si6)).forEach(function(l){p.compatibleSenderThemes.add(l)})},hHi=function(p,y){p.experiments.clear();
y.split(",").forEach(function(l){p.experiments.add(l)})};var CQT=function(p,y){this.action=p;this.params=y||{}};_.j6(TNT,_.Sr);_.J=TNT.prototype;_.J.JSC$19539_onTick_=function(){this.JSC$19537_interval_=Math.min(3E5,this.JSC$19537_interval_*2);this.JSC$19539_listener_();this.nextTickTime_&&this.start()};
_.J.start=function(){var p=this.JSC$19537_interval_+15E3*Math.random(),y=this.delay_;y.isActive()||y.start(p);this.nextTickTime_=Date.now()+p};
_.J.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.J.isActive=function(){return this.delay_.isActive()};
_.J.reset=function(){this.delay_.stop();this.JSC$19537_interval_=5E3};_.j6(zQ,Nz6);_.J=zQ.prototype;_.J.subscribe=function(p,y,l){return this.pubsub_.subscribe(p,y,l)};
_.J.unsubscribe=function(p,y,l){return this.pubsub_.unsubscribe(p,y,l)};
_.J.unsubscribeByKey=function(p){return this.pubsub_.unsubscribeByKey(p)};
_.J.publish=function(p,y){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.J.dispose=function(){this.JSC$19540_disposed_||(this.JSC$19540_disposed_=!0,_.er(this.pubsub_),this.disconnect(),_.er(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19540_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.PW({})})};
_.J.isDisposed=function(){return this.JSC$19540_disposed_};
_.J.connect=function(p,y,l){var q=this,t,E,e,C;return _.h(function(u){if(u.nextAddress==1)return _.KC(u,2),q.useAsyncBrowserChannelHandler_?u.yield(q.connectPromise_,2):u.jumpTo(2);_.Qe(u);if(q.JSC$19540_disposed_||q.JSC$19540_channel_&&q.JSC$19540_channel_.getState()==2)return u.return();q.sCookie_="";q.reconnectTimer_.stop();q.connectionParams_=p||null;q.connectUi_=y||0;t=q.JSC$19540_pathPrefix_+"/test";E=q.JSC$19540_pathPrefix_+"/bind";e=new cb(l?l.firstTestResults:null,l?l.secondTestResults:null,
q.enableAsyncTest_);if(C=q.JSC$19540_channel_)C.handler_=null;e.handler_=q;q.JSC$19540_channel_=e;if(q.useAsyncBrowserChannelHandler_)return q.connectPromise_=uW6(q).then(function(){return RHm(q,t,E,C,l)}),u.return(q.connectPromise_.then(function(){q.connectPromise_=_.PW()}));
RHm(q,t,E,C,l);return _.wR(u,0)})};
var RHm=function(p,y,l,q,t){W$O(p);if(p.JSC$19540_channel_){var E=_.OY("ID_TOKEN"),e=p.JSC$19540_channel_.JSC$19492_extraHeaders_||{};E?e["x-youtube-identity-token"]=E:delete e["x-youtube-identity-token"];p.JSC$19540_channel_.JSC$19492_extraHeaders_=e}aud(p);q?(q.getState(),p.JSC$19540_channel_.connect(y,l,p.defaultQueryParams_,q.sid_,q.JSC$19492_lastArrayId_)):t?p.JSC$19540_channel_.connect(y,l,p.defaultQueryParams_,t.sessionId,t.arrayId):p.JSC$19540_channel_.connect(y,l,p.defaultQueryParams_)};
zQ.prototype.disconnect=function(p){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.PW())}finally{this.disconnectUi_=p||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),W$O(this),this.JSC$19540_channel_&&(this.JSC$19540_channel_.getState()==3&&iwi(this.JSC$19540_channel_),this.JSC$19540_channel_.disconnect()),this.disconnectUi_=0}};
zQ.prototype.sendMessage=function(p,y){var l=this,q;return _.h(function(t){switch(t.nextAddress){case 1:_.KC(t,2);if(!l.useAsyncBrowserChannelHandler_){t.jumpTo(2);break}return t.yield(l.connectPromise_,2);case 2:_.Qe(t);if(l.JSC$19540_disposed_)return t.return();q={_sc:p};y&&_.Ts.extend(q,y);if(l.reconnectTimer_.isActive()||(l.JSC$19540_channel_?l.JSC$19540_channel_.getState():0)==2){l.JSC$19540_pendingMessages_.push(q);t.jumpTo(6);break}if(!l.isChannelOpened()){t.jumpTo(6);break}_.KC(t,8);if(!l.useAsyncBrowserChannelHandler_||
mCL(l,p)){t.jumpTo(8);break}return t.yield(uW6(l),8);case 8:_.Qe(t,0,0,1);l.isChannelOpened()&&(mCL(l,p)||aud(l),W$O(l),w46(l.JSC$19540_channel_,q));_.wR(t,6,1);break;case 6:_.wR(t,0)}})};
var mCL=function(p,y){return p.enableMdxAuthForConnectionOnly_?!0:p.disableMdxAuthForAdMessages_?Object.values(tsV).includes(y):p.disableMdxAuthForNonPlaybackMessages_?!Object.values(E5d).includes(y):p.disableMdxAuthForShortsMessages_?Object.values(JG9).includes(y):!1};
zQ.prototype.JSC$19499_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19540_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)UC7(this);else{var p=this.JSC$19540_pendingMessages_;this.JSC$19540_pendingMessages_=[];var y=p.length;aud(this);$Cm(this,p,y);jid(this)}else jid(this)};
var UC7=function(p){var y,l;_.h(function(q){if(q.nextAddress==1)return _.KC(q,2),q.yield(uW6(p),2);_.Qe(q);y=p.JSC$19540_pendingMessages_;p.JSC$19540_pendingMessages_=[];l=y.length;$Cm(p,y,l);jid(p);return _.wR(q,0)})},$Cm=function(p,y,l){for(var q=0;q<l;++q)w46(p.JSC$19540_channel_,y[q]);
jid(p)},jid=function(p){p.publish("handlerOpened");
p.JSC$19540_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.J=zQ.prototype;_.J.JSC$19499_channelError=function(p){var y=p==2&&this.JSC$19540_channel_.JSC$19492_lastStatusCode_==401;p==4||y||this.reconnectTimer_.start();this.publish("handlerError",p,y);y=Object.keys(PVu).find(function(l){return PVu[l]===p});
this.JSC$19540_channelErrorCounter.increment("BROWSER_CHANNEL",y!=null?y:"UNKNOWN")};
_.J.JSC$19499_channelClosed=function(p,y){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(y)for(var l=y.length,q=0;q<l;++q){var t=y[q].map;t&&this.JSC$19540_pendingMessages_.push(t)}this.JSC$19540_channelClosedCounter.increment("BROWSER_CHANNEL");p&&this.pendingMapsOnClosedCounter.JSC$9869_streamzService.JSC$9722_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",p.length);y&&this.undeliveredMapsOnClosedCounter.JSC$9872_streamzService.JSC$9722_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
y.length)};
_.J.JSC$19499_channelSuccess=function(p,y){y!=null&&p!=null&&this.channelMessageSentCounter.increment()};
_.J.JSC$19499_getAdditionalParams=function(){var p={v:2};this.sCookie_&&(p.gsessionid=this.sCookie_);this.connectUi_!=0&&(p.ui=""+this.connectUi_);this.disconnectUi_!=0&&(p.ui=""+this.disconnectUi_);this.connectionParams_&&_.Ts.extend(p,this.connectionParams_);return p};
_.J.JSC$19499_channelHandleArray=function(p){p[0]=="S"?this.sCookie_=p[1]:p[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19540_channel_.disconnect()):this.publish("handlerMessage",new CQT(p[0],p[1]));this.JSC$19540_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.J.isChannelOpened=function(){return!!this.JSC$19540_channel_&&this.JSC$19540_channel_.getState()==3};
var W$O=function(p){if(p.JSC$19540_channel_){var y=p.JSC$19540_getXsrfToken_(),l=p.JSC$19540_channel_.JSC$19492_extraHeaders_||{};y?l["x-youtube-lounge-xsrf-token"]=y:delete l["x-youtube-lounge-xsrf-token"];p.JSC$19540_channel_.JSC$19492_extraHeaders_=l}},uW6=function(p){if(p.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.PW();
if(!p.enableCachedUpdateAuthorizationHeader_)return bow(p);p.updateAuthorizationHeaderPromise_===null&&(p.updateAuthorizationHeaderPromise_=bow(p));return p.updateAuthorizationHeaderPromise_},bow=function(p){return _.DO(p.getAuthorizationHeader_().then(function(y){n5O(p,y)}).thenCatch(function(){}),function(){p.updateAuthorizationHeaderPromise_=null})},n5O=function(p,y){if(p.JSC$19540_channel_){var l=p.JSC$19540_channel_.JSC$19492_extraHeaders_||{};
y&&Object.keys(y).length>0?l=Object.assign({},l,y):delete l.Authorization;p.JSC$19540_channel_.JSC$19492_extraHeaders_=l}},aud=function(p){p.getAuthorizationHeaderSync_&&!p.useAsyncBrowserChannelHandler_&&n5O(p,p.getAuthorizationHeaderSync_())};
_.J=zQ.prototype;_.J.setLoungeToken=function(p){(this.defaultQueryParams_.loungeIdToken=p)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19540_channel_){var y=this.JSC$19540_channel_.JSC$19492_extraHeaders_||{};p?y["X-YouTube-LoungeId-Token"]=p:delete y["X-YouTube-LoungeId-Token"];this.JSC$19540_channel_.JSC$19492_extraHeaders_=y}};
_.J.getDeviceId=function(){return this.defaultQueryParams_.id};
_.J.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.J.reconnect=function(){var p=this.reconnectTimer_;p.delay_.fire();p.start()};
_.J.safeReconnect_=function(){var p=this.JSC$19540_channel_,y=0;p.JSC$19492_backChannelRequest_&&y++;p.forwardChannelRequest_&&y++;y==0&&this.connect(this.connectionParams_,this.connectUi_)};var s9=function(p,y){var l=p.basePath;p.supportCors&&(l=p.scheme+"://"+p.domain+p.port+p.basePath);return _.JJ(l+y,{})};
YK.prototype.sendRequest=function(p,y,l,q,t,E,e){p={format:E?"RAW":"JSON",method:p,context:this,timeout:5E3,withCredentials:!!e,onSuccess:_.Ky(this.JSC$19545_onSuccess_,q,!E),onError:_.Ky(this.onError_,t),onTimeout:_.Ky(this.JSC$19545_onTimeout_,t)};l&&(p.postParams=l,p.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.Z3(y,p)};
YK.prototype.JSC$19545_onSuccess_=function(p,y,l,q){y?p(q):p({text:l.responseText})};
YK.prototype.onError_=function(p,y){p(Error("Ck`"+y.status))};
YK.prototype.JSC$19545_onTimeout_=function(p){p(Error("Dk"))};var pc=function(p,y){return!!y&&(p.id==y||p.uuid==y)},GSu=function(p){return{name:p.name,
screenId:p.id,loungeToken:p.token,dialId:p.uuid,screenIdType:p.idType}},PQ6=function(p){return new I1(p)},AGw=function(p){return Array.isArray(p)?_.xI(p,PQ6):[]},YKO=function(p){if(!p)return"null";
var y=p.token?".."+p.token.slice(-6):"-",l=p.uuid?".."+p.uuid.slice(-6):"-";return'{name:"'+p.name+'",id:'+p.id.substr(0,6)+"..,token:"+(y+",uuid:"+l+",idType:"+p.idType+"}")},Z49=function(p){return Array.isArray(p)?"["+_.xI(p,YKO).join(",")+"]":"null"};var tii="",q2=null;var W3R=function(p,y){_.Fn.call(this);var l=this;this.handler=p();this.handler.subscribe("handlerOpened",this.JSC$19552_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(q,t){l.onError(t)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=y};
_.A(W3R,_.Fn);_.J=W3R.prototype;_.J.connect=function(p,y,l){this.handler.connect(p,y,l)};
_.J.disconnect=function(p){this.handler.disconnect(p)};
_.J.reconnect=function(){this.handler.reconnect()};
_.J.getDeviceId=function(){return this.handler.getDeviceId()};
_.J.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.J.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.J.JSC$19552_onOpened=function(){this.dispatchEvent("channelOpened");var p=this.handler,y=this.currentScreenId;_.gB("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!p.JSC$19540_channel_.useChunked_,sessionId:p.JSC$19540_channel_.sid_,arrayId:p.JSC$19540_channel_.JSC$19492_lastArrayId_});_.gB("yt-remote-session-screen-id",y);p=IFu();y=pI1();_.Tl(p,y)||p.push(y);sUi(p);qKu()};
_.J.onClosed=function(){this.dispatchEvent("channelClosed")};
_.J.onMessage=function(p){this.dispatchEvent(new yGT(p))};
_.J.onError=function(p){this.dispatchEvent(new luA(p?1:0))};
_.J.sendMessage=function(p,y){this.handler.sendMessage(p,y)};
_.J.setLoungeToken=function(p){this.handler.setLoungeToken(p)};
_.J.dispose=function(){this.handler.dispose()};var RAi=function(p,y,l){var q=this;l=l===void 0?function(){return""}:l;
var t=t===void 0?new oB6:t;var E=E===void 0?new _.V$:E;this.pathPrefix=p;this.defaultQueryParams=y;this.getXsrfToken=l;this.JSC$19555_pubsub=E;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new TNT(function(){var e;((e=q.channel)==null?void 0:L4R((new I91(e,e.JSC$19463_channel_)).JSC$19473_channel_.forwardChannelRequestPool_))===0&&q.connect(q.connectionParams,q.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19555_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19555_channelOpenedCounter=new xsw;this.JSC$19555_channelClosedCounter=new BNd;this.JSC$19555_channelMessageReceivedCounter=new vyV;this.JSC$19555_channelErrorCounter=new XVA};
RAi.prototype.connect=function(p,y){p=p===void 0?{}:p;y=y===void 0?0:y;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=p,this.connectUi=y,Zow(this),(p=_.OY("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=p:delete this.webChannelMessageHeaders["x-youtube-identity-token"],this.defaultQueryParams&&(this.webChannelMessageUrlParams.device=this.defaultQueryParams.device,this.webChannelMessageUrlParams.name=this.defaultQueryParams.name,this.webChannelMessageUrlParams.app=
this.defaultQueryParams.app,this.webChannelMessageUrlParams.id=this.defaultQueryParams.id,this.defaultQueryParams.mdxVersion&&(this.webChannelMessageUrlParams.mdxVersion=""+this.defaultQueryParams.mdxVersion),this.defaultQueryParams.theme&&(this.webChannelMessageUrlParams.theme=this.defaultQueryParams.theme),this.defaultQueryParams.capabilities&&(this.webChannelMessageUrlParams.capabilities=this.defaultQueryParams.capabilities),this.defaultQueryParams.cst&&(this.webChannelMessageUrlParams.cst=this.defaultQueryParams.cst),
this.defaultQueryParams.authuser&&(this.webChannelMessageUrlParams.authuser=this.defaultQueryParams.authuser),this.defaultQueryParams.pageId&&(this.webChannelMessageUrlParams.pageId=this.defaultQueryParams.pageId)),this.connectUi!==0?this.webChannelMessageUrlParams.ui=""+this.connectUi:delete this.webChannelMessageUrlParams.ui,Object.assign(this.webChannelMessageUrlParams,this.connectionParams),this.channel=new yA(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,MsT(this))};
var MsT=function(p){_.BL(p.channel,"w",function(){p.channelState=3;p.reconnectTimer.reset();p.connectionParams=null;p.connectUi=0;for(var y=_.c(p.nonAckedMessagesOnChannelClosed),l=y.next();!l.done;l=y.next())l=l.value,p.channel&&p.channel.send(l);p.nonAckedMessagesOnChannelClosed=[];p.publish("webChannelOpened");p.JSC$19555_channelOpenedCounter.increment("WEB_CHANNEL")});
_.BL(p.channel,"x",function(){p.channelState=0;p.reconnectTimer.isActive()||p.publish("webChannelClosed");var y,l=(y=p.channel)==null?void 0:p4m(new I91(y,y.JSC$19463_channel_));l&&(p.nonAckedMessagesOnChannelClosed=[].concat(_.xq(l)));p.JSC$19555_channelClosedCounter.increment("WEB_CHANNEL")});
_.BL(p.channel,"z",function(y){var l=y.data;l[0]==="gracefulReconnect"?(p.reconnectTimer.start(),p.channel&&p.channel.close()):p.publish("webChannelMessage",new CQT(l[0],l[1]));p.lastStatusCode=y.statusCode;p.JSC$19555_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.BL(p.channel,"y",function(){p.lastStatusCode===401||p.reconnectTimer.start();p.publish("webChannelError");p.JSC$19555_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.J=RAi.prototype;_.J.disconnect=function(p){this.disconnectUi=p===void 0?0:p;this.reconnectTimer.stop();Zow(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.J.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.J.reconnect=function(){var p=this.reconnectTimer;p.delay_.fire();p.start()};
_.J.sendMessage=function(p,y){this.channel&&(Zow(this),p=Object.assign({},{_sc:p},y),this.channel.send(p))};
_.J.setLoungeToken=function(p){p||this.reconnectTimer.stop();p?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=p:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var Zow=function(p){var y=p.getXsrfToken();y?p.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=y:delete p.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.J=RAi.prototype;_.J.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.J.publish=function(p){return this.JSC$19555_pubsub.publish.apply(this.JSC$19555_pubsub,[p].concat(_.xq(_.oX.apply(1,arguments))))};
_.J.subscribe=function(p,y,l){return this.JSC$19555_pubsub.subscribe(p,y,l)};
_.J.unsubscribe=function(p,y,l){return this.JSC$19555_pubsub.unsubscribe(p,y,l)};
_.J.unsubscribeByKey=function(p){return this.JSC$19555_pubsub.unsubscribeByKey(p)};
_.J.dispose=function(){this.JSC$19555_disposed||(this.JSC$19555_disposed=!0,_.er(this.JSC$19555_pubsub),this.disconnect(),_.er(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.J.isDisposed=function(){return this.JSC$19555_disposed};var uCi=function(p){_.Fn.call(this);this.webChannelService=p();this.webChannelService.subscribe("webChannelOpened",this.JSC$19563_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.A(uCi,_.Fn);_.J=uCi.prototype;_.J.connect=function(p,y){this.webChannelService.connect(p,y)};
_.J.disconnect=function(p){this.webChannelService.disconnect(p)};
_.J.reconnect=function(){this.webChannelService.reconnect()};
_.J.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.J.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.J.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.J.JSC$19563_onOpened=function(){this.dispatchEvent("channelOpened")};
_.J.onClosed=function(){this.dispatchEvent("channelClosed")};
_.J.onMessage=function(p){this.dispatchEvent(new yGT(p))};
_.J.onError=function(){this.dispatchEvent(new luA(this.webChannelService.lastStatusCode===401?1:0))};
_.J.sendMessage=function(p,y){this.webChannelService.sendMessage(p,y)};
_.J.setLoungeToken=function(p){this.webChannelService.setLoungeToken(p)};
_.J.dispose=function(){this.webChannelService.dispose()};var ABd=Date.now(),tu=null,G5w=Array(50),cB=-1,PS1=!1;_.j6(eU,_.jS);eU.prototype.getScreens=function(){return this.screens};
eU.prototype.contains=function(p){return!!Yt6(this.screens,p)};
eU.prototype.get=function(p){return p?yw(this.screens,p):null};
var VsT=function(p,y){var l=p.get(y.uuid)||p.get(y.id);if(l)return p=l.name,l.id=y.id||l.id,l.name=y.name,l.token=y.token,l.uuid=y.uuid||l.uuid,l.name!=p;p.screens.push(y);return!0},g5w=function(p,y){var l=p.screens.length!=y.length;
p.screens=_.nq(p.screens,function(E){return!!Yt6(y,E)});
for(var q=y.length,t=0;t<q;t++)l=VsT(p,y[t])||l;return l},Qi1=function(p,y){var l=p.screens.length;
p.screens=_.nq(p.screens,function(q){return!(q||y?!q!=!y?0:q.id==y.id:1)});
return p.screens.length<l};
eU.prototype.info=function(p){E9(this.JSC$19564_logName_,p)};var K$O=function(p,y,l,q,t){_.jS.call(this);this.JSC$19567_http_=p;this.pairingCode_=y;this.deviceId_=l;this.friendlyName_=q;this.enableShortLivedLoungeToken_=t;this.pollIndex_=0;this.JSC$19567_xhr_=null;this.JSC$19567_timer_=NaN};
_.A(K$O,_.jS);_.J=K$O.prototype;_.J.start=function(){!this.JSC$19567_xhr_&&isNaN(this.JSC$19567_timer_)&&this.poll_()};
_.J.stop=function(){this.JSC$19567_xhr_&&(this.JSC$19567_xhr_.abort(),this.JSC$19567_xhr_=null);isNaN(this.JSC$19567_timer_)||(_.PC(this.JSC$19567_timer_),this.JSC$19567_timer_=NaN)};
_.J.disposeInternal=function(){this.stop();_.jS.prototype.disposeInternal.call(this)};
_.J.poll_=function(){this.JSC$19567_timer_=NaN;this.JSC$19567_xhr_=_.Z3(s9(this.JSC$19567_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.FZ)(this.JSC$19569_onSuccess_,this),onError:(0,_.FZ)(this.onError_,this),onTimeout:(0,_.FZ)(this.JSC$19569_onTimeout_,this)})};
_.J.JSC$19569_onSuccess_=function(p,y){this.JSC$19567_xhr_=null;p=y.screen||{};p.dialId=this.deviceId_;p.name=this.friendlyName_;y=-1;this.enableShortLivedLoungeToken_&&p.shortLivedLoungeToken&&p.shortLivedLoungeToken.value&&p.shortLivedLoungeToken.refreshIntervalMs&&(p.screenIdType="shortLived",p.loungeToken=p.shortLivedLoungeToken.value,y=p.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new I1(p),y)};
_.J.onError_=function(p){this.JSC$19567_xhr_=null;p.status&&p.status==404?this.pollIndex_>=w_V.length?this.publish("pairingFailed",Error("Ek")):(p=w_V[this.pollIndex_],this.JSC$19567_timer_=_.nh((0,_.FZ)(this.poll_,this),p),this.pollIndex_++):this.publish("pairingFailed",Error("Fk`"+p.status))};
_.J.JSC$19569_onTimeout_=function(){this.JSC$19567_xhr_=null;this.publish("pairingFailed",Error("Gk"))};
var w_V=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.j6(Cc,eU);_.J=Cc.prototype;_.J.start=function(){hu(this)&&this.publish("screenChange");!_.Qh("yt-remote-lounge-token-expiration")&&ioV(this);_.PC(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.nh((0,_.FZ)(this.start,this),1E4)};
_.J.add=function(p,y){hu(this);VsT(this,p);rG1(this,!1);this.publish("screenChange");y(p);p.token||ioV(this)};
_.J.remove=function(p,y){var l=hu(this);Qi1(this,p)&&(rG1(this,!1),l=!0);y(p);l&&this.publish("screenChange")};
_.J.updateName=function(p,y,l,q){var t=hu(this),E=this.get(p.id);E?(E.name!=y&&(E.name=y,rG1(this,!1),t=!0),l(p)):q(Error("Hk"));t&&this.publish("screenChange")};
_.J.disposeInternal=function(){_.PC(this.loungeTokenRefreshTimer_);Cc.superClass_.disposeInternal.call(this)};
var ioV=function(p){if(p.screens.length){var y=_.xI(p.screens,function(q){return q.id}),l=s9(p.JSC$19571_http_,"/pairing/get_lounge_token_batch");
p.JSC$19571_http_.sendRequest("POST",l,{screen_ids:y.join(",")},(0,_.FZ)(p.handleLoungeTokens_,p),(0,_.FZ)(p.handleLoungeTokenError_,p))}};
Cc.prototype.handleLoungeTokens_=function(p){hu(this);var y=this.screens.length;p=p&&p.screens||[];for(var l=p.length,q=0;q<l;++q){var t=p[q],E=this.get(t.screenId);E&&(E.token=t.loungeToken,--y)}rG1(this,!y);y&&E9(this.JSC$19564_logName_,"Missed "+y+" lounge tokens.")};
Cc.prototype.handleLoungeTokenError_=function(p){E9(this.JSC$19564_logName_,"Requesting lounge tokens failed: "+p)};
var hu=function(p){if(_.n("deprecate_pair_servlet_enabled"))return g5w(p,[]);var y=AGw(JB7());y=_.nq(y,function(l){return!l.uuid});
return g5w(p,y)},rG1=function(p,y){eAR(_.xI(p.screens,GSu));
y&&cBL()};var Wb=function(p,y){_.jS.call(this);this.getScreensToCheck_=y;y=(y=_.Qh("yt-remote-online-screen-ids")||"")?y.split(","):[];for(var l={},q=this.getScreensToCheck_(),t=q.length,E=0;E<t;++E){var e=q[E].id;l[e]=_.Tl(y,e)}this.screenIdSet_=l;this.JSC$19574_http_=p;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;Sd6("Initialized with "+(0,_.xv)(this.screenIdSet_))};
_.A(Wb,_.jS);Wb.prototype.isOnline=function(p){return!!this.screenIdSet_[p]};
Wb.prototype.start=function(){var p=parseInt(_.Qh("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.$t()-144E5<p?0:p)?F$9(this):(this.fastCheckEndTime_=_.$t()+3E5,_.gB("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
Wb.prototype.isEmpty=function(){return _.Ts.isEmpty(this.screenIdSet_)};
Wb.prototype.update=function(){Sd6("Updating availability on schedule.");var p=this.getScreensToCheck_(),y=_.Ts.filter(this.screenIdSet_,function(l,q){return l&&!!yw(p,q)},this);
L$1(this,y)};
var kSO=function(p,y,l){var q=s9(p.JSC$19574_http_,"/pairing/get_screen_availability");p.JSC$19574_http_.sendRequest("POST",q,{lounge_token:y.token},(0,_.FZ)(function(t){t=t.screens||[];for(var E=t.length,e=0;e<E;++e)if(t[e].loungeToken==y.token){l(t[e].status=="online");return}l(!1)},p),(0,_.FZ)(function(){l(!1)},p))};
Wb.prototype.disposeInternal=function(){_.PC(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.jS.prototype.disposeInternal.call(this)};
var L$1=function(p,y){a:if(_.Ts.getCount(y)!=_.Ts.getCount(p.screenIdSet_))var l=!1;else{l=_.Ts.getKeys(y);for(var q=l.length,t=0;t<q;++t)if(!p.screenIdSet_[l[t]]){l=!1;break a}l=!0}l||(Sd6("Updated online screens: "+(0,_.xv)(p.screenIdSet_)),p.screenIdSet_=y,p.publish("screenChange"));NZm(p)},F$9=function(p){isNaN(p.refreshTimer_)||_.PC(p.refreshTimer_);
p.refreshTimer_=_.nh((0,_.FZ)(p.requestScreenAvailability_,p),p.fastCheckEndTime_>0&&p.fastCheckEndTime_<_.$t()?2E4:1E4)};
Wb.prototype.requestScreenAvailability_=function(){_.PC(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var p=DCw(this);if(_.Ts.getCount(p)){var y=s9(this.JSC$19574_http_,"/pairing/get_screen_availability"),l={lounge_token:_.Ts.getKeys(p).join(",")};this.currentRequest_=this.JSC$19574_http_.sendRequest("POST",y,l,(0,_.FZ)(this.onScreenAvailability_,this,p),(0,_.FZ)(this.onScreenAvailabilityError_,this))}else L$1(this,{}),F$9(this)};
Wb.prototype.onScreenAvailability_=function(p,y){this.currentRequest_=null;var l=_.Ts.getKeys(DCw(this));if(_.eB(l,_.Ts.getKeys(p))){y=y.screens||[];l={};for(var q=y.length,t=0;t<q;++t)l[p[y[t].loungeToken]]=y[t].status=="online";L$1(this,l);F$9(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
Wb.prototype.onScreenAvailabilityError_=function(p){this.warn_("Screen availability failed: "+p);this.currentRequest_=null;F$9(this)};
var Sd6=function(p){E9("OnlineScreenService",p)};
Wb.prototype.warn_=function(p){E9("OnlineScreenService",p)};
var DCw=function(p){var y={};_.lv(p.getScreensToCheck_(),function(l){l.token?y[l.token]=l.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return y},NZm=function(p){p=_.Ts.getKeys(_.Ts.filter(p.screenIdSet_,function(y){return y}));
p.sort(_.JZ);p.length?_.gB("yt-remote-online-screen-ids",p.join(","),60):_.KI("yt-remote-online-screen-ids")};_.j6(ud,eU);_.J=ud.prototype;_.J.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.J.add=function(p,y,l){this.localScreenService_.add(p,y,l)};
_.J.remove=function(p,y,l){this.localScreenService_.remove(p,y,l);this.onlineScreenService_.update()};
_.J.updateName=function(p,y,l,q){this.localScreenService_.contains(p)?this.localScreenService_.updateName(p,y,l,q):(p="Updating name of unknown screen: "+p.name,E9(this.JSC$19564_logName_,p),q(Error(p)))};
_.J.getScreens=function(p){return p?this.screens:$tV(this.screens,_.nq(this.automaticScreens_,function(y){return!this.contains(y)},this))};
_.J.JSC$19579_getOnlineScreens=function(){return _.nq(this.getScreens(!0),function(p){return this.onlineScreenService_.isOnline(p.id)},this)};
var TZO=function(p,y,l,q,t,E){p.info("getAutomaticScreenByIds "+l+" / "+y);l||(l=p.deviceToScreenId_[y]);var e=p.getScreens(),C=l?yw(e,l):null;l&&(p.disableAutomaticScreenCache_||C)||(C=yw(e,y));if(C){C.uuid=y;var u=aS(p,C);kSO(p.onlineScreenService_,u,function(a){t(a?u:null)})}else l?Hoi(p,l,(0,_.FZ)(function(a){var m=aS(this,new I1({name:q,
screenId:l,loungeToken:a,dialId:y||""}));kSO(this.onlineScreenService_,m,function(U){t(U?m:null)})},p),E):t(null)};
ud.prototype.JSC$19579_getScreenByPollingPairingCode=function(p,y,l,q,t,E){var e=this;this.info("getDialScreenByPairingCode "+p+" / "+y);var C=new K$O(this.JSC$19577_http_,p,y,l,q);C.subscribe("pairingComplete",function(u,a){_.er(C);t(aS(e,u),a)});
C.subscribe("pairingFailed",function(u){_.er(C);E(u)});
C.start();return(0,_.FZ)(C.stop,C)};
var xC9=function(p,y){for(var l=p.screens.length,q=0;q<l;++q)if(p.screens[q].name==y)return p.screens[q];return null};
ud.prototype.JSC$19579_getScreenByPairingCode=function(p,y,l,q){_.Z3(s9(this.JSC$19577_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:p},timeout:5E3,onSuccess:(0,_.FZ)(function(t,E){t=new I1(E.screen||{});if(!t.name||xC9(this,t.name)){a:{E=t.name;for(var e=2,C=y(E,e);xC9(this,C);){e++;if(e>20)break a;C=y(E,e)}E=C}t.name=E}l(aS(this,t))},this),
onError:(0,_.FZ)(function(t){q(Error("Ik`"+t.status))},this),
onTimeout:(0,_.FZ)(function(){q(Error("Jk"))},this)})};
var BZw=function(p,y,l){kSO(p.onlineScreenService_,y,l)};
ud.prototype.disposeInternal=function(){_.er(this.localScreenService_);_.er(this.onlineScreenService_);ud.superClass_.disposeInternal.call(this)};
var Hoi=function(p,y,l,q){p.info("requestLoungeToken_ for "+y);var t={postParams:{screen_ids:y},method:"POST",context:p,onSuccess:function(E,e){E=e&&e.screens||[];E[0]&&E[0].screenId==y?l(E[0].loungeToken):q(Error("Kk"))},
onError:function(){q(Error("Lk"))}};
_.Z3(s9(p.JSC$19577_http_,"/pairing/get_lounge_token_batch"),t)},fu1=function(p){p.screens=p.localScreenService_.getScreens();
for(var y=_.Ts.transpose(p.deviceToScreenId_),l=p.screens.length,q=0;q<l;++q){var t=p.screens[q];t.uuid=y[t.id]||""}p.info("Updated manual screens: "+Z49(p.screens))};
ud.prototype.handleScreenChange_=function(){fu1(this);this.publish("screenChange");this.onlineScreenService_.update()};
var MiL=function(p){v5L(p);p.localScreenService_=new Cc(p.JSC$19577_http_);p.localScreenService_.subscribe("screenChange",(0,_.FZ)(p.handleScreenChange_,p));fu1(p);p.disableAutomaticScreenCache_||(p.automaticScreens_=AGw(_.Qh("yt-remote-automatic-screen-cache")||[]));v5L(p);p.info("Initializing automatic screens: "+Z49(p.automaticScreens_));p.onlineScreenService_=new Wb(p.JSC$19577_http_,(0,_.FZ)(p.getScreens,p,!0));p.onlineScreenService_.subscribe("screenChange",(0,_.FZ)(function(){this.publish("onlineScreenChange")},
p))},aS=function(p,y){var l=p.get(y.id);
l?(l.uuid=y.uuid,y=l):((l=yw(p.automaticScreens_,y.uuid))?(l.id=y.id,l.token=y.token,y=l):p.automaticScreens_.push(y),p.disableAutomaticScreenCache_||X_i(p));v5L(p);p.deviceToScreenId_[y.uuid]=y.id;_.gB("yt-remote-device-id-map",p.deviceToScreenId_,31536E3);return y},X_i=function(p){p=_.nq(p.automaticScreens_,function(y){return y.idType!="shortLived"});
_.gB("yt-remote-automatic-screen-cache",_.xI(p,GSu))},v5L=function(p){p.deviceToScreenId_=_.Qh("yt-remote-device-id-map")||{}};
ud.prototype.dispose=ud.prototype.dispose;_.j6(Rj,_.jS);var me=function(p,y){p.screen_=y;p.publish("sessionScreen",p.screen_)},dCT=function(p,y){p.screen_&&(p.screen_.token=y,aS(p.JSC$19581_screenService_,p.screen_));
p.publish("sessionScreen",p.screen_)};
Rj.prototype.onSessionStopped=function(p){this.isDisposed()||(p&&(UR(this,""+p),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
Rj.prototype.info=function(p){E9(this.JSC$19581_logName_,p)};
var UR=function(p,y){E9(p.JSC$19581_logName_,y)};
Rj.prototype.JSC$19583_getCastSession=function(){return null};
Rj.prototype.setDisplayStatus=function(p){var y=this.receiver_;p?(y.displayStatus=new chrome.cast.ReceiverDisplayStatus(p,[]),y.displayStatus.showStop=!0):y.displayStatus=null;chrome.cast.setReceiverDisplayStatus(y,(0,_.FZ)(function(){this.info("Updated receiver status for "+y.friendlyName+": "+p)},this),(0,_.FZ)(function(){UR(this,"Failed to update receiver status for: "+y.friendlyName)},this))};
Rj.prototype.disposeInternal=function(){this.setDisplayStatus("");Rj.superClass_.disposeInternal.call(this)};var $3=function(p,y,l){Rj.call(this,p,y,"CastSession");var q=this;this.config_=l;this.JSC$19586_session_=null;this.JSC$19586_boundSessionUpdate_=(0,_.FZ)(this.JSC$19588_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.FZ)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.nh(function(){OoT(q,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19586_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19586_isInitLoungeToken_=!1;this.JSC$19586_lastLoungeTokenRefreshError_="unknown"};
_.A($3,Rj);_.J=$3.prototype;
_.J.setCastSession=function(p){if(this.JSC$19586_session_){if(this.JSC$19586_session_==p)return;UR(this,"Overriding cast session with new session object");o5u(this);this.JSC$19586_isInitLoungeToken_=!1;this.JSC$19586_lastLoungeTokenRefreshError_="unknown";this.JSC$19586_session_.removeUpdateListener(this.JSC$19586_boundSessionUpdate_);this.JSC$19586_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19586_session_=p;this.JSC$19586_session_.addUpdateListener(this.JSC$19586_boundSessionUpdate_);this.JSC$19586_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);zHm(this,"getMdxSessionStatus")};
_.J.launchWithParams=function(p){this.info("launchWithParams no-op for Cast: "+(0,_.xv)(p))};
_.J.stop=function(){if(this.JSC$19586_session_)this.JSC$19586_session_.stop((0,_.FZ)(function(){this.onSessionStopped()},this),(0,_.FZ)(function(){this.onSessionStopped(Error("Mk"))},this));
else this.onSessionStopped(Error("Nk"))};
_.J.setDisplayStatus=function(){};
_.J.disposeInternal=function(){this.info("disposeInternal");o5u(this);this.JSC$19586_session_&&(this.JSC$19586_session_.removeUpdateListener(this.JSC$19586_boundSessionUpdate_),this.JSC$19586_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19586_session_=null;Rj.prototype.disposeInternal.call(this)};
var IuT=function(p,y){_.PC(p.getLoungeTokenTimeoutKey_);p.getLoungeTokenTimeoutKey_=0;y==0?Ydu(p):p.getLoungeTokenTimeoutKey_=_.nh(function(){Ydu(p)},y)},Ydu=function(p){zHm(p,"getLoungeToken");
_.PC(p.onLoungeTokenTimeoutKey_);p.onLoungeTokenTimeoutKey_=_.nh(function(){pSi(p,null)},3E4)},zHm=function(p,y){p.info("sendYoutubeMessage_: "+y+" "+(0,_.xv)(void 0));
var l={};l.type=y;p.JSC$19586_session_?p.JSC$19586_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",l,function(){},(0,_.FZ)(function(){UR(this,"Failed to send message: "+y+".")},p)):UR(p,"Sending yt message without session: "+(0,_.xv)(l))};
$3.prototype.onYoutubeMessage_=function(p,y){if(!this.isDisposed())if(y)if(y=(0,_.Nf)(y),_.yQ(y))switch(p=""+y.type,y=y.data||{},this.info("onYoutubeMessage_: "+p+" "+(0,_.xv)(y)),p){case "mdxSessionStatus":OoT(this,y);break;case "loungeToken":pSi(this,y);break;default:UR(this,"Unknown youtube message: "+p)}else UR(this,"Unable to parse message.");else UR(this,"No data in message.")};
var yCw=function(p,y){if(y)p.info("onConnectedScreenId_: Received screenId: "+y),p.screen_&&p.screen_.id==y||p.getScreen_(y,function(l){me(p,l)},function(){return p.onSessionStopped()},5);
else p.onSessionStopped(Error("Ok"))},qgu=function(p,y,l){p.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(y));
var q=new I1(y);lJ1(p,q,function(t){t?(p.JSC$19586_isInitLoungeToken_=!0,aS(p.JSC$19581_screenService_,q),me(p,q),p.JSC$19586_lastLoungeTokenRefreshError_="unknown",IuT(p,l)):(_.zi(Error("Pk`"+JSON.stringify(y))),p.onSessionStopped())},5)},OoT=function(p,y){_.PC(p.sessionStatusTimeoutKey_);
p.sessionStatusTimeoutKey_=0;if(y)p.config_.enableCastLoungeToken&&y.loungeToken?y.deviceId?p.screen_&&p.screen_.uuid==y.deviceId||(y.loungeTokenRefreshIntervalMs?qgu(p,{name:p.receiver_.friendlyName,screenId:y.screenId,loungeToken:y.loungeToken,dialId:y.deviceId,screenIdType:"shortLived"},y.loungeTokenRefreshIntervalMs):(_.zi(Error("Rk`"+JSON.stringify(y))),yCw(p,y.screenId))):(_.zi(Error("Qk`"+JSON.stringify(y))),yCw(p,y.screenId)):yCw(p,y.screenId);else p.onSessionStopped(Error("Ok"))},pSi=function(p,
y){_.PC(p.onLoungeTokenTimeoutKey_);
p.onLoungeTokenTimeoutKey_=0;var l=null;if(y)if(y.loungeToken){var q;((q=p.screen_)==null?void 0:q.token)==y.loungeToken&&(l="staleLoungeToken")}else l="missingLoungeToken";else l="noLoungeTokenResponse";l?(p.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(y)+", error: "+l)),p.JSC$19586_lastLoungeTokenRefreshError_=l,IuT(p,3E4)):(dCT(p,y.loungeToken),p.JSC$19586_isInitLoungeToken_=!1,p.JSC$19586_lastLoungeTokenRefreshError_="unknown",IuT(p,y.loungeTokenRefreshIntervalMs))};
$3.prototype.getScreen_=function(p,y,l,q){_.PC(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;TZO(this.JSC$19581_screenService_,this.receiver_.label,p,this.receiver_.friendlyName,(0,_.FZ)(function(t){t?y(t):q>=0?(UR(this,"Screen "+p+" appears to be offline. "+q+" retries left."),this.getScreenTimeoutKey_=_.nh((0,_.FZ)(this.getScreen_,this,p,y,l,q-1),300)):l(Error("Sk"))},this),l)};
var lJ1=function(p,y,l,q){_.PC(p.JSC$19586_checkScreenAvailabilityTimeoutKey_);p.JSC$19586_checkScreenAvailabilityTimeoutKey_=0;BZw(p.JSC$19581_screenService_,y,function(t){t||q<0?l(t):p.JSC$19586_checkScreenAvailabilityTimeoutKey_=_.nh(function(){lJ1(p,y,l,q-1)},300)})};
$3.prototype.JSC$19583_getCastSession=function(){return this.JSC$19586_session_};
$3.prototype.JSC$19588_onSessionUpdate_=function(p){this.isDisposed()||p||(UR(this,"Cast session died."),this.onSessionStopped())};
var o5u=function(p){_.PC(p.getScreenTimeoutKey_);p.getScreenTimeoutKey_=0;_.PC(p.JSC$19586_checkScreenAvailabilityTimeoutKey_);p.JSC$19586_checkScreenAvailabilityTimeoutKey_=0;_.PC(p.sessionStatusTimeoutKey_);p.sessionStatusTimeoutKey_=0;_.PC(p.onLoungeTokenTimeoutKey_);p.onLoungeTokenTimeoutKey_=0;_.PC(p.getLoungeTokenTimeoutKey_);p.getLoungeTokenTimeoutKey_=0};var ju=function(p,y,l,q){Rj.call(this,p,y,"DialSession");this.config_=q;this.JSC$19590_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19590_theme_=l;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19590_deferredLaunchDeadlineTimer_=NaN;this.JSC$19590_boundSessionUpdate_=(0,_.FZ)(this.JSC$19592_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19590_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19590_isInitLoungeToken_=!1;this.JSC$19590_lastLoungeTokenRefreshError_="unknown"};
_.A(ju,Rj);ju.prototype.setCastSession=function(p){this.JSC$19590_session_=p;this.JSC$19590_session_.addUpdateListener(this.JSC$19590_boundSessionUpdate_)};
ju.prototype.launchWithParams=function(p){this.connectData_=p;this.deferredLaunch_()};
ju.prototype.stop=function(){sP1(this);if(this.JSC$19590_session_)this.JSC$19590_session_.stop((0,_.FZ)(this.onSessionStopped,this,null),(0,_.FZ)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
ju.prototype.disposeInternal=function(){sP1(this);this.JSC$19590_session_&&this.JSC$19590_session_.removeUpdateListener(this.JSC$19590_boundSessionUpdate_);this.JSC$19590_session_=null;Rj.prototype.disposeInternal.call(this)};
var tkA=function(p){var y;return!!(p.config_.enableDialLoungeToken&&((y=p.JSC$19590_session_)==null?0:y.getDialAppInfo))},Em9=function(p){p.cancelPolling_=p.JSC$19581_screenService_.JSC$19579_getScreenByPollingPairingCode(p.reversePairingCode_,p.receiver_.label,p.receiver_.friendlyName,tkA(p),function(y,l){p.cancelPolling_=function(){};
p.JSC$19590_isInitLoungeToken_=!0;me(p,y);y.idType=="shortLived"&&l>0&&bC(p,l)},function(y){p.cancelPolling_=function(){};
p.onSessionStopped(y)})};
ju.prototype.JSC$19592_onSessionUpdate_=function(p){this.isDisposed()||p||(UR(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var JCw=function(p){var y={};y.pairingCode=p.reversePairingCode_;y.theme=p.JSC$19590_theme_;CSO()&&(y.env_useStageMdx=1);return _.MM(y)},cCi=function(p){return new Promise(function(y){p.reversePairingCode_=oyw();
if(p.connectData_){var l=new chrome.cast.DialLaunchResponse(!0,JCw(p));y(l);Em9(p)}else p.deferredLaunch_=function(){_.PC(p.JSC$19590_deferredLaunchDeadlineTimer_);p.deferredLaunch_=function(){};
p.JSC$19590_deferredLaunchDeadlineTimer_=NaN;var q=new chrome.cast.DialLaunchResponse(!0,JCw(p));y(q);Em9(p)},p.JSC$19590_deferredLaunchDeadlineTimer_=_.nh(function(){p.deferredLaunch_()},100)})},h8V=function(p,y,l){p.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(y));
var q=new I1(y);return(new Promise(function(t){e8u(p,q,function(E){E?(p.JSC$19590_isInitLoungeToken_=!0,aS(p.JSC$19581_screenService_,q),me(p,q),bC(p,l)):_.zi(Error("Uk`"+JSON.stringify(y)));t(E)},5)})).then(function(t){return t?new chrome.cast.DialLaunchResponse(!1):cCi(p)})},CAd=function(p,y){var l=p.launchData_.receiver.label,q=p.receiver_.friendlyName;
return(new Promise(function(t){TZO(p.JSC$19581_screenService_,l,y,q,function(E){E&&E.token&&me(p,E);t(E)},function(E){UR(p,"Failed to get DIAL screen: "+E);
t(null)})})).then(function(t){return t&&t.token?new chrome.cast.DialLaunchResponse(!1):cCi(p)})},e8u=function(p,y,l,q){_.PC(p.JSC$19590_checkScreenAvailabilityTimeoutKey_);
p.JSC$19590_checkScreenAvailabilityTimeoutKey_=0;BZw(p.JSC$19581_screenService_,y,function(t){t||q<0?l(t):p.JSC$19590_checkScreenAvailabilityTimeoutKey_=_.nh(function(){e8u(p,y,l,q-1)},300)})},bC=function(p,y){p.info("getDialAppInfoWithTimeout_ "+y);
tkA(p)&&(_.PC(p.getDialAppInfoTimeoutKey_),p.getDialAppInfoTimeoutKey_=0,y==0?u07(p):p.getDialAppInfoTimeoutKey_=_.nh(function(){u07(p)},y))},u07=function(p){tkA(p)&&p.JSC$19590_session_.getDialAppInfo(function(y){p.info("getDialAppInfo dialLaunchData: "+JSON.stringify(y));
y=y.extraData||{};var l=null;if(y.loungeToken){var q;((q=p.screen_)==null?void 0:q.token)==y.loungeToken&&(l="staleLoungeToken")}else l="missingLoungeToken";l?(p.JSC$19590_lastLoungeTokenRefreshError_=l,bC(p,3E4)):(p.JSC$19590_isInitLoungeToken_=!1,p.JSC$19590_lastLoungeTokenRefreshError_="unknown",dCT(p,y.loungeToken),bC(p,y.loungeTokenRefreshIntervalMs))},function(y){p.info("getDialAppInfo error: "+y);
p.JSC$19590_lastLoungeTokenRefreshError_="noLoungeTokenResponse";bC(p,3E4)})},sP1=function(p){_.PC(p.JSC$19590_checkScreenAvailabilityTimeoutKey_);
p.JSC$19590_checkScreenAvailabilityTimeoutKey_=0;_.PC(p.getDialAppInfoTimeoutKey_);p.getDialAppInfoTimeoutKey_=0;p.cancelPolling_();p.cancelPolling_=function(){};
_.PC(p.JSC$19590_deferredLaunchDeadlineTimer_)};var nb=function(p,y){Rj.call(this,p,y,"ManualSession");this.JSC$19594_deferredLaunchDeadlineTimer_=_.nh((0,_.FZ)(this.launchWithParams,this,null),150)};
_.A(nb,Rj);nb.prototype.stop=function(){this.onSessionStopped()};
nb.prototype.setCastSession=function(){};
nb.prototype.launchWithParams=function(){_.PC(this.JSC$19594_deferredLaunchDeadlineTimer_);this.JSC$19594_deferredLaunchDeadlineTimer_=NaN;var p=yw(this.JSC$19581_screenService_.getScreens(),this.receiver_.label);if(p)me(this,p);else this.onSessionStopped(Error("Vk"))};
nb.prototype.disposeInternal=function(){_.PC(this.JSC$19594_deferredLaunchDeadlineTimer_);this.JSC$19594_deferredLaunchDeadlineTimer_=NaN;Rj.prototype.disposeInternal.call(this)};var U9=function(p,y){_.jS.call(this);this.config_=y;this.JSC$19597_screenService_=p;this.JSC$19597_appId_=y.appId||"233637DE";this.JSC$19597_theme_=y.theme||"cl";this.disableDial_=y.disableCastApi||!1;this.forceMirroring_=y.forceMirroring||!1;this.JSC$19597_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.FZ)(this.onReceiverAction_,this)};
_.A(U9,_.jS);
U9.prototype.init=function(p,y){chrome.cast.timeout.requestSession=3E4;var l=new chrome.cast.SessionRequest(this.JSC$19597_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.n("desktop_enable_cast_connect")&&(l.androidReceiverCompatible=!0);this.disableDial_||(l.dialRequest=new chrome.cast.DialRequest("YouTube"));var q=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;p=p||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var t=(0,_.FZ)(this.onReceiverUpdated_,
this);l=new chrome.cast.ApiConfig(l,(0,_.FZ)(this.onSessionEstablished_,this),t,q,p);l.customDialLaunchCallback=(0,_.FZ)(this.onDialLaunchRequested_,this);chrome.cast.initialize(l,(0,_.FZ)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),jUd(),this.JSC$19597_screenService_.subscribe("onlineScreenChange",(0,_.FZ)(this.JSC$19599_onScreenChange_,this)),this.customReceivers_=R8T(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.FZ)(function(E){this.warn_("Failed to set initial custom receivers: "+(0,_.xv)(E))},this)),this.publish("yt-remote-cast2-availability-change",Gg(this)),y(!0))},this),(0,_.FZ)(function(E){this.warn_("Failed to initialize API: "+(0,_.xv)(E));
y(!1)},this))};
U9.prototype.setConnectedScreenStatus=function(p,y){Pb("Setting connected screen ID: "+p+" -> "+y);if(this.JSC$19597_session_){var l=this.JSC$19597_session_.screen_;if(!p||l&&l.id!=p)Pb("Unsetting old screen status: "+this.JSC$19597_session_.receiver_.friendlyName),AN(this,null)}if(p&&y){if(!this.JSC$19597_session_){p=yw(this.JSC$19597_screenService_.getScreens(),p);if(!p){Pb("setConnectedScreenStatus: Unknown screen.");return}if(p.idType=="shortLived"){Pb("setConnectedScreenStatus: Screen with id type to be short lived.");
return}l=Wsi(this,p);l||(Pb("setConnectedScreenStatus: Connected receiver not custom..."),l=new chrome.cast.Receiver(p.uuid?p.uuid:p.id,p.name),l.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(l),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.FZ)(function(q){this.warn_("Failed to set initial custom receivers: "+(0,_.xv)(q))},this)));
Pb("setConnectedScreenStatus: new active receiver: "+l.friendlyName);AN(this,new nb(this.JSC$19597_screenService_,l),!0)}this.JSC$19597_session_.setDisplayStatus(y)}else Pb("setConnectedScreenStatus: no screen.")};
var Wsi=function(p,y){return y?_.Na(p.customReceivers_,function(l){return pc(y,l.label)},p):null};
U9.prototype.setLaunchParams=function(p){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19597_session_?this.JSC$19597_session_.launchWithParams(p):this.warn_("Setting connection data without a session")};
U9.prototype.JSC$19599_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19597_session_?(this.JSC$19597_session_.stop(),AN(this,null)):Pb("Stopping non-existing session")};
U9.prototype.requestSession=function(){chrome.cast.requestSession((0,_.FZ)(this.onSessionEstablished_,this),(0,_.FZ)(this.onSessionRequestFailed_,this))};
U9.prototype.disposeInternal=function(){this.JSC$19597_screenService_.unsubscribe("onlineScreenChange",(0,_.FZ)(this.JSC$19599_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.Oc(_.I4("yt.mdx.remote.debug.handlers_")||[],mEu);_.er(this.JSC$19597_session_);_.jS.prototype.disposeInternal.call(this)};
var Pb=function(p){E9("Controller",p)};
U9.prototype.warn_=function(p){E9("Controller",p)};
var mEu=function(p){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(p)},Gg=function(p){return p.hasCastReceiver_||!!p.customReceivers_.length||!!p.JSC$19597_session_},AN=function(p,y,l){y!=p.JSC$19597_session_&&(_.er(p.JSC$19597_session_),(p.JSC$19597_session_=y)?(l?p.publish("yt-remote-cast2-receiver-resumed",y.receiver_):p.publish("yt-remote-cast2-receiver-selected",y.receiver_),y.subscribe("sessionScreen",(0,_.FZ)(p.onSessionScreen_,p,y)),y.subscribe("sessionFailed",
function(){return aJu(p,y)}),y.screen_?p.publish("yt-remote-cast2-session-change",y.screen_):l&&p.JSC$19597_session_.launchWithParams(null)):p.publish("yt-remote-cast2-session-change",null))},aJu=function(p,y){p.JSC$19597_session_==y&&p.publish("yt-remote-cast2-session-failed")};
_.J=U9.prototype;_.J.onSessionScreen_=function(p,y){this.JSC$19597_session_==p&&(y||AN(this,null),this.publish("yt-remote-cast2-session-change",y))};
_.J.onReceiverAction_=function(p,y){if(!this.isDisposed())if(p)switch(p.friendlyName=chrome.cast.unescape(p.friendlyName),Pb("onReceiverAction_ "+p.label+" / "+p.friendlyName+"-- "+y),y){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19597_session_)if(this.JSC$19597_session_.receiver_.label!=p.label)Pb("onReceiverAction_: Stopping active receiver: "+this.JSC$19597_session_.receiver_.friendlyName),this.JSC$19597_session_.stop();else{Pb("onReceiverAction_: Casting to active receiver.");this.JSC$19597_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19597_session_.screen_);break}switch(p.receiverType){case chrome.cast.ReceiverType.CUSTOM:AN(this,new nb(this.JSC$19597_screenService_,p));break;case chrome.cast.ReceiverType.DIAL:AN(this,new ju(this.JSC$19597_screenService_,p,this.JSC$19597_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:AN(this,new $3(this.JSC$19597_screenService_,p,this.config_));break;default:this.warn_("Unknown receiver type: "+p.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19597_session_&&
this.JSC$19597_session_.receiver_.label==p.label?this.JSC$19597_session_.stop():this.warn_("Stopping receiver w/o session: "+p.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.J.onDialLaunchRequested_=function(p){if(this.isDisposed())return Promise.reject(Error("Wk"));var y=p.receiver;y.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+y.friendlyName),y.receiverType=chrome.cast.ReceiverType.DIAL);var l=this.JSC$19597_session_?this.JSC$19597_session_.receiver_:null;if(!l||l.label!=y.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+y.friendlyName),Promise.reject(Error("Xk"));if(l&&l.label==y.label&&l.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19597_session_.screen_)return Pb("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19597_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+l.receiverType+'" to "dial" for '+y.friendlyName);AN(this,new ju(this.JSC$19597_screenService_,y,this.JSC$19597_theme_,this.config_))}y=this.JSC$19597_session_;y.launchData_=p;y.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(p=y.launchData_.extraData||{},l=p.screenId||null,tkA(y)&&p.loungeToken?p.loungeTokenRefreshIntervalMs?p=h8V(y,{name:y.receiver_.friendlyName,screenId:p.screenId,loungeToken:p.loungeToken,dialId:y.launchData_.receiver.label,screenIdType:"shortLived"},p.loungeTokenRefreshIntervalMs):(_.zi(Error("Tk`"+JSON.stringify(p))),p=CAd(y,l)):p=CAd(y,l)):p=cCi(y);return p};
_.J.onSessionEstablished_=function(p){var y=this;if(!this.isDisposed()&&!this.forceMirroring_){Pb("New cast session ID: "+p.sessionId);var l=p.receiver;if(l.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19597_session_)if(l.receiverType==chrome.cast.ReceiverType.CAST)Pb("Got resumed cast session before resumed mdx connection."),l.friendlyName=chrome.cast.unescape(l.friendlyName),AN(this,new $3(this.JSC$19597_screenService_,l,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var q=this.JSC$19597_session_.receiver_,t=yw(this.JSC$19597_screenService_.getScreens(),q.label);t&&pc(t,l.label)&&q.receiverType!=chrome.cast.ReceiverType.CAST&&l.receiverType==chrome.cast.ReceiverType.CAST&&(Pb("onSessionEstablished_: manual to cast session change "+l.friendlyName),_.er(this.JSC$19597_session_),this.JSC$19597_session_=new $3(this.JSC$19597_screenService_,l,this.config_),this.JSC$19597_session_.subscribe("sessionScreen",(0,_.FZ)(this.onSessionScreen_,this,this.JSC$19597_session_)),
this.JSC$19597_session_.subscribe("sessionFailed",function(){return aJu(y,y.JSC$19597_session_)}),this.JSC$19597_session_.launchWithParams(null));
this.JSC$19597_session_.setCastSession(p)}}};
_.J.JSC$19599_getCastSession=function(){return this.JSC$19597_session_?this.JSC$19597_session_.JSC$19583_getCastSession():null};
_.J.onSessionRequestFailed_=function(p){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.xv)(p)),p.code!=chrome.cast.ErrorCode.CANCEL&&AN(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.J.onReceiverUpdated_=function(p){Pb("Receiver availability updated: "+p);if(!this.isDisposed()){var y=Gg(this);this.hasCastReceiver_=p==chrome.cast.ReceiverAvailability.AVAILABLE;Gg(this)!=y&&this.publish("yt-remote-cast2-availability-change",Gg(this))}};
var R8T=function(p){var y=p.JSC$19597_screenService_.JSC$19579_getOnlineScreens(),l=p.JSC$19597_session_&&p.JSC$19597_session_.receiver_;p=_.xI(y,function(q){l&&pc(q,l.label)&&(l=null);var t=q.uuid?q.uuid:q.id,E=Wsi(this,q);E?(E.label=t,E.friendlyName=q.name):(E=new chrome.cast.Receiver(t,q.name),E.receiverType=chrome.cast.ReceiverType.CUSTOM);return E},p);
l&&(l.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(l=new chrome.cast.Receiver(l.label,l.friendlyName),l.receiverType=chrome.cast.ReceiverType.CUSTOM),p.push(l));return p};
U9.prototype.JSC$19599_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=R8T(this),Pb("Updating custom receivers: "+(0,_.xv)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.FZ)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",Gg(this)))};
U9.prototype.setLaunchParams=U9.prototype.setLaunchParams;U9.prototype.setConnectedScreenStatus=U9.prototype.setConnectedScreenStatus;U9.prototype.stopSession=U9.prototype.JSC$19599_stopSession;U9.prototype.getCastSession=U9.prototype.JSC$19599_getCastSession;U9.prototype.requestSession=U9.prototype.requestSession;U9.prototype.init=U9.prototype.init;U9.prototype.dispose=U9.prototype.dispose;var m4R=_.c0(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),fam=[],rB6=_.bz(m4R);var U49=function(p){p.audioTrackId=null;p.trackData=null;p.playerState=-1;p.hasPrevious=!1;p.hasNext=!1;p.playerTime_=0;p.playerTimeAt_=_.$t();p.seekableStart_=0;p.seekableEnd_=0;p.duration_=0;p.loadedTime=0;p.liveIngestionTime_=NaN;p.isLive_=!1};
_.J=$L.prototype;
_.J.reset=function(p){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;p&&(this.index=p.index,this.listId=p.listId,this.videoId=p.videoId,this.playerState=p.playerState,this.volume=p.volume,this.muted=p.muted,this.audioTrackId=p.audioTrackId,this.trackData=p.trackData,this.hasPrevious=p.hasPrevious,this.hasNext=p.hasNext,this.playerTime_=p.playerTime,this.playerTimeAt_=p.playerTimeAt,this.seekableStart_=p.seekableStart,this.seekableEnd_=p.seekableEnd,this.duration_=p.duration,this.loadedTime=
p.loadedTime,this.liveIngestionTime_=p.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.J.stopPlayer=function(){this.index=-1;this.videoId="";U49(this)};
_.J.isPlaying=function(){return this.playerState==1};
_.J.isBuffering=function(){return this.playerState==3};
_.J.isAdPlaying=function(){return this.playerState==1081};
var Z4=function(p,y){p.playerTime_=y;p.playerTimeAt_=_.$t()},$4L=function(p){switch(p.playerState){case 1:case 1081:return(_.$t()-p.playerTimeAt_)/1E3+p.playerTime_;
case -1E3:return 0}return p.playerTime_};
$L.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.$t()-this.playerTimeAt_)/1E3:0):this.duration_};
var jPT=function(p,y,l){var q=p.videoId;p.videoId=y;p.index=l;y!=q&&U49(p)},bPi=function(p){var y={};
y.index=p.index;y.listId=p.listId;y.videoId=p.videoId;y.playerState=p.playerState;y.volume=p.volume;y.muted=p.muted;y.audioTrackId=p.audioTrackId;y.trackData=_.Ts.unsafeClone(p.trackData);y.hasPrevious=p.hasPrevious;y.hasNext=p.hasNext;y.playerTime=p.playerTime_;y.playerTimeAt=p.playerTimeAt_;y.seekableStart=p.seekableStart_;y.seekableEnd=p.seekableEnd_;y.duration=p.duration_;y.loadedTime=p.loadedTime;y.liveIngestionTime=p.liveIngestionTime_;return y};
$L.prototype.clone=function(){return new $L(bPi(this))};var Mx=function(p,y){_.jS.call(this);var l=this;this.state_=0;this.connection_=p;this.contextSubscriptions_=[];this.actionQueue_=new HW7;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.FZ)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.FZ)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.FZ)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.FZ)(this.onCloudviewAvailabilityChange_,this);var q=0;p?(q=p.getProxyState(),
q!=3&&(p.subscribe("proxyStateChange",this.setState_,this),nmw(this))):q=3;q!=0&&(y?this.setState_(q):_.nh(function(){l.setState_(q)},0));
(p=O4T())&&GL7(this,p);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.A(Mx,_.jS);Mx.prototype.getState=function(){return this.state_};
Mx.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Mx.prototype.reconnect=function(){this.connection_.reconnect()};
var VA=function(p){return new $L(p.connection_.getPlayerContextData())};
_.J=Mx.prototype;_.J.play=function(){gj(this)?(this.castMedia_?this.castMedia_.play(null,_.rH,PAV(this,"play")):QA(this,"play"),ACd(this,1,$4L(VA(this))),this.publish("remotePlayerChange")):Kb(this,this.play)};
_.J.pause=function(){gj(this)?(this.castMedia_?this.castMedia_.pause(null,_.rH,PAV(this,"pause")):QA(this,"pause"),ACd(this,2,$4L(VA(this))),this.publish("remotePlayerChange")):Kb(this,this.pause)};
_.J.seekTo=function(p){if(gj(this)){if(this.castMedia_){var y=VA(this),l=new chrome.cast.media.SeekRequest;l.currentTime=p;y.isPlaying()||y.isBuffering()?l.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:l.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(l,_.rH,PAV(this,"seekTo",{newTime:p}))}else QA(this,"seekTo",{newTime:p});ACd(this,3,p);this.publish("remotePlayerChange")}else Kb(this,_.Ky(this.seekTo,p))};
_.J.stop=function(){if(gj(this)){this.castMedia_?this.castMedia_.stop(null,_.rH,PAV(this,"stopVideo")):QA(this,"stopVideo");var p=VA(this);p.stopPlayer();wj(this,p);this.publish("remotePlayerChange")}else Kb(this,this.stop)};
_.J.setVolume=function(p,y){if(gj(this)){var l=VA(this);if(this.castSession_){if(l.volume!=p){var q=Math.round(p)/100;this.castSession_.setReceiverVolumeLevel(q,(0,_.FZ)(function(){Ju("set receiver volume: "+q)},this),(0,_.FZ)(function(){this.warn_("failed to set receiver volume.")},this))}l.muted!=y&&this.castSession_.setReceiverMuted(y,(0,_.FZ)(function(){Ju("set receiver muted: "+y)},this),(0,_.FZ)(function(){this.warn_("failed to set receiver muted.")},this))}else{var t={volume:p,
muted:y};l.volume!=-1&&(t.delta=p-l.volume);QA(this,"setVolume",t)}l.muted=y;l.volume=p;wj(this,l)}else Kb(this,_.Ky(this.setVolume,p,y))};
_.J.setAudioTrack=function(p,y){gj(this)?(y=y.getLanguageInfo().getId(),QA(this,"setAudioTrack",{videoId:p,audioTrackId:y}),p=VA(this),p.audioTrackId=y,wj(this,p)):Kb(this,_.Ky(this.setAudioTrack,p,y))};
_.J.addVideo=function(p){gj(this)?QA(this,"addVideo",{videoId:p}):Kb(this,_.Ky(this.addVideo,p))};
_.J.addPlaylist=function(p){gj(this)?QA(this,"addVideos",{listId:p}):Kb(this,_.Ky(this.addPlaylist,p))};
_.J.addVideos=function(p){p.length==0?this.warn_("Ignore add videos request due to empty list"):gj(this)?QA(this,"addVideos",{videoIds:p.join(",")}):Kb(this,_.Ky(this.addVideos,p))};
_.J.JSC$19609_removeVideo=function(p){gj(this)?QA(this,"removeVideo",{videoId:p}):Kb(this,_.Ky(this.JSC$19609_removeVideo,p))};
_.J.JSC$19609_insertVideo=function(p){gj(this)?QA(this,"insertVideo",{videoId:p}):Kb(this,_.Ky(this.JSC$19609_insertVideo,p))};
_.J.playVideo=function(p,y,l,q,t,E,e){q=q===void 0?null:q;t=t===void 0?null:t;E=E===void 0?null:E;e=e===void 0?null:e;var C=VA(this),u={videoId:p};l!==void 0&&(u.currentIndex=l);jPT(C,p,l||0);y!==void 0&&(Z4(C,y),u.currentTime=y);q&&(u.listId=q);t&&(u.playerParams=t);E&&(u.clickTrackingParams=E);e&&(u.locationInfo=(0,_.xv)(e));QA(this,"setPlaylist",u);q||wj(this,C)};
_.J.nextVideo=function(p,y){if(gj(this)){if(p&&y){var l=VA(this);jPT(l,p,y);wj(this,l)}QA(this,"next")}else Kb(this,_.Ky(this.nextVideo,p,y))};
_.J.clearPlaylist=function(){if(gj(this)){QA(this,"clearPlaylist");var p=VA(this);p.reset();wj(this,p);this.publish("remotePlayerChange")}else Kb(this,this.clearPlaylist)};
_.J.dispose=function(){if(this.state_!=3){var p=this.state_;this.state_=3;this.publish("proxyStateChange",p,this.state_)}_.jS.prototype.dispose.call(this)};
_.J.disposeInternal=function(){ZPO(this);this.connection_=null;this.actionQueue_.clear();GL7(this,null);_.jS.prototype.disposeInternal.call(this)};
var nmw=function(p){_.lv("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(y){this.contextSubscriptions_.push(this.connection_.subscribe(y,_.Ky(this.onProxyEvent_,y),this))},p)},ZPO=function(p){_.lv(p.contextSubscriptions_,function(y){this.connection_.unsubscribeByKey(y)},p);
p.contextSubscriptions_.length=0},gj=function(p){return p.getState()==1},Kb=function(p,y){p.actionQueue_.getCount()<50&&p.actionQueue_.enqueue(y)},ACd=function(p,y,l){var q=VA(p);
Z4(q,l);q.playerState!=-1E3&&(q.playerState=y);wj(p,q)},QA=function(p,y,l){p.connection_.sendMessage(y,l)},wj=function(p,y){ZPO(p);
p.connection_.setPlayerContextData(bPi(y));nmw(p)};
Mx.prototype.setState_=function(p){if((p!=this.state_||p==2)&&this.state_!=3&&p!=0){var y=this.state_;this.state_=p;this.publish("proxyStateChange",y,p);if(p==1)for(;!this.actionQueue_.isEmpty();)p=this.actionQueue_,DbO(p),p.front_.pop().apply(this);else p==3&&this.dispose()}};
Mx.prototype.onProxyEvent_=function(p,y){this.publish(p,y)};
var GL7=function(p,y){p.castSession_&&(p.castSession_.removeUpdateListener(p.boundCastStatusListener_),p.castSession_.removeMediaListener(p.boundCastMediaListener_),p.onCastMediaChange_(null));p.castSession_=y;if(p.castSession_&&(Ju("Setting cast session: "+p.castSession_.sessionId),p.castSession_.addUpdateListener(p.boundCastStatusListener_),p.castSession_.addMediaListener(p.boundCastMediaListener_),p.castSession_.media.length))p.onCastMediaChange_(p.castSession_.media[0])};
Mx.prototype.onCastStatusUpdate_=function(p){if(!p)this.onCastMediaChange_(null),GL7(this,null);else if(this.castSession_.receiver.volume){p=this.castSession_.receiver.volume;var y=VA(this),l=Math.round(100*p.level||0);if(y.volume!=l||y.muted!=p.muted)Ju("Cast volume update: "+p.level+(p.muted?" muted":"")),y.volume=l,y.muted=!!p.muted,wj(this,y)}};
Mx.prototype.onCastMediaChange_=function(p){Ju("Cast media: "+!!p);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=p)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),MkV(this),this.publish("remotePlayerChange")};
var MkV=function(p){var y=p.castMedia_.media,l=p.castMedia_.customData;if(y&&l){var q=VA(p);y.contentId!=q.videoId&&Ju("Cast changing video to: "+y.contentId);q.videoId=y.contentId;q.playerState=l.playerState;Z4(q,p.castMedia_.getEstimatedTime());wj(p,q)}else Ju("No cast media video. Ignoring state update.")};
Mx.prototype.onCastMediaUpdate_=function(p){if(p)MkV(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Mx.prototype.onCloudviewAvailabilityChange_=function(){var p=O4T();p&&GL7(this,p)};
Mx.prototype.warn_=function(p){E9("CP",p)};
var PAV=function(p,y,l){return(0,_.FZ)(function(q){this.warn_("Failed to "+y+" with cast v2 channel. Error code: "+q.code);q.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+y+" using MDx browser channel."),QA(this,y,l))},p)};var rj=function(p,y,l,q){q=q===void 0?!1:q;_.jS.call(this);var t=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$19616_http_=p;this.enableConnectWithInitialState_=q;this.listeners_.push(_.hp(window,"beforeunload",function(){t.JSC$19619_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new $L;this.currentScreenId_=y.id;this.currentScreenIdType_=y.idType;this.channelService=aa9(this.JSC$19616_http_,l,this.JSC$19619_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){Vku(t)});
this.channelService.listen("channelClosed",function(){iC("Channel closed");isNaN(t.connectTimerId_)?ld(!0):ld();t.dispose()});
this.channelService.listen("channelError",function(E){ld();isNaN(t.getReconnectTimeout_())?(E==1&&t.currentScreenIdType_=="shortLived"&&t.publish("browserChannelAuthError",E),iC("Channel error: "+E+" without reconnection"),t.dispose()):(t.reconnecting_=!0,iC("Channel error: "+E+" with reconnection in "+t.getReconnectTimeout_()+" ms"),gm1(t,2))});
this.channelService.listen("channelMessage",function(E){QPi(t,E)});
this.channelService.setLoungeToken(y.token);this.subscribe("remoteQueueChange",function(){var E=t.playerContext_.videoId;yBO()&&_.gB("yt-remote-session-video-id",E)})};
_.A(rj,_.jS);
rj.prototype.connect=function(p,y){if(y){var l=y.listId,q=y.videoId,t=y.videoIds,E=y.playerParams,e=y.clickTrackingParams,C=y.index,u={videoId:q},a=y.currentTime,m=y.locationInfo;y=y.loopMode;a!==void 0&&(u.currentTime=a<=5?0:a);E&&(u.playerParams=E);m&&(u.locationInfo=m);e&&(u.clickTrackingParams=e);l&&(u.listId=l);t&&t.length>0&&(u.videoIds=t.join(","));C!==void 0&&(u.currentIndex=C);this.enableConnectWithInitialState_&&(u.loopMode=y||"LOOP_MODE_OFF");l&&(this.playerContext_.listId=l);this.playerContext_.videoId=
q;this.playerContext_.index=C||0;this.playerContext_.state=3;Z4(this.playerContext_,a);this.autoplayMode_="UNSUPPORTED";l=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";iC("Connecting with "+l+" and params: "+(0,_.xv)(u));this.channelService.connect({method:l,params:(0,_.xv)(u)},p,E9d())}else iC("Connecting without params"),this.channelService.connect({},p,E9d());Ksd(this)};
rj.prototype.setLoungeToken=function(p){this.channelService.setLoungeToken(p)};
rj.prototype.dispose=function(){this.isDisposed()||(_.e0("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),gm1(this,3));_.jS.prototype.dispose.call(this)};
rj.prototype.disposeInternal=function(){wSd(this);iPi(this);rCi(this);_.PC(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.PC(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.QFc(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.jS.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var Sg1=function(p){return _.Na(p.connectedDevices_,function(y){return y.type=="LOUNGE_SCREEN"})},iC=function(p){E9("conn",p)},gm1=function(p,y){p.publish("proxyStateChange",y)},Ksd=function(p){p.connectTimerId_=_.nh(function(){iC("Connecting timeout");
p.JSC$19619_disconnect_(1)},2E4)},wSd=function(p){_.PC(p.connectTimerId_);
p.connectTimerId_=NaN},rCi=function(p){_.PC(p.reconnectedCheckScreenTimeout_);
p.reconnectedCheckScreenTimeout_=NaN},Fsw=function(p){iPi(p);
p.playingSyncTimerId_=_.nh(function(){Su(p,"getNowPlaying")},2E4)},iPi=function(p){_.PC(p.playingSyncTimerId_);
p.playingSyncTimerId_=NaN},Vku=function(p){iC("Channel opened");
p.reconnecting_&&(p.reconnecting_=!1,rCi(p),p.reconnectedCheckScreenTimeout_=_.nh(function(){iC("Timing out waiting for a screen.");p.JSC$19619_disconnect_(1)},15E3))},kLT=function(p,y){var l=null;
if(y){var q=Sg1(p);q&&(l={clientName:q.clientName,deviceMake:q.brand,deviceModel:q.model,osVersion:q.osVersion})}_.e0("yt.mdx.remote.remoteClient_",l);y&&(wSd(p),rCi(p));l=p.channelService.isChannelOpened()&&isNaN(p.connectTimerId_);y==l?y&&(gm1(p,1),Su(p,"getSubtitlesTrack")):y?(p.getOtherConnectedRemoteId_()&&p.playerContext_.reset(),gm1(p,1),Su(p,"getNowPlaying"),Lsw(p)):p.JSC$19619_disconnect_(1)},N3T=function(p,y){var l=y.params.videoId;
delete y.params.videoId;l==p.playerContext_.videoId&&(_.Ts.isEmpty(y.params)?p.playerContext_.trackData=null:p.playerContext_.trackData=y.params,p.publish("remotePlayerChange"))},D4m=function(p,y,l){var q=y.params.videoId||y.params.video_id,t=parseInt(y.params.currentIndex,10);
p.playerContext_.listId=y.params.listId||p.playerContext_.listId;jPT(p.playerContext_,q,t);p.publish("remoteQueueChange",l)},HPd=function(p,y){y.params=y.params||{};
D4m(p,y,"NOW_PLAYING_MAY_CHANGE");p.onStateChange_(y);p.publish("autoplayDismissed")};
rj.prototype.onStateChange_=function(p){var y=parseInt(p.params.currentTime||p.params.current_time,10);Z4(this.playerContext_,isNaN(y)?0:y);y=parseInt(p.params.state,10);y=isNaN(y)?-1:y;y==-1&&this.playerContext_.playerState==-1E3&&(y=-1E3);this.playerContext_.playerState=y;y=Number(p.params.loadedTime);this.playerContext_.loadedTime=isNaN(y)?0:y;y=Number(p.params.duration);this.playerContext_.duration_=isNaN(y)?0:y;y=this.playerContext_;var l=Number(p.params.liveIngestionTime);y.liveIngestionTime_=
l;y.isLive_=isNaN(l)?!1:!0;y=this.playerContext_;l=Number(p.params.seekableStartTime);p=Number(p.params.seekableEndTime);y.seekableStart_=isNaN(l)?0:l;y.seekableEnd_=isNaN(p)?0:p;this.playerContext_.playerState==1?Fsw(this):iPi(this);this.publish("remotePlayerChange")};
rj.prototype.onAdStateChange_=function(p){if(this.playerContext_.playerState!=-1E3){var y=1085;switch(parseInt(p.params.adState,10)){case 1:y=1081;break;case 2:y=1084;break;case 0:y=1083}this.playerContext_.playerState=y;p=parseInt(p.params.currentTime,10);Z4(this.playerContext_,isNaN(p)?0:p);this.publish("remotePlayerChange")}};
var T3w=function(p,y){var l=y.params.muted=="true";p.playerContext_.volume=parseInt(y.params.volume,10);p.playerContext_.muted=l;p.publish("remotePlayerChange")},x4O=function(p,y){p.autoplayVideoId_=y.params.videoId;
p.publish("nowAutoplaying",parseInt(y.params.timeout,10))},B39=function(p,y){p.autoplayVideoId_=y.params.videoId||null;
p.publish("autoplayUpNext",p.autoplayVideoId_)},fJd=function(p,y){p.autoplayMode_=y.params.autoplayMode;
p.publish("autoplayModeChange",p.autoplayMode_);p.autoplayMode_=="DISABLED"&&p.publish("autoplayDismissed")},vmm=function(p,y){var l=y.params.hasNext=="true";
p.playerContext_.hasPrevious=y.params.hasPrevious=="true";p.playerContext_.hasNext=l;p.publish("previousNextChange")};
rj.prototype.isCapabilitySupportedOnConnectedDevices_=function(p){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var y=_.c(this.connectedDevices_),l=y.next();!l.done;l=y.next())if(!l.value.capabilities.has(p))return!1;return!0};
var QPi=function(p,y){y=y.message;y.params?iC("Received: action="+y.action+", params="+(0,_.xv)(y.params)):iC("Received: action="+y.action+" {}");switch(y.action){case "loungeStatus":y=(0,_.Nf)(y.params.devices);p.connectedDevices_=_.xI(y,function(q){return new RS(q)});
y=!!_.Na(p.connectedDevices_,function(q){return q.type=="LOUNGE_SCREEN"});
kLT(p,y);y=p.isCapabilitySupportedOnConnectedDevices_("mlm");p.publish("multiStateLoopEnabled",y);break;case "loungeScreenDisconnected":UtV(p.connectedDevices_,function(q){return q.type=="LOUNGE_SCREEN"});
kLT(p,!1);break;case "remoteConnected":var l=new RS((0,_.Nf)(y.params.device));_.Na(p.connectedDevices_,function(q){return q.equals(l)})||_.f8(p.connectedDevices_,l);
break;case "remoteDisconnected":l=new RS((0,_.Nf)(y.params.device));UtV(p.connectedDevices_,function(q){return q.equals(l)});
break;case "gracefulDisconnect":break;case "playlistModified":D4m(p,y,"QUEUE_MODIFIED");break;case "nowPlaying":HPd(p,y);break;case "onStateChange":p.onStateChange_(y);break;case "onAdStateChange":p.onAdStateChange_(y);break;case "onVolumeChanged":T3w(p,y);break;case "onSubtitlesTrackChanged":N3T(p,y);break;case "nowAutoplaying":x4O(p,y);break;case "autoplayDismissed":p.publish("autoplayDismissed");break;case "autoplayUpNext":B39(p,y);break;case "onAutoplayModeChanged":fJd(p,y);break;case "onHasPreviousNextChanged":vmm(p,
y);break;case "requestAssistedSignIn":p.publish("assistedSignInRequested",y.params.authCode);break;case "onLoopModeChanged":p.publish("loopModeChange",y.params.loopMode);break;default:iC("Unrecognized action: "+y.action)}};
_.J=rj.prototype;_.J.getProxyState_=function(){var p=3;this.isDisposed()||(p=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(p=1):p=2);return p};
_.J.JSC$19619_disconnect_=function(p){iC("Disconnecting with "+p);_.e0("yt.mdx.remote.remoteClient_",null);wSd(this);this.publish("beforeDisconnect",p);p==1&&ld();this.channelService.disconnect(p);this.dispose()};
_.J.getPlayerContextData_=function(){var p=this.playerContext_;this.clientVideoId_&&(p=this.playerContext_.clone(),jPT(p,this.clientVideoId_,p.index));return bPi(p)};
_.J.setPlayerContextData_=function(p){var y=this,l=new $L(p);l.videoId&&l.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=l.videoId,_.PC(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.nh(function(){if(y.clientVideoId_){var t=y.clientVideoId_;y.clientVideoId_=null;y.playerContext_.videoId!=t&&Su(y,"getNowPlaying")}},5E3));
var q=[];this.playerContext_.listId==l.listId&&this.playerContext_.videoId==l.videoId&&this.playerContext_.index==l.index||q.push("remoteQueueChange");this.playerContext_.playerState==l.playerState&&this.playerContext_.volume==l.volume&&this.playerContext_.muted==l.muted&&$4L(this.playerContext_)==$4L(l)&&(0,_.xv)(this.playerContext_.trackData)==(0,_.xv)(l.trackData)||q.push("remotePlayerChange");this.playerContext_.reset(p);_.lv(q,function(t){this.publish(t)},this)};
_.J.getOtherConnectedRemoteId_=function(){var p=this.channelService.getDeviceId(),y=_.Na(this.connectedDevices_,function(l){return l.type=="REMOTE_CONTROL"&&l.id!=p});
return y?y.id:""};
_.J.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.J.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.J.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.J.JSC$19619_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var Lsw=function(p){_.PC(p.idleDisconnectTimerId_);p.idleDisconnectTimerId_=_.nh(function(){p.JSC$19619_disconnect_(1)},864E5)},Su=function(p,y,l){l?iC("Sending: action="+y+", params="+(0,_.xv)(l)):iC("Sending: action="+y);
p.channelService.sendMessage(y,l)};
rj.prototype.sendMessageWithUserAction_=function(p,y){Su(this,p,y);Lsw(this)};
rj.prototype.JSC$19619_getXsrfToken_=function(){var p=_.Q$.get("SAPISID","")||_.Q$.get("__Secure-1PAPISID",void 0)||"",y=_.Q$.get("__Secure-3PAPISID","")||"";if(!p&&!y)return"";p=_.HR(_.rg(p),2);y=_.HR(_.rg(y),2);return _.HR(_.rg(","+p+","+y),2)};
rj.prototype.subscribe=rj.prototype.subscribe;rj.prototype.unsubscribeByKey=rj.prototype.unsubscribeByKey;rj.prototype.getProxyState=rj.prototype.getProxyState_;rj.prototype.disconnect=rj.prototype.JSC$19619_disconnect_;rj.prototype.getPlayerContextData=rj.prototype.getPlayerContextData_;rj.prototype.setPlayerContextData=rj.prototype.setPlayerContextData_;rj.prototype.getOtherConnectedRemoteId=rj.prototype.getOtherConnectedRemoteId_;rj.prototype.getReconnectTimeout=rj.prototype.getReconnectTimeout_;
rj.prototype.getAutoplayMode=rj.prototype.getAutoplayMode_;rj.prototype.getAutoplayVideoId=rj.prototype.getAutoplayVideoId_;rj.prototype.reconnect=rj.prototype.JSC$19619_reconnect_;rj.prototype.sendMessage=rj.prototype.sendMessageWithUserAction_;rj.prototype.getXsrfToken=rj.prototype.JSC$19619_getXsrfToken_;rj.prototype.isCapabilitySupportedOnConnectedDevices=rj.prototype.isCapabilitySupportedOnConnectedDevices_;var XSw=function(p){eU.call(this,"ScreenServiceProxy");this.instance_=p;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.FZ)(this.JSC$19622_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.FZ)(this.onOnlineScreenChange_,this)))};
_.A(XSw,eU);_.J=XSw.prototype;_.J.getScreens=function(p){return this.instance_.$_gs(p)};
_.J.contains=function(p){return!!this.instance_.$_c(p)};
_.J.get=function(p){return this.instance_.$_g(p)};
_.J.start=function(){this.instance_.$_st()};
_.J.add=function(p,y,l){this.instance_.$_a(p,y,l)};
_.J.remove=function(p,y,l){this.instance_.$_r(p,y,l)};
_.J.updateName=function(p,y,l,q){this.instance_.$_un(p,y,l,q)};
_.J.disposeInternal=function(){for(var p=this.subscriptionKeys_.length,y=0;y<p;++y)this.instance_.$_ubk(this.subscriptionKeys_[y]);this.subscriptionKeys_.length=0;this.instance_=null;eU.prototype.disposeInternal.call(this)};
_.J.JSC$19622_onScreenChange_=function(){this.publish("screenChange")};
_.J.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
ud.prototype.$_st=ud.prototype.start;ud.prototype.$_gspc=ud.prototype.JSC$19579_getScreenByPairingCode;ud.prototype.$_gsppc=ud.prototype.JSC$19579_getScreenByPollingPairingCode;ud.prototype.$_c=ud.prototype.contains;ud.prototype.$_g=ud.prototype.get;ud.prototype.$_a=ud.prototype.add;ud.prototype.$_un=ud.prototype.updateName;ud.prototype.$_r=ud.prototype.remove;ud.prototype.$_gs=ud.prototype.getScreens;ud.prototype.$_gos=ud.prototype.JSC$19579_getOnlineScreens;ud.prototype.$_s=ud.prototype.subscribe;
ud.prototype.$_ubk=ud.prototype.unsubscribeByKey;var p8u=function(p){hAL();if(!q2||!q2.get("yt-remote-disable-remote-module-for-dev")){p=_.OY("MDX_CONFIG")||p;VPd();qKu();Fk||(Fk=new YK(p?p.loungeApiHost:void 0),CSO()&&(Fk.basePath="/api/loungedev"));Lb||(Lb=_.I4("yt.mdx.remote.deferredProxies_")||[],_.e0("yt.mdx.remote.deferredProxies_",Lb));d4w();var y=k3();if(!y){var l=new ud(Fk,p?p.disableAutomaticScreenCache||!1:!1);_.e0("yt.mdx.remote.screenService_",l);y=k3();var q={};p&&(q={appId:p.appId,disableDial:p.disableDial,theme:p.theme,loadCastApiSetupScript:p.loadCastApiSetupScript,
disableCastApi:p.disableCastApi,enableDialLoungeToken:p.enableDialLoungeToken,enableCastLoungeToken:p.enableCastLoungeToken,forceMirroring:p.forceMirroring});_.e0("yt.mdx.remote.enableConnectWithInitialState_",p?p.enableConnectWithInitialState||!1:!1);xEu(l,function(E){E?Nx()&&zA1(Nx(),"YouTube TV"):l.subscribe("onlineScreenChange",function(){ZB("yt-remote-receiver-availability-change")})},q)}if(p&&!_.I4("yt.mdx.remote.initialized_")){_.e0("yt.mdx.remote.initialized_",!0);
D4("Initializing: "+(0,_.xv)(p));Hb.push(_.UL("yt-remote-cast2-api-ready",function(){ZB("yt-remote-api-ready")}));
Hb.push(_.UL("yt-remote-cast2-availability-change",function(){ZB("yt-remote-receiver-availability-change")}));
Hb.push(_.UL("yt-remote-cast2-receiver-selected",function(){OP1();ZB("yt-remote-auto-connect","cast-selector-receiver")}));
Hb.push(_.UL("yt-remote-cast2-receiver-resumed",function(){ZB("yt-remote-receiver-resumed","cast-selector-receiver")}));
Hb.push(_.UL("yt-remote-cast2-session-change",omV));Hb.push(_.UL("yt-remote-connection-change",function(E){E?zA1(Nx(),"YouTube TV"):z81()||(zA1(null,null),dE1())}));
Hb.push(_.UL("yt-remote-cast2-session-failed",function(){ZB("yt-remote-connection-failed")}));
q=YgO();p.isAuto&&(q.id+="#dial");var t=p.capabilities||[];t.length>0&&(q.capabilities=t);q.name=p.device;q.app=p.app;(p=p.theme)&&(q.theme=p);D4(" -- with channel params: "+(0,_.xv)(q));q?(_.gB("yt-remote-session-app",q.app),_.gB("yt-remote-session-name",q.name)):(_.KI("yt-remote-session-app"),_.KI("yt-remote-session-name"));_.e0("yt.mdx.remote.channelParams_",q);y.start();Nx()||IJd()}}},loO=function(){var p=k3().instance_.$_gos();
var y=yFR();y&&Tg()&&(Yt6(p,y)||p.push(y));return z37(p)},qWd=function(){var p=loO(),y=yFR();
y||(y=z81());return _.Na(p,function(l){return y&&pc(y,l.key)?!0:!1})},yFR=function(){var p=Nx();
if(!p)return null;var y=k3().getScreens();return yw(y,p)},omV=function(p){D4("remote.onCastSessionChange_: "+YKO(p));
if(p){var y=yFR();y&&y.id==p.id?(zA1(y.id,"YouTube TV"),p.idType=="shortLived"&&(p=p.token)&&(y=Tg())&&y.setLoungeToken(p)):(y&&swL(),tE9(p,1))}else Tg()&&swL()},swL=function(){o9O()?mW().stopSession():aj("stopSession called before API ready.");
var p=Tg();p&&(p.disconnect(1),EGT(null))},JFR=function(){var p=Tg();
return p&&p.getProxyState()!=3?new Mx(Tg(),void 0):null},D4=function(p){E9("remote",p)},k3=function(){if(!cFR){var p=_.I4("yt.mdx.remote.screenService_");
cFR=p?new XSw(p):null}return cFR},Nx=function(){return _.I4("yt.mdx.remote.currentScreenId_")},ecO=function(p){_.e0("yt.mdx.remote.currentScreenId_",p)},OP1=function(){_.e0("yt.mdx.remote.connectData_",null)},Tg=function(){return _.I4("yt.mdx.remote.connection_")},EGT=function(p){var y=Tg();
OP1();p||ecO("");_.e0("yt.mdx.remote.connection_",p);Lb&&(_.lv(Lb,function(l){l(p)}),Lb.length=0);
y&&!p?ZB("yt-remote-connection-change",!1):!y&&p&&ZB("yt-remote-connection-change",!0)},z81=function(){var p=yBO();
if(!p)return null;var y=k3();if(!y)return null;y=y.getScreens();return yw(y,p)},tE9=function(p,y){ecO(p.id);
p=new rj(Fk,p,YgO(),_.I4("yt.mdx.remote.enableConnectWithInitialState_")||!1);p.connect(y,_.I4("yt.mdx.remote.connectData_"));p.subscribe("beforeDisconnect",function(l){ZB("yt-remote-before-disconnect",l)});
p.subscribe("beforeDispose",function(){Tg()&&EGT(null)});
p.subscribe("browserChannelAuthError",function(){var l=yFR();l&&l.idType=="shortLived"&&(o9O()?mW().handleBrowserChannelAuthError():aj("refreshLoungeToken called before API ready."))});
EGT(p)},IJd=function(){var p=z81();
p?(D4("Resume connection to: "+YKO(p)),tE9(p,0)):(ld(),dE1(),D4("Skipping connecting because no session screen found."))},Fk=null,Lb=null,cFR=null,d4w=function(){var p=YgO();
if(_.Ts.isEmpty(p)){p=pI1();var y=_.Qh("yt-remote-session-name")||"",l=_.Qh("yt-remote-session-app")||"";p={device:"REMOTE_CONTROL",id:p,name:y,app:l,mdxVersion:3};p.authuser=String(_.OY("SESSION_INDEX","0"));(y=_.OY("DELEGATED_SESSION_ID"))&&(p.pageId=String(y));_.e0("yt.mdx.remote.channelParams_",p)}},YgO=function(){return _.I4("yt.mdx.remote.channelParams_")||{}},Hb=[];var hcd=new _.XL("yt-menu"),C1R=function(){},Rcm=function(p,y,l){p=y=="right-click"?l.rightClickMenuPopupHint:l.menuPopupHint;
if(!(u77(y)>10))return y=y||"default",hcd.set(y+"-impression",u77(y)+1),p},u77=function(p){return parseInt(hcd.get((p||"default")+"-impression")||0,10)};
_.Ua(C1R);var WST=function(){this.contexts_=new WeakMap;this.JSC$19628_networkService_=this.activeContext_=null},aod=function(p,y,l){var q=p.contexts_.get(y);
q||(q=new Zp7(p.JSC$19628_networkService_),p.contexts_.set(y,q));p.activeContext_=q;l&&p.activeContext_.reset();p.activeContext_.start();return p.activeContext_};var x3=function(){};
x3.prototype.enqueue=function(){var p=this,y;return _.h(function(l){if(p.isCounterfactual())return(y=p.getCounterfactualData())&&p.shouldLogCounterfactualImpression()&&p.sendImpressionEndpoints(y),l.return();p.doEnqueue();_.rR(l)})};
x3.prototype.sendImpressionEndpoints=function(p){_.pt.getInstance().triggerOptionalAction("yt-service-request",{},p[0])};var Bb=function(p,y){this.renderer=p;this.page=y};
_.A(Bb,x3);Bb.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
Bb.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
Bb.prototype.shouldLogCounterfactualImpression=function(){return!0};
Bb.prototype.doEnqueue=function(){var p=_.UZ(this.page);p&&p.pause();this.renderer.impressionCommand&&_.pt.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.oL(_.pt.getInstance(),[this.renderer.promoCommand],this.page)};var mId=function(p,y){this.renderer=p;this.resolver=_.hs();this.JSC$19640_enforcementCounter=new _.X9B;y?this.JSC$19640_playerManager=_.UZ(y):this.JSC$19640_playerManager=null;_.gC(1,!0)};
_.A(mId,x3);_.J=mId.prototype;_.J.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var p=[];this.renderer.impressionEndpoints.forEach(function(y){(y=_.yM(y))&&p.push(y)});
return p}};
_.J.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.J.shouldLogCounterfactualImpression=function(){var p=_.BAj();p?(this.JSC$19640_enforcementCounter.increment("POPUP"),_.gC(3)):_.gC(2);return p};
_.J.cancel=function(){this.resolver.promise.cancel()};
_.J.doEnqueue=function(){var p=this;_.BAj()?(this.JSC$19640_enforcementCounter.increment("POPUP"),_.gC(3),UIR(this)):this.JSC$19640_playerManager?(this.resolver.promise.then(function(){UIR(p)}),$IV(this.resolver,this.JSC$19640_playerManager)):_.gC(2)};
var $IV=function(p,y){var l=_.hs();y.getPlayerPromise().then(function(q){l.resolve(q)});
l.promise.then(function(q){q.addEventListener("onAbnormalityDetected",p.resolve);_.DO(p.promise,function(){q.removeEventListener("onAbnormalityDetected",p.resolve)})});
p.promise.thenCatch(function(){l.promise.cancel()})},UIR=function(p){_.gC(3);
var y={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:p.renderer}};y=_.pt.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:y},{});Promise.all(y).then(function(){jwO();p.JSC$19640_playerManager&&p.JSC$19640_playerManager.pause()})},jwO=function(){l_R(function(p,y){_.lei(p,y);
p===0?_.gC(7):_.gC(4)})};var b91=function(p,y){this.renderer=p;this.page=y;this.resolver=_.hs()};
_.A(b91,x3);_.J=b91.prototype;_.J.cancel=function(){this.resolver.promise.cancel()};
_.J.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.J.isCounterfactual=function(){return!this.renderer.isVisible};
_.J.shouldLogCounterfactualImpression=function(){return!0};
_.J.doEnqueue=function(){var p=this;this.resolver.promise.then(function(){var l={popup:{mealbarPromoRenderer:p.renderer},popupType:"MEALBAR"};_.pt.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:l},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var y=_.UZ(this.page);y&&nGi(this.resolver,y)}break;default:this.resolver.resolve()}};
var nGi=function(p,y){var l=_.hs();y.getPlayerPromise().then(function(q){l.resolve(q)});
l.promise.then(function(q){q.addEventListener("onAdEnd",p.resolve);_.DO(p.promise,function(){q.removeEventListener("onAdEnd",p.resolve)})});
p.promise.thenCatch(function(){l.promise.cancel()})};var GuR=function(p,y){this.renderer=p;this.page=y};
_.A(GuR,x3);_.J=GuR.prototype;_.J.cancel=function(){this.JSC$19648_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19648_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19648_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.J.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.J.isCounterfactual=function(){return!this.renderer.isVisible};
_.J.shouldLogCounterfactualImpression=function(){return!0};
_.J.doEnqueue=function(){var p=this,y,l;((y=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(l=y.playbackUpsellDialogTriggerConditionData)==null?void 0:l.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19648_downloadedVideosCountSelectorUnsubscriber=_.Lw(_.ei(),zIL,function(q,t){q>t&&(P19(p),p.cancel())}):P19(this)};
var P19=function(p){var y={popup:{upsellDialogRenderer:p.renderer},popupType:"MODAL"};_.pt.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:y},{});(p=_.UZ(p.page))&&p.pause()};var fb={},AFR=(fb.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",fb.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",fb.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",fb.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",fb.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",fb.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",fb.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",fb),Z9i=function(p,y){this.renderer=p;this.targetManager=
y};
_.A(Z9i,x3);_.J=Z9i.prototype;_.J.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19655_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19655_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19655_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.J.getCounterfactualData=function(){if(this.isCounterfactual()){var p;return(p=this.renderer.promoConfig)==null?void 0:p.impressionEndpoints}};
_.J.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.J.shouldLogCounterfactualImpression=function(){return!0};
_.J.doEnqueue=function(){var p=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19655_downloadedVideosCountSelectorUnsubscriber=_.Lw(_.ei(),zIL,function(y,l){p.renderer.targetId&&y>l&&(Bi6(p.targetManager,p.renderer.targetId,MEu(p)),p.cancel())});
break;default:Bi6(this.targetManager,this.renderer.targetId,MEu(this))}};
var MEu=function(p){var y;if((y=p.renderer.suggestedPosition)==null?0:y.type)var l=AFR[p.renderer.suggestedPosition.type];l||(l="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:p.renderer},popupType:"HINT",position:l}}};var VE1=function(){this.previousPage=null},gG6;
VE1.prototype.registerPromoCommand=function(p,y){QwL(this,void 0,void 0,_.G(p.roadblock,f1i),void 0,void 0,y)};
var QwL=function(p,y,l,q,t,E,e){p.previousPage!==e&&p.pendingTooltipPromo&&p.pendingTooltipPromo.cancel();p.previousPage=e;t?(p.pendingEnforcementPromo&&p.pendingEnforcementPromo.cancel(),p.pendingEnforcementPromo=new mId(t,e),p.pendingEnforcementPromo.enqueue()):E?(p.pendingCommandWrapperPromo=new Bb(E,e),p.pendingCommandWrapperPromo.enqueue()):q?(p.pendingRoadblockPromo&&p.pendingRoadblockPromo.cancel(),p.pendingRoadblockPromo=new GuR(q,e),p.pendingRoadblockPromo.enqueue()):y?(p.pendingMealbarPromo&&
p.pendingMealbarPromo.cancel(),p.pendingMealbarPromo=new b91(y,e),p.pendingMealbarPromo.enqueue()):l&&(p.pendingTooltipPromo&&p.pendingTooltipPromo.cancel(),p.pendingTooltipPromo=new Z9i(l,_.T7()),p.pendingTooltipPromo.enqueue())},KSA=function(){gG6||(gG6=new VE1);
return gG6};var lLw=!1;var dWV=function(p,y){var l=_.OY("SESSION_INDEX");this.actionToken_=p;this.commonToken_=y;this.sessionIndex_=l},X$1=function(p){var y=_.hs(),l=_.I4("payments.business.integration.bootstrap"),q=_.I4("payments.business.integration"),t=q.Style.create().withMaterialDesignStyle(),E=q.mashupMode.popup("instrument-manager");
l.asMashupMode(E).usingUserIndex(p.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(t).inStandaloneContext(q.standaloneContextAuthId.forUserId()).instrumentManager(p.actionToken_,p.commonToken_.length>0?p.commonToken_:void 0,function(e){var C=e.instrumentId;C?y.resolve(C):(C=_.I4("payments.business.integration.scenario.InstrumentManager"),y.reject(e.errorCode&&e.errorCode===C.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(e){_.zi(e);
y.reject("instrumentManagerLoadError")});
return y.promise};var PB=function(p,y,l){this.payloadName="transactionFlowFailed";this.payload={errorType:p,serializedTransactionFlowLoggingParams:y,isUserDismiss:l===void 0?!1:l}};
_.e0("yt.ypc.shared.YpcTransactionFlowError",PB);var vb=function(){return _.FA.apply(this,arguments)||this};
_.A(vb,_.FA);vb.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
vb.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
vb.prototype.onErrorMessageDismiss=vb.prototype.onErrorMessageDismiss;_.H([_.Q({readOnly:!0,observer:"errorRendererChanged"}),_.x("design:type",Object)],vb.prototype,"errorRenderer",void 0);_.H([_.VU("yt-live-chat-error-message-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vb.prototype,"onErrorMessageDismiss",null);_.H([_.Lv()],vb);var w8T=[vb.prototype];var i99;var rF7;var SWw=new _.XL("yt-live-chat"),FS1=new Map;FS1.set("timestamp_toggle","show-timestamps");FS1.set("reactions_toggle","allow-reactions");var Xk=function(){return _.w.apply(this,arguments)||this};
_.A(Xk,_.w);_.J=Xk.prototype;_.J.menuItemIdentifierChanged=function(){var p;(p=this.data)!=null&&p.menuItemIdentifier&&(p=FS1.get(this.data.menuItemIdentifier))&&(_.n("enable_lwe_web_mute")?(p=SWw.get(p),this.isToggled=!(p===void 0?!this.data.isToggled:!p)):this.isToggled=SWw.get(p))};
_.J.onFocus=function(){this.toggleButton.focus()};
_.J.onTap=function(){var p=this.data.command;p&&this.componentBehavior.resolveCommand(p)};
_.J.computeText=function(p,y,l){return this.componentBehavior.getSimpleString(p?l:y)};
_.J.computeIcon=function(p,y,l){return(p=p?l:y)&&p.iconType?_.QZ(p.iconType):""};
Xk.prototype.onTap=Xk.prototype.onTap;Xk.prototype.onFocus=Xk.prototype.onFocus;Xk.prototype.menuItemIdentifierChanged=Xk.prototype.menuItemIdentifierChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Xk.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Xk.prototype,"componentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Xk.prototype,"data",void 0);
_.H([_.Q({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.x("design:type",String)],Xk.prototype,"icon",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Xk.prototype,"isToggled",void 0);_.H([_.rd("tp-yt-paper-toggle-button"),_.x("design:type",Object)],Xk.prototype,"toggleButton",void 0);_.H([_.gd("data.menuItemIdentifier"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xk.prototype,"menuItemIdentifierChanged",null);
_.H([_.VU("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xk.prototype,"onFocus",null);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xk.prototype,"onTap",null);_.H([_.z9({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Xk);
_.D(Xk,"yt-live-chat-toggle-renderer",function(){if(rF7===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-toggle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_toggle_renderer.yt.live.chat.toggle.renderer.css.js--\x3e<tp-yt-paper-item class="style-scope yt-live-chat-toggle-renderer">\n   <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-toggle-renderer"></yt-icon>\n  <span class="style-scope yt-live-chat-toggle-renderer">[[computeText(data.isToggled, data.defaultText, data.toggledText)]]</span>\n  <tp-yt-paper-toggle-button aria-label="[[computeText(data.isToggled, data.defaultText, data.toggledText)]]" checked="[[isToggled]]" class="style-scope yt-live-chat-toggle-renderer">\n  </tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;i99===void 0&&(i99=document.createElement("template"));var q=i99;l.call(y,q.content.cloneNode(!0),p.content.firstChild);rF7=p}p=rF7;return p},{mode:_.n("live_chat_enable_sink_wrapper")?2:0});var LSA=new _.WE("NAVIGATION_PROGRESS_TOKEN");var ku9={},N4w={},DIA=(N4w[iI7.name]=!0,N4w),dj=function(){var p=_.FA.apply(this,arguments)||this;p._noAccessors=!0;p.tabGesturesIsActive=!1;p.actionRouterIsRoot=!0;p.appBehaviorActionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-clear-cookie-action":"handleClearCookieAction","yt-store-grafted-ve-action":"onStoreGraftedVeAction","yt-history-load":"onYtHistoryLoad","yt-history-pop":"onYtHistoryPop"};p.pageTitle="";p.titleSuffix="YouTube";p.unseenNotificationCount=
0;p.hasNavigated=!1;p.hasSetScrollTopForNavigation=!1;p.pagePreparer=null;p.zwiebackInitJobId=0;p.dataUpdatePromise=null;p.loadDepsPromise=_.PW();p.hasPendingNavigation=!1;p.pendingPlayerOnResponseReceivedActions=[];return p};
_.A(dj,_.FA);dj.prototype.attached=function(){H9T(this);document.addEventListener("yt-navigate-cache",_.MH(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var p=OR();p.init();p.dispatchElement=this.hostElement};
var H9T=function(p,y){y=y===void 0?0:y;var l=_.WC().resolve(_.RK(_.HF));if(l)T41(p,l);else{if(y>=5)throw Error("Yk");setTimeout(function(){H9T(p,y+1)},0)}},T41=function(p,y){y.addEventListener("yt-navigate-start",_.MH(p,p.onYtNavigateStart));
y.addEventListener("yt-navigate-finish",_.MH(p,p.onYtNavigateFinish));y.addEventListener("yt-navigate-error",_.MH(p,p.onYtNavigateError));y.addEventListener("yt-page-data-fetched",_.MH(p,p.onYtPageDataFetched))};
_.J=dj.prototype;_.J.detached=function(){var p=_.WC().resolve(_.HF);p.removeEventListener("yt-navigate-start",_.MH(this,this.onYtNavigateStart));p.removeEventListener("yt-navigate-finish",_.MH(this,this.onYtNavigateFinish));p.removeEventListener("yt-navigate-error",_.MH(this,this.onYtNavigateError));p.removeEventListener("yt-page-data-fetched",_.MH(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.MH(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.J.setPageOffset=function(p,y){p?_.$w(this.hostElement,"yt-set-page-offset",[p,y]):_.Bs(Error("Zk"))};
_.J.setPageOffsetForNavigation=function(p,y){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(p,y))};
_.J.onYtNavigateSetPageOffset=function(p,y){this.setPageOffsetForNavigation(y.page,y.offset)};
_.J.getPageOffset=function(){var p=_.jR(this.hostElement).querySelector("#page-manager").getCurrentPage(),y=0;p&&(y=_.$w(this.hostElement,"yt-get-page-offset",[p])[0]);return y};
_.J.onYtHistoryPop=function(p,y){if(_.o4("DISABLE_WARM_LOADS"))p.preventDefault(),window.location.reload();else{var l=_.WC().resolve(_.HF);l.hasPendingNavigation()&&p.preventDefault();l.cancelPendingNavigation();_.jN(this.hostElement,"yt-pending-navigation-cancelled");y.errorMsg&&(p=y.errorMsg.split(" - "),y=Error(p[0]),p.length==2&&p[1]&&(_.X$(y,p[1]),_.vs(y)),window.location.reload())}};
_.J.onYtHistoryLoad=function(p,y){var l=this;if(_.o4("DISABLE_WARM_LOADS"))window.location.reload();else{(p=y.endpoint)&&Object.keys(p).length||(p=null);var q=y.historyEntry,t=_.WC().resolve(_.HF),E=_.WC().resolve(_.mm),e=null;q&&q.rootData&&(e=q.rootData);var C=e&&xIR(e);!e||C||e.filler?p?(t.navigate(p,!0),B4d(this,p)):(y.legacyBorder||C||(y.JSC$29853_savedComponentState==null&&e==null?_.vs(new _.SM("Incomplete history entry",y.forward)):_.fT(new _.SM("Malformed history entry",y.JSC$29853_savedComponentState,
y.forward,e))),window.location.reload()):(_.Bct({isHot:!0}),_.xw({webInfo:{navigationReason:"h"}}),_.Rpj(),_.fy("srt"),_.fy("pdc"),this.cancelPendingTasks(),fom(this,y.forward,e),e.player&&(e.player.loaded=!1),B4d(this,p),_.aCQ(t,p||{},e,2,{},!1,y).then(function(){l.setPageOffset(E.getCurrentPage(),q.scrollTop||0)}))}};
_.J.initHistoryManager=function(p){if(!this.hasNavigated){this.hasNavigated=!0;var y=_.jR(this.hostElement).querySelector("#page-manager").getCurrentData();p=isNaN(p)?this.getPageOffset():p;var l=_.WC().resolve(_.HF).currentEndpoint;this.replaceState(l,y,p)}};
_.J.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.J.onYtNavigateStart=function(p,y){this.cancelPendingTasks();y.noProgressBar||(p=_.WC().resolve(_.RK(LSA)))&&p.start();p=this.hasPendingNavigation?null:this.data;var l=_.WC().resolve(_.mm),q,t,E;_.n("kevlar_use_vimio_behavior")&&!((q=y.endpoint)==null?0:(t=q.commandMetadata)==null?0:(E=t.webCommandMetadata)==null?0:E.ignoreNavigation)&&(q=l.getCurrentPage())&&q.disconnectVisibilityRoot();l.prepareForNavigation(y.pageType,y.endpoint);_.n("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.$5(1,
"pcl"),_.js(this.pagePreparer,l.preparePage.bind(l,y.pageType,y.endpoint)));q=this.getPageOffset();this.initHistoryManager(q);y.reload||this.hasPendingNavigation?this.replaceState(y.endpoint,p,q):(p==null?void 0:p.page)==="watch"&&y.pageType==="watch"&&_.n("kevlar_replace_watch_to_watch_history_state")?this.replaceState(y.endpoint,p,q):(p==null?void 0:p.page)!=="shorts"||y.pageType!=="shorts"||y.endpoint.reelWatchEndpoint.sequenceParams||_.n("short_to_short_back_nav_killswitch")?y.type!="navigate-back"&&
y.type!="navigate-forward"&&(y.pageType==="shorts"&&_.Ub(this.hostElement,"yt-shorts-reset"),this.saveAndPush(y.url,y.endpoint,p,q)):(_.n("web_enable_delay_shorts_sequence_call")&&(y.endpoint.reelWatchEndpoint.sequenceParams=p==null?void 0:p.cachedSequenceParams,y.endpoint.reelWatchEndpoint.sequenceProvider=p==null?void 0:p.cachedSequenceProvider),this.replaceState(y.endpoint,p,0));this.hasPendingNavigation=!0};
var vGd=function(p){p.hasPendingNavigation=!1;(p=_.WC().resolve(_.RK(LSA)))&&p.finish()};
dj.prototype.onYtNavigateError=function(p,y){vGd(this);p=this.get("endpoint.commandMetadata.webCommandMetadata.url",y);var l=_.tJ(window.location.href);p&&!l.pbjreload&&(y=y.navigationErrorReason||"10",_.n("kevlar_parent_on_pbjreload")&&(l={csn:_.B2()},this.get("data.endpoint.clickTrackingParams")&&(l.itct=this.data.endpoint.clickTrackingParams),_.hO(p,l)),_.lt(_.EC(p,{pbjreload:y})))};
dj.prototype.onYtNavigateCache=function(p,y){var l=this,q=y.url,t=y.endpoint,E=y.data;p=!!y.miniplayer;y=!!y.skipHistory;if(q&&t&&E){var e=this.getPageOffset(),C=this.data||null;y||this.saveAndPush(q,t,C,e);q=_.aCQ(_.WC().resolve(_.HF),t,E,p?4:3,{},p);p&&q.then(function(){l.dataUpdatePromise&&l.dataUpdatePromise.then(function(){var u=_.WC().resolve(_.mm);l.setPageOffset(u.getCurrentPage(),0)})})}};
dj.prototype.onYtNavigateFinish=function(p,y){var l=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){X81(l,y.fromHistory)})};
var X81=function(p,y){vGd(p);if(p.pendingPlayerOnResponseReceivedActions){for(var l=_.c(p.pendingPlayerOnResponseReceivedActions),q=l.next();!q.done;q=l.next())_.iy(q.value,p.hostElement);p.pendingPlayerOnResponseReceivedActions=[]}l=_.WC().resolve(_.mm);y||!p.hasNavigated||_.n("web_disable_scroll_on_navigate_finish")||((y=l.getCurrentPage())?y.is==="ytd-shorts"||p.tabGesturesIsActive||p.setPageOffsetForNavigation(y,0):_.vs(Error("$k")));_.sU(function(){_.sU(function(){_.fy("pda")})})};
dj.prototype.onYtNavigate=function(p){if(!p.detail.endpoint){var y=new _.SM("Error: Missing yt-navigate endpoint from target:",p.target,p.target.nodeName);_.Bs(y)}if(y=_.n("cold_missing_history"))y=OR(),y.init(!1),y=!(y.browserHistory.boundHistoryReplaceState&&y.browserHistory.boundHistoryPushState);if(y){_.dT("DISABLE_WARM_LOADS",!0);y=new _.SM("Failed to initialize history manager",this.getDebugString());var l=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
l?_.vs(y):_.Bs(y)}y=p.detail.endpoint;var q,t;_.n("debug_forward_web_query_parameters")&&((q=y.commandMetadata)==null?0:(t=q.webCommandMetadata)==null?0:t.url)&&(y=JSON.parse(JSON.stringify(y)),y.commandMetadata.webCommandMetadata.url=_.gwj(y.commandMetadata.webCommandMetadata.url,window.location.search));p={type:0,command:y,form:{params:p.detail.params,tempData:p.detail.tempData||{},requestType:p.detail.type,createScreenConfig:p.detail.createScreenConfig,reload:p.detail.reload?p.detail.reload:!1,
requestForm:p.detail}};_.n("kevlar_yt_navigate_command_handler")?(q=_.WC().resolve(_.aK),p.form.skipDefaultElement=!0,q.resolveCommand(y,{form:p.form})):this.handleNavigate(p)};
dj.prototype.handleNavigate=function(p){this.hasSetScrollTopForNavigation=!1;var y=_.WC().resolve(_.HF),l=p.form||{};y.navigate(p.command,l.reload,l.params,l.tempData,l.requestType,l.createScreenConfig,l.ignoreConfirmation,l.requestForm)&&B4d(this,p.command,l.tempData)};
dj.prototype.onYtPageDataFetched=function(p,y){try{_.ElZ().reset();this.data=y.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.WC().resolve(_.mm).updatePageData(this.data);if(!_.n("web_service_params_response_processor")){var l=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);l&&JOu(l);var q=this.get("response.responseContext.serviceTrackingParams",
this.data);q&&JOu(q)}var t=this.get("playerResponse.onResponseReceivedActions",this.data);t&&(t=dI9(this,t));t&&_.Gf(this.hostElement,t,this.hostElement);var E=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),e=this.get("response.responseContext.consistencyTokenJar",this.data);if(E||e){var C=_.cFt(),u=(0,_.Ts.getValues)(C.tokenJars);E&&C.replace(u,E);e&&C.replace(u,e)}}catch(a){_.Bs(a)}};
var B4d=function(p,y,l){try{p.onYtEndpointChangeHandler(y,l)}catch(q){_.Bs(q)}};
_.J=dj.prototype;_.J.onYtEndpointChangeHandler=function(){};
_.J.setPageTitle=function(p){p=(this.pageTitle=p)?p+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+p};
_.J.onYtUpdateTitle=function(p,y){this.setPageTitle(y)};
_.J.setUnseenNotificationCount=function(p){this.unseenNotificationCount=p;this.setPageTitle(this.pageTitle)};
_.J.handleUpdateNotificationsUnseenCountAction=function(p){_.G(p,WZV)&&((p=_.G(p,WZV).unseenCount)?this.setUnseenNotificationCount(p):this.setUnseenNotificationCount(0))};
_.J.handleClearCookieAction=function(p){var y;(p=(y=_.G(p,hO7))==null?void 0:y.cookieName)&&_.dnL(p)};
_.J.onYtUpdateUnseenNotificationCount=function(p,y){this.setUnseenNotificationCount(y)};
_.J.loadData=function(p){var y=this;this.loadDepsPromise.then(function(){var l=_.WC().resolve(_.RK(_.HF));l||_.Bs(Error("al"));if(p&&p.response){if(!p.endpoint){var q=_.IG(window.document.location.href)||"/",t="";if(q==="/"||q.startsWith("/?"))t="WEB_PAGE_TYPE_BROWSE";p.endpoint={commandMetadata:{webCommandMetadata:{url:q,webPageType:t,rootVe:3854}}}}_.aCQ(l,p.endpoint,p,5,{})}else p.endpoint?l.navigate(p.endpoint):l.navigate(_.Fx);_.TR.cancelJob(y.zwiebackInitJobId);y.zwiebackInitJobId=_.TR.addLowPriorityJob(qsd)})};
var OR=function(){return _.WC().resolve(_.Qd)};
dj.prototype.getDebugString=function(){return OR().getDebugString()};
dj.prototype.getThirdPartyManipulationSuspected=function(){return OR().getThirdPartyManipulationSuspected()};
dj.prototype.replaceState=function(p,y,l){OR().saveAndReplace(p,y,l)};
dj.prototype.saveAndPush=function(p,y,l,q){OR().saveAndPush(p,y,l,q)};
var xIR=function(p){return _.G(p.endpoint,_.Eb)||_.G(p.endpoint,_.FC)?!0:!p||isNaN(p.expirationTime)?!1:(0,_.uM)()>p.expirationTime},fom=function(p,y,l){var q=p.get("response.trackingParams",l),t=_.xc(),E=_.B2();
if(q&&t&&E&&(q=p.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",l),!q&&l.rootVe&&(q=l.rootVe),t=y?"forwardButton":"backButton",y=p.get("playerResponse.topbar.desktopTopbarRenderer."+t+".buttonRenderer.command.clickTrackingParams",p.data),p=p.get("response.topbar.desktopTopbarRenderer."+t+".buttonRenderer.command.clickTrackingParams",p.data),y=(p=y||p)?_.Tp(p):void 0,p=_.Ll(),t=[_.PW(l)],_.Mb(p,q,y,{dataPromises:t,csnToClone:l.csn}),l.graftedVes))for(l=
_.c(l.graftedVes),q=l.next();!q.done;q=l.next())_.Vv(p,q.value)};
dj.prototype.onStoreGraftedVeAction=function(p){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(p)):_.vs(Error("bl"))};
var dI9=function(p,y){return y.filter(function(l){for(var q in l)if(DIA[q])return p.pendingPlayerOnResponseReceivedActions.push(l),!0;return!1})};
_.Jh.Object.defineProperties(dj.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
dj.prototype.onStoreGraftedVeAction=dj.prototype.onStoreGraftedVeAction;dj.prototype.loadData=dj.prototype.loadData;dj.prototype.onYtUpdateUnseenNotificationCount=dj.prototype.onYtUpdateUnseenNotificationCount;dj.prototype.handleClearCookieAction=dj.prototype.handleClearCookieAction;dj.prototype.handleUpdateNotificationsUnseenCountAction=dj.prototype.handleUpdateNotificationsUnseenCountAction;dj.prototype.setUnseenNotificationCount=dj.prototype.setUnseenNotificationCount;
dj.prototype.onYtUpdateTitle=dj.prototype.onYtUpdateTitle;dj.prototype.setPageTitle=dj.prototype.setPageTitle;dj.prototype.onYtEndpointChangeHandler=dj.prototype.onYtEndpointChangeHandler;dj.prototype.onYtPageDataFetched=dj.prototype.onYtPageDataFetched;dj.prototype.handleNavigate=dj.prototype.handleNavigate;dj.prototype.onYtNavigate=dj.prototype.onYtNavigate;dj.prototype.onYtNavigateFinish=dj.prototype.onYtNavigateFinish;dj.prototype.onYtNavigateCache=dj.prototype.onYtNavigateCache;
dj.prototype.onYtNavigateError=dj.prototype.onYtNavigateError;dj.prototype.onYtNavigateStart=dj.prototype.onYtNavigateStart;dj.prototype.cancelPendingTasks=dj.prototype.cancelPendingTasks;dj.prototype.initHistoryManager=dj.prototype.initHistoryManager;dj.prototype.onYtHistoryLoad=dj.prototype.onYtHistoryLoad;dj.prototype.onYtHistoryPop=dj.prototype.onYtHistoryPop;dj.prototype.onYtNavigateSetPageOffset=dj.prototype.onYtNavigateSetPageOffset;dj.prototype.setPageOffset=dj.prototype.setPageOffset;
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],dj.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],dj.prototype,"data",void 0);_.H([_.VU("yt-navigate-set-page-offset"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],dj.prototype,"onYtNavigateSetPageOffset",null);
_.H([_.VU("yt-history-pop"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],dj.prototype,"onYtHistoryPop",null);_.H([_.VU("yt-history-load"),_.x("design:type",Function),_.x("design:paramtypes",[Event,_.FUQ]),_.x("design:returntype")],dj.prototype,"onYtHistoryLoad",null);_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],dj.prototype,"onYtNavigate",null);
_.H([_.VU("yt-update-title"),_.x("design:type",Function),_.x("design:paramtypes",[Event,String]),_.x("design:returntype")],dj.prototype,"onYtUpdateTitle",null);_.H([_.VU("yt-update-unseen-notification-count"),_.x("design:type",Function),_.x("design:paramtypes",[Event,Number]),_.x("design:returntype")],dj.prototype,"onYtUpdateUnseenNotificationCount",null);_.H([_.Lv()],dj);ku9.YtdAppBehavior=[_.no.YtActionHandlerBehavior,dj.prototype];var oS=function(){var p=_.FA.apply(this,arguments)||this;p._noAccessors=!0;return p};
_.A(oS,_.FA);oS.prototype.ready=function(){var p=this;_.jR(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){p.onChange_()})};
oS.prototype.dataChanged_=function(){_.jR(this.hostElement).querySelector("#checkbox").checked=!1};
oS.prototype.onChange_=function(){var p=_.jR(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Ub(this.hostElement,"yt-dismissal-reason-"+p,this.data.feedbackToken)};
oS.prototype.dataChanged_=oS.prototype.dataChanged_;_.H([_.Q(),_.x("design:type",Object)],oS.prototype,"data",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oS.prototype,"dataChanged_",null);_.H([_.Lv()],oS);var O9O=[oS.prototype];var zg=function(){var p=_.FA.apply(this,arguments)||this;p.timeoutJobId=0;p.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return p};
_.A(zg,_.FA);zg.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
zg.prototype.startTimeout=function(){var p=this,y=this.data&&this.data.displayDurationSeconds;y&&!this.timeoutJobId&&(this.timeoutJobId=_.rJ(_.TR,function(){_.$w(p.hostElement,"yt-close-popup-action",[p.is]);p.timeoutJobId=0},y*1E3))};
zg.prototype.cancelTimeout=function(){_.TR.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
zg.prototype.ytdHatsSurveyBehaviorDataChanged=zg.prototype.ytdHatsSurveyBehaviorDataChanged;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],zg.prototype,"ytActionHandlerBehavior",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zg.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.H([_.Lv()],zg);var oGu=[_.no.YtActionHandlerBehavior,zg.prototype];var zcV=function(p,y){var l;return((l=p.prefixMapping)==null?0:l[y])?p.prefixMapping[y]:p.SHARED_RENDERERS_.hasOwnProperty(y)?"yt":p.prefix},Y3={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}};Y3.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.n("kevlar_mealbar_above_player"),modern:_.n("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
Y3.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};Y3.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};Y3.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
Y3.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)"}};
Y3.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};
Y3.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};
Y3.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};
Y3.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};Y3.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"}};
Y3.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};Y3.TOAST={component:null,properties:{}};var YWT=new function(p,y,l){this.supportedPopups=p;this.navigationEndpointPopupMap=y;this.popupTypeMap=l;this.supportedPopups=p;this.navigationEndpointPopupMap=y;this.popupTypeMap=l}({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:_.n("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"}),Iod=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$19705_popupConfig=Y3;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 p5u=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.d3.getInstance()},IS=function(p,y){var l=p.pageNameToElement.get(y);
if(!l){switch(y){case "watch":var q=_.n("web_watch_force_learning_journey_for_testing")?_.Ud("ytd-watch-learning-journey"):_.n("kevlar_watch_fixie")?_.Ud("ytd-watch-fixie"):_.n("kevlar_watch_grid")?_.Ud("ytd-watch-grid"):_.Ud("ytd-watch-flexy");break;case "learning_journey_watch":q=_.Ud("ytd-watch-learning-journey");break;case "shorts":q=_.Ud("ytd-shorts");break;case "search":q=_.Ud("ytd-search");break;case "channel":q=_.Ud("ytd-browse");q.pageSubtype="channels";break;case "trending":q=_.Ud("ytd-browse");
q.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":q=
_.Ud("ytd-browse");q.pageSubtype=y;break;case "browse":q=_.Ud("ytd-browse");break;default:_.vs(new _.SM("Error getting page element for type",y))}l=q;p.pageNameToElement.set(y,l)}return l};
p5u.prototype.preparePage=function(p,y,l){l&&(p=_.K4(l)||p);if(p!=="watch"&&p!=="learning_journey_watch"){var q=this.elementPoolPopulator,t=p;t!=q.targetPage_&&q.pendingPages_.indexOf(t)>-1&&(q.targetPage_&&(q.pendingPages_.unshift(q.targetPage_),q.abort()),XNm(q,t),_.wrP(q,t))}if((q=IS(this,p))||!_.G(l,_.Id)){q.isAttached||q===y||(q.hidden=!0);if(!q.data&&(p!=="watch"&&p!=="learning_journey_watch"||!_.n("swatcheroo_page_pool_dont_provide_filler_data"))){var E;if(p=(E=_.OY("FILLER_DATA",{})[p])==
null?void 0:E.response)q.data=p}return q}};var yV7=function(p){this.JSC$31748_clientRoot=p;this.playlistHandlerActionMap={"yt-add-to-playlist-command":uA7,"yt-end-playlist-command":Rb9,"yt-recover-playlist-command":aLi,"yt-refresh-playlist-command":$H7,"yt-playlist-remove-videos-action":mHA};_.y2(_.pt.getInstance(),this.playlistHandlerActionMap,this.JSC$31748_clientRoot);qw7()},lq7;var pe=function(p,y,l){this.apiKey=p;this.endpoint=y;this.confidenceThreshold=l===void 0?.5:l;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=y==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||y==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
y==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||y==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new oB6};
_.J=pe.prototype;
_.J.start=function(p){if(this.state===0)if(this.isOnline()){p.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=p.supportsHttpHeadersOverwriteParam);p.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=p.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.BW("voice_assistant");_.vW("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=p.languageCode||"en-US";this.supportsCrossDomainXhr=p.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=p.youtubeAssistantRequest||null;this.listeningHandler=p.listeningHandler||this.listeningHandler;this.audioDetectedHandler=p.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=p.stopHandler||this.stopHandler;this.completeHandler=p.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=p.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=p.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
p.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=p.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=p.accessToken;this.additionalHeaders=p.additionalHeaders||{};var y;this.prefetchResponseTimeoutMs=(y=p.prefetchResponseTimeoutMs)!=null?y:this.prefetchResponseTimeoutMs;qIu(this);this.startAudio();sb6(this)}else this.errorHandler("OFFLINE")};
_.J.stop=function(p){var y=p===void 0?{}:p;p=y.logCancel===void 0?!0:y.logCancel;var l=y.logMicClosed===void 0?!0:y.logMicClosed;var q=y.handleError===void 0?!0:y.handleError;y=y.handleStop===void 0?!0:y.handleStop;this.state!==0&&(p&&yb("voz_cx"),l7(this,{logMicClosed:l,handleStop:y}),q&&this.errorHandler("ABORTED"))};
_.J.getState=function(){return this.state};
_.J.isSupported=function(){return!0};
_.J.stopAudio=function(p){(p===void 0||p)&&yb("voz_mf")};
_.J.startAudio=function(){yb("voz_vp");return _.PW(null)};
var tKV=function(p,y){p.channelOpen&&(p.state!==2&&(p.state=2,yb("voz_ss"),p.listeningHandler()),y=new Uint8Array(y),y='{ "audioIn": "'+_.HR(y)+'" }',p.channel.send(y))},l7=function(p,y){var l=y===void 0?{}:y;
y=l.logMicClosed===void 0?!0:l.logMicClosed;l=l.handleStop===void 0?!0:l.handleStop;p.vozEndOfDataTimeout>-1&&(clearTimeout(p.vozEndOfDataTimeout),p.vozEndOfDataTimeout=-1);E$V(p);p.stopAudio(y);p.channel&&(p.channelOpen=!1,p.manuallyClosedChannel=!0,p.channel.close(),p.channel=void 0);p.transcribedSpeechResults=[];p.state=0;l&&p.stopHandler()},qIu=function(p){var y={httpHeadersOverwriteParam:p.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},p.additionalHeaders,p.accessToken&&p.isUsingVoz?{Authorization:"Bearer "+p.accessToken}:{"x-goog-api-key":p.apiKey}),supportsCrossDomainXhr:p.supportsCrossDomainXhr};p.channel=new yA(p.endpoint,y);p.channel.open();_.BL(p.channel,"w",function(){var l=p.channel,q=l.send,t=p.isUsingVoz?"PLACEHOLDER":"example";t={config:{dialogStateIn:{languageCode:p.languageCode},deviceConfig:{deviceId:t,deviceModelId:t},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!p.isUsingVoz)t.config.requestType=4;else if(p.isUsingVoz&&p.youtubeAssistantRequest){var E=JSON.stringify(p.youtubeAssistantRequest);t.config.internalIn={youtubeAssistantS3InputJson:E}}q.call(l,t);p.channelOpen=!0;p.manuallyClosedChannel=!1});
_.BL(p.channel,"x",function(){p.manuallyClosedChannel||(p.channelOpen=!1,p.channel=void 0,l7(p))});
_.BL(p.channel,"z",function(l){if(l.data){E$V(p);for(var q=0;q<l.data.length;q++){var t=p,E=l.data[q],e=E.speechResults;if(e)a:{var C=[];E=[];var u=!1;e=_.c(e);for(var a=e.next();!a.done;a=e.next()){a=a.value;if(a.noSpeech){l7(t);t.errorHandler("NO_SPEECH");break a}a.transcript!==void 0&&a.stability!==void 0&&(a.stability<t.confidenceThreshold&&(u=!0),u?E.push(a.transcript):C.push(a.transcript))}if(C.length!==0||E.length!==0)C=C.join(" "),E=E.join(" "),t.receivedEndOfUtterance&&!t.isUsingVoz?t.isUsingVoz||
t.completeHandler([C,E]):(u=t,e=C,a=E,yb("voz_sf"),u.transcriptionUpdateHandler(e,a),u.transcribedSpeechResults=[e,a]),t.receivedEndOfUtterance&&(yb("voz_eou"),t.transcriptionCompleteHandler([C,E]),t.isUsingVoz&&(t.prefetchResponseTimeoutMs===0?l7(t,{logMicClosed:!1,handleStop:!0}):t.prefetchResponseTimeoutMs>0&&JVu(t)))}else t.isUsingVoz&&(E==null?0:E.internalOut)?(E=JSON.parse(E.internalOut.youtubeAssistantS3OutputJson),E.userHasOptedInToVaa||E.vaaConsent?t.vaaConsentUpdateHandler(!!E.userHasOptedInToVaa,
!!E.vaaConsent):(cV6(t),E&&(C=t.transcribedSpeechResults,yb("voz_rqf"),t.completeHandler(C,E)))):E.eventType==="END_OF_UTTERANCE"?t.receivedEndOfUtterance=!0:(yb("voz_err"),t.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.vs(Error("cl")))}}});
_.BL(p.channel,"y",function(l){l7(p);switch(l.status){case 1:l="WEBCHANNEL_NETWORK_ERROR";break;case 2:l="WEBCHANNEL_SERVER_ERROR";break;default:l="WEBCHANNEL_UNKNOWN_ERROR"}p.errorHandler(l);p.logError(Error(l))})};
pe.prototype.logError=function(p){_.Bs(p)};
pe.prototype.isOnline=function(){return!0};
var JVu=function(p){cV6(p);p.prefetchResponseSetTimeoutId=setTimeout(function(){l7(p,{logMicClosed:!1,handleStop:!0})},p.prefetchResponseTimeoutMs)},cV6=function(p){p.prefetchResponseSetTimeoutId>-1&&(clearTimeout(p.prefetchResponseSetTimeoutId),p.prefetchResponseSetTimeoutId=-1)},sb6=function(p){E$V(p);
p.noResponseReceivedTimeout=window.setTimeout(function(){l7(p);p.errorHandler("NO_SPEECH")},11E3)},E$V=function(p){p.noResponseReceivedTimeout>-1&&(window.clearTimeout(p.noResponseReceivedTimeout),p.noResponseReceivedTimeout=-1)},yb=function(p){_.fy(p,void 0,"voice_assistant")};var q8=function(){pe.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.A(q8,pe);q8.prototype.isSupported=function(){return jMw()};
q8.prototype.startAudio=function(){var p=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.vL(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(q){eRR(p,q)};
this.processor.connect(this.audioContext.destination);var y=function(q){p.stream=q;if(!p.audioContext)return _.PW(null);q=p.audioContext.createMediaStreamSource(q);p.processor&&q.connect(p.processor);return _.PW(null)},l={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?y(this.stream):(l=navigator.mediaDevices.getUserMedia(l))?l.then(y).catch(function(q){l7(p);q.name&&q.name==="NotAllowedError"?p.errorHandler("NO_MICROPHONE_PERMISSION"):(p.errorHandler("AUDIO_ERROR"),p.logError(q));return _.vL(null)}):(l7(this),this.errorHandler("AUDIO_ERROR"),_.vs(Error("dl")));
return pe.prototype.startAudio.call(this)};
q8.prototype.stopAudio=function(p){p=p===void 0?!0:p;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(y){y.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;pe.prototype.stopAudio.call(this,p)};
q8.prototype.isOnline=function(){return navigator.onLine};
var eRR=function(p,y){if(p.audioContext)if(window.OfflineAudioContext){var l=p.audioContext.sampleRate,q=y.inputBuffer.getChannelData(0);y=new window.OfflineAudioContext(1,q.length,16E3);for(var t=y.createBuffer(1,q.length,l),E=t.getChannelData(0),e=0,C=0;C<q.length;C++)E[C]=q[C],e+=E[C]*E[C];!p.audioDetected&&Math.sqrt(e/q.length)>.01&&(p.audioDetected=!0,p.audioDetectedHandler());q=y.createBufferSource();q.buffer=t;q.connect(y.destination);q.start(0);y.oncomplete=function(u){u=u.renderedBuffer.getChannelData(0);
for(var a=Math.floor(16384E3/l),m=new Int16Array(a),U=0;U<a;++U)m[U]=Math.max(-1,Math.min(1,u[U]))*32767;tKV(p,m.buffer)};
y.startRendering()}else hRO(p,y)},hRO=function(p,y){var l=p.audioContext.sampleRate,q=y.inputBuffer.getChannelData(0),t=Math.floor((l+8E3)/16E3);
l=q.length/t;y=new Float32Array(l);for(var E=0;E<l;++E)y[E]=q[E*t];q=new Int16Array(l);for(t=0;t<l;++t)q[t]=Math.max(-1,Math.min(1,y[t]))*32767;tKV(p,q.buffer)};var CxV={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var u9d=function(){this.JSC$19770_audioEnabled=!0;this.audioFeedbackHolder={}};
u9d.prototype.isPlaying=function(p){return p.currentTime>0&&!p.paused&&!p.ended&&p.readyState>2};
var RR6=function(p){for(var y=_.c(Object.values(CxV)),l=y.next();!l.done;l=y.next())l=l.value,p.audioFeedbackHolder[l]=new Audio,p.audioFeedbackHolder[l].src="/s/search/audio/"+l+".mp3",p.audioFeedbackHolder[l].load()},sF=function(p,y){if(p.JSC$19770_audioEnabled!==!1&&y in p.audioFeedbackHolder){for(var l=_.c(Object.values(p.audioFeedbackHolder)),q=l.next();!q.done;q=l.next())q=q.value,p.isPlaying(q)&&q.pause();
p.audioFeedbackHolder[y].currentTime=0;p.audioFeedbackHolder[y].play().catch(function(){})}};var WAd=function(p,y){var l=this;this.store=p;this.service=y;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){l.setState("offline");l.stop()};
this.audioPlayer=new u9d;var q;(q=this.audioPlayer)==null||RR6(q)};
_.J=WAd.prototype;_.J.getService=function(){return this.service};
_.J.isEnabled=function(){return!!this.service};
_.J.isSupported=function(){var p;return(p=this.service)==null?void 0:p.isSupported()};
_.J.start=function(){var p=this,y,l,q,t,E,e,C,u,a,m,U,b,P;return _.h(function(Z){switch(Z.nextAddress){case 1:p.store.dispatch($Rm("",""));if(!navigator.onLine)return p.setState("offline"),Z.return();window.addEventListener("offline",p.handleOfflineEvent);p.stream=null;if(!p.permissionsSupported){Z.jumpTo(2);break}_.Ve(Z,3);return Z.yield(aq1(p),5);case 5:y=Z.yieldResult;if(!y)return(l=p.audioPlayer)==null||sF(l,"failure"),Z.return();p.service.stream=p.stream;p.setState("listening");_.pK(Z,2);break;
case 3:_.i6(Z),p.permissionsSupported=!1;case 2:q={context:_.yBu(_.W7())},q.youtubeAssistantParams={searchParams:{inlineSearchResponse:p.enableInlineSearchResponse}},t=function(K,F){p.store.dispatch(jAi("transcribing"));p.store.dispatch($Rm(K,F))},E=function(){var K;
(K=p.audioPlayer)==null||sF(K,"open");p.setState("listening")},e=function(){p.setState("transcribing")},C=function(K){p.setErrorState(K)},u=function(K,F){var L;
(L=p.audioPlayer)==null||sF(L,"success");F&&(_.n("kevlar_voice_search_inline_search")&&(p.responseProcessor=_.WC().resolve(_.UK_),p.responseProcessor&&(L=F.navigationAction,K=F.prefetchedSearchResponse,L&&K&&(L=(new _.o6u).JSC$12991_getStoreKey(L),_.qY(p.responseProcessor,K,L)))),p.JSC$19788_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",F))},a=function(){window.removeEventListener("offline",p.handleOfflineEvent)},m=_.hAa(!1),U=m.Authorization!=null,b=p.enableFirstPartyAuth||
p.enableFPAForSignedInUsers&&U?m:{"X-Goog-Visitor-Id":m["X-Goog-Visitor-Id"]},P={completeHandler:u,
errorHandler:C,listeningHandler:E,audioDetectedHandler:e,stopHandler:a,transcriptionUpdateHandler:t,youtubeAssistantRequest:q,languageCode:m0V(),additionalHeaders:b,supportsCrossDomainXhr:p.enableFirstPartyAuth||p.enableFPAForSignedInUsers&&U,supportsHttpHeadersOverwriteParam:!p.disableHttpHeadersOverwrite},p.service.start(P),_.rR(Z)}})};
_.J.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.J.reset=function(){this.store.dispatch(_.$y({type:"RESET_VOICE_SEARCH_STATE"}))};
_.J.setState=function(p){this.store.dispatch(jAi(p))};
_.J.setErrorState=function(p){switch(p){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var y;(y=this.audioPlayer)==null||sF(y,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)aq1(this);else{var l;(l=this.audioPlayer)==null||sF(l,"failure");this.setState("permission-denied")}break;case "ABORTED":var q;(q=this.audioPlayer)==null||sF(q,"no_input");break;default:var t;(t=this.audioPlayer)==
null||sF(t,"no_input");this.setState("timeout")}};
var aq1=function(p){var y,l;return _.h(function(q){switch(q.nextAddress){case 1:return q.yield(navigator.permissions.query({name:"microphone"}),2);case 2:y=q.yieldResult;if(y.state==="granted")return q.return(!0);if(y.state==="denied")return p.setState("permission-denied"),q.return(!1);p.setState("permission");l={audio:{sampleSize:16,channelCount:1},video:!1};_.Ve(q,3);return q.yield(navigator.mediaDevices.getUserMedia(l),5);case 5:return p.stream=q.yieldResult,q.return(!0);case 3:return _.i6(q),
p.setState("permission-denied"),q.return(!1)}})},m0V=function(){var p=_.OY("INNERTUBE_CONTEXT_HL"),y=_.OY("INNERTUBE_CONTEXT_GL");
return p.indexOf("-")>-1?p:p+"-"+y};var U0R=function(p,y,l){WAd.call(this,y,l);this.JSC$19788_actionRouter=p;this.enableInlineSearchResponse=_.n("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.n("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.n("kevlar_voice_search_enable_fpa_signedin_users")},$0d;
_.A(U0R,WAd);
var jb1=function(){if(!$0d){var p="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.n("kevlar_voice_search_auth_enabled")||_.n("kevlar_voice_search_use_yt_endpoint")?p="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.n("kevlar_voice_search_use_fp_endpoint")&&(p="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");$0d=
new U0R(_.pt.getInstance(),_.ei(),new q8(_.OY("VOZ_API_KEY"),p,.5))}return $0d};var bdO=function(p){this.JSC$19792_clientRoot=p;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$19792_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)]]));p=_.c(this.eventListeners);for(var y=p.next();!y.done;y=p.next()){var l=_.c(y.value);y=l.next().value;l=l.next().value;l=_.c(l);for(var q=l.next();!q.done;q=l.next()){var t=
_.c(q.value);q=t.next().value;t=t.next().value;y.addEventListener(q,t)}}_.y2(_.pt.getInstance(),this.autonavPauseActionMap,this.JSC$19792_clientRoot)},n$V,GOd=function(p){return _.n("kevlar_autonav_popup_filtering")?(p=_.cm(p))?p.hasAttribute("prevent-autonav"):!0:!0};
_.J=bdO.prototype;_.J.onIronOverlayOpened=function(p){GOd(p)&&(this.autonavPauseReasons.overlayOpen=!0,tr(this))};
_.J.onIronOverlayClosed=function(p){GOd(p)&&(this.autonavPauseReasons.overlayOpen=!1,tr(this))};
_.J.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;tr(this)};
_.J.onYtAutonavPauseBlur=function(){var p=this;_.TR.addJob(function(){p.isInBackground()||(p.autonavPauseReasons.inputBoxFocus=!1,tr(p))},8,0)};
_.J.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;tr(this)};
_.J.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;tr(this)};
_.J.onYtAutonavPauseScroll=function(){var p=_.WC().resolve(_.mm);p.isOnWatch()&&(p=p.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=p.getBoundingClientRect().top<-200,tr(this))};
_.J.onYtAutonavPauseUserEngagement=function(p){var y=this;if(_.n("user_engagement_enable_autoplay_pause_feature")){var l=Number(p.lowEngagementThresholdMs);isNaN(l)||l<=0||p.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.Up("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.WC().resolve(_.Xf),_.Rd()<l?_.rJ(_.TR,function(){_.Up("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.spd()?(this.userEngagementCsn=_.B2(),_.rJ(_.TR,function(){_.Up("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
y.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,tr(this)):_.Up("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.RWm(Error("el`"+JSON.stringify(p)))};
_.J.onYtAutonavPausePlayer=function(p){this.autonavPauseReasons.requestedByPlayer=!!p.detail;tr(this)};
_.J.onYtAutonavVisibilityChanged=function(){var p=this,y,l,q;return _.h(function(t){if(t.nextAddress==1)return(y=_.$o())?t.yield(y.getPlayerPromise(),2):t.return();l=t.yieldResult;q=l.isMuted()||l.getVolume()===0;p.autonavPauseReasons.backgroundAndMute=p.isInBackground()&&q;tr(p);_.rR(t)})};
_.J.onYtAutonavPausePlayerEnded=function(){_.WC().resolve(_.Xf);var p=144E5;_.n("user_engagement_enable_autoplay_pause_feature")||_.n("is_part_of_any_user_engagement_experiment")||(p=45E5);this.autonavPauseReasons.longIdle=_.Rd()>p;Pxi(this);tr(this)};
_.J.onYtUserActivity=function(){var p=this;this.autonavPauseReasons.userEngagement&&(_.rJ(_.TR,function(){_.Up("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",p.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,tr(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.rJ(_.TR,function(){_.Up("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",p.userEngagementCsn);_.xn()}),this.autonavPauseReasons.youthereLactExperiment=!1,tr(this));
this.autonavPauseReasons.longIdle&&!_.n("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,tr(this))};
_.J.isInBackground=function(){var p=window.document.visibilityState;return!(!p||p==="visible")};
var tr=function(p){for(var y=!1,l=_.c(Object.values(p.autonavPauseReasons)),q=l.next();!q.done;q=l.next())q=q.value,y=y||q;y?_.md.getInstance().pause(p.autonavPauseReasons):(p=_.md.getInstance(),p.autonavState_==3?(p.setState(2,!1,!1),p.autonavPauseReason_=void 0):p.autonavState_==1&&(p.disabledAutonavPauseReason_=void 0))},Pxi=function(p){var y=!1;
if(_.n("enable_autoplay_pause_by_lact")){_.WC().resolve(_.Xf);y=_.UC("autoplay_pause_by_lact_sec")*1E3;var l=_.UC("autoplay_pause_by_lact_sampling_fraction");(y=_.Rd()>=y&&Math.random()<l)&&!_.spd()&&(_.rJ(_.TR,function(){_.Up("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),y=!1)}y!==p.autonavPauseReasons.youthereLactExperiment&&(p.autonavPauseReasons.youthereLactExperiment=y)&&(p.userEngagementCsn=_.B2(),_.rJ(_.TR,function(){_.Up("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",p.userEngagementCsn)}));
p.autonavPauseReasons.userEngagement&&_.rJ(_.TR,function(){_.Up("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",p.userEngagementCsn)})};
bdO.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.Up("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.xn(),this.autonavPauseReasons.youthereLactExperiment=!1,tr(this));this.autonavPauseReasons.userEngagement&&(_.Up("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,tr(this))};
bdO.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var EF=function(){var p=_.w.apply(this,arguments)||this;p.miniGuideVisible=!1;p.guideOpened=_.n("disable_initial_guide_state_fix")?!1:p.canFitPersistentGuide(p.initialBodyClientWidth);p.guideUserStateOpened=p.getInitialGuideUserStateOpened();p.isFullscreenShorts=!1;p.miniGuideWidthThreshold=_.UC("kevlar_mini_guide_width_threshold",791);p.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");p.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
p.persistentGuideBlockedPagePathRegex=new RegExp(p.persistentGuideBlockedPagesPatterns.join("|"));p.animationTransitionDuration=0;p.lateDataResolver=_.hs();p.initialGuideDataFetchFailed=!1;p.initialLoad=!0;p.guideRenderers=new Set;p.isMouseOverGuide=!1;p.sessionUserManuallyExpandedGuideState=!1;p.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};
return p};
_.A(EF,_.w);_.J=EF.prototype;_.J.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.J.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.J.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.J.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.J.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.J.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.J.ready=function(){_.WC().addProvider({provide:_.l1,useValue:this.hostElement})};
_.J.attached=function(){var p=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.MH(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.MH(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.MH(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.MH(this,this.onYtGuideShow));_.th(this,function(){p.animationTransitionDuration=200})};
_.J.detached=function(){document.removeEventListener("yt-navigate-finish",_.MH(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.MH(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.MH(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.MH(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.MH(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.MH(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.MH(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.J.getData=function(){return this.data};
_.J.load=function(){var p=this,y,l,q,t;return _.h(function(E){switch(E.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=p.lateDataResolver.resolve.bind(p),E.return(p.lateDataResolver.promise);if(window.ytInitialGuideData)return y=_.hs(),y.resolve(window.ytInitialGuideData),E.return(y.promise);q=!1;_.Ve(E,2);return E.yield(p.fetchGuideData(),4);case 4:l=E.yieldResult;_.pK(E,3);break;case 2:t=_.i6(E),t.message==="Returned error"&&(q=
!0);case 3:if(l)return E.return(l);p.onYtGuideClose();q||(p.initialGuideDataFetchFailed=!0);return E.return(p.lateDataResolver.promise)}})};
_.J.fetchGuideData=function(){var p=this,y,l,q,t,E,e,C;return _.h(function(u){if(u.nextAddress==1)return y=_.WC(),p.guidePromise||(l=y.resolve(_.XC),p.guidePromise=_.eo(l,$rV)),u.yield(p.guidePromise,2);if(u.nextAddress!=3)return q=u.yieldResult,t=y.resolve(_.C$),u.yield(t(),3);(E=u.yieldResult)&&((e=q)==null?void 0:(C=e.responseContext)==null?void 0:C.maxAgeSeconds)!==0&&E.put("service:guide:fallback",new _.Zo({innertubeResponse:q}));return u.return(q)})};
_.J.initializeGuideDataIfEmpty=function(){var p=this,y,l;return _.h(function(q){if(q.nextAddress==1){if(!p.initialGuideDataFetchFailed||p.data)return q.return();_.Ve(q,2);return q.yield(p.fetchGuideData(),4)}if(q.nextAddress!=2)return(y=q.yieldResult)&&p.lateDataResolver.resolve(y),_.pK(q,0);l=_.i6(q);_.vs(l);_.rR(q)})};
_.J.initializeGuideData=function(){var p=this,y;return _.h(function(l){switch(l.nextAddress){case 1:return _.gU(NFd(),{mainAppWeb:_.qH()}),_.Ve(l,2),l.yield(p.load(),4);case 4:p.data=l.yieldResult;_.pK(l,3);break;case 2:_.i6(l),_.QG(NFd(),"FAILURE");case 3:y=p.data&&p.data.items&&p.data.items.length>0?"SUCCESS":"FAILURE",_.QG(NFd(),y),_.rR(l)}})};
_.J.setGuideData=function(p){var y=this,l,q;return _.h(function(t){if(t.nextAddress==1)return y.disabled?t.return():y.data?(p.data=y.data,y.guideRenderers.add(p),t.return()):t.yield(y.initializeGuideData(),2);y.graftGuideToPage();l=_.o4("IS_HOMEPAGE_COLD")?"eop":void 0;_.n("disable_element_pool_populator")?y.setGuideDataAfterInit(p):(q=new _.$5(1,l),_.js(q,y.setGuideDataAfterInit.bind(y,p)));_.rR(t)})};
_.J.setGuideDataAfterInit=function(p){p.data=this.data;p.markDirty();this.guideRenderers.add(p);_.sU(function(){_.fy("gle")});
_.th(this,function(){_.fy("gpe")})};
_.J.graftGuideToPage=function(){if(this.data){var p=this.data&&this.data.trackingParams;p&&(p=_.Tp(p),_.gz(_.Ll(),p))}};
_.J.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.MH(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.J.onDrawerOpenedChanged=function(p,y){!y.value&&this.guideOpened&&(this.guideOpened=!1)};
_.J.onYtGuideToggle=function(p){var y=this.guideOpened;this.guideOpened=!y;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var l=_.w$();_.il(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;l.save()}this.updateGuideDrawerElementState();if(this.guideElement){var q;this.guideOpened&&((q=p.detail)==null?0:q.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.MH(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.MH(this,this.onAppDrawerTransitioned))}y||this.initializeGuideDataIfEmpty()};
_.J.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.MH(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.EL(this.guideElement)};
_.J.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.MH(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(mR6(this.guideOpened))};
_.J.guidePersistentAndVisibleChanged=function(){_.jN(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.J.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.$y({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.J.miniGuideVisibleChanged=function(){_.jN(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.J.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(mR6(this.guideOpened)),this.initialLoad=!1);_.jN(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.J.activeEndpointChanged=function(){_.jN(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.J.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.J.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.J.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var p=this.canFitPersistentGuide(this.cachedClientWidth);p?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=p}this.updateGuideDrawerElementState()};
_.J.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.J.getGuideOpened=function(){return this.guideOpened};
_.J.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.J.getActiveEndpoint=function(){return this.activeEndpoint};
_.J.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.J.updateGuideDrawerElementState=function(){this.guideElement&&(this.guidePersistent?this.disableGuideAnimation():this.guideElement.persistent?this.disableGuideAnimation():this.enableGuideAnimation(),this.guideElement.opened=this.guideOpened,this.guideElement.persistent=this.guidePersistent,this.guideOpened&&this.guidePersistent&&_.Ub(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.J.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.n("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.J.handleGuideMouseLeave=function(){var p=this;!this.sessionUserManuallyExpandedGuideState&&_.n("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.tl(this,"handleGuideMouseLeave",function(){p.isMouseOverGuide||!p.guideOpened||p.miniGuideVisible||(p.guideOpened=!1,p.updateGuideDrawerElementState())},100))};
_.J.computeGuidePersistentAndVisible=function(){var p=this;_.tl(this,"computeGuidePersistentAndVisible",function(){p.guidePersistentAndVisible=p.guideOpened&&p.guidePersistent;p.guideIsVisibleButNotPersistent=!(!p.guideOpened||p.guidePersistent)})};
_.J.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.J.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.J.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.J.startLoadingWatch=function(){this.closeGuide()};
_.J.startLoadingShorts=function(){_.n("web_hide_guide_on_shorts")&&this.closeGuide()};
_.J.onYtNavigateFinish=function(p,y){if(!_.P0||y){this.activeEndpoint=y.endpoint;this.pageType=y.pageType;this.pageUrl=y.response.url;var l,q;p=(q=_.G((l=y.endpoint)==null?void 0:l.commandMetadata,_.ul))==null?void 0:q.url;!this.pageUrl&&p&&(this.pageUrl=p);_.n("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.J.getVisibleGuideRenderer=function(){for(var p=_.c(this.guideRenderers),y=p.next();!y.done;y=p.next())if(y=y.value,this.miniGuideVisible&&y.is==="ytd-mini-guide-renderer"||this.guideOpened&&y.is==="ytd-guide-renderer")return y;return null};
_.J.markGuideRendererDirty=function(p){if(p){typeof p.markDirty==="function"&&p.markDirty();p=_.c([].concat(_.xq(_.jR(p).children)));for(var y=p.next();!y.done;y=p.next())this.markGuideRendererDirty(y.value)}};
_.J.persistentGuideEnabled=function(p,y){if(!y||p==="watch"||p==="settings"||p==="shorts"&&this.isFullscreenShorts||_.n("reels_web_disable_persistent_guide_shorts")&&p==="shorts")return!1;var l=_.AJ(y)||"";return _.n("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(q){return l===q}):!this.persistentGuideBlockedPagePathRegex.test(l)};
_.J.canFitPersistentGuide=function(p){var y=_.UC("kevlar_persistent_guide_width_threshold",1312);return y===-1||_.n("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:p>y};
_.J.canFitMiniGuide=function(p){return this.miniGuideWidthThreshold===-1?!1:p>this.miniGuideWidthThreshold};
_.J.onResize=function(){var p=this;_.tl(this,"calculateGuideState",function(){p.onResizeDebounced()})};
_.J.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.J.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.J.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.J.getInitialGuideUserStateOpened=function(){return _.n("web_force_mini_guide_default")?!1:!_.w$().getFlag(109)};
_.Jh.Object.defineProperties(EF.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.OY("initialBodyClientWidth")||window.innerWidth}}});
EF.prototype.onResize=EF.prototype.onResize;EF.prototype.observeForMiniGuideVisible=EF.prototype.observeForMiniGuideVisible;EF.prototype.computeGuidePersistentAndVisible=EF.prototype.computeGuidePersistentAndVisible;EF.prototype.cachedClientWidthChanged=EF.prototype.cachedClientWidthChanged;EF.prototype.resetGuide=EF.prototype.resetGuide;EF.prototype.activeEndpointChanged=EF.prototype.activeEndpointChanged;EF.prototype.guideOpenedChanged=EF.prototype.guideOpenedChanged;
EF.prototype.miniGuideVisibleChanged=EF.prototype.miniGuideVisibleChanged;EF.prototype.guideIsVisibleButNotPersistentChanged=EF.prototype.guideIsVisibleButNotPersistentChanged;EF.prototype.guidePersistentAndVisibleChanged=EF.prototype.guidePersistentAndVisibleChanged;EF.prototype.onGuideElementChanged=EF.prototype.onGuideElementChanged;EF.prototype.onGuidePersistentChanged=EF.prototype.onGuidePersistentChanged;EF.prototype.onRenderGuideChanged=EF.prototype.onRenderGuideChanged;
EF.prototype.onActiveEndpointChanged=EF.prototype.onActiveEndpointChanged;EF.prototype.onMiniGuideVisibleChanged=EF.prototype.onMiniGuideVisibleChanged;EF.prototype.onGuideIsVisibleButNotPersistentChanged=EF.prototype.onGuideIsVisibleButNotPersistentChanged;EF.prototype.onGuidePersistendAndVisibleChanged=EF.prototype.onGuidePersistendAndVisibleChanged;_.H([_.V(_.vG),_.x("design:type",Object)],EF.prototype,"ironResizableBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],EF.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],EF.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],EF.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],EF.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Boolean)],EF.prototype,"disabled",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],EF.prototype,"guidePersistentAndVisible",void 0);_.H([_.gd("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"onGuidePersistendAndVisibleChanged",null);_.H([_.Q(),_.x("design:type",Boolean)],EF.prototype,"guideIsVisibleButNotPersistent",void 0);
_.H([_.gd("guideIsVisibleButNotPersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.H([_.Q(),_.x("design:type",Object)],EF.prototype,"miniGuideVisible",void 0);_.H([_.gd("miniGuideVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"onMiniGuideVisibleChanged",null);_.H([_.Q(),_.x("design:type",Boolean)],EF.prototype,"forceMiniGuideClose",void 0);
_.H([_.Q(),_.x("design:type",Object)],EF.prototype,"activeEndpoint",void 0);_.H([_.gd("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"onActiveEndpointChanged",null);_.H([_.Q(),_.x("design:type",Boolean)],EF.prototype,"renderGuide",void 0);_.H([_.gd("renderGuide"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"onRenderGuideChanged",null);
_.H([_.Q(),_.x("design:type",Object)],EF.prototype,"guideOpened",void 0);_.H([_.Q(),_.x("design:type",Boolean)],EF.prototype,"guidePersistent",void 0);_.H([_.gd("guidePersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"onGuidePersistentChanged",null);_.H([_.Q(),_.x("design:type",Object)],EF.prototype,"guideUserStateOpened",void 0);_.H([_.Q(),_.x("design:type",String)],EF.prototype,"pageUrl",void 0);
_.H([_.Q(),_.x("design:type",String)],EF.prototype,"pageType",void 0);_.H([_.Q(),_.x("design:type",Number)],EF.prototype,"cachedClientWidth",void 0);_.H([_.Q(),_.x("design:type",Object)],EF.prototype,"guideElement",void 0);_.H([_.Q({selector:_.MG}),_.x("design:type",Object)],EF.prototype,"isFullscreenShorts",void 0);_.H([_.gd("guideElement"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"onGuideElementChanged",null);
_.H([_.gd("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"guidePersistentAndVisibleChanged",null);_.H([_.k8("guideIsVisibleButNotPersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.H([_.gd("miniGuideVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"miniGuideVisibleChanged",null);_.H([_.k8("guideOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"guideOpenedChanged",null);_.H([_.gd("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"activeEndpointChanged",null);
_.H([_.k8("pageUrl"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"resetGuide",null);_.H([_.k8("cachedClientWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"cachedClientWidthChanged",null);_.H([_.gd("guideOpened","guidePersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"computeGuidePersistentAndVisible",null);
_.H([_.k8("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"observeForMiniGuideVisible",null);_.H([_.VU("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EF.prototype,"onResize",null);_.H([_.k({disableElementRegistration:!0,is:"yt-guide-manager"})],EF);var AVd=_.D(EF,"yt-guide-manager",void 0,{mode:_.ZS("kevlar_poly_si_batch_j081")?1:2});var Jr=function(){var p=_.w.apply(this,arguments)||this;p.JSC$19802_keyboardInUse=!1;p.boundHandleCapturedKeydownEvent=function(y){p.handleCapturedKeydownEvent(y)};
return p};
_.A(Jr,_.w);_.J=Jr.prototype;_.J.attached=function(){this.listenToDocument(document)};
_.J.listenToDocument=function(p){p.addEventListener("keydown",_.MH(this,this.onKeyDownEvent));p.addEventListener("keyup",_.MH(this,this.onKeyUpEvent));p.addEventListener("mousedown",_.MH(this,this.onMouseDownEvent));_.n("desktop_keyboard_capture_keydown_killswitch")||p.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);p.addEventListener("yt-page-data-updated",_.MH(this,this.onPageUpdate))};
_.J.detached=function(){this.unlistenFromDocument(document)};
_.J.unlistenFromDocument=function(p){p.removeEventListener("keydown",_.MH(this,this.onKeyDownEvent));p.removeEventListener("keyup",_.MH(this,this.onKeyUpEvent));p.removeEventListener("mousedown",_.MH(this,this.onMouseDownEvent));_.n("desktop_keyboard_capture_keydown_killswitch")||p.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);p.removeEventListener("yt-page-data-updated",_.MH(this,this.onPageUpdate))};
_.J.ready=function(){_.WC().addProvider({provide:_.Zu,useValue:this})};
_.J.isKeyBoardInUse=function(){return this.JSC$19802_keyboardInUse};
_.J.handleCapturedKeydownEvent=function(p){if(p.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(p)};
_.J.onMouseDownEvent=function(){this.JSC$19802_keyboardInUse=!1};
_.J.onPageUpdate=function(){if(_.n("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.n("web_shorts_keyboard_shortcut_usage_log")){_.GQ.clear();for(var p=_.c(_.bO),y=p.next();!y.done;y=p.next()){var l=_.c(y.value);y=l.next().value;l=l.next().value;l=_.fY(l);_.GQ.set(y,l);_.pW(_.B2(),_.xc(),l)}_.Pd.clear();p=_.c(_.nA);for(y=p.next();!y.done;y=p.next())l=_.c(y.value),y=l.next().value,l=l.next().value,l=_.fY(l),_.Pd.set(y,l),_.pW(_.B2(),_.xc(),l);_.yj(_.B2(),_.xc(),[].concat(_.xq(_.Pd.values()),
_.xq(_.GQ.values())));_.qs(_.B2(),[].concat(_.xq(_.Pd.values()),_.xq(_.GQ.values())))}};
_.J.onMiniplayerActiveChange=function(){var p;(p=_.WC().resolve(_.IA).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(p.document):this.unlistenFromDocument(p.document))};
_.J.ignoreKeyEvent=function(p){if(p.ctrlKey||p.altKey)if(_.n("kevlar_macro_markers_keyboard_shortcut")){if(p.keyCode!==37&&p.keyCode!==39)return!0}else return!0;var y=_.Jx(p)||[];return _.JKO(y)?!0:p.defaultPrevented?(FM(p.keyCode,p.shiftKey,this.isShortsPage),!0):p.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(p):!1};
_.J.isSpacebarClick=function(p){var y=p||window.event;var l;y.composedPath&&typeof y.composedPath==="function"?l=y.composedPath():l=y.path;l&&l.length?y=l[0]:(y=y||window.event,y=y.target||y.srcElement,y.nodeType==3&&(y=y.parentNode));return y&&p.keyCode===32&&(p=y.tagName==="BUTTON"||y.tagName==="A"||y.tagName==="INPUT",y=(y=y.getAttribute("role"))&&(y==="option"||y==="button"||y.indexOf("menuitem")===0),p||y)?!0:!1};
_.J.onKeyDownEvent=function(p){if(!this.ignoreKeyEvent(p)&&(p.keyCode===191&&(p.shiftKey||p.metaKey?p.repeat!=null&&p.repeat||(this.openHotkeyDialog(),FM(p.keyCode,p.shiftKey,this.isShortsPage)):(this.focusSearchBox(),p.preventDefault())),!p.metaKey)){var y=_.WC().resolve(_.IA);switch(p.keyCode){case 9:this.JSC$19802_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(p);break;case 84:y.pipController.getWindow()&&window.focus();this.toggleTheaterMode(p.keyCode,p.shiftKey);break;case 73:y.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(p.keyCode,p.shiftKey);break;case 70:if(this.isShortsPage&&_.n("web_fullscreen_shorts")){_.cKV();break}this.isMiniplayerActive()?y.pipController.getWindow()&&(y.close(!0),window.focus()):this.passEventToPlayer(p);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(p.keyCode,p.shiftKey):this.closeMiniplayer(p.keyCode,p.shiftKey)||this.passEventToPlayer(p);break;case 13:p.shiftKey&&_.WC().resolve(_.r2).activate(p);break;default:this.passEventToPlayer(p)}}};
_.J.onKeyUpEvent=function(p){if(!this.ignoreKeyEvent(p))if(_.n("web_speedmaster_spacebar_control")&&p.keyCode===32)this.handlePlayerSpaceKey(p,!0);else{var y=this.getPlayerManager();y&&(y=y.getPlayer())&&y.handleGlobalKeyUp(p.keyCode,p.shiftKey,p.ctrlKey,p.altKey,p.metaKey,p.key,p.code)}};
_.J.getPlayerManager=function(){var p=_.$o(),y=_.WC().resolve(_.RK(_.mm));return p&&y&&y.isOnWatch()?p:null};
_.J.passEventToPlayer=function(p,y){var l=this,q,t,E,e;return _.h(function(C){if(C.nextAddress==1){if(!_.n("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&l.isMiniplayerActive())q=_.WC().resolve(_.IA).getPlayerElement();else if(l.inlinePreviewIsActive){if(t=_.jN(l.hostElement,"yt-get-inline-preview-player-action"),(E=t)==null?0:E[0])q=t[0]}else q=_.$o();return q?C.yield(q.getPlayerPromise(),3):C.jumpTo(0)}e=C.yieldResult;y?e.handleGlobalKeyUp(p.keyCode,p.shiftKey,p.ctrlKey,p.altKey,p.metaKey,
p.key,p.code):e.handleGlobalKeyDown(p.keyCode,p.shiftKey,p.ctrlKey,p.altKey,p.metaKey,p.key,p.code,p.repeat);p.keyCode!==38&&p.keyCode!==40&&FM(p.keyCode,p.shiftKey,l.isShortsPage);_.rR(C)})};
_.J.focusSearchBox=function(){_.Ub(this.hostElement,"yt-focus-searchbox")};
_.J.openHotkeyDialog=function(){_.Ub(this.hostElement,"yt-open-hotkey-dialog")};
_.J.isMiniplayerActive=function(){return _.WC().resolve(_.IA).isMiniplayerActive()};
_.J.closeMiniplayer=function(p,y){return this.isMiniplayerActive()?(_.WC().resolve(_.IA).close(),FM(p,y,this.isShortsPage),!0):!1};
_.J.toggleTheaterMode=function(p,y){var l=_.YS(_.ei().getState()),q=this.getPlayerManager(),t=_.n("disable_theater_mode_keyboard")||_.o4("START_IN_FULL_WINDOW_MODE");q&&!t&&(l=!l,_.RJ()&&_.n("external_fullscreen")&&(l=!0),_.$w(this.hostElement,"yt-toggle-theater-mode",[l]),FM(p,y,this.isShortsPage))};
_.J.toggleMiniplayer=function(p,y){var l=this.getPlayerManager();if(this.isMiniplayerActive()){var q;((q=_.WC().resolve(_.RK(_.mm)))==null?0:q.isOnWatch())?_.WC().resolve(_.IA).close(!0):_.BO(_.WC().resolve(_.IA));FM(p,y,this.isShortsPage)}else l&&(_.$w(this.hostElement,"yt-activate-miniplayer-from-watch-action"),FM(p,y,this.isShortsPage))};
_.J.handlePlayerSpaceKey=function(p,y){var l=!!_.$o()||this.isMiniplayerActive();l=_.n("disable_space_scroll_fix")||l;_.n("global_spacebar_pause")&&!this.isKeyBoardInUse()&&l&&(p.preventDefault(),this.passEventToPlayer(p,y))};
_.J.isPresentingTheaterMode=function(){return _.n("web_watch_enable_tm_esc_key")?_.YS(_.ei().getState())&&!_.RJ():!1};
Jr.prototype.onMiniplayerActiveChange=Jr.prototype.onMiniplayerActiveChange;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Jr.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Jr.prototype,"ytdReduxBehavior",void 0);_.H([_.Q({selector:_.Vyj}),_.x("design:type",Boolean)],Jr.prototype,"inlinePreviewIsActive",void 0);_.H([_.Q({selector:_.CC5}),_.x("design:type",Boolean)],Jr.prototype,"isShortsPage",void 0);
_.H([_.Q({selector:_.vV}),_.x("design:type",Boolean)],Jr.prototype,"miniplayerIsActive",void 0);_.H([_.gd("miniplayerIsActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jr.prototype,"onMiniplayerActiveChange",null);_.H([_.k({disableElementRegistration:!0,is:"yt-hotkey-manager"})],Jr);_.D(Jr,"yt-hotkey-manager",void 0,{mode:_.ZS("kevlar_poly_si_batch_j081")?1:2});var cD=function(){var p=_.w.apply(this,arguments)||this;p.loopStateEntityKey_=null;p.playlistLoopStateEntity_=null;p.isShuffleNextPlaylist=!1;p.PLAYER_EVENTS_=new Map;p.playerListenersSetup_=!1;p.videoSkipJob_=0;p.canAutoAdvance_=!1;p.playerManager_=null;p.TEST_ONLY={};return p};
_.A(cD,_.w);_.J=cD.prototype;_.J.ready=function(){_.WC().addProvider({provide:_.yh,useValue:this.hostElement})};
_.J.created=function(){this.PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.J.attached=function(){document.addEventListener("yt-navigate-start",_.MH(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.MH(this,this.onYtNavigateFinish_))};
_.J.detached=function(){document.removeEventListener("yt-navigate-start",_.MH(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.MH(this,this.onYtNavigateFinish_))};
_.J.updatePlaylistEventListeners=function(p,y){y&&!this.playerListenersSetup_?(this.playerManager_=p,this.registerPlaylistEventListeners_(p)):!y&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(p))};
_.J.setPlayer=function(p){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=p};
_.J.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.J.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.J.registerPlaylistEventListeners_=function(p){var y=this;p.getPlayerPromise().then(function(l){y.playerListenersSetup_||(y.ytPlayerListenerBehavior.listenToPlayerEvents(l,y.PLAYER_EVENTS_),y.playerListenersSetup_=!0)})};
_.J.removePlaylistEventListeners_=function(p){var y=this;p.getPlayerPromise().then(function(l){y.playerListenersSetup_&&(y.ytPlayerListenerBehavior.unlistenFromPlayerEvents(l,y.PLAYER_EVENTS_),y.playerListenersSetup_=!1)})};
_.J.setPlaylistComponent=function(p){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.MH(this,this.onPlaylistYtNavigate_)),p&&(p.data&&this.playlistComponent.data&&p.data.playlistId==this.playlistComponent.data.playlistId?(p.loopOn=this.playlistComponent.loopOn,p.shuffleOn=this.playlistComponent.shuffleOn):(p.loopOn=!1,p.shuffleOn=!1),this.isShuffleNextPlaylist&&(p.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=p;this.playlistComponent.addEventListener("yt-navigate",
_.MH(this,this.onPlaylistYtNavigate_))};
_.J.setAutoplayRenderer=function(p){this.autoplayData=p};
_.J.setPlaylistData=function(p){this.currentPlaylistData_=p;_.Ub(this.hostElement,"yt-playlist-data-updated");_.Ts.isEmpty(p)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(p)};
_.J.setPlayerPlaybackControlData=function(p){this.playerManager_&&this.playerManager_.updatePlayerComponents(p.playlistPanelRenderer)};
_.J.getPlaylistData=function(){return this.currentPlaylistData_};
_.J.getTempData_=function(p,y){if(this.playlistComponent==null)return null;p={};this.playlistComponent.shuffleOn&&(p.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(p.loop_on=this.playlistComponent.loopOn);y&&(p.autonav="1",_.WC().resolve(_.Xf),y=_.Rd(),y>0&&(p.lact=y),this.playerManager_&&(y=this.playerManager_.getPlayer())&&y.shouldSendVisibilityState()&&(y=y.getVisibilityState(),y!=0&&(p.vis=y)));_.n("enable_unknown_lact_fix_on_html5")&&(_.WC().resolve(_.Xf),p.lact=
_.Rd());return p};
_.J.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.J.setLoopStateEntityKey_=function(p){var y;this.loopStateEntityKey_=((y=this.getPlaylistLoopData_(p))==null?void 0:y.playlistLoopStateEntityKey)||null};
_.J.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.J.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.J.skipVideo=function(){var p=this,y=_.n("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||y)y=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.D6(_.TR,function(){p.onPlaylistNext();p.videoSkipJob_=0},y)};
_.J.cancelVideoSkip=function(){this.videoSkipJob_&&(_.TR.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.J.isInBackground_=function(){var p=window.document.visibilityState;return!(!p||p=="visible")};
_.J.onPlaylistIndex_=function(p){this.playlistComponent&&(p=this.playlistComponent.data.contents[p].playlistPanelVideoRenderer.navigationEndpoint,_.Ub(this.hostElement,"yt-navigate",{endpoint:p,tempData:this.getTempData_(p)}))};
_.J.onPlayerStateChange_=function(p){if(p=p==0&&this.playlistComponent&&this.canAutoAdvance_)p=_.md.getInstance(),p=!(p.autonavState_===3?p.autonavPauseReason_&&p.autonavPauseReason_.inputBoxFocus===!0:p.autonavState_===1&&p.disabledAutonavPauseReason_&&p.disabledAutonavPauseReason_.inputBoxFocus===!0);p&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.J.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.J.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.J.navigateToAutoplayWatchEndpoint_=function(p,y,l){var q=this.playlistComponent.data.currentIndex,t=this.getNumPlayableVideos_();p=="NORMAL"&&y=="autoplayVideo"&&q+1>=t&&l||!(p=this.getVideoEndpoint_(p,y))||(l=this.getTempData_(p,l),_.Ub(this.hostElement,"yt-navigate",{endpoint:p,tempData:l}))};
_.J.getNumPlayableVideos_=function(){for(var p=0,y=_.c(this.playlistComponent.data.contents||[]),l=y.next();!l.done;l=y.next())l.value.playlistPanelVideoRenderer&&(p+=1);return p};
_.J.getVideoEndpoint_=function(p,y){if(this.autoplayData&&this.autoplayData.sets)for(var l=0,q=this.autoplayData.sets.length;l<q;l++){var t=this.autoplayData.sets[l];if(t.mode==p){if(t[y])return t[y];break}}else p=new _.SM("AutoplayData is undefined in playlist manager","Mode: "+p+" endpoint: "+y),_.vs(p)};
_.J.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.J.onPlaylistYtNavigate_=function(p){if(p.detail.endpoint){p.stopPropagation();var y=p.detail;y.tempData=this.getTempData_(p.detail.endpoint);_.Ub(this.hostElement,"yt-navigate",y)}};
_.J.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.J.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.J.playlistLoopStateEntityChanged_=function(p){var y=this,l,q,t;return _.h(function(E){if(E.nextAddress==1){if(!p)return E.return();l=p.state==="PLAYLIST_LOOP_STATE_ONE";return y.playerManager_?E.yield(y.playerManager_.getPlayerPromise(),3):E.jumpTo(2)}E.nextAddress!=2&&(q=E.yieldResult,q.setLoopVideo(l));t=p.state==="PLAYLIST_LOOP_STATE_ALL";y.playlistComponent&&(y.playlistComponent.loopOn=t);_.rR(E)})};
_.J.getPlaylistLoopData_=function(p){var y,l;if(p=p==null?void 0:(y=p.playlistButtons)==null?void 0:(l=y.menuRenderer)==null?void 0:l.topLevelButtons)for(y=_.c(p),l=y.next();!l.done;l=y.next())if(l=l.value,l.playlistLoopButtonRenderer)return l.playlistLoopButtonRenderer};
_.J.getLoopStateCommand_=function(p){var y=this.getPlaylistData(),l;y=((l=this.getPlaylistLoopData_(y))==null?void 0:l.states)||[];var q;p=(q=_.G(y[p?1:2],_.wPV))==null?void 0:q.button;var t;return(t=_.G(p,_.yv))==null?void 0:t.command};
_.J.onPlayerLoopChange_=function(p){this.playlistLoopStateEntity_&&(p?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(p=this.getLoopStateCommand_(p))&&this.ytComponentBehavior.resolveCommand(p)};
_.J.onSleepTimerSettingsChanged_=function(p){this.canAutoAdvance_=p!=="End of video"};
cD.prototype.onPlaylistLoopStateEntityChanged=cD.prototype.onPlaylistLoopStateEntityChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],cD.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.c8.YtPlayerListenerBehavior),_.x("design:type",_.eE)],cD.prototype,"ytPlayerListenerBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],cD.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],cD.prototype,"loopStateEntityKey_",void 0);
_.H([_.Q({selectorArgs:["loopStateEntityKey_"],selector:_.wOt}),_.x("design:type",Object)],cD.prototype,"playlistLoopStateEntity_",void 0);_.H([_.gd("playlistLoopStateEntity_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cD.prototype,"onPlaylistLoopStateEntityChanged",null);_.H([_.k({disableElementRegistration:!0,is:"yt-playlist-manager"})],cD);_.D(cD,"yt-playlist-manager",void 0,{mode:_.ZS("kevlar_poly_si_batch_j081")?1:2});var Zd6,MKO=function(){if(Zd6!==void 0)return Zd6;var p=document.createElement("template");_.M(p,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-third-party-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Zd6=p};var e8=function(){var p=_.w.apply(this,arguments)||this;p.lastCallback=null;p.getAccountLinkPromises={};p.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);p.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return p};
_.A(e8,_.w);_.J=e8.prototype;_.J.getLocation=function(){return window.location.href};
_.J.getCompletionUrl=function(){return _.eN(this.getLocation())};
_.J.containsRedirectState=function(p){return(p=_.xz(_.hpL(p)))?(new URLSearchParams(p)).get("redirect_state")!==null:!1};
_.J.createGalConfig=function(p,y){var l=new DY6;p=l=y?this.getPopupOrRedirectSetting(l,_.OY("LINK_API_KEY"),_.OY("LINK_API_KEY_REDIRECT"),p):Hqw(l,_.OY("LINK_API_KEY"));p.authUser=_.OY("SESSION_INDEX")||0;p.supportedFlows=new Set([4]);return p.build()};
_.J.getPopupOrRedirectSetting=function(p,y,l,q){this.isGalInteractionPopupMode(q)?(p.interactionMode=0,p=Hqw(p,y)):(p.interactionMode=1,y=this.getCompletionUrl(),p.completionUrl=y,p=Hqw(p,l));return p};
_.J.isGalInteractionPopupMode=function(p){if(this.redirectModeProviderAllowlist.has(p))switch(p){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.J.getStatusEntityKeyForProviderId=function(p){return _.PV(p+":all","accountLinkStatusEntity")};
_.J.findNestedPropValue=function(p,y){var l=!1,q=null;JSON.stringify(p,function(t,E){l||t!==y||(l=!0,q=E);return l?null:E});
return q};
_.J.findAccountLinkButtonViewModel=function(p,y){var l=null,q=!1;JSON.stringify(p,function(t,E){q||E.accountLinkStatusEntityKey!==y||E.accountLinkStatusSecondaryEntityKey||(q=!0,l=E);return q?null:E});
return l};
_.J.executeLinkingSuccessOrFailureCommands=function(p,y,l){var q=null,t;(y==null?0:(t=y.url)==null?0:t.includes("account_sharing"))?q=y==null?void 0:y.response:q=y==null?void 0:y.response;(y=this.findAccountLinkButtonViewModel(q,p))?(p=l?this.findNestedPropValue(y,"onSuccessCommand"):this.findNestedPropValue(y,"onFailureCommand"))?_.Zb([p],this.hostElement):_.ph(Error("fl")):_.ph(Error("gl`"+p))};
_.J.handleInitializeRequest=function(p,y){var l=this,q=ced(this.createGalConfig(p,!0));this.containsRedirectState(this.getLocation())?qtd(p,q.config,q.galService).then(function(t){var E=l.getStatusEntityKeyForProviderId(p);if(t.statusCode===1)y&&l.executeLinkingSuccessOrFailureCommands(E,y,!0),t=l.getLocation().indexOf("#"),t!==-1&&window.history.pushState(null,"",l.getLocation().substring(0,t));else return y&&l.executeLinkingSuccessOrFailureCommands(E,y,!1),Promise.reject(Error(t.statusMessage))}).catch(function(t){_.vs(t);
_.TX("gamingAccountLinkStatusChanged",{serviceId:p,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(t)}):this.getAccountLinkPromises[p]=q.startLinkingSession({serviceId:p})};
_.J.handleAccountLinkCommand=function(p){_.G(p,M4i)&&this.handleLinkRequest(_.G(p,M4i))};
_.J.handleLinkRequest=function(p){var y=this,l=p.thirdPartyId;if(l)if(this.isGalInteractionPopupMode(l)){var q=function(){y.closeAndFire("ytd-gaming-account-link-setting-renderer",p.onFailureCommand)},t=function(){y.closeAndFire("ytd-gaming-account-link-setting-renderer",p.onSuccessCommand)};
this.lastCallback=t;this.getAccountLinkPromises[l].then(function(E){jCw(E).then(function(e){e.statusCode===1?t():q()})}).catch(function(){q()})}else this.getAccountLinkPromises[l].then(function(E){jCw(E).then(function(e){if(e.statusCode!==1)return Promise.reject(Error(e.statusMessage))})}).catch(function(E){_.vs(E);
_.TX("gamingAccountLinkStatusChanged",{serviceId:l,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(E)})};
_.J.closeAndFire=function(p,y){_.$w(this.hostElement,"yt-close-popup-action",[p]);y&&_.Zb([y],this.hostElement)};
_.J.handleAccountUnlinkCommand=function(p){_.G(p,V4L)&&this.handleUnlinkRequest(_.G(p,V4L))};
_.J.handleUnlinkRequest=function(p){var y=this,l=p.thirdPartyId;if(l){var q=function(){y.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",p.onFailureCommand)},t=function(){y.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",p.onSuccessCommand)};
this.lastCallback=t;var E=ced(this.createGalConfig(l,!1));this.unlinkUserGal(E,l).then(function(e){e.statusCode===1?t():q()}).catch(function(){q()})}};
_.J.unlinkUserGal=function(p,y){return p.deleteLink(y)};
_.J.handleLogAccountLinkingEventCommand=function(p){_.n("enable_gel_log_commands")&&_.G(p,ga1)&&(p=_.G(p,ga1).event)&&_.TX("gamingAccountLinkStatusChanged",p)};
_.Jh.Object.defineProperties(e8,{template:{configurable:!0,enumerable:!0,get:function(){return MKO()}}});
_.H([_.V(_.Ss.YtOpenPopupBehavior),_.x("design:type",Object)],e8.prototype,"ytOpenPopupBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],e8.prototype,"ytActionHandlerBehavior",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-third-party-manager"})],e8);_.D(e8,"ytd-third-party-manager",function(){return MKO()},{mode:_.ZS("kevlar_poly_si_batch_j081")?1:2});var VK6,g$i=function(){if(VK6!==void 0)return VK6;var p=document.createElement("template");_.M(p,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return VK6=p};var Qbu=_.c0(["\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      "]),hr=function(){var p=_.w.apply(this,arguments)||this;p.currentPage=void 0;p.renderLoadingStateJobId=0;p.updatePageDataJobId=0;p.pageDisposeJobsets=new WeakMap;p.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-start-loading-learning-journey":"startLoadingLearningJourney",
"yt-get-page-offset":"getPageOffset","yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose","yt-stop-old-player":"onYtStopOldPlayer"};p.shouldApplyLockupToWatchTransition=_.n("web_thumbnail_to_watch_transition");p.shouldApplySlideTransition=_.$h("web_page_transition_type")==="slide"||_.n("enable_plj_landing_page");p.shouldApplyLearningJourneyTransition=_.n("enable_plj_landing_page");p.TEST_ONLY=void 0;return p};
_.A(hr,_.w);_.J=hr.prototype;_.J.ready=function(){var p=_.WC();p.addProvider({provide:_.mm,useValue:this});p.addProvider({provide:_.umU,useValue:this})};
_.J.created=function(){this.pagePool=new p5u;this.contextSwitcher=new WST};
_.J.attached=function(){_.Ub(this.hostElement,"attached");var p=_.WC().resolve(_.RK(_.vI));p&&(this.contextSwitcher.JSC$19628_networkService_=p);this.viewTransitionManager=_.WC().resolve(_.xr);this.setupPageTransitionAnimation()};
_.J.getPageOffset=function(p){return p.getScrollTop()};
_.J.setPageOffset=function(p,y){try{p.setScrollTop(y)}catch(l){}};
_.J.setPageOffsetForNavigation=function(p,y){_.Ub(this.hostElement,"yt-navigate-set-page-offset",{page:p,offset:y===void 0?0:y})};
_.J.pauseActiveContext=function(){var p=this.contextSwitcher;p.activeContext_&&p.activeContext_.pause()};
_.J.getModuleNameForType=function(p){return p==="watch"?_.n("kevlar_watch_fixie")?"watchFixie":_.n("kevlar_watch_grid")?"watchGrid":"watchFlexy":p==="shorts"||p==="search"?p:"browse"};
_.J.attachPage=function(p){var y,l=!_.n("pc_is_attached_ks")&&(p==null?void 0:(y=p.polymerController)==null?void 0:y.isAttached);if(!p.isAttached&&!l)try{_.jR(this.hostElement).appendChild(p)}catch(t){var q;_.vs(new _.SM("Error attaching page element for component",{origin:(q=this.currentPage)==null?void 0:q.is,component:p.is}))}};
_.J.setActivePage=function(p){var y=this,l=!1,q=function(){var t=y.isOnWatch(),E=y.currentPage;if(p)if(p!==y.currentPage){E&&(E.hidden=!0,E.active=!1,E.removeAttribute("role"));y.currentPage=p;var e,C=_.K4((e=y.data)==null?void 0:e.endpoint);E&&_.Ub(y.hostElement,"yt-page-type-changed",{oldPageType:E.is,newPageType:p.is,newPageSubtype:C});_.hl().dispatch(_.$y({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:p.is}));_.hl().dispatch(_.$y({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:C||""}));p.hidden=
!1;y.attachPage(p);p.active=!0;p.setAttribute("role","main");E&&y.setPageOffsetForNavigation(p,0);_.n("kevlar_remove_page_dom_on_switch")&&!t&&E&&_.jR(y.hostElement).removeChild(E)}else l=!0;else t=new _.SM("Unable to set active page",E?E.is:"unknown origin",(C=y.data)==null?void 0:C.endpoint),_.Bs(t)};
this.shouldRunBrowseTransition(this.currentPage,p)?Sww(this.viewTransitionManager,q):this.shouldRunLearningJourneyTransition(this.currentPage,p)?kYO(this.viewTransitionManager,q):q();return l};
_.J.shouldRunBrowseTransition=function(p,y){return this.shouldApplySlideTransition&&(p==null?void 0:p.is)==="ytd-browse"&&(y==null?void 0:y.is)==="ytd-browse"&&p!==y};
_.J.shouldRunLearningJourneyTransition=function(p,y){return this.shouldApplyLearningJourneyTransition&&(p==null?void 0:p.is)==="ytd-browse"&&((y==null?void 0:y.is)==="ytd-watch-learning-journey"||(y==null?void 0:y.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.J.shouldRunWatchNextLoadedTransition=function(p,y){return this.viewTransitionManager&&p.is==="ytd-watch-flexy"&&y};
_.J.updatePageData=function(p){var y=this,l=this.data;this.updatePageDataJobId&&_.TR.cancelJob(this.updatePageDataJobId);this.data=p;return new _.Ps(function(q){var t=function(){p.filler?y.performDataUpdate(p,l):f6w(function(){y.performDataUpdate(p,l)});
var u=_.qB();_.sX(u,"cr")||u.processSignal("cr");q()},E=function(){p&&p.page==="watch"?y.updatePageDataJobId=_.D6(_.TR,t):t()};
if(_.n("kevlar_enable_mss_page_modules_client")&&p){var e=_.WC().resolve(_.yR),C=y.getModuleNameForType(p.page);(e=iFd(e,[C]))?e.then(E):E()}else E()})};
_.J.isDownloadsPage=function(p){var y,l;return(p==null?void 0:(y=p.endpoint)==null?void 0:(l=y.browseEndpoint)==null?void 0:l.browseId)==="FEdownloads"};
_.J.setPlayerSyncInterval=function(p){var y;return _.h(function(l){if(l.nextAddress==1)return l.yield(_.WC().resolve(_.PN),2);y=l.yieldResult;y.setUpPositionSyncInterval(p);_.rR(l)})};
_.J.performDataUpdate=function(p,y){_.n("kevlar_early_popup_close")||_.$w(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var l=!p.filler;l&&(_.fy("lps"),_.n("config_age_report_killswitch")||bxi());var q=Av(p),t,E=!1;if(_.n("kevlar_remove_page_dom_on_switch")){var e=y&&Av(y);q===e&&(t=this.getCurrentPage())}t||(t=IS(this.pagePool,q));l&&drV(this.pagePool.elementPoolPopulator,q);l&&!this.renderLoadingStateJobId&&(E=this.setActivePage(t));if(t){e=q==="watch";var C=
q==="shorts",u=q==="learning_journey_watch";_.n("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(t);if(e||C||u)t.playerData=p.playerResponse;if(C)if(_.n("web_enable_delay_shorts_sequence_call")){p.reelWatchSequenceResponse&&(t.reelWatchSequenceResponse=p.reelWatchSequenceResponse);t.currentEndpoint=p.endpoint;var a;t.isPreviousPageShorts=!!(y==null?0:(a=y.endpoint)==null?0:a.reelWatchEndpoint);var m,U;p.cachedSequenceParams=((m=p.endpoint)==null?void 0:(U=m.reelWatchEndpoint)==
null?void 0:U.sequenceParams)||p.cachedSequenceParams||(y==null?void 0:y.cachedSequenceParams);var b,P;p.cachedSequenceProvider=((b=p.endpoint)==null?void 0:(P=b.reelWatchEndpoint)==null?void 0:P.sequenceProvider)||p.cachedSequenceProvider||(y==null?void 0:y.cachedSequenceProvider);t.cachedSequenceParams=p.cachedSequenceParams;t.cachedSequenceProvider=p.cachedSequenceProvider}else{p.reelWatchSequenceResponse?t.reelWatchSequenceResponse=p.reelWatchSequenceResponse:p.cachedReelWatchSequenceResponse?
t.reelWatchSequenceResponse=p.cachedReelWatchSequenceResponse:_.n("web_enable_cached_reel_sequence_fix")&&t.cachedReelWatchSequenceResponse&&!t.reelWatchSequenceResponse&&(t.reelWatchSequenceResponse=t.cachedReelWatchSequenceResponse);t.currentEndpoint=p.endpoint;var Z;t.isPreviousPageShorts=!!(y==null?0:(Z=y.endpoint)==null?0:Z.reelWatchEndpoint);p.cachedReelWatchSequenceResponse=p.reelWatchSequenceResponse||p.cachedReelWatchSequenceResponse||(y==null?void 0:y.cachedReelWatchSequenceResponse);t.cachedReelWatchSequenceResponse=
p.cachedReelWatchSequenceResponse}a=this.isDownloadsPage(p);m=this.isDownloadsPage(y);a&&!m?this.setPlayerSyncInterval(6E5):!a&&m&&this.setPlayerSyncInterval();_.n("block_all_player_prefetch_requests")||this.preparePrefetchRequest(p,t,l,e,C,u);NP1(_.WC().resolve(_.IA),y,p);_.aw(_.WC().resolve(_.Xf));_.n("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(t);l?(l=typeof t.loadPage,l==="function"?(t.pageContext=aod(this.contextSwitcher,t,t.data!==p.response),l=function(){t.loadPage(p.response)},
this.shouldApplySlideTransition&&t.is==="ytd-browse"&&E&&(q==="learning"||this.isDifferentBrowseId(p==null?void 0:p.endpoint,y==null?void 0:y.endpoint))?Sww(this.viewTransitionManager,l):this.shouldRunWatchNextLoadedTransition(t,E)?LVw(this.viewTransitionManager,l):l()):_.fT(new _.SM("b/38014653 ",[q,
t.is,t.nodeName,l,t.isAttached,y&&Av(y),this.hostElement.children.length])),_.fy("pdl")):(t.hidden=!0,p.response.filler=!0,t.data=p.response,this.attachPage(t));_.Ub(this.hostElement,"yt-page-data-updated",{pageType:q})}_.rJ(_.TR,function(){_.n("logging_avoid_blocking_during_navigation")&&_.DWl().transition("none");var K=KSA(),F=t;if(p){var L=pmw(p),T=yxw(p),O;a:{if(p.playerResponse){var f=p.playerResponse,v;if((O=f.auxiliaryUi)==null?0:(v=O.messageRenderers)==null?0:v.upsellDialogRenderer){O=f.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(p.response&&(O=p.response,(f=O.overlay)==null?0:f.upsellDialogRenderer)){O=O.overlay.upsellDialogRenderer;break a}O=void 0}var z;var sc;v=(z=p.playerResponse)==null?void 0:(sc=z.auxiliaryUi)==null?void 0:sc.messageRenderers;z=(v==null?void 0:v.enforcementMessageViewModel)||(v==null?void 0:v.bkaEnforcementMessageViewModel);z=(z==null?void 0:z.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?z:void 0;var hR;a:{if(p.response&&(sc=p.response,(hR=sc.overlay)==null?0:
hR.commandWrapperPromoRenderer)){hR=sc.overlay.commandWrapperPromoRenderer;break a}hR=void 0}QwL(K,L,T,O,z,hR,F)}})};
_.J.preparePrefetchRequest=function(p,y,l,q,t,E){var e,C,u,a,m,U,b,P,Z,K,F,L,T,O,f;return _.h(function(v){if(v.nextAddress==1)return!l||!(q||t||E)||_.n("kevlar_disable_background_prefetch")&&_.YZ(_.izL)()===0?v.return():(e=_.UZ(y))?v.yield(e.getPlayerPromise(),2):v.return();C=v.yieldResult;u=_.WC().resolve(_.RK(_.vI));if(!u)return v.return();if(t)return a=_.m8(_.D1),yy9(a,(m=p.endpoint)==null?void 0:m.reelWatchEndpoint,y.reelWatchSequenceResponse,C,u),v.return();P=(U=p.response)==null?void 0:(b=U.responseContext)==
null?void 0:b.webResponseContextExtensionData;if(!P)return v.return();T=(Z=p.response)==null?void 0:(K=Z.contents)==null?void 0:(F=K.twoColumnWatchNextResults)==null?void 0:(L=F.autoplay)==null?void 0:L.autoplay;O=_.WC().resolve(_.yh);f=_.m8(_.D1);ly1(f,P,C,u,O,T);_.rR(v)})};
_.J.movePlayerToWatch=function(p){var y=this,l,q;return _.h(function(t){l=IS(y.pagePool,"watch");q=l.getPlayerContainer();p.appendTo(q);_.rR(t)})};
_.J.movePlayerToShorts=function(p){var y=this,l,q,t;return _.h(function(E){l=IS(y.pagePool,"shorts");q=l.getPlayerContainer();(t=p)==null||t.appendTo(q,void 0,!0);_.rR(E)})};
_.J.getPlayerFromWatch=function(){var p=IS(this.pagePool,"watch");return _.UZ(p)};
_.J.getPlayerFromShorts=function(){var p=IS(this.pagePool,"shorts");return _.UZ(p)};
_.J.startLoadingWatch=function(){var p=this,y=IS(this.pagePool,"watch");this.renderLoadingStateJobId?(_.TR.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,FVd(this.viewTransitionManager,function(){p.renderPageLoadingState("watch")})):this.setActivePage(y)};
_.J.startLoadingShorts=function(){var p=IS(this.pagePool,"shorts");this.setActivePage(p)};
_.J.startLoadingLearningJourney=function(){var p=IS(this.pagePool,"learning_journey_watch");this.setActivePage(p)};
_.J.getCurrentPage=function(){return this.currentPage};
_.J.getDestinationPageType=function(){return this.destinationPageType};
_.J.getCurrentData=function(){return this.data};
_.J.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.J.isOnShorts=function(){var p;return((p=this.currentPage)==null?void 0:p.is)==="ytd-shorts"};
_.J.isWatchPage=function(p){return!!p&&(p.is==="ytd-watch-flexy"||p.is==="ytd-watch-fixie"||p.is==="ytd-watch-grid")};
_.J.preparePage=function(p,y){var l=this,q=function(){var e=l.pagePool.preparePage(p,l.currentPage,y);e&&l.attachPage(e)},t=function(e){_.X$(e,y);
_.vs(e)};
if(_.n("kevlar_enable_mss_page_modules_client")){var E=this.getModuleNameForType(p);if(E=iFd(_.WC().resolve(_.yR),[E])){E.then(q.bind(this)).catch(t.bind(this));return}}try{q()}catch(e){t(e)}};
_.J.lazyPrepareCriticalPages=function(p,y){p=_.K4(y)||p;_.n("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(p).then(this.maybePrepareWatchPage.bind(this,p)):this.maybePrepareWatchPage(p)};
_.J.maybePrepareWatchPage=function(p){p!=="watch"&&_.rJ(_.TR,this.preparePage.bind(this,"watch"))};
_.J.downloadPageModules=function(p){p=this.getModuleNameForType(p);var y=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);y.delete(p);var l=_.WC().resolve(_.yR);l.JSC$18384_loadModules(p);return l.JSC$18384_loadModules.apply(l,_.xq(y))};
_.J.renderPageLoadingState=function(p,y){this.preparePage(p,y);var l=IS(this.pagePool,p);l.loadingData&&(l.loadingData.endpoint=y);l.loading=!0;this.setActivePage(l);p!=="watch"&&p!=="learning_journey_watch"||_.Ub(this.hostElement,"yt-guide-close")};
_.J.prepareForNavigation=function(p,y){var l=this;if(this.currentPage&&this.data){var q=_.K4(y)||p;this.destinationPageType=q;Av(this.data)==q&&_.Ub(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((p==="watch"||p==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.TR.cancelJob(this.renderLoadingStateJobId);_.WC().resolve(_.IA).deactivate(y);var t=this.data;this.renderLoadingStateJobId=_.Xp(_.TR,function(){FVd(l.viewTransitionManager,
function(){if(l.data!=t){var E=IS(l.pagePool,p);l.setActivePage(E)}else l.renderPageLoadingState(p,y);l.renderLoadingStateJobId=0})},150)}};
_.J.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var p=new _.$5(1);this.currentPage.pageDisposeJobs.forEach(function(y){_.js(p,y)});
this.pageDisposeJobsets.set(this.currentPage,p)}};
_.J.flushPageDisposeJobset=function(p){var y=this.pageDisposeJobsets.get(p);y&&(y.flushJobs(),this.pageDisposeJobsets.delete(p))};
_.J.onYtStopOldPlayer=function(p,y){y=y===void 0?!1:y;var l,q=_.jM("kevlar_new_stop_old_player_logic_pages");if(_.n("kevlar_check_current_page_on_stop_old_player")&&(q.length===0||this.currentPage&&q.includes(this.currentPage.is)))if(this.data&&(l=Av(this.data)),Av(p)===l&&this.currentPage&&Av(this.currentPage.data)!==l)var t=_.UZ(this.currentPage);else l=Av(this.data),t=IS(this.pagePool,l),t=_.UZ(t);else this.data&&(l=Av(this.data),t=IS(this.pagePool,l),t=_.UZ(t));if(t)if(p=Av(p),q=IS(this.pagePool,
p),q=_.UZ(q),t==q)y&&!_.n("kevlar_disable_preemptive_player_reset")&&t.resetForNewPlayback();else if(y=l==="watch"&&p!=="watch",!y||p==="shorts"||_.GOM()&&!Wl7(this.data)&&p!=="yts-products"&&p!="mini_app"&&p!="playables")l=_.WC().resolve(_.IA),y&&l.isMiniplayerActive()&&l.pipController.getWindow()||t.stop()};
_.J.setupPageTransitionAnimation=function(){if(this.shouldApplySlideTransition&&this.shouldApplyLockupToWatchTransition){var p=_.UC("web_page_transition_exit_ms"),y=_.UC("web_page_transition_wait_ms"),l=_.UC("web_page_transition_enter_ms");if(!isNaN(p)||!isNaN(y)||!isNaN(l))if(p=nH9(Qbu,p,y,l))y=document.createElement("style"),y.textContent=_.pHm(p),document.head.appendChild(y)}};
_.J.isDifferentBrowseId=function(p,y){p=_.G(p,_.wC);y=_.G(y,_.wC);return(p==null?void 0:p.browseId)!==(y==null?void 0:y.browseId)};
_.Jh.Object.defineProperties(hr,{template:{configurable:!0,enumerable:!0,get:function(){return g$i()}}});
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],hr.prototype,"ytActionHandlerBehavior",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-page-manager"})],hr);_.D(hr,"ytd-page-manager",function(){return g$i()},{mode:_.ZS("kevlar_poly_si_batch_j081")?1:2});var Ce=function(p,y,l){l=l===void 0?!1:l;_.Sr.call(this);this.draggableElement=p;this.callbacks=y;this.allowClicks=l;this.dragOccurred=!1;this.internalDragger=new _.zC(this.draggableElement);this.dragDelay=new _.hh(this.delayedDrag.bind(this));KAL(this);this.allowClicks&&(_.mU$(this.internalDragger,5),p.addEventListener("click",_.MH(this,this.validateClick),{capture:!0}))};
_.A(Ce,_.Sr);var KAL=function(p){_.BL(p.internalDragger,"earlycancel",function(){p.allowClicks&&(p.dragOccurred=!1)});
_.BL(p.internalDragger,"start",function(y){var l,q;(q=(l=p.callbacks).onStartDrag)==null||q.call(l,y);!y.defaultPrevented&&p.allowClicks&&(p.dragOccurred=!0)});
_.BL(p.internalDragger,"beforedrag",function(y){y.preventDefault();p.lastOffset=new _.BJ(y.clientX-p.internalDragger.startX,y.clientY-p.internalDragger.startY);p.dragDelay.start()});
_.BL(p.internalDragger,"end",function(){p.dragDelay.stop();var y,l;(l=(y=p.callbacks).onEndDrag)==null||l.call(y);p.lastOffset=void 0})};
Ce.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
Ce.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.MH(this,this.validateClick),{capture:!0})};
Ce.prototype.validateClick=function(p){this.dragOccurred&&(this.dragOccurred=!1,p.stopPropagation(),p.preventDefault())};var u7=function(p,y){_.Sr.call(this);this.JSC$19825_resizeContainer=p;this.callbacks=y;this.aspectRatio=16/9;this.JSC$19825_resizers=[];p=_.c(this.JSC$19825_resizeContainer.children);for(y=p.next();!y.done;y=p.next())w5i(this,y.value)};
_.A(u7,_.Sr);u7.prototype.disposeInternal=function(){for(var p=_.c(this.JSC$19825_resizers),y=p.next();!y.done;y=p.next())y.value.dispose();p=_.c(this.JSC$19825_resizeContainer.children);for(y=p.next();!y.done;y=p.next())y.value.setAttribute("disabled","");this.JSC$19825_resizers.length=0};
u7.prototype.setSize=function(p){this.currentMiniplayerSize=p};
u7.prototype.setAspectRatio=function(p){this.aspectRatio=p};
u7.prototype.update=function(p,y){for(var l=_.c(this.JSC$19825_resizeContainer.children),q=l.next();!q.done;q=l.next()){q=q.value;var t=q.getAttribute("alignment");_.G9(q,"disabled",t===p||t===y)}};
var w5i=function(p,y){var l=y.getAttribute("alignment"),q=new Ce(y,{onStartDrag:function(t){if(y.hasAttribute("disabled"))t.preventDefault();else{p.dragStartSize=p.currentMiniplayerSize;var E,e;(e=(E=p.callbacks).onStartResize)==null||e.call(E)}},
onDrag:function(t){if(p.dragStartSize){l!=="north"&&l!=="west"||t.scale(-1);var E=l==="north"||l==="south";t=E?t.y:t.x;E&&p.aspectRatio>=1?t*=p.aspectRatio:!E&&p.aspectRatio<1&&(t/=p.aspectRatio);p.callbacks.onResize(p.dragStartSize+t)}}});
p.JSC$19825_resizers.push(q)};var id7;var rVu=_.aF(function(p){var y=_.sM("yt-draggable"),l=p.onDrag,q=p.onDragStart,t=p.onDragEnd,E=_.RF(p,{allowClicks:!1,dragThreshold:5}),e=E.dragThreshold,C=E.allowClicks;p=E.children;E=E.className;var u=void 0,a=void 0,m=new _.BJ(0,0),U=!1;_.xZ(function(){u=new _.zC(y.value);a=new _.hh(P);b(u,a);if(C()){_.mU$(u,e());var K;(K=y.value)==null||K.addEventListener("click",Z,{capture:!0})}_.TP(function(){var F;(F=u)==null||F.dispose();if(C()){var L;(L=y.value)==null||L.removeEventListener("click",Z,{capture:!0})}})});
var b=function(K,F){_.BL(K,"earlycancel",function(){C()&&(U=!1)});
_.BL(K,"start",function(L){q==null||q(L);L.defaultPrevented||C()&&(U=!0)});
_.BL(K,"beforedrag",function(L){u&&a&&(L.preventDefault(),m=new _.BJ(L.clientX-u.startX,L.clientY-u.startY),a.start())});
_.BL(K,"end",function(){F.stop();t==null||t();m=new _.BJ(0,0)})},P=function(){m&&l(m)},Z=function(K){U&&(U=!1,K.stopPropagation(),K.preventDefault())};
return _.R("yt-draggable",{el:y,class:_.ip("ytDraggableComponentHost",E)},p)},"Bg");var SIR=_.aF(function(p){var y=_.c(_.nr(0,void 0,"CvAwBd")),l=y.next().value,q=y.next().value;y=function(t){var E={},e={};return _.R(rVu,{className:_.ip("ytdMiniplayerComponentResizer",(E.ytdMiniplayerComponentResizerDisabled=function(){return t===p.horizontalAlignment()||t===p.verticalAlignment()},E.ytdMiniplayerComponentResizerNorth=t==="north",E.ytdMiniplayerComponentResizerEast=t==="east",E.ytdMiniplayerComponentResizerSouth=t==="south",E.ytdMiniplayerComponentResizerWest=t==="west",E)),
onDragStart:function(){q(p.currentMiniplayerSize());if(p.onResizeStart)p.onResizeStart()},
onDrag:function(C){t!=="north"&&t!=="west"||C.scale(-1);var u;C=(u=t==="north"||t==="south")?C.y:C.x;var a=p.currentAspectRatio();u&&a>=1?C*=a:!u&&a<1&&(C/=a);u=C;p.onResize(l()+u)}},_.R("div",{class:_.ip("ytdMiniplayerComponentResizerCorner",(e.ytdMiniplayerComponentResizerNorthCorner=t==="north",e.ytdMiniplayerComponentResizerEastCorner=t==="east",e.ytdMiniplayerComponentResizerSouthCorner=t==="south",e.ytdMiniplayerComponentResizerWestCorner=t==="west",e))}))};
return _.R("div",{class:"ytdMiniplayerComponentResizers"},y("north"),y("east"),y("south"),y("west"))},"Cg");var FAu=16/9,LAR=_.aF(function(){var p=_.sM("ytd-miniplayer"),y=_.c(_.nr(new _.wV(NaN,NaN),void 0,"GNXZTe")),l=y.next().value,q=y.next().value;y=_.c(_.nr(!1,void 0,"XqI9xc"));var t=y.next().value,E=y.next().value;y=_.c(_.nr(!1,void 0,"k3iLGe"));var e=y.next().value,C=y.next().value;y=_.c(_.nr(!1,void 0,"ApjQ9b"));var u=y.next().value,a=y.next().value;y=_.c(_.nr(!1,void 0,"PzlhGe"));var m=y.next().value,U=y.next().value;y=_.c(_.nr(!1,void 0,"pm6fl"));var b=y.next().value,P=y.next().value;y=_.c(_.nr(!1,
void 0,"xQrL1e"));var Z=y.next().value,K=y.next().value;y=_.c(_.nr(FAu,void 0,"NcrWZb"));var F=y.next().value,L=y.next().value,T=_.c(_.nr(!1,void 0,"e5rxBc"));y=T.next().value;var O=T.next().value;T=_.c(_.nr(!1,void 0,"uZtCde"));var f=T.next().value,v=T.next().value;T=_.c(_.nr(void 0,void 0,"wKFvEe"));var z=T.next().value,sc=T.next().value;T=_.c(_.nr(_.OY("HTML_DIR")==="rtl"?"west":"east",void 0,"FF7oMe"));var hR=T.next().value,Wt=T.next().value;T=_.c(_.nr("south",void 0,"QXcssb"));var AR=T.next().value,
Qu=T.next().value;T=_.c(_.nr(400,void 0,"Fr8gSb"));var jj=T.next().value,x6=T.next().value,L8=_.WC().resolve(_.IA).miniplayerPropSignalMap[0],Y6=L8.data,AZ=L8.externalPlaylistData;T=L8.toastData;var cU=L8.playabilityStatus,Xo=L8.isReadyToResume,U$=L8.isDisabled,WU=L8.watchWhile,VQ=L8.playerVe,b9=L8.expandVe,kx=L8.closeVe,JR=L8.readyToResumeVe,s$=L8.readyToResumeCloseVe,PU=L8.repositionVe,Uu=L8.resizeVe;L8=_.c(_.kS(Xo));var jB=L8.next().value,xx=L8.next().value,qN=!1,Iv=!1,CU;_.xZ(function(){q(_.Si());
p.value.addEventListener("animationend",function(dr){dr.target===p.value&&(P(!1),K(!1))});
G9u(p.value)});
_.qt("yt-window-resized",function(dr){dr&&q(dr)});
var ov=function(){CU&&L(CU.getVideoAspectRatio())},u9=function(){if(CU){var dr=CU.getPlayerState()===1;
jB()&&dr&&xx(!1)}},ZV=function(){var dr=b9();
if(dr){var Am=_.B2(3);Am&&_.te(Am,dr)}},QQ=function(){var dr=kx(),Am=s$();
dr&&_.te(_.B2(3),dr);Xo()&&Am&&_.te(_.B2(3),Am)};
_.qt("yt-activate-miniplayer",function(dr){var Am;return _.h(function(lf){if(lf.nextAddress==1)return t()?lf.return():lf.yield((Am=_.WC().resolve(_.IA).getPlayerElement())==null?void 0:Am.getPlayerPromise(),2);CU=lf.yieldResult;if(!CU)return lf.return();!f()&&_.n("kevlar_watch_while_v2")&&(Qu(dr&&!_.n("kevlar_watch_while_bottom_align")?"north":"south"),Wt(_.OY("HTML_DIR")==="rtl"?"west":"east"));var qm=CU;qm.addEventListener("onVideoDataChange",ov);qm.addEventListener("onStateChange",u9);qm.addEventListener("onExpandMiniplayer",
ZV);qm.addEventListener("onCloseMiniplayer",QQ);L(CU.getVideoAspectRatio());E(!0);bvO()||P(!0);_.rR(lf)})});
_.qt("yt-deactivate-miniplayer",function(dr){return _.h(function(Am){if(!t())return Am.return();E(!1);xx(!1);K(dr);U(!1);C(!1);if(CU){var lf=CU;lf.removeEventListener("onVideoDataChange",ov);lf.removeEventListener("onStateChange",u9);lf.removeEventListener("onExpandMiniplayer",ZV);lf.removeEventListener("onCloseMiniplayer",QQ)}bvO()||P(!0);_.rR(Am)})});
var n7=function(){return!(WU()&&_.n("kevlar_watch_while_modern"))},u6=function(){var dr;
return!((dr=AZ())==null||!dr.contents)},ed=function(){var dr=jj();
var Am=l();Am=Math.min(Math.min(Am.width,Am.height)-32,720);var lf=F(),qm=n7(),Sh=u6()&&e(),yy=Math.min(dr,Am);dr=new _.wV(192,qm?116:192);lf=pN7(new _.wV(Sh?FAu:lf,1),new _.wV(yy,qm?yy-76:yy));dr.width<=lf.width&&dr.height<=lf.height||(IRA(lf,dr),lf.width=Math.min(lf.width,Am),lf.height=Math.min(lf.height,Am));return new _.wV(lf.width,_.OP(192,lf.height+VRO(qm,Sh),720))},MQ=function(){var dr=ed(),Am=n7(),lf=u6()&&e();
return new _.wV(dr.width,dr.height-VRO(Am,lf))},Ob=function(){var dr=function(Am){Am.target===p.value&&m()&&(U(!1),p.value.removeEventListener("transitionend",dr))};
bvO()||(p.value.addEventListener("transitionend",dr),U(!0));C(!e())};
_.NA(function(){var dr=VQ(),Am=_.B2(3),lf=_.xc(3);if(Am&&lf&&dr){_.pW(Am,lf,dr);lf=PU();var qm=Uu(),Sh=b9(),yy=kx(),P7=s$();Sh&&yy&&P7&&(_.yj(Am,dr,[Sh,yy,P7]),_.qs(Am,[Sh,yy]));lf&&qm&&_.yj(Am,dr,[lf,qm])}},"Snz6Ld");
_.NA(function(){var dr=JR();if(dr){var Am=_.B2(0),lf=_.xc(0);Am&&lf&&(_.pW(Am,lf,dr),_.qs(Am,[dr]))}},"X1FpHd");
L8={};return _.R("ytd-miniplayer",{el:p,class:_.ip("ytdMiniplayerComponentHost",(L8.ytdMiniplayerComponentVisible=function(){return t()||b()},L8.ytdMiniplayerComponentAnimatingSnap=u,L8.ytdMiniplayerComponentAnimatingPlaylistExpand=m,L8.ytdMiniplayerComponentAnimatingFade=b,L8),function(){if(b()){var dr=AR();
var Am=t(),lf=Z();dr=Am?dr==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":lf?dr==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":dr==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else dr="";return dr}),
style:_.NW({top:function(){return AR()==="north"?"16px":""},
right:function(){return hR()==="east"?"16px":""},
bottom:function(){return AR()==="south"?"16px":""},
left:function(){return hR()==="west"?"16px":""},
width:function(){return ed().width+"px"},
height:function(){return ed().height+"px"},
transform:function(){var dr=z();return dr?"translate("+dr.x+"px, "+dr.y+"px)":""}})},_.R("div",{class:"ytdMiniplayerComponentContent"},_.R(rVu,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(dr){var Am=MR7(hR(),AR(),l(),ed(),z()),lf=MQ();Math.abs(dr.clientY-(Am.y+lf.height))>15?(O(!0),dr=_.B2(3),Am=PU(),qN||(qN=!0,dr&&Am&&_.qs(dr,[Am])),dr&&Am&&_.te(dr,Am)):dr.preventDefault()},
onDrag:function(dr){sc(dr)},
onDragEnd:function(){var dr=Pti(MR7(hR(),AR(),l(),ed(),z()),l(),ed()),Am=Zvw(hR(),AR(),l(),ed()),lf=Zvw(dr.horizontalAlignment,dr.verticalAlignment,l(),ed());lf=new _.BJ(lf.x-Am.x,lf.y-Am.y);var qm;Am=Am.y+(((qm=z())==null?void 0:qm.y)||0)+ed().height/2;var Sh=function(){hR()===dr.horizontalAlignment&&AR()===dr.verticalAlignment||v(!0);Wt(dr.horizontalAlignment);Qu(dr.verticalAlignment);sc(void 0)},yy=function(P7){P7.target===p.value&&u()&&(a(!1),Sh(),p.value.removeEventListener("transitionend",yy))};
O(!1);AR()==="south"&&Am>l().height?(Sh(),_.WC().resolve(_.IA).close()):(p.value.addEventListener("transitionend",yy),a(!0),sc(lf))}},_.R(_.W,{cond:t,
then:function(){return _.R(_.gqR,{isDisabled:U$,playabilityStatus:cU,size:MQ})}}),_.R(_.W,{cond:n7,
then:function(){return _.R(_.M_u,{isReadyToResume:jB,data:Y6,expanded:e,onExpandClick:Ob,playlistData:AZ})}}),_.R(_.W,{cond:y,
then:function(){return _.R("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.R(_.W,{cond:function(){return u6()&&e()||m()},
then:function(){return _.R(_.Fyi,{className:"ytdMiniplayerComponentPlaylistPanel",data:AZ,hideHeaderText:!0,withinMiniplayer:!0})}}),_.R("div",{class:"ytdMiniplayerComponentToast"},_.R(_.Q9d,{toastData:T}))),_.R(SIR,{onResize:function(dr){x6(_.OP(192,dr,720))},
onResizeStart:function(){var dr=_.B2(3),Am=Uu();Iv||(Iv=!0,dr&&Am&&_.qs(dr,[Am]));dr&&Am&&_.te(dr,Am)},
currentAspectRatio:F,currentMiniplayerSize:jj,horizontalAlignment:hR,verticalAlignment:AR}))},"Dg");_.n("ytd_miniplayer_to_wiz")&&_.bp(LAR,"ytd-miniplayer",{});_.bp(_.Q9d,"ytd-miniplayer-toast",{props:{toastData:_.Co}});var kOL=16/9,N7i=new _.wV(400,400/kOL),RR=function(){var p=_.w.apply(this,arguments)||this;p.active=!1;p.hasNoData=!1;p.enabled=!1;p.expanded=!1;p.readyToResume=!1;p.isDisabled=!1;p.externalPlaylistData={};p.premiumBadges=[];p.watchWhile=!1;p.playerState=null;p.verticalAttachment="south";p.horizontalAttachment=_.OY("HTML_DIR")==="rtl"?"west":"east";p.isAnimatingFade=!1;p.isAnimatingSnap=!1;p.isAnimatingExpand=!1;p.isDragging=!1;p.playerHidden=!1;p.hasPlaylistData=!1;p.closed=!1;p.expandedClosed=!1;
p.isForReadyToResume=!1;p.watchResponse=null;p.player=null;p.playerVe=null;p.expandVe=null;p.closeVe=null;p.readyToResumeCloseVe=null;p.disabledInitialStateIsPlaying=!1;p.PLAYER_EVENTS=new Map;p.aspectRatio=kOL;p.currentMiniplayerSize=400;p.userSetSize=!1;p.userSetPosition=!1;p.userHasDragged=!1;p.maxMiniplayerSize=720;p.transform=new _.BJ(0,0);p.windowDimensions=new _.wV(NaN,NaN);p.dimensions=N7i;p.screenLayer=3;p.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return p};
_.A(RR,_.w);_.J=RR.prototype;_.J.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerWithViewTransitionManager()};
_.J.ready=function(){this.setUpDragging();this.setUpResizing()};
_.J.attached=function(){this.onWindowResized(_.Si());this.hostElement.addEventListener("animationend",_.MH(this,this.resetFadingAnimation))};
_.J.detached=function(){this.hostElement.removeEventListener("animationend",_.MH(this,this.resetFadingAnimation))};
_.J.resetFadingAnimation=function(p){p.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.J.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.J.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.J.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var p=_.B2(this.screenLayer);this.readyToResumeCloseVe&&p&&_.qs(p,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.J.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var p=_.B2(0),y=_.xc(0);p&&y&&(_.pW(p,y,this.readyToResumeVe),_.qs(p,[this.readyToResumeVe]))}};
_.J.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var p=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=p===-1||p===1||p===3)&&this.player.pauseVideo()}};
_.J.activate=function(p,y){y=y===void 0?!1:y;var l=this,q;return _.h(function(t){if(t.nextAddress==1)return l.setInitialActivatePositioning(y),l.enabled=!0,l.active=!0,l.expanded=!1,l.closed=!1,l.expandedClosed=!1,l.watchWhileHidden||(l.isAnimatingFade=!0),_.WC().resolve(_.yh).setPlaylistComponent(l.JSC$19836_playlistPanel),p.appendTo(l.playerContainer),t.yield(p.getPlayerPromise(),2);q=t.yieldResult;q.setSizeStyle(!1,!0);l.ytPlayerListenerBehavior.listenToPlayerEvents(q,l.PLAYER_EVENTS);l.player=
q;l.watchWhile&&_.n("kevlar_watch_while_minimum_size")&&l.setMiniplayerSize(192);l.setAspectRatio(l.player.getVideoAspectRatio());l.onIsDisabledChanged();_.rR(t)})};
_.J.setInitialActivatePositioning=function(p){if(!this.userSetPosition&&_.n("kevlar_watch_while_v2")){this.verticalAttachment=p&&!_.n("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.OY("HTML_DIR")==="rtl"?"west":"east";var y;(y=this.JSC$19836_resizers)==null||y.update(this.horizontalAttachment,this.verticalAttachment)}};
_.J.deactivate=function(p,y){var l=this;return _.h(function(q){if(!l.active)return q.return();p||(l.expanded?l.expandedClosed=!0:l.closed=!0);l.active=!1;l.isForReadyToResume=!1;y&&_.n("kevlar_watch_while_counterfactual")||(l.isAnimatingFade=!0);l.player&&l.ytPlayerListenerBehavior.unlistenFromPlayerEvents(l.player,l.PLAYER_EVENTS);l.player=null;_.rR(q)})};
_.J.onMetadataTap=function(p){this.expandVe&&(p===void 0||p)&&(p=_.B2(this.screenLayer))&&_.te(p,this.expandVe);_.BO(_.WC().resolve(_.IA))};
_.J.onDisabledTap=function(p){p.target===_.jR(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.J.onPlaylistExpandTap=function(p){if(this.hasPlaylistData){p=_.Jx(p)||[];p=_.c(p);for(var y=p.next();!y.done;y=p.next()){y=y.value;if(y===this.hostElement)break;if(y.classList&&y.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.J.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.MH(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.J.animatedResizePlaylist=function(p){p.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.MH(this,this.animatedResizePlaylist)))};
_.J.getExpandIcon=function(p){return p?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.J.onPlayerVideoDataChange=function(){var p,y=(p=this.player)==null?void 0:p.getVideoAspectRatio();y&&y!==this.aspectRatio&&this.setAspectRatio(y)};
_.J.setAspectRatio=function(p){if(this.active){this.aspectRatio=p;this.updateDimensionsAndResize();var y;(y=this.JSC$19836_resizers)==null||y.setAspectRatio(p)}};
_.J.updateDimensionsAndResize=function(){var p=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),y=this.expanded?kOL:this.aspectRatio,l=new _.wV(192,this.showInfoBar?116:192);p=pN7(new _.wV(y,1),new _.wV(p,this.showInfoBar?p-76:p));l.width<=p.width&&l.height<=p.height||(IRA(p,l),p.width=Math.min(p.width,this.maxMiniplayerSize),p.height=Math.min(p.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&y<=1?Math.max(p.width,p.height)+76:Math.max(p.width,p.height)));this.dimensions=
new _.wV(p.width,this.clamp(p.height+this.getNonPlayerHeight()));this.resize()};
_.J.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var p=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=p.height+"px";var y;(y=this.player)==null||y.setInternalSize(p.width,p.height)};
_.J.getPlayerSize=function(p){var y=Math.max(0,p.height-this.getNonPlayerHeight());return new _.wV(p.width,y)};
_.J.getNonPlayerHeight=function(){var p=0;this.showInfoBar&&(p+=76);this.expanded&&(p+=285);return p};
_.J.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.WC().resolve(_.IA).close()};
_.J.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.J.logClosingClick=function(){this.closeVe&&_.te(_.B2(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.te(_.B2(this.screenLayer),this.readyToResumeCloseVe)};
_.J.onPlayerExpandMiniplayer=function(){if(this.expandVe){var p=_.B2(this.screenLayer);p&&_.te(p,this.expandVe)}};
_.J.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var p=this.playerState===1;this.continueWatching&&p&&(this.continueWatching=!1);this.premiumBadges.length&&p&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.J.getScreenLayer=function(){return this.screenLayer};
_.J.logMiniplayer=function(){var p=_.B2(this.screenLayer),y=_.xc(this.screenLayer);p&&y&&this.playerVe&&(_.pW(p,y,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.yj(p,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.qs(p,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.yj(p,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.J.computePlaylistData=function(p,y){return y};
_.J.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.J.computeExpandButtonHidden=function(p,y,l){return!p||!y||l};
_.J.computePlaylistIndexHidden=function(p,y){return!p||y};
_.J.computePlaylistPanelHidden=function(p,y){return!y&&!p};
_.J.computeExpandButtonLabel=function(p){return p?_.g$("MINIPLAYER_COLLAPSE_LABEL"):_.g$("MINIPLAYER_EXPAND_LABEL")};
_.J.computeDisabledStateCloseButtonLabel=function(){return _.g$("MINIPLAYER_CLOSE",void 0,"Close")};
_.J.onWindowResized=function(p){p&&(p=this.windowDimensions=p,this.maxMiniplayerSize=Math.min(Math.min(p.width,p.height)-32,720),this.updateDimensionsAndResize())};
_.J.setUpResizing=function(){var p=this;this.JSC$19836_resizers||(this.JSC$19836_resizers=new u7(this.JSC$19836_resizeContainer,{onStartResize:function(){p.handleResizeStart()},
onResize:function(y){p.handleResize(y)}}),this.JSC$19836_resizers.setSize(this.currentMiniplayerSize),this.JSC$19836_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.J.handleResizeStart=function(){var p=_.B2(this.screenLayer);this.userSetSize||(this.userSetSize=!0,p&&this.resizeVe&&_.qs(p,[this.resizeVe]));p&&this.resizeVe&&_.te(p,this.resizeVe)};
_.J.handleResize=function(p){this.setMiniplayerSize(p);this.updateDimensionsAndResize()};
_.J.setUpDragging=function(){var p=this;this.JSC$19836_dragger||(this.JSC$19836_dragger=new Ce(this.draggableContainer,{onStartDrag:function(y){!p.isSafeToDrag(y)||p.isAnimatingSnap?y.preventDefault():p.handleDragStart()},
onDrag:function(y){p.transform=y;p.setTransform(p.transform)},
onEndDrag:function(){p.handleDragEnd()}},!0))};
_.J.handleDragStart=function(){this.isDragging=!0;var p=_.B2(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,p&&this.repositionVe&&_.qs(p,[this.repositionVe]));p&&this.repositionVe&&_.te(p,this.repositionVe)};
_.J.handleDragEnd=function(){this.isDragging=!1;var p=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&p>this.windowDimensions.height&&_.WC().resolve(_.IA).close();this.animateSnapToCorner()};
_.J.animateSnapToCorner=function(){var p=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),y=this.getNearestAttachments();y=this.getGlobalPositionFromAttachments(y.horizontalAttachment,y.verticalAttachment);p=new _.BJ(y.x-p.x,y.y-p.y);this.isAnimatingSnap=!0;this.setTransform(p);this.hostElement.addEventListener("transitionend",_.MH(this,this.endSnapAnimation))};
_.J.endSnapAnimation=function(p){p.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.MH(this,this.endSnapAnimation)),this.endDrag())};
_.J.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.J.setTransform=function(p){this.hostElement.style.transform=p?"translate("+p.x+"px, "+p.y+"px)":""};
_.J.getGlobalPositionFromAttachments=function(p,y){return new _.BJ(p==="west"?16:this.windowDimensions.width-this.dimensions.width-16,y==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.J.updateAttachments=function(){var p=this.getNearestAttachments();if(this.horizontalAttachment!==p.horizontalAttachment||this.verticalAttachment!==p.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=p.horizontalAttachment;this.verticalAttachment=p.verticalAttachment;var y;(y=this.JSC$19836_resizers)==null||y.update(this.horizontalAttachment,this.verticalAttachment)};
_.J.getNearestAttachments=function(){var p=this.getCurrentGlobalPosition();return{horizontalAttachment:p.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:p.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.J.getCurrentGlobalPosition=function(){var p=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return Axd(p,this.transform)};
_.J.isSafeToDrag=function(p){var y=this.playerContainer.getBoundingClientRect();return Math.abs(p.clientY-(y.y+y.height))>15};
_.J.setMiniplayerSize=function(p){this.currentMiniplayerSize=this.clamp(p);var y;(y=this.JSC$19836_resizers)==null||y.setSize(this.currentMiniplayerSize)};
_.J.clamp=function(p){return _.OP(192,p,720)};
_.J.registerWithViewTransitionManager=function(){var p=_.WC().resolve(_.RK(_.xr));p&&n81(p,this.hostElement)};
_.Jh.Object.defineProperties(RR.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.n("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:_.g$("CONTINUE_WATCHING",void 0,"Continue watching")};var p;if((p=this.externalPlaylistData)==null?0:p.contents)return this.externalPlaylistData.titleText;var y;return(y=this.data)==null?void 0:y.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.externalPlaylistData)==null?0:p.contents){var y;return(y=_.xC_(this.externalPlaylistData))==null?void 0:y.title}var l;return(l=this.data)==null?void 0:l.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var p,y,l,q;return((p=this.externalPlaylistData)==null?void 0:p.currentIndex)!==void 0&&((y=this.externalPlaylistData)==null?0:y.totalVideos)&&!((l=this.data)==null?0:(q=l.playlistData)==null?0:q.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.XXo(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.n("kevlar_watch_while_counterfactual")}}});
RR.prototype.onIsDisabledChanged=RR.prototype.onIsDisabledChanged;RR.prototype.readyToResumeVeChanged=RR.prototype.readyToResumeVeChanged;RR.prototype.premiumBrandingChanged=RR.prototype.premiumBrandingChanged;RR.prototype.onPlayerVeChange=RR.prototype.onPlayerVeChange;RR.prototype.hasPlaylistDataChanged=RR.prototype.hasPlaylistDataChanged;_.H([_.V(_.c8.YtPlayerListenerBehavior),_.x("design:type",_.eE)],RR.prototype,"ytPlayerListenerBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],RR.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],RR.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],RR.prototype,"ytdReduxBehavior",void 0);_.H([_.rd("#draggable"),_.x("design:type",HTMLDivElement)],RR.prototype,"draggableContainer",void 0);
_.H([_.rd("#resize-container"),_.x("design:type",HTMLDivElement)],RR.prototype,"JSC$19836_resizeContainer",void 0);_.H([_.rd("#video-container"),_.x("design:type",HTMLDivElement)],RR.prototype,"videoContainer",void 0);_.H([_.rd("#player-container"),_.x("design:type",HTMLDivElement)],RR.prototype,"playerContainer",void 0);_.H([_.rd("#playlist"),_.x("design:type",HTMLDivElement)],RR.prototype,"JSC$19836_playlistPanel",void 0);_.H([_.Q(),_.x("design:type",Object)],RR.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],RR.prototype,"active",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],RR.prototype,"hasNoData",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],RR.prototype,"enabled",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],RR.prototype,"expanded",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],RR.prototype,"readyToResume",void 0);
_.H([_.Q(),_.x("design:type",Object)],RR.prototype,"isDisabled",void 0);_.H([_.Q(),_.x("design:type",Object)],RR.prototype,"externalPlaylistData",void 0);_.H([_.Q(),_.x("design:type",Array)],RR.prototype,"premiumBadges",void 0);_.H([_.Q(),_.x("design:type",Object)],RR.prototype,"toastData",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],RR.prototype,"watchWhile",void 0);_.H([_.Q(),_.x("design:type",Boolean)],RR.prototype,"premiumBranding",void 0);
_.H([_.Q(),_.x("design:type",Object)],RR.prototype,"playerState",void 0);_.H([_.Q(),_.x("design:type",Boolean)],RR.prototype,"continueWatching",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],RR.prototype,"verticalAttachment",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],RR.prototype,"horizontalAttachment",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],RR.prototype,"isAnimatingFade",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],RR.prototype,"isAnimatingSnap",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],RR.prototype,"isAnimatingExpand",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],RR.prototype,"isDragging",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],RR.prototype,"playerHidden",void 0);
_.H([_.Q({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.x("design:type",Object)],RR.prototype,"playlistData",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.x("design:type",Object)],RR.prototype,"hasPlaylistData",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],RR.prototype,"closed",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],RR.prototype,"expandedClosed",void 0);
_.H([_.Q({selector:_.Aim}),_.x("design:type",Boolean)],RR.prototype,"isSingleOptionSurveyActive",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.XT}),_.x("design:type",Boolean)],RR.prototype,"isWatchPage",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("watchWhile"),_.x("design:type",Object),_.x("design:paramtypes",[])],RR.prototype,"showInfoBar",null);_.H([_.g("premiumBadges","showInfoBar"),_.x("design:type",Object),_.x("design:paramtypes",[])],RR.prototype,"showOverlayPremiumBadges",null);
_.H([_.Q(),_.x("design:type",Object)],RR.prototype,"watchResponse",void 0);_.H([_.Q(),_.x("design:type",Object)],RR.prototype,"miniplayerRenderer",void 0);_.H([_.Q(),_.x("design:type",Object)],RR.prototype,"playabilityStatus",void 0);_.H([_.Q(),_.x("design:type",Object)],RR.prototype,"playerVe",void 0);_.H([_.Q(),_.x("design:type",Object)],RR.prototype,"expandVe",void 0);_.H([_.Q(),_.x("design:type",Object)],RR.prototype,"closeVe",void 0);
_.H([_.Q(),_.x("design:type",Object)],RR.prototype,"readyToResumeCloseVe",void 0);_.H([_.Q(),_.x("design:type",_.Tc)],RR.prototype,"readyToResumeVe",void 0);_.H([_.Q(),_.x("design:type",_.Tc)],RR.prototype,"resizeVe",void 0);_.H([_.Q(),_.x("design:type",_.Tc)],RR.prototype,"repositionVe",void 0);_.H([_.gd("hasPlaylistData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RR.prototype,"hasPlaylistDataChanged",null);
_.H([_.gd("playerVe"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RR.prototype,"onPlayerVeChange",null);_.H([_.gd("premiumBranding"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RR.prototype,"premiumBrandingChanged",null);_.H([_.gd("readyToResumeVe"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RR.prototype,"readyToResumeVeChanged",null);
_.H([_.gd("isDisabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RR.prototype,"onIsDisabledChanged",null);_.H([_.g("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.x("design:type",Object),_.x("design:paramtypes",[])],RR.prototype,"miniplayerSubtitle",null);_.H([_.g("data.miniplayerTitle","externalPlaylistData"),_.x("design:type",Object),_.x("design:paramtypes",[])],RR.prototype,"miniplayerTitle",null);
_.H([_.g("externalPlaylistData","continueWatching"),_.x("design:type",Object),_.x("design:paramtypes",[])],RR.prototype,"playlistIndexMessage",null);_.H([_.Q({reflectToAttribute:!0}),_.g("playabilityStatus"),_.x("design:type",Object),_.x("design:paramtypes",[])],RR.prototype,"showErrorScreen",null);_.H([_.Q({reflectToAttribute:!0}),_.g("watchWhile"),_.x("design:type",Object),_.x("design:paramtypes",[])],RR.prototype,"watchWhileHidden",null);
_.n("ytd_miniplayer_to_wiz")||_.D(RR,"ytd-miniplayer",function(){if(id7===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);id7=p}p=id7;return p},{mode:2});var D06;var WD=function(){var p=_.w.apply(this,arguments)||this;p.useListItemStyles=_.n("web_list_item_style_for_menu_items");p.systemIcons=_.n("kevlar_system_icons");return p};
_.A(WD,_.w);_.J=WD.prototype;_.J.ready=function(){this.hostElement.addEventListener("tap",_.MH(this,this.onEndpointTapExtra))};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.J.onFocus=function(){var p;(p=_.jR(this.hostElement).querySelector("tp-yt-paper-item"))==null||p.focus()};
_.J.onEndpointTapExtra=function(p){_.Ub(this.hostElement,"iron-activate");var y=this.data.navigationEndpoint;y&&_.G(y,_.D7a)&&(p.stopPropagation(),_.Gf(this.hostElement,[y],this.hostElement))};
_.J.computeIcon=function(p){return p&&p.iconType?_.QZ(p.iconType):""};
_.J.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.J.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.J.forceUpdateStylesOnLegacyBrowsers=function(){_.n("kevlar_legacy_browsers")&&_.Ax(this.hostElement)};
WD.prototype.forceUpdateStylesOnLegacyBrowsers=WD.prototype.forceUpdateStylesOnLegacyBrowsers;WD.prototype.onFocus=WD.prototype.onFocus;_.H([_.V(_.RP),_.x("design:type",Object)],WD.prototype,"ytdOpenPopupBehavior",void 0);_.H([_.V(_.NXi.YtConditionalRendererBehavior),_.x("design:type",Object)],WD.prototype,"ytConditionalRendererBehavior",void 0);_.H([_.V(_.FW.YtEndpointBehavior),_.x("design:type",Object)],WD.prototype,"ytEndpointBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],WD.prototype,"data",void 0);_.H([_.Q({computed:"computeIcon(data.icon)",value:""}),_.x("design:type",String)],WD.prototype,"icon",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],WD.prototype,"useIcons",void 0);_.H([_.Q({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.x("design:type",Boolean)],WD.prototype,"hasSeparator",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],WD.prototype,"useListItemStyles",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],WD.prototype,"systemIcons",void 0);_.H([_.VU("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WD.prototype,"onFocus",null);_.H([_.gd("useIcons","hasSeparator"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WD.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.D(WD,"ytd-menu-navigation-item-renderer",function(){if(D06===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-navigation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!hidden]]" class="style-scope ytd-menu-navigation-item-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-menu-navigation-item-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" tabindex="-1">\n    <tp-yt-paper-item aria-label$="[[data.accessibility.accessibilityData.label]]" disabled="[[data.isDisabled]]" class="style-scope ytd-menu-navigation-item-renderer">\n      <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-formatted-string>\n    </tp-yt-paper-item>\n  </a>\n</template>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);D06=p}p=D06;return p},{mode:1});var Hd9;var T7d=_.EK(_.g$("DOWNLOAD",{},"Download")),x0T=_.EK(_.g$("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),B7d=_.EK(_.g$("RETRY",{},"Retry")),fqu=_.EK(_.g$("PAUSE_DOWNLOADING",{},"Pause downloading")),v$w=_.EK(_.g$("RESUME_DOWNLOAD",{},"Resume download")),aR=function(){var p=_.w.apply(this,arguments)||this;p.primaryText=T7d;p.primaryIconType="OFFLINE_DOWNLOAD";p.hasSecondaryContent=!1;p.hasSeparator=!1;p.transferState="TRANSFER_STATE_UNKNOWN";p.isVideoDeletedByUser=!1;p.isHidden=!1;p.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return p};
_.A(aR,_.w);_.J=aR.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.J.onFocus=function(){this.primaryEntry.focus()};
_.J.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.J.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.J.getRemoveAction=function(){return"ACTION_REMOVE"};
_.J.sendOfflineAction=function(p){var y=this.data.serviceEndpoint;if(y){var l=_.G(y,_.wi);l&&p&&(l.action=p);this.ytComponentBehavior.resolveCommand(y)}};
_.J.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=T7d,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=T7d;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=B7d;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=x0T;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=v$w;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=x0T;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
fqu;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=x0T;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=x0T;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=T7d,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.J.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.J.isSecondaryEntryHidden=function(p,y){return p?!0:!y};
_.J.computeHasSeparator=function(){var p;return!((p=this.data)==null||!p.hasSeparator)};
aR.prototype.showHideButton=aR.prototype.showHideButton;aR.prototype.onTransferStateChange=aR.prototype.onTransferStateChange;aR.prototype.onFocus=aR.prototype.onFocus;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],aR.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],aR.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],aR.prototype,"ytComponentBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],aR.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],aR.prototype,"primaryText",void 0);_.H([_.Q(),_.x("design:type",String)],aR.prototype,"primaryIconType",void 0);_.H([_.Q(),_.x("design:type",String)],aR.prototype,"primaryAction",void 0);_.H([_.Q(),_.x("design:type",Object)],aR.prototype,"secondaryText",void 0);_.H([_.Q(),_.x("design:type",String)],aR.prototype,"secondaryIconType",void 0);
_.H([_.Q(),_.x("design:type",String)],aR.prototype,"secondaryAction",void 0);_.H([_.Q(),_.x("design:type",Object)],aR.prototype,"hasSecondaryContent",void 0);_.H([_.Q({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.x("design:type",Object)],aR.prototype,"hasSeparator",void 0);_.H([_.Q({selector:_.Ot,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.x("design:type",String)],aR.prototype,"transferState",void 0);
_.H([_.Q({selector:_.v7j,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.x("design:type",Object)],aR.prototype,"isVideoDeletedByUser",void 0);_.H([_.Q(),_.x("design:type",Object)],aR.prototype,"isHidden",void 0);_.H([_.Q({selector:_.Nzm,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.x("design:type",Object)],aR.prototype,"offlineabilityState",void 0);_.H([_.rd("#primary-entry"),_.x("design:type",Object)],aR.prototype,"primaryEntry",void 0);
_.H([_.VU("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aR.prototype,"onFocus",null);_.H([_.k8("transferState","isVideoDeletedByUser"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aR.prototype,"onTransferStateChange",null);_.H([_.k8("offlineabilityState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aR.prototype,"showHideButton",null);
_.D(aR,"ytd-menu-service-item-download-renderer",function(){if(Hd9===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-download-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<tp-yt-paper-item id="primary-entry" hidden="[[isHidden]]" on-tap="onPrimaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[primaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[primaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n<tp-yt-paper-item id="secondary-entry" hidden="[[isSecondaryEntryHidden(isHidden, hasSecondaryContent)]]" on-tap="onSecondaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[secondaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[secondaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);Hd9=p}p=Hd9;return p},{mode:1});var X5w;var mz=function(){var p=_.w.apply(this,arguments)||this;p.useIcons=!1;p.systemIcons=_.n("kevlar_system_icons");p.useListItemStyles=_.n("web_list_item_style_for_menu_items");return p};
_.A(mz,_.w);_.J=mz.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.J.onFocus=function(){var p;(p=_.jR(this.hostElement).querySelector("tp-yt-paper-item"))==null||p.focus()};
_.J.onTap=function(){_.jN(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var p=this.data.serviceEndpoint,y=this.data.command;if(p){var l,q=(l=this.data)==null?void 0:l.trackingParams;l=!!_.G(p,_.kbU);q&&l&&_.ei().dispatch(_.$y({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:q}}));this.ytComponentBehavior.resolveCommand(p)||_.WC().resolve(_.aK).resolveCommand(p,{form:{element:this.hostElement}})}y&&(this.ytComponentBehavior.resolveCommand(y)||_.Gf(this.hostElement,
[y],this.hostElement))};
_.J.computeIcon=function(p){return p&&p.iconType?_.QZ(p.iconType):""};
_.J.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.J.computeHasSeparator=function(){var p;return!((p=this.data)==null||!p.hasSeparator)};
_.J.forceUpdateStylesOnLegacyBrowsers=function(){_.n("kevlar_legacy_browsers")&&_.Ax(this.hostElement)};
_.J.computeIsSelected=function(){var p;return!((p=this.data)==null||!p.isSelected)};
mz.prototype.forceUpdateStylesOnLegacyBrowsers=mz.prototype.forceUpdateStylesOnLegacyBrowsers;mz.prototype.onTap=mz.prototype.onTap;mz.prototype.onFocus=mz.prototype.onFocus;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],mz.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.RP),_.x("design:type",Object)],mz.prototype,"ytdOpenPopupBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],mz.prototype,"ytComponentBehavior",void 0);
_.H([_.V(_.NXi.YtConditionalRendererBehavior),_.x("design:type",Object)],mz.prototype,"ytConditionalRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],mz.prototype,"data",void 0);_.H([_.Q({computed:"computeIcon(data.icon)",value:""}),_.x("design:type",String)],mz.prototype,"icon",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],mz.prototype,"useIcons",void 0);
_.H([_.Q({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.x("design:type",Boolean)],mz.prototype,"hasSeparator",void 0);_.H([_.Q({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.x("design:type",Boolean)],mz.prototype,"isSelected",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],mz.prototype,"systemIcons",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],mz.prototype,"useListItemStyles",void 0);
_.H([_.VU("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mz.prototype,"onFocus",null);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],mz.prototype,"onTap",null);_.H([_.gd("useIcons","hasSeparator"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mz.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.D(mz,"ytd-menu-service-item-renderer",function(){if(X5w===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item disabled="[[data.isDisabled]]" class="style-scope ytd-menu-service-item-renderer">\n  <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-service-item-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-menu-service-item-renderer">\n  </ytd-badge-supported-renderer>\n</tp-yt-paper-item>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);X5w=p}p=X5w;return p},{mode:2});var d0d;var UF=function(){return _.w.apply(this,arguments)||this};
_.A(UF,_.w);_.J=UF.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onDataChanged=function(){var p=this;_.th(this,function(){p.postbox.openDialog();p.focus();_.Ub(p.hostElement,"yt-refit")})};
_.J.focus=function(){this.postbox.focus()};
_.J.closePopup=function(){_.$w(this.hostElement,"yt-close-popup-action")};
_.J.onYtCommentboxDismiss=function(){this.closePopup()};
UF.prototype.onYtCommentboxDismiss=UF.prototype.onYtCommentboxDismiss;UF.prototype.onDataChanged=UF.prototype.onDataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],UF.prototype,"data",void 0);_.H([_.Q({value:function(){return _.g$("SBOX_INAPPROPRIATE_CANCEL")}}),
_.x("design:type",String)],UF.prototype,"closeButtonAriaLabel",void 0);_.H([_.rd("#postbox"),_.x("design:type",Object)],UF.prototype,"postbox",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UF.prototype,"onDataChanged",null);_.H([_.VU("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UF.prototype,"onYtCommentboxDismiss",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],UF);
_.D(UF,"ytd-backstage-post-dialog-popup-renderer",function(){if(d0d!==void 0)return d0d;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-bar" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div id="title" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    [[getSimpleString(data.dialogRenderer.backstagePostDialogRenderer.title)]]\n  </div>\n  <yt-icon-button id="close-panel-icon" aria-label$="[[closeButtonAriaLabel]]" on-tap="closePopup" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <yt-icon class="remove-option style-scope ytd-backstage-post-dialog-popup-renderer" icon="yt-icons:close"></yt-icon>\n  </yt-icon-button>\n</div>\n<ytd-backstage-post-dialog-renderer id="postbox" data="[[data.dialogRenderer.backstagePostDialogRenderer]]" in-popup-container="" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div slot="repost-preview" hidden="[[!data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <ytd-post-renderer data="[[data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    </ytd-post-renderer>\n  </div>\n</ytd-backstage-post-dialog-renderer>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return d0d=p},{mode:1});var OdA;var $W=function(){return _.w.apply(this,arguments)||this};
_.A($W,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],$W.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],$W.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],$W);
_.D($W,"ytd-sender-id-section-renderer",function(){if(OdA!==void 0)return OdA;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
return OdA=p},{mode:1});var o$d;var zR1;var YIA;var j8=function(){return _.w.apply(this,arguments)||this};
_.A(j8,_.w);j8.prototype.closePopup=function(){_.$w(this.hostElement,"yt-close-popup-action")};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],j8.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],j8.prototype,"data",void 0);_.H([_.z9({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],j8);
_.D(j8,"yt-community-post-section-renderer",function(){if(YIA===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-community-post-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_community_post_section_renderer.yt.community.post.section.renderer.css.js--\x3e<div id="title" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.title)]]</div>\n<div class="style-scope yt-community-post-section-renderer">\n  <yt-button-renderer id="post-button" data="[[data.postButton.buttonRenderer]]" on-tap="closePopup" class="style-scope yt-community-post-section-renderer">\n  </yt-button-renderer>\n</div>\n<div id="subtitle" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.subtitle)]]</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;zR1===void 0&&(zR1=document.createElement("template"));var q=zR1;l.call(y,q.content.cloneNode(!0),p.content.firstChild);YIA=p}p=YIA;return p},{mode:2});var IqO;var pxL;var yI6;var lX6;var qQO;var szi;var b7=function(){return _.w.apply(this,arguments)||this};
_.A(b7,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],b7.prototype,"data",void 0);_.H([_.z9({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],b7);
_.D(b7,"yt-share-start-time-with-context-renderer",function(){if(szi===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-start-time-with-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_start_time_with_context_renderer.yt.share.start.time.with.context.renderer.css.js--\x3e<div id="start-time-title" class="style-scope yt-share-start-time-with-context-renderer"><yt-formatted-string aria-label$="[[getSimpleString(data.title)]]" text="[[data.title]]" class="style-scope yt-share-start-time-with-context-renderer"></yt-formatted-string></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;qQO===void 0&&(qQO=document.createElement("template"));var q=qQO;l.call(y,q.content.cloneNode(!0),p.content.firstChild);szi=p}p=szi;return p},{mode:2});var ne=function(){return _.w.apply(this,arguments)||this};
_.A(ne,_.w);ne.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ne.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ne.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ne.prototype,"data",void 0);_.H([_.z9({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],ne);
_.D(ne,"yt-share-panel-title-v15-renderer",function(){if(lX6===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-title-v15-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_title_v15_renderer.yt.share.panel.title.v15.renderer.css.js--\x3e<h2 id="title" class="style-scope yt-share-panel-title-v15-renderer">[[getSimpleString(data.title)]]</h2>\n<div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-share-panel-title-v15-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;yI6===void 0&&(yI6=document.createElement("template"));var q=yI6;l.call(y,q.content.cloneNode(!0),p.content.firstChild);lX6=p}p=lX6;return p},{mode:2});var Gm=function(){return _.w.apply(this,arguments)||this};
_.A(Gm,_.w);Gm.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"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Gm.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Gm.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Gm.prototype,"data",void 0);_.H([_.z9({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],Gm);
_.D(Gm,"yt-share-panel-header-renderer",function(){if(pxL===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_header_renderer.yt.share.panel.header.renderer.css.js--\x3e<div id="community-post" class="style-scope yt-share-panel-header-renderer"></div>\n<div id="title-bar" class="style-scope yt-share-panel-header-renderer">\n  <div id="title" class="style-scope yt-share-panel-header-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;IqO===void 0&&(IqO=document.createElement("template"));var q=IqO;l.call(y,q.content.cloneNode(!0),p.content.firstChild);pxL=p}p=pxL;return p},{mode:2});var tI7;var Ek7;var PD=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-open-popup-action":"onOpen"};return p};
_.A(PD,_.w);_.J=PD.prototype;_.J.attached=function(){this.onOpen()};
_.J.updateTimeSecs=function(p){this.currentTimeSecs=p};
_.J.computeTimeString=function(p){p=p.toString();var y=Math.floor(Number(p)/3600),l=Math.floor(Number(p)%3600%60);return(y>0?y+":":"")+_.$C(Math.floor(Number(p)%3600/60),y>0?2:1)+":"+_.$C(l,2)};
_.J.computeTimeStringA11y=function(p){p=_.dbL({seconds:p});var y=p.hours===void 0?0:p.hours,l=p.minutes===void 0?0:p.minutes,q=p.seconds===void 0?0:p.seconds;p=[];if(y>0){var t=yhm().format({hours:y});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.Ir)||y>9999)t=t.replace(y.toString(),_.Owm(y)),_.Ir==="km"&&(t=t.replace(".",","));p.push(t)}l>0&&p.push(yhm().format({minutes:l}));q>0&&p.push(yhm().format({seconds:q}));y="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");l=_.Ir==
"am"?"{0}\u1363 ":_.Ir=="fa"?"{0}\u060c\u200f ":_.Ir=="my"?"{0} - ":_.Ir=="ne"?"{0},":_.Ir=="th"?"{0} ":_.Ir=="ur"?"{0}\u060c ":_.Ir=="ar"||_.Ir=="ar-XB"?"{0} \u0648":_.Ir=="ja"||_.Ir=="zh-CN"||_.Ir=="zh-HK"||_.Ir=="zh-TW"?"{0}\u3001":"{0}, ";q=_.Ir=="am"?"\u1363 ":_.Ir=="fa"?"\u060c\u200f ":_.Ir=="my"?" - ":_.Ir=="th"?" ":_.Ir=="ur"?"\u060c ":_.Ir=="ar"||_.Ir=="ar-XB"?" \u0648":_.Ir=="ja"||_.Ir=="zh-CN"||_.Ir=="zh-HK"||_.Ir=="zh-TW"?"\u3001":", ";t=_.Ir=="am"?" \u12a5\u1293 {0}":_.Ir=="as"?" \u0986\u09f0\u09c1 {0}":
_.Ir=="az"?" v\u0259 {0}":_.Ir=="bn"?" \u098f\u09ac\u0982 {0}":_.Ir=="cs"?" a\u00a0{0}":_.Ir=="de"?" und {0}":_.Ir=="el"?" \u03ba\u03b1\u03b9 {0}":_.Ir=="eu"?" eta {0}":_.Ir=="fa"?"\u060c \u0648 {0}":_.Ir=="fil"?", at {0}":_.Ir=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.Ir=="hi"?", \u0914\u0930 {0}":_.Ir=="hu"?" \u00e9s {0}":_.Ir=="hy"?" \u0587 {0}":_.Ir=="id"?", dan {0}":_.Ir=="iw"?" \u05d5-{0}":_.Ir=="ja"?"\u3001{0}":_.Ir=="ka"?" \u10d3\u10d0 {0}":_.Ir=="km"?" \u1793\u17b7\u1784 {0}":_.Ir=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.Ir=="ko"?" \ubc0f {0}":_.Ir=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.Ir=="lt"?" ir {0}":_.Ir=="lv"?" un {0}":_.Ir=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.Ir=="mr"?" \u0906\u0923\u093f {0}":_.Ir=="ms"?" dan {0}":_.Ir=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.Ir=="ne"?" \u0930 {0}":_.Ir=="or"?", \u0b13 {0}":_.Ir=="pa"?" \u0a05\u0a24\u0a47 {0}":_.Ir=="ro"?" \u0219i {0}":_.Ir=="si"?", \u0dc3\u0dc4 {0}":_.Ir=="sk"?" a {0}":_.Ir=="sl"?" in {0}":_.Ir=="sq"?" dhe {0}":_.Ir=="sv"?" och {0}":
_.Ir=="sw"?" na {0}":_.Ir=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.Ir=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.Ir=="th"?" \u0e41\u0e25\u0e30{0}":_.Ir=="tr"?" ve {0}":_.Ir=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.Ir=="uz"?" va {0}":_.Ir=="vi"?" v\u00e0 {0}":_.Ir=="zh-HK"?"\u53ca{0}":_.Ir=="zu"?", ne-{0}":_.Ir=="af"||_.Ir=="nl"?" en {0}":_.Ir=="ar"||_.Ir=="ar-XB"?" \u0648{0}":_.Ir=="be"||_.Ir=="uk"?" \u0456 {0}":_.Ir=="en-GB"||_.Ir=="en-IN"?" and {0}":_.Ir=="en"||_.Ir=="en-XA"?
", and {0}":_.Ir=="et"||_.Ir=="fi"?" ja {0}":_.Ir=="fr"||_.Ir=="fr-CA"?" et {0}":_.Ir=="zh-CN"||_.Ir=="zh-TW"?"\u548c{0}":_.Ir=="da"||_.Ir=="is"||_.Ir=="no"?" og {0}":_.Ir=="es"||_.Ir=="es-419"||_.Ir=="es-US"?" y {0}":_.Ir=="kk"||_.Ir=="lo"||_.Ir=="mn"?", {0}":_.Ir=="bg"||_.Ir=="mk"||_.Ir=="ru"||_.Ir=="sr"?" \u0438 {0}":_.Ir=="gl"||_.Ir=="it"||_.Ir=="pt-BR"||_.Ir=="pt-PT"?" e {0}":" i {0}";var E=_.Ir=="am"?"{0} \u12a5\u1293 {1}":_.Ir=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.Ir=="az"?"{0} v\u0259 {1}":
_.Ir=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.Ir=="de"?"{0} und {1}":_.Ir=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.Ir=="eu"?"{0} eta {1}":_.Ir=="fa"?"{0} \u0648 {1}":_.Ir=="fil"?"{0} at {1}":_.Ir=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.Ir=="hi"?"{0} \u0914\u0930 {1}":_.Ir=="hu"?"{0} \u00e9s {1}":_.Ir=="hy"?"{0} \u0587 {1}":_.Ir=="iw"?"{0} \u05d5-{1}":_.Ir=="ja"?"{0}\u3001{1}":_.Ir=="ka"?"{0} \u10d3\u10d0 {1}":_.Ir=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.Ir=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.Ir=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.Ir=="ko"?"{0} \ubc0f {1}":_.Ir=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.Ir=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.Ir=="lt"?"{0} ir {1}":_.Ir=="lv"?"{0} un {1}":_.Ir=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.Ir=="mn"?"{0}, {1}":_.Ir=="mr"?"{0} \u0906\u0923\u093f {1}":_.Ir=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.Ir=="ne"?"{0} \u0930 {1}":_.Ir=="or"?"{0} \u0b13 {1}":_.Ir=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.Ir=="ro"?"{0} \u0219i {1}":_.Ir==
"si"?"{0} \u0dc3\u0dc4 {1}":_.Ir=="sl"?"{0} in {1}":_.Ir=="sq"?"{0} dhe {1}":_.Ir=="sv"?"{0} och {1}":_.Ir=="sw"?"{0} na {1}":_.Ir=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.Ir=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.Ir=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.Ir=="tr"?"{0} ve {1}":_.Ir=="ur"?"{0} \u0627\u0648\u0631 {1}":_.Ir=="uz"?"{0} va {1}":_.Ir=="vi"?"{0} v\u00e0 {1}":_.Ir=="zh-HK"?"{0}\u53ca{1}":_.Ir=="zu"?"{0} ne-{1}":_.Ir=="af"||_.Ir=="nl"?"{0} en {1}":_.Ir=="ar"||_.Ir==
"ar-XB"?"{0} \u0648{1}":_.Ir=="be"||_.Ir=="uk"?"{0} \u0456 {1}":_.Ir=="cs"||_.Ir=="sk"?"{0} a\u00a0{1}":_.Ir=="et"||_.Ir=="fi"?"{0} ja {1}":_.Ir=="fr"||_.Ir=="fr-CA"?"{0} et {1}":_.Ir=="id"||_.Ir=="ms"?"{0} dan {1}":_.Ir=="zh-CN"||_.Ir=="zh-TW"?"{0}\u548c{1}":_.Ir=="da"||_.Ir=="is"||_.Ir=="no"?"{0} og {1}":_.Ir=="es"||_.Ir=="es-419"||_.Ir=="es-US"?"{0} y {1}":_.Ir=="bg"||_.Ir=="mk"||_.Ir=="ru"||_.Ir=="sr"?"{0} \u0438 {1}":_.Ir=="en"||_.Ir=="en-GB"||_.Ir=="en-IN"||_.Ir=="en-XA"?"{0} and {1}":_.Ir==
"gl"||_.Ir=="it"||_.Ir=="pt-BR"||_.Ir=="pt-PT"?"{0} e {1}":"{0} i {1}";_.Ir==="sq"?(t=t.replace("dhe","e"),E=E.replace("dhe","e")):_.Ir==="th"?(q=q.replace("{0}"," {0}"),E=E.replace("{0}","{0} "),E=E.replace("{1}"," {1}")):_.Ir==="ne"?q=",":_.Ir==="zh-CN"?q="":y.includes(_.Ir)&&(q=" ");return p.length<2?p.join(""):"am ar bg bs ca cs da es es-419 es-US eu fa fi fr-CA fr gl gu hi hr hu hy is it lt lv mk my no nl pl pt-BR pt-PT ro si sl sq sr-Latn sr sw th uk".split(" ").includes(_.Ir)?p.length===2?
E.replace("{0}",p[0]).replace("{1}",p[1]):l.replace("{0}",p[0])+p.slice(1,-1).join(q)+t.replace("{0}",p[p.length-1]):p.join(q)};
_.J.getTimeParam=function(){return g8d(this.timeString)};
_.J.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var p={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},y;_.Kw(_.Ll(),(y=this.data)==null?void 0:y.trackingParams,p,7)};
_.J.onChangeStartAtTimestamp=function(){for(var p=this.startAtTimestamp.value.split(":"),y=0,l=1,q=p.length-1;q>=0;q--)y+=Number(p[q])*l,l*=60;this.updateTimeSecs(y);this.setTimestamp()};
_.J.onOpen=function(){var p=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var y=_.$o();y?y.getPlayerPromise().then(function(l){l=l.getCurrentTime();p.updateTimeSecs(l)}):I_u()&&this.updateTimeSecs(I_u())};
_.J.setTimestamp=function(){var p=Math.floor(this.currentTimeSecs);_.$w(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!p,timestamp:p||""}])};
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],PD.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],PD.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],PD.prototype,"data",void 0);_.H([_.Q({value:!1,notify:!0}),_.x("design:type",Boolean)],PD.prototype,"isStartAtChecked",void 0);_.H([_.Q(),_.x("design:type",Number)],PD.prototype,"currentTimeSecs",void 0);
_.H([_.Q({computed:"computeTimeString(currentTimeSecs)"}),_.x("design:type",String)],PD.prototype,"timeString",void 0);_.H([_.Q({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.x("design:type",String)],PD.prototype,"timeStringA11y",void 0);_.H([_.rd("#start-at-timestamp"),_.x("design:type",Object)],PD.prototype,"startAtTimestamp",void 0);_.H([_.z9({is:"yt-start-at-renderer",disableElementRegistration:!0})],PD);
_.D(PD,"yt-start-at-renderer",function(){if(Ek7===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-start-at-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_start_at_renderer.yt.start.at.renderer.css.js--\x3e<div id="start-at-wrapper" class="style-scope yt-start-at-renderer">\n  <tp-yt-paper-checkbox id="start-at-checkbox" checked="{{isStartAtChecked}}" on-change="onChangeStartAtCheckbox" class="style-scope yt-start-at-renderer">\n    <yt-formatted-string text="[[data.startAtOptionLabel]]" class="style-scope yt-start-at-renderer"></yt-formatted-string>\n  </tp-yt-paper-checkbox>\n  <tp-yt-paper-input id="start-at-timestamp" allowed-pattern="[:0-9]" aria-label="[[timeStringA11y]]" disabled="" no-label-float="" use-v2-underline="" value="[[timeString]]" on-blur="onChangeStartAtTimestamp" on-change="onChangeStartAtTimestamp" class="style-scope yt-start-at-renderer">\n  </tp-yt-paper-input>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;tI7===void 0&&(tI7=document.createElement("template"));var q=tI7;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Ek7=p}p=Ek7;return p},{mode:2});var JId;var cIO;var eju=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"]]),hj7=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"]]),CYm=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var u2R={};u2R.YtBindingExpressionsBehavior={identity:_.Dt,msg:function(p,y){y=y===void 0?{}:y;return _.g$(p,y,p)},
msgPlural:function(p,y){return _.Qt(p,y)},
getMusicIconFromType:function(p){if(_.n("music_web_enable_icon_wil"))p=_.QZ(p);else if(hj7.has(p))p="yt-sys-icons:"+hj7.get(p);else{var y=eju.get(p)||_.QZ(p).split(":")[1];y=_.neL(y);var l;p=((l=CYm.get(p))!=null?l:"yt-sys-icons:")+y}return p}};var Rjd;var WTw;var aXT;var mw6=document.head,Uwd=mw6.appendChild,$wO;if(aXT===void 0){var jzR=document.createElement("template");_.M(jzR,'\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>');aXT=jzR}$wO=aXT;Uwd.call(mw6,$wO.content);var Ar=function(){var p=_.w.apply(this,arguments)||this;p.screenLayer=7;return p};
_.A(Ar,_.w);Ar.prototype.getScreenLayer=function(){return this.screenLayer};
Ar.prototype.onTap=function(p){p&&p.detail&&(p.detail.x||p.detail.y)&&_.jR(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.ny(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(p=this.getScreenLayer(),_.Ub(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:p}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Jh.Object.defineProperties(Ar.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()}}});
Ar.prototype.onTap=Ar.prototype.onTap;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ar.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Ar.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Ar.prototype,"data",void 0);_.H([_.g("data.title"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ar.prototype,"title",null);
_.H([_.g("data.serviceName"),_.x("design:type",String),_.x("design:paramtypes",[])],Ar.prototype,"icon",null);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ar.prototype,"onTap",null);_.H([_.z9({is:"yt-share-target-renderer",disableElementRegistration:!0})],Ar);
_.D(Ar,"yt-share-target-renderer",function(){if(WTw===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;Rjd===void 0&&(Rjd=document.createElement("template"));var q=Rjd;l.call(y,q.content.cloneNode(!0),p.content.firstChild);WTw=p}p=WTw;return p},{mode:2});var bHm;var nk6;var Z2=function(){var p=_.w.apply(this,arguments)||this;p.SHARE_TARGET_WIDTH=70;p.SHARE_TARGET_MARGIN_RIGHT=8;p.PAGE_SCROLL_SPEED=9;p.actionMap={"yt-share-panel-reset-action":"onReset_"};return p};
_.A(Z2,_.w);_.J=Z2.prototype;_.J.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.J.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.jR(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.jR(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.J.onReset_=function(){if(_.jR(this.hostElement).querySelector("#list")){var p=_.jR(this.hostElement).querySelector("#list");var y=_.jR(this.hostElement).querySelector("#list");var l=y.offsetLeft,q=y.offsetParent;q||_.b7O(y)!="fixed"||(q=_.vJ(y).documentElement);if(q){if(_.Aj&&!_.MY(58)){var t=_.g1V(q);l+=t.left}else Number(_.XiR)>=8&&!(Number(_.XiR)>=9)&&(t=_.g1V(q),l-=t.left);y=_.MdQ(q)?q.clientWidth-(l+y.offsetWidth):l}else y=l;J2u(p,y);this.updateScrollButtons_()}};
_.J.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.J.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.J.onScrollWheel_=function(p){p.stopPropagation();p.preventDefault();var y=Ezm(_.jR(this.hostElement).querySelector("#list"));p=Math.abs(p.deltaX)>Math.abs(p.deltaY)?p.deltaX:p.deltaY;J2u(_.jR(this.hostElement).querySelector("#list"),y+p);this.updateScrollButtons_()};
_.J.smoothScrollByOnePage_=function(p){var y=_.jR(this.hostElement).querySelector("#list"),l=(Math.floor(y.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,q=Ezm(y),t=l*(p?1:-1),E=this.PAGE_SCROLL_SPEED,e=this.updateScrollButtons_.bind(this),C=0,u;(function m(){C+=E;u=C/l*2;J2u(y,q+t*(u<1?u*u:-u*u+4*u-2));C<l?window.requestAnimationFrame(m):e()})()};
_.J.updateScrollButtons_=function(){var p=Ezm(_.jR(this.hostElement).querySelector("#list")),y=_.jR(this.hostElement).querySelector("#list").scrollWidth-_.jR(this.hostElement).querySelector("#list").clientWidth;_.jR(this.hostElement).querySelector("#scroll-button-back").hidden=p<=0;_.jR(this.hostElement).querySelector("#scroll-button-forward").hidden=p>=y};
Z2.prototype.onScrollWheel_=Z2.prototype.onScrollWheel_;Z2.prototype.onDataChanged_=Z2.prototype.onDataChanged_;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Z2.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Z2.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(u2R.YtBindingExpressionsBehavior),_.x("design:type",Object)],Z2.prototype,"ytBindingExpressionsBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Z2.prototype,"data",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Z2.prototype,"onDataChanged_",null);_.H([_.VU("wheel"),_.x("design:type",Function),_.x("design:paramtypes",[WheelEvent]),_.x("design:returntype")],Z2.prototype,"onScrollWheel_",null);
_.H([_.z9({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Z2);
_.D(Z2,"yt-third-party-share-target-section-renderer",function(){if(nk6===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-share-target-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_share_target_section_renderer.yt.third.party.share.target.section.renderer.css.js--\x3e<div id="list" class="style-scope yt-third-party-share-target-section-renderer">\n  <div id="contents" role="toolbar" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-third-party-share-target-section-renderer"></div>\n</div>\n<yt-icon-button id="scroll-button-back" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_PREVIOUS_LABEL\')]]" on-tap="onScrollBack_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_left"></yt-icon>\n</yt-icon-button>\n<yt-icon-button id="scroll-button-forward" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_NEXT_LABEL\')]]" on-tap="onScrollForward_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_right"></yt-icon>\n</yt-icon-button>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;bHm===void 0&&(bHm=document.createElement("template"));var q=bHm;l.call(y,q.content.cloneNode(!0),p.content.firstChild);nk6=p}p=nk6;return p},{mode:2});var M8=function(){return _.w.apply(this,arguments)||this};
_.A(M8,_.w);M8.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"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],M8.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],M8.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],M8.prototype,"data",void 0);_.H([_.z9({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],M8);
_.D(M8,"yt-third-party-network-section-renderer",function(){if(cIO===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-network-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_network_section_renderer.yt.third.party.network.section.renderer.css.js--\x3e<div id="share-targets" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="copy-link" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="start-at" class="style-scope yt-third-party-network-section-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;JId===void 0&&(JId=document.createElement("template"));var q=JId;l.call(y,q.content.cloneNode(!0),p.content.firstChild);cIO=p}p=cIO;return p},{mode:2});_.bp(_.aF(function(p){return _.R("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.R("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.R(_.di,{data:function(){return p.data().firstPartyItems}},{listItemViewModel:_.zI})))},"Eg"),"first-party-network-section-view-model",{props:{data:_.Co}});var G3T=_.c0(["data:image/svg+xml;charset=UTF-8;base64,",""]),Vb=function(){var p=_.w.apply(this,arguments)||this;p.screenLayer=7;p.qrCodeEnabled=_.n("web_enable_sharing_qr_code");p.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return p};
_.A(Vb,_.w);_.J=Vb.prototype;_.J.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.J.attached=function(){this.JSC$19888_scroller&&(this.JSC$19888_scroller.dialogElement=this.hostElement.parentNode,this.JSC$19888_scroller.attached&&typeof this.JSC$19888_scroller.attached==="function"&&this.JSC$19888_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.J.onDataChanged=function(){var p=this,y;(y=this.data)!=null&&y.contents&&(this.hostElement.setAttribute("links-only","true"),_.G9(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.th(this,function(){_.Ub(p.hostElement,"yt-refit");p.focusSharePanelHeader()}))};
_.J.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.J.handleSetTimestamp=function(p){var y=this.shortUrl();p.isSet&&(y=_.qi(y,"t",p.timestamp));this.maybeRenderQrCode(y)};
_.J.shortUrl=function(){var p,y=(p=this.data)==null?void 0:p.contents;if(y)for(p=0;p<y.length;p++){var l=void 0,q=void 0;if((l=y[p])==null?0:(q=l.thirdPartyNetworkSection)==null?0:q.copyLinkContainer){var t=q=l=void 0;return(t=_.G((l=y[p])==null?void 0:(q=l.thirdPartyNetworkSection)==null?void 0:q.copyLinkContainer,cS1))==null?void 0:t.shortUrl}}};
_.J.maybeRenderQrCode=function(p){var y=this,l,q,t,E,e,C,u,a,m;return _.h(function(U){if(U.nextAddress==1){l=_.jR(y.hostElement).querySelector("#qr-code");if(!y.qrCodeEnabled||!p)return l&&(l.style.display="none"),U.return();q=_.iQ6(_.WC().resolve(_.Kl),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});t=document.createElement("div");return typeof q==="function"?(q(t),U.jumpTo(2)):U.yield(q,3)}U.nextAddress!=2&&(E=U.yieldResult,E(t));u=(e=t)==null?void 0:(C=e.firstChild)==null?void 0:C.firstChild;
a=document.createElement("img");m=_.Tut(G3T,btoa(u.outerHTML));a.onload=function(){var b={canvas:l,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:a},P=new M$R;iWi(P,p);rei(P,!1,StV(P));var Z=P.modules,K=Object.assign({},Ivw,b);Z=structuredClone(Z);b=Z.length;var F,L=(F=K.canvas)!=null?F:document.createElement("canvas");F=K.cellSize;P=K.logo;var T,O=(T=K.logoSize)!=null?T:Math.floor(b/4);b%2!==O%2&&O++;var f=K.logoPadding,v=K.backgroundColor;T=b*F;var z=
K.width,sc=0;z&&(sc=K.padding,sc=Math.ceil(sc*T/(z-sc*2)),L.style.width=z+"px",L.style.height=z+"px");L.width!==T+sc*2&&(L.width=T+sc*2);L.height!==T+sc*2&&(L.height=T+sc*2);T=L.getContext("2d");K.autoClear&&T.clearRect(0,0,L.width,L.height);T.fillStyle=v;T.beginPath();T.roundRect(0,0,L.width,L.height,K.borderRadius);T.fill();T.save();T.translate(sc,sc);if(P)for(L=Math.floor(b-O)/2-f,f=Math.floor(b+O)/2+f,v=L;v<f;v++)for(z=L;z<f;z++)Z[v][z]=!1;for(L=0;L<b;L++)for(f=0;f<b;f++)(L<7&&f<7||L<7&&f>=b-
7||L>=b-7&&f<7)&&(Z[L][f]=!1);var hR;L=(hR=K.markerColor)!=null?hR:K.color;LNT(T,0,0,F,L);LNT(T,F*(b-7),0,F,L);LNT(T,0,F*(b-7),F,L);switch(K.cellStyle){case 0:hR=Z;Z=hR.length;L=K.cellSize;T.beginPath();for(f=0;f<Z;f++)for(v=0;v<Z;v++)hR[f][v]&&T.rect(f*L,v*L,L,L);T.fillStyle=K.color;T.fill();break;case 1:hR=Z;Z=hR.length;L=K.cellSize;f=L*K.relativeCircleSize;T.fillStyle=K.color;T.beginPath();for(K=0;K<Z;K++)for(v=0;v<Z;v++)hR[K][v]&&(T.beginPath(),T.ellipse((K+.5)*L,(v+.5)*L,f/2,f/2,0,0,2*Math.PI),
T.fill());T.fill();break;case 2:hR=Z;Z=hR.length;L=K.cellSize;T.fillStyle=K.color;K=[[1,1],[-1,1],[-1,-1],[1,-1]];T.beginPath();for(f=0;f<Z;f++)for(v=0;v<Z;v++)if(hR[f][v])T.roundRect(f*L,v*L,L,L,L/2),f+1<Z&&hR[f+1][v]&&T.rect(f*L+L/2,v*L,L,L),v+1<Z&&hR[f][v+1]&&T.rect(f*L,v*L+L/2,L,L);else{z=f*L+L/2;sc=v*L+L/2;for(var Wt=0;Wt<4;Wt++){var AR=_.c(K[Wt]),Qu=AR.next().value;AR=AR.next().value;f+Qu>=0&&f+Qu<Z&&v+AR>=0&&v+AR<Z&&hR[f+Qu][v]&&hR[f][v+AR]&&hR[f+Qu][v+AR]&&(Qu=Wt*Math.PI/2,AR=L/2,T.moveTo(z+
AR*Math.cos(Qu),sc+AR*Math.sin(Qu)),T.arc(z,sc,L/2,Qu,Qu+Math.PI/2,!1),T.lineTo(z+AR*(Math.cos(Qu)-Math.sin(Qu)),sc+AR*(Math.cos(Qu)+Math.sin(Qu))),T.lineTo(z+AR*Math.cos(Qu),sc+AR*Math.sin(Qu)))}}T.fill()}P&&T.drawImage(P,(b-O)*F/2,(b-O)*F/2,O*F,O*F);T.restore();l.style.removeProperty("display")};
a.src=_.xX(m);_.rR(U)})};
_.J.hasCommunityPostRenderer=function(){var p,y,l,q;return!!((p=this.data)==null?0:(y=p.header)==null?0:(l=y.sharePanelHeaderRenderer)==null?0:(q=l.communityPost)==null?0:q.communityPostSectionRenderer)};
_.J.onTapClose=function(){_.$w(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.J.getScreenLayer=function(){return this.screenLayer};
_.J.logSharePanelPage=function(){if(!_.n("enable_share_panel_navigation_logging_fix_on_web")){var p;if((p=this.data)!=null&&p.trackingParams){p=this.data.trackingParams;var y=this.parentClickTrackingParams;y=y?_.Tp(y):void 0;var l=_.Ll();_.Mb(l,21760,y,{layer:7,parentLayer:0});l.graftServerVe(p,void 0,7);_.ei().dispatch(_.$y({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
Vb.prototype.onDataChanged=Vb.prototype.onDataChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Vb.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Vb.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Vb.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Vb.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],Vb.prototype,"data",void 0);_.H([_.Q({value:_.g$("SBOX_INAPPROPRIATE_CANCEL")}),_.x("design:type",String)],Vb.prototype,"closeButtonAriaLabel",void 0);_.H([_.rd("yt-share-panel-header-renderer"),_.x("design:type",HTMLElement)],Vb.prototype,"header",void 0);_.H([_.Q({selector:function(p){return p.share.parentClickTrackingParams}}),
_.x("design:type",String)],Vb.prototype,"parentClickTrackingParams",void 0);_.H([_.Q(),_.x("design:type",Object)],Vb.prototype,"qrCodeEnabled",void 0);_.H([_.rd("#scroller"),_.x("design:type",Object)],Vb.prototype,"JSC$19888_scroller",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Vb.prototype,"onDataChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],Vb);
_.D(Vb,"ytd-unified-share-panel-renderer",function(){if(o$d!==void 0)return o$d;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope ytd-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope ytd-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return o$d=p},{mode:1});var PYd;var go=function(){var p=_.w.apply(this,arguments)||this;p.modernModal=!0;return p};
_.A(go,_.w);go.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
go.prototype.computeShouldHideOldButtons=function(){var p;return!((p=this.data)==null?0:p.button)};
_.Jh.Object.defineProperties(go.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var p,y;return(p=this.data)==null?void 0:(y=p.button)==null?void 0:y.buttonRenderer}}});
_.H([_.Q(),_.x("design:type",Object)],go.prototype,"data",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],go.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],go.prototype,"ytEventForwardingBehavior",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],go.prototype,"modernModal",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],go.prototype,"buttonRendererData",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],go);
_.D(go,"ytd-modal-with-title-and-button-renderer",function(){if(PYd!==void 0)return PYd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-modal-with-title-and-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<yt-formatted-string id="content" split-lines="" text="[[data.content]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<div class="buttons style-scope ytd-modal-with-title-and-button-renderer" hidden="[[computeShouldHideOldButtons(data.button)]]">\n  <ytd-button-renderer id="button" align-by-text="" data="[[buttonRendererData]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n  </ytd-button-renderer>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return PYd=p},{mode:1});var AIV;var Qb=function(){return _.w.apply(this,arguments)||this};
_.A(Qb,_.w);Qb.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JC("page-changed",this.page))};
Qb.prototype.pageChangedForBinding=Qb.prototype.pageChangedForBinding;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Qb.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Qb.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",String)],Qb.prototype,"page",void 0);_.H([_.gd("page"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qb.prototype,"pageChangedForBinding",null);
_.H([_.k({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],Qb);
_.D(Qb,"ytd-account-item-section-header-renderer",function(){if(AIV!==void 0)return AIV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.title]]" class="style-scope ytd-account-item-section-header-renderer"></yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return AIV=p},{mode:1});var ZHd;var Ke=function(){return _.w.apply(this,arguments)||this};
_.A(Ke,_.w);Ke.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"}}}};
Ke.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ke.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Ke.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.tP),_.x("design:type",Object)],Ke.prototype,"ytContinuationHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Ke.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!1}),_.x("design:type",Function)],Ke.prototype,"onAccountItemTap",void 0);
_.H([_.k({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],Ke);
_.D(Ke,"ytd-account-item-section-renderer",function(){if(ZHd!==void 0)return ZHd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-item-section-renderer"></div>\n<div id="contents" class="style-scope ytd-account-item-section-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return ZHd=p},{mode:1});var MI9;var VIO;var wo=function(){return _.w.apply(this,arguments)||this};
_.A(wo,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],wo.prototype,"data",void 0);_.H([_.k({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],wo);
_.D(wo,"ytd-accounts-dialog-header-renderer",function(){if(VIO!==void 0)return VIO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-accounts-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-accounts-dialog-header-renderer"></yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return VIO=p},{mode:1});var gkV;var i7=function(){return _.w.apply(this,arguments)||this};
_.A(i7,_.w);i7.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],i7.prototype,"data",void 0);_.H([_.k({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],i7);
_.D(i7,"ytd-google-account-header-renderer",function(){if(gkV!==void 0)return gkV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-google-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="managedAccountDisclaimer" class="style-scope ytd-google-account-header-renderer"></div>\n<div id="container" class="style-scope ytd-google-account-header-renderer">\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="name" text="[[data.name]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="email" text="[[data.email]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return gkV=p},{mode:1});var ro=function(){return _.w.apply(this,arguments)||this};
_.A(ro,_.w);ro.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"}}}};
ro.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JC("page-changed",this.page))};
ro.prototype.pageChangedForBinding=ro.prototype.pageChangedForBinding;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ro.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ro.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",String)],ro.prototype,"page",void 0);
_.H([_.gd("page"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ro.prototype,"pageChangedForBinding",null);_.H([_.k({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],ro);
_.Al()(ro,"ytd-account-section-list-renderer",function(){if(MI9===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-section-list-renderer"></div>\n<div id="contents" class="style-scope ytd-account-section-list-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);MI9=p}p=MI9;return p},{allowedProps:["data"],
mode:1});var QzA;var S8=function(){var p=_.w.apply(this,arguments)||this;p.enableHandlesAccountMenuSwitcher=_.n("enable_handles_account_menu_switcher");return p};
_.A(S8,_.w);S8.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
S8.prototype.dataChanged=S8.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],S8.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],S8.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],S8.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.H([_.rd("#avatar"),_.x("design:type",Object)],S8.prototype,"avatar",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],S8.prototype,"dataChanged",null);_.H([_.k({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],S8);
_.Al()(S8,"ytd-active-account-header-renderer",function(){if(QzA===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-active-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="avatar" height="40" thumbnail="[[data.accountPhoto]]" width="40" class="style-scope ytd-active-account-header-renderer">\n</yt-img-shadow>\n<div id="channel-container" class="style-scope ytd-active-account-header-renderer">\n  <yt-formatted-string id="account-name" ellipsis-truncate="" text="[[data.accountName]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="email" ellipsis-truncate="" text="[[data.email]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="channel-handle" ellipsis-truncate="" respect-lang-dir="" text="[[data.channelHandle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="manage-account" ellipsis-truncate="" force-default-style="" text="[[data.manageAccountTitle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);QzA=p}p=QzA;return p},{allowedProps:["data"],
mode:1});var KTL;var wxR;var FB=function(){return _.w.apply(this,arguments)||this};
_.A(FB,_.w);FB.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
FB.prototype.onBackTap=function(){_.Ub(this.hostElement,"yt-menu-back-tapped")};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],FB.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],FB.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],FB.prototype,"data",void 0);_.H([_.k({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],FB);
_.Al()(FB,"ytd-simple-menu-header-renderer",function(){if(wxR===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-menu-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton.buttonRenderer]]" on-tap="onBackTap" class="style-scope ytd-simple-menu-header-renderer">\n</ytd-button-renderer>\n<h2 class="style-scope ytd-simple-menu-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-simple-menu-header-renderer"></yt-formatted-string>\n</h2>\n<div id="buttons" class="style-scope ytd-simple-menu-header-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);wxR=p}p=wxR;return p},{allowedProps:["data"],
mode:2});var iHm;var Le=function(){return _.w.apply(this,arguments)||this};
_.A(Le,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Le.prototype,"data",void 0);_.H([_.k({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Le);
_.D(Le,"ytd-comment-video-thumbnail-header-renderer",function(){if(iHm!==void 0)return iHm;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-video-thumbnail-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-video-thumbnail style-scope ytd-comment-video-thumbnail-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-comment-video-thumbnail-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-formatted-string class="title style-scope ytd-comment-video-thumbnail-header-renderer" text="[[data.title]]"></yt-formatted-string>\n    <div class="thumbnail-container style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.thumbnail]]">\n      <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="86" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n      </yt-img-shadow>\n    </div>\n  </a>\n</div>\n<div class="subtitle-message-banner style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.subtitleMessage]]">\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.text]]" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.termsText]]" force-default-style="" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return iHm=p},{mode:1});var rIA;var kW=function(){return _.w.apply(this,arguments)||this};
_.A(kW,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],kW.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],kW.prototype,"data",void 0);_.H([_.k({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],kW);
_.D(kW,"ytd-abuse-type-selector-renderer",function(){if(rIA!==void 0)return rIA;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-abuse-type-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-abuse-type-selector-renderer">\n  <form class="style-scope ytd-abuse-type-selector-renderer">\n    <yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" class="style-scope ytd-abuse-type-selector-renderer">\n    </yt-options-renderer>\n  </form>\n  <div id="footer" class="style-scope ytd-abuse-type-selector-renderer">[[getSimpleString(data.footer)]]</div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return rIA=p},{mode:1});var SQV;var N8=function(){return _.w.apply(this,arguments)||this};
_.A(N8,_.w);N8.prototype.attached=function(){var p=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){p.additionalContextInput.focusTextInput()})};
N8.prototype.handleAdditionalContextChanged=function(){var p=this;_.tl(this,"ytd-report-channel-additional-context-update",function(){p.ytdReduxBehavior.dispatch(_.$y({type:"ADDITIONAL_CONTEXT_UPDATED",payload:p.additionalContext}))},300)};
N8.prototype.updateAdditionalContextFromBinding=function(p){this.additionalContext=p.detail.value};
N8.prototype.handleAdditionalContextChanged=N8.prototype.handleAdditionalContextChanged;_.H([_.V(_.zL),_.x("design:type",Object)],N8.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",String)],N8.prototype,"additionalContext",void 0);_.H([_.Q({selector:function(p){return p.reportChannelAbuse.additionalContext}}),
_.x("design:type",String)],N8.prototype,"additionalContextRedux",void 0);_.H([_.Q(),_.x("design:type",Object)],N8.prototype,"data",void 0);_.H([_.rd("yt-text-input-form-field-renderer"),_.x("design:type",Object)],N8.prototype,"additionalContextInput",void 0);_.H([_.gd("additionalContext"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],N8.prototype,"handleAdditionalContextChanged",null);
_.H([_.k({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],N8);
_.D(N8,"ytd-report-channel-modal-additional-context-renderer",function(){if(SQV!==void 0)return SQV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-additional-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.additionalDetailsTextField.textInputFormFieldRenderer]]" value="[[additionalContext]]" on-value-changed="updateAdditionalContextFromBinding" class="style-scope ytd-report-channel-modal-additional-context-renderer">\n</yt-text-input-form-field-renderer>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return SQV=p},{mode:1});var FT7;var D2=function(){var p=_.w.apply(this,arguments)||this;p.nextButtonDisabled=null;p.submitEndpoint=null;p.navigationEndpoint=null;p.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return p};
_.A(D2,_.w);_.J=D2.prototype;_.J.computeNextButtonData=function(p,y,l){var q={};y&&(q.navigationEndpoint=y);l&&(q.serviceEndpoint=l);p&&p.buttonRenderer&&_.Ts.extend(q,p.buttonRenderer);return q};
_.J.handleReportChannelModalDisableNextButtonAction=function(p){this.setNextButtonIsDisabled(p)};
_.J.handleReportFormEndpointUpdateAction=function(p){this.setNextButtonIsDisabled(!!p.disableSubmitButton);this.resetEndpointData();p.submitEndpoint?this.submitEndpoint=p.submitEndpoint:p.submitNavigationEndpoint&&(this.navigationEndpoint=p.submitNavigationEndpoint)};
_.J.handleSignalActionSubmitForm=function(){var p,y=Object.keys(((p=this.reportChannelAbuseForm)==null?void 0:p.selectedVideoIds)||{}),l;p=((l=this.reportChannelAbuseForm)==null?void 0:l.additionalContext)||"";var q;l=((q=this.reportChannelAbuseForm)==null?void 0:q.impersonatedChannelUrl)||"";var t;if((t=this.data)==null?0:t.submitEndpoint){y={impersonated_channel_url:l,text:p,video_ids:y};var E;_.WC().resolve(_.aK).resolveCommand((E=this.data)==null?void 0:E.submitEndpoint,{form:Object.assign({},
y,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.J.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.J.onYtServiceRequestError=function(p){this.setNextButtonIsDisabled(!1);_.Wn(this.hostElement,p.detail.error.message)};
_.J.setNextButtonIsDisabled=function(p){this.set("data.nextButton.buttonRenderer.isDisabled",p)};
_.J.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
D2.prototype.onYtServiceRequestError=D2.prototype.onYtServiceRequestError;D2.prototype.onYtServiceRequestCompleted=D2.prototype.onYtServiceRequestCompleted;_.H([_.Q(),_.x("design:type",Object)],D2.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],D2.prototype,"nextButtonDisabled",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],D2.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],D2.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],D2.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],D2.prototype,"submitEndpoint",void 0);_.H([_.Q(),_.x("design:type",Object)],D2.prototype,"navigationEndpoint",void 0);_.H([_.Q({selector:function(p){return p.reportChannelAbuse}}),
_.x("design:type",Object)],D2.prototype,"reportChannelAbuseForm",void 0);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],D2.prototype,"onYtServiceRequestCompleted",null);_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],D2.prototype,"onYtServiceRequestError",null);
_.H([_.k({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],D2);
_.D(D2,"ytd-report-channel-modal-footer-renderer",function(){if(FT7!==void 0)return FT7;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n<ytd-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, navigationEndpoint, submitEndpoint)]]" disabled="[[data.nextButton.buttonRenderer.isDisabled]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return FT7=p},{mode:1});var LTd;var HD=function(){var p=_.w.apply(this,arguments)||this;p.boundOnTapDismissButton=function(){p.closePopup()};
return p};
_.A(HD,_.w);HD.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
HD.prototype.handleDataChanged=function(){_.tp(this.hostElement)};
HD.prototype.closePopup=function(){_.$w(this.hostElement,"yt-close-popup-action")};
HD.prototype.handleDataChanged=HD.prototype.handleDataChanged;_.H([_.Q(),_.x("design:type",Object)],HD.prototype,"boundOnTapDismissButton",void 0);_.H([_.Q(),_.x("design:type",Object)],HD.prototype,"data",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],HD.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HD.prototype,"handleDataChanged",null);_.H([_.k({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],HD);
_.D(HD,"ytd-report-channel-modal-header-renderer",function(){if(LTd!==void 0)return LTd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-report-channel-modal-header-renderer">\n  <span id="title" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.title)]]</span>\n  <span id="subtitle" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.subtitle)]]</span>\n</div>\n<div id="dismiss-button" class="style-scope ytd-report-channel-modal-header-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return LTd=p},{mode:1});var k36;var Tm=function(){var p=_.w.apply(this,arguments)||this;p.autoValidate=!1;p.invalid=!1;p.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return p};
_.A(Tm,_.w);_.J=Tm.prototype;_.J.attached=function(){var p=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){p.channelUrlInput.focusTextInput()})};
_.J.disableNextButton=function(p){_.$w(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[p])};
_.J.handleImpersonatedChannelUrlChanged=function(){var p=this;this.disableNextButton(!0);this.invalid=!1;_.tl(this,"ytd-report-channel-impersonated-channel-update",function(){var y=p.impersonatedChannelUrl.trim();p.ytdReduxBehavior.dispatch(_.$y({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:y}));var l;((l=p.data)==null?0:l.submitEndpoint)&&y&&_.WC().resolve(_.aK).resolveCommand(p.data.submitEndpoint,{form:{impersonated_channel_url:y,element:p.hostElement}})},500)};
_.J.handleModifyReportFormCommand=function(p){this.invalid=this.get("modifyReportFormCommand.action",p)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.J.updateInvalidFromBinding=function(p){this.invalid=p.detail.value};
_.J.updateImpersonatedChannelUrlFromBinding=function(p){this.impersonatedChannelUrl=p.detail.value};
Tm.prototype.handleImpersonatedChannelUrlChanged=Tm.prototype.handleImpersonatedChannelUrlChanged;_.H([_.V(_.zL),_.x("design:type",Object)],Tm.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Tm.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Tm.prototype,"autoValidate",void 0);_.H([_.Q(),_.x("design:type",Object)],Tm.prototype,"invalid",void 0);
_.H([_.Q(),_.x("design:type",String)],Tm.prototype,"impersonatedChannelUrl",void 0);_.H([_.Q({selector:function(p){return p.reportChannelAbuse.impersonatedChannelUrl}}),
_.x("design:type",String)],Tm.prototype,"impersonatedChannelUrlRedux",void 0);_.H([_.Q(),_.x("design:type",Object)],Tm.prototype,"data",void 0);_.H([_.rd("#text-input"),_.x("design:type",Object)],Tm.prototype,"channelUrlInput",void 0);_.H([_.gd("impersonatedChannelUrl"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Tm.prototype,"handleImpersonatedChannelUrlChanged",null);
_.H([_.k({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Tm);
_.D(Tm,"ytd-report-channel-modal-impersonation-renderer",function(){if(k36!==void 0)return k36;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-impersonation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer id="text-input" auto-validate="[[autoValidate]]" component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.impersonationTextField.textInputFormFieldRenderer]]" invalid="[[invalid]]" value="[[impersonatedChannelUrl]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="updateImpersonatedChannelUrlFromBinding" class="style-scope ytd-report-channel-modal-impersonation-renderer"></yt-text-input-form-field-renderer>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return k36=p},{mode:1});var N1d;var Dwd;var xW=function(){return _.w.apply(this,arguments)||this};
_.A(xW,_.w);xW.prototype.onCheckboxToggled=function(p){var y,l,q=(l=_.G((y=this.data)==null?void 0:y.video,_.qb))==null?void 0:l.videoId;q&&this.ytdReduxBehavior.dispatch(p.target.checked?_.$y({type:"VIDEO_SELECTED",payload:q}):_.$y({type:"VIDEO_UNSELECTED",payload:q}))};
xW.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Jh.Object.defineProperties(xW.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var p,y=(p=this.data)==null?void 0:p.video;if(!y)return{};var l;p=(l=_.G(y,_.qb))==null?void 0:l.navigationEndpoint;if(!p)return y;_.G(p==null?void 0:p.commandMetadata,_.ul)&&(_.G(p.commandMetadata,_.ul).ignoreNavigation=!0);return y}}});
_.H([_.Q({reflectToAttribute:!0,selector:function(p,y){return y in p.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.x("design:type",Boolean)],xW.prototype,"checked",void 0);_.H([_.Q(),_.x("design:type",Object)],xW.prototype,"data",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],xW.prototype,"video",null);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],xW.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],xW.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.zL),_.x("design:type",Object)],xW.prototype,"ytdReduxBehavior",void 0);_.H([_.k({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],xW);
_.D(xW,"ytd-selectable-video-renderer",function(){if(Dwd!==void 0)return Dwd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox checked="[[checked]]" on-change="onCheckboxToggled" class="style-scope ytd-selectable-video-renderer">\n  <div id="video" class="style-scope ytd-selectable-video-renderer"></div>\n</tp-yt-paper-checkbox>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Dwd=p},{mode:1});var BD=function(){var p=_.w.apply(this,arguments)||this;p.monitorScroll=!0;return p};
_.A(BD,_.w);BD.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],BD.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],BD.prototype,"data",void 0);_.H([_.k({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],BD);
_.D(BD,"ytd-selectable-video-list-renderer",function(){if(N1d!==void 0)return N1d;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selectable-videos" hidden="[[!data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer"></div>\n<div id="empty-state-message" hidden="[[data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer">\n  [[getSimpleString(data.emptyStateMessage)]]\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return N1d=p},{mode:1});var HHd;_.ox("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var fe=function(){return _.w.apply(this,arguments)||this};
_.A(fe,_.w);fe.prototype.onChange=function(p){if(p=_.cm(p).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.n("kevlar_command_handler_migration_killswitch"))_.Gf(this.hostElement,p,this.hostElement);else{p=_.c(p);for(var y=p.next();!y.done;y=p.next())this.ytComponentBehavior.resolveCommand(y.value)}};
fe.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
fe.prototype.updateDataToggledFromBinding=function(p){this.set("data.toggled",p.detail.value)};
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],fe.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],fe.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],fe.prototype,"data",void 0);_.H([_.Q({computed:"isEnabled(data)"}),_.x("design:type",Boolean)],fe.prototype,"enabled",void 0);_.H([_.k({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],fe);
_.D(fe,"ytd-toggle-item-renderer",function(){if(HHd!==void 0)return HHd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.descriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="description style-scope ytd-toggle-item-renderer">[[getSimpleString(item)]]</div>\n</template>\n<div id="caption-container" class="style-scope ytd-toggle-item-renderer">\n  <div id="caption" class="style-scope ytd-toggle-item-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button checked="[[data.toggled]]" disabled="[[!enabled]]" noink="" on-change="onChange" on-checked-changed="updateDataToggledFromBinding" class="style-scope ytd-toggle-item-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<template is="dom-repeat" items="[[data.extraDescriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="extra-description style-scope ytd-toggle-item-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-toggle-item-renderer"></yt-formatted-string>\n  </div>\n</template>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return HHd=p},{mode:1});var T1R;var xw1;var B11;var vD=function(){var p=_.w.apply(this,arguments)||this;p.setVisible=!1;p.boundOnSubmitButtonClick=function(){p.onSubmitButtonClick()};
p.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return p};
_.A(vD,_.w);vD.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}}}}}};
vD.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
vD.prototype.onSubmitButtonClick=function(){var p;((p=this.data)==null?0:p.submitEndpoint)&&!_.n("enable_ytc_refunds_submit_form_signal_action")&&_.ny(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
vD.prototype.handleSignalActionSubmitForm=function(){var p;((p=this.data)==null?0:p.submitEndpoint)&&_.ny(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Jh.Object.defineProperties(vD.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.hiddenByDefault)&&!this.setVisible}}});
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],vD.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],vD.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],vD.prototype,"setVisible",void 0);_.H([_.Q(),_.x("design:type",Object)],vD.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Object)],vD.prototype,"surveyFeedbackData",void 0);_.H([_.Q(),_.x("design:type",Object)],vD.prototype,"boundOnSubmitButtonClick",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("data","setVisible"),_.x("design:type",Object),_.x("design:paramtypes",[])],vD.prototype,"visibilityHidden",null);_.H([_.z9({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],vD);
_.D(vD,"yt-flow-footer-renderer",function(){if(B11===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_footer_renderer.yt.flow.footer.renderer.css.js--\x3e<div id="secondary-button" hidden$="[[!data.secondaryButton]]" class="style-scope yt-flow-footer-renderer"></div><div id="primary-button" hidden$="[[!data.primaryButton]]" class="style-scope yt-flow-footer-renderer"></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;xw1===void 0&&(xw1=document.createElement("template"));var q=xw1;l.call(y,q.content.cloneNode(!0),p.content.firstChild);B11=p}p=B11;return p},{mode:2});var XB=function(){return _.w.apply(this,arguments)||this};
_.A(XB,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],XB.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],XB.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],XB.prototype,"data",void 0);_.H([_.Q({selector:function(p){return p.ypc.surveyFeedbackData}}),
_.x("design:type",Object)],XB.prototype,"surveyFeedbackData",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],XB);
_.D(XB,"ytd-flow-footer-renderer",function(){if(T1R!==void 0)return T1R;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-flow-footer-renderer data="[[data]]" survey-feedback-data="[[surveyFeedbackData]]" class="style-scope ytd-flow-footer-renderer">\n</yt-flow-footer-renderer>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return T1R=p},{mode:_.ZS("kevlar_poly_si_batch_j025")?1:2});var fX1;var vku;var OF=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return p};
_.A(OF,_.w);_.J=OF.prototype;_.J.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.zT("multiPageMenuSectionItems")}}};
_.J.handleHideEnclosingAction_=function(p){if(this.data&&this.data.items)for(var y=0;y<this.data.items.length;y++){var l=this.data.items[y].notificationRenderer;if(l&&l.notificationId==p.hideEnclosingAction.notificationId){this.splice("data.items",y,1);_.$w(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.J.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.G9(this.hostElement,"hidden",!0)};
_.J.updateMenu_=function(p){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&p&&!p.doNotRefreshInbox){p=this.data.continuations;for(var y=0;y<p.length;y++)if(p[y].invalidationContinuationData){var l=void 0;var q=(l=p[y].invalidationContinuationData)==null?void 0:l.continuation;break}p=_.Ts.clone(this.data.continuationUpdateEndpoint||null);p.continuation=q;p.click_tracking_params=this.data.trackingParams;_.ny(this.hostElement,[p])}};
_.J.onServiceRequestCompleted_=function(p,y){if(this.data&&(p=y.actions)){y=0;for(var l=p.length;y<l;y++){var q=_.G(p[y],_.xir);if(!q)break;if((q.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||q.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&q.continuationItems&&this.data.items){var t=this.data.items.length-1;this.data.items[t].continuationItemRenderer&&(q=["data.items",t,1].concat(q.continuationItems),this.splice.apply(this,q))}}}};
OF.prototype.onServiceRequestCompleted_=OF.prototype.onServiceRequestCompleted_;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],OF.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],OF.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],OF.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],OF.prototype,"data",void 0);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],OF.prototype,"onServiceRequestCompleted_",null);_.H([_.z9({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],OF);
_.Al()(OF,"yt-multi-page-menu-section-renderer",function(){if(vku===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-multi-page-menu-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.account.yt_multi_page_menu_section_renderer.yt.multi.page.menu.section.renderer.css.js--\x3e<div id="section-title" hidden="[[!data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer">\n  <h2 class="style-scope yt-multi-page-menu-section-renderer">\n    <yt-formatted-string text="[[data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer"></yt-formatted-string>\n  </h2>\n</div>\n<div id="items" class="style-scope yt-multi-page-menu-section-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;fX1===void 0&&(fX1=document.createElement("template"));var q=fX1;l.call(y,q.content.cloneNode(!0),p.content.firstChild);vku=p}p=vku;return p},{allowedProps:["data"],
mode:2});var Xx7;var dw7;var oR=function(){return _.w.apply(this,arguments)||this};
_.A(oR,_.w);oR.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Jh.Object.defineProperties(oR.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.progress)==null?0:this.data.progress*100}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],oR.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],oR.prototype,"data",void 0);_.H([_.g("data.progress"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],oR.prototype,"showProgressBar",null);
_.H([_.g("data.progress"),_.x("design:type",Number),_.x("design:paramtypes",[])],oR.prototype,"progress",null);_.H([_.z9({is:"yt-flow-header-renderer",disableElementRegistration:!0})],oR);
_.D(oR,"yt-flow-header-renderer",function(){if(dw7===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_header_renderer.yt.flow.header.renderer.css.js--\x3e<div id="top-bar" class="style-scope yt-flow-header-renderer">\n  <div id="action-button" hidden$="[[!data.actionButton]]" class="style-scope yt-flow-header-renderer"></div>\n  <yt-formatted-string id="title" force-default-style="" split-lines="1" text="[[data.title]]" class="style-scope yt-flow-header-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-paper-progress id="progress-bar" hidden="[[!showProgressBar]]" value="[[progress]]" class="style-scope yt-flow-header-renderer"></tp-yt-paper-progress>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;Xx7===void 0&&(Xx7=document.createElement("template"));var q=Xx7;l.call(y,q.content.cloneNode(!0),p.content.firstChild);dw7=p}p=dw7;return p},{mode:2});var OHu;var ok1;var zm=function(){return _.w.apply(this,arguments)||this};
_.A(zm,_.w);zm.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],zm.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],zm.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],zm.prototype,"data",void 0);_.H([_.z9({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],zm);
_.D(zm,"yt-post-confirmation-flow-step-renderer",function(){if(ok1===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-post-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_post_confirmation_flow_step_renderer.yt.post.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-post-confirmation-flow-step-renderer"><div id="text" class="style-scope yt-post-confirmation-flow-step-renderer"></div></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;OHu===void 0&&(OHu=document.createElement("template"));var q=OHu;l.call(y,q.content.cloneNode(!0),p.content.firstChild);ok1=p}p=ok1;return p},{mode:2});var zjA;var YQO;var YW=function(){return _.w.apply(this,arguments)||this};
_.A(YW,_.w);
YW.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"}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],YW.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],YW.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],YW.prototype,"data",void 0);_.H([_.z9({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],YW);
_.D(YW,"yt-refund-confirmation-flow-step-renderer",function(){if(YQO===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-refund-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_refund_confirmation_flow_step_renderer.yt.refund.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-refund-confirmation-flow-step-renderer"><div id="user-info" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-text" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="product-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="billing-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;zjA===void 0&&(zjA=document.createElement("template"));var q=zjA;l.call(y,q.content.cloneNode(!0),p.content.firstChild);YQO=p}p=YQO;return p},{mode:2});_.uX(QMd);_.uX(Krd);var wm6=_.T4({avatarViewModel:_.v5});_.uX(ivA);var jU=_.T4({commentInteractionViewModel:Krd,sharedSubscriptionViewModel:ivA,buttonViewModel:_.wZ,horizontalShelfViewModel:_.IH});_.uX(rx1);_.uX(SsR);_.uX(FrV);_.uX(LrA);_.uX(k9m);var Ndi=_.T4({profileIdentityInfoViewModel:_.NqT,profileInfoViewModel:k9m});_.uX(DH7);_.gD(DH7,"yt-profile-card-view-model",{propNames:["data"]});var IR=function(){var p=_.w.apply(this,arguments)||this;p.enableFocusFix=_.n("music_web_enable_focus_on_setting_menu_fix")&&_.o4("IS_MOBILE_WEB",!1);p.covered=!1;p.hideMenu=!1;p.isCommentNotificationOnProfileCard=!1;p.scrolledByTouch=!1;p.disableBackdropFilter=_.n("web_disable_backdrop_filter");p.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return p};
_.A(IR,_.w);_.J=IR.prototype;
_.J.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{activeAccountHeaderRenderer:"ytd-active-account-header-renderer",flowHeaderRenderer:"yt-flow-header-renderer",simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer",reportChannelModalHeaderRenderer:"ytd-report-channel-modal-header-renderer"}},"data.sections":{id:"sections",mapping:{additionalContextRenderer:"ytd-report-channel-modal-additional-context-renderer",abuseTypeSelectorRenderer:"ytd-abuse-type-selector-renderer",accountSectionListRenderer:"ytd-account-section-list-renderer",
backgroundPromoRenderer:"ytd-background-promo-renderer",commentVideoThumbnailHeaderRenderer:"ytd-comment-video-thumbnail-header-renderer",impersonationScreenRenderer:"ytd-report-channel-modal-impersonation-renderer",itemSectionRenderer:"ytd-comments",messageRenderer:"ytd-message-renderer",multiPageMenuNotificationSectionRenderer:"yt-multi-page-menu-section-renderer",multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",postConfirmationFlowStepRenderer:"yt-post-confirmation-flow-step-renderer",
refundConfirmationFlowStepRenderer:"yt-refund-confirmation-flow-step-renderer",selectableVideoListRenderer:"ytd-selectable-video-list-renderer",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",toggleItemRenderer:"ytd-toggle-item-renderer",profileCardViewModel:"yt-profile-card-view-model",continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.footer":{id:"footer",mapping:{multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",reportChannelModalFooterRenderer:"ytd-report-channel-modal-footer-renderer",
flowFooterRenderer:"ytd-flow-footer-renderer"}}}};
_.J.ready=function(){var p=this;this.JSC$19998_containerElement.addEventListener("scroll",function(){p.ytRendererBehavior.markDirty()})};
_.J.attributeChanged=function(p,y){p==="menu-style"&&_.$w(this.hostElement,"yt-multi-page-menu-closed-action",[y])};
_.J.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.MH(this,this.focusOnStampFinished))};
_.J.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.MH(this,this.focusOnStampFinished))};
_.J.reset=function(){this.closeJobId&&(_.TR.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.J.focusOnStampFinished=function(p){p.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.MH(this,this.focusOnStampFinished)),this.doFocus())};
_.J.doFocus=function(){var p=_.Xnv(this.sectionsElement);p.length&&p[0].focus()};
_.J.computeMenuStyle=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.J.computeIsCommentNotificationOnProfileCard=function(p){return _.n("enable_profile_cards_on_comments")&&p.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.J.computeHideMenu=function(p,y){return p||!(!y||!y.showLoadingSpinner)};
_.J.onPopupClosed=function(){this.isPopUpOpen=!1;_.$w(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.J.onPopupOpened=function(p,y){this.isPopUpOpen=!0;y.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Ub(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.$y({type:"CHANNEL_REPORT_RESET"})))};
_.J.onYtNavigate=function(p,y){this.shouldCloseOnNavigateEvent(y.endpoint)&&_.$w(this.hostElement,"yt-close-all-popups-action")};
_.J.handleEndpoint=function(p){p=_.G(p,_.zA);!this.isCommentNotificationOnProfileCard&&p&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$19998_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.J.handleActions=function(p){for(var y=0,l=p.length;y<l;y++){var q=_.G(p[y],C2A);q&&this.handleGetMultiPageMenuAction(q);(q=_.G(p[y],_.xir))&&this.handleAppendContinuationItemsAction(q)}};
_.J.onServiceRequestSentOrCompleted=function(p,y){p.detail&&p.detail.endpoint&&this.handleEndpoint(p.detail.endpoint);y.actions&&this.handleActions(y.actions)};
_.J.handleGetMultiPageMenuAction=function(p){var y=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.jR(this.submenuElement).appendChild(y);(p=p.menu.multiPageMenuRenderer)&&this.logSubmenu(p);y.data=p;y.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.J.handleAppendContinuationItemsAction=function(p){if(this.data&&p.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&p.continuationItems&&this.data.sections){var y=this.data.sections.length-1;this.data.sections[y].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),y--);if(this.data.sections[y].multiPageMenuNotificationSectionRenderer&&p.continuationItems){p=_.c(p==null?void 0:p.continuationItems);for(var l=p.next();!l.done;l=p.next())if(l=l.value,_.G(l,k76)){var q=
void 0,t=void 0,E=void 0,e=void 0,C=void 0;((q=this)==null?0:(t=q.data)==null?0:(E=t.sections)==null?0:(e=E[y])==null?0:(C=e.multiPageMenuNotificationSectionRenderer)==null?0:C.items)&&this.push("data.sections."+y+".multiPageMenuNotificationSectionRenderer.items",l)}else if(_.G(l,_.KtN)||_.G(l,_.aA))this.push("data.sections",l),y++}}};
_.J.logSubmenu=function(p){if(!_.n("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var y=this.ytRendererBehavior.getScreenLayer(),l=_.B2(y),q=_.xc(y);if((p=p.trackingParams)&&l&&q){var t=_.Tp(p);_.n("combine_ve_grafts")?_.Ll().graftServerVe(p,q,y):_.pW(l,q,t)}}};
_.J.emptySubmenuContainer=function(){for(var p=_.jR(this.submenuElement);p.firstChild;)p.removeChild(p.firstChild)};
_.J.onMenuBackTap=function(p){_.Ub(this.hostElement,"yt-submenu-closed");p.stopPropagation()};
_.J.onSubmenuClosed=function(p){_.cm(p)!==this.hostElement&&(this.covered=!1,_.Ub(this.hostElement,"yt-refit"),p.stopPropagation())};
_.J.onRetrieveLocation=function(p,y){y.hasComments&&(y.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),p.stopPropagation())};
_.J.shouldCloseOnNavigateEvent=function(p){if(!p)return!0;if(_.G(p,_.KGU)||_.G(p,_.wGV)||_.G(p,_.Q$x)||_.G(p,_.Id))return!1;var y;return((y=_.G(p==null?void 0:p.commandMetadata,_.ul))==null?0:y.ignoreNavigation)?!1:!0};
_.J.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.J.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.J.refitAfterRender=function(){var p=this;_.th(this,function(){_.Ub(p.hostElement,"yt-refit")})};
IR.prototype.refitAfterRender=IR.prototype.refitAfterRender;IR.prototype.onRetrieveLocation=IR.prototype.onRetrieveLocation;IR.prototype.onSubmenuClosed=IR.prototype.onSubmenuClosed;IR.prototype.onMenuBackTap=IR.prototype.onMenuBackTap;IR.prototype.onServiceRequestSentOrCompleted=IR.prototype.onServiceRequestSentOrCompleted;IR.prototype.onYtNavigate=IR.prototype.onYtNavigate;IR.prototype.onPopupOpened=IR.prototype.onPopupOpened;IR.prototype.onPopupClosed=IR.prototype.onPopupClosed;
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],IR.prototype,"ytEventForwardingBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],IR.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],IR.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],IR.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Object)],IR.prototype,"enableFocusFix",void 0);_.H([_.Q(),_.x("design:type",Object)],IR.prototype,"covered",void 0);_.H([_.Q({computed:"computeHideMenu(covered, data)"}),_.x("design:type",Object)],IR.prototype,"hideMenu",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.x("design:type",String)],IR.prototype,"menuStyle",void 0);
_.H([_.Q({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.x("design:type",Object)],IR.prototype,"isCommentNotificationOnProfileCard",void 0);_.H([_.Q(),_.x("design:type",Boolean)],IR.prototype,"isPopUpOpen",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],IR.prototype,"scrolledByTouch",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],IR.prototype,"disableBackdropFilter",void 0);
_.H([_.rd("#sections"),_.x("design:type",HTMLElement)],IR.prototype,"sectionsElement",void 0);_.H([_.rd("#spinner"),_.x("design:type",HTMLElement)],IR.prototype,"spinnerElement",void 0);_.H([_.rd("#header"),_.x("design:type",HTMLElement)],IR.prototype,"headerElement",void 0);_.H([_.rd("#container"),_.x("design:type",HTMLElement)],IR.prototype,"JSC$19998_containerElement",void 0);_.H([_.rd("#submenu"),_.x("design:type",HTMLElement)],IR.prototype,"submenuElement",void 0);
_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],IR.prototype,"onPopupClosed",null);_.H([_.VU("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],IR.prototype,"onPopupOpened",null);_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],IR.prototype,"onYtNavigate",null);
_.H([_.VU("yt-service-request-completed"),_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],IR.prototype,"onServiceRequestSentOrCompleted",null);_.H([_.VU("yt-menu-back-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],IR.prototype,"onMenuBackTap",null);
_.H([_.VU("yt-submenu-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],IR.prototype,"onSubmenuClosed",null);_.H([_.VU("yt-retrieve-location"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],IR.prototype,"onRetrieveLocation",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],IR.prototype,"refitAfterRender",null);
_.H([_.k({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],IR);
_.D(IR,"ytd-multi-page-menu-renderer",function(){if(KTL!==void 0)return KTL;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-page-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="header" hidden="[[hideMenu]]" class="style-scope ytd-multi-page-menu-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[hideMenu]]" on-touchstart="onContainerTouchStart" on-touchend="onContainerTouchEnd">\n  <div id="sections" class="style-scope ytd-multi-page-menu-renderer"></div>\n  <div id="footer" class="style-scope ytd-multi-page-menu-renderer"></div>\n</div>\n<div id="submenu" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[!covered]]"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return KTL=p},{mode:1});var IXA;var p3=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return p};
_.A(p3,_.w);_.J=p3.prototype;_.J.created=function(){this.showTooltips=!0};
_.J.computeAccessibility_=function(p){return this.get("accessibility.accessibilityData",p)||null};
_.J.onTap=function(){var p=_.jN(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(p&&p.length===1&&p[0])_.$w(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var y;if((y=this.data)==null?0:y.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var l;((l=this.data)==null?0:l.menuRequest)&&_.ny(this.hostElement,[this.data.menuRequest])}}};
_.J.handleTopbarMenuClosedAction=function(p){var y,l;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(p)===((y=this.data)==null?void 0:(l=y.icon)==null?void 0:l.iconType)&&this.toggleIconState(!1)};
_.J.toggleIconState=function(p){_.n("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=p)};
_.J.handleUpdateTopbarAvatarAction=function(p){var y;p=(y=_.G(p,suT))==null?void 0:y.avatarUrl;var l,q;y=(l=this.data)==null?void 0:(q=l.avatar)==null?void 0:q.thumbnails;p&&y&&(l={thumbnails:[Object.assign({},y[0],{url:p})]},this.set("data.avatar",l))};
_.Jh.Object.defineProperties(p3.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.jR(this.hostElement).querySelector("#button")}}});
p3.prototype.onTap=p3.prototype.onTap;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],p3.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],p3.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.RP),_.x("design:type",Object)],p3.prototype,"ytdOpenPopupBehavior",void 0);_.H([_.V(_.uuM.YtButtonBehavior),_.x("design:type",Object)],p3.prototype,"ytButtonBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],p3.prototype,"data",void 0);
_.H([_.rd("yt-icon-button#button"),_.x("design:type",Object)],p3.prototype,"iconButton",void 0);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p3.prototype,"onTap",null);_.H([_.k({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],p3);
_.D(p3,"ytd-topbar-menu-button-renderer",function(){if(IXA!==void 0)return IXA;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-menu-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.avatar]]" class="style-scope ytd-topbar-menu-button-renderer">\n  <button id="avatar-btn" aria-haspopup="true" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope ytd-topbar-menu-button-renderer">\n    <yt-img-shadow height="32" thumbnail="[[data.avatar]]" width="32" class="style-scope ytd-topbar-menu-button-renderer"></yt-img-shadow>\n  </button>\n</template>\n<div id="button" class="style-scope ytd-topbar-menu-button-renderer">\n  \n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return IXA=p},{mode:1});var poL;var sz=function(){return _.w.apply(this,arguments)||this};
_.A(sz,_.w);sz.prototype.getSelected=function(){return this.reasons.selected};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],sz.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],sz.prototype,"data",void 0);_.H([_.rd("#reasons"),_.x("design:type",Object)],sz.prototype,"reasons",void 0);_.H([_.k({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],sz);
_.D(sz,"ytd-ad-feedback-content",function(){if(poL!==void 0)return poL;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  <yt-formatted-string id="reasons-title" text="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  </yt-formatted-string>\n</template>\n<tp-yt-paper-radio-group id="reasons" class="style-scope ytd-ad-feedback-content">\n  <template is="dom-repeat" items="[[data.reasons]]" as="feedbackReason" class="style-scope ytd-ad-feedback-content">\n    <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-ad-feedback-content">\n      <yt-formatted-string text="[[feedbackReason.reason]]" class="style-scope ytd-ad-feedback-content">\n      </yt-formatted-string>\n    </tp-yt-paper-radio-button>\n  </template>\n</tp-yt-paper-radio-group>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return poL=p},{mode:1});var yPO;var t3=function(){return _.w.apply(this,arguments)||this};
_.A(t3,_.w);_.J=t3.prototype;_.J.onPopupOpened=function(){_.$w(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.J.computeConfirmButton=function(p){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:p.confirmLabel}};
_.J.computeCancelButton=function(p){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:p.cancelLabel}};
_.J.onConfirmTap=function(){var p=this.content.getSelected();p!==void 0&&(p=this.data.reasons[p].endpoint)&&(_.WC().resolve(_.aK).resolveCommand(p,{form:{element:this.hostElement}}),_.$w(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.J.sendFeedbackSubmitToastAction=function(){var p;(p=this.data)!=null&&p.completionMessage&&_.$w(this.hostElement,"yt-open-popup-action",[_.C4(this.data.completionMessage),this])};
_.J.onCancelTap=function(){_.$w(this.hostElement,"yt-close-popup-action")};
t3.prototype.onPopupOpened=t3.prototype.onPopupOpened;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],t3.prototype,"data",void 0);_.H([_.rd("#content"),_.x("design:type",Object)],t3.prototype,"content",void 0);_.H([_.VU("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],t3.prototype,"onPopupOpened",null);
_.H([_.k({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],t3);
_.D(t3,"ytd-ad-feedback-renderer",function(){if(yPO!==void 0)return yPO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-ad-feedback-renderer"></yt-formatted-string>\n<ytd-ad-feedback-content id="content" data="[[data]]" class="style-scope ytd-ad-feedback-renderer"></ytd-ad-feedback-content>\n<div class="buttons style-scope ytd-ad-feedback-renderer">\n  <ytd-button-renderer data="[[computeCancelButton(data)]]" on-tap="onCancelTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return yPO=p},{mode:1});var lgd;var Ez=function(){return _.w.apply(this,arguments)||this};
_.A(Ez,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ez.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Ez.prototype,"data",void 0);_.H([_.k({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Ez);
_.D(Ez,"ytd-ad-info-dialog-content",function(){if(lgd!==void 0)return lgd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.adReasons]]" class="style-scope ytd-ad-info-dialog-content">\n  \n  <ul id="ad-reasons" class="style-scope ytd-ad-info-dialog-content">\n    <template is="dom-repeat" items="[[data.adReasons]]" as="reason" class="style-scope ytd-ad-info-dialog-content">\n      <li class="style-scope ytd-ad-info-dialog-content">\n        <yt-formatted-string text="[[reason]]" class="style-scope ytd-ad-info-dialog-content">\n        </yt-formatted-string>\n      </li>\n    </template>\n  </ul>\n</template>\n<yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope ytd-ad-info-dialog-content">\n</yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return lgd=p},{mode:1});var qo1;var J3=function(){return _.w.apply(this,arguments)||this};
_.A(J3,_.w);J3.prototype.computeConfirmButton=function(p){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:p.confirmLabel}};
J3.prototype.onConfirmTap=function(){_.$w(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
J3.prototype.computeShouldShowTitle=function(){var p;return!((p=this.data)==null||!p.title)};
J3.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.WC().resolve(_.aK).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
J3.prototype.onPopupClosed=J3.prototype.onPopupClosed;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],J3.prototype,"data",void 0);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],J3.prototype,"onPopupClosed",null);_.H([_.k({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],J3);
_.D(J3,"ytd-ad-info-dialog-renderer",function(){if(qo1!==void 0)return qo1;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[computeShouldShowTitle(data.title)]]" class="style-scope ytd-ad-info-dialog-renderer">\n  <h2 id="title" class="style-scope ytd-ad-info-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n</template>\n<ytd-ad-info-dialog-content data="[[data]]" class="style-scope ytd-ad-info-dialog-renderer"></ytd-ad-info-dialog-content>\n<div class="buttons style-scope ytd-ad-info-dialog-renderer">\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-info-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return qo1=p},{mode:1});var sf1;var ca=function(){var p=_.w.apply(this,arguments)||this;p.actionButtonClass="action-button";p.dismissButtonId="dismiss-button";p.dialogDismiss=!0;return p};
_.A(ca,_.w);_.J=ca.prototype;_.J.computeInPlayer=function(p){return(p==null?void 0:p.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.J.computedLogo=function(){var p,y;return this.isDarkTheme()?(p=this.data)==null?void 0:p.logoDark:(y=this.data)==null?void 0:y.logo};
_.J.computedHeaderImage=function(){var p,y;return this.isDarkTheme()?(p=this.data)==null?void 0:p.headerImageDark:(y=this.data)==null?void 0:y.headerImage};
_.J.computeLogoIconId=function(){var p,y,l,q=(p=this.computedLogo())==null?void 0:(y=p.sources)==null?void 0:(l=y[0])==null?void 0:l.height;return q&&q%31===0?"logo-icon-with-padding":"logo-icon"};
_.J.computeLogoIconHeight=function(){var p,y,l,q=(p=this.computedLogo())==null?void 0:(y=p.sources)==null?void 0:(l=y[0])==null?void 0:l.height;return q&&q%31===0?"31":"24"};
_.J.onPopupClosed=function(){_.WC().resolve(_.V_).dispose()};
_.J.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.J.onShow=function(){this.inPlayer&&_.gC(6)};
_.J.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var p=0;p<this.data.impressionEndpoints.length;p++){var y=_.G(this.data.impressionEndpoints[p],_.pY);y&&this.ytComponentBehavior.resolveCommand(y)}};
_.J.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.$w(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Jh.Object.defineProperties(ca.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var p,y;return!((p=this.data)==null||!p.headerImageDark)&&!((y=this.data)==null||!y.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.secondaryButton)}}});
ca.prototype.onPopupClosed=ca.prototype.onPopupClosed;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ca.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],ca.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.JG.YtVisibilityBehavior),_.x("design:type",Object)],ca.prototype,"ytVisibilityBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ca.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Object)],ca.prototype,"actionButtonClass",void 0);_.H([_.Q(),_.x("design:type",Object)],ca.prototype,"dismissButtonId",void 0);_.H([_.Q(),_.x("design:type",Object)],ca.prototype,"dialogDismiss",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ca.prototype,"hasHeaderImage",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ca.prototype,"hasPremiumButton",null);
_.H([_.Q({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.x("design:type",Boolean)],ca.prototype,"inPlayer",void 0);_.H([_.rd("#dismiss-button"),_.x("design:type",HTMLElement)],ca.prototype,"dismissButton",void 0);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ca.prototype,"onPopupClosed",null);_.H([_.k({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],ca);
_.D(ca,"ytd-enforcement-message-view-model",function(){if(sf1!==void 0)return sf1;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return sf1=p},{mode:1});var tlA;var E_d;var eL=function(){var p=_.w.apply(this,arguments)||this;p.TEST_ONLY={immediateValidation:function(){p.immediateValidation()},
onValidationResponse:function(y){p.onValidationResponse(y)},
onGenerateHandleFromNameResponse:function(y){p.onGenerateHandleFromNameResponse(y)}};
return p};
_.A(eL,_.w);_.J=eL.prototype;_.J.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.J.validate=function(){this.immediateValidation()};
_.J.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.J.setHandleInputValue=function(p){this.handleDir=this.getHandleDir(p);this.handleInput.value=p;this.validationState={status:"PENDING"};this.immediateValidation()};
_.J.getHandleDir=function(p){var y=p===""&&!1;return(y=_.LHr.test.call(_.LHr,p))?"rtl":"ltr"};
_.J.onDataChanged=function(){var p,y;this.handleDir=this.getHandleDir((y=(p=this.data)==null?void 0:p.handle)!=null?y:"");var l;this.validationState=((l=this.data)==null?0:l.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var q;((q=this.data)==null?0:q.validateOnInit)&&this.immediateValidation()};
_.J.stopPropagation=function(p){p.stopPropagation()};
_.J.onInput=function(){var p;this.handleDir=this.getHandleDir((p=this.handleInput.value)!=null?p:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.J.onFocusout=function(p){this.handleInput.contains(p.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.J.delayedValidation=function(){var p,y;this.debouncedValidation((y=(p=this.data)==null?void 0:p.validationDelayMs)!=null?y:1E3)};
_.J.immediateValidation=function(){this.debouncedValidation(0)};
_.J.debouncedValidation=function(p){var y=this;_.tl(this,"debouncedValidation",function(){var l,q=y.staticValidation((l=y.handleInput.value)!=null?l:"");if(q!==void 0)y.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:q};else{var t;if((t=y.data)!=null&&t.validateChannelHandleCommand){y.validationState={status:"LOADING"};var E;y.ytComponentBehavior.resolveCommand(y.data.validateChannelHandleCommand,{form:{handle:(E=y.handleInput.value)!=null?E:""},commandController:{onSuccess:function(e,
C){y.onValidationResponse(C)},
onServerError:function(e,C){y.onValidationServerError(C)}}})}else y.handleUnexpectedValidationError(new _.SM("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",y.data))}},p)};
_.J.staticValidation=function(p){var y;if(((y=this.data)==null?void 0:y.channelHandleStaticValidationParams)!==void 0){y=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(p)&&y.validValueRegexpErrorMessage!==void 0)return y.validValueRegexpErrorMessage;if(y.minLength!==void 0&&p.length<y.minLength&&y.minLengthErrorMessage!==void 0)return y.minLengthErrorMessage;if(y.maxLength!==void 0&&p.length>y.maxLength&&y.maxLengthErrorMessage!==void 0)return y.maxLengthErrorMessage}};
_.J.onValidationResponse=function(p){var y=_.G(p.result,t4V);y===void 0?this.handleUnexpectedValidationError(new _.SM("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",p)):this.handleValidationResultRenderer(y)};
_.J.onValidationServerError=function(p){this.handleUnexpectedValidationError(new _.SM("ValidateChannelHandle request failed.",p))};
_.J.handleValidationResultRenderer=function(p){if(p.handle===void 0)this.handleUnexpectedValidationError(new _.SM("ChannelHandleValidationResultRenderer does not contain handle.",p));else if(p.handle===this.handleInput.value)switch(p.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:p.handle};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNAVAILABLE":case "CHANNEL_HANDLE_VALIDATION_RESULT_CONFORMANCE_ERROR":case "CHANNEL_HANDLE_VALIDATION_RESULT_COMPLIANCE_ERROR":this.validationState=
{status:"INVALID",errorIndicator:"ICON",errorMessage:p.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.SM("Unrecognized ChannelHandleValidationResult",p));break;default:_.qL(p.result)}};
_.J.handleUnexpectedValidationError=function(p){var y;this.validationState={status:"UNKNOWN",handle:(y=this.handleInput.value)!=null?y:""};_.vs(p)};
_.J.stopEventPropagation=function(p){p.stopPropagation()};
_.J.updateHandleOnChannelNameInputChange=function(p){if(!this.wasEdited){var y,l;this.debouncedGenerateHandleFromName(p,(l=(y=this.data)==null?void 0:y.validationDelayMs)!=null?l:1E3)}};
_.J.debouncedGenerateHandleFromName=function(p,y){var l=this;_.tl(this,"debouncedGenerateHandleFromName",function(){var q;(q=l.data)!=null&&q.validateChannelHandleCommand?l.ytComponentBehavior.resolveCommand(l.data.validateChannelHandleCommand,{form:{name:p},commandController:{onSuccess:function(t,E){l.onGenerateHandleFromNameResponse(E)},
onServerError:function(t,E){_.vs(new _.SM("Error calling GenerateHandleFromName",E))}}}):_.vs(new _.SM("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",l.data))},y)};
_.J.onGenerateHandleFromNameResponse=function(p){this.wasEdited||((p=_.G(p.result,Ea7))?this.setHandleInputValue(p.handle):_.vs(new _.SM("Invalid results when generate handle from name")))};
_.Jh.Object.defineProperties(eL.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var p;if(p=this.validationState)p=this.validationState,p=p.status==="OK"||p.status==="UNKNOWN";if(p)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var p;if(((p=this.validationState)==null?void 0:p.status)==="INVALID")return this.validationState.errorIndicator}},
borderErrorIndicator:{configurable:!0,enumerable:!0,get:function(){return this.errorIndicator==="BORDER"}},
handleEdit:{configurable:!0,enumerable:!0,get:function(){var p,y=(p=this.channelHandleEntity)==null?void 0:p.handleEdit;this.handleDir=this.getHandleDir(y!=null?y:"");return y}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var p,y;if(((p=this.data)==null?void 0:(y=p.channelHandleStaticValidationParams)==null?void 0:y.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
eL.prototype.stopEventPropagation=eL.prototype.stopEventPropagation;eL.prototype.onDataChanged=eL.prototype.onDataChanged;eL.prototype.applyHandleEdit=eL.prototype.applyHandleEdit;eL.prototype.onValueChanged=eL.prototype.onValueChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],eL.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],eL.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],eL.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],eL.prototype,"wasEdited",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],eL.prototype,"handleDir",void 0);_.H([_.rd("#handle-input"),_.x("design:type",Object)],eL.prototype,"handleInput",void 0);_.H([_.Q(),_.g("validationState"),_.x("design:type",Object),_.x("design:paramtypes",[])],eL.prototype,"value",null);
_.H([_.gd("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eL.prototype,"onValueChanged",null);_.H([_.g("validationState"),_.x("design:type",Object),_.x("design:paramtypes",[])],eL.prototype,"errorIndicator",null);_.H([_.Q({reflectToAttribute:!0}),_.g("errorIndicator"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],eL.prototype,"borderErrorIndicator",null);
_.H([_.Q({selectorArgs:["data.channelHandleEntityKey"],selector:function(p,y){return _.Ae(p.entities,"channelHandle",y)}}),
_.x("design:type",Object)],eL.prototype,"channelHandleEntity",void 0);_.H([_.g("channelHandleEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],eL.prototype,"handleEdit",null);_.H([_.gd("handleEdit"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eL.prototype,"applyHandleEdit",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eL.prototype,"onDataChanged",null);
_.H([_.g("data.channelHandleStaticValidationParams.validValueRegexp"),_.x("design:type",Object),_.x("design:paramtypes",[])],eL.prototype,"validValueRegexp",null);_.H([_.VU("yt-service-request-sent"),_.VU("yt-service-request-completed"),_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],eL.prototype,"stopEventPropagation",null);_.H([_.k({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],eL);
_.D(eL,"ytd-channel-handle-input-renderer",function(){if(E_d!==void 0)return E_d;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="handle-input" always-float-label="" dir="[[handleDir]]" input-dir="[[handleDir]]" invalid="[[equals(errorIndicator, \'BORDER\')]]" label="[[data.label]]" required="" use-v2-underline="" value="[[data.handle]]" on-focusout="onFocusout" on-input="onInput" on-keydown="stopPropagation" class="style-scope ytd-channel-handle-input-renderer">\n  <span id="prefix" slot="prefix" class="style-scope ytd-channel-handle-input-renderer">@</span>\n  <div id="suffix-container" slot="suffix" class="style-scope ytd-channel-handle-input-renderer">\n    <div id="icon-container" class="style-scope ytd-channel-handle-input-renderer">\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'LOADING\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope ytd-channel-handle-input-renderer">\n        </tp-yt-paper-spinner-lite>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(errorIndicator, \'ICON\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="error-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:error">\n        </tp-yt-iron-icon>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'OK\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="valid-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:check-circle">\n        </tp-yt-iron-icon>\n      </template>\n    </div>\n  </div>\n</tp-yt-paper-input>\n<div id="error-container" class="style-scope ytd-channel-handle-input-renderer">\n  <template is="dom-if" restamp="" if="[[equals(validationState.status, \'INVALID\')]]" class="style-scope ytd-channel-handle-input-renderer">\n    <yt-formatted-string id="error-message" text="[[validationState.errorMessage]]" class="style-scope ytd-channel-handle-input-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return E_d=p},{mode:_.ZS("kevlar_poly_si_batch_j025")?1:2});var h3=function(){var p=_.w.apply(this,arguments)||this;p.data=null;p.errorMessage=null;p.isLoading=!0;p.hideContainer=!1;p.enableNewChannelCreationOnIdForAll=_.n("enable_new_channel_creation_for_id4all");p.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};p.testOnly={setErrorMessage:function(y){p.resetErrorState();
p.setErrorState(y)}};
return p};
_.A(h3,_.w);_.J=h3.prototype;_.J.created=function(){this.logScreenVe()};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.toggleCreateChannelButton();this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.hostElement.parentElement.style.overflowY="auto")};
_.J.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var p;((p=this.zeroStepErrorMessageEntity)==null?0:p.value)&&this.set("errorMessage",_.EK(this.zeroStepErrorMessageEntity.value))};
_.J.onCreateTap=function(){var p=this;if(this.data&&this.data.channelCreationEndpoint){var y,l;if(!((y=this.data.createChannelButton)==null?0:(l=y.buttonRenderer)==null?0:l.isDisabled)){var q;if((q=this.nameInput)!=null&&q.value){this.setLoadingState();var t,E;y=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(t=this.handleInput)==null?void 0:t.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((E=this.handleInput)==null?void 0:E.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:y,commandController:{onSuccess:function(e,C){p.onChannelCreationEndpointSuccess(C);p.obakeImageSource&&_.TX("channelCreatedWithObakeImage",{imageSourceType:p.obakeImageSource})},
onServerError:function(){p.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.J.endpointRequiresServiceRequestAction=function(p){return!!_.G(p,_.Xy)||!!_.G(p,suT)};
_.J.isNavigateAction=function(p){var y;return!!_.G(p,_.uT)||!!_.G((y=_.G(p,eO6))==null?void 0:y.command,_.uT)};
_.J.isPlaylistAction=function(p){return!!_.G(p,_.YB)||!!_.G(p,_.s_)};
_.J.onChannelCreationEndpointSuccess=function(p){if(p.createChannelError){var y;this.setErrorState((y=p.createChannelError)==null?void 0:y.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.n("enable_secondary_channel_creation_form")&&p.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(p.navigationEndpoint);if(p.actions){y=_.c(p.actions);for(var l=y.next();!l.done;l=y.next())if(l=l.value,this.endpointRequiresServiceRequestAction(l)&&this.ytComponentBehavior.resolveCommand(l),
this.isNavigateAction(l)){var q=void 0;l=_.G((q=_.G(l,eO6))==null?void 0:q.command,_.uT);q=void 0;this.isPlaylistAction((q=l)==null?void 0:q.endpoint)&&(_.$w(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),q=void 0,this.ytComponentBehavior.resolveCommand((q=l)==null?void 0:q.endpoint))}}p.actions&&p.actions.some(function(t){var E;return _.G(t,_.uT)||_.G((E=_.G(t,eO6))==null?void 0:E.command,_.uT)})||_.$w(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.J.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.J.onCancelTap=function(){var p,y,l;if(!((p=this.data)==null?0:(y=p.cancelButton)==null?0:(l=y.buttonRenderer)==null?0:l.isDisabled)){var q,t,E;p=(q=this.data)==null?void 0:(t=q.cancelButton)==null?void 0:(E=t.buttonRenderer)==null?void 0:E.command;if(!p||!_.G(p,_.jQl)){var e;this.nameInput&&((e=this.data)==null?0:e.name)&&(this.nameInput.value=this.data.name);var C;this.handleInput&&((C=this.data)==null?0:C.channelHandleInput)&&(this.handleInput.data=_.G(this.data.channelHandleInput,JS6));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.J.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.J.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.J.onClearProfilePhotoTap=function(){var p,y,l;((p=this.data)==null?0:(y=p.clearProfilePhotoButton)==null?0:(l=y.buttonRenderer)==null?0:l.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.J.onEditAvatarTap=function(){var p,y,l;((p=this.data)==null?0:(y=p.editAvatarButton)==null?0:(l=y.buttonRenderer)==null?0:l.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.J.setLoadingState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("errorMessage",null)};
_.J.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var p;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((p=this.data)==null?0:p.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.J.setErrorState=function(p){this.resetErrorState();if(p)this.set("errorMessage",p);else{var y;if((y=this.zeroStepErrorMessageEntity)==null?0:y.value)this.set("errorMessage",_.EK(this.zeroStepErrorMessageEntity.value));else{var l;((l=this.data)==null?0:l.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.J.fetchImageBlobWithAlr=function(p,y){y=y===void 0?5:y;var l=this,q,t,E,e,C;return _.h(function(u){switch(u.nextAddress){case 1:return u.yield(fetch(p,{method:"GET",mode:"cors"}),2);case 2:q=u.yieldResult;if(q.ok){u.jumpTo(3);break}if(y===0)throw Error();t=l.addJitter(Math.pow(2,5-y));return u.yield(new Promise(function(a){setTimeout(a,t*1E3)}),4);
case 4:return u.return(l.fetchImageBlobWithAlr(p,y-1));case 3:if(!q.headers.get("content-type").split(";").some(function(a){return a.trim()==="text/plain"})){u.jumpTo(5);
break}E=l;e=E.fetchImageBlobWithAlr;return u.yield(q.text(),6);case 6:return u.return(e.call(E,u.yieldResult,y-1));case 5:return u.yield(q.blob(),7);case 7:return C=u.yieldResult,u.return(C)}})};
_.J.addJitter=function(p){var y=p*.3*Math.random();Math.random()>.5&&(y*=-1);return p+y};
_.J.openProfilePicturePicker=function(){var p=this,y,l,q,t,E;return _.h(function(e){if(e.nextAddress==1){y=p.data.scottyUploadUrl;if(!y)return e.return();l=document.documentElement.hasAttribute("dark");q=document.body.style.colorScheme;l&&(document.body.style.colorScheme="dark");t=ueT(RNd(CRm(s2u(l?"dark":"light")),function(C){var u,a,m,U,b;return _.h(function(P){if(P.nextAddress==1)return u=_.qi(Q2m(new XM(C.photoUrl,!1)).build(),"alr","yes"),p.obakeImageSource=p.pictureChangeSourceToObakeImageSourceType(C.photoSource),
_.Ve(P,2),p.setLoadingState(),P.yield(p.fetchImageBlobWithAlr(u),4);if(P.nextAddress!=2)return a=P.yieldResult,m=new FileReader,m.addEventListener("load",function(){var Z,K,F,L,T,O;return _.h(function(f){if(f.nextAddress==1){if(a.size>15728640)return p.setErrorState((Z=p.data)==null?void 0:Z.imageSizeErrorMessage),_.vs(Error("kl")),f.return();if(!m.result)return p.setErrorState((K=p.data)==null?void 0:K.genericImageLoadErrorMessage),_.vs(Error("ll")),f.return();F=m.result;_.Ve(f,2);return f.yield(HvA(a,
y),4)}if(f.nextAddress!=2)return L=f.yieldResult,p.handleImageUpdatedAction(F,L),p.resetErrorState(),_.pK(f,0);T=_.i6(f);p.setErrorState((O=p.data)==null?void 0:O.uploadErrorMessage);if(T instanceof Error)_.Bs(T);else{var v=new _.SM(JSON.stringify(T));_.Bs(v)}_.rR(f)})}),m.readAsDataURL(a),_.pK(P,0);
U=_.i6(P);p.setErrorState((b=p.data)==null?void 0:b.genericImageLoadErrorMessage);U instanceof Error?_.Bs(U):_.fT(new _.SM(JSON.stringify(U)));_.rR(P)})}),function(){p.hideContainer=!1;
document.body.style.colorScheme=q});
_.Ve(e,2);return e.yield(t.openPicker(),4)}if(e.nextAddress!=2)return _.pK(e,0);_.i6(e);p.setErrorState((E=p.data)==null?void 0:E.selectImageErrorMessage);_.rR(e)})};
_.J.pictureChangeSourceToObakeImageSourceType=function(p){switch(p){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.J.logScreenVe=function(){_.Mb(_.Ll(),124448)};
_.J.graftServerVe=function(){var p=_.xc(),y,l,q=(y=this.data)==null?void 0:(l=y.loggingDirectives)==null?void 0:l.trackingParams;q&&p&&(this.channelCreationFormVe=_.Ll().graftServerVe(q,p),p={visualElement:this.channelCreationFormVe},_.Sm().reportShown(p))};
_.J.isNameChanged=function(p){var y;return((y=this.data)==null?void 0:y.name)!==p};
_.J.isHandleChanged=function(p){var y,l=_.G((y=this.data)==null?void 0:y.channelHandleInput,JS6);return l&&p?l.handle!==p:!1};
_.J.handleImageUpdatedAction=function(p,y){this.hideContainer=!1;this.previewDataUrl=p;this.encryptedBlobId=y};
_.J.handleImageSelectionErrorAction=function(p){this.hideContainer=!1;this.setErrorState(p)};
_.J.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.J.showContainer=function(){this.hideContainer=!1};
_.J.maybeWipeZeroStepErrorMessage=function(){var p,y=(p=this.data)==null?void 0:p.zeroStepErrorMessageEntityKey,l;y&&((l=this.zeroStepErrorMessageEntity)==null?0:l.value)&&this.ytdReduxBehavior.dispatch(_.Fp("stringEntity",y,{key:y,value:""}))};
_.Jh.Object.defineProperties(h3.prototype,{photoThumbnail:{configurable:!0,enumerable:!0,get:function(){if(this.previewDataUrl)return{thumbnails:[{url:this.previewDataUrl,width:180,height:180}]};if(this.data)return this.data.isDefaultProfilePhoto?this.data.defaultProfilePhoto:this.data.profilePhoto}},
userSetPhotoThumbnailUrl:{configurable:!0,enumerable:!0,get:function(){if(this.data&&!this.data.isDefaultProfilePhoto){var p;return((p=this.photoThumbnail)==null?0:p.thumbnails)&&this.photoThumbnail.thumbnails.length>0?this.photoThumbnail.thumbnails[0].url:void 0}}},
hideProfilePhotoButtonLayer:{configurable:!0,enumerable:!0,get:function(){return this.data?!(this.data.clearProfilePhotoButton||this.data.editAvatarButton):!0}},
enableIdentityForAllChannelCreationDialog:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.descriptionInfo}}});
h3.prototype.dataChanged=h3.prototype.dataChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],h3.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],h3.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],h3.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],h3.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],h3.prototype,"errorMessage",void 0);
_.H([_.Q(),_.x("design:type",Object)],h3.prototype,"isLoading",void 0);_.H([_.Q(),_.x("design:type",String)],h3.prototype,"previewDataUrl",void 0);_.H([_.Q(),_.x("design:type",Number)],h3.prototype,"obakeImageSource",void 0);_.H([_.Q(),_.x("design:type",Object)],h3.prototype,"hideContainer",void 0);_.H([_.rd("#title-input"),_.x("design:type",Object)],h3.prototype,"nameInput",void 0);_.H([_.rd("#handle-input"),_.x("design:type",Object)],h3.prototype,"handleInput",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],h3.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.H([_.Q({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.qyu}),_.x("design:type",Object)],h3.prototype,"zeroStepErrorMessageEntity",void 0);_.H([_.g("data","data.isDefaultProfilePhoto","previewDataUrl"),_.x("design:type",Object),_.x("design:paramtypes",[])],h3.prototype,"photoThumbnail",null);
_.H([_.g("data","data.isDefaultProfilePhoto","photoThumbnail"),_.x("design:type",Object),_.x("design:paramtypes",[])],h3.prototype,"userSetPhotoThumbnailUrl",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],h3.prototype,"hideProfilePhotoButtonLayer",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],h3.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.H([_.k8("data","zeroStepErrorMessageEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],h3.prototype,"dataChanged",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data.descriptionInfo","zeroStepErrorMessageEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],h3.prototype,"description",null);_.H([_.k({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],h3);
_.D(h3,"ytd-channel-creation-dialog-renderer",function(){if(tlA!==void 0)return tlA;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope ytd-channel-creation-dialog-renderer">\n    <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-creation-dialog-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n  </div>\n  <div class="channel-creation-description style-scope ytd-channel-creation-dialog-renderer" hidden="[[!enableNewChannelCreationOnIdForAll]]">\n    <yt-formatted-string id="description-info" hidden="[[!description]]" text="[[description]]" class="style-scope ytd-channel-creation-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div class="profile-picture-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-picture style-scope ytd-channel-creation-dialog-renderer">\n      <yt-img-shadow class="profile-photo style-scope ytd-channel-creation-dialog-renderer" height="128" thumbnail="[[photoThumbnail]]" width="128">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div class="profile-photo-button-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[hideProfilePhotoButtonLayer]]">\n    <div class="profile-photo-button-container style-scope ytd-channel-creation-dialog-renderer">\n      <ytd-button-renderer data="[[data.clearProfilePhotoButton.buttonRenderer]]" on-click="onClearProfilePhotoTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n      <ytd-button-renderer data="[[data.editAvatarButton.buttonRenderer]]" hidden="[[!data.editAvatarButton]]" on-click="onEditAvatarTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n    </div>\n    <yt-formatted-string class="optional-tag style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.profilePhotoOptionalTag]]" text="[[data.profilePhotoOptionalTag]]">\n    </yt-formatted-string>\n  </div>\n  <div class="name-and-disclaimer-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.isNameEditable]]">\n      <tp-yt-paper-input id="title-input" class="input style-scope ytd-channel-creation-dialog-renderer" label="[[data.nameLabel]]" maxlength="50" required="" use-v2-underline="" value="[[data.name]]" on-input="onChannelNameInput"></tp-yt-paper-input>\n      <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        </ytd-channel-handle-input-renderer>\n      </template>\n    </div>\n    <div class="readonly-profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[data.isNameEditable]]">\n      [[data.name]]\n    </div>\n    <div class="error-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!errorMessage]]">\n      <yt-formatted-string class="error style-scope ytd-channel-creation-dialog-renderer" text="[[errorMessage]]"></yt-formatted-string>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.additionalInfos]]">\n      <div class="disclaimer-layer-paragraphs-container style-scope ytd-channel-creation-dialog-renderer">\n        <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.disclaimer]]">\n      <div class="style-scope ytd-channel-creation-dialog-renderer">\n        <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-creation-dialog-renderer" respect-html-dir="" text="[[data.disclaimer]]">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div hidden="[[!data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n      <template is="dom-repeat" items="[[data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n        <div class="disclaimer-layer disclaimer-layer-no-icon style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div class="button-layer style-scope ytd-channel-creation-dialog-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="create-channel-button" data="[[data.createChannelButton.buttonRenderer]]" on-click="onCreateTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div class="spinner-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-creation-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return tlA=p},{mode:1});var JPV;var C3=function(){var p=_.w.apply(this,arguments)||this;p.isLoading=!1;p.isDisabled=!1;return p};
_.A(C3,_.w);C3.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
C3.prototype.updateDisabled=function(){var p;this.isDisabled=this.isLoading||((p=this.handleInput)==null?void 0:p.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
C3.prototype.onSaveClick=function(){var p=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var y;((y=this.data)==null?void 0:y.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 l;if((l=p.data)==null?0:l.nextEndpoint){var q;p.ytComponentBehavior.resolveCommand((q=p.data)==null?void 0:q.nextEndpoint)}else p.isLoading=
!1,p.closeDialog()},
onServerError:function(){p.isLoading=!1;p.handleInput.validate();var l;p.errorMessage=(l=p.data)==null?void 0:l.errorMessage}}}))}};
C3.prototype.closeDialog=function(){_.$w(this.hostElement,"yt-close-popup-action",[this.is])};
C3.prototype.updateDisabled=C3.prototype.updateDisabled;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],C3.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],C3.prototype,"data",void 0);_.H([_.rd("#handle-input"),_.x("design:type",Object)],C3.prototype,"handleInput",void 0);_.H([_.gd("isLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],C3.prototype,"updateDisabled",null);
_.H([_.k({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],C3);
_.D(C3,"ytd-channel-handle-edit-dialog-renderer",function(){if(JPV!==void 0)return JPV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n  <div id="header" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.dismissButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="body" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-img-shadow id="profile-picture" height="128" thumbnail="[[data.profilePicture]]" width="128" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    </yt-img-shadow>\n\n    <div id="name" class="style-scope ytd-channel-handle-edit-dialog-renderer">[[data.channelTitle]]</div>\n\n    <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-channel-handle-input-renderer>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.existingHandle]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div id="existing-handle" dir="ltr" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n        [[data.existingHandle]]\n      </div>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </yt-formatted-string>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="error-message" text="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    </template>\n\n    <template is="dom-repeat" items="[[data.infoItems]]" as="infoItem" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div class="info-item style-scope ytd-channel-handle-edit-dialog-renderer">\n        <yt-icon class="info-item-icon style-scope ytd-channel-handle-edit-dialog-renderer" icon="[[infoItem.icon.iconType]]">\n        </yt-icon>\n        <yt-formatted-string class="info-item-text style-scope ytd-channel-handle-edit-dialog-renderer" text="[[infoItem.infoText]]">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n\n  <div id="footer" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <template is="dom-if" restamp="" if="[[data.cancelButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.saveButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSaveClick" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="spinner-container" hidden="[[!isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return JPV=p},{mode:1});var cPd;var us=function(){return _.w.apply(this,arguments)||this};
_.A(us,_.w);us.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],us.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],us.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],us.prototype,"data",void 0);_.H([_.k({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],us);
_.D(us,"ytd-channel-switcher-footer-renderer",function(){if(cPd!==void 0)return cPd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n<div id="feedback" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return cPd=p},{mode:1});var eZ7;var hZ6;var R3=function(){return _.w.apply(this,arguments)||this};
_.A(R3,_.w);R3.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
R3.prototype.onIronChange=R3.prototype.onIronChange;_.H([_.Q(),_.x("design:type",Object)],R3.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!1}),_.x("design:type",Function)],R3.prototype,"onDontAskAgainChanged",void 0);_.H([_.rd("#checkbox"),_.x("design:type",Object)],R3.prototype,"checkbox",void 0);_.H([_.VU("iron-change"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],R3.prototype,"onIronChange",null);
_.H([_.k({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],R3);
_.D(R3,"ytd-identity-prompt-footer-renderer",function(){if(hZ6!==void 0)return hZ6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-prompt-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-identity-prompt-footer-renderer">\n  <yt-formatted-string text="[[data.dontShowAgainText]]" class="style-scope ytd-identity-prompt-footer-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return hZ6=p},{mode:1});var Wa=function(){var p=_.w.apply(this,arguments)||this;p.dontAskAgain=!1;p.showPopup=!1;p.boundDontAskAgainChanged=function(y){p.dontAskAgainChanged(y)};
p.boundOnAccountItemTap=function(y){p.onAccountItemTap(y)};
return p};
_.A(Wa,_.w);_.J=Wa.prototype;
_.J.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{accountItemSectionRenderer:{component:"ytd-account-item-section-renderer",properties:{onAccountItemTap:"[[boundOnAccountItemTap]]"}}}},"data.header":{id:"header",mapping:{simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer"}},"data.footer":{id:"footer",mapping:{channelSwitcherFooterRenderer:"ytd-channel-switcher-footer-renderer",identityPromptFooterRenderer:{component:"ytd-identity-prompt-footer-renderer",properties:{onDontAskAgainChanged:"[[boundDontAskAgainChanged]]"}}}}}};
_.J.ready=function(){var p=this;_.jR(this.hostElement).querySelector("#container").addEventListener("scroll",function(){p.ytRendererBehavior.markDirty()})};
_.J.dontAskAgainChanged=function(p){this.dontAskAgain=p};
_.J.onAccountItemTap=function(p){if(p){var y={};this.dontAskAgain&&(y={dont_ask_again:this.dontAskAgain});_.lt(p,y)}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.J.redirectOnlyAccount=function(p){p.sections&&p.sections.length>0&&(p=_.G(p.sections[0],_.wZv),(p==null?0:p.contents)&&(p==null?void 0:p.contents.length)<=1?(p=_.tJ(window.location.href),(p==null?0:p.next)&&_.cOc(p.next)?_.lt(p.next):_.lt("/")):this.showPopup=!0)};
Wa.prototype.dataChanged=Wa.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Wa.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Wa.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Wa.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!1}),_.x("design:type",Object)],Wa.prototype,"dontAskAgain",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Wa.prototype,"showPopup",void 0);_.H([_.Q({reflectToAttribute:!1}),_.x("design:type",Object)],Wa.prototype,"boundDontAskAgainChanged",void 0);_.H([_.Q({reflectToAttribute:!1}),_.x("design:type",Object)],Wa.prototype,"boundOnAccountItemTap",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wa.prototype,"dataChanged",null);
_.H([_.k({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],Wa);
_.D(Wa,"ytd-channel-switcher-renderer",function(){if(eZ7!==void 0)return eZ7;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-channel-switcher-renderer">\n  <div id="sections" class="style-scope ytd-channel-switcher-renderer"></div>\n</div>\n<div id="footer" class="style-scope ytd-channel-switcher-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return eZ7=p},{mode:1});var CD6;var a3=function(){return _.w.apply(this,arguments)||this};
_.A(a3,_.w);_.Jh.Object.defineProperties(a3.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.H([_.Q(),_.x("design:type",Object)],a3.prototype,"data",void 0);_.H([_.g("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],a3.prototype,"steps",null);_.H([_.k({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],a3);
_.D(a3,"ytd-channel-transfer-stepper-renderer",function(){if(CD6!==void 0)return CD6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-transfer-stepper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="stepper style-scope ytd-channel-transfer-stepper-renderer">\n  <template is="dom-repeat" items="[[steps]]" as="step" class="style-scope ytd-channel-transfer-stepper-renderer">\n    <div class="step-and-separator style-scope ytd-channel-transfer-stepper-renderer">\n      <div class="step style-scope ytd-channel-transfer-stepper-renderer" state$="[[step.state]]">\n        <yt-formatted-string class="step-title style-scope ytd-channel-transfer-stepper-renderer" text="[[step.title]]"></yt-formatted-string>\n        <div class="step-badge style-scope ytd-channel-transfer-stepper-renderer"></div>\n      </div>\n      <div class="separator style-scope ytd-channel-transfer-stepper-renderer"></div>\n    </div>\n  </template>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return CD6=p},{mode:1});var uUL;var mf=function(){var p=_.w.apply(this,arguments)||this;p.data=null;p.isError=!1;p.isLoading=!1;return p};
_.A(mf,_.w);_.J=mf.prototype;_.J.configureRendererStamper=function(){return{"data.personalAccountTile.selectButton":{id:"personal-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.brandAccountTile.selectButton":{id:"brand-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.J.computeProfileName=function(p){return p?p.givenNameValue+" "+p.familyNameValue:""};
_.J.onYtServiceRequestSent=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("isError",!1)};
_.J.onYtServiceRequestError=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.set("isLoading",!1);this.set("isError",!0)};
mf.prototype.onYtServiceRequestError=mf.prototype.onYtServiceRequestError;mf.prototype.onYtServiceRequestSent=mf.prototype.onYtServiceRequestSent;mf.prototype.dataChanged=mf.prototype.dataChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],mf.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],mf.prototype,"data",void 0);
_.H([_.Q({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.x("design:type",String)],mf.prototype,"profileName",void 0);_.H([_.Q(),_.x("design:type",Object)],mf.prototype,"isError",void 0);_.H([_.Q(),_.x("design:type",Object)],mf.prototype,"isLoading",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mf.prototype,"dataChanged",null);
_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],mf.prototype,"onYtServiceRequestSent",null);_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],mf.prototype,"onYtServiceRequestError",null);_.H([_.k({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],mf);
_.D(mf,"ytd-channel-warm-welcome-cont-renderer",function(){if(uUL!==void 0)return uUL;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-cont-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-cont-renderer">\n  <div class="popup-header style-scope ytd-channel-warm-welcome-cont-renderer">\n    <h2 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="tiles style-scope ytd-channel-warm-welcome-cont-renderer">\n    <div id="personal-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="personal_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="personal_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-profile-picture style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow class="profile-photo style-scope ytd-channel-warm-welcome-cont-renderer" height="96" style="border-radius: 50%" thumbnail="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.profilePhoto]]" width="96">\n          </yt-img-shadow>\n        </div>\n        <div class="tile-profile-name style-scope ytd-channel-warm-welcome-cont-renderer">[[profileName]]</div>\n        <div class="tos style-scope ytd-channel-warm-welcome-cont-renderer">\n          <template is="dom-repeat" items="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.additionalInfos]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></yt-formatted-string>\n          </template>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="personal-account-tile-select-button" class="style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <span class="tile-separator style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n    <div id="brand-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="brand_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="brand_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-illustration style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow height="164" thumbnail="[[data.brandAccountTile.illustration]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="brand-account-tile-select-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <div class="spinner-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isLoading]]">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n  <div class="error-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isError]]">\n    <yt-formatted-string class="error style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.errorMessage]]"></yt-formatted-string>\n  </div>\n  <div class="disclaimer-layer style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!data.disclaimer]]">\n      <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div class="button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n    <span id="cancel-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return uUL=p},{mode:1});var RZw;var Uz=function(){var p=_.w.apply(this,arguments)||this;p.data=null;return p};
_.A(Uz,_.w);Uz.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Uz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Uz.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Uz.prototype,"data",void 0);_.H([_.k({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],Uz);
_.D(Uz,"ytd-channel-warm-welcome-renderer",function(){if(RZw!==void 0)return RZw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-renderer">\n  <div class="illustration style-scope ytd-channel-warm-welcome-renderer">\n    <yt-img-shadow height="254" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-warm-welcome-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-warm-welcome-renderer">\n    <div class="popup-header style-scope ytd-channel-warm-welcome-renderer">\n      <h2 class="style-scope ytd-channel-warm-welcome-renderer">\n        <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="popup-description style-scope ytd-channel-warm-welcome-renderer">\n      <yt-formatted-string id="description" class="popup-description-text style-scope ytd-channel-warm-welcome-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="button-layer style-scope ytd-channel-warm-welcome-renderer">\n      <div id="next-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n      <div id="cancel-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n    </div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return RZw=p},{mode:1});var WBO;var $A=function(){return _.w.apply(this,arguments)||this};
_.A($A,_.w);_.Jh.Object.defineProperties($A.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.authorThumbnail)||{}}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],$A.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],$A.prototype,"data",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],$A.prototype,"thumbnailDetails",null);_.H([_.k({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],$A);
_.D($A,"ytd-comment-preview-renderer",function(){if(WBO!==void 0)return WBO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="avatar-block style-scope ytd-comment-preview-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-comment-preview-renderer" fit="" thumbnail="[[thumbnailDetails]]">\n  </yt-img-shadow>\n</div>\n<div class="content-block style-scope ytd-comment-preview-renderer">\n  <div class="username style-scope ytd-comment-preview-renderer">[[data.authorName]]</div>\n  <div class="preview-text style-scope ytd-comment-preview-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.commentText]]" class="style-scope ytd-comment-preview-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return WBO=p},{mode:1});var ag1;var jL=function(){return _.w.apply(this,arguments)||this};
_.A(jL,_.w);jL.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Jh.Object.defineProperties(jL.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.submitButton}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],jL.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],jL.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],jL.prototype,"data",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],jL.prototype,"submitButton",null);_.H([_.k({is:"ytd-notice-renderer",disableElementRegistration:!0})],jL);
_.D(jL,"ytd-notice-renderer",function(){if(ag1!==void 0)return ag1;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notice-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="left style-scope ytd-notice-renderer">\n  <img alt="" class="illustration style-scope ytd-notice-renderer" src$="[[data.illustrationUrl]]">\n</div>\n\n<div class="right style-scope ytd-notice-renderer">\n  <yt-icon class="youtube-logo right-item style-scope ytd-notice-renderer" icon="yt-logos-ext:yt-logo-updated"></yt-icon>\n    <div class="notice-content right-item style-scope ytd-notice-renderer">\n      <yt-formatted-string class="notice-title style-scope ytd-notice-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="notice-description style-scope ytd-notice-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="toolbar right-item style-scope ytd-notice-renderer">\n      <div id="submit-button" class="style-scope ytd-notice-renderer"></div>\n    </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return ag1=p},{mode:1});var moT;var bs=function(){return _.w.apply(this,arguments)||this};
_.A(bs,_.w);bs.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],bs.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],bs.prototype,"data",void 0);_.H([_.k({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],bs);
_.D(bs,"ytd-preview-comment-dialog-content",function(){if(moT!==void 0)return moT;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="text-area style-scope ytd-preview-comment-dialog-content">\n  <div class="title style-scope ytd-preview-comment-dialog-content">[[data.title]]</div>\n  <div id="comment-preview" class="style-scope ytd-preview-comment-dialog-content"></div>\n  <div class="messages style-scope ytd-preview-comment-dialog-content">\n    <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-preview-comment-dialog-content">\n      <yt-formatted-string class="message style-scope ytd-preview-comment-dialog-content" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return moT=p},{mode:1});var UoL;var n3=function(){return _.w.apply(this,arguments)||this};
_.A(n3,_.w);n3.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
n3.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],n3.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],n3.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],n3.prototype,"data",void 0);_.H([_.k({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],n3);
_.D(n3,"ytd-preview-comment-dialog-renderer",function(){if(UoL!==void 0)return UoL;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-preview-comment-dialog-content data="[[data]]" class="style-scope ytd-preview-comment-dialog-renderer">\n</ytd-preview-comment-dialog-content>\n<div class="bottom style-scope ytd-preview-comment-dialog-renderer">\n  <div id="buttons" class="style-scope ytd-preview-comment-dialog-renderer"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return UoL=p},{mode:1});var $o7;var jfu=_.n("web_button_rework")&&_.o4("BUTTON_REWORK")||_.n("web_button_rework_with_live"),Gq=function(){var p=_.w.apply(this,arguments)||this;p.closeLabel=_.g$("CLOSE");p.selectedAmountIndex=1;p.privacyCheckboxValue=!1;p.useAmsterdamStyle=jfu;p.amountPlaceholderIndex=-1;return p};
_.A(Gq,_.w);_.J=Gq.prototype;_.J.onAmountClick=function(p){this.selectedAmountIndex=_.jR(this.hostElement).querySelector("#amounts").indexForElement(p.currentTarget)};
_.J.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.$w(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.J.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.$w(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.$w(this.hostElement,"yt-close-popup-action",[this.is]);var p;(p=_.$o())==null||p.getPlayerPromise().then(function(y){y.pauseVideo()})}};
_.J.donationCallback=function(p){p.success?(this.hostElement.hasAttribute("live-chat")&&p.response&&p.response.data&&p.response.data.actions&&_.$w(this.hostElement,"yt-live-chat-open-popup",[p.response.data.actions[0]]),_.$w(this.hostElement,"yt-close-popup-action",[this.is]),_.$w(this.hostElement,"yt-live-chat-close-buy-flow")):p.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(p.errorMessageRenderer)};
_.J.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.jR(this.hostElement).querySelector("#custom-amount-input").focus()};
_.J.updateConfirmationDialogTextWithAmount=function(p){var y=this.getConfirmDialogRuns();y&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(y),"text"],this.getFormattedAmount(p))};
_.J.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.J.getAmountPlaceholderIndex=function(p){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=p.findIndex(function(y){return y.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.J.getFormattedAmount=function(p){var y;return(new _.p4(4,((y=this.data)==null?void 0:y.currencyCode)||"")).format(p)};
_.J.isAmountValid=function(p){if(p==="")return!1;p=Number(p)*1E6;var y=this.get("minAmountMicros",this.data),l=this.get("maxAmountMicros",this.data);return y&&p<y||l&&p>l?!1:!0};
_.J.setInputError=function(){this.shouldShowValidationError?_.jR(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.jR(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.J.setInitialCheckboxValue=function(){var p;this.privacyCheckboxValue=!((p=this.data)==null||!p.privacyCheckboxInitialState)};
_.J.updateCustomAmountInputFromBinding=function(p){this.customAmountInput=p.detail.value};
_.J.updatePrivacyCheckboxValueFromBinding=function(p){this.privacyCheckboxValue=p.detail.value};
_.Jh.Object.defineProperties(Gq.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var p=this,y,l;return((y=this.data)==null?void 0:(l=y.suggestedAmounts)==null?void 0:l.map(function(q,t){return{buttonRenderer:{style:p.selectedAmountIndex===t?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:q.label}}}))||[]}},
isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}},
showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.privacyCheckboxText)}},
amountMicros:{configurable:!0,enumerable:!0,get:function(){return this.customAmount?this.isAmountValid(this.customAmount)?Number(this.customAmount)*1E6:null:Number(this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data))}},
customAmount:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected?this.customAmountInput||"":null}},
shouldShowValidationError:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null||this.customAmount===""?!1:!this.isAmountValid(this.customAmount)}},
isDonateButtonEnabled:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null?!0:this.isAmountValid(this.customAmount)}},
donateCommand:{configurable:!0,enumerable:!0,get:function(){var p=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(p&&this.amountMicros!==null)return Object.assign({},p,{ypcGetCartEndpoint:Object.assign({},p.ypcGetCartEndpoint,{donationAmountMicros:this.amountMicros,productData:{donationData:{isAnonymousDonation:!this.privacyCheckboxValue}}})})}},
donateCommandWithConfirmation:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected&&this.confirmLargeAmountCommand&&this.amountMicros&&this.amountMicros>=this.largeDonationThreshold?this.confirmLargeAmountCommand:this.donateCommand}},
largeDonationThreshold:{configurable:!0,enumerable:!0,get:function(){return 100*this.get("minAmountMicros",this.data)}},
confirmLargeAmountCommand:{configurable:!0,enumerable:!0,get:function(){var p=this.get("confirmLargeAmount",this.data);if(p&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),p}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var p=this.get("donateButton.buttonRenderer",this.data);if(p)return Object.assign({},p,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
Gq.prototype.setInitialCheckboxValue=Gq.prototype.setInitialCheckboxValue;Gq.prototype.setInputError=Gq.prototype.setInputError;Gq.prototype.setFocusOnCustomAmountInput=Gq.prototype.setFocusOnCustomAmountInput;_.H([_.V(w8T),_.x("design:type",Object)],Gq.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Gq.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Gq.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Gq.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Gq.prototype,"closeLabel",void 0);_.H([_.Q(),_.x("design:type",Object)],Gq.prototype,"selectedAmountIndex",void 0);_.H([_.Q(),_.x("design:type",String)],Gq.prototype,"customAmountInput",void 0);_.H([_.Q(),_.x("design:type",Object)],Gq.prototype,"privacyCheckboxValue",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Gq.prototype,"useAmsterdamStyle",void 0);_.H([_.gd("customAmount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gq.prototype,"setFocusOnCustomAmountInput",null);_.H([_.g("data","selectedAmountIndex"),_.x("design:type",Array),_.x("design:paramtypes",[])],Gq.prototype,"suggestedAmountButtons",null);
_.H([_.g("data","selectedAmountIndex"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Gq.prototype,"isCustomAmountSelected",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Gq.prototype,"showPrivacyCheckbox",null);_.H([_.g("data","selectedAmountIndex","customAmount"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gq.prototype,"amountMicros",null);
_.H([_.g("isCustomAmountSelected","customAmountInput"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gq.prototype,"customAmount",null);_.H([_.g("customAmount"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Gq.prototype,"shouldShowValidationError",null);_.H([_.g("customAmount"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Gq.prototype,"isDonateButtonEnabled",null);
_.H([_.g("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gq.prototype,"donateCommand",null);_.H([_.g("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gq.prototype,"donateCommandWithConfirmation",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gq.prototype,"largeDonationThreshold",null);
_.H([_.g("customAmount","donateCommand","amountMicros"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gq.prototype,"confirmLargeAmountCommand",null);_.H([_.g("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gq.prototype,"donateButtonRenderer",null);_.H([_.gd("shouldShowValidationError"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gq.prototype,"setInputError",null);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gq.prototype,"setInitialCheckboxValue",null);_.H([_.k({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],Gq);
_.D(Gq,"ytd-donation-amount-picker-renderer",function(){if($o7!==void 0)return $o7;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return $o7=p},{mode:1});var bZu;var Pa=function(){return _.w.apply(this,arguments)||this};
_.A(Pa,_.w);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Pa.prototype,"ytComponentBehavior",void 0);_.H([_.Q({}),_.x("design:type",Object)],Pa.prototype,"data",void 0);_.H([_.k({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],Pa);
_.D(Pa,"ytd-donation-post-transaction-content",function(){if(bZu!==void 0)return bZu;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-row" class="style-scope ytd-donation-post-transaction-content">\n  <yt-img-shadow thumbnail="[[data.donationIcon]]" width="52" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n</div>\n<div id="messages" class="style-scope ytd-donation-post-transaction-content">\n  <div id="message" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.thankYouMessage)]]\n  </div>\n  <div id="additional-info" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.additionalInfo)]]\n  </div>\n</div>\n<div id="thankyou-messages" class="style-scope ytd-donation-post-transaction-content">\n  <div class="thankyou-message style-scope ytd-donation-post-transaction-content">\n    <div class="avatar style-scope ytd-donation-post-transaction-content">\n      <yt-img-shadow thumbnail="[[data.creatorMessage.thumbnail]]" width="32" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n    </div>\n    <div class="content style-scope ytd-donation-post-transaction-content">\n      <div class="body style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.description)]]\n      </div>\n      <div class="user style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.title)]]\n      </div>\n    </div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return bZu=p},{mode:1});var n_O;var A3=function(){return _.w.apply(this,arguments)||this};
_.A(A3,_.w);A3.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],A3.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],A3.prototype,"ytRendererBehavior",void 0);_.H([_.Q({}),_.x("design:type",Object)],A3.prototype,"data",void 0);_.H([_.k({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],A3);
_.D(A3,"ytd-donation-post-transaction-renderer",function(){if(n_O!==void 0)return n_O;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-post-transaction-renderer">\n  <div id="title" class="style-scope ytd-donation-post-transaction-renderer">\n    <yt-icon-button dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer">\n      <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-post-transaction-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <ytd-donation-post-transaction-content data="[[data]]" class="style-scope ytd-donation-post-transaction-renderer">\n  </ytd-donation-post-transaction-content>\n  <div id="button-row" class="style-scope ytd-donation-post-transaction-renderer">\n    <div id="done-button" dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer"></div>\n    <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" class="style-scope ytd-donation-post-transaction-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return n_O=p},{mode:1});var G2A;var PDL;var Zf=function(){return _.w.apply(this,arguments)||this};
_.A(Zf,_.w);Zf.prototype.computeIsStreamingProvider=function(p){return!!p.isStreamingShelf};
Zf.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Zf.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Zf.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Zf.prototype,"data",void 0);_.H([_.Q({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Zf.prototype,"isStreamingProvider",void 0);
_.H([_.k({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],Zf);
_.D(Zf,"ytd-media-provider-renderer",function(){if(PDL!==void 0)return PDL;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-provider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="provider style-scope ytd-media-provider-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-media-provider-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-media-provider-renderer">\n    <div id="action-button" class="style-scope ytd-media-provider-renderer"></div>\n    <p id="media-price" hidden="[[!data.mediaPrice]]" class="style-scope ytd-media-provider-renderer">\n      [[getSimpleString(data.mediaPrice)]]\n    </p>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return PDL=p},{mode:1});var AP1;var Mc=function(){return _.w.apply(this,arguments)||this};
_.A(Mc,_.w);Mc.prototype.observeLightsourcePalette=function(){var p,y=(p=this.data)==null?void 0:p.vibrantsourceColorPaletteData;y&&_.dD(this.hostElement,y)};
Mc.prototype.observeLightsourcePalette=Mc.prototype.observeLightsourcePalette;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Mc.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Mc.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Mc.prototype,"data",void 0);
_.H([_.gd("data.vibrantsourceColorPaletteData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mc.prototype,"observeLightsourcePalette",null);_.H([_.k({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Mc);
_.D(Mc,"ytd-streaming-pop-up-dialog",function(){if(AP1!==void 0)return AP1;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-streaming-pop-up-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-streaming-pop-up-dialog">\n  <div class="image-wrapper style-scope ytd-streaming-pop-up-dialog">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-streaming-pop-up-dialog" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-streaming-pop-up-dialog" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-streaming-pop-up-dialog"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-streaming-pop-up-dialog">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="providers style-scope ytd-streaming-pop-up-dialog">\n    <template is="dom-repeat" items="[[data.mediaProviders]]" as="mediaProviders" class="style-scope ytd-streaming-pop-up-dialog">\n      <ytd-media-provider-renderer data="[[mediaProviders.mediaProviderRenderer]]" class="style-scope ytd-streaming-pop-up-dialog">\n      </ytd-media-provider-renderer>\n    </template>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return AP1=p},{mode:1});var Vf=function(){return _.w.apply(this,arguments)||this};
_.A(Vf,_.w);Vf.prototype.onPopupOpened_=function(){var p;((p=this.data)==null?0:p.serviceEndpoint)&&_.WC().resolve(_.aK).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Vf.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
Vf.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"}}}}};
Vf.prototype.onPopupOpened_=Vf.prototype.onPopupOpened_;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Vf.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Vf.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.tP),_.x("design:type",Object)],Vf.prototype,"ytContinuationHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Vf.prototype,"data",void 0);
_.H([_.VU("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Vf.prototype,"onPopupOpened_",null);_.H([_.k({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],Vf);
_.D(Vf,"ytd-brandconnect-popup-renderer",function(){if(G2A!==void 0)return G2A;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-brandconnect-popup-renderer">\n  <yt-formatted-string id="title" text="[[data.popUpTitle]]" class="style-scope ytd-brandconnect-popup-renderer"></yt-formatted-string>\n  <div id="dismiss-button" class="style-scope ytd-brandconnect-popup-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-brandconnect-popup-renderer">\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return G2A=p},{mode:1});var ZZ6;var gt=function(){return _.w.apply(this,arguments)||this};
_.A(gt,_.w);_.J=gt.prototype;_.J.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){for(var p=0;p<this.getOptionRenderers().length;p++)this.notifyPath("data.options."+p+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+p+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.J.updateSubmitButton=function(p){this.set("data.submitButton.buttonRenderer.isDisabled",!p)};
_.J.computeAlt=function(p){return _.JB(p)};
_.J.onDismissTap=function(){_.$w(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.WC().resolve(_.aK).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.J.getOptionRenderers=function(p){return(p=p||this.data)&&p.options?p.options.reduce(function(y,l){l.checkboxSurveyOptionRenderer&&y.push(l.checkboxSurveyOptionRenderer);return y},[]):[]};
_.J.onOptionChange=function(p){var y=this,l=!1;if(p.detail.checked)for(var q=this.getOptionRenderers().find(function(C){return C.value===p.detail.value}),t=this.getOptionRenderers(),E=0;E<t.length;E++){var e=t[E];
this.notifyPath("data.options."+E+".checkboxSurveyOptionRenderer.checked");e.checked&&((q==null?0:q.isExclusiveOption)?!e.isExclusiveOption:e.isExclusiveOption)?this.set("data.options."+E+".checkboxSurveyOptionRenderer.checked",!1):e.checked&&(l=!0)}else l=this.getOptionRenderers().some(function(C,u){y.notifyPath("data.options."+u+".checkboxSurveyOptionRenderer.checked");return C.checked});
this.updateSubmitButton(l)};
_.J.onSubmitTap=function(){var p=this.getOptionRenderers().filter(function(E){return E.checked});
if(p.length!==0){var y=p.map(function(E){return E.responseEndpoint});
p=[];for(var l=1;l<y.length;l++){var q=void 0,t=(q=_.G(y[l],_.dU))==null?void 0:q.feedbackToken;t&&p.push(t)}y=[y[0]];p.length&&y.push({extra_feedback_tokens:p});_.ny(this.hostElement,y);_.$w(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);p=this.data&&this.data.submitActions||[];if(_.n("kevlar_command_handler_migration_killswitch"))_.Gf(this.hostElement,p,this.hostElement);else for(p=_.c(p),y=p.next();!y.done;y=p.next())this.ytComponentBehavior.resolveCommand(y.value)}};
gt.prototype.onOptionChange=gt.prototype.onOptionChange;gt.prototype.dataChanged=gt.prototype.dataChanged;_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],gt.prototype,"ytEventForwardingBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],gt.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],gt.prototype,"ytComponentBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],gt.prototype,"ytRendererBehavior",void 0);_.H([_.V(oGu),_.x("design:type",Object)],gt.prototype,"ytdHatsSurveyBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],gt.prototype,"data",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gt.prototype,"dataChanged",null);
_.H([_.VU("ytd-checkbox-survey-option-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],gt.prototype,"onOptionChange",null);_.H([_.k({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],gt);
_.D(gt,"ytd-checkbox-survey-renderer",function(){if(ZZ6!==void 0)return ZZ6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-checkbox-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-checkbox-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-checkbox-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-checkbox-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-checkbox-survey-renderer"></div>\n<div id="footer" class="style-scope ytd-checkbox-survey-renderer">\n  <ytd-button-renderer data="[[data.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-checkbox-survey-renderer">\n  </ytd-button-renderer>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return ZZ6=p},{mode:1});var Mlw;var Vld;var Qf=function(){return _.w.apply(this,arguments)||this};
_.A(Qf,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);_.H([_.V(O9O),_.x("design:type",Object)],Qf.prototype,"ytdDismissalReasonBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Qf.prototype,"data",void 0);_.H([_.k({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],Qf);
_.D(Qf,"ytd-dismissal-reason-text-renderer",function(){if(Vld!==void 0)return Vld;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-text-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-dismissal-reason-text-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Vld=p},{mode:1});var g_w;var K3=function(){return _.w.apply(this,arguments)||this};
_.A(K3,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],K3.prototype,"ytRendererBehavior",void 0);_.H([_.V(O9O),_.x("design:type",Object)],K3.prototype,"ytdDismissalReasonBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],K3.prototype,"data",void 0);_.H([_.k({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],K3);
_.D(K3,"ytd-dismissal-reason-video-renderer",function(){if(g_w!==void 0)return g_w;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-formatted-string id="label" text="[[data.text]]" class="style-scope ytd-dismissal-reason-video-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-checkbox>\n<div id="video" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-img-shadow thumbnail="[[data.videoThumb]]" width="120" class="style-scope ytd-dismissal-reason-video-renderer"></yt-img-shadow>\n  <div id="video-metadata" class="style-scope ytd-dismissal-reason-video-renderer">\n    <yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.videoTitle]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="video-creator" ellipsis-truncate="" text="[[data.creatorLine]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return g_w=p},{mode:1});var wt=function(){var p=_.w.apply(this,arguments)||this;p.darkerDarkTheme=_.n("web_darker_dark_theme");return p};
_.A(wt,_.w);_.J=wt.prototype;_.J.created=function(){this.selectedFeedbackTokens=new hN};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.J.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.J.onDismissalReasonSelected=function(p,y){_.Ub(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(y);this.hasReasonsSelected=!0};
_.J.onDismissalReasonDeselected=function(p,y){_.Ub(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(y);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.J.onCancelTap=function(){_.$w(this.hostElement,"yt-close-popup-action")};
_.J.onSubmitTap=function(){var p=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(p={feedback_tokens:p},_.WC().resolve(_.aK).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},p,{element:this.hostElement})}));_.$w(this.hostElement,"yt-close-popup-action")};
wt.prototype.onDismissalReasonDeselected=wt.prototype.onDismissalReasonDeselected;wt.prototype.onDismissalReasonSelected=wt.prototype.onDismissalReasonSelected;wt.prototype.dataChanged=wt.prototype.dataChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],wt.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],wt.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],wt.prototype,"hasReasonsSelected",void 0);_.H([_.Q(),_.x("design:type",hN)],wt.prototype,"selectedFeedbackTokens",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],wt.prototype,"darkerDarkTheme",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wt.prototype,"dataChanged",null);
_.H([_.VU("yt-dismissal-reason-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,String]),_.x("design:returntype")],wt.prototype,"onDismissalReasonSelected",null);_.H([_.VU("yt-dismissal-reason-deselected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,String]),_.x("design:returntype")],wt.prototype,"onDismissalReasonDeselected",null);_.H([_.k({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],wt);
_.D(wt,"ytd-dismissal-follow-up-renderer",function(){if(Mlw!==void 0)return Mlw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-dismissal-follow-up-renderer">\n  <yt-formatted-string id="title" text="[[data.dismissalReasonsPrompt]]" class="style-scope ytd-dismissal-follow-up-renderer">\n  </yt-formatted-string>\n  <div id="reasons" class="style-scope ytd-dismissal-follow-up-renderer"></div>\n</div>\n<div id="buttons" class="style-scope ytd-dismissal-follow-up-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancelTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="submit" data="[[data.submitButton.buttonRenderer]]" disabled="[[!hasReasonsSelected]]" on-tap="onSubmitTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Mlw=p},{mode:1});var QfA;var is=function(){return _.w.apply(this,arguments)||this};
_.A(is,_.w);_.J=is.prototype;_.J.onCheckedChange=function(){this.multiselect||_.Ub(this.hostElement,"yt-feedback-single-select-changed");_.jR(this.hostElement).querySelector("#freeform").focus();_.Ub(this.hostElement,"yt-refit")};
_.J.showTextBox=function(p,y){return p&&y};
_.J.dataChanged=function(){this.data&&(this.data.resultText===void 0&&this.set("data.resultText",""),this.data.checked===void 0&&this.set("data.checked",!1),this.data.allowFreeTextInput===void 0&&this.set("data.allowFreeTextInput",!1))};
_.J.updateDataCheckedFromBinding=function(p){this.set("data.checked",p.detail.value)};
_.J.updateDataResultTextFromBinding=function(p){this.set("data.resultText",p.detail.value)};
is.prototype.dataChanged=is.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],is.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],is.prototype,"data",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],is.prototype,"multiselect",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],is.prototype,"dataChanged",null);
_.H([_.k({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],is);
_.D(is,"ytd-feedback-option-renderer",function(){if(QfA!==void 0)return QfA;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-radio-button class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-radio-button>\n<tp-yt-paper-checkbox class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[!multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-checkbox>\n<tp-yt-paper-textarea id="freeform" hidden="[[!showTextBox(data.checked, data.allowFreeTextInput)]]" label="[[getSimpleString(data.freeTextHint)]]" maxlength="1000" use-v2-underline="" value="[[data.resultText]]" on-value-changed="updateDataResultTextFromBinding" class="style-scope ytd-feedback-option-renderer">\n</tp-yt-paper-textarea>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return QfA=p},{mode:1});var KBV;var rt=function(){return _.w.apply(this,arguments)||this};
_.A(rt,_.w);rt.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
rt.prototype.onSingleSelectCheckedChanged=function(p){p=_.cm(p);for(var y=0;y<this.data.options.length;y++)if(p.data!==_.G(this.data.options[y],XF7)){var l="data.options."+y+".feedbackOptionRenderer.checked";this.notifyPath(l);this.set(l,!1)}};
rt.prototype.onSingleSelectCheckedChanged=rt.prototype.onSingleSelectCheckedChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],rt.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],rt.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],rt.prototype,"data",void 0);
_.H([_.VU("yt-feedback-single-select-changed"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],rt.prototype,"onSingleSelectCheckedChanged",null);_.H([_.k({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],rt);
_.D(rt,"ytd-feedback-question-renderer",function(){if(KBV!==void 0)return KBV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="question-text style-scope ytd-feedback-question-renderer">\n  [[getSimpleString(data.question)]]\n</div>\n<div id="options" class="style-scope ytd-feedback-question-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return KBV=p},{mode:1});var wo6;var SL=function(){return _.w.apply(this,arguments)||this};
_.A(SL,_.w);SL.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
SL.prototype.getSelectedFeedbackResults=function(){for(var p={},y=0;y<this.data.questions.length;y++)for(var l=_.G(this.data.questions[y],va1),q=0;q<l.options.length;q++){var t=_.G(l.options[q],XF7);t&&t.checked&&(p[t.optionKey]=t.resultText)}return p};
SL.prototype.onKeyUp=function(){var p=this;_.ZR(_.TR,function(){_.Ub(p.hostElement,"yt-refit")});
_.TR.start()};
SL.prototype.submitSurvey=function(){var p=this.getSelectedFeedbackResults();Object.keys(p).length>0&&this.data.submitFeedbackEndpoint&&(p={survey_results:p,is_feedback_token_unencrypted:!0},_.WC().resolve(_.aK).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},p,{element:this.hostElement})}))};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],SL.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],SL.prototype,"data",void 0);_.H([_.k({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],SL);
_.D(SL,"ytd-feedback-survey-renderer",function(){if(wo6!==void 0)return wo6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="questions" on-keyup="onKeyUp" class="style-scope ytd-feedback-survey-renderer"></div>\n<yt-formatted-string id="disclaimer" text="[[data.disclaimer]]" class="style-scope ytd-feedback-survey-renderer"></yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return wo6=p},{mode:1});var iZ9;var rPw;var FJ=function(){return _.w.apply(this,arguments)||this};
_.A(FJ,_.w);FJ.prototype.computeAlt=function(p){return _.JB(p)};
FJ.prototype.submitResponse=function(){var p,y;(p=this.data)!=null&&p.feedbackToken&&((y=this.data)==null?void 0:y.nextStageIndex)!==void 0&&(_.jN(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.jN(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
FJ.prototype.onClick=function(){this.submitResponse()};
FJ.prototype.onClick=FJ.prototype.onClick;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],FJ.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],FJ.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],FJ.prototype,"vertical",void 0);_.H([_.VU("click"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FJ.prototype,"onClick",null);
_.H([_.k({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],FJ);
_.D(FJ,"ytd-single-select-answer-option-renderer",function(){if(rPw!==void 0)return rPw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-answer-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.answerText)]]" hidden="[[!data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer">\n  <yt-icon icon="[[data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.answerText]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return rPw=p},{mode:1});var Soi;var L3=function(){var p=_.w.apply(this,arguments)||this;p.darkerDarkTheme=_.n("web_darker_dark_theme");p.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return p};
_.A(L3,_.w);L3.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
L3.prototype.dataChanged=function(){var p,y;this.vertical=((y=(p=this.data)==null?void 0:p.answerOrientation)!=null?y:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
L3.prototype.submitFeedback=function(p){var y;((y=this.data)==null?0:y.responseEndpoint)&&p&&_.ny(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[p]}])};
L3.prototype.dataChanged=L3.prototype.dataChanged;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],L3.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],L3.prototype,"eventForwardingBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],L3.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],L3.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],L3.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],L3.prototype,"vertical",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],L3.prototype,"darkerDarkTheme",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],L3.prototype,"dataChanged",null);_.H([_.k({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],L3);
_.D(L3,"ytd-single-select-question-renderer",function(){if(Soi!==void 0)return Soi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="question" class="style-scope ytd-single-select-question-renderer">\n  <yt-formatted-string text="[[data.questionText]]" class="style-scope ytd-single-select-question-renderer"></yt-formatted-string>\n</div>\n<div id="options" class="style-scope ytd-single-select-question-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Soi=p},{mode:1});var kA=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return p};
_.A(kA,_.w);_.J=kA.prototype;_.J.configureRendererStamper=function(){return{currentStage:{id:"current-stage",mapping:{singleSelectQuestionRenderer:"ytd-single-select-question-renderer",simpleMessageRenderer:"ytd-simple-message-renderer",surveyFollowUpRenderer:"ytd-survey-follow-up-renderer"}}}};
_.J.dataChanged=function(){this.jumpToStage(0)};
_.J.jumpToStage=function(p){var y,l;if((y=this.data)==null?0:(l=y.stages)==null?0:l[p])this.currentStage=this.data.stages[p],this.refitAfterRender()};
_.J.computeAlt=function(p){return _.JB(p)};
_.J.computeSimpleMessage=function(p){var y;return(y=_.G(p,oa7))==null?void 0:y.messageText};
_.J.computeHideDismiss=function(p){var y;return(y=_.G(p,G7d))==null?void 0:y.hideParentDismissButton};
_.J.onDismissTap=function(){_.$w(this.hostElement,"yt-close-popup-action");_.G(this.currentStage,oa7)||this.data.dismissalEndpoint&&_.WC().resolve(_.aK).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.J.refitAfterRender=function(){var p=this;_.th(this,function(){_.Ub(p.hostElement,"yt-refit")})};
kA.prototype.dataChanged=kA.prototype.dataChanged;_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],kA.prototype,"eventForwardingBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],kA.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],kA.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],kA.prototype,"ytActionHandlerBehavior",void 0);
_.H([_.V(oGu),_.x("design:type",Object)],kA.prototype,"ytdHatsSurveyBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],kA.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],kA.prototype,"currentStage",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kA.prototype,"dataChanged",null);_.H([_.k({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],kA);
_.D(kA,"ytd-multi-stage-survey-renderer",function(){if(iZ9!==void 0)return iZ9;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-stage-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[computeHideDismiss(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-multi-stage-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-multi-stage-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="current-stage" class="style-scope ytd-multi-stage-survey-renderer"></div>\n<yt-formatted-string id="simple-message" text="[[computeSimpleMessage(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n</yt-formatted-string>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return iZ9=p},{mode:1});var FBd;var Nc=function(){return _.w.apply(this,arguments)||this};
_.A(Nc,_.w);Nc.prototype.computeAlt=function(p){return _.JB(p)};
Nc.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.WC().resolve(_.aK).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.$w(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.d$i(!1)))};
Nc.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Nc.prototype.onTap=Nc.prototype.onTap;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Nc.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Nc.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Nc.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Nc.prototype,"vertical",void 0);
_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Nc.prototype,"onTap",null);_.H([_.k({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Nc);
_.D(Nc,"ytd-single-option-survey-option-renderer",function(){if(FBd!==void 0)return FBd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.option)]]" hidden="[[!data.icon.iconType]]" on-tap="submitResponse" class="style-scope ytd-single-option-survey-option-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.option]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return FBd=p},{mode:1});var LBd;var Df=function(){return _.w.apply(this,arguments)||this};
_.A(Df,_.w);_.J=Df.prototype;_.J.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){var p,y;this.vertical=(((p=this.data)==null?void 0:(y=p.surveyOrientation)==null?void 0:y.type)||"HORIZONTAL")==="VERTICAL"};
_.J.computeAlt=function(p){return _.JB(p)};
_.J.onDismissTap=function(){_.$w(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.WC().resolve(_.aK).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.d$i(!1))};
Df.prototype.dataChanged=Df.prototype.dataChanged;_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],Df.prototype,"eventForwardingBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Df.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Df.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(oGu),_.x("design:type",Object)],Df.prototype,"ytdHatsSurveyBehavior",void 0);
_.H([_.V(_.zL),_.x("design:type",Object)],Df.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Df.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Df.prototype,"vertical",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Df.prototype,"dataChanged",null);_.H([_.k({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],Df);
_.D(Df,"ytd-single-option-survey-renderer",function(){if(LBd!==void 0)return LBd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-single-option-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-single-option-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-tap="onDismissTap" class="style-scope ytd-single-option-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-single-option-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-single-option-survey-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return LBd=p},{mode:1});var k2u;var Ha=function(){var p=_.w.apply(this,arguments)||this;p.darkerDarkTheme=_.n("web_darker_dark_theme");return p};
_.A(Ha,_.w);Ha.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ha.prototype.onDismissTap=function(){_.$w(this.hostElement,"yt-close-popup-action")};
Ha.prototype.onNavigate=function(){_.$w(this.hostElement,"yt-close-popup-action")};
Ha.prototype.onNavigate=Ha.prototype.onNavigate;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ha.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],Ha.prototype,"ytEventForwardingBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Ha.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Ha.prototype,"darkerDarkTheme",void 0);
_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ha.prototype,"onNavigate",null);_.H([_.k({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],Ha);
_.D(Ha,"ytd-survey-follow-up-renderer",function(){if(k2u!==void 0)return k2u;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-survey-follow-up-renderer">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-survey-follow-up-renderer"></yt-formatted-string>\n  <ytd-button-renderer data="[[data.dismissButton.buttonRenderer]]" on-tap="onDismissTap" class="style-scope ytd-survey-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n<ytd-button-renderer align-by-text="" data="[[data.followUpButton.buttonRenderer]]" hidden="[[!data.followUpButton.buttonRenderer]]" class="style-scope ytd-survey-follow-up-renderer">\n</ytd-button-renderer>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return k2u=p},{mode:1});var NhA;var Do1;var HZw;var Tq=function(){var p=_.w.apply(this,arguments)||this;p.polymer2="Element"in Polymer;return p};
_.A(Tq,_.w);_.J=Tq.prototype;_.J.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.J.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.J.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.J.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JC("minutes-changed",this.minutes))};
_.J.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JC("seconds-changed",this.seconds))};
_.J.updateMinutesFromBinding=function(p){this.minutes=p.detail.value};
_.J.updateSecondsFromBinding=function(p){this.seconds=p.detail.value};
Tq.prototype.secondsChangedForBinding=Tq.prototype.secondsChangedForBinding;Tq.prototype.minutesChangedForBinding=Tq.prototype.minutesChangedForBinding;Tq.prototype.secondsChanged=Tq.prototype.secondsChanged;_.H([_.Q(),_.x("design:type",String)],Tq.prototype,"minutes",void 0);_.H([_.Q(),_.x("design:type",String)],Tq.prototype,"seconds",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Tq.prototype,"polymer2",void 0);
_.H([_.rd("#seconds"),_.x("design:type",Object)],Tq.prototype,"secondsEl",void 0);_.H([_.gd("seconds"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Tq.prototype,"secondsChanged",null);_.H([_.gd("minutes"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Tq.prototype,"minutesChangedForBinding",null);
_.H([_.gd("seconds"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Tq.prototype,"secondsChangedForBinding",null);_.H([_.z9({is:"yt-timestamp-input",disableElementRegistration:!0})],Tq);
_.D(Tq,"yt-timestamp-input",function(){if(HZw===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-timestamp-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_timestamp_input.yt.timestamp.input.css.js--\x3e<tp-yt-paper-input id="minutes" allowed-pattern="[0-9]" maxlength="3" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[minutes]]" on-value-changed="updateMinutesFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n<span id="separator" class="style-scope yt-timestamp-input"> : </span>\n<tp-yt-paper-input id="seconds" allowed-pattern="[0-9]" maxlength="2" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[seconds]]" on-value-changed="updateSecondsFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;Do1===void 0&&(Do1=document.createElement("template"));var q=Do1;l.call(y,q.content.cloneNode(!0),p.content.firstChild);HZw=p}p=HZw;return p},{mode:2});var xA=function(){return _.w.apply(this,arguments)||this};
_.A(xA,_.w);_.J=xA.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20170_scroller.dialogElement=this.hostElement.parentNode};
_.J.dataChanged=function(){var p=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.jo().getPlayerPromise().then(function(y){y=y.getCurrentTime();p.minutes=Math.floor(y/60).toString();p.seconds=(Math.floor(y)%60).toString()})};
_.J.onTapSubmit=function(p){p.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(p={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(p.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(p.minutes=this.minutes,p.seconds=this.seconds),_.WC().resolve(_.aK).resolveCommand(this.serviceEndpoint,{form:Object.assign({},p,{element:this.hostElement})}))};
_.J.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.J.onYtServiceRequestCompleted=function(p,y){y=y.actions;if(Array.isArray(y))for(var l=0,q=y.length;l<q;l++)_.G(y[l],_.xB)&&(p.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(y[l]))};
_.J.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.J.toggleSubmitButton=function(p){this.set("submitButton.isDisabled",!p)};
_.J.handleInput=function(){var p=this.issueType,y=this.affiliation,l=this.minutes,q=this.seconds;l=!this.showTimestamp||!!l&&!!q;this.toggleSubmitButton(!!this.descriptionText&&!!p&&!!y&&l)};
_.J.computeServiceEndpoint=function(p){return this.get("submitButton.buttonRenderer.serviceEndpoint",p)};
_.J.computeSubmitButton=function(p){(p=this.get("submitButton.buttonRenderer",p))&&(p=Object.assign({},p,{serviceEndpoint:void 0}));return p};
_.J.computeShowTimestamp=function(p){return!!p};
_.J.onValueChangedForIssueType=function(p){this.issueType=p.detail.value};
_.J.onValueChangedForAffiliation=function(p){this.affiliation=p.detail.value};
_.J.updateDescriptionTextFromBinding=function(p){this.descriptionText=p.detail.value};
_.J.updateFullNameTextFromBinding=function(p){this.fullNameText=p.detail.value};
_.J.updateMinutesFromBinding=function(p){this.minutes=p.detail.value};
_.J.updateSecondsFromBinding=function(p){this.seconds=p.detail.value};
xA.prototype.handleInput=xA.prototype.handleInput;xA.prototype.onYtServiceRequestError=xA.prototype.onYtServiceRequestError;xA.prototype.onYtServiceRequestCompleted=xA.prototype.onYtServiceRequestCompleted;xA.prototype.onYtServiceRequestSent=xA.prototype.onYtServiceRequestSent;xA.prototype.dataChanged=xA.prototype.dataChanged;_.H([_.V(_.Ss.YtOpenPopupBehavior),_.x("design:type",Object)],xA.prototype,"ytOpenPopupBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],xA.prototype,"ytRendererBehavior",void 0);_.H([_.rd("#scroller"),_.x("design:type",Object)],xA.prototype,"JSC$20170_scroller",void 0);_.H([_.rd("#description"),_.x("design:type",HTMLInputElement)],xA.prototype,"description",void 0);_.H([_.rd("#full-name"),_.x("design:type",Object)],xA.prototype,"fullName",void 0);_.H([_.Q(),_.x("design:type",Object)],xA.prototype,"data",void 0);
_.H([_.Q({computed:"computeShowTimestamp(data.timestampLabel)"}),_.x("design:type",Boolean)],xA.prototype,"showTimestamp",void 0);_.H([_.Q({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.x("design:type",Object)],xA.prototype,"serviceEndpoint",void 0);_.H([_.Q({computed:"computeSubmitButton(data)"}),_.x("design:type",Object)],xA.prototype,"submitButton",void 0);_.H([_.Q(),_.x("design:type",String)],xA.prototype,"descriptionText",void 0);
_.H([_.Q(),_.x("design:type",Number)],xA.prototype,"issueType",void 0);_.H([_.Q(),_.x("design:type",Number)],xA.prototype,"affiliation",void 0);_.H([_.Q(),_.x("design:type",String)],xA.prototype,"fullNameText",void 0);_.H([_.Q(),_.x("design:type",String)],xA.prototype,"minutes",void 0);_.H([_.Q(),_.x("design:type",String)],xA.prototype,"seconds",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xA.prototype,"dataChanged",null);
_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],xA.prototype,"onYtServiceRequestSent",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],xA.prototype,"onYtServiceRequestCompleted",null);
_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],xA.prototype,"onYtServiceRequestError",null);_.H([_.gd("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xA.prototype,"handleInput",null);_.H([_.k({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],xA);
_.D(xA,"ytd-legal-report-details-form-renderer",function(){if(NhA!==void 0)return NhA;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-legal-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-legal-report-details-form-renderer">\n  <template is="dom-if" if="[[showTimestamp]]" class="style-scope ytd-legal-report-details-form-renderer">\n    <label id="timestamp" class="style-scope ytd-legal-report-details-form-renderer">\n      [[getSimpleString(data.timestampLabel)]]\n      <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n      </yt-timestamp-input>\n    </label>\n  </template>\n  <div id="description-box" class="style-scope ytd-legal-report-details-form-renderer">\n    <tp-yt-paper-input-container no-label-float="true" use-v2-underline="" class="style-scope ytd-legal-report-details-form-renderer">\n      <tp-yt-iron-autogrow-textarea id="description" class="paper-input-input style-scope ytd-legal-report-details-form-renderer" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[data.maxDescriptionChars]]" placeholder="[[getSimpleString(data.descriptionHint)]]" required="true" rows="4" value="[[descriptionText]]" on-value-changed="updateDescriptionTextFromBinding">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-legal-report-details-form-renderer"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n  <ytd-dropdown-renderer id="issue-type" data="[[data.issueTypeDropdown.dropdownRenderer]]" value="[[issueType]]" on-value-changed="onValueChangedForIssueType" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-dropdown-renderer id="affiliation" data="[[data.affiliationDropdown.dropdownRenderer]]" value="[[affiliation]]" on-value-changed="onValueChangedForAffiliation" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <tp-yt-paper-input id="full-name" maxlength="[[data.maxNameChars]]" placeholder="[[getSimpleString(data.nameHint)]]" use-v2-underline="" value="[[fullNameText]]" on-value-changed="updateFullNameTextFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n  </tp-yt-paper-input>\n  <div id="name-subtext" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.nameSubtext)]]</div>\n  <div id="footer-text" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.footerText)]]</div>\n</tp-yt-paper-dialog-scrollable>\n<div class="footer style-scope ytd-legal-report-details-form-renderer">\n  <div id="required-label" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.requiredLabel)]]</div>\n  <div class="buttons style-scope ytd-legal-report-details-form-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="submit-button" data="[[submitButton]]" dialog-confirm="" on-click="onTapSubmit" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return NhA=p},{mode:1});var Thm;var Ba=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return p};
_.A(Ba,_.w);Ba.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
Ba.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var p=this.formRenderer.getForm();p&&this.data.submitEndpoint&&(_.WC().resolve(_.aK).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},p,{element:this.hostElement})}),_.$w(this.hostElement,"yt-close-popup-action"))}};
Ba.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.$w(this.hostElement,"yt-close-popup-action"))};
Ba.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
Ba.prototype.onPopupClosed=Ba.prototype.onPopupClosed;_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],Ba.prototype,"ytEventForwardingBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Ba.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Ba.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Ba.prototype,"ytRendererBehavior",void 0);
_.H([_.rd("yt-form-renderer"),_.x("design:type",Object)],Ba.prototype,"formRenderer",void 0);_.H([_.Q(),_.x("design:type",Object)],Ba.prototype,"data",void 0);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ba.prototype,"onPopupClosed",null);_.H([_.k({is:"ytd-form-popup-content",disableElementRegistration:!0})],Ba);
_.D(Ba,"ytd-form-popup-content",function(){if(Thm!==void 0)return Thm;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form" class="style-scope ytd-form-popup-content"></div>');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Thm=p},{mode:1});var xoi;var f3=function(){return _.w.apply(this,arguments)||this};
_.A(f3,_.w);f3.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
f3.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
f3.prototype.onPopupOpened=function(){_.Ub(this.hostElement,"yt-invalidate-popup-tabbables")};
f3.prototype.onYtServiceRequestCompleted=function(p,y){y.data&&y.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Ub(this.hostElement,"yt-invalidate-popup-tabbables"))};
f3.prototype.onYtServiceRequestCompleted=f3.prototype.onYtServiceRequestCompleted;f3.prototype.onPopupOpened=f3.prototype.onPopupOpened;_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],f3.prototype,"ytEventForwardingBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],f3.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],f3.prototype,"ytRendererBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],f3.prototype,"data",void 0);_.H([_.VU("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],f3.prototype,"onPopupOpened",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],f3.prototype,"onYtServiceRequestCompleted",null);_.H([_.k({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],f3);
_.D(f3,"ytd-form-popup-renderer",function(){if(xoi!==void 0)return xoi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-form-popup-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-form-popup-content data="[[data]]" class="style-scope ytd-form-popup-renderer"></ytd-form-popup-content>\n<div id="buttons" class="style-scope ytd-form-popup-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return xoi=p},{mode:1});var Bhw;var va=function(){var p=_.w.apply(this,arguments)||this;p.isLoading=!1;return p};
_.A(va,_.w);_.J=va.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");dtA(this.hostElement)};
_.J.onYtServiceRequestSent=function(){this.isLoading=!0};
_.J.onYtServiceRequestCompleted=function(){_.$w(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.J.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Gf(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.J.closePopupHandler=function(){this.fireOnCloseActions()};
_.J.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var p=this.get("data.headerImage.thumbnails");p&&(p=_.nY(p,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+p+")")}};
_.J.onYtNavigate=function(p){(p=_.cm(p))&&p.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
va.prototype.onYtNavigate=va.prototype.onYtNavigate;va.prototype.onHeaderImageChanged=va.prototype.onHeaderImageChanged;va.prototype.closePopupHandler=va.prototype.closePopupHandler;va.prototype.onYtServiceRequestCompleted=va.prototype.onYtServiceRequestCompleted;va.prototype.onYtServiceRequestSent=va.prototype.onYtServiceRequestSent;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],va.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],va.prototype,"ytEventForwardingBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],va.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],va.prototype,"isLoading",void 0);_.H([_.rd("#header"),_.x("design:type",HTMLDivElement)],va.prototype,"header",void 0);_.H([_.rd("#confirm-button"),_.x("design:type",_.H_)],va.prototype,"confirmButton",void 0);
_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],va.prototype,"onYtServiceRequestSent",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],va.prototype,"onYtServiceRequestCompleted",null);
_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],va.prototype,"closePopupHandler",null);_.H([_.gd("data.headerImage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],va.prototype,"onHeaderImageChanged",null);_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],va.prototype,"onYtNavigate",null);
_.H([_.k({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],va);
_.D(va,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(Bhw!==void 0)return Bhw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-confirm-dialog-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar left style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-confirm-dialog-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar right style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" dialog-dismiss="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></div>\n</div>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" role="heading" text="[[data.title]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></yt-formatted-string>\n  <div id="dialog-messages" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope ytd-gaming-account-link-confirm-dialog-renderer" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n  <div class="buttons style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[isLoading]]">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" hidden$="[[!data.cancelButton]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner active="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Bhw=p},{mode:1});var fgR;var XJ=function(){var p=_.w.apply(this,arguments)||this;p.isLoading=!1;return p};
_.A(XJ,_.w);_.J=XJ.prototype;_.J.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.linkButton":{id:"link-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);dtA(this.hostElement)};
_.J.onYtServiceRequestCompleted=function(){_.$w(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.J.onYtServiceRequestError=function(p){_.Wn(this.hostElement,p.detail.error.message)};
_.J.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.J.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.$w(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.J.onDataChanged=function(){this.isLoading=!1;var p=this.get("data.headerImage.thumbnails");p&&(p=_.nY(p,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+p+")");p=_.B2();var y=_.xc(),l=this.get("data.trackingParams");l&&y&&p&&_.pW(p,y,_.Tp(l))};
_.Jh.Object.defineProperties(XJ.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
XJ.prototype.onDataChanged=XJ.prototype.onDataChanged;XJ.prototype.onDomChange=XJ.prototype.onDomChange;XJ.prototype.onYtServiceRequestError=XJ.prototype.onYtServiceRequestError;XJ.prototype.onYtServiceRequestCompleted=XJ.prototype.onYtServiceRequestCompleted;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],XJ.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],XJ.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],XJ.prototype,"isLoading",void 0);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],XJ.prototype,"hasDescription",null);_.H([_.rd("tp-yt-paper-dialog-scrollable"),_.x("design:type",Object)],XJ.prototype,"scrollable",void 0);_.H([_.rd("#header"),_.x("design:type",HTMLElement)],XJ.prototype,"header",void 0);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],XJ.prototype,"onYtServiceRequestCompleted",null);_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],XJ.prototype,"onYtServiceRequestError",null);
_.H([_.VU("dom-change"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],XJ.prototype,"onDomChange",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XJ.prototype,"onDataChanged",null);_.H([_.k({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],XJ);
_.D(XJ,"ytd-gaming-account-link-setting-renderer",function(){if(fgR!==void 0)return fgR;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-setting-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-setting-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-setting-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.header]]" class="style-scope ytd-gaming-account-link-setting-renderer"></yt-formatted-string>\n  <div id="description-container" hidden="[[!hasDescription]]" class="style-scope ytd-gaming-account-link-setting-renderer">\n    <template is="dom-repeat" items="[[data.descriptions]]" as="description" class="style-scope ytd-gaming-account-link-setting-renderer">\n      <yt-formatted-string class="description style-scope ytd-gaming-account-link-setting-renderer" split-lines="" text="[[description]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n<div id="link-button-container" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <tp-yt-paper-spinner class="spinner style-scope ytd-gaming-account-link-setting-renderer" active="" hidden="[[!isLoading]]"></tp-yt-paper-spinner>\n  <div id="link-button" hidden="[[isLoading]]" on-click="onButtonClick" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return fgR=p},{mode:1});var v_A;var Xod;var dt=function(){var p=_.w.apply(this,arguments)||this;p.isHeader=!1;p.getEndpointForm=function(){return Xm7(p.data)};
return p};
_.A(dt,_.w);_.J=dt.prototype;_.J.triggerHintActions=function(){var p=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var y=_.jN(p.hostElement,"yt-get-opened-popups-action");!(y&&y.length===1?y[0]:[]).some(function(l){l=l.openPopupAction.popupType;return l==="SURVEY"||l==="MEALBAR"||l==="HINT"})&&p.data.hintActions&&p.guideOpened&&(_.Gf(p.hostElement,p.data.hintActions,p.hostElement),p.data.hintActions=void 0)})};
_.J.getBadgeIconType=function(p){return p&&p.liveBroadcasting?"live":null};
_.J.onDown=function(){this.interaction.triggerDown()};
_.J.onUp=function(){this.interaction.triggerUp()};
_.J.onTap=function(p){if(this.data.serviceEndpoint){var y;_.n("shorts_controller_retrieve_seedless_sequence_v2")&&((y=_.G(this.data.serviceEndpoint,_.FC))==null?void 0:y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):v8R(this.data.serviceEndpoint,this);p.preventDefault()}else this.data.navigationEndpoint&&!_.WN(_.Jx(p),this.hostElement,["A".toString()])&&_.Ub(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.J.computeActive=function(p,y){if(!p)return!1;var l=p.navigationEndpoint;p=p.serviceEndpoint;if(!l&&!p||!y)return!1;if(l){p=(p=_.K4(y))&&["subscriptions","filteredsubscriptions"].includes(p);if(_.G(l,_.wC)&&_.G(y,_.wC)&&!p){var q=_.G(l,_.wC).browseId;y=_.G(y,_.wC).browseId;return q!==void 0&&y!==void 0&&(q===y||q==="VLWL"&&y==="FEwatch_later"||q==="FEwatch_later"&&y==="VLWL")}var t;l=(t=_.G(l.commandMetadata,_.ul))==null?void 0:t.url;y=(q=_.G(y.commandMetadata,_.ul))==null?void 0:q.url;return!(!l||
!y||l!==y&&l!==_.AJ(y))}return this.isActiveShortsTab(p,y)};
_.J.isActiveShortsTab=function(p,y){y=!!_.G(y,_.FC)||!!_.G(y,_.I5);return(!!_.G(p,_.FC)||!!_.G(p,_.I5))&&y};
_.J.computeIsPrimary=function(p){return!!p};
_.Jh.Object.defineProperties(dt.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.computeActive(this.data,this.activeEndpoint)}},
isPrimary:{configurable:!0,enumerable:!0,get:function(){return this.computeIsPrimary(this.data.isPrimary)}},
lineEndStyle:{configurable:!0,enumerable:!0,get:function(){return this.data?this.data.badges&&this.getBadgeIconType(this.data.badges)?"badge":this.data.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?"dot":this.data.count?"count":"none":"none"}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){var p=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&p)return p}}});
dt.prototype.onTap=dt.prototype.onTap;dt.prototype.onUp=dt.prototype.onUp;dt.prototype.onDown=dt.prototype.onDown;dt.prototype.triggerHintActions=dt.prototype.triggerHintActions;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],dt.prototype,"componentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],dt.prototype,"rendererBehavior",void 0);_.H([_.V(_.m$.YtTaskEmitterBehavior),_.x("design:type",Object)],dt.prototype,"taskEmitterBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],dt.prototype,"activeEndpoint",void 0);_.H([_.Q(),_.x("design:type",Object)],dt.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Boolean)],dt.prototype,"guideOpened",void 0);_.H([_.Q(),_.x("design:type",String)],dt.prototype,"type",void 0);_.H([_.rd("yt-interaction"),_.x("design:type",Object)],dt.prototype,"interaction",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],dt.prototype,"isHeader",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("data","activeEndpoint"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],dt.prototype,"active",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],dt.prototype,"isPrimary",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data.count","data.presentationStyle","data.badges.*"),_.x("design:type",String),_.x("design:paramtypes",[])],dt.prototype,"lineEndStyle",null);
_.H([_.g("lineEndStyle"),_.x("design:type",Object),_.x("design:paramtypes",[])],dt.prototype,"ariaLabel",null);_.H([_.gd("data.hintActions","guideOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dt.prototype,"triggerHintActions",null);_.H([_.VU("down"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dt.prototype,"onDown",null);
_.H([_.VU("up"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dt.prototype,"onUp",null);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],dt.prototype,"onTap",null);_.H([_.k({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],dt);
_.D(dt,"ytd-guide-entry-renderer",function(){if(Xod!==void 0)return Xod;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1" title="[[getSimpleString(data.formattedTitle)]]" aria-label$="[[ariaLabel]]" role="link" get-form="[[getEndpointForm]]">\n  <tp-yt-paper-item role="link" class="style-scope ytd-guide-entry-renderer">\n    <yt-icon class="guide-icon style-scope ytd-guide-entry-renderer" active="[[active]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[computeIcon_(data.icon)]]">\n    </yt-icon>\n    <yt-img-shadow height="24" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-guide-entry-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-guide-entry-renderer" text="[[data.formattedTitle]]"></yt-formatted-string>\n    <yt-icon class="arrow-icon style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!isHeader]]" hidden="[[!isHeader]]" icon="chevron_right" size="16">\n    </yt-icon>\n    <span class="guide-entry-count style-scope ytd-guide-entry-renderer"> [[data.count]] </span>\n    <yt-icon class="guide-entry-badge style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!getBadgeIconType(data.badges)]]" icon="[[getBadgeIconType(data.badges)]]" size="16">\n    </yt-icon>\n    <div id="newness-dot" class="style-scope ytd-guide-entry-renderer"></div>\n  </tp-yt-paper-item>\n</a>\n<yt-interaction class="style-scope ytd-guide-entry-renderer"></yt-interaction>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Xod=p},{mode:1});var Oz=function(){var p=_.w.apply(this,arguments)||this;p.userToggled=!1;return p};
_.A(Oz,_.w);_.J=Oz.prototype;_.J.getItemsPath=function(){return"data.expandableItems"};
_.J.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.J.onExpanderItemTapped=function(p){var y=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.n("kevlar_guide_expandable_items_killswitch")&&_.th(this,function(){_.EL(y.expandableItems)});
p.preventDefault()};
_.J.onCollapserItemTapped=function(p){var y=this;this._setExpanded(!1);this.userToggled=!0;p.preventDefault();this.expandableItems&&!_.n("kevlar_guide_collapsible_items_killswitch")&&_.th(this,function(){_.tp(y.hostElement)})};
_.J.observeActiveEndpoint=function(){for(var p=this.activeEndpoint,y=this.data,l=this.expandableItems.children,q=0,t=l.length;q<t;q++)l[q].activeEndpoint=p;y&&y.autoExpandCommand&&p&&!this.userToggled&&(l=this.data.autoExpandCommand,y=!(!_.G(l,_.wC)||!_.G(p,_.wC)||_.G(l,_.wC).browseId!==_.G(p,_.wC).browseId),p=this.get("commandMetadata.webCommandMetadata.url",p),l=this.get("commandMetadata.webCommandMetadata.url",l),y=y||!!(p&&l&&p.includes(l)),this._setExpanded(y),y&&this.ytLazyListBehavior.fillRemainingListItems())};
Oz.prototype.observeActiveEndpoint=Oz.prototype.observeActiveEndpoint;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Oz.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Oz.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.$G.YtLazyListBehavior),_.x("design:type",Object)],Oz.prototype,"ytLazyListBehavior",void 0);_.H([_.rd("#expandable-items"),_.x("design:type",HTMLElement)],Oz.prototype,"expandableItems",void 0);
_.H([_.Q(),_.x("design:type",Object)],Oz.prototype,"data",void 0);_.H([_.Q({readOnly:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],Oz.prototype,"expanded",void 0);_.H([_.Q({value:0}),_.x("design:type",Number)],Oz.prototype,"initialCount",void 0);_.H([_.Q(),_.x("design:type",Object)],Oz.prototype,"activeEndpoint",void 0);_.H([_.gd("data","activeEndpoint","canShowMore"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Oz.prototype,"observeActiveEndpoint",null);
_.H([_.k({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],Oz);
_.D(Oz,"ytd-guide-collapsible-entry-renderer",function(){if(v_A!==void 0)return v_A;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" aria-expanded="[[expanded]]" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" aria-expanded="[[expanded]]" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return v_A=p},{mode:_.ZS("kevlar_poly_si_batch_j079")?1:2});var dod;var OZO;var o3=function(){var p=_.w.apply(this,arguments)||this;p.allVideosCount=0;p.renderGuideEntry=!1;return p};
_.A(o3,_.w);o3.prototype.observeRenderEntry=function(){var p;this.renderGuideEntry=!((p=this.data)==null||!p.alwaysShow)||!!this.allVideosCount};
o3.prototype.observeRenderEntry=o3.prototype.observeRenderEntry;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],o3.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],o3.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],o3.prototype,"activeEndpoint",void 0);_.H([_.Q({selector:_.ril}),_.x("design:type",Object)],o3.prototype,"allVideosCount",void 0);
_.H([_.Q(),_.x("design:type",Object)],o3.prototype,"renderGuideEntry",void 0);_.H([_.k8("allVideosCount","data.alwaysShow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],o3.prototype,"observeRenderEntry",null);_.H([_.k({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],o3);
_.D(o3,"ytd-guide-downloads-entry-renderer",function(){if(OZO===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-downloads-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <ytd-guide-entry-renderer id="downloads-entry" active-endpoint="[[activeEndpoint]]" data="[[data.entryRenderer.guideEntryRenderer]]" hidden="[[!renderGuideEntry]]" class="style-scope ytd-guide-downloads-entry-renderer">\n  </ytd-guide-entry-renderer>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);OZO=p}p=OZO;return p},{mode:1});var zq=function(){var p=_.w.apply(this,arguments)||this;p.youtab=_.n("web_enable_youtab");p.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return p};
_.A(zq,_.w);_.J=zq.prototype;_.J.configureRendererStamper=function(){return{"data.sectionItems":{id:"section-items",mapping:{guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideEntryRenderer:{component:"ytd-guide-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideDownloadsEntryRenderer:{component:"ytd-guide-downloads-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}}}}}};
_.J.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var p=this.sectionItems.children,y=0,l=p.length;y<l;y++)p[y].activeEndpoint=this.activeEndpoint}};
_.J.handleAddToGuideSectionAction=function(p){var y=_.G(p,ut1);if(y&&this.data&&(p=y.items,y=y.handlerData,p&&y&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(y)>-1)){y=0;for(var l=p.length;y<l;y++)p[y].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,p[y])}};
_.J.handleRemoveFromGuideSectionAction=function(p){var y=_.G(p,ROA);y&&this.data&&(p=y.guideEntryId,y=y.handlerData,p&&y&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(y)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(p,this.data.sectionItems),this.removeFromCollapsedSection(p,this.data.sectionItems)))};
_.J.removeFromExpandedSection=function(p,y){p=this.getEntryIndexMatchingId(p,y);p!==-1&&this.splice("data.sectionItems",p,1)};
_.J.removeFromCollapsedSection=function(p,y){var l=y.findIndex(function(q){return!!_.G(q,QuO)});
l&&l!==-1&&y[l]&&_.G(y[l],QuO)&&(y=_.G(y[l],QuO).expandableItems)&&(p=this.getEntryIndexMatchingId(p,y),p!==-1&&this.splice("data.sectionItems."+l+".guideCollapsibleEntryRenderer.expandableItems",p,1))};
_.J.getEntryIndexMatchingId=function(p,y){var l=this;return y.findIndex(function(q){return l.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",q)===p})};
zq.prototype.activeEndpointChanged=zq.prototype.activeEndpointChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],zq.prototype,"actionHandlerBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],zq.prototype,"ytRendererstamperBehavior",void 0);_.H([_.rd("#section-items"),_.x("design:type",HTMLDivElement)],zq.prototype,"sectionItems",void 0);
_.H([_.rd("#header-entry"),_.x("design:type",Object)],zq.prototype,"headerEntry",void 0);_.H([_.Q(),_.x("design:type",Object)],zq.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],zq.prototype,"activeEndpoint",void 0);_.H([_.Q(),_.x("design:type",Object)],zq.prototype,"youtab",void 0);_.H([_.gd("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zq.prototype,"activeEndpointChanged",null);
_.H([_.k({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],zq);
_.D(zq,"ytd-guide-collapsible-section-entry-renderer",function(){if(dod===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);dod=p}p=dod;return p},{mode:1});var o_w;var zZO;var YA=function(){var p=_.w.apply(this,arguments)||this;p.modernTypography=_.n("web_modern_typography");p.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction","yt-reset-channel-unread-count-command":"handleResetChannelUnreadCountCommand","yt-reset-subscriptions-unread-dot-command":"handleResetSubscriptionsUnreadDotCommand"};return p};
_.A(YA,_.w);_.J=YA.prototype;
_.J.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",guideOpened:"[[guideOpened]]",type:"[[type]]"},noInjection:!0},guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0},guideCollapsibleSectionEntryRenderer:{component:"ytd-guide-collapsible-section-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},
noInjection:!0}}}}};
_.J.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var p=_.jN(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);p&&p.length===1&&p[0]&&_.jN(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.J.handleResetChannelUnreadCountCommand=function(p){var y;(p=(y=_.G(p,a1d))==null?void 0:y.channelId)&&this.data&&this.data.items&&(y=this.getPathToEntryMatchingId(p))&&(this.set(y+".guideEntryRenderer.count",0),this.set(y+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.J.handleResetSubscriptionsUnreadDotCommand=function(p){var y,l=(y=_.G(p,mBd))==null?void 0:y.targetId,q;l&&(q=this.data)!=null&&q.items&&(p=this.data.items.findIndex(function(t){var E;return((E=t.guideEntryRenderer)==null?void 0:E.targetId)===l}),p<0||this.set("data.items."+p+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.J.getPathToEntryMatchingId=function(p){if(this.data&&this.data.items){var y=this.getEntryIndexMatchingId(p,this.data.items);if(y>-1)return"data.items."+y;for(var l=0;l<this.data.items.length;l++)if(y=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[l]))if(y=this.getEntryIndexMatchingId(p,y),y>-1)return"data.items."+l+".guideCollapsibleEntryRenderer.expandableItems."+y}};
_.J.handleAddToGuideSectionAction=function(p){var y=this;if(_.G(p,ut1)){var l=_.G(p,ut1).items;p=_.G(p,ut1).handlerData;var q,t;if(l&&p&&((q=this.data)==null?void 0:(t=q.handlerDatas)==null?void 0:t.indexOf(p))>-1){l=l.filter(function(e){return(e=y.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",e))&&!y.isGuideItemPresent(e)});
var E;if(p==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((E=this.data)==null?0:E.items)&&(q=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),q>-1)){this.splice.apply(this,["data.items",q+1,0].concat(_.xq(l)));return}this.unshift.apply(this,["data.items"].concat(_.xq(l)))}}};
_.J.isGuideItemPresent=function(p){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(p,this.data.items)!==-1)return!0;var y=this.data.items.find(function(l){return!!l.guideCollapsibleEntryRenderer});
if((y==null?0:y.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(p,y.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.J.getEntryIndexMatchingId=function(p,y){var l=this;return y.findIndex(function(q){return l.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",q)===p})};
_.J.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(p,y){var l=this;return y.findIndex(function(q){return l.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",q)===p})};
_.J.handleRemoveFromGuideSectionAction=function(p){if(_.G(p,ROA)){var y=_.G(p,ROA).guideEntryId;p=_.G(p,ROA).handlerData;var l,q;y&&p&&((l=this.data)==null?void 0:(q=l.handlerDatas)==null?void 0:q.indexOf(p))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(y,this.data.items),this.removeFromCollapsedSection(y,this.data.items))}};
_.J.removeFromExpandedSection=function(p,y){p=this.getEntryIndexMatchingId(p,y);p!==-1&&this.splice("data.items",p,1)};
_.J.removeFromCollapsedSection=function(p,y){var l=y.findIndex(function(q){return!!q.guideCollapsibleEntryRenderer});
l!==-1&&(y=y[l].guideCollapsibleEntryRenderer.expandableItems)&&(p=this.getEntryIndexMatchingId(p,y),p!==-1&&this.splice("data.items."+l+".guideCollapsibleEntryRenderer.expandableItems",p,1))};
_.J.activeEndpointChanged=function(){for(var p=_.jR(this.hostElement).querySelector("#items").children,y=0,l=p.length;y<l;y++)p[y].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.J.guideOpenedChanged=function(){for(var p=_.jR(this.hostElement).querySelector("#items").children,y=0,l=p.length;y<l;y++)p[y].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
YA.prototype.guideOpenedChanged=YA.prototype.guideOpenedChanged;YA.prototype.activeEndpointChanged=YA.prototype.activeEndpointChanged;YA.prototype.persistentGuideChanged=YA.prototype.persistentGuideChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],YA.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],YA.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.$G.YtLazyListBehavior),_.x("design:type",Object)],YA.prototype,"ytLazyListBehavior",void 0);_.H([_.V(_.qI.YtdGuideStateAwareBehavior),_.x("design:type",Object)],YA.prototype,"ytdGuideStateAwareBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],YA.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],YA.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],YA.prototype,"modernTypography",void 0);_.H([_.Q(),_.x("design:type",String)],YA.prototype,"type",void 0);_.H([_.Q({value:20}),_.x("design:type",Number)],YA.prototype,"initialCount",void 0);_.H([_.Q({value:10}),_.x("design:type",Number)],YA.prototype,"targetFramerate",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],YA.prototype,"autoFill",void 0);_.H([_.Q({value:50}),_.x("design:type",Number)],YA.prototype,"renderDelay",void 0);
_.H([_.gd("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YA.prototype,"persistentGuideChanged",null);_.H([_.k8("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YA.prototype,"activeEndpointChanged",null);_.H([_.k8("guideOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YA.prototype,"guideOpenedChanged",null);
_.H([_.k({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],YA);
_.D(YA,"ytd-guide-section-renderer",function(){if(zZO!==void 0)return zZO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h3 hidden="[[!data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  <yt-formatted-string id="guide-section-title" link-inherit-color="" text="[[data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  </yt-formatted-string>\n</h3>\n<div id="items" class="style-scope ytd-guide-section-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return zZO=p},{mode:_.ZS("kevlar_poly_si_batch_j073")?1:2});var YoT;var I3=function(){return _.w.apply(this,arguments)||this};
_.A(I3,_.w);_.Jh.Object.defineProperties(I3.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],I3.prototype,"rendererBehaviors",void 0);_.H([_.Q(),_.x("design:type",Object)],I3.prototype,"data",void 0);_.H([_.Q(),_.g("data.signInButton.buttonRenderer.style"),_.x("design:type",Object),_.x("design:paramtypes",[])],I3.prototype,"alignByText",null);_.H([_.k({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],I3);
_.D(I3,"ytd-guide-signin-promo-renderer",function(){if(YoT===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-signin-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.descriptiveText]]" class="style-scope ytd-guide-signin-promo-renderer"></yt-formatted-string>\n<ytd-button-renderer id="sign-in-button" align-by-text="[[alignByText]]" data="[[data.signInButton.buttonRenderer]]" on-tap="onSignInTap" class="style-scope ytd-guide-signin-promo-renderer">\n</ytd-button-renderer>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);YoT=p}p=YoT;return p},{mode:1});var p1=function(){var p=_.w.apply(this,arguments)||this;p.showFooter=!1;return p};
_.A(p1,_.w);p1.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}}}}};
p1.prototype.attached=function(){var p=this,y;return _.h(function(l){if(l.nextAddress==1){y=_.WC().resolve(_.RK(_.l1));if(!y)return l.jumpTo(0);y.setGuideData(p.hostElement);return l.yield(0,3)}p.ytLazyListBehavior.initialCount=2;return l.return()})};
p1.prototype.onMouseExit=function(){_.n("web_guide_hover_expansion")&&_.jN(this.hostElement,"yt-guide-mouseleaved",[])};
p1.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
p1.prototype.dataChanged=p1.prototype.dataChanged;p1.prototype.onMouseExit=p1.prototype.onMouseExit;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],p1.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.$G.YtLazyListBehavior),_.x("design:type",Object)],p1.prototype,"ytLazyListBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],p1.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],p1.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],p1.prototype,"showFooter",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],p1.prototype,"autoFill",void 0);_.H([_.VU("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p1.prototype,"onMouseExit",null);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p1.prototype,"dataChanged",null);_.H([_.k({is:"ytd-guide-renderer",disableElementRegistration:!0})],p1);
_.D(p1,"ytd-guide-renderer",function(){if(o_w!==void 0)return o_w;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sections" class="style-scope ytd-guide-renderer"></div>\n<div id="footer" hidden="[[!showFooter]]" class="style-scope ytd-guide-renderer">\n  <div id="guide-links-primary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-primary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <div id="guide-links-secondary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-secondary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <slot name="vat-notice" class="style-scope ytd-guide-renderer"></slot>\n  <slot name="copyright" class="style-scope ytd-guide-renderer"></slot>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return o_w=p},{mode:_.ZS("kevlar_poly_si_batch_j073")?1:2});var IgA;var yI=function(){var p=_.w.apply(this,arguments)||this;p.systemIcons=_.n("kevlar_system_icons");p.frostedGlass=_.n("web_frosted_glass");p.getEndpointForm=function(){return Xm7(p.data)};
return p};
_.A(yI,_.w);_.J=yI.prototype;_.J.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.J.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.JB(this.data.formattedTitle))};
_.J.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.J.onDown=function(){this.interaction.triggerDown()};
_.J.onUp=function(){this.interaction.triggerUp()};
_.J.onTap=function(p){if(this.data.serviceEndpoint){var y;_.n("shorts_controller_retrieve_seedless_sequence_v2")&&((y=_.G(this.data.serviceEndpoint,_.FC))==null?void 0:y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):v8R(this.data.serviceEndpoint,this);p.preventDefault()}else{var l;((l=this.data)==null?0:l.navigationEndpoint)&&!_.WN(_.Jx(p),this.hostElement,["A".toString()])&&_.Ub(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.J.computeActive=function(p,y){if(!p)return!1;var l=p.navigationEndpoint;p=p.serviceEndpoint;if(!l&&!p||!y)return!1;if(l){p=_.G(l,_.wC);var q=_.G(y,_.wC);if(p&&q)return p.browseId===q.browseId&&p.params===q.params;var t;l=(t=_.G(l.commandMetadata,_.ul))==null?void 0:t.url;var E;y=(E=_.G(y.commandMetadata,_.ul))==null?void 0:E.url;return!(!l||!y||l!==y&&l!==_.AJ(y))}return this.isActiveShortsTab(p,y)};
_.J.isActiveShortsTab=function(p,y){y=!!_.G(y,_.FC)||!!_.G(y,_.I5);return(!!_.G(p,_.FC)||!!_.G(p,_.I5))&&y};
_.J.computeTitle=function(p,y){return y?"":_.JB(p)};
_.Jh.Object.defineProperties(yI.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
yI.prototype.onTap=yI.prototype.onTap;yI.prototype.onUp=yI.prototype.onUp;yI.prototype.onDown=yI.prototype.onDown;yI.prototype.onActiveStateChange=yI.prototype.onActiveStateChange;yI.prototype.dataChanged=yI.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],yI.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],yI.prototype,"ytComponentBehavior",void 0);
_.H([_.V(_.dn),_.x("design:type",Object)],yI.prototype,"ironButtonState",void 0);_.H([_.Q(),_.x("design:type",Object)],yI.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],yI.prototype,"activeEndpoint",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],yI.prototype,"noLabels",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.x("design:type",Boolean)],yI.prototype,"isActive",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],yI.prototype,"systemIcons",void 0);_.H([_.rd("yt-interaction"),_.x("design:type",Object)],yI.prototype,"interaction",void 0);_.H([_.g("isActive"),_.x("design:type",Object),_.x("design:paramtypes",[])],yI.prototype,"ariaSelected",null);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],yI.prototype,"frostedGlass",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yI.prototype,"dataChanged",null);_.H([_.gd("isActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yI.prototype,"onActiveStateChange",null);_.H([_.VU("down"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yI.prototype,"onDown",null);
_.H([_.VU("up"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yI.prototype,"onUp",null);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],yI.prototype,"onTap",null);_.H([_.k({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],yI);
_.D(yI,"ytd-mini-guide-entry-renderer",function(){if(IgA!==void 0)return IgA;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return IgA=p},{mode:_.ZS("kevlar_poly_si_batch_j063")?1:2});var pTw;var lH=function(){var p=_.w.apply(this,arguments)||this;p.allVideosCount=0;p.noLabels=_.n("kevlar_mini_guide_no_labels");p.frostedGlass=_.n("web_frosted_glass");return p};
_.A(lH,_.w);_.J=lH.prototype;_.J.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.J.onMouseEnter=function(){_.n("web_guide_hover_expansion")&&_.jN(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.J.visibleChanged=function(){if(this.visible&&!this.data){var p=_.WC().resolve(_.RK(_.l1));p&&p.setGuideData(this.hostElement)}};
_.J.dataChanged=function(){var p=[],y;if((y=this.data)!=null&&y.items){y=_.c(this.data.items);for(var l=y.next();!l.done;l=y.next()){l=l.value;var q=void 0;if((q=l.guideSectionRenderer)==null?0:q.items)for(q=void 0,l=_.c((q=l.guideSectionRenderer)==null?void 0:q.items),q=l.next();!q.done;q=l.next())if(q=q.value,q.guideEntryRenderer)q=q.guideEntryRenderer,q.isPrimary&&p.push({guideEntryRenderer:q});else if(q.guideCollapsibleSectionEntryRenderer){var t=void 0;((t=_.G(q.guideCollapsibleSectionEntryRenderer.headerEntry,
uC))==null?0:t.isPrimary)&&p.push({guideEntryRenderer:_.G(q.guideCollapsibleSectionEntryRenderer.headerEntry,uC)});if(q=q.guideCollapsibleSectionEntryRenderer.sectionItems)for(q=_.c(q),t=q.next();!t.done;t=q.next()){var E=t.value;t=_.G(E,KZu);var e=void 0;((e=_.G(E,uC))==null?0:e.isPrimary)?p.push({guideEntryRenderer:_.G(E,uC)}):t&&(E=void 0,_.G((E=t)==null?void 0:E.entryRenderer,uC)&&(t.alwaysShow||this.allVideosCount)&&p.push({guideEntryRenderer:_.G(t.entryRenderer,uC)}))}}}}this.miniGuideItems=
p};
_.J.activeEndpointChanged=function(){for(var p=this.items.children,y=0;y<p.length;y++)p[y].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
lH.prototype.activeEndpointChanged=lH.prototype.activeEndpointChanged;lH.prototype.dataChanged=lH.prototype.dataChanged;lH.prototype.visibleChanged=lH.prototype.visibleChanged;lH.prototype.onMouseEnter=lH.prototype.onMouseEnter;_.H([_.V(_.zL),_.x("design:type",Object)],lH.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],lH.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],lH.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.qI.YtdGuideStateAwareBehavior),_.x("design:type",Object)],lH.prototype,"ytdGuideStateAwareBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],lH.prototype,"ytComponentBehavior",void 0);_.H([_.rd("#items"),_.x("design:type",Object)],lH.prototype,"items",void 0);_.H([_.Q(),_.x("design:type",Object)],lH.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],lH.prototype,"visible",void 0);_.H([_.Q(),_.x("design:type",Object)],lH.prototype,"miniGuideItems",void 0);_.H([_.Q({selector:_.ril}),_.x("design:type",Object)],lH.prototype,"allVideosCount",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],lH.prototype,"noLabels",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],lH.prototype,"frostedGlass",void 0);
_.H([_.VU("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lH.prototype,"onMouseEnter",null);_.H([_.k8("visible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lH.prototype,"visibleChanged",null);_.H([_.k8("data","allVideosCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lH.prototype,"dataChanged",null);
_.H([_.k8("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lH.prototype,"activeEndpointChanged",null);_.H([_.k({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],lH);
_.D(lH,"ytd-mini-guide-renderer",function(){if(pTw===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-mini-guide-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);pTw=p}p=pTw;return p},{mode:1});var y$O;var ln7=/^[\x00-\x7F]+$/,qj=function(){var p=_.w.apply(this,arguments)||this;p.darkerDarkTheme=_.n("web_darker_dark_theme");return p};
_.A(qj,_.w);_.Jh.Object.defineProperties(qj.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var p,y=_.JB((p=this.data)==null?void 0:p.handle);if(y)return _.EK("@"+y)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var p=_.JB(this.displayHandle),y,l=_.JB((y=this.data)==null?void 0:y.handleUrl);if(p&&l)return _.EK(l+p)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var p=_.JB(this.displayHandle);if(p&&!ln7.test(p)){var y;return(y=this.data)==null?void 0:y.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var p=_.JB(this.displayHandleUrl),y,l=_.JB((y=this.data)==null?void 0:y.urlInfoText);if(p&&l)return _.EK(l+" "+p)}}});
_.H([_.Q(),_.x("design:type",Object)],qj.prototype,"data",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],qj.prototype,"displayHandle",null);_.H([_.g("displayHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],qj.prototype,"displayHandleUrl",null);_.H([_.g("displayHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],qj.prototype,"warningText",null);
_.H([_.g("displayHandleUrl"),_.x("design:type",Object),_.x("design:paramtypes",[])],qj.prototype,"urlInfoTextWithUrl",null);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],qj.prototype,"darkerDarkTheme",void 0);_.H([_.k({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],qj);
_.D(qj,"ytd-handles-claiming-confirm-dialog-content",function(){if(y$O!==void 0)return y$O;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-formatted-string id="first-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[data.firstInfoText]]"></yt-formatted-string>\n    <yt-formatted-string id="url-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[urlInfoTextWithUrl]]"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n      <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[warningText]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return y$O=p},{mode:1});var qNR;var sD=function(){var p=_.w.apply(this,arguments)||this;p.okButtonOverride={style:"mono",type:"outline",size:"M"};return p};
_.A(sD,_.w);sD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
sD.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],sD.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],sD.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],sD.prototype,"okButtonOverride",void 0);_.H([_.Q(),_.x("design:type",Object)],sD.prototype,"data",void 0);_.H([_.k({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],sD);
_.D(sD,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(qNR!==void 0)return qNR;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-confirm-dialog-content data="[[data]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n</ytd-handles-claiming-confirm-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <div id="ok-button" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return qNR=p},{mode:1});var sqd;var taT=/^[\x00-\x7F]+$/,tD=function(){var p=_.w.apply(this,arguments)||this;p.isLoading=!1;p.darkerDarkTheme=_.n("web_darker_dark_theme");return p};
_.A(tD,_.w);tD.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var p;this.selectedHandle=(p=this.handleInput)==null?void 0:p.value;this.onSelectedHandleChanged(this.selectedHandle);_.jN(this.hostElement,"yt-refit-popups-action")}};
_.Jh.Object.defineProperties(tD.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.EK("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.EK(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!taT.test(this.selectedHandle)){var p;return(p=this.data)==null?void 0:p.warningText}}}});
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],tD.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],tD.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",String)],tD.prototype,"selectedHandle",void 0);_.H([_.Q(),_.x("design:type",Object)],tD.prototype,"isLoading",void 0);_.H([_.Q(),_.x("design:type",Function)],tD.prototype,"onSelectedHandleChanged",void 0);_.H([_.rd("#channel-handle-input"),_.x("design:type",Object)],tD.prototype,"handleInput",void 0);
_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],tD.prototype,"handleUrlPrefix",null);_.H([_.g("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],tD.prototype,"displayHandle",null);_.H([_.g("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],tD.prototype,"displayHandleUrl",null);_.H([_.g("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],tD.prototype,"warningText",null);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],tD.prototype,"darkerDarkTheme",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],tD.prototype,"ytRendererBehavior",void 0);_.H([_.k({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],tD);
_.D(tD,"ytd-handles-claiming-edit-dialog-content",function(){if(sqd!==void 0)return sqd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="input-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      </ytd-channel-handle-input-renderer>\n    </template>\n  </div>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></tp-yt-paper-spinner>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return sqd=p},{mode:1});var E2d;var ED=function(){var p=_.w.apply(this,arguments)||this;p.actionButtonOverride={style:"mono",type:"filled",size:"M"};p.cancelButtonOverride={style:"mono",type:"text",size:"M"};p.selectButtonDisabled=!1;p.isLoading=!1;p.hasSelectedHandleEventListener=!1;p.selectedHandleChanged=function(y){p.selectedHandle=y};
return p};
_.A(ED,_.w);_.J=ED.prototype;_.J.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.J.onDataChanged=function(){var p,y;this.selectedHandle=(y=_.G((p=this.data)==null?void 0:p.inputField,JS6))==null?void 0:y.handle};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onCancel=function(){this.selectedHandle="";_.$w(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.onSelectHandle=function(){var p=this;if(this.selectedHandle!==void 0){var y;((y=this.data)==null?void 0:y.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(l,q){if(q.newHandleUpdateStatus!==void 0&&q.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&q.newHandleUpdateStatus.errorMessage)_.Wn(p.hostElement,_.JB(q.newHandleUpdateStatus.errorMessage)),
p.isLoading=!1;else{var t;if((t=p.data)==null?0:t.onChannelUpdateSuccess){l=p.data.onChannelUpdateSuccess;var E,e;if(q=(E=_.G(l,_.xB))==null?void 0:(e=E.popup)==null?void 0:e.handlesClaimingConfirmDialogRenderer)q.handle=_.EK(p.selectedHandle);p.ytComponentBehavior.resolveCommand(l);_.$w(p.hostElement,"yt-close-popup-action",[p.is])}else p.isLoading=!1}},
onServerError:function(){var l;p.content&&((l=p.content)==null?0:l.handleInput)&&p.content.handleInput.validate();p.isLoading=!1;_.Wn(p.hostElement,_.g$("TRY_AGAIN_LATER"))}}}))}};
_.J.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
ED.prototype.onDataChanged=ED.prototype.onDataChanged;ED.prototype.onSelectedHandleChanged=ED.prototype.onSelectedHandleChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],ED.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ED.prototype,"actionButtonOverride",void 0);_.H([_.Q(),_.x("design:type",Object)],ED.prototype,"cancelButtonOverride",void 0);_.H([_.Q(),_.x("design:type",Object)],ED.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",String)],ED.prototype,"selectedHandle",void 0);_.H([_.Q(),_.x("design:type",Object)],ED.prototype,"selectButtonDisabled",void 0);_.H([_.Q(),_.x("design:type",Object)],ED.prototype,"isLoading",void 0);_.H([_.Q(),_.x("design:type",Object)],ED.prototype,"hasSelectedHandleEventListener",void 0);_.H([_.Q(),_.x("design:type",Object)],ED.prototype,"handleInput",void 0);
_.H([_.gd("selectedHandle"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ED.prototype,"onSelectedHandleChanged",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ED.prototype,"onDataChanged",null);_.H([_.rd("ytd-handles-claiming-edit-dialog-content"),_.x("design:type",Object)],ED.prototype,"content",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ED.prototype,"ytRendererstamperBehavior",void 0);_.H([_.k({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],ED);
_.D(ED,"ytd-handles-claiming-edit-dialog-renderer",function(){if(E2d!==void 0)return E2d;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-edit-dialog-content data="[[data]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" on-selected-handle-changed="[[selectedHandleChanged]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n</ytd-handles-claiming-edit-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return E2d=p},{mode:1});var J$d;var JD=function(){return _.w.apply(this,arguments)||this};
_.A(JD,_.w);_.Jh.Object.defineProperties(JD.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null?0:p.handle){var y;return _.EK("@"+_.JB((y=this.data)==null?void 0:y.handle))}}}});
_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],JD.prototype,"formattedHandle",null);_.H([_.Q(),_.x("design:type",Object)],JD.prototype,"data",void 0);_.H([_.k({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],JD);
_.D(JD,"ytd-handles-claiming-radio-option-renderer",function(){if(J$d!==void 0)return J$d;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="handle" respect-lang-dir="" text="[[formattedHandle]]" class="style-scope ytd-handles-claiming-radio-option-renderer">\n</yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return J$d=p},{mode:1});var c$7;var elO=/^[\x00-\x7F]+$/,c1=function(){var p=_.w.apply(this,arguments)||this;p.initialRadioIndex="-1";p.isLoading=!1;p.darkerDarkTheme=_.n("web_darker_dark_theme");p.maybeSubmitFeedback=function(){p.feedbackSurveyRenderer.submitSurvey()};
return p};
_.A(c1,_.w);c1.prototype.updateSelectedHandleIndexFromBinding=function(p){this.selectedRadioIndex=+p.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(p)};
c1.prototype.selectedHandleChanged=function(p){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var y;this.selectedHandle=(y=this.handleInput)==null?void 0:y.value;this.onSelectedHandleChanged(p)}};
_.Jh.Object.defineProperties(c1.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var p;return(((p=this.data)==null?void 0:p.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var p;return this.ytRendererBehavior.getSimpleString((p=this.data)==null?void 0:p.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.EK("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.EK(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!elO.test(this.selectedHandle)){var p;return(p=this.data)==null?void 0:p.warningText}}}});
_.H([_.Q(),_.x("design:type",Object)],c1.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],c1.prototype,"initialRadioIndex",void 0);_.H([_.Q(),_.x("design:type",Number)],c1.prototype,"selectedRadioIndex",void 0);_.H([_.Q(),_.x("design:type",String)],c1.prototype,"selectedHandle",void 0);_.H([_.Q(),_.x("design:type",Object)],c1.prototype,"isLoading",void 0);_.H([_.Q(),_.x("design:type",Function)],c1.prototype,"onSelectedHandleChanged",void 0);
_.H([_.Q(),_.x("design:type",Function)],c1.prototype,"onSelectedRadioIndexChanged",void 0);_.H([_.rd("#channel-handle-input"),_.x("design:type",Object)],c1.prototype,"handleInput",void 0);_.H([_.rd("ytd-feedback-survey-renderer"),_.x("design:type",Object)],c1.prototype,"feedbackSurveyRenderer",void 0);_.H([_.g("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],c1.prototype,"radioButtonLength",null);
_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],c1.prototype,"handleUrlPrefix",null);_.H([_.g("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],c1.prototype,"displayHandle",null);_.H([_.g("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],c1.prototype,"displayHandleUrl",null);_.H([_.g("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],c1.prototype,"warningText",null);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],c1.prototype,"darkerDarkTheme",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],c1.prototype,"ytRendererBehavior",void 0);_.H([_.k({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],c1);
_.D(c1,"ytd-handles-claiming-select-dialog-content",function(){if(c$7!==void 0)return c$7;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <tp-yt-paper-radio-group id="radio-container" selected="[[initialRadioIndex]]" on-selected-changed="updateSelectedHandleIndexFromBinding" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <template is="dom-repeat" items="[[data.radioButton]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[index]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-handles-claiming-radio-option-renderer data="[[item.handlesClaimingRadioOptionRenderer]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-handles-claiming-radio-option-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[radioButtonLength]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-channel-handle-input-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content"></tp-yt-paper-spinner>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return c$7=p},{mode:1});var hlm;var ef=function(){var p=_.w.apply(this,arguments)||this;p.actionButtonOverride={style:"mono",type:"filled",size:"M"};p.cancelButtonOverride={style:"mono",type:"text",size:"M"};p.initialRadioIndex="-1";p.selectButtonDisabled=!1;p.isLoading=!1;p.selectedRadioIndexChanged=function(y){p.selectedRadioIndex=Number(y.detail.value)};
p.selectedHandleChanged=function(y){p.selectedHandle=y.detail.value};
p.darkerDarkTheme=_.n("web_darker_dark_theme");return p};
_.A(ef,_.w);_.J=ef.prototype;_.J.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.J.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.J.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.jN(this.hostElement,"yt-refit-popups-action")};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.$w(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.onSelectHandle=function(){var p=this;if(this.selectedHandle!==void 0){var y;((y=this.data)==null?void 0:y.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(l,q){if(q.newHandleUpdateStatus!==void 0&&q.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&q.newHandleUpdateStatus.errorMessage)_.Wn(p.hostElement,_.JB(q.newHandleUpdateStatus.errorMessage)),
p.isLoading=!1;else{var t;if((t=p.data)==null?0:t.onChannelUpdateSuccess){l=p.data.onChannelUpdateSuccess;q=_.G(l,_.xB);var E;if(q==null?0:(E=q.popup)==null?0:E.handlesClaimingConfirmDialogRenderer)q.popup.handlesClaimingConfirmDialogRenderer.handle=_.EK(p.selectedHandle);p.ytComponentBehavior.resolveCommand(l);_.$w(p.hostElement,"yt-close-popup-action",[p.is])}else p.isLoading=!1}},
onServerError:function(){if(p.selectedRadioIndex===p.radioButtonLength){var l;p.content&&((l=p.content)==null?0:l.handleInput)&&p.content.handleInput.validate()}p.isLoading=!1;_.Wn(p.hostElement,_.g$("TRY_AGAIN_LATER"))}}}))}};
_.J.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var p,y;this.selectedHandle=(p=this.content)==null?void 0:(y=p.handleInput)==null?void 0:y.value}else this.selectedRadioIndex>=0&&((p=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(p==null?void 0:p.handle):this.selectedHandle=void 0)};
_.J.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.J.getRadioItem=function(p){if(this.radioButtonLength>p&&p>=0)return _.G(this.data.radioButton[p],P27)};
_.Jh.Object.defineProperties(ef.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var p;return(((p=this.data)==null?void 0:p.radioButton)||[]).length}}});
ef.prototype.onSelectedHandleChanged=ef.prototype.onSelectedHandleChanged;ef.prototype.onSelectedHandleIndexChanged=ef.prototype.onSelectedHandleIndexChanged;ef.prototype.onDataChanged=ef.prototype.onDataChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],ef.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ef.prototype,"actionButtonOverride",void 0);_.H([_.Q(),_.x("design:type",Object)],ef.prototype,"cancelButtonOverride",void 0);
_.H([_.Q(),_.x("design:type",Object)],ef.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],ef.prototype,"initialRadioIndex",void 0);_.H([_.Q(),_.x("design:type",Number)],ef.prototype,"selectedRadioIndex",void 0);_.H([_.Q(),_.x("design:type",String)],ef.prototype,"selectedHandle",void 0);_.H([_.Q(),_.x("design:type",Object)],ef.prototype,"selectButtonDisabled",void 0);_.H([_.Q(),_.x("design:type",Object)],ef.prototype,"isLoading",void 0);
_.H([_.g("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],ef.prototype,"radioButtonLength",null);_.H([_.rd("ytd-handles-claiming-select-dialog-content"),_.x("design:type",Object)],ef.prototype,"content",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ef.prototype,"onDataChanged",null);
_.H([_.gd("selectedRadioIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ef.prototype,"onSelectedHandleIndexChanged",null);_.H([_.gd("selectedHandle"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ef.prototype,"onSelectedHandleChanged",null);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],ef.prototype,"darkerDarkTheme",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ef.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ef.prototype,"ytRendererstamperBehavior",void 0);_.H([_.k({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],ef);
_.D(ef,"ytd-handles-claiming-select-dialog-renderer",function(){if(hlm!==void 0)return hlm;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-select-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-select-dialog-content data="[[data]]" initial-radio-index="[[initialRadioIndex]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" selected-radio-index="[[selectedRadioIndex]]" on-selected-handle-changed="[[selectedHandleChanged]]" on-selected-radio-index-changed="[[selectedRadioIndexChanged]]" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n</ytd-handles-claiming-select-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return hlm=p},{mode:1});var CFR;var ugV;var hD=function(){return _.w.apply(this,arguments)||this};
_.A(hD,_.w);hD.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],hD.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],hD.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],hD.prototype,"data",void 0);_.H([_.k({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],hD);
_.D(hD,"ytd-hotkey-dialog-section-option-renderer",function(){if(ugV!==void 0)return ugV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="label-container style-scope ytd-hotkey-dialog-section-option-renderer">\n  <div id="label" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[getSimpleString(data.label)]]</div>\n  <div id="standalone-badge" class="standalone-badge style-scope ytd-hotkey-dialog-section-option-renderer"></div>\n</div>\n<div id="hotkey" aria-label$="[[data.hotkeyAccessibilityLabel.accessibilityData.label]]" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[data.hotkey]]</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return ugV=p},{mode:1});var Rlm;var C1=function(){return _.w.apply(this,arguments)||this};
_.A(C1,_.w);C1.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],C1.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],C1.prototype,"data",void 0);_.H([_.k({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],C1);
_.D(C1,"ytd-hotkey-dialog-section-renderer",function(){if(Rlm!==void 0)return Rlm;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sub-title" class="style-scope ytd-hotkey-dialog-section-renderer">[[getSimpleString(data.title)]]</div>\n<div id="options" class="style-scope ytd-hotkey-dialog-section-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Rlm=p},{mode:1});var uH=function(){var p=_.w.apply(this,arguments)||this;p.darkerDarkTheme=_.n("web_darker_dark_theme");return p};
_.A(uH,_.w);uH.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],uH.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],uH.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],uH.prototype,"darkerDarkTheme",void 0);_.H([_.k({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],uH);
_.D(uH,"ytd-hotkey-dialog-content",function(){if(CFR!==void 0)return CFR;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-hotkey-dialog-content">\n  <div id="sections" class="style-scope ytd-hotkey-dialog-content"></div>\n</tp-yt-paper-dialog-scrollable>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return CFR=p},{mode:1});var Wxw;var Rh=function(){return _.w.apply(this,arguments)||this};
_.A(Rh,_.w);Rh.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var p=document.querySelector("ytd-hotkey-dialog-content #scrollable");p&&(p.dialogElement=this.hostElement.parentElement)};
Rh.prototype.onCloseTap=function(){_.$w(this.hostElement,"yt-close-popup-action")};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Rh.prototype,"data",void 0);_.H([_.k({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Rh);
_.D(Rh,"ytd-hotkey-dialog-renderer",function(){if(Wxw!==void 0)return Wxw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-hotkey-dialog-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-hotkey-dialog-content data="[[data]]" class="style-scope ytd-hotkey-dialog-renderer"></ytd-hotkey-dialog-content>\n<div id="action-buttons" class="style-scope ytd-hotkey-dialog-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.dismissButton.buttonRenderer]]" on-tap="onCloseTap" class="style-scope ytd-hotkey-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Wxw=p},{mode:1});var anL;var W1=function(){return _.w.apply(this,arguments)||this};
_.A(W1,_.w);W1.prototype.onYtServiceRequestError=function(){if(this.blocked){var p;var y=(p=this.data)==null?void 0:p.defaultServiceEndpoint}else{var l;y=(l=this.data)==null?void 0:l.toggledServiceEndpoint}var q;(y=(q=_.G(y,_.igU))==null?void 0:q.onFailureAction)&&this.ytComponentBehavior.resolveCommand(y);this.updateBlockState(!this.blocked)};
W1.prototype.onYtToggleButton=function(p){this.updateBlockState(p.detail.toggled)};
W1.prototype.updateBlockState=function(p){if(p!==this.blocked){var y=this.blockedEntityKey;y&&this.ytdReduxBehavior.dispatch(_.Fp("blockStateEntity",y,{key:y,blocked:p}));this.set("data.isToggled",p)}};
_.Jh.Object.defineProperties(W1.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)}}});
W1.prototype.onYtToggleButton=W1.prototype.onYtToggleButton;W1.prototype.onYtServiceRequestError=W1.prototype.onYtServiceRequestError;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],W1.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],W1.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],W1.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],W1.prototype,"blockedEntityKey",void 0);
_.H([_.Q({selectorArgs:["blockedEntityKey"],selector:function(p,y){return _.Ae(p.entities,"blockStateEntity",y)}}),
_.x("design:type",Object)],W1.prototype,"blockStateEntity",void 0);_.H([_.g("data","blockStateEntity"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],W1.prototype,"blocked",null);_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],W1.prototype,"onYtServiceRequestError",null);
_.H([_.VU("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],W1.prototype,"onYtToggleButton",null);_.H([_.k({is:"ytd-block-button",disableElementRegistration:!0})],W1);
_.D(W1,"ytd-block-button",function(){if(anL!==void 0)return anL;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-block-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer data="[[data]]" class="style-scope ytd-block-button">\n</ytd-toggle-button-renderer>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return anL=p},
{mode:1});var m3u;var U37;var ah=function(){return _.w.apply(this,arguments)||this};
_.A(ah,_.w);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],ah.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ah.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ah.prototype,"data",void 0);_.H([_.k({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],ah);
_.D(ah,"ytd-kids-blocklist-picker-item-renderer",function(){if(U37!==void 0)return U37;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="account-info style-scope ytd-kids-blocklist-picker-item-renderer">\n  <div class="account-avatar style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-img-shadow id="account-icon" thumbnail="[[data.avatar]]" width="44" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="account-text-info style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-formatted-string class="account-name style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childDisplayName]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="account-description style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childAccountDescription]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="action-button style-scope ytd-kids-blocklist-picker-item-renderer">\n  <ytd-block-button blocked-entity-key="[[data.blockedEntityKey]]" data="[[data.blockButton.toggleButtonRenderer]]" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n  </ytd-block-button>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return U37=p},{mode:1});var mQ=function(){return _.w.apply(this,arguments)||this};
_.A(mQ,_.w);mQ.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],mQ.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],mQ.prototype,"data",void 0);_.H([_.k({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],mQ);
_.D(mQ,"ytd-kids-blocklist-picker-content",function(){if(m3u!==void 0)return m3u;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="child-rows" class="style-scope ytd-kids-blocklist-picker-content"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return m3u=
p},{mode:_.ZS("kevlar_poly_si_batch_j025")?1:2});var $39;var UD=function(){var p=_.w.apply(this,arguments)||this;p.hasAnyRequestSucceeded=!1;p.hasAnyRequestFailed=!1;p.numPendingRequests=0;return p};
_.A(UD,_.w);_.J=UD.prototype;_.J.attached=function(){this.hostElement.setAttribute("dialog","")};
_.J.onDoneButtonTap=function(){_.$w(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.J.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.J.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.J.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.J.onPopupClosed=function(p){var y,l;if(((y=p.detail)==null?void 0:(l=y.popup)==null?void 0:l.is)==="tp-yt-paper-dialog"){var q;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((q=this.data)==null?0:q.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.C4(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
UD.prototype.onPopupClosed=UD.prototype.onPopupClosed;UD.prototype.onYtServiceRequestError=UD.prototype.onYtServiceRequestError;UD.prototype.onYtServiceRequestCompleted=UD.prototype.onYtServiceRequestCompleted;UD.prototype.onYtServiceRequestSent=UD.prototype.onYtServiceRequestSent;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],UD.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],UD.prototype,"data",void 0);_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UD.prototype,"onYtServiceRequestSent",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UD.prototype,"onYtServiceRequestCompleted",null);
_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UD.prototype,"onYtServiceRequestError",null);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],UD.prototype,"onPopupClosed",null);_.H([_.k({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],UD);
_.D(UD,"ytd-kids-blocklist-picker-renderer",function(){if($39!==void 0)return $39;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="title" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </yt-formatted-string>\n  </div>\n  <ytd-kids-blocklist-picker-content data="[[data]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </ytd-kids-blocklist-picker-content>\n</div>\n<div id="footer" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="action-buttons" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <ytd-button-renderer id="done-button" data="[[data.doneButton.buttonRenderer]]" on-click="onDoneButtonTap" class="style-scope ytd-kids-blocklist-picker-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return $39=p},{mode:1});var jqR;var bEA;var $N=function(){return _.w.apply(this,arguments)||this};
_.A($N,_.w);$N.prototype.setTip=function(p){var y=this;this.data&&(this.tip=Rcm(C1R.getInstance(),p,this.data),_.th(this,function(){_.Ub(y.hostElement,"yt-refit")}))};
$N.prototype.clearTip=function(){this.tip=void 0};
$N.prototype.computeHidden=function(p){return!p};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],$N.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.x("design:type",Boolean)],$N.prototype,"hidden",void 0);_.H([_.Q(),_.x("design:type",Object)],$N.prototype,"tip",void 0);_.H([_.k({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],$N);
_.D($N,"ytd-menu-popup-tip-renderer",function(){if(bEA!==void 0)return bEA;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-tip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[tip]]" class="style-scope ytd-menu-popup-tip-renderer"></yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);
return bEA=p},{mode:1});var n2u;var jf=function(){var p=_.w.apply(this,arguments)||this;p.useIcons=!1;p.systemIcons=_.n("kevlar_system_icons");p.useListItemStyles=_.n("web_list_item_style_for_menu_items");return p};
_.A(jf,_.w);_.J=jf.prototype;_.J.onFocus=function(){var p;(p=_.jR(this.hostElement).querySelector("tp-yt-paper-item"))==null||p.focus()};
_.J.onTap=function(){var p=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(p&&_.G(p,_.AO))this.componentBehavior.resolveCommand(p),this.updateToggledStateInEntity();else if(p){this.componentBehavior.resolveCommand(p)||_.WC().resolve(_.aK).resolveCommand(p,{form:{element:this.hostElement}});var y;((y=_.G(p,_.Mn))==null?void 0:y.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.J.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.J.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.J.updateToggledStateInEntity=function(){var p=this.data.toggleMenuServiceItemEntityKey,y=!this.data.isToggled;p&&this.ytdReduxBehavior.dispatch(_.Fp("toggleMenuServiceItemEntity",p,{key:p,isToggled:y}))};
_.J.computeIcon=function(p,y,l){return(p=p?l:y)&&p.iconType?_.QZ(p.iconType):""};
_.J.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.J.isIconActive=function(p){return!_.n("toggle_menu_active_icon_killswitch")&&p};
_.Jh.Object.defineProperties(jf.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return((p=this.data)==null?0:p.isToggled)?(y=this.data)==null?void 0:y.toggledText:(l=this.data)==null?void 0:l.defaultText}}});
jf.prototype.toggledStateEntityChanged=jf.prototype.toggledStateEntityChanged;jf.prototype.onYtServiceRequestCompleted=jf.prototype.onYtServiceRequestCompleted;jf.prototype.onTap=jf.prototype.onTap;jf.prototype.onFocus=jf.prototype.onFocus;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],jf.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],jf.prototype,"componentBehavior",void 0);
_.H([_.V(_.zL),_.x("design:type",Object)],jf.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],jf.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],jf.prototype,"useIcons",void 0);_.H([_.Q({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.x("design:type",String)],jf.prototype,"icon",void 0);
_.H([_.Q({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(p,y){return _.Ae(p.entities,"toggleMenuServiceItemEntity",y)}}),
_.x("design:type",Object)],jf.prototype,"toggleMenuServiceItemEntity",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],jf.prototype,"systemIcons",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],jf.prototype,"useListItemStyles",void 0);_.H([_.VU("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jf.prototype,"onFocus",null);
_.H([_.g("data.isToggled"),_.x("design:type",Object),_.x("design:paramtypes",[])],jf.prototype,"toggleButtonText",null);_.H([_.VU("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jf.prototype,"onTap",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jf.prototype,"onYtServiceRequestCompleted",null);
_.H([_.gd("toggleMenuServiceItemEntity.isToggled","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jf.prototype,"toggledStateEntityChanged",null);_.H([_.k({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],jf);
_.D(jf,"ytd-toggle-menu-service-item-renderer",function(){if(n2u!==void 0)return n2u;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item class="style-scope ytd-toggle-menu-service-item-renderer">\n  <yt-icon active="[[isIconActive(data.isToggled)]]" hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[toggleButtonText]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-formatted-string>\n  <tp-yt-paper-toggle-button checked="[[data.isToggled]]" hidden="[[!data.hasToggleSwitch]]" class="style-scope ytd-toggle-menu-service-item-renderer"></tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return n2u=p},{mode:1});var GJL;var bH=function(){return _.w.apply(this,arguments)||this};
_.A(bH,_.w);bH.prototype.onFocus=function(){var p;(p=_.jR(this.hostElement).querySelector("tp-yt-paper-item"))==null||p.focus()};
_.Jh.Object.defineProperties(bH.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.XX(this.data.iconUrl)}}});
bH.prototype.onFocus=bH.prototype.onFocus;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],bH.prototype,"rendererBehavior",void 0);_.H([_.V(_.FW.YtEndpointBehavior),_.x("design:type",Object)],bH.prototype,"ytEndpointBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],bH.prototype,"data",void 0);_.H([_.VU("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bH.prototype,"onFocus",null);
_.H([_.g("data.iconUrl"),_.x("design:type",Object),_.x("design:paramtypes",[])],bH.prototype,"imageSource",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],bH);
_.D(bH,"ytd-menu-custom-icon-item-renderer",function(){if(GJL!==void 0)return GJL;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-custom-icon-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-menu-custom-icon-item-renderer" data="[[data.command]]" href$="[[computeHref_(data.command)]]" tabindex="-1">\n  <tp-yt-paper-item class="style-scope ytd-menu-custom-icon-item-renderer">\n    <img class="custom-icon style-scope ytd-menu-custom-icon-item-renderer" hidden$="[[!data.iconUrl]]" alt="icon" src$="[[imageSource]]">\n    <div class="action-text style-scope ytd-menu-custom-icon-item-renderer">\n      [[getSimpleString(data.actionText)]]\n      <yt-icon class="launch-icon style-scope ytd-menu-custom-icon-item-renderer" icon="yt-icons:launch"></yt-icon>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return GJL=p},{mode:_.ZS("kevlar_poly_si_batch_j028")?1:2});_.bp(_.zI,"yt-list-item-view-model",{props:{data:_.Co,isMenuItem:_.Co,isCompact:_.Co,onTap:_.jw,trailingAccessory:_.jw,hideSelectionTextChevron:_.Co,disabled:_.Co,inPopup:_.Co,disableHorizontalPadding:_.Co,isOverlay:_.Co,isToggled:_.Co,ariaLabel:_.Co,ariaPressed:_.Co}});var n1=function(){var p=_.w.apply(this,arguments)||this;p.disableBackdropFilter=_.n("web_disable_backdrop_filter");return p};
_.A(n1,_.w);_.J=n1.prototype;
_.J.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{menuNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},
toggleMenuServiceItemRenderer:{component:"ytd-toggle-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},listItemViewModel:{component:"yt-list-item-view-model",params:{isCompact:!0}},menuCustomIconItemRenderer:{component:"ytd-menu-custom-icon-item-renderer"},menuServiceItemDownloadRenderer:{component:"ytd-menu-service-item-download-renderer"},clientSideToggleMenuItemRenderer:{component:"yt-live-chat-toggle-renderer"}}},"data.footer":{id:"footer",mapping:{menuPopupTipRenderer:"ytd-menu-popup-tip-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.J.computeAriaLabel=function(p){return p};
_.J.onPopupOpened=function(){this.items.selected=0;for(var p=_.c(_.jR(this.items).children),y=p.next();!y.done;y=p.next())y.value.popupPositionTarget=this.positionTarget;if(p=this.popupTip||void 0)p.setTip(this.source||""),this.source=void 0;this.veData&&(p=_.B2())&&_.qs(p,[this.veData])};
_.J.onPopupClosed=function(){var p=this.popupTip||void 0;p&&p.clearTip()};
_.J.onIronActivate=function(p){this.shouldPersist(p)||_.$w(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(p=_.B2())&&_.te(p,this.veData)};
_.J.shouldPersist=function(p){var y,l;if(((y=p.detail)==null?void 0:y.selected)===void 0||(l=this.data)==null||!l.items)return!1;var q,t;return!((t=(q=this.data.items[p.detail.selected])==null?void 0:q.toggleMenuServiceItemRenderer)==null||!t.persistentOnMenuPopup)};
_.J.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(p){return p.menuNavigationItemRenderer?!!p.menuNavigationItemRenderer.icon:p.menuServiceItemRenderer?!!p.menuServiceItemRenderer.icon:p.menuConditionalServiceItemRenderer?!!p.menuConditionalServiceItemRenderer.icon:p.menuConditionalNavigationItemRenderer?!!p.menuConditionalNavigationItemRenderer.icon:p.toggleMenuServiceItemRenderer?!!p.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
n1.prototype.onPopupClosed=n1.prototype.onPopupClosed;n1.prototype.onPopupOpened=n1.prototype.onPopupOpened;_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],n1.prototype,"ytEventForwardingBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],n1.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],n1.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],n1.prototype,"veData",void 0);_.H([_.Q({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.x("design:type",String)],n1.prototype,"ariaLabel",void 0);_.H([_.Q({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],n1.prototype,"useIcons",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],n1.prototype,"disableBackdropFilter",void 0);_.H([_.rd("#items"),_.x("design:type",Object)],n1.prototype,"items",void 0);_.H([_.rd("ytd-menu-popup-tip-renderer"),_.x("design:type",Object)],n1.prototype,"popupTip",void 0);_.H([_.VU("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],n1.prototype,"onPopupOpened",null);
_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],n1.prototype,"onPopupClosed",null);_.H([_.k({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],n1);
_.D(n1,"ytd-menu-popup-renderer",function(){if(jqR!==void 0)return jqR;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-listbox id="items" on-iron-activate="onIronActivate" class="style-scope ytd-menu-popup-renderer"></tp-yt-paper-listbox>\n<div id="footer" class="style-scope ytd-menu-popup-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return jqR=p},{mode:1});var PFw;var A$L=_.aF(function(p){p=_.RF(p,{icon:void 0});var y=p.data;p=p.icon;var l=function(){return y().iconBadgeText},q={},t=_.ip("yt-spec-icon-badge-shape",function(){a:switch(y().iconBadgeType){case "notification":var E="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":E="yt-spec-icon-badge-shape--type-cart";break a;default:E=""}return E},function(){a:switch(y().iconBadgeStyle){case "overlay":var E="yt-spec-icon-badge-shape--style-overlay";
break a;default:E=""}return E},(q["yt-spec-icon-badge-shape--text-size-small"]=function(){var E=l();
return!!((E==null?0:E.length)&&E.length>2)},q));
return _.R("yt-icon-badge-shape",null,_.R(_.W,{cond:p,then:function(E){return _.R("div",{class:t},_.R("div",{class:"yt-spec-icon-badge-shape__icon"},_.R(_.DR,{icon:E})),_.R(_.W,{cond:l,then:function(e){return _.R("div",{class:"yt-spec-icon-badge-shape__badge"},e)}}))}}))},"Fg");
A$L.idomCompat=!0;_.bp(A$L,"yt-icon-badge-shape",{props:{data:_.Co,icon:_.Co}});var Gx=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};p.unseenCount=0;p.isOverlay=!1;return p};
_.A(Gx,_.w);_.J=Gx.prototype;_.J.attached=function(){var p=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(y){p.onServiceWorkerMessage(y)})};
_.J.onDataChanged=function(){this.isAttached&&!this.JSC$20301_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20301_lastData=this.data};
_.J.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.J.computeIcon=function(){var p,y;return(p=this.data)==null?void 0:(y=p.icon)==null?void 0:y.iconType};
_.J.onServiceWorkerMessage=function(p){p.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.J.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.G(this.data.updateUnseenCountEndpoint,_.Mn)&&_.G(this.data.updateUnseenCountEndpoint,_.Mn).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.J.handleUpdateNotificationsUnseenCountAction=function(p){var y=this;p=_.G(p,WZV);p!=null&&p.unseenCount&&p.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(p.unseenCount),_.TR.addLowPriorityJob(function(){y.data.updateUnseenCountEndpoint&&y.ytComponentBehavior.resolveCommand(y.data.updateUnseenCountEndpoint)},p.timeoutMs))};
_.J.onClick=function(){_.Ub(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var p=_.jN(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),y=this.data.menuRequest;p&&p.length===1&&p[0]?_.$w(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):y&&this.ytComponentBehavior.resolveCommand(y)};
_.J.handleTopbarMenuClosedAction=function(p){p==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.J.toggleIconState=function(p){this.iconButton&&(this.iconButton.pressed=p)};
_.J.sendUnseenCountRequest=function(p){var y=this;_.rJ(_.TR,function(){y.ytComponentBehavior.resolveCommand(p)})};
_.J.updateCountUI=function(p){this.set("unseenCount",p<9?p:"9+")};
_.Jh.Object.defineProperties(Gx.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
Gx.prototype.handleUpdateNotificationsUnseenCountAction=Gx.prototype.handleUpdateNotificationsUnseenCountAction;Gx.prototype.onDataChanged=Gx.prototype.onDataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Gx.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.RP),_.x("design:type",Object)],Gx.prototype,"ytdOpenPopupBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Gx.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Gx.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Gx.prototype,"unseenCount",void 0);_.H([_.Q(),_.x("design:type",Object)],Gx.prototype,"isOverlay",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],Gx.prototype,"showTooltips",void 0);_.H([_.rd("yt-icon-button"),_.x("design:type",Object)],Gx.prototype,"iconButton",void 0);
_.H([_.g("unseenCount"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gx.prototype,"showNotificationCount",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gx.prototype,"onDataChanged",null);_.H([_.VU("yt-update-notifications-unseen-count-action"),_.x("design:type",Function),_.x("design:paramtypes",[Object]),_.x("design:returntype")],Gx.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.H([_.k({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],Gx);
_.D(Gx,"ytd-notification-topbar-button-renderer",function(){if(PFw!==void 0)return PFw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-notification-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(unseenCount, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-notification-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-notification-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return PFw=p},{mode:_.ZS("kevlar_poly_si_batch_j025")?1:2});var ZEA;var P1=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return p};
_.A(P1,_.w);P1.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}}}}}};
P1.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
P1.prototype.onDarkModeToggled=function(p){this.dark=p};
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],P1.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],P1.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],P1.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],P1.prototype,"data",void 0);_.H([_.Q({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],P1.prototype,"dark",void 0);
_.H([_.k({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],P1);
_.D(P1,"yt-pdg-buy-flow-header-renderer",function(){if(ZEA!==void 0)return ZEA;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-buy-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <yt-formatted-string id="title" text="[[data.text]]" class="style-scope yt-pdg-buy-flow-header-renderer"></yt-formatted-string>\n</div>\n<div id="button-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <div id="help-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n  <div id="dismiss-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return ZEA=p},{mode:1});var Mau;var Va9;var AD=function(){var p=_.w.apply(this,arguments)||this;p.immediateValue=0;p.isDarkTheme=!1;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.A(AD,_.w);_.J=AD.prototype;_.J.created=function(){_.lc.requestAvailability()};
_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.dataChanged=function(){var p=_.jR(this.hostElement).querySelector("#color-slider");p.immediateValue&&this.updateSliderKnobAndGradientStyles(p.immediateValue);this.data.notches[0].knobColorArgb&&_.Ax(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Y9(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.OY("HTML_DIR")==="rtl"&&_.jR(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.J.onSliderImmediateChange=function(){var p=_.jR(this.hostElement).querySelector("#color-slider");p.dragging&&(p.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(p.immediateValue),this.updateSliderKnobAndGradientStyles(p.immediateValue)),this.updateSliderAria())};
_.J.onSliderChange=function(){var p=_.jR(this.hostElement).querySelector("#color-slider");p.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(p.immediateValue),this.updateSliderKnobAndGradientStyles(p.immediateValue));this.updateSliderAria()};
_.J.updateSliderAria=function(){var p=_.jR(this.hostElement).querySelector("#color-slider"),y=_.jR(this.hostElement).querySelector("#color-slider");y=_.JB(this.data.notches[y.immediateValue].tierValue);_.wm()&&_.Ub(this.hostElement,"iron-announce",{text:y});p.setAttribute("aria-valuetext",y)};
_.J.updateSuperThanksSelectedTierEntity=function(p){if(p!==this.immediateValue){var y,l,q=this==null?void 0:(y=this.data)==null?void 0:(l=y.superThanksSelectedTierEntity)==null?void 0:l.key;q&&q.length>0&&this.ytdReduxBehavior.dispatch(_.Fp("superThanksSelectedTierEntity",q,{key:q,index:p}))}};
_.J.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.J.updateSliderKnobAndGradientStyles=function(p){this.immediateValue=p;p=this.data.notches[p];if(p==null?0:p.knobColorArgb)var y={"--ytd-pdg-color-slider-knob-color":_.Y9(p.knobColorArgb)};(p==null?0:p.linearGradientCssStyle)&&y!==null&&(y=Object.assign({},y,{"--ytd-pdg-color-slider-active-color":p==null?void 0:p.linearGradientCssStyle}));y!==null&&_.Ax(this.hostElement,y)};
AD.prototype.onSliderChange=AD.prototype.onSliderChange;AD.prototype.onSliderImmediateChange=AD.prototype.onSliderImmediateChange;AD.prototype.dataChanged=AD.prototype.dataChanged;_.H([_.Q(),_.x("design:type",Object)],AD.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],AD.prototype,"immediateValue",void 0);_.H([_.Q(),_.x("design:type",Number)],AD.prototype,"maxMarkers",void 0);
_.H([_.Q({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:lbi}),_.x("design:type",Object)],AD.prototype,"superThanksSelectedTierEntity",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],AD.prototype,"isDarkTheme",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],AD.prototype,"ytdReduxBehavior",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AD.prototype,"dataChanged",null);
_.H([_.VU("immediate-value-change"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AD.prototype,"onSliderImmediateChange",null);_.H([_.VU("change"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AD.prototype,"onSliderChange",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],AD);
_.D(AD,"ytd-pdg-color-slider-renderer",function(){if(Va9!==void 0)return Va9;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-color-slider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-slider id="color-slider" max="[[maxMarkers]]" max-markers="[[maxMarkers]]" min="0" snaps="" step="1" value="[[immediateValue]]" class="style-scope ytd-pdg-color-slider-renderer"></tp-yt-paper-slider>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Va9=p},{mode:1});var g2O;var QqV;var ZN=null;
_.fv({is:"ytd-comment-input",_template:function(){if(QqV!==void 0)return QqV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-comment-input">\n  <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-comment-input">\n    <div slot="after-input" class="paper-input-input style-scope ytd-comment-input">\n      <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-comment-input">\n        <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-comment-input">\n          <div id="content" slot="input" on-click="onContentClick" class="style-scope ytd-comment-input">\n            <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="input" data="[[commentChip]]" hidden="[[!hasCommentChip]]" class="style-scope ytd-comment-input">\n            </yt-pdg-comment-chip-renderer>\n            <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[computePlaceholderText_(placeholderText)]]" plaintext-only="true" required="true" split-lines="1" text="[[editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-comment-input"></yt-formatted-string>\n          </div>\n        </yt-user-mention-autosuggest-input>\n      </ytd-emoji-input>\n    </div>\n  </tp-yt-paper-input-container>\n  <span id="char-count" hidden="[[!charLimit]]" class="style-scope ytd-comment-input">[[charCount]]/[[charLimit]]</span>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return QqV=p},
behaviors:[_.vkc.YtHostElementBehavior,_.Ln,_.sd.YtComponentBehavior,_.bQ.YtRendererstamperBehavior,_.x9Q.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 _.q4}},
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",_.MH(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;_.Vp();this.focus()},
detached:function(){document.removeEventListener("tap",_.MH(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(p){p=p.detail;p=p.isCustomEmoji?p.shortcuts[0]:p.emojiId;var y=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(y,p);this.maybeUpdateTextDirection_();_.Ub(this.hostElement,"input")},
getInputRange_:function(){var p=_.wP();if(p){p=p.getBrowserRangeObject();for(var y=p.commonAncestorContainer;y;){if(y===this.getEditableTextArea_())return p;y=y.parentNode}}p=this.getEditableTextArea_();p=_.Yd(p,p.childNodes.length);p.select();return p.getBrowserRangeObject()},
insertTextWithEmojis_:function(p,y,l){(y=this.emojiManager.createDocumentFragment(y,!0,!1,l===void 0?!0:l))&&y.childNodes.length!==0&&(p.collapsed||p.deleteContents(),l=y.lastChild,p.insertNode(y),_.dEx(l).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var p=_.wP();if(p){var y=p.JSC$11230_getStartNode(),l=p.JSC$11230_getEndNode();if(dHO(y)&&dHO(l)){var q=p.JSC$11230_getStartOffset(),t;if(_.VR&&y.nodeType===Node.ELEMENT_NODE&&(t=_.dOQ(y)))_.Yd(t,0).select();else{t=bd(y)?y:_.dV(y,bd);var E=bd(l)?l:_.dV(l,bd);if(t||E)if(p.isCollapsed()){if(y.nodeType===Node.TEXT_NODE){p=!0;q===y.length&&(p=!1);if(ZN==="end"||ZN==="right")p=!1;y=y.parentNode;p=[].concat(_.xq(y.parentNode.childNodes)).indexOf(y)+(p?0:1);_.Yd(y.parentNode,
p).select()}}else t?t.previousSibling&&t.previousSibling.length>0?_.Ia(l,p.JSC$11230_getEndOffset(),t.previousSibling,t.previousSibling.length-1).select():(y=document.createTextNode("\u200b"),t.parentNode.insertBefore(y,t),_.Ia(l,p.JSC$11230_getEndOffset(),y,0).select()):E&&(E.nextSibling&&E.nextSibling.length>0?_.Ia(y,p.JSC$11230_getStartOffset(),E.nextSibling,1).select():(l=document.createTextNode("\u200b"),E.parentNode.insertBefore(l,E.nextSibling),_.Ia(y,p.JSC$11230_getStartOffset(),l,l.length).select()));
ZN=null}}else ZN=null}else ZN=null},
leftKeyPressed_:function(){ZN="left"},
rightKeyPressed_:function(){ZN="right"},
endKeyPressed_:function(){ZN="end"},
maybeDeleteChip_:function(){var p=pLO(!0);if(p){var y=_.wP(),l=y.JSC$11230_getStartNode();y=y.JSC$11230_getStartOffset();_.X6(l,y,p,p.childNodes.length).select()}},
maybeBackspaceChip_:function(){var p=pLO(!1);if(p){var y=_.wP(),l=y.JSC$11230_getStartNode();y=y.JSC$11230_getStartOffset();_.X6(l,y,p,0).select()}},
maybeBackspaceChipWordMode_:function(p){var y=_.wP();if(y.isCollapsed()){var l=y.JSC$11230_getStartNode();y=y.JSC$11230_getStartOffset();var q=ylm(l,y,!0);q&&(_.X6(l,y,q,0).select(),document.execCommand("delete"),p.preventDefault(),p.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(p){var y=_.wP();if(y.isCollapsed()){var l=y.JSC$11230_getStartNode();y=y.JSC$11230_getStartOffset();var q=ylm(l,y,!1);q&&(_.X6(l,y,q,q.childNodes.length).select(),document.execCommand("delete"),p.preventDefault(),p.stopImmediatePropagation())}},
onContentClick:function(p){p.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(p){p.defaultPrevented||p.currentTarget.tagName==="YTD-COMMENT-INPUT"&&bd(p.target)&&p.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.jR(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.jR(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(p,y){p=o89(p,this.emojiManager,y).cloneNode(!0);for(y=p.firstChild;y;)if(y.nodeType!==1)y=y.nextSibling;else switch(y.tagName){case "BR":var l=_.xC();_.lAU(l,y);y=l.nextSibling;break;case "DIV":(l=y.lastChild)&&y.nextSibling&&_.Xd(_.xC(),l);y.previousSibling&&(y.previousSibling.nodeType===1||y.previousSibling.nodeType===3&&!y.previousSibling.textContent.endsWith("\n"))&&_.vZ(_.xC(),y);l&&l.nodeName==="BR"&&_.Qy(l);l=y;y.hasChildNodes()?(y=y.firstChild,
_.quQ(l)):(y=y.nextSibling,_.Qy(l));break;default:y=y.nextSibling}return lSm(p)},
setTextAreaValue:function(p){p||(p="");var y=this.getEditableFormattedString_();y.text="";this.getEditableTextArea_().innerText="";typeof p==="string"&&(p={runs:[{text:p}]});y.text=p},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();ZN=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var p=this.getEditableTextArea_();p&&(_.Yd(p,p.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.OY("HTML_DIR")==="rtl"){var p=this.getEditableTextArea_(),y=this.getTextAreaValue()!==""?"auto":"rtl";p.setAttribute("dir",y)}},
handleInputEvent_:function(){var p=null;if(this.isEmojiButtonDisplayed){var y=this.getInputRange_();y&&(p=this.emojiInput.retrieveTextBeforeRange(y))}this.insertText_(p,!0);this.updateCharCount_();p=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=p.scrollHeight>p.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var p=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:p})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount=this.getTextLength();this.aboveCharLimit_=!!this.charLimit&&this.charCount>this.charLimit},
onPaste_:function(p){this.isEmojiButtonDisplayed&&(p.preventDefault(),p.stopImmediatePropagation(),p=p.clipboardData.getData("text/plain"),this.insertText_(p,!1,!1),_.Ub(this.hostElement,"input"))},
insertText_:function(p,y,l){y=y===void 0?!1:y;l=l===void 0?!0:l;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&p){var q=this.getInputRange_().cloneRange();this.emojiManager&&q&&(y&&this.emojiInput.offsetStartOfRangeBy(q,p.length),this.insertTextWithEmojis_(q,p,l),OvO(this.getEditableTextArea_().lastChild)||(q=this.getInputRange_().cloneRange()),q&&(this.emojiInput.updateSuggestions(q,p),this.updateSuggestionOffset_(q)))}},
getSimpleString:_.JB,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(p){return p?"focused":"not-focused"},
computePlaceholderText_:function(p){return this.getSimpleString(p)},
computeEditableText_:function(p){return this.getSimpleString(p)},
onPrefilledContentDismissed_:function(p){p.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(p,y){p?this.fire("yt-autonav-pause-focus"):y!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(p){var y=this.getEditableTextArea_();[].concat(_.xq(p.dataTransfer.items)).forEach(function(l){l.kind==="string"&&l.type.match("^text/plain")&&l.getAsString(function(q){y.appendChild(document.createTextNode(q))})});
p.preventDefault()},
preventDefault_:function(p){p.preventDefault()},
onSuggestionInsert_:function(p){this.insertTextWithEmojis_(p.detail.range,p.detail.text)},
onEmojiSuggestionClick_:function(p){this.emojiInput.insertSuggestion(p.detail)},
updateSuggestionOffset_:function(p){if(this.emojiInput&&_.jR(this.emojiInput).querySelector("#dropdown")){var y=this.getEditableTextArea_().getBoundingClientRect().bottom,l=p.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(y-l)+5;y=this.getEditableTextArea_().getBoundingClientRect().left;p=p.getBoundingClientRect().left-y;_.jR(this.emojiInput).querySelector("#dropdown").style.marginLeft=p+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.XL("yt-post"));return this.localStorage}});var Mj=function(){var p=_.w.apply(this,arguments)||this;p.currentCommentOptionIndex=0;p.isEmojiPickerDisplayed=!1;p.emojiManager=_.q4;p.isUgcEmpty=!1;p.userGeneratedCommentChangedHandler=function(){_.Ub(p.hostElement,"ytd-pdg-user-generated-comment-changed");p.isEmojiYtdCommentInputEnabled&&(p.isUgcEmpty=!p.ytdCommentInputEl.getTextAreaValue())};
p.pasteHandler=function(y){y.preventDefault();y.stopImmediatePropagation();var l;if(y=(l=y.clipboardData)==null?void 0:l.getData("text/plain"))l=document.getSelection().getRangeAt(0),l.collapsed||l.deleteContents(),y=document.createTextNode(y),l.insertNode(y),l.selectNodeContents(y),l.collapse(!1),y=window.getSelection(),y.removeAllRanges(),y.addRange(l)};
p.onDocumentClick=function(y){if(p.isEmojiPickerDisplayed){var l,q,t;!(y.target instanceof Node)||(l=y.composedPath())!=null&&l.includes(p.editableTextEl)||(q=y.composedPath())!=null&&q.includes(p.emojiButtonEl)||(t=y.composedPath())!=null&&t.includes(p.emojiPickerEl)||(p.isEmojiPickerDisplayed=!1)}};
return p};
_.A(Mj,_.w);_.J=Mj.prototype;_.J.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.J.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.J.detached=function(){var p;(p=this.contentEl)==null||p.removeEventListener("input",this.userGeneratedCommentChangedHandler);var y;(y=this.contentEl)==null||y.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.J.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.J.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var p;this.contentEl.textContent=this.rendererBehavior.getSimpleString((p=this.data)==null?void 0:p.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.J.reloadEmojis=function(){this.emojiPickerEl&&_.G(this.emojiPicker,_.BIQ)&&this.emojiPickerEl.updateEmojiCategories()};
_.J.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Ax(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.J.handleBackgroundColorStyling=function(){var p;if((p=this.currentCommentOption)==null?0:p.commentBackgroundColorArgb){var y;_.Ax(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Y9((y=this.currentCommentOption)==null?void 0:y.commentBackgroundColorArgb)})}else _.Ax(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.J.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var p;(p=this.contentEl)==null||p.focus()}};
_.J.onEditButtonClick=function(p){var y=document.getSelection();y&&this.contentEl&&(p.stopPropagation(),p.preventDefault(),y.selectAllChildren(this.contentEl),y.collapseToEnd())};
_.J.onContentDrop=function(p){var y=this;if(p.dataTransfer){p=_.c(p.dataTransfer.items);for(var l=p.next();!l.done;l=p.next())l=l.value,l.kind==="string"&&l.type.match("^text/plain")&&l.getAsString(function(q){var t;(t=y.contentEl)==null||t.appendChild(document.createTextNode(q))})}};
_.J.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.J.getUserGeneratedCommentText=function(){var p,y=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(p=this.contentEl)==null?void 0:p.textContent;return y?y.trim():""};
_.J.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.J.onEmojiSelect=function(p){this.ytdCommentInputEl.onEmojiSelect(p)};
_.Jh.Object.defineProperties(Mj.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.commentDialog)}},
title:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.title)}},
channelName:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.authorText)}},
shouldShowPaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.currentCommentOption)==null||!p.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var p;if(_.G((p=this.currentCommentOption)==null?void 0:p.chipRenderer,_.EBv)){var y;return _.G((y=this.currentCommentOption)==null?void 0:y.chipRenderer,_.EBv)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var p,y;return((p=this.data)==null?0:p.commentOptionRenderers)?_.G((y=this.data)==null?void 0:y.commentOptionRenderers[this.superThanksSelectedTierEntity.index],HIi):void 0}var l,q;return((l=this.data)==null?0:l.commentOptionRenderers)?_.G((q=this.data)==null?void 0:q.commentOptionRenderers[this.currentCommentOptionIndex],HIi):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var p;return this.rendererBehavior.getSimpleString((p=this.data)==null?void 0:p.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var p;return this.rendererBehavior.getSimpleString((p=this.data)==null?void 0:p.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var p,y;return(y=_.G((p=this.data)==null?void 0:p.commentDialog,_.F6i))==null?void 0:y.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var p,y;return(y=_.G((p=this.data)==null?void 0:p.commentDialog,_.F6i))==null?void 0:y.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var p,y;return(y=_.G((p=this.data)==null?void 0:p.commentDialog,_.F6i))==null?void 0:y.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var p,y,l=(y=_.G((p=this.data)==null?void 0:p.commentDialog,_.F6i))==null?void 0:y.emojiPicker;if(!_.G(l,_.BIQ)||!_.G(l,_.BIQ).categories)return!1;p=function(E){return E.emojiPickerCategoryRenderer?E.emojiPickerCategoryRenderer.emojiIds&&E.emojiPickerCategoryRenderer.emojiIds.length>0:E.emojiPickerUpsellCategoryRenderer?E.emojiPickerUpsellCategoryRenderer.emojis&&E.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var q,t;return((q=_.G(l,_.BIQ))==null?0:(t=q.categories)==null?0:t.find(p))?!0:!1}}});
Mj.prototype.onEmojiSelect=Mj.prototype.onEmojiSelect;Mj.prototype.dataChanged=Mj.prototype.dataChanged;Mj.prototype.currentCommentOptionChanged=Mj.prototype.currentCommentOptionChanged;_.H([_.V(_.zL),_.x("design:type",Object)],Mj.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Mj.prototype,"rendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Mj.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.rd("#content-dom-if"),_.x("design:type",_.dd)],Mj.prototype,"contentDomIfEl",void 0);_.H([_.rd("#content-no-emojis"),_.x("design:type",HTMLElement)],Mj.prototype,"contentEl",void 0);_.H([_.rd("#container"),_.x("design:type",HTMLElement)],Mj.prototype,"containerEl",void 0);_.H([_.rd("#comment-chip-container"),_.x("design:type",HTMLElement)],Mj.prototype,"paidCommentChipContainerEl",void 0);_.H([_.rd("#text-input"),_.x("design:type",HTMLElement)],Mj.prototype,"editableTextEl",void 0);
_.H([_.rd("#emoji-button"),_.x("design:type",HTMLElement)],Mj.prototype,"emojiButtonEl",void 0);_.H([_.rd("#emoji-picker > yt-emoji-picker-renderer"),_.x("design:type",Object)],Mj.prototype,"emojiPickerEl",void 0);_.H([_.rd("#text-input > ytd-comment-input"),_.x("design:type",Object)],Mj.prototype,"ytdCommentInputEl",void 0);_.H([_.Q(),_.x("design:type",Object)],Mj.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Mj.prototype,"currentCommentOptionIndex",void 0);
_.H([_.Q({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:lbi}),_.x("design:type",Object)],Mj.prototype,"superThanksSelectedTierEntity",void 0);_.H([_.Q(),_.x("design:type",Object)],Mj.prototype,"isEmojiPickerDisplayed",void 0);_.H([_.Q(),_.x("design:type",Object)],Mj.prototype,"emojiManager",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Mj.prototype,"isUgcEmpty",void 0);
_.H([_.gd("currentCommentOption"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mj.prototype,"currentCommentOptionChanged",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mj.prototype,"dataChanged",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Mj.prototype,"isEmojiYtdCommentInputEnabled",null);
_.H([_.g("data.title"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mj.prototype,"title",null);_.H([_.g("data.authorText"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mj.prototype,"channelName",null);_.H([_.g("data.commentOptionRenderers","currentCommentOption"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Mj.prototype,"shouldShowPaidCommentChipRenderer",null);
_.H([_.g("data.commentOptionRenderers","currentCommentOption"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mj.prototype,"paidCommentChipRenderer",null);_.H([_.g("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mj.prototype,"currentCommentOption",null);
_.H([_.g("data.defaultCommentText","superThanksSelectedTierEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mj.prototype,"commentText",null);_.H([_.g("data.placeholderText"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mj.prototype,"placeholderText",null);_.H([_.g("data.commentDialog.commentDialogRenderer.editableText"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mj.prototype,"editableText",null);
_.H([_.g("data.commentDialog.commentDialogRenderer.emojiButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mj.prototype,"emojiButton",null);_.H([_.g("data.commentDialog.commentDialogRenderer.emojiPicker"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mj.prototype,"emojiPicker",null);
_.H([_.g("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Mj.prototype,"isEmojiButtonDisplayed",null);_.H([_.VU("yt-emoji-select"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Mj.prototype,"onEmojiSelect",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Mj);
_.D(Mj,"ytd-pdg-comment-preview-renderer",function(){if(g2O!==void 0)return g2O;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-click="onContainerClick" class="style-scope ytd-pdg-comment-preview-renderer">\n  <div id="comment-container" class="style-scope ytd-pdg-comment-preview-renderer">\n    <div id="title-background" class="style-scope ytd-pdg-comment-preview-renderer">\n      <h2 id="comment-title" class="style-scope ytd-pdg-comment-preview-renderer">[[title]]</h2>\n    </div>\n    <div id="comment" class="style-scope ytd-pdg-comment-preview-renderer">\n      <yt-img-shadow id="author-thumbnail" fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-pdg-comment-preview-renderer">\n      </yt-img-shadow>\n      <div id="text" class="style-scope ytd-pdg-comment-preview-renderer">\n        <div id="header" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="channel-name" dir="auto" class="style-scope ytd-pdg-comment-preview-renderer">[[channelName]]</span>\n        </div>\n        <template id="content-dom-if" is="dom-if" if="[[!isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="comment-chip-container" class="style-scope ytd-pdg-comment-preview-renderer">\n            <template is="dom-if" if="[[shouldShowPaidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              <yt-pdg-comment-chip-renderer id="paid-comment-chip-renderer" data="[[paidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              </yt-pdg-comment-chip-renderer>\n            </template>\n          </span>\n          <span id="content-no-emojis" on-drop="onContentDrop" contenteditable="true" placeholder$="[[placeholderText]]" class="style-scope ytd-pdg-comment-preview-renderer">[[commentText]]</span>\n        </template>\n        <template is="dom-if" if="[[isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <div id="content-emojis" class="style-scope ytd-pdg-comment-preview-renderer">\n            <div id="text-input" class="style-scope ytd-pdg-comment-preview-renderer">\n              <ytd-comment-input comment-chip="[[paidCommentChipRenderer]]" editable-text="[[editableText]]" hide-underline="" is-emoji-button-displayed="[[isEmojiButtonDisplayed]]" is-emoji-picker-displayed="[[isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-comment-input>\n            </div>\n          </div>\n        </template>\n      </div>\n      <div id="emoji-input" class="style-scope ytd-pdg-comment-preview-renderer">\n        <template is="dom-if" if="[[isEmojiButtonDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n          <ytd-button-renderer id="emoji-button" data="[[emojiButton.buttonRenderer]]" on-click="onEmojiButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n        </template>\n      </div>\n    </div>\n  </div>\n  <ytd-button-renderer data="[[data.editButton.buttonRenderer]]" hidden$="[[!data.editButton.buttonRenderer]]" on-click="onEditButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n</div>\n<div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n  <span id="emoji-picker" class="style-scope ytd-pdg-comment-preview-renderer">\n  </span>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return g2O=p},{mode:2});var Kxd;var VI=function(){var p=_.w.apply(this,arguments)||this;p.selected=!1;return p};
_.A(VI,_.w);_.J=VI.prototype;_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.J.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.J.dataChanged=function(){this.data&&(_.bt(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Ax(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Y9(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Y9(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.J.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.J.onClick=function(){this.logClick()};
_.J.onKeyboardSelect=function(){_.Ub(this.hostElement,"tap");this.onClick()};
_.J.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
VI.prototype.onClick=VI.prototype.onClick;VI.prototype.selectedChanged=VI.prototype.selectedChanged;VI.prototype.dataChanged=VI.prototype.dataChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],VI.prototype,"componentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],VI.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.Ln),_.x("design:type",Object)],VI.prototype,"ironA11yKeysBehavior",void 0);
_.H([_.V(_.Jl),_.x("design:type",Object)],VI.prototype,"ironSelectableBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],VI.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],VI.prototype,"shownThumbnail",void 0);_.H([_.Q(),_.x("design:type",Object)],VI.prototype,"basePriceText",void 0);_.H([_.Q(),_.x("design:type",Object)],VI.prototype,"purchaseCommand",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],VI.prototype,"selected",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VI.prototype,"dataChanged",null);_.H([_.gd("selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VI.prototype,"selectedChanged",null);_.H([_.VU("click"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VI.prototype,"onClick",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],VI);
_.D(VI,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(Kxd!==void 0)return Kxd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-super-vod-selectable-item-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="price" class="style-scope ytd-pdg-super-vod-selectable-item-button-renderer">[[getSimpleString(data.basePriceText)]]</span>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Kxd=p},{mode:1});var gA=function(){var p=_.w.apply(this,arguments)||this;p.selectedItemIndex=0;p.buyButtonDisabled=!1;return p};
_.A(gA,_.w);_.J=gA.prototype;
_.J.configureRendererStamper=function(){return{"data.commentPreview":{id:"comment-preview",mapping:{pdgCommentPreviewRenderer:{component:"ytd-pdg-comment-preview-renderer",properties:{currentCommentOptionIndex:"[[selectedItemIndex]]"}}}},"data.selectableItemButtons":{id:"selectable-items",mapping:{buttonRenderer:{component:"ytd-button-renderer"},superVodSelectableItemButtonRenderer:{component:"ytd-pdg-super-vod-selectable-item-button-renderer"}}},"data.colorSlider":{id:"slider",mapping:{pdgColorSliderRenderer:{component:"ytd-pdg-color-slider-renderer",
properties:{immediateValue:"[[selectedItemIndex]]"}}}}}};
_.J.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var p;var y=(p=_.G(this.data.colorSlider,DBL))==null?void 0:p.notches[this.selectedItemIndex].purchaseCommand}else{var l;y=(l=_.G(this.data.selectableItemButtons[this.selectedItemIndex],xBw))==null?void 0:l.purchaseCommand}if(y){p=_.G(y,_.HoP);p.productData||(p.productData={});var q;p.productData={pdgData:{commentMessageText:(q=this.commentPreviewRenderer)==null?void 0:q.getUserGeneratedCommentText()}};
_.Ub(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(y)}}};
_.J.dataChanged=function(){if(this.data){_.q4.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.$zx(_.q4,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.q4.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var p;this.buyButtonDisabled=!((p=_.G(this.data.commentPreview,TB9))==null||!p.placeholderText);this.updatePriceSelectorStatus();var y;if((y=this.data)==null?0:y.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;p=[];this.data.preloadImages&&(p=this.data.preloadImages);
p=p.map(function(l){return _.nY(l.thumbnails,1920)});
p=_.c(p);for(y=p.next();!y.done;y=p.next())(y=y.value)&&_.KDt(y).thenCatch(function(){_.vs(Error("ml"))})}};
_.J.superThanksSelectedTierEntityChanged=function(){var p;(this==null?void 0:(p=this.superThanksSelectedTierEntity)==null?void 0:p.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.J.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.J.updatePriceSelectorStatus=function(){this.isColorSlider?(_.jR(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.jR(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.jR(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.jR(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.J.closeBuyFlow=function(){_.$w(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.J.onUserGeneratedContentChanged=function(){var p;this.buyButtonDisabled=!((p=this.commentPreviewRenderer)==null?0:p.getUserGeneratedCommentText())};
_.J.updateSelectedItemIndexFromBinding=function(p){this.selectedItemIndex=p.detail.value};
_.Jh.Object.defineProperties(gA.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.disclaimerText)}}});
gA.prototype.onUserGeneratedContentChanged=gA.prototype.onUserGeneratedContentChanged;gA.prototype.closeBuyFlow=gA.prototype.closeBuyFlow;gA.prototype.selectedItemIndexChanged=gA.prototype.selectedItemIndexChanged;gA.prototype.superThanksSelectedTierEntityChanged=gA.prototype.superThanksSelectedTierEntityChanged;gA.prototype.dataChanged=gA.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],gA.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],gA.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],gA.prototype,"selectedItemIndex",void 0);_.H([_.Q(),_.x("design:type",Boolean)],gA.prototype,"isColorSlider",void 0);
_.H([_.Q(),_.x("design:type",Object)],gA.prototype,"buyButtonDisabled",void 0);_.H([_.Q({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:lbi}),_.x("design:type",Object)],gA.prototype,"superThanksSelectedTierEntity",void 0);_.H([_.rd("ytd-pdg-comment-preview-renderer"),_.x("design:type",Object)],gA.prototype,"commentPreviewRenderer",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],gA.prototype,"ytdReduxBehavior",void 0);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gA.prototype,"dataChanged",null);_.H([_.gd("superThanksSelectedTierEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gA.prototype,"superThanksSelectedTierEntityChanged",null);_.H([_.gd("selectedItemIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gA.prototype,"selectedItemIndexChanged",null);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gA.prototype,"closeBuyFlow",null);_.H([_.VU("ytd-pdg-user-generated-comment-changed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gA.prototype,"onUserGeneratedContentChanged",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],gA.prototype,"isDisclaimerTextShown",null);
_.H([_.k({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],gA);
_.D(gA,"yt-super-vod-buy-flow-content-renderer",function(){if(Mau!==void 0)return Mau;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-super-vod-buy-flow-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.description]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><div id="comment-preview" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><div id="slider" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><iron-selector id="selectable-items" role="radiogroup" selected="[[selectedItemIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedItemIndexFromBinding" class="style-scope yt-super-vod-buy-flow-content-renderer"></iron-selector><div id="footer" class="style-scope yt-super-vod-buy-flow-content-renderer"><div id="cancel-button" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><yt-formatted-string id="disclaimer-text" hidden="[[!isDisclaimerTextShown]]" text="[[data.disclaimerText]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><ytd-button-renderer id="buy-button" data="[[data.buyButton.buttonRenderer]]" disabled="[[buyButtonDisabled]]" on-click="onBuyButtonClick" class="style-scope yt-super-vod-buy-flow-content-renderer"></ytd-button-renderer></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Mau=p},{mode:1});var wT9;var QI=function(){var p=_.w.apply(this,arguments)||this;p.lottieAnimationRef={};return p};
_.A(QI,_.w);_.J=QI.prototype;_.J.created=function(){_.lc.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.MH(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.J.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Ub(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.J.detached=function(){this.autoCloseJobId&&_.TR.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.MH(this,this.onPopupIronOverlayOpened))};
_.J.dataChanged=function(){var p=this;this.data&&this.data.autoCloseDelay&&(_.$w(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.ZR(_.TR,function(){p.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Ax(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.J.onDOMLoadedLottie=function(){var p=this,y,l,q=Number((y=this.data)==null?void 0:(l=y.autoCloseDelay)==null?void 0:l.seconds)||0;this.fadeOutJobId=_.ZR(_.TR,function(){p.lottiePlayerEl.classList.add("fadeout")},(q-.25)*1E3);
this.autoCloseJobId=_.ZR(_.TR,function(){p.closePopup()},q*1E3)};
_.J.openPopup=function(){this.ironOverlayBehavior.open()};
_.J.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.$w(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Gf(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.WC().resolve(_.aK).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.TR.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.TR.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.J.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var p,y;(p=this.lottieAnimationRef)==null||(y=p.lottieEl)==null||y.destroy();p=this.data.lottie;var l,q;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:p.url+"_"+Math.random(),path:p.url,autoplay:!0,loop:(q=(l=p.settings)==null?void 0:l.loop)!=null?q:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Jh.Object.defineProperties(QI.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var p,y;return!!((p=this.data)==null?0:(y=p.lottie)==null?0:y.url)}}});
QI.prototype.maybeInitializeLottie=QI.prototype.maybeInitializeLottie;QI.prototype.dataChanged=QI.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],QI.prototype,"rendererBehavior",void 0);_.H([_.V(_.JT),_.x("design:type",Object)],QI.prototype,"ironOverlayBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],QI.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],QI.prototype,"lottiePlayerProps",void 0);
_.H([_.Q(),_.x("design:type",Object)],QI.prototype,"lottieAnimationRef",void 0);_.H([_.rd("ytd-lottie-player"),_.x("design:type",HTMLElement)],QI.prototype,"lottiePlayerEl",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QI.prototype,"dataChanged",null);_.H([_.g("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],QI.prototype,"hasLottieAnimation",null);
_.H([_.gd("data.lottie.url"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QI.prototype,"maybeInitializeLottie",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],QI);
_.D(QI,"ytd-desktop-image-overlay-renderer",function(){if(wT9!==void 0)return wT9;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return wT9=p},{mode:1});var iET;var K1=function(){return _.w.apply(this,arguments)||this};
_.A(K1,_.w);_.J=K1.prototype;_.J.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{pdgBuyFlowHeaderRenderer:{component:"yt-pdg-buy-flow-header-renderer"}}},"data.content":{id:"content",mapping:{superVodBuyFlowContentRenderer:{component:"yt-super-vod-buy-flow-content-renderer"}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("tabIndex")||this.hostElement.setAttribute("tabIndex","0");this.hostElement.addEventListener("yt-popup-closed",_.MH(this,this.closePopup))};
_.J.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.MH(this,this.closePopup))};
_.J.dataChanged=function(){_.jN(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.G(this.data.header,NBw)&&(this.hasBackgroundBanner=!!_.G(this.data.header,NBw).backgroundBanner)};
_.J.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.MH(this,this.closePopup))};
_.J.closePopup=function(){this.data&&this.data.onCloseCommand&&_.ny(this.hostElement,[this.data.onCloseCommand])};
K1.prototype.handleBuyflowSelectionSubmitted=K1.prototype.handleBuyflowSelectionSubmitted;K1.prototype.dataChanged=K1.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],K1.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],K1.prototype,"data",void 0);
_.H([_.Q({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],K1.prototype,"hasBackgroundBanner",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],K1.prototype,"dataChanged",null);_.H([_.VU("yt-pdg-buy-flow-selection-submitted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],K1.prototype,"handleBuyflowSelectionSubmitted",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],K1);
_.D(K1,"ytd-pdg-buy-flow-renderer",function(){if(iET!==void 0)return iET;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-buy-flow-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-pdg-buy-flow-renderer"></div>\n<div id="content" class="style-scope ytd-pdg-buy-flow-renderer"></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return iET=p},{mode:1});var r$9;var wA=function(){var p=_.w.apply(this,arguments)||this;p.isOpen=!1;p.isPlaylistCreated=!1;return p};
_.A(wA,_.w);_.J=wA.prototype;_.J.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.J.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Ub(this.hostElement,"yt-refit")};
_.J.onCreateTap=function(){var p=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.ny(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(y,l){if(!_.n("killswitch_ep_in_create_playlist_response")&&(l==null?0:l.actions))for(y=_.c(l.actions),l=y.next();!l.done;l=y.next())l=l.value,_.G(l,_.Xy)&&p.ytComponentBehavior.resolveCommand(l)}}]),this.isPlaylistCreated=!0)};
_.J.onKeydown=function(p){if(p.keyCode===13)this.onCreateTap()};
_.J.onServiceRequestCompleted=function(p){p.stopPropagation();_.$w(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.J.computePrivacyBadge=function(p){return p?[{metadataBadgeRenderer:p}]:[]};
wA.prototype.onServiceRequestCompleted=wA.prototype.onServiceRequestCompleted;wA.prototype.onKeydown=wA.prototype.onKeydown;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],wA.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],wA.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],wA.prototype,"isOpen",void 0);
_.H([_.Q(),_.x("design:type",Object)],wA.prototype,"isPlaylistCreated",void 0);_.H([_.Q({value:{REQUIRED_LABEL:_.g$("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.g$("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.x("design:type",Object)],wA.prototype,"addToStrings",void 0);_.H([_.Q({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.x("design:type",Array)],wA.prototype,"privacyBadge",void 0);
_.H([_.rd("#privacy-input"),_.x("design:type",Object)],wA.prototype,"privacyInput",void 0);_.H([_.rd("#name-input"),_.x("design:type",Object)],wA.prototype,"nameInput",void 0);_.H([_.VU("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],wA.prototype,"onKeydown",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],wA.prototype,"onServiceRequestCompleted",null);
_.H([_.k({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],wA);
_.D(wA,"ytd-add-to-playlist-create-renderer",function(){if(r$9!==void 0)return r$9;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-create-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-compact-link-renderer data="[[data.openCreateLink.compactLinkRenderer]]" hidden="[[isOpen]]" on-tap="onOpenTap" class="style-scope ytd-add-to-playlist-create-renderer">\n</ytd-compact-link-renderer>\n<div id="create-playlist-form" hidden="[[!isOpen]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  <yt-text-input-form-field-renderer id="name-input" data="[[data.nameInput.textInputFormFieldRenderer]]" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </yt-text-input-form-field-renderer>\n  <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!data.privacyInput.metadataBadgeRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-dropdown-renderer id="privacy-input" data="[[data.privacyInput.dropdownRenderer]]" hidden="[[!data.privacyInput.dropdownRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-button-renderer id="privacy-button" data="[[data.privacyInput.buttonRenderer]]" hidden="[[!data.privacyInput.buttonRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-button-renderer>\n  <div id="actions" class="style-scope ytd-add-to-playlist-create-renderer">\n    <ytd-button-renderer data="[[data.createAction.buttonRenderer]]" on-tap="onCreateTap" class="style-scope ytd-add-to-playlist-create-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return r$9=p},{mode:1});var SN9;var FxA;var iH=function(){var p=_.w.apply(this,arguments)||this;p.transferState="TRANSFER_STATE_UNKNOWN";return p};
_.A(iH,_.w);iH.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
iH.prototype.onCheckboxChange=function(p){var y=this;this.data&&_.tl(this,"yt-playlist-checkbox-changed",function(){var l=_.cm(p).checked?y.data.addToPlaylistServiceEndpoint:y.data.removeFromPlaylistServiceEndpoint;l&&_.WC().resolve(_.aK).resolveCommand(l,{form:{element:y.hostElement}});_.n("dl_playlist_killswitch")||y.transferState!=="TRANSFER_STATE_UNKNOWN"&&y.transferState!=="TRANSFER_STATE_FAILED"&&y.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:y.data.playlistId,action:"ACTION_SYNC"}})},
100)};
iH.prototype.computeIconType=function(p){return p?"yt-icons:"+p.toLowerCase():null};
iH.prototype.dataChanged=iH.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],iH.prototype,"data",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],iH.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],iH.prototype,"ytComponentBehavior",void 0);_.H([_.rd("#checkbox"),_.x("design:type",HTMLInputElement)],iH.prototype,"checkbox",void 0);
_.H([_.Q({selector:_.or,selectorArgs:["data.playlistId"]}),_.x("design:type",String)],iH.prototype,"transferState",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iH.prototype,"dataChanged",null);_.H([_.k({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],iH);
_.D(iH,"ytd-playlist-add-to-option-renderer",function(){if(FxA!==void 0)return FxA;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-add-to-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[checked_]]" on-change="onCheckboxChange" class="style-scope ytd-playlist-add-to-option-renderer">\n  <div id="checkbox-container" class="style-scope ytd-playlist-add-to-option-renderer">\n    <div id="checkbox-label" class="style-scope ytd-playlist-add-to-option-renderer">\n      <yt-formatted-string id="label" class="checkbox-height style-scope ytd-playlist-add-to-option-renderer" ellipsis-truncate="" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string id="byline" ellipsis-truncate="" link-inherit-color="" text="[[data.shortBylineText]]" class="style-scope ytd-playlist-add-to-option-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon icon="[[computeIconType(data.privacyIcon.iconType)]]" size="18" class="style-scope ytd-playlist-add-to-option-renderer"></yt-icon>\n  </div>\n</tp-yt-paper-checkbox>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return FxA=p},{mode:1});_.uX(qU9);_.gD(qU9,"ytd-menu-title-renderer",{propNames:["data"]});var rA=function(){var p=_.w.apply(this,arguments)||this;p.addToStrings={ADD_TO_DROPDOWN_LABEL:_.g$("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};p.closeButtonAriaLabel=_.g$("SBOX_INAPPROPRIATE_CANCEL");p.dialog=_.n("desktop_add_to_playlist_renderer_dialog_popup");return p};
_.A(rA,_.w);_.J=rA.prototype;_.J.configureRendererStamper=function(){return{"data.playlists":{id:"playlists",mapping:{playlistAddToOptionRenderer:"ytd-playlist-add-to-option-renderer"}},"data.actions":{id:"actions",mapping:{addToPlaylistCreateRenderer:"ytd-add-to-playlist-create-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.J.onPopupOpened=function(){_.nv(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.J.onPopupClosed=function(){_.nv(this.playlists,"scrollable",!1)};
_.J.computeAriaLabel=function(){var p;if(this==null?0:(p=this.data)==null?0:p.actions){p=_.c(this.data.actions);for(var y=p.next();!y.done;y=p.next())if(y=y.value,y.menuTitleRenderer)return _.JB(y.menuTitleRenderer.title)}};
_.J.onTapClose=function(){_.$w(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Jh.Object.defineProperties(rA.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var p;if(this==null?0:(p=this.data)==null?0:p.actions){p=_.c(this.data.actions);for(var y=p.next();!y.done;y=p.next())if(y=y.value,y.menuTitleRenderer)return y.menuTitleRenderer}return!1}}});
rA.prototype.onPopupClosed=rA.prototype.onPopupClosed;rA.prototype.onPopupOpened=rA.prototype.onPopupOpened;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],rA.prototype,"ytEventForwardingBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],rA.prototype,"ytRendererStamperBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],rA.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],rA.prototype,"addToStrings",void 0);_.H([_.Q({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.x("design:type",String)],rA.prototype,"ariaLabel",void 0);_.H([_.Q(),_.x("design:type",String)],rA.prototype,"closeButtonAriaLabel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],rA.prototype,"dialog",void 0);
_.H([_.rd("#playlists"),_.x("design:type",HTMLElement)],rA.prototype,"playlists",void 0);_.H([_.rd("ytd-add-to-playlist-create-renderer"),_.x("design:type",Object)],rA.prototype,"createRenderer",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],rA.prototype,"menuTitleRenderer",null);_.H([_.VU("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rA.prototype,"onPopupOpened",null);
_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rA.prototype,"onPopupClosed",null);_.H([_.k({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],rA);
_.D(rA,"ytd-add-to-playlist-renderer",function(){if(SN9!==void 0)return SN9;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-add-to-playlist-renderer">\n  <template is="dom-if" if="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer">\n    <ytd-menu-title-renderer data="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer"></ytd-menu-title-renderer>\n  </template>\n  <div hidden="[[menuTitleRenderer]]" id="title" class="style-scope ytd-add-to-playlist-renderer">\n    [[addToStrings.ADD_TO_DROPDOWN_LABEL]]\n  </div>\n  <yt-icon-button id="close-button" hidden="[[!dialog]]" label="[[closeButtonAriaLabel]]" on-tap="onTapClose" class="style-scope ytd-add-to-playlist-renderer">\n    <yt-icon icon="close" class="style-scope ytd-add-to-playlist-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="playlists" class="style-scope ytd-add-to-playlist-renderer"></div>\n<div id="actions" class="style-scope ytd-add-to-playlist-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return SN9=p},{mode:1});var LxL;var Sf=function(){var p=_.w.apply(this,arguments)||this;p.isPlaylistEditComplete=!1;p.isCollabEngagementDisabled=!1;p.closeButtonAriaLabel=_.g$("SBOX_INAPPROPRIATE_CANCEL");p.saveButton={title:_.g$("SAVE_PLAYLIST",void 0,"Save"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};p.onValueChanged=function(){p.updateSaveButtonState();p.computeCollabEngagementDisabled()};
return p};
_.A(Sf,_.w);_.J=Sf.prototype;_.J.attached=function(){this.JSC$20357_scroller&&(this.JSC$20357_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20357_scroller.attached&&typeof this.JSC$20357_scroller.attached==="function"&&this.JSC$20357_scroller.attached())};
_.J.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.J.onPopupClosed=function(){this.reset()};
_.J.close=function(){_.$w(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.J.onClickSave=function(){var p=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var y=[];this.nameInput.value!==null&&y.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&y.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var l=Number(this.privacyInput.value);isNaN(l)||y.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:l})}this.votingInput.value!==null&&(l=this.votingInput.value)&&y.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:l});if(y.length>0){var q;_.G((q=this.data)==null?void 0:q.updateSettingsEndpoint,_.YB).actions=y;var t;if((t=this.data)==null?0:t.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){p.close()}}}),this.isPlaylistEditComplete=!0}}};
_.J.computePrivacyBadge=function(p){return p?[{metadataBadgeRenderer:p}]:[]};
_.J.computeEditorData=function(p){var y,l;return p==null?void 0:(y=p.sections)==null?void 0:(l=y[0])==null?void 0:l.playlistSettingsEditorCasualSectionRenderer};
_.J.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.J.configureRendererStamper=function(){return{"editorData.thumbnail":{id:"thumbnail",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",params:{width:9999}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",params:{size:312}}}}}};
_.J.computeAriaLabel=function(){var p,y,l,q=(p=this.data)==null?void 0:(y=p.sections)==null?void 0:(l=y[0])==null?void 0:l.playlistSettingsEditorCasualSectionRenderer;return _.JB(q==null?void 0:q.title)};
_.J.updateSaveButtonState=function(){this.isFormChanged()&&this.isFormValid()?this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"})):this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_DISABLED"}))};
_.J.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.J.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.J.isNameChanged=function(){var p,y,l;return(((p=this.editorData)==null?void 0:(y=p.name)==null?void 0:(l=y.textInputFormFieldRenderer)==null?void 0:l.value)||"")!==(this.nameInput.value||"")};
_.J.isDescriptionChanged=function(){var p,y,l;return(((p=this.editorData)==null?void 0:(y=p.description)==null?void 0:(l=y.textInputFormFieldRenderer)==null?void 0:l.value)||"")!==(this.descriptionInput.value||"")};
_.J.isPrivacyChanged=function(){var p,y,l,q,t,E,e,C;return((e=(p=this.editorData)==null?void 0:(y=p.privacy)==null?void 0:(l=y.dropdownFormFieldRenderer)==null?void 0:(q=l.dropdown)==null?void 0:(t=q.dropdownRenderer)==null?void 0:(E=t.entries)==null?void 0:E.find(function(u){var a;return u==null?void 0:(a=u.privacyDropdownItemRenderer)==null?void 0:a.isSelected}))==null?void 0:(C=e.privacyDropdownItemRenderer)==null?void 0:C.int32Value)!==this.privacyInput.value};
_.J.isVotingChanged=function(){var p,y,l,q,t,E,e,C;return((e=(p=this.editorData)==null?void 0:(y=p.voting)==null?void 0:(l=y.dropdownFormFieldRenderer)==null?void 0:(q=l.dropdown)==null?void 0:(t=q.dropdownRenderer)==null?void 0:(E=t.entries)==null?void 0:E.find(function(u){var a;return u==null?void 0:(a=u.privacyDropdownItemRenderer)==null?void 0:a.isSelected}))==null?void 0:(C=e.privacyDropdownItemRenderer)==null?void 0:C.int32Value)!==this.votingInput.value};
Sf.prototype.onPopupClosed=Sf.prototype.onPopupClosed;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Sf.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Sf.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],Sf.prototype,"ytEventForwardingBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Sf.prototype,"ytRendererStamperBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],Sf.prototype,"data",void 0);_.H([_.Q({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.x("design:type",Array)],Sf.prototype,"privacyBadge",void 0);_.H([_.Q({computed:"computeEditorData(data)"}),_.x("design:type",Object)],Sf.prototype,"editorData",void 0);_.H([_.Q(),_.x("design:type",Object)],Sf.prototype,"isPlaylistEditComplete",void 0);_.H([_.Q(),_.x("design:type",Object)],Sf.prototype,"isCollabEngagementDisabled",void 0);
_.H([_.Q({value:{REQUIRED_LABEL:_.g$("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.g$("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.x("design:type",Object)],Sf.prototype,"addToStrings",void 0);_.H([_.Q({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.x("design:type",String)],Sf.prototype,"ariaLabel",void 0);_.H([_.Q(),_.x("design:type",String)],Sf.prototype,"closeButtonAriaLabel",void 0);
_.H([_.Q(),_.x("design:type",Object)],Sf.prototype,"saveButton",void 0);_.H([_.rd("#name-input"),_.x("design:type",Object)],Sf.prototype,"nameInput",void 0);_.H([_.rd("#description-input"),_.x("design:type",Object)],Sf.prototype,"descriptionInput",void 0);_.H([_.rd("#privacy-input"),_.x("design:type",Object)],Sf.prototype,"privacyInput",void 0);_.H([_.rd("#voting-input"),_.x("design:type",Object)],Sf.prototype,"votingInput",void 0);
_.H([_.rd("#scroller"),_.x("design:type",Object)],Sf.prototype,"JSC$20357_scroller",void 0);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Sf.prototype,"onPopupClosed",null);_.H([_.Q(),_.x("design:type",Object)],Sf.prototype,"onValueChanged",void 0);_.H([_.k({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],Sf);
_.D(Sf,"ytd-playlist-settings-editor-renderer",function(){if(LxL===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);LxL=p}p=LxL;return p},{mode:1});var kJL;_.ox("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var Fv=function(){return _.w.apply(this,arguments)||this};
_.A(Fv,_.w);_.J=Fv.prototype;_.J.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-confirm":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",classListBinding:"[[buttonClass_]]",attributes:{"dialog-dismiss":!0}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var p=this.get("data.nextButton.buttonRenderer.navigationEndpoint");p&&(this.nextNavigationEndpoint=p,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.J.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var p={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",p)}}};
_.J.onPopupOpened=function(p){p.detail!==this&&p.detail!==this.hostElement||!_.n("enable_premium_voluntary_pause")||_.$w(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.J.onNextButtonTap=function(){var p=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);p&&this.ytdOpenPopupBehavior.openPopup(p)};
_.J.updateSelectedResponseIndexFromBinding=function(p){this.selectedResponseIndex=p.detail.value};
Fv.prototype.onPopupOpened=Fv.prototype.onPopupOpened;Fv.prototype.onSelectedResponseIndexChange=Fv.prototype.onSelectedResponseIndexChange;Fv.prototype.dataChanged=Fv.prototype.dataChanged;_.H([_.V(_.RP),_.x("design:type",Object)],Fv.prototype,"ytdOpenPopupBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Fv.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Fv.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],Fv.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Number)],Fv.prototype,"selectedResponseIndex",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Fv.prototype,"dataChanged",null);_.H([_.gd("selectedResponseIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Fv.prototype,"onSelectedResponseIndexChange",null);
_.H([_.VU("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],Fv.prototype,"onPopupOpened",null);_.H([_.k({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],Fv);
_.D(Fv,"ytd-red-cancel-survey-renderer",function(){if(kJL!==void 0)return kJL;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-red-cancel-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-red-cancel-survey-renderer">\n  <div id="question" class="style-scope ytd-red-cancel-survey-renderer">[[getSimpleString(data.question)]]</div>\n  <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-red-cancel-survey-renderer">\n    <template is="dom-repeat" items="[[data.singleOptions.styles]]" class="style-scope ytd-red-cancel-survey-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-red-cancel-survey-renderer">\n        [[getSimpleString(item.radioButtonSurveyOptionRenderer.option)]]\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div class="buttons style-scope ytd-red-cancel-survey-renderer">\n  <div id="dismiss-button" class="style-scope ytd-red-cancel-survey-renderer"></div>\n  <div id="next-button" on-click="onNextButtonTap" class="style-scope ytd-red-cancel-survey-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return kJL=p},{mode:1});var NvA;var L1=function(){var p=_.w.apply(this,arguments)||this;p.closeButtonAriaLabel=_.g$("SBOX_INAPPROPRIATE_CANCEL");return p};
_.A(L1,_.w);L1.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
L1.prototype.onClickClose=function(){_.$w(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],L1.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],L1.prototype,"rendererStamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],L1.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",String)],L1.prototype,"closeButtonAriaLabel",void 0);_.H([_.k({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],L1);
_.D(L1,"ytd-search-filter-options-dialog-renderer",function(){if(NvA!==void 0)return NvA;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-options-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-search-filter-options-dialog-renderer">\n  <div id="title" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onClickClose" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-icon icon="close" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-search-filter-options-dialog-renderer"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return NvA=p},{mode:1});var D3A;var Egd=function(){return function(p){p=p.availabilityType;return p===void 0||p==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||p==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var kN=function(){var p=_.w.apply(this,arguments)||this;p.qualityOptions=[];p.upsellOptions=[];p.showUpsellSection=!1;p.darkerDarkTheme=_.n("web_darker_dark_theme");p.rememberSettingsChecked=!1;return p};
_.A(kN,_.w);_.J=kN.prototype;_.J.configureRendererStamper=function(){return{qualityOptions:{id:"quality-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}},upsellOptions:{id:"upsell-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.J.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.J.updateQualityOptions=function(){if(this.formats===void 0)_.$w(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var p=[],y=[];this.showUpsellSection=!1;for(var l=_.c(this.formats),q=l.next();!q.done;q=l.next())(q=q.value)&&(q.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?y.push(q):p.push(q));p.length&&(this.qualityOptions=tmV(p));y.length&&(this.showUpsellSection=!0,this.upsellOptions=tmV(y))}};
_.J.updateRememberString=function(){if(this.downloadQualityPickerEntity)var p=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var y;p=(y=this.data)==null?void 0:y.premiumRememberSettingString}else{var l;p=(l=this.data)==null?void 0:l.rememberSettingString}p=p===void 0?_.g$("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):p;this.rememberSettingsCheckboxRenderer={title:_.ar(p),disabled:!1}};
_.J.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Jh.Object.defineProperties(kN.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var p;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(p=this.data)==null?void 0:p.qualityFormats}}});
kN.prototype.updateRememberString=kN.prototype.updateRememberString;kN.prototype.updateQualityOptions=kN.prototype.updateQualityOptions;kN.prototype.dataChanged=kN.prototype.dataChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],kN.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],kN.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],kN.prototype,"data",void 0);
_.H([_.V(_.zL),_.x("design:type",Object)],kN.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Boolean)],kN.prototype,"selectedUpsellQuality",void 0);_.H([_.Q({computed:"computeIcon_(data.premiumIcon)",value:""}),_.x("design:type",String)],kN.prototype,"premiumIcon",void 0);_.H([_.Q({selector:YM9,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.x("design:type",Object)],kN.prototype,"downloadQualityPickerEntity",void 0);
_.H([_.Q(),_.x("design:type",Array)],kN.prototype,"qualityOptions",void 0);_.H([_.Q(),_.x("design:type",Array)],kN.prototype,"upsellOptions",void 0);_.H([_.Q(),_.x("design:type",Object)],kN.prototype,"showUpsellSection",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],kN.prototype,"darkerDarkTheme",void 0);_.H([_.Q(),_.x("design:type",Object)],kN.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.H([_.rd("#remember-settings"),_.x("design:type",HTMLInputElement)],kN.prototype,"rememberSettingsCheckbox",void 0);_.H([_.Q(),_.x("design:type",Object)],kN.prototype,"rememberSettingsChecked",void 0);_.H([_.Q(),_.x("design:type",Function)],kN.prototype,"onRememberSettingsCheckedChanged",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kN.prototype,"dataChanged",null);
_.H([_.gd("downloadQualityPickerEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kN.prototype,"updateQualityOptions",null);_.H([_.gd("selectedUpsellQuality"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kN.prototype,"updateRememberString",null);_.H([_.k({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],kN);
_.D(kN,"ytd-download-quality-selector-content",function(){if(D3A!==void 0)return D3A;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="quality-options" class="style-scope ytd-download-quality-selector-content"></div>\n<div id="upsell-section" hidden="[[!showUpsellSection]]" class="style-scope ytd-download-quality-selector-content">\n    <yt-icon id="premium-icon" icon="[[premiumIcon]]" class="style-scope ytd-download-quality-selector-content"></yt-icon>\n    <yt-formatted-string id="premium-description" text="[[data.premiumDescription]]" class="style-scope ytd-download-quality-selector-content"></yt-formatted-string>\n    <div id="upsell-options" class="style-scope ytd-download-quality-selector-content"></div>\n</div>\n<ytd-settings-checkbox-renderer id="remember-settings" data="[[rememberSettingsCheckboxRenderer]]" on-click="rememberSettingsCheckedChanged" class="style-scope ytd-download-quality-selector-content">\n</ytd-settings-checkbox-renderer>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return D3A=p},{mode:1});var HEO;var Nj=function(){var p=_.w.apply(this,arguments)||this;p.selectedUpsellQuality=!1;p.qualityOptions=[];p.darkerDarkTheme=_.n("web_darker_dark_theme");p.useUpsellDismissAlternate=_.n("use_not_now_dl_upsell_dismiss_cta");p.shouldShowAlternateUpsellDimiss=!1;p.rememberSettings=!1;p.rememberSettingsChecked=!1;p.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};p.rememberSettingsCheckedChanged=function(y){p.rememberSettingsChecked=y};
return p};
_.A(Nj,_.w);_.J=Nj.prototype;
_.J.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ar(_.g$("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ar(_.g$("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ar(_.g$("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ar(_.g$("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.J.updateQualityOptions=function(){this.formats===void 0?_.$w(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=tmV(this.formats)};
_.J.onQualityOptionsSelect=function(p){if(this.qualityOptions&&p){p!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var y=_.c(this.qualityOptions.entries()),l=y.next();!l.done;l=
y.next()){l=_.c(l.value);var q=l.next().value;l=l.next().value;var t=void 0,E=void 0;if(((t=l)==null?void 0:(E=t.settingsRadioOptionRenderer)==null?void 0:E.id)===p){this.selectedQualityIndex=q;p=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((p=this.formats[q])==null?void 0:p.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.J.onClickSubmit=function(){var p;if((p=this.downloadButtonRenderer)==null||!p.isDisabled){var y,l;p=(l=(y=this.data)==null?void 0:y.onSubmitEndpoint)!=null?l:{};var q,t;if(this.formats&&(((q=_.G(p,_.wi))==null?0:q.videoId)||((t=_.G(p,_.ij))==null?0:t.playlistId))){var E,e,C,u,a,m;y={formatType:(u=(E=this.formats)==null?void 0:(e=E[(C=this.selectedQualityIndex)!=null?C:0])==null?void 0:e.format)!=null?u:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(a=this.getOfflineEndpoint(p))==null?void 0:(m=a.actionParams)==null?void 0:m.settingsAction)};this.getOfflineEndpoint(p).actionParams=y;this.ytComponentBehavior.resolveCommand(p)}_.$w(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.J.onClickUpsell=function(){var p;if((p=this.upsellButtonRenderer)==null||!p.isDisabled){var y,l;p=(l=(y=this.data)==null?void 0:y.upsellEndpoint)!=null?l:{};this.ytComponentBehavior.resolveCommand(p);_.$w(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);y="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var q,t,E,e;y=(e=(q=this.formats)==null?void 0:(t=q[(E=this.selectedQualityIndex)!=null?E:0])==null?void 0:t.format)!=null?e:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:y}})}};
_.J.onClickClose=function(){_.$w(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.J.getOfflineSettingsAction=function(p,y){return p?y===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":y:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.J.getOfflineEndpoint=function(p){return _.G(p,_.wi)?_.G(p,_.wi):_.G(p,_.ij)};
_.Jh.Object.defineProperties(Nj.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.ar(_.g$("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var p;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(p=this.data)==null?void 0:p.qualityFormats}}});
Nj.prototype.updateQualityOptions=Nj.prototype.updateQualityOptions;Nj.prototype.dataChanged=Nj.prototype.dataChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Nj.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Nj.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Nj.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Nj.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Nj.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Number)],Nj.prototype,"selectedQualityIndex",void 0);_.H([_.Q(),_.x("design:type",Object)],Nj.prototype,"selectedUpsellQuality",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Nj.prototype,"ytdReduxBehavior",void 0);
_.H([_.Q({selector:YM9,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.x("design:type",Object)],Nj.prototype,"downloadQualityPickerEntity",void 0);_.H([_.Q(),_.x("design:type",Array)],Nj.prototype,"qualityOptions",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Nj.prototype,"darkerDarkTheme",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Nj.prototype,"useUpsellDismissAlternate",void 0);
_.H([_.Q(),_.x("design:type",Object)],Nj.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.H([_.Q(),_.x("design:type",Object)],Nj.prototype,"downloadButtonRenderer",void 0);_.H([_.Q(),_.x("design:type",Object)],Nj.prototype,"upsellButtonRenderer",void 0);_.H([_.Q(),_.x("design:type",Object)],Nj.prototype,"cancelButtonRenderer",void 0);_.H([_.Q(),_.x("design:type",Object)],Nj.prototype,"upsellCancelButtonRenderer",void 0);_.H([_.Q(),_.x("design:type",Object)],Nj.prototype,"rememberSettings",void 0);
_.H([_.Q(),_.x("design:type",Object)],Nj.prototype,"rememberSettingsChecked",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Nj.prototype,"dataChanged",null);_.H([_.gd("downloadQualityPickerEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Nj.prototype,"updateQualityOptions",null);_.H([_.k({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Nj);
_.D(Nj,"ytd-download-quality-selector-renderer",function(){if(HEO!==void 0)return HEO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[titleText]]" class="style-scope ytd-download-quality-selector-renderer"></yt-formatted-string>\n<ytd-download-quality-selector-content data="[[data]]" remember-settings-checked="[[rememberSettingsChecked]]" selected-upsell-quality="[[selectedUpsellQuality]]" on-remember-settings-checked-changed="[[rememberSettingsCheckedChanged]]" class="style-scope ytd-download-quality-selector-renderer">\n</ytd-download-quality-selector-content>\n<div class="buttons style-scope ytd-download-quality-selector-renderer">\n  <yt-button-renderer id="cancel-button" data="[[cancelButtonRenderer]]" dialog-dismiss="" hidden="[[shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-cancel-button" data="[[upsellCancelButtonRenderer]]" dialog-dismiss="" hidden="[[!shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="download-button" data="[[downloadButtonRenderer]]" hidden="[[selectedUpsellQuality]]" on-click="onClickSubmit" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-button" data="[[upsellButtonRenderer]]" hidden="[[!selectedUpsellQuality]]" on-click="onClickUpsell" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return HEO=p},{mode:1});var Tv9;var DN=function(){var p=_.w.apply(this,arguments)||this;p.darkerDarkTheme=_.n("web_darker_dark_theme");return p};
_.A(DN,_.w);DN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
DN.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"}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],DN.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],DN.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],DN.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],DN.prototype,"darkerDarkTheme",void 0);_.H([_.Q({computed:"computeIcon_(data.infoIcon)"}),_.x("design:type",Object)],DN.prototype,"infoIcon",void 0);
_.H([_.Q({computed:"computeIcon_(data.warningIcon)"}),_.x("design:type",Object)],DN.prototype,"warningIcon",void 0);_.H([_.k({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],DN);
_.D(DN,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(Tv9!==void 0)return Tv9;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="source" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="source-title" text="[[data.sourceTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-subtitle" text="[[data.sourceSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-account-name" text="[[data.sourceAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="source-account-email" text="[[data.sourceAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="target" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="target-title" text="[[data.targetTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="target-subtitle" text="[[data.targetSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="target-account" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-img-shadow hidden="[[!data.sourceAccountThumbnail]]" thumbnail="[[data.sourceAccountThumbnail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-img-shadow>\n        <div id="target-account-info" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="target-account-name" text="[[data.targetAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="target-account-email" text="[[data.targetAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="sournce-channel-details" text="[[data.sourceChannelDetails]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="info-warning" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <div id="info-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="info-title-text" text="[[data.infoTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="warning-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!warningIcon]]" hidden="[[!warningIcon]]" icon="[[warningIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="warning-title-text" text="[[data.warningTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="warning-text" split-lines="" text="[[data.warningText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="next-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Tv9=p},{mode:1});var x3d;var H1=function(){var p=_.w.apply(this,arguments)||this;p.darkerDarkTheme=_.n("web_darker_dark_theme");return p};
_.A(H1,_.w);H1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
H1.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"}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],H1.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],H1.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],H1.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],H1.prototype,"darkerDarkTheme",void 0);_.H([_.k({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],H1);
_.D(H1,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(x3d!==void 0)return x3d;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-overview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="stepper" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-cross-account-transfer-channel-overview-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <div id="signin-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return x3d=p},{mode:1});var Bv7;var Tx=function(){var p=_.w.apply(this,arguments)||this;p.darkerDarkTheme=_.n("web_darker_dark_theme");return p};
_.A(Tx,_.w);Tx.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Tx.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"}}}}};
Tx.prototype.onServiceRequestSentOrCompleted=function(p,y){y&&y.actions&&y.actions.length>0&&_.$w(this.hostElement,"yt-close-popup-action",[this.is])};
Tx.prototype.onServiceRequestSentOrCompleted=Tx.prototype.onServiceRequestSentOrCompleted;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Tx.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Tx.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Tx.prototype,"darkerDarkTheme",void 0);_.H([_.Q(),_.x("design:type",Object)],Tx.prototype,"data",void 0);
_.H([_.VU("yt-service-request-completed"),_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],Tx.prototype,"onServiceRequestSentOrCompleted",null);_.H([_.k({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],Tx);
_.D(Tx,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(Bv7!==void 0)return Bv7;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-tnc-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="agree-title" text="[[data.agreeTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="agree-text" split-lines="" text="[[data.agreeText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-title" text="[[data.understandTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-text" split-lines="" text="[[data.understandText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n    <div id="confirm-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Bv7=p},{mode:1});var fnO;var xN=function(){var p=_.w.apply(this,arguments)||this;p.darkerDarkTheme=_.n("web_darker_dark_theme");p.submitButtonDisabled=!0;return p};
_.A(xN,_.w);_.J=xN.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.J.onDataChanged=function(){var p,y,l;if(((p=this.data)==null?void 0:(y=p.confirmButton)==null?void 0:(l=y.buttonRenderer)==null?void 0:l.isDisabled)!==void 0){var q,t,E;this.submitButtonDisabled=(q=this.data)==null?void 0:(t=q.confirmButton)==null?void 0:(E=t.buttonRenderer)==null?void 0:E.isDisabled}};
_.J.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.J.updateSubmitButtonDisabledFromBinding=function(p){this.submitButtonDisabled=p.detail.value};
_.J.updateSubmitButtonDisabledFromConfirmCheckbox=function(p){this.submitButtonDisabled=!p.detail.value};
xN.prototype.onDataChanged=xN.prototype.onDataChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],xN.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],xN.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],xN.prototype,"darkerDarkTheme",void 0);
_.H([_.Q(),_.x("design:type",Object)],xN.prototype,"submitButtonDisabled",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xN.prototype,"onDataChanged",null);_.H([_.k({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],xN);
_.D(xN,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(fnO!==void 0)return fnO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <div id="sections" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="messages" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-transfer-channel-confirm-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n    <div id="confirm" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-if" if="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <tp-yt-paper-checkbox id="confirm-checkbox" checked="[[!submitButtonDisabled]]" on-checked-changed="updateSubmitButtonDisabledFromConfirmCheckbox" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="confirm-text" text="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n        </tp-yt-paper-checkbox>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" on-disabled-changed="updateSubmitButtonDisabledFromBinding" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return fnO=p},{mode:1});var v2T;var B1=function(){return _.w.apply(this,arguments)||this};
_.A(B1,_.w);_.Jh.Object.defineProperties(B1.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var p,y,l;return((p=this.data)==null?void 0:p.title)+" "+((y=this.data)==null?void 0:y.metadataPrimary)+" "+((l=this.data)==null?void 0:l.metadataSecondary)}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],B1.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],B1.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],B1.prototype,"data",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],B1.prototype,"ariaLabel",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],B1);
_.D(B1,"ytd-compact-product-list-item-renderer",function(){if(v2T!==void 0)return v2T;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-compact-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" aria-label$="[[ariaLabel]]">\n  <div class="compact-product-list-item style-scope ytd-compact-product-list-item-renderer">\n    <yt-img-shadow class="item-image style-scope ytd-compact-product-list-item-renderer" height="40" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="40"></yt-img-shadow>\n    <div class="column style-scope ytd-compact-product-list-item-renderer">\n      <template is="dom-if" if="[[data.title]]" class="style-scope ytd-compact-product-list-item-renderer">\n        <div class="row title style-scope ytd-compact-product-list-item-renderer">[[data.title]]</div>\n      </template>\n      <div class="row metadata style-scope ytd-compact-product-list-item-renderer">\n        <template is="dom-if" if="[[data.metadataPrimary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataPrimary]]</span>\n        </template>\n        <template is="dom-if" if="[[data.metadataSecondary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataSecondary]]</span>\n          <yt-icon class="open-in-new style-scope ytd-compact-product-list-item-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </template>\n      </div>\n    </div>\n  </div>\n</a>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return v2T=p},{mode:1});var XT1;var f1=function(){return _.w.apply(this,arguments)||this};
_.A(f1,_.w);f1.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]]"}}}}}};
_.Jh.Object.defineProperties(f1.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],f1.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],f1.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],f1.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],f1.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],f1);
_.D(f1,"ytd-compact-product-list-renderer",function(){if(XT1!==void 0)return XT1;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-compact-product-list-renderer">\n  <div id="title" class="style-scope ytd-compact-product-list-renderer">[[data.title]]</div>\n  <div id="items" class="style-scope ytd-compact-product-list-renderer"></div>\n  <div id="action-button" class="style-scope ytd-compact-product-list-renderer"></div>\n</div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return XT1=p},{mode:1});var d3O;var v1=function(){var p=_.w.apply(this,arguments)||this;p.darkerDarkTheme=_.n("web_darker_dark_theme");return p};
_.A(v1,_.w);_.J=v1.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.J.getBackgroundUrl=function(){var p=this.get("data.headerImage.thumbnails");return p?"url("+_.nY(p,this.hostElement.clientWidth)+")":""};
_.J.onDataChanged=function(){var p=this.getBackgroundUrl();p&&(this.header.style.backgroundImage=p);p=_.B2();var y=_.xc(),l=this.get("data.trackingParams");l&&y&&p&&_.pW(p,y,_.Tp(l));p=_.c(this.hostElement.querySelectorAll("yt-img-shadow"));for(y=p.next();!y.done;y=p.next())y.value.onShow()};
_.J.onPopupClosed=function(p){_.cm(p).localName==="ytd-membership-post-cancel-renderer"&&_.$w(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
v1.prototype.onPopupClosed=v1.prototype.onPopupClosed;v1.prototype.onDataChanged=v1.prototype.onDataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],v1.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],v1.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],v1.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],v1.prototype,"darkerDarkTheme",void 0);
_.H([_.rd("#header"),_.x("design:type",HTMLDivElement)],v1.prototype,"header",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],v1.prototype,"onDataChanged",null);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],v1.prototype,"onPopupClosed",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],v1);
_.D(v1,"ytd-membership-post-cancel-renderer",function(){if(d3O!==void 0)return d3O;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-membership-post-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-membership-post-cancel-renderer">\n  <div class="avatar-support style-scope ytd-membership-post-cancel-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.viewerThumbnail]]"></yt-img-shadow>\n    <yt-icon class="membership-icon style-scope ytd-membership-post-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.channelThumbnail]]"></yt-img-shadow>\n  </div>\n</div>\n\n<yt-formatted-string class="header-title style-scope ytd-membership-post-cancel-renderer" text="[[data.header]]"></yt-formatted-string>\n\n<div class="messages style-scope ytd-membership-post-cancel-renderer">\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-membership-post-cancel-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-membership-post-cancel-renderer"></yt-formatted-string>\n  </template>\n</div>\n\n<div class="footer style-scope ytd-membership-post-cancel-renderer">\n  <div id="okay-button" class="style-scope ytd-membership-post-cancel-renderer"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return d3O=p},{mode:1});var OE6;var Xv=function(){var p=_.w.apply(this,arguments)||this;p.darkerDarkTheme=_.n("web_darker_dark_theme");return p};
_.A(Xv,_.w);Xv.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
Xv.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Xv.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Xv.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Xv.prototype,"darkerDarkTheme",void 0);_.H([_.rd("ytd-feedback-survey-renderer"),_.x("design:type",Object)],Xv.prototype,"feedbackSurveyRenderer",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],Xv);
_.D(Xv,"ytd-sponsorship-confirm-cancel-content",function(){if(OE6!==void 0)return OE6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="description" class="style-scope ytd-sponsorship-confirm-cancel-content">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-sponsorship-confirm-cancel-content"></yt-formatted-string>\n</div>\n<div id="feedback-survey" class="style-scope ytd-sponsorship-confirm-cancel-content"></div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return OE6=p},{mode:1});var o2O;var dA=function(){var p=_.w.apply(this,arguments)||this;p.darkerDarkTheme=_.n("web_darker_dark_theme");p.maybeSubmitFeedback=function(){p.content&&p.content.maybeSubmitFeedback()};
return p};
_.A(dA,_.w);_.J=dA.prototype;_.J.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.J.onYtPopupOpened=function(p,y){y===this&&this.data&&this.data.onOpenCommands&&_.Gf(this.hostElement,this.data.onOpenCommands,this.hostElement);_.$w(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.J.onYtPopupClosed=function(p,y){(y&&y.canceled===!0||y&&y.canceled===!1&&y.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Gf(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.J.onYtServiceRequestCompleted=function(){_.$w(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.J.onYtServiceRequestError=function(p){_.Wn(this.hostElement,p.detail.error.message)};
_.J.onDataChanged=function(){if(this.isAttached){var p=this.backgroundUrl;p&&(_.jR(this.hostElement).querySelector("#header").style.backgroundImage=p)}};
_.Jh.Object.defineProperties(dA.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var p=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return p?"url("+_.nY(p,this.hostElement.clientWidth)+")":""}}});
dA.prototype.onDataChanged=dA.prototype.onDataChanged;dA.prototype.onYtServiceRequestError=dA.prototype.onYtServiceRequestError;dA.prototype.onYtServiceRequestCompleted=dA.prototype.onYtServiceRequestCompleted;dA.prototype.onYtPopupClosed=dA.prototype.onYtPopupClosed;dA.prototype.onYtPopupOpened=dA.prototype.onYtPopupOpened;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],dA.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],dA.prototype,"data",void 0);_.H([_.Q({value:function(){return _.g$("SBOX_INAPPROPRIATE_CANCEL")}}),
_.x("design:type",String)],dA.prototype,"closeButtonAriaLabel",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],dA.prototype,"darkerDarkTheme",void 0);_.H([_.rd("#scrollable"),_.x("design:type",Object)],dA.prototype,"scrollable",void 0);_.H([_.rd("ytd-sponsorship-confirm-cancel-content"),_.x("design:type",Object)],dA.prototype,"content",void 0);
_.H([_.VU("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],dA.prototype,"onYtPopupOpened",null);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],dA.prototype,"onYtPopupClosed",null);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],dA.prototype,"onYtServiceRequestCompleted",null);_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],dA.prototype,"onYtServiceRequestError",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dA.prototype,"onDataChanged",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],dA);
_.D(dA,"ytd-sponsorship-confirm-cancel-renderer",function(){if(o2O!==void 0)return o2O;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <tp-yt-paper-icon-button aria-label$="[[closeButtonAriaLabel]]" dialog-dismiss="" icon="yt-icons:dismissal" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></tp-yt-paper-icon-button>\n  </div>\n  <div class="avatar-support style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <template is="dom-if" restamp="" if="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]">\n      </yt-img-shadow>\n      <yt-icon class="membership-icon style-scope ytd-sponsorship-confirm-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    </template>\n    <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.channelThumbnail]]">\n    </yt-img-shadow>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <div id="title" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></yt-formatted-string>\n    </div>\n    <ytd-sponsorship-confirm-cancel-content data="[[data]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    </ytd-sponsorship-confirm-cancel-content>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div class="footer style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="confirm-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return o2O=p},{mode:_.ZS("kevlar_poly_si_batch_j081")?1:2});var zl6;var OD=function(){var p=_.w.apply(this,arguments)||this;p.darkerDarkTheme=_.n("web_darker_dark_theme");return p};
_.A(OD,_.w);OD.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],OD.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],OD.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],OD.prototype,"darkerDarkTheme",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],OD);
_.D(OD,"ytd-sponsorships-celebration-content",function(){if(zl6!==void 0)return zl6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-celebration-content"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return zl6=
p},{mode:1});var YNR;var InT=_.c0(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),oh=function(){var p=_.w.apply(this,arguments)||this;p.scriptsAppended=!1;p.buttonOverrides={type:"tonal",style:"overlay-dark"};return p};
_.A(oh,_.w);_.J=oh.prototype;
_.J.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.n("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onDataChanged=function(){var p;(p=this.header)==null||p.style.setProperty("background-color",this.backgroundColor);if(p=this.headerImageUrl){var y;(y=this.header)==null||y.style.setProperty("background-image",p)}y=_.B2(4);p=_.xc(4);var l=this.get("data.trackingParams");if(l&&p&&y){var q=_.Tp(l);_.pW(y,p,q);_.n("combine_ve_grafts")?_.Ll().graftServerVe(l,p,4):_.pW(y,p,q)}y=_.c(this.hostElement.querySelectorAll("yt-img-shadow"));for(p=y.next();!p.done;p=y.next())p.value.onShow();if(y=this.get("data.gtmId"))_.vF(y,
_.OY("GL","")),this.setupConversionTracking()};
_.J.setupConversionTracking=function(){if(!this.scriptsAppended){var p=document.createElement("script");var y=_.Jw(InT.join(""));_.cH(p,y);document.head.appendChild(p);p=document.createElement("noscript");p.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TGBSZFB" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(p);this.scriptsAppended=!0}};
_.J.onPopupClosed=function(p){if(_.cm(p).localName==="ytd-sponsorships-celebration-renderer"){_.$w(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var y;this.data&&((y=this.data)==null?0:y.dismissCommand)&&_.wW.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Jh.Object.defineProperties(oh.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var p=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Y9(p)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var p=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return p?"url("+_.nY(p,this.hostElement.getBoundingClientRect().width)+")":""}}});
oh.prototype.onPopupClosed=oh.prototype.onPopupClosed;oh.prototype.onDataChanged=oh.prototype.onDataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],oh.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],oh.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],oh.prototype,"data",void 0);_.H([_.rd("#header"),_.x("design:type",HTMLElement)],oh.prototype,"header",void 0);
_.H([_.Q(),_.x("design:type",Object)],oh.prototype,"scriptsAppended",void 0);_.H([_.Q(),_.x("design:type",Object)],oh.prototype,"buttonOverrides",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oh.prototype,"onDataChanged",null);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],oh.prototype,"onPopupClosed",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],oh);
_.D(oh,"ytd-sponsorships-celebration-renderer",function(){if(YNR!==void 0)return YNR;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return YNR=p},{mode:1});var ppi;var zx=function(){var p=_.w.apply(this,arguments)||this;p.isToggleChecked=!1;return p};
_.A(zx,_.w);zx.prototype.onDataChanged=function(){var p;this.isToggleChecked=((p=this.data)==null?void 0:p.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
zx.prototype.close=function(){var p;((p=this.data)==null?0:p.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
zx.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var p,y=_.G((p=this.data)==null?void 0:p.switchButton,BB7);y&&(this.isToggleChecked&&y.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(y.switchOnInnertubeCommand),!this.isToggleChecked&&y.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(y.switchOffInnertubeCommand))};
zx.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zx.prototype.onDataChanged=zx.prototype.onDataChanged;_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],zx.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],zx.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],zx.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],zx.prototype,"isToggleChecked",void 0);_.H([_.Q({value:_.g$("CLOSE")}),_.x("design:type",String)],zx.prototype,"closeButtonAriaLabel",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zx.prototype,"onDataChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],zx);
_.D(zx,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(ppi!==void 0)return ppi;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-gifting-opt-in-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-icon icon="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="content" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <div id="header" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-img-shadow class="thumbnail style-scope ytd-sponsorships-gifting-opt-in-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n  </div>\n  <div id="optin" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <div id="title" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <yt-formatted-string class="title style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="subtitle style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.subtitle]]">\n      </yt-formatted-string>\n    </div>\n    <div id="toggle" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <ytcp-ve track-click="true" ve-type="[[ve.client.SPONSORSHIPS_GIFTING_OPT_IN_DIALOG_TOGGLE_BUTTON]]" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n        <tp-yt-paper-toggle-button class="toggle style-scope ytd-sponsorships-gifting-opt-in-renderer" checked="[[isToggleChecked]]" on-click="handleOptInToggle">\n        </tp-yt-paper-toggle-button>\n      </ytcp-ve>\n    </div>\n  </div>\n  <div class="separator style-scope ytd-sponsorships-gifting-opt-in-renderer"></div>\n  <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.disclaimer]]">\n  </yt-formatted-string>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return ppi=p},{mode:1});var ytw;var YN=function(){return _.w.apply(this,arguments)||this};
_.A(YN,_.w);_.J=YN.prototype;_.J.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.header.sponsorshipsHeaderRenderer.menuButton":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.detached=function(){this.playerElement.stop()};
_.J.onYtServiceRequestCompleted=function(){_.$w(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.J.onYtServiceRequestError=function(p){_.Wn(this.hostElement,p.detail.error.message)};
_.J.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.J.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.J.getTier=function(p,y){return!p||!p.tiers||y<0?null:_.G(p.tiers[y],dBw)};
_.J.moreThanOne=function(p){return!!(p&&p.length>1)};
_.J.tierOverviewTap=function(p){var y=this;this.selectedTier=p.model.index;_.th(this,function(){_.Ub(y.hostElement,"yt-refit")})};
_.J.computeSelectedClass=function(p,y){return this.isSelected(p,y)?"selected":""};
_.J.computeButtonAriaPressed=function(p,y){return this.isSelected(p,y)?"true":"false"};
_.J.isSelected=function(p,y){return p===y};
_.J.onDataChanged=function(){_.jR(this.hostElement).querySelector("#header-overlay").style.visibility="";_.jR(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition");this.offerVideo=this.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.externalVideoId");this.setHeaderBackground();this.initializeVe(this.offerVideo);this.offerVideo&&this.setupVideoPlayer(this.offerVideo);for(var p=_.c(this.hostElement.querySelectorAll("yt-img-shadow")),
y=p.next();!y.done;y=p.next())y.value.onShow();var l;this.set("selectedTier",(l=this.get("data.targetTierIndex"))!=null?l:0);var q;(p=(q=this.data)==null?void 0:q.onVisible)&&this.ytComponentBehavior.resolveCommand(p)};
_.J.initializeVe=function(p){var y=_.B2(),l=_.xc(),q=this.get("data.trackingParams");l&&y&&(this.screenLayer=4,y=_.YZ(_.q4m)(void 0,69877,{clientScreenNonce:y,visualElement:l},void 0,void 0,void 0),_.v2(y,69877,4),l=_.xc(4),q&&l&&(q=_.Tp(q),_.pW(y,l,q),p&&(this.offerVideoVe=_.fY(74659),_.pW(y,q,this.offerVideoVe))))};
_.J.setHeaderBackground=function(){var p=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.jR(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Y9(p);if(p=this.getHeaderImage())p=_.nY(p,screen.width),_.jR(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+p+")"};
_.J.getHeaderImage=function(){var p=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&p?p:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.J.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.J.setupVideoPlayer=function(p){var y=this,l,q,t,E;return _.h(function(e){if(e.nextAddress==1)return l=y.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),q=y.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.n("kevlar_player_update_killswitch")?y.playerElement.update({args:{autoplay:l,video_id:p,player_params:q}}):y.playerElement.loadVideoWithPlayerVars({autoplay:l,video_id:p,player_params:q}),
e.yield(y.playerElement.getPlayerPromise(),2);t=e.yieldResult;t.addEventListener("onStateChange",function(C){y.onPlayerStateChange(C)});
t.setScreenLayer(y.screenLayer);(E=_.B2(4))&&y.offerVideoVe&&_.la(E,y.offerVideoVe);l&&(y.pauseOtherPlayers(),y.playerElement.focusOnPlayer(),y.playerElement.getPlayer().hideControls(),_.rJ(_.TR,function(){y.fadeOutHeaderOverlay()},4E3));
_.rR(e)})};
_.J.onPlayerStateChange=function(p){p===1?this.backgroundPlayerElement&&(p=this.backgroundPlayerElement.player_.getPlayerState(),p!==1&&p!==3||this.backgroundPlayerElement.pause()):p===0&&(_.jR(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.jR(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.J.fadeOutHeaderOverlay=function(){_.jR(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.J.onHeaderTap=function(){if(this.offerVideo){_.jR(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var p;((p=this.playerElement.player_)==null?void 0:p.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(p=_.B2(4))&&this.offerVideoVe&&_.te(p,this.offerVideoVe)}};
_.J.getBackgroundImageLayerClass=function(p){return p?"background-image-layer-with-video":""};
_.J.getHeaderClass=function(p){return p?"header-with-video":""};
_.J.getHeaderOverlayClass=function(p){return p?"header-overlay-with-video":""};
_.J.getTitleContainerClass=function(p,y){return p?"title-container-with-video":y?"title-container-without-video-flexible":"title-container-without-video"};
_.J.tierTitleDisplayStatus=function(p){return this.moreThanOne(p)?"hide":"show"};
_.J.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.WC().resolve(_.IA).getPlayerElement():this.backgroundPlayerElement=_.$o();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var p=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=p===1||p===3;this.backgroundPlayerElement.pause()}};
_.J.isMiniplayerActive=function(){return _.WC().resolve(_.IA).isMiniplayerActive()};
_.J.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JC("selected-tier-changed",this.selectedTier))};
YN.prototype.selectedTierChangedForBinding=YN.prototype.selectedTierChangedForBinding;YN.prototype.onDataChanged=YN.prototype.onDataChanged;YN.prototype.onYtPopupClosed=YN.prototype.onYtPopupClosed;YN.prototype.onYtPopupOpened=YN.prototype.onYtPopupOpened;YN.prototype.onYtServiceRequestError=YN.prototype.onYtServiceRequestError;YN.prototype.onYtServiceRequestCompleted=YN.prototype.onYtServiceRequestCompleted;
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],YN.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],YN.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],YN.prototype,"data",void 0);_.H([_.Q({value:0}),_.x("design:type",Number)],YN.prototype,"selectedTier",void 0);
_.H([_.Q({value:""}),_.x("design:type",String)],YN.prototype,"offerVideo",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],YN.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.H([_.Q({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.qO(this)}}),
_.x("design:type",String)],YN.prototype,"playerId",void 0);_.H([_.rd("tp-yt-paper-dialog-scrollable"),_.x("design:type",Object)],YN.prototype,"scrollable",void 0);_.H([_.rd("ytd-sponsorships-tier-renderer"),_.x("design:type",Object)],YN.prototype,"tierRenderer",void 0);_.H([_.rd("#player"),_.x("design:type",Object)],YN.prototype,"playerElement",void 0);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],YN.prototype,"onYtServiceRequestCompleted",null);_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],YN.prototype,"onYtServiceRequestError",null);
_.H([_.VU("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YN.prototype,"onYtPopupOpened",null);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YN.prototype,"onYtPopupClosed",null);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YN.prototype,"onDataChanged",null);
_.H([_.gd("selectedTier"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YN.prototype,"selectedTierChangedForBinding",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],YN);
_.D(YN,"ytd-sponsorships-offer-renderer",function(){if(ytw!==void 0)return ytw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="titlebar-text" class="style-scope ytd-sponsorships-offer-renderer">\n    <yt-formatted-string text="[[data.header.sponsorshipsHeaderRenderer.titlebarText]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-offer-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="header" class$="[[getHeaderClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n    <div id="header-overlay" on-click="onHeaderTap" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="header-title-overlay" class$="[[getHeaderOverlayClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n        <div id="avatar-container" class="style-scope ytd-sponsorships-offer-renderer">\n          <yt-img-shadow class="avatar style-scope ytd-sponsorships-offer-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n          </yt-img-shadow>\n        </div>\n        <div class$="title-container [[getTitleContainerClass(offerVideo,\n            data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode)]] style-scope ytd-sponsorships-offer-renderer">\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.superTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="background-image-layer" class$="[[getBackgroundImageLayerClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer"></div>\n    </div>\n    <div id="video-container" hidden$="[[!offerVideo]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SPONSORSHIPS_OFFER" player-id="[[playerId]]" class="style-scope ytd-sponsorships-offer-renderer">\n      </ytd-player>\n    </div>\n  </div>\n  <div id="alert-renderer" hidden="[[!data.alert]]" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="content" class="style-scope ytd-sponsorships-offer-renderer">\n    <template is="dom-if" if="[[moreThanOne(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="tier-overview" class="style-scope ytd-sponsorships-offer-renderer">\n        <template is="dom-repeat" items="[[data.tiers]]" as="tier" class="style-scope ytd-sponsorships-offer-renderer">\n          <button class$="offer-overview-item [[computeSelectedClass(index, selectedTier)]] style-scope ytd-sponsorships-offer-renderer" aria-pressed="[[computeButtonAriaPressed(index, selectedTier)]]" on-click="tierOverviewTap">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.subtitle]]">\n            </yt-formatted-string>\n          </button>\n        </template>\n      </div>\n    </template>\n    <ytd-sponsorships-tier-renderer id="tier" data="[[getTier(data, selectedTier)]]" titledisplaystatus="[[tierTitleDisplayStatus(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </ytd-sponsorships-tier-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return ytw=p},{mode:_.ZS("kevlar_poly_si_batch_j077")?1:2});var lD9;var Ih=function(){var p=_.w.apply(this,arguments)||this;p.buttonOverrides={type:"filled",style:"mono"};return p};
_.A(Ih,_.w);Ih.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}}}}}};
Ih.prototype.backgroundColorChanged=function(){var p,y,l,q=(y=_.G((p=this.data)==null?void 0:p.content,OIO))==null?void 0:(l=y.backgroundColor)==null?void 0:l.backgroundColor;q&&(p=_.z5(q),_.jR(this.hostElement).querySelector("#banner").style.backgroundColor=p,_.jR(this.hostElement).querySelector("#abstract-art").style.backgroundColor=p)};
Ih.prototype.attached=function(){this.JSC$20443_scroller&&(this.JSC$20443_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20443_scroller.attached&&typeof this.JSC$20443_scroller.attached==="function"&&this.JSC$20443_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ih.prototype.backgroundColorChanged=Ih.prototype.backgroundColorChanged;_.H([_.Q(),_.x("design:type",Object)],Ih.prototype,"data",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Ih.prototype,"ytRendererstamperBehavior",void 0);_.H([_.rd("#scroller"),_.x("design:type",Object)],Ih.prototype,"JSC$20443_scroller",void 0);_.H([_.Q(),_.x("design:type",Object)],Ih.prototype,"buttonOverrides",void 0);
_.H([_.gd("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ih.prototype,"backgroundColorChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],Ih);
_.D(Ih,"ytd-sponsorships-promotion-celebration-renderer",function(){if(lD9!==void 0)return lD9;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n   <div id="dismiss-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n   <div id="header" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <yt-img-shadow class="premium-icon style-scope ytd-sponsorships-promotion-celebration-renderer" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.icon]]">\n    </yt-img-shadow>\n    <yt-img-shadow class="illustration style-scope ytd-sponsorships-promotion-celebration-renderer" hidden="[[!data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-sponsorships-promotion-celebration-renderer" text="[[data.header.sponsorshipsPromotionHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-promotion-celebration-renderer" split-lines="" text="[[data.header.sponsorshipsPromotionHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n  <div id="banner" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <div id="content" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="content-background" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow id="abstract-art" fit-height="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.backgroundImage]]" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        </yt-img-shadow>\n      </div>\n      <div id="subcontent" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow class="channel-image style-scope ytd-sponsorships-promotion-celebration-renderer" fit="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.channelImage]]">\n        </yt-img-shadow>\n        <div class="channel-info style-scope ytd-sponsorships-promotion-celebration-renderer">\n          <yt-formatted-string class="channel-info-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.channelTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="membership-detail style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" hidden="[[!data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]" text="[[data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="button-bar" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="primary-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n    </div>\n  </div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return lD9=p},{mode:_.ZS("kevlar_poly_si_batch_j077")?1:2});var qi9;var sOV;var pN=function(){return _.w.apply(this,arguments)||this};
_.A(pN,_.w);pN.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
pN.prototype.computeIsInitiallyChecked=function(p){return p===1};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],pN.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],pN.prototype,"data",void 0);_.H([_.rd("#checkbox"),_.x("design:type",Object)],pN.prototype,"checkbox",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],pN);
_.D(pN,"ytd-subscription-toggle-option-renderer",function(){if(sOV!==void 0)return sOV;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[computeIsInitiallyChecked(data.initialValue)]]" class="style-scope ytd-subscription-toggle-option-renderer">\n  [[getSimpleString(data.label)]]\n</tp-yt-paper-checkbox>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return sOV=p},{mode:1});var y5=function(){var p=_.w.apply(this,arguments)||this;p.darkerDarkTheme=_.n("web_darker_dark_theme");p.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return p};
_.A(y5,_.w);y5.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"}}}};
y5.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
y5.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var p=_.jR(this.hostElement).querySelector("#options").selected;p=this.data.options[p].subscriptionRadioOptionRenderer.serviceEndpoint;var y=_.jR(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");y&&p&&p.modifyChannelNotificationPreferenceEndpoint&&(y=y.getValue())&&(p.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[y]);_.WC().resolve(_.aK).resolveCommand(p,{form:{element:this.hostElement}});
_.$w(this.hostElement,"yt-close-popup-action")};
_.Jh.Object.defineProperties(y5.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var p=this.data.options,y=0;y<p.length;y++){var l=p[y].subscriptionRadioOptionRenderer;if(l&&l.selected)return y}return null}}});
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],y5.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],y5.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],y5.prototype,"eventForwardingBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],y5.prototype,"ytRendererBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],y5.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],y5.prototype,"darkerDarkTheme",void 0);_.H([_.g("data.options"),_.x("design:type",Object),_.x("design:paramtypes",[])],y5.prototype,"initialIndex",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],y5);
_.D(y5,"ytd-subscription-notification-options-renderer",function(){if(qi9!==void 0)return qi9;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-subscription-notification-options-renderer">[[getSimpleString(data.title)]]</div>\n<div id="body" class="style-scope ytd-subscription-notification-options-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[initialIndex]]" class="style-scope ytd-subscription-notification-options-renderer">\n    <template is="dom-repeat" items="[[data.options]]" class="style-scope ytd-subscription-notification-options-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" value="[[item.subscriptionRadioOptionRenderer.serviceEndpoint]]" class="style-scope ytd-subscription-notification-options-renderer">\n        <div class="content style-scope ytd-subscription-notification-options-renderer">\n          <div class="label style-scope ytd-subscription-notification-options-renderer">\n            [[getSimpleString(item.subscriptionRadioOptionRenderer.text)]]\n          </div>\n          <yt-icon icon="[[item.subscriptionRadioOptionRenderer.choiceIcon.iconType]]" class="style-scope ytd-subscription-notification-options-renderer">\n          </yt-icon>\n        </div>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n  <div id="secondary-options" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n<div class="buttons style-scope ytd-subscription-notification-options-renderer">\n  <div id="cancel-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n  <div id="confirm-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return qi9=p},{mode:1});var t9w;var lr=function(){return _.w.apply(this,arguments)||this};
_.A(lr,_.w);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],lr.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],lr.prototype,"data",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],lr);
_.D(lr,"ytd-tvfilm-offer-groups-renderer",function(){if(t9w!==void 0)return t9w;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-groups-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.offerGroups]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n  <div class="offer-group style-scope ytd-tvfilm-offer-groups-renderer">\n    <div class="offer-header style-scope ytd-tvfilm-offer-groups-renderer">\n      <h2 class="offer-title style-scope ytd-tvfilm-offer-groups-renderer">[[getSimpleString(item.offerGroupRenderer.title)]]</h2>\n      <h3 class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <yt-formatted-string class="offer-subtitle standard-text style-scope ytd-tvfilm-offer-groups-renderer" split-lines="" text="[[item.offerGroupRenderer.subtitle]]">\n        </yt-formatted-string>\n      </h3>\n    </div>\n    <div class="offer-list style-scope ytd-tvfilm-offer-groups-renderer">\n      <template is="dom-repeat" items="[[item.offerGroupRenderer.offers]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <ytd-button-renderer class="offer-button style-scope ytd-tvfilm-offer-groups-renderer" data="[[item.buttonRenderer]]" dialog-dismiss="true" ellipsis-truncate="">\n        </ytd-button-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return t9w=p},{mode:1});var E4d;var qq=function(){var p=_.w.apply(this,arguments)||this;p.darkerDarkTheme=_.n("web_darker_dark_theme");return p};
_.A(qq,_.w);_.J=qq.prototype;_.J.configureRendererStamper=function(){return{"data.offers":{id:"offers",mapping:{tvfilmOffersRenderer:{component:"ytd-tvfilm-offer-groups-renderer"}}},"data.coupon":{id:"coupon",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.J.computeThumbnailClass=function(p){return p.thumbnailOverlays?p.isShow?"thumbnail-show":"thumbnail-movie":p.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.J.computeCommerceSectionClass=function(p){return p.offers&&p.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.J.computeTitleClass=function(p){return p.offers&&p.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.J.onDataChanged=function(){[].concat(_.xq(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(p){p.onShow()})};
qq.prototype.onDataChanged=qq.prototype.onDataChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],qq.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],qq.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],qq.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],qq.prototype,"darkerDarkTheme",void 0);
_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qq.prototype,"onDataChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],qq);
_.D(qq,"ytd-ypc-offers-overlay-renderer",function(){if(E4d!==void 0)return E4d;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offers-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer"></tp-yt-paper-spinner>\n</div>\n<div class="content style-scope ytd-ypc-offers-overlay-renderer" hidden="[[data.showLoadingSpinner]]">\n  <div class="header style-scope ytd-ypc-offers-overlay-renderer" hidden="[[!data.title]]">\n    <div class="metadata style-scope ytd-ypc-offers-overlay-renderer">\n      <div class$="title-badge [[computeTitleClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n    </div>\n    <template is="dom-if" if="[[data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div class="content-dismiss-section style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="thumbnail-commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <div id="thumbnail" class$="[[computeThumbnailClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <yt-img-shadow id="thumbnail-image" fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n        </yt-img-shadow>\n        <div id="overlays" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n      </div>\n      <div id="commerce-metadata-section" class$="[[computeCommerceSectionClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <div id="commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <div id="offers" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n        </div>\n        <div id="badges-metadata-section" hidden="[[!data.badges]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <hr class="metadata-separator-line style-scope ytd-ypc-offers-overlay-renderer">\n          <ytd-badge-supported-renderer class="left-aligned-badges style-scope ytd-ypc-offers-overlay-renderer" badges="[[data.badges]]">\n          </ytd-badge-supported-renderer>\n          <div class="subtitle standard-text style-scope ytd-ypc-offers-overlay-renderer">[[getSimpleString(data.metadata)]]</div>\n        </div>\n      </div>\n    </div>\n    <template is="dom-if" if="[[!data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <yt-formatted-string class="info-section standard-text style-scope ytd-ypc-offers-overlay-renderer" text="[[data.additionalInfo]]">\n  </yt-formatted-string>\n\n  <div class="footer style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="coupon" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n    <ytd-button-renderer id="help-button" data="[[data.helpButton.buttonRenderer]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return E4d=p},{mode:_.ZS("kevlar_poly_si_batch_j028")?1:2});var JtO;var ctR=function(){this.usedMethods=new Set};
ctR.prototype.add=function(p){this.usedMethods.add(p)};
ctR.prototype.reset=function(){this.usedMethods.clear()};var CPu=function(p,y){this.query=p;this.previousSearchQuery=y;this.id=eeT++;if(!heT){y=_.OY("SBOX_SETTINGS");p="https://"+((y==null?void 0:y.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var l=y==null?void 0:y.REQUEST_LANGUAGE;l&&(p+="&hl="+l);(l=y==null?void 0:y.REQUEST_DOMAIN)&&(p+="&gl="+l);p+="&client=youtube&gs_ri=youtube";(l=y==null?void 0:y.SUGG_EXP_ID)&&(p+="&sugexp="+encodeURIComponent(l));(l=y==null?void 0:y.PSUGGEST_TOKEN)&&(p+="&tok="+l);(y=
y==null?void 0:y.SESSION_INDEX)&&(p+="&authuser="+y);_.n("desktop_enable_visual_suggest")&&(p+="&h=180&w=320&ytvs=1");heT=p}},uO1=function(p){var y="q="+encodeURIComponent(p.query);
p.previousSearchQuery&&(y+="&pq="+encodeURIComponent(p.previousSearchQuery));return y},Rew=function(){var p=_.OY("SBOX_SETTINGS"),y={};
if(p==null?0:p.SEND_VISITOR_DATA)y["X-Goog-Visitor-Id"]=p==null?void 0:p.VISITOR_DATA;return y},WEL=function(p){var y=heT;
y+="&gs_id="+p.id.toString(36);y+="&q="+encodeURIComponent(p.query);y+="&cp="+p.query.length;p.previousSearchQuery&&(y+="&pq="+encodeURIComponent(p.previousSearchQuery));(p=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(y+="&video_id="+p);return y},eeT=0,heT="";var aDd=_.R1.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,muT=_.R1.SEARCH_ENTITY_SUGGESTION_MOVIE,Uuw=_.R1.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,$uw=_.R1.SEARCH_ENTITY_SUGGESTION_TV_SHOW,jOm=function(p,y){this.text=p;this.bold=y},bs7=function(p,y,l){this.input=y;
this.index=l;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=p[0];this.type=p[1];this.subtypes=p[2];var q;this.displayText=Gn((q=p[3])==null?void 0:q.b);var t;this.ignoredPrefix=Gn((t=p[3])==null?void 0:t.a);var E,e;this.hasNewVideo=((E=p[3])==null?void 0:(e=E.zam)==null?void 0:e.toString())==="true"?!0:!1;var C;this.visualSuggestUrl=(C=p[3])==null?void 0:C.zai;var u;this.entityType=Gn((u=p[3])==null?void 0:u.zap);var a;this.entityName=Gn((a=p[3])==null?void 0:a.zao);var m;y=Gn((m=
p[3])==null?void 0:m.zaf);var U;this.entityMid=(U=p[3])==null?void 0:U.zae;m=clO(this.subtypes,this.entityMid);if(y&&m){if(y){U="";switch(m){case "YOUTUBE_ENTITY_TYPE_SONG":U=Uuw;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":U=aDd;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":U=$uw;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":U=muT}m=m==="YOUTUBE_ENTITY_TYPE_SONG"||m==="YOUTUBE_ENTITY_TYPE_ALBUM"?U+" \u2022  \u2022 "+y:y}else m="";this.entitySubtitle=m}var b;this.externalChannelId=(b=p[3])==null?void 0:b.zav;var P;
this.entityThumbnailAttributionUrl=(P=p[3])==null?void 0:P.zaq},GFT=function(p,y){var l=[],q,t=(q=p.displayText)!=null?q:p.text;
(y==null?0:y.useEntityName)&&n47(p)&&p.entityName&&(t=p.entityName);if(p.type===33)return l.push(new jOm(t,!1)),l;if(t.length>=p.input.length&&t.substring(0,p.input.length)===p.input)l.push(new jOm(p.input,!1)),l.push(new jOm(t.substring(p.input.length),!0));else{var E=new Set(p.input.split(/\s/)),e=t.split(/\s/);l=e.map(function(C,u){return new jOm(C.trim()+(u===e.length-1?"":" "),!E.has(C))})}return l},n47=function(p){var y=!!clO(p.subtypes);
p=!!p.entityMid;return y||p};var PPA=function(p){this.rawResponse=["",[],{}];this.suggestions=[];try{var y=JSON.parse(eUd(p));if(typeof y==="object"&&y!==null)this.rawResponse=y;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(q){console.log("Suggest: Failed to parse SuggestResponse!");return}var l=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(q,t){return new bs7(q,l,t)})};var AtV=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new ctR;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20480_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},Zs6,M9d=function(){Zs6||(Zs6=new AtV);
return Zs6};
AtV.prototype.updateSuggestions=function(p){var y=this;this.availableSuggestions.forEach(function(l){y.previousSuggestions[l]=!0});
this.availableSuggestions=p.map(function(l){var q=l.type.toString();l.subtypes.length>0&&(q+="i"+l.subtypes.join("i"),q+="k"+l.suggestionSources.COMPLETE_SERVER.toString());return q})};
var V9m=function(p,y){var l=Date.now();p.firstEditTime<0&&(p.firstEditTime=l);y&&(p.lastQueryBuildTime=l);p.lastEditTime=l};
AtV.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20480_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var g4O=function(p){var y="";p.availableSuggestions.forEach(function(t){delete p.previousSuggestions[t]});
for(var l=_.c(Object.keys(p.previousSuggestions)),q=l.next();!q.done;q=l.next())q=q.value,p.previousSuggestions[q]&&(y+=(y?"j":"")+q);return y},QO9=function(p,y){var l=[];
y&&(l[1]=y.toString());l[0]="youtube";l[7]=Date.now()-p.startTime;l[6]=p.sessionNumber;p.zeroPrefixSuggestionCount>=0&&(l[33]=p.zeroPrefixSuggestionCount);l[13]=p.outOfSyncResponseCount;if(p.availableSuggestions.length>0){for(var q=y="",t=0,E=_.c(p.availableSuggestions),e=E.next();!e.done;e=E.next())e=e.value,e!==q&&(t>1&&(y+="l"+t),y+=(q?"j":"")+e,t=0,q=e),t+=1;t>1&&(y+="l"+t);l[3]=y}l[35]=g4O(p);p.selectedSuggestionIndex>=0&&(l[2]=p.selectedSuggestionIndex);var C;if(y=(C=_.OY("SBOX_SETTINGS"))==
null?void 0:C.SUGG_EXP_ID)l[19]=p.normalize(y),C=0,p.experimentTriggeredBeforeFinal&&(C|=1),p.experimentTriggeredFinal&&(C|=2),l[20]=C;l[26]=Array.from(p.inputMethodsTracker.usedMethods).join("j");if(p.JSC$20480_totalRoundTripTime>0){l[15]=p.JSC$20480_totalRoundTripTime;l[14]=p.maxRoundTripTime;C=[];for(t=y=0;t<10;t++)q=p.roundTripTimeHistogram[t],q===0?y++:(y>1?C.push(t+"-"+q):y===1?C.push("0j"+q):C.push(q.toString()),y=0);C=C.join("j");l[16]=C}p.zeroPrefixRoundTripTime>0&&(l[36]=p.zeroPrefixRoundTripTime);
p.lastQueryBuildTime>0&&(l[18]=p.lastQueryBuildTime-p.startTime);p.firstEditTime>0&&(l[4]=p.firstEditTime-p.startTime);p.lastEditTime>0&&(l[5]=p.lastEditTime-p.startTime);return l.join(".")};
AtV.prototype.normalize=function(p){return p.replaceAll(".","-")};
var KEw=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var sq=function(){var p=_.w.apply(this,arguments)||this;p.microphoneSpinnerActive=!1;p.noAnimations=!1;p.boundExitClick=function(){p.onExitButtonClick()};
p.speechOverlayClassName="";p.isLevelAnimating=!1;p.playCloseDialogAudioFeedback=!0;p.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return p};
_.A(sq,_.w);_.J=sq.prototype;_.J.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.J.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=jb1()};
_.J.dataChanged=function(){this.logDialog()};
_.J.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var p;(p=this.manager.audioPlayer)!=null&&(p.JSC$19770_audioEnabled=!1)}this.manager.stop();(p=this.manager.audioPlayer)!=null&&(p.JSC$19770_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.J.handleSpeechQueryCompleteAction=function(p){var y=p.navigationAction;y&&(p.trackingParams&&_.Ll().graftServerVe(p.trackingParams,this.dialogVe,5),_.Ub(this.hostElement,"yt-navigate",{endpoint:y,tempData:this.getNavigationParams(y),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.J.onExitButtonClick=function(){this.closeDialog()};
_.J.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var p;if((p=this.manager)!=null){var y;(y=p.audioPlayer)==null||sF(y,"failure");p.setState("microphone-off");p.stop()}}else(p=this.manager)==null||p.start()};
_.J.transcriptionChanged=function(){var p,y;(((p=this.transcription)==null?0:p.low)||((y=this.transcription)==null?0:y.high))&&this.setState("transcribing",this.transcription)};
_.J.stateChanged=function(){this.setState(this.state,this.transcription)};
_.J.logDialog=function(){var p;(p=this.data)!=null&&p.trackingParams&&(p=_.Ll(),_.Mb(p,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=p.graftServerVe(this.data.trackingParams,void 0,5))};
_.J.getNavigationParams=function(p){var y={};if(_.n("web_yt_searchbox")){var l=M9d();l.inputMethodsTracker.add(6);l=QO9(l,15);y.gs_l=l;var q;y.oq=((q=_.G(p,_.iS))==null?void 0:q.query)||""}else if(p=window.ytvoicesearchloggingparams){if(p=p())y.oq=p.oq,y.gs_l=p.gs_l}else _.ph(Error("nl"));return y};
_.J.closeDialog=function(){_.$w(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.J.setState=function(p,y){if(this.data){var l=this.data,q={};switch(p){case "listening":q={headerText:l.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:l.microphoneButtonAriaLabel};break;case "timeout":q={headerText:l.promptHeader,microphoneState:"try-again",microphoneLabel:l.promptMicrophoneLabel,microphoneAriaLabel:l.promptMicrophoneLabel};break;case "microphone-off":q={headerText:l.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:l.promptMicrophoneLabel,
microphoneAriaLabel:l.promptMicrophoneLabel};break;case "transcribing":(y==null?0:y.low)||(y==null?0:y.high)?q={transcriptionLow:y==null?void 0:y.low,transcriptionHigh:y==null?void 0:y.high,microphoneState:"speaking",microphoneAriaLabel:l.microphoneButtonAriaLabel}:q={headerText:l.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:l.microphoneButtonAriaLabel};break;case "processing":q={headerText:l.loadingHeader,microphoneState:"processing",microphoneAriaLabel:l.microphoneButtonAriaLabel};
break;case "offline":q={headerText:l.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:l.connectionErrorMicrophoneLabel,microphoneAriaLabel:l.connectionErrorMicrophoneLabel};break;case "permission":q={headerText:l.permissionsHeader,bodyLine1:l.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:l.permissionsSubtext};break;case "permission-denied":q={headerText:l.disabledHeader,bodyLine1:l.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:l.disabledSubtext}}q.className=
p;this.speechOverlayState=q;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.J.setMicrophoneState=function(p){var y=this.isLevelAnimating;this.isLevelAnimating=p==="speaking";!y&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=p==="processing"&&!this.noAnimations};
_.J.setClass=function(p){this.speechOverlayClassName&&_.nv(this.hostElement,this.speechOverlayClassName,!1);p&&(this.speechOverlayClassName=p,_.nv(this.hostElement,p,!0))};
_.J.runLevelAnimation=function(){var p=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var y=1+Math.random()*.75,l=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+l/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+y+")");_.TR.addJob(function(){p.runLevelAnimation()},3,l)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
sq.prototype.stateChanged=sq.prototype.stateChanged;sq.prototype.transcriptionChanged=sq.prototype.transcriptionChanged;sq.prototype.onPopupClosed=sq.prototype.onPopupClosed;sq.prototype.dataChanged=sq.prototype.dataChanged;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],sq.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],sq.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],sq.prototype,"rendererStamperBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],sq.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],sq.prototype,"eventForwardingBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],sq.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],sq.prototype,"speechOverlayState",void 0);
_.H([_.Q(),_.x("design:type",Object)],sq.prototype,"microphoneSpinnerActive",void 0);_.H([_.Q({type:_.n("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.x("design:type",Object)],sq.prototype,"noAnimations",void 0);_.H([_.Q({selector:function(p){var y;return(y=p.voiceSearch)==null?void 0:y.transcription}}),
_.x("design:type",Object)],sq.prototype,"transcription",void 0);_.H([_.Q({selector:function(p){var y;return(y=p.voiceSearch)==null?void 0:y.overlay}}),
_.x("design:type",String)],sq.prototype,"state",void 0);_.H([_.Q(),_.x("design:type",Object)],sq.prototype,"boundExitClick",void 0);_.H([_.rd("#microphone-levels"),_.x("design:type",HTMLElement)],sq.prototype,"level",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sq.prototype,"dataChanged",null);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sq.prototype,"onPopupClosed",null);
_.H([_.k8("transcription"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sq.prototype,"transcriptionChanged",null);_.H([_.k8("state"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sq.prototype,"stateChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],sq);
_.D(sq,"ytd-voice-search-dialog-renderer",function(){if(JtO!==void 0)return JtO;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-voice-search-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-voice-search-dialog-renderer">\n  <div id="header-text" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="prompt" hidden="[[!speechOverlayState.headerText]]" class="style-scope ytd-voice-search-dialog-renderer">\n      [[getSimpleString(speechOverlayState.headerText)]]\n    </div>\n    <div id="transcription-high" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionHigh]]</div>\n    <div id="transcription-low" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionLow]]</div>\n  </div>\n  <div id="exit-button" class="style-scope ytd-voice-search-dialog-renderer"></div>\n</div>\n<div id="body" class="style-scope ytd-voice-search-dialog-renderer">\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine1)]]</div>\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine2)]]</div>\n</div>\n<div id="microphone" state$="[[speechOverlayState.microphoneState]]" class="style-scope ytd-voice-search-dialog-renderer">\n  <tp-yt-paper-spinner-lite active="[[microphoneSpinnerActive]]" class="style-scope ytd-voice-search-dialog-renderer">\n  </tp-yt-paper-spinner-lite>\n  <div id="microphone-container" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="microphone-pulse" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-levels" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-circle" aria-label$="[[getSimpleString(speechOverlayState.microphoneAriaLabel)]]" role="button" tabindex="0" on-tap="onMicrophoneTap" class="style-scope ytd-voice-search-dialog-renderer">\n      <tp-yt-paper-ripple class="style-scope ytd-voice-search-dialog-renderer"></tp-yt-paper-ripple>\n      <yt-icon icon="yt-icons:microphone_on" class="style-scope ytd-voice-search-dialog-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="microphone-label" class="style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.microphoneLabel)]]</div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return JtO=p},{mode:1});var wpA;var td=function(){var p=_.w.apply(this,arguments)||this;p.isOverlay=!1;p.hidden=!1;return p};
_.A(td,_.w);_.J=td.prototype;_.J.onPopupClosed=function(){this.toggleIconState(!1)};
_.J.computeIcon=function(){var p,y,l;return(y=_.G((p=this.data)==null?void 0:p.icon,p_6))==null?void 0:(l=y.icon)==null?void 0:l.iconType};
_.J.computeIconBadgeShape=function(){var p;return{iconBadgeType:"cart",iconBadgeText:(p=this.iconBadgeEntity)==null?void 0:p.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.J.onClick=function(){var p;(p=this.data)!=null&&p.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.J.computeHidden=function(p){return!p};
_.J.toggleIconState=function(p){this.iconButton&&(this.iconButton.pressed=p)};
td.prototype.onPopupClosed=td.prototype.onPopupClosed;_.H([_.V(_.zL),_.x("design:type",Object)],td.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],td.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],td.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],td.prototype,"isOverlay",void 0);
_.H([_.Q({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.x("design:type",Object)],td.prototype,"hidden",void 0);_.H([_.Q({selectorArgs:["data.iconBadgeEntityKey"],selector:function(p,y){return _.Ae(p.entities,"iconBadgeEntity",y)}}),
_.x("design:type",Object)],td.prototype,"iconBadgeEntity",void 0);_.H([_.rd("yt-icon-button"),_.x("design:type",HTMLButtonElement)],td.prototype,"iconButton",void 0);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],td.prototype,"onPopupClosed",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],td);
_.D(td,"ytd-icon-badge-topbar-button-renderer",function(){if(wpA!==void 0)return wpA;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-icon-badge-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibilityData.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(iconBadgeEntity, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-icon-badge-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return wpA=p},{mode:1});var isR;var Eq=function(){var p=_.w.apply(this,arguments)||this;p.premiumOptions=[];p.darkerDarkTheme=_.n("web_darker_dark_theme");return p};
_.A(Eq,_.w);Eq.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Jh.Object.defineProperties(Eq.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Eq.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Eq.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Array)],Eq.prototype,"premiumOptions",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],Eq.prototype,"darkerDarkTheme",void 0);_.H([_.g("premiumOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],Eq.prototype,"hasPremiumOptions",null);
_.H([_.k({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],Eq);
_.D(Eq,"ytd-offline-promo-content",function(){if(isR!==void 0)return isR;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return isR=p},{mode:1});var rtd;var Jd=function(){var p=_.w.apply(this,arguments)||this;p.premiumOptions=[];return p};
_.A(Jd,_.w);Jd.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var p;this.premiumOptions=JlT((p=this.data)==null?void 0:p.formats)};
Jd.prototype.onClickSubmit=function(){_.$w(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var p;(p=_.$o())==null||p.pause()};
Jd.prototype.attached=function(){this.JSC$20500_scroller&&(this.JSC$20500_scroller.dialogElement=this.hostElement.parentNode)};
_.Jh.Object.defineProperties(Jd.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
Jd.prototype.dataChanged=Jd.prototype.dataChanged;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Jd.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Jd.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Jd.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Jd.prototype,"data",void 0);
_.H([_.Q({computed:"computeIcon_(data.headersIcon)",value:""}),_.x("design:type",String)],Jd.prototype,"headersIcon",void 0);_.H([_.Q(),_.x("design:type",Array)],Jd.prototype,"premiumOptions",void 0);_.H([_.rd("#scroller"),_.x("design:type",Object)],Jd.prototype,"JSC$20500_scroller",void 0);_.H([_.g("headersIcon"),_.x("design:type",Object),_.x("design:paramtypes",[])],Jd.prototype,"showIcon",null);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jd.prototype,"dataChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],Jd);
_.D(Jd,"ytd-offline-promo-renderer",function(){if(rtd!==void 0)return rtd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-offline-promo-renderer">\n<div id="container" class="style-scope ytd-offline-promo-renderer">\n<yt-icon id="headers-icon" hidden="[[!showIcon]]" icon="[[headersIcon]]" class="style-scope ytd-offline-promo-renderer"></yt-icon>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-offline-promo-renderer"></yt-formatted-string>\n<ytd-offline-promo-content data="[[data]]" premium-options="[[premiumOptions]]" class="style-scope ytd-offline-promo-renderer">\n</ytd-offline-promo-content>\n<div class="buttons style-scope ytd-offline-promo-renderer">\n  <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onClickSubmit" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n</div>\n</div>\n</tp-yt-paper-dialog-scrollable>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return rtd=p},{mode:1});var Siw;var cg=function(){var p=_.w.apply(this,arguments)||this;p.playbackPauseInterval=NaN;p.isLoading=!1;p.hasError=!1;p.dialogClass="";p.youtubeLabel=_.g$("LOGO_ALT_LABEL",{},"YouTube Home");p.logoName="yt-logos-ext:yt-logo-updated";p.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return p};
_.A(cg,_.w);_.J=cg.prototype;_.J.onDataChange=function(){var p;if(this.showEOMV1Text=!((p=this.data)==null||!p.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.J.attached=function(){this.pausePlayer()};
_.J.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.J.handleLangSelect=function(p){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[p.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.J.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.J.handleSaveConsent=function(p){var y=this;this.showLoadingSpinner();this.showLoadingSpinner();Htd(_.G(p,ySw)).catch(function(l){_.vs(new _.SM("Something went wrong when save consent "+(l.message?l.message:l)+"."));y.hideLoadingSpinner();y.showErrorMessage()})};
_.J.handleDisablePersonalization=function(p){var y=this;this.showLoadingSpinner();TF6(_.G(p,pFm)).then(function(){y.dialog.close();y.resumePlayer()}).catch(function(l){_.vs(new _.SM("Something went wrong when disable personalization "+(l.message?l.message:l)+"."));
y.hideLoadingSpinner();y.showErrorMessage()})};
_.J.showLoadingSpinner=function(){var p=this;this.showSpinnerJobId=_.TR.addLowPriorityJob(function(){p.isLoading=!0},500)};
_.J.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.TR.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.J.showErrorMessage=function(){var p=this;this.hasError=!0;_.TR.addLowPriorityJob(function(){p.hasError=!1},2E3)};
_.J.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Go(function(){try{var p=_.$o();p&&p.pause()}catch(y){}},100))};
_.J.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var p=_.$o();p&&p.play()}catch(y){}};
_.Jh.Object.defineProperties(cg.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.eomV1Text)return[];p=[];for(var y=["SHIELD","WARNING","BAR_CHART"],l=this.data.eomV1Text.essentialCookieMsg.items,q=0;q<y.length&&q<l.length;q++)p.push({icon:y[q],text:l[q]});return p}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.eomV1Text)return[];p=[];for(var y=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],l=this.data.eomV1Text.nonEssentialCookieMsg.items,q=0;q<y.length&&q<l.length;q++)p.push({icon:y[q],text:l[q]});return p}}});
cg.prototype.onDataChange=cg.prototype.onDataChange;_.H([_.Q(),_.x("design:type",Object)],cg.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Boolean)],cg.prototype,"showEOMV1Text",void 0);_.H([_.Q(),_.x("design:type",Object)],cg.prototype,"isLoading",void 0);_.H([_.Q(),_.x("design:type",Object)],cg.prototype,"hasError",void 0);_.H([_.Q(),_.x("design:type",Number)],cg.prototype,"showSpinnerJobId",void 0);_.H([_.Q(),_.x("design:type",Object)],cg.prototype,"dialogClass",void 0);
_.H([_.rd("#dialog"),_.x("design:type",Object)],cg.prototype,"dialog",void 0);_.H([_.rd("#cb-header"),_.x("design:type",HTMLElement)],cg.prototype,"header",void 0);_.H([_.rd("#lang-select"),_.x("design:type",HTMLElement)],cg.prototype,"langSelect",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],cg.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],cg.prototype,"ytComponentBehavior",void 0);
_.H([_.Q(),_.x("design:type",String)],cg.prototype,"youtubeLabel",void 0);_.H([_.Q(),_.x("design:type",Object)],cg.prototype,"logoName",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cg.prototype,"onDataChange",null);_.H([_.g("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],cg.prototype,"eomEssentialCookieMsgItems",null);
_.H([_.g("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],cg.prototype,"eomNonEssentialCookieMsgItems",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],cg);
_.D(cg,"ytd-consent-bump-v2-lightbox",function(){if(Siw!==void 0)return Siw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-lightbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog id="dialog" class$="[[dialogClass]] style-scope ytd-consent-bump-v2-lightbox" aria-labelledby="cb-header" modal="">\n  <div class="loading-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!isLoading]]">\n    <div class="style-scope ytd-consent-bump-v2-lightbox">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-consent-bump-v2-lightbox"></tp-yt-paper-spinner-lite>\n    </div>\n    <yt-formatted-string class="loading-message style-scope ytd-consent-bump-v2-lightbox" text="[[data.loadingMessage]]">\n    </yt-formatted-string>\n  </div>\n  <div class="error-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!hasError]]">\n    <div class="error-message style-scope ytd-consent-bump-v2-lightbox">\n      <yt-formatted-string text="[[data.errorMessage]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="topbar" class="style-scope ytd-consent-bump-v2-lightbox">\n    <div id="logoandaside" class="style-scope ytd-consent-bump-v2-lightbox">\n      <div id="icon-container" class="style-scope ytd-consent-bump-v2-lightbox">\n        <yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-consent-bump-v2-lightbox">\n        </yt-icon>\n      </div>\n      <yt-formatted-string class="logo-aside style-scope ytd-consent-bump-v2-lightbox" text="[[data.interstitialLogoAside]]"></yt-formatted-string>\n    </div>\n    <div class="top-buttons style-scope ytd-consent-bump-v2-lightbox">\n      <div class="lang-picker-container style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <ytd-button-renderer data="[[data.languagePickerButton.buttonRenderer]]" on-click="showLangPicker" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n        </div>\n        <div id="lang-select" class="style-scope ytd-consent-bump-v2-lightbox">\n          <select size="20" on-change="handleLangSelect" class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[data.languageList.dropdownRenderer.entries]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <template is="dom-if" if="[[item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option selected="" class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n              <template is="dom-if" if="[[!item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n            </template>\n          </select>\n        </div>\n      </div>\n\n      <div class="style-scope ytd-consent-bump-v2-lightbox">\n        <ytd-button-renderer class="signin style-scope ytd-consent-bump-v2-lightbox" data="[[data.signInButton.buttonRenderer]]"></ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="content" class="style-scope ytd-consent-bump-v2-lightbox">\n    <template is="dom-if" if="[[showEOMV1Text]]" restamp="" class="style-scope ytd-consent-bump-v2-lightbox">\n      <h2 tabindex="-1" id="cb-header" class="eom-title style-scope ytd-consent-bump-v2-lightbox">\n        <yt-formatted-string text="[[data.interstitialTitle]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n      </h2>\n      <div class="ica-claimer style-scope ytd-consent-bump-v2-lightbox" hidden="[[!data.icaClaimer]]">\n        <yt-formatted-string text="[[data.icaClaimer]]" class="style-scope ytd-consent-bump-v2-lightbox"> </yt-formatted-string>\n      </div>\n      <div class="body style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.essentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox">\n            </yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.nonEssentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomNonEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.ifReject]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.personalization]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.moreOptions]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="eom-buttons style-scope ytd-consent-bump-v2-lightbox">\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.disableP13nButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n            <ytd-button-renderer data="[[data.agreeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.customizeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n        </div>\n        <div class="termlinks style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" sec="" text="[[data.privacyLink]]"></yt-formatted-string>\n          \n          \n          <span class="term_separator style-scope ytd-consent-bump-v2-lightbox" aria-hidden="true">\u2022</span>\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" text="[[data.termsLink]]"></yt-formatted-string>\n        </div>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Siw=p},{mode:1});var FER;var eA=function(){return _.w.apply(this,arguments)||this};
_.A(eA,_.w);eA.prototype.ready=function(){if(!_.ws()||W86)var p=!0;else W86=!0,p=!1;p||(p=document.querySelector("ytd-app"),p||(p=document.body),this.internalLightBox=_.jR(p).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.H([_.Q(),_.x("design:type",Object)],eA.prototype,"data",void 0);_.H([_.rd("#lightbox"),_.x("design:type",Object)],eA.prototype,"lightBox",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],eA);
_.D(eA,"ytd-consent-bump-v2-renderer",function(){if(FER!==void 0)return FER;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-consent-bump-v2-lightbox id="lightbox" data="[[data]]" class="style-scope ytd-consent-bump-v2-renderer"></ytd-consent-bump-v2-lightbox>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return FER=p},{mode:1});var LE6;var kFu;var NSV;var hd=function(){return _.w.apply(this,arguments)||this};
_.A(hd,_.w);_.J=hd.prototype;_.J.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&nFi(this.toastManager,this.toastType)};
_.J.open=function(p){this.toast&&(this.ephemeralAction&&_.WC().resolve(_.r2).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=p!=null?p:0,this.toastManager.enqueue(this.toast,p)):this.toast.open())};
_.J.close=function(p){var y;(y=this.toast)==null||y.close();this.toastManager&&p===1&&nFi(this.toastManager,p)};
_.J.refit=function(){var p;(p=this.toast)==null||p.refit()};
_.J.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var p;(p=this.toast)==null||p.close()}};
_.J.setVerticalOffset=function(p){this.toast&&(this.toast.verticalOffset=p,this.toast.fit())};
_.J.computeButtonClass_=function(p){return p?"toast-button":""};
_.J.computeText_=function(p){return _.JB(p)};
_.J.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.JC("toast-opened-changed",this.toastOpened))};
_.J.updateToastOpenedFromBinding=function(p){this.toastOpened=p.detail.value};
_.Jh.Object.defineProperties(hd.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var p,y,l=(p=this.data)==null?void 0:(y=p.actionButton)==null?void 0:y.buttonRenderer;return(l==null?void 0:l.command)||(l==null?void 0:l.serviceEndpoint)||(l==null?void 0:l.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var p=[],y;((y=this.data)==null?0:y.responseText)&&p.push(_.JB(this.data.responseText));var l;((l=this.data)==null?0:l.subText)&&p.push(_.JB(this.data.subText));var q,t;if((q=this.data)==null?0:(t=q.actionButton)==null?0:t.buttonRenderer){var E,e;p.push(((E=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(e=E.accessibilityData)==null?void 0:e.label)||_.JB(this.data.actionButton.buttonRenderer.text))}return p.filter(function(C){return C}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var p,y;return(y=(p=this.toast)==null?void 0:p.opened)!=null?y:!1}}});
hd.prototype.toastOpenedChangedForBinding=hd.prototype.toastOpenedChangedForBinding;hd.prototype.toastOpenedChanged=hd.prototype.toastOpenedChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],hd.prototype,"ytEventForwardingBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],hd.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],hd.prototype,"duration",void 0);
_.H([_.Q(),_.x("design:type",Number)],hd.prototype,"toastType",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],hd.prototype,"useCloseButton",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],hd.prototype,"closeToastOnActionButtonClick",void 0);_.H([_.Q({value:function(){return _.g$("SBOX_INAPPROPRIATE_CANCEL")}}),
_.x("design:type",String)],hd.prototype,"closeButtonAriaLabel",void 0);_.H([_.Q(),_.x("design:type",Boolean)],hd.prototype,"toastOpened",void 0);_.H([_.Q(),_.x("design:type",Boolean)],hd.prototype,"hasOpened",void 0);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],hd.prototype,"command",null);_.H([_.g("labelText","command","duration"),_.x("design:type",Object),_.x("design:paramtypes",[])],hd.prototype,"ephemeralAction",null);
_.H([_.g("ephemeralAction"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],hd.prototype,"hasEphemeralAction",null);_.H([_.rd("#toast"),_.x("design:type",Object)],hd.prototype,"toast",void 0);_.H([_.Q({value:function(){return{style:"call-to-action-inverse"}}}),
_.x("design:type",Object)],hd.prototype,"buttonOverrides",void 0);_.H([_.Q({value:{style:"mono-inverse"}}),_.x("design:type",Object)],hd.prototype,"closeButtonOverrides",void 0);_.H([_.Q({value:function(){return _.WC().resolve(_.RK(_.g2))}}),
_.x("design:type",Object)],hd.prototype,"toastManager",void 0);_.H([_.g("data.responseText","data.subText","data.actionButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],hd.prototype,"labelText",null);_.H([_.gd("toastOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hd.prototype,"toastOpenedChanged",null);
_.H([_.gd("toastOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hd.prototype,"toastOpenedChangedForBinding",null);_.H([_.z9({is:"yt-notification-action-renderer",disableElementRegistration:!0})],hd);
_.D(hd,"yt-notification-action-renderer",function(){if(NSV===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-notification-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_notification_action_renderer.yt.notification.action.renderer.css.js--\x3e\n<tp-yt-paper-toast id="toast" class$="[[computeButtonClass_(data.actionButton.buttonRenderer)]] style-scope yt-notification-action-renderer" allow-click-through="" announce-label-updates="" aria-label="toast" duration="[[duration]]" label="[[labelText]]" no-iron-announce="[[hasEphemeralAction]]" opened="[[toastOpened]]" role="region" on-opened-changed="updateToastOpenedFromBinding">\n  <div id="text-container" class="style-scope yt-notification-action-renderer">\n    <yt-formatted-string id="text" respect-html-dir="" split-lines="" text="[[data.responseText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="sub-text" hidden="[[!data.subText]]" respect-html-dir="" split-lines="" text="[[data.subText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.actionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" on-tap="tapClose" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="close-action-button" data="[[data.closeActionButton.buttonRenderer]]" overrides="[[closeButtonOverrides]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-icon-button id="close-button" hidden="[[!useCloseButton]]" label="[[closeButtonAriaLabel]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-notification-action-renderer"></yt-icon>\n    </yt-icon-button>\n  </template>\n  <slot class="style-scope yt-notification-action-renderer"></slot>\n</tp-yt-paper-toast>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;kFu===void 0&&(kFu=document.createElement("template"));var q=kFu;l.call(y,q.content.cloneNode(!0),p.content.firstChild);NSV=p}p=NSV;return p},{mode:2});var CN=function(){var p=_.w.apply(this,arguments)||this;p.duration=4E3;p.downloadingCount=0;p.downloadedCount=0;p.downloadingOnlySmartDownloads=!1;p.sessionTotalDownloads=0;p.sessionDownloaded=0;p.previousSessionsDownloaded=0;p.totalDownloadPercentage=0;p.currentDownloadProgress=0;p.currentDownloadPercentage=0;p.isLeaderTab=!0;p.isFullScreen=!1;p.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};p.boundBeforeUnload=function(y){p.isLeaderTab&&p.downloadingCount>0&&(y.preventDefault(),
y.returnValue=!0)};
return p};
_.A(CN,_.w);_.J=CN.prototype;
_.J.open=function(){this.updateDownloadState();if(this.data){var p=this.sessionDownloaded+1,y=this.sessionTotalDownloads>1?_.g$("VIDEOS_DOWNLOADING_RATIO",{downloaded:p.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+p+"/"+this.sessionTotalDownloads):_.g$("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(y=this.sessionTotalDownloads>1?_.g$("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:p.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
p+"/"+this.sessionTotalDownloads):_.g$("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));p=this.isLeaderTab?_.g$("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.JB(this.data.responseText)!==y||_.JB(this.data.subText)!==p)this.set("data.responseText",_.EK(y)),this.set("data.subText",_.EK(p)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.J.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.J.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.J.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.J.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var p=this.downloadedCount-this.previousSessionsDownloaded;p<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-p);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.J.handleFullscreenChange=function(p){(this.isFullScreen=p)||this.updatePopup()};
CN.prototype.updateCurrentDownloadProgress=CN.prototype.updateCurrentDownloadProgress;CN.prototype.updatePopup=CN.prototype.updatePopup;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],CN.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],CN.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],CN.prototype,"ytEventForwardingBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],CN.prototype,"actionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],CN.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],CN.prototype,"duration",void 0);_.H([_.Q({selector:function(p){return _.i5o(p.entities).length}}),
_.x("design:type",Object)],CN.prototype,"downloadingCount",void 0);_.H([_.Q({selector:zIL}),_.x("design:type",Object)],CN.prototype,"downloadedCount",void 0);_.H([_.Q({selector:function(p){var y=_.i5o(p.entities);return oHR(p.entities,y)}}),
_.x("design:type",Object)],CN.prototype,"downloadingOnlySmartDownloads",void 0);_.H([_.Q(),_.x("design:type",Object)],CN.prototype,"sessionTotalDownloads",void 0);_.H([_.Q(),_.x("design:type",Object)],CN.prototype,"sessionDownloaded",void 0);_.H([_.Q(),_.x("design:type",Object)],CN.prototype,"previousSessionsDownloaded",void 0);_.H([_.Q(),_.x("design:type",Object)],CN.prototype,"totalDownloadPercentage",void 0);
_.H([_.Q({selector:function(p){var y;p=(y=_.i5o(p.entities))!=null?y:[];return p.length>0?_.nBg(p.slice(-1)):0}}),
_.x("design:type",Object)],CN.prototype,"currentDownloadProgress",void 0);_.H([_.Q(),_.x("design:type",Object)],CN.prototype,"currentDownloadPercentage",void 0);_.H([_.Q({selector:_.k_R}),_.x("design:type",Object)],CN.prototype,"isLeaderTab",void 0);_.H([_.rd("yt-notification-action-renderer"),_.x("design:type",Object)],CN.prototype,"notificationActionRenderer",void 0);
_.H([_.k8("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CN.prototype,"updatePopup",null);_.H([_.k8("currentDownloadProgress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CN.prototype,"updateCurrentDownloadProgress",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],CN);
_.D(CN,"ytd-video-download-toast-renderer",function(){if(LE6!==void 0)return LE6;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-download-toast-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-notification-action-renderer id="notification" class="is-download style-scope ytd-video-download-toast-renderer" data="[[data]]" duration="[[duration]]" use-close-button=""><tp-yt-paper-progress class="transiting style-scope ytd-video-download-toast-renderer" value="[[currentDownloadPercentage]]"></tp-yt-paper-progress></yt-notification-action-renderer>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return LE6=p},{mode:1});var Duw;var Hsw;var ur=function(){return _.w.apply(this,arguments)||this};
_.A(ur,_.w);ur.prototype.computeIsRedLogo=function(p,y){!p&&y&&(p=y);return p==="YOUTUBE_RED_LOGO"||p==="YOUTUBE_PREMIUM_LOGO"};
ur.prototype.computeLogoName=function(p){p=this.componentBehavior.computeIcon_(p);return p===""?"yt-logos-ext:yt-logo-updated":p};
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],ur.prototype,"componentBehavior",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.x("design:type",Boolean)],ur.prototype,"isRedLogo",void 0);_.H([_.Q({computed:"computeLogoName(data)"}),_.x("design:type",String)],ur.prototype,"logoName",void 0);_.H([_.Q({value:{}}),_.x("design:type",Object)],ur.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Object)],ur.prototype,"logoType",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-logo"})],ur);
_.D(ur,"ytd-logo",function(){if(Hsw!==void 0)return Hsw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-logo--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-logo">\n</yt-icon>');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return Hsw=p},{mode:_.ZS("kevlar_poly_si_batch_j074")?1:2});var R_=function(){var p=_.w.apply(this,arguments)||this;p.animationRef={};return p};
_.A(R_,_.w);_.J=R_.prototype;_.J.attached=function(){document.addEventListener("yt-navigate-finish",_.MH(this,this.logYoodle))};
_.J.detached=function(){document.removeEventListener("yt-navigate-finish",_.MH(this,this.logYoodle))};
_.J.logYoodle=function(){var p,y;if((p=this.data)==null?0:(y=p.loggingDirectives)==null?0:y.trackingParams)this.ytRendererBehavior.markDirty(),_.Ll().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.J.computeHideImg=function(p,y){return!!p||!!y};
_.J.computeHideYtdLogo=function(p,y){return!p||!!y};
_.J.computeHideLottie=function(p){return!p};
_.J.computeIsRedLogo=function(p){return p==="YOUTUBE_RED_LOGO"||p==="YOUTUBE_PREMIUM_LOGO"};
_.J.renderLogoEntity=function(){var p=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),y=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),l=this.getLogoTitleText(this.data),q=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==p&&(this.url=p);this.animatedUrl!==y&&(this.animatedUrl=y);this.logoTitleText!==l&&(this.logoTitleText=l);this.lottieUrl!==q&&(this.lottieUrl=q,this.lottiePlayerProps=this.computeLottiePlayerProps(q))};
_.J.getSanitizedThumbnail=function(p){return p&&p.thumbnails?_.BG5(p.thumbnails,122)||"":""};
_.J.getThumbnailUrl=function(p,y){if(!y)return"";var l,q;p=p?(l=y.darkThemeLogo)==null?void 0:l.thumbnail:(q=y.lightThemeLogo)==null?void 0:q.thumbnail;return this.getSanitizedThumbnail(p)};
_.J.getAnimatedThumbnailUrl=function(p,y){return y?this.getSanitizedThumbnail(p?y.darkThemeAnimatedLogo:y.lightThemeAnimatedLogo):""};
_.J.getLogoTitleText=function(p){if(p)return _.JB(p.tooltipText)};
_.J.computeLogoIcon=function(p,y){if(y){var l,q;return p?(l=y.darkThemeLogo)==null?void 0:l.icon:(q=y.lightThemeLogo)==null?void 0:q.icon}};
_.J.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.J.getLottieUrl=function(p,y){var l,q,t,E;return p?y==null?void 0:(l=y.darkThemeLogo)==null?void 0:(q=l.lottieAnimation)==null?void 0:q.url:y==null?void 0:(t=y.lightThemeLogo)==null?void 0:(E=t.lottieAnimation)==null?void 0:E.url};
_.J.computeLottiePlayerProps=function(p){if(p){var y;if((y=this.animationRef)==null?0:y.lottieEl){var l;(l=this.animationRef)==null||l.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:p,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.J.onLottieError=function(){this.data&&this.lottieUrl&&_.Ub(this.hostElement,"yoodle-error")};
_.J.onImgError=function(){this.data&&!this.lottieUrl&&_.Ub(this.hostElement,"yoodle-error")};
R_.prototype.playAnimation=R_.prototype.playAnimation;R_.prototype.renderLogoEntity=R_.prototype.renderLogoEntity;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],R_.prototype,"data",void 0);_.H([_.Q({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.x("design:type",Boolean)],R_.prototype,"hideImg",void 0);
_.H([_.Q({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.x("design:type",Boolean)],R_.prototype,"hideYtdLogo",void 0);_.H([_.Q({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.x("design:type",Boolean)],R_.prototype,"hideLottie",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.x("design:type",Boolean)],R_.prototype,"isRedLogo",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],R_.prototype,"useDarkThemeYoodle",void 0);_.H([_.Q(),_.x("design:type",String)],R_.prototype,"url",void 0);_.H([_.Q(),_.x("design:type",String)],R_.prototype,"animatedUrl",void 0);_.H([_.Q(),_.x("design:type",String)],R_.prototype,"logoTitleText",void 0);_.H([_.Q({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.x("design:type",Object)],R_.prototype,"logoIcon",void 0);_.H([_.Q(),_.x("design:type",Object)],R_.prototype,"logoType",void 0);
_.H([_.Q(),_.x("design:type",String)],R_.prototype,"lottieUrl",void 0);_.H([_.Q(),_.x("design:type",Object)],R_.prototype,"lottiePlayerProps",void 0);_.H([_.Q(),_.x("design:type",Object)],R_.prototype,"animationRef",void 0);_.H([_.gd("data"),_.gd("useDarkThemeYoodle"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],R_.prototype,"renderLogoEntity",null);
_.H([_.VU("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],R_.prototype,"playAnimation",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],R_);
_.D(R_,"ytd-yoodle-renderer",function(){if(Duw!==void 0)return Duw;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return Duw=p},{mode:_.ZS("kevlar_poly_si_batch_j074")?1:2});var TSu;var xuL;var Wg=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return p};
_.A(Wg,_.w);_.J=Wg.prototype;_.J.onYoodleError=function(){_.n("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.J.computeLogoName=function(p){p=this.componentBehavior.computeIcon_(p);return p===""?"yt-logos-ext:yt-logo-updated":p};
_.J.computeTitle=function(p,y,l){return l&&(y==null?0:y.tooltipText)?_.JB(y.tooltipText):_.JB(p)};
_.J.computeAriaLabel=function(p,y,l){return l&&(y==null?0:y.tooltipText)?_.JB(p):""};
_.J.computeShowYoodle=function(p,y,l){return!p||!y&&!!l&&!_.Ts.isEmpty(l)};
_.J.onNavigateHomeAction=function(){if(_.n("kevlar_miniplayer_navigate_home_from_app_killswitch")){var p;(p=_.jR(this.hostElement).querySelector(".yt-simple-endpoint"))==null||p.click()}};
_.J.computeLogoHref=function(p,y,l){var q;(l==null?0:l.onTapCommand)?q=this.componentBehavior.computeHref_(l.onTapCommand):p&&(q=this.componentBehavior.computeHref_(p));return q?q:y};
_.J.computeCommand=function(p,y){return(y==null?void 0:y.onTapCommand)||p};
_.J.getEndpointForm=function(){if(_.n("kevlar_topbar_disable_cache_only_home")){var p=_.WC().resolve(_.yF),y=sJw(p.getState())||"";p=_.bcL(p.getState())||"";return{disableCache:y==="ytd-browse"&&p==="home"}}return{disableCache:!0}};
Wg.prototype.onYoodleError=Wg.prototype.onYoodleError;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Wg.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Wg.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Wg.prototype,"componentBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],Wg.prototype,"ytdReduxBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],Wg.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",String)],Wg.prototype,"countryCode",void 0);_.H([_.Q({selectorArgs:["data.overrideEntityKey"],selector:function(p,y){return _.Ae(p.entities,"logoEntity",y)}}),
_.x("design:type",Object)],Wg.prototype,"logoEntity",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.x("design:type",Boolean)],Wg.prototype,"showYoodle",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Wg.prototype,"yoodleError",void 0);_.H([_.Q({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.x("design:type",String)],Wg.prototype,"titleText",void 0);
_.H([_.Q({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.x("design:type",String)],Wg.prototype,"ariaLabelText",void 0);_.H([_.Q({value:"/"}),_.x("design:type",String)],Wg.prototype,"defaultEndpointUrl",void 0);_.H([_.Q({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.x("design:type",String)],Wg.prototype,"endpointUrl",void 0);
_.H([_.Q({computed:"computeCommand(data.endpoint, logoEntity)"}),_.x("design:type",String)],Wg.prototype,"command",void 0);_.H([_.Q(),_.x("design:type",Object)],Wg.prototype,"logoType",void 0);_.H([_.Q({}),_.x("design:type",Boolean)],Wg.prototype,"useDarkThemeYoodle",void 0);_.H([_.VU("yoodle-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wg.prototype,"onYoodleError",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Wg);
_.D(Wg,"ytd-topbar-logo-renderer",function(){if(xuL!==void 0)return xuL;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-logo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a aria-label="[[ariaLabelText]]" class="yt-simple-endpoint style-scope ytd-topbar-logo-renderer" href$="[[endpointUrl]]" id="logo" data="[[command]]" title="[[titleText]]" get-form="[[getEndpointForm]]">\n  <div hidden="[[showYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n    <ytd-logo data="[[data.iconImage]]" logo-type="[[logoType]]" class="style-scope ytd-topbar-logo-renderer">\n    </ytd-logo>\n  </div>\n  <ytd-yoodle-renderer data="[[logoEntity]]" hidden="[[!showYoodle]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[useDarkThemeYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n  </ytd-yoodle-renderer>\n</a>\n<span hidden="[[showYoodle]]" id="country-code" class="style-scope ytd-topbar-logo-renderer">\n  [[countryCode]]\n</span>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return xuL=p},{mode:_.ZS("kevlar_poly_si_batch_j027")?1:2});var BSA=0;var fDu=_.R1.SEARCH_APPEND_LABEL,v49=_.R1.SUGGESTION_NEW_VIDEOS_TEXT,Xpw=_.R1.SUGGESTION_THUMBNAIL_LABEL,du9=_.R1.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,Osm=_.aF(function(p){function y(QQ){var n7,u6;return _.h(function(ed){if(ed.nextAddress==1)return n7=new Request(QQ),_.Ve(ed,2),ed.yield(fetch(n7,{credentials:"include"}),4);if(ed.nextAddress!=2)return b9(!0),_.pK(ed,0);u6=_.i6(ed);_.vs(u6);_.rR(ed)})}
var l=p.isHighlighted;var q=p.suggestion;var t=p.onClickCallback;var E=p.onHoverUpdateCallback;var e=p.labels;var C=p.queryBuilderFunction;var u=p.onRemoveCallback;var a=p.suggestionIndex;var m=p.generateUniqueId;var U=p.highlightedId;var b=p.useScrollMargin;var P=p.isKeyboardMode;var Z=null,K=null,F=_.sM("div"),L=_.sM("span");p=_.c(_.nr(!1,void 0,"CgAMgc"));var T=p.next().value,O=p.next().value,f=_.tK("a",function(QQ){QQ&&_.Bn(237477,QQ,K,function(n7){K=n7})}),v=_.tK("button",function(QQ){QQ&&_.Bn(237477,
QQ,K,function(n7){K=n7})}),z=_.Ff(function(QQ){if((QQ==null?void 0:QQ.button)===2)return QQ.preventDefault(),!1;
var n7=_.B2();n7&&Z&&_.Et(n7,Z,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var u6;t(QQ,q().text,q().index,q().entityMid,QQ==null?void 0:(u6=QQ.detail)==null?void 0:u6.wasSelectedByKeyboard);return!1}),sc=function(){return q().type===35},hR=function(){return _.n("desktop_enable_single_suggestion_highlight")},Wt=function(){return _.UC("desktop_suggestions_panel_row_height")||0},AR=function(){var QQ;
return _.n("desktop_enable_new_video_metadata")&&((QQ=q())==null?void 0:QQ.hasNewVideo)===!0},Qu=function(){return _.n("desktop_enable_visual_suggest")},jj=function(){return _.n("desktop_enable_entity_suggest")&&n47(q())},x6=function(){return q().entitySubtitle},L8=function(){return hR()?(l==null?void 0:l())||s$()&&!(P==null?0:P()):(l==null?void 0:l())||s$()},Y6=function(){var QQ=_.OY("SBOX_SETTINGS");
return sc()&&!(QQ==null?0:QQ.HIDE_REMOVE_LINK)},AZ=function(){return GFT(q(),{useEntityName:jj()})},cU,Xo=!((cU=_.WC().resolve(_.RK(_.hb)))==null||!cU()),U$=function(){return sc()?_.n("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},WU=function(){return e==null?void 0:e().SUGGESTION_DISMISS_LABEL},VQ=function(){return e==null?void 0:e().SUGGESTION_DISMISSED_LABEL};
p=_.c(_.nr(!1,void 0,"RcUcKd"));cU=p.next().value;var b9=p.next().value;p=_.c(_.nr(!1,void 0,"yGR7je"));var kx=p.next().value,JR=p.next().value,s$=kx,PU=_.Ff(function(){C(L.value.innerText);return!1}),Uu=_.Ff(function(QQ){QQ.preventDefault();
return!1}),jB=_.Ff(function(QQ){var n7=q().text,u6=_.OY("SBOX_SETTINGS"),ed="https://"+(u6.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
ed+="&delq="+encodeURIComponent(n7);(n7=u6==null?void 0:u6.PSUGGEST_TOKEN)&&(ed+="&tok="+n7);(u6=u6==null?void 0:u6.SESSION_INDEX)&&(ed+="&authuser="+u6);y(ed);QQ.preventDefault();(QQ=_.B2())&&K&&_.Et(QQ,K,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");u(a==null?void 0:a());return!1}),xx=_.Ff(function(){if(hR()&&(P==null?0:P()))return!1;
JR(!0);E(!0);return!1}),qN=_.Ff(function(){JR(!1);
E(!1);return!1}),Iv=_.Ff(function(){O(!0);
return!1}),CU=_.Ff(function(){O(!1);
return!1}),ov=_.Ff(function(QQ){QQ.preventDefault();
var n7;(QQ=(n7=q().entityThumbnailAttributionUrl)!=null?n7:"")&&_.E$5(QQ);return!1});
p=_.c(_.nr("",void 0,"k9uVge"));var u9=p.next().value,ZV=p.next().value;_.Hu(function(){Y6()&&ZV(m==null?void 0:m(a==null?void 0:a()));F.value&&_.Bn(12453,F.value,Z,function(QQ){Z=QQ})});
return _.R(_.W,{cond:cU,then:function(){var QQ={};return _.R("div",{class:_.ip("ytSuggestionComponentRemovedText",(QQ.ytSuggestionComponentLargerRemovedText=function(){return Qu()},QQ)),
style:function(){return Wt()>0?"height: "+Wt()+"px;":""},
role:"button"},VQ)},
else:function(){var QQ={},n7={};return _.R("div",{class:_.ip("ytSuggestionComponentSuggestion",(QQ.ytSuggestionComponentSuggestionHover=function(){return!hR()},QQ.ytSuggestionComponentHighlighted=L8,QQ.ytSuggestionComponentPersonalizedSuggestion=sc,QQ.ytSuggestionComponentMweb=!1,QQ.ytSuggestionComponentLargerSuggestion=function(){return AR()||Qu()},QQ.ytSuggestionComponentThumbnailSuggestion=function(){return Qu()},QQ.ytSuggestionComponentRoundedSuggestion=function(){return _.n("desktop_enable_scrollable_suggestions_panel")&&
_.n("desktop_enable_suggestions_panel_padding")},QQ.ytSuggestionComponentThumbnailPadding=function(){return Qu()&&!sc()},QQ)),
style:function(){return Wt()>0?"height: "+Wt()+"px;":""},
role:"presentation","on:mousedown":z,"on:mouseover":xx,"on:mouseout":qN,el:F},_.R("div",{class:_.ip("ytSuggestionComponentText",(n7.ytSuggestionComponentScrollMargin=b,n7)),"aria-label":function(){return AR()?q().text+" "+v49:q().text},
id:function(){return m==null?void 0:m(a==null?void 0:a())},
"on:mousedown":z,role:"option"},_.R(_.W,{cond:function(){return q().type!==33},
then:function(){return _.R(_.DR,{icon:U$,className:"ytSuggestionComponentIcon"})}}),_.R("div",{class:"ytSuggestionComponentLeftContainer"},_.R("span",{el:L,
role:"button",tabindex:0},_.R(_.rT,{each:AZ},function(u6){return u6.bold?_.R("span",{class:"ytSuggestionComponentBold"},u6.text):_.R("span",null,u6.text)})),_.R(_.W,{cond:function(){return jj()&&!!q().entitySubtitle||AR()},
then:function(){return _.R("div",{class:"ytSuggestionComponentMetadataContainer"},_.R(_.W,{cond:function(){return jj()&&!!q().entitySubtitle},
then:function(){return _.R("div",{class:"ytSuggestionComponentEntitySubtitle"},x6)}}),_.R(_.W,{cond:function(){return AR()},
then:function(){return _.R("div",{class:"ytSuggestionComponentNewVideoContainer"},_.R("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.R("div",{class:"ytSuggestionComponentNewVideoText"},v49))}}))}}))),_.R("div",{class:"ytSuggestionComponentRightContainer"},_.R(_.W,{cond:function(){return Qu()&&q().visualSuggestUrl!==void 0},
then:function(){var u6={};return _.R("div",{class:"ytSuggestionComponentThumbnailContainer"},_.R("img",{"aria-label":Xpw,class:_.ip("ytSuggestionComponentVisualSuggestThumbnail",(u6.ytSuggestionComponentCircularFrame=function(){return jj()&&q().subtypes.includes(790)},u6.ytSuggestionComponentEntitySuggestThumbnail=function(){return jj()},u6)),
src:function(){return q().visualSuggestUrl}}),_.R(_.W,{cond:function(){return jj()&&!!q().entityThumbnailAttributionUrl},
then:function(){var ed={};return _.R("span",{title:du9,role:"tooltip"},_.R("div",{"on:mouseover":Iv,"on:mouseout":CU,"on:mousedown":ov,class:_.ip("ytSuggestionComponentThumbnailOverlay",(ed.ytSuggestionComponentThumbnailOverlayHidden=function(){return!T()},ed))},_.R(_.DR,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.R(_.L6,null,_.R(_.Sc,{when:function(){return Qu()&&Y6()}},function(){var u6={};
return _.R("button",{class:_.ip("ytSuggestionComponentRemoveLinkClearButton",(u6.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return u9()&&u9()===(U==null?void 0:U())},u6.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!L8()},u6)),
el:v,"on:mousedown":jB,"aria-label":WU,id:function(){return u9()}},_.R(_.DR,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.R(_.Sc,{when:function(){return!(Qu()&&q().visualSuggestUrl!==void 0)&&Y6()}},function(){var u6={};
return _.R("a",{class:_.ip("ytSuggestionComponentRemoveLink",(u6.ytSuggestionComponentRemoveLinkDark=Xo,u6.ytSuggestionComponentRemoveLinkSelected=function(){return u9()&&u9()===(U==null?void 0:U())},u6)),
el:f,"on:mousedown":jB,"aria-label":WU,tabindex:0,role:"button",id:function(){return u9()}},WU)}),_.R(_.Sc,{when:function(){return!1}},function(){return _.R("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":PU,"on:mousedown":Uu,role:"button","aria-label":fDu},_.R(_.DR,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Gg");var o4i=_.c0(["//www.google.com/textinputassistant/","/","_tia.js"]),ze9=_.aF(function(){return _.R("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.R("button",{class:"ytdTextInputAssistantButton","on:click":_.Ff(function(){M9d().inputMethodsTracker.add(3);var p,y=(p=_.OY("SBOX_SETTINGS"))==null?void 0:p.REQUEST_LANGUAGE;if(y)return _.zc(_.bz(o4i,14,y)),!1})},_.R("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Hg");var YiO=function(){this.cache=new Map},IDw=function(p){for(var y=_.c(p.cache.entries()),l=y.next();!l.done;l=y.next()){var q=_.c(l.value);
l=q.next().value;q=q.next().value;q.suggestions.some(function(t){return t.type===35})&&p.cache.delete(l)}};var pkw=_.R1.SEARCH,y41=_.R1.SEARCH_CLEAR_LABEL,ldd=new _.WE("FAKE_SUGGEST_RESPONSE");_.bp(_.aF(function(p){function y(){Iv||(Iv=setTimeout(function(){ov()},1E3))}
function l(nU,$x,K7){if(nU.trim()){qN=nU;_.dT("REFINEMENTS_TUPLE",void 0);jB=!0;var $X;$x=QO9(kx,$x);var uN=($X=p.searchEndpoint)==null?void 0:$X.call(p);$X=U$.value.value;uN||(uN=Uru);var PH;(PH=_.G(uN.commandMetadata,_.ul))!=null&&PH.url||(PH=Error("ol`"+JSON.stringify(uN)),_.Bs(PH),uN=Uru);PH=_.Ts.unsafeClone(uN);uN=_.OL(_.G(PH.commandMetadata,_.ul).url,"search_query",nU);_.oY(location.href,"sv")==="1"&&(_.G(PH,_.iS).params="EgOAAgE%3D",uN=_.OL(uN,"sv","1"));_.G(PH,_.iS)&&(_.G(PH,_.iS).query=nU);
uN=uN.replace(/%20/g,"+");_.G(PH.commandMetadata,_.ul).url=uN;K7=_.n("desktop_enable_entity_suggest")?{entityMid:K7}:{};_.WC().resolve(_.aK).resolveCommand(PH,{form:{tempData:Object.assign({},{gs_l:$x,oq:$X!=null?$X:nU},K7)}});ov();U$.value.value=nU;U$.value.blur();kx.reset()}}
function q(nU){return _.h(function($x){return $x.return(new Promise(function(K7){var $X=new XMLHttpRequest;$X.open("GET",WEL(nU),!0);$X.withCredentials=!0;var uN=_.OY("SBOX_SETTINGS");(uN==null?0:uN.SEND_VISITOR_DATA)&&$X.setRequestHeader("X-Goog-Visitor-Id",uN==null?void 0:uN.VISITOR_DATA);$X.onload=function(){K7($X.responseText)};
$X.onerror=function(){_.vs(Error("pl"));K7(null)};
setTimeout(function(){$X.abort()},1E4);
$X.send(null)}))})}
function t(nU){var $x,K7,$X,uN;return _.h(function(PH){switch(PH.nextAddress){case 1:return $x={credentials:"include",headers:Rew()},window.AbortController&&(K7=new AbortController,setTimeout(function(){K7.abort("ytsbox-suggest-timeout")},1E4),$x.signal=K7.signal),_.Ve(PH,2),PH.yield(fetch(WEL(nU),$x),4);
case 4:$X=PH.yieldResult.text();_.pK(PH,3);break;case 2:return uN=_.i6(PH),uN!=="ytsbox-abort-last"&&uN!=="ytsbox-suggest-timeout"&&_.vs(uN),PH.return(null);case 3:return PH.return($X)}})}
function E(nU){var $x,K7,$X;return _.h(function(uN){switch(uN.nextAddress){case 1:if($x=_.WC().resolve(_.RK(ldd)))return uN.return($x);K7=Date.now();y();return _.n("yt_searchbox_xhr")?uN.yield(q(nU),5):uN.yield(t(nU),4);case 4:$X=uN.yieldResult;uN.jumpTo(3);break;case 5:$X=uN.yieldResult;case 3:if($X){Iv&&(clearTimeout(Iv),Iv=null);var PH=kx,eh=K7,kX=nU.query.length===0;eh=Date.now()-eh;kX?PH.zeroPrefixRoundTripTime=eh:(PH.JSC$20480_totalRoundTripTime+=eh,PH.maxRoundTripTime=Math.max(PH.maxRoundTripTime,
eh),kX=Math.floor(eh/100),kX>=KEw.length?++PH.roundTripTimeHistogram[9]:++PH.roundTripTimeHistogram[KEw[kX]])}return uN.return($X)}})}
function e(nU){var $x,K7,$X;return _.h(function(uN){if(uN.nextAddress==1)return($x=b9.cache.get(uO1(nU)))?uN.return($x):uN.yield(E(nU),2);K7=uN.yieldResult;if(K7===null)return uN.return(null);$X=new PPA(K7);nU.query.length===0&&$X.suggestions.length===0||b9.cache.set(uO1(nU),$X);return uN.return($X)})}
function C(nU){var $x,K7;return _.h(function($X){if($X.nextAddress==1){xx=!1;var uN=qN;uN=_.TOc()==="search"?(_.oY(location.href,"search_query")||_.oY(location.href,"q"))===uN:!1;$x=new CPu(nU,uN?qN:null);return $X.yield(e($x),2)}K7=$X.yieldResult;if(K7===null)return $X.return();$x.query.length===0&&(kx.zeroPrefixSuggestionCount=K7.suggestions.length);if($x.id<=CU)return kx.outOfSyncResponseCount++,$X.return();if(document.activeElement!==U$.value)return $X.return();CU=$x.id;var PH=kx,eh=K7.rawResponse[2]||
{};PH.experimentTriggeredBeforeFinal||(PH.experimentTriggeredBeforeFinal=PH.experimentTriggeredFinal);PH.experimentTriggeredFinal=!!eh.e;kx.updateSuggestions(K7.suggestions);F(-1);Y6([]);K7.suggestions!==P()&&qU(K7.suggestions.length);Z(K7.suggestions);hR(K7.suggestions.length>0&&K7.suggestions[0].type===33);VQ&&(VQ.hidden=K7.suggestions.length===0,sc()?(VQ.style.minWidth="",PH=VQ.style,eh=(uN=P()[0])==null?void 0:uN.ignoredPrefix,PH.marginLeft=(eh?Math.min(eh.length*6,WU.value.offsetWidth):0).toString()+
"px"):(VQ.style.minWidth=WU.value.offsetWidth+"px",VQ.style.marginLeft="0"),o9());_.rR($X)})}
function u(){if(!jB)return!1;var nU=_.OY("REFINEMENTS_TUPLE");return nU?(nU=nU[1].map(function($x,K7){return new bs7([$x,0,[71]],U$.value.value,K7)}),P()!==nU&&qU(nU.length),Y6([]),Z(nU),kx.updateSuggestions(nU),jB=!1,VQ.hidden=nU.length===0,xx=nU.length>0,!0):!1}
function a(){var nU=U$.value.value;(typeof nU==="string"||nU instanceof String)&&nU!==""?f(!0):f(!1)}
function m(){if(_.TOc()==="search"){var nU=window.location.href;try{var $x=_.oY(nU,"search_query")||_.oY(nU,"q")||""}catch(K7){$x=""}$x&&(U$.value.value=$x,f(!0))}}
var U=_.c(_.nr([],void 0,"kGFAjf")),b=U.next().value;U=U.next().value;var P=b,Z=U;b=_.c(_.nr(-1,void 0,"mLGL9e"));var K=b.next().value,F=b.next().value;b=_.c(_.nr(-1,void 0,"u2rYdc"));var L=b.next().value,T=b.next().value;b=_.c(_.nr(!1,void 0,"W9DFC"));var O=b.next().value,f=b.next().value;b=_.c(_.nr(!1,void 0,"Ip4dNc"));var v=b.next().value,z=b.next().value;U=_.c(_.nr(!1,void 0,"ZNKSQb"));b=U.next().value;U=U.next().value;var sc=b,hR=U;U=_.c(_.nr(!1,void 0,"JBrGLd"));b=U.next().value;var Wt=U.next().value;
U=_.c(_.nr(!1,void 0,"P2pD6e"));var AR=U.next().value,Qu=U.next().value;U=_.c(_.nr(1,void 0,"SjP20c"));var jj=U.next().value,x6=U.next().value;U=_.c(_.nr([],void 0,"h4dRaf"));var L8=U.next().value,Y6=U.next().value;U=_.c(_.nr(!1,void 0,"TUTzaf"));var AZ=U.next().value,cU=U.next().value;U=_.n("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var Xo=_.sM("yt-searchbox"),U$=_.sM("input"),WU=_.sM("div"),VQ,b9=
new YiO,kx=M9d(),JR=_.WC().resolve(_.RK(_.hb)),s$=function(){var nU;return((nU=p.forceDarkMode)==null?void 0:nU.call(p))||!(JR==null||!JR())},PU=function(){return _.n("desktop_enable_scrollable_suggestions_panel")},Uu="i"+BSA++,jB=!1,xx=!1,qN="",Iv=null,CU=-1,ov=function(){Y6([]);
Z([]);hR(!1);VQ&&(VQ.hidden=!0);Iv&&(clearTimeout(Iv),Iv=null);F(-1)},u9=function(nU,$x){nU.preventDefault();
cU(!0);VQ&&(VQ.hidden=!1);var K7=K();nU=P();var $X=L8();$x=hUL($x);K7+=$x;for(K7>=nU.length?K7=-1:K7<-1&&(K7=nU.length-1);K7!==-1&&($X.includes(K7)||K7>=nU.length||K7<0);)K7+=$x,K7>=nU.length&&(K7=-1);F(K7);K()>=0&&(U$.value.value=P()[K()].text,T(0),a(),nU=K(),$X=L(),($X=document.getElementById(yy[nU][$X]))&&PU()&&(nU===P().length-1?VQ.scrollTop=VQ.scrollHeight:$X.scrollIntoView({block:"nearest",inline:"start"})))},ZV=_.Ff(function(nU){if(!(nU.relatedTarget instanceof Element&&nU.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){z(!0);
var $x;($x=p.focusCallback)==null||$x.call(p,!0);u()||(xx?VQ.hidden=!1:(_.Ub(Xo.value,"yt-autonav-pause-focus",{}),C(nU.target.value)))}}),QQ=_.Ff(function(nU){if(!(nU.relatedTarget instanceof Element&&nU.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){z(!1);
var $x;($x=p.focusCallback)==null||$x.call(p,!1);VQ.scrollTop=0;VQ.hidden=!0;_.Ub(Xo.value,"yt-autonav-pause-blur",{})}}),n7=function(nU){nU=hUL(nU);
var $x;(($x=yy[K()])==null?0:$x[L()+nU])&&T(L()+nU)},u6=_.Ff(function(nU){var $x=nU.target;
switch(nU.keyCode){case 13:nU.preventDefault();var K7;if((K7=yy[K()])==null?0:K7[L()]){var $X;($X=document.getElementById(yy[K()][L()]))==null||$X.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}nU=nU.shiftKey?4:3;K7=kx;$X=K();K7.selectedSuggestionIndex=$X;l($x.value,nU);break;case 27:VQ&&(VQ.hidden=!0);break;case 40:u9(nU,40);break;case 38:u9(nU,38);break;case 39:n7(39);break;case 37:n7(37);break;case 229:kx.inputMethodsTracker.add(4);break;default:kx.inputMethodsTracker.add(1),
V9m(kx)}return!1}),ed=_.Ff(function(nU){C(nU.target.value);
a();PU()&&VQ&&(VQ.scrollTop=0);return!1}),MQ=_.Ff(function(){kx.inputMethodsTracker.add(2);
V9m(kx);return!1});
_.Hu(function(){if(VQ){kx.reset();if(window.ResizeObserver){var nU=new ResizeObserver(function(){sc()||(VQ.style.minWidth=WU.value.offsetWidth+"px")});
nU.observe(WU.value);(new ResizeObserver(function(){o9()})).observe(VQ);
_.TP(function(){nU.disconnect()})}m();
window.addEventListener("yt-navigate-finish",m);window.addEventListener("yt-focus-searchbox",function(){U$.value.focus()});
var $x;Wt(($x=_.OY("SBOX_SETTINGS"))==null?void 0:$x.HAS_ON_SCREEN_KEYBOARD)}else _.Bs(new _.SM("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var Ob=_.Ff(function(nU){nU.preventDefault();l(U$.value.value,12);return!1}),dr=_.Ff(function(nU){nU.preventDefault();
var $x,K7;($x=U$)==null||(K7=$x.value)==null||K7.focus();var $X,uN;(($X=U$)==null?void 0:(uN=$X.value)==null?void 0:uN.value)!==""&&(U$.value.value="",U$.value.dispatchEvent(new Event("input")));return!1}),Am=_.Ff(function(){var nU=tNO(U$.value.value,P().filter(function($x){return $x.type!==35}).map(function($x){return{label:$x.text}}));
_.$w(Xo.value,"yt-open-popup-action",[{openPopupAction:nU},document.body]);return!1}),lf=_.Ff(function(){U$.value.focus();
return!1}),qm=function(nU,$x,K7,$X,uN){kx.selectedSuggestionIndex=K7;
l($x,uN?3:1,$X)},Sh=function(nU){U$.value.value=nU;
U$.value.dispatchEvent(new Event("input"));kx.inputMethodsTracker.add(5);V9m(kx,!0)},yy=[[]],P7=function(nU){var $x="searchbox-suggestion"+_.Xe(_.XV);
yy[nU].push($x);return $x},qU=function(nU){if(P()){yy=[[]];
for(var $x=0;$x<nU;$x++)yy.push([])}},o9=function(){if(PU()){var nU=VQ,$x=nU.scrollTop;
nU=nU.scrollHeight-nU.clientHeight;Qu($x>=nU);$x=Math.abs(nU-$x);$x<=40?x6(1-(40-$x)/40):x6(1)}},RM=function(){return"opacity: "+jj()*100+"%"},Ma=_.Ff(function(){o9();
return!1}),k6=_.Ff(function(){cU(!1);
return!1}),Bt,bN={},cR={},wu={},Gd={};
return _.R("yt-searchbox",{class:_.ip("ytSearchboxComponentHost",(bN.ytSearchboxComponentMweb=!1,bN.ytSearchboxComponentDesktop=!0,bN["yt-searchbox-filled-query"]=function(){return O()},bN["ytd-masthead"]=function(){return!v()},bN.ytSearchboxComponentHostDark=s$,bN)),
role:"search",el:Xo,"client-ve-type":10349},_.R("div",{el:WU,"on:click":lf,class:_.ip("ytSearchboxComponentInputBox",(cR.ytSearchboxComponentInputBoxDark=s$,cR.ytSearchboxComponentInputBoxHasFocus=v,cR))},_.R("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":Ob},_.R(_.W,{cond:v,then:function(){return _.R("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.R(_.DR,{icon:"SEARCH"}))}}),_.R("input",{el:U$,
class:_.ip("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Uu,"aria-expanded":!((Bt=VQ)==null?0:Bt.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":QQ,"on:focus":ZV,"on:input":ed,"on:keydown":u6,"on:paste":MQ,placeholder:p.placeholderText,"aria-activedescendant":function(){var nU;return(nU=yy[K()])==null?void 0:nU[L()]},
"aria-autocomplete":"list",role:"combobox"})),_.R(_.W,{cond:b,then:function(){return _.R("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.R(ze9,null))}}),_.R(_.W,{cond:O,
then:function(){return _.R("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.R("button",{class:"ytSearchboxComponentClearButton","on:click":dr,"aria-label":p.clearButtonAriaLabel||y41},_.R(_.DR,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.R(_.xS,{model:{}})))}})),_.R("button",{class:_.ip("ytSearchboxComponentSearchButton",(wu.ytSearchboxComponentSearchButtonDark=s$,wu)),
"on:click":Ob,"aria-label":pkw,title:p.placeholderText},_.R(_.DR,{icon:"SEARCH"})),_.R(_.W,{cond:function(){if(jMw()&&_.n("mweb_voice_search")&&p.voiceSearchButton)return p.voiceSearchButton()},
then:function(nU){var $x={};return _.R("div",{class:_.ip("ytSearchboxComponentVoiceSearchWrapper",($x.ytSearchboxComponentHideVoiceSearchButton=function(){return O()},$x))},_.R(_.di,{data:nU},{buttonRenderer:function(K7){return _.R(_.hI,{data:K7.data,
onButtonClickCallback:function(){}})}}))}}),_.R("div",{el:_.mR(function(nU){return void(VQ=nU)}),
id:Uu,class:_.ip("ytSearchboxComponentSuggestionsContainer",(Gd.ytSearchboxComponentSuggestionsContainerDark=s$,Gd["yt-searchbox-suggestions-container"]=!1,Gd.ytSearchboxComponentSuggestionsContainerScrollable=PU(),Gd.ytSearchboxComponentSuggestionsContainerAnimated=U,Gd)),"on:scroll":Ma,"on:mousemove":k6,role:"listbox",hidden:!0},_.R(_.rT,{each:P},function(nU,$x){return _.R(Osm,{suggestion:nU,isHighlighted:function(){return $x()===K()},
onClickCallback:qm,onHoverUpdateCallback:function(K7){if(_.n("desktop_enable_single_suggestion_highlight")){var $X=$x();K7&&(T(0),F($X))}},
onRemoveCallback:function(K7){IDw(b9);K7===void 0||K7<0||L8().includes(K7)||Y6([].concat(_.xq(L8()),[K7]))},
labels:p.labels,queryBuilderFunction:Sh,suggestionIndex:$x,generateUniqueId:P7,highlightedId:function(){var K7;return(K7=yy[K()])==null?void 0:K7[L()]},
useScrollMargin:PU(),isKeyboardMode:AZ})}),_.R(_.W,{cond:function(){return!sc()&&P().find(function(nU){return nU.type!==35})&&_.n("searchbox_reporting")},
then:function(){return _.R("button",{class:"ytSearchboxComponentReportButton","on:mousedown":Am},_.g$("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.R(_.W,{cond:function(){return!AR()&&PU()},
then:function(){return _.R("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.R("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:RM}))}})))},"Ig"),"yt-searchbox",{props:{searchEndpoint:_.Co,
placeholderText:_.Co,labels:_.Co,voiceSearchButton:_.Co,focusCallback:_.jw,clearButtonAriaLabel:_.Co,forceDarkMode:_.Co}});var a_=function(){var p=_.w.apply(this,arguments)||this;p.menuButtonTargetId="topbar-guide-menu";p.narrow=!1;p.menuStrings={BACK_ALT_LABEL:_.g$("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.g$("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.g$("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.g$("SBOX_PLACEHOLDER",void 0,"Search")};p.pageDarkTheme=document.documentElement.hasAttribute("dark");p.watchPageScrollTop=0;p.theater=!1;p.fullscreen=!1;p.disableFrostedGlassDuringViewTransition=
!1;p.desktopUnifiedSearchPanelMode=_.n("desktop_enable_unified_search_panel");p.cinematicTheaterMode=_.n("web_cinematic_theater_mode");p.ytSearchboxFocused=!1;p.searchboxLabels=_.OY("SBOX_LABELS");p.topbarIsAboveChipbar=!1;p.isDarkThemeForced=!1;p.areGhostCardsHidden=!1;p.guideKeyboardToggle=!1;p.voiceSearchManager=jb1();p.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};p.setYtSearchboxFocused=function(y){p.ytSearchboxFocused=
y};
p.toggleFrostedGlassDuringViewTransition=function(y){p.disableFrostedGlassDuringViewTransition=y};
return p};
_.A(a_,_.w);_.J=a_.prototype;_.J.computeSimpleText=function(p){return _.JB(p)};
_.J.onDarkChanged=function(){for(var p=_.c(this.buttons||[]),y=p.next();!y.done;y=p.next())y.value.isOverlay=!!this.dark;p=_.c(this.buttonRenderers||[]);for(y=p.next();!y.done;y=p.next())y.value.overrides=this.computeButtonOverride()};
_.J.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.J.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var p=_.sX(_.qB(),"aa");_.nv(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||p||(this.isDarkThemeForced=this.dark=!0);this.logoType?(p=this.hostElement.querySelector("#masthead-logo"))&&(_.n("polymer_on_demand_shady_dom")?p.setAttribute("slot","masthead-logo-old"):_.Qy(p)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.MH(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.MH(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.J.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.MH(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.MH(this,this.onSetTheaterModeEnabled))};
_.J.dataChanged=function(){var p=this.data;p&&(this.voiceEnabled=p.voiceSearchButton?jb1().isSupported():!1,_.n2$(_.T7(),this.menuButtonTargetId,this.guideButton),p.onReceivedActions&&p.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Gf(this.hostElement,p.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&p&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.nv(this.hostElement,"dark",!1),_.nv(this.hostElement,"theater",!1),
(p=this.hostElement.querySelector("#masthead-logo"))&&(_.n("polymer_on_demand_shady_dom")?p.setAttribute("slot","masthead-logo-old"):_.Qy(p))))};
_.J.computeCenterHidden=function(){var p;return this.data&&!((p=this.data.searchbox)==null?0:p.fusionSearchboxRenderer)};
_.J.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.nv(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.J.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.J.onWatchScroll=function(p){this.watchPageScrollTop=p.detail||0;this.updateMastheadBackgroundOpacity()};
_.J.onFullscreenChangeAction=function(p){p||(this.watchPageScrollTop=0);this.fullscreen=p;this.updateMastheadBackgroundOpacity()};
_.J.onSetTheaterModeEnabled=function(p){this.theater=p.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.J.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.J.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.J.setBackgroundOpacity=function(p){p=this.calculateBackgroundOpacity(p);this.background.style.opacity=""+p};
_.J.calculateBackgroundOpacity=function(p){var y=this.theater&&this.cinematicTheaterMode?.6:0,l=this.hostElement.clientHeight/2;return Math.min(Math.max(p,0),l)/l*(1-y)+y};
_.J.shouldShowCinematicMastHead=function(){var p=_.n("kevlar_watch_grid")&&!_.n("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(p||this.pageDarkTheme)};
_.J.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.J.focusGuide=function(){this.guideButton.focus()};
_.J.onGuideToggleTap=function(){_.Ub(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.J.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.J.onGuideToggleHover=function(){_.Ub(this.hostElement,"yt-guide-hover")};
_.J.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.J.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.J.closeOnOutsideClickCondition=function(p){for(p=_.Jx(p);p[0];){var y=p.shift();if(y instanceof Element&&y.id==="kbd")return!1}return!0};
_.J.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.J.pausePlayer=function(){var p;(p=_.$o())==null||p.pause();this.pauseMiniplayer()};
_.J.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var p;(p=_.WC().resolve(_.IA).getPlayerElement())==null||p.pause()}};
_.J.isMiniplayerActive=function(){return _.WC().resolve(_.IA).isMiniplayerActive()};
_.J.updateNarrowFromBinding=function(p){this.narrow=p.detail.value};
_.J.onYtSendFeedbackAction=function(){_.$w(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.J.registerWithViewTransitionManager=function(){ryT(_.WC().resolve(_.xr),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.Jh.Object.defineProperties(a_.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.n("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var p;return(p=this.data)==null?void 0:p.voiceSearchButton}}}});
a_.prototype.narrowChanged=a_.prototype.narrowChanged;a_.prototype.onWatchPageChange=a_.prototype.onWatchPageChange;a_.prototype.onRendererStamperFinished=a_.prototype.onRendererStamperFinished;a_.prototype.dataChanged=a_.prototype.dataChanged;a_.prototype.onDarkChanged=a_.prototype.onDarkChanged;_.H([_.V(_.vG),_.x("design:type",Object)],a_.prototype,"ironResizableBehavior",void 0);_.H([_.V(_.RmO),_.x("design:type",Object)],a_.prototype,"ytdExpandableInputBehavior",void 0);
_.H([_.V(_.qI.YtdGuideStateAwareBehavior),_.x("design:type",Object)],a_.prototype,"ytdGuideStateAwareBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],a_.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],a_.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],a_.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.zL),_.x("design:type",Object)],a_.prototype,"ytdReduxBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],a_.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],a_.prototype,"narrow",void 0);_.H([_.Q(),_.x("design:type",Object)],a_.prototype,"logoType",void 0);_.H([_.Q(),_.x("design:type",Boolean)],a_.prototype,"voiceEnabled",void 0);
_.H([_.Q(),_.x("design:type",Object)],a_.prototype,"menuStrings",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],a_.prototype,"dark",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],a_.prototype,"pageDarkTheme",void 0);_.H([_.Q(),_.x("design:type",Object)],a_.prototype,"watchPageScrollTop",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.XT}),_.x("design:type",Boolean)],a_.prototype,"isWatchPage",void 0);
_.H([_.Q({reflectToAttribute:!0,selector:_.My_}),_.x("design:type",Boolean)],a_.prototype,"isShortsPage",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],a_.prototype,"theater",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],a_.prototype,"fullscreen",void 0);_.H([_.Q({reflectToAttribute:!0,selector:_.Kd6}),_.x("design:type",String)],a_.prototype,"frostedGlassMode",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],a_.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.H([_.Q(),_.x("design:type",Object)],a_.prototype,"ytSearchboxFocused",void 0);_.H([_.SR("#buttons > *"),_.x("design:type",Array)],a_.prototype,"buttons",void 0);_.H([_.SR("ytd-button-renderer"),_.x("design:type",Array)],a_.prototype,"buttonRenderers",void 0);_.H([_.rd("#background"),_.x("design:type",HTMLDivElement)],a_.prototype,"background",void 0);
_.H([_.rd("#guide-button"),_.x("design:type",Object)],a_.prototype,"guideButton",void 0);_.H([_.rd("#logo"),_.x("design:type",Object)],a_.prototype,"logo",void 0);_.H([_.Q({computed:"computeButtonOverride(dark)"}),_.x("design:type",Object)],a_.prototype,"buttonOverrides",void 0);_.H([_.k8("dark"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],a_.prototype,"onDarkChanged",null);_.H([_.Q({value:function(){return this.onVoiceTap.bind(this)}}),
_.x("design:type",Function)],a_.prototype,"boundOnTapVoiceButton",void 0);_.H([_.Q(),_.x("design:type",Object)],a_.prototype,"topbarIsAboveChipbar",void 0);_.H([_.Q(),_.x("design:type",String),_.x("design:paramtypes",[])],a_.prototype,"guideIcon",null);_.H([_.g("voiceEnabled"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],a_.prototype,"shouldShowVoiceSearchButton",null);_.H([_.g("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],a_.prototype,"voiceSearchButton",null);
_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],a_.prototype,"dataChanged",null);_.H([_.VU("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],a_.prototype,"onRendererStamperFinished",null);_.H([_.k8("isWatchPage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],a_.prototype,"onWatchPageChange",null);
_.H([_.k8("narrow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],a_.prototype,"narrowChanged",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-masthead"})],a_);
_.D(a_,"ytd-masthead",function(){if(TSu!==void 0)return TSu;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return TSu=p},{mode:_.ZS("kevlar_poly_si_batch_j036")?1:2});var qGd;var sHw={},ttu={},Eem={},J46={},c4d=(J46.OFFLINE=(sHw["publicytnetworkstatus-online"]="BACK_ONLINE",sHw),J46.ONLINE=(ttu["publicytnetworkstatus-offline"]="OFFLINE",ttu),J46.BACK_ONLINE=(Eem["publicytnetworkstatus-offline"]="OFFLINE",Eem.TIMER_TRIGGER="ONLINE",Eem),J46),mo=function(){var p=_.w.apply(this,arguments)||this;p.currentState="ONLINE";p.scheduledJobId=0;p.bannerString="";p.bannerVe=null;p.networkStatusManagerInstance=new _.lG;return p};
_.A(mo,_.w);_.J=mo.prototype;_.J.attached=function(){var p=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){p.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){p.stateChangeHandler("publicytnetworkstatus-offline")})};
_.J.detached=function(){var p=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){p.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){p.stateChangeHandler("publicytnetworkstatus-offline")})};
_.J.enterState=function(p){var y=this;this.scheduledJobId&&_.TR.cancelJob(this.scheduledJobId);p==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):p==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.g$("NO_INTERNET_CONNECTION",void 0,"No internet connection")):p==="BACK_ONLINE"&&(this.bannerString=_.g$("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.rJ(_.TR,function(){y.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=p};
_.J.stateChangeHandler=function(p){(p=c4d[this.currentState][p])&&this.enterState(p)};
_.J.logVisibility=function(p){var y=_.B2();this.createBannerVe(p);y&&this.bannerVe&&(p?_.qs(y,[this.bannerVe]):_.st(y,[this.bannerVe]))};
_.J.createBannerVe=function(p){!this.bannerVe&&p&&(this.bannerVe=_.fY(37929),_.gz(_.Ll(),this.bannerVe))};
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",String)],mo.prototype,"currentState",void 0);_.H([_.Q(),_.x("design:type",Object)],mo.prototype,"scheduledJobId",void 0);_.H([_.Q(),_.x("design:type",Object)],mo.prototype,"bannerString",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-network-status-banner"})],mo);
_.D(mo,"ytd-network-status-banner",function(){if(qGd!==void 0)return qGd;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-network-status-banner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="status-banner style-scope ytd-network-status-banner">\n       [[bannerString]]\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return qGd=
p},{mode:1});var ehL;var Uq=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};p.hidden=!0;p.frostedGlass=_.n("web_frosted_glass");return p};
_.A(Uq,_.w);Uq.prototype.computeHidden=function(p){return p&&p.status?!1:!0};
Uq.prototype.handleUpdatePermissionRoleCommand=function(p){if(p=_.G(p,_.cTx))if(p=_.G(p.renderer,_.JTN))this.data=p};
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Uq.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Uq.prototype,"componentBehavior",void 0);_.H([_.Q({value:!0,computed:"computeHidden(data)"}),_.x("design:type",Object)],Uq.prototype,"hidden",void 0);_.H([_.Q(),_.x("design:type",Object)],Uq.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Uq.prototype,"frostedGlass",void 0);
_.H([_.k({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Uq);
_.D(Uq,"ytd-permission-role-bottom-bar-renderer",function(){if(ehL!==void 0)return ehL;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-permission-role-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="pom-role-text style-scope ytd-permission-role-bottom-bar-renderer" hidden="[[hidden]]">\n  <yt-formatted-string text="[[data.status]]" class="style-scope ytd-permission-role-bottom-bar-renderer"></yt-formatted-string>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return ehL=p},{mode:1});var hhd;var CnL;var CyR={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var $M=function(){return _.w.apply(this,arguments)||this};
_.A($M,_.w);_.J=$M.prototype;_.J.attached=function(){this.JSC$20583_scroller&&(this.JSC$20583_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20583_scroller.attached&&typeof this.JSC$20583_scroller.attached==="function"&&this.JSC$20583_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(l){l.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var p=_.jR(this.hostElement);p.querySelector("tp-yt-paper-radio-group").selected="";var y=p.querySelector("#reason-text");y&&(y.value="");p.querySelector("#description-text").value=""}};
_.J.canSubmit=function(p,y){_.Ub(this.hostElement,"yt-invalidate-popup-tabbables");return!(p&&y)};
_.J.onCancel=function(){_.$w(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.J.onSubmit=function(){var p=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(E){return E.active}).map(function(E){return E.innerText.trim()}),y=this.hostElement.querySelector("tp-yt-paper-radio-group"),l=y.selectedItem,q=l.name;
l=l.innerText.trim();var t=y.querySelector("#reason-text");y=void 0;t&&(y=t.value);(t=this.descriptionText.value)&&(t=t.trim());uHV(this.data.searchQuery,p,q,l,t,y);_.$w(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.J.sendFormSubmitToast=function(){var p=_.uS(_.g$("SBOX_INAPPROPRIATE_TOAST"));_.$w(this.hostElement,"yt-open-popup-action",[p,this])};
_.J.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(p){return p.active})};
_.J.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
$M.prototype.onIronSelect=$M.prototype.onIronSelect;$M.prototype.onIronChange=$M.prototype.onIronChange;$M.prototype.dataChanged=$M.prototype.dataChanged;_.H([_.Q(),_.x("design:type",Object)],$M.prototype,"data",void 0);_.H([_.Q({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.x("design:type",Boolean)],$M.prototype,"submitDisabled",void 0);_.H([_.Q(),_.x("design:type",Boolean)],$M.prototype,"suggestionSelected",void 0);
_.H([_.Q(),_.x("design:type",Boolean)],$M.prototype,"catagorySelected",void 0);_.H([_.rd("#scroller"),_.x("design:type",Object)],$M.prototype,"JSC$20583_scroller",void 0);_.H([_.rd("#description-text"),_.x("design:type",Object)],$M.prototype,"descriptionText",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$M.prototype,"dataChanged",null);
_.H([_.VU("iron-change"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$M.prototype,"onIronChange",null);_.H([_.VU("iron-select"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$M.prototype,"onIronSelect",null);_.H([_.k({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],$M);
_.D($M,"ytd-search-suggestion-report-dialog",function(){if(CnL!==void 0)return CnL;var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-suggestion-report-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-search-suggestion-report-dialog">\n  <div id="content" class="style-scope ytd-search-suggestion-report-dialog">\n    <h2 id="title" class="style-scope ytd-search-suggestion-report-dialog">[[data.title]]</h2>\n    <div id="suggestions" class="style-scope ytd-search-suggestion-report-dialog">\n      <template is="dom-repeat" items="[[data.suggestions]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-checkbox class="style-scope ytd-search-suggestion-report-dialog">[[item.label]]</tp-yt-paper-checkbox>\n      </template>\n    </div>\n    <tp-yt-paper-radio-group id="categories" class="style-scope ytd-search-suggestion-report-dialog">\n      <h2 id="category-title" class="style-scope ytd-search-suggestion-report-dialog">[[data.categoryLabel]]</h2>\n      <yt-formatted-string id="category-title" text="[[data.categoryLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n      </yt-formatted-string>\n      <template is="dom-repeat" items="[[data.categories]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-radio-button name="[[item.id]]" class="style-scope ytd-search-suggestion-report-dialog">\n          [[item.label]]\n          <template is="dom-if" if="[[item.reasonLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n            <tp-yt-paper-input-container id="reason" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n              <tp-yt-iron-autogrow-textarea id="reason-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[item.reasonLabel]]" rows="1">\n              </tp-yt-iron-autogrow-textarea>\n            </tp-yt-paper-input-container>\n          </template>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n    <tp-yt-paper-input-container id="details" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n      <tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[data.detailsPlaceholderLabel]]" rows="2">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-search-suggestion-report-dialog"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope ytd-search-suggestion-report-dialog">\n  <tp-yt-paper-button id="cancel" on-tap="onCancel" class="style-scope ytd-search-suggestion-report-dialog">[[data.cancelButtonLabel]]</tp-yt-paper-button>\n  <tp-yt-paper-button id="submit" disabled="[[submitDisabled]]" on-tap="onSubmit" class="style-scope ytd-search-suggestion-report-dialog">\n    [[data.submitButtonLabel]]\n  </tp-yt-paper-button>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);return CnL=p},{mode:1});var jA=function(p){var y=p.openPopupAction;var l=p.target;var q=p.container;var t=p.popupContainerConfig;var E=p.getElement;p=p.removeWhenClosed===void 0?!1:p.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=y;this.target=l;this.container=q;this.popupContainerConfig=t;this.getElement=E;this.JSC$20589_popupConfig=this.popupContainerConfig.JSC$19705_popupConfig[this.openPopupAction.popupType];this.rendererName=(y=this.getName())?_.jWL(y,zcV(this.popupContainerConfig,
y)):"";_.n("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=p);this.createPopup()};
jA.prototype.updatePopup=function(p){this.openPopupAction=p;this.JSC$20589_popupConfig=this.popupContainerConfig.JSC$19705_popupConfig[this.openPopupAction.popupType];uV6(this);_.n("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
jA.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var adA=function(p,y,l){(y=y&&p.JSC$20589_popupConfig.narrowProperties?p.JSC$20589_popupConfig.narrowProperties:p.JSC$20589_popupConfig.properties)&&l!==void 0&&(y.isAriaModal=l);RhV(p,y);p.isRtl()&&RhV(p,p.JSC$20589_popupConfig.rtlProperties);Wp9(p)};
jA.prototype.createPopup=function(){var p=this.JSC$20589_popupConfig.component;if(this.popupContent=mpO(this,this.rendererName)){if(p){this.popup=mpO(this,p);var y=this.popupContent;_.n("web_enable_wrapper_for_cow_component_in_popup")&&(y=document.createElement("div"),y.appendChild(this.popupContent));_.n("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20589_popupConfig.slotName&&y.setAttribute("slot",this.JSC$20589_popupConfig.slotName);p=this.popup;var l=this.container.tagName.toLowerCase(),
q=_.eR(y);_.d0l(_.Cv(p),_.mr(y,l,q));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.n("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.jR(this.container).appendChild(this.popup)}};
var uV6=function(p){var y,l,q=(y=p.openPopupAction.accessibilityData)==null?void 0:(l=y.accessibilityData)==null?void 0:l.label;q&&(p.popup.ariaLabel=q);var t;((t=p.popupContent.polymerController)!=null?t:p.popupContent).data=(0,_.Ts.unsafeClone)(p.openPopupAction.popup[p.getName()]);p.popupContent.duration=UpR(p);p.popupContent.positionType=p.openPopupAction.position;var E=p.openPopupAction.properties;E&&Object.keys(E).forEach(function(e){p.popupContent[e]=E[e]})},RhV=function(p,y){if(y)for(var l=
_.c(Object.keys(y)),q=l.next();!q.done;q=l.next())q=q.value,p.popup[q]=y[q]},Wp9=function(p){if(p.openPopupAction.position){var y=p.JSC$20589_popupConfig.positionalProperties&&p.JSC$20589_popupConfig.positionalProperties[p.openPopupAction.position],l=p.JSC$20589_popupConfig.rtlPositionalProperties&&p.JSC$20589_popupConfig.rtlPositionalProperties[p.openPopupAction.position];
y=p.isRtl()&&l?l:y;y.shiftedHorizontalOffset&&(l=p.popup.style.display,p.popup.style.display="block",p.popupContent&&p.popup.positionTarget&&p.popupContent.clientWidth>p.popup.positionTarget.clientWidth&&(y.horizontalOffset=p.popup.positionTarget.clientWidth/2-y.shiftedHorizontalOffset),p.popup.style.display=l);RhV(p,y)}},$p9=function(p,y){if(y)for(var l=_.c(Object.keys(y)),q=l.next();!q.done;q=l.next())q=q.value,p.popup.style[q]=y[q]};
jA.prototype.getName=function(){return _.vu(this.openPopupAction.popup,"renderer")||_.vu(this.openPopupAction.popup,"dialog")||_.vu(this.openPopupAction.popup,"model")||void 0};
var UpR=function(p){p=p.openPopupAction.durationHintMs;return p===0?p:Math.max(4E3,p||4E3)};
jA.prototype.isRtl=function(){return _.OY("HTML_DIR")==="rtl"};
var mpO=function(p,y){p=p.getElement(y,p.target);p==null&&_.vs(new _.SM("popup getElement returned null",y));return p};var jHm={};
jHm.YtPopupContainerBehavior=[_.sd.YtComponentBehavior,_.no.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.aJ(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.mO(this.hostElement)},
closePopup:function(p){var y=this.createCacheKey(void 0,p);this.popups_[y]&&this.handleClosePopupAction_(void 0,p)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.TR.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.TR.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(p){p.opened&&p.keepBelowPlayer&&this.ensurePopupBelowPlayer(p)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var p in this.popups_){var y=this.popups_[p];if(y.popup.scrollAction==="refit"){var l=y.popup.positionTarget.getBoundingClientRect(),q=y.popup;l=l.top;var t=y;if(!t.naturalHeight){t.popup.hidden=!1;t.popup.style.position="fixed";t.popup.style.top="0px";t.popup.style.left="0px";var E=t.popup.getBoundingClientRect();t.naturalHeight=E.bottom-E.top;t.popup.refit()}q.hidden=!(l>=t.naturalHeight+60);y.popupContent.clientHeight===0&&y.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(p){this.popupContainerConfig=p},
handleOpenPopupAction:function(p,y){var l=p.openPopupAction,q=_.WC().resolve(_.RK(_.g2))&&l.popupType==="TOAST";q&&!l.uniqueId&&(l.uniqueId=_.Yr());if(!_.n("popup_container_parent_target_killswitch")){var t;y=(t=this.getParentTarget(y))!=null?t:y}var E=this.ensurePopup_(l,y);return new _.Ps(function(e){E.then(function(C){if(!C)return e();this.maybeCreateNarrowMediaQuery_();var u=this.createCacheKey(C.rendererName,C.openPopupAction.uniqueId);if(l.showOncePerUniqueId){if(this.shownPopupKeys_.has(u))return e();
this.shownPopupKeys_.add(u)}u=this.popups_[u];var a=!(!u||!u.openPopupAction.beReused);a=!!l.reusePopup||a;if(C.popup.opened&&!a){q&&!C.openPopupAction.replacePopup||this.handleClosePopupAction_(C.rendererName,C.openPopupAction.uniqueId);a=l.popupType==="DIALOG"&&!_.n("popup_container_dialog_reopen_killswitch");if(!q&&!a&&u&&u.target==y&&!C.openPopupAction.replacePopup)return e();_.th(C.popup,function(){this.completeOpenPopupAction_(l,y,C);e()}.bind(this))}else C.popup.opened?C.updatePopup(l):this.completeOpenPopupAction_(l,
y,C),e()}.bind(this))}.bind(this))},
getParentTarget:function(p){if(p&&p instanceof HTMLElement)for(var y=_.c(Object.entries(this.popups_)),l=y.next();!l.done;l=y.next())if(l=_.c(l.value),l.next(),l=l.next().value,l.popup.tagName==="TP-YT-IRON-DROPDOWN"&&p.closest(l.rendererName))return l.target},
completeOpenPopupAction_:function(p,y,l){l.updatePopup(p);p=this.narrowMediaQuery_.queryMatches;var q=this.isAriaModal;l.target=y;var t;y=((t=l.target.polymerController)!=null?t:l.target).popupPositionTarget||l.target;l.JSC$20589_popupConfig.targetContainer&&(y=l.container);l.popup.positionTarget=y;l.popupContent.positionTarget=y;Wp9(l);l.JSC$20589_popupConfig.forceFocus&&(l.popupContent.style.outline="none");l.popupContent.tabIndex=-1;l.JSC$20589_popupConfig.narrowProperties&&(l.popup.style.position=
"static");l.JSC$20589_popupConfig.preventAutonav&&l.popup.setAttribute("prevent-autonav",!0);l.JSC$20589_popupConfig.forceCloseOnOutsideClick&&l.popup.setAttribute("force-close-on-outside-click",!0);adA(l,p,q);$p9(l,l.JSC$20589_popupConfig.styles);l.isRtl()&&$p9(l,l.JSC$20589_popupConfig.rtlStyles);if(!l.openPopupAction.shouldStopParentSignal){var E;t=(E=l.target.polymerController)!=null?E:l.target;(l.popupContent.startForwardingEvents||l.popupContainerConfig.forwardingEnabledPopups.has(l.rendererName))&&
t.parentComponent!==l.popupContent&&l.popupContent!==l.target&&l.target!==document.body&&(l.popupContent.startForwardingEvents?l.popupContent.startForwardingEvents(l.popupContainerConfig.forwardedEvents,l.target):(l.JSC$20589_eventForwarder||(l.JSC$20589_eventForwarder=new _.GK(l.popupContent)),l.JSC$20589_eventForwarder.start(l.popupContainerConfig.forwardedEvents,l.target)))}l=l.popup;l.addEventListener("iron-overlay-opened",_.MH(this,this.onPopupIronOverlayOpened_));l.addEventListener("iron-overlay-closed",
_.MH(this,this.onPopupIronOverlayClosed_));l.addEventListener("iron-overlay-canceled",_.MH(this,this.onPopupIronOverlayCanceled_));l.addEventListener("yt-refit",_.MH(this,this.refitPopup_));l.addEventListener("yt-invalidate-popup-tabbables",_.MH(this,this.handleInvalidatePopupTabbables_));l.open()},
getPopupDurationMs_:function(p){return p.durationHintMs===0?p.durationHintMs:Math.max(4E3,p.durationHintMs||4E3)},
handleClosePopupAction_:function(p,y){var l=_.n("web_popup_cache_key_killswitch")||!!y;if(p||l){var q=this.createCacheKey(p,y);p=(p=this.popups_[q])&&p.popup}else p=_.oFU(_.tT);if(p&&p.close){if(y=_.WC().resolve(_.RK(_.Zu)))p.restoreFocusOnClose=y.isKeyBoardInUse();p.close();this.removePopup_(p,q)}},
handleClosePopupCommand_:function(p){p.closePopupCommand&&p.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,p.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(p){var y={},l;for(l in this.popups_)if(y={key$jscomp$1179:y.key$jscomp$1179},y.key$jscomp$1179=l,!p||!p.some(function(E){return function(e){return e==E.key$jscomp$1179}}(y))){var q=this.popups_[y.key$jscomp$1179],t=q.popup;
_.WC().resolve(_.RK(_.g2))&&q.openPopupAction.popupType==="TOAST"||(t&&t.close&&t.close(),this.removePopup_(t,y.key$jscomp$1179))}},
handleClosePopupsAction_:function(p){p.forEach(function(y){var l=this.popups_[y];l&&((l=l.popup)&&l.close&&l.close(),this.removePopup_(l,y))}.bind(this))},
handleGetPopupOpenedAction_:function(p,y){return(y=this.createCacheKey(p,y))&&this.popups_[y]?this.popups_[p].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var p=[],y;for(y in this.popups_){var l=this.popups_[y];l.popup.opened&&p.push(l)}return p},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(p,y){_.n("ytpopup_disable_default_html_caching")&&p&&p.removeWhenClosed&&(_.jR(this.hostElement).removeChild(p),y&&this.popups_[y]&&delete this.popups_[y])},
shouldReusePopup_:function(p){return!(!p||!p.reusePopup)||!(!p||!p.beReused)},
ensurePopup_:function(p,y){this.maybeCreateNarrowMediaQuery_();var l=_.vu(p.popup,"renderer")||_.vu(p.popup,"dialog")||_.vu(p.popup,"model");if(!l)return _.PW();l=_.jWL(l,zcV(this.popupContainerConfig,l));return _.PW(this.getAndMaybeCreatePopup_(p,l,y))},
getAndMaybeCreatePopup_:function(p,y,l){var q=this.createCacheKey(y,p.uniqueId);if(this.popups_[q])return this.popups_[q];p=new jA({openPopupAction:p,target:l,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(y)});return this.popups_[q]=p},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(p){return _.n("ytpopup_disable_default_html_caching")?p&&p.includes("view-model"):!1},
maybeCreateNarrowMediaQuery_:function(){this.narrowMediaQuery_||(this.narrowMediaQuery_=document.createElement("iron-media-query"),this.narrowMediaQuery_.query="(max-width: 656px)",this.narrowMediaQuery_.addEventListener("query-matches-changed",_.MH(this,this.openPopupQueryMatchesChanged_)),_.jR(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(p){p=p.detail.value;for(var y in this.popups_)adA(this.popups_[y],p)},
onPopupIronOverlayClosed_:function(p){var y=p.currentTarget,l=_.WTo(y);l=l.length>0?l[0]:y;if(l.is!=="ytd-reel-watch-while-dialog-renderer"||p.target.is!=="tp-yt-iron-dropdown"){p.detail.popup=y;p.detail.popupRenderer=l;var q,t={context:{openingElement:((q=this.popups_[(l==null?void 0:l.is)||""])==null?void 0:q.target)||void 0}};Object.assign(t,p.detail);var E;_.Ub((E=l.hostElement)!=null?E:l,"yt-popup-closed",t);y.removeEventListener("yt-refit",_.MH(this,this.refitPopup_));y.removeEventListener("yt-invalidate-popup-tabbables",
_.MH(this,this.handleInvalidatePopupTabbables_));y.removeEventListener("iron-overlay-canceled",_.MH(this,this.onPopupIronOverlayCanceled_));y.removeEventListener("iron-overlay-closed",_.MH(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(y)}},
onPopupIronOverlayCanceled_:function(p,y){var l=p.currentTarget,q=_.WTo(l);q=q.length>0?q[0]:l;if(q.is!=="ytd-reel-watch-while-dialog-renderer"||p.target.is!=="tp-yt-iron-dropdown"){var t;_.Ub((t=q.hostElement)!=null?t:q,"yt-popup-canceled",p.detail);t=y?_.Jx(y):null;(!y||["click","tap"].includes(y.type))&&!l.hasAttribute("force-close-on-outside-click")&&l.positionTarget&&t&&t.includes(l.positionTarget)&&p.preventDefault();l.restoreFocusOnClose=_.Ln.keyboardEventMatchesKeys(y,"esc")}},
onPopupIronOverlayOpened_:function(p){p=p.currentTarget;var y=_.WTo(p);y=y.length>0?y[0]:p;var l,q;_.Ub((l=y.hostElement)!=null?l:y,"yt-popup-opened",(q=y.hostElement)!=null?q:y);p.keepBelowPlayer&&(this.ensurePopupBelowPlayer(p,!0),this.dynamicallyPositionedElements_.add(p));l=_.WC().resolve(_.RK(_.Zu));q=!!y.querySelector("#toast");l&&l.isKeyBoardInUse()&&!q&&(typeof y.focusFirstItem==="function"?y.focusFirstItem():(y=_.Xnv(p),y.length&&y[0].focus()));p.removeEventListener("iron-overlay-opened",
_.MH(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(p){p=p.currentTarget;p.refit&&p.refit()},
refitPopups_:function(){for(var p in this.popups_)this.popups_[p].refit()},
handleInvalidatePopupTabbables_:function(p){p=p.currentTarget;p.invalidateTabbables&&p.invalidateTabbables()},
createCacheKey:function(p,y){return _.n("web_popup_cache_key_killswitch")?y?p+"#"+y:p:y?"#"+y:p},
openSheet:function(p,y){var l=p==null?void 0:p.openPopupActionCommand;!l&&(p==null?0:p.viewModel)&&(l={openPopupAction:{popup:{sheetViewModel:p.viewModel},popupType:"CONTEXTUAL_SHEET"}});l&&this.handleOpenPopupAction(l,y)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var p=this;return _.h(function(y){return y.return(p.handleGetOpenedPopupsAction_().filter(function(l){var q;return((q=l.openPopupAction)==null?void 0:q.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(p,y,l){if(_.n("web_dialog_utils_killswitch")){var q=p==null?void 0:p.openPopupActionCommand,t=(l==null?0:l.ariaLabel)?{accessibilityData:{accessibilityData:{label:l.ariaLabel}}}:void 0;!q&&(p==null?0:p.viewModel)&&(q={openPopupAction:Object.assign({},{popup:{dialogViewModel:p.viewModel},popupType:(l==null?0:l.isModal)?"MODAL":"DIALOG"},t&&t)});q&&this.handleOpenPopupAction(q,y)}else{if(t=p==null?void 0:p.viewModel){var E=l=l===void 0?{}:l;l=E.ariaLabel;t={popup:{dialogViewModel:t},
popupType:E.isModal?"MODAL":"DIALOG"};E={accessibilityData:{label:l}};l&&(t.accessibilityData=E);t={openPopupAction:t}}else t=void 0;if(t=(q=t)!=null?q:p==null?void 0:p.openPopupActionCommand)this.isAriaModal=_.n("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(t,y)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var p=this;return _.h(function(y){return y.return(p.handleGetOpenedPopupsAction_().filter(function(l){var q;return((q=l.openPopupAction)==null?void 0:q.popupType)==="DIALOG"}).length>0)})}}];var bmw;var nei;var GIT=_.c0(["about:blank"]),br=function(){var p=_.w.apply(this,arguments)||this;p.isMuted=!1;p.pageLoadTimeoutId=void 0;return p};
_.A(br,_.w);_.J=br.prototype;_.J.dataChanged=function(){var p=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var y=this.data.url,l=_.xQ(y);_.n("enable_yt_ata_iframe_authuser")?(l=_.xQ(y),_.l6(this.iframe,RUm(l))):_.l6(this.iframe,l);this.pageLoadTimeoutId=_.rJ(_.B3(),function(){return void p.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.aC({destination:window,iframe:this.iframe,origin:_.T6V(l.toString()),channelName:"ataiframe",onMessage:_.Xc5(l11,function(q){qXi(q.data)?(q=_.pO(q.data,1,_.C7,_.RY()),q.length!==1?_.vs(Error("ql")):(q=q[0],q===3?(p.isMuted=!0,p.logStateChanged({adMuteRequested:!0})):q===1&&p.close())):_.vs(Error("rl"))}),
onEstablished:function(){p.cancelPageLoadTimeout();p.logStateChanged({pageLoadSucceeded:!0})}})}};
_.J.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.B3().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.J.logStateChanged=function(p){var y;if((y=this.data)==null?0:y.trackingParams)p={adsClientData:{aboutThisAdData:p}},_.Ll().stateChanged(this.data.trackingParams,p)};
_.J.close=function(){_.$w(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.handlesPopupClosed=function(p,y){var l=this,q,t;return _.h(function(E){if(E.nextAddress==1)return _.OY("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.$w(l.hostElement,"on-about-this-ad-popup-closed",[l.isMuted,y]),E.jumpTo(0)):p&&Wc6(p)?E.yield(aSV(p),4):(l.isMuted&&_.$w(l.hostElement,"yt-mute-ad-action",[l.is,l]),E.jumpTo(0));if(q=E.yieldResult){var e=t=new _.T3(q),C=l.isMuted;e.getOptions().includes("onAboutThisAdPopupClosed")?_.oYr(e,"onAboutThisAdPopupClosed",{isMuted:C,layoutId:y}):_.Rk("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.rR(E)})};
_.J.onPopupClosed=function(p){var y=this,l,q;return _.h(function(t){l=_.bz(GIT);_.l6(y.iframe,l);y.cancelPageLoadTimeout();if(!y.data)return t.jumpTo(0);y.ytRendererBehavior.markDirty();q=p.detail.context.openingElement;return t.yield(y.handlesPopupClosed(q,y.data.layoutId),0)})};
_.J.detached=function(){this.cancelPageLoadTimeout()};
_.J.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
br.prototype.onPopupClosed=br.prototype.onPopupClosed;br.prototype.dataChanged=br.prototype.dataChanged;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],br.prototype,"ytRendererBehavior",void 0);_.H([_.rd("#iframe"),_.x("design:type",HTMLIFrameElement)],br.prototype,"iframe",void 0);_.H([_.Q(),_.x("design:type",Object)],br.prototype,"data",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],br.prototype,"dataChanged",null);
_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype",Promise)],br.prototype,"onPopupClosed",null);_.H([_.z9({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],br);
_.D(br,"yt-about-this-ad-renderer",function(){if(nei===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-about-this-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ads.yt_about_this_ad_renderer.yt.about.this.ad.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-about-this-ad-renderer"></iframe>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;bmw===void 0&&(bmw=document.createElement("template"));var q=bmw;l.call(y,q.content.cloneNode(!0),p.content.firstChild);nei=p}p=nei;return p},{mode:2});var PnA;var A49;var nN=function(p){var y=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=y.message;"stack"in y&&(this.stack=y.stack);this.maxFileSizeMB=p;Object.setPrototypeOf(this,nN.prototype)};
_.A(nN,Error);var Zmw=function(p,y){var l=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=l.message;"stack"in l&&(this.stack=l.stack);this.minWidth=p;this.minHeight=y;Object.setPrototypeOf(this,Zmw.prototype)};
_.A(Zmw,Error);var MtA=function(p){this.requirements=p;this.JSC$20617_maxFileSize=p.maxFileSizeMB*1024*1024},VtL=function(p,y){if(y.size>p.JSC$20617_maxFileSize)throw new nN(p.requirements.maxFileSizeMB);
};var gew=function(p,y){this.canvas=p;this.imageEditorBuilder=y};
gew.prototype.addEventListeners=function(p){var y=function(t){QHw(p,t)};
this.JSC$20623_mouseDownEvent=y;var l=function(t){Kpm(p,t)};
this.JSC$20623_mouseMoveEvent=l;var q=function(){wk7(p)};
this.JSC$20623_mouseUpEvent=q;this.canvas.addEventListener("mousedown",y);this.canvas.addEventListener("mousemove",l);document.addEventListener("mouseup",q)};
gew.prototype.removeEventListeners=function(){this.JSC$20623_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20623_mouseDownEvent);this.JSC$20623_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20623_mouseMoveEvent);this.JSC$20623_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20623_mouseUpEvent)};
var im6=function(p,y){p.removeEventListeners();return new Promise(function(l){var q=new Image;q.crossOrigin="anonymous";q.onload=function(){var t=p.imageEditorBuilder(p.canvas,q);p.addEventListeners(t);l(t)};
q.src=y})},GV=function(p,y,l,q,t,E,e,C){this.canvas=p;
this.image=y;this.requiredRatio=l;this.minImageCropDimension=q;this.minOutputImageResolution=t;this.component=E;this.styleFocusedCorner=C===void 0?!0:C;this.action=2;this.focusedCorner=this.resizeCorner=0;p=this.canvas.getContext("2d");if(!p)throw Error("sl");this.ctx=p;this.canvasMargin=e!=null?e:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;e=this.image;p=this.canvasInnerWidth/e.width;e.height*p>912&&(p=e.width/e.height*912/e.width);e=p;this.scaledImageWidth=this.canvas.width%2?
UeO(this.image.width*e):med(this.image.width*e);this.scaledImageHeight=Math.round(this.image.height*e);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20626_overlayMarginBottom=this.JSC$20626_overlayMarginTop=this.canvasMargin;this.JSC$20626_overlayMarginRight=this.JSC$20626_overlayMarginLeft=this.horizontalMargin;this.JSC$20626_overlayWidth=this.scaledImageWidth;this.JSC$20626_overlayHeight=this.scaledImageHeight;
p=this.image.width/this.image.height;p>this.requiredRatio?(this.JSC$20626_overlayWidth=this.canvas.width%2?UeO(this.scaledImageHeight*this.requiredRatio):med(this.scaledImageHeight*this.requiredRatio),this.JSC$20626_overlayMarginRight=this.JSC$20626_overlayMarginLeft=(this.canvas.width-this.JSC$20626_overlayWidth)/2):p<this.requiredRatio&&(this.JSC$20626_overlayHeight=this.canvas.height%2?UeO(this.scaledImageWidth/this.requiredRatio):med(this.scaledImageWidth/this.requiredRatio),this.JSC$20626_overlayMarginBottom=
this.JSC$20626_overlayMarginTop=(this.canvas.height-this.JSC$20626_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*e,this.scaledImageWidth);r41(this)};
GV.prototype.getContext=function(){return this.ctx};
var QHw=function(p,y){y={x:Math.round(y.pageX-p.canvas.getBoundingClientRect().left),y:Math.round(y.pageY-p.canvas.getBoundingClientRect().top)};p.dragStart=y;SGA(p,y)!==0?(p.action=1,Fpw(p,y),p.resizeCorner=SGA(p,y)):y.x>p.JSC$20626_overlayMarginLeft&&y.x<p.JSC$20626_overlayMarginLeft+p.JSC$20626_overlayWidth&&y.y>p.JSC$20626_overlayMarginTop&&y.y<p.JSC$20626_overlayMarginTop+p.JSC$20626_overlayHeight&&(p.action=0)},LpO=function(p,y){switch(y){case 1:return{x:p.JSC$20626_overlayMarginLeft,
y:p.JSC$20626_overlayMarginTop};case 2:return{x:p.JSC$20626_overlayMarginLeft,y:p.JSC$20626_overlayMarginTop+p.JSC$20626_overlayHeight};case 3:return{x:p.JSC$20626_overlayMarginLeft+p.JSC$20626_overlayWidth,y:p.JSC$20626_overlayMarginTop};case 4:return{x:p.JSC$20626_overlayMarginLeft+p.JSC$20626_overlayWidth,y:p.JSC$20626_overlayMarginTop+p.JSC$20626_overlayHeight};default:throw Error("tl");}},NwO=function(p,y){if(p.focusedCorner!==0){p.dragStart=LpO(p,p.focusedCorner);
p.action=1;p.resizeCorner=p.focusedCorner;var l=p.dragStart.x,q=p.dragStart.y;switch(y){case 0:p.focusedCorner===1||p.focusedCorner===4?(l-=10,q-=10):(l-=10,q+=10);break;case 1:p.focusedCorner===1||p.focusedCorner===4?(l+=10,q+=10):(l+=10,q-=10);break;case 2:l=p.focusedCorner===1||p.focusedCorner===4?l-10:l+10;q-=10;break;case 3:l=p.focusedCorner===1||p.focusedCorner===4?l+10:l-10;q+=10;break;default:throw Error("ul");}kI7(p,{x:l,y:q});r41(p);p.action=2;p.dragStart=void 0}},Kpm=function(p,y){y={x:Math.round(y.pageX-
p.canvas.getBoundingClientRect().left),
y:Math.round(y.pageY-p.canvas.getBoundingClientRect().top)};Fpw(p,y);switch(p.action){case 1:kI7(p,y);break;case 0:p.dragStart&&(p.JSC$20626_overlayMarginLeft=Math.max(p.horizontalMargin,Math.min(p.JSC$20626_overlayMarginLeft-(p.dragStart.x-y.x),p.horizontalMargin+p.scaledImageWidth-p.JSC$20626_overlayWidth)),p.JSC$20626_overlayMarginRight=p.canvas.width-p.JSC$20626_overlayMarginLeft-p.JSC$20626_overlayWidth,p.JSC$20626_overlayMarginTop=Math.max(p.canvasMargin,Math.min(p.JSC$20626_overlayMarginTop-
(p.dragStart.y-y.y),p.scaledImageHeight-p.JSC$20626_overlayHeight+p.canvasMargin)),p.JSC$20626_overlayMarginBottom=p.canvas.height-(p.JSC$20626_overlayMarginTop+p.JSC$20626_overlayHeight));break;default:return}r41(p);p.dragStart=y},wk7=function(p){p.action=2;
p.dragStart=void 0;document.body.style.cursor="auto"},Fpw=function(p,y){switch(SGA(p,y)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:p.action!==1&&(document.body.style.cursor="auto")}},SGA=function(p,y){var l=p.JSC$20626_overlayMarginLeft-5,q=p.JSC$20626_overlayMarginTop-5,t=p.JSC$20626_overlayMarginLeft+p.JSC$20626_overlayWidth-5;
p=p.JSC$20626_overlayMarginTop+p.JSC$20626_overlayHeight-5;return Dpd(y,{x:l,y:q})?1:Dpd(y,{x:t,y:q})?3:Dpd(y,{x:l,y:p})?2:Dpd(y,{x:t,y:p})?4:0},Dpd=function(p,y){return p.x>=y.x&&p.x<=y.x+10&&p.y>=y.y&&p.y<=y.y+10},kI7=function(p,y){if(p.dragStart)switch(p.resizeCorner){case 2:Math.abs((p.JSC$20626_overlayMarginLeft+p.JSC$20626_overlayWidth-y.x)/(y.y-p.JSC$20626_overlayMarginTop))>=p.requiredRatio?Hmi(p,y.x):TwL(p,y.y);
break;case 1:Math.abs((p.JSC$20626_overlayMarginLeft+p.JSC$20626_overlayWidth-y.x)/(p.JSC$20626_overlayMarginTop+p.JSC$20626_overlayHeight-y.y))>=p.requiredRatio?xpu(p,y.x):TwL(p,y.y);break;case 4:Math.abs((y.x-p.JSC$20626_overlayMarginLeft)/(y.y-p.JSC$20626_overlayMarginTop))>=p.requiredRatio?Hmi(p,y.x):BwT(p,y.y);break;case 3:Math.abs((y.x-p.JSC$20626_overlayMarginLeft)/(p.JSC$20626_overlayMarginTop+p.JSC$20626_overlayHeight-y.y))>=p.requiredRatio?xpu(p,y.x):BwT(p,y.y);break;default:throw Error("vl");
}},Hmi=function(p,y){var l=p.JSC$20626_overlayMarginTop;
p.JSC$20626_overlayMarginBottom=fdd(p,y);p.JSC$20626_overlayHeight=p.canvas.height-p.JSC$20626_overlayMarginBottom-l;p.JSC$20626_overlayWidth=Math.round(p.JSC$20626_overlayHeight*p.requiredRatio);veL(p)},xpu=function(p,y){var l=p.JSC$20626_overlayMarginTop+p.JSC$20626_overlayHeight;
p.JSC$20626_overlayMarginTop=fdd(p,y);p.JSC$20626_overlayHeight=l-p.JSC$20626_overlayMarginTop;p.JSC$20626_overlayWidth=Math.round(p.JSC$20626_overlayHeight*p.requiredRatio);veL(p)},veL=function(p){switch(p.resizeCorner){case 2:case 1:p.JSC$20626_overlayMarginLeft=p.canvas.width-p.JSC$20626_overlayMarginRight-p.JSC$20626_overlayWidth;
break;case 4:case 3:p.JSC$20626_overlayMarginRight=p.canvas.width-p.JSC$20626_overlayMarginLeft-p.JSC$20626_overlayWidth;break;default:throw Error("vl");}},TwL=function(p,y){var l=p.JSC$20626_overlayMarginLeft+p.JSC$20626_overlayWidth;
p.JSC$20626_overlayMarginLeft=Xkd(p,y);p.JSC$20626_overlayWidth=l-p.JSC$20626_overlayMarginLeft;p.JSC$20626_overlayHeight=Math.round(p.JSC$20626_overlayWidth/p.requiredRatio);dpO(p)},BwT=function(p,y){var l=p.JSC$20626_overlayMarginLeft;
p.JSC$20626_overlayMarginRight=Xkd(p,y);p.JSC$20626_overlayWidth=p.canvas.width-p.JSC$20626_overlayMarginRight-l;p.JSC$20626_overlayHeight=Math.round(p.JSC$20626_overlayWidth/p.requiredRatio);dpO(p)},dpO=function(p){switch(p.resizeCorner){case 2:case 4:p.JSC$20626_overlayMarginBottom=p.canvas.height-p.JSC$20626_overlayMarginTop-p.JSC$20626_overlayHeight;
break;case 1:case 3:p.JSC$20626_overlayMarginTop=p.canvas.height-p.JSC$20626_overlayMarginBottom-p.JSC$20626_overlayHeight;break;default:throw Error("vl");}},fdd=function(p,y){switch(p.resizeCorner){case 2:y=p.canvas.height-(p.JSC$20626_overlayMarginTop+Om1(p,y));
break;case 4:y=p.canvas.height-(p.JSC$20626_overlayMarginTop+oe7(p,y));break;case 1:y=p.JSC$20626_overlayMarginTop+p.JSC$20626_overlayHeight-Om1(p,y);break;case 3:y=p.JSC$20626_overlayMarginTop+p.JSC$20626_overlayHeight-oe7(p,y);break;default:throw Error("vl");}return Math.max(y,p.canvasMargin)},Om1=function(p,y){y=p.JSC$20626_overlayMarginLeft+p.JSC$20626_overlayWidth-Math.max(y,p.horizontalMargin);
y=y<0?p.JSC$20626_overlayWidth:Math.max(y,p.minOverlayWidth);return Math.round(y/p.requiredRatio)},oe7=function(p,y){y=p.canvas.width-Math.max(p.canvas.width-y,p.horizontalMargin)-p.JSC$20626_overlayMarginLeft;
y=y<0?p.JSC$20626_overlayWidth:Math.max(y,p.minOverlayWidth);return Math.round(y/p.requiredRatio)},Xkd=function(p,y){switch(p.resizeCorner){case 2:y=p.canvas.width-p.JSC$20626_overlayMarginRight-zhm(p,y);
break;case 4:y=p.canvas.width-p.JSC$20626_overlayMarginLeft-zhm(p,y);break;case 1:y=p.canvas.width-p.JSC$20626_overlayMarginRight-YG1(p,y);break;case 3:y=p.canvas.width-p.JSC$20626_overlayMarginLeft-YG1(p,y);break;default:throw Error("vl");}return Math.max(y,p.horizontalMargin)},zhm=function(p,y){y=p.canvas.height-Math.max(p.canvas.height-y,p.canvasMargin)-p.JSC$20626_overlayMarginTop;
return y<0?p.JSC$20626_overlayWidth:Math.max(Math.round(y*p.requiredRatio),p.minOverlayWidth)},YG1=function(p,y){y=p.JSC$20626_overlayMarginTop+p.JSC$20626_overlayHeight-Math.max(y,p.canvasMargin);
return y<0?p.JSC$20626_overlayWidth:Math.max(Math.round(y*p.requiredRatio),p.minOverlayWidth)},r41=function(p){p.ctx.clearRect(0,0,p.canvas.width,p.canvas.height);
p.ctx.drawImage(p.image,0,0,p.image.width,p.image.height,p.horizontalMargin,p.canvasMargin,p.canvas.width-2*p.horizontalMargin,p.scaledImageHeight);p.ctx.fillStyle="rgba(0, 0, 0, 0.7)";p.ctx.fillRect(p.horizontalMargin,p.JSC$20626_overlayMarginTop,p.JSC$20626_overlayMarginLeft-p.horizontalMargin,p.JSC$20626_overlayHeight);p.ctx.fillRect(p.JSC$20626_overlayMarginLeft+p.JSC$20626_overlayWidth,p.JSC$20626_overlayMarginTop,p.JSC$20626_overlayMarginRight-p.horizontalMargin,p.JSC$20626_overlayHeight);p.ctx.fillRect(p.horizontalMargin,
p.canvasMargin,p.scaledImageWidth,p.JSC$20626_overlayMarginTop-p.canvasMargin);p.ctx.fillRect(p.horizontalMargin,p.JSC$20626_overlayMarginTop+p.JSC$20626_overlayHeight,p.scaledImageWidth,p.JSC$20626_overlayMarginBottom-p.canvasMargin);p.drawOverlay();p.component&&_.Ub(p.component,"image-updated")};
GV.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20626_overlayMarginLeft,this.JSC$20626_overlayMarginTop,this.JSC$20626_overlayWidth,this.JSC$20626_overlayHeight);Id1(this)};
var Id1=function(p){var y=p.JSC$20626_overlayMarginLeft-5,l=p.JSC$20626_overlayMarginTop-5,q=p.JSC$20626_overlayMarginLeft+p.JSC$20626_overlayWidth-5,t=p.JSC$20626_overlayMarginTop+p.JSC$20626_overlayHeight-5;p.ctx.fillStyle="#FFF";p.ctx.fillRect(y,l,10,10);p.ctx.strokeRect(y,l,10,10);p.ctx.fillRect(q,l,10,10);p.ctx.strokeRect(q,l,10,10);p.ctx.fillRect(y,t,10,10);p.ctx.strokeRect(y,t,10,10);p.ctx.fillRect(q,t,10,10);p.ctx.strokeRect(q,t,10,10);if(p.focusedCorner!==0&&p.styleFocusedCorner){p.ctx.lineWidth=
4;p.ctx.strokeStyle="#3EA6FF";switch(p.focusedCorner){case 1:--y;--l;break;case 2:--y;l=t-1;break;case 3:y=q-1;--l;break;case 4:y=q-1;l=t-1;break;default:return}p.ctx.strokeRect(y,l,12,12)}};
GV.prototype.crop=function(p,y){y=y===void 0?!0:y;var l=this.image.width/this.scaledImageWidth,q=document.createElement("canvas"),t=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],E=this.JSC$20626_overlayWidth*l,e=this.JSC$20626_overlayHeight*l;q.width=Math.max(E,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);q.height=Math.max(e,t);p&&(q.width=Math.min(q.width,q.height),q.height=Math.min(q.width,q.height));
p=q.getContext("2d");if(!p)throw Error("jl");t=(this.JSC$20626_overlayMarginLeft-this.horizontalMargin)*l;l*=this.JSC$20626_overlayMarginTop-this.canvasMargin;y||(p.fillStyle="white",p.fillRect(0,0,q.width,q.height));p.drawImage(this.image,t,l,E,e,0,0,q.width,q.height);return q};var pM9=function(p,y,l,q,t){GV.call(this,p,y,l,q,void 0,t,8,!1)};
_.A(pM9,GV);pM9.prototype.drawOverlay=function(){var p=this.getContext(),y=this.JSC$20626_overlayWidth,l=this.JSC$20626_overlayHeight,q=this.JSC$20626_overlayMarginTop,t=this.JSC$20626_overlayMarginLeft;p.lineWidth=2;p.strokeStyle="#3EA6FF";p.beginPath();p.arc(t+y/2,q+l/2,y/2,0,2*Math.PI);p.stroke();p.strokeRect(t,q,y,l);Id1(this)};
var y_6={maxFileSizeMB:15,minWidth:98,minHeight:98},l5d=["image/png","image/jpeg","image/gif"],Pg=function(){var p=_.w.apply(this,arguments)||this;p.fileSelectorFocusListener=null;p.errorMessage=null;p.isLoading=!0;p.hideContainer=!0;p.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return p};
_.A(Pg,_.w);_.J=Pg.prototype;_.J.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.J.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.J.computePlaylistThumbnail=function(p){return p==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.J.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.$w(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.J.setErrorState=function(p){this.resetErrorState();p&&(this.errorMessage=p)};
_.J.showPopup=function(){var p=this;this.hideContainer=!1;_.rJ(_.TR,function(){_.Ub(p.hostElement,"yt-refit")});
this.isLoading=!1};
_.J.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.J.closePopup=function(){this.resetFileSelector();_.$w(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.onCancelTap=function(){this.isPlaylistThumbnail||_.$w(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.J.openFileSelector=function(){var p=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.rJ(_.TR,function(){setTimeout(function(){if(!p.fileSelector.files||p.fileSelector.files.length===0)p.onCancelTap();p.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(y){y instanceof Error?_.Bs(y):_.fT(new _.SM(JSON.stringify(y)))}};
_.J.handleFileSelection=function(){var p=this,y,l,q,t,E,e;return _.h(function(C){switch(C.nextAddress){case 1:_.Ve(C,2);if(!p.fileSelector.files||!p.imageEditorCanvas)return p.onCancelTap(),C.return();y=p.fileSelector.files[0];VtL(p.imageChecker,y);_.Ve(C,4);return C.yield(xHV(y),6);case 6:p.mimeType=C.yieldResult;_.pK(C,5,2);break;case 4:_.i6(C,2),_.$w(p.hostElement,"yt-image-selection-error-action",[(l=p.data)==null?void 0:l.genericImageLoadErrorMessage]),p.onCancelTap();case 5:q=new FileReader;
q.addEventListener("load",function(){var u,a;return _.h(function(m){if(m.nextAddress==1){if(!q.result)return _.vs(Error("ll")),m.return();u=q.result;a=new Image;a.src=u;a.onload=function(){try{var U=p.imageChecker;if(a.width<U.requirements.minWidth||a.height<U.requirements.minHeight)throw new Zmw(U.requirements.minWidth,U.requirements.minHeight);}catch(P){if(P instanceof Zmw){var b;_.$w(p.hostElement,"yt-image-selection-error-action",[(b=p.data)==null?void 0:b.imageDimensionErrorMessage]);p.logImageDimensionErrorVe()}else P instanceof
Error?_.Bs(P):(U=new _.SM(JSON.stringify(P)),_.Bs(U));p.onCancelTap()}p.showPopup()};
a.onerror=function(){var U;_.$w(p.hostElement,"yt-image-selection-error-action",[(U=p.data)==null?void 0:U.genericImageLoadErrorMessage]);p.onCancelTap()};
return m.yield(im6(p.imageEditorCanvas,u),2)}p.imageEditor=m.yieldResult;p.updatePositionOfAllCorners();p.addEventListeners(p.imageEditor);_.rR(m)})},!1);
q.readAsDataURL(y);_.pK(C,0);break;case 2:t=_.i6(C),t instanceof nN?_.$w(p.hostElement,"yt-image-selection-error-action",[(E=p.data)==null?void 0:E.imageSizeErrorMessage]):(t instanceof Error?_.Bs(t):_.fT(new _.SM(JSON.stringify(t))),_.$w(p.hostElement,"yt-image-selection-error-action",[(e=p.data)==null?void 0:e.genericImageLoadErrorMessage])),p.onCancelTap(),_.rR(C)}})};
_.J.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var p=_.FH(_.Ll(),{veType:232707,visualElement:_.fY(232707)});p&&(p={visualElement:p},_.Sm().reportShown(p))}};
_.J.handleImageSelectionErrorAction=function(p){this.isPlaylistThumbnail&&_.Svt(this.hostElement,p)};
_.J.convertToImageFormatBundle=function(p){var y=this,l,q,t;return _.h(function(E){switch(E.nextAddress){case 1:return l=p.toDataURL(y.outputMimeType,1),E.yield(Bd7(l),2);case 2:q=E.yieldResult;_.Ve(E,3);VtL(y.imageChecker,q);_.pK(E,4);break;case 3:t=_.i6(E);if(!(t instanceof nN))throw t;_.vs(new _.SM("Output size is bigger than input size for image",y.mimeType,y.outputMimeType,q.size));l=p.toDataURL("image/jpeg",.95);return E.yield(Bd7(l),6);case 6:q=E.yieldResult;case 4:return E.return({dataUrl:l,
imageFile:q})}})};
_.J.handleUploadImageToScottyCommand=function(p){var y=this,l,q,t,E,e,C,u,a,m,U;return _.h(function(b){switch(b.nextAddress){case 1:if(!y.imageEditor||!_.G(p,$Bm))return b.return();l=_.G(p,$Bm).scottyUploadUrl;if(!l){var P=new _.SM("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.Bs(P);return b.return()}_.Ve(b,2);y.setLoadingState();q=y.imageEditor.crop(!1,!1);return b.yield(y.convertToImageFormatBundle(q),4);case 4:return t=b.yieldResult,b.yield(HvA(t.imageFile,l),5);
case 5:E=b.yieldResult;((e=y.data)==null?0:e.onUploadEndpoint)?(C=y.buildUploadServiceEndpoint(E),y.ytComponentBehavior.resolveCommand(C),u=_.G(C,_.YB),((a=u)==null?0:a.params)?y.closePopup():y.resetFileSelector()):(_.$w(y.hostElement,"yt-image-updated-action",[t.dataUrl,E]),y.closePopup());_.pK(b,0);break;case 2:m=_.i6(b),y.setErrorState((U=y.data)==null?void 0:U.uploadErrorMessage),m instanceof Error?_.Bs(m):(P=new _.SM(JSON.stringify(m)),_.Bs(P)),_.rR(b)}})};
_.J.buildUploadServiceEndpoint=function(p){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",p),this.data.onUploadEndpoint):null};
_.J.dataChanged=function(){var p=this,y;return _.h(function(l){if(l.nextAddress==1){if(!p.data||!p.canvasElement)return l.return();p.data.imageRatio&&p.data.minImageCropWidth||_.fT(new _.SM("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));y=function(q,t){return p.data.imageType==="IMAGE_TYPE_AVATAR"?new pM9(q,t,p.data.imageRatio,[p.data.minImageCropWidth,p.data.minImageCropWidth/p.data.imageRatio],p.hostElement):new GV(q,t,p.data.imageRatio,[p.data.minImageCropWidth,
p.data.minImageCropWidth/p.data.imageRatio],void 0,p.hostElement,8,!1)};
p.imageEditorCanvas=new gew(p.canvasElement,y);return p.data.url?l.yield(im6(p.imageEditorCanvas,p.data.url),3):(p.hideContainer=!0,p.openFileSelector(),l.jumpTo(0))}p.imageEditor=l.yieldResult;p.showPopup();p.addEventListeners(p.imageEditor);_.rR(l)})};
_.J.addEventListeners=function(p){this.removeEventListeners();var y=function(t){QHw(p,t)};
this.JSC$20634_mouseDownEvent=y;var l=function(t){Kpm(p,t)};
this.JSC$20634_mouseMoveEvent=l;var q=function(){wk7(p)};
this.JSC$20634_mouseUpEvent=q;this.topLeftCorner.addEventListener("mousedown",y);this.topLeftCorner.addEventListener("mousemove",l);this.topLeftCorner.addEventListener("mouseup",q);this.topRightCorner.addEventListener("mousedown",y);this.topRightCorner.addEventListener("mousemove",l);this.topRightCorner.addEventListener("mouseup",q);this.bottomLeftCorner.addEventListener("mousedown",y);this.bottomLeftCorner.addEventListener("mousemove",l);this.bottomLeftCorner.addEventListener("mouseup",q);this.bottomRightCorner.addEventListener("mousedown",
y);this.bottomRightCorner.addEventListener("mousemove",l);this.bottomRightCorner.addEventListener("mouseup",q)};
_.J.removeEventListeners=function(){this.JSC$20634_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20634_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20634_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20634_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20634_mouseDownEvent));this.JSC$20634_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20634_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20634_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20634_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20634_mouseMoveEvent));this.JSC$20634_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20634_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20634_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20634_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20634_mouseUpEvent))};
_.J.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var p=document.activeElement;p&&p.shadowRoot&&p.shadowRoot.activeElement;)p=p.shadowRoot.activeElement;switch(p){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.J.updatePositionOfCorner=function(p,y){var l=p.y-y.offsetHeight/2+4;y.style.left=p.x-y.offsetWidth/2+16+"px";y.style.top=l+"px"};
_.J.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var p=_.c([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),y=p.next();!y.done;y=p.next()){y=y.value;var l=LpO(this.imageEditor,y.corner);this.updatePositionOfCorner(l,y.div)}};
_.J.onLeft=function(p){this.imageEditor&&this.setFocusInImageEditor()&&(NwO(this.imageEditor,0),this.updatePositionOfAllCorners(),p.preventDefault())};
_.J.onRight=function(p){this.imageEditor&&this.setFocusInImageEditor()&&(NwO(this.imageEditor,1),this.updatePositionOfAllCorners(),p.preventDefault())};
_.J.onUp=function(p){this.imageEditor&&this.setFocusInImageEditor()&&(NwO(this.imageEditor,2),this.updatePositionOfAllCorners(),p.preventDefault())};
_.J.onDown=function(p){this.imageEditor&&this.setFocusInImageEditor()&&(NwO(this.imageEditor,3),this.updatePositionOfAllCorners(),p.preventDefault())};
_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Jh.Object.defineProperties(Pg.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&l5d.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var p,y,l;((y=this.data)==null?0:y.imageRatio)&&((l=this.data)==null?0:l.minImageCropWidth)?p={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:p=y_6;return new MtA(p)}}});
Pg.prototype.updatePositionOfAllCorners=Pg.prototype.updatePositionOfAllCorners;Pg.prototype.dataChanged=Pg.prototype.dataChanged;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Pg.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Pg.prototype,"ytComponentBehavior",void 0);_.H([_.V(_.Ln),_.x("design:type",Object)],Pg.prototype,"ironA11yKeysBehavior",void 0);
_.H([_.rd("#canvas"),_.x("design:type",HTMLCanvasElement)],Pg.prototype,"canvasElement",void 0);_.H([_.rd("#file-selector"),_.x("design:type",HTMLInputElement)],Pg.prototype,"fileSelector",void 0);_.H([_.rd("#top-left-corner"),_.x("design:type",HTMLDivElement)],Pg.prototype,"topLeftCorner",void 0);_.H([_.rd("#top-right-corner"),_.x("design:type",HTMLDivElement)],Pg.prototype,"topRightCorner",void 0);
_.H([_.rd("#bottom-left-corner"),_.x("design:type",HTMLDivElement)],Pg.prototype,"bottomLeftCorner",void 0);_.H([_.rd("#bottom-right-corner"),_.x("design:type",HTMLDivElement)],Pg.prototype,"bottomRightCorner",void 0);_.H([_.Q(),_.x("design:type",Object)],Pg.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],Pg.prototype,"errorMessage",void 0);_.H([_.Q(),_.x("design:type",Object)],Pg.prototype,"isLoading",void 0);_.H([_.Q(),_.x("design:type",Object)],Pg.prototype,"hideContainer",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.x("design:type",Boolean)],Pg.prototype,"isPlaylistThumbnail",void 0);_.H([_.k8("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],Pg.prototype,"dataChanged",null);_.H([_.VU("image-updated"),_.VU("yt-refit"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pg.prototype,"updatePositionOfAllCorners",null);
_.H([_.z9({is:"yt-image-editor-renderer",disableElementRegistration:!0})],Pg);
_.D(Pg,"yt-image-editor-renderer",function(){if(A49===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.channels.yt_image_editor_renderer.yt.image.editor.renderer.css.js--\x3e<div class="container style-scope yt-image-editor-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope yt-image-editor-renderer">\n    <h2 class="style-scope yt-image-editor-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope yt-image-editor-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="content style-scope yt-image-editor-renderer" slot="content" no-padding="" id="canvas-container">\n    <div class="error style-scope yt-image-editor-renderer" hidden="[[!errorMessage]]">\n      <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope yt-image-editor-renderer"></yt-icon>\n      <yt-formatted-string id="error" class="error-message style-scope yt-image-editor-renderer" text="[[errorMessage]]">\n    </yt-formatted-string>\n    </div>\n    <canvas id="canvas" width="600" height="600" class="style-scope yt-image-editor-renderer">\n    </canvas>\n    <div class="drag top-left style-scope yt-image-editor-renderer" id="top-left-corner" aria-label="[[data.topLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag top-right style-scope yt-image-editor-renderer" id="top-right-corner" aria-label="[[data.topRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-left style-scope yt-image-editor-renderer" id="bottom-left-corner" aria-label="[[data.bottomLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-right style-scope yt-image-editor-renderer" id="bottom-right-corner" aria-label="[[data.bottomRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n  </div>\n  <div class="button-layer style-scope yt-image-editor-renderer">\n    <input id="file-selector" accept="image/*" hidden="" type="file" on-change="handleFileSelection" class="style-scope yt-image-editor-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="update-button" data="[[data.updateButton.buttonRenderer]]" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner-container style-scope yt-image-editor-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope yt-image-editor-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;PnA===void 0&&(PnA=document.createElement("template"));var q=PnA;l.call(y,q.content.cloneNode(!0),p.content.firstChild);A49=p}p=A49;return p},{mode:2});var qhi;var scO;var Ad=function(){return _.w.apply(this,arguments)||this};
_.A(Ad,_.w);Ad.prototype.updateMinutesFromBinding=function(p){this.handleMinutesChanged&&this.handleMinutesChanged(p)};
Ad.prototype.updateSecondsFromBinding=function(p){this.handleSecondsChanged&&this.handleSecondsChanged(p)};
Ad.prototype.updateDescriptionFromBinding=function(p){this.handleDescriptionChanged&&this.handleDescriptionChanged(p)};
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],Ad.prototype,"ytComponentBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Ad.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",String)],Ad.prototype,"minutes",void 0);_.H([_.Q(),_.x("design:type",String)],Ad.prototype,"seconds",void 0);_.H([_.Q(),_.x("design:type",String)],Ad.prototype,"description",void 0);_.H([_.Q(),_.x("design:type",Function)],Ad.prototype,"handleMinutesChanged",void 0);
_.H([_.Q(),_.x("design:type",Function)],Ad.prototype,"handleSecondsChanged",void 0);_.H([_.Q(),_.x("design:type",Function)],Ad.prototype,"handleDescriptionChanged",void 0);_.H([_.Q(),_.x("design:type",Number)],Ad.prototype,"characterLimit",void 0);_.H([_.Q(),_.x("design:type",Number)],Ad.prototype,"textNumRows",void 0);_.H([_.z9({is:"yt-report-details-form-content",disableElementRegistration:!0})],Ad);
_.D(Ad,"yt-report-details-form-content",function(){if(scO===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_content.yt.report.details.form.content.css.js--\x3e<div id="content" class="style-scope yt-report-details-form-content"><label id="timestamp" class="style-scope yt-report-details-form-content">\n    [[getSimpleString(data.timestampLabel)]]\n    <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope yt-report-details-form-content"></yt-timestamp-input></label><div id="description" class="style-scope yt-report-details-form-content"><tp-yt-paper-input-container no-label-float="" use-v2-underline="" class="style-scope yt-report-details-form-content"><tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope yt-report-details-form-content" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[characterLimit]]" placeholder="[[getSimpleString(data.descriptionHint)]]" rows$="[[textNumRows]]" value="[[description]]" on-value-changed="updateDescriptionFromBinding"></tp-yt-iron-autogrow-textarea><tp-yt-paper-input-char-counter slot="add-on" class="style-scope yt-report-details-form-content"></tp-yt-paper-input-char-counter></tp-yt-paper-input-container></div><yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope yt-report-details-form-content"></yt-formatted-string></div>');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;qhi===void 0&&(qhi=document.createElement("template"));var q=qhi;l.call(y,q.content.cloneNode(!0),p.content.firstChild);scO=p}p=scO;return p},{mode:2});var t7i;var Elm;var ZM=function(){var p=_.w.apply(this,arguments)||this;p.updateMinutesFromBinding=function(y){p.minutes=y.detail.value};
p.updateSecondsFromBinding=function(y){p.seconds=y.detail.value};
p.updateDescriptionFromBinding=function(y){p.description=y.detail.value};
return p};
_.A(ZM,_.w);_.J=ZM.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.J.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.submitButton":{id:"submit-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.J.ready=function(){_.jR(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.J.onSubmitYtAction=function(p){var y=p.detail;y.actionName==="yt-service-request"&&(y=y.args[1],y.flagEndpoint&&(p.stopPropagation(),this.refireAction(y)))};
_.J.refireAction=function(p){var y={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(y.vss_id=this.vssId);_.ny(this.hostElement,[p,y]);this.submitDisabled=!0};
_.J.dataChanged=function(){var p=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var y=_.$o();y&&y.getPlayerPromise().then(function(l){var q=l.getOption("cc","track")||l.getOption("captions","track");q&&(p.vssId=q.vss_id);l=l.getCurrentTime();p.minutes=Math.floor(l/60).toString();p.seconds=(Math.floor(l)%60).toString()})};
_.J.updateSubmitButtonState=function(){var p;((p=this.data)==null?0:p.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.J.onYtServiceRequestCompleted=function(){_.$w(this.hostElement,"yt-close-popup-action")};
_.J.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Jh.Object.defineProperties(ZM.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.textNumRows)||4}}});
ZM.prototype.onYtServiceRequestError=ZM.prototype.onYtServiceRequestError;ZM.prototype.onYtServiceRequestCompleted=ZM.prototype.onYtServiceRequestCompleted;ZM.prototype.updateSubmitButtonState=ZM.prototype.updateSubmitButtonState;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ZM.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ZM.prototype,"ytRendererBehavior",void 0);
_.H([_.Q({observer:"dataChanged"}),_.x("design:type",Object)],ZM.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Boolean)],ZM.prototype,"submitDisabled",void 0);_.H([_.Q(),_.x("design:type",String)],ZM.prototype,"minutes",void 0);_.H([_.Q(),_.x("design:type",String)],ZM.prototype,"seconds",void 0);_.H([_.Q(),_.x("design:type",String)],ZM.prototype,"description",void 0);_.H([_.Q(),_.x("design:type",String)],ZM.prototype,"vssId",void 0);
_.H([_.Q({value:_.OY("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.x("design:type",Boolean)],ZM.prototype,"isMusic",void 0);_.H([_.g("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],ZM.prototype,"characterLimit",null);_.H([_.g("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],ZM.prototype,"textNumRows",null);
_.H([_.k8("minutes","seconds","description","submitDisabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ZM.prototype,"updateSubmitButtonState",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ZM.prototype,"onYtServiceRequestCompleted",null);
_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ZM.prototype,"onYtServiceRequestError",null);_.H([_.z9({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],ZM);
_.D(ZM,"yt-report-details-form-renderer",function(){if(Elm===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_renderer.yt.report.details.form.renderer.css.js--\x3e<div id="header" class="style-scope yt-report-details-form-renderer">\n  <div id="back-button" class="style-scope yt-report-details-form-renderer"></div>\n  <h2 id="title" class="style-scope yt-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n</div>\n  <yt-report-details-form-content character-limit="[[characterLimit]]" data="[[data]]" description="[[description]]" handle-description-changed="[[updateDescriptionFromBinding]]" handle-minutes-changed="[[updateMinutesFromBinding]]" handle-seconds-changed="[[updateSecondsFromBinding]]" minutes="[[minutes]]" seconds="[[seconds]]" text-num-rows="[[textNumRows]]" class="style-scope yt-report-details-form-renderer">\n  </yt-report-details-form-content>\n<div id="buttons" class="style-scope yt-report-details-form-renderer">\n  <div id="cancel-button" class="style-scope yt-report-details-form-renderer"></div>\n  <div id="submit-button" class="style-scope yt-report-details-form-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;t7i===void 0&&(t7i=document.createElement("template"));var q=t7i;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Elm=p}p=Elm;return p});var J_1;var c_R;var ezu;var hzO;var Mq=function(){return _.w.apply(this,arguments)||this};
_.A(Mq,_.w);
Mq.prototype.onCheckedChanged_=function(){if(this.data){var p=_.jR(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.$w(this.hostElement,"yt-additional-detail-checkbox-update",[p]):this.data.identifier==="yt-hide-user-checkbox"?_.$w(this.hostElement,"yt-hide-user-checkbox-update",[p]):p&&this.data.enableCommand?_.$w(this.hostElement,"yt-modify-report-form-command",[_.G(this.data.enableCommand,ZIR)]):!p&&this.data.disableCommand&&_.$w(this.hostElement,
"yt-modify-report-form-command",[_.G(this.data.enableCommand,ZIR)])}};
Mq.prototype.onLabelTap_=function(p){p.target.tagName!="A"&&(_.jR(this.hostElement).querySelector("#checkbox").checked=!_.jR(this.hostElement).querySelector("#checkbox").checked)};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Mq.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Mq.prototype,"data",void 0);_.H([_.z9({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Mq);
_.D(Mq,"yt-boolean-form-field-v2-renderer",function(){if(hzO===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-boolean-form-field-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_boolean_form_field_v2_renderer.yt.boolean.form.field.v2.renderer.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" aria-labelledby="yt-boolean-form-field-v2-renderer-label" checked="[[data.value]]" on-checked-changed="onCheckedChanged_" class="style-scope yt-boolean-form-field-v2-renderer">\n</tp-yt-paper-checkbox>\n<div id="content" class="style-scope yt-boolean-form-field-v2-renderer">\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-label" class="label style-scope yt-boolean-form-field-v2-renderer" text="[[data.label]]" on-tap="onLabelTap_">\n  </yt-formatted-string>\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-tooltip" class="tooltip style-scope yt-boolean-form-field-v2-renderer" text="[[data.tooltip]]">\n  </yt-formatted-string>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;ezu===void 0&&(ezu=document.createElement("template"));var q=ezu;l.call(y,q.content.cloneNode(!0),p.content.firstChild);hzO=p}p=hzO;return p});var V5=function(){var p=_.w.apply(this,arguments)||this;p.canShowAdditionalDetailCheckbox=!1;p.canShowCheckbox=!1;p.keepDropdownFocusedAfterSelection=!0;return p};
_.A(V5,_.w);V5.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}}}}};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],V5.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],V5.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],V5.prototype,"canShowAdditionalDetailCheckbox",void 0);_.H([_.Q(),_.x("design:type",Object)],V5.prototype,"canShowCheckbox",void 0);_.H([_.Q(),_.x("design:type",Object)],V5.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.H([_.z9({is:"yt-report-form-modal-content",disableElementRegistration:!0})],V5);
_.D(V5,"yt-report-form-modal-content",function(){if(c_R===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_content.yt.report.form.modal.content.css.js--\x3e<div id="container" hidden="[[!data]]" class="style-scope yt-report-form-modal-content"><yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string><yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" restore-focus-on-close="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-content"></yt-options-renderer><div id="additional-detail-checkbox-container" hidden="[[!canShowAdditionalDetailCheckbox]]" class="style-scope yt-report-form-modal-content"></div><div id="checkbox-container" hidden="[[!canShowCheckbox]]" class="style-scope yt-report-form-modal-content"></div><yt-formatted-string id="footer" hidden="[[!data.footer]]" split-lines="" text="[[data.footer]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;J_1===void 0&&(J_1=document.createElement("template"));var q=J_1;l.call(y,q.content.cloneNode(!0),p.content.firstChild);c_R=p}p=c_R;return p},{mode:2});var Cid;var uhw;var gQ=function(){var p=_.w.apply(this,arguments)||this;p.submitting=!1;p.submitButtonDisabled=!0;p.command=null;p.canShowCheckbox=!1;p.canShowAdditionalDetailCheckbox=!1;p.canShowNextButton=!1;p.additionalDetailCheckboxChecked=!1;p.refitJob=0;p.keepDropdownFocusedAfterSelection=!0;p.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-report-form-endpoint-update":"handleReportFormEndpointUpdateAction","yt-confirm-dialog-close-action":"handleConfirmDialogCloseAction","yt-modify-report-form-command":"handleModifyReportFormCommand",
"yt-additional-detail-checkbox-update":"handleAdditionalDetailCheckboxUpdateAction"};return p};
_.A(gQ,_.w);_.J=gQ.prototype;_.J.created=function(){this.refitJob=0};
_.J.attached=function(){this.JSC$20657_scroller&&(this.JSC$20657_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20657_scroller.attached&&typeof this.JSC$20657_scroller.attached==="function"&&this.JSC$20657_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(p){p&&(this.toggleSubmitButton(!!this.get("data.submitButton.buttonRenderer.isDisabled")),this.set("data.submitButton.buttonRenderer.isDisabled",void 0),this.set("data.nextButton.buttonRenderer.isDisabled",void 0),this.command=null,this.additionalDetailCheckboxChecked=this.canShowNextButton=this.canShowAdditionalDetailCheckbox=this.canShowCheckbox=this.hideReportForm=this.submitting=!1,p.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),p.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.J.onYtPopupOpened=function(){var p=_.$o();p&&p.getPlayerPromise().then(function(y){y.pauseVideo()})};
_.J.onYtNavigate=function(p){_.G(p.detail.endpoint,_.hBP)&&(p.stopPropagation(),this.hideReportForm=!0)};
_.J.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.J.onYtServiceRequestCompleted=function(p,y){var l=y.actions;if(l){if(l.length===1&&_.G(l[0],_.AO)){var q;l=((q=_.G(l[0],_.AO))==null?void 0:q.commands)||[]}q=0;for(var t=l.length;q<t;q++)_.G(l[q],_.xB)&&(p.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(l[q]))}if(y.data&&(p=this.get("feedbackResponses",y.data)))for(y=0;y<p.length;y++)if(p[y].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.J.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.J._onDescendantIronResize=function(p){p.stopPropagation();return!1};
_.J.handleReportFormEndpointUpdateAction=function(p){if(p.submitEndpoint){var y=this.command=p.submitEndpoint;y=_.G(y,_.Ef$);if(y==null?0:y.additionalDetailCheckboxChecked)y.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else p.submitNavigationEndpoint?(this.command=p.submitNavigationEndpoint,this.toggleSubmitButton(!1)):p.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:p.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;p.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",p));this.refit()};
_.J.handleConfirmDialogCloseAction=function(p){p.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.J.submitButtonDisabledChanged=function(){var p=this.hostElement.parentElement;p&&p.invalidateTabbables&&p.invalidateTabbables()};
_.J.handleModifyReportFormCommand=function(p){p=this.get("action",p);p==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:p==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:p==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:p==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:p==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:p==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.J.updateDialogStyling=function(){var p,y,l,q,t,E=((t=(p=this.data)==null?void 0:(y=p.optionsSupportedRenderers)==null?void 0:(l=y.optionsRenderer)==null?void 0:(q=l.items)==null?void 0:q.length)!=null?t:0)<=2?0:240;_.Ax(this.hostElement,{"--yt-report-form-modal-renderer-min-width":E+"px"})};
_.J.toggleSubmitButton=function(p){this.submitButtonDisabled=!p;this.submitButtonDisabled=p};
_.J.computeSubmitButtonData=function(p,y){var l={};_.G(y,_.hBP)?l.navigationEndpoint=y:l.command=y||void 0;p&&p.buttonRenderer&&_.Ts.extend(l,p.buttonRenderer);return l};
_.J.computeNextButtonData=function(p,y){var l={};if(!p||!p.buttonRenderer)return l;_.Ts.extend(l,p.buttonRenderer);if(!y)return l;if(_.G(y,_.hBP))l.navigationEndpoint=HFR(y);else if(l.command=HFR(y),p=_.G(l.command,_.Ef$))p.legalCheckboxChecked=!0;return l};
_.J.computeShowNextButton=function(p,y,l){return!!p&&y&&l};
_.J.refit=function(){var p=this;this.refitJob||(this.refitJob=_.TR.addLowPriorityJob(function(){_.Ub(p.hostElement,"yt-refit");p.refitJob=0}))};
_.J.handleAdditionalDetailCheckboxUpdateAction=function(p){this.additionalDetailCheckboxChecked=p;_.G(this.command,_.Ef$).additionalDetailCheckboxChecked=p};
_.Jh.Object.defineProperties(gQ,{template:{configurable:!0,enumerable:!0,get:function(){if(uhw===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_renderer.yt.report.form.modal.renderer.css.js--\x3e<template is="dom-if" if="[[submitting]]" restamp="" class="style-scope yt-report-form-modal-renderer">\n  <div id="container" class="style-scope yt-report-form-modal-renderer">\n    <div id="loading-indicator" class="style-scope yt-report-form-modal-renderer">\n      <tp-yt-paper-spinner-lite active="" class="style-scope yt-report-form-modal-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n</template>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-report-form-modal-renderer"></yt-formatted-string>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-report-form-modal-renderer">\n  <yt-report-form-modal-content can-show-additional-detail-checkbox="[[canShowAdditionalDetailCheckbox]]" can-show-checkbox="[[canShowCheckbox]]" data="[[data]]" keep-dropdown-focused-after-selection="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-report-form-modal-content>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-report-form-modal-renderer">\n  <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="submit-button" data="[[computeSubmitButtonData(data.submitButton, command)]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" hidden="[[computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, command)]]" dialog-confirm="" hidden="[[!computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;Cid===void 0&&(Cid=document.createElement("template"));var q=Cid;l.call(y,q.content.cloneNode(!0),p.content.firstChild);uhw=p}p=uhw;return p}}});
gQ.prototype.onYtServiceRequestError=gQ.prototype.onYtServiceRequestError;gQ.prototype.onYtServiceRequestCompleted=gQ.prototype.onYtServiceRequestCompleted;gQ.prototype.onYtServiceRequestSent=gQ.prototype.onYtServiceRequestSent;gQ.prototype.onYtNavigate=gQ.prototype.onYtNavigate;gQ.prototype.onYtPopupOpened=gQ.prototype.onYtPopupOpened;_.H([_.V(_.Ss.YtOpenPopupBehavior),_.x("design:type",Object)],gQ.prototype,"openPopupBehavior",void 0);
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],gQ.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],gQ.prototype,"eventForwardingBehavior",void 0);_.H([_.V(_.vG),_.x("design:type",Object)],gQ.prototype,"ironResizableBehavior",void 0);_.H([_.Q({observer:"dataChanged"}),_.x("design:type",Object)],gQ.prototype,"data",void 0);
_.H([_.Q(),_.x("design:type",Object)],gQ.prototype,"submitting",void 0);_.H([_.Q({observer:"submitButtonDisabledChanged"}),_.x("design:type",Object)],gQ.prototype,"submitButtonDisabled",void 0);_.H([_.Q(),_.x("design:type",Object)],gQ.prototype,"command",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],gQ.prototype,"hideReportForm",void 0);_.H([_.Q(),_.x("design:type",Object)],gQ.prototype,"canShowCheckbox",void 0);
_.H([_.Q(),_.x("design:type",Object)],gQ.prototype,"canShowAdditionalDetailCheckbox",void 0);_.H([_.Q(),_.x("design:type",Object)],gQ.prototype,"canShowNextButton",void 0);_.H([_.Q(),_.x("design:type",Object)],gQ.prototype,"additionalDetailCheckboxChecked",void 0);_.H([_.Q(),_.x("design:type",Object)],gQ.prototype,"refitJob",void 0);_.H([_.Q(),_.x("design:type",Object)],gQ.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.H([_.rd("#scroller"),_.x("design:type",Object)],gQ.prototype,"JSC$20657_scroller",void 0);_.H([_.VU("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gQ.prototype,"onYtPopupOpened",null);_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],gQ.prototype,"onYtNavigate",null);
_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],gQ.prototype,"onYtServiceRequestSent",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],gQ.prototype,"onYtServiceRequestCompleted",null);
_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],gQ.prototype,"onYtServiceRequestError",null);_.H([_.z9({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],gQ);var Rzu;var Wv6;var Q5=function(){return _.w.apply(this,arguments)||this};
_.A(Q5,_.w);_.J=Q5.prototype;_.J.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.J.onVisible=function(){var p,y;(y=_.WC().resolve(_.RK(_.r2)))==null||y.enqueue({label:_.JB((p=this.data)==null?void 0:p.messageTitle),elementToFocus:this.hostElement})};
_.J.onThumbnailLoaded=function(){_.Ub(this.hostElement,"yt-refit")};
_.J.onDismissTap=function(){_.$w(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.J.computeAlternateIcon=function(p){return p?p==="BACKSTAGE_ARTWORK"?"backstage:artwork":p:null};
_.J.computeFontFamily=function(p){return p==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.J.computeBackgroundStyle=function(p,y){if(p=this.computeBackgroundImage(p,y))if(p=_.GT(p.thumbnails))return'background-image: url("'+p+'");'};
_.J.computeHasFullHeightImage=function(p){return!(!(p&&p.thumbnails&&p.thumbnails.length>0)||this.modern)};
_.J.isModernStyle=function(p){return p.style==="STYLE_MODERN"};
_.J.computeIcon=function(p,y){if(p&&p.icon)return y?p.iconDark:p.icon};
_.J.computeBackgroundImage=function(p,y){if(p&&p.backgroundImage)return y?p.backgroundImageDark:p.backgroundImage};
_.J.computeLogo=function(p,y){if(p&&p.logo)return y?p.logoDark:p.logo};
_.J.computeShouldShowModernIcon=function(p,y){return p&&!!y};
_.J.getLogoContainerClassName=function(p){return this.logoWithPadding(p)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.J.getLogoImageId=function(p){return this.logoWithPadding(p)?"mealbar-logo-with-padding":"mealbar-logo"};
_.J.logoWithPadding=function(p){var y,l,q;return(p=(y=this.computeLogo(p,this.isDarkTheme))==null?void 0:(l=y.thumbnails)==null?void 0:(q=l[0])==null?void 0:q.height)&&p%31===0?!0:!1};
Q5.prototype.onThumbnailLoaded=Q5.prototype.onThumbnailLoaded;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Q5.prototype,"ytRendererBehavior",void 0);_.H([_.Q({}),_.x("design:type",Object)],Q5.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.x("design:type",Boolean)],Q5.prototype,"modern",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Q5.prototype,"isDarkTheme",void 0);
_.H([_.Q({computed:"computeIcon(data, isDarkTheme)"}),_.x("design:type",Object)],Q5.prototype,"icon",void 0);_.H([_.Q({computed:"computeLogo(data, isDarkTheme)"}),_.x("design:type",Object)],Q5.prototype,"logo",void 0);_.H([_.Q({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.x("design:type",Object)],Q5.prototype,"backgroundStyle",void 0);_.H([_.Q({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.x("design:type",Object)],Q5.prototype,"alternateIcon",void 0);
_.H([_.Q({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.x("design:type",Boolean)],Q5.prototype,"hasFullHeightImage",void 0);_.H([_.Q({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.x("design:type",Boolean)],Q5.prototype,"useYoutubeSans",void 0);_.H([_.Q({computed:"computeShouldShowModernIcon(modern, icon)"}),_.x("design:type",Boolean)],Q5.prototype,"shouldShowModernIcon",void 0);
_.H([_.VU("yt-img-shadow-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Q5.prototype,"onThumbnailLoaded",null);_.H([_.z9({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Q5);
_.D(Q5,"yt-mealbar-promo-renderer",function(){if(Wv6===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-mealbar-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_mealbar_promo_renderer.yt.mealbar.promo.renderer.css.js--\x3e<template is="dom-if" if="[[!modern]]" class="style-scope yt-mealbar-promo-renderer">\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" notify-on-loaded="" thumbnail="[[data.icon]]" class="style-scope yt-mealbar-promo-renderer">\n  </yt-img-shadow>\n  <yt-icon id="alternate-icon" hidden="[[!alternateIcon]]" icon="[[alternateIcon]]" class="style-scope yt-mealbar-promo-renderer"></yt-icon>\n</template>\n<div id="main" style$="[[backgroundStyle]]" class="style-scope yt-mealbar-promo-renderer">\n  <div class="yt-mealbar-promo-renderer-content style-scope yt-mealbar-promo-renderer">\n    <div class="style-scope yt-mealbar-promo-renderer">\n      <template is="dom-if" if="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n        <div class$="[[getLogoContainerClassName(data)]] style-scope yt-mealbar-promo-renderer">\n          <yt-img-shadow dimension="HEIGHT" height="20" hidden="[[!logo]]" id$="[[getLogoImageId(data)]]" notify-on-loaded="" object-fit="CONTAIN" thumbnail="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n          </yt-img-shadow>\n        </div>\n      </template>\n      <h2 class="yt-mealbar-promo-renderer-message-title style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n      </h2>\n      <template is="dom-repeat" items="[[data.messageTexts]]" class="style-scope yt-mealbar-promo-renderer">\n        <div id="message-text" class="yt-mealbar-promo-renderer-message-text style-scope yt-mealbar-promo-renderer">\n          <yt-formatted-string text="[[item]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n        </div>\n      </template>\n      <template is="dom-if" if="[[data.supplementalText]]" class="style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string class="yt-mealbar-promo-renderer-supplemental-text style-scope yt-mealbar-promo-renderer" text="[[data.supplementalText]]"></yt-formatted-string>\n      </template>\n    </div>\n    <template is="dom-if" if="[[shouldShowModernIcon]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-img-shadow class="yt-mealbar-promo-renderer-modern-icon style-scope yt-mealbar-promo-renderer" hidden="[[!icon]]" notify-on-loaded="" thumbnail="[[icon]]">\n      </yt-img-shadow>\n    </template>\n  </div>\n  <div class="button-container style-scope yt-mealbar-promo-renderer">\n    <template is="dom-if" if="[[data.dismissButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n    <template is="dom-if" if="[[data.actionButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;Rzu===void 0&&(Rzu=document.createElement("template"));var q=Rzu;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Wv6=p}p=Wv6;return p},{mode:2});var a56;var m_m;var KN=function(){return _.w.apply(this,arguments)||this};
_.A(KN,_.w);_.J=KN.prototype;_.J.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}},"data.acceptButton":{id:"accept-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}}}};
_.J.computeHasButtons_=function(p){return!(!p.dismissButton&&!p.acceptButton)};
_.J.computeStyle_=function(p){return p||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.J.observeImpressionEndpoints_=function(){var p=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(y){y.clickTrackingParams&&delete y.clickTrackingParams;_.ny(p.hostElement,[y])})};
_.J.onTap_=function(){_.$w(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
KN.prototype.observeImpressionEndpoints_=KN.prototype.observeImpressionEndpoints_;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],KN.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],KN.prototype,"ytEventForwardingBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],KN.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],KN.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],KN.prototype,"positionType",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.x("design:type",Boolean)],KN.prototype,"hasButtons_",void 0);_.H([_.Q({value:function(){return this.onTap_.bind(this)}}),
_.x("design:type",Function)],KN.prototype,"boundOnTap_",void 0);_.H([_.Q({value:{style:"mono-inverse"}}),_.x("design:type",Object)],KN.prototype,"buttonOverride",void 0);_.H([_.gd("data.promoConfig.impressionEndpoints"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KN.prototype,"observeImpressionEndpoints_",null);_.H([_.z9({is:"yt-tooltip-renderer",disableElementRegistration:!0})],KN);
_.D(KN,"yt-tooltip-renderer",function(){if(m_m===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-tooltip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_tooltip_renderer.yt.tooltip.renderer.css.js--\x3e<div id="content" class="style-scope yt-tooltip-renderer">\n  <yt-formatted-string id="text" hidden$="[[!data.text]]" text="[[data.text]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="details-text" hidden$="[[!data.detailsText]]" text="[[data.detailsText]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n</div>\n<div class="buttons style-scope yt-tooltip-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-tooltip-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.acceptButton]]" class="style-scope yt-tooltip-renderer"></div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;a56===void 0&&(a56=document.createElement("template"));var q=a56;l.call(y,q.content.cloneNode(!0),p.content.firstChild);m_m=p}p=m_m;return p},{mode:2});var U_9;var $_V;var jcm={},bf9=(jcm.WEB_REMIX="music.youtube.com",jcm),wQ=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return p};
_.A(wQ,_.w);_.J=wQ.prototype;_.J.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.created=function(){this.embedHost_=bf9[_.OY("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.J.ready=function(){_.jR(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.J.computeEmbedCode_=function(p,y,l,q,t){if(!p)return"";var E=p.videoId,e=p.fullListId,C=[];p.attributionId&&C.push("si="+p.attributionId);q||C.push("controls=0");l&&Number(y)>0&&C.push("start="+y);e&&(E="videoseries",C.push("list="+e));l="https://"+(t?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+E;p.clipId&&(C.push("clip="+p.clipId),C.push("clipt="+p.clipTiming));y=C.length>0?l+"?"+C.join("&amp;"):l;p.encryptedEmbedConfig&&C.push("embed_config="+JSON.stringify({enc:p.encryptedEmbedConfig}));
C=C.length>0?l+"?"+C.join("&amp;"):l;_.n("web_sharing_embed_preview_killswitch")?_.jR(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(C,p.previewWidth||854,p.previewHeight||480):(_.fj(this.videoPreviewContainer),_.jR(this.videoPreviewContainer).appendChild(this.buildIframeElement(C)));return this.getEmbedCode_(y,p.width||560,p.height||315)};
_.J.buildIframeElement=function(p){var y=document.createElement("iframe"),l,q;y.width=""+((q=(l=this.data)==null?void 0:l.previewWidth)!=null?q:854);var t,E;y.height=""+((E=(t=this.data)==null?void 0:t.previewHeight)!=null?E:480);_.dmo(y,2,p);y.title="YouTube video player";y.frameBorder="0";y.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";y.referrerPolicy="strict-origin-when-cross-origin";y.allowFullscreen=!0;return y};
_.J.computeIsSquareAspectRatio_=function(p){return p.previewHeight&&p.previewWidth?p.previewHeight==p.previewWidth:!1};
_.J.computeShowEmbedOptions_=function(p){return!!p.enablePrivacyModeOptionLabel||!!p.showPlayerControlsOptionLabel};
_.J.getEmbedCode_=function(p,y,l){return'<iframe width="'+y+'" height="'+l+'" src="'+p+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.J.handleSignalActionCopyShareEmbedUrl_=function(){_.jR(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.J.handleSetTimestamp_=function(p){this.startAtTimeStamp_=(this.startAtChecked_=p.isSet)?p.timestamp:0};
_.J.closePanel_=function(){_.$w(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.J.onEmbedCode_=function(){_.jR(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.J.onYtPopupClosed_=function(){_.fj(_.jR(this.hostElement).querySelector("#video-preview"))};
_.J.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.G(this.data.actionButtons[0],_.yv)&&this.ytRendererBehavior.logExplicitClick(_.G(this.data.actionButtons[0],_.yv))};
wQ.prototype.onYtPopupClosed_=wQ.prototype.onYtPopupClosed_;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],wQ.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],wQ.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],wQ.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],wQ.prototype,"data",void 0);
_.H([_.Q({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.x("design:type",String)],wQ.prototype,"embedCode_",void 0);_.H([_.Q({value:!0}),_.x("design:type",Boolean)],wQ.prototype,"isPlayerControlsOptionChecked_",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],wQ.prototype,"isPrivacyModeOptionChecked_",void 0);_.H([_.Q({value:!1,notify:!0}),_.x("design:type",Boolean)],wQ.prototype,"startAtChecked_",void 0);
_.H([_.Q({value:0}),_.x("design:type",Number)],wQ.prototype,"startAtTimeStamp_",void 0);_.H([_.Q({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],wQ.prototype,"isSquareAspectRatio_",void 0);_.H([_.rd("#video-preview"),_.x("design:type",HTMLElement)],wQ.prototype,"videoPreviewContainer",void 0);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wQ.prototype,"onYtPopupClosed_",null);
_.H([_.z9({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],wQ);
_.D(wQ,"yt-sharing-embed-renderer",function(){if($_V===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sharing-embed-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_sharing_embed_renderer.yt.sharing.embed.renderer.css.js--\x3e<div id="video-preview" class="style-scope yt-sharing-embed-renderer"></div>\n<div id="embed-panel" class="style-scope yt-sharing-embed-renderer">\n  <div id="title-bar" class="style-scope yt-sharing-embed-renderer">\n    <div id="embed-label" class="style-scope yt-sharing-embed-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="close-panel-icon" icon="yt-icons:close" on-tap="closePanel_" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n  </div>\n  <tp-yt-paper-dialog-scrollable id="content" class="style-scope yt-sharing-embed-renderer">\n    <div id="basic" class="style-scope yt-sharing-embed-renderer">\n      <tp-yt-paper-textarea id="embed-code" no-label-float="" use-v2-underline="" value="{{embedCode_}}" class="style-scope yt-sharing-embed-renderer"></tp-yt-paper-textarea>\n      <div id="start-at" class="style-scope yt-sharing-embed-renderer"></div>\n    </div>\n    <template is="dom-if" if="[[computeShowEmbedOptions_(data)]]" class="style-scope yt-sharing-embed-renderer">\n      <div id="embed-options" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string id="embed-options-label" text="[[data.embedOptionsLabel]]" class="style-scope yt-sharing-embed-renderer">\n        </yt-formatted-string>\n        <div id="layout-size" class="style-scope yt-sharing-embed-renderer">\n          \n        </div>\n        <tp-yt-paper-checkbox id="player-controls-option" checked="{{isPlayerControlsOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n          <yt-formatted-string text="[[data.showPlayerControlsOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-checkbox>\n        <span id="privacy-mode-wrapper" class="style-scope yt-sharing-embed-renderer">\n          <tp-yt-paper-checkbox id="privacy-mode-option" checked="{{isPrivacyModeOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n            <yt-formatted-string text="[[data.enablePrivacyModeOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n            </yt-formatted-string>\n          </tp-yt-paper-checkbox>\n          <yt-icon id="privacy-mode-info" icon="yt-icons:info-outline" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n          <tp-yt-paper-tooltip id="privacy-tooltip" for="privacy-mode-info" position="top" class="style-scope yt-sharing-embed-renderer">\n            [[data.enablePrivacyModeOptionLabel.accessibility.accessibilityData.label]]\n          </tp-yt-paper-tooltip>\n        </span>\n      </div>\n    </template>\n    <div id="additional-info" class="style-scope yt-sharing-embed-renderer">\n      <div id="additional-links" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.apiReferenceLinkLabel]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.developerSampleLinkLabel]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="legal-info" text="[[data.legalInfo]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="action-buttons" class="style-scope yt-sharing-embed-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;U_9===void 0&&(U_9=document.createElement("template"));var q=U_9;l.call(y,q.content.cloneNode(!0),p.content.firstChild);$_V=p}p=$_V;return p},{mode:2});var nlA={};
nlA.YtUnlimitedFamilyInterstitialBehavior=[_.Ss.YtOpenPopupBehavior,_.no.YtActionHandlerBehavior,{actionMap:{"yt-signal-action-show-previous-family-dialog":"handleSignalActionShowPreviousFamilyDialog_","yt-open-popup-action":"handleOpenPopupAction_","yt-unlimited-create-family-endpoint":"handleUnlimitedCreateFamilyEndpoint_"},listeners:{"yt-popup-closed":"onPopupClosed_"},created:function(){window.familyDialogHistory||(window.familyDialogHistory=[]);this.dialogHistory_=window.familyDialogHistory;this.showingPreviousDialog_=
!1},
maybeCloseDialogOnFooterButtonTap:function(p){p=_.ULx(_.cm(p),"yt-button-renderer");return p?p.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(p){this.dialogHistory_.push(p)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var p=this.popFromHistory();if(p){var y={openPopupAction:{popupType:"DIALOG",popup:{}}};y.openPopupAction.popup[p.renderer]=p.data;this.showingPreviousDialog_=!0;this.openPopup(y)}},
handleOpenPopupAction_:function(p){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var y=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(q){return!!p.openPopupAction.popup[q]}),l=this.getElementName_();
y&&this.data&&(this.pushToHistory({renderer:l,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(p){if(p=_.G(p,I1m))this.loading=!0,_.$w(this.hostElement,"yt-open-create-family-dialog",[p,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var p=this.hostElement.nodeName.split("-").slice(1).map(function(y){return""+y[0].toUpperCase()+y.slice(1).toLowerCase()}).join("");
return p[0].toLowerCase()+p.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var GjA;var PiA;var ir=function(){return _.w.apply(this,arguments)||this};
_.A(ir,_.w);_.J=ir.prototype;_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"footer-button":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0,"footer-button":!0}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.$w(this.hostElement,"yt-register-create-family-dialog");_.jR(this.hostElement).querySelector("#thumbnail").onShow()};
_.J.fireOnCloseCommand_=function(){var p;((p=this.data)==null?0:p.onCloseCommand)&&_.Gf(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.J.onYtServiceRequestSent_=function(p,y){y&&y.endpoint&&_.G(y.endpoint,_.Mn)||(this.loading=!0)};
_.J.onYtServiceRequestCompleted_=function(){var p=this.hostElement.parentElement;p.close&&p.close();this.loading=!1};
_.J.openPopupHandler_=function(p){if(p.detail==this){var y;((y=this.data)==null?0:y.onOpenCommands)&&_.Gf(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.J.closePopupHandler_=function(p,y){this.fireOnCloseCommand_();if(y&&y.canceled===!0||y&&y.canceled===!1&&y.confirmed===!1){var l;((l=this.data)==null?0:l.onDismissCommands)&&_.Gf(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.J.dataChanged_=function(){this.loading=!1};
ir.prototype.dataChanged_=ir.prototype.dataChanged_;ir.prototype.closePopupHandler_=ir.prototype.closePopupHandler_;ir.prototype.openPopupHandler_=ir.prototype.openPopupHandler_;ir.prototype.onYtServiceRequestCompleted_=ir.prototype.onYtServiceRequestCompleted_;ir.prototype.onYtServiceRequestSent_=ir.prototype.onYtServiceRequestSent_;_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],ir.prototype,"ytEventForwardingBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],ir.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(nlA.YtUnlimitedFamilyInterstitialBehavior),_.x("design:type",Object)],ir.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],ir.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],ir.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],ir.prototype,"loading",void 0);_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],ir.prototype,"onYtServiceRequestSent_",null);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],ir.prototype,"onYtServiceRequestCompleted_",null);
_.H([_.VU("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],ir.prototype,"openPopupHandler_",null);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],ir.prototype,"closePopupHandler_",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ir.prototype,"dataChanged_",null);
_.H([_.z9({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],ir);
_.D(ir,"yt-unlimited-family-message-interstitial-renderer",function(){if(PiA===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-message-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_message_interstitial_renderer.yt.unlimited.family.message.interstitial.renderer.css.js--\x3e<tp-yt-paper-spinner active="[[loading]]" class="style-scope yt-unlimited-family-message-interstitial-renderer"></tp-yt-paper-spinner>\n<div class="content-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <div class="main-content style-scope yt-unlimited-family-message-interstitial-renderer">\n    <h2 class="style-scope yt-unlimited-family-message-interstitial-renderer">[[getSimpleString(data.title)]]</h2>\n    <yt-formatted-string class="content style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.content]]"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="252" class="style-scope yt-unlimited-family-message-interstitial-renderer"></yt-img-shadow>\n</div>\n<div class="footer-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <yt-formatted-string class="footer style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.footer]]"></yt-formatted-string>\n  <div class="buttons style-scope yt-unlimited-family-message-interstitial-renderer">\n    <div id="dismiss-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n    <div id="action-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;GjA===void 0&&(GjA=document.createElement("template"));var q=GjA;l.call(y,q.content.cloneNode(!0),p.content.firstChild);PiA=p}p=PiA;return p},{mode:2});var A_6;var Zfu;var rQ=function(){return _.w.apply(this,arguments)||this};
_.A(rQ,_.w);rQ.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"}}}};
rQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.jR(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(p){p.onShow()});
_.jR(this.hostElement).querySelector("#main-thumbnail").onShow()};
rQ.prototype.onButtonTap_=function(p){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(p)};
rQ.prototype.computeMainThumbnailWidth_=function(p){return p&&p.length!==0?72:96};
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],rQ.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.H([_.V(nlA.YtUnlimitedFamilyInterstitialBehavior),_.x("design:type",Object)],rQ.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],rQ.prototype,"data",void 0);
_.H([_.Q({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.x("design:type",Number)],rQ.prototype,"mainThumbnailWidth_",void 0);_.H([_.Q({value:function(){return this.onButtonTap_.bind(this)}}),
_.x("design:type",Function)],rQ.prototype,"boundButtonTap_",void 0);_.H([_.z9({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],rQ);
_.D(rQ,"yt-unlimited-family-profile-interstitial-renderer",function(){if(Zfu===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-profile-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_profile_interstitial_renderer.yt.unlimited.family.profile.interstitial.renderer.css.js--\x3e<div class="content-container style-scope yt-unlimited-family-profile-interstitial-renderer"><div class="left-side style-scope yt-unlimited-family-profile-interstitial-renderer"><h2 class="style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.additionalInfoHeader)]]</h2><yt-formatted-string class="additional-info style-scope yt-unlimited-family-profile-interstitial-renderer" text="[[data.additionalInfo]]"></yt-formatted-string></div><div class="right-side style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow id="main-thumbnail" thumbnail="[[data.mainThumbnail]]" width="[[mainThumbnailWidth_]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></yt-img-shadow><div class="secondary-thumbnails style-scope yt-unlimited-family-profile-interstitial-renderer"><template is="dom-repeat" items="[[data.secondaryThumbnails]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow class="secondary-thumbnail style-scope yt-unlimited-family-profile-interstitial-renderer" thumbnail="[[item]]" width="36"></yt-img-shadow></template></div><span class="member-info style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberInfo)]]</span><span class="member-title style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberTitle)]]</span><div id="manage-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div></div><div class="buttons style-scope yt-unlimited-family-profile-interstitial-renderer"><div id="dismiss-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div><div id="action-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;A_6===void 0&&(A_6=document.createElement("template"));var q=A_6;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Zfu=p}p=Zfu;return p},{mode:2});var M77;var V7i;var SA=function(){var p=_.w.apply(this,arguments)||this;p.sliderAriaValueText_=null;p.selectedIndex_=0;p.messages={PAUSE_SLIDER:_.g$("PAUSE_SLIDER",void 0,"Pause Duration")};return p};
_.A(SA,_.w);_.J=SA.prototype;_.J.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[onButtonTap_]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},properties:{"on-tap":"[[onSecondaryTap_]]"}}}}}};
_.J.onPopupOpened_=function(p){p.detail==this&&_.n("enable_premium_voluntary_pause")&&(_.$w(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.setDialogData=function(p){this.data=p;this.resetSlider_()};
_.J.dataChanged_=function(){this.data&&this.resetSlider_()};
_.J.onSubmitTap_=function(){if(this.data.confirmCommand){var p=this.data.confirmCommand;_.G(p,_.Zoi)&&_.ny(this.hostElement,[p,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.J.onExitButtonTap_=function(){_.$w(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.J.closePopupHandler_=function(p,y){(y&&y.canceled===!0||y.canceled===!1&&y.confirmed===!1)&&this.handleOnDismissCommands_()};
_.J.onSliderChange_=function(){this.selectedIndex_=_.jR(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.J.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.J.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.J.resetSlider_=function(){if(this.data){var p=this.data.defaultEndOptionIndex||0,y=_.jR(this.hostElement).querySelector("#id-pause-slider");if(y.immediateValue<p)for(;y.immediateValue!=p;)y.increment();else if(p<y.immediateValue)for(;y.immediateValue!=p;)y.decrement();this.selectedIndex_=p;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.J.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Gf(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.J.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Gf(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.J.onYtServiceRequestSent=function(){this.loading=!0};
_.J.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
SA.prototype.onYtServiceRequestCompleted=SA.prototype.onYtServiceRequestCompleted;SA.prototype.onYtServiceRequestSent=SA.prototype.onYtServiceRequestSent;SA.prototype.closePopupHandler_=SA.prototype.closePopupHandler_;SA.prototype.dataChanged_=SA.prototype.dataChanged_;SA.prototype.onPopupOpened_=SA.prototype.onPopupOpened_;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],SA.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],SA.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],SA.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],SA.prototype,"loading",void 0);_.H([_.Q(),_.x("design:type",Number)],SA.prototype,"selectIndexMax_",void 0);_.H([_.Q(),_.x("design:type",Object)],SA.prototype,"selectedData_",void 0);
_.H([_.Q(),_.x("design:type",Object)],SA.prototype,"sliderAriaValueText_",void 0);_.H([_.Q({value:function(){return this.onSubmitTap_.bind(this)}}),
_.x("design:type",Function)],SA.prototype,"onButtonTap_",void 0);_.H([_.Q({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.x("design:type",Function)],SA.prototype,"onSecondaryTap_",void 0);_.H([_.Q(),_.x("design:type",Object)],SA.prototype,"messages",void 0);_.H([_.VU("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],SA.prototype,"onPopupOpened_",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SA.prototype,"dataChanged_",null);
_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],SA.prototype,"closePopupHandler_",null);_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],SA.prototype,"onYtServiceRequestSent",null);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],SA.prototype,"onYtServiceRequestCompleted",null);_.H([_.z9({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],SA);
_.D(SA,"yt-unplugged-pause-membership-dialog-renderer",function(){if(V7i===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer" role="heading">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;M77===void 0&&(M77=document.createElement("template"));var q=M77;l.call(y,q.content.cloneNode(!0),p.content.firstChild);V7i=p}p=V7i;return p},{mode:2});var glw;var Qcd;var F4=function(){return _.w.apply(this,arguments)||this};
_.A(F4,_.w);F4.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.zT("vcBalanceRenderer")}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],F4.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],F4.prototype,"data",void 0);_.H([_.z9({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],F4);
_.D(F4,"yt-vc-offer-layout-header-renderer",function(){if(Qcd===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_header_renderer.yt.vc.offer.layout.header.renderer.css.js--\x3e<div id="vc-balance" class="style-scope yt-vc-offer-layout-header-renderer"></div>\n<yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-vc-offer-layout-header-renderer">\n</yt-formatted-string>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;glw===void 0&&(glw=document.createElement("template"));var q=glw;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Qcd=p}p=Qcd;return p},{mode:2});var Kv9;var wMi;var ifT;var r_O;var LN=function(){return _.w.apply(this,arguments)||this};
_.A(LN,_.w);LN.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Jh.Object.defineProperties(LN.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)}}});
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],LN.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],LN.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.NMB.YtTappableItemBehavior),_.x("design:type",Object)],LN.prototype,"ytTappableItemBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],LN.prototype,"data",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.g("data.accessibilityText"),_.x("design:type",String),_.x("design:paramtypes",[])],LN.prototype,"ariaLabel",null);_.H([_.Q({reflectToAttribute:!0}),_.g("data.style"),_.x("design:type",String),_.x("design:paramtypes",[])],LN.prototype,"vcOfferStyle",null);_.H([_.g("data.style","data.titleText"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],LN.prototype,"showTitleText",null);_.H([_.z9({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],LN);
_.D(LN,"yt-vc-offer-renderer",function(){if(r_O===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_renderer.yt.vc.offer.renderer.css.js--\x3e<yt-formatted-string id="title-text" hidden="[[!showTitleText]]" text="[[data.titleText]]" class="style-scope yt-vc-offer-renderer">\n</yt-formatted-string>\n<div id="standard-offer-container" class="style-scope yt-vc-offer-renderer">\n  <div id="standard-offer-content" class="style-scope yt-vc-offer-renderer">\n    <yt-formatted-string id="offer-info" text="[[data.offerInfo]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionText]]" text="[[data.descriptionText]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <div id="vc-icon" class="style-scope yt-vc-offer-renderer"></div>\n    <yt-formatted-string id="price" text="[[data.price]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;ifT===void 0&&(ifT=document.createElement("template"));var q=ifT;l.call(y,q.content.cloneNode(!0),p.content.firstChild);r_O=p}p=r_O;return p},{mode:2});var kM=function(){return _.w.apply(this,arguments)||this};
_.A(kM,_.w);kM.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}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],kM.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],kM.prototype,"data",void 0);_.H([_.z9({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],kM);
_.D(kM,"yt-vc-offer-layout-renderer",function(){if(wMi===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_renderer.yt.vc.offer.layout.renderer.css.js--\x3e<div id="vc-offer-layout-container" class="style-scope yt-vc-offer-layout-renderer">\n  <div id="header" class="style-scope yt-vc-offer-layout-renderer"></div>\n  <div id="offers-container" class="style-scope yt-vc-offer-layout-renderer">\n    <div id="offers" class="style-scope yt-vc-offer-layout-renderer"></div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;Kv9===void 0&&(Kv9=document.createElement("template"));var q=Kv9;l.call(y,q.content.cloneNode(!0),p.content.firstChild);wMi=p}p=wMi;return p},{mode:2});var Shd;var Fv9;var LvV;var kjV;var Nq=function(){return _.w.apply(this,arguments)||this};
_.A(Nq,_.w);Nq.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}}}}}};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Nq.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Nq.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Nq.prototype,"data",void 0);_.H([_.z9({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],Nq);
_.D(Nq,"yt-ypc-offers-modal-top-bar-renderer",function(){if(kjV===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_top_bar_renderer.yt.ypc.offers.modal.top.bar.renderer.css.js--\x3e<div id="dismiss" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></yt-formatted-string>\n<div id="help-link" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;LvV===void 0&&(LvV=document.createElement("template"));var q=LvV;l.call(y,q.content.cloneNode(!0),p.content.firstChild);kjV=p}p=kjV;return p},{mode:2});var DM=function(){return _.w.apply(this,arguments)||this};
_.A(DM,_.w);DM.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"}}}}};
DM.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
DM.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var p=this.scrollable;p.attached&&typeof p.attached==="function"&&p.attached()};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],DM.prototype,"ytRendererstamperBehavior",void 0);_.H([_.rd("#scrollable"),_.x("design:type",Object)],DM.prototype,"scrollable",void 0);_.H([_.Q(),_.x("design:type",Object)],DM.prototype,"data",void 0);_.H([_.z9({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],DM);
_.D(DM,"yt-ypc-offers-modal-renderer",function(){if(Fv9===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_renderer.yt.ypc.offers.modal.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-offers-modal-renderer">\n  <div id="top-bar" class="style-scope yt-ypc-offers-modal-renderer"></div>\n  <div id="content" class="style-scope yt-ypc-offers-modal-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;Shd===void 0&&(Shd=document.createElement("template"));var q=Shd;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Fv9=p}p=Fv9;return p},{mode:2});var N0i;var D_u;var Hg=function(){return _.w.apply(this,arguments)||this};
_.A(Hg,_.w);_.J=Hg.prototype;_.J.configureRendererStamper=function(){return{"data.continueButton":{id:"continue-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[bindOnContinueTapped_]]"}}}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.jR(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.J.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.$w(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.J.onYtPopupOpened_=function(p,y){(y==null?void 0:y.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Gf(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.J.onYtPopupClosed_=function(p,y){this.continueButtonTapped||y&&(y.canceled===!0||y.canceled===!1&&y.confirmed===!1)&&this.data.onDismissCommands&&_.Gf(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.J.onYtServiceRequestError_=function(p){this.set("showSpinner",!1);_.Wn(this.hostElement,p.detail.error.message)};
_.J.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.n("enable_ypc_spinners")?_.$w(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Hg.prototype.onYtServiceRequestError_=Hg.prototype.onYtServiceRequestError_;Hg.prototype.onYtPopupClosed_=Hg.prototype.onYtPopupClosed_;Hg.prototype.onYtPopupOpened_=Hg.prototype.onYtPopupOpened_;Hg.prototype.onYtServiceRequestCompleted_=Hg.prototype.onYtServiceRequestCompleted_;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Hg.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],Hg.prototype,"ytRendererstamperBehavior",void 0);
_.H([_.Q(),_.x("design:type",Object)],Hg.prototype,"data",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Hg.prototype,"showSpinner",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],Hg.prototype,"continueButtonTapped",void 0);_.H([_.Q({value:function(){return this.onContinueTapped_.bind(this)}}),
_.x("design:type",Function)],Hg.prototype,"bindOnContinueTapped_",void 0);_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Hg.prototype,"onYtServiceRequestCompleted_",null);_.H([_.VU("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],Hg.prototype,"onYtPopupOpened_",null);
_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],Hg.prototype,"onYtPopupClosed_",null);_.H([_.VU("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Hg.prototype,"onYtServiceRequestError_",null);_.H([_.z9({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Hg);
_.D(Hg,"yt-ypc-upgrade-dialog-renderer",function(){if(D_u===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-upgrade-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_upgrade_dialog_renderer.yt.ypc.upgrade.dialog.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="content" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <div id="header" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="title" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string id="dialog-title" text="[[data.header.dialogTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n        <yt-formatted-string id="offer-title" text="[[data.header.offerDisplayTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="access-message" text="[[data.header.accessMessage]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n    </div>\n\n    <div id="billing-details-container" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <template is="dom-repeat" items="[[data.billingDetails]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <div class="billing-item style-scope yt-ypc-upgrade-dialog-renderer">\n          <div class="item-header style-scope yt-ypc-upgrade-dialog-renderer">\n            <yt-formatted-string text="[[item.title]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n            <yt-formatted-string text="[[item.subtitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n          </div>\n          <yt-formatted-string class="item-description style-scope yt-ypc-upgrade-dialog-renderer" text="[[item.description]]"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <template is="dom-if" if="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="legal-text" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string text="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="continue-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n  <div id="cancel-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n</div>\n<div id="spinner-overlay" hidden$="[[!showSpinner]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope yt-ypc-upgrade-dialog-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;N0i===void 0&&(N0i=document.createElement("template"));var q=N0i;l.call(y,q.content.cloneNode(!0),p.content.firstChild);D_u=p}p=D_u;return p},{mode:2});var Hf9;var T0d;var TV=function(){return _.w.apply(this,arguments)||this};
_.A(TV,_.w);TV.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
TV.prototype.computeHasButtons_=function(p){return!(!p.dismissButton&&!p.confirmButton)};
TV.prototype.computeStyle_=function(p){return p||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],TV.prototype,"ytEventForwardingBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],TV.prototype,"ytRendererstamperBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],TV.prototype,"data",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],TV.prototype,"positionType",void 0);
_.H([_.Q({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.x("design:type",Boolean)],TV.prototype,"hasButtons_",void 0);_.H([_.Q({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.x("design:type",Boolean)],TV.prototype,"style_",void 0);_.H([_.z9({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],TV);
_.D(TV,"yt-bubble-hint-renderer",function(){if(T0d===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bubble-hint-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_bubble_hint_renderer.yt.bubble.hint.renderer.css.js--\x3e<div id="content" class="style-scope yt-bubble-hint-renderer">\n  <div id="text" hidden$="[[!data.text]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n  <div id="details-text" hidden$="[[!data.detailsText]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.detailsText]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div class="buttons style-scope yt-bubble-hint-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.confirmButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;Hf9===void 0&&(Hf9=document.createElement("template"));var q=Hf9;l.call(y,q.content.cloneNode(!0),p.content.firstChild);T0d=p}p=T0d;return p},{mode:2});var x_T;var B0O;var xM=function(){var p=_.c2.apply(this,arguments)||this;p.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return p};
_.A(xM,_.c2);_.J=xM.prototype;_.J.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.J.attached=function(){var p=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){p.$.thumbnail.onShow();p.$["header-image"].onShow()})};
_.J.handleCheckBoxUpdateAction_=function(p){this.canShowCheckboxEnabledConfirmButton=p};
_.J.computeUseOverlayForSpinner_=function(p,y){return!!p&&y};
_.J.computeShowSpinner_=function(p,y){return p||!!y};
_.J.fireOnCloseActions_=function(){var p,y=_.c(((p=this.data)==null?void 0:p.onClosedActions)||[]);for(p=y.next();!p.done;p=y.next())this.ytRendererBehavior.resolveCommand(p.value)};
_.J.fireOnOpenCommands_=function(p){var y,l=(y=this.data)==null?void 0:y.onOpenCommands;if(l)for(p.stopImmediatePropagation(),p=_.c(l),y=p.next();!y.done;y=p.next())this.ytRendererBehavior.resolveCommand(y.value)};
_.J.fireOnDismissCommands_=function(p){var y,l=(y=this.data)==null?void 0:y.onDismissCommands;if(l)for(p.stopImmediatePropagation(),p=_.c(l),y=p.next();!y.done;y=p.next())this.ytRendererBehavior.resolveCommand(y.value)};
_.J.openPopupHandler_=function(p){p.detail==this&&this.fireOnOpenCommands_(p)};
_.J.closePopupHandler_=function(p,y){_.jN(this,"yt-confirm-dialog-close-action",[y]);this.fireOnCloseActions_();(y&&y.canceled===!0||y&&y.canceled===!1&&y.confirmed===!1)&&this.fireOnDismissCommands_(p)};
_.J.onHeaderImageChanged_=function(){var p;((p=this.data)==null?0:p.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.J.computeHasHeaderImageWidth_=function(p){return p!=void 0};
_.J.computeHasLoadingMessage=function(p){return!!p};
_.J.onHeaderImageWidthChanged_=function(){var p,y=(p=this.data)==null?void 0:p.headerImageWidth;if(y){if(p=1.25*y*2+y,this.$.main.style.width=p+"px",y=this.$.scroller.firstElementChild)y.style.minWidth=p+"px"}else this.$.main.style.width="100%"};
_.J.onThumbnailChanged_=function(){var p;((p=this.data)==null?0:p.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.J.onYtNavigate_=function(p){p=_.cm(p);p instanceof Node&&_.bt(this.$["confirm-button"]).contains(p)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.J.computePrimaryIsCancel_=function(p){return p};
_.J.computeIsCancelButtonHidden_=function(p){return p.skipCancelButton||!p.cancelButton};
_.J.computeIsCheckboxHidden_=function(p){return!p.checkbox};
_.J.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.J.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.J.onYtServiceRequestCompleted_=function(){var p;((p=this.data)==null?0:p.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Jh.Object.defineProperties(xM,{template:{configurable:!0,enumerable:!0,get:function(){if(B0O===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <h2 class="heading style-scope yt-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </h2>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;x_T===void 0&&(x_T=document.createElement("template"));var q=x_T;l.call(y,q.content.cloneNode(!0),p.content.firstChild);B0O=p}p=B0O;return p}}});
xM.prototype.onYtServiceRequestCompleted_=xM.prototype.onYtServiceRequestCompleted_;xM.prototype.onYtServiceRequestSent_=xM.prototype.onYtServiceRequestSent_;xM.prototype.onThumbnailLoaded_=xM.prototype.onThumbnailLoaded_;xM.prototype.onYtNavigate_=xM.prototype.onYtNavigate_;xM.prototype.onThumbnailChanged_=xM.prototype.onThumbnailChanged_;xM.prototype.onHeaderImageWidthChanged_=xM.prototype.onHeaderImageWidthChanged_;xM.prototype.onHeaderImageChanged_=xM.prototype.onHeaderImageChanged_;
xM.prototype.closePopupHandler_=xM.prototype.closePopupHandler_;xM.prototype.openPopupHandler_=xM.prototype.openPopupHandler_;_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],xM.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],xM.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);
_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],xM.prototype,"ytEventForwardingBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],xM.prototype,"data",void 0);_.H([_.Q({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.x("design:type",Boolean)],xM.prototype,"primaryIsCancel",void 0);_.H([_.Q({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.x("design:type",Boolean)],xM.prototype,"isCancelButtonHidden",void 0);
_.H([_.Q({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.x("design:type",Boolean)],xM.prototype,"isCheckboxHidden",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],xM.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.H([_.Q({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.x("design:type",Boolean)],xM.prototype,"useOverlayForSpinner_",void 0);
_.H([_.Q({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.x("design:type",Boolean)],xM.prototype,"showSpinner_",void 0);_.H([_.Q({value:!1}),_.x("design:type",Boolean)],xM.prototype,"isActionInProgress_",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.x("design:type",Boolean)],xM.prototype,"hasHeaderImageWidth_",void 0);
_.H([_.Q({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.x("design:type",Boolean)],xM.prototype,"hasLoadingMessage",void 0);_.H([_.VU("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],xM.prototype,"openPopupHandler_",null);_.H([_.VU("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],xM.prototype,"closePopupHandler_",null);
_.H([_.gd("data.headerImage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xM.prototype,"onHeaderImageChanged_",null);_.H([_.gd("data.headerImageWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xM.prototype,"onHeaderImageWidthChanged_",null);_.H([_.gd("data.thumbnail"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xM.prototype,"onThumbnailChanged_",null);
_.H([_.VU("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],xM.prototype,"onYtNavigate_",null);_.H([_.VU("yt-img-shadow-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xM.prototype,"onThumbnailLoaded_",null);_.H([_.VU("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.ts]),_.x("design:returntype")],xM.prototype,"onYtServiceRequestSent_",null);
_.H([_.VU("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.RW]),_.x("design:returntype")],xM.prototype,"onYtServiceRequestCompleted_",null);_.H([_.z9({is:"yt-confirm-dialog-renderer",noInjection:!0})],xM);var f59;var vl6;var Bg=function(){return _.w.apply(this,arguments)||this};
_.A(Bg,_.w);Bg.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.jR(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
Bg.prototype.computeConfirmButton_=function(p){var y={text:p.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};p.confirmNavigationEndpoint?y.navigationEndpoint=p.confirmNavigationEndpoint:p.confirmServiceEndpoint&&(y.serviceEndpoint=p.confirmServiceEndpoint);return y};
Bg.prototype.computeShowTitle_=function(p){return!(p==null||!p.title)};
_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],Bg.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],Bg.prototype,"data",void 0);_.H([_.Q({computed:"computeShowTitle_(data)"}),_.x("design:type",Boolean)],Bg.prototype,"showTitle",void 0);_.H([_.z9({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],Bg);
_.D(Bg,"yt-fancy-dismissible-dialog-renderer",function(){if(vl6===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-fancy-dismissible-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_fancy_dismissible_dialog_renderer.yt.fancy.dismissible.dialog.renderer.css.js--\x3e<h2 hidden="[[!showTitle]]" id="title" class="style-scope yt-fancy-dismissible-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-button-renderer id="confirm-button" data="[[computeConfirmButton_(data)]]" dialog-confirm="" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-button-renderer>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;f59===void 0&&(f59=document.createElement("template"));var q=f59;l.call(y,q.content.cloneNode(!0),p.content.firstChild);vl6=p}p=vl6;return p});var XMm;var d_V;var fN=function(){var p=_.w.apply(this,arguments)||this;p.spinnerActive=!1;return p};
_.A(fN,_.w);fN.prototype.created=function(){cs6(2201)};
fN.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
fN.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
fN.prototype.onIronOverlayClosed=fN.prototype.onIronOverlayClosed;fN.prototype.onIronOverlayOpened=fN.prototype.onIronOverlayOpened;_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.JT),_.x("design:type",Object)],fN.prototype,"tpYtIronOverlayBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],fN.prototype,"data",void 0);_.H([_.Q(),_.x("design:type",Object)],fN.prototype,"spinnerActive",void 0);
_.H([_.VU("iron-overlay-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fN.prototype,"onIronOverlayOpened",null);_.H([_.VU("iron-overlay-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fN.prototype,"onIronOverlayClosed",null);_.H([_.z9({is:"yt-loading-renderer",disableElementRegistration:!0})],fN);
_.D(fN,"yt-loading-renderer",function(){if(d_V===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_loading_renderer.yt.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" alt="[[data.accessibility.accessibility_data.label]]" class="style-scope yt-loading-renderer">\n</tp-yt-paper-spinner>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;XMm===void 0&&(XMm=document.createElement("template"));var q=XMm;l.call(y,q.content.cloneNode(!0),p.content.firstChild);d_V=p}p=d_V;return p},{mode:2});var Of7;var olu;var vg=function(){var p=_.w.apply(this,arguments)||this;p.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);p.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);p.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.A(vg,_.w);_.J=vg.prototype;_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.J.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.J.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.J.openPopupHandler_=function(p){p.detail===this.hostElement&&this.hostElement.hidden&&_.$w(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.J.onDismissButtonTap_=function(){var p;this.closeOnDismissButton_.has(((p=this.data)==null?void 0:p.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.$w(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.J.onAcceptButtonTap_=function(){var p;this.closeOnAcceptButton_.has(((p=this.data)==null?void 0:p.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.$w(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.J.computeHasHeader_=function(p){return!!p.headerBackgroundImage};
_.J.computeLayoutStyle_=function(p){return p};
_.J.computePopupSize_=function(p){return p};
_.J.computeIconType_=function(p){return p.dialogIcon&&p.dialogIcon.iconType?p.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":p.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":p.dialogIcon.iconType:""};
_.J.computeIsLogo_=function(p){return!!p.dialogIcon&&!!p.dialogIcon.iconType&&(p.dialogIcon.iconType==="YOUTUBE_LOGO"||p.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||p.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.J.computeHasCustomLogo=function(p){return!(p==null||!p.headerForegroundImage)};
_.J.computeCustomLogo=function(p,y){if(p!=null&&p.headerForegroundImage)return p.headerForegroundImageDark?y?p.headerForegroundImageDark:p.headerForegroundImage:p.headerForegroundImage};
_.J.computeHeaderBackgroundImage=function(p,y){if(p!=null&&p.headerBackgroundImage)return y&&(p==null?0:p.headerBackgroundImageDark)?p.headerBackgroundImageDark:p.headerBackgroundImage};
_.J.shouldShowIconContainer=function(p,y){return p&&!y};
_.J.shouldShowNonYouTubeIcon=function(p,y){return!p&&!y};
_.J.getLogoImageId=function(p){var y,l,q;return(p=(y=this.computeCustomLogo(p,this.isDarkTheme))==null?void 0:(l=y.thumbnails)==null?void 0:(q=l[0])==null?void 0:q.height)&&p%31===0?"custom-logo-with-padding":"custom-logo"};
vg.prototype.openPopupHandler_=vg.prototype.openPopupHandler_;vg.prototype.dataChanged_=vg.prototype.dataChanged_;_.H([_.V(_.bQ.YtRendererstamperBehavior),_.x("design:type",Object)],vg.prototype,"ytRendererstamperBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],vg.prototype,"ytRendererBehavior",void 0);_.H([_.Q(),_.x("design:type",Boolean)],vg.prototype,"isDarkTheme",void 0);
_.H([_.Q({computed:"computeCustomLogo(data, isDarkTheme)"}),_.x("design:type",Object)],vg.prototype,"customLogo",void 0);_.H([_.Q({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.x("design:type",Object)],vg.prototype,"headerBackgroundImage",void 0);_.H([_.Q(),_.x("design:type",Object)],vg.prototype,"data",void 0);_.H([_.Q({computed:"computeHasHeader_(data)"}),_.x("design:type",Boolean)],vg.prototype,"hasHeader",void 0);
_.H([_.Q({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.x("design:type",Object)],vg.prototype,"layoutStyle",void 0);_.H([_.Q({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.x("design:type",Object)],vg.prototype,"popupSize",void 0);_.H([_.Q({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],vg.prototype,"hasLogo",void 0);
_.H([_.Q({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],vg.prototype,"hasCustomLogo",void 0);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vg.prototype,"dataChanged_",null);_.H([_.VU("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],vg.prototype,"openPopupHandler_",null);
_.H([_.z9({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],vg);
_.D(vg,"yt-upsell-dialog-renderer",function(){if(olu===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-upsell-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_upsell_dialog_renderer.yt.upsell.dialog.renderer.css.js--\x3e<yt-img-shadow id="header-image" hidden="[[!hasHeader]]" object-fit="COVER" thumbnail="[[headerBackgroundImage]]" class="style-scope yt-upsell-dialog-renderer">\n</yt-img-shadow>\n<div id="dialog" class="style-scope yt-upsell-dialog-renderer">\n  <div id="icon-container" hidden="[[!shouldShowIconContainer(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer"></div>\n  <yt-icon id="logo-icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" target-container="icon-container" class="style-scope yt-upsell-dialog-renderer">\n  </yt-icon>\n  <template is="dom-if" if="[[shouldShowNonYouTubeIcon(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer">\n    <yt-icon id="icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-icon>\n  </template>\n  <yt-img-shadow hidden="[[!hasCustomLogo]]" id$="[[getLogoImageId(data)]]" object-fit="CONTAIN" thumbnail="[[customLogo]]" class="style-scope yt-upsell-dialog-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope yt-upsell-dialog-renderer">\n    <yt-formatted-string id="upsell-dialog-title" role="heading" split-lines="" text="[[data.dialogMessageTitle]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="upsell-dialog-text" split-lines="" text="[[data.dialogMessageText]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-container" class="style-scope yt-upsell-dialog-renderer">\n    <div id="dismiss-button" on-click="onDismissButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n    <div id="action-button" on-click="onAcceptButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n  </div>\n</div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;Of7===void 0&&(Of7=document.createElement("template"));var q=Of7;l.call(y,q.content.cloneNode(!0),p.content.firstChild);olu=p}p=olu;return p},{mode:2});var zzm=_.aF(function(p){return _.R("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.R(_.W,{cond:p.title,then:function(y){return _.R("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},y)}}))},"Jg"),YhL=_.aF(function(p){return _.R("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.R(_.di,{data:p.closeButton},{buttonViewModel:function(y){return _.R("div",null,_.R(_.wZ,{data:y.data}))}}))},"Kg"),I51=_.aF(function(p){var y=
p.data;
return _.R(_.a4,null,_.R("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.R("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.R(_.W,{cond:function(){return!!y().image&&!!y().title},
then:function(){return _.R(_.W$,{data:function(){return y().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.R("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.R(_.W,{cond:function(){return y().title},
then:function(l){return _.R("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},l)}}),_.R(_.W,{cond:function(){return y().primaryGenre},
then:function(l){return _.R("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},l)}}))),_.R(_.W,{cond:function(){var l=y().description;
return l&&l.length<=150},
then:function(){return _.R("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.R("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return y().description}))}}))},"Lg"),pwT=_.aF(function(p){p=p.infoRows;
var y=_.WC().resolve(_.qk),l=_.n("enable_displaying_ppn");return _.R("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.R(_.rT,{each:p},function(q){return _.R("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.R(_.W,{cond:function(){return q.label},
then:function(t){return _.R("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},t)}}),_.R(_.W,{cond:function(){return q.attributedLabel},
then:function(t){return _.R("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.R(_.CF,{text:t,noPreWrap:!0}))}}),_.R(_.W,{cond:function(){return q.value},
then:function(t){return _.R("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},t)}}),_.R(_.W,{cond:function(){return q.attributedValue},
then:function(t){return _.R("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.R(_.CF,{text:t,noPreWrap:!0}))}}))}),_.R(_.W,{cond:function(){return l&&y.clientData.has("post_play_nonce")},
then:function(){return _.R("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.R("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.R("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},y.getData("post_play_nonce")))}}))},"Mg"),y57=_.aF(function(p){var y=p.data;
return _.R("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.R(zzm,{title:function(){return y().dialogTitle}}),_.R(I51,{data:y}),_.R(_.W,{cond:function(){return y().infoRow},
then:function(l){return _.R(pwT,{infoRows:l})}}),_.R(YhL,{closeButton:function(){return y().closeButton}}))},"Ng");
y57.idomCompat=!0;_.bp(y57,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.Co}});_.bp(_.aF(function(p){var y=p.data;return _.R("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.R(_.W$,{data:function(){return y().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.R("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.R("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.R(_.W,{cond:function(){var l=y().ytLogo;return l?l.iconType:null},
then:function(l){return _.R(_.DR,{icon:l,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.R("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.R("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.R(_.CF,{text:function(){return y().title}})),_.R("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.R(_.CF,{text:function(){return y().body}})),_.R("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.R(_.CF,{text:function(){return y().verifyStateText}}))),
_.R("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.R("div",null,_.R(_.di,{data:function(){return y().dismissButton}},{buttonViewModel:_.wZ})),_.R("div",null,_.R(_.di,{data:function(){return y().linkParentButton}},{buttonViewModel:_.wZ})))))},"Og"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.Co}});var ljw=_.aF(function(p){var y=p.data;p=_.uy(function(){return y().agreements},[]);
return _.R("installment-agreements-view-model",{class:_.ip("ytInstallmentAgreementsViewModelHost")},_.R(_.rT,{each:p},function(l){return _.R("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.R("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.R(_.CF,{text:l.label})),_.R("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.R(_.di,{data:function(){return l.openButton}},{buttonViewModel:_.wZ})))}))},"Pg");
ljw.idomCompat=!0;var qeL=_.aF(function(p){return _.R("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.R("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.R(_.CF,{text:function(){return p.data().inviteMessage}})),_.R("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.R(_.CF,{text:function(){return p.data().attributedAccountSectionHeaderText}})),_.R("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.R(_.di,{data:function(){return p.data().accountAvatar}},{avatarViewModel:_.v5}),_.R("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.R(_.CF,{text:function(){return p.data().accountName}}),_.R("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.R(_.CF,{text:function(){return p.data().handle}}))),_.R(_.di,{data:function(){return p.data().trailingButton}},{buttonViewModel:_.wZ})),_.R("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.R(_.CF,{text:function(){return p.data().termsOfService}})))},"Qg");var sVR=_.aF(function(p){var y=_.c(_.kS(function(){var z,sc;return((z=p.data().createPlaylistDialogFormSchema)==null?0:(sc=z.initialValues)==null?0:sc.title)?p.data().createPlaylistDialogFormSchema.initialValues.title:""})),l=y.next().value,q=y.next().value;
y=_.c(_.kS(function(){p.data();return!1}));
var t=y.next().value,E=y.next().value;y=_.c(_.kS(function(){p.data();return!1}));
var e=y.next().value,C=y.next().value;y=_.c(_.kS(function(){var z,sc;return(z=p.data().createPlaylistDialogFormSchema)==null?void 0:(sc=z.initialValues)==null?void 0:sc.visibility}));
var u=y.next().value,a=y.next().value;y=_.c(_.kS(function(){p.data();return!1}));
var m=y.next().value,U=y.next().value;y=_.c(_.kS(function(){var z,sc;return(z=p.data().createPlaylistDialogFormSchema)==null?void 0:(sc=z.initialValues)==null?void 0:sc.isCollaborative}));
var b=y.next().value,P=y.next().value,Z=_.sM("div");_.NA(function(){var z=Z.value.querySelector("textarea");z&&(z.value=l())},"OCauEe");
_.xZ(function(){var z;_.Wq9((z=p.data().createPlaylistDialogFormSchema)==null?void 0:z.id,{onSubmit:function(){var sc=l();var hR=u(),Wt=b(),AR=p.data();sc={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:sc,privacyStatus:hR,videoIds:AR.videoIds,sourcePlaylistId:AR.sourcePlaylistId,params:Wt?AR.createPlaylistParamsCollaborationEnabled:AR.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.WC().resolve(_.aK).resolveCommand(sc)},
isValid:function(){return t()&&!e()&&!m()}})});
var K=function(z){if(z!==void 0&&(q(z),!t()&&z.length>0&&E(!0),t())){var sc=$ed(p.data());if(sc){var hR=sc.minLength;sc=sc.maxLength;hR&&z.length<hR?C(!0):sc&&z.length>sc?C(!0):C(!1)}}},F=function(){var z=!(!b()||u()!=="PRIVATE");
U(z)},L=function(z){z!==void 0&&(a(z),F())},T=function(){if(m())return blR(p.data())},O=function(){P(!b());
F()},f=function(){return{validate:function(z){if(t()){var sc=$ed(p.data());
if(sc){var hR=sc.minLength;sc=sc.translations;if(hR&&z.length<hR)return sc==null?void 0:sc.minLengthErrorMessage}}}}},v=function(){var z=$ed(p.data()),sc=z==null?void 0:z.maxLength,hR;
z=z==null?void 0:(hR=z.translations)==null?void 0:hR.maxLengthErrorMessage;if(sc&&z)return{maxChars:sc,errorMessage:z}};
return _.R("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.R("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:Z},_.R(_.di,{data:function(){return p.data().playlistTitle}},{textFormFieldViewModel:function(z){return _.R(_.qLu,{data:z.data,
text:l,onInput:K,validation:f,characterLimit:v})},
textFieldViewModel:function(z){return _.R(_.lp1,{data:z.data,text:l,onInput:K,validation:f,characterLimit:v})}})),_.R("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.R(_.di,{data:function(){return p.data().playlistVisibility}},{dropdownViewModel:function(z){return _.R(_.ap9,{data:z.data,
onSelected:L,error:T})}})),_.R(_.W,{cond:function(){return!!p.data().playlistCollaborate},
then:function(){return _.R("div",null,_.R(_.di,{data:function(){return p.data().playlistCollaborate}},{switchListItemViewModel:function(z){return _.R(_.T_v,{data:z.data,
onTap:O})}}))}}))},"Rg");var tgw=_.aF(function(p){var y=p.data;return _.R("upsell-offer-table-cell-content-view-model",null,_.R("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.R(_.L6,null,_.R(_.Sc,{when:function(){return y().iconType}},function(){return _.R("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.R(_.DR,{icon:function(){return y().iconType.toString()}}))}),_.R(_.Sc,{when:function(){return y().title}},function(){return _.R(_.CF,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return y().title}})}),_.R(_.Sc,{when:function(){return y().subtitle}},function(){return _.R(_.CF,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return y().subtitle}})}),_.R(_.Sc,{when:function(){return y().infoText}},function(){return _.R(_.CF,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return y().infoText}})}),_.R(_.Sc,{when:function(){return y().featureDescription}},function(){return _.R(_.CF,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return y().featureDescription}})}),_.R(_.Sc,{when:function(){return y().note}},function(){return _.R(_.CF,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return y().note}})}))))},"Sg");
tgw.idomCompat=!0;var Eu7=_.aF(function(p){var y=p.data;return _.R("upsell-offer-table-cell-view-model",null,_.R("div",{class:_.ip("ytUpsellOfferTableCellViewModelCellWrapper",function(){return y().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.R(_.di,{data:function(){return y().contents}},{upsellOfferTableCellContentViewModel:tgw})))},"Tg");
Eu7.idomCompat=!0;var J5d=_.aF(function(p){var y=p.data;var l=p.upsellTableIsFirstRow;var q=function(){return(l==null?0:l())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},t=function(){return(l==null?0:l())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.R("ytm-upsell-offer-table-row-view-model",null,_.R("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.R(_.di,{data:function(){return y().rowHeaderCell}},{upsellOfferTableCellViewModel:function(E){return _.R("div",{class:q},_.R(Eu7,{data:E.data}))}}),_.R(_.di,{data:function(){return y().contentCells}},{upsellOfferTableCellViewModel:function(E){return _.R("div",{class:t},_.R(Eu7,{data:E.data}))}})))},"Ug");
J5d.idomCompat=!0;var c5R=_.aF(function(p){var y=p.data;return _.R("ytm-upsell-offer-table-view-model",null,_.R("div",{class:"ytUpsellOfferTableViewModelHost"},_.R("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.R(_.di,{data:function(){return y().rows}},{upsellOfferTableRowViewModel:function(l,q){return _.R(J5d,{data:l.data,
upsellTableIsFirstRow:function(){return q()===0}})}}))))},"Vg");
c5R.idomCompat=!0;var eCd=_.aF(function(p){var y=_.uy(p.noPadding,!1),l=function(){var E,e;return(e=(E=p.data().logo.accessibilityData)==null?void 0:E.label)!=null?e:""},q=function(){return p.data().offerTable},t={};
return _.R("upsell-view-model",{class:_.ip("ytUpsellViewModelHost",(t.ytUpsellViewModelHostNoPadding=function(){return y()},t.ytUpsellViewModelHostWide=function(){return q()!==void 0},t))},_.R("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.R(_.W,{cond:function(){return _.cn(p.data().logo)},
then:function(E){return _.R(_.W$,{data:E,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:l})}})),_.R("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.R(_.CF,{text:function(){return p.data().title}})),_.R("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.R(_.rT,{each:function(){var E;
return(E=p.data().subtitles)!=null?E:[]},
keyBy:"INDEX"},function(E){var e={};return _.R("div",{class:_.ip("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(e.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return q()!==void 0},e))},_.R(_.CF,{text:E}))})),_.R("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.R(_.rT,{each:function(){var E;
return(E=p.data().benefitInfos)!=null?E:[]},
keyBy:"INDEX"},function(E){return _.R(_.W,{cond:function(){return E().info},
then:function(e){return _.R("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.R(_.DR,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.R(_.CF,{text:e}))}})})),_.R(_.W,{cond:function(){return q()!==void 0},
then:function(){return _.R("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.R(c5R,{data:q}))}}),_.R("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.R(_.rT,{each:function(){var E;
return(E=p.data().legalInfos)!=null?E:[]},
keyBy:"INDEX"},function(E){var e={};return _.R("div",{class:_.ip("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(e.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return q()!==void 0},e))},_.R(_.CF,{text:E}))})))},"Wg");var hC9=_.aF(function(p){var y=p.data;p={};p=(p.ytMiniAppScoreChallengeViewModelScoreRadial=!0,p.ytMiniAppScoreChallengeViewModelDarkScoreRadial=ngw(),p);return _.R("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.R("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return y().title}),_.R("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return y().subtitle}),_.R("div",{class:_.rD(p)},_.R("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return y().score})),_.R("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return y().prompt}))},"Xg");var Cuu=function(){this.store=_.hl();this.formId=""};
Cuu.prototype.onInit=function(p){p.formId&&(this.formId=p.formId,this.store.dispatch(_.$y({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var uud=_.aF(function(p){function y(C){if(C&&(C=_.G(C,_.Nr)))return Object.assign({},C,{isSelected:E()})}
var l=_.c(_.kS(function(){var C,u;return(u=(C=_.G(p.data().option,_.Nr))==null?void 0:C.isSelected)!=null?u:!1})),q=l.next().value,t=l.next().value,E=q;
_.xZ(function(){var C;_.Wq9((C=p.data().formSchema)==null?void 0:C.id,{onSubmit:function(){var u=_.WC().resolve(_.aK),a=!!p.data().selectedCommand,m=!!p.data().unselectedCommand;if(E()){if(a)var U=p.data().selectedCommand}else m&&(U=p.data().unselectedCommand);U=_.yM(U);y(p.data().option)&&!U?(u="",!a&&m?u="selected ":a&&!m&&(u="unselected "),a=new _.SM("No "+u+"command found for SelectionListItemFormViewModel"),_.Bs(a)):U&&u.resolveCommand(U)},
isValid:function(){return!0}})});
var e=function(){t(!E())};
_.TP(function(){var C,u,a=(C=p.data())==null?void 0:(u=C.formSchema)==null?void 0:u.id;a&&_.uF1()().delete(a)});
return _.R("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.R("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.R(_.CF,{text:function(){return p.data().paragraph}})),_.R(_.W,{cond:function(){return y(p.data().option)},
then:function(C){return _.R(_.zI,{data:C,isCompact:!0,hideSelectionTextChevron:!0,onTap:e,disableHorizontalPadding:!0})}}))},"Yg");var RCd=_.aF(function(p){var y=p.data;var l=p.disablePadding;var q=p.className;var t=_.sM("yt-dialog-header-view-model"),E=function(){var C=y().imageBanner;a:switch(y().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var u="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:u="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:C,style:u,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},e=function(){return y().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.xZ(function(){var C=function(){_.$w(t.value,"yt-refit-popups-action")},u;
(u=t.value)==null||u.addEventListener("image-loaded",C);_.TP(function(){var a;(a=t.value)==null||a.removeEventListener("image-loaded",C)})});
p={};return _.R("yt-dialog-header-view-model",{el:t,class:_.ip(q,(p.ytDialogHeaderViewModelHost=!0,p.ytDialogHeaderViewModelHostDisablePadding=l,p))},_.R(_.W,{cond:function(){return y().imageBanner},
then:function(){var C={};return _.R("div",{class:_.ip(q,(C.ytDialogHeaderViewModelBanner=!0,C.ytDialogHeaderViewModelBannerFullBleed=e,C)),style:_.NW({"max-height":function(){return y().assetContainerMaxHeight!==void 0?y().assetContainerMaxHeight+"px":void 0}})},_.R(_.bY,{data:E,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.R(_.W,{cond:function(){return y().headerBlock},
then:function(){return _.R("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.R(_.di,{data:function(){return y().headerBlock}},{contentPreviewImageViewModel:function(C){return _.R(_.bY,{data:C.data,
notifyOnLoaded:!0})}}))}}),_.R(_.W,{cond:function(){return y().customBanner},
then:function(C){return _.R("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.R(_.di,{data:C},{avatarStackViewModel:_.d7}))}}),_.R(_.W,{cond:function(){return y().headline},
then:function(C){return _.R("h2",null,_.R(_.CF,{text:C,className:"ytDialogHeaderViewModelText"}))}}))},"Zg");
RCd.idomCompat=!0;var W9R=_.aF(function(p){var y=_.ak6(function(){return p.data().formId}),l=y.onSubmit,q=y.isValid;
return _.R("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.R(_.di,{data:function(){return p.data().panelFooter}},{panelFooterViewModel:function(t){return _.R(_.eS,{data:t.data,
disablePadding:!0,disablePrimaryButton:function(){return!q()},
onClickPrimaryButton:function(){l()}})}}))},"$g");var ajV=_.aF(function(p){var y=function(){var l,q;return(q=(l=_.G(p.data().rendererContext,_.L5))==null?void 0:l.label)!=null?q:""};
return _.R("yt-dialog-image-content-view-model",{class:_.ip("ytDialogImageContentViewModelHost",p.className)},_.R(_.W,{cond:function(){return _.cn(p.data().image)},
then:function(l){return _.R(_.W$,{data:l,alt:y,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.R(_.CF,{text:function(){return p.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"ah");var $kd=_.aF(function(p){var y=_.RF(p,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),l=y.elRefCallback;p=y.iconWiz;var q=y.assetWiz,t=y.assetType,E=y.titleWiz,e=y.leadingActionHeaderWiz,C=y.trailingActionHeaderWiz,u=y.headerPosition,a=y.contentWiz,m=y.buttonLayout,U=y.buttonStyle,b=y.primaryButtonWiz,P=y.secondaryButtonWiz,Z=y.contentAlignment,K=y.isFullscreen,F=y.width,L=y.maxHeight,T=y.isHeaderWizDefined,
O=y.headerWiz,f=y.isFooterWizDefined,v=y.footerWiz;y=_.sM("dialog-layout",function(L8){l==null||l(L8)});
var z=q?function(){return q({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,sc=b?function(){var L8={};
return b({buttonOverrides:function(){return{style:(U==null?void 0:U())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.ip((L8["yt-spec-dialog-layout__dialog-layout-button"]=!0,L8["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(m==null?void 0:m())===0||(m==null?void 0:m())===2},L8))})}:void 0,hR=P?function(){var L8={};
return P({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.ip((L8["yt-spec-dialog-layout__dialog-layout-button"]=!0,L8["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(m==null?void 0:m())===0||(m==null?void 0:m())===2},L8))})}:void 0,Wt=function(){return(!!E||!!e||!!C)&&u()===0},AR={},Qu={},jj={},x6={};
return _.R("dialog-layout",{el:y,class:_.ip((AR["yt-spec-dialog-layout"]=!0,AR["yt-spec-dialog-layout--dialog-layout-fullscreen"]=K,AR["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!K()},AR["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return L()===1},AR["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(t==null?void 0:t())===1},AR)),
style:function(){return(F==null?void 0:F())!==void 0?"width: "+F+"px;":""}},p?_.R("div",{class:_.ip((Qu["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Qu["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!q&&u()===1},Qu["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return Z()===1},Qu))},_.R(p,null)):null,_.R(_.W,{cond:T,
then:function(){return O?_.R("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.R(O,null)):null},
else:function(){return _.R(_.a4,null,_.R(_.W,{cond:Wt,then:function(){return _.R(mkw,{contentAlignment:Z,LeadingActionHeader:e,TrailingActionHeader:C,Title:E,isAboveAsset:!!z})}}),z?_.R("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.R(z,null)):null)}}),_.R("div",{class:_.ip((jj["yt-spec-dialog-layout__dialog-layout-container"]=!0,jj["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(Z==null?void 0:Z())===1},jj["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!E&&!O||!!z&&(u==null?void 0:u())===0},jj))},_.R(_.W,{cond:function(){return E&&!O&&(u==null?void 0:u())===1},
then:function(){return _.R(mkw,{contentAlignment:Z,LeadingActionHeader:e,TrailingActionHeader:C,Title:E,isAboveAsset:!1})}}),a?_.R("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.R("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.R(a,null))):null,_.R(_.W,{cond:f,
then:function(){return v?_.R("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.R(v,null)):null}}),sc||hR?_.R(Uk6,{footerClasses:_.ip((x6["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,x6["yt-spec-dialog-layout__dialog-layout-footer"]=!0,x6["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(m==null?void 0:m())===2},x6["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(m==null?void 0:m())===1},x6)),
PrimaryButton:sc,SecondaryButton:hR}):null))},"bh"),mkw=_.aF(function(p){var y=_.RF(p,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),l=y.contentAlignment,q=y.LeadingActionHeader;p=y.Title;var t=y.TrailingActionHeader,E=y.isAboveAsset,e=y.enableLeadingActionHeader;y={};return _.R("div",{class:_.ip((y["yt-spec-dialog-layout__dialog-header-container"]=!0,y["yt-spec-dialog-layout__dialog-header"]=!0,y["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=E,y["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(l==null?void 0:l())===1&&e()},y))},_.R(_.W,{cond:function(){return e()},
then:function(){return q?_.R("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.R(q,null)):null}}),p?_.R("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.R(p,null)):null,t?_.R("div",null,_.R(t,null)):null)},"ch"),Uk6=_.aF(function(p){var y=p.footerClasses;
var l=p.PrimaryButton;p=p.SecondaryButton;return _.R("div",{class:y},p?_.R(p,null):null,l?_.R(l,null):null)},"dh");var jVA=_.aF(function(p){var y=p.data;return _.R("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.R("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.R(_.di,{data:function(){return y().avatar}},{avatarViewModel:_.v5})),_.R("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.R(_.CF,{text:function(){return y().title}})),_.R(_.CF,{text:function(){return y().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"eh");var bkm=_.aF(function(p){var y=p.data;return _.R("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.R("div",{class:"ytAccessConfirmationViewModelContent"},_.R(_.di,{data:function(){var l;return(l=y().avatar)!=null?l:y().dualAvatar}},{dualAvatarViewModel:function(l){return _.R(_.PhQ,{data:l.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(l){return _.R(_.X9,{data:l.data})}}),_.R("h2",{class:"ytAccessConfirmationViewModelTitle"},_.R(_.CF,{text:function(){return y().title}})),_.R(_.CF,{text:function(){return y().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"fh");var nuA=_.aF(function(p){var y=p.data;var l=void 0;p=_.c(_.kS(function(){var a;return((a=_.G(y().content,_.KIA))==null?void 0:a.defaultSelectedKey)||""}));
var q=p.next().value,t=p.next().value,E,e=function(){t("");var a;(a=l)!=null&&a.store.dispatch(_.$y({type:"RESET_COMMAND_MAP"}))};
_.xZ(function(){l=new Cuu;window.addEventListener("yt-popup-closed",e)});
_.NA(function(){if(l&&E!==y().formId&&(l.onInit(y()),(E=y().formId)&&q())){var a=l,m={key:q()};m.command&&a.store.dispatch(aQi(E,m.command))}},"k6b6Qe");
_.TP(function(){window.removeEventListener("yt-popup-closed",e)});
var C=function(a,m,U){m.key&&U&&m.key!==q()&&(t(m.key),l&&m.command&&l.store.dispatch(aQi(U,m.command)))},u=function(){if(_.G(y().content,_.KIA))return!(q==null?0:q())};
return _.R("yt-dialog-view-model",{class:_.ip("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.R($kd,{headerWiz:function(){return _.R("span",{skip:!0},_.R(_.di,{data:function(){return y().header}},{dialogHeaderViewModel:function(a){return _.R(RCd,{data:a.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!y().header},
contentWiz:function(){return _.R("span",{skip:!0},_.R(_.di,{data:function(){return y().customContent?y().customContent:y().content}},{basicContentViewModel:_.mL1,
createPlaylistDialogFormViewModel:sVR,collaborativePlaylistInviteMessageViewModel:qeL,miniAppScoreChallengeViewModel:hC9,radioButtonGroupViewModel:function(a){var m=a.data;return _.R(_.u$6,{data:m,selectedKey:q,onSelected:C,groupName:function(){return m().formId}})},
selectionListItemFormViewModel:uud,upsellViewModel:function(a){return _.R(eCd,{data:a.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:jVA,installmentAgreementsViewModel:ljw,accessConfirmationViewModel:bkm,listViewModel:function(a){return _.R(_.osZ,{data:a.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:ajV}))},
footerWiz:function(){return _.R("span",{skip:!0},_.R(_.di,{data:function(){return y().footer}},{panelFooterViewModel:function(a){return _.R(_.eS,{data:a.data,
disablePadding:!0,disablePrimaryButton:u})},
formPanelFooterViewModel:W9R,formFooterViewModel:function(a){return _.R(_.IK1,{data:a.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!y().footer}}))},"gh");
nuA.idomCompat=!0;_.bp(nuA,"yt-dialog-view-model",{props:{data:_.Co},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var GG9=_.aF(function(p){var y=p.data;p={};return _.R("yt-panel-header-view-model",{class:_.ip("yt-panel-header-view-model-wiz",(p["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!y().shouldHideDivider},p["yt-panel-header-view-model-wiz--compact"]=function(){return!!y().subtitle},p))},_.R("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.R(_.W,{cond:function(){return y().title},
then:function(l){return _.R(_.CF,{text:l,className:"yt-panel-header-view-model-wiz__title"})}}),_.R(_.W,{cond:function(){return y().subtitle},
then:function(l){return _.R(_.CF,{text:l,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.R("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.R(_.di,{data:function(){return y().trailingButtons}},{buttonViewModel:function(l){return _.R(_.wZ,{data:l.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"hh");
GG9.idomCompat=!0;var PuT=_.aF(function(p){var y=_.Ff(function(E){var e;if((e=p.skipContentClick)==null?0:e.call(p))return!1;p.onContentWrapperClick(E);return!0}),l,q,t;
return _.R("div",{class:_.ip("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return p.isAnimating()?"transform: translateY("+p.currentY()+"px);transition: 0.2s":""}},(l=p.header)==null?void 0:l.call(p),_.R("div",{id:p.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.NW({"max-height":(0,_.OG)(p.maxHeightForContentWrapper)}),"on:scroll":Zlm(p.onScroll),"on:touchmove":Zlm(function(E){return void E.stopPropagation()})},_.R("div",{el:{onRender:p.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":y},(q=p.body)==null?void 0:q.call(p))),(t=p.footer)==null?void 0:t.call(p))},"ih");
PuT.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var A59=_.aF(function(p){var y=_.uy(p.leadingLabel),l=_.uy(p.trailingLabel),q=_.uy(p.footerButtonType),t=function(){return y()||l()||p.hasPrimaryButton()||p.hasSecondaryButton()},E={},e=_.ip("yt-spec-bottom-sheet-layout__primary-button",(E["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return q()===0&&p.hasPrimaryButton()},E["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return q()===1&&p.hasPrimaryButton()},E["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return q()===2&&p.hasPrimaryButton()},E["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return q()===3&&p.hasPrimaryButton()},E));
E={};var C=_.ip("yt-spec-bottom-sheet-layout__secondary-button",(E["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return q()===1&&p.hasSecondaryButton()},E["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return q()===2&&p.hasSecondaryButton()},E["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return q()===3&&p.hasPrimaryButton()},E));
return _.R(_.W,{cond:p.hasFooterOverride,then:function(){var u;return _.R(_.a4,null,(u=p.footerOverride)==null?void 0:u.call(p))},
else:function(){return _.R(_.W,{cond:t,then:function(){return _.R("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.R(_.W,{cond:function(){return y()||l()},
then:function(){var u={};return _.R("div",{class:_.ip("yt-spec-bottom-sheet-layout__footer-label-wrapper",(u["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!p.hasPrimaryButton()},u))},_.R(_.W,{cond:y,
then:function(){return _.R("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},y)}}),_.R(_.W,{cond:l,
then:function(){return _.R("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},l)}}))}}),_.R(_.W,{cond:function(){return p.hasPrimaryButton()||p.hasSecondaryButton()},
then:function(){var u={};return _.R("div",{class:_.ip("yt-spec-bottom-sheet-layout__footer-button-wrapper",(u["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.XkM,u))},_.R(_.W,{cond:function(){return p.hasSecondaryButton()&&q()!==0},
then:function(){var a;return _.R("div",{class:C},(a=p.secondaryButton)==null?void 0:a.call(p))}}),_.R(_.W,{cond:p.hasPrimaryButton,
then:function(){var a;return _.R("div",{class:e},(a=p.primaryButton)==null?void 0:a.call(p))}}))}}))}})}})},"jh");
A59.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var Zkd=_.aF(function(p){var y=_.uy(p.title),l=_.uy(p.subtitle);return _.R("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:p.headerId,"on:touchstart":_.Ff(function(q){var t;(t=p.touchstart)==null||t.call(p,q);return!1}),
"on:touchmove":_.Ff(function(q){var t;(t=p.touchmove)==null||t.call(p,q);return!1}),
"on:touchend":_.Ff(function(q){var t;(t=p.touchend)==null||t.call(p,q);return!1})},_.R("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.R(_.W,{cond:p.hasHeaderOverride,
then:function(){var q;return _.R(_.a4,null,(q=p.headerOverride)==null?void 0:q.call(p))},
else:function(){var q={};return _.R("div",{class:_.ip((q["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,q["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=y,q))},_.R("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.R(_.W,{cond:y,then:function(){return _.R(_.a4,null,_.R("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},y),_.R(_.W,{cond:l,then:function(){return _.R("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
l)}}))}})),_.R(_.W,{cond:function(){return y()&&p.hasActionHeader()},
then:function(){var t;return _.R("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(t=p.actionHeader)==null?void 0:t.call(p))}}))}}))},"kh");
Zkd.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.aF(function(p){function y(z){if(!L&&typeof MutationObserver!=="undefined"){var sc={childList:!0};"MutationObserver"in window&&(L=new MutationObserver(l.bind(void 0,z)),L.observe(z,sc))}}
function l(z){typeof L!=="undefined"&&(T["content-wrapper"]===void 0&&(T["content-wrapper"]=z.children[0].clientHeight),P(T["content-wrapper"]),b()>Z()||K(b()))}
function q(){U(window.innerHeight);b()>Z()||K(b());O.isFullScreen[0]()&&b()>Z()?f().dispatch("Snap To Full Screen",{maxHeight:F()}):f().dispatch("Snap To Neutral Position",{maxHeight:Z()})}
function t(z){document.body.style.overscrollBehavior="none";z.preventDefault();f().dispatch("Touch Start",{event:z})}
function E(z){z.preventDefault();f().dispatch("Touch Move",{event:z,contentScrollable:b()>Z(),fullContentWrapperHeight:F(),contentWrapperHeight:Z(),contentHeightMap:T,contentWrapperId:"content-wrapper",header:Vm7(p),footer:Vm7(p)})}
function e(){document.body.style.overscrollBehavior="";O.isFullScreen[0]()?O.currentY[0]()>=60?f().dispatch("Snap To Neutral Position",{maxHeight:Z()}):f().dispatch("Snap To Full Screen",{maxHeight:F()}):O.currentY[0]()>=60?C():O.currentY[0]()<=-60&&b()>Z()?f().dispatch("Snap To Full Screen",{maxHeight:F()}):f().dispatch("Snap To Neutral Position",{maxHeight:Z()})}
function C(){f().dispatch("Close Sheet",{clientHeight:m(),maxHeight:0});setTimeout(function(){MmT()},250)}
var u=_.c(_.nr(window.innerHeight,void 0,"NWeFS")),a=u.next().value;u=u.next().value;var m=a,U=u;u=_.c(_.nr(0,void 0,"oxfm4"));a=u.next().value;u=u.next().value;var b=a,P=u;u=_.c(_.kS(function(){var z=Vm7(p);return.6*m()-Gpd(z)-PyT(z)}));
a=u.next().value;u=u.next().value;var Z=a,K=u,F=function(){var z=Vm7(p);return m()-Gpd(z)-PyT(z)-24-24},L=null,T={},O={initialY:_.nr(0,void 0,"cYBE5c"),
currentY:_.nr(0,void 0,"RndqHc"),isAnimating:_.nr(!1,void 0,"vO9DVd"),isFullScreen:_.nr(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.kS(Z)},f=function(){var z=null;return function(){if(!z){var sc={initialY:O.initialY[0](),currentY:O.currentY[0](),isAnimating:O.isAnimating[0](),isFullScreen:O.isFullScreen[0](),maxHeightForContentWrapper:O.maxHeightForContentWrapper[0]()};z=AlR(sc)}return z}}();
_.xZ(function(){window.addEventListener("resize",q);f().subscribe(function(z){O.initialY[1](z.initialY);O.currentY[1](z.currentY);O.isAnimating[1](z.isAnimating);O.isFullScreen[1](z.isFullScreen);O.maxHeightForContentWrapper[1](z.maxHeightForContentWrapper)})});
_.TP(function(){window.removeEventListener("resize",q);L&&(L.disconnect(),L=null)});
var v=_.ip({"bottom-sheet-content-without-icon":function(){var z;return!((z=p.shouldShowIcons)==null?0:z.call(p))}});
return _.R("bottom-sheet-layout",null,_.R(PuT,{contentWrapperId:"content-wrapper",isAnimating:function(){return O.isAnimating[0]()},
currentY:function(){return O.currentY[0]()},
maxHeightForContentWrapper:function(){return O.maxHeightForContentWrapper[0]()},
shouldShowIcons:p.shouldShowIcons,skipContentClick:p.skipContentClick,onScroll:function(){var z=document.getElementById("header-wrapper"),sc=document.getElementById("content-wrapper");if(z&&sc){var hR={};hR=(hR["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,hR["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,hR);z.className=sc.scrollTop>1?_.rD(hR):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:MmT,contentWrapperEl:function(z){y(z);requestAnimationFrame(function(){l(z)})},
header:function(){return _.R(Zkd,{touchstart:t,touchmove:E,touchend:e,title:p.headerTitle,subtitle:p.headerSubtitle,headerId:"header-wrapper",headerOverride:p.headerFn,hasHeaderOverride:p.hasHeaderFn,actionHeader:p.headerActionHeader,hasActionHeader:p.hasHeaderActionHeader})},
footer:function(){return _.R(A59,{footerButtonType:p.footerButtonType,leadingLabel:p.footerLeadingLabel,trailingLabel:p.footerTrailingLabel,primaryButton:p.footerPrimaryButton,hasPrimaryButton:p.hasFooterPrimaryButton,secondaryButton:p.footerSecondaryButton,hasSecondaryButton:p.hasFooterSecondaryButton,footerOverride:p.footerFn,hasFooterOverride:p.hasFooterFn})},
body:function(){return _.R(_.W,{cond:p.hasContentFn,then:function(){var z;return _.R("div",{class:v},(z=p.contentFn)==null?void 0:z.call(p))}})}}))},"lh").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var MgV=_.aF(function(p){var y=_.WC().resolve(_.Tu);return _.R("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.Ff(function(){return void y.closeSheet()})},_.R(_.W,{cond:function(){return!!p.header},
then:function(){return _.R("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},p.header())}}),_.R(_.W,{cond:function(){return!!p.content},
then:function(){return _.R("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},p.content())}}),_.R(_.W,{cond:function(){return!!p.footer},
then:function(){return _.R("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},p.footer())}}))},"mh");
MgV.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var VgL=_.aF(function(p){p=p.data;var y=_.sM("yt-sheet-view-model",function(q){if(_.n("web_focus_first_element_sheet")||!_.n("sheet_focus_first_killswitch"))return q.addEventListener("focus",function(){jJR(q)}),function(){q.removeEventListener("focus",function(){jJR(q)})}}),l={};
return _.R("yt-sheet-view-model",{"on:mousedown":_.Ff(function(q){_.n("sheet_focus_first_killswitch")||q.currentTarget!==q.target&&q.preventDefault()}),
"on:focus":_.Ff(function(){_.n("sheet_focus_first_killswitch")||jJR(y.value)}),
class:_.ip("yt-sheet-view-model-wiz",(l["yt-sheet-view-model-wiz--contextual"]=!0,l["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.n("web_disable_backdrop_filter"),l)),el:y,tabindex:-1},_.R(_.W,{cond:p,then:function(q){return _.R(MgV,{header:function(){return _.R(_.di,{data:function(){return q().header}},{panelHeaderViewModel:GG9})},
content:function(){return _.R(_.di,{data:function(){return q().content}},{listViewModel:function(t){return _.R(_.osZ,{data:t.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:eCd,miniAppScoreChallengeViewModel:hC9})},
footer:function(){return _.R(_.di,{data:function(){return q().footer}},{panelFooterViewModel:_.eS})}})}}))},"nh");
VgL.idomCompat=!0;_.bp(VgL,"yt-sheet-view-model",{props:{data:_.Co}});var QVw=_.aF(function(p){var y=function(){var l;return(l=p.data().enableDebuggingFeatures)!=null?l:!1};
return _.R("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.R(_.rT,{each:function(){var l;return(l=p.data().stickers)!=null?l:[]}},function(l){return _.R(guT,{data:function(){return l},
debugMode:y})}))},"oh"),guT=_.aF(function(p){var y=_.RF(p,{debugMode:!1}).debugMode,l=_.uy(function(){var u;
return(u=p.data().region)==null?void 0:u.w},0),q=_.uy(function(){var u;
return(u=p.data().region)==null?void 0:u.h},0),t=_.uy(function(){var u;
return(u=p.data().region)==null?void 0:u.x},0),E=_.uy(function(){var u;
return(u=p.data().region)==null?void 0:u.y},0),e=_.Ff(function(){var u=p.data().onTap;
u&&_.tb(u)}),C={};
return _.R("div",{class:_.ip("ytStoriesStickerLayerViewModelSticker",(C.ytStoriesStickerLayerViewModelDebugMode=y,C)),style:_.NW({width:function(){return 100*l()+"%"},
height:function(){return 100*q()+"%"},
left:function(){return 100*t()+"%"},
top:function(){return 100*E()+"%"},
"flex-direction":function(){return ggA(p.data().flexDirection)},
"justify-content":function(){return QFu(p.data().justifyContent)},
"align-items":function(){return Kcw(p.data().alignItems)}}),
"on:click":e},_.R(_.di,{data:function(){return p.data().button||p.data().toggleButton}},{buttonViewModel:function(u){return _.R(_.wZ,{data:u.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(u){return _.R(_.fo,{data:u.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"ph");var wwi=_.aF(function(p){var y=function(){return p.data()},l={},q=_.uy(function(){return y().backgroundColor},0),t=_.uy(function(){return y().actionButtons},[]),E=_.uy(function(){return y().stickerLayer},{}),e=function(){var u,a;
return{animationRef:l,animationConfig:{autoplay:!1,loop:!1,path:(a=(u=y().foregroundAnimation)==null?void 0:u.url)!=null?a:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){p.navigateToNextItemOnLottieComplete()}}}},C=function(){var u,a,m,U,b,P,Z,K;
return{animationConfig:{autoplay:(P=(u=y().backgroundAnimation)==null?void 0:(a=u.settings)==null?void 0:a.autoplay)!=null?P:!1,loop:(Z=(m=y().backgroundAnimation)==null?void 0:(U=m.settings)==null?void 0:U.loop)!=null?Z:!1,path:(K=(b=y().backgroundAnimation)==null?void 0:b.url)!=null?K:"",name:"stories_item_background_animation"}}};
_.NA(function(){if(p.isVisible()){var u;(u=l.lottieEl)==null||u.play();p.animationRef()&&(p.animationRef().lottieEl=l.lottieEl)}else{var a;(a=l.lottieEl)==null||a.stop()}},"Cbnkwd");
return _.R("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.NW({"background-color":function(){return _.Y9(q())+";"}})},_.R("div",{class:"ytStoriesItemViewModelAssetContent"},_.R(_.W,{cond:function(){return!!y().backgroundAnimation},
then:function(){return _.R(_.GS,{data:C,animationName:function(){return C().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.R(_.W,{cond:function(){return!!y().backgroundImage},
then:function(){return _.R(_.W$,{data:function(){return y().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.R(_.W,{cond:function(){return!!y().foregroundAnimation},
then:function(){return _.R(_.GS,{data:e,animationName:function(){return e().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.R(_.W,{cond:function(){return!!y().foregroundImage},
then:function(){return _.R(_.W$,{data:function(){return y().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.R("div",{class:"ytStoriesItemViewModelTopShadow"}),_.R(_.di,{data:function(){return E()}},{storiesStickerLayerViewModel:QVw})),_.R("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.NW({"background-color":function(){return _.Y9(q())}})},_.R("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.R(_.rT,{each:t},function(u){return _.R(K96,{data:function(){return u},
pauseAutoNavigation:p.pauseAutoNavigation})}))))},"qh"),ikR={style:"overlay",
type:"outline"},K96=_.aF(function(p){var y={};return _.R("div",{class:_.ip("ytStoriesItemViewModelActionButton",(y.ytStoriesItemViewModelStretchedActionButton=function(){return p.data().size==="STORIES_BUTTON_SIZE_STRETCH"},y)),
"on:click":_.Ff(p.pauseAutoNavigation)},_.R(_.di,{data:function(){return p.data().button}},{buttonViewModel:function(l){return _.R(_.wZ,{data:l.data,
buttonOverrides:ikR})}}))},"rh");_.bp(_.aF(function(p){var y=function(){var sc;return(sc=p.data().startIndex)!=null?sc:0},l=_.c(_.kS(y)),q=l.next().value,t=l.next().value;
l=_.c(_.nr(!1,void 0,"O8yPf"));var E=l.next().value,e=l.next().value,C=function(){var sc;return(sc=p.data().storyItems)!=null?sc:[]},u={},a=function(){return p.data().dismissButton},m=function(){var sc;
return _.G((sc=_.G(a(),_.xo))==null?void 0:sc.onTap,_.pY)},U=_.sM("div"),b,P,Z=!1,K=function(){var sc;
(sc=b)==null||sc.cancel();b=F(q()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});b.onfinish=function(){F(q()).style.width="100%";var hR=_.G(C()[q()],rSw),Wt,AR;hR!=null&&hR.foregroundAnimation&&((hR==null?0:(Wt=hR.foregroundAnimation)==null?0:Wt.url)||(hR==null?0:(AR=hR.foregroundAnimation)==null?0:AR.payload))||(q()!==C().length-1?(t(q()+1),K()):m()&&_.lp(m()))}},F=function(sc){return U.value.children[sc].children[0]},L=function(){for(var sc=0;sc<q();sc++)F(sc).style.width=
"100%"};
l=_.Ff(function(){Z||(E()?e(!1):(q()===C().length-1&&m()&&_.lp(m()),F(q()).style.width="100%",q()!==C().length-1&&(t(q()+1),K())))});
var T=_.Ff(function(){Z||(E()?e(!1):(F(q()).style.width="0%",q()!==0?t(q()-1):t(q()),K()))}),O=function(){e(!0)},f=function(){F(q()).style.width="100%";
q()!==C().length-1?(t(q()+1),K()):m()&&_.lp(m())},v=_.Ff(function(){Z=!1;
P=setTimeout(function(){e(!0);Z=!0},300)}),z=_.Ff(function(){clearTimeout(P);
Z&&E()&&e(!1)});
_.NA(function(){if(E()){var sc;(sc=b)==null||sc.pause();var hR;(hR=u.lottieEl)==null||hR.pause()}else{var Wt;(Wt=b)==null||Wt.play();var AR;(AR=u.lottieEl)==null||AR.play()}},"DIHTEd");
_.NA(function(){L();q()===y()&&K()},"ze5F8b");
_.xZ(function(){L();K()});
_.TP(function(){clearTimeout(P)});
return _.R("yt-stories-viewer-view-model",{class:_.ip("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.R("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.R("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":T,"on:mousedown":v,"on:mouseup":z,"on:mouseleave":z}),_.R("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":l,"on:mousedown":v,"on:mouseup":z,"on:mouseleave":z})),_.R("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.R(_.di,{data:C},{storiesItemViewModel:function(sc,hR){var Wt=sc.data;return _.R(_.W,{cond:function(){return Math.abs(hR()-q())<=1},
then:function(){var AR={};return _.R("div",{class:_.ip("ytStoriesViewerViewModelStoryItem",(AR.ytStoriesViewerViewModelActiveStoryItem=function(){return hR()===q()},AR))},_.R(wwi,{data:Wt,
pauseAutoNavigation:O,navigateToNextItemOnLottieComplete:f,isVisible:function(){return hR()===q()},
animationRef:u}))}})}})),_.R("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:U},_.R(_.rT,{each:C},function(){return _.R("div",{class:"ytStoriesViewerViewModelProgressBar"},_.R("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.R("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.R(_.di,{data:a},{buttonViewModel:_.wZ})))},"sh"),"yt-stories-viewer-view-model",{props:{data:_.Co}});_.bp(_.aF(function(p){var y=p.data;var l=_.sM("yt-gen-ai-feedback-form-view-model"),q=[];return _.R("yt-gen-ai-feedback-form-view-model",{el:l,class:"ytGenAiFeedbackFormViewModelHost"},_.R(_.CF,{text:function(){return y().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.R("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.R(_.di,{data:function(){return y().feedbackChips}},{toggleButtonViewModel:function(t){var E=t.data;
return _.R(_.fo,{data:E,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(e){var C=E();C=_.G(C,_.BN);C=_.G(C==null?void 0:C.defaultButtonViewModel,_.xo).trackingParams;e?q.push(C):(e=q.indexOf(C),e>-1&&q.splice(e,1))}})}})),_.R(_.CF,{text:function(){return y().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.R("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.R(_.di,{data:function(){return y().submitButton}},{buttonViewModel:function(t){return _.R(_.wZ,{data:t.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){wLd(l.value,q,y().uniqueId)}})}}),_.R(_.di,{data:function(){return y().moreFeedbackButton}},{buttonViewModel:function(t){return _.R(_.wZ,{data:t.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"th"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.Co},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var X4=function(){return _.w.apply(this,arguments)||this};
_.A(X4,_.w);X4.prototype.created=function(){cs6(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(Iod);var p=_.WC().resolve(_.dOO);p&&(p.container=this.ytPopupContainerBehavior);if(p=_.WC().resolve(_.Tu))p.container=this.ytPopupContainerBehavior;if(p=_.WC().resolve(_.xG)){var y=this.ytPopupContainerBehavior;p.containerWasInjected?_.vs(Error("dj")):p.container=y}};
X4.prototype.ensurePopupBelowPlayer=function(p,y){var l=_.WC().resolve(_.RK(_.mm));if(!l||!l.isOnWatch()||!_.$o())return!1;l=l.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.Si().height>l+this.getPopupHeight(p,y)?(p.style.top="auto",p.style.bottom="0px"):(p.style.top=l+"px",p.style.bottom="auto");return!0};
X4.prototype.getPopupHeight=function(p,y){y&&(p.cachedPopupHeight=0);if(!p.cachedPopupHeight){y=0;var l=p.clientHeight,q=window.getComputedStyle(p);y+=parseInt(q.marginTop,10);y+=parseInt(q.marginBottom,10);p.cachedPopupHeight=l+y}return p.cachedPopupHeight};
X4.prototype.getElement=function(p){return document.createElement(p)};
_.H([_.V(jHm.YtPopupContainerBehavior),_.x("design:type",Object)],X4.prototype,"ytPopupContainerBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],X4.prototype,"ytComponentBehavior",void 0);_.H([_.k({disableElementRegistration:!0,is:"ytd-popup-container"})],X4);
_.D(X4,"ytd-popup-container",function(){if(hhd!==void 0)return hhd;var p=document.createElement("template");_.M(p,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-popup-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);return hhd=p},{mode:1});var r59;var SeA={};SeA.YtLogYpcFlowCommandsBehavior=[_.no.YtActionHandlerBehavior,{created:function(){this.logFlowCommandsMap_={"yt-log-ypc-flow-start-command":"handleLogYpcFlowStart_","yt-log-ypc-flow-dismiss-command":"handleLogYpcFlowDismiss_"}},
attached:function(){this.registerActionMap(this.logFlowCommandsMap_)},
detached:function(){this.unregisterActionMap(this.logFlowCommandsMap_)},
handleLogYpcFlowStart_:function(p){_.G(p,YXV)&&(p=_.G(p,YXV))&&(p.serializedTransactionFlowLoggingParams?_.WAl(p.serializedTransactionFlowLoggingParams):p.serializedYpcCancelFlowLoggingParams?(p=p.serializedYpcCancelFlowLoggingParams)&&_.yH("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",p):p.serializedYpcResumeFlowLoggingParams?(p=p.serializedYpcResumeFlowLoggingParams)&&_.yH("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",p):p.serializedYpcPauseFlowLoggingParams?(p=p.serializedYpcPauseFlowLoggingParams)&&
_.yH("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",p):p.serializedYpcRefundFlowLoggingParams?(p=p.serializedYpcRefundFlowLoggingParams)&&df1("YPC_EVENT_TYPE_START",p):p.serializedYpcDeactivateFlowLoggingParams?(p=p.serializedYpcDeactivateFlowLoggingParams)&&_.yH("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",p):p.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(p=p.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.yH("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",p))},
handleLogYpcFlowDismiss_:function(p){_.G(p,zOu)&&(p=_.G(p,zOu),p.serializedTransactionFlowLoggingParams?_.aq6(p.serializedTransactionFlowLoggingParams):p.serializedYpcCancelFlowLoggingParams?(p=p.serializedYpcCancelFlowLoggingParams)&&_.yH("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",p):p.serializedYpcResumeFlowLoggingParams?(p=p.serializedYpcResumeFlowLoggingParams)&&_.yH("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",p):p.serializedYpcPauseFlowLoggingParams?(p=
p.serializedYpcPauseFlowLoggingParams)&&_.yH("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",p):p.serializedYpcRefundFlowLoggingParams&&(p=p.serializedYpcRefundFlowLoggingParams)&&df1("YPC_EVENT_TYPE_CANCEL",p))}}];var F9d={};F9d.YtCancelRecurrenceBehavior=[_.sd.YtComponentBehavior,_.DzV,{attached:function(){var p=this;voO(this,function(y,l){return p.ypcCancelRecurrenceHandler(y,l)})},
ypcCancelRecurrenceHandler:function(p,y){var l=this;if(!y||!y.ypcCancelRecurrenceEndpoint)return!1;if(!y.ypcCancelRecurrenceEndpoint.params)return _.zi(Error("wl")),!0;_.qR(this.hostElement);var q=_.Js.instance,t=_.WC().resolve(_.RK(_.vI));q&&_.cN(q,y)?_.eo(q,y).then(function(E){l.ypcCancelRecurrenceSuccess_(p,y,{data:E})},function(E){l.ypcCancelRecurrenceFailure_(p,y,E)}).thenCatch(function(){_.zi(Error("xl"))}):t?t.requestDataForServiceEndpoint(y).then(function(E){l.ypcCancelRecurrenceSuccess_(p,
y,E)},function(E){l.ypcCancelRecurrenceFailure_(p,y,E)}).thenCatch(function(){_.zi(Error("xl"))}):_.zi(Error("yl"));
return!0},
ypcCancelRecurrenceSuccess_:function(p,y,l){_.sP(this.hostElement);l.data||(l={data:l});l.data&&l.data.actions&&_.Gf(this.hostElement,l.data.actions,this.hostElement);l.data.messageRenderer?ocd(y.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(y=y.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.yH("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",y);_.Ub(p,"yt-service-request-completed",l)},
ypcCancelRecurrenceFailure_:function(p,y,l){_.sP(this.hostElement);ocd(y.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Ub(p,"yt-service-request-error",{error:l,params:[p,y]})}}];var L99=function(p,y){_.p8.call(this,y)};
_.A(L99,gzV);var kGw={};kGw.YtCompleteTransactionBehavior=[_.sd.YtComponentBehavior,_.DzV,{attached:function(){var p=this;voO(this,function(y,l){return p.ypcCompleteTransactionHandler(y,l)})},
completeTransaction:function(p,y){var l=this;y={payments_payload:window.btoa(y.integratorData),buybucket_params:p.data.buybucketParams,offer_params:p.data.offerParams};var q=_.WC().resolve(_.vI),t=p.data.completeTransactionEndpoint,E=this.get("ypcCompleteTransactionEndpoint.actions",t);E&&_.Gf(this.hostElement,E,this.hostElement);return(E=_.Js.instance)&&_.cN(E,t)?_.eo(E,t,y).then(function(e){return!e||(e==null?0:e.error)?(e=l.get("data.serializedTransactionFlowLoggingParams",p),_.vL(new PB("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
e))):{data:e}}).then(function(e){return l.handleCompleteTransactionSuccess_(e,p)},function(){return l.handleCompleteTransactionFailure_(p)}):q.requestDataForServiceEndpoint(t,y).then(function(e){return l.handleCompleteTransactionSuccess_(e,p)},function(){return l.handleCompleteTransactionFailure_(p)})},
handleCompleteTransactionSuccess_:function(p,y){p.data||(p={data:p});if(p.data.messageRenderer)return _.vL(new L99(p.data.messageRenderer));if(p.data.trackingParams){var l=_.B2(),q=_.xc();l&&q&&_.pW(l,q,_.Tp(p.data.trackingParams))}y=this.get("data.serializedTransactionFlowLoggingParams",y);Oxd(y);return _.PW(p)},
handleCompleteTransactionFailure_:function(p){p=this.get("data.serializedTransactionFlowLoggingParams",p);_.tx("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",p);return _.vL(new PB("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",p))},
ypcCompleteTransactionHandler:function(p,y){var l=this;if(!y.ypcCompleteTransactionEndpoint)return!1;if(!y.ypcCompleteTransactionEndpoint.transactionParams)return _.zi(Error("zl")),!0;y.ypcCompleteTransactionEndpoint&&y.ypcCompleteTransactionEndpoint.gtmData&&_.Xt(y.ypcCompleteTransactionEndpoint.gtmData);var q=_.WC().resolve(_.RK(_.vI));if(q){_.qR(this.hostElement);var t=_.Js.instance;t&&_.cN(t,y)?_.eo(t,y).then(function(E){return!E||(E==null?0:E.error)?(E=l.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
y),_.vL(new PB("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",E))):{data:E}}).then(function(E){_.Ub(p,"yt-service-request-completed");
l.ypcCompleteTransactionSuccess_(y,E)},function(){return l.ypcCompleteTransactionFailure_(y)}):q.requestDataForServiceEndpoint(y).then(function(E){_.Ub(p,"yt-service-request-completed");
l.ypcCompleteTransactionSuccess_(y,E)},function(){return l.ypcCompleteTransactionFailure_(y)})}return!0},
ypcCompleteTransactionSuccess_:function(p,y){_.sP(this.hostElement);y.data||(y={data:y});_.$w(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);y.data.messageRenderer||y.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(p):(_.Xt('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",p));y.data.actions&&(p=Jxd(y.data.actions),y=cxV(y.data.actions),p.length&&_.ny(this.hostElement,
p),y.length&&_.Gf(this.hostElement,y,this.hostElement))},
ypcCompleteTransactionFailure_:function(p){_.sP(this.hostElement);_.$w(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",p,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(p,y,l){if(y=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",y))y={serializedTransactionFlowLoggingParams:y},l&&(y.errorType=l),_.TX(p,y),_.xn()}}];var NGu={};NGu.YtEndpointHandlerWithYpcBehavior=[_.DzV,_.no.YtActionHandlerBehavior,[{openWalletDialog:function(p,y,l,q,t,E,e){var C=this,u=_.hs();y=y.replace(/-/g,"+").replace(/_/g,"/");var a=_.w$().get("hl");_.oMo(_.m8(_.Es),y,u.resolve,t,function(m){E&&E();u.reject(m)},a,function(m){return C.onServerBackendAnalyticEvent_(p,l,m)},this.onDialogClose_.bind(this),q,e);
return u.promise},
openFixFlowDialog:function(p,y,l,q){p=p.replace(/-/g,"+").replace(/_/g,"/");_.m8(_.Es).openFixFlowDialog(p,y,l,q)},
onDialogClose_:function(){_.$w(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(p,y,l){_.Ub(p,"yt-commerce-action-init-done");y&&_.ny(this.hostElement,[y,{backend_analytics:l}])}}],
_.Ss.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(p,y){p=this.get("data.nativeFlowEndpoint",y);y=this.get("data.fallbackEndpoint",y);p?_.ny(this.hostElement,[p]):y&&_.Ub(this.hostElement,"yt-navigate",{endpoint:y})}}],
F9d.YtCancelRecurrenceBehavior,kGw.YtCompleteTransactionBehavior,{listeners:{"yt-service-request-sent":"onServiceRequestSent_","yt-service-request-completed":"onGetCartServiceRequestCompleted_","yt-service-request-error":"onServiceRequestError_"},created:function(){this.buyFlowActionMap_={};this.ypcRegisterActionMapJobId_=0},
attached:function(){var p=this;voO(this,function(y,l,q){return p.handleYPCEndpoint(y,l,q)});
this.ypcRegisterActionMapJobId_=_.rJ(_.TR,function(){p.registerActionMap(p.buyFlowActionMap_)})},
detached:function(){var p=this;_.TR.cancelJob(this.ypcRegisterActionMapJobId_);_.rJ(_.TR,function(){p.unregisterActionMap(p.buyFlowActionMap_)})},
handleYPCEndpoint:function(p,y,l){var q=y.ypcGetCartEndpoint;if(q){_.BW("commerce_transaction");var t=q.gtmId;t&&_.vF(t);(q=q.gtmData)&&_.Xt(q)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",y)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(p,y),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",y)!=null?(this.handleYPCFixInstrumentEndpoint_(p,y),!0):y.ypcPauseSubscriptionCommand?(HlT(this.hostElement,p,y,l),
!0):y.ypcResumeSubscriptionCommand?(BWO(this.hostElement,p,y),!0):y.getPaymentInstrumentsParamsCommand?(kpL(this.hostElement,p,y),!0):y.ypcHandleTransactionEndpoint?(Fcd(this.hostElement,p,y,l),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(p,y){var l=this;_.fy("ttcr",void 0,"commerce_transaction");y=y.ypcGetCartEndpoint;var q=y.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,t=q.encryptedPurchaseParams,E=q.serializedTransactionFlowLoggingParams,e=q.serializedPaymentsClientParams,C=this.createGetCartResponseFromParams_(q,y.offerParams,E);this.changeButtonState(p,!0);_.DO(this.openWalletDialog(p,t,q.ypcLogWalletAnalyticDataEndpoint,E,function(){l.changeButtonState(p,!1)},function(){l.changeButtonState(p,
!1)},e).then(function(u){return l.handleBuyFlowCompleteCallback_(p,C,u)},function(){return l.handleOnLoadError(C)}).then(function(u){return void l.handlePostPurchaseSuccess_(p,C,u)},function(u){return void l.handlePostPurchaseError_(u)}),function(){l.changeButtonState(p,!1);
p instanceof Element&&_.Ub(p,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(p,y,l){var q=p.completeTransactionEndpoint,t=p.handleTransactionEndpoint;y={data:{offerParams:window.btoa(y),serializedTransactionFlowLoggingParams:l}};t?y.data.handleTransactionEndpoint=t:y.data.completeTransactionEndpoint=q;p.onCartDismissCommand&&(y.data.onCartDismissCommand=p.onCartDismissCommand);return y},
onGetCartServiceRequestCompleted_:function(p,y){var l=this,q=p.target;if(y&&y.data&&y.data.messageRenderer)_.sP(this.hostElement),this.handleMessageRenderer_(y.data.messageRenderer),this.changeButtonState(q,!1);else{var t=this.get("data.encryptedPurchaseParams",y),E=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",y),e=this.get("data.ypcLogWalletAnalyticDataEndpoint",y),C=this.get("data.serializedPaymentsClientParams",y),u=this.getLoggingParams_(y);if(u||t||E)p.stopPropagation(),_.fy("ttcr",
void 0,"commerce_transaction"),t||_.sP(this.hostElement),this.changeButtonState(q,!1),E?_.$w(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.OY("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:E}}},this]):t&&(this.changeButtonState(q,!0),p=null,p=this.openWalletDialog(q,t,e,u,function(){_.sP(l.hostElement);l.changeButtonState(q,!1)},function(){_.sP(l.hostElement);
l.changeButtonState(q,!1)},C),_.DO(p.then(function(a){return l.handleBuyFlowCompleteCallback_(q,y,a)},function(){return l.handleOnLoadError(y)}).then(function(a){return l.handlePostPurchaseSuccess_(q,y,a)},function(a){return l.handlePostPurchaseError_(a)}),function(){l.changeButtonState(q,!1);
_.Ub(q,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(p,y){y&&y.endpoint&&y.endpoint.ypcGetCartEndpoint&&!y.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",y.endpoint.ypcGetCartEndpoint)&&_.Gf(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",y.endpoint.ypcGetCartEndpoint)],p.target),_.qR(this.hostElement),this.changeButtonState(p.target,!0))},
onServiceRequestError_:function(p,y){if(y&&y.params&&y.params.length){y=_.c(y.params);for(var l=y.next();!l.done;l=y.next())if((l=l.value)&&l.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",l.ypcGetCartEndpoint)&&_.Gf(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",l.ypcGetCartEndpoint)],p.target);_.sP(this.hostElement);this.changeButtonState(p.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(p,y,l){var q=l.integratorData;return q==null||q===""||l.error!=null?(q=this.getLoggingParams_(y),String(l.error)==="-1"?(y.data.onCartDismissCommand&&_.Gf(this.hostElement,[y.data.onCartDismissCommand],p),_.vL(new PB("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",q,!0))):_.vL(new PB("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",q))):y.data.handleTransactionEndpoint?Lc7(this.hostElement,y.data.handleTransactionEndpoint,{payments_payload:q,funds_guarantee_callback_client_data:l.integratorClientCallbackData}):
this.completeTransaction(y,l)},
handlePostPurchaseSuccess_:function(p,y,l){y=l.data;var q=!1,t,E;if(y&&((t=y.command)==null?0:(E=t.commandExecutorCommand)==null?0:E.commands)){var e,C;t=(e=y.command)==null?void 0:(C=e.commandExecutorCommand)==null?void 0:C.commands;for(e=0;e<t.length;e++)if(_.G(t[e],_.PQr)){q=!0;break}}q||(y&&y.gtmDatas&&y.gtmDatas.length?_.Xt(y.gtmDatas[0]):_.Xt('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));l.data&&l.data.actions&&(y=Jxd(l.data.actions),l=cxV(l.data.actions),y.length&&
_.ny(this.hostElement,y),l.length&&_.Gf(this.hostElement,l,p))},
handlePostPurchaseError_:function(p){p&&p.payload&&p.payload.isUserDismiss||_.Bs(Error("Bl"))},
handleOnLoadError:function(p){p=this.getLoggingParams_(p);return _.vL(new PB("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",p))},
getLoggingParams_:function(p){return this.get("data.serializedTransactionFlowLoggingParams",p)},
handleMessageRenderer_:function(p){var y=_.vu(p,"renderer"),l=_.OY("openPopupConfig");y==="confirmDialogRenderer"&&l&&_.$w(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:l.popupTypeMap[y],popup:p}},this])},
handleYPCFixInstrumentEndpoint_:function(p,y){var l=this,q=y.ypcFixInstrumentEndpoint;y=q.encryptedFixInstrumentParameters;this.logFixFopEvent_(q,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(p,!0);this.openFixFlowDialog(y,function(t,E){l.onFixFlowCompleteCallback_(q,t,E)},function(){return l.changeButtonState(p,!1)},function(){l.changeButtonState(p,!1);
l.logFixFopEvent_(q,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(p,y,l){var q=_.I4("payments.business.integration.scenario.FixInstrument");if(y==q.IntegratorCallbackType.ON_COMPLETE){y="FIX_FOP_EVENT_TYPE_CANCEL";var t=null;l.error!=null?l.error!=q.OnCompleteCallbackError.USER_CANCELLED&&(_.Gf(this.hostElement,[p.errorAction],this.hostElement),y="FIX_FOP_EVENT_TYPE_FAILURE",t="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Gf(this.hostElement,[p.successAction],this.hostElement),y="FIX_FOP_EVENT_TYPE_SUCCESS");_.Gf(this.hostElement,[p.onFinishAction],
this.hostElement);this.logFixFopEvent_(p,y,t)}},
logFixFopEvent_:function(p,y,l){(p=p.serializedFixFopLoggingParams)?(y={eventType:y,serializedFixFopLoggingParams:p},l!=null&&(y.errorType=l),_.TX("fixFopFlow",y),_.xn()):_.Bs(Error("Cl"))},
changeButtonState:function(p,y){_.n("enable_ypc_spinners")&&p&&(p.is==="yt-button-renderer"||p.is==="ytd-button-renderer")&&(p.disabled=y)}}];var DkR=function(p){this.JSC$32049_clientRoot=p;this.feedbackCollectorActionMap={"yt-help-dialog-requested":vgu,"yt-feedback-dialog-requested":fSA,"yt-signal-action-help":XLi,"yt-signal-action-send-feedback":de9,"yt-send-feedback-action":og1,"yt-user-feedback-endpoint":zUw};_.y2(_.pt.getInstance(),this.feedbackCollectorActionMap,this.JSC$32049_clientRoot)},HkT;var TGw=function(p){this.JSC$32054_clientRoot=p;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":YUO.bind(null,this.JSC$32054_clientRoot),"yt-signal-action-delete-all-downloads":p$d,"yt-signal-action-delete-download":ybu,"yt-signal-action-delete-playlist-download":q5A,"yt-signal-action-install-pwa":ex9,"yt-signal-action-refresh-downloads":Jb9,"yt-offline-video-endpoint":CpV,"yt-offline-playlist-endpoint":RxO,"yt-update-local-app-setting-command":aRi,"yt-offline-orchestration-action-command":UWw,
"yt-signal-action-undo-delete-download":twV,"yt-local-watch-history-command":bY6};_.y2(_.pt.getInstance(),this.downloadManagerActionMap,this.JSC$32054_clientRoot);_.x9.instance=new _.x9},xk7;var dQ=function(){var p=_.w.apply(this,arguments)||this;p.actionMap={"yt-get-mdx-status":"handleGetMdxStatus_","yt-add-to-remote-queue-action":"handleAddToQueueAction_","yt-clear-remote-queue-action":"handleClearQueueAction_","yt-insert-in-remote-queue-action":"handleInsertInQueueAction_","yt-remove-from-remote-queue-action":"handleRemoveFromQueueAction_"};p.remoteApi_=null;return p};
_.A(dQ,_.w);_.J=dQ.prototype;
_.J.ready=function(){_.n("polymer_enable_mdx")&&(p8u({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.n("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.n("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.n("enable_cast_short_lived_lounge_token")}),_.UL("yt-remote-connection-change",this.handleConnectionChange_,this),_.UL("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=JFR())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.J.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.J.handleConnectionChange_=function(p){(this.mdxConnected=p)?(p=qWd(),!p&&v91()&&XIR()&&(p={key:"cast-selector-receiver",name:XIR()}),p=p.name):p=null;this.receiverName=p;_.er(this.remoteApi_);(this.remoteApi_=JFR())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.J.handleReceiverAvailabilityChange_=function(){var p=loO();v91()&&_.Qh("yt-remote-cast-available")&&p.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=p.length>0};
_.J.handleRemoteQueueChange_=function(){var p=this.currentVideoId_,y=this.currentListId_,l=VA(this.remoteApi_);this.currentVideoId_=l.videoId;this.currentListId_=l.listId;this.currentVideoId_&&_.$w(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.n("polymer_enable_mdx_queue")?this.currentListId_:null,p,y])};
_.J.handleAddToQueueAction_=function(p){p=_.G(p,SXu);this.remoteApi_&&(p.videoId?this.remoteApi_.addVideo(p.videoId):p.playlistId&&this.remoteApi_.addPlaylist(p.playlistId))};
_.J.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.J.handleInsertInQueueAction_=function(p){p=_.G(p,FZA);this.remoteApi_&&p.videoId&&this.remoteApi_.JSC$19609_insertVideo(p.videoId)};
_.J.handleRemoveFromQueueAction_=function(p){p=_.G(p,LZd);this.remoteApi_&&p.videoId&&this.remoteApi_.JSC$19609_removeVideo(p.videoId)};
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],dQ.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q(),_.x("design:type",Object)],dQ.prototype,"appId",void 0);_.H([_.Q(),_.x("design:type",Boolean)],dQ.prototype,"mdxConnected",void 0);_.H([_.Q(),_.x("design:type",Boolean)],dQ.prototype,"receiverAvailable",void 0);_.H([_.Q(),_.x("design:type",Object)],dQ.prototype,"receiverName",void 0);_.H([_.Q(),_.x("design:type",Object)],dQ.prototype,"currentVideoId_",void 0);
_.H([_.Q(),_.x("design:type",Object)],dQ.prototype,"currentListId_",void 0);_.H([_.z9({is:"yt-mdx-manager",disableElementRegistration:!0})],dQ);_.D(dQ,"yt-mdx-manager",void 0,{mode:2});var BGV;var fjw;var Oq=function(){var p=_.w.apply(this,arguments)||this;p.APP_IDS={ytr:3,ytm:5};p.JSC$20849_timeoutId_=0;p.actionMap={"yt-open-create-family-dialog":"open"};return p};
_.A(Oq,_.w);_.J=Oq.prototype;_.J.created=function(){cs6(2200)};
_.J.detached=function(){this.observer_&&this.observer_.disconnect()};
_.J.open=function(p,y){var l=this,q=p.serializedYpcFamilyCreateLoggingParams;this.JSC$20849_timeoutId_=setTimeout(this.abort_.bind(this,p.postFlowErrorEndpoint,q),3E4);y&&(this.onReadyCallback_=y);var t=_.jR(this.hostElement).querySelector("#unicorn-iframe");q&&q&&X26("ypcFamilyCreateFlowStarted",q);_.lZR("family_creation",function(){var E=_.I4("gapi.family_creation.render");_.I4("gapi.config.update")("iframes/family_creation/url",l.getFamilyCreationUrlWithUnicornParams_());var e=3;p.appId&&p.appId in
l.APP_IDS&&(e=l.APP_IDS[p.appId]);e={authUser:_.OY("SESSION_INDEX")||0,clientId:e,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.OY("HL"),initialflow:[4,5,6,7],m:l.isMobile?1:0,onFlowComplete:l.onUnicornFlowComplete_.bind(l,p.postFlowSuccessEndpoint,q),onError:l.onUnicornFlowError_.bind(l,p.postFlowErrorEndpoint,q),onReady:l.onUnicornFlowReady_.bind(l,p.referencePcidParams)};E(t,e)})};
_.J.close=function(){_.jR(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.J.onUnicornFlowComplete_=function(p,y){this.close();y&&y&&X26("ypcFamilyCreateFlowSucceeded",y);_.Ub(this.hostElement,"yt-navigate",{endpoint:p})};
_.J.onUnicornFlowError_=function(p,y){this.close();y&&X26("ypcFamilyCreateFlowCancelled",y);_.Ub(this.hostElement,"yt-navigate",{endpoint:p})};
_.J.onUnicornFlowReady_=function(p){var y=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();p&&_.I4("gapi.family_creation.setConfig")(0,p);this.observer_=new MutationObserver(function(){_.jR(y.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.jR(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.jR(this.hostElement).querySelector("#dialog").open()};
_.J.getFamilyCreationUrlWithUnicornParams_=function(){return _.OY("YTR_FAMILY_CREATION_URL")};
_.J.getCurrentUrl_=function(){return document.location.href};
_.J.abort_=function(p,y){this.clearTimeout_();this.onUnicornFlowError_(p,y)};
_.J.clearTimeout_=function(){clearTimeout(this.JSC$20849_timeoutId_)};
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],Oq.prototype,"ytActionHandlerBehavior",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],Oq.prototype,"isMobile",void 0);_.H([_.Q(),_.x("design:type",Object)],Oq.prototype,"onReadyCallback_",void 0);_.H([_.Q(),_.x("design:type",Object)],Oq.prototype,"observer_",void 0);_.H([_.z9({is:"yt-create-family-dialog",disableElementRegistration:!0})],Oq);
_.D(Oq,"yt-create-family-dialog",function(){if(fjw===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-create-family-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_create_family_dialog.yt.create.family.dialog.css.js--\x3e<tp-yt-paper-dialog id="dialog" with-backdrop="" class="style-scope yt-create-family-dialog">\n  <div id="unicorn-iframe" class="style-scope yt-create-family-dialog"></div>\n</tp-yt-paper-dialog>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);var y=p.content,l=y.insertBefore;BGV===void 0&&(BGV=document.createElement("template"));var q=BGV;l.call(y,q.content.cloneNode(!0),p.content.firstChild);fjw=p}p=fjw;return p},{mode:2});var vuV;var Xwd;var o_=function(){var p=_.w.apply(this,arguments)||this;p.STEP=1;p.BLOCK_ON=80;p.MIN_PROGESS=0;p.MAX_PROGESS=100;return p};
_.A(o_,_.w);_.J=o_.prototype;_.J.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.J.ready=function(){this.progress_=this.MIN_PROGESS;this.hostElement.hidden=!0;this.hostElement.setAttribute("aria-valuemin",String(this.MIN_PROGESS));this.hostElement.setAttribute("aria-valuemax",String(this.MAX_PROGESS));_.WC().addProvider({provide:LSA,useValue:this})};
_.J.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.J.finish=function(){var p=this;this.progress=this.MAX_PROGESS;nS6(function(){p.progress==p.MAX_PROGESS&&(p.hostElement.hidden=!0)})};
_.J.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Jh.Object.defineProperties(o_.prototype,{progress:{configurable:!0,enumerable:!0,set:function(p){this.progress_=p;var y="scaleX("+p/this.MAX_PROGESS+")",l=_.jR(this.hostElement).querySelector("#progress").style;l.transform=y;l.webkitTransform=y;this.hostElement.setAttribute("aria-valuenow",String(p))},
get:function(){return this.progress_}}});
_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],o_.prototype,"ytComponentBehavior",void 0);_.H([_.z9({is:"yt-page-navigation-progress",disableElementRegistration:!0})],o_);
_.D(o_,"yt-page-navigation-progress",function(){if(Xwd===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-page-navigation-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_page_navigation_progress.yt.page.navigation.progress.css.js--\x3e<div id="progress" class="style-scope yt-page-navigation-progress"></div>\n');p.content.insertBefore(_.B().content.cloneNode(!0),
p.content.firstChild);var y=p.content,l=y.insertBefore;vuV===void 0&&(vuV=document.createElement("template"));var q=vuV;l.call(y,q.content.cloneNode(!0),p.content.firstChild);Xwd=p}p=Xwd;return p},{mode:2});var dk7={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"},Okd={"font-size":"12px","font-style":"italic"},ou1={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.ZYT=function(){return _.h(function(p){_.rR(p)})};var zCu=_.aF(function(p){var y=function(){return p.data().subtext},l={};
return _.R("snackbar-view-model",{class:_.ip("snackbarViewModelHost",p.className)},_.R("div",{class:_.ip("snackbarViewModelEngagementBarWrapper",p.className)},_.R(_.W,{cond:function(){return p.data().image},
then:function(q){return _.R(_.W$,{data:q,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.R(_.W,{cond:function(){return p.data().imageContent},
then:function(){return _.R("div",{class:"snackbarViewModelAvatarContainer"},_.R(_.di,{data:function(){return p.data().imageContent}},{decoratedAvatarViewModel:_.X9}))}}),_.R("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.R("div",{class:_.ip((l.snackbarViewModelTitle=!0,l.snackbarViewModelTitleWithSubtext=y,l))},_.R(_.CF,{text:function(){return p.data().text}})),_.R(_.W,{cond:y,
then:function(){return _.R("div",{class:"snackbarViewModelSubtext"},_.R(_.CF,{text:function(){return y()}}))}})),_.R(_.W,{cond:function(){return p.data().buttons},
then:function(){return _.R("div",{class:"snackbarViewModelButtonClassWrapper"},_.R(_.di,{data:function(){return p.data().buttons}},{buttonViewModel:function(q){return _.R(_.wZ,{data:q.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:p.target})}}))}})))},"uh");_.bp(_.aF(function(){function p(T,O,f){Z(T);F(f);b("in");m(!0);y(T,O);e=setTimeout(function(){l()},O)}
function y(T,O){var f,v=(f=T.text)==null?void 0:f.content;T=_.IW(T.rendererContext);v&&(O={label:v,command:T,durationMs:O},_.WC().resolve(_.r2).enqueue(O))}
function l(T){b("out");T&&clearTimeout(e)}
function q(){l(!0)}
function t(T){if(T){var O=T.snackbarViewModel,f=T.durationMs,v=T.target;f||(f=3E3);O&&(T=_.WC().resolve(_.RK(_.g2)))&&T.enqueue({isOpened:a,open:function(){p(O,f,v)},
close:l},0)}}
var E=_.tK("snackbar-container"),e=void 0,C=_.c(_.nr(!1,void 0,"jJ4tBf")),u=C.next().value;C=C.next().value;var a=u,m=C;u=_.c(_.nr("out",void 0,"M6Rbpb"));var U=u.next().value,b=u.next().value;u=_.c(_.nr(void 0,void 0,"aFswib"));var P=u.next().value,Z=u.next().value;u=_.c(_.nr(void 0,void 0,"mlWWhb"));var K=u.next().value,F=u.next().value,L=_.Ff(function(){if(U()==="out"){m(!1);Z(void 0);F(void 0);var T=_.WC().resolve(_.RK(_.g2));T&&nFi(T,0)}});
_.xZ(function(){var T=_.WC().resolve(_.RK(_.jgw));T&&(T.showSnackbarFn=t,T.closeSnackbarFn=q)});
return _.R("snackbar-container",{class:"ytSnackbarContainerHost",el:E},_.R(_.W,{cond:function(){return a()&&!!P()},
then:function(){var T={};return _.R("div",{class:_.ip("ytSnackbarContainerSnackbarContainer",(T.ytSnackbarContainerMobile=!1,T.ytSnackbarContainerPivotBar=function(){var O;return!((O=_.WC().resolve(_.RK(_.b8d)))==null||!O())},T.ytSnackbarContainerOpened=function(){return a()&&U()==="in"},T.ytSnackbarContainerClosed=function(){return a()&&U()==="out"},T)),
"on:animationend":L},_.R(zCu,{data:function(){return P()},
target:function(){return K()}}))}}))},"vh"),"snackbar-container");_.bp(_.YhO,"yt-tooltip");_.bp(_.aF(function(){var p=_.yS(_.jE8);return _.R("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var y;return(y=p())==null?void 0:y.announcement})},"wh"),"yt-ephemeral-actions");var BDO=new Map;var MWu=function(p,y){var l=this;this.handleError=p;this.logEventInternal=y;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){l.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
MWu.prototype.logError=function(p){this.handleError(p)};
MWu.prototype.logEvent=function(p,y){switch(p){case "IDB_DATA_CORRUPTED":_.n("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",y);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",y);break;case "IS_SUPPORTED_COMPLETED":_.n("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",y);break;case "QUOTA_EXCEEDED":Yem(this,y);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",y);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":p=Object.assign({},y,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",p)}};
var Yem=function(p,y){_.L$.getInstance().estimate().then(function(l){l=Object.assign({},y,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:vS7(l==null?void 0:l.usage),deviceStorageQuotaMbytes:vS7(l==null?void 0:l.quota)});p.logEventInternal("idbQuotaExceeded",l)})};var zV=function(){var p=_.w.apply(this,arguments)||this;p.tabGesturesIsActive=!1;p.deprecateFullerscreenUi=_.n("web_watch_fullerscreen_deprecation_ui");p.hasDelegation=!1;p.darkerDarkTheme=_.n("web_darker_dark_theme");p.isFrostedGlassInitialized=!1;p.frostedGlassExp=_.n("web_frosted_glass");p.mastheadHiddenFocusWithinKillswitch=_.n("web_masthead_hidden_focus_within_killswitch");p.clientOnlyWizTooltipsEnabled=_.n("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");p.scrollAtTop=
!0;p.guideScrollTop=0;p.isTheaterModeSession=_.o4("START_IN_THEATER_MODE");p.iMaxTheaterMode=_.n("web_watch_imax_theater_mode");p.isFullWindowSession=_.o4("START_IN_FULL_WINDOW_MODE");p.hasCreateFamilyDialog=!1;p.mastheadHeight=56;p.networkStatusManager=new _.lG;p.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction","yt-navigate-action":"onYtNavigateAction",
"yt-navigate-home-action":"onYtNavigateHomeAction","yt-player-fullscreen":"onPlayerFullscreen","yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleCommandWithCommandHandler","yt-select-language-command":"handleSelectLanguageCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications",
"yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction","yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation",
"yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage","yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleCommandWithCommandHandler","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints","yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand",
"yt-log-flow-logging-event-command":"logFlowLoggingEventCommand","yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};p.dynamicActionMap={"yt-run-attestation-command":function(y){var l=_.nU$.instance,q=_.G(y,_.VzP);return q?_.n("use_rta_manager_for_async")&&
CXw()?YZA(l,q,y.clickTrackingParams):zWA(l,q,y.clickTrackingParams):_.vL(Error("mi"))}};
p.isFrostedGlassDisabled=!1;p.isChannelOrPlaylistPage=!1;return p};
_.A(zV,_.w);_.J=zV.prototype;_.J.created=function(){var p=_.WC();_.n("kevlar_clear_duplicate_pref_cookie")&&_.rJ(_.TR,function(){var y=_.Q$.get("PREF");y&&!/f\d=/.test(y)&&(y=_.$h("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=y?"PREF=null;domain="+y+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.n("gzip_gel_with_worker")&&_.mHt();_.n("jspb_serialize_with_worker")&&Ll1();_.n("web_worker_availability_check")&&fR1();_.n("nwl_init_killswitch")||SMi().then(function(){_.TR.addLowPriorityJob(Ia1)});
this.pageManagerAttachedPromise=_.hs();this.ytdAppBehavior.loadDepsPromise=_.Ni([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.hy(this.onThrottledScroll,200,this);_.n("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);VW9();MPu=!!_.I4("ytappsettings.initialized");iO=_.I4("ytappsettings.previousValue");hod=_.I4("ytappsettings.previousSnapshotTime");MPu||(MPu=!0,CLL());tRd();E8d();_.dT("DEFERRED_DETACH",
_.n("kevlar_tuner_should_defer_detach"));_.dT("REUSE_COMPONENTS",!0);_.dT("STAMPER_STABLE_LIST",!0);_.dT("SCHEDULED_LAZY_LIST",!0);_.dT("openPopupConfig",YWT);_.dT("useClickHandler",!0);_.n("kevlar_shell_cleanup")&&_.TR.addLowPriorityJob($fm.bind(this,_.l_.caches));_.o4("IS_SHELL_LOAD")&&_.xw({shellStartupDurationMs:Math.round((0,_.uM)()-_.kw())});QxV(this.networkStatusManager);_.n("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",GTi(dk7)),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!",
GTi(Okd)),console.log("%cVisit http://go/join-youtube-web to apply today.",GTi(ou1)));_.bhA(p.resolve(_.w2),1E3)};
_.J.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var p=XK1();p&&!_.n("external_fullscreen_killswitch")&&document.addEventListener(p,this.setFullscreen.bind(this));(p=window.matchMedia("(prefers-color-scheme: dark)"))&&p.addEventListener&&p.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.J.attached=function(){var p=this;_.qB().processSignal("ci");_.n("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.Hic?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.QG(_.nf_(),"SUCCESS");this.updateIconSet();_.aJ(this.guideInnerContent,!1);_.T7().initVisibilityObserver();this.guideService.guideElement=this.guide;var y=document.createElement("ytd-miniplayer"),l=_.jR(this.hostElement).querySelector("#content");
_.jR(this.hostElement).insertBefore(y,l);_.qB().processSignal("ma");_.WC().resolve(_.IA).init(y);_.o4("IS_SHELL_LOAD")&&(l=document.createElement("ytd-network-status-banner"),_.jR(this.hostElement).insertBefore(l,y));_.n("kevlar_right_click_on_lockups")&&_.tT._onCaptureClick&&document.addEventListener("contextmenu",_.tT._onCaptureClick.bind(_.tT),!0);var q=function(){var t=_.Ud("yt-page-navigation-progress");_.jR(p.hostElement).appendChild(t)};
setTimeout(function(){_.qB().parkOrScheduleJob(q,0,"eocs",16)},0);
_.n("service_worker_push_enabled")&&_.rJ(_.TR,vci);_.y2(_.pt.getInstance(),this.dynamicActionMap,this.hostElement);_.Ub(this.hostElement,"ytd-app-attached");_.qB().processSignal("aa");eoA(this.hostElement);_.e0("gapi.load",_.lZR);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.rJ(_.TR,
function(){var t=document.createElement("ytd-video-preview");_.jR(_.jR(p.hostElement).querySelector("#video-preview")).appendChild(t)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.rJ(_.TR,function(){Mww();p.registerWithViewTransitionManager()});
if(_.T5()&&this.isAppDarkTheme()!==_.Da())this.onDarkModeToggledAction();else y=_.HI()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==y&&(_.n("enable_dark_theme_only_on_shorts")?_.lt(_.n("enable_dark_theme_only_on_shorts_control")?window.location.href:_.EC(window.location.href,{theme:"dark"})):_.vs(new _.SM("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(lq7=new yV7(this.hostElement)),xk7=new TGw(this.hostElement),HkT=new DkR(this.hostElement),n$V=new bdO(this.hostElement)};
_.J.getThemeSettingsToLog=function(){var p=_.HI()==="USER_INTERFACE_THEME_DARK";p=_.T5()?_.Da()?"os-dark":"os-light":p?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:p,cookiesEnabled:_.ws()}};
_.J.detached=function(){_.mO(this.guideInnerContent);_.TR.cancelJob(QY);QY=0;_.TR.cancelJob(wk);wk=0;_.QFc(chm);chm.length=0;tYm=_.d4o=null;_.T7().dispose();_.n("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.lX(_.pt.getInstance(),lq7.playlistHandlerActionMap,lq7.JSC$31748_clientRoot);_.lX(_.pt.getInstance(),xk7.downloadManagerActionMap,xk7.JSC$32054_clientRoot);_.lX(_.pt.getInstance(),HkT.feedbackCollectorActionMap,HkT.JSC$32049_clientRoot);
for(var p=_.c(n$V.eventListeners),y=p.next();!y.done;y=p.next()){var l=_.c(y.value);y=l.next().value;l=l.next().value;l=_.c(l);for(var q=l.next();!q.done;q=l.next()){var t=_.c(q.value);q=t.next().value;t=t.next().value;y.removeEventListener(q,t)}}_.lX(_.pt.getInstance(),n$V.autonavPauseActionMap,n$V.JSC$19792_clientRoot)};
_.J.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.w$().getFlag(186)};
_.J.computeIsInlinePreviewEnabled=function(p,y,l){return!l&&_.mMm({miniplayerIsActive:p,miniplayerPlaybackState:y})};
_.J.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.$y({type:"SET_FROSTED_GLASS_MODE",payload:!_.n("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.J.computeIsFrostedGlassDisabled=function(p,y,l,q){return p||y||l||q&&_.n("web_frosted_glass_disable_watch")};
_.J.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.n("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.J.computeIsHomePage=function(p,y){if(!p||y==null||!y.endpoint)return!1;var l;return((l=_.G(y.endpoint,_.wC))==null?void 0:l.browseId)==="FEwhat_to_watch"};
_.J.updateIsChannelOrPlaylistPage=function(){if(_.n("web_frosted_glass")){var p,y,l=(y=(p=_.WC().resolve(_.RK(_.mm)))==null?void 0:p.getCurrentPage())==null?void 0:y.pageSubtype;this.isChannelOrPlaylistPage=l?["channel","channels","playlist"].includes(l):!1}};
_.J.scheduleFrostedGlassInitialization=function(){var p=this;_.n("web_frosted_glass")&&_.qB().parkOrScheduleJob(function(){p.isFrostedGlassInitialized=!0},0,_.lT(["eocs",
"cr"]),300)};
_.J.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.mwr(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.$y({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.$y({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.J.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(URR(!0))};
_.J.onYtSignalActionRequestPersistentStorage=function(){if(!_.n("request_persistent_storage_killswitch")){var p=_.WC().resolve(_.eVd);p.cachedPersistStatePromise||(p.cachedPersistStatePromise=wn1())}};
_.J.handleYtChannelCreationFormEndpoints=function(p){p&&this.ytComponentBehavior.resolveCommand(p)};
_.J.handleShowEngagementPanelEndpoint=function(p){p&&this.ytComponentBehavior.resolveCommand(p)};
_.J.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(URR(!1))};
_.J.initIconDefs=function(p,y){var l=document.createElement("iron-iconset-svg");l.name=p;p=document.createElementNS("http://www.w3.org/2000/svg","svg");l.appendChild(p);p.appendChild(y);document.body.appendChild(l);return l};
_.J.onWindowResized=function(){_.$w(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var p=_.VlB.getInstance();p.documentWidth_=document.body.clientWidth;Asd(p)};
_.J.onWindowScrolled=function(){var p=_.WC().resolve(_.mm).getCurrentPage();if(p!=null&&p.getScrollTop){var y=this.ytdReduxBehavior,l=y.dispatch;p=p.getScrollTop()<=0;l.call(y,_.$y({type:"SET_SCROLL_AT_TOP",payload:p}))}};
_.J.guideIsVisibleButNotPersistentSelectorChanged=function(){var p=_.WC().resolve(_.mm).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=p.getScrollTop(),document.body.classList.add("lock-scrollbar"),document.body.style.top="-"+this.guideScrollTop+"px"):document.body.classList.contains("lock-scrollbar")&&(document.body.style.overflowY="",document.body.style.top="",document.body.classList.remove("lock-scrollbar"),
p.setScrollTop(this.guideScrollTop));_.jN(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.J.getCurrentPageScrollableElementType=function(){var p=_.WC().resolve(_.mm).getCurrentPage();if(p&&p.getPageScrollingElement())return p.getPageScrollingElement().nodeName};
_.J.observeGuideVisibility=function(){var p=_.VlB.getInstance(),y=this.miniGuideVisible;p.guidePersistentAndVisible_=this.guidePersistentAndVisible;p.miniGuideVisible_=y;Asd(p)};
_.J.handleEduDismissAction=function(p){p&&p.eduDismissAction&&(_.$w(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.G2V.getInstance(),_.mZ.set(p.eduDismissAction.key+"-dismissed",!0))};
_.J.handleEduImpressionAction=function(p){if(p&&p.eduImpressionAction){var y=_.G2V.getInstance();p=p.eduImpressionAction.key;y.JSC$12892_eduDisplayedThisLoad_[_.n_Q[p].setKey||p]=!0;_.mZ.set(p+"-impression",parseInt(_.mZ.get(p+"-impression")||0,10)+1)}};
_.J.onYtSignalActionConfirmMentionsEdu=function(){_.$w(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.j4.getInstance();_.$a.set("edu-dismissed",!0)};
_.J.onYtSignalActionRecordMentionsEduImpression=function(){_.j4.getInstance();var p=_.$a.set,y=parseInt(_.$a.get("edu-impressions"),10);p.call(_.$a,"edu-impressions",(isFinite(y)?y:0)+1)};
_.J.onYtPageManagerAttached=function(p){var y;((y=_.cm(p))==null?void 0:y.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.J.onInvokeInstrumentManagerAction=function(p,y){oSw(y,p)};
_.J.updateIconSet=function(){var p=this.hostElement.querySelector("#masthead");if(p){var y=_.bt(p),l=y.querySelector("g#yt-logo-updated");l&&(p=document.createElementNS("http://www.w3.org/2000/svg","defs"),p.appendChild(l.cloneNode(!0)),(y=y.querySelector("g#yt-logo-red-updated"))&&p.appendChild(y.cloneNode(!0)),this.initIconDefs("yt-logos-ext",p))}};
_.J.updateMastheadData=function(){var p=this,y,l,q,t,E;return _.h(function(e){if(e.nextAddress==1){y=p.data;l=p.hostElement.querySelector("#masthead");if(!l)return e.return();_.th(p,function(){l.data=p.topbarData});
if(!p.get("response.topbar",y)||p.get("response.topbar.responseContext.maxAgeSeconds",y)===0)return e.jumpTo(0);if(q=_.WC().resolve(_.C$))return e.yield(q(),6);t=_.WC().resolve(_.AF);return e.yield(t.put("service:topbar:fallback",new _.Zo({innertubeResponse:p.get("response.topbar",y)})),0)}return(E=e.yieldResult)?e.yield(E.put("service:topbar:fallback",new _.Zo({innertubeResponse:p.get("response.topbar",y)})),0):e.jumpTo(0)})};
_.J.computeTopbarData=function(p){if(!p)return null;var y;return this.isShortsPage&&this.topbarData&&!_.G((y=p.response)==null?void 0:y.topbar,naO)?this.topbarData:p.response&&"topbar"in p.response?_.G(p.response.topbar,naO)||null:null};
_.J.onSetTheaterModeEnabled=function(p,y){this.isTheaterModeSession=y.enabled;this.setTheaterModeStyles(y.enabled)};
_.J.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.J.onDarkModeToggledAction=function(){var p=_.AJ(window.location.href);if(!_.tE_(p)){(p=!!_.tJ(window.location.href).themeRefresh)&&_.vs(new _.SM("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!p){CLL();p={themeRefresh:1};var y=_.WC().resolve(_.mm);if(y.isOnWatch()){var l,q;y=((l=y.getPlayerFromWatch())==null?void 0:(q=l.getPlayer())==null?void 0:q.getCurrentTime())||0;y>=1&&(p.time_continue=Math.floor(y))}_.ws()||_.HI()!=="USER_INTERFACE_THEME_DARK"||(p.theme="dark");_.lt(_.EC(window.location.href,
p))}_.n("web_appshell_refresh_trigger")&&_.l_.caches&&this.refreshAppShellResponse();l=_.IG(window.location.href);_.g4(_.WC().resolve(_.Qd),_.Cy(l,"theme"))}};
_.J.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.J.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.J.onPlayerFullscreen=function(p){_.RJ();this.playerFullscreen=p};
_.J.setRestrictedMode=function(p){var y=_.w$();_.il(0,58,p);y.save();_.WC().resolve(_.HF).reload()};
_.J.onPageChanged=function(p){p.detail.newPageType==="ytd-watch-flexy"||p.detail.newPageType==="ytd-watch-fixie"||p.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.fp("WEB_PAGE_TYPE_WATCH")):p.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.fp("WEB_PAGE_TYPE_SHORTS")):p.detail.newPageType==="ytd-browse"&&p.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.fp("WEB_PAGE_TYPE_MINI_APP")):_.n("web_frosted_glass")&&p.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.fp("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.fp("WEB_PAGE_TYPE_UNKNOWN"));p.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.J.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.J.onGuideToggleTap=function(){_.Ub(this.hostElement,"yt-guide-toggle")};
_.J.onGuideToggleHover=function(){_.Ub(this.hostElement,"yt-guide-hover")};
_.J.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.J.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.J.setMastheadTheme=function(){var p=_.bt(this.hostElement).querySelector("#masthead");p&&(p.dark=p.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),p.isDarkThemeForced=!1)};
_.J.onRequestPanelModeChange=function(p,y){this.hideHeaderShadow=y.mode!=="seamed"};
_.J.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.J.onDrawerIronSelect=function(p){_.cm(p).id==="guide"&&this.processDrawerIronSelect()};
_.J.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var p="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(p="opened"));_.Ub(this.hostElement,"yt-autonav-pause-guide-"+p)};
_.J.onAddElementToApp=function(p){_.jR(this.hostElement).appendChild(p.detail)};
_.J.onThrottledScroll=function(){var p=_.WC().resolve(_.mm).getCurrentPage();p&&(this.scrollAtTop=p.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.J.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.J.setFullscreen=function(){if(_.n("external_fullscreen")||!this.isWatchPage){var p=_.n("kevlar_fullerscreen_root_only_killswitch")?!!_.RJ():!!_.RJ()&&_.RJ()===document.documentElement;p=(this.isWatchPage||_.n("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(p||this.isFullWindowSession);this.fullscreen!==p&&((this.fullscreen=p)&&_.jN(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.ei().dispatch(_.EkU(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.$w(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.J.setFullscreenLoggingForShorts=function(p){var y,l,q;return _.h(function(t){if(t.nextAddress==1)return t.yield((y=_.$o())==null?void 0:y.getPlayerPromise(),2);l=t.yieldResult;(q=l)==null||q.setAppFullscreen(p);_.rR(t)})};
_.J.updateMastheadCssHeight=function(){var p=this.mastheadHeight;this.fullscreen&&(p=0);_.Ax(this.hostElement,{"--ytd-masthead-height":p+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.J.updateNetworkStatusBannerDisplayStatus=function(){var p="unset";this.fullscreen&&(p="none");_.Ax(this.hostElement,{"--ytd-network-status-banner-display":p})};
_.J.updateNetworkStatusBannerCssHeight=function(){var p="unset";this.fullscreen&&(p="0px");_.Ax(this.hostElement,{"--ytd-network-status-banner-max-height":p})};
_.J.updateScrollAndMasthead=function(p,y,l,q){this.iMaxTheaterMode||(q=!1);var t=_.WC().resolve(_.mm).getCurrentPage();p||y||q?(document.body.classList.add("no-scroll"),t.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.MH(this,this.onScroll)),t.setScrollTop(0),_.Ax(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.Io()+"px"})):l?_.Ub(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Ub(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
t.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.MH(this,this.onScroll)));this.mastheadHidden=p||y||l;this.updateMastheadCssHeight();_.n("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.J.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.J.onYtNavigateAction=function(p){p=this.get("navigateAction.endpoint",p);_.Ub(this.hostElement,"yt-navigate",{endpoint:p})};
_.J.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var p=document.createElement("yt-create-family-dialog");_.jR(this.hostElement).appendChild(p);this.hasCreateFamilyDialog=!0}};
_.J.onSetPushNotificationsEnabledCommand=function(p){var y=this,l=_.G(p,bId);l&&typeof l.enabled==="boolean"&&(Notification.permission!=="granted"?Hx6().then(function(){Notification.permission==="granted"?(ZxO(!l.enabled).then(gc7),l.successAction&&_.ny(y.hostElement,[l.successAction])):l.failureAction&&_.ny(y.hostElement,[l.failureAction])}):(ZxO(!l.enabled).then(gc7),l.successAction&&_.ny(this.hostElement,[l.successAction])))};
_.J.onYtSignalActionEnableChromeNotifications=function(){Ta9(!0)};
_.J.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.G(this.topbarData.hotkeyDialog,AS9)}}})};
_.J.onYtSignalActionShowKeyboardShortcutDialog=function(){_.$w(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.J.onYtEndpointChangeHandler=function(p,y){var l=_.m8(_.D1);l.pendingPrefetchJob_&&(y=!(!y||y.autonav!="1"),l.pendingPrefetchJob_.resolve(p&&_.OP6(p)?_.om5(p,y):""),l.pendingPrefetchJob_=null);_.$w(this.hostElement,"yt-pause-active-page-context");_.$w(this.hostElement,"ytd-log-youthere-nav");_.$w(this.hostElement,"yt-prepare-page-dispose")};
_.J.handleCommandWithCommandHandler=function(p,y){_.wW.instance.resolveCommand(p,{form:{element:y}})};
_.J.onYtTimedCommand=function(p){var y=this;p=_.G(p,eO6);var l=p.command;l&&_.Xp(_.TR,function(){var q=_.G(l,_.f9Z);q?(_.wW.instance.resolveCommand(l),y.maybeLogGetAnswerRequestTick(q)):_.Gf(y.hostElement,[l],y.hostElement)},p.timeoutMs||0)};
_.J.maybeLogGetAnswerRequestTick=function(p){p&&p.isFirstRequest&&(_.BW("search_overview_answer"),_.fy("so_rq",void 0,"search_overview_answer"))};
_.J.onYtSignalActionSkipNavigation=function(){var p=_.WC().resolve(_.mm).getCurrentPage();_.EL(p)};
_.J.onYtSignalActionCopyDebugData=function(){yOR()};
_.J.handleEntityUpdateCommand=function(p){_.Qj(_.G(p,_.vDV).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.J.logFlowLoggingEventCommand=function(p){if(p=_.G(p,_.Dpl))if(p.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var y=p.flowEventNamespace,l=p.flowEventType,q=p.flowType;q&&y&&l&&_.T3o(_.Za(y,l,p.flowEventMetadata),q)}else{y=_.Vq();l=p.flowEventNamespace;q=p.flowEventType;var t=p.flowType;t&&l&&q&&_.ME(y,_.Za(l,q,p.flowEventMetadata),t,p.flowNonce)}};
_.J.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.J.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.J.onTouchStart=function(){var p=_.xa();_.B2()&&_.EZ(p.JSC$13119_screenManager,{visualElement:p.ve})};
_.J.handleSelectLanguageCommand=function(p){if(p=_.G(p,UBd).hl){var y=_.w$();y.set("hl",p);y.save();_.WC().resolve(_.HF).reload()}};
_.J.handleConfirmDialogEndpoint=function(p){(p=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(p))&&this.ytOpenPopupBehavior.openPopup(p)};
_.J.handleOpenPopupNavigationEndpoints=function(p,y){_.n("web_button_rework")&&(p=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(p))&&this.ytOpenPopupBehavior.openPopup(p,y)};
_.J.handleSaveCommandToSessionStorage=function(p){if(p=_.G(p,_.rL$)){var y=p.key;y&&p.command&&window.sessionStorage.setItem(y,JSON.stringify(p.command))}};
_.J.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(p){p&&p.active&&p.active.postMessage({type:"refresh_shell"})}).catch(function(p){p.name!=="SecurityError"&&_.Bs(p)})};
_.J.onDeviceThemeChanged=function(){var p=_.Da();_.il(_.w$(),185,p);_.w$().save()};
_.J.handleYtRegisterPromoCommand=function(p){if(_.G(p,jui)){var y=_.WC().resolve(_.mm).getCurrentPage()||this.hostElement;KSA().registerPromoCommand(_.G(p,jui),y)}};
_.J.onYtNavigateHomeAction=function(){if(!_.n("kevlar_miniplayer_navigate_home_from_app_killswitch")){var p,y,l,q,t=(q=(p=this.topbarData)==null?void 0:(y=p.logo)==null?void 0:(l=y.topbarLogoRenderer)==null?void 0:l.endpoint)!=null?q:_.Fx;this.ytComponentBehavior.resolveCommand(t)}};
_.J.onYtLocationCollectionCommand=function(p){Abi(_.G(p,iI7))};
_.J.onYtGetLocationCommand=function(p){hbO(_.G(p,wFR),this)};
_.J.updateRenderGuideFromBinding=function(p){this.renderGuide=p.detail.value};
_.J.updateGuidePersistentAndVisibleFromBinding=function(p){this.guidePersistentAndVisible=p.detail.value};
_.J.updateMiniGuideVisibleFromBinding=function(p){this.miniGuideVisible=p.detail.value};
_.J.onThemeSelected=function(p,y){var l=_.w$(),q=p||y?p:_.Da(),t=(q&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!q&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.tE_(_.AJ(window.location.href));_.il(0,165,p);_.il(0,174,y);l.save();t&&_.$w(this.hostElement,"yt-dark-mode-toggled-action",[q]);_.$w(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.J.getCurrentTheme=function(){return _.T5()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.HI()};
_.J.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.J.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.J.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.J.handleShowConsentPrimitive=function(p){var y=this,l,q;return _.h(function(t){if(t.nextAddress==1){try{l=(q=_.$o())==null?void 0:q.getPlayerPromise()}catch(E){}return t.yield(xWL(p,l),2)}_.$w(y.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.rR(t)})};
_.J.handleSelectActiveIdentityEndpointInternal=function(p){_.pv();p=_.G(p,_.E7v);if(p!=null&&p.supportedTokens){p=_.c(p.supportedTokens);for(var y=p.next();!y.done;y=p.next())y=y.value,y.accountSigninToken&&_.lt(y.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.J.handleUpdatePermissionRoleCommand=function(p){if(p=_.G(p,_.cTx)){var y;this.hasDelegation=!((y=_.G(p.renderer,_.JTN))==null||!y.status)}};
_.J.registerWithViewTransitionManager=function(){var p=_.WC().resolve(_.RK(_.xr));if(p){var y,l=(y=this.guide)==null?void 0:y.querySelector("#scrim"),q;y=(q=this.guide)==null?void 0:q.querySelector("#contentContainer");l&&y&&p.isAnyTransitionEnabled&&(q={},p.viewTransitionCoordinator.registerElement(l,(q.slide="app-drawer-scrim-page-transition",q["lockup-to-watch"]="app-drawer-scrim-page-transition",q["learning-journey"]="app-drawer-scrim-page-transition",q)),l={},p.viewTransitionCoordinator.registerElement(y,
(l.slide="app-drawer-container-page-transition",l["lockup-to-watch"]="app-drawer-container-page-transition",l["learning-journey"]="app-drawer-container-page-transition",l)))}};
_.Jh.Object.defineProperties(zV.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.n("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.Jh.Object.defineProperties(zV,{template:{configurable:!0,enumerable:!0,get:function(){if(r59===void 0){var p=document.createElement("template");_.M(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
p.content.insertBefore(_.B().content.cloneNode(!0),p.content.firstChild);r59=p}p=r59;return p}}});
zV.prototype.onOpenHotkeyDialog=zV.prototype.onOpenHotkeyDialog;zV.prototype.setFullscreen=zV.prototype.setFullscreen;zV.prototype.onAddElementToApp=zV.prototype.onAddElementToApp;zV.prototype.onDrawerIronSelect=zV.prototype.onDrawerIronSelect;zV.prototype.onGuideOpenButtonHover=zV.prototype.onGuideOpenButtonHover;zV.prototype.onRequestPanelModeChange=zV.prototype.onRequestPanelModeChange;zV.prototype.onPageDataUpdated=zV.prototype.onPageDataUpdated;zV.prototype.onPageChanged=zV.prototype.onPageChanged;
zV.prototype.onSetTheaterModeEnabled=zV.prototype.onSetTheaterModeEnabled;zV.prototype.updateMastheadData=zV.prototype.updateMastheadData;zV.prototype.onYtPageManagerAttached=zV.prototype.onYtPageManagerAttached;zV.prototype.observeGuideVisibility=zV.prototype.observeGuideVisibility;zV.prototype.guideIsVisibleButNotPersistentSelectorChanged=zV.prototype.guideIsVisibleButNotPersistentSelectorChanged;zV.prototype.isInlinePreviewEnabledChanged=zV.prototype.isInlinePreviewEnabledChanged;
zV.prototype.isWatchPageChanged=zV.prototype.isWatchPageChanged;zV.prototype.dispatchFrostedGlassMode=zV.prototype.dispatchFrostedGlassMode;_.H([_.V(_.zL),_.x("design:type",Object)],zV.prototype,"ytdReduxBehavior",void 0);_.H([_.V(_.Ld.YtEventForwardingBehavior),_.x("design:type",Object)],zV.prototype,"ytEventForwardingBehavior",void 0);_.H([_.V(_.Ss.YtOpenPopupBehavior),_.x("design:type",Object)],zV.prototype,"ytOpenPopupBehavior",void 0);
_.H([_.V(_.no.YtActionHandlerBehavior),_.x("design:type",Object)],zV.prototype,"ytActionHandlerBehavior",void 0);_.H([_.V({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.pt.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.n("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var p;((p=this.actionRouterNode.hostElement)!=null?p:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var p;((p=this.actionRouterNode.hostElement)!=null?p:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(p){this.actionRouter_.handleAction(p.detail)}}),
_.x("design:type",Object)],zV.prototype,"ytActionRouterBehavior",void 0);_.H([_.V(ku9.YtdAppBehavior),_.x("design:type",Object)],zV.prototype,"ytdAppBehavior",void 0);_.H([_.V(_.FW.YtEndpointBehavior),_.x("design:type",Object)],zV.prototype,"ytEndpointBehavior",void 0);_.H([_.V(NGu.YtEndpointHandlerWithYpcBehavior),_.x("design:type",Object)],zV.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.H([_.V(SeA.YtLogYpcFlowCommandsBehavior),_.x("design:type",Object)],zV.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.H([_.V(_.X.YtRendererBehavior),_.x("design:type",Object)],zV.prototype,"ytRendererBehavior",void 0);_.H([_.V(_.sd.YtComponentBehavior),_.x("design:type",Object)],zV.prototype,"ytComponentBehavior",void 0);_.H([_.Q({selector:_.pQO}),_.x("design:type",Object)],zV.prototype,"tabGesturesIsActive",void 0);_.H([_.Q(),_.x("design:type",Boolean)],zV.prototype,"renderGuide",void 0);
_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],zV.prototype,"guidePersistentAndVisible",void 0);_.H([_.Q({selector:_.Izd}),_.x("design:type",Boolean)],zV.prototype,"guideIsVisibleButNotPersistent",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],zV.prototype,"standalone",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],zV.prototype,"miniGuideVisible",void 0);
_.H([_.Q({selector:_.QBm}),_.x("design:type",Number)],zV.prototype,"miniplayerPlaybackState",void 0);_.H([_.Q({selector:_.vV,reflectToAttribute:!0}),_.x("design:type",Boolean)],zV.prototype,"miniplayerIsActive",void 0);_.H([_.Q({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.x("design:type",Boolean)],zV.prototype,"isInlinePreviewEnabled",void 0);_.H([_.Q(),_.x("design:type",Boolean)],zV.prototype,"isInlinePreviewDisabled",void 0);
_.H([_.Q({reflectToAttribute:!0,value:function(){return _.o4("START_IN_FULL_WINDOW_MODE")}}),
_.x("design:type",Boolean)],zV.prototype,"mastheadHidden",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],zV.prototype,"playerFullscreen",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],zV.prototype,"deprecateFullerscreenUi",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],zV.prototype,"fullscreen",void 0);_.H([_.Q({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],zV.prototype,"hideHeaderShadow",void 0);
_.H([_.Q({value:{GUIDE_ALT_LABEL:_.g$("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.x("design:type",Object)],zV.prototype,"menuStrings",void 0);_.H([_.Q({computed:"computeTopbarData(data)"}),_.x("design:type",Object)],zV.prototype,"topbarData",void 0);_.H([_.Q({selector:_.XT}),_.x("design:type",Boolean)],zV.prototype,"isWatchPage",void 0);_.H([_.Q({selector:_.My_,reflectToAttribute:!0}),_.x("design:type",Boolean)],zV.prototype,"isShortsPage",void 0);_.H([_.Q({selector:function(p){return _.Zwl(p)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.x("design:type",Boolean)],zV.prototype,"isMiniAppPage",void 0);_.H([_.Q({selector:function(p){return _.Zwl(p)==="WEB_PAGE_TYPE_BROWSE"}}),
_.x("design:type",Boolean)],zV.prototype,"isBrowsePage",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Boolean)],zV.prototype,"scrolling",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],zV.prototype,"hasDelegation",void 0);_.H([_.Q({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],zV.prototype,"guideScrolledByTouch",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],zV.prototype,"darkerDarkTheme",void 0);
_.H([_.Q(),_.x("design:type",Object)],zV.prototype,"isFrostedGlassInitialized",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],zV.prototype,"frostedGlassExp",void 0);_.H([_.Q({selector:function(p){return p.ui.chipBarIsSticky}}),
_.x("design:type",Boolean)],zV.prototype,"chipBarIsSticky",void 0);_.H([_.Q({computed:"computeIsHomePage(isBrowsePage, data)"}),_.x("design:type",Boolean)],zV.prototype,"isHomePage",void 0);_.H([_.Q({reflectToAttribute:!0}),_.x("design:type",Object)],zV.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.H([_.Q(),_.x("design:type",Object)],zV.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.H([_.$K("guide"),_.x("design:type",Object)],zV.prototype,"guide",void 0);
_.H([_.$K("guide-service"),_.x("design:type",AVd)],zV.prototype,"guideService",void 0);_.H([_.$K("guide-inner-content"),_.x("design:type",HTMLDivElement)],zV.prototype,"guideInnerContent",void 0);_.H([_.Q({selector:_.Kd6}),_.x("design:type",String)],zV.prototype,"frostedGlassMode",void 0);
_.H([_.gd("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zV.prototype,"dispatchFrostedGlassMode",null);_.H([_.Q({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.x("design:type",Object)],zV.prototype,"isFrostedGlassDisabled",void 0);
_.H([_.gd("isWatchPage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zV.prototype,"isWatchPageChanged",null);_.H([_.g("isHomePage","chipBarIsSticky"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zV.prototype,"applyFrostedGlassToChipBar",null);_.H([_.Q(),_.x("design:type",Object)],zV.prototype,"isChannelOrPlaylistPage",void 0);
_.H([_.k8("isInlinePreviewEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zV.prototype,"isInlinePreviewEnabledChanged",null);_.H([_.gd("guideIsVisibleButNotPersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zV.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.H([_.gd("guidePersistentAndVisible","miniGuideVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zV.prototype,"observeGuideVisibility",null);_.H([_.VU("attached"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],zV.prototype,"onYtPageManagerAttached",null);_.H([_.gd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],zV.prototype,"updateMastheadData",null);
_.H([_.VU("yt-set-theater-mode-enabled"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],zV.prototype,"onSetTheaterModeEnabled",null);_.H([_.VU("yt-page-type-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],zV.prototype,"onPageChanged",null);_.H([_.VU("yt-page-data-updated"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zV.prototype,"onPageDataUpdated",null);
_.H([_.VU("yt-request-panel-mode-change"),_.x("design:type",Function),_.x("design:paramtypes",[Event,Object]),_.x("design:returntype")],zV.prototype,"onRequestPanelModeChange",null);_.H([_.VU("yt-guide-hover"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zV.prototype,"onGuideOpenButtonHover",null);_.H([_.VU("app-drawer-transitioned"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],zV.prototype,"onDrawerIronSelect",null);
_.H([_.VU("yt-add-element-to-app"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],zV.prototype,"onAddElementToApp",null);_.H([_.VU("yt-set-fullerscreen-styles"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zV.prototype,"setFullscreen",null);_.H([_.VU("yt-open-hotkey-dialog"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zV.prototype,"onOpenHotkeyDialog",null);
_.H([_.k({is:"ytd-app"})],zV);_.qB().processSignal("eor");
_.xP();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
